!gDFQa=V
zbdY}kk9M14?_1XWpa?pFo_p?qd*C7X9F&3X^?E*>4Rhf)unIQ8+i(bu!D;vaE`qKx
znda74*sgPM{Qh4#-Ku9K%!QppC*y0F`c*!`zxIV@cRBm&RVRVuXg@vf%8gD(iweh$-{rG-#zRaK4;PtWt(Ey
zyCv=Eu?Vw{zk%_3d!A$7n&X(Qvm8@B6J|JO%MTrMa(l6&
z&`f90dex|+Lpy$O_W)w>a>N+u-Z&i!@}$25y56tI>HmF_|E!EVffe%&XBsZMl?
zJ7EoIelQQ**fet>1}pLxM!?GOXCH@hHTp(8AZFdBo(
zT%?Y2u=<z+?bU&R2{_11D
zEPvraH~~TW!t6Up9d|?Qb^9H}U(Ji3hZ_(^XSOoeIDR%1`0J1RGX81|+yh4-o3^mq
zk5WfJh`a1&{>fi>2GoaPwPq@(F*FYfn>7&g75tU{J3!CHnRG?jc8WS4hM22v?wF+qsH3y$
zkK<2%!R;^;`grTwCZE?qCQVVcDTZHx*vXeqp!b1uL320t)tz9+!xvfp0HWy4RCXJ6
z=$wj84CD(Gz&AkeKjpXXTdScr*x0FRzNRM
znSt<6@Rw=LvhJzw*vfYd@I$&ZKRW=KwCG*F?53;f!15A-5#fFZM)BlX;a#D
zy_*J6?(2%v%g`VG0#-*@t9j%Z&~ugU13!l@?L7c!Q~HO(DG2MkEvFb%!m}VfcDuFO
z{~?@!eV}h^x@Js=k?;`c+Sdux2kk0f?ZN$U5UkHpt>yhC*d+ib_|e9kd@=Ldh6&UIk$SK2kd
z)BD+|n$ydxpN}dBK)C?Q2~ci;n&!g(T
zmGX*J(?=H1&(B~FL0G-EoYg&!V>9Zu`mGI!LoUWcn7C+Ml*k`XyXLLGkEs1J<<;NP
z-4$$IR%VMfAP#Lg9(2A;SKFS?`ku8A!p_yCdkc(*R_RU;Oh6pkVmutBy}s+FG+pn$
ziw=!pJD#&y>D~%C(;XrXWAHUs*GYR`=sKupH1&TOybswlYkQmP4iSf3-7n6e{jt^K
zUF`$Vb~r%0bZh=S0rWg$&zE#}+iV?Q)9)8{Jhb-uu<_ulPNz3Ux$kQ>qA63q=UsPt
zKm+0s<@#`yx#m|F4|3;sFQGmCdS`V{%vXP>>rP(}h(nn1a2Wk}k&F2~^!cxMdOq6@
zvDFEb;XUgqQJE`j7e&t!I)CnI%C`d75s++tllu)-2x5z&jlz@Crg0}
zGgSpRy2enT!4$}r)|o=t;tEs9F8)gbm8EK9x~Xz3b#SmTgH^ZBCfTlajP|?ERhXhe
zt=E_io-L$0IZ?3CvofjwG#=JuX)vkn*uk>bJWGS6TDO)4UALNSh1^Z0&U?15#x%A&
z#It>^UyauD*VU19n{gYaIoBcSR&}`NHe6>+1xv{qQ^2AkRjeX~6{b{G@Paid>5eL|
qGp0z+P@qUoQ=p?OiUMwIDB$`^0d~6ulCr4^cQ-Y-yQ!g+jsFFp%yw1)
literal 0
HcmV?d00001
diff --git a/playground/static/js/ConditionModule-b02e208a.js b/playground/static/js/ConditionModule-b02e208a.js
new file mode 100644
index 0000000..8a72fd6
--- /dev/null
+++ b/playground/static/js/ConditionModule-b02e208a.js
@@ -0,0 +1 @@
+import{_ as x,B as H,x as q,y as k,o as s,b as f,w as a,g as l,h as g,A as y,L as j,E as A,M,s as N,a as p,N as V,O as U,F as b,r as C,l as v,n as J,T as K,C as I,G as O,P as B,z as P,p as Q,H as W,I as X,J as Y,K as Z}from"./main-15081b07.js";/* empty css */import{E as $,a as ee}from"./el-table-column-31b2aa92.js";const te={props:{fieldList:{type:Object,default(){return{}}},data:{type:Object,default(){return{}}}},data(){return{table:[],groupSelect:[{value:"andgroup",label:"+并组"},{value:"orgroup",label:"+或组"},{value:"data",label:"条件"}],logicList:[{value:"=",label:"等于"},{value:"!=",label:"不等于"}],typeList:[{rule:[],value:"常量",label:"常量"}]}},computed:{newtypeList(){const e=this.fieldList.find(t=>{if(this.table&&this.table.length>0&&t.value==this.table[0].field)return t});return e&&e.options?[{rule:[],value:"选项",label:"选项"}]:e&&e.switch?[{value:"布尔",label:"布尔"}]:this.typeList}},methods:{handleType(e){e=="布尔"&&(this.table[0].value=!0)},getFiled(){return!this.table[0]||!this.table[0].field?[]:this.fieldList.find(t=>{if(this.table&&this.table.length>0&&t.value==this.table[0].field)return t}).options||[]},getMultiple(){return!!this.fieldList.find(t=>{if(this.table&&this.table.length>0&&t.value==this.table[0].field)return t}).multiple},getLogic(){const e=this.fieldList.find(t=>{if(this.table&&this.table.length>0&&t.value==this.table[0].field)return t});return e&&e.options&&e.multiple?[{value:"in",label:"包含"},{value:"not in",label:"不包含"}]:e&&e.switch?[{value:"=",label:"等于"}]:this.logicList},show(e){this.$refs.maxJsonDialog.init("可用条件","icon-icon-bianji"),this.$refs.maxJsonDialog.show(),Object.keys(e).length>0&&(this.table=[e])},onAddItem(){this.table.push({field:"",logic:"",type:"",value:""})},getTypeIsChange(e){const t=this.table[e];return!!t.type&&t.type=="常量"},getRules(e){var t;return{value:(t=this.typeList.find(u=>u.value==e))==null?void 0:t.rule}},closeDialog(){this.$refs.maxJsonDialog.close()},deleteRow(){this.table=[]},async saveJson(){if(this.table.length>0){const e=this.table[0];if(!e.field){B({type:"error",message:"字段不能为空!"});return}if(!e.type){B({type:"error",message:"请选择值类型!!"});return}if(e.type&&e.type=="选项"&&!e.value){B({type:"error",message:"值类型为字段时值不能为空!"});return}for(const t in this.table[0])this.data[t]=this.table[0][t]}else for(const e in this.data)delete this.data[e];B({message:"保存成功",type:"success"}),this.closeDialog(),this.$emit("end")}}};function le(e,t,u,d,c,i){const m=I,_=O,h=$,E=W,F=X,r=Y,D=Z,w=A,S=ee,T=j,R=M,G=N,z=k("CustomDialog");return s(),f(Q,{to:"body"},[l(z,{ref:"maxJsonDialog",dialogclass:"maxJsonDialog"},{default:a(()=>[l(T,{style:{padding:"0"}},{default:a(()=>[l(G,{style:{height:"100%"}},{default:a(()=>[l(T,{class:"my-pageMain"},{default:a(()=>[l(S,{data:c.table,style:{width:"100%"},border:""},{default:a(()=>[l(h,{prop:"field",label:"字段"},{default:a(o=>[l(_,{modelValue:o.row.field,"onUpdate:modelValue":n=>o.row.field=n,placeholder:"请选择"},{default:a(()=>[l(m,{label:"未选择",value:""}),(s(!0),p(b,null,C(u.fieldList,(n,L)=>(s(),f(m,{key:L,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),l(h,{prop:"logic",label:"逻辑"},{default:a(o=>[l(_,{modelValue:o.row.logic,"onUpdate:modelValue":n=>o.row.logic=n,placeholder:"请选择"},{default:a(()=>[(s(!0),p(b,null,C(i.getLogic(),n=>(s(),f(m,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),l(h,{prop:"type",label:"值类型"},{default:a(o=>[l(_,{modelValue:o.row.type,"onUpdate:modelValue":n=>o.row.type=n,placeholder:"请选择",onChange:i.handleType},{default:a(()=>[(s(!0),p(b,null,C(i.newtypeList,n=>(s(),f(m,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),l(h,{prop:"value",label:"值"},{default:a(o=>[i.getTypeIsChange(o.$index,e.index)?(s(),f(r,{key:0,model:o.row,rules:i.getRules(o.row.type),ref:"formList"},{default:a(()=>[l(F,{prop:"value"},{default:a(()=>[l(E,{text:"",modelValue:o.row.value,"onUpdate:modelValue":n=>o.row.value=n},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model","rules"])):v("",!0),o.row.type=="选项"?(s(),f(_,{key:1,modelValue:o.row.value,"onUpdate:modelValue":n=>o.row.value=n,filterable:"",placeholder:"请选择",multiple:i.getMultiple()},{default:a(()=>[l(m,{label:"未选择",value:""}),(s(!0),p(b,null,C(i.getFiled(),(n,L)=>(s(),f(m,{key:L,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","multiple"])):v("",!0),o.row.type=="布尔"?(s(),f(D,{key:2,modelValue:o.row.value,"onUpdate:modelValue":n=>o.row.value=n,"active-icon":e.Check,"inactive-icon":e.Close},null,8,["modelValue","onUpdate:modelValue","active-icon","inactive-icon"])):v("",!0)]),_:1}),l(h,{fixed:"right",label:"操作",width:"200"},{default:a(o=>[l(w,{size:"small",type:"danger",onClick:P(n=>i.deleteRow(o.$index,e.index),["prevent"])},{default:a(()=>[y(" 删除 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),c.table.length==0?(s(),f(w,{key:0,class:"mt-4",text:"",onClick:i.onAddItem,style:{width:"100%"}},{default:a(()=>[y("+条件")]),_:1},8,["onClick"])):v("",!0)]),_:1}),l(R,{class:"my-Footer",style:{height:"60px","padding-top":"10px"}},{default:a(()=>[l(w,{type:"primary",onClick:i.saveJson},{default:a(()=>[y("保存")]),_:1},8,["onClick"]),l(w,{onClick:i.closeDialog},{default:a(()=>[y("关闭")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},512)])}var ae=x(te,[["render",le]]);const ue={name:"ConditionGroup",components:{ConditionTanc:ae},props:{result:{type:Object,default(){return{}}},index:{type:Number,default:0},fieldList:{type:Array,default(){return[]}},rightField:{type:Array,default(){return[]}},request:{type:Array,default(){return[]}}},data(){return{groupSelect:[{value:"andgroup",label:"+并组"},{value:"orgroup",label:"+或组"},{value:"data",label:"条件"}]}},watch:{result:{handler(){this.$forceUpdate()},deep:!0}},methods:{onAddItem(){if(this.result.type){switch(!this.result.result&&this.result.type!="data"&&(this.result.result=[]),this.result.type=="data"&&!this.result.data&&(this.result.data={}),this.result.control=!0,this.result.type){case"orgroup":this.result.result.push({type:"orgroup",result:[]});break;case"andgroup":this.result.result.push({type:"andgroup",result:[]});break;case"data":this.result.result.push({type:"data",data:{}});break}this.handleUpdateForce()}},handleControl(e){this.result.control=e,this.handleUpdateForce()},onDeleteItem(){this.index==0?(delete this.result.data,delete this.result.result,delete this.result.type,this.handleUpdateForce()):this.$emit("delete",this.index)},handleDelete(e){this.result.result.splice(e,1),this.handleUpdateForce()},onChange(e){this.result.type=e,e=="andgroup"?(this.result.result=[],this.result.data&&delete this.result.data):e=="orgroup"?(this.result.result=[],this.result.data&&delete this.result.data):(this.result.data={},this.result.result&&delete this.result.result),this.handleUpdateForce()},handleUpdateForce(){this.$forceUpdate(),this.$emit("update")},onEditData(){this.$refs.ConditionTanc.show(this.result.data)}}},ne={class:"control"},ie={class:"moreCondition"};function se(e,t,u,d,c,i){const m=I,_=O,h=A,E=k("ConditionGroup",!0),F=k("ConditionTanc");return s(),p("div",{class:J(["conditionSelect",u.result.type])},[V(g("div",ne,[u.result.control?(s(),p("span",{key:1,class:"iconfont icon-jianhao",onClick:t[1]||(t[1]=r=>i.handleControl(!1))})):(s(),p("span",{key:0,class:"iconfont icon-jiahao",onClick:t[0]||(t[0]=r=>i.handleControl(!0))}))],512),[[U,u.result.result&&u.result.result.length>0&&u.result.type!=="data"]]),l(_,{modelValue:u.result.type,"onUpdate:modelValue":t[2]||(t[2]=r=>u.result.type=r),placeholder:"请选择",onChange:i.onChange},{default:a(()=>[(s(!0),p(b,null,C(c.groupSelect,r=>(s(),f(m,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),l(h,{type:"primary",onClick:i.onAddItem,size:"small",disabled:!u.result.type||u.result.type=="data"},{default:a(()=>[y("增加条件")]),_:1},8,["onClick","disabled"]),l(h,{type:"danger",onClick:i.onDeleteItem,size:"small"},{default:a(()=>[y("删除")]),_:1},8,["onClick"]),u.result.type=="data"?(s(),f(h,{key:0,type:"primary",onClick:i.onEditData,size:"small"},{default:a(()=>[y("编辑")]),_:1},8,["onClick"])):v("",!0),l(K,null,{default:a(()=>[V(g("div",ie,[(s(!0),p(b,null,C(u.result.result,(r,D)=>(s(),p("div",{key:D,class:"selectList"},[l(E,{result:r,onUpdate:i.handleUpdateForce,onDelete:i.handleDelete,index:D,fieldList:u.fieldList},null,8,["result","onUpdate","onDelete","index","fieldList"])]))),128)),u.result.result&&u.result.result.length>=2?(s(),p("div",{key:0,class:J(["line",u.result.type])},null,2)):v("",!0)],512),[[U,u.result.type&&u.result.type!=="data"&&u.result.control]])]),_:1}),V(g("div",null,[l(F,{ref:"ConditionTanc",data:u.result.data,fieldList:u.fieldList,onEnd:i.handleUpdateForce},null,8,["data","fieldList","onEnd"])],512),[[U,u.result.type&&u.result.type=="data"]])],2)}var oe=x(ue,[["render",se]]);const re={components:{ConditionGroup:oe},props:{data:{type:Object,default(){return{}}},item:{type:Object,default(){return{}}}},data(){return{result:{},stringLink:"",leftField:[],rightField:[],condition:[],request:[]}},watch:{result:{handler(){console.log(this.result),this.$forceUpdate()},deep:!0}},emits:["change"],methods:{async show(){var e,t;this.$refs.maxJsonDialog.init("可用条件","icon-icon-bianji"),this.$refs.maxJsonDialog.show(),await this.$nextTick();const u=(e=H)==null?void 0:e.get("allFormList"),d=[];(t=q(u))==null||t.forEach(c=>{window.VueContext.$Flex.getFormDataList(c,d,this.data.fieldName)}),this.result=typeof this.data[this.item.data.fieldName]=="string"?JSON.parse(this.data[this.item.data.fieldName]):this.data[this.item.data.fieldName],console.log(d),this.leftField=d},handleUpdateForce(){this.$forceUpdate(),this.stringLink=this.filterCondition(this.result)},filterCondition(e){if(e.type=="andgroup"||e.type=="orgroup"){const t=e.result.map(d=>this.filterCondition(d)).join(e.type=="andgroup"?'and ':'or ');return`(${t}) `}else return e.type=="data"?`${this.getDataConditionRelate(e)} `:""},getDataConditionRelate(e){if(Object.keys(e.data).length==0)return"空";const t=e.data,u=t.field;let d;if(t.type=="选项"){const c=t.value;d=`${JSON.stringify(c)}`}else(t.type=="常量"||t.type=="布尔")&&(d=t.value);return`${u} ${t.logic} ${d}`},closeDialog(){this.$refs.maxJsonDialog.close()},saveJson(){this.$emit("change",this.result),this.closeDialog()}}},de=g("div",{class:"tipContent"},"满足以下所有条件时,此组件可用",-1),ce={class:"conditionContainer"},he={class:"stringlist"},fe=["innerHTML"];function pe(e,t,u,d,c,i){const m=k("ConditionGroup"),_=j,h=A,E=M,F=N,r=k("CustomDialog");return s(),f(r,{ref:"maxJsonDialog",dialogclass:"conditionModule"},{default:a(()=>[l(_,{style:{padding:"0"}},{default:a(()=>[l(F,{style:{height:"100%"}},{default:a(()=>[l(_,{class:"my-pageMain"},{default:a(()=>[de,g("div",ce,[l(m,{result:c.result,onUpdate:i.handleUpdateForce,fieldList:c.leftField},null,8,["result","onUpdate","fieldList"]),g("div",he,[g("pre",{innerHTML:c.stringLink},null,8,fe)])])]),_:1}),l(E,{class:"my-Footer",style:{height:"60px","padding-top":"10px"}},{default:a(()=>[l(h,{type:"primary",onClick:i.saveJson},{default:a(()=>[y("保存")]),_:1},8,["onClick"]),l(h,{onClick:i.closeDialog},{default:a(()=>[y("关闭")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},512)}var ge=x(re,[["render",pe]]);export{ge as default};
diff --git a/playground/static/js/ConditionSelect-f94b9cb6.js b/playground/static/js/ConditionSelect-f94b9cb6.js
new file mode 100644
index 0000000..580aea2
--- /dev/null
+++ b/playground/static/js/ConditionSelect-f94b9cb6.js
@@ -0,0 +1 @@
+import{_ as A,d as M,f as h,u as J,v as O,x as B,y as S,o as s,b as m,g as n,w as r,a as v,F as E,r as g,l as C,z as j,A as w,p as I,B as z,h as G,C as H,G as K,H as q,I as P,J as Q,K as W,E as X,L as Y,M as Z,s as x}from"./main-15081b07.js";/* empty css */import{E as ee,a as le}from"./el-table-column-31b2aa92.js";const ae=M({props:{data:{type:Object,default(){return{}}},item:{type:Object,default(){return{}}}},emits:["change"],setup(i,{emit:D}){const p=h(),b=h(),c=h();function F(){var l,e;const o=(l=z)==null?void 0:l.get("allFormList"),d=[];(e=B(o))==null||e.forEach(y=>{window.VueContext.$Flex.getFormDataList(y,d,i.data.fieldName)}),c.value=d}const t=J({andData:[[]],logicList:[{value:"=",label:"等于"},{value:"!=",label:"不等于"}],typeList:[{value:"常量",label:"常量"}]});return{...O(t),fieldList:c,maxJsonDialog:p,formList:b,handleType(l,e,o){o=="布尔"&&(t.andData[e][l].value=!0)},getLogic(l,e){const o=c.value.find(d=>{if(t.andData[e][l]&&d.value==t.andData[e][l].field)return d});return o&&o.options&&o.multiple?[{value:"in",label:"包含"},{value:"not in",label:"不包含"}]:o&&o.switch?[{value:"=",label:"等于"}]:t.logicList},getFiled(l,e){return!t.andData[e][l]||!t.andData[e][l].field?[]:c.value.find(d=>{if(t.andData[e][l]&&d.value==t.andData[e][l].field)return d}).options||[]},show(){p.value.init("可用条件","icon-icon-bianji"),p.value.show(),console.log(i.data),typeof i.data.showRule!="string"&&Array.isArray(i.data.showRule)?t.andData=i.data.showRule:t.andData=[[]],F()},getMultiple(l,e){return!!c.value.find(d=>{if(t.andData[e][l]&&d.value==t.andData[e][l].field)return d}).multiple},getNewTypeList(l,e){const o=c.value.find(d=>{if(t.andData[e][l]&&d.value==t.andData[e][l].field)return d});return o&&o.options?[{rule:[],value:"选项",label:"选项"}]:o&&o.switch?[{value:"布尔",label:"布尔"}]:t.typeList},deleteRow(l,e){t.andData[e].splice(l,1)},getTypeIsChange(l,e){return!!t.andData[e][l].type},getRules(l){var e;return{value:(e=t.typeList.find(o=>o.value==l))==null?void 0:e.rule}},async onAddItem(l){t.andData[l].push({field:"",logic:"",type:"",value:""})},onOrItem(){t.andData.push([])},closeDialog(){p.value.close()},saveJson(){const l=B(t.andData).filter(e=>{if(e.length>0)return e}).map(e=>{const o=e.filter(d=>{if(d.field)return d});if(o.length>0)return o}).filter(e=>!!e);D("change",l),p.value.close()}}}}),te=G("div",{class:"tipContent"},"满足以下所有条件时,此组件可用",-1);function ue(i,D,p,b,c,F){const t=H,l=K,e=ee,o=q,d=P,y=Q,k=W,_=X,L=le,V=Y,$=Z,R=x,U=S("CustomDialog");return s(),m(I,{to:"body"},[n(U,{ref:"maxJsonDialog",dialogclass:"conditionSelectNormal"},{default:r(()=>[n(V,{style:{padding:"0"}},{default:r(()=>[n(R,{style:{height:"100%"}},{default:r(()=>[n(V,{class:"my-pageMain"},{default:r(()=>[te,(s(!0),v(E,null,g(i.andData,(T,f)=>(s(),v("div",{class:"tableContainer",key:f},[n(L,{data:T,style:{width:"100%"},border:""},{default:r(()=>[n(e,{prop:"field",label:"字段"},{default:r(a=>[n(l,{modelValue:a.row.field,"onUpdate:modelValue":u=>a.row.field=u,placeholder:"请选择"},{default:r(()=>[(s(!0),v(E,null,g(i.fieldList,u=>(s(),m(t,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),n(e,{prop:"logic",label:"逻辑"},{default:r(a=>[n(l,{modelValue:a.row.logic,"onUpdate:modelValue":u=>a.row.logic=u,placeholder:"请选择"},{default:r(()=>[(s(!0),v(E,null,g(i.getLogic(a.$index,f),u=>(s(),m(t,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),n(e,{prop:"type",label:"值类型"},{default:r(a=>[n(l,{modelValue:a.row.type,"onUpdate:modelValue":u=>a.row.type=u,placeholder:"请选择",onChange:u=>i.handleType(a.$index,f,a.row.type)},{default:r(()=>[(s(!0),v(E,null,g(i.getNewTypeList(a.$index,f),u=>(s(),m(t,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1024),n(e,{prop:"value",label:"值"},{default:r(a=>[i.getTypeIsChange(a.$index,f)&&a.row.type=="常量"?(s(),m(y,{key:0,model:a.row,rules:i.getRules(a.row.type),ref_for:!0,ref:"formList"},{default:r(()=>[n(d,{prop:"value"},{default:r(()=>[n(o,{text:"",modelValue:a.row.value,"onUpdate:modelValue":u=>a.row.value=u},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model","rules"])):C("",!0),a.row.type=="选项"?(s(),m(l,{key:1,modelValue:a.row.value,"onUpdate:modelValue":u=>a.row.value=u,filterable:"",placeholder:"请选择",multiple:i.getMultiple(a.$index,f)},{default:r(()=>[n(t,{label:"未选择",value:""}),(s(!0),v(E,null,g(i.getFiled(a.$index,f),(u,N)=>(s(),m(t,{key:N,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","multiple"])):C("",!0),a.row.type=="布尔"?(s(),m(k,{key:2,modelValue:a.row.value,"onUpdate:modelValue":u=>a.row.value=u},null,8,["modelValue","onUpdate:modelValue"])):C("",!0)]),_:2},1024),n(e,{fixed:"right",label:"操作",width:"100"},{default:r(a=>[n(_,{size:"small",type:"danger",onClick:j(u=>i.deleteRow(a.$index,f),["prevent"])},{default:r(()=>[w(" 删除 ")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1032,["data"]),n(_,{class:"mt-4",style:{width:"100%"},text:"",onClick:a=>i.onAddItem(f)},{default:r(()=>[w("+并条件")]),_:2},1032,["onClick"])]))),128)),n(_,{class:"mt-4",text:"",onClick:i.onOrItem},{default:r(()=>[w("+或条件")]),_:1},8,["onClick"])]),_:1}),n($,{class:"my-Footer",style:{height:"60px","padding-top":"10px","text-align":"right"}},{default:r(()=>[n(_,{type:"primary",onClick:i.saveJson},{default:r(()=>[w("保存")]),_:1},8,["onClick"]),n(_,{onClick:i.closeDialog},{default:r(()=>[w("关闭")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},512)])}var ie=A(ae,[["render",ue]]);export{ie as default};
diff --git a/playground/static/js/CustomDialog-b21dc247.js b/playground/static/js/CustomDialog-b21dc247.js
new file mode 100644
index 0000000..e7e87aa
--- /dev/null
+++ b/playground/static/js/CustomDialog-b21dc247.js
@@ -0,0 +1 @@
+import{_ as h,d as _,f as i,c as g,o as f,b as y,g as n,w as l,a as v,h as s,n as m,j as w,t as C,k as b,l as k,T as S,p as B,E as D,q as F,s as $}from"./main-15081b07.js";/* empty css */const E=_({props:{dialogclass:String,showDialog:Boolean,width:Number},emits:["open","close"],setup(e,{emit:o}){const t=i(!1),c=i(""),r=i(""),p=i(!1),a=g(()=>typeof e.width=="number"?e.width+"px":e);return{isshow:t,title:c,icon:r,isFullScreen:p,newWidth:a,init(d,u){c.value=d,r.value=u},show(){t.value=!0,o("open")},close(){t.value=!1,o("close")}}}}),N={key:0,class:"MyDialogFrame"},M={class:"pageContent",style:{height:"100%",padding:"0",overflow:"hidden","background-color":"transparent"}},T={class:"my-icon"},V={class:"my-title"},q={class:"my-toolbar"},z=s("em",{class:"iconfont icon-guanbi"},null,-1),H=s("div",{class:"myDialogMask"},null,-1);function W(e,o,t,c,r,p){const a=D,d=F,u=$;return f(),y(B,{to:"body"},[n(S,{name:"fade"},{default:l(()=>[e.isshow||e.showDialog?(f(),v("div",N,[s("div",{class:m(["MyDialogBody",[{fullscreen:e.isFullScreen},e.dialogclass]]),style:w(`width: ${e.newWidth}`)},[s("div",M,[n(u,{class:"my-pageContainer"},{default:l(()=>[n(d,{class:"my-pageHeader",style:{height:"45px"}},{default:l(()=>[s("div",T,[s("em",{class:m(["iconfont",e.icon])},null,2)]),s("div",V,C(e.title),1),s("div",q,[n(a,{class:"my-toolbtn",onClick:o[0]||(o[0]=j=>e.isFullScreen=!e.isFullScreen)},{default:l(()=>[s("em",{class:m(["iconfont icon",{"icon-suoxiao1":e.isFullScreen,"icon-quanping":!e.isFullScreen}])},null,2)]),_:1}),n(a,{class:"my-toolbtn",onClick:e.close},{default:l(()=>[z]),_:1},8,["onClick"])])]),_:1}),b(e.$slots,"default")]),_:3})])],6),H])):k("",!0)]),_:3})])}var I=h(E,[["render",W]]);export{I as default};
diff --git a/playground/static/js/Form-8dc0fdfa.js b/playground/static/js/Form-8dc0fdfa.js
new file mode 100644
index 0000000..08a3a40
--- /dev/null
+++ b/playground/static/js/Form-8dc0fdfa.js
@@ -0,0 +1 @@
+import{d as _,ag as g,c as C,f as u,R as y,S as v,af as D,b as k,w as t,y as m,o as F,g as a,A as r,E as V,M as h}from"./main-15081b07.js";import{S as w}from"./Server-5e479461.js";const E=_({components:{Dynamicform:()=>g(()=>import("./starfish-form-f6b8c393.js"),["static/js/starfish-form-f6b8c393.js","static/js/main-15081b07.js","static/css/index-03b6184a.css"])},setup(){const e=C(()=>w?.get("allFormList")),o=u(),l=u(),s=u({}),{proxy:i}=y();return v(()=>{o.value.init("表单预览","icon-biaodan"),o.value.isFullScreen=!0,o.value.show()}),{formResult:s,previewDialog:o,dynamicform:l,list:e,goBack(){i?.$router.go(-1)},getData(){window.VApp.$alert(s.value)},handleDialogClose(){i.goBack()},resetForm(){l.value.reset()},goValidate(){l.value.getValidate()},handleFormUpdate(){console.log("表单更新回调")}}}});function B(e,o,l,s,i,$){const c=m("Dynamicform"),n=V,d=h,p=m("CustomDialog");return F(),k(p,{dialogclass:"preview",ref:"previewDialog",onClose:e.handleDialogClose},{default:t(()=>[a(c,{modelValue:e.formResult,"onUpdate:modelValue":o[0]||(o[0]=f=>e.formResult=f),allFormList:e.list,onChange:e.handleFormUpdate,ref:"dynamicform",style:{height:"100%",overflow:"auto"}},null,8,["modelValue","allFormList","onChange"]),a(d,{class:"my-Footer",style:{"text-align":"center"}},{default:t(()=>[a(n,{onClick:e.goBack,type:"primary"},{default:t(()=>[r("关闭")]),_:1},8,["onClick"]),a(n,{type:"primary",onClick:e.resetForm},{default:t(()=>[r("重置表单")]),_:1},8,["onClick"]),a(n,{type:"primary",onClick:e.getData},{default:t(()=>[r("获取数据")]),_:1},8,["onClick"]),a(n,{type:"primary",onClick:e.goValidate},{default:t(()=>[r("校验")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["onClose"])}const L=D(E,[["render",B]]);export{L as default};
diff --git a/playground/static/js/Home-129e08e2.js b/playground/static/js/Home-129e08e2.js
new file mode 100644
index 0000000..00c4643
--- /dev/null
+++ b/playground/static/js/Home-129e08e2.js
@@ -0,0 +1 @@
+import{S as l}from"./Server-5e479461.js";import{d as f,f as o,R as i,af as p,a as u,g as c,y as m,o as d}from"./main-15081b07.js";const _=f({name:"App",setup(){const e=o(),{proxy:t}=i(),s=o({left:[],right:[],column:!1}),n=o(["form","json","global"]);return{starfishRef:e,menu:s,panel:n,goPreview(){t?.$router.push("/about")},onSave(a){l.set("allFormList",a)},goSave(){e.value.getJson()},setJson(){e.value.setJson([{ControlType:"Text",nameCn:"文本框",id:"fPgb7Xb_w6HXixCAyA4k4",layout:!1,data:{fieldName:"Text_n6SZkfztwMLHMr1A0GX5B",label:"标签名称",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",default:""}}])}}}});const v={class:"container"};function h(e,t,s,n,a,g){const r=m("starfish-editor");return d(),u("div",v,[c(r,{class:"starfish-editor",onSave:e.onSave,ref:"starfishRef",menu:e.menu,panel:e.panel},null,8,["onSave","menu","panel"])])}const C=p(_,[["render",h]]);export{C as default};
diff --git a/playground/static/js/Server-5e479461.js b/playground/static/js/Server-5e479461.js
new file mode 100644
index 0000000..0affd2a
--- /dev/null
+++ b/playground/static/js/Server-5e479461.js
@@ -0,0 +1 @@
+import{u as s}from"./main-15081b07.js";const e=s({allFormList:[]});class o{get(t){return e[t]}set(t,r){e[t]=r}}const n=new o;export{n as S};
diff --git a/playground/static/js/el-table-column-31b2aa92.js b/playground/static/js/el-table-column-31b2aa92.js
new file mode 100644
index 0000000..357c698
--- /dev/null
+++ b/playground/static/js/el-table-column-31b2aa92.js
@@ -0,0 +1,14 @@
+import{aK as Fl,aL as Al,aM as Hl,aN as ct,aO as Xe,aP as Tl,aQ as Tt,aR as kt,aS as kl,aT as $l,aU as Pl,aV as Bl,aW as Kl,aX as $t,aY as Qe,aZ as zl,a_ as Dl,a$ as Il,b0 as Vl,b1 as jl,b2 as yt,b3 as Yl,b4 as ql,b5 as Ul,b6 as Xl,b7 as Gl,b8 as _l,b9 as Le,ba as ke,bb as Ql,bc as Jl,g as fe,U as Pt,bd as bt,aq as Zl,be as Ct,aj as wt,R as le,f as x,bf as Z,c as P,ad as he,v as en,bg as pe,ae as Oe,bh as qe,bi as tn,bj as Bt,d as Fe,bk as We,V as Kt,a1 as ft,bl as ln,bm as nn,bn as on,bo as zt,y as ue,bp as Dt,o as G,b as Ne,w as Ce,a as de,h as oe,n as V,F as Je,r as St,A as It,t as Re,N as Ke,bq as Vt,S as Pe,br as sn,ac as ht,i as ye,bs as Ue,bt as rn,bu as ze,bv as $e,aJ as H,bw as Ae,bx as Et,by as xt,bz as an,bA as un,bB as dn,bC as cn,k as De,j as xe,l as be,O as Rt,bD as fn,bE as jt,bF as hn,bG as pn,bH as vn,aI as gn,ah as mn,bI as yn,bJ as bn}from"./main-15081b07.js";function Cn(e,t){return Fl(Al(e,t,Hl),e+"")}function wn(e,t,l){if(!ct(l))return!1;var n=typeof t;return(n=="number"?Xe(l)&&Tl(t,l.length):n=="string"&&t in l)?Tt(l[t],e):!1}function Sn(e){return Cn(function(t,l){var n=-1,r=l.length,a=r>1?l[r-1]:void 0,i=r>2?l[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,i&&wn(l[0],l[1],i)&&(a=r<3?void 0:a,r=1),t=Object(t);++nLe?window.requestAnimationFrame(e):setTimeout(e,16);var Nt=!1,we,tt,lt,Ie,Ve,Xt,je,nt,ot,st,Gt,rt,at,_t,Qt;function te(){if(!Nt){Nt=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),l=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(rt=/\b(iPhone|iP[ao]d)/.exec(e),at=/\b(iP[ao]d)/.exec(e),st=/Android/i.exec(e),_t=/FBAN\/\w+;/i.exec(e),Qt=/Mobile/i.exec(e),Gt=!!/Win64/.exec(e),t){we=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,we&&document&&document.documentMode&&(we=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);Xt=n?parseFloat(n[1])+4:we,tt=t[2]?parseFloat(t[2]):NaN,lt=t[3]?parseFloat(t[3]):NaN,Ie=t[4]?parseFloat(t[4]):NaN,Ie?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ve=t&&t[1]?parseFloat(t[1]):NaN):Ve=NaN}else we=tt=lt=Ve=Ie=NaN;if(l){if(l[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);je=r?parseFloat(r[1].replace("_",".")):!0}else je=!1;nt=!!l[2],ot=!!l[3]}else je=nt=ot=!1}}var it={ie:function(){return te()||we},ieCompatibilityMode:function(){return te()||Xt>we},ie64:function(){return it.ie()&&Gt},firefox:function(){return te()||tt},opera:function(){return te()||lt},webkit:function(){return te()||Ie},safari:function(){return it.webkit()},chrome:function(){return te()||Ve},windows:function(){return te()||nt},osx:function(){return te()||je},linux:function(){return te()||ot},iphone:function(){return te()||rt},mobile:function(){return te()||rt||at||st||Qt},nativeApp:function(){return te()||_t},android:function(){return te()||st},ipad:function(){return te()||at}},jn=it,Be=!!(typeof window<"u"&&window.document&&window.document.createElement),Yn={canUseDOM:Be,canUseWorkers:typeof Worker<"u",canUseEventListeners:Be&&!!(window.addEventListener||window.attachEvent),canUseViewport:Be&&!!window.screen,isInWorker:!Be},Jt=Yn,Zt;Jt.canUseDOM&&(Zt=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function qn(e,t){if(!Jt.canUseDOM||t&&!("addEventListener"in document))return!1;var l="on"+e,n=l in document;if(!n){var r=document.createElement("div");r.setAttribute(l,"return;"),n=typeof r[l]=="function"}return!n&&Zt&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var Un=qn,Lt=10,Ot=40,Wt=800;function el(e){var t=0,l=0,n=0,r=0;return"detail"in e&&(l=e.detail),"wheelDelta"in e&&(l=-e.wheelDelta/120),"wheelDeltaY"in e&&(l=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=l,l=0),n=t*Lt,r=l*Lt,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(e.deltaMode==1?(n*=Ot,r*=Ot):(n*=Wt,r*=Wt)),n&&!t&&(t=n<1?-1:1),r&&!l&&(l=r<1?-1:1),{spinX:t,spinY:l,pixelX:n,pixelY:r}}el.getEventType=function(){return jn.firefox()?"DOMMouseScroll":Un("wheel")?"wheel":"mousewheel"};var Xn=el;/**
+* Checks if an event is supported in the current execution environment.
+*
+* NOTE: This will not work correctly for non-generic events such as `change`,
+* `reset`, `load`, `error`, and `select`.
+*
+* Borrows from Modernizr.
+*
+* @param {string} eventNameSuffix Event name, e.g. "click".
+* @param {?boolean} capture Check if the capture phase is supported.
+* @return {boolean} True if the event is supported.
+* @internal
+* @license Modernizr 3.0.0pre (Custom Build) | MIT
+*/const Gn=function(e,t){if(e&&e.addEventListener){const l=function(n){const r=Xn(n);t&&Reflect.apply(t,this,[n,r])};e.addEventListener("wheel",l,{passive:!0})}},_n={beforeMount(e,t){Gn(e,t.value)}},_e=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Qn=function(e,t,l,n,r){if(!t&&!n&&(!r||Array.isArray(r)&&!r.length))return e;typeof l=="string"?l=l==="descending"?-1:1:l=l&&l<0?-1:1;const a=n?null:function(o,s){return r?(Array.isArray(r)||(r=[r]),r.map(u=>typeof u=="string"?Ct(o,u):u(o,s,e))):(t!=="$key"&&wt(o)&&"$value"in o&&(o=o.$value),[wt(o)?Ct(o,t):o])},i=function(o,s){if(n)return n(o.value,s.value);for(let u=0,d=o.key.length;us.key[u])return 1}return 0};return e.map((o,s)=>({value:o,index:s,key:a?a(o,s):null})).sort((o,s)=>{let u=i(o,s);return u||(u=o.index-s.index),u*+l}).map(o=>o.value)},tl=function(e,t){let l=null;return e.columns.forEach(n=>{n.id===t&&(l=n)}),l},Jn=function(e,t){let l=null;for(let n=0;n{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const l=t.split(".");let n=e;for(const r of l)n=n[r];return`${n}`}else if(typeof t=="function")return t.call(null,e)},Se=function(e,t){const l={};return(e||[]).forEach((n,r)=>{l[_(n,t)]={row:n,index:r}}),l};function Zn(e,t){const l={};let n;for(n in e)l[n]=e[n];for(n in t)if(ke(t,n)){const r=t[n];typeof r<"u"&&(l[n]=r)}return l}function pt(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function ll(e){return e===""||e!==void 0&&(e=pt(e),Number.isNaN(e)&&(e=80)),e}function eo(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function to(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,l)=>(...n)=>t(l(...n)))}function He(e,t,l){let n=!1;const r=e.indexOf(t),a=r!==-1,i=o=>{o==="add"?e.push(t):e.splice(r,1),n=!0,Zl(t.children)&&t.children.forEach(s=>{He(e,s,l??!a)})};return Jl(l)?l&&!a?i("add"):!l&&a&&i("remove"):i(a?"remove":"add"),n}function lo(e,t,l="children",n="hasChildren"){const r=i=>!(Array.isArray(i)&&i.length);function a(i,o,s){t(i,o,s),o.forEach(u=>{if(u[n]){t(u,null,s+1);return}const d=u[l];r(d)||a(u,d,s+1)})}e.forEach(i=>{if(i[n]){t(i,null,0);return}const o=i[l];r(o)||a(i,o,0)})}let ie=null;function no(e,t,l,n){if(ie?.trigger===l)return;ie?.();const r=n?.refs.tableWrapper,a=r?.dataset.prefix,i={strategy:"fixed",...e.popperOptions},o=fe(Pt,{content:t,virtualTriggering:!0,virtualRef:l,appendTo:r,placement:"top",transition:"none",offset:0,hideAfter:0,...e,popperOptions:i,onHide:()=>{ie?.()}});o.appContext={...n.appContext,...n};const s=document.createElement("div");bt(o,s),o.component.exposed.onOpen();const u=r?.querySelector(`.${a}-scrollbar__wrap`);ie=()=>{bt(null,s),u?.removeEventListener("scroll",ie),ie=null},ie.trigger=l,u?.addEventListener("scroll",ie)}function nl(e){return e.children?zn(e.children,nl):[e]}function Ft(e,t){return e+t.colSpan}const ol=(e,t,l,n)=>{let r=0,a=e;const i=l.states.columns.value;if(n){const s=nl(n[e]);r=i.slice(0,i.indexOf(s[0])).reduce(Ft,0),a=r+s.reduce(Ft,0)-1}else r=e;let o;switch(t){case"left":a=i.length-l.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:a=i.length-l.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:r,after:a}:{}},vt=(e,t,l,n,r,a=0)=>{const i=[],{direction:o,start:s,after:u}=ol(t,l,n,r);if(o){const d=o==="left";i.push(`${e}-fixed-column--${o}`),d&&u+a===n.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):!d&&s-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&i.push("is-first-column")}return i};function At(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const gt=(e,t,l,n)=>{const{direction:r,start:a=0,after:i=0}=ol(e,t,l,n);if(!r)return;const o={},s=r==="left",u=l.states.columns.value;return s?o.left=u.slice(0,a).reduce(At,0):o.right=u.slice(i+1).reverse().reduce(At,0),o},Me=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function oo(e){const t=le(),l=x(!1),n=x([]);return{updateExpandRows:()=>{const s=e.data.value||[],u=e.rowKey.value;if(l.value)n.value=s.slice();else if(u){const d=Se(n.value,u);n.value=s.reduce((f,p)=>{const E=_(p,u);return d[E]&&f.push(p),f},[])}else n.value=[]},toggleRowExpansion:(s,u)=>{He(n.value,s,u)&&t.emit("expand-change",s,n.value.slice())},setExpandRowKeys:s=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,f=Se(u,d);n.value=s.reduce((p,E)=>{const h=f[E];return h&&p.push(h.row),p},[])},isRowExpanded:s=>{const u=e.rowKey.value;return u?!!Se(n.value,u)[_(s,u)]:n.value.includes(s)},states:{expandRows:n,defaultExpandAll:l}}}function so(e){const t=le(),l=x(null),n=x(null),r=u=>{t.store.assertRowKey(),l.value=u,i(u)},a=()=>{l.value=null},i=u=>{const{data:d,rowKey:f}=e;let p=null;f.value&&(p=(Z(d)||[]).find(E=>_(E,f.value)===u)),n.value=p,t.emit("current-change",n.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:a,setCurrentRowByKey:i,updateCurrentRow:u=>{const d=n.value;if(u&&u!==d){n.value=u,t.emit("current-change",n.value,d);return}!u&&d&&(n.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=e.rowKey.value,d=e.data.value||[],f=n.value;if(!d.includes(f)&&f){if(u){const p=_(f,u);i(p)}else n.value=null;n.value===null&&t.emit("current-change",null,f)}else l.value&&(i(l.value),a())},states:{_currentRowKey:l,currentRow:n}}}function ro(e){const t=x([]),l=x({}),n=x(16),r=x(!1),a=x({}),i=x("hasChildren"),o=x("children"),s=le(),u=P(()=>{if(!e.rowKey.value)return{};const w=e.data.value||[];return f(w)}),d=P(()=>{const w=e.rowKey.value,v=Object.keys(a.value),y={};return v.length&&v.forEach(c=>{if(a.value[c].length){const g={children:[]};a.value[c].forEach(R=>{const S=_(R,w);g.children.push(S),R[i.value]&&!y[S]&&(y[S]={children:[]})}),y[c]=g}}),y}),f=w=>{const v=e.rowKey.value,y={};return lo(w,(c,g,R)=>{const S=_(c,v);Array.isArray(g)?y[S]={children:g.map(N=>_(N,v)),level:R}:r.value&&(y[S]={children:[],lazy:!0,level:R})},o.value,i.value),y},p=(w=!1,v=(y=>(y=s.store)==null?void 0:y.states.defaultExpandAll.value)())=>{var y;const c=u.value,g=d.value,R=Object.keys(c),S={};if(R.length){const N=Z(l),W=[],K=(M,B)=>{if(w)return t.value?v||t.value.includes(B):!!(v||M?.expanded);{const D=v||t.value&&t.value.includes(B);return!!(M?.expanded||D)}};R.forEach(M=>{const B=N[M],D={...c[M]};if(D.expanded=K(B,M),D.lazy){const{loaded:q=!1,loading:U=!1}=B||{};D.loaded=!!q,D.loading=!!U,W.push(M)}S[M]=D});const $=Object.keys(g);r.value&&$.length&&W.length&&$.forEach(M=>{const B=N[M],D=g[M].children;if(W.includes(M)){if(S[M].children.length!==0)throw new Error("[ElTable]children must be an empty array.");S[M].children=D}else{const{loaded:q=!1,loading:U=!1}=B||{};S[M]={lazy:!0,loaded:!!q,loading:!!U,expanded:K(B,M),children:D,level:""}}})}l.value=S,(y=s.store)==null||y.updateTableScrollY()};he(()=>t.value,()=>{p(!0)}),he(()=>u.value,()=>{p()}),he(()=>d.value,()=>{p()});const E=w=>{t.value=w,p()},h=(w,v)=>{s.store.assertRowKey();const y=e.rowKey.value,c=_(w,y),g=c&&l.value[c];if(c&&g&&"expanded"in g){const R=g.expanded;v=typeof v>"u"?!g.expanded:v,l.value[c].expanded=v,R!==v&&s.emit("expand-change",w,v),s.store.updateTableScrollY()}},C=w=>{s.store.assertRowKey();const v=e.rowKey.value,y=_(w,v),c=l.value[y];r.value&&c&&"loaded"in c&&!c.loaded?m(w,y,c):h(w,void 0)},m=(w,v,y)=>{const{load:c}=s.props;c&&!l.value[v].loaded&&(l.value[v].loading=!0,c(w,y,g=>{if(!Array.isArray(g))throw new TypeError("[ElTable] data must be an array");l.value[v].loading=!1,l.value[v].loaded=!0,l.value[v].expanded=!0,g.length&&(a.value[v]=g),s.emit("expand-change",w,!0)}))};return{loadData:m,loadOrToggle:C,toggleTreeExpansion:h,updateTreeExpandKeys:E,updateTreeData:p,normalize:f,states:{expandRowKeys:t,treeData:l,indent:n,lazy:r,lazyTreeNodeMap:a,lazyColumnIdentifier:i,childrenColumnName:o}}}const ao=(e,t)=>{const l=t.sortingColumn;return!l||typeof l.sortable=="string"?e:Qn(e,t.sortProp,t.sortOrder,l.sortMethod,l.sortBy)},Ye=e=>{const t=[];return e.forEach(l=>{l.children&&l.children.length>0?t.push.apply(t,Ye(l.children)):t.push(l)}),t};function io(){var e;const t=le(),{size:l}=en((e=t.proxy)==null?void 0:e.$props),n=x(null),r=x([]),a=x([]),i=x(!1),o=x([]),s=x([]),u=x([]),d=x([]),f=x([]),p=x([]),E=x([]),h=x([]),C=[],m=x(0),w=x(0),v=x(0),y=x(!1),c=x([]),g=x(!1),R=x(!1),S=x(null),N=x({}),W=x(null),K=x(null),$=x(null),M=x(null),B=x(null);he(r,()=>t.state&&se(!1),{deep:!0});const D=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},q=O=>{var F;(F=O.children)==null||F.forEach(T=>{T.fixed=O.fixed,q(T)})},U=()=>{o.value.forEach(z=>{q(z)}),d.value=o.value.filter(z=>z.fixed===!0||z.fixed==="left"),f.value=o.value.filter(z=>z.fixed==="right"),d.value.length>0&&o.value[0]&&o.value[0].type==="selection"&&!o.value[0].fixed&&(o.value[0].fixed=!0,d.value.unshift(o.value[0]));const O=o.value.filter(z=>!z.fixed);s.value=[].concat(d.value).concat(O).concat(f.value);const F=Ye(O),T=Ye(d.value),A=Ye(f.value);m.value=F.length,w.value=T.length,v.value=A.length,u.value=[].concat(T).concat(F).concat(A),i.value=d.value.length>0||f.value.length>0},se=(O,F=!1)=>{O&&U(),F?t.state.doLayout():t.state.debouncedUpdateLayout()},X=O=>c.value.includes(O),b=()=>{y.value=!1,c.value.length&&(c.value=[],t.emit("selection-change",[]))},L=()=>{let O;if(n.value){O=[];const F=Se(c.value,n.value),T=Se(r.value,n.value);for(const A in F)ke(F,A)&&!T[A]&&O.push(F[A].row)}else O=c.value.filter(F=>!r.value.includes(F));if(O.length){const F=c.value.filter(T=>!O.includes(T));c.value=F,t.emit("selection-change",F.slice())}},k=()=>(c.value||[]).slice(),I=(O,F=void 0,T=!0)=>{if(He(c.value,O,F)){const z=(c.value||[]).slice();T&&t.emit("select",z,O),t.emit("selection-change",z)}},j=()=>{var O,F;const T=R.value?!y.value:!(y.value||c.value.length);y.value=T;let A=!1,z=0;const Q=(F=(O=t?.store)==null?void 0:O.states)==null?void 0:F.rowKey.value;r.value.forEach((ae,Ee)=>{const me=Ee+z;S.value?S.value.call(null,ae,me)&&He(c.value,ae,T)&&(A=!0):He(c.value,ae,T)&&(A=!0),z+=J(_(ae,Q))}),A&&t.emit("selection-change",c.value?c.value.slice():[]),t.emit("select-all",c.value)},Y=()=>{const O=Se(c.value,n.value);r.value.forEach(F=>{const T=_(F,n.value),A=O[T];A&&(c.value[A.index]=F)})},ne=()=>{var O,F,T;if(((O=r.value)==null?void 0:O.length)===0){y.value=!1;return}let A;n.value&&(A=Se(c.value,n.value));const z=function(me){return A?!!A[_(me,n.value)]:c.value.includes(me)};let Q=!0,ae=0,Ee=0;for(let me=0,Ll=(r.value||[]).length;me{var F;if(!t||!t.store)return 0;const{treeData:T}=t.store.states;let A=0;const z=(F=T.value[O])==null?void 0:F.children;return z&&(A+=z.length,z.forEach(Q=>{A+=J(Q)})),A},ge=(O,F)=>{Array.isArray(O)||(O=[O]);const T={};return O.forEach(A=>{N.value[A.id]=F,T[A.columnKey||A.id]=F}),T},ee=(O,F,T)=>{K.value&&K.value!==O&&(K.value.order=null),K.value=O,$.value=F,M.value=T},re=()=>{let O=Z(a);Object.keys(N.value).forEach(F=>{const T=N.value[F];if(!T||T.length===0)return;const A=tl({columns:u.value},F);A&&A.filterMethod&&(O=O.filter(z=>T.some(Q=>A.filterMethod.call(null,Q,z,A))))}),W.value=O},ce=()=>{r.value=ao(W.value,{sortingColumn:K.value,sortProp:$.value,sortOrder:M.value})},cl=(O=void 0)=>{O&&O.filter||re(),ce()},fl=O=>{const{tableHeaderRef:F}=t.refs;if(!F)return;const T=Object.assign({},F.filterPanels),A=Object.keys(T);if(A.length)if(typeof O=="string"&&(O=[O]),Array.isArray(O)){const z=O.map(Q=>Jn({columns:u.value},Q));A.forEach(Q=>{const ae=z.find(Ee=>Ee.id===Q);ae&&(ae.filteredValue=[])}),t.store.commit("filterChange",{column:z,values:[],silent:!0,multi:!0})}else A.forEach(z=>{const Q=u.value.find(ae=>ae.id===z);Q&&(Q.filteredValue=[])}),N.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},hl=()=>{K.value&&(ee(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:pl,toggleRowExpansion:mt,updateExpandRows:vl,states:gl,isRowExpanded:ml}=oo({data:r,rowKey:n}),{updateTreeExpandKeys:yl,toggleTreeExpansion:bl,updateTreeData:Cl,loadOrToggle:wl,states:Sl}=ro({data:r,rowKey:n}),{updateCurrentRowData:El,updateCurrentRow:xl,setCurrentRowKey:Rl,states:Nl}=so({data:r,rowKey:n});return{assertRowKey:D,updateColumns:U,scheduleLayout:se,isSelected:X,clearSelection:b,cleanSelection:L,getSelectionRows:k,toggleRowSelection:I,_toggleAllSelection:j,toggleAllSelection:null,updateSelectionByRowKey:Y,updateAllSelected:ne,updateFilters:ge,updateCurrentRow:xl,updateSort:ee,execFilter:re,execSort:ce,execQuery:cl,clearFilter:fl,clearSort:hl,toggleRowExpansion:mt,setExpandRowKeysAdapter:O=>{pl(O),yl(O)},setCurrentRowKey:Rl,toggleRowExpansionAdapter:(O,F)=>{u.value.some(({type:A})=>A==="expand")?mt(O,F):bl(O,F)},isRowExpanded:ml,updateExpandRows:vl,updateCurrentRowData:El,loadOrToggle:wl,updateTreeData:Cl,states:{tableSize:l,rowKey:n,data:r,_data:a,isComplex:i,_columns:o,originColumns:s,columns:u,fixedColumns:d,rightFixedColumns:f,leafColumns:p,fixedLeafColumns:E,rightFixedLeafColumns:h,updateOrderFns:C,leafColumnsLength:m,fixedLeafColumnsLength:w,rightFixedLeafColumnsLength:v,isAllSelected:y,selection:c,reserveSelection:g,selectOnIndeterminate:R,selectable:S,filters:N,filteredData:W,sortingColumn:K,sortProp:$,sortOrder:M,hoverRow:B,...gl,...Sl,...Nl}}}function ut(e,t){return e.map(l=>{var n;return l.id===t.id?t:((n=l.children)!=null&&n.length&&(l.children=ut(l.children,t)),l)})}function dt(e){e.forEach(t=>{var l,n;t.no=(l=t.getColumnIndex)==null?void 0:l.call(t),(n=t.children)!=null&&n.length&&dt(t.children)}),e.sort((t,l)=>t.no-l.no)}function uo(){const e=le(),t=io();return{ns:pe("table"),...t,mutations:{setData(i,o){const s=Z(i._data)!==o;i.data.value=o,i._data.value=o,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),Z(i.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):s?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(i,o,s,u){const d=Z(i._columns);let f=[];s?(s&&!s.children&&(s.children=[]),s.children.push(o),f=ut(d,s)):(d.push(o),f=d),dt(f),i._columns.value=f,i.updateOrderFns.push(u),o.type==="selection"&&(i.selectable.value=o.selectable,i.reserveSelection.value=o.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(i,o){var s;((s=o.getColumnIndex)==null?void 0:s.call(o))!==o.no&&(dt(i._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(i,o,s,u){const d=Z(i._columns)||[];if(s)s.children.splice(s.children.findIndex(p=>p.id===o.id),1),Oe(()=>{var p;((p=s.children)==null?void 0:p.length)===0&&delete s.children}),i._columns.value=ut(d,s);else{const p=d.indexOf(o);p>-1&&(d.splice(p,1),i._columns.value=d)}const f=i.updateOrderFns.indexOf(u);f>-1&&i.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(i,o){const{prop:s,order:u,init:d}=o;if(s){const f=Z(i.columns).find(p=>p.property===s);f&&(f.order=u,e.store.updateSort(f,s,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(i,o){const{sortingColumn:s,sortProp:u,sortOrder:d}=i,f=Z(s),p=Z(u),E=Z(d);E===null&&(i.sortingColumn.value=null,i.sortProp.value=null);const h={filter:!0};e.store.execQuery(h),(!o||!(o.silent||o.init))&&e.emit("sort-change",{column:f,prop:p,order:E}),e.store.updateTableScrollY()},filterChange(i,o){const{column:s,values:u,silent:d}=o,f=e.store.updateFilters(s,u);e.store.execQuery(),d||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(i,o){e.store.toggleRowSelection(o),e.store.updateAllSelected()},setHoverRow(i,o){i.hoverRow.value=o},setCurrentRow(i,o){e.store.updateCurrentRow(o)}},commit:function(i,...o){const s=e.store.mutations;if(s[i])s[i].apply(e,[e.store.states].concat(o));else throw new Error(`Action not found: ${i}`)},updateTableScrollY:function(){Oe(()=>e.layout.updateScrollY.apply(e.layout))}}}const Te={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function co(e,t){if(!e)throw new Error("Table is required.");const l=uo();return l.toggleAllSelection=qe(l._toggleAllSelection,10),Object.keys(Te).forEach(n=>{sl(rl(t,n),n,l)}),fo(l,t),l}function fo(e,t){Object.keys(Te).forEach(l=>{he(()=>rl(t,l),n=>{sl(n,l,e)})})}function sl(e,t,l){let n=e,r=Te[t];typeof Te[t]=="object"&&(r=r.key,n=n||Te[t].default),l.states[r].value=n}function rl(e,t){if(t.includes(".")){const l=t.split(".");let n=e;return l.forEach(r=>{n=n[r]}),n}else return e[t]}class ho{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=x(null),this.scrollX=x(!1),this.scrollY=x(!1),this.bodyWidth=x(null),this.fixedWidth=x(null),this.rightFixedWidth=x(null),this.gutterWidth=0;for(const l in t)ke(t,l)&&(tn(this[l])?this[l].value=t[l]:this[l]=t[l]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const l=this.table.refs.scrollBarRef;if(this.table.vnode.el&&l?.wrapRef){let n=!0;const r=this.scrollY.value;return n=l.wrapRef.scrollHeight>l.wrapRef.clientHeight,this.scrollY.value=n,r!==n}return!1}setHeight(t,l="height"){if(!Le)return;const n=this.table.vnode.el;if(t=eo(t),this.height.value=Number(t),!n&&(t||t===0))return Oe(()=>this.setHeight(t,l));typeof t=="number"?(n.style[l]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(n.style[l]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let l=t;for(;l.tagName!=="DIV";){if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}updateColumnsWidth(){if(!Le)return;const t=this.fit,l=this.table.vnode.el.clientWidth;let n=0;const r=this.getFlattenColumns(),a=r.filter(s=>typeof s.width!="number");if(r.forEach(s=>{typeof s.width=="number"&&s.realWidth&&(s.realWidth=null)}),a.length>0&&t){if(r.forEach(s=>{n+=Number(s.width||s.minWidth||80)}),n<=l){this.scrollX.value=!1;const s=l-n;if(a.length===1)a[0].realWidth=Number(a[0].minWidth||80)+s;else{const u=a.reduce((p,E)=>p+Number(E.minWidth||80),0),d=s/u;let f=0;a.forEach((p,E)=>{if(E===0)return;const h=Math.floor(Number(p.minWidth||80)*d);f+=h,p.realWidth=Number(p.minWidth||80)+h}),a[0].realWidth=Number(a[0].minWidth||80)+s-f}}else this.scrollX.value=!0,a.forEach(s=>{s.realWidth=Number(s.minWidth)});this.bodyWidth.value=Math.max(n,l),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach(s=>{!s.width&&!s.minWidth?s.realWidth=80:s.realWidth=Number(s.width||s.minWidth),n+=s.realWidth}),this.scrollX.value=n>l,this.bodyWidth.value=n;const i=this.store.states.fixedColumns.value;if(i.length>0){let s=0;i.forEach(u=>{s+=Number(u.realWidth||u.width)}),this.fixedWidth.value=s}const o=this.store.states.rightFixedColumns.value;if(o.length>0){let s=0;o.forEach(u=>{s+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=s}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const l=this.observers.indexOf(t);l!==-1&&this.observers.splice(l,1)}notifyObservers(t){this.observers.forEach(n=>{var r,a;switch(t){case"columns":(r=n.state)==null||r.onColumnsChange(this);break;case"scrollable":(a=n.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:po}=We,vo=Fe({name:"ElTableFilterPanel",components:{ElCheckbox:We,ElCheckboxGroup:po,ElScrollbar:Kt,ElTooltip:Pt,ElIcon:ft,ArrowDown:ln,ArrowUp:nn},directives:{ClickOutside:on},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=le(),{t:l}=zt(),n=pe("table-filter"),r=t?.parent;r.filterPanels.value[e.column.id]||(r.filterPanels.value[e.column.id]=t);const a=x(!1),i=x(null),o=P(()=>e.column&&e.column.filters),s=P(()=>e.column.filterClassName?`${n.b()} ${e.column.filterClassName}`:n.b()),u=P({get:()=>{var g;return(((g=e.column)==null?void 0:g.filteredValue)||[])[0]},set:g=>{d.value&&(typeof g<"u"&&g!==null?d.value.splice(0,1,g):d.value.splice(0,1))}}),d=P({get(){return e.column?e.column.filteredValue||[]:[]},set(g){e.column&&e.upDataColumn("filteredValue",g)}}),f=P(()=>e.column?e.column.filterMultiple:!0),p=g=>g.value===u.value,E=()=>{a.value=!1},h=g=>{g.stopPropagation(),a.value=!a.value},C=()=>{a.value=!1},m=()=>{y(d.value),E()},w=()=>{d.value=[],y(d.value),E()},v=g=>{u.value=g,y(typeof g<"u"&&g!==null?d.value:[]),E()},y=g=>{e.store.commit("filterChange",{column:e.column,values:g}),e.store.updateAllSelected()};he(a,g=>{e.column&&e.upDataColumn("filterOpened",g)},{immediate:!0});const c=P(()=>{var g,R;return(R=(g=i.value)==null?void 0:g.popperRef)==null?void 0:R.contentRef});return{tooltipVisible:a,multiple:f,filterClassName:s,filteredValue:d,filterValue:u,filters:o,handleConfirm:m,handleReset:w,handleSelect:v,isActive:p,t:l,ns:n,showFilterPanel:h,hideFilterPanel:C,popperPaneRef:c,tooltip:i}}}),go={key:0},mo=["disabled"],yo=["label","onClick"];function bo(e,t,l,n,r,a){const i=ue("el-checkbox"),o=ue("el-checkbox-group"),s=ue("el-scrollbar"),u=ue("arrow-up"),d=ue("arrow-down"),f=ue("el-icon"),p=ue("el-tooltip"),E=Dt("click-outside");return G(),Ne(p,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:""},{content:Ce(()=>[e.multiple?(G(),de("div",go,[oe("div",{class:V(e.ns.e("content"))},[fe(s,{"wrap-class":e.ns.e("wrap")},{default:Ce(()=>[fe(o,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=h=>e.filteredValue=h),class:V(e.ns.e("checkbox-group"))},{default:Ce(()=>[(G(!0),de(Je,null,St(e.filters,h=>(G(),Ne(i,{key:h.value,value:h.value},{default:Ce(()=>[It(Re(h.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),oe("div",{class:V(e.ns.e("bottom"))},[oe("button",{class:V({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...h)=>e.handleConfirm&&e.handleConfirm(...h))},Re(e.t("el.table.confirmFilter")),11,mo),oe("button",{type:"button",onClick:t[2]||(t[2]=(...h)=>e.handleReset&&e.handleReset(...h))},Re(e.t("el.table.resetFilter")),1)],2)])):(G(),de("ul",{key:1,class:V(e.ns.e("list"))},[oe("li",{class:V([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=h=>e.handleSelect(null))},Re(e.t("el.table.clearFilter")),3),(G(!0),de(Je,null,St(e.filters,h=>(G(),de("li",{key:h.value,class:V([e.ns.e("list-item"),e.ns.is("active",e.isActive(h))]),label:h.value,onClick:C=>e.handleSelect(h.value)},Re(h.text),11,yo))),128))],2))]),default:Ce(()=>[Ke((G(),de("span",{class:V([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...h)=>e.showFilterPanel&&e.showFilterPanel(...h))},[fe(f,null,{default:Ce(()=>[e.column.filterOpened?(G(),Ne(u,{key:0})):(G(),Ne(d,{key:1}))]),_:1})],2)),[[E,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var Co=Bt(vo,[["render",bo],["__file","filter-panel.vue"]]);function al(e){const t=le();Vt(()=>{l.value.addObserver(t)}),Pe(()=>{n(l.value),r(l.value)}),sn(()=>{n(l.value),r(l.value)}),ht(()=>{l.value.removeObserver(t)});const l=P(()=>{const a=e.layout;if(!a)throw new Error("Can not find table layout.");return a}),n=a=>{var i;const o=((i=e.vnode.el)==null?void 0:i.querySelectorAll("colgroup > col"))||[];if(!o.length)return;const s=a.getFlattenColumns(),u={};s.forEach(d=>{u[d.id]=d});for(let d=0,f=o.length;d{var i,o;const s=((i=e.vnode.el)==null?void 0:i.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=s.length;d{C.stopPropagation()},a=(C,m)=>{!m.filters&&m.sortable?h(C,m,!1):m.filterable&&!m.sortable&&r(C),n?.emit("header-click",m,C)},i=(C,m)=>{n?.emit("header-contextmenu",m,C)},o=x(null),s=x(!1),u=x({}),d=(C,m)=>{if(Le&&!(m.children&&m.children.length>0)&&o.value&&e.border){s.value=!0;const w=n;t("set-drag-visible",!0);const y=(w?.vnode.el).getBoundingClientRect().left,c=l.vnode.el.querySelector(`th.${m.id}`),g=c.getBoundingClientRect(),R=g.left-y+30;Ue(c,"noclick"),u.value={startMouseLeft:C.clientX,startLeft:g.right-y,startColumnLeft:g.left-y,tableLeft:y};const S=w?.refs.resizeProxy;S.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const N=K=>{const $=K.clientX-u.value.startMouseLeft,M=u.value.startLeft+$;S.style.left=`${Math.max(R,M)}px`},W=()=>{if(s.value){const{startColumnLeft:K,startLeft:$}=u.value,B=Number.parseInt(S.style.left,10)-K;m.width=m.realWidth=B,w?.emit("header-dragend",m.width,$-K,m,C),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",s.value=!1,o.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",W),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{$e(c,"noclick")},0)};document.addEventListener("mousemove",N),document.addEventListener("mouseup",W)}},f=(C,m)=>{if(m.children&&m.children.length>0)return;const w=C.target;if(!rn(w))return;const v=w?.closest("th");if(!(!m||!m.resizable)&&!s.value&&e.border){const y=v.getBoundingClientRect(),c=document.body.style;y.width>12&&y.right-C.pageX<8?(c.cursor="col-resize",ze(v,"is-sortable")&&(v.style.cursor="col-resize"),o.value=m):s.value||(c.cursor="",ze(v,"is-sortable")&&(v.style.cursor="pointer"),o.value=null)}},p=()=>{Le&&(document.body.style.cursor="")},E=({order:C,sortOrders:m})=>{if(C==="")return m[0];const w=m.indexOf(C||null);return m[w>m.length-2?0:w+1]},h=(C,m,w)=>{var v;C.stopPropagation();const y=m.order===w?null:w||E(m),c=(v=C.target)==null?void 0:v.closest("th");if(c&&ze(c,"noclick")){$e(c,"noclick");return}if(!m.sortable)return;const g=e.store.states;let R=g.sortProp.value,S;const N=g.sortingColumn.value;(N!==m||N===m&&N.order===null)&&(N&&(N.order=null),g.sortingColumn.value=m,R=m.property),y?S=m.order=y:S=m.order=null,g.sortProp.value=R,g.sortOrder.value=S,n?.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:i,handleMouseDown:d,handleMouseMove:f,handleMouseOut:p,handleSortClick:h,handleFilterClick:r}}function So(e){const t=ye(ve),l=pe("table");return{getHeaderRowStyle:o=>{const s=t?.props.headerRowStyle;return typeof s=="function"?s.call(null,{rowIndex:o}):s},getHeaderRowClass:o=>{const s=[],u=t?.props.headerRowClassName;return typeof u=="string"?s.push(u):typeof u=="function"&&s.push(u.call(null,{rowIndex:o})),s.join(" ")},getHeaderCellStyle:(o,s,u,d)=>{var f;let p=(f=t?.props.headerCellStyle)!=null?f:{};typeof p=="function"&&(p=p.call(null,{rowIndex:o,columnIndex:s,row:u,column:d}));const E=gt(s,d.fixed,e.store,u);return Me(E,"left"),Me(E,"right"),Object.assign({},p,E)},getHeaderCellClass:(o,s,u,d)=>{const f=vt(l.b(),s,d.fixed,e.store,u),p=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||p.push("is-leaf"),d.sortable&&p.push("is-sortable");const E=t?.props.headerCellClassName;return typeof E=="string"?p.push(E):typeof E=="function"&&p.push(E.call(null,{rowIndex:o,columnIndex:s,row:u,column:d})),p.push(l.e("cell")),p.filter(h=>!!h).join(" ")}}}const il=e=>{const t=[];return e.forEach(l=>{l.children?(t.push(l),t.push.apply(t,il(l.children))):t.push(l)}),t},Eo=e=>{let t=1;const l=(a,i)=>{if(i&&(a.level=i.level+1,t{l(s,a),o+=s.colSpan}),a.colSpan=o}else a.colSpan=1};e.forEach(a=>{a.level=1,l(a,void 0)});const n=[];for(let a=0;a{a.children?(a.rowSpan=1,a.children.forEach(i=>i.isSubColumn=!0)):a.rowSpan=t-a.level+1,n[a.level-1].push(a)}),n};function xo(e){const t=ye(ve),l=P(()=>Eo(e.store.states.originColumns.value));return{isGroup:P(()=>{const a=l.value.length>1;return a&&t&&(t.state.isGroup.value=!0),a}),toggleAllSelection:a=>{a.stopPropagation(),t?.store.commit("toggleAllSelection")},columnRows:l}}var Ro=Fe({name:"ElTableHeader",components:{ElCheckbox:We},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const l=le(),n=ye(ve),r=pe("table"),a=x({}),{onColumnsChange:i,onScrollableChange:o}=al(n);Pe(async()=>{await Oe(),await Oe();const{prop:R,order:S}=e.defaultSort;n?.store.commit("sort",{prop:R,order:S,init:!0})});const{handleHeaderClick:s,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:f,handleMouseOut:p,handleSortClick:E,handleFilterClick:h}=wo(e,t),{getHeaderRowStyle:C,getHeaderRowClass:m,getHeaderCellStyle:w,getHeaderCellClass:v}=So(e),{isGroup:y,toggleAllSelection:c,columnRows:g}=xo(e);return l.state={onColumnsChange:i,onScrollableChange:o},l.filterPanels=a,{ns:r,filterPanels:a,onColumnsChange:i,onScrollableChange:o,columnRows:g,getHeaderRowClass:m,getHeaderRowStyle:C,getHeaderCellClass:v,getHeaderCellStyle:w,handleHeaderClick:s,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:f,handleMouseOut:p,handleSortClick:E,handleFilterClick:h,isGroup:y,toggleAllSelection:c}},render(){const{ns:e,isGroup:t,columnRows:l,getHeaderCellStyle:n,getHeaderCellClass:r,getHeaderRowClass:a,getHeaderRowStyle:i,handleHeaderClick:o,handleHeaderContextMenu:s,handleMouseDown:u,handleMouseMove:d,handleSortClick:f,handleMouseOut:p,store:E,$parent:h}=this;let C=1;return H("thead",{class:{[e.is("group")]:t}},l.map((m,w)=>H("tr",{class:a(w),key:w,style:i(w)},m.map((v,y)=>(v.rowSpan>C&&(C=v.rowSpan),H("th",{class:r(w,y,m,v),colspan:v.colSpan,key:`${v.id}-thead`,rowspan:v.rowSpan,style:n(w,y,m,v),onClick:c=>o(c,v),onContextmenu:c=>s(c,v),onMousedown:c=>u(c,v),onMousemove:c=>d(c,v),onMouseout:p},[H("div",{class:["cell",v.filteredValue&&v.filteredValue.length>0?"highlight":""]},[v.renderHeader?v.renderHeader({column:v,$index:y,store:E,_self:h}):v.label,v.sortable&&H("span",{onClick:c=>f(c,v),class:"caret-wrapper"},[H("i",{onClick:c=>f(c,v,"ascending"),class:"sort-caret ascending"}),H("i",{onClick:c=>f(c,v,"descending"),class:"sort-caret descending"})]),v.filterable&&H(Co,{store:E,placement:v.filterPlacement||"bottom-start",column:v,upDataColumn:(c,g)=>{v[c]=g}})])]))))))}});function No(e){const t=ye(ve),l=x(""),n=x(H("div")),r=(h,C,m)=>{var w;const v=t,y=_e(h);let c;const g=(w=v?.vnode.el)==null?void 0:w.dataset.prefix;y&&(c=Mt({columns:e.store.states.columns.value},y,g),c&&v?.emit(`cell-${m}`,C,c,y,h)),v?.emit(`row-${m}`,C,c,h)},a=(h,C)=>{r(h,C,"dblclick")},i=(h,C)=>{e.store.commit("setCurrentRow",C),r(h,C,"click")},o=(h,C)=>{r(h,C,"contextmenu")},s=qe(h=>{e.store.commit("setHoverRow",h)},30),u=qe(()=>{e.store.commit("setHoverRow",null)},30),d=h=>{const C=window.getComputedStyle(h,null),m=Number.parseInt(C.paddingLeft,10)||0,w=Number.parseInt(C.paddingRight,10)||0,v=Number.parseInt(C.paddingTop,10)||0,y=Number.parseInt(C.paddingBottom,10)||0;return{left:m,right:w,top:v,bottom:y}},f=(h,C,m)=>{let w=C.target.parentNode;for(;h>1&&(w=w?.nextSibling,!(!w||w.nodeName!=="TR"));)m(w,"hover-row hover-fixed-row"),h--};return{handleDoubleClick:a,handleClick:i,handleContextMenu:o,handleMouseEnter:s,handleMouseLeave:u,handleCellMouseEnter:(h,C,m)=>{var w;const v=t,y=_e(h),c=(w=v?.vnode.el)==null?void 0:w.dataset.prefix;if(y){const se=Mt({columns:e.store.states.columns.value},y,c);y.rowSpan>1&&f(y.rowSpan,h,Ue);const X=v.hoverState={cell:y,column:se,row:C};v?.emit("cell-mouse-enter",X.row,X.column,X.cell,h)}if(!m)return;const g=h.target.querySelector(".cell");if(!(ze(g,`${c}-tooltip`)&&g.childNodes.length))return;const R=document.createRange();R.setStart(g,0),R.setEnd(g,g.childNodes.length);let S=R.getBoundingClientRect().width,N=R.getBoundingClientRect().height;S-Math.floor(S)<.001&&(S=Math.floor(S)),N-Math.floor(N)<.001&&(N=Math.floor(N));const{top:$,left:M,right:B,bottom:D}=d(g),q=M+B,U=$+D;(S+q>g.offsetWidth||N+U>g.offsetHeight||g.scrollWidth>g.offsetWidth)&&no(m,y.innerText||y.textContent,y,v)},handleCellMouseLeave:h=>{const C=_e(h);if(!C)return;C.rowSpan>1&&f(C.rowSpan,h,$e);const m=t?.hoverState;t?.emit("cell-mouse-leave",m?.row,m?.column,m?.cell,h)},tooltipContent:l,tooltipTrigger:n}}function Lo(e){const t=ye(ve),l=pe("table");return{getRowStyle:(u,d)=>{const f=t?.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:d}):f||null},getRowClass:(u,d)=>{const f=[l.e("row")];t?.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&d%2===1&&f.push(l.em("row","striped"));const p=t?.props.rowClassName;return typeof p=="string"?f.push(p):typeof p=="function"&&f.push(p.call(null,{row:u,rowIndex:d})),f},getCellStyle:(u,d,f,p)=>{const E=t?.props.cellStyle;let h=E??{};typeof E=="function"&&(h=E.call(null,{rowIndex:u,columnIndex:d,row:f,column:p}));const C=gt(d,e?.fixed,e.store);return Me(C,"left"),Me(C,"right"),Object.assign({},h,C)},getCellClass:(u,d,f,p,E)=>{const h=vt(l.b(),d,e?.fixed,e.store,void 0,E),C=[p.id,p.align,p.className,...h],m=t?.props.cellClassName;return typeof m=="string"?C.push(m):typeof m=="function"&&C.push(m.call(null,{rowIndex:u,columnIndex:d,row:f,column:p})),C.push(l.e("cell")),C.filter(w=>!!w).join(" ")},getSpan:(u,d,f,p)=>{let E=1,h=1;const C=t?.props.spanMethod;if(typeof C=="function"){const m=C({row:u,column:d,rowIndex:f,columnIndex:p});Array.isArray(m)?(E=m[0],h=m[1]):typeof m=="object"&&(E=m.rowspan,h=m.colspan)}return{rowspan:E,colspan:h}},getColspanRealWidth:(u,d,f)=>{if(d<1)return u[f].realWidth;const p=u.map(({realWidth:E,width:h})=>E||h).slice(f,f+d);return Number(p.reduce((E,h)=>Number(E)+Number(h),-1))}}}function Oo(e){const t=ye(ve),l=pe("table"),{handleDoubleClick:n,handleClick:r,handleContextMenu:a,handleMouseEnter:i,handleMouseLeave:o,handleCellMouseEnter:s,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:f}=No(e),{getRowStyle:p,getRowClass:E,getCellStyle:h,getCellClass:C,getSpan:m,getColspanRealWidth:w}=Lo(e),v=P(()=>e.store.states.columns.value.findIndex(({type:S})=>S==="default")),y=(S,N)=>{const W=t.props.rowKey;return W?_(S,W):N},c=(S,N,W,K=!1)=>{const{tooltipEffect:$,tooltipOptions:M,store:B}=e,{indent:D,columns:q}=B.states,U=E(S,N);let se=!0;return W&&(U.push(l.em("row",`level-${W.level}`)),se=W.display),H("tr",{style:[se?null:{display:"none"},p(S,N)],class:U,key:y(S,N),onDblclick:b=>n(b,S),onClick:b=>r(b,S),onContextmenu:b=>a(b,S),onMouseenter:()=>i(N),onMouseleave:o},q.value.map((b,L)=>{const{rowspan:k,colspan:I}=m(S,b,N,L);if(!k||!I)return null;const j=Object.assign({},b);j.realWidth=w(q.value,I,L);const Y={store:e.store,_self:e.context||t,column:j,row:S,$index:N,cellIndex:L,expanded:K};L===v.value&&W&&(Y.treeNode={indent:W.level*D.value,level:W.level},typeof W.expanded=="boolean"&&(Y.treeNode.expanded=W.expanded,"loading"in W&&(Y.treeNode.loading=W.loading),"noLazyChildren"in W&&(Y.treeNode.noLazyChildren=W.noLazyChildren)));const ne=`${N},${L}`,J=j.columnKey||j.rawColumnKey||"",ge=g(L,b,Y),ee=b.showOverflowTooltip&&In({effect:$},M,b.showOverflowTooltip);return H("td",{style:h(N,L,S,b),class:C(N,L,S,b,I-1),key:`${J}${ne}`,rowspan:k,colspan:I,onMouseenter:re=>s(re,S,ee),onMouseleave:u},[ge])}))},g=(S,N,W)=>N.renderCell(W);return{wrappedRowRender:(S,N)=>{const W=e.store,{isRowExpanded:K,assertRowKey:$}=W,{treeData:M,lazyTreeNodeMap:B,childrenColumnName:D,rowKey:q}=W.states,U=W.states.columns.value;if(U.some(({type:X})=>X==="expand")){const X=K(S),b=c(S,N,void 0,X),L=t.renderExpanded;return X?L?[[b,H("tr",{key:`expanded-row__${b.key}`},[H("td",{colspan:U.length,class:`${l.e("cell")} ${l.e("expanded-cell")}`},[L({row:S,$index:N,store:W,expanded:X})])])]]:(console.error("[Element Error]renderExpanded is required."),b):[[b]]}else if(Object.keys(M.value).length){$();const X=_(S,q.value);let b=M.value[X],L=null;b&&(L={expanded:b.expanded,level:b.level,display:!0},typeof b.lazy=="boolean"&&(typeof b.loaded=="boolean"&&b.loaded&&(L.noLazyChildren=!(b.children&&b.children.length)),L.loading=b.loading));const k=[c(S,N,L)];if(b){let I=0;const j=(ne,J)=>{ne&&ne.length&&J&&ne.forEach(ge=>{const ee={display:J.display&&J.expanded,level:J.level+1,expanded:!1,noLazyChildren:!1,loading:!1},re=_(ge,q.value);if(re==null)throw new Error("For nested data item, row-key is required.");if(b={...M.value[re]},b&&(ee.expanded=b.expanded,b.level=b.level||ee.level,b.display=!!(b.expanded&&ee.display),typeof b.lazy=="boolean"&&(typeof b.loaded=="boolean"&&b.loaded&&(ee.noLazyChildren=!(b.children&&b.children.length)),ee.loading=b.loading)),I++,k.push(c(ge,N+I,ee)),b){const ce=B.value[re]||ge[D.value];j(ce,b)}})};b.display=!0;const Y=B.value[X]||S[D.value];j(Y,b)}return k}else return c(S,N,void 0)},tooltipContent:d,tooltipTrigger:f}}const Wo={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Mo=Fe({name:"ElTableBody",props:Wo,setup(e){const t=le(),l=ye(ve),n=pe("table"),{wrappedRowRender:r,tooltipContent:a,tooltipTrigger:i}=Oo(e),{onColumnsChange:o,onScrollableChange:s}=al(l),u=[];return he(e.store.states.hoverRow,(d,f)=>{var p;const E=t?.vnode.el,h=Array.from(E?.children||[]).filter(w=>w?.classList.contains(`${n.e("row")}`));let C=d;const m=(p=h[C])==null?void 0:p.childNodes;m?.length?Array.from(m).reduce((v,y,c)=>{var g,R;const S=((g=m[c-1])==null?void 0:g.colSpan)>1,N=((R=m[c+1])==null?void 0:R.colSpan)>1;return y.nodeName!=="TD"&&!S&&!N&&v.push(c),v},[]).forEach(v=>{for(var y;C>0;){const c=(y=h[C-1])==null?void 0:y.childNodes;if(c[v]&&c[v].nodeName==="TD"){Ue(c[v],"hover-cell"),u.push(c[v]);break}C--}}):(u.forEach(w=>$e(w,"hover-cell")),u.length=0),!(!e.store.states.isComplex.value||!Le)&&Vn(()=>{const w=h[f],v=h[d];w&&!w.classList.contains("hover-fixed-row")&&$e(w,"hover-row"),v&&Ue(v,"hover-row")})}),ht(()=>{var d;(d=ie)==null||d()}),{ns:n,onColumnsChange:o,onScrollableChange:s,wrappedRowRender:r,tooltipContent:a,tooltipTrigger:i}},render(){const{wrappedRowRender:e,store:t}=this,l=t.states.data.value||[];return H("tbody",{tabIndex:-1},[l.reduce((n,r)=>n.concat(e(r,n.length)),[])])}});function Fo(){const e=ye(ve),t=e?.store,l=P(()=>t.states.fixedLeafColumnsLength.value),n=P(()=>t.states.rightFixedColumns.value.length),r=P(()=>t.states.columns.value.length),a=P(()=>t.states.fixedColumns.value.length),i=P(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:l,rightFixedLeafCount:n,columnsCount:r,leftFixedCount:a,rightFixedCount:i,columns:t.states.columns}}function Ao(e){const{columns:t}=Fo(),l=pe("table");return{getCellClasses:(a,i)=>{const o=a[i],s=[l.e("cell"),o.id,o.align,o.labelClassName,...vt(l.b(),i,o.fixed,e.store)];return o.className&&s.push(o.className),o.children||s.push(l.is("leaf")),s},getCellStyles:(a,i)=>{const o=gt(i,a.fixed,e.store);return Me(o,"left"),Me(o,"right"),o},columns:t}}var Ho=Fe({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:l,columns:n}=Ao(e);return{ns:pe("table"),getCellClasses:t,getCellStyles:l,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:l,summaryMethod:n,sumText:r}=this,a=this.store.states.data.value;let i=[];return n?i=n({columns:e,data:a}):e.forEach((o,s)=>{if(s===0){i[s]=r;return}const u=a.map(E=>Number(E[o.property])),d=[];let f=!0;u.forEach(E=>{if(!Number.isNaN(+E)){f=!1;const h=`${E}`.split(".")[1];d.push(h?h.length:0)}});const p=Math.max.apply(null,d);f?i[s]="":i[s]=u.reduce((E,h)=>{const C=Number(h);return Number.isNaN(+C)?E:Number.parseFloat((E+h).toFixed(Math.min(p,20)))},0)}),H(H("tfoot",[H("tr",{},[...e.map((o,s)=>H("td",{key:s,colspan:o.colSpan,rowspan:o.rowSpan,class:l(e,s),style:t(o,s)},[H("div",{class:["cell",o.labelClassName]},[i[s]])]))])]))}});function To(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,f)=>{e.toggleRowSelection(d,f,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,f)=>{e.toggleRowExpansionAdapter(d,f)},clearSort:()=>{e.clearSort()},sort:(d,f)=>{e.commit("sort",{prop:d,order:f})}}}function ko(e,t,l,n){const r=x(!1),a=x(null),i=x(!1),o=b=>{i.value=b},s=x({width:null,height:null,headerHeight:null}),u=x(!1),d={display:"inline-block",verticalAlign:"middle"},f=x(),p=x(0),E=x(0),h=x(0),C=x(0),m=x(0);Ae(()=>{t.setHeight(e.height)}),Ae(()=>{t.setMaxHeight(e.maxHeight)}),he(()=>[e.currentRowKey,l.states.rowKey],([b,L])=>{!Z(L)||!Z(b)||l.setCurrentRowKey(`${b}`)},{immediate:!0}),he(()=>e.data,b=>{n.store.commit("setData",b)},{immediate:!0,deep:!0}),Ae(()=>{e.expandRowKeys&&l.setExpandRowKeysAdapter(e.expandRowKeys)});const w=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},v=(b,L)=>{const{pixelX:k,pixelY:I}=L;Math.abs(k)>=Math.abs(I)&&(n.refs.bodyWrapper.scrollLeft+=L.pixelX/5)},y=P(()=>e.height||e.maxHeight||l.states.fixedColumns.value.length>0||l.states.rightFixedColumns.value.length>0),c=P(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),g=()=>{y.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(W)};Pe(async()=>{await Oe(),l.updateColumns(),K(),requestAnimationFrame(g);const b=n.vnode.el,L=n.refs.headerWrapper;e.flexible&&b&&b.parentElement&&(b.parentElement.style.minWidth="0"),s.value={width:f.value=b.offsetWidth,height:b.offsetHeight,headerHeight:e.showHeader&&L?L.offsetHeight:null},l.states.columns.value.forEach(k=>{k.filteredValue&&k.filteredValue.length&&n.store.commit("filterChange",{column:k,values:k.filteredValue,silent:!0})}),n.$ready=!0});const R=(b,L)=>{if(!b)return;const k=Array.from(b.classList).filter(I=>!I.startsWith("is-scrolling-"));k.push(t.scrollX.value?L:"is-scrolling-none"),b.className=k.join(" ")},S=b=>{const{tableWrapper:L}=n.refs;R(L,b)},N=b=>{const{tableWrapper:L}=n.refs;return!!(L&&L.classList.contains(b))},W=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const J="is-scrolling-none";N(J)||S(J);return}const b=n.refs.scrollBarRef.wrapRef;if(!b)return;const{scrollLeft:L,offsetWidth:k,scrollWidth:I}=b,{headerWrapper:j,footerWrapper:Y}=n.refs;j&&(j.scrollLeft=L),Y&&(Y.scrollLeft=L);const ne=I-k-1;L>=ne?S("is-scrolling-right"):S(L===0?"is-scrolling-left":"is-scrolling-middle")},K=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&Et(n.refs.scrollBarRef.wrapRef,"scroll",W,{passive:!0}),e.fit?xt(n.vnode.el,$):Et(window,"resize",$),xt(n.refs.bodyWrapper,()=>{var b,L;$(),(L=(b=n.refs)==null?void 0:b.scrollBarRef)==null||L.update()}))},$=()=>{var b,L,k,I;const j=n.vnode.el;if(!n.$ready||!j)return;let Y=!1;const{width:ne,height:J,headerHeight:ge}=s.value,ee=f.value=j.offsetWidth;ne!==ee&&(Y=!0);const re=j.offsetHeight;(e.height||y.value)&&J!==re&&(Y=!0);const ce=e.tableLayout==="fixed"?n.refs.headerWrapper:(b=n.refs.tableHeaderRef)==null?void 0:b.$el;e.showHeader&&ce?.offsetHeight!==ge&&(Y=!0),p.value=((L=n.refs.tableWrapper)==null?void 0:L.scrollHeight)||0,h.value=ce?.scrollHeight||0,C.value=((k=n.refs.footerWrapper)==null?void 0:k.offsetHeight)||0,m.value=((I=n.refs.appendWrapper)==null?void 0:I.offsetHeight)||0,E.value=p.value-h.value-C.value-m.value,Y&&(s.value={width:ee,height:re,headerHeight:e.showHeader&&ce?.offsetHeight||0},g())},M=an(),B=P(()=>{const{bodyWidth:b,scrollY:L,gutterWidth:k}=t;return b.value?`${b.value-(L.value?k:0)}px`:""}),D=P(()=>e.maxHeight?"fixed":e.tableLayout),q=P(()=>{if(e.data&&e.data.length)return null;let b="100%";e.height&&E.value&&(b=`${E.value}px`);const L=f.value;return{width:L?`${L}px`:"",height:b}}),U=P(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),se=P(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${h.value+C.value}px)`}:{maxHeight:`${e.maxHeight-h.value-C.value}px`}:{});return{isHidden:r,renderExpanded:a,setDragVisible:o,isGroup:u,handleMouseLeave:w,handleHeaderFooterMousewheel:v,tableSize:M,emptyBlockStyle:q,handleFixedMousewheel:(b,L)=>{const k=n.refs.bodyWrapper;if(Math.abs(L.spinY)>0){const I=k.scrollTop;L.pixelY<0&&I!==0&&b.preventDefault(),L.pixelY>0&&k.scrollHeight-k.clientHeight>I&&b.preventDefault(),k.scrollTop+=Math.ceil(L.pixelY/5)}else k.scrollLeft+=Math.ceil(L.pixelX/5)},resizeProxyVisible:i,bodyWidth:B,resizeState:s,doLayout:g,tableBodyStyles:c,tableLayout:D,scrollbarViewStyle:d,tableInnerStyle:U,scrollbarStyle:se}}function $o(e){const t=x(),l=()=>{const r=e.vnode.el.querySelector(".hidden-columns"),a={childList:!0,subtree:!0},i=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{i.forEach(o=>o())}),t.value.observe(r,a)};Pe(()=>{l()}),ht(()=>{var n;(n=t.value)==null||n.disconnect()})}var Po={data:{type:Array,default:()=>[]},size:un,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function ul(e){const t=e.tableLayout==="auto";let l=e.columns||[];t&&l.every(r=>r.width===void 0)&&(l=[]);const n=r=>{const a={key:`${e.tableLayout}_${r.id}`,style:{},name:void 0};return t?a.style={width:`${r.width}px`}:a.name=r.id,a};return H("colgroup",{},l.map(r=>H("col",n(r))))}ul.props=["columns","tableLayout"];const Bo=()=>{const e=x(),t=(a,i)=>{const o=e.value;o&&o.scrollTo(a,i)},l=(a,i)=>{const o=e.value;o&&dn(i)&&["Top","Left"].includes(a)&&o[`setScroll${a}`](i)};return{scrollBarRef:e,scrollTo:t,setScrollTop:a=>l("Top",a),setScrollLeft:a=>l("Left",a)}};let Ko=1;const zo=Fe({name:"ElTable",directives:{Mousewheel:_n},components:{TableHeader:Ro,TableBody:Mo,TableFooter:Ho,ElScrollbar:Kt,hColgroup:ul},props:Po,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=zt(),l=pe("table"),n=le();cn(ve,n);const r=co(n,e);n.store=r;const a=new ho({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=a;const i=P(()=>(r.states.data.value||[]).length===0),{setCurrentRow:o,getSelectionRows:s,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:p,toggleRowExpansion:E,clearSort:h,sort:C}=To(r),{isHidden:m,renderExpanded:w,setDragVisible:v,isGroup:y,handleMouseLeave:c,handleHeaderFooterMousewheel:g,tableSize:R,emptyBlockStyle:S,handleFixedMousewheel:N,resizeProxyVisible:W,bodyWidth:K,resizeState:$,doLayout:M,tableBodyStyles:B,tableLayout:D,scrollbarViewStyle:q,tableInnerStyle:U,scrollbarStyle:se}=ko(e,a,r,n),{scrollBarRef:X,scrollTo:b,setScrollLeft:L,setScrollTop:k}=Bo(),I=qe(M,50),j=`${l.namespace.value}-table_${Ko++}`;n.tableId=j,n.state={isGroup:y,resizeState:$,doLayout:M,debouncedUpdateLayout:I};const Y=P(()=>e.sumText||t("el.table.sumText")),ne=P(()=>e.emptyText||t("el.table.emptyText"));return $o(n),{ns:l,layout:a,store:r,handleHeaderFooterMousewheel:g,handleMouseLeave:c,tableId:j,tableSize:R,isHidden:m,isEmpty:i,renderExpanded:w,resizeProxyVisible:W,resizeState:$,isGroup:y,bodyWidth:K,tableBodyStyles:B,emptyBlockStyle:S,debouncedUpdateLayout:I,handleFixedMousewheel:N,setCurrentRow:o,getSelectionRows:s,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:p,toggleRowExpansion:E,clearSort:h,doLayout:M,sort:C,t,setDragVisible:v,context:n,computedSumText:Y,computedEmptyText:ne,tableLayout:D,scrollbarViewStyle:q,tableInnerStyle:U,scrollbarStyle:se,scrollBarRef:X,scrollTo:b,setScrollLeft:L,setScrollTop:k}}}),Do=["data-prefix"],Io={ref:"hiddenColumns",class:"hidden-columns"};function Vo(e,t,l,n,r,a){const i=ue("hColgroup"),o=ue("table-header"),s=ue("table-body"),u=ue("table-footer"),d=ue("el-scrollbar"),f=Dt("mousewheel");return G(),de("div",{ref:"tableWrapper",class:V([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:xe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p))},[oe("div",{class:V(e.ns.e("inner-wrapper")),style:xe(e.tableInnerStyle)},[oe("div",Io,[De(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Ke((G(),de("div",{key:0,ref:"headerWrapper",class:V(e.ns.e("header-wrapper"))},[oe("table",{ref:"tableHeader",class:V(e.ns.e("header")),style:xe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[fe(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),fe(o,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):be("v-if",!0),oe("div",{ref:"bodyWrapper",class:V(e.ns.e("body-wrapper"))},[fe(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Ce(()=>[oe("table",{ref:"tableBody",class:V(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:xe({width:e.bodyWidth,tableLayout:e.tableLayout})},[fe(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(G(),Ne(o,{key:0,ref:"tableHeaderRef",class:V(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):be("v-if",!0),fe(s,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(G(),Ne(u,{key:1,class:V(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):be("v-if",!0)],6),e.isEmpty?(G(),de("div",{key:0,ref:"emptyBlock",style:xe(e.emptyBlockStyle),class:V(e.ns.e("empty-block"))},[oe("span",{class:V(e.ns.e("empty-text"))},[De(e.$slots,"empty",{},()=>[It(Re(e.computedEmptyText),1)])],2)],6)):be("v-if",!0),e.$slots.append?(G(),de("div",{key:1,ref:"appendWrapper",class:V(e.ns.e("append-wrapper"))},[De(e.$slots,"append")],2)):be("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?Ke((G(),de("div",{key:1,ref:"footerWrapper",class:V(e.ns.e("footer-wrapper"))},[oe("table",{class:V(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:xe(e.tableBodyStyles)},[fe(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),fe(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Rt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):be("v-if",!0),e.border||e.isGroup?(G(),de("div",{key:2,class:V(e.ns.e("border-left-patch"))},null,2)):be("v-if",!0)],6),Ke(oe("div",{ref:"resizeProxy",class:V(e.ns.e("column-resize-proxy"))},null,2),[[Rt,e.resizeProxyVisible]])],46,Do)}var jo=Bt(zo,[["render",Vo],["__file","table.vue"]]);const Yo={selection:"table-column--selection",expand:"table__expand-column"},qo={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Uo=e=>Yo[e]||"",Xo={selection:{renderHeader({store:e,column:t}){function l(){return e.states.data.value&&e.states.data.value.length===0}return H(We,{disabled:l(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:l,$index:n}){return H(We,{disabled:t.selectable?!t.selectable.call(null,e,n):!1,size:l.states.tableSize.value,onChange:()=>{l.commit("rowSelectedChanged",e)},onClick:r=>r.stopPropagation(),modelValue:l.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let l=t+1;const n=e.index;return typeof n=="number"?l=t+n:typeof n=="function"&&(l=n(t)),H("div",{},[l])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:l}){const{ns:n}=t,r=[n.e("expand-icon")];return l&&r.push(n.em("expand-icon","expanded")),H("div",{class:r,onClick:function(i){i.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[H(ft,null,{default:()=>[H(jt)]})]})},sortable:!1,resizable:!1}};function Go({row:e,column:t,$index:l}){var n;const r=t.property,a=r&&fn(e,r).value;return t&&t.formatter?t.formatter(e,t,a,l):((n=a?.toString)==null?void 0:n.call(a))||""}function _o({row:e,treeNode:t,store:l},n=!1){const{ns:r}=l;if(!t)return n?[H("span",{class:r.e("placeholder")})]:null;const a=[],i=function(o){o.stopPropagation(),!t.loading&&l.loadOrToggle(e)};if(t.indent&&a.push(H("span",{class:r.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const o=[r.e("expand-icon"),t.expanded?r.em("expand-icon","expanded"):""];let s=jt;t.loading&&(s=hn),a.push(H("div",{class:o,onClick:i},{default:()=>[H(ft,{class:{[r.is("loading")]:t.loading}},{default:()=>[H(s)]})]}))}else a.push(H("span",{class:r.e("placeholder")}));return a}function Ht(e,t){return e.reduce((l,n)=>(l[n]=n,l),t)}function Qo(e,t){const l=le();return{registerComplexWatchers:()=>{const a=["fixed"],i={realWidth:"width",realMinWidth:"minWidth"},o=Ht(a,i);Object.keys(o).forEach(s=>{const u=i[s];ke(t,u)&&he(()=>t[u],d=>{let f=d;u==="width"&&s==="realWidth"&&(f=pt(d)),u==="minWidth"&&s==="realMinWidth"&&(f=ll(d)),l.columnConfig.value[u]=f,l.columnConfig.value[s]=f;const p=u==="fixed";e.value.store.scheduleLayout(p)})})},registerNormalWatchers:()=>{const a=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},o=Ht(a,i);Object.keys(o).forEach(s=>{const u=i[s];ke(t,u)&&he(()=>t[u],d=>{l.columnConfig.value[s]=d})})}}}function Jo(e,t,l){const n=le(),r=x(""),a=x(!1),i=x(),o=x(),s=pe("table");Ae(()=>{i.value=e.align?`is-${e.align}`:null,i.value}),Ae(()=>{o.value=e.headerAlign?`is-${e.headerAlign}`:i.value,o.value});const u=P(()=>{let c=n.vnode.vParent||n.parent;for(;c&&!c.tableId&&!c.columnId;)c=c.vnode.vParent||c.parent;return c}),d=P(()=>{const{store:c}=n.parent;if(!c)return!1;const{treeData:g}=c.states,R=g.value;return R&&Object.keys(R).length>0}),f=x(pt(e.width)),p=x(ll(e.minWidth)),E=c=>(f.value&&(c.width=f.value),p.value&&(c.minWidth=p.value),!f.value&&p.value&&(c.width=void 0),c.minWidth||(c.minWidth=80),c.realWidth=Number(c.width===void 0?c.minWidth:c.width),c),h=c=>{const g=c.type,R=Xo[g]||{};Object.keys(R).forEach(N=>{const W=R[N];N!=="className"&&W!==void 0&&(c[N]=W)});const S=Uo(g);if(S){const N=`${Z(s.namespace)}-${S}`;c.className=c.className?`${c.className} ${N}`:N}return c},C=c=>{Array.isArray(c)?c.forEach(R=>g(R)):g(c);function g(R){var S;((S=R?.type)==null?void 0:S.name)==="ElTableColumn"&&(R.vParent=n)}};return{columnId:r,realAlign:i,isSubColumn:a,realHeaderAlign:o,columnOrTableParent:u,setColumnWidth:E,setColumnForcedProps:h,setColumnRenders:c=>{e.renderHeader||c.type!=="selection"&&(c.renderHeader=R=>(n.columnConfig.value.label,De(t,"header",R,()=>[c.label])));let g=c.renderCell;return c.type==="expand"?(c.renderCell=R=>H("div",{class:"cell"},[g(R)]),l.value.renderExpanded=R=>t.default?t.default(R):t.default):(g=g||Go,c.renderCell=R=>{let S=null;if(t.default){const B=t.default(R);S=B.some(D=>D.type!==pn)?B:g(R)}else S=g(R);const{columns:N}=l.value.store.states,W=N.value.findIndex(B=>B.type==="default"),K=d.value&&R.cellIndex===W,$=_o(R,K),M={class:"cell",style:{}};return c.showOverflowTooltip&&(M.class=`${M.class} ${Z(s.namespace)}-tooltip`,M.style={width:`${(R.column.realWidth||Number(R.column.width))-1}px`}),C(S),H("div",M,[$,S])}),c},getPropsData:(...c)=>c.reduce((g,R)=>(Array.isArray(R)&&R.forEach(S=>{g[S]=e[S]}),g),{}),getColumnElIndex:(c,g)=>Array.prototype.indexOf.call(c,g),updateColumnOrder:()=>{l.value.store.commit("updateColumnOrder",n.columnConfig.value)}}}var Zo={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let es=1;var dl=Fe({name:"ElTableColumn",components:{ElCheckbox:We},props:Zo,setup(e,{slots:t}){const l=le(),n=x({}),r=P(()=>{let y=l.parent;for(;y&&!y.tableId;)y=y.parent;return y}),{registerNormalWatchers:a,registerComplexWatchers:i}=Qo(r,e),{columnId:o,isSubColumn:s,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:p,setColumnRenders:E,getPropsData:h,getColumnElIndex:C,realAlign:m,updateColumnOrder:w}=Jo(e,t,r),v=d.value;o.value=`${v.tableId||v.columnId}_column_${es++}`,Vt(()=>{s.value=r.value!==v;const y=e.type||"default",c=e.sortable===""?!0:e.sortable,g=vn(e.showOverflowTooltip)?v.props.showOverflowTooltip:e.showOverflowTooltip,R={...qo[y],id:o.value,type:y,property:e.prop||e.property,align:m,headerAlign:u,showOverflowTooltip:g,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:c,index:e.index,rawColumnKey:l.vnode.key};let $=h(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);$=Zn(R,$),$=to(E,f,p)($),n.value=$,a(),i()}),Pe(()=>{var y;const c=d.value,g=s.value?c.vnode.el.children:(y=c.refs.hiddenColumns)==null?void 0:y.children,R=()=>C(g||[],l.vnode.el);n.value.getColumnIndex=R,R()>-1&&r.value.store.commit("insertColumn",n.value,s.value?c.columnConfig.value:null,w)}),gn(()=>{r.value.store.commit("removeColumn",n.value,s.value?v.columnConfig.value:null,w)}),l.columnId=o.value,l.columnConfig=n},render(){var e,t,l;try{const n=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),r=[];if(Array.isArray(n))for(const i of n)((l=i.type)==null?void 0:l.name)==="ElTableColumn"||i.shapeFlag&2?r.push(i):i.type===Je&&Array.isArray(i.children)&&i.children.forEach(o=>{o?.patchFlag!==1024&&!mn(o?.children)&&r.push(o)});return H("div",r)}catch{return H("div",[])}}});const os=yn(jo,{TableColumn:dl}),ss=bn(dl);export{ss as E,os as a};
diff --git a/playground/static/js/formAction-189c8d37-6d99eeaf.js b/playground/static/js/formAction-189c8d37-6d99eeaf.js
new file mode 100644
index 0000000..37a7862
--- /dev/null
+++ b/playground/static/js/formAction-189c8d37-6d99eeaf.js
@@ -0,0 +1 @@
+import{Q as j,d as M,i as T,f as g,R as W,u as q,S as I,y as V,o as d,a as f,n as F,j as E,h as l,t as C,l as v,b,w as o,A as h,g as a,F as L,r as O,z as N,U as R,E as U,V as H,L as J,s as Q,W as G,H as K,I as P,J as X}from"./main-15081b07.js";/* empty css */import{c as Y}from"./vue-codemirror.esm-c4b5d553.js";const Z=M({ControlType:"FormAction",isHide:!0,components:{Codemirror:Y},props:{item:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})},drag:{type:Boolean,default:!1},labelalign:{type:String,default:"top"},labelWidth:{type:Number},size:{type:String},isForm:{type:Boolean,default:!1}},setup(e){const{actionContrl:c}=T("control")||{},p=g(),{proxy:y}=W(),i=g(window.VApp.$Flex.deepClone(c?.get("action"))),s=g(window.VApp.$Flex.deepClone(c?.get("currentAction")));let _="";const m=q({funcName:[{required:!0,message:"函数名称必填",trigger:"change"}]});return console.log(e),I(()=>{}),{rules:m,actionRef:p,action:i,currentAction:s,getField(t){return window.VApp.$Flex.getField(t)},onAction(t){if(i.value=window.VApp.$Flex.deepClone(c?.get("action")),p.value.init("动作设置","icon-icon-bianji"),p.value.show(),t){_=t;const n=i.value.find(u=>{if(u.type==t)return u});n?s.value=n:y.addAction(t)}},onEditAction(t,n){_=t,i.value=window.VApp.$Flex.deepClone(c?.get("action")),p.value.init("动作设置","icon-icon-bianji"),p.value.show();const u=i.value.find(A=>{if(A.type==n)return A});u&&(s.value=u)},handleAction(t){s.value=t},onSave(){c?.set("action",i.value),p.value.close()},onCancel(){p.value.close()},copyAction(t){const n=window.VApp.$Flex.deepClone(t);n.funcName=n.funcName+"_copy",n.type=window.VApp.$Flex.generateMixed(5),i.value.push(n),s.value=n},deleteAction(t){i.value=i.value.filter(n=>{if(n.type!==t.type)return n}),s.value&&t.type==s.value.type&&(s.value=null)},addAction(t){const n={funcName:(t||"func")+"_"+window.VApp.$Flex.generateMixed(5),type:window.VApp.$Flex.generateMixed(5),funcStr:"",methods:t};i.value.push(n),t&&(s.value=n)},onConfirm(){e.data[e.item.data.fieldName]||(e.data[e.item.data.fieldName]={}),e.data[e.item.data.fieldName][_]=JSON.stringify(s.value),y.onSave()}}}}),x={key:0,class:"item_require"},ee=l("span",{class:"tip iconfont icon-tishi"},null,-1),te={class:"common-layout"},ne={class:"action-header"},oe={class:"action-list"},ae=["onClick"],le=l("span",{class:"event-script-menu-i"},"Function",-1),ie={class:"event-script-menu-label"},se={key:0,class:"event-script-menu-action"},ce=["onClick"],ue=["onClick"],re={class:"action-header event-script-main-header"},de={class:"coding"},pe={class:"header"},me=l("div",{class:"footer"},"}",-1);function fe(e,c,p,y,i,s){const _=R,m=U,t=H,n=J,u=Q,A=G,B=K,w=P,$=V("codemirror"),S=X,z=V("CustomDialog");return d(),f("div",{class:F(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[e.isForm?v("",!0):(d(),f("div",{key:0,class:F(["label","label_"+e.labelalign]),style:E({width:e.labelWidth+"px"})},[l("label",null,C(e.item.data.label),1),e.item.data.required?(d(),f("span",x,"*")):v("",!0),e.item.data.tip?(d(),b(_,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:o(()=>[ee]),_:1},8,["content"])):v("",!0)],6)),l("div",{class:"control",style:E({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.isForm?v("",!0):(d(),b(m,{key:0,style:{width:"100%"},onClick:e.onAction},{default:o(()=>[h(" 设置 ")]),_:1},8,["onClick"])),a(z,{ref:"actionRef"},{default:o(()=>[l("div",te,[a(u,{style:{height:"100%",border:"1px solid rgb(238, 238, 238)"}},{default:o(()=>[a(u,null,{default:o(()=>[a(A,{width:"300px",class:"event-script-aside"},{default:o(()=>[a(u,{class:"is-vertical"},{default:o(()=>[l("header",ne,[a(m,{type:"text",size:e.size,onClick:e.addAction},{default:o(()=>[h(" +添加动作")]),_:1},8,["size","onClick"])]),a(n,null,{default:o(()=>[a(t,null,{default:o(()=>[l("div",oe,[(d(!0),f(L,null,O(e.action,(r,D)=>(d(),f("div",{class:F(["action",e.currentAction&&r.type==e.currentAction.type?"selectAction":""]),key:D,onClick:k=>e.handleAction(r)},[le,l("div",ie,C(r.funcName),1),r.disabled?v("",!0):(d(),f("div",se,[l("i",{title:"复制",class:"iconfont icon-fuzhi",onClick:N(k=>e.copyAction(r),["stop"])},null,8,ce),l("i",{title:"删除",class:"iconfont icon-shanchu1",onClick:N(k=>e.deleteAction(r),["stop"])},null,8,ue)]))],10,ae))),128))])]),_:1})]),_:1})]),_:1})]),_:1}),a(n,{class:"event-script-main"},{default:o(()=>[a(u,{class:"is-vertical"},{default:o(()=>[l("header",re,[a(m,{type:"primary",onClick:e.onConfirm,size:"small"},{default:o(()=>[h("确定")]),_:1},8,["onClick"]),a(m,{type:"primary",onClick:e.onSave,size:"small"},{default:o(()=>[h("保存")]),_:1},8,["onClick"]),a(m,{onClick:e.onCancel,size:"small"},{default:o(()=>[h("取消")]),_:1},8,["onClick"])]),e.currentAction?(d(),b(n,{key:0,class:"func_main"},{default:o(()=>[a(t,null,{default:o(()=>[a(S,{model:e.currentAction,rules:e.rules},{default:o(()=>[a(w,{label:"Function Name",prop:"funcName"},{default:o(()=>[a(B,{modelValue:e.currentAction.funcName,"onUpdate:modelValue":c[0]||(c[0]=r=>e.currentAction.funcName=r),disabled:e.currentAction.disabled},null,8,["modelValue","disabled"])]),_:1}),a(w,{prop:"funcStr"},{default:o(()=>[l("div",de,[l("div",pe," function "+C(e.currentAction.funcName)+"("+C(e.getField(e.currentAction.methods))+"){ ",1),a($,{modelValue:e.currentAction.funcStr,"onUpdate:modelValue":c[1]||(c[1]=r=>e.currentAction.funcStr=r),placeholder:"",style:{height:"400px"},mode:"text/javascript",autofocus:!0,"indent-with-tab":!0,"tab-size":2},null,8,["modelValue"]),me])]),_:1})]),_:1},8,["model","rules"])]),_:1})]),_:1})):v("",!0)]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1},512)],4)],2)}const Ae=j(Z,[["render",fe]]);export{Ae as default};
diff --git a/playground/static/js/formStyle-902d7d57.js b/playground/static/js/formStyle-902d7d57.js
new file mode 100644
index 0000000..121b5e7
--- /dev/null
+++ b/playground/static/js/formStyle-902d7d57.js
@@ -0,0 +1 @@
+import{_ as q,d as Z,f as w,R as V,y as k,o as y,a as v,h as g,t as z,l as x,b as G,w as m,g as Q,A as b,U as N,E as j,M as D}from"./main-15081b07.js";import{E as X,L as B,a as I}from"./index-6a8bc30c.js";import{s as F,t,L as K,h as L,d as A,i as J,e as H,f as M,g as ee,c as te}from"./vue-codemirror.esm-c4b5d553.js";const ae=99,T=1,oe=100,Oe=101,R=2,U=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],le=58,re=40,E=95,ie=91,h=45,ne=46,se=35,de=37,ce=38,pe=92,ue=10;function f(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Y(e){return e>=48&&e<=57}const me=new X((e,a)=>{for(let O=!1,o=0,n=0;;n++){let{next:l}=e;if(f(l)||l==h||l==E||O&&Y(l))!O&&(l!=h||n>0)&&(O=!0),o===n&&l==h&&o++,e.advance();else if(l==pe&&e.peek(1)!=ue)e.advance(),e.next>-1&&e.advance(),O=!0;else{O&&e.acceptToken(l==re?oe:o==2&&a.canShift(R)?R:Oe);break}}}),Qe=new X(e=>{if(U.includes(e.peek(-1))){let{next:a}=e;(f(a)||a==E||a==se||a==ne||a==ie||a==le&&f(e.peek(1))||a==h||a==ce)&&e.acceptToken(ae)}}),Se=new X(e=>{if(!U.includes(e.peek(-1))){let{next:a}=e;if(a==de&&(e.advance(),e.acceptToken(T)),f(a)){do e.advance();while(f(e.next)||Y(e.next));e.acceptToken(T)}}}),ge=F({"AtKeyword import charset namespace keyframes media supports":t.definitionKeyword,"from to selector":t.keyword,NamespaceName:t.namespace,KeyframeName:t.labelName,KeyframeRangeName:t.operatorKeyword,TagName:t.tagName,ClassName:t.className,PseudoClassName:t.constant(t.className),IdName:t.labelName,"FeatureName PropertyName":t.propertyName,AttributeName:t.attributeName,NumberLiteral:t.number,KeywordQuery:t.keyword,UnaryQueryOp:t.operatorKeyword,"CallTag ValueName":t.atom,VariableName:t.variableName,Callee:t.operatorKeyword,Unit:t.unit,"UniversalSelector NestingSelector":t.definitionOperator,MatchOp:t.compareOperator,"ChildOp SiblingOp, LogicOp":t.logicOperator,BinOp:t.arithmeticOperator,Important:t.modifier,Comment:t.blockComment,ColorLiteral:t.color,"ParenthesizedContent StringLiteral":t.string,":":t.punctuation,"PseudoOp #":t.derefOperator,"; ,":t.separator,"( )":t.paren,"[ ]":t.squareBracket,"{ }":t.brace}),fe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},he={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},ye={__proto__:null,not:132,only:132},be=B.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[Qe,Se,me,1,2,3,4,new I("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>fe[e]||-1},{term:58,get:e=>he[e]||-1},{term:101,get:e=>ye[e]||-1}],tokenPrec:1200});let $=null;function P(){if(!$&&typeof document=="object"&&document.body){let e=[];for(let a in document.body.style)/[A-Z]|^-|^(item|length)$/.test(a)||e.push(a);$=e.sort().map(a=>({type:"property",label:a}))}return $||[]}const W=["active","after","before","checked","default","disabled","empty","enabled","first-child","first-letter","first-line","first-of-type","focus","hover","in-range","indeterminate","invalid","lang","last-child","last-of-type","link","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-of-type","only-child","optional","out-of-range","placeholder","read-only","read-write","required","root","selection","target","valid","visited"].map(e=>({type:"class",label:e})),_=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),$e=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),u=/^[\w-]*/,Pe=e=>{let{state:a,pos:O}=e,o=L(a).resolveInner(O,-1);if(o.name=="PropertyName")return{from:o.from,options:P(),validFor:u};if(o.name=="ValueName")return{from:o.from,options:_,validFor:u};if(o.name=="PseudoClassName")return{from:o.from,options:W,validFor:u};if(o.name=="TagName"){for(let{parent:s}=o;s;s=s.parent)if(s.name=="Block")return{from:o.from,options:P(),validFor:u};return{from:o.from,options:$e,validFor:u}}if(!e.explicit)return null;let n=o.resolve(O),l=n.childBefore(O);return l&&l.name==":"&&n.name=="PseudoClassSelector"?{from:O,options:W,validFor:u}:l&&l.name==":"&&n.name=="Declaration"||n.name=="ArgList"?{from:O,options:_,validFor:u}:n.name=="Block"?{from:O,options:P(),validFor:u}:null},C=A.define({parser:be.configure({props:[J.add({Declaration:H()}),M.add({Block:ee})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Xe(){return new K(C,C.data.of({autocomplete:Pe}))}const we=Z({ControlType:"FormStyle",isHide:!0,props:{item:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})},controlItems:{type:Array,default:()=>[]}},components:{Codemirror:te},setup(e){const a=[Xe()],O=w(),o=w(),{proxy:n}=V();return{code:o,extensions:a,codeDialog:O,onStyleSet(){O.value.init("表单样式表","icon-biaodan"),O.value.show()},saveCssStyle(){e.data[e.item.data.fieldName]=o.value,n.extractCssClass(),n.insertCustomCssToHead(o.value),O.value.close()},closeCodeDialog(){O.value.close()},extractCssClass(){const l=/\..*{/g,s=o.value.match(l),d=[];s&&s.length>0&&s.forEach(i=>{const p=i.split(",");p.length>0&&p.forEach(S=>{const r=S.trim();if(r.indexOf(".",1)!==-1){const c=r.substring(r.indexOf(".")+1,r.indexOf(".",1));c&&d.push(c.trim())}else if(r.indexOf(" ")!==-1){const c=r.substring(r.indexOf(".")+1,r.indexOf(" "));c&&d.push(c.trim())}else if(r.indexOf("{")!==-1){const c=r.substring(r.indexOf(".")+1,r.indexOf("{"));d.push(c.trim())}else{const c=r.substring(r.indexOf(".")+1);d.push(c.trim())}})}),e.controlItems.find(i=>{if(i.data.fieldName=="csslist")return i.data.itemConfig.items=[],d.forEach((p,S)=>{i.data.itemConfig.items.push({label:p,value:p,select:!1,id:S+1})}),i})},insertCustomCssToHead(l){const s=document.getElementsByTagName("head")[0],d=document.getElementById("starfish-custom-css");d&&s.removeChild(d);const i=document.createElement("style");i.type="text/css",i.rel="stylesheet",i.id="starfish-custom-css";try{i.appendChild(document.createTextNode(l))}catch{i.styleSheet.cssText=l}s.appendChild(i)}}}}),ke={class:"starfish-formitem"},ve={class:"label"},ze={key:0,class:"item_require"},xe=g("span",{class:"tip iconfont icon-tishi"},null,-1),Te={class:"control"},Re={class:"custom_code"};function We(e,a,O,o,n,l){const s=N,d=j,i=k("codemirror"),p=D,S=k("custom-dialog");return y(),v("div",ke,[g("div",ve,[g("label",null,z(e.item.data.label),1),e.item.data.required?(y(),v("span",ze,"*")):x("",!0),e.item.data.tip?(y(),G(s,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:m(()=>[xe]),_:1},8,["content"])):x("",!0)]),g("div",Te,[Q(d,{style:{width:"100%"},onClick:e.onStyleSet,type:e.code?"primary":""},{default:m(()=>[b(z(e.code?"已设置":"设置"),1)]),_:1},8,["onClick","type"]),Q(S,{ref:"codeDialog",dialogclass:"codeDialog",width:"1000"},{default:m(()=>[g("div",Re,[Q(i,{modelValue:e.code,"onUpdate:modelValue":a[0]||(a[0]=r=>e.code=r),placeholder:".starfish-form-css{}",style:{height:"400px"},autofocus:!0,extensions:e.extensions,"indent-with-tab":!0,"tab-size":2},null,8,["modelValue","extensions"])]),Q(p,{class:"my-Footer",style:{"text-align":"center"}},{default:m(()=>[Q(d,{type:"primary",onClick:e.saveCssStyle},{default:m(()=>[b("确定")]),_:1},8,["onClick"]),Q(d,{onClick:e.closeCodeDialog},{default:m(()=>[b("关闭")]),_:1},8,["onClick"])]),_:1})]),_:1},512)])])}var Ee=q(we,[["render",We]]);export{Ee as default};
diff --git a/playground/static/js/globalFormList-69cfff1b.js b/playground/static/js/globalFormList-69cfff1b.js
new file mode 100644
index 0000000..62fb1ea
--- /dev/null
+++ b/playground/static/js/globalFormList-69cfff1b.js
@@ -0,0 +1 @@
+import{_ as c,d as i,i as m,c as r,o as t,a,F as d,r as u,b as p,e as g}from"./main-15081b07.js";const b=i({setup(){const{formStore:o}=m("control")||{},e=r(()=>o?.get("globalFormList")),s=r(()=>o?.get("globalDatas"));return{globalFormLists:e,globalDatas:s}}});function f(o,e,s,_,F,v){return t(),a("div",null,[(t(!0),a(d,null,u(o.globalFormLists,(l,n)=>(t(),a("div",{key:n,class:"form_tab3_list"},[(t(),p(g(l.ControlType),{item:l,data:o.globalDatas,controlItems:o.globalFormLists},null,8,["item","data","controlItems"]))]))),128))])}var k=c(b,[["render",f]]);export{k as default};
diff --git a/playground/static/js/index-4a65557a-68f5b212.js b/playground/static/js/index-4a65557a-68f5b212.js
new file mode 100644
index 0000000..aff1b8c
--- /dev/null
+++ b/playground/static/js/index-4a65557a-68f5b212.js
@@ -0,0 +1,1385 @@
+import{a9 as Lt,d as Nt,X as ct,aa as Bt,Y as Wt,f as yt,ab as Mt,S as Ht,ad as Pt,ae as Gt,Q as Ft,y as Vt,o as vt,a as St,h as rt,t as xt,l as kt,b as Ot,w as ot,n as Et,j as Tt,g as ht,A as Rt,U as Zt,L as Dt,E as Kt,M as jt,s as zt}from"./main-15081b07.js";/* empty css */var $t={exports:{}};/*!
+ * jsoneditor.js
+ *
+ * @brief
+ * JSONEditor is a web-based tool to view, edit, format, and validate JSON.
+ * It has various modes such as a tree editor, a code editor, and a plain text
+ * editor.
+ *
+ * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+
+ *
+ * @license
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ *
+ * Copyright (c) 2011-2023 Jos de Jong, http://jsoneditoronline.org
+ *
+ * @author Jos de Jong,
+ * @version 9.10.5
+ * @date 2023-12-21
+ */(function(Ge,dt){(function(Ye,Je){Ge.exports=Je()})(self,function(){return Je={897:function(le,m,Z){Z.d(m,{x:function(){return Y}});var U=Z(2602),x=Z(9791),H=Z(7907);function j(G){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(G)}function z(G,N){for(var A=0;Al.top&&(C=!1),y?0:d.top-h.top);C?(y=f.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=o+y+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px"),this.limitHeight&&(h=C?l.bottom-d.bottom-10:d.top-l.top-10,this.dom.list.style.maxHeight=h+"px",this.dom.list.style.overflowY="auto"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=(0,x.getSelection)(),this.anchor=f,setTimeout(function(){n.dom.focusButton.focus()},0),G.visibleMenu&&G.visibleMenu.hide(),G.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose)&&this.onClose(),G.visibleMenu===this&&(G.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(f){var R,y=this,C=f===this.expandedItem,d=this.expandedItem;d&&(d.ul.style.height="0",d.ul.style.padding="",setTimeout(function(){y.expandedItem!==d&&(d.ul.style.display="",x.removeClassName)(d.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),C||((R=f.ul).style.display="block",R.clientHeight,setTimeout(function(){if(y.expandedItem===f){for(var h=0,l=0;l/gi,`
+`))),l.appendChild(n),h.appendChild(l)),h.onclick=function(){R.onFocusLine(d)},A.appendChild(h)}),this.dom.validationErrors=y,this.dom.validationErrorsContainer.appendChild(y),this.dom.additionalErrorsIndication.title=G.length+" errors total",this.dom.validationErrorsContainer.clientHeight"u"&&console.error("Promise undefined. Please load a Promise polyfill in the browser in order to use JSONEditor"),h.modes={},h.prototype.DEBOUNCE_INTERVAL=150,h.VALID_OPTIONS=["ajv","schema","schemaRefs","templates","ace","theme","autocomplete","onChange","onChangeJSON","onChangeText","onExpand","onEditable","onError","onEvent","onModeChange","onNodeName","onValidate","onCreateMenu","onSelectionChange","onTextSelectionChange","onClassName","onFocus","onBlur","colorPicker","onColorPicker","timestampTag","timestampFormat","escapeUnicode","history","search","mode","modes","name","indentation","sortObjectKeys","navigationBar","statusBar","mainMenuBar","languages","language","enableSort","enableTransform","limitDragging","maxVisibleChilds","onValidationError","modalAnchor","popupAnchor","createQuery","executeQuery","queryDescription","allowSchemaSuggestions","showErrorTable"],h.prototype._create=function(l,n,o){this.container=l,this.options=n||{},this.json=o||{},l=this.options.mode||this.options.modes&&this.options.modes[0]||"tree",this.setMode(l)},h.prototype.destroy=function(){},h.prototype.set=function(l){this.json=l},h.prototype.get=function(){return this.json},h.prototype.setText=function(l){this.json=f(l)},h.prototype.getText=function(){return JSON.stringify(this.json)},h.prototype.setName=function(l){this.options||(this.options={}),this.options.name=l},h.prototype.getName=function(){return this.options&&this.options.name},h.prototype.setMode=function(l){if(l!==this.options.mode||!this.create){var n=this.container,o=G({},this.options),i=o.mode,a=(o.mode=l,h.modes[l]);if(!a)throw new Error('Unknown mode "'+o.mode+'"');var r=a.data==="text",e=this.getName(),t=this[r?"getText":"get"]();if(this.destroy(),Y(this),G(this,a.mixin),this.create(n,o),this.setName(e),this[r?"setText":"set"](t),typeof a.load=="function")try{a.load.call(this)}catch(s){console.error(s)}if(typeof o.onModeChange=="function"&&l!==i)try{o.onModeChange(l,i)}catch(s){console.error(s)}}},h.prototype.getMode=function(){return this.options.mode},h.prototype._onError=function(l){this.options&&typeof this.options.onError=="function"?this.options.onError(l):window.alert(l.toString())},h.prototype.setSchema=function(l,n){if(l){var o;try{this.options.ajv?o=this.options.ajv:((o=d({allErrors:!0,verbose:!0,schemaId:"auto",$data:!0})).addMetaSchema(Z(7171)),o.addMetaSchema(Z(6273)))}catch{console.warn("Failed to create an instance of Ajv, JSON Schema validation is not available. Please use a JSONEditor bundle including Ajv, or pass an instance of Ajv as via the configuration option `ajv`.")}if(o){if(n){for(var i in n)o.removeSchema(i),n[i]&&o.addSchema(n[i],i);this.options.schemaRefs=n}this.validateSchema=o.compile(l),this.options.schema=l,this.options.schemaRefs=n,this.validate()}}else this.validateSchema=null,this.options.schema=null,this.options.schemaRefs=null,this.validate();this.refresh(),typeof this._onSchemaChange=="function"&&this._onSchemaChange(l,n)},h.prototype.validate=function(){},h.prototype.refresh=function(){},(h.registerMode=function(l){var n;if(Array.isArray(l))for(a=0;aU[0].length)||(U=x,H=Y,this.options.flex));Y++);return U?((j=U[0].match(/\n.*/g))&&(this.yylineno+=j.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:j?j[j.length-1].length-1:this.yylloc.last_column+U[0].length},this.yytext+=U[0],this.match+=U[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(U[0].length),this.matched+=U[0],j=this.performAction.call(this,this.yy,this,z[H],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),j||void 0):this._input===""?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
+`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var U=this.next();return U!==void 0?U:this.lex()},begin:function(U){this.conditionStack.push(U)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(U){this.begin(U)},options:{},performAction:function(U,x,H,j){switch(H){case 0:break;case 1:return 6;case 2:return x.yytext=x.yytext.substr(1,x.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};var Z;m.parser=Z,m.parse=Z.parse.bind(Z)},3879:function(le){function m(){}m.prototype={on:function(N,A){this._events=this._events||{},this._events[N]=this._events[N]||[],this._events[N].push(A)},off:function(N,A){this._events=this._events||{},N in this._events&&this._events[N].splice(this._events[N].indexOf(A),1)},emit:function(N){if(this._events=this._events||{},N in this._events)for(var A=0;A"+r.label+""}),Z.each(r.children,function(e,t){t.idx=o,n.appendChild(j.call(this,t,n)),o++},this)):(r.idx=o,j.call(this,r),o++)},this),this.config.data&&Array.isArray(this.config.data)&&(d=!(this.data=[]),n=!1,o=0,Z.each(this.config.data,function(a,r){U(r,"children")?(d=Z.createElement("optgroup",{label:r.text}),n=Z.createElement("ul",{class:"selectr-optgroup",role:"group",html:""+r.text+" "}),Z.each(r.children,function(e,t){(h=new Option(t.text,t.value,!1,t.hasOwnProperty("selected")&&t.selected===!0)).disabled=U(t,"disabled"),this.options.push(h),d.appendChild(h),h.idx=o,n.appendChild(j.call(this,h,t)),this.data[o]=t,o++},this),this.el.appendChild(d)):((h=new Option(r.text,r.value,!1,r.hasOwnProperty("selected")&&r.selected===!0)).disabled=U(r,"disabled"),this.options.push(h),h.idx=o,j.call(this,h,r),this.data[o]=r,o++)},this)),this.setSelected(!0);for(var i=this.navIndex=0;ithis.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndexthis.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(f.top+f.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&z.call(this)):this.navIndex===0?this.tree.scrollTop=0:f.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(f.top-this.optsRect.top)),y&&Z.removeClass(y,"active"),Z.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}.bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",function(f){f.changedTouches[0].target===A.el&&A.toggle()},!!this.supportsEventPassiveOption&&{passive:!0}),this.container.addEventListener("click",function(f){f.target===A.el&&A.toggle()}),this.el.addEventListener("change",function(f){f.__selfTriggered||(A.el.multiple?(f=A.getSelectedProperties("idx"),f=function(R,y){for(var C,d=[],h=R.slice(0),l=0;lf?(Z.addClass(this.container,"inverted"),this.isInverted=!0):(Z.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=Z.rect(this.tree)},G.prototype.getOptionByIndex=function(N){return this.options[N]},G.prototype.getOptionByValue=function(N){for(var A=!1,f=0,R=this.options.length;fthis.limit&&1x.EX?((0,C.addClassName)((i=this).frame,"busy"),i.dom.busyContent.innerText=o,setTimeout(function(){n(),(0,C.removeClassName)(i.frame,"busy"),i.dom.busyContent.innerText=""},100)):n()},h.validate=d.validate,h._renderErrors=d._renderErrors,[{mode:"preview",mixin:h,data:"json"}])},6210:function(le,U,Z){Z.r(U),Z.d(U,{showSortModal:function(){return z}});var U=Z(483),x=Z.n(U),H=Z(7907),j=Z(9791);function z(Y,C,N,A){var f=Array.isArray(C)?(0,j.getChildPaths)(C):[""],R=A&&A.path&&(0,j.contains)(f,A.path)?A.path:f[0],y=A&&A.direction||"asc",C='';x()({parent:Y,content:C,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate(function(d){var h=d.modalElem().querySelector("form"),l=d.modalElem().querySelector("#ok"),n=d.modalElem().querySelector("#field"),o=d.modalElem().querySelector("#direction");function i(a){o.value=a,o.className="jsoneditor-button-group jsoneditor-button-group-value-"+o.value}f.forEach(function(a){var r,e=document.createElement("option");e.text=(r=a)===""?"@":r[0]==="."?r.slice(1):r,e.value=a,n.appendChild(e)}),n.value=R||f[0],i(y||"asc"),o.onclick=function(a){i(a.target.getAttribute("data-value"))},l.onclick=function(a){a.preventDefault(),a.stopPropagation(),d.close(),N({path:n.value,direction:o.value})},h&&(h.onsubmit=l.onclick)}).afterClose(function(d){d.destroy()}).show()}},2558:function(le,x,Z){Z.r(x),Z.d(x,{showTransformModal:function(){return R}});var x=Z(483),U=Z.n(x),x=Z(3879),H=Z.n(x),j=Z(7907);function z(y){return(z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C})(y)}function Y(y,C,d,h){if(typeof y=="boolean"||y instanceof Boolean||y===null||typeof y=="number"||y instanceof Number||typeof y=="string"||y instanceof String||y instanceof Date)return JSON.stringify(y);if(Array.isArray(y)){for(var l=y,n=C,o=d,i=h,a=n?o+n:void 0,r=n?`[
+`:"[",e=0;ei)return r+"..."}return r+=n?`
+`+o+"]":"]"}if(y&&z(y)==="object"){var s,c=y,p=C,o=d,g=h,b=p?o+p:void 0,w=!0,E=p?`{
+`:"{";if(typeof c.toJSON=="function")return Y(c.toJSON(),p,o,g);for(s in c)if(function(O,k){return Object.prototype.hasOwnProperty.call(O,k)}(c,s)){var W=c[s];if(w?w=!1:E+=p?`,
+`:",",(E=(E+=p?b+'"'+s+'": ':'"'+s+'":')+Y(W,p,b,g)).length>g)return E+"..."}return E+=p?`
+`+o+"}":"}"}}function G(y,C){for(var d="";0JMESPath query to filter, sort, or transform the JSON data. To learn JMESPath, go to the interactive tutorial .';function R(a){var C=a.container,d=a.json,h=a.queryDescription,h=h===void 0?f:h,l=a.createQuery,n=a.executeQuery,o=a.onTransform,i=d,a='"+h+'
'+(0,j.Iu)("transformWizardLabel")+'
'+(0,j.Iu)("transformWizardFilter")+'
== != < <= > >=
'+(0,j.Iu)("transformWizardSortBy")+'
Ascending Descending
'+(0,j.Iu)("transformWizardSelectFields")+'
'+(0,j.Iu)("transformQueryLabel")+'
'+(0,j.Iu)("transformPreviewLabel")+'
';U()({parent:C,content:a,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-transform",focus:!1}).afterCreate(function(r){var e=r.modalElem(),B=e.querySelector("#wizard"),t=e.querySelector("#ok"),s=e.querySelector("#filterField"),c=e.querySelector("#filterRelation"),p=e.querySelector("#filterValue"),g=e.querySelector("#sortField"),b=e.querySelector("#sortOrder"),w=e.querySelector("#selectFields"),E=e.querySelector("#query"),W=e.querySelector("#preview");Array.isArray(i)||(B.style.fontStyle="italic",B.textContent="(wizard not available for objects, only for arrays)"),(0,N.getChildPaths)(d).forEach(function(Q){var Q=v(Q),K=document.createElement("option"),K=(K.text=Q,K.value=Q,s.appendChild(K),document.createElement("option"));K.text=Q,K.value=Q,g.appendChild(K)});var B=(0,N.getChildPaths)(d,!0).filter(function(X){return X!==""}),B=(0ne?(Q=K,(typeof(T=ne)=="number"?Q.slice(0,T):Q)+"..."):K),t.disabled=!1}catch(F){W.className="jsoneditor-transform-preview jsoneditor-error",W.value=F.toString(),t.disabled=!0}var Q,K,ne,T},300);function P(X,Q){try{E.value=l(X,Q),t.disabled=!1,$()}catch(K){X='Error: an error happened when executing "createQuery": '+(K.message||K.toString()),E.value="",t.disabled=!0,W.className="jsoneditor-transform-preview jsoneditor-error",W.value=X}}function M(){var X={};if(s.value&&c.value&&p.value&&(X.filter={field:s.value,relation:c.value,value:p.value}),g.value&&b.value&&(X.sort={field:g.value,direction:b.value}),w.value){for(var Q,K=[],ne=0;ne=W[O].key.column&&g.column<=W[O].keyEnd.column&&(u=O.slice(0,O.lastIndexOf("/"))),(u=((_=W[O].value)==null?void 0:_.line)===g.row&&((_=W[O].value)==null?void 0:_.line)===((_=W[O].valueEnd)==null?void 0:_.line)&&g.column>=W[O].value.column&&g.column<=W[O].valueEnd.column?O:u)&&(_=k(u,E.suggestions,""),B(_))})})}catch{}}}])&&h(t.prototype,s),Object.defineProperty(t,"prototype",{writable:!1}),e}();function n(e){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var o={},i="ace/theme/jsoneditor";function a(){try{this.format()}catch{}}o.create=function(w){var t,s,c,p=this,g=1"),line:e}]),this._renderErrors(c),typeof this.options.onValidationError=="function"&&(0,C.isValidationErrorChanged)(c,this.lastSchemaErrors)&&this.options.onValidationError.call(this,c),this.lastSchemaErrors=c,Promise.resolve(this.lastSchemaErrors)}},o._validateAndCatch=function(){this.validate().catch(function(e){console.error("Error running validation:",e)})},o._renderErrors=function(e){var s=this.getText(),t=[],s=(e.reduce(function(c,p){return typeof p.dataPath=="string"&&c.indexOf(p.dataPath)===-1&&c.push(p.dataPath),c},t),(0,C.getPositionForPath)(s,t));this.aceEditor&&(this.annotations=s.map(function(c){var p=e.filter(function(b){return b.dataPath===c.path}),g=p.map(function(b){return b.message}).join(`
+`);return g?{row:c.line,column:c.column,text:"Schema validation error"+(p.length!==1?"s":"")+`:
+`+g,type:"warning",source:"jsoneditor"}:{}}),this._refreshAnnotations()),this.errorTable.setErrors(e,s),this.aceEditor&&this.aceEditor.resize(!1)},o.getTextSelection=function(){var e,t,s,c={};return this.textarea?(s=(0,C.getInputSelection)(this.textarea),this.cursorInfo&&this.cursorInfo.line===s.end.row&&this.cursorInfo.column===s.end.column?(c.start=s.end,c.end=s.start):c=s,{start:c.start,end:c.end,text:this.textarea.value.substring(s.startIndex,s.endIndex)}):this.aceEditor?(s=this.aceEditor.getSelection(),e=this.aceEditor.getSelectedText(),t=s.getRange(),(s=s.getSelectionLead()).row===t.end.row&&s.column===t.end.column?c=t:(c.start=t.end,c.end=t.start),{start:{row:c.start.row+1,column:c.start.column+1},end:{row:c.end.row+1,column:c.end.column+1},text:e}):void 0},o.onTextSelectionChange=function(e){typeof e=="function"&&(this._selectionChangedHandler=(0,C.debounce)(e,this.DEBOUNCE_INTERVAL))},o.setTextSelection=function(e,t){var s,c,p;e&&t&&(this.textarea?(s=(0,C.getIndexForPosition)(this.textarea,e.row,e.column),p=(0,C.getIndexForPosition)(this.textarea,t.row,t.column),-1this.textarea.clientHeight?c-this.textarea.clientHeight/2:0)):this.aceEditor&&(p={start:{row:e.row-1,column:e.column-1},end:{row:t.row-1,column:t.column-1}},this.aceEditor.selection.setRange(p),this.aceEditor.scrollToLine(e.row-1,!0)))};var r=[{mode:"text",mixin:o,data:"text",load:a},{mode:"code",mixin:o,data:"text",load:a}]},8038:function(le,X,K){K.r(X),K.d(X,{treeModeMixins:function(){return ne}});var U={start:function(T,F,V){return F.indexOf(T)===0},contain:function(T,F,V){return-1=T.length?{done:!0}:{done:!1,value:T[L++]}},e:function(J){throw J},f:F};throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(T,F){var V;if(T)return typeof T=="string"?a(T,F):(V=(V=Object.prototype.toString.call(T).slice(8,-1))==="Object"&&T.constructor?T.constructor.name:V)==="Map"||V==="Set"?Array.from(T):V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V)?a(T,F):void 0}function a(T,F){(F==null||F>T.length)&&(F=T.length);for(var V=0,I=new Array(F);V=I.length;D--)this.removeChild(this.childs[D],!1)}else if(this.type==="object"){for(this.childs||(this.childs=[]),D=this.childs.length-1;0<=D;D--)g(I,this.childs[D].field)||this.removeChild(this.childs[D],!1);for(var xe in L=0,I)g(I,xe)&&((pe=I[xe])===void 0||pe instanceof Function||((me=this.findChildByProperty(xe))?(me.setField(xe,!0),me.setValue(pe)):(me=new T(this.editor,{field:xe,value:pe}),xe=L=I.childs.length;re--)this.removeChild(this.childs[re],!1)}else if(I.type==="object"){for(this.childs||(this.childs=[]),J=0;J=I.childs.length;re--)this.removeChild(this.childs[re],!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=I.value;Array.isArray(pe)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"recreateDom",value:function(){var I;this.dom&&this.dom.tr&&this.dom.tr.parentNode?(I=this._detachFromDom(),this.clearDom(),this._attachToDom(I)):this.clearDom()}},{key:"getValue",value:function(){var I,S;return this.type==="array"?(I=[],this.childs.forEach(function(L){I.push(L.getValue())}),I):this.type==="object"?(S={},this.childs.forEach(function(L){S[L.getField()]=L.getValue()}),S):(this.value===void 0&&this._getDomValue(),this.value)}},{key:"getInternalValue",value:function(){return this.type==="array"?{type:this.type,childs:this.childs.map(function(I){return I.getInternalValue()})}:this.type==="object"?{type:this.type,childs:this.childs.map(function(I){return{field:I.getField(),value:I.getInternalValue()}})}:(this.value===void 0&&this._getDomValue(),{type:this.type,value:this.value})}},{key:"getLevel",value:function(){return this.parent?this.parent.getLevel()+1:0}},{key:"getNodePath",value:function(){var I=this.parent?this.parent.getNodePath():[];return I.push(this),I}},{key:"clone",value:function(){var I,S;return(I=new T(this.editor)).type=this.type,I.field=this.field,I.fieldInnerText=this.fieldInnerText,I.fieldEditable=this.fieldEditable,I.previousField=this.previousField,I.value=this.value,I.valueInnerText=this.valueInnerText,I.previousValue=this.previousValue,I.expanded=this.expanded,I.visibleChilds=this.visibleChilds,this.childs?(S=[],this.childs.forEach(function(L){L=L.clone(),L.setParent(I),S.push(L)}),I.childs=S):I.childs=void 0,I}},{key:"expand",value:function(I){this.childs&&(this.expanded=!0,this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-expanded"),this.showChilds(),I!==!1&&this.childs.forEach(function(S){S.expand(I)}),this.updateDom({recurse:!1}))}},{key:"collapse",value:function(I){this.childs&&(this.hideChilds(),I!==!1&&this.childs.forEach(function(S){S.collapse(I)}),this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-collapsed"),this.expanded=!1,this.updateDom({recurse:!1}))}},{key:"showChilds",value:function(){var I=this.childs;if(I&&this.expanded){var I=this.dom.tr,S=I?I.parentNode:void 0;if(S){for(var L=this.getAppendDom(),D=(L.parentNode||((J=I.nextSibling)?S.insertBefore(L,J):S.appendChild(L)),Math.min(this.childs.length,this.visibleChilds)),J=this._getNextTr(),re=0;rethis.visibleChilds?(re=this.childs[this.visibleChilds-1],this.insertBefore(I,re,L)):this.appendChild(I,!0,L):this.insertBefore(I,S,L),D)&&J&&D.removeChild(J)}},{key:"insertBefore",value:function(I,S,L){if(this._hasChilds()){if(this.visibleChilds++,this.type==="object"&&I.field===void 0&&I.setField(""),S===this.append)I.setParent(this),I.fieldEditable=this.type==="object",this.childs.push(I);else{var D=this.childs.indexOf(S);if(D===-1)throw new Error("Node not found");I.setParent(this),I.fieldEditable=this.type==="object",this.childs.splice(D,0,I)}var J;this.expanded&&(D=I.getDom(),J=(S=S.getDom())?S.parentNode:void 0,S&&J&&J.insertBefore(D,S),I.showChilds(),this.showChilds()),L!==!1&&(this.updateDom({updateIndexes:!0}),I.updateDom({recurse:!0}))}}},{key:"insertAfter",value:function(I,S){this._hasChilds()&&(S=this.childs.indexOf(S),(S=this.childs[S+1])?this.insertBefore(I,S):this.appendChild(I))}},{key:"search",value:function(I,S){Array.isArray(S)||(S=[]);var L=I?I.toLowerCase():void 0;return delete this.searchField,delete this.searchValue,this.field!==void 0&&S.length<=this.MAX_SEARCH_RESULTS&&(String(this.field).toLowerCase().indexOf(L)!==-1&&(this.searchField=!0,S.push({node:this,elem:"field"})),this._updateDomField()),this._hasChilds()?this.childs&&this.childs.forEach(function(D){D.search(I,S)}):this.value!==void 0&&S.length<=this.MAX_SEARCH_RESULTS&&(String(this.value).toLowerCase().indexOf(L)!==-1&&(this.searchValue=!0,S.push({node:this,elem:"value"})),this._updateDomValue()),S}},{key:"scrollTo",value:function(I){this.expandPathToNode(),this.dom.tr&&this.dom.tr.parentNode&&this.editor.scrollTo(this.dom.tr.offsetTop,I)}},{key:"expandPathToNode",value:function(){for(var I=this;I&&I.parent;){for(var S=I.parent.type==="array"?I.index:I.parent.childs.indexOf(I);I.parent.visibleChilds /g,">").replace(/ {2}/g," ").replace(/^ /," ").replace(/ $/," "),I=(I=JSON.stringify(I)).substring(1,I.length-1),this.editor.options.escapeUnicode===!0?(0,y.escapeUnicodeChars)(I):I)}},{key:"_unescapeHTML",value:function(I){return I='"'+this._escapeJSON(I)+'"',(0,y.parse)(I).replace(/</g,"<").replace(/>/g,">").replace(/ |\u00A0/g," ").replace(/&/g,"&")}},{key:"_escapeJSON",value:function(I){for(var S="",L=0;Lthis.parent.visibleChilds},W.prototype.onEvent=function(T){T.type==="keydown"&&this.onKeyDown(T)};var E=W;function W(T,F){this.editor=T,this.parent=F,this.dom={}}function B(T){return(B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(T)}function O(T,F){for(var V=0;Vthis.results.length-1&&(S=0),this._setActiveResult(S,I))}},{key:"previous",value:function(I){var S,L;this.results&&(S=this.results.length-1,L=this.resultIndex!==null?this.resultIndex-1:S,this._setActiveResult(L=L<0?S:L,I))}},{key:"_setActiveResult",value:function(I,S){var L,D,J;this.activeResult&&(L=this.activeResult.node,this.activeResult.elem==="field"?delete L.searchFieldActive:delete L.searchValueActive,L.updateDom()),this.results&&this.results[I]?(this.resultIndex=I,D=this.results[this.resultIndex].node,(J=this.results[this.resultIndex].elem)==="field"?D.searchFieldActive=!0:D.searchValueActive=!0,this.activeResult=this.results[this.resultIndex],D.updateDom(),D.scrollTo(function(){S&&D.focus(J)})):(this.resultIndex=void 0,this.activeResult=void 0)}},{key:"_clearDelay",value:function(){this.timeout!==void 0&&(clearTimeout(this.timeout),delete this.timeout)}},{key:"_onDelayedSearch",value:function(I){this._clearDelay();var S=this;this.timeout=setTimeout(function(L){S._onSearch()},this.delay)}},{key:"_onSearch",value:function(I){this._clearDelay();var S=this.dom.search.value,S=0ee.length)&&(ae=ee.length);for(var he=0,Ce=new Array(ae);he=ee.left&&ae.right+he<=ee.right&&ae.top-he>=ee.top&&ae.bottom+he<=ee.bottom}function L(ee,ae,he){var Ce;return function(){var Te=this,ke=arguments,Ne=he&&!Ce;clearTimeout(Ce),Ce=setTimeout(function(){Ce=null,he||ee.apply(Te,ke)},ae),Ne&&ee.apply(Te,ke)}}function D(ee,ae){for(var he=ae.length,Ce=0,Te=ee.length,ke=ae.length;ae.charAt(Ce)===ee.charAt(Ce)&&Ce"u"||(j=window),(z=function(A,f,R){typeof A!="string"?z.original?z.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace()):(arguments.length==2&&(R=f),z.modules[A]||(z.payloads[A]=R,z.modules[A]=null))}).modules={},z.payloads={},Y=function(A,f,R){if(typeof f=="string"){var y=U(A,f);if(y!=null)return R&&R(),y}else if(Object.prototype.toString.call(f)==="[object Array]"){for(var C=[],d=0,h=f.length;dthis.length)&&(d=this.length),d-=C.length,C=this.indexOf(C,d),C!==-1&&C===d}),String.prototype.repeat||y(String.prototype,"repeat",function(C){for(var d="",h=this;0>=1)&&(h+=h);return d}),String.prototype.includes||y(String.prototype,"includes",function(C,d){return this.indexOf(C,d)!=-1}),Object.assign||(Object.assign=function(C){if(C==null)throw new TypeError("Cannot convert undefined or null to object");for(var d=Object(C),h=1;h>>0,l=arguments[1]>>0,h=l<0?Math.max(d+l,0):Math.min(l,d),l=arguments[2],l=l===void 0?d:l>>0,n=l<0?Math.max(d+l,0):Math.min(l,d);h>=1)&&(d+=d);return l};var y=/^\s\s*/,C=/\s\s*$/;f.stringTrimLeft=function(d){return d.replace(y,"")},f.stringTrimRight=function(d){return d.replace(C,"")},f.copyObject=function(d){var h,l={};for(h in d)l[h]=d[h];return l},f.copyArray=function(d){for(var h=[],l=0,n=d.length;l ["+this.end.row+"/"+this.end.column+"]"},C.prototype.contains=function(d,h){return this.compare(d,h)==0},C.prototype.compareRange=function(h){var l=h.end,h=h.start,l=this.compare(l.row,l.column);return l==1?(l=this.compare(h.row,h.column))==1?2:l==0?1:0:l==-1?-2:(l=this.compare(h.row,h.column))==-1?-1:l==1?42:0},C.prototype.comparePoint=function(d){return this.compare(d.row,d.column)},C.prototype.containsRange=function(d){return this.comparePoint(d.start)==0&&this.comparePoint(d.end)==0},C.prototype.intersects=function(d){return d=this.compareRange(d),d==-1||d==0||d==1},C.prototype.isEnd=function(d,h){return this.end.row==d&&this.end.column==h},C.prototype.isStart=function(d,h){return this.start.row==d&&this.start.column==h},C.prototype.setStart=function(d,h){typeof d=="object"?(this.start.column=d.column,this.start.row=d.row):(this.start.row=d,this.start.column=h)},C.prototype.setEnd=function(d,h){typeof d=="object"?(this.end.column=d.column,this.end.row=d.row):(this.end.row=d,this.end.column=h)},C.prototype.inside=function(d,h){return this.compare(d,h)==0&&!this.isEnd(d,h)&&!this.isStart(d,h)},C.prototype.insideStart=function(d,h){return this.compare(d,h)==0&&!this.isEnd(d,h)},C.prototype.insideEnd=function(d,h){return this.compare(d,h)==0&&!this.isStart(d,h)},C.prototype.compare=function(d,h){return this.isMultiLine()||d!==this.start.row?dthis.end.row?1:this.start.row===d?h>=this.start.column?0:-1:this.end.row!==d||h<=this.end.column?0:1:hthis.end.column?1:0},C.prototype.compareStart=function(d,h){return this.start.row==d&&this.start.column==h?-1:this.compare(d,h)},C.prototype.compareEnd=function(d,h){return this.end.row==d&&this.end.column==h?1:this.compare(d,h)},C.prototype.compareInside=function(d,h){return this.end.row==d&&this.end.column==h?1:this.start.row==d&&this.start.column==h?-1:this.compare(d,h)},C.prototype.clipRows=function(d,h){var l,n;return this.end.row>h?l={row:h+1,column:0}:this.end.rowh?n={row:h+1,column:0}:this.start.rowDate.now()-50)||(y=!1)},cancel:function(){y=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(A,f,R){var y=A("../lib/event"),C=A("../config").nls,d=A("../lib/useragent"),h=A("../lib/dom"),l=A("../lib/lang"),n=A("../clipboard"),o=d.isChrome<18,i=d.isIE,a=63X?(ce=g.session.getLine(X+1),te=fe.end.row>X+1?ce.length:fe.end.column,te+=ie.length+1,ie=ie+`
+`+ce):c&&0=_.length&&ge.value===_&&_&&ge.selectionEnd!==$}),L=null,D=(this.setInputHandler=function(ge){L=ge},!(this.getInputHandler=function(){return L})),J=function(ge,te){if(D=D&&!1,E)return I(),ge&&g.onPaste(ge),E=!1,"";for(var ie=b.selectionStart,ce=b.selectionEnd,fe=v,Ie=_.length-$,$e=ge,ee=ge.length-ie,ae=ge.length-ce,he=0;0v-1&&_[_.length-he]==ge[ge.length-he];)he++,Ie--;ee-=he-1,ae-=he-1;var Ce=$e.length-he+1;return Ce<0&&(fe=-Ce,Ce=0),$e=$e.slice(0,Ce),te||$e||ee||fe||Ie||ae?(Ce=!(B=!0),d.isAndroid&&$e==". "&&($e=" ",Ce=!0),$e&&!fe&&!Ie&&!ee&&!ae||k?g.onTextInput($e):g.onTextInput($e,{extendLeft:fe,extendRight:Ie,restoreStart:ee,restoreEnd:ae}),B=!1,_=ge,v=ie,$=ce,P=ae,Ce?`
+`:$e):""},re=function(te){if(W)return ye();if(te&&te.inputType){if(te.inputType=="historyUndo")return g.execCommand("undo");if(te.inputType=="historyRedo")return g.execCommand("redo")}var te=b.value,ie=J(te,!0);(500this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},d.prototype.onDoubleClick=function(n){var n=n.getDocumentPosition(),o=this.editor,i=o.session.getBracketRange(n);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=o.selection.getWordRange(n.row,n.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},d.prototype.onTripleClick=function(n){var n=n.getDocumentPosition(),o=this.editor,i=(this.setState("selectByLines"),o.getSelectionRange());i.isMultiLine()&&i.contains(n.row,n.column)?(this.$clickSelection=o.selection.getLineRange(i.start.row),this.$clickSelection.end=o.selection.getLineRange(i.end.row).end):this.$clickSelection=o.selection.getLineRange(n.row),this.select()},d.prototype.onQuadClick=function(l){var n=this.editor;n.selectAll(),this.$clickSelection=n.getSelectionRange(),this.setState("selectAll")},d.prototype.onMouseWheel=function(l){var n,o,i,a,r,e,t;if(!l.getAccelKey())return l.getShiftKey()&&l.wheelY&&!l.wheelX&&(l.wheelX=l.wheelY,l.wheelY=0),n=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),o=this.$lastScroll,a=(t=(i=l.domEvent.timeStamp)-o.t)?l.wheelX/t:o.vx,r=t?l.wheelY/t:o.vy,t<550&&(a=(a+o.vx)/2,r=(r+o.vy)/2),t=!1,1<=(e=Math.abs(a/r))&&n.renderer.isScrollableBy(l.wheelX*l.speed,0)&&(t=!0),(t=e<=1&&n.renderer.isScrollableBy(0,l.wheelY*l.speed)?!0:t)?o.allowed=i:i-o.allowed<550&&(Math.abs(a)<=1.5*Math.abs(o.vx)&&Math.abs(r)<=1.5*Math.abs(o.vy)?(t=!0,o.allowed=i):o.allowed=0),o.t=i,o.vx=a,o.vy=r,t?(n.renderer.scrollBy(l.wheelX*l.speed,l.wheelY*l.speed),l.stop()):void 0},d);function d(l){l.$clickSelection=null;var n=l.editor;n.setDefaultHandler("mousedown",this.onMouseDown.bind(l)),n.setDefaultHandler("dblclick",this.onDoubleClick.bind(l)),n.setDefaultHandler("tripleclick",this.onTripleClick.bind(l)),n.setDefaultHandler("quadclick",this.onQuadClick.bind(l)),n.setDefaultHandler("mousewheel",this.onMouseWheel.bind(l)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(o){l[o]=this[o]},this),l.selectByLines=this.extendSelectionBy.bind(l,"getLineRange"),l.selectByWords=this.extendSelectionBy.bind(l,"getWordRange")}function h(l,n){return(l.start.row==l.end.row?2*n.column-l.start.column-l.end.column:l.start.row!=l.end.row-1||l.start.column||l.end.column?2*n.row-l.start.row-l.end.row:n.column-4)<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}C.prototype.selectEnd=C.prototype.selectByLinesEnd,C.prototype.selectAllEnd=C.prototype.selectByLinesEnd,C.prototype.selectByWordsEnd=C.prototype.selectByLinesEnd,f.DefaultHandlers=C}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/range"],function(n,f,R){var y,e=this&&this.__extends||(y=function(s,c){return(y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(p,g){p.__proto__=g}:function(p,g){for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(p[b]=g[b])}))(s,c)},function(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function p(){this.constructor=s}y(s,c),s.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}),C=this&&this.__values||function(s){var c=typeof Symbol=="function"&&Symbol.iterator,p=c&&s[c],g=0;if(p)return p.call(s);if(s&&typeof s.length=="number")return{next:function(){return{value:(s=s&&g>=s.length?void 0:s)&&s[g++],done:!s}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("./lib/dom"),h=n("./range").Range,l="ace_tooltip",n=(o.prototype.$init=function(){return this.$element=d.createElement("div"),this.$element.className=l,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},o.prototype.getElement=function(){return this.$element||this.$init()},o.prototype.setText=function(s){this.getElement().textContent=s},o.prototype.setHtml=function(s){this.getElement().innerHTML=s},o.prototype.setPosition=function(s,c){this.getElement().style.left=s+"px",this.getElement().style.top=c+"px"},o.prototype.setClassName=function(s){d.addCssClass(this.getElement(),s)},o.prototype.setTheme=function(s){this.$element.className=l+" "+(s.isDark?"ace_dark ":"")+(s.cssClass||"")},o.prototype.show=function(s,c,p){s!=null&&this.setText(s),c!=null&&p!=null&&this.setPosition(c,p),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},o.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=l,this.isOpen=!1)},o.prototype.getHeight=function(){return this.getElement().offsetHeight},o.prototype.getWidth=function(){return this.getElement().offsetWidth},o.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},o);function o(s){this.isOpen=!1,this.$element=null,this.$parentNode=s}function i(){this.popups=[]}i.prototype.addPopup=function(s){this.popups.push(s),this.updatePopups()},i.prototype.removePopup=function(s){s=this.popups.indexOf(s),s!==-1&&(this.popups.splice(s,1),this.updatePopups())},i.prototype.updatePopups=function(){this.popups.sort(function(_,v){return v.priority-_.priority});var s,c,p,g,b=[];try{for(var w=C(this.popups),E=w.next();!E.done;E=w.next()){var W=E.value,B=!0;try{p=void 0;for(var O=C(b),k=O.next();!k.done;k=O.next()){var u=k.value;if(this.doPopupsOverlap(u,W)){B=!1;break}}}catch(_){p={error:_}}finally{try{k&&!k.done&&(g=O.return)&&g.call(O)}finally{if(p)throw p.error}}B?b.push(W):W.hide()}}catch(_){s={error:_}}finally{try{E&&!E.done&&(c=w.return)&&c.call(w)}finally{if(s)throw s.error}}},i.prototype.doPopupsOverlap=function(s,c){return s=s.getElement().getBoundingClientRect(),c=c.getElement().getBoundingClientRect(),s.leftc.left&&s.topc.top};var a,r=new i,e=(f.popupManager=r,f.Tooltip=n,e(t,a=n),t.prototype.addToEditor=function(s){s.on("mousemove",this.onMouseMove),s.on("mousedown",this.hide),s.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},t.prototype.removeFromEditor=function(s){s.off("mousemove",this.onMouseMove),s.off("mousedown",this.hide),s.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},t.prototype.onMouseMove=function(s,g){this.lastEvent=s,this.lastT=Date.now();var p,g=g.$mouseHandler.isMousePressed;this.isOpen&&(p=this.lastEvent&&this.lastEvent.getDocumentPosition(),this.range&&this.range.contains(p.row,p.column)&&!g&&!this.isOutsideOfText(this.lastEvent)||this.hide()),this.timeout||g||(this.lastEvent=s,this.timeout=setTimeout(this.waitForHover,this.idleTime))},t.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var s=Date.now()-this.lastT;10=e.length?void 0:e)&&e[c++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},h=A("../lib/dom"),l=A("../lib/event"),n=A("../tooltip").Tooltip,o=A("../config").nls;f.GutterHandler=function(e){var t,s,c=e.editor,p=c.renderer.$gutterLayer,g=new a(c);function b(){t=t&&clearTimeout(t),g.isOpen&&(g.hideTooltip(),c.off("mousewheel",b))}function w(E){g.setPosition(E.x,E.y)}e.editor.setDefaultHandler("guttermousedown",function(E){if(c.isFocused()&&E.getButton()==0){var W=p.getRegion(E);if(W!="foldWidgets"){var W=E.getDocumentPosition().row,B=c.session.selection;if(E.getShiftKey())B.selectTo(W,0);else{if(E.domEvent.detail==2)return c.selectAll(),E.preventDefault();e.$clickSelection=c.selection.getLineRange(W)}return e.setState("selectByLines"),e.captureMouse(E),E.preventDefault()}}}),e.editor.setDefaultHandler("guttermousemove",function(E){var W=E.domEvent.target||E.domEvent.srcElement;if(h.hasCssClass(W,"ace_fold-widget"))return b();g.isOpen&&e.$tooltipFollowsMouse&&w(E),s=E,t=t||setTimeout(function(){if(t=null,s&&!e.isMousePressed){var B=s.getDocumentPosition().row;if(B==c.session.getLength()){var O=c.renderer.pixelToScreenCoordinates(0,s.y).row,k=s.$pos;if(O>c.session.documentToScreenRow(k.row,k.column))return void b()}g.showTooltip(B),g.isOpen&&(c.on("mousewheel",b),!e.$tooltipFollowsMouse&&(O=s.getGutterRow(),k=p.$lines.get(O))?(B=k.element.querySelector(".ace_gutter_annotation").getBoundingClientRect(),(O=g.getElement().style).left=B.right+"px",O.top=B.bottom+"px"):w(s))}else b()},50)}),l.addListener(c.renderer.$gutter,"mouseout",function(E){s=null,g.isOpen&&(t=t||setTimeout(function(){t=null,b()},50))},c),c.on("changeSession",b),c.on("input",b)},C(r,i=n),r.prototype.setPosition=function(e,t){var s=window.innerWidth||document.documentElement.clientWidth,c=window.innerHeight||document.documentElement.clientHeight,p=this.getWidth(),g=this.getHeight();s<(e+=15)+p&&(e-=e+p-s),c<(t+=15)+g&&(t-=20+g),n.prototype.setPosition.call(this,e,t)},Object.defineProperty(r,"annotationLabels",{get:function(){return{error:{singular:o("error"),plural:o("errors")},warning:{singular:o("warning"),plural:o("warnings")},info:{singular:o("information message"),plural:o("information messages")}}},enumerable:!1,configurable:!0}),r.prototype.showTooltip=function(e){var t=this.editor.renderer.$gutterLayer,s=t.$annotations[e],c=s?{text:Array.from(s.text),type:Array.from(s.type)}:{text:[],type:[]},p=t.session.getFoldLine(e);if(p&&t.$showFoldedAnnotations){for(var g,b={error:[],warning:[],info:[]},w=e+1;w<=p.end.row;w++)if(t.$annotations[w])for(var E=0;E ").concat(c.text[w]);B[c.type[w].replace("_fold","")].push(k)}e=[].concat(B.error,B.warning,B.info).join(" "),this.setHtml(e),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},r.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},r.annotationsToSummaryString=function(e){var t,s,c=[];try{for(var p=d(["error","warning","info"]),g=p.next();!g.done;g=p.next()){var b,w=g.value;e[w].length&&(b=e[w].length===1?r.annotationLabels[w].singular:r.annotationLabels[w].plural,c.push("".concat(e[w].length," ").concat(b)))}}catch(E){t={error:E}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(t)throw t.error}}return c.join(", ")};var i,a=r;function r(e){var t=i.call(this,e.container)||this;return t.editor=e,t}f.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(A,f,R){var y=A("../lib/event"),C=A("../lib/useragent");function d(h,l){this.domEvent=h,this.editor=l,this.x=this.clientX=h.clientX,this.y=this.clientY=h.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}d.prototype.stopPropagation=function(){y.stopPropagation(this.domEvent),this.propagationStopped=!0},d.prototype.preventDefault=function(){y.preventDefault(this.domEvent),this.defaultPrevented=!0},d.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},d.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},d.prototype.getGutterRow=function(){var h=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(h,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},d.prototype.inSelection=function(){var h,l;return this.$inSelection===null&&((h=this.editor.getSelectionRange()).isEmpty()?this.$inSelection=!1:(l=this.getDocumentPosition(),this.$inSelection=h.contains(l.row,l.column))),this.$inSelection},d.prototype.getButton=function(){return y.getButton(this.domEvent)},d.prototype.getShiftKey=function(){return this.domEvent.shiftKey},d.prototype.getAccelKey=function(){return C.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},f.MouseEvent=d}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(A,f,R){var y=A("../lib/dom"),C=A("../lib/event"),d=A("../lib/useragent");function h(n){var o,i,a,r,e,t,s,c,p,g,b,w=n.editor,E=y.createElement("div"),W=(E.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",E.textContent=" ",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(M){n[M]=this[M]},this),w.on("mousedown",this.onMouseDown.bind(n)),w.container),B=0;function O(){var M,X,Q,K,ne,T,F,V,I=t;t=w.renderer.screenToTextCoordinates(i,a),Q=t,X=I,K=Date.now(),M=!X||Q.row!=X.row,X=!X||Q.column!=X.column,!g||M||X?(w.moveCursorToPosition(Q),g=K,b={x:i,y:a}):5this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(n){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var n=this.editor,o=(n.container.draggable=!0,n.renderer.$cursorLayer.setBlinking(!1),n.setStyle("ace_dragging"),d.isWin?"default":"move");n.renderer.setCursorStyle(o),this.setState("dragReady")},this.onMouseDrag=function(n){var o=this.editor.container;d.isIE&&this.state=="dragReady"&&3v&&(i=-1),n=u.clientX=X,o=u.clientY=M,w=E=0,new y(u,l));if(t=X.getDocumentPosition(),P-i<500&&_.length==1&&!g)b++,u.preventDefault(),u.button=0,r=null,clearTimeout(r),l.selection.moveToPosition(t),(M=2<=b?l.selection.getLineRange(t.row):l.session.getBracketRange(t))&&!M.isEmpty()?l.selection.setRange(M):l.selection.selectWord(),p="wait";else{b=0;var X=l.selection.cursor,_=l.selection.isEmpty()?X:l.selection.anchor,M=l.renderer.$cursorLayer.getPixelPosition(X,!0),X=l.renderer.$cursorLayer.getPixelPosition(_,!0),_=l.renderer.scroller.getBoundingClientRect(),Q=l.renderer.layerConfig.offset,K=l.renderer.scrollLeft,ne=function(I,S){return(I/=$)*I+(S=S/v-.75)*S};if(u.clientX<_.left)return void(p="zoom");M=ne(u.clientX-_.left-M.left+K,u.clientY-_.top-M.top+Q),ne=ne(u.clientX-_.left-X.left+K,u.clientY-_.top-X.top+Q),M<3.5&&ne<3.5&&(p=ne=be.length||(Re=Ae[we-1])!=r&&Re!=e||(Le=be[we+1])!=r&&Le!=e?t:(Le=d?e:Le)==Re?Le:t;case w:return(Re=0=K){for(F=D+1;F=K;)F++;for(V=D,I=F-1;V>8;return T==0?191p&&ne[L]i.row||o.row==i.row&&o.column>i.column},n.prototype.getRange=function(){var o=this.anchor,i=this.lead;return this.$isEmpty?h.fromPoints(i,i):this.isBackwards()?h.fromPoints(i,o):h.fromPoints(o,i)},n.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},n.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},n.prototype.setRange=function(o,r){var a=r?o.end:o.start,r=r?o.start:o.end;this.$setSelection(a.row,a.column,r.row,r.column)},n.prototype.$setSelection=function(o,i,a,r){var e,t;!this.$silent&&(e=this.$isEmpty,t=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(o,i),this.cursor.setPosition(a,r),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),this.$cursorChanged||this.$anchorChanged||e!=this.$isEmpty||t)&&this._emit("changeSelection")},n.prototype.$moveSelection=function(o){var i=this.lead;this.$isEmpty&&this.setSelectionAnchor(i.row,i.column),o.call(this)},n.prototype.selectTo=function(o,i){this.$moveSelection(function(){this.moveCursorTo(o,i)})},n.prototype.selectToPosition=function(o){this.$moveSelection(function(){this.moveCursorToPosition(o)})},n.prototype.moveTo=function(o,i){this.clearSelection(),this.moveCursorTo(o,i)},n.prototype.moveToPosition=function(o){this.clearSelection(),this.moveCursorToPosition(o)},n.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},n.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},n.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},n.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},n.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},n.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},n.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},n.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},n.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},n.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},n.prototype.getWordRange=function(o,i){var a;return i===void 0&&(o=(a=o||this.lead).row,i=a.column),this.session.getWordRange(o,i)},n.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},n.prototype.selectAWord=function(){var o=this.getCursor(),o=this.session.getAWordRange(o.row,o.column);this.setSelectionRange(o)},n.prototype.getLineRange=function(a,i){var a=typeof a=="number"?a:this.lead.row,r=this.session.getFoldLine(a),r=r?(a=r.start.row,r.end.row):a;return i===!0?new h(a,0,r,this.session.getLine(r).length):new h(a,0,r+1,0)},n.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},n.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},n.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},n.prototype.wouldMoveIntoSoftTab=function(o,i,a){var r=o.column,e=o.column+i;return a<0&&(r=o.column-i,e=o.column),this.session.isTabStop(o)&&this.doc.getLine(o.row).slice(r,e).split(" ").length-1==i},n.prototype.moveCursorLeft=function(){var o,i=this.lead.getPosition();(o=this.session.getFoldAt(i.row,i.column,-1))?this.moveCursorTo(o.start.row,o.start.column):i.column===0?0=a.length?(this.moveCursorTo(o,a.length),this.moveCursorRight(),oc&&(b=l.substring(c,B-W.length),g.type==w?g.value+=b:(g.type&&s.push(g),g={type:w,value:b}));for(var O=0;OC){for(p>2*l.length&&this.reportError("infinite loop with in ace tokenizer",{startState:n,line:l});c=this.$rowTokens.length;){if(this.$row+=1,d=d||this.$session.getLength(),this.$row>=d)return this.$row=d-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},C.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},C.prototype.getCurrentTokenRow=function(){return this.$row},C.prototype.getCurrentTokenColumn=function(){var d=this.$rowTokens,h=this.$tokenIndex,l=d[h].start;if(l===void 0)for(l=0;0Q.length&&(X=Q.length)}),b==1/0&&(b=X,g=p=!1),E&&b%w!=0&&(b=Math.floor(b/w)*w),M(g?W:O)},this.toggleBlockComment=function(r,e,t,s){var c=this.blockComment;if(c){!c.start&&c[0]&&(c=c[0]);var p,g,b=(O=new i(e,s.row,s.column)).getCurrentToken(),w=(e.selection,e.selection.toOrientedRange());if(b&&/comment/.test(b.type)){for(;b&&/comment/.test(b.type);){if((k=b.value.indexOf(c.start))!=-1){var E=O.getCurrentTokenRow(),W=O.getCurrentTokenColumn()+k,B=new a(E,W,E,W+c.start.length);break}b=O.stepBackward()}for(var O,k,b=(O=new i(e,s.row,s.column)).getCurrentToken();b&&/comment/.test(b.type);){if((k=b.value.indexOf(c.end))!=-1){var E=O.getCurrentTokenRow(),W=O.getCurrentTokenColumn()+k,u=new a(E,W,E,W+c.end.length);break}b=O.stepForward()}u&&e.remove(u),B&&(e.remove(B),p=B.start.row,g=-c.start.length)}else g=c.start.length,p=t.start.row,e.insert(t.end,c.end),e.insert(t.start,c.start);w.start.row==p&&(w.start.column+=g),w.end.row==p&&(w.end.column+=g),e.selection.fromOrientedRange(w)}},this.getNextLineIndent=function(r,e,t){return this.$getIndent(e)},this.checkOutdent=function(r,e,t){return!1},this.autoOutdent=function(r,e,t){},this.$getIndent=function(r){return r.match(/^\s*/)[0]},this.createWorker=function(r){return null},this.createModeDelegates=function(r){for(var e in this.$embeds=[],this.$modes={},r){var t,s,c;r[e]&&(s=(t=r[e]).prototype.$id,(c=C.$modes[s])||(C.$modes[s]=c=new t),C.$modes[e]||(C.$modes[e]=c),this.$embeds.push(e),this.$modes[e]=c)}for(var p=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],e=0;ethis.row||(n=function(o,i,a){var s=o.action=="insert",r=(s?1:-1)*(o.end.row-o.start.row),e=(s?1:-1)*(o.end.column-o.start.column),t=o.start,s=s?t:o.end;return l(i,t,a)?{row:i.row,column:i.column}:l(s,i,!a)?{row:i.row+r,column:i.column+(i.row==s.row?e:0)}:{row:t.row,column:t.column}}(n,{row:this.row,column:this.column},this.$insertRight),this.setPosition(n.row,n.column,!0))},h.prototype.setPosition=function(n,o,i){i=i?{row:n,column:o}:this.$clipPositionToDocument(n,o),this.row==i.row&&this.column==i.column||(n={row:this.row,column:this.column},this.row=i.row,this.column=i.column,this._signal("change",{old:n,value:i}))},h.prototype.detach=function(){this.document.off("change",this.$onChange)},h.prototype.attach=function(n){this.document=n||this.document,this.document.on("change",this.$onChange)},h.prototype.$clipPositionToDocument=function(n,o){var i={};return n>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):n<0?(i.row=0,i.column=0):(i.row=n,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,o))),o<0&&(i.column=0),i},h);function h(n,o,i){this.$onChange=this.onChange.bind(this),this.attach(n),i===void 0?this.setPosition(o.row,o.column):this.setPosition(o,i)}function l(n,o,i){return i=i?n.column<=o.column:n.column=a?(i.row=Math.max(0,a-1),i.column=this.getLine(a-1).length):(i.row=Math.max(0,i.row),i.column=Math.min(Math.max(i.column,0),this.getLine(i.row).length)),i},o.prototype.insertFullLines=function(i,a){var r=0,r=(i=Math.min(Math.max(i,0),this.getLength()))l+1&&(this.currentLine=l+1)):this.currentLine==l&&(this.currentLine=l+1),this.lines[l]=o.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h);function h(l,n){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=l;var o=this;this.$worker=function(){if(o.running){for(var i=new Date,a=o.currentLine,r=-1,e=o.doc,t=a;o.lines[a];)a++;var s=e.getLength(),c=0;for(o.running=!1;athis.MAX_RANGES?s.slice(0,this.MAX_RANGES):s).map(function(b){return new C(t,b.offset,t,b.offset+b.length)}),this.cache[t]=s.length?s:"");for(var c=s.length;c--;){var p=s[c].toScreenRange(o),g=p.toString();e[g]||(e[g]=!0,n.drawSingleLineMarker(l,p,this.clazz,i))}}},h);function h(l,n,o){o===void 0&&(o="text"),this.setRegexp(l),this.clazz=n,this.type=o}d.prototype.MAX_RANGES=500,f.SearchHighlight=d}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(A,f,R){C.prototype.addSession=function(t){this.$session=t},C.prototype.add=function(t,s,c){this.$fromUndo||t!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),s!==!1&&this.lastDeltas||(this.lastDeltas=[],(s=this.$undoStack.length)>this.$undoDepth-1&&this.$undoStack.splice(0,s-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),t.id=this.$rev=++this.$maxRev),t.action!="remove"&&t.action!="insert"||(this.$lastDelta=t),this.lastDeltas.push(t))},C.prototype.addSelection=function(t,s){this.selections.push({value:t,rev:s||this.$rev})},C.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},C.prototype.markIgnored=function(t,s){s==null&&(s=this.$rev+1);for(var c=this.$undoStack,p=c.length;p--;){var g=c[p][0];if(g.id<=t)break;g.id"+t.end.row+":"+t.end.column}function i(t,s){var c=t.action=="insert",p=s.action=="insert";if(c&&p)if(0<=h(s.start,t.end))a(s,t,-1);else{if(!(h(s.start,t.start)<=0))return;a(t,s,1)}else if(c&&!p)if(0<=h(s.start,t.end))a(s,t,-1);else{if(!(h(s.end,t.start)<=0))return;a(t,s,-1)}else if(!c&&p)if(0<=h(s.start,t.start))a(s,t,1);else{if(!(h(s.start,t.start)<=0))return;a(t,s,1)}else if(!c&&!p)if(0<=h(s.start,t.start))a(s,t,1);else{if(!(h(s.end,t.start)<=0))return;a(t,s,-1)}return 1}function a(t,s,c){r(t.start,s.start,s.end,c),r(t.end,s.start,s.end,c)}function r(t,s,c,p){t.row==(p==1?s:c).row&&(t.column+=p*(c.column-s.column)),t.row+=p*(c.row-s.row)}function e(t,s){var c=t.lines,p=t.end,b=(t.end=l(s),t.end.row-t.start.row),g=c.splice(b,c.length),b=b?s.column:s.column-t.start.column;return c.push(g[0].substring(0,b)),g[0]=g[0].substr(b),{start:l(s),end:p,lines:g,action:t.action}}f.UndoManager=y}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(A,f,R){var y=A("../range").Range;function C(d,h){this.foldData=d,Array.isArray(h)?this.folds=h:h=this.folds=[h],d=h[h.length-1],this.range=new y(h[0].start.row,h[0].start.column,d.end.row,d.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}C.prototype.shiftRow=function(d){this.start.row+=d,this.end.row+=d,this.folds.forEach(function(h){h.start.row+=d,h.end.row+=d})},C.prototype.addFold=function(d){if(d.sameRow){if(d.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(d),this.folds.sort(function(h,l){return-h.range.compareEnd(l.start.row,l.start.column)}),0=this.start.row&&d<=this.end.row},C.prototype.walk=function(d,h,l){var n,o,i=0,a=this.folds,r=!0;h==null&&(h=this.end.row,l=this.end.column);for(var e=0;el||n[n.length-1].start.row=o);r++);if(h.action=="insert")for(var t=i-o,s=-l.column+n.column;ro);r++)c.start.row==o&&c.start.column>=l.column&&(c.start.column==l.column&&this.$bias<=0||(c.start.column+=s,c.start.row+=t)),c.end.row==o&&c.end.column>=l.column&&(c.end.column==l.column&&this.$bias<0||(c.end.column==l.column&&0c.start.column&&c.end.column==a[r+1].start.column&&(c.end.column-=s),c.end.column+=s,c.end.row+=t));else for(var c,t=o-i,s=l.column-n.column;ri);r++)c.end.rowl.column)&&(c.end.column=l.column,c.end.row=l.row):(c.end.column+=s,c.end.row+=t):c.end.row>i&&(c.end.row+=t),c.start.rowl.column)&&(c.start.column=l.column,c.start.row=l.row):(c.start.column+=s,c.start.row+=t):c.start.row>i&&(c.start.row+=t);if(t!=0&&r=n)return r;if(r.end.row>n)return null}return null},this.getNextFoldLine=function(n,o){var i=this.$foldData,a=0;for((a=o?i.indexOf(o):a)==-1&&(a=0);a=n)return r}return null},this.getFoldedRowCount=function(n,o){for(var i=this.$foldData,a=o-n+1,r=0;rs)break;while(r&&t.test(r.type)&&!/^comment.start/.test(r.type));r=a.stepBackward()}else r=a.getCurrentToken();return e.end.row=a.getCurrentTokenRow(),e.end.column=a.getCurrentTokenColumn(),/^comment.end/.test(r.type)||(e.end.column+=r.value.length-2),e}},this.foldAll=function(n,o,i,a){i==null&&(i=1e5);var r=this.foldWidgets;if(r){o=o||this.getLength();for(var e,t=n=n||0;t=n&&(t=e.end.row,e.collapseChildren=i,this.addFold("...",e))}},this.foldToLevel=function(n){for(this.foldAll();0=n)break}a--}return{range:a!==-1&&e,firstRange:t}},this.onFoldWidgetClick=function(n,o){var i={children:(o=o instanceof l?o.domEvent:o).shiftKey,all:o.ctrlKey||o.metaKey,siblings:o.altKey};this.$toggleFoldWidget(n,i)||(n=o.target||o.srcElement)&&/ace_fold-widget/.test(n.className)&&(n.className+=" ace_invalid")},this.$toggleFoldWidget=function(n,o){var i,a,r,e;if(this.getFoldWidget)return i=this.getFoldWidget(n),a=this.getLine(n),(a=this.getFoldAt(n,(i=i==="end"?-1:1)==-1?0:a.length,i))?(o.children||o.all?this.removeFold(a):this.expandFold(a),a):(i=this.getFoldWidgetRange(n,!0))&&!i.isMultiLine()&&(a=this.getFoldAt(i.start.row,i.start.column,1))&&i.isEqual(a.range)?(this.removeFold(a),a):(o.siblings?((a=this.getParentFoldRangeData(n)).range&&(r=a.range.start.row+1,e=a.range.end.row),this.foldAll(r,e,o.all?1e4:0)):o.children?(e=i?i.end.row:this.getLength(),this.foldAll(n+1,e,o.all?1e4:0)):i&&(o.all&&(i.collapseChildren=1e4),this.addFold("...",i)),i)},this.toggleFoldWidget=function(n){var o,i=this.selection.getCursor().row;i=this.getRowFoldStart(i),!this.$toggleFoldWidget(i,{})&&(o=(o=this.getParentFoldRangeData(i,!0)).range||o.firstRange)&&(i=o.start.row,(i=this.getFoldAt(i,this.getLine(i).length,1))?this.removeFold(i):this.addFold("...",o))},this.updateFoldWidgets=function(n){var o=n.start.row,i=n.end.row-o;i==0?this.foldWidgets[o]=null:n.action=="remove"?this.foldWidgets.splice(o,1+i,null):((n=Array(1+i)).unshift(o,1),this.foldWidgets.splice.apply(this.foldWidgets,n))},this.tokenizerUpdateFoldWidgets=function(n){n=n.data,n.first!=n.last&&this.foldWidgets.length>n.first&&this.foldWidgets.splice(n.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(A,f,R){var y=A("../token_iterator").TokenIterator,C=A("../range").Range;f.BracketMatch=function(){this.findMatchingBracket=function(d,h){return d.column!=0&&(h=h||this.getLine(d.row).charAt(d.column-1))!=""&&(h=h.match(/([\(\[\{])|([\)\]\}])/))?h[1]?this.$findClosingBracket(h[1],d):this.$findOpeningBracket(h[2],d):null},this.getBracketRange=function(d){var h,l,n=this.getLine(d.row),o=!0,i=n.charAt(d.column-1),a=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(a||(i=n.charAt(d.column),d={row:d.row,column:d.column+1},a=i&&i.match(/([\(\[\{])|([\)\]\}])/),o=!1),!a)return null;if(a[1]){if(!(l=this.$findClosingBracket(a[1],d)))return null;h=C.fromPoints(d,l),o||(h.end.column++,h.start.column--),h.cursor=h.end}else{if(!(l=this.$findOpeningBracket(a[2],d)))return null;h=C.fromPoints(l,d),o||(h.start.column++,h.end.column--),h.cursor=h.start}return h},this.getMatchingBracketRanges=function(d,h){var l=this.getLine(d.row),n=/([\(\[\{])|([\)\]\}])/,o=!h&&l.charAt(d.column-1),i=o&&o.match(n);return i||(o=(h===void 0||h)&&l.charAt(d.column),d={row:d.row,column:d.column+1},i=o&&o.match(n)),i?(h=new C(d.row,d.column-1,d.row,d.column),(l=i[1]?this.$findClosingBracket(i[1],d):this.$findOpeningBracket(i[2],d))?[h,new C(l.row,l.column,l.row,l.column+1)]:[h]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(d,h,l){var n=this.$brackets[d],o=1,i=new y(this,h.row,h.column),a=i.getCurrentToken();if(a=a||i.stepForward()){l=l||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+");for(var r=h.column-i.getCurrentTokenColumn()-2,e=a.value;;){for(;0<=r;){var t=e.charAt(r);if(t==n){if(--o==0)return{row:i.getCurrentTokenRow(),column:r+i.getCurrentTokenColumn()}}else t==d&&(o+=1);--r}for(;(a=i.stepBackward())&&!l.test(a.type););if(a==null)break;r=(e=a.value).length-1}return null}},this.$findClosingBracket=function(d,h,l){var n=this.$brackets[d],o=1,i=new y(this,h.row,h.column),a=i.getCurrentToken();if(a=a||i.stepForward()){l=l||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+");for(var r=h.column-i.getCurrentTokenColumn();;){for(var e=a.value,t=e.length;r"?n=!0:h.type.indexOf("tag-name")!==-1&&(l=!0)),h&&!l;);return h},this.$findClosingTag=function(d,h){var l=h.value,n=h.value,o=0,i=new C(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1),a=(h=d.stepForward(),new C(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+h.value.length)),r=!1;do{var e,t=h;if(h=d.stepForward())if(h.value!==">"||r||(e=new C(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1),r=!0),h.type.indexOf("tag-name")!==-1){if(n===(l=h.value)){if(t.value==="<")o++;else if(t.value===""&&--o<0){d.stepBackward();var s=new C(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+2),c=(h=d.stepForward(),new C(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+h.value.length));if(!(h=d.stepForward())||h.value!==">")return;var p=new C(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1)}}}else n===l&&h.value==="/>"&&--o<0&&(p=c=s=new C(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+2),e=new C(a.end.row,a.end.column,a.end.row,a.end.column+1))}while(h&&0<=o);if(i&&e&&s&&p&&a&&c)return{openTag:new C(i.start.row,i.start.column,e.end.row,e.end.column),closeTag:new C(s.start.row,s.start.column,p.end.row,p.end.column),openTagName:a,closeTagName:c}},this.$findOpeningTag=function(d,h){var l,n=d.getCurrentToken(),o=h.value,i=0,a=d.getCurrentTokenRow(),r=d.getCurrentTokenColumn(),e=new C(a,r,a,r+2),t=(d.stepForward(),new C(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+h.value.length));if((h=d.stepForward())&&h.value===">"){var s=new C(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);d.stepBackward(),d.stepBackward();do if(h=n,a=d.getCurrentTokenRow(),l=(r=d.getCurrentTokenColumn())+h.value.length,n=d.stepBackward(),h){if(h.type.indexOf("tag-name")!==-1){if(o===h.value)if(n.value==="<"){if(0<++i){for(var c=new C(a,r,a,l),p=new C(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);(h=d.stepForward())&&h.value!==">";);var g=new C(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1)}}else n.value===""&&i--}else if(h.value==="/>"){for(var b=0,w=n;w;){if(w.type.indexOf("tag-name")!==-1&&w.value===o){i--;break}if(w.value==="<")break;w=d.stepBackward(),b++}for(var E=0;E>1,M=u[P];if(M<_)v=1+P;else{if(!(_u&&(u=_.screenWidth)}),this.lineWidgetWidth=u)},c.prototype.$computeWidth=function(u){if(this.$modified||u){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var _=this.doc.getAllLines(),v=this.$rowLengthCache,$=0,P=0,M=this.$foldData[P],X=M?M.start.row:1/0,Q=_.length,K=0;K$&&($=v[K])}this.screenWidth=$}},c.prototype.getLine=function(u){return this.doc.getLine(u)},c.prototype.getLines=function(u,_){return this.doc.getLines(u,_)},c.prototype.getLength=function(){return this.doc.getLength()},c.prototype.getTextRange=function(u){return this.doc.getTextRange(u||this.selection.getRange())},c.prototype.insert=function(u,_){return this.doc.insert(u,_)},c.prototype.remove=function(u){return this.doc.remove(u)},c.prototype.removeFullLines=function(u,_){return this.doc.removeFullLines(u,_)},c.prototype.undoChanges=function(u,_){if(u.length){this.$fromUndo=!0;for(var v=u.length-1;v!=-1;v--){var $=u[v];$.action=="insert"||$.action=="remove"?this.doc.revertDelta($):$.folds&&this.addFolds($.folds)}!_&&this.$undoSelect&&(u.selectionBefore?this.selection.fromJSON(u.selectionBefore):this.selection.setRange(this.$getUndoSelection(u,!0))),this.$fromUndo=!1}},c.prototype.redoChanges=function(u,_){if(u.length){this.$fromUndo=!0;for(var v=0;vu.end.column&&(K.start.column+=M),K.end.row==u.end.row)&&K.end.column>u.end.column&&(K.end.column+=M),P&&K.start.row>=u.end.row&&(K.start.row+=P,K.end.row+=P)),K.end=this.insert(K.start,X),Q.length&&($=u.start,v=K.start,P=v.row-$.row,M=v.column-$.column,this.addFolds(Q.map(function(ne){return(ne=ne.clone()).start.row==$.row&&(ne.start.column+=M),ne.end.row==$.row&&(ne.end.column+=M),ne.start.row+=P,ne.end.row+=P,ne}))),K},c.prototype.indentRows=function(u,_,v){v=v.replace(/\t/g,this.getTabString());for(var $=u;$<=_;$++)this.doc.insertInLine({row:$,column:0},v)},c.prototype.outdentRows=function(u){for(var _=u.collapseRows(),v=new i(0,0,0,0),$=this.getTabSize(),P=_.start.row;P<=_.end.row;++P){var M=this.getLine(P);v.start.row=P,v.end.row=P;for(var X=0;X<$&&M.charAt(X)==" ";++X);X<$&&M.charAt(X)==" "?(v.start.column=X,v.end.column=X+1):(v.start.column=0,v.end.column=X),this.remove(v)}},c.prototype.$moveLines=function(u,_,M){if(u=this.getRowFoldStart(u),_=this.getRowFoldEnd(_),M<0){if((P=this.getRowFoldStart(u+M))<0)return 0;var $=P-u}else if(0this.doc.getLength()-1)return 0;$=P-_}else u=this.$clipRowToDocument(u),$=(_=this.$clipRowToDocument(_))-u+1;var P=new i(u,0,_,Number.MAX_VALUE),P=this.getFoldsInRange(P).map(function(X){return(X=X.clone()).start.row+=$,X.end.row+=$,X}),M=M==0?this.doc.getLines(u,_):this.doc.removeFullLines(u,_);return this.doc.insertFullLines(u+$,M),P.length&&this.addFolds(P),$},c.prototype.moveLinesUp=function(u,_){return this.$moveLines(u,_,-1)},c.prototype.moveLinesDown=function(u,_){return this.$moveLines(u,_,1)},c.prototype.duplicateLines=function(u,_){return this.$moveLines(u,_,0)},c.prototype.$clipRowToDocument=function(u){return Math.max(0,Math.min(u,this.doc.getLength()-1))},c.prototype.$clipColumnToRow=function(u,_){return _<0?0:Math.min(this.doc.getLine(u).length,_)},c.prototype.$clipPositionToDocument=function(u,_){var v;return _=Math.max(0,_),_=u<0?u=0:(v=this.doc.getLength())<=u?this.doc.getLine(u=v-1).length:Math.min(this.doc.getLine(u).length,_),{row:u,column:_}},c.prototype.$clipRangeToDocument=function(u){u.start.row<0?(u.start.row=0,u.start.column=0):u.start.column=this.$clipColumnToRow(u.start.row,u.start.column);var _=this.doc.getLength()-1;return u.end.row>_?(u.end.row=_,u.end.column=this.doc.getLine(_).length):u.end.column=this.$clipColumnToRow(u.end.row,u.end.column),u},c.prototype.setUseWrapMode=function(u){u!=this.$useWrapMode&&(this.$useWrapMode=u,this.$modified=!0,this.$resetRowCache(0),u&&(u=this.getLength(),this.$wrapData=Array(u),this.$updateWrapData(0,u-1)),this._signal("changeWrapMode"))},c.prototype.getUseWrapMode=function(){return this.$useWrapMode},c.prototype.setWrapLimitRange=function(u,_){this.$wrapLimitRange.min===u&&this.$wrapLimitRange.max===_||(this.$wrapLimitRange={min:u,max:_},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},c.prototype.adjustWrapLimit=function(u,$){var v=this.$wrapLimitRange,$=(v.max<0&&(v={min:$,max:$}),this.$constrainWrapLimit(u,v.min,v.max));return $!=this.$wrapLimit&&1<$&&(this.$wrapLimit=$,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},c.prototype.$constrainWrapLimit=function(u,_,v){return _&&(u=Math.max(_,u)),u=v?Math.min(v,u):u},c.prototype.getWrapLimit=function(){return this.$wrapLimit},c.prototype.setWrapLimit=function(u){this.setWrapLimitRange(u,u)},c.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},c.prototype.$updateInternalDataOnChange=function(u){var _=this.$useWrapMode,v=u.action,$=u.start,P=u.end,M=$.row,X=P.row,Q=X-M,K=null;if(this.$updating=!0,Q!=0)if(v==="remove"){this[_?"$wrapData":"$rowLengthCache"].splice(M,Q);var ne=this.$foldData,K=this.getFoldsInRange(u);this.removeFolds(K);var T=0;for((I=this.getFoldLine(P.row))&&(I.addRemoveChars(P.row,P.column,$.column-P.column),I.shiftRow(-Q),(F=this.getFoldLine(M))&&F!==I&&(F.merge(I),I=F),T=ne.indexOf(I)+1);T=P.row&&I.shiftRow(-Q);X=M}else{var F=Array(Q),V=(F.unshift(M,0),_?this.$wrapData:this.$rowLengthCache),ne=(V.splice.apply(V,F),this.$foldData),T=0;for((I=this.getFoldLine(M))&&((V=I.range.compareInside($.row,$.column))==0?(I=I.split($.row,$.column))&&(I.shiftRow(Q),I.addRemoveChars(X,0,P.column-$.column)):V==-1&&(I.addRemoveChars(M,0,P.column-$.column),I.shiftRow(Q)),T=ne.indexOf(I)+1);T=M&&I.shiftRow(Q)}else{var I,Q=Math.abs(u.start.column-u.end.column);v==="remove"&&(K=this.getFoldsInRange(u),this.removeFolds(K),Q=-Q),(I=this.getFoldLine(M))&&I.addRemoveChars(M,$.column,Q)}return _&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,_?this.$updateWrapData(M,X):this.$updateRowLengthCache(M,X),K},c.prototype.$updateRowLengthCache=function(u,_,v){this.$rowLengthCache[u]=null,this.$rowLengthCache[_]=null},c.prototype.$updateWrapData=function(u,_){var v,$,P=this.doc.getAllLines(),M=this.getTabSize(),X=this.$wrapData,Q=this.$wrapLimit,K=u;for(_=Math.min(_,P.length-1);K<=_;)($=this.getFoldLine(K,$))?(v=[],$.walk(function(ne,T,F,V){var I;if(ne!=null){(I=this.$getDisplayTokens(ne,v.length))[0]=b;for(var S=1;S=W&&u[V]>=W)T(V);else if(u[V]==b||u[V]==w){for(;V!=M-1&&u[V]!=b;V--);if(!(M>2)),M-1);IT[V-1]):!V,this.getLength()-1),S=this.getNextFoldLine(X),L=S?S.start.row:1/0;K<=u&&!(uX[Q-1]):!Q,this.getNextFoldLine(M)),ne=K?K.start.row:1/0;M=I[S];)v++,S++;T=T.substring(I[S-1]||0,T.length),V=0g||(a.push(e=new d(c,g,c+t-1,b)),2O&&a[p].end.row==k;)p--;for(a=a.slice(w,p+1),w=0,p=a.length;wl.getLength())){var W=l.getLine(E),g=W.search(p[0]);if(!(!o&&g=W.length)break;p.lastIndex=k+=1}if(E.index+O>b)break;B.push(E.index,O)}for(var u=B.length-1;0<=u;u-=2){var _=B[u-1];if(w(g,_,g,_+(O=B[u])))return!0}}:function(g,b,w){var E=l.getLine(g);for(p.lastIndex=b;W=p.exec(E);){var W,B=W[0].length;if(w(g,W=W.index,g,W+B))return!0;if(!B&&(p.lastIndex=W+=1,W>=E.length))return!1}},{forEach:o?function(g){var b=r.row;if(!c(b,r.column,g)){for(b--;e<=b;b--)if(c(b,Number.MAX_VALUE,g))return;if(n.wrap!=0){for(b=t,e=r.row;e<=b;b--)if(c(b,Number.MAX_VALUE,g))return}}}:function(g){var b=r.row;if(!c(b,r.column,g)){for(b+=1;b<=t;b++)if(c(b,0,g))return;if(n.wrap!=0){for(b=e,t=r.row;b<=t;b++)if(c(b,0,g))return}}}})},f.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(r,f,R){var y,C=this&&this.__extends||(y=function(t,s){return(y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(c,p){c.__proto__=p}:function(c,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(c[g]=p[g])}))(t,s)},function(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function c(){this.constructor=t}y(t,s),t.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}),d=r("../lib/keys"),h=r("../lib/useragent"),l=d.KEY_MODS,n=(o.prototype.$init=function(t,s,c){this.platform=s||(h.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=c},o.prototype.addCommand=function(t){this.commands[t.name]&&this.removeCommand(t),(this.commands[t.name]=t).bindKey&&this._buildKeyHash(t)},o.prototype.removeCommand=function(t,s){var c,p=t&&(typeof t=="string"?t:t.name),g=(t=this.commands[p],s||delete this.commands[p],this.commandKeyBinding);for(c in g){var b,w=g[c];w==t?delete g[c]:Array.isArray(w)&&(b=w.indexOf(t))!=-1&&(w.splice(b,1),w.length==1)&&(g[c]=w[0])}},o.prototype.bindKey=function(t,s,c){if(typeof t=="object"&&t&&(c==null&&(c=t.position),t=t[this.platform]),t)return typeof s=="function"?this.addCommand({exec:s,bindKey:t,name:s.name||t}):void t.split("|").forEach(function(w){var g="",b=(w.indexOf(" ")!=-1&&(w=(b=w.split(/\s+/)).pop(),b.forEach(function(E){E=this.parseKeys(E),E=l[E.hashId]+E.key,g+=(g?" ":"")+E,this._addCommandToBinding(g,"chainKeys")},this),g+=" "),this.parseKeys(w)),w=l[b.hashId]+b.key;this._addCommandToBinding(g+w,s,c)},this)},o.prototype._addCommandToBinding=function(t,s,c){var p=this.commandKeyBinding;if(s)if(!p[t]||this.$singleCommand)p[t]=s;else{Array.isArray(p[t])?(b=p[t].indexOf(s))!=-1&&p[t].splice(b,1):p[t]=[p[t]],typeof c!="number"&&(c=i(s));for(var g=p[t],b=0;ba?a+1:a,n.selection.moveCursorTo(o.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:h(null,null),exec:function(n){var o=n.session.doc.getLength()-1,i=n.session.doc.getLine(o).length,a=n.selection.rangeList.ranges,r=[];a.length<1&&(a=[n.selection.getRange()]);for(var e=0;eo[h].column&&h++,n.unshift(h,0),o.splice.apply(o,n)),this.$updateRows())},C.prototype.$updateRows=function(){var d,h=this.session.lineWidgets;h&&(d=!0,h.forEach(function(l,n){if(l)for(d=!1,l.row=n;l.$oldWidget;)l.$oldWidget.row=n,l=l.$oldWidget}),d)&&(this.session.lineWidgets=null)},C.prototype.$registerLineWidget=function(d){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var h=this.session.lineWidgets[d.row];return h&&(d.$oldWidget=h).el&&h.el.parentNode&&(h.el.parentNode.removeChild(h.el),h._inDocument=!1),this.session.lineWidgets[d.row]=d},C.prototype.addLineWidget=function(d){var h,l,n;return this.$registerLineWidget(d),d.session=this.session,this.editor&&(h=this.editor.renderer,d.html&&!d.el&&(d.el=y.createElement("div"),d.el.innerHTML=d.html),d.text&&!d.el&&(d.el=y.createElement("div"),d.el.textContent=d.text),d.el&&(y.addCssClass(d.el,"ace_lineWidgetContainer"),d.className&&y.addCssClass(d.el,d.className),d.el.style.position="absolute",d.el.style.zIndex=5,h.container.appendChild(d.el),d._inDocument=!0,d.coverGutter||(d.el.style.zIndex=3),d.pixelHeight==null)&&(d.pixelHeight=d.el.offsetHeight),d.rowCount==null&&(d.rowCount=d.pixelHeight/h.layerConfig.lineHeight),l=this.session.getFoldAt(d.row,0),(d.$fold=l)&&(n=this.session.lineWidgets,d.row!=l.end.row||n[l.start.row]?d.hidden=!0:n[l.start.row]=d),this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows(),this.renderWidgets(null,h),this.onWidgetChanged(d)),d},C.prototype.removeLineWidget=function(d){if(d._inDocument=!1,d.session=null,d.el&&d.el.parentNode&&d.el.parentNode.removeChild(d.el),d.editor&&d.editor.destroy)try{d.editor.destroy()}catch{}if(this.session.lineWidgets){var h=this.session.lineWidgets[d.row];if(h==d)this.session.lineWidgets[d.row]=d.$oldWidget,d.$oldWidget&&this.onWidgetChanged(d.$oldWidget);else for(;h;){if(h.$oldWidget==d){h.$oldWidget=d.$oldWidget;break}h=h.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows()},C.prototype.getWidgetsAtRow=function(d){for(var h=this.session.lineWidgets,l=h&&h[d],n=[];l;)n.push(l),l=l.$oldWidget;return n},C.prototype.onWidgetChanged=function(d){this.session._changedWidgets.push(d),this.editor&&this.editor.renderer.updateFull()},C.prototype.measureWidgets=function(d,h){var l=this.session._changedWidgets,n=h.layerConfig;if(l&&l.length){for(var o=1/0,i=0;i=v.length?void 0:v)&&v[M++],done:!v}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")},C=k("./lib/oop"),d=k("./lib/dom"),h=k("./lib/lang"),l=k("./lib/useragent"),n=k("./keyboard/textinput").TextInput,o=k("./mouse/mouse_handler").MouseHandler,i=k("./mouse/fold_handler").FoldHandler,a=k("./keyboard/keybinding").KeyBinding,r=k("./edit_session").EditSession,e=k("./search").Search,t=k("./range").Range,s=k("./lib/event_emitter").EventEmitter,c=k("./commands/command_manager").CommandManager,p=k("./commands/default_commands").commands,g=k("./config"),b=k("./token_iterator").TokenIterator,w=k("./line_widgets").LineWidgets,E=k("./keyboard/gutter_handler").GutterKeyboardHandler,W=k("./config").nls,B=k("./clipboard"),O=k("./lib/keys"),k=(u.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=h.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},u.prototype.startOperation=function(v){if(this.curOp){if(!v||this.curOp.command)return;this.prevOp=this.curOp}v||(this.previousCommand=null,v={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:v.command||{},args:v.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},u.prototype.endOperation=function(v){if(this.curOp&&this.session){if(v&&v.returnValue===!1||!this.session)return this.curOp=null;if((v!=1||!this.curOp.command||this.curOp.command.name!="mouse")&&(this._signal("beforeEndOperation"),this.curOp)){var v=this.curOp.command,$=v&&v.scrollIntoView;if($){switch($){case"center-animate":$="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var P=this.selection.getRange(),M=this.renderer.layerConfig;(P.start.row>=M.lastRow||P.end.row<=M.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}$=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}v=this.selection.toJSON(),this.curOp.selectionAfter=v,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(v),this.prevOp=this.curOp,this.curOp=null}}},u.prototype.$historyTracker=function(v){var $,P,M,X;this.$mergeUndoDeltas&&($=this.prevOp,P=this.$mergeableCommands,M=$.command&&v.command.name==$.command.name,v.command.name=="insertstring"?(X=v.args,this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),M=M&&this.mergeNextCommand&&(!/\s/.test(X)||/\s/.test($.args)),this.mergeNextCommand=!0):M=M&&P.indexOf(v.command.name)!==-1,(M=this.$mergeUndoDeltas!="always"&&2e3T.search(/\S|$/)&&(ne=T.substr(Q.column).search(/\S|$/),M.doc.removeInLine(Q.row,Q.column,Q.column+ne))),this.clearSelection(),Q.column),ne=M.getState(Q.row),T=M.getLine(Q.row),F=X.checkOutdent(ne,T,v);M.insert(Q,v),P&&P.selection&&(P.selection.length==2?this.selection.setSelectionRange(new t(Q.row,K+P.selection[0],Q.row,K+P.selection[1])):this.selection.setSelectionRange(new t(Q.row+P.selection[0],P.selection[1],Q.row+P.selection[2],P.selection[3]))),this.$enableAutoIndent&&(M.getDocument().isNewLine(v)&&(K=X.getNextLineIndent(ne,T.slice(0,Q.column),M.getTabString()),M.insert({row:Q.row+1,column:0},K)),F)&&X.autoOutdent(ne,M,Q.row)},u.prototype.autoIndent=function(){for(var v,$,P,M,X,Q=this.session,K=Q.getMode(),ne=(P=this.selection.isEmpty()?($=0,Q.doc.getLength()-1):($=(v=this.getSelectionRange()).start.row,v.end.row),""),T="",F=Q.getTabString(),V=$;V<=P;V++)0ne.toLowerCase()?1:0});for(var X=new t(0,0,0,0),M=v.first;M<=v.last;M++){var Q=$.getLine(M);X.start.row=M,X.end.row=M,X.end.column=Q.length,$.replace(X,P[M-v.first])}},u.prototype.toggleCommentLines=function(){var v=this.session.getState(this.getCursorPosition().row),$=this.$getSelectedRows();this.session.getMode().toggleCommentLines(v,this.session,$.first,$.last)},u.prototype.toggleBlockComment=function(){var v=this.getCursorPosition(),$=this.session.getState(v.row),P=this.getSelectionRange();this.session.getMode().toggleBlockComment($,this.session,P,v)},u.prototype.getNumberAt=function(v,$){for(var P=/[\-]?[0-9]+(?:\.[0-9]+)?/g,M=(P.lastIndex=0,this.session.getLine(v));P.lastIndex<$;){var X=P.exec(M);if(X.index<=$&&X.index+X[0].length>=$)return{value:X[0],start:X.index,end:X.index+X[0].length}}return null},u.prototype.modifyNumber=function(v){var $,P,M,X=this.selection.getCursor().row,Q=this.selection.getCursor().column,K=new t(X,Q-1,X,Q),K=this.session.getTextRange(K);!isNaN(parseFloat(K))&&isFinite(K)?(K=this.getNumberAt(X,Q))&&(M=0<=K.value.indexOf(".")?K.start+K.value.indexOf(".")+1:K.end,$=K.start+K.value.length-M,P=parseFloat(K.value),P*=Math.pow(10,$),M!==K.end&&QL+1)break;L=D.last}for(V--,ne=this.session.$moveLines(S,L,$?0:v),$&&v==-1&&(I=V+1);I<=V;)K[I].moveBy(ne,0),I++;T+=ne=$?ne:0}P.fromOrientedRange(P.ranges[0]),P.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},u.prototype.$getSelectedRows=function(v){return v=(v||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(v.start.row),last:this.session.getRowFoldEnd(v.end.row)}},u.prototype.onCompositionStart=function(v){this.renderer.showComposition(v)},u.prototype.onCompositionUpdate=function(v){this.renderer.setCompositionText(v)},u.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},u.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},u.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},u.prototype.isRowVisible=function(v){return v>=this.getFirstVisibleRow()&&v<=this.getLastVisibleRow()},u.prototype.isRowFullyVisible=function(v){return v>=this.renderer.getFirstFullyVisibleRow()&&v<=this.renderer.getLastFullyVisibleRow()},u.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},u.prototype.$moveByPage=function(Q,$){var P=this.renderer,M=this.renderer.layerConfig,X=Q*Math.floor(M.height/M.lineHeight),Q=($===!0?this.selection.$moveSelection(function(){this.moveCursorBy(X,0)}):$===!1&&(this.selection.moveCursorBy(X,0),this.selection.clearSelection()),P.scrollTop);P.scrollBy(0,X*M.lineHeight),$!=null&&P.scrollCursorIntoView(null,.5),P.animateScrolling(Q)},u.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},u.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},u.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},u.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},u.prototype.scrollPageDown=function(){this.$moveByPage(1)},u.prototype.scrollPageUp=function(){this.$moveByPage(-1)},u.prototype.scrollToRow=function(v){this.renderer.scrollToRow(v)},u.prototype.scrollToLine=function(v,$,P,M){this.renderer.scrollToLine(v,$,P,M)},u.prototype.centerSelection=function(){var v=this.getSelectionRange(),v={row:Math.floor(v.start.row+(v.end.row-v.start.row)/2),column:Math.floor(v.start.column+(v.end.column-v.start.column)/2)};this.renderer.alignCursor(v,.5)},u.prototype.getCursorPosition=function(){return this.selection.getCursor()},u.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},u.prototype.getSelectionRange=function(){return this.selection.getRange()},u.prototype.selectAll=function(){this.selection.selectAll()},u.prototype.clearSelection=function(){this.selection.clearSelection()},u.prototype.moveCursorTo=function(v,$){this.selection.moveCursorTo(v,$)},u.prototype.moveCursorToPosition=function(v){this.selection.moveCursorToPosition(v)},u.prototype.jumpToMatching=function(v,$){var P=this.getCursorPosition(),M=new b(this.session,P.row,P.column),X=M.getCurrentToken(),Q=0,K=(X=X&&X.type.indexOf("tag-name")!==-1?M.stepBackward():X)||M.stepForward();if(K){var ne,T,F=!1,V={},I=P.column-K.start,S={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do if(K.value.match(/[{}()\[\]]/g)){for(;Iwindow.innerHeight)&&null)!=null&&(X.style.top=V+"px",X.style.left=T.left+"px",X.style.height=F.lineHeight+"px",X.scrollIntoView(M)),M=$=null)}),this.setAutoScrollEditorIntoView=function(T){T||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Q),this.renderer.off("afterRender",ne),this.renderer.off("beforeRender",K))})},u.prototype.$resetCursorStyle=function(){var v=this.$cursorStyle||"ace",$=this.renderer.$cursorLayer;$&&($.setSmoothBlinking(/smooth/.test(v)),$.isBlinking=!this.$readOnly&&v!="wide",d.setCssClass($.element,"ace_slim-cursors",/slim/.test(v)))},u.prototype.prompt=function(v,$,P){var M=this;g.loadModule("ace/ext/prompt",function(X){X.prompt(M,v,$,P)})},u);function u(v,$,P){this.$toDestroy=[];var M=v.getContainerElement();this.container=M,this.renderer=v,this.id="editor"+ ++u.$uid,this.commands=new c(l.isMac?"mac":"win",p),typeof document=="object"&&(this.textInput=new n(v.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new o(this),new i(this)),this.keyBinding=new a(this),this.$search=new e().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=h.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(X,Q){Q._$emitInputEvent.schedule(31)}),this.setSession($||P&&P.session||new r("")),g.resetOptions(this),P&&this.setOptions(P),g._signal("editor",this)}k.$uid=0,k.prototype.curOp=null,k.prototype.prevOp={},k.prototype.$mergeableCommands=["backspace","del","insertstring"],k.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],C.implement(k.prototype,s),g.defineOptions(k.prototype,"editor",{selectionStyle:{set:function(v){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:v})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(v){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(v){this.textInput.setReadOnly(v),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(v){this.textInput.setCopyWithEmptySelection(v)},initialValue:!1},cursorStyle:{set:function(v){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(v){this.setAutoScrollEditorIntoView(v)}},keyboardHandler:{set:function(v){this.setKeyboardHandler(v)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(v){this.session.setValue(v)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(v){this.setSession(v)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(v){this.renderer.$gutterLayer.setShowLineNumbers(v),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),v&&this.$relativeLineNumbers?_.attach(this):_.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(v){this.$showLineNumbers&&v?_.attach(this):_.detach(this)}},placeholder:{set:function(v){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var $=this.session&&(this.renderer.$composition||1b+1;)this.$lines.pop();break}(g=this.$lines.get(++b))?g.row=w:(g=this.$lines.createCell(w,r,this.session,a),this.$lines.push(g)),this.$renderCell(g,r,c,w),w++}this._signal("afterRender"),this.$updateGutterWidth(r)},i.prototype.$updateGutterWidth=function(r){var e=this.session,c=e.gutterRenderer||this.$renderer,s=e.$firstLineNumber,t=this.$lines.last()?this.$lines.last().text:"",s=((this.$fixedWidth||e.$useWrapMode)&&(t=e.getLength()+s-1),c?c.getWidth(e,t,r):t.toString().length*r.characterWidth),c=this.$padding||this.$computePadding();(s+=c.left+c.right)===this.gutterWidth||isNaN(s)||(this.gutterWidth=s,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",s))},i.prototype.$updateCursorRow=function(){var r;this.$highlightGutterLine&&(r=this.session.selection.getCursor(),this.$cursorRow!==r.row)&&(this.$cursorRow=r.row)},i.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var r=this.session.selection.cursor.row;if(this.$cursorRow=r,!this.$cursorCell||this.$cursorCell.row!=r){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var e=this.$lines.cells;this.$cursorCell=null;for(var t=0;t=this.$cursorRow){if(s.row>this.$cursorRow){var c=this.session.getFoldLine(this.$cursorRow);if(!(0t.right-e.right?"foldWidgets":void 0},i);function i(r){this.element=y.createElement("div"),this.element.className="ace_layer ace_gutter-layer",r.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new l(this.element),this.$lines.$offsetCoefficient=1}function a(r){var e=document.createTextNode(""),e=(r.appendChild(e),y.createElement("span")),e=(r.appendChild(e),y.createElement("span")),t=(r.appendChild(e),y.createElement("span"));return e.appendChild(t),r}o.prototype.$fixedWidth=!1,o.prototype.$highlightGutterLine=!0,o.prototype.$renderer="",o.prototype.$showLineNumbers=!0,o.prototype.$showFoldWidgets=!0,C.implement(o.prototype,h),f.Gutter=o}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(d,f,R){var y=d("../range").Range,C=d("../lib/dom"),d=(h.prototype.setPadding=function(l){this.$padding=l},h.prototype.setSession=function(l){this.session=l},h.prototype.setMarkers=function(l){this.markers=l},h.prototype.elt=function(l,n){var o=this.i!=-1&&this.element.childNodes[this.i];o?this.i++:(o=document.createElement("div"),this.element.appendChild(o),this.i=-1),o.style.cssText=n,o.className=l},h.prototype.update=function(l){if(l){var n,o;for(o in this.config=l,this.i=0,this.markers){var i,a,r,e=this.markers[o];e.range?(r=e.range.clipRows(l.firstRow,l.lastRow)).isEmpty()||(r=r.toScreenRange(this.session),e.renderer?(i=this.$getTop(r.start.row,l),a=this.$padding+r.start.column*l.characterWidth,e.renderer(n,r,a,i,l)):e.type=="fullLine"?this.drawFullLineMarker(n,r,e.clazz,l):e.type=="screenLine"?this.drawScreenLineMarker(n,r,e.clazz,l):r.isMultiLine()?e.type=="text"?this.drawTextMarker(n,r,e.clazz,l):this.drawMultiLineMarker(n,r,e.clazz,l):this.drawSingleLineMarker(n,r,e.clazz+" ace_start ace_br15",l)):e.update(n,this,this.session,l)}if(this.i!=-1)for(;this.ir.lastRow)for(c=this.session.getFoldedRowCount(r.lastRow+1,e.lastRow);0e.lastRow&&this.$lines.push(this.$renderLinesFragment(r,e.lastRow+1,r.lastRow)),this.$highlightIndentGuide()},a.prototype.$renderLinesFragment=function(r,e,t){for(var s=[],c=e,p=this.session.getNextFoldLine(c),g=p?p.start.row:1/0;gc[p].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&r[e.row]!==""&&e.column===r[e.row].length)for(this.$highlightIndentGuideMarker.dir=1,p=e.row+1;p=this.$highlightIndentGuideMarker.start+1){if(s.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(s,e)}}else for(t=r.length-1;0<=t;t--)if(s=r[t],this.$highlightIndentGuideMarker.end&&s.row=p;)g=this.$renderToken(b,g,E,W.substring(0,p-s)),W=W.substring(p-s),s=p,b=this.$createLineElement(),r.appendChild(b),b.appendChild(this.dom.createTextNode(d.stringRepeat(" ",t.indent),this.element)),g=0,p=t[++c]||Number.MAX_VALUE;W.length!=0&&(s+=W.length,g=this.$renderToken(b,g,E,W))}}t[t.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(b,g,null,"",!0)},a.prototype.$renderSimpleLine=function(r,e){for(var t=0,s=0;sthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(r,t,c,p);t=this.$renderToken(r,t,c,p)}}},a.prototype.$renderOverflowMessage=function(r,e,t,s,c){t&&this.$renderToken(r,e,t,s.slice(0,this.MAX_LINE_LENGTH-e)),t=this.dom.createElement("span"),t.className="ace_inline_button ace_keyword ace_toggle_wrap",t.textContent=c?"":"",r.appendChild(t)},a.prototype.$renderLine=function(r,e,t){var s,c,p=r;(s=(t=t||t==0?t:this.session.getFoldLine(e))?this.$getFoldLineTokens(e,t):this.session.getTokens(e)).length?(c=this.session.getRowSplitData(e))&&c.length?(this.$renderWrappedLine(r,s,c),p=r.lastChild):(p=r,this.$useLineGroups()&&(p=this.$createLineElement(),r.appendChild(p)),this.$renderSimpleLine(p,s)):this.$useLineGroups()&&(p=this.$createLineElement(),r.appendChild(p)),this.showEOL&&p&&(t&&(e=t.end.row),(c=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",c.textContent=e==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,p.appendChild(c))},a.prototype.$getFoldLineTokens=function(r,e){var t=this.session,s=[],c=t.getTokens(r);return e.walk(function(p,g,b,w,E){if(p!=null)s.push({type:"fold",value:p});else if((c=E?t.getTokens(g):c).length){for(var W,B=c,O=w,k=b,u=0,_=0;_+B[u].value.lengthk-O&&(W=W.substring(0,k-O)),s.push({type:B[u].type,value:W}),_=O+W.length,u+=1);_k?s.push({type:B[u].type,value:W.substring(0,k-_)}):s.push(B[u]),_+=W.length,u+=1}},e.end.row,this.session.getLine(e.end.row).length),s},a.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},a);function a(r){this.dom=C,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",r.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new h(this.element)}i.prototype.EOF_CHAR="¶",i.prototype.EOL_CHAR_LF="¬",i.prototype.EOL_CHAR_CRLF="¤",i.prototype.EOL_CHAR=i.prototype.EOL_CHAR_LF,i.prototype.TAB_CHAR="—",i.prototype.SPACE_CHAR="·",i.prototype.$padding=0,i.prototype.MAX_LINE_LENGTH=1e4,i.prototype.showInvisibles=!1,i.prototype.showSpaces=!1,i.prototype.showTabs=!1,i.prototype.showEOL=!1,i.prototype.displayIndentGuides=!0,i.prototype.$highlightIndentGuides=!0,i.prototype.$tabStrings=[],i.prototype.destroy={},i.prototype.onChangeTabSize=i.prototype.$computeTabString,y.implement(i.prototype,l),f.Text=i}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(C,f,R){var y=C("../lib/dom"),C=(d.prototype.$updateOpacity=function(h){for(var l=this.cursors,n=l.length;n--;)y.setStyle(l[n].style,"opacity",h?"":"0")},d.prototype.$startCssAnimation=function(){for(var h=this.cursors,l=h.length;l--;)h[l].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&y.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},d.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,y.removeCssClass(this.element,"ace_animate-blinking")},d.prototype.setPadding=function(h){this.$padding=h},d.prototype.setSession=function(h){this.session=h},d.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},d.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},d.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,y.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},d.prototype.addCursor=function(){var h=y.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},d.prototype.removeCursor=function(){var h;if(1h.height+h.offset||e.top<0)&&1n;)this.removeCursor();var t=this.session.getOverwrite();this.$setOverwrite(t),this.$pixelPos=e,this.restartTimer()},d.prototype.$setOverwrite=function(h){h!=this.overwrite&&((this.overwrite=h)?y.addCssClass(this.element,"ace_overwrite-cursors"):y.removeCssClass(this.element,"ace_overwrite-cursors"))},d.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},d);function d(h){this.element=y.createElement("div"),this.element.className="ace_layer ace_cursor-layer",h.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),y.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}C.prototype.$padding=0,C.prototype.drawCursor=null,f.Cursor=C}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,f,R){var y,C=this&&this.__extends||(y=function(s,c){return(y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(p,g){p.__proto__=g}:function(p,g){for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(p[b]=g[b])}))(s,c)},function(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function p(){this.constructor=s}y(s,c),s.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}),i=e("./lib/oop"),d=e("./lib/dom"),h=e("./lib/event"),e=e("./lib/event_emitter").EventEmitter,l=(n.prototype.setVisible=function(s){this.element.style.display=s?"":"none",this.isVisible=s,this.coeff=1},n);function n(s,c){this.element=d.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+c,this.inner=d.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),s.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addListener(this.element,"scroll",this.onScroll.bind(this)),h.addListener(this.element,"mousedown",h.preventDefault)}i.implement(l.prototype,e),C(a,o=l),a.prototype.onScroll=function(){var s;this.skipEvent||(this.scrollTop=this.element.scrollTop,this.coeff!=1&&(s=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-s)/(this.coeff-s)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(s){this.element.style.height=s+"px"},a.prototype.setScrollHeight=function(s){32768<(this.scrollHeight=s)?(this.coeff=32768/s,s=32768):this.coeff!=1&&(this.coeff=1),this.inner.style.height=s+"px"},a.prototype.setScrollTop=function(s){this.scrollTop!=s&&(this.skipEvent=!0,this.scrollTop=s,this.element.scrollTop=s*this.coeff)};var o,i=a;function a(s,c){var p=o.call(this,s,"-v")||this;return p.scrollTop=0,p.scrollHeight=0,c.$scrollbarWidth=p.width=d.scrollbarWidth(s.ownerDocument),p.inner.style.width=p.element.style.width=(p.width||15)+5+"px",p.$minWidth=0,p}i.prototype.setInnerHeight=i.prototype.setScrollHeight,C(t,r=l),t.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.setWidth=function(s){this.element.style.width=s+"px"},t.prototype.setInnerWidth=function(s){this.inner.style.width=s+"px"},t.prototype.setScrollWidth=function(s){this.inner.style.width=s+"px"},t.prototype.setScrollLeft=function(s){this.scrollLeft!=s&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=s)};var r,e=t;function t(s,c){return s=r.call(this,s,"-h")||this,s.scrollLeft=0,s.height=c.$scrollbarWidth,s.inner.style.height=s.element.style.height=(s.height||15)+5+"px",s}f.ScrollBar=i,f.ScrollBarV=i,f.ScrollBarH=e,f.VScrollBar=i,f.HScrollBar=e}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,f,R){var y,C=this&&this.__extends||(y=function(s,c){return(y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(p,g){p.__proto__=g}:function(p,g){for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(p[b]=g[b])}))(s,c)},function(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function p(){this.constructor=s}y(s,c),s.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}),i=e("./lib/oop"),d=e("./lib/dom"),h=e("./lib/event"),e=e("./lib/event_emitter").EventEmitter,l=(d.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
+ position: absolute;
+ background: rgba(128, 128, 128, 0.6);
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ border: 1px solid #bbb;
+ border-radius: 2px;
+ z-index: 8;
+}
+.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
+ position: absolute;
+ z-index: 6;
+ background: none;
+ overflow: hidden!important;
+}
+.ace_editor>.ace_sb-v {
+ z-index: 6;
+ right: 0;
+ top: 0;
+ width: 12px;
+}
+.ace_editor>.ace_sb-v div {
+ z-index: 8;
+ right: 0;
+ width: 100%;
+}
+.ace_editor>.ace_sb-h {
+ bottom: 0;
+ left: 0;
+ height: 12px;
+}
+.ace_editor>.ace_sb-h div {
+ bottom: 0;
+ height: 100%;
+}
+.ace_editor>.ace_sb_grabbed {
+ z-index: 8;
+ background: #000;
+}`,"ace_scrollbar.css",!1),n.prototype.setVisible=function(s){this.element.style.display=s?"":"none",this.isVisible=s,this.coeff=1},n);function n(s,c){this.element=d.createElement("div"),this.element.className="ace_sb"+c,this.inner=d.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,s.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}i.implement(l.prototype,e),C(a,o=l),a.prototype.onMouseDown=function(s,c){var p,g,b,w,E;if(s==="mousedown"&&h.getButton(c)===0&&c.detail!==2)return c.target===this.inner?(p=this,g=c.clientY,b=c.clientY,w=this.thumbTop,h.capture(this.inner,function(W){g=W.clientY},function(){clearInterval(E)}),E=setInterval(function(){var W;g!==void 0&&(W=p.scrollTopFromThumbTop(w+g-b))!==p.scrollTop&&p._emit("scroll",{data:W})},20)):(s=c.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2,this._emit("scroll",{data:this.scrollTopFromThumbTop(s)})),h.preventDefault(c)},a.prototype.getHeight=function(){return this.height},a.prototype.scrollTopFromThumbTop=function(s){return s=s*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight),(s>>=0)<0?s=0:s>this.pageHeight-this.viewHeight&&(s=this.pageHeight-this.viewHeight),s},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(s){this.height=Math.max(0,s),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},a.prototype.setScrollHeight=function(s,c){(this.pageHeight!==s||c)&&(this.pageHeight=s,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight)&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop}))},a.prototype.setScrollTop=function(s){this.scrollTop=s,this.thumbTop=(s=s<0?0:s)*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"};var o,i=a;function a(s,c){var p=o.call(this,s,"-v")||this;return p.scrollTop=0,p.scrollHeight=0,p.parent=s,p.width=p.VScrollWidth,p.renderer=c,p.inner.style.width=p.element.style.width=(p.width||15)+"px",p.$minWidth=0,p}i.prototype.setInnerHeight=i.prototype.setScrollHeight,C(t,r=l),t.prototype.onMouseDown=function(s,c){var p,g,b,w,E;if(s==="mousedown"&&h.getButton(c)===0&&c.detail!==2)return c.target===this.inner?(p=this,g=c.clientX,b=c.clientX,w=this.thumbLeft,h.capture(this.inner,function(W){g=W.clientX},function(){clearInterval(E)}),E=setInterval(function(){var W;g!==void 0&&(W=p.scrollLeftFromThumbLeft(w+g-b))!==p.scrollLeft&&p._emit("scroll",{data:W})},20)):(s=c.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2,this._emit("scroll",{data:this.scrollLeftFromThumbLeft(s)})),h.preventDefault(c)},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.scrollLeftFromThumbLeft=function(s){return s=s*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth),(s>>=0)<0?s=0:s>this.pageWidth-this.viewWidth&&(s=this.pageWidth-this.viewWidth),s},t.prototype.setWidth=function(s){this.width=Math.max(0,s),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},t.prototype.setScrollWidth=function(s,c){(this.pageWidth!==s||c)&&(this.pageWidth=s,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth)&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft}))},t.prototype.setScrollLeft=function(s){this.scrollLeft=s,this.thumbLeft=(s=s<0?0:s)*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"};var r,e=t;function t(s,c){return s=r.call(this,s,"-h")||this,s.scrollLeft=0,s.scrollWidth=0,s.height=s.HScrollHeight,s.inner.style.height=s.element.style.height=(s.height||12)+"px",s.renderer=c,s}e.prototype.setInnerWidth=e.prototype.setScrollWidth,f.ScrollBar=i,f.ScrollBarV=i,f.ScrollBarH=e,f.VScrollBar=i,f.HScrollBar=e}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(A,f,R){var y=A("./lib/event");function C(d,h){this.onRender=d,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=h||window;var l=this;this._flush=function(n){l.pending=!1;var o=l.changes;o&&(y.blockIdle(100),l.changes=0,l.onRender(o)),l.changes?l.$recursionLimit--<0||l.schedule():l.$recursionLimit=2}}C.prototype.schedule=function(d){this.changes=this.changes|d,this.changes&&!this.pending&&(y.nextFrame(this._flush),this.pending=!0)},C.prototype.clear=function(d){var h=this.changes;return this.changes=0,h},f.RenderLoop=C}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,f,R){var y=n("../lib/oop"),C=n("../lib/dom"),d=n("../lib/lang"),h=n("../lib/event"),l=n("../lib/useragent"),n=n("../lib/event_emitter").EventEmitter,o=typeof ResizeObserver=="function",i=(a.prototype.$setMeasureNodeStyles=function(r,e){r.width=r.height="auto",r.left=r.top="0px",r.visibility="hidden",r.position="absolute",r.whiteSpace="pre",l.isIE<8?r["font-family"]="inherit":r.font="inherit",r.overflow=e?"hidden":"visible"},a.prototype.checkForSizeChanges=function(r){var e;!(r=r===void 0?this.$measureSizes():r)||this.$characterSize.width===r.width&&this.$characterSize.height===r.height||(this.$measureNode.style.fontWeight="bold",e=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=r,this.charSizes=Object.create(null),this.allowBoldFonts=e&&e.width===r.width&&e.height===r.height,this._emit("changeCharacterSize",{data:r}))},a.prototype.$addObserver=function(){var r=this;this.$observer=new window.ResizeObserver(function(e){r.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},a.prototype.$pollSizeChanges=function(){var r;return this.$pollSizeChangesTimer||this.$observer?this.$pollSizeChangesTimer:(r=this).$pollSizeChangesTimer=h.onIdle(function e(){r.checkForSizeChanges(),h.onIdle(e,500)},500)},a.prototype.setPolling=function(r){r?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},a.prototype.$measureSizes=function(r){return r={height:(r||this.$measureNode).clientHeight,width:(r||this.$measureNode).clientWidth/512},r.width===0||r.height===0?null:r},a.prototype.$measureCharWidth=function(r){return this.$main.textContent=d.stringRepeat(r,512),this.$main.getBoundingClientRect().width/512},a.prototype.getCharacterWidth=function(r){var e=this.charSizes[r];return e=e===void 0?this.charSizes[r]=this.$measureCharWidth(r)/this.$characterSize.width:e},a.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},a.prototype.$getZoom=function(r){return r&&r.parentElement?(window.getComputedStyle(r).zoom||1)*this.$getZoom(r.parentElement):1},a.prototype.$initTransformMeasureNodes=function(){function r(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]}this.els=C.buildDom([r(0,0),r(200,0),r(0,200),r(200,200)],this.el)},a.prototype.transformCoordinates=function(r,e){function t(O,k,u){var _=O[1]*k[0]-O[0]*k[1];return[(-k[1]*u[0]+k[0]*u[1])/_,(+O[1]*u[0]-O[0]*u[1])/_]}function s(O,k){return[O[0]-k[0],O[1]-k[1]]}function c(O,k){return[O[0]+k[0],O[1]+k[1]]}function p(O,k){return[O*k[0],O*k[1]]}function g(O){return O=O.getBoundingClientRect(),[O.left,O.top]}r=r&&p(1/this.$getZoom(this.el),r),this.els||this.$initTransformMeasureNodes();var b,w=g(this.els[0]),W=g(this.els[1]),B=g(this.els[2]),E=g(this.els[3]),E=t(s(E,W),s(E,B),s(c(W,B),c(E,w))),W=p(1+E[0],s(W,w)),B=p(1+E[1],s(B,w));return e?(b=E[0]*e[0]/200+E[1]*e[1]/200+1,e=c(p(e[0],W),p(e[1],B)),c(p(1/b/200,e),w)):(b=s(r,w),e=t(s(W,p(E[0],b)),s(B,p(E[1],b)),b),p(200,e))},a);function a(r){this.el=C.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=C.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=C.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),r.appendChild(this.el),this.$measureNode.textContent=d.stringRepeat("X",512),this.$characterSize={width:0,height:0},o?this.$addObserver():this.checkForSizeChanges()}i.prototype.$characterSize={width:0,height:0},y.implement(i.prototype,n),f.FontMetrics=i}),ace.define("ace/css/editor-css",["require","exports","module"],function(A,f,R){R.exports=`
+.ace_br1 {border-top-left-radius : 3px;}
+.ace_br2 {border-top-right-radius : 3px;}
+.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
+.ace_br4 {border-bottom-right-radius: 3px;}
+.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
+.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
+.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
+.ace_br8 {border-bottom-left-radius : 3px;}
+.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
+.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
+.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
+.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
+.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
+.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
+.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
+
+
+.ace_editor {
+ position: relative;
+ overflow: hidden;
+ padding: 0;
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
+ direction: ltr;
+ text-align: left;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+
+.ace_scroller {
+ position: absolute;
+ overflow: hidden;
+ top: 0;
+ bottom: 0;
+ background-color: inherit;
+ -ms-user-select: none;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
+ cursor: text;
+}
+
+.ace_content {
+ position: absolute;
+ box-sizing: border-box;
+ min-width: 100%;
+ contain: style size layout;
+ font-variant-ligatures: no-common-ligatures;
+}
+
+.ace_keyboard-focus:focus {
+ box-shadow: inset 0 0 0 2px #5E9ED6;
+ outline: none;
+}
+
+.ace_dragging .ace_scroller:before{
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ content: '';
+ background: rgba(250, 250, 250, 0.01);
+ z-index: 1000;
+}
+.ace_dragging.ace_dark .ace_scroller:before{
+ background: rgba(0, 0, 0, 0.01);
+}
+
+.ace_gutter {
+ position: absolute;
+ overflow : hidden;
+ width: auto;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ cursor: default;
+ z-index: 4;
+ -ms-user-select: none;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
+ contain: style size layout;
+}
+
+.ace_gutter-active-line {
+ position: absolute;
+ left: 0;
+ right: 0;
+}
+
+.ace_scroller.ace_scroll-left:after {
+ content: "";
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
+ pointer-events: none;
+}
+
+.ace_gutter-cell, .ace_gutter-cell_svg-icons {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ padding-left: 19px;
+ padding-right: 6px;
+ background-repeat: no-repeat;
+}
+
+.ace_gutter-cell_svg-icons .ace_gutter_annotation {
+ margin-left: -14px;
+ float: left;
+}
+
+.ace_gutter-cell .ace_gutter_annotation {
+ margin-left: -19px;
+ float: left;
+}
+
+.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
+ background-repeat: no-repeat;
+ background-position: 2px center;
+}
+
+.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
+ background-repeat: no-repeat;
+ background-position: 2px center;
+}
+
+.ace_gutter-cell.ace_info, .ace_icon.ace_info {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
+ background-repeat: no-repeat;
+ background-position: 2px center;
+}
+.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
+}
+
+.ace_icon_svg.ace_error {
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
+ background-color: crimson;
+}
+.ace_icon_svg.ace_warning {
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
+ background-color: darkorange;
+}
+.ace_icon_svg.ace_info {
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
+ background-color: royalblue;
+}
+
+.ace_icon_svg.ace_error_fold {
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
+ background-color: crimson;
+}
+.ace_icon_svg.ace_warning_fold {
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
+ background-color: darkorange;
+}
+
+.ace_scrollbar {
+ contain: strict;
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ z-index: 6;
+}
+
+.ace_scrollbar-inner {
+ position: absolute;
+ cursor: text;
+ left: 0;
+ top: 0;
+}
+
+.ace_scrollbar-v{
+ overflow-x: hidden;
+ overflow-y: scroll;
+ top: 0;
+}
+
+.ace_scrollbar-h {
+ overflow-x: scroll;
+ overflow-y: hidden;
+ left: 0;
+}
+
+.ace_print-margin {
+ position: absolute;
+ height: 100%;
+}
+
+.ace_text-input {
+ position: absolute;
+ z-index: 0;
+ width: 0.5em;
+ height: 1em;
+ opacity: 0;
+ background: transparent;
+ -moz-appearance: none;
+ appearance: none;
+ border: none;
+ resize: none;
+ outline: none;
+ overflow: hidden;
+ font: inherit;
+ padding: 0 1px;
+ margin: 0 -1px;
+ contain: strict;
+ -ms-user-select: text;
+ -moz-user-select: text;
+ -webkit-user-select: text;
+ user-select: text;
+ /*with \`pre-line\` chrome inserts instead of space*/
+ white-space: pre!important;
+}
+.ace_text-input.ace_composition {
+ background: transparent;
+ color: inherit;
+ z-index: 1000;
+ opacity: 1;
+}
+.ace_composition_placeholder { color: transparent }
+.ace_composition_marker {
+ border-bottom: 1px solid;
+ position: absolute;
+ border-radius: 0;
+ margin-top: 1px;
+}
+
+[ace_nocontext=true] {
+ transform: none!important;
+ filter: none!important;
+ clip-path: none!important;
+ mask : none!important;
+ contain: none!important;
+ perspective: none!important;
+ mix-blend-mode: initial!important;
+ z-index: auto;
+}
+
+.ace_layer {
+ z-index: 1;
+ position: absolute;
+ overflow: hidden;
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
+ word-wrap: normal;
+ white-space: pre;
+ height: 100%;
+ width: 100%;
+ box-sizing: border-box;
+ /* setting pointer-events: auto; on node under the mouse, which changes
+ during scroll, will break mouse wheel scrolling in Safari */
+ pointer-events: none;
+}
+
+.ace_gutter-layer {
+ position: relative;
+ width: auto;
+ text-align: right;
+ pointer-events: auto;
+ height: 1000000px;
+ contain: style size layout;
+}
+
+.ace_text-layer {
+ font: inherit !important;
+ position: absolute;
+ height: 1000000px;
+ width: 1000000px;
+ contain: style size layout;
+}
+
+.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
+ contain: style size layout;
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+}
+
+.ace_hidpi .ace_text-layer,
+.ace_hidpi .ace_gutter-layer,
+.ace_hidpi .ace_content,
+.ace_hidpi .ace_gutter {
+ contain: strict;
+}
+.ace_hidpi .ace_text-layer > .ace_line,
+.ace_hidpi .ace_text-layer > .ace_line_group {
+ contain: strict;
+}
+
+.ace_cjk {
+ display: inline-block;
+ text-align: center;
+}
+
+.ace_cursor-layer {
+ z-index: 4;
+}
+
+.ace_cursor {
+ z-index: 4;
+ position: absolute;
+ box-sizing: border-box;
+ border-left: 2px solid;
+ /* workaround for smooth cursor repaintng whole screen in chrome */
+ transform: translatez(0);
+}
+
+.ace_multiselect .ace_cursor {
+ border-left-width: 1px;
+}
+
+.ace_slim-cursors .ace_cursor {
+ border-left-width: 1px;
+}
+
+.ace_overwrite-cursors .ace_cursor {
+ border-left-width: 0;
+ border-bottom: 1px solid;
+}
+
+.ace_hidden-cursors .ace_cursor {
+ opacity: 0.2;
+}
+
+.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
+ opacity: 0;
+}
+
+.ace_smooth-blinking .ace_cursor {
+ transition: opacity 0.18s;
+}
+
+.ace_animate-blinking .ace_cursor {
+ animation-duration: 1000ms;
+ animation-timing-function: step-end;
+ animation-name: blink-ace-animate;
+ animation-iteration-count: infinite;
+}
+
+.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
+ animation-duration: 1000ms;
+ animation-timing-function: ease-in-out;
+ animation-name: blink-ace-animate-smooth;
+}
+
+@keyframes blink-ace-animate {
+ from, to { opacity: 1; }
+ 60% { opacity: 0; }
+}
+
+@keyframes blink-ace-animate-smooth {
+ from, to { opacity: 1; }
+ 45% { opacity: 1; }
+ 60% { opacity: 0; }
+ 85% { opacity: 0; }
+}
+
+.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
+ position: absolute;
+ z-index: 3;
+}
+
+.ace_marker-layer .ace_selection {
+ position: absolute;
+ z-index: 5;
+}
+
+.ace_marker-layer .ace_bracket {
+ position: absolute;
+ z-index: 6;
+}
+
+.ace_marker-layer .ace_error_bracket {
+ position: absolute;
+ border-bottom: 1px solid #DE5555;
+ border-radius: 0;
+}
+
+.ace_marker-layer .ace_active-line {
+ position: absolute;
+ z-index: 2;
+}
+
+.ace_marker-layer .ace_selected-word {
+ position: absolute;
+ z-index: 4;
+ box-sizing: border-box;
+}
+
+.ace_line .ace_fold {
+ box-sizing: border-box;
+
+ display: inline-block;
+ height: 11px;
+ margin-top: -2px;
+ vertical-align: middle;
+
+ background-image:
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
+ background-repeat: no-repeat, repeat-x;
+ background-position: center center, top left;
+ color: transparent;
+
+ border: 1px solid black;
+ border-radius: 2px;
+
+ cursor: pointer;
+ pointer-events: auto;
+}
+
+.ace_dark .ace_fold {
+}
+
+.ace_fold:hover{
+ background-image:
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
+}
+
+.ace_tooltip {
+ background-color: #f5f5f5;
+ border: 1px solid gray;
+ border-radius: 1px;
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
+ color: black;
+ max-width: 100%;
+ padding: 3px 4px;
+ position: fixed;
+ z-index: 999999;
+ box-sizing: border-box;
+ cursor: default;
+ white-space: pre;
+ word-wrap: break-word;
+ line-height: normal;
+ font-style: normal;
+ font-weight: normal;
+ letter-spacing: normal;
+ pointer-events: none;
+}
+
+.ace_tooltip.ace_dark {
+ background-color: #636363;
+ color: #fff;
+}
+
+.ace_tooltip:focus {
+ outline: 1px solid #5E9ED6;
+}
+
+.ace_icon {
+ display: inline-block;
+ width: 18px;
+ vertical-align: top;
+}
+
+.ace_icon_svg {
+ display: inline-block;
+ width: 12px;
+ vertical-align: top;
+ -webkit-mask-repeat: no-repeat;
+ -webkit-mask-size: 12px;
+ -webkit-mask-position: center;
+}
+
+.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
+ padding-right: 13px;
+}
+
+.ace_fold-widget {
+ box-sizing: border-box;
+
+ margin: 0 -12px 0 1px;
+ display: none;
+ width: 11px;
+ vertical-align: top;
+
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
+ background-repeat: no-repeat;
+ background-position: center;
+
+ border-radius: 3px;
+
+ border: 1px solid transparent;
+ cursor: pointer;
+}
+
+.ace_folding-enabled .ace_fold-widget {
+ display: inline-block;
+}
+
+.ace_fold-widget.ace_end {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
+}
+
+.ace_fold-widget.ace_closed {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
+}
+
+.ace_fold-widget:hover {
+ border: 1px solid rgba(0, 0, 0, 0.3);
+ background-color: rgba(255, 255, 255, 0.2);
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
+}
+
+.ace_fold-widget:active {
+ border: 1px solid rgba(0, 0, 0, 0.4);
+ background-color: rgba(0, 0, 0, 0.05);
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
+}
+/**
+ * Dark version for fold widgets
+ */
+.ace_dark .ace_fold-widget {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
+}
+.ace_dark .ace_fold-widget.ace_end {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
+}
+.ace_dark .ace_fold-widget.ace_closed {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
+}
+.ace_dark .ace_fold-widget:hover {
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
+ background-color: rgba(255, 255, 255, 0.1);
+}
+.ace_dark .ace_fold-widget:active {
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
+}
+
+.ace_inline_button {
+ border: 1px solid lightgray;
+ display: inline-block;
+ margin: -1px 8px;
+ padding: 0 5px;
+ pointer-events: auto;
+ cursor: pointer;
+}
+.ace_inline_button:hover {
+ border-color: gray;
+ background: rgba(200,200,200,0.2);
+ display: inline-block;
+ pointer-events: auto;
+}
+
+.ace_fold-widget.ace_invalid {
+ background-color: #FFB4B4;
+ border-color: #DE5555;
+}
+
+.ace_fade-fold-widgets .ace_fold-widget {
+ transition: opacity 0.4s ease 0.05s;
+ opacity: 0;
+}
+
+.ace_fade-fold-widgets:hover .ace_fold-widget {
+ transition: opacity 0.05s ease 0.05s;
+ opacity:1;
+}
+
+.ace_underline {
+ text-decoration: underline;
+}
+
+.ace_bold {
+ font-weight: bold;
+}
+
+.ace_nobold .ace_bold {
+ font-weight: normal;
+}
+
+.ace_italic {
+ font-style: italic;
+}
+
+
+.ace_error-marker {
+ background-color: rgba(255, 0, 0,0.2);
+ position: absolute;
+ z-index: 9;
+}
+
+.ace_highlight-marker {
+ background-color: rgba(255, 255, 0,0.2);
+ position: absolute;
+ z-index: 8;
+}
+
+.ace_mobile-menu {
+ position: absolute;
+ line-height: 1.5;
+ border-radius: 4px;
+ -ms-user-select: none;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
+ background: white;
+ box-shadow: 1px 3px 2px grey;
+ border: 1px solid #dcdcdc;
+ color: black;
+}
+.ace_dark > .ace_mobile-menu {
+ background: #333;
+ color: #ccc;
+ box-shadow: 1px 3px 2px grey;
+ border: 1px solid #444;
+
+}
+.ace_mobile-button {
+ padding: 2px;
+ cursor: pointer;
+ overflow: hidden;
+}
+.ace_mobile-button:hover {
+ background-color: #eee;
+ opacity:1;
+}
+.ace_mobile-button:active {
+ background-color: #ddd;
+}
+
+.ace_placeholder {
+ font-family: arial;
+ transform: scale(0.9);
+ transform-origin: left;
+ white-space: pre;
+ opacity: 0.7;
+ margin: 0 10px;
+}
+
+.ace_ghost_text {
+ opacity: 0.5;
+ font-style: italic;
+ white-space: pre;
+}
+
+.ace_screenreader-only {
+ position:absolute;
+ left:-10000px;
+ top:auto;
+ width:1px;
+ height:1px;
+ overflow:hidden;
+}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(d,f,R){var y=d("../lib/dom"),C=d("../lib/oop"),d=d("../lib/event_emitter").EventEmitter,h=(l.prototype.$updateDecorators=function(n){var o=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light,i=(n&&(this.maxHeight=n.maxHeight,this.lineHeight=n.lineHeight,this.canvasHeight=n.height,(n.lastRow+1)*this.lineHeightE.priority?1:0}),this.renderer.session.$foldData),t=0;tthis.canvasHeight&&(s=this.canvasHeight-this.halfMinDecorationHeight),g=Math.round(s-this.halfMinDecorationHeight),b=Math.round(s+this.halfMinDecorationHeight)),i.fillStyle=o[a[t].type]||null,i.fillRect(0,p,this.canvasWidth,b-g)}n=this.renderer.session.selection.getCursor(),n&&(c=this.compensateFoldRows(n.row,e),p=Math.round((n.row-c)*this.lineHeight*this.heightRatio),i.fillStyle="rgba(0, 0, 0, 0.5)",i.fillRect(0,p,this.canvasWidth,2))},l.prototype.compensateFoldRows=function(n,o){var i=0;if(o&&0o[a].start.row&&n=o[a].end.row&&(i+=o[a].end.row-o[a].start.row);return i},l);function l(n,o){this.canvas=y.createElement("canvas"),this.renderer=o,this.pixelRatio=1,this.maxHeight=o.layerConfig.maxHeight,this.lineHeight=o.layerConfig.lineHeight,this.canvasHeight=n.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=n.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},n.element.appendChild(this.canvas)}C.implement(h.prototype,d),f.Decorator=h}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(E,f,R){var y=E("./lib/oop"),C=E("./lib/dom"),d=E("./lib/lang"),h=E("./config"),l=E("./layer/gutter").Gutter,n=E("./layer/marker").Marker,o=E("./layer/text").Text,i=E("./layer/cursor").Cursor,a=E("./scrollbar").HScrollBar,r=E("./scrollbar").VScrollBar,e=E("./scrollbar_custom").HScrollBar,t=E("./scrollbar_custom").VScrollBar,s=E("./renderloop").RenderLoop,c=E("./layer/font_metrics").FontMetrics,p=E("./lib/event_emitter").EventEmitter,g=E("./css/editor-css"),b=E("./layer/decorators").Decorator,w=E("./lib/useragent"),E=(C.importCssString(g,"ace_editor.css",!1),W.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),C.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},W.prototype.setSession=function(B){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=B)&&this.scrollMargin.top&&B.getScrollTop()<=0&&B.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(B),this.$markerBack.setSession(B),this.$markerFront.setSession(B),this.$gutterLayer.setSession(B),this.$textLayer.setSession(B),B&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},W.prototype.updateLines=function(B,O,k){if(O===void 0&&(O=1/0),this.$changedLines?(this.$changedLines.firstRow>B&&(this.$changedLines.firstRow=B),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},W.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},W.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},W.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},W.prototype.updateFull=function(B){B?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},W.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},W.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},W.prototype.onResize=function(B,O,k,u){if(!(2$.height-u?C.translate(this.textarea,0,0):($=1,_=this.$size.height-u,v?v.useTextareaForIME?(v=this.textarea.value,$=this.characterWidth*this.session.$getStringScreenWidth(v)[0]):O+=this.lineHeight+2:O+=this.lineHeight,(k-=this.scrollLeft)>this.$size.scrollerWidth-$&&(k=this.$size.scrollerWidth-$),k+=this.gutterWidth+this.margin.left,C.setStyle(B,"height",u+"px"),C.setStyle(B,"width",$+"px"),C.translate(this.textarea,Math.min(k,this.$size.scrollerWidth-$),Math.min(O,_)))):C.translate(this.textarea,-100,0))},W.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},W.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},W.prototype.getLastFullyVisibleRow=function(){var B=this.layerConfig,O=B.lastRow;return this.session.documentToScreenRow(O,0)*B.lineHeight-this.session.getScrollTop()>B.height-B.lineHeight?O-1:O},W.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},W.prototype.setPadding=function(B){this.$padding=B,this.$textLayer.setPadding(B),this.$cursorLayer.setPadding(B),this.$markerFront.setPadding(B),this.$markerBack.setPadding(B),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},W.prototype.setScrollMargin=function(B,O,k,u){var _=this.scrollMargin;_.top=0|B,_.bottom=0|O,_.right=0|u,_.left=0|k,_.v=_.top+_.bottom,_.h=_.left+_.right,_.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-_.top),this.updateFull()},W.prototype.setMargin=function(B,O,k,u){var _=this.margin;_.top=0|B,_.bottom=0|O,_.right=0|u,_.left=0|k,_.v=_.top+_.bottom,_.h=_.left+_.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},W.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},W.prototype.setHScrollBarAlwaysVisible=function(B){this.setOption("hScrollBarAlwaysVisible",B)},W.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},W.prototype.setVScrollBarAlwaysVisible=function(B){this.setOption("vScrollBarAlwaysVisible",B)},W.prototype.$updateScrollBarV=function(){var B=this.layerConfig.maxHeight,O=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(B-=(O-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>B-O)&&(B=this.scrollTop+O,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(B+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},W.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},W.prototype.freeze=function(){this.$frozen=!0},W.prototype.unfreeze=function(){this.$frozen=!1},W.prototype.$renderChanges=function(B,O){if(this.$changes&&(B|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(B||O)){if(this.$size.$dirty)return this.$changes|=B,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",B),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var k,u,O=this.layerConfig;(B&this.CHANGE_FULL||B&this.CHANGE_SIZE||B&this.CHANGE_TEXT||B&this.CHANGE_LINES||B&this.CHANGE_SCROLL||B&this.CHANGE_H_SCROLL)&&(B|=this.$computeLayerConfig()|this.$loop.clear(),O.firstRow!=this.layerConfig.firstRow&&O.firstRowScreen==this.layerConfig.firstRowScreen&&0<(k=this.scrollTop+(O.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight)&&(this.scrollTop=k,B=(B|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),O=this.layerConfig,this.$updateScrollBarV(),B&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),C.translate(this.content,-this.scrollLeft,-O.offset),k=O.width+2*this.$padding+"px",u=O.minHeight+"px",C.setStyle(this.content.style,"width",k),C.setStyle(this.content.style,"height",u)),B&this.CHANGE_H_SCROLL&&(C.translate(this.content,-this.scrollLeft,-O.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility)&&(this.scroller.className+=this.keyboardFocusClassName),B&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(O),this.$showGutter&&this.$gutterLayer.update(O),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(O),this.$markerBack.update(O),this.$markerFront.update(O),this.$cursorLayer.update(O),this.$moveTextAreaToCursor()):B&this.CHANGE_SCROLL?(this.$changedLines=null,B&this.CHANGE_TEXT||B&this.CHANGE_LINES?this.$textLayer.update(O):this.$textLayer.scrollLines(O),this.$showGutter&&(B&this.CHANGE_GUTTER||B&this.CHANGE_LINES?this.$gutterLayer.update(O):this.$gutterLayer.scrollLines(O)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(O),this.$markerBack.update(O),this.$markerFront.update(O),this.$cursorLayer.update(O),this.$moveTextAreaToCursor()):(B&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(O),this.$showGutter&&this.$gutterLayer.update(O),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(O)):B&this.CHANGE_LINES?((this.$updateLines()||B&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(O),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(O)):B&this.CHANGE_TEXT||B&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(O),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(O)):B&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(O),this.$customScrollbar)&&this.$scrollDecorator.$updateDecorators(O),B&this.CHANGE_CURSOR&&(this.$cursorLayer.update(O),this.$moveTextAreaToCursor()),B&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(O),B&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(O)),this._signal("afterRender",B)}else this.$changes|=B},W.prototype.$autosize=function(){var B=this.session.getScreenLength()*this.lineHeight,O=this.$maxLines*this.lineHeight,k=Math.min(O,Math.max((this.$minLines||1)*this.lineHeight,B))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(k+=this.scrollBarH.getHeight()),O=!((k=this.$maxPixelHeight&&k>this.$maxPixelHeight?this.$maxPixelHeight:k)<=2*this.lineHeight)&&OP.top)),$=M!==Q,P=($&&(this.$vScroll=Q,this.scrollBarV.setVisible(Q)),this.scrollTop%this.lineHeight),M=Math.ceil(v/this.lineHeight)-1,M=(Q=Math.max(0,Math.round((this.scrollTop-P)/this.lineHeight)))+M,X=this.lineHeight,Q=ne.screenToDocumentRow(Q,0),K=ne.getFoldLine(Q),ne=(K&&(Q=K.start.row),K=ne.documentToScreenRow(Q,0),B=ne.getRowLength(Q)*X,M=Math.min(ne.screenToDocumentRow(M,0),ne.getLength()-1),v=O.scrollerHeight+ne.getRowLength(M)*X+B,P=this.scrollTop-K*X,0);return this.layerConfig.width==u&&!_||(ne=this.CHANGE_H_SCROLL),(_||$)&&(ne|=this.$updateCachedSize(!0,this.gutterWidth,O.width,O.height),this._signal("scrollbarVisibilityChanged"),$)&&(u=this.$getLongestLine()),this.layerConfig={width:u,padding:this.$padding,firstRow:Q,firstRowScreen:K,lastRow:M,lineHeight:X,characterWidth:this.characterWidth,minHeight:v,maxHeight:k,offset:P,gutterOffset:X?Math.max(0,Math.ceil((P+O.height-O.scrollerHeight)/X)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(u-this.$padding),ne},W.prototype.$updateLines=function(){if(this.$changedLines){var B=this.$changedLines.firstRow,O=this.$changedLines.lastRow,k=(this.$changedLines=null,this.layerConfig);if(!(B>k.lastRow+1||Othis.$textLayer.MAX_LINE_LENGTH&&(B=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(B*this.characterWidth))},W.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},W.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},W.prototype.addGutterDecoration=function(B,O){this.$gutterLayer.addGutterDecoration(B,O)},W.prototype.removeGutterDecoration=function(B,O){this.$gutterLayer.removeGutterDecoration(B,O)},W.prototype.updateBreakpoints=function(B){this.$loop.schedule(this.CHANGE_GUTTER)},W.prototype.setAnnotations=function(B){this.$gutterLayer.setAnnotations(B),this.$loop.schedule(this.CHANGE_GUTTER)},W.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},W.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},W.prototype.showCursor=function(){this.$cursorLayer.showCursor()},W.prototype.scrollSelectionIntoView=function(B,O,k){this.scrollCursorIntoView(B,k),this.scrollCursorIntoView(O,k)},W.prototype.scrollCursorIntoView=function(B,O,k){var u,_,v;this.$size.scrollerHeight!==0&&(u=(B=this.$cursorLayer.getPixelPosition(B)).left,B=B.top,_=k&&k.top||0,k=k&&k.bottom||0,this.$scrollAnimation&&(this.$stopAnimation=!0),B<(v=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+_?(O&&v+_>B+this.lineHeight&&(B-=O*this.$size.scrollerHeight),B===0&&(B=-this.scrollMargin.top),this.session.setScrollTop(B)):v+this.$size.scrollerHeight-k=1-this.scrollMargin.top||0=1-this.scrollMargin.left||0"u"?{postMessage:function(){},terminate:function(){}}:h.get("loadWorkerFromBlob")?(i=function(a){a="importScripts('"+C.qualifyURL(a)+"');";try{return new Blob([a],{type:"application/javascript"})}catch{var r=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return r.append(a),r.getBlob("application/javascript")}}(o),i=(window.URL||window.webkitURL).createObjectURL(i),new Worker(i)):new Worker(o)}function n(o){o.postMessage||(o=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=o,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage}(function(){y.implement(this,d),this.$createWorkerFromOldConfig=function(o,i,a,r,e){var t,s;return A.nameToUrl&&!A.toUrl&&(A.toUrl=A.nameToUrl),h.get("packaged")||!A.toUrl?r=r||h.moduleUrl(i,"worker"):(t=this.$normalizePath,r=r||t(A.toUrl("ace/worker/worker.js",null,"_")),s={},o.forEach(function(c){s[c]=t(A.toUrl(c,null,"_").replace(/(\.js)?(\?.*)?$/,""))})),this.$worker=l(r),e&&this.send("importScripts",e),this.$worker.postMessage({init:!0,tlns:s,module:i,classname:a}),this.$worker},this.onMessage=function(o){var i=o.data;switch(i.type){case"event":this._signal(i.name,{data:i.data});break;case"call":var a=this.callbacks[i.id];a&&(a(i.data),delete this.callbacks[i.id]);break;case"error":this.reportError(i.data);break;case"log":window.console&&console.log&&console.log.apply(console,i.data)}},this.reportError=function(o){window.console&&console.error&&console.error(o)},this.$normalizePath=function(o){return C.qualifyURL(o)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(o){o.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(o,i){this.$worker.postMessage({command:o,args:i})},this.call=function(o,i,a){var r;a&&(r=this.callbackId++,this.callbacks[r]=a,i.push(r)),this.send(o,i)},this.emit=function(o,i){try{i.data&&i.data.err&&(i.data.err={message:i.data.err.message,stack:i.data.err.stack,code:i.data.err.code}),this.$worker&&this.$worker.postMessage({event:o,data:{data:i.data}})}catch(a){console.error(a.stack)}},this.attachToDocument=function(o){this.$doc&&this.terminate(),this.$doc=o,this.call("setValue",[o.getValue()]),o.on("change",this.changeListener,!0)},this.changeListener=function(o){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),o.action=="insert"?this.deltaQueue.push(o.start,o.lines):this.deltaQueue.push(o.start,o.end)},this.$sendDeltaQueue=function(){var o=this.deltaQueue;o&&(this.deltaQueue=null,50this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:o}))}}).call(n.prototype),f.UIWorkerClient=function(o,i,a){var r=null,e=!1,t=Object.create(d),s=[],c=new n({messageBuffer:s,terminate:function(){},postMessage:function(g){s.push(g),r&&(e?setTimeout(p):p())}}),p=(c.setEmitSync=function(g){e=g},function(){var g=s.shift();g.command?r[g.command].apply(r,g.args):g.event&&t._signal(g.event,g.data)});return t.postMessage=function(g){c.onMessage({data:g})},t.callback=function(g,b){this.postMessage({type:"call",id:b,data:g})},t.emit=function(g,b){this.postMessage({type:"event",name:g,data:b})},h.loadModule(["worker",i],function(g){for(r=new g[a](t);s.length;)p()}),c},f.WorkerClient=n,f.createWorker=l}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(d,f,R){var y=d("./range").Range,C=d("./lib/event_emitter").EventEmitter,d=d("./lib/oop"),h=(l.prototype.setup=function(){var n=this,o=this.doc,i=this.session,a=(this.selectionBefore=i.selection.toJSON(),i.selection.inMultiSelectMode&&i.selection.toSingleRange(),this.pos=o.createAnchor(this.$pos.row,this.$pos.column),this.pos);a.$insertRight=!0,a.detach(),a.markerId=i.addMarker(new y(a.row,a.column,a.row,a.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(r){r=o.createAnchor(r.row,r.column),r.$insertRight=!0,r.detach(),n.others.push(r)}),i.setUndoSelect(!1)},l.prototype.showOtherMarkers=function(){var n,o;this.othersActive||(n=this.session,(o=this).othersActive=!0,this.others.forEach(function(i){i.markerId=n.addMarker(new y(i.row,i.column,i.row,i.column+o.length),o.othersClass,null,!1)}))},l.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var n=0;n=this.pos.column&&o.start.column<=this.pos.column+this.length+1,r=o.start.column-this.pos.column;if(this.updateAnchors(n),a&&(this.length+=i),a&&!this.session.$fromUndo){if(n.action==="insert")for(var e=this.others.length-1;0<=e;e--){var t={row:(s=this.others[e]).row,column:s.column+r};this.doc.insertMergedLines(t,n.lines)}else if(n.action==="remove")for(e=this.others.length-1;0<=e;e--){var s,t={row:(s=this.others[e]).row,column:s.column+r};this.doc.remove(new y(t.row,t.column,t.row,t.column-i))}}this.$updating=!1,this.updateMarkers()}},l.prototype.updateAnchors=function(n){this.pos.onChange(n);for(var o=this.others.length;o--;)this.others[o].onChange(n);this.updateMarkers()},l.prototype.updateMarkers=function(){if(!this.$updating){var n=this,o=this.session,i=function(r,e){o.removeMarker(r.markerId),r.markerId=o.addMarker(new y(r.row,r.column,r.row,r.column+n.length),e,null,!1)};i(this.pos,this.mainClass);for(var a=this.others.length;a--;)i(this.others[a],this.othersClass)}},l.prototype.onCursorChange=function(n){var o;!this.$updating&&this.session&&((o=this.session.selection.getCursor()).row===this.pos.row&&o.column>=this.pos.column&&o.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",n)):(this.hideOtherMarkers(),this._emit("cursorLeave",n)))},l.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},l.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var n=this.session.getUndoManager(),o=(n.$undoStack||n.$undostack).length-this.$undoStackDepth,i=0;ig&&(g=_.column),(v=v==-1?0:v)B[1].length&&(s=B[1].length),cB[3].length&&(p=B[3].length)),B):[W]}).map(t?E:g?b?function(W){return W[2]?w(s+c-W[2].length)+W[2]+w(p)+W[4].replace(/^([=:])\s+/,"$1 "):W[0]}:E:function(W){return W[2]?w(s)+W[2]+w(p)+W[4].replace(/^([=:])\s+/,"$1 "):W[0]});function w(W){return n.stringRepeat(" ",W)}function E(W){return W[2]?w(s)+W[2]+w(c-W[2].length+p)+W[4].replace(/^([=:])\s+/,"$1 "):W[0]}}}).call(a.prototype),f.onSessionChange=function(s){var t=s.session,s=(t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect,s.oldSession);s&&(s.multiSelect.off("addRange",this.$onAddRange),s.multiSelect.off("removeRange",this.$onRemoveRange),s.multiSelect.off("multiSelect",this.$onMultiSelect),s.multiSelect.off("singleSelect",this.$onSingleSelect),s.multiSelect.lead.off("change",this.$checkMultiselectChange),s.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},f.MultiSelect=r,A("./config").defineOptions(a.prototype,"editor",{enableMultiselect:{set:function(e){r(this),e?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(C,f,R){var y=C("../../range").Range,C=f.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(d,h,l){return d=d.getLine(l),this.foldingStartMarker.test(d)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(d)?"end":""},this.getFoldWidgetRange=function(d,h,l){return null},this.indentationBlock=function(d,h,l){var n=/\S/,o=d.getLine(h),i=o.search(n);if(i!=-1){for(var a,l=l||o.length,r=d.getLength(),o=h,e=h;++hl.row&&(n.row--,n.column=d.getLine(n.row).length),y.fromPoints(l,n)},this.closingBracketBlock=function(d,h,l,n,o){if(l={row:l,column:n},n=d.$findOpeningBracket(h,l),n)return n.column++,l.column--,y.fromPoints(n,l)}}).call(C.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(A,f,R){var y=A("../line_widgets").LineWidgets,C=A("../lib/dom"),d=A("../range").Range,h=A("../config").nls;function l(n,o,i){var a=n.getAnnotations().sort(d.comparePoints);if(a.length){var r=function(s,c,p){for(var g=0,b=s.length-1;g<=b;){var w=g+b>>1,E=p(c,s[w]);if(0=a.length?r=0"),s.appendChild(C.createElement("div")),t.destroy=function(){n.$mouseHandler.isMousePressed||(n.keyBinding.removeKeyboardHandler(e),a.widgetManager.removeLineWidget(t),n.off("changeSelection",t.destroy),n.off("changeSession",t.destroy),n.off("mouseup",t.destroy),n.off("change",t.destroy))},n.keyBinding.addKeyboardHandler(e),n.on("changeSelection",t.destroy),n.on("changeSession",t.destroy),n.on("mouseup",t.destroy),n.on("change",t.destroy),n.session.widgetManager.addLineWidget(t),t.el.onmousedown=n.focus.bind(n),n.renderer.scrollCursorIntoView(null,.5,{bottom:t.el.offsetHeight})},C.importCssString(`
+ .error_widget_wrapper {
+ background: inherit;
+ color: inherit;
+ border:none
+ }
+ .error_widget {
+ border-top: solid 2px;
+ border-bottom: solid 2px;
+ margin: 5px 0;
+ padding: 10px 40px;
+ white-space: pre-wrap;
+ }
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
+ border-color: #ff5a5a
+ }
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
+ border-color: #F1D817
+ }
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
+ border-color: #5a5a5a
+ }
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
+ border-color: #5aaa5a
+ }
+ .error_widget_arrow {
+ position: absolute;
+ border: solid 5px;
+ border-top-color: transparent!important;
+ border-right-color: transparent!important;
+ border-left-color: transparent!important;
+ top: -5px;
+ }
+`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(A,f,R){A("./loader_build")(f);var y=A("./lib/dom"),C=A("./range").Range,d=A("./editor").Editor,h=A("./edit_session").EditSession,l=A("./undomanager").UndoManager,n=A("./virtual_renderer").VirtualRenderer;A("./worker/worker_client"),A("./keyboard/hash_handler"),A("./placeholder"),A("./multi_select"),A("./mode/folding/fold_mode"),A("./theme/textmate"),A("./ext/error_marker"),f.config=A("./config"),f.edit=function(o,i){if(typeof o=="string"){var a=o;if(!(o=document.getElementById(a)))throw new Error("ace.edit can't find div #"+a)}var r,e;return o&&o.env&&o.env.editor instanceof d?o.env.editor:(a="",o&&/input|textarea/i.test(o.tagName)?(a=(r=o).value,o=y.createElement("pre"),r.parentNode.replaceChild(o,r)):o&&(a=o.textContent,o.innerHTML=""),a=f.createEditSession(a),o=new d(new n(o),a,i),e={document:a,editor:o,onResize:o.resize.bind(o,null)},r&&(e.textarea=r),o.on("destroy",function(){e.editor.container.env=null}),o.container.env=o.env=e,o)},f.createEditSession=function(o,i){return o=new h(o,i),o.setUndoManager(new l),o},f.Range=C,f.Editor=d,f.EditSession=h,f.UndoManager=l,f.VirtualRenderer=n,f.version=f.config.version}),ace.require(["ace/ace"],function(A){A&&(A.config.init(!0),A.define=ace.define);var f,R=function(){return this}();for(f in(R=(R=R||typeof window>"u"?R:window)||typeof self>"u"?R:self).ace||(R.ace=A),A)A.hasOwnProperty(f)&&(R.ace[f]=A[f]);R.ace.default=R.ace,le&&(le.exports=R.ace)})},4317:function(le,m,Z){le=Z.nmd(le),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(U,x,H){var j=U("./lib/dom"),r=U("./lib/oop"),z=U("./lib/event_emitter").EventEmitter,Y=U("./lib/lang"),G=U("./range").Range,N=U("./range_list").RangeList,A=U("./keyboard/hash_handler").HashHandler,f=U("./tokenizer").Tokenizer,R=U("./clipboard"),y={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,s){return e=e.session.getTextRange(),s?e.replace(/\n\r?([ \t]*\S)/g,`
+`+s+"$1"):e},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return R.getText&&R.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){return e=e.session.$mode||{},e.blockComment&&e.blockComment.start||""},BLOCK_COMMENT_END:function(e){return e=e.session.$mode||{},e.blockComment&&e.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:C.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:C.bind(null,{year:"2-digit"}),CURRENT_MONTH:C.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:C.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:C.bind(null,{month:"short"}),CURRENT_DATE:C.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:C.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:C.bind(null,{weekday:"short"}),CURRENT_HOUR:C.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:C.bind(null,{minute:"2-digit"}),CURRENT_SECOND:C.bind(null,{second:"2-digit"})};function C(e){return e=new Date().toLocaleString("en-us",e),e.length==1?"0"+e:e}y.SELECTED_TEXT=y.SELECTION,h.prototype.getTokenizer=function(){return h.$tokenizer||this.createTokenizer()},h.prototype.createTokenizer=function(){function e(c){return c=c.substr(1),/^\d+$/.test(c)?[{tabstopId:parseInt(c,10)}]:[{text:c}]}function t(c){return"(?:[^\\\\"+c+"]|\\\\.)"}var s={regex:"/("+t("/")+"+)/",onMatch:function(c,p,g){return g=g[0],g.fmtString=!0,g.guard=c.slice(1,-1),g.flag=""},next:"formatString"};return h.$tokenizer=new f({start:[{regex:/\\./,onMatch:function(c,p,g){var b=c[1];return[c=b=="}"&&g.length||"`$\\".indexOf(b)!=-1?b:c]}},{regex:/}/,onMatch:function(c,p,g){return[g.length?g.shift():c]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(c,p,g){return c=e(c.substr(1)),g.unshift(c[0]),c},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(c,p,g){return c=c.slice(1,-1).replace(/\\[,|\\]|,/g,function(b){return b.length==2?b[1]:"\0"}).split("\0").map(function(b){return{value:b}}),[(g[0].choices=c)[0]]},next:"start"},s,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(c,p,g){return g.length&&g[0].expectElse?(g[0].expectElse=!1,g[0].ifEnd={elseEnd:g[0]},[g[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(c,p,g){var b=c[1];return b=="}"&&g.length||"`$\\".indexOf(b)!=-1?c=b:b=="n"?c=`
+`:b=="t"?c=" ":"ulULE".indexOf(b)!=-1&&(c={changeCase:b,local:"a"w&&(W=w-g.offsetWidth),g.style.left=W+"px",g.style.right="",i.isOpen||(i.isOpen=!0,this._signal("show"),n=null),i.anchorPos=t,i.anchor=c}return!0},i.show=function(t,s,c){this.tryShow(t,s,c?"bottom":void 0,!0)},i.goTo=function(t){var s=this.getRow(),c=this.session.getLength()-1;switch(t){case"up":s=s<=0?c:s-1;break;case"down":s=c<=s?-1:s+1;break;case"start":s=0;break;case"end":s=c}this.setRow(s)},i.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},i.$imageSize=0,i.$borderSize=1,i}var G=U("../virtual_renderer").VirtualRenderer,N=U("../editor").Editor,A=U("../range").Range,f=U("../lib/event"),R=U("../lib/lang"),y=U("../lib/dom"),C=U("../config").nls;y.importCssString(`
+.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
+ background-color: #CAD6FA;
+ z-index: 1;
+}
+.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
+ background-color: #3a674e;
+}
+.ace_editor.ace_autocomplete .ace_line-hover {
+ border: 1px solid #abbffe;
+ margin-top: -1px;
+ background: rgba(233,233,253,0.4);
+ position: absolute;
+ z-index: 2;
+}
+.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
+ border: 1px solid rgba(109, 150, 13, 0.8);
+ background: rgba(58, 103, 78, 0.62);
+}
+.ace_completion-meta {
+ opacity: 0.5;
+ margin-left: 0.9em;
+}
+.ace_completion-message {
+ margin-left: 0.9em;
+ color: blue;
+}
+.ace_editor.ace_autocomplete .ace_completion-highlight{
+ color: #2d69c7;
+}
+.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
+ color: #93ca12;
+}
+.ace_editor.ace_autocomplete {
+ width: 300px;
+ z-index: 200000;
+ border: 1px lightgray solid;
+ position: fixed;
+ box-shadow: 2px 3px 5px rgba(0,0,0,.2);
+ line-height: 1.4;
+ background: #fefefe;
+ color: #111;
+}
+.ace_dark.ace_editor.ace_autocomplete {
+ border: 1px #484747 solid;
+ box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
+ line-height: 1.4;
+ background: #25282c;
+ color: #c1c1c1;
+}
+.ace_autocomplete .ace_text-layer {
+ width: calc(100% - 8px);
+}
+.ace_autocomplete .ace_line {
+ display: flex;
+ align-items: center;
+}
+.ace_autocomplete .ace_line > * {
+ min-width: 0;
+ flex: 0 0 auto;
+}
+.ace_autocomplete .ace_line .ace_ {
+ flex: 0 1 auto;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+.ace_autocomplete .ace_completion-spacer {
+ flex: 1;
+}
+.ace_autocomplete.ace_loading:after {
+ content: "";
+ position: absolute;
+ top: 0px;
+ height: 2px;
+ width: 8%;
+ background: blue;
+ z-index: 100;
+ animation: ace_progress 3s infinite linear;
+ animation-delay: 300ms;
+ transform: translateX(-100%) scaleX(1);
+}
+@keyframes ace_progress {
+ 0% { transform: translateX(-100%) scaleX(1) }
+ 50% { transform: translateX(625%) scaleX(2) }
+ 100% { transform: translateX(1500%) scaleX(3) }
+}
+@media (prefers-reduced-motion) {
+ .ace_autocomplete.ace_loading:after {
+ transform: translateX(625%) scaleX(2);
+ animation: none;
+ }
+}
+`,"autocompletion.css",!1),x.AcePopup=Y,x.$singleLineEditor=z,x.getAriaId=j}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(U,x,H){function j(z){this.editor=z,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}j.prototype.setScreenReaderContent=function(z){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",function(){var G=this.popup.getRow(),Y=this.popup.renderer.$textLayer,G=Y.element.childNodes[G-Y.config.firstRow];if(G){for(var N="doc-tooltip ",A=0;Athis.filterText&&r.lastIndexOf(this.filterText,0)===0?this.filtered:this.all,this.filterText=r,e=(e=this.filterCompletions(e,this.filterText)).sort(function(s,c){return c.exactMatch-s.exactMatch||c.$score-s.$score||(s.caption||s.value).localeCompare(c.caption||c.value)});var e,t=null;e=e.filter(function(s){return s=s.snippet||s.caption||s.value,s!==t&&(t=s,!0)}),this.filtered=e},a.prototype.filterCompletions=function(r,e){var t=[],s=e.toUpperCase(),c=e.toLowerCase();e:for(var p,g=0;p=r[g];g++){var b=!this.ignoreCaption&&p.caption||p.value||p.snippet;if(b){var w=-1,E=0,W=0;if(this.exactMatch){if(e!==b.substr(0,e.length))continue}else{var B=b.toLowerCase().indexOf(c);if(-1",f.escapeHTML(r.caption)," "," ",f.escapeHTML((r=r.snippet,e={},r.replace(/\${(\d+)(:(.*?))?}/g,function(t,s,c,p){return e[s]=p||""}).replace(/\$(\d+?)/g,function(t,s){return e[s]})))].join(""))},id:"snippetCompleter"},d=[C,a,y],h=(x.setCompleters=function(r){d.length=0,r&&d.push.apply(d,r)},x.addCompleter=function(r){d.push(r)},x.textCompleter=a,x.keyWordCompleter=y,x.snippetCompleter=C,{name:"expandSnippet",exec:function(r){return G.expandWithTab(r)},bindKey:"Tab"}),l=function(r){(r=typeof r=="string"?A.$modes[r]:r)&&(G.files||(G.files={}),n(r.$id,r.snippetFileId),r.modes)&&r.modes.forEach(l)},n=function(r,e){e&&r&&!G.files[r]&&(G.files[r]={},A.loadModule(e,function(t){t&&(!(G.files[r]=t).snippets&&t.snippetText&&(t.snippets=G.parseSnippetFile(t.snippetText)),G.register(t.snippets||[],t.scope),t.includeScopes)&&(G.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach(function(s){l("ace/mode/"+s)}))}))},o=f.delayedCall(function(){i(Y)},0),i=function(e){var e=e.editor,t=R.getCompletionPrefix(e),s=R.triggerAutocomplete(e);(t&&t.length>=e.$liveAutocompletionThreshold||s)&&((t=N.for(e)).autoShown=!0,t.showPopup(e))},a=U("../editor").Editor;U("../config").defineOptions(a.prototype,"editor",{enableBasicAutocompletion:{set:function(r){r?(this.completers||(this.completers=Array.isArray(r)?r:d),this.commands.addCommand(N.startCommand)):this.commands.removeCommand(N.startCommand)},value:!1},enableLiveAutocompletion:{set:function(r){r?(this.completers||(this.completers=Array.isArray(r)?r:d),this.commands.on("afterExec",z)):this.commands.off("afterExec",z)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(r){r?(this.commands.addCommand(h),this.on("changeMode",j),j(0,this)):(this.commands.removeCommand(h),this.off("changeMode",j))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(U){le&&(le.exports=U)})},3330:function(le,m,Z){le=Z.nmd(le),ace.define("ace/ext/searchbox-css",["require","exports","module"],function(U,x,H){H.exports=`
+
+/* ------------------------------------------------------------------------------------------
+ * Editor Search Form
+ * --------------------------------------------------------------------------------------- */
+.ace_search {
+ background-color: #ddd;
+ color: #666;
+ border: 1px solid #cbcbcb;
+ border-top: 0 none;
+ overflow: hidden;
+ margin: 0;
+ padding: 4px 6px 0 4px;
+ position: absolute;
+ top: 0;
+ z-index: 99;
+ white-space: normal;
+}
+.ace_search.left {
+ border-left: 0 none;
+ border-radius: 0px 0px 5px 0px;
+ left: 0;
+}
+.ace_search.right {
+ border-radius: 0px 0px 0px 5px;
+ border-right: 0 none;
+ right: 0;
+}
+
+.ace_search_form, .ace_replace_form {
+ margin: 0 20px 4px 0;
+ overflow: hidden;
+ line-height: 1.9;
+}
+.ace_replace_form {
+ margin-right: 0;
+}
+.ace_search_form.ace_nomatch {
+ outline: 1px solid red;
+}
+
+.ace_search_field {
+ border-radius: 3px 0 0 3px;
+ background-color: white;
+ color: black;
+ border: 1px solid #cbcbcb;
+ border-right: 0 none;
+ outline: 0;
+ padding: 0;
+ font-size: inherit;
+ margin: 0;
+ line-height: inherit;
+ padding: 0 6px;
+ min-width: 17em;
+ vertical-align: top;
+ min-height: 1.8em;
+ box-sizing: content-box;
+}
+.ace_searchbtn {
+ border: 1px solid #cbcbcb;
+ line-height: inherit;
+ display: inline-block;
+ padding: 0 6px;
+ background: #fff;
+ border-right: 0 none;
+ border-left: 1px solid #dcdcdc;
+ cursor: pointer;
+ margin: 0;
+ position: relative;
+ color: #666;
+}
+.ace_searchbtn:last-child {
+ border-radius: 0 3px 3px 0;
+ border-right: 1px solid #cbcbcb;
+}
+.ace_searchbtn:disabled {
+ background: none;
+ cursor: default;
+}
+.ace_searchbtn:hover {
+ background-color: #eef1f6;
+}
+.ace_searchbtn.prev, .ace_searchbtn.next {
+ padding: 0px 0.7em
+}
+.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
+ content: "";
+ border: solid 2px #888;
+ width: 0.5em;
+ height: 0.5em;
+ border-width: 2px 0 0 2px;
+ display:inline-block;
+ transform: rotate(-45deg);
+}
+.ace_searchbtn.next:after {
+ border-width: 0 2px 2px 0 ;
+}
+.ace_searchbtn_close {
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
+ border-radius: 50%;
+ border: 0 none;
+ color: #656565;
+ cursor: pointer;
+ font: 16px/16px Arial;
+ padding: 0;
+ height: 14px;
+ width: 14px;
+ top: 9px;
+ right: 7px;
+ position: absolute;
+}
+.ace_searchbtn_close:hover {
+ background-color: #656565;
+ background-position: 50% 100%;
+ color: white;
+}
+
+.ace_button {
+ margin-left: 2px;
+ cursor: pointer;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -o-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ overflow: hidden;
+ opacity: 0.7;
+ border: 1px solid rgba(100,100,100,0.23);
+ padding: 1px;
+ box-sizing: border-box!important;
+ color: black;
+}
+
+.ace_button:hover {
+ background-color: #eee;
+ opacity:1;
+}
+.ace_button:active {
+ background-color: #ddd;
+}
+
+.ace_button.checked {
+ border-color: #3399ff;
+ opacity:1;
+}
+
+.ace_search_options{
+ margin-bottom: 3px;
+ text-align: right;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -o-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ clear: both;
+}
+
+.ace_search_counter {
+ float: left;
+ font-family: arial;
+ padding: 0 8px;
+}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(U,x,H){var j=U("../lib/dom"),z=U("../lib/lang"),Y=U("../lib/event"),G=U("./searchbox-css"),N=U("../keyboard/hash_handler").HashHandler,A=U("../lib/keys"),f=U("../config").nls,R=(j.importCssString(G,"ace_searchbox",!1),y.prototype.setEditor=function(C){C.searchBox=this,C.renderer.scroller.appendChild(this.element),this.editor=C},y.prototype.setSession=function(C){this.searchRange=null,this.$syncOptions(!0)},y.prototype.$initElements=function(C){this.searchBox=C.querySelector(".ace_search_form"),this.replaceBox=C.querySelector(".ace_replace_form"),this.searchOption=C.querySelector("[action=searchInSelection]"),this.replaceOption=C.querySelector("[action=toggleReplace]"),this.regExpOption=C.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=C.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=C.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=C.querySelector(".ace_search_counter")},y.prototype.$init=function(){var C=this.element,d=(this.$initElements(C),this);Y.addListener(C,"mousedown",function(h){setTimeout(function(){d.activeInput.focus()},0),Y.stopPropagation(h)}),Y.addListener(C,"click",function(h){var l=(h.target||h.srcElement).getAttribute("action");l&&d[l]?d[l]():d.$searchBarKb.commands[l]&&d.$searchBarKb.commands[l].exec(d),Y.stopPropagation(h)}),Y.addCommandKeyListener(C,function(h,l,n){n=A.keyCodeToString(n),l=d.$searchBarKb.findKeyCommand(l,n),l&&l.exec&&(l.exec(d),Y.stopEvent(h))}),this.$onChange=z.delayedCall(function(){d.find(!1,!1)}),Y.addListener(this.searchInput,"input",function(){d.$onChange.schedule(20)}),Y.addListener(this.searchInput,"focus",function(){d.activeInput=d.searchInput,d.searchInput.value&&d.highlight()}),Y.addListener(this.replaceInput,"focus",function(){d.activeInput=d.replaceInput,d.searchInput.value&&d.highlight()})},y.prototype.setSearchRange=function(C){(this.searchRange=C)?this.searchRangeMarker=this.editor.session.addMarker(C,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},y.prototype.$syncOptions=function(C){j.setCssClass(this.replaceOption,"checked",this.searchRange),j.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",j.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),j.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),j.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var d=this.editor.getReadOnly();this.replaceOption.style.display=d?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!d?"":"none",this.find(!1,!1,C)},y.prototype.highlight=function(C){this.editor.session.highlight(C||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},y.prototype.find=function(C,d,h){C=!this.editor.find(this.searchInput.value,{skipCurrent:C,backwards:d,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:h,range:this.searchRange})&&this.searchInput.value,j.setCssClass(this.searchBox,"ace_nomatch",C),this.editor._emit("findSearchBox",{match:!C}),this.highlight(),this.updateCounter()},y.prototype.updateCounter=function(){var C=this.editor,d=C.$search.$options.re,h=0,l=0;if(d){var n,o,i=this.searchRange?C.session.getTextRange(this.searchRange):C.getValue(),a=C.session.doc.positionToIndex(C.selection.anchor);for(this.searchRange&&(a-=C.session.doc.positionToIndex(this.searchRange.start)),d.lastIndex=0;(o=d.exec(i))&&((n=o.index)<=a&&l++,!(999<++h))&&(o[0]||(d.lastIndex=n+=1,!(n>=i.length))););}this.searchCounter.textContent=f("$0 of $1",[l,999%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,N=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,A=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,f=/^(?:\/(?:[^~/]|~0|~1)*)*$/,R=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,y=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function C(a){return U.copy(C[a=a=="full"?"full":"fast"])}function d(t){var r,e,t=t.match(x);return!!t&&(r=+t[1],e=+t[2],t=+t[3],1<=e)&&e<=12&&1<=t&&t<=(e!=2||(t=r)%4!=0||t%100==0&&t%400!=0?H[e]:29)}function h(c,r){var e,t,s,c=c.match(j);return!!c&&(e=c[1],t=c[2],s=c[3],c=c[5],e<=23&&t<=59&&s<=59||e==23&&t==59&&s==60)&&(!r||c)}(le.exports=C).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":G,url:N,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:z,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:A,"json-pointer":f,"json-pointer-uri-fragment":R,"relative-json-pointer":y},C.full={date:d,time:h,"date-time":function(a){return a=a.split(l),a.length==2&&d(a[0])&&h(a[1],!0)},uri:function(a){return n.test(a)&&Y.test(a)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":G,url:N,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:z,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:A,"json-pointer":f,"json-pointer-uri-fragment":R,"relative-json-pointer":y};var l=/t|\s/i,n=/\/|:/,o=/[^\\]\\Z/;function i(a){if(o.test(a))return!1;try{return new RegExp(a),!0}catch{return!1}}},5689:function(le,m,Z){var U=Z(3969),x=Z(3724),H=Z(5359),j=Z(3508),z=Z(1869),Y=x.ucs2length,G=Z(2303),N=H.Validation;function A(l,n,o,i){var a=this,r=this._opts,e=[void 0],t={},s=[],c={},p=[],g={},b=[],w=(n=n||{schema:l,refVal:e,refs:t},function(K,ne,T){var F=f.call(this,K,ne,T);return 0<=F?{index:F,compiling:!0}:(F=this._compilations.length,this._compilations[F]={schema:K,root:ne,baseId:T},{index:F,compiling:!1})}.call(this,l,n,i)),E=this._compilations[w.index];if(w.compiling)return E.callValidate=u;var W=this._formats,B=this.RULES;try{var O=_(l,n,o,i),k=(E.validate=O,E.callValidate);return k&&(k.schema=O.schema,k.errors=null,k.refs=O.refs,k.refVal=O.refVal,k.root=O.root,k.$async=O.$async,r.sourceCode)&&(k.source=O.source),O}finally{(function(K,ne,T){K=f.call(this,K,ne,T),0<=K&&this._compilations.splice(K,1)}).call(this,l,n,i)}function u(){var K=E.validate,ne=K.apply(this,arguments);return u.errors=K.errors,ne}function _(K,ne,T,F){var V=!ne||ne.schema==K;if(ne.schema!=n.schema)return A.call(a,K,ne,T,F);T=K.$async===!0,F=z({isTop:!0,schema:K,isRoot:V,baseId:F,root:ne,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:H.MissingRef,RULES:B,validate:z,util:x,resolve:U,resolveRef:v,usePattern:M,useDefault:X,useCustomRule:Q,opts:r,formats:W,logger:a.logger,self:a}),F=h(e,C)+h(s,R)+h(p,y)+h(b,d)+F,r.processCode&&(F=r.processCode(F,K));try{var I=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",F)(a,B,W,n,e,p,b,G,Y,N);e[0]=I}catch(S){throw a.logger.error("Error compiling schema, function code:",F),S}return I.schema=K,I.errors=null,I.refs=t,I.refVal=e,I.root=V?I:ne,T&&(I.$async=!0),r.sourceCode===!0&&(I.source={code:F,patterns:s,defaults:p}),I}function v(K,ne,S){ne=U.url(K,ne);var F=t[ne];if(F!==void 0)return P(V=e[F],I="refVal["+F+"]");if(!S&&n.refs&&(F=n.refs[ne],F!==void 0))return P(V=n.refVal[F],I=$(ne,V));var V,I=$(ne),S=U.call(a,_,n,ne);if((S=S===void 0&&(F=o&&o[ne])?U.inlineRef(F,r.inlineRefs)?F:A.call(a,F,n,o,K):S)!==void 0)return V=S,F=t[F=ne],e[F]=V,P(S,I);delete t[ne]}function $(K,ne){var T=e.length;return e[T]=ne,"refVal"+(t[K]=T)}function P(K,ne){return typeof K=="object"||typeof K=="boolean"?{code:ne,schema:K,inline:!0}:{code:ne,$async:K&&!!K.$async}}function M(K){var ne=c[K];return ne===void 0&&(ne=c[K]=s.length,s[ne]=K),"pattern"+ne}function X(K){switch(typeof K){case"boolean":case"number":return""+K;case"string":return x.toQuotedString(K);case"object":var ne,T;return K===null?"null":(ne=j(K),(T=g[ne])===void 0&&(T=g[ne]=p.length,p[T]=K),"default"+T)}}function Q(K,ne,T,F){if(a._opts.validateSchema!==!1){var I=K.definition.dependencies;if(I&&!I.every(function(J){return Object.prototype.hasOwnProperty.call(T,J)}))throw new Error("parent schema must have all required keywords: "+I.join(","));if(I=K.definition.validateSchema,I&&!I(ne)){if(I="keyword schema is invalid: "+a.errorsText(I.errors),a._opts.validateSchema!="log")throw new Error(I);a.logger.error(I)}}var V,I=K.definition.compile,S=K.definition.inline,L=K.definition.macro;if(I)V=I.call(a,ne,T,F);else if(L)V=L.call(a,ne,T,F),r.validateSchema!==!1&&a.validateSchema(V,!0);else if(S)V=S.call(a,F,K.keyword,ne,T);else if(!(V=K.definition.validate))return;if(V===void 0)throw new Error('custom keyword "'+K.keyword+'"failed to compile');return I=b.length,{code:"customRule"+I,validate:b[I]=V}}}function f(l,n,o){for(var i=0;i",e=n?">":"<",t=void 0;if(!h&&typeof f!="number"&&f!==void 0)throw new Error(Z+" must be number");if(!a&&i!==void 0&&typeof i!="number"&&typeof i!="boolean")throw new Error(o+" must be number or boolean");a?(A=m.util.getData(i.$data,A,m.dataPathArr),j="exclIsNumber"+N,z="' + "+(Y="op"+N)+" + '",t=o,(s=s||[]).push(G=G+(" var schemaExcl"+N+" = "+A+"; ")+(" var "+(x="exclusive"+N)+"; var "+(H="exclType"+N)+" = typeof "+(A="schemaExcl"+N)+"; if ("+H+" != 'boolean' && "+H+" != 'undefined' && "+H+" != 'number') { ")),G="",m.createErrors!==!1?(G+=" { keyword: '"+(t||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(y)+" , params: {} ",m.opts.messages!==!1&&(G+=" , message: '"+o+" should be boolean' "),m.opts.verbose&&(G+=" , schema: validate.schema"+R+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+d+" "),G+=" } "):G+=" {} ",c=G,G=s.pop(),!m.compositeRule&&C?m.async?G+=" throw new ValidationError(["+c+"]); ":G+=" validate.errors = ["+c+"]; return false; ":G+=" var err = "+c+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",G+=" } else if ( ",h&&(G+=" ("+l+" !== undefined && typeof "+l+" != 'number') || "),G+=" "+H+" == 'number' ? ( ("+x+" = "+l+" === undefined || "+A+" "+r+"= "+l+") ? "+d+" "+e+"= "+A+" : "+d+" "+e+" "+l+" ) : ( ("+x+" = "+A+" === true) ? "+d+" "+e+"= "+l+" : "+d+" "+e+" "+l+" ) || "+d+" !== "+d+") { var op"+N+" = "+x+" ? '"+r+"' : '"+r+"='; ",f===void 0&&(y=m.errSchemaPath+"/"+(t=o),l=A,h=a)):(z=r,(j=typeof i=="number")&&h?(Y="'"+z+"'",G+=" if ( ",h&&(G+=" ("+l+" !== undefined && typeof "+l+" != 'number') || "),G+=" ( "+l+" === undefined || "+i+" "+r+"= "+l+" ? "+d+" "+e+"= "+i+" : "+d+" "+e+" "+l+" ) || "+d+" !== "+d+") { "):(j&&f===void 0?(x=!0,y=m.errSchemaPath+"/"+(t=o),l=i,e+="="):(j&&(l=Math[n?"min":"max"](i,f)),i===(!j||l)?(x=!0,y=m.errSchemaPath+"/"+(t=o),e+="="):(x=!1,z+="=")),Y="'"+z+"'",G+=" if ( ",h&&(G+=" ("+l+" !== undefined && typeof "+l+" != 'number') || "),G+=" "+d+" "+e+" "+l+" || "+d+" !== "+d+") { ")),t=t||Z,(s=s||[]).push(G),G="",m.createErrors!==!1?(G+=" { keyword: '"+(t||"_limit")+"' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(y)+" , params: { comparison: "+Y+", limit: "+l+", exclusive: "+x+" } ",m.opts.messages!==!1&&(G=G+" , message: 'should be "+z+" "+(h?"' + "+l:l+"'")),m.opts.verbose&&(G=(G+=" , schema: ")+(h?"validate.schema"+R:""+f)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+d+" "),G+=" } "):G+=" {} ";var s,c=G;return G=s.pop(),!m.compositeRule&&C?m.async?G+=" throw new ValidationError(["+c+"]); ":G+=" validate.errors = ["+c+"]; return false; ":G+=" var err = "+c+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",G+=" } ",C&&(G+=" else { "),G}},2407:function(le){le.exports=function(m,Z,U){var x,H=" ",j=m.level,R=m.dataLevel,z=m.schema[Z],Y=m.schemaPath+m.util.getProperty(Z),G=m.errSchemaPath+"/"+Z,N=!m.opts.allErrors,A="data"+(R||""),f=m.opts.$data&&z&&z.$data,R=f?(H+=" var schema"+j+" = "+m.util.getData(z.$data,R,m.dataPathArr)+"; ","schema"+j):z;if(f||typeof z=="number")return H+="if ( ",f&&(H+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "),(j=[]).push(H+=" "+A+".length "+((x=Z)=="maxItems"?">":"<")+" "+R+") { "),H="",m.createErrors!==!1?(H+=" { keyword: '"+(x||"_limitItems")+"' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(G)+" , params: { limit: "+R+" } ",m.opts.messages!==!1&&(H=(H=(H+=" , message: 'should NOT have ")+(Z=="maxItems"?"more":"fewer")+" than ")+(f?"' + "+R+" + '":""+z)+" items' "),m.opts.verbose&&(H=(H+=" , schema: ")+(f?"validate.schema"+Y:""+z)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+A+" "),H+=" } "):H+=" {} ",x=H,H=j.pop(),!m.compositeRule&&N?m.async?H+=" throw new ValidationError(["+x+"]); ":H+=" validate.errors = ["+x+"]; return false; ":H+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",H+="} ",N&&(H+=" else { "),H;throw new Error(Z+" must be number")}},1250:function(le){le.exports=function(m,Z,U){var x,H=" ",j=m.level,R=m.dataLevel,z=m.schema[Z],Y=m.schemaPath+m.util.getProperty(Z),G=m.errSchemaPath+"/"+Z,N=!m.opts.allErrors,A="data"+(R||""),f=m.opts.$data&&z&&z.$data,R=f?(H+=" var schema"+j+" = "+m.util.getData(z.$data,R,m.dataPathArr)+"; ","schema"+j):z;if(f||typeof z=="number")return H+="if ( ",f&&(H+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "),m.opts.unicode===!1?H+=" "+A+".length ":H+=" ucs2length("+A+") ",(j=[]).push(H+=" "+((x=Z)=="maxLength"?">":"<")+" "+R+") { "),H="",m.createErrors!==!1?(H+=" { keyword: '"+(x||"_limitLength")+"' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(G)+" , params: { limit: "+R+" } ",m.opts.messages!==!1&&(H=(H=(H+=" , message: 'should NOT be ")+(Z=="maxLength"?"longer":"shorter")+" than ")+(f?"' + "+R+" + '":""+z)+" characters' "),m.opts.verbose&&(H=(H+=" , schema: ")+(f?"validate.schema"+Y:""+z)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+A+" "),H+=" } "):H+=" {} ",x=H,H=j.pop(),!m.compositeRule&&N?m.async?H+=" throw new ValidationError(["+x+"]); ":H+=" validate.errors = ["+x+"]; return false; ":H+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",H+="} ",N&&(H+=" else { "),H;throw new Error(Z+" must be number")}},2596:function(le){le.exports=function(m,Z,U){var x,H=" ",j=m.level,R=m.dataLevel,z=m.schema[Z],Y=m.schemaPath+m.util.getProperty(Z),G=m.errSchemaPath+"/"+Z,N=!m.opts.allErrors,A="data"+(R||""),f=m.opts.$data&&z&&z.$data,R=f?(H+=" var schema"+j+" = "+m.util.getData(z.$data,R,m.dataPathArr)+"; ","schema"+j):z;if(f||typeof z=="number")return H+="if ( ",f&&(H+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "),(j=[]).push(H+=" Object.keys("+A+").length "+((x=Z)=="maxProperties"?">":"<")+" "+R+") { "),H="",m.createErrors!==!1?(H+=" { keyword: '"+(x||"_limitProperties")+"' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(G)+" , params: { limit: "+R+" } ",m.opts.messages!==!1&&(H=(H=(H+=" , message: 'should NOT have ")+(Z=="maxProperties"?"more":"fewer")+" than ")+(f?"' + "+R+" + '":""+z)+" properties' "),m.opts.verbose&&(H=(H+=" , schema: ")+(f?"validate.schema"+Y:""+z)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+A+" "),H+=" } "):H+=" {} ",x=H,H=j.pop(),!m.compositeRule&&N?m.async?H+=" throw new ValidationError(["+x+"]); ":H+=" validate.errors = ["+x+"]; return false; ":H+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",H+="} ",N&&(H+=" else { "),H;throw new Error(Z+" must be number")}},9486:function(le){le.exports=function(m,Z,U){var x=" ",H=m.schema[Z],j=m.schemaPath+m.util.getProperty(Z),z=m.errSchemaPath+"/"+Z,Y=!m.opts.allErrors,G=m.util.copy(m),N="",A=(G.level++,"valid"+G.level),f=G.baseId,R=!0,y=H;if(y)for(var C,d=-1,h=y.length-1;d "+r+") { ",t=G+"["+r+"]",f.schema=c,f.schemaPath=j+"["+r+"]",f.errSchemaPath=z+"/"+r,f.errorPath=m.util.getPathExpr(m.errorPath,r,m.opts.jsonPointers,!0),f.dataPathArr[d]=r,s=m.validate(f),f.baseId=l,m.util.varOccurences(s,h)<2?x+=" "+m.util.varReplace(s,h,t)+" ":x+=" var "+h+" = "+t+"; "+s+" ",x+=" } ",Y)&&(x+=" if ("+y+") { ",R+="}")}typeof i=="object"&&(m.opts.strictKeywords?typeof i=="object"&&0 "+H.length+") { for (var "+C+" = "+H.length+"; "+C+" < "+G+".length; "+C+"++) { ",f.errorPath=m.util.getPathExpr(m.errorPath,C,m.opts.jsonPointers,!0),t=G+"["+C+"]",f.dataPathArr[d]=C,s=m.validate(f),f.baseId=l,m.util.varOccurences(s,h)<2?x+=" "+m.util.varReplace(s,h,t)+" ":x+=" var "+h+" = "+t+"; "+s+" ",Y&&(x+=" if (!"+y+") break; "),x+=" } } ",Y)&&(x+=" if ("+y+") { ",R+="}")}else(m.opts.strictKeywords?typeof H=="object"&&0 1e-"+m.opts.multipleOfPrecision+" ":x+=" division"+H+" !== parseInt(division"+H+") ",x+=" ) ",A&&(x+=" ) "),Z=[],Z.push(x+=" ) { "),x="",m.createErrors!==!1?(x+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(Y)+" , params: { multipleOf: "+f+" } ",m.opts.messages!==!1&&(x=x+" , message: 'should be multiple of "+(A?"' + "+f:f+"'")),m.opts.verbose&&(x=(x+=" , schema: ")+(A?"validate.schema"+z:""+j)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+N+" "),x+=" } "):x+=" {} ",H=x,x=Z.pop(),!m.compositeRule&&G?m.async?x+=" throw new ValidationError(["+H+"]); ":x+=" validate.errors = ["+H+"]; return false; ":x+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",x+="} ",G&&(x+=" else { "),x}},7946:function(le){le.exports=function(m,G,U){var x,H,j=" ",f=m.level,A=m.dataLevel,z=m.schema[G],Y=m.schemaPath+m.util.getProperty(G),G=m.errSchemaPath+"/"+G,N=!m.opts.allErrors,A="data"+(A||""),f="errs__"+f,R=m.util.copy(m),y=(R.level++,"valid"+R.level);return(m.opts.strictKeywords?typeof z=="object"&&0=m.opts.loopRequired,i=m.opts.ownProperties;if(G){if(x+=" var missing"+H+"; ",j){f||(x+=" var "+R+" = validate.schema"+z+"; ");var a="' + "+(p="schema"+H+"["+(t="i"+H)+"]")+" + '";m.opts._errorDataPathProperty&&(m.errorPath=m.util.getPathExpr(o,p,m.opts.jsonPointers)),x+=" var "+A+" = true; ",f&&(x+=" if (schema"+H+" === undefined) "+A+" = true; else if (!Array.isArray(schema"+H+")) "+A+" = false; else {"),x+=" for (var "+t+" = 0; "+t+" < "+R+".length; "+t+"++) { "+A+" = "+N+"["+R+"["+t+"]] !== undefined ",i&&(x+=" && Object.prototype.hasOwnProperty.call("+N+", "+R+"["+t+"]) "),x+="; if (!"+A+") break; } ",f&&(x+=" } "),(c=c||[]).push(x+=" if (!"+A+") { "),x="",m.createErrors!==!1?(x+=" { keyword: 'required' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(Y)+" , params: { missingProperty: '"+a+"' } ",m.opts.messages!==!1&&(x+=" , message: '",m.opts._errorDataPathProperty?x+="is a required property":x+="should have required property \\'"+a+"\\'",x+="' "),m.opts.verbose&&(x+=" , schema: validate.schema"+z+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+N+" "),x+=" } "):x+=" {} ";var r=x,x=c.pop()}else{x+=" if ( ";var e=y;if(e)for(var t=-1,s=e.length-1;t 1) { ",j=m.schema.items&&m.schema.items.type,y=Array.isArray(j),!j||j=="object"||j=="array"||y&&(0<=j.indexOf("object")||0<=j.indexOf("array"))?H+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+A+"[i], "+A+"[j])) { "+f+" = false; break outer; } } } ":(H=(H+=" var itemIndices = {}, item; for (;i--;) { var item = "+A+"[i]; ")+" if ("+m.util["checkDataType"+(y?"s":"")](j,"item",m.opts.strictNumbers,!0)+") continue; ",y&&(H+=` if (typeof item == 'string') item = '"' + item; `),H+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),H+=" } ",R&&(H+=" } "),(x=x||[]).push(H+=" if (!"+f+") { "),H="",m.createErrors!==!1?(H+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(G)+" , params: { i: i, j: j } ",m.opts.messages!==!1&&(H+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),m.opts.verbose&&(H=(H+=" , schema: ")+(R?"validate.schema"+Y:""+z)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+A+" "),H+=" } "):H+=" {} ",j=H,H=x.pop(),!m.compositeRule&&N?m.async?H+=" throw new ValidationError(["+j+"]); ":H+=" validate.errors = ["+j+"]; return false; ":H+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",H+=" } ",N&&(H+=" else { ")):N&&(H+=" if (true) { "),H}},1869:function(le){le.exports=function(m,Z,U){var x="",H=m.schema.$async===!0,j=m.util.schemaHasRulesExcept(m.schema,m.RULES.all,"$ref"),z=m.self._getId(m.schema);if(m.opts.strictKeywords){var Y=m.util.schemaUnknownRules(m.schema,m.RULES.keywords);if(Y){if(Y="unknown keyword: "+Y,m.opts.strictKeywords!=="log")throw new Error(Y);m.logger.warn(Y)}}if(m.isTop&&(x+=" var validate = ",H&&(m.async=!0,x+="async "),x+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",z)&&(m.opts.sourceCode||m.opts.processCode)&&(x+=" /*# sourceURL="+z+" */ "),typeof m.schema=="boolean"||!j&&!m.schema.$ref)N=m.level,A=m.dataLevel,B=m.schema[Z="false schema"],a=m.schemaPath+m.util.getProperty(Z),r=m.errSchemaPath+"/"+Z,C=!m.opts.allErrors,f="data"+(A||""),y="valid"+N,m.schema===!1?(m.isTop?C=!0:x+=" var "+y+" = false; ",(X=X||[]).push(x),x="",m.createErrors!==!1?(x+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(r)+" , params: {} ",m.opts.messages!==!1&&(x+=" , message: 'boolean schema is false' "),m.opts.verbose&&(x+=" , schema: false , parentSchema: validate.schema"+m.schemaPath+" , data: "+f+" "),x+=" } "):x+=" {} ",b=x,x=X.pop(),!m.compositeRule&&C?m.async?x+=" throw new ValidationError(["+b+"]); ":x+=" validate.errors = ["+b+"]; return false; ":x+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):m.isTop?x+=H?" return data; ":" validate.errors = null; return true; ":x+=" var "+y+" = true; ",m.isTop&&(x+=" }; return validate; ");else{if(m.isTop){var G=m.isTop,N=m.level=0,A=m.dataLevel=0,f="data";if(m.rootId=m.resolve.fullPath(m.self._getId(m.root.schema)),m.baseId=m.baseId||m.rootId,delete m.isTop,m.dataPathArr=[""],m.schema.default!==void 0&&m.opts.useDefaults&&m.opts.strictDefaults){var R="default is ignored in the schema root";if(m.opts.strictDefaults!=="log")throw new Error(R);m.logger.warn(R)}x=(x+=" var vErrors = null; ")+" var errors = 0; if (rootData === undefined) rootData = data; "}else{if(N=m.level,f="data"+((A=m.dataLevel)||""),z&&(m.baseId=m.resolve.url(m.baseId,z)),H&&!m.async)throw new Error("async schema in sync schema");x+=" var errs_"+N+" = errors;"}var y="valid"+N,C=!m.opts.allErrors,d="",h="",l=m.schema.type,n=Array.isArray(l);if(l&&m.opts.nullable&&m.schema.nullable===!0&&(n?l.indexOf("null")==-1&&(l=l.concat("null")):l!="null"&&(l=[l,"null"],n=!0)),n&&l.length==1&&(l=l[0],n=!1),m.schema.$ref&&j){if(m.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+m.errSchemaPath+'" (see option extendRefs)');m.opts.extendRefs!==!0&&(j=!1,m.logger.warn('$ref: keywords ignored in schema at path "'+m.errSchemaPath+'"'))}if(m.schema.$comment&&m.opts.$comment&&(x+=" "+m.RULES.all.$comment.code(m,"$comment")),l){m.opts.coerceTypes&&(o=m.util.coerceToTypes(m.opts.coerceTypes,l));var o,i=m.RULES.types[l];if(o||n||i===!0||i&&!F(i)){var a=m.schemaPath+".type",r=m.errSchemaPath+"/type",a=m.schemaPath+".type",r=m.errSchemaPath+"/type";if(x+=" if ("+m.util[n?"checkDataTypes":"checkDataType"](l,f,m.opts.strictNumbers,!0)+") { ",o){var e="dataType"+N,t="coerced"+N,s=(x+=" var "+e+" = typeof "+f+"; var "+t+" = undefined; ",m.opts.coerceTypes=="array"&&(x+=" if ("+e+" == 'object' && Array.isArray("+f+") && "+f+".length == 1) { "+f+" = "+f+"[0]; "+e+" = typeof "+f+"; if ("+m.util.checkDataType(m.schema.type,f,m.opts.strictNumbers)+") "+t+" = "+f+"; } "),x+=" if ("+t+" !== undefined) ; ",o);if(s)for(var c,p=-1,g=s.length-1;p",9:"Array"},G="UnquotedIdentifier",N="QuotedIdentifier",A="Rbracket",f="Rparen",R="Comma",y="Colon",C="Rbrace",d="Number",h="Current",l="Expref",n="Pipe",o="Flatten",i="Star",a="Filter",r="Lbrace",e="Lbracket",t="Lparen",s="Literal",c={".":"Dot","*":i,",":R,":":y,"{":r,"}":C,"]":A,"(":t,")":f,"@":h},p={"<":!0,">":!0,"=":!0,"!":!0},g={" ":!0," ":!0,"\n":!0};function b(k){return"0"<=k&&k<="9"||k==="-"}function w(){}w.prototype={tokenize:function(k){var u,_,v=[];for(this._current=0;this._current"?k[this._current]==="="?(this._current++,{type:"GTE",value:">=",start:u}):{type:"GT",value:">",start:u}:_==="="&&k[this._current]==="="?(this._current++,{type:"EQ",value:"==",start:u}):void 0},_consumeLiteral:function(k){this._current++;for(var u=this._current,_=k.length;k[this._current]!=="`"&&this._current<_;){var v=this._current;k[v]!=="\\"||k[v+1]!=="\\"&&k[v+1]!=="`"?v++:v+=2,this._current=v}return u=(u=z(k.slice(u,this._current))).replace("\\`","`"),u=this._looksLikeJSON(u)?JSON.parse(u):JSON.parse('"'+u+'"'),this._current++,u},_looksLikeJSON:function(k){if(k==="")return!1;if(0<='[{"'.indexOf(k[0])||0<=["true","false","null"].indexOf(k))return!0;if(!(0<="-0123456789".indexOf(k[0])))return!1;try{return JSON.parse(k),!0}catch{return!1}}};var E={};function W(){}function B(k){this.runtime=k}function O(k){this._interpreter=k,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[0]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[0]}]},contains:{_func:this._functionContains,_signature:[{types:[2,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[2]},{types:[2]}]},floor:{_func:this._functionFloor,_signature:[{types:[0]}]},length:{_func:this._functionLength,_signature:[{types:[2,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[2]},{types:[2]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[2]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[2,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}E.EOF=0,E[G]=0,E[N]=0,E[A]=0,E[f]=0,E[R]=0,E[C]=0,E[d]=0,E[h]=0,E[l]=0,E.Pipe=1,E.Or=2,E.And=3,E.EQ=5,E.GT=5,E.LT=5,E.GTE=5,E.LTE=5,E.NE=5,E[o]=9,E.Star=20,E[a]=21,E.Dot=40,E.Not=45,E[r]=50,E[e]=55,E[t]=60,W.prototype={parse:function(_){this._loadTokens(_),this.index=0;var u,_=this.expression(0);if(this._lookahead(0)!=="EOF")throw u=this._lookaheadToken(0),(u=new Error("Unexpected token type: "+u.type+", value: "+u.value)).name="ParserError",u;return _},_loadTokens:function(k){var u=new w().tokenize(k);u.push({type:"EOF",value:"",start:k.length}),this.tokens=u},expression:function(k){for(var u=this._lookaheadToken(0),_=(this._advance(),this.nud(u)),v=this._lookahead(0);kNumber.MAX_SAFE_INTEGER||X=d.length)throw new SyntaxError("Unexpected end of JSON input")}},m.stringify=function(d,h,l){if(H(d)){var n=0;switch(typeof(i=typeof l=="object"?l.space:l)){case"number":var o=101){q[0]=q[0].slice(0,-1);for(var de=q.length-1,ue=1;ue= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=C-d,p=Math.floor,g=String.fromCharCode;function b(se){throw new RangeError(s[se])}function w(se,q){for(var oe=[],de=se.length;de--;)oe[de]=q(se[de]);return oe}function E(se,q){var oe=se.split("@"),de="";oe.length>1&&(de=oe[0]+"@",se=oe[1]),se=se.replace(t,".");var ue=se.split("."),Ee=w(ue,q).join(".");return de+Ee}function W(se){for(var q=[],oe=0,de=se.length;oe=55296&&ue<=56319&&oe>1,q+=p(q/oe);q>c*h>>1;ue+=C)q=p(q/c);return p(ue+(c+1)*q/(q+l))},u=function(q){var oe=[],de=q.length,ue=0,Ee=i,_e=o,He=q.lastIndexOf(a);He<0&&(He=0);for(var Fe=0;Fe=128&&b("not-basic"),oe.push(q.charCodeAt(Fe));for(var Ze=He>0?He+1:0;Ze=de&&b("invalid-input");var Be=B(q.charCodeAt(Ze++));(Be>=C||Be>p((y-ue)/Oe))&&b("overflow"),ue+=Be*Oe;var De=je<=_e?d:je>=_e+h?h:je-_e;if(Bep(y/ze)&&b("overflow"),Oe*=ze}var Ke=oe.length+1;_e=k(ue-Me,Ke,Me==0),p(ue/Ke)>y-Ee&&b("overflow"),Ee+=p(ue/Ke),ue%=Ke,oe.splice(ue++,0,Ee)}return String.fromCodePoint.apply(String,oe)},_=function(q){var oe=[];q=W(q);var de=q.length,ue=i,Ee=0,_e=o,He=!0,Fe=!1,Ze=void 0;try{for(var Me=q[Symbol.iterator](),Oe;!(He=(Oe=Me.next()).done);He=!0){var je=Oe.value;je<128&&oe.push(g(je))}}catch(pt){Fe=!0,Ze=pt}finally{try{!He&&Me.return&&Me.return()}finally{if(Fe)throw Ze}}var Be=oe.length,De=Be;for(Be&&oe.push(a);De=ue&&atp((y-Ee)/Qe)&&b("overflow"),Ee+=(ze-ue)*Qe,ue=ze;var tt=!0,lt=!1,nt=void 0;try{for(var gt=q[Symbol.iterator](),It;!(tt=(It=gt.next()).done);tt=!0){var bt=It.value;if(bty&&b("overflow"),bt==ue){for(var mt=Ee,ft=C;;ft+=C){var Ct=ft<=_e?d:ft>=_e+h?h:ft-_e;if(mt>6|192).toString(16).toUpperCase()+"%"+(q&63|128).toString(16).toUpperCase():oe="%"+(q>>12|224).toString(16).toUpperCase()+"%"+(q>>6&63|128).toString(16).toUpperCase()+"%"+(q&63|128).toString(16).toUpperCase(),oe}function M(se){for(var q="",oe=0,de=se.length;oe=194&&ue<224){if(de-oe>=6){var Ee=parseInt(se.substr(oe+4,2),16);q+=String.fromCharCode((ue&31)<<6|Ee&63)}else q+=se.substr(oe,6);oe+=6}else if(ue>=224){if(de-oe>=9){var _e=parseInt(se.substr(oe+4,2),16),He=parseInt(se.substr(oe+7,2),16);q+=String.fromCharCode((ue&15)<<12|(_e&63)<<6|He&63)}else q+=se.substr(oe,9);oe+=9}else q+=se.substr(oe,3),oe+=3}return q}function X(se,q){function oe(de){var ue=M(de);return ue.match(q.UNRESERVED)?ue:de}return se.scheme&&(se.scheme=String(se.scheme).replace(q.PCT_ENCODED,oe).toLowerCase().replace(q.NOT_SCHEME,"")),se.userinfo!==void 0&&(se.userinfo=String(se.userinfo).replace(q.PCT_ENCODED,oe).replace(q.NOT_USERINFO,P).replace(q.PCT_ENCODED,j)),se.host!==void 0&&(se.host=String(se.host).replace(q.PCT_ENCODED,oe).toLowerCase().replace(q.NOT_HOST,P).replace(q.PCT_ENCODED,j)),se.path!==void 0&&(se.path=String(se.path).replace(q.PCT_ENCODED,oe).replace(se.scheme?q.NOT_PATH:q.NOT_PATH_NOSCHEME,P).replace(q.PCT_ENCODED,j)),se.query!==void 0&&(se.query=String(se.query).replace(q.PCT_ENCODED,oe).replace(q.NOT_QUERY,P).replace(q.PCT_ENCODED,j)),se.fragment!==void 0&&(se.fragment=String(se.fragment).replace(q.PCT_ENCODED,oe).replace(q.NOT_FRAGMENT,P).replace(q.PCT_ENCODED,j)),se}function Q(se){return se.replace(/^0*(.*)/,"$1")||"0"}function K(se,q){var oe=se.match(q.IPV4ADDRESS)||[],de=f(oe,2),ue=de[1];return ue?ue.split(".").map(Q).join("."):se}function ne(se,q){var oe=se.match(q.IPV6ADDRESS)||[],de=f(oe,3),ue=de[1],Ee=de[2];if(ue){for(var _e=ue.toLowerCase().split("::").reverse(),He=f(_e,2),Fe=He[0],Ze=He[1],Me=Ze?Ze.split(":").map(Q):[],Oe=Fe.split(":").map(Q),je=q.IPV4ADDRESS.test(Oe[Oe.length-1]),Be=je?7:8,De=Oe.length-Be,ze=Array(Be),Ke=0;Ke1){var ut=ze.slice(0,qe.index),at=ze.slice(qe.index+qe.length);et=ut.join(":")+"::"+at.join(":")}else et=ze.join(":");return Ee&&(et+="%"+Ee),et}else return se}var T=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,F="".match(/(){0}/)[1]===void 0;function V(se){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe={},de=q.iri!==!1?A:N;q.reference==="suffix"&&(se=(q.scheme?q.scheme+":":"")+"//"+se);var ue=se.match(T);if(ue){F?(oe.scheme=ue[1],oe.userinfo=ue[3],oe.host=ue[4],oe.port=parseInt(ue[5],10),oe.path=ue[6]||"",oe.query=ue[7],oe.fragment=ue[8],isNaN(oe.port)&&(oe.port=ue[5])):(oe.scheme=ue[1]||void 0,oe.userinfo=se.indexOf("@")!==-1?ue[3]:void 0,oe.host=se.indexOf("//")!==-1?ue[4]:void 0,oe.port=parseInt(ue[5],10),oe.path=ue[6]||"",oe.query=se.indexOf("?")!==-1?ue[7]:void 0,oe.fragment=se.indexOf("#")!==-1?ue[8]:void 0,isNaN(oe.port)&&(oe.port=se.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ue[4]:void 0)),oe.host&&(oe.host=ne(K(oe.host,de),de)),oe.scheme===void 0&&oe.userinfo===void 0&&oe.host===void 0&&oe.port===void 0&&!oe.path&&oe.query===void 0?oe.reference="same-document":oe.scheme===void 0?oe.reference="relative":oe.fragment===void 0?oe.reference="absolute":oe.reference="uri",q.reference&&q.reference!=="suffix"&&q.reference!==oe.reference&&(oe.error=oe.error||"URI is not a "+q.reference+" reference.");var Ee=$[(q.scheme||oe.scheme||"").toLowerCase()];if(!q.unicodeSupport&&(!Ee||!Ee.unicodeSupport)){if(oe.host&&(q.domainHost||Ee&&Ee.domainHost))try{oe.host=v.toASCII(oe.host.replace(de.PCT_ENCODED,M).toLowerCase())}catch(_e){oe.error=oe.error||"Host's domain name can not be converted to ASCII via punycode: "+_e}X(oe,N)}else X(oe,de);Ee&&Ee.parse&&Ee.parse(oe,q)}else oe.error=oe.error||"URI can not be parsed.";return oe}function I(se,q){var oe=q.iri!==!1?A:N,de=[];return se.userinfo!==void 0&&(de.push(se.userinfo),de.push("@")),se.host!==void 0&&de.push(ne(K(String(se.host),oe),oe).replace(oe.IPV6ADDRESS,function(ue,Ee,_e){return"["+Ee+(_e?"%25"+_e:"")+"]"})),(typeof se.port=="number"||typeof se.port=="string")&&(de.push(":"),de.push(String(se.port))),de.length?de.join(""):void 0}var S=/^\.\.?\//,L=/^\/\.(\/|$)/,D=/^\/\.\.(\/|$)/,J=/^\/?(?:.|\n)*?(?=\/|$)/;function re(se){for(var q=[];se.length;)if(se.match(S))se=se.replace(S,"");else if(se.match(L))se=se.replace(L,"/");else if(se.match(D))se=se.replace(D,"/"),q.pop();else if(se==="."||se==="..")se="";else{var oe=se.match(J);if(oe){var de=oe[0];se=se.slice(de.length),q.push(de)}else throw new Error("Unexpected dot segment condition")}return q.join("")}function pe(se){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=q.iri?A:N,de=[],ue=$[(q.scheme||se.scheme||"").toLowerCase()];if(ue&&ue.serialize&&ue.serialize(se,q),se.host&&!oe.IPV6ADDRESS.test(se.host)){if(q.domainHost||ue&&ue.domainHost)try{se.host=q.iri?v.toUnicode(se.host):v.toASCII(se.host.replace(oe.PCT_ENCODED,M).toLowerCase())}catch(He){se.error=se.error||"Host's domain name can not be converted to "+(q.iri?"Unicode":"ASCII")+" via punycode: "+He}}X(se,oe),q.reference!=="suffix"&&se.scheme&&(de.push(se.scheme),de.push(":"));var Ee=I(se,q);if(Ee!==void 0&&(q.reference!=="suffix"&&de.push("//"),de.push(Ee),se.path&&se.path.charAt(0)!=="/"&&de.push("/")),se.path!==void 0){var _e=se.path;!q.absolutePath&&(!ue||!ue.absolutePath)&&(_e=re(_e)),Ee===void 0&&(_e=_e.replace(/^\/\//,"/%2F")),de.push(_e)}return se.query!==void 0&&(de.push("?"),de.push(se.query)),se.fragment!==void 0&&(de.push("#"),de.push(se.fragment)),de.join("")}function me(se,q){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},de=arguments[3],ue={};return de||(se=V(pe(se,oe),oe),q=V(pe(q,oe),oe)),oe=oe||{},!oe.tolerant&&q.scheme?(ue.scheme=q.scheme,ue.userinfo=q.userinfo,ue.host=q.host,ue.port=q.port,ue.path=re(q.path||""),ue.query=q.query):(q.userinfo!==void 0||q.host!==void 0||q.port!==void 0?(ue.userinfo=q.userinfo,ue.host=q.host,ue.port=q.port,ue.path=re(q.path||""),ue.query=q.query):(q.path?(q.path.charAt(0)==="/"?ue.path=re(q.path):((se.userinfo!==void 0||se.host!==void 0||se.port!==void 0)&&!se.path?ue.path="/"+q.path:se.path?ue.path=se.path.slice(0,se.path.lastIndexOf("/")+1)+q.path:ue.path=q.path,ue.path=re(ue.path)),ue.query=q.query):(ue.path=se.path,q.query!==void 0?ue.query=q.query:ue.query=se.query),ue.userinfo=se.userinfo,ue.host=se.host,ue.port=se.port),ue.scheme=se.scheme),ue.fragment=q.fragment,ue}function ye(se,q,oe){var de=Y({scheme:"null"},oe);return pe(me(V(se,de),V(q,de),de,!0),de)}function xe(se,q){return typeof se=="string"?se=pe(V(se,q),q):H(se)==="object"&&(se=V(pe(se,q),q)),se}function be(se,q,oe){return typeof se=="string"?se=pe(V(se,oe),oe):H(se)==="object"&&(se=pe(se,oe)),typeof q=="string"?q=pe(V(q,oe),oe):H(q)==="object"&&(q=pe(q,oe)),se===q}function Ae(se,q){return se&&se.toString().replace(!q||!q.iri?N.ESCAPE:A.ESCAPE,P)}function we(se,q){return se&&se.toString().replace(!q||!q.iri?N.PCT_ENCODED:A.PCT_ENCODED,M)}var Re={scheme:"http",domainHost:!0,parse:function(q,oe){return q.host||(q.error=q.error||"HTTP URIs must have a host."),q},serialize:function(q,oe){var de=String(q.scheme).toLowerCase()==="https";return(q.port===(de?443:80)||q.port==="")&&(q.port=void 0),q.path||(q.path="/"),q}},We={scheme:"https",domainHost:Re.domainHost,parse:Re.parse,serialize:Re.serialize};function Se(se){return typeof se.secure=="boolean"?se.secure:String(se.scheme).toLowerCase()==="wss"}var ve={scheme:"ws",domainHost:!0,parse:function(q,oe){var de=q;return de.secure=Se(de),de.resourceName=(de.path||"/")+(de.query?"?"+de.query:""),de.path=void 0,de.query=void 0,de},serialize:function(q,oe){if((q.port===(Se(q)?443:80)||q.port==="")&&(q.port=void 0),typeof q.secure=="boolean"&&(q.scheme=q.secure?"wss":"ws",q.secure=void 0),q.resourceName){var de=q.resourceName.split("?"),ue=f(de,2),Ee=ue[0],_e=ue[1];q.path=Ee&&Ee!=="/"?Ee:void 0,q.query=_e,q.resourceName=void 0}return q.fragment=void 0,q}},Le={scheme:"wss",domainHost:ve.domainHost,parse:ve.parse,serialize:ve.serialize},Pe={},ge="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",te="[0-9A-Fa-f]",ie=x(x("%[EFef]"+te+"%"+te+te+"%"+te+te)+"|"+x("%[89A-Fa-f]"+te+"%"+te+te)+"|"+x("%"+te+te)),ce="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",fe=U("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Ie="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",$e=new RegExp(ge,"g"),ee=new RegExp(ie,"g"),ae=new RegExp(U("[^]",ce,"[\\.]",'[\\"]',fe),"g"),he=new RegExp(U("[^]",ge,Ie),"g"),Ce=he;function Te(se){var q=M(se);return q.match($e)?q:se}var ke={scheme:"mailto",parse:function(q,oe){var de=q,ue=de.to=de.path?de.path.split(","):[];if(de.path=void 0,de.query){for(var Ee=!1,_e={},He=de.query.split("&"),Fe=0,Ze=He.length;Fe1&&arguments[1]!==void 0?arguments[1]:1,a=i>0?o.toFixed(i).replace(/0+$/,"").replace(/\.$/,""):o.toString();return a||"0"}var j=function(){function o(i,a,r,e){m(this,o);var t=this;function s(p){if(p.startsWith("hsl")){var g=p.match(/([\-\d\.e]+)/g).map(Number),b=U(g,4),w=b[0],E=b[1],W=b[2],B=b[3];B===void 0&&(B=1),w/=360,E/=100,W/=100,t.hsla=[w,E,W,B]}else if(p.startsWith("rgb")){var O=p.match(/([\-\d\.e]+)/g).map(Number),k=U(O,4),u=k[0],_=k[1],v=k[2],$=k[3];$===void 0&&($=1),t.rgba=[u,_,v,$]}else p.startsWith("#")?t.rgba=o.hexToRgb(p):t.rgba=o.nameToRgb(p)||o.hexToRgb(p)}if(i!==void 0)if(Array.isArray(i))this.rgba=i;else if(r===void 0){var c=i&&""+i;c&&s(c.toLowerCase())}else this.rgba=[i,a,r,e===void 0?1:e]}return Z(o,[{key:"printRGB",value:function(a){var r=a?this.rgba:this.rgba.slice(0,3),e=r.map(function(t,s){return H(t,s===3?3:0)});return a?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(a){var r=[360,100,100,1],e=["","%","%",""],t=a?this.hsla:this.hsla.slice(0,3),s=t.map(function(c,p){return H(c*r[p],p===3?3:1)+e[p]});return a?"hsla("+s+")":"hsl("+s+")"}},{key:"printHex",value:function(a){var r=this.hex;return a?r:r.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=o.hslToRgb(this._hsla)},set:function(a){a.length===3&&(a[3]=1),this._rgba=a,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=o.rgbToHsl(this._rgba)},set:function(a){a.length===3&&(a[3]=1),this._hsla=a,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var a=this.rgba,r=a.map(function(e,t){return t<3?e.toString(16):Math.round(e*255).toString(16)});return"#"+r.map(function(e){return e.padStart(2,"0")}).join("")},set:function(a){this.rgba=o.hexToRgb(a)}}],[{key:"hexToRgb",value:function(a){var r=(a.startsWith("#")?a.slice(1):a).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!r.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+a);var e=r.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(t){return parseInt(t,16)});return e[3]=e[3]/255,e}},{key:"nameToRgb",value:function(a){var r=a.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),e=x[r];return e===void 0?e:o.hexToRgb(e.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(a){var r=U(a,4),e=r[0],t=r[1],s=r[2],c=r[3];e/=255,t/=255,s/=255;var p=Math.max(e,t,s),g=Math.min(e,t,s),b=void 0,w=void 0,E=(p+g)/2;if(p===g)b=w=0;else{var W=p-g;switch(w=E>.5?W/(2-p-g):W/(p+g),p){case e:b=(t-s)/W+(t1&&(_-=1),_<.16666666666666666?k+(u-k)*6*_:_<.5?u:_<.6666666666666666?k+(u-k)*(.6666666666666666-_)*6:k},E=s<.5?s*(1+t):s+t-s*t,W=2*s-E;p=w(W,E,e+1/3),g=w(W,E,e),b=w(W,E,e-1/3)}var B=[p*255,g*255,b*255].map(Math.round);return B[3]=c,B}}]),o}(),z=function(){function o(){m(this,o),this._events=[]}return Z(o,[{key:"add",value:function(a,r,e){a.addEventListener(r,e,!1),this._events.push({target:a,type:r,handler:e})}},{key:"remove",value:function(a,r,e){this._events=this._events.filter(function(t){var s=!0;return a&&a!==t.target&&(s=!1),r&&r!==t.type&&(s=!1),e&&e!==t.handler&&(s=!1),s&&o._doRemove(t.target,t.type,t.handler),!s})}},{key:"destroy",value:function(){this._events.forEach(function(a){return o._doRemove(a.target,a.type,a.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(a,r,e){a.removeEventListener(r,e,!1)}}]),o}();function Y(o){var i=document.createElement("div");return i.innerHTML=o,i.firstElementChild}function G(o,i,a){var r=!1;function e(p,g,b){return Math.max(g,Math.min(p,b))}function t(p,g,b){if(b&&(r=!0),!!r){p.preventDefault();var w=i.getBoundingClientRect(),E=w.width,W=w.height,B=g.clientX,O=g.clientY,k=e(B-w.left,0,E),u=e(O-w.top,0,W);a(k/E,u/W)}}function s(p,g){var b=p.buttons===void 0?p.which:p.buttons;b===1?t(p,p,g):r=!1}function c(p,g){p.touches.length===1?t(p,p.touches[0],g):r=!1}o.add(i,"mousedown",function(p){s(p,!0)}),o.add(i,"touchstart",function(p){c(p,!0)}),o.add(window,"mousemove",s),o.add(i,"touchmove",c),o.add(window,"mouseup",function(p){r=!1}),o.add(i,"touchend",function(p){r=!1}),o.add(i,"touchcancel",function(p){r=!1})}var N=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
+ linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,A=360,f="keydown",R="mousedown",y="focusin";function C(o,i){return(i||document).querySelector(o)}function d(o){o.preventDefault(),o.stopPropagation()}function h(o,i,a,r,e){o.add(i,f,function(t){a.indexOf(t.key)>=0&&(e&&d(t),r(t))})}var l=function(){function o(i){m(this,o),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new z,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(i)}return Z(o,[{key:"setOptions",value:function(a){var r=this;if(!a)return;var e=this.settings;function t(g,b,w){for(var E in g)w&&w.indexOf(E)>=0||(b[E]=g[E])}if(a instanceof HTMLElement)e.parent=a;else{e.parent&&a.parent&&e.parent!==a.parent&&(this._events.remove(e.parent),this._popupInited=!1),t(a,e),a.onChange&&(this.onChange=a.onChange),a.onDone&&(this.onDone=a.onDone),a.onOpen&&(this.onOpen=a.onOpen),a.onClose&&(this.onClose=a.onClose);var s=a.color||a.colour;s&&this._setColor(s)}var c=e.parent;if(c&&e.popup&&!this._popupInited){var p=function(b){return r.openHandler(b)};this._events.add(c,"click",p),h(this._events,c,[" ","Spacebar","Enter"],p),this._popupInited=!0}else a.parent&&!e.popup&&this.show()}},{key:"openHandler",value:function(a){if(this.show()){a&&a.preventDefault(),this.settings.parent.style.pointerEvents="none";var r=a&&a.type===f?this._domEdit:this.domElement;setTimeout(function(){return r.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(a){var r=a&&a.type,e=!1;if(!a)e=!0;else if(r===R||r===y){var t=(this.__containedEvent||0)+100;a.timeStamp>t&&(e=!0)}else d(a),e=!0;e&&this.hide()&&(this.settings.parent.style.pointerEvents="",r!==R&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(a,r){this.closeHandler(),this.setOptions(a),r&&this.openHandler()}},{key:"setColor",value:function(a,r){this._setColor(a,{silent:r})}},{key:"_setColor",value:function(a,r){if(typeof a=="string"&&(a=a.trim()),!!a){r=r||{};var e=void 0;try{e=new j(a)}catch(s){if(r.failSilently)return;throw s}if(!this.settings.alpha){var t=e.hsla;t[3]=1,e.hsla=t}this.colour=this.color=e,this._setHSLA(null,null,null,null,r)}}},{key:"setColour",value:function(a,r){this.setColor(a,r)}},{key:"show",value:function(){var a=this.settings.parent;if(!a)return!1;if(this.domElement){var r=this._toggleDOM(!0);return this._setPosition(),r}var e=this.settings.template||'',t=Y(e);return this.domElement=t,this._domH=C(".picker_hue",t),this._domSL=C(".picker_sl",t),this._domA=C(".picker_alpha",t),this._domEdit=C(".picker_editor input",t),this._domSample=C(".picker_sample",t),this._domOkay=C(".picker_done button",t),this._domCancel=C(".picker_cancel button",t),t.classList.add("layout_"+this.settings.layout),this.settings.alpha||t.classList.add("no_alpha"),this.settings.editor||t.classList.add("no_editor"),this.settings.cancelButton||t.classList.add("no_cancel"),this._ifPopup(function(){return t.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var a=this,r=this,e=this.domElement,t=this._events;function s(g,b,w){t.add(g,b,w)}s(e,"click",function(g){return g.preventDefault()}),G(t,this._domH,function(g,b){return r._setHSLA(g)}),G(t,this._domSL,function(g,b){return r._setHSLA(null,g,1-b)}),this.settings.alpha&&G(t,this._domA,function(g,b){return r._setHSLA(null,null,null,1-b)});var c=this._domEdit;s(c,"input",function(g){r._setColor(this.value,{fromEditor:!0,failSilently:!0})}),s(c,"focus",function(g){var b=this;b.selectionStart===b.selectionEnd&&b.select()}),this._ifPopup(function(){var g=function(E){return a.closeHandler(E)};s(window,R,g),s(window,y,g),h(t,e,["Esc","Escape"],g);var b=function(E){a.__containedEvent=E.timeStamp};s(e,R,b),s(e,y,b),s(a._domCancel,"click",g)});var p=function(b){a._ifPopup(function(){return a.closeHandler(b)}),a.onDone&&a.onDone(a.colour)};s(this._domOkay,"click",p),h(t,e,["Enter"],p)}},{key:"_setPosition",value:function(){var a=this.settings.parent,r=this.domElement;a!==r.parentNode&&a.appendChild(r),this._ifPopup(function(e){getComputedStyle(a).position==="static"&&(a.style.position="relative");var t=e===!0?"popup_right":"popup_"+e;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(s){s===t?r.classList.add(s):r.classList.remove(s)}),r.classList.add(t)})}},{key:"_setHSLA",value:function(a,r,e,t,s){s=s||{};var c=this.colour,p=c.hsla;[a,r,e,t].forEach(function(g,b){(g||g===0)&&(p[b]=g)}),c.hsla=p,this._updateUI(s),this.onChange&&!s.silent&&this.onChange(c)}},{key:"_updateUI",value:function(a){if(!this.domElement)return;a=a||{};var r=this.colour,e=r.hsla,t="hsl("+e[0]*A+", 100%, 50%)",s=r.hslString,c=r.hslaString,p=this._domH,g=this._domSL,b=this._domA,w=C(".picker_selector",p),E=C(".picker_selector",g),W=C(".picker_selector",b);function B(M,X,Q){X.style.left=Q*100+"%"}function O(M,X,Q){X.style.top=Q*100+"%"}B(p,w,e[0]),this._domSL.style.backgroundColor=this._domH.style.color=t,B(g,E,e[1]),O(g,E,1-e[2]),g.style.color=s,O(b,W,1-e[3]);var k=s,u=k.replace("hsl","hsla").replace(")",", 0)"),_="linear-gradient("+[k,u]+")";if(this._domA.style.background=_+", "+N,!a.fromEditor){var v=this.settings.editorFormat,$=this.settings.alpha,P=void 0;switch(v){case"rgb":P=r.printRGB($);break;case"hsl":P=r.printHSL($);break;default:P=r.printHex($)}this._domEdit.value=P}this._domSample.style.color=c}},{key:"_ifPopup",value:function(a,r){this.settings.parent&&this.settings.popup?a&&a(this.settings.popup):r&&r()}},{key:"_toggleDOM",value:function(a){var r=this.domElement;if(!r)return!1;var e=a?"":"none",t=r.style.display!==e;return t&&(r.style.display=e),t}}]),o}(),n=document.createElement("style");return n.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(n),l.StyleElement=n,l}()},1262:function(le,m,Z){function U(te){return(U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(te)}function x(te){var ie=z();return function(){var ce,fe=G(te),fe=(ce=ie?(ce=G(this).constructor,Reflect.construct(fe,arguments,ce)):fe.apply(this,arguments),this);if(ce&&(U(ce)==="object"||typeof ce=="function"))return ce;if(ce!==void 0)throw new TypeError("Derived constructors may only return object or undefined");if(fe!==void 0)return fe;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function H(te){var ie=typeof Map=="function"?new Map:void 0;return function(ce){if(ce===null||Function.toString.call(ce).indexOf("[native code]")===-1)return ce;if(typeof ce!="function")throw new TypeError("Super expression must either be null or a function");if(ie!==void 0){if(ie.has(ce))return ie.get(ce);ie.set(ce,fe)}function fe(){return j(ce,arguments,G(this).constructor)}return fe.prototype=Object.create(ce.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),Y(fe,ce)}(te)}function j(te,ie,ce){return(j=z()?Reflect.construct.bind():function(fe,Ie,$e){var ee=[null];return ee.push.apply(ee,Ie),Ie=new(Function.bind.apply(fe,ee)),$e&&Y(Ie,$e.prototype),Ie}).apply(null,arguments)}function z(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Y(te,ie){return(Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ce,fe){return ce.__proto__=fe,ce})(te,ie)}function G(te){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)})(te)}Z.d(m,{K:function(){return ge}});var N=function(te){var ie=fe;if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function");ie.prototype=Object.create(te&&te.prototype,{constructor:{value:ie,writable:!0,configurable:!0}}),Object.defineProperty(ie,"prototype",{writable:!1}),te&&Y(ie,te);var ce=x(fe);function fe(Ie,$e){if(this instanceof fe)return(Ie=ce.call(this,Ie+" at position "+$e)).position=$e,Ie;throw new TypeError("Cannot call a class as a function")}return ie=fe,Object.defineProperty(ie,"prototype",{writable:!1}),ie}(H(Error)),A=92,f=47,R=42,y=123,C=125,d=91,h=93,l=40,n=41,o=32,i=10,a=9,r=13,e=8,t=12,s=34,c=43,p=45,g=39,b=48,w=49,E=57,W=44,B=46,O=58,k=59,u=65,_=97,v=69,$=101,P=70,M=102,X=160,Q=8192,K=8202,ne=8239,T=8287,F=12288,V=8220,I=8221,S=8216,L=8217,D=96,J=180;function re(te){return b<=te&&te<=E||u<=te&&te<=P||_<=te&&te<=M}function pe(te){return b<=te&&te<=E}var me=/^[,:[\]{}()\n]$/;function ye(te){return xe.test(te)||te&&Ae(te.charCodeAt(0))}var xe=/^[[{\w-]$/;function be(te){return te===o||te===i||te===a||te===r}function Ae(te){return we(te)||We(te)}function we(te){return te===s||te===V||te===I}function Re(te){return te===s}function We(te){return te===g||te===S||te===L||te===D||te===J}function Se(te,ie,ce){return ce=2=te.length)return ce;throw new N("Unexpected character "+JSON.stringify(te[ie]),ie);function ee(){ae();var q=function(){if(te.charCodeAt(ie)!==y)return!1;ce+="{",ie++,ae();for(var oe=!0;ie=te.length)return ce+=te.slice(q,ie)+"0",1;Xe(q)}function se(){throw new N("Colon expected",ie)}}},894:function(le){le.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},7171:function(le){le.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},6273:function(le){le.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},6680:function(le){le.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},st={},Ye.amdD=function(){throw new Error("define cannot be used indirect")},Ye.n=function(le){var m=le&&le.__esModule?function(){return le.default}:function(){return le};return Ye.d(m,{a:m}),m},Ye.d=function(le,m){for(var Z in m)Ye.o(m,Z)&&!Ye.o(le,Z)&&Object.defineProperty(le,Z,{enumerable:!0,get:m[Z]})},Ye.o=function(le,m){return Object.prototype.hasOwnProperty.call(le,m)},Ye.r=function(le){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(le,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(le,"__esModule",{value:!0})},Ye.nmd=function(le){return le.paths=[],le.children||(le.children=[]),le},Ye(3161);function Ye(le){var m=st[le];return m!==void 0||(m=st[le]={id:le,loaded:!1,exports:{}},Je[le].call(m.exports,m,m.exports,Ye),m.loaded=!0),m.exports}var Je,st})})($t);var Xt=$t.exports;const _t=Lt(Xt),Yt=Nt({ControlType:"JsonEditor",nameCn:"JSON编辑",icon:"icon-json-full",rule:ct.getJsonValidate(),formConfig:Bt("JsonEditor",[{fieldName:"default",component:"JsonEditor"}]),props:{...Wt},actionType:["onChange"],setup(Ge){const dt=yt({});let Ye=null,Je=null;const st=yt(),le=yt();Mt(Ge);function m(){const Z=dt.value,U=Ge.data,x=Ge.item,H=x.data.fieldName,j={modes:["text","code","view"],mode:"code",search:!1,onChange(){U[H]=Je?.getText()}};Je=new _t(Z,j),Ge.drag?Je?.set(ct.tryParseJson(x.data.default)):Je?.set(ct.tryParseJson(U[x.data.fieldName]))}return Ht(()=>{m()}),Pt(()=>Ge.item,Z=>{if(Ge.drag)Je?.set(ct.tryParseJson(Z.data.default));else{const U=Ge.data,x=Ge.item;Je?.set(ct.tryParseJson(U[x.data.fieldName]))}}),{myDialog:le,jsoneditor:dt,JsonViewerDialogDom:st,async showCustomDialog(){const Z=le.value;Z.show(),Z.init("JSON编辑","icon-json-full"),await Gt();const U=st.value,x={modes:["text","code","view"],mode:"code",search:!1};Ye=new _t(U,x),Ye?.set(ct.tryParseJson(Je.getText()))},closeDialog(){le.value.close()},saveJson(){Je?.set(ct.tryParseJson(Ye.getText()));const Z=Ge.data,x=Ge.item.data.fieldName;Z[x]=Je?.getText(),le.value.close()}}}}),Jt={key:0,class:"item_require"},Ut=rt("span",{class:"tip iconfont icon-tishi"},null,-1),Qt={id:"jsoneditor",ref:"jsoneditor"},qt=rt("i",{class:"iconfont icon-quanping"},null,-1),en=[qt],tn={ref:"JsonViewerDialogDom",style:{height:"calc(100% - 24px)"}};function nn(Ge,dt,Ye,Je,st,le){const m=Zt,Z=Dt,U=Kt,x=jt,H=zt,j=Vt("CustomDialog");return vt(),St("div",{class:Et(["starfish-formitem",{formCover:Ge.drag,"starfish-vertical":Ge.labelalign!="top",[Ge.item.data.csslist?.join(" ")]:!!Ge.item.data.csslist}])},[rt("div",{class:Et(["label","label_"+Ge.labelalign]),style:Tt({width:Ge.labelWidth+"px"})},[rt("label",null,xt(Ge.item.data.label)+xt(Ge.suffix),1),Ge.item.data.required?(vt(),St("span",Jt,"*")):kt("",!0),Ge.item.data.tip?(vt(),Ot(m,{key:1,class:"item",effect:"dark",content:Ge.item.data.tip,placement:"top"},{default:ot(()=>[Ut]),_:1},8,["content"])):kt("",!0)],6),rt("div",{class:"control",style:Tt({marginLeft:Ge.labelalign!="top"?Ge.labelWidth+"px":""})},[rt("div",Qt,[rt("div",{class:"fullScreen",onClick:dt[0]||(dt[0]=(...z)=>Ge.showCustomDialog&&Ge.showCustomDialog(...z))},en)],512)],4),ht(j,{ref:"myDialog",width:"60%"},{default:ot(()=>[ht(Z,{style:{padding:"0"}},{default:ot(()=>[ht(H,{style:{height:"100%"}},{default:ot(()=>[ht(Z,{class:"my-pageMain"},{default:ot(()=>[rt("div",tn,null,512)]),_:1}),ht(x,{class:"my-Footer",style:{height:"60px","padding-top":"10px","text-align":"right"}},{default:ot(()=>[ht(U,{type:"primary",onClick:Ge.saveJson},{default:ot(()=>[Rt("保存")]),_:1},8,["onClick"]),ht(U,{onClick:Ge.closeDialog},{default:ot(()=>[Rt("关闭")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},512)],2)}const sn=Ft(Yt,[["render",nn]]);export{sn as default};
diff --git a/playground/static/js/index-6a8bc30c.js b/playground/static/js/index-6a8bc30c.js
new file mode 100644
index 0000000..022b0b1
--- /dev/null
+++ b/playground/static/js/index-6a8bc30c.js
@@ -0,0 +1 @@
+import{P as O,N as L,a as M,D as $,b as w,T as S,I as E}from"./vue-codemirror.esm-c4b5d553.js";class v{constructor(t,e,s,i,h,r,n,o,a,u=0,f){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=o,this.curContext=a,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new v(t,[],e,s,s,0,[],0,i?new y(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=h.dynamicPrecedence(i);if(r&&(this.score+=r),s==0){this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((e=this.p.parser.nodeSet.types[i])===null||e===void 0)&&e.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=a):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(i,o)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&r.buffer[n-4]==0&&r.buffer[n-1]>-1){if(e==s)return;if(r.buffer[n-2]>=e){r.buffer[n-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&this.buffer[r-4]!=0)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4);this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4);else{let h=t,{parser:r}=this.p;(i>this.pos||e<=r.maxNode)&&(this.pos=i,r.stateFlag(h,1)||(this.reducePos=i)),this.pushState(h,s),this.shiftContext(e,s),e<=r.maxNode&&this.buffer.push(e,s,i,4)}}apply(t,e,s,i){t&65536?this.reduce(t):this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new v(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new j(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if(!(s&65536))return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;ho&1&&n==r)||i.push(e[h],r)}e=i}let s=[];for(let i=0;i>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(!e.includes(i))return e.push(i),t.allActions(i,r=>{if(!(r&393216))if(r&65536){let n=(r>>19)-h;if(n>1){let o=r&65535,a=this.stack.length-n*3;if(a>=0&&t.getGoto(this.stack[a],o,!1)>=0)return n<<19|65536|o}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class y{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class j{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class A{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new A(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new A(this.stack,this.pos,this.index)}}function x(l,t=Uint16Array){if(typeof l!="string")return l;let e=null;for(let s=0,i=0;s=92&&r--,r>=34&&r--;let o=r-32;if(o>=46&&(o-=46,n=!0),h+=o,n)break;h*=46}e?e[i++]=h:e=new t(h)}return e}class P{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const N=new P;class G{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=N,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;for(;hs.to:h>=s.to;){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e=this.chunk2Pos&&sn.to&&(this.chunk2=this.chunk2.slice(0,n.to-s)),i=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=N,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;B(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class U{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(B(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(h||i++,r==null)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}U.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class X{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function B(l,t,e,s,i,h){let r=0,n=1<0){let d=l[p];if(o.allows(d)&&(t.token.value==-1||t.token.value==d||H(d,t.token.value,i,h))){t.acceptToken(d);break}}let u=t.next,f=0,c=l[r+2];if(t.next<0&&c>f&&l[a+c*3-3]==65535){r=l[a+c*3-1];continue t}for(;f>1,d=a+p+(p<<1),b=l[d],F=l[d+1]||65536;if(u=F)f=p+1;else{r=l[d+2],t.advance();continue t}}break}}function R(l,t,e){for(let s=t,i;(i=l[s])!=65535;s++)if(i==e)return s-t;return-1}function H(l,t,e,s){let i=R(e,s,t);return i<0||R(e,s,l)t)&&!s.type.isError)return e<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(l.length,Math.max(s.from+1,t+25));if(e<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return e<0?0:l.length}}class W{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?z(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?z(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=r,null;if(h instanceof S){if(r==t){if(r=Math.max(this.safeFrom,t)&&(this.trees.push(h),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+h.length}}}class q{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(s=>new P)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let a=0;af.end+25&&(o=Math.max(f.lookAhead,o)),f.value!=0)){let c=e;if(f.extended>-1&&(e=this.addActions(t,f.extended,f.end,e)),e=this.addActions(t,f.value,f.end,e),!u.extend&&(s=f,e>c))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),!s&&t.pos==this.stream.end&&(s=new P,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new P,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r=0&&s.p.parser.dialect.allows(n>>1)){n&1?t.extended=n>>1:t.value=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;ht.bufferLength*4?new W(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;re)s.push(n);else{if(this.advanceStack(n,s,t))continue;{i||(i=[],h=[]),i.push(n);let o=this.tokens.getMainToken(n);h.push(o.value,o.end)}}break}}if(!s.length){let r=i&&Q(i);if(r)return g&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw g&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r)return g&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r)for(s.sort((n,o)=>o.score-n.score);s.length>r;)s.pop();s.some(n=>n.reducePos>e)&&this.recovering--}else if(s.length>1){t:for(let r=0;r500&&a.buffer.length>500)if((n.score-a.score||n.buffer.length-a.buffer.length)>0)s.splice(o--,1);else{s.splice(r--,1);continue t}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let r=1;r ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,u=a?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let c=this.parser.nodeSet.types[f.type.id]==f.type?h.getGoto(t.state,f.type.id):-1;if(c>-1&&f.length&&(!a||(f.prop(w.contextHash)||0)==u))return t.useNode(f,c),g&&console.log(r+this.stackID(t)+` (via reuse of ${h.getName(f.type.id)})`),!0;if(!(f instanceof S)||f.children.length==0||f.positions[0]>0)break;let p=f.children[0];if(p instanceof S&&f.positions[0]==0)f=p;else break}}let n=h.stateSlot(t.state,4);if(n>0)return t.reduce(n),g&&console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let o=this.tokens.getActions(t);for(let a=0;ai?e.push(d):s.push(d)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return I(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r ":"";if(n.deadEnd&&(h||(h=!0,n.restart(),g&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))))continue;let f=n.split(),c=u;for(let p=0;f.forceReduce()&&p<10&&(g&&console.log(c+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,s));p++)g&&(c=this.stackID(f)+" -> ");for(let p of n.recoverByInsert(o))g&&console.log(u+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,s);this.stream.end>n.pos?(a==n.pos&&(a++,o=0),n.recoverByDelete(o,a),g&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),I(n,s)):(!i||i.scoret.topRules[n][1]),i=[];for(let n=0;n=0)h(u,o,n[a++]);else{let f=n[a+-u];for(let c=-u;c>0;c--)h(n[a++],o,f);a++}}}this.nodeSet=new L(e.map((n,o)=>M.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=$;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new J(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,o=i[h++];if(n&&s)return o;for(let a=h+(r>>1);h0}validAction(t,e){return!!this.allActions(t,s=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if(!(this.data[s+2]&1)){let i=this.data[s+1];e.some((h,r)=>r&1&&h==i)||e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(C.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(s=>{let i=t.tokenizers.find(h=>h.from==s);return i?i.to:s})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find(n=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=D(r),r})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);r>=0&&(s[r]=!0)}let i=null;for(let h=0;hs)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.scorel.external(e,s)<<1|t}return l.get}export{X as E,C as L,U as a};
diff --git a/playground/static/js/index-a082a8a7-5c4945ba.js b/playground/static/js/index-a082a8a7-5c4945ba.js
new file mode 100644
index 0000000..44e77d7
--- /dev/null
+++ b/playground/static/js/index-a082a8a7-5c4945ba.js
@@ -0,0 +1,19 @@
+import{d as q,X as U,Y as W,Z as G,R as L,i as P,c as Q,f as r,$ as X,a0 as Y,Q as Z,y as E,o as i,a as m,h as v,t as H,l as _,b,w as t,n as J,j as R,F as S,r as z,g as l,A as d,U as K,C as x,G as ee,E as ae,a1 as le,a2 as te,a3 as ue,a4 as oe,a5 as ne,a6 as se,a7 as ie,M as re,L as de,s as ce}from"./main-15081b07.js";/* empty css */import me from"./starfish-form-fd63a285-a650e45e.js";import{c as fe}from"./vue-codemirror.esm-c4b5d553.js";const pe=q({ControlType:"Rule",rule:U.getJsonValidate(),props:{...W},components:{Delete:G,Dynamicform:me,Codemirror:fe},setup(e){const{proxy:f}=L(),{formStore:w}=P("control")||{},V=Q(()=>w?.get("globalDatas")),A=r([]),B=r(X),C=r({}),p=r({}),y=r({}),u=r({}),D=r(Y.ruleJson),k=r(!0),h=r(),g=r(),F=r();return{IsShow:k,rules:A,ruleList:B,globalDatas:V,funcItem:C,funcValue:p,highItem:y,formValue:u,ruleJson:D,codeMyDialog:h,formRuleDialog:g,formdragger:F,handleDropdown(a){let o="";a=="enum"?o="自定义枚举":a=="func"?o="自定义函数规则":a=="high"&&(o="高级模式"),Array.isArray(e.data[e.item.data.fieldName])?e.data[e.item.data.fieldName].push({type:a,title:o,value:""}):(e.data[e.item.data.fieldName]=[],e.data[e.item.data.fieldName].push({type:a,title:o,value:""}))},handleFuncEdit(a){C.value=a,p.value=a.value?JSON.parse(JSON.stringify(a.value)):{trigger:"blur",func:`/** if (value === "" || value == null) {
+* callback(new Error("请输入"));
+*} else if (!/^[0-9]*$/.test(value)) {
+* callback(new Error("必须为数字"));
+*}
+*callback();
+*/`},h.value.init("函数编辑","icon-icon-bianji"),h.value.show()},saveFunc(){C.value.value=p.value,f.closeDialog()},closeDialog(){h.value.close(),g.value.close()},deleteRule(a){e.data[e.item.data.fieldName].splice(a,1)},async handleFormEdit(a){y.value=a,u.value=a.value||f.getDefaultData(D.value);debugger;g.value.init("规则表单编辑","icon-icon-bianji"),g.value.show()},getDefaultData(a){const o={};return a.forEach(n=>{o[n.data.fieldName]=n.data.default,n.data.getDefault&&(o[n.data.fieldName]=n.data.getDefault()),n.data.itemConfig&&(o[n.data.fieldName]=n.data.itemConfig.value),o[n.data.fieldName]=o[n.data.fieldName]!=null?JSON.parse(JSON.stringify(o[n.data.fieldName])):void 0}),o},saveField(){const a={},o={1:{fields:["required","trigger","message"]},2:{fields:["trigger","min","max","message"]},3:{fields:["required","trigger","type","message"]},4:{fields:["required","trigger","patternTemp","message"]},5:{fields:["trigger","minValue","maxValue","message"]}};for(const n in u.value)o[u.value.ruleType||"1"].fields.includes(n)&&(a[n]=u.value[n]);u.value.ruleType==2?(a.min=parseInt(a.min),a.max=parseInt(a.max)):u.value.ruleType==4?a.pattern=new RegExp(a.patternTemp):u.value.ruleType==5&&(a.validor=`(rule, value, callback) => {
+ if (!/(^[1-9]*$)/.test(value)) {
+ callback(new Error("请输入数字值"))
+ } else {
+ if (value > ${a.maxValue}) {
+ callback(new Error("${a.message}"))
+ } else if(value < ${a.minValue}){
+ callback(new Error("${a.message}"))
+ }else {
+ callback()
+ }
+ }
+ }`),a.ruleType=u.value.ruleType,y.value.value=a,g.value.close()}}}}),ge={key:0,class:"weight"},_e=v("span",{class:"tip iconfont icon-tishi"},null,-1),ve={key:0,class:"collapse_enums"},ye={key:1},he={key:2},Ce=v("i",{class:"el-icon-arrow-down el-icon--right"},null,-1),Fe={key:0,class:"sqlDialog",style:{padding:"20px",height:"100%"}},De=v("div",null,"(rule, value, callback, mainData) => {",-1),Ee=v("div",null,"}",-1);function be(e,f,w,V,A,B){const C=K,p=x,y=ee,u=ae,D=E("Delete"),k=le,h=te,g=ue,F=oe,a=ne,o=se,n=ie,j=E("codemirror"),N=re,$=E("CustomDialog"),M=E("Dynamicform"),T=de,O=ce;return i(),m("div",{class:J(["starfish-formitem starfish-formitem-rule",{formCover:e.drag,"starfish-vertical":e.labelalign!="top"}])},[v("div",{class:J(["label","label_"+e.labelalign]),style:R({width:e.labelWidth+"px"})},[v("label",null,H(e.item.data.label),1),e.item.data.required?(i(),m("span",ge,"*")):_("",!0),e.item.data.tip?(i(),b(C,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"bottom-start"},{default:t(()=>[_e]),_:1},8,["content"])):_("",!0)],6),v("div",{class:"control",style:R({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[Array.isArray(e.data[e.item.data.fieldName])&&e.data[e.item.data.fieldName].length>0?(i(),b(g,{key:0},{default:t(()=>[(i(!0),m(S,null,z(e.data[e.item.data.fieldName],(s,I)=>(i(),b(h,{title:s.title,name:s.title,key:I},{default:t(()=>[s.type=="enum"?(i(),m("div",ve,[l(y,{modelValue:s.value,"onUpdate:modelValue":c=>s.value=c,placeholder:"请选择",style:{width:"100%"},size:"mini"},{default:t(()=>[(i(!0),m(S,null,z(e.ruleList,c=>(i(),b(p,{key:c.value,label:c.label,value:c.validator},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])])):_("",!0),s.type=="func"?(i(),m("div",ye,[l(u,{type:"primary",onClick:c=>e.handleFuncEdit(s),size:"mini"},{default:t(()=>[d("函数编辑")]),_:2},1032,["onClick"])])):_("",!0),s.type=="high"?(i(),m("div",he,[l(u,{type:"primary",onClick:c=>e.handleFormEdit(s),size:"mini"},{default:t(()=>[d("规则表单编辑")]),_:2},1032,["onClick"])])):_("",!0),l(u,{type:"danger",circle:"",onClick:c=>e.deleteRule(I),style:{"margin-left":"10px"}},{default:t(()=>[l(k,null,{default:t(()=>[l(D)]),_:1})]),_:2},1032,["onClick"])]),_:2},1032,["title","name"]))),128))]),_:1})):_("",!0),l(o,{onCommand:e.handleDropdown,style:{"margin-top":"10px"}},{dropdown:t(()=>[l(a,null,{default:t(()=>[l(F,{command:"enum"},{default:t(()=>[d("默认枚举")]),_:1}),l(F,{command:"func"},{default:t(()=>[d("自定义函数规则")]),_:1}),l(F,{command:"high"},{default:t(()=>[d("高级模式")]),_:1})]),_:1})]),default:t(()=>[l(u,{type:"success"},{default:t(()=>[d(" 新增规则"),Ce]),_:1})]),_:1},8,["onCommand"])],4),l($,{ref:"codeMyDialog"},{default:t(()=>[e.funcItem?(i(),m("div",Fe,[l(y,{modelValue:e.funcValue.trigger,"onUpdate:modelValue":f[0]||(f[0]=s=>e.funcValue.trigger=s),placeholder:"请选择",size:"mini",style:{"margin-bottom":"20px"}},{default:t(()=>[l(p,{label:"blur",value:"blur"}),l(p,{label:"change",value:"change"})]),_:1},8,["modelValue"]),l(n,{title:"rule是存放接收参数的对象;value是待校验的值;callback是回调函数(校验完后,要执行的操作,如抛错),mainData为表单数据",type:"success",style:{"margin-bottom":"15px"}}),De,l(j,{modelValue:e.funcValue.func,"onUpdate:modelValue":f[1]||(f[1]=s=>e.funcValue.func=s),ref:"cm",placeholder:"",mode:"text/javascript",style:{height:"320px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2},null,8,["modelValue"]),Ee])):_("",!0),l(N,{class:"my-Footer",style:{height:"60px","text-align":"right"}},{default:t(()=>[l(u,{onClick:e.saveFunc,type:"primary"},{default:t(()=>[d("保存")]),_:1},8,["onClick"]),l(u,{onClick:e.closeDialog},{default:t(()=>[d("关闭")]),_:1},8,["onClick"])]),_:1})]),_:1},512),l($,{ref:"formRuleDialog"},{default:t(()=>[l(T,{style:{padding:"0"}},{default:t(()=>[l(O,{style:{height:"100%"}},{default:t(()=>[l(T,{class:"my-pageMain",style:{overflow:"hidden"}},{default:t(()=>[l(M,{ref:"formdragger",formResult:e.formValue,allFormList:e.ruleJson,globalConfig:Object.assign({},e.globalDatas,{size:"large"})},null,8,["formResult","allFormList","globalConfig"])]),_:1}),l(N,{class:"my-Footer",style:{height:"60px","text-align":"right"}},{default:t(()=>[l(u,{type:"primary",onClick:e.saveField},{default:t(()=>[d("保存")]),_:1},8,["onClick"]),l(u,{onClick:e.closeDialog},{default:t(()=>[d("关闭")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},512)],2)}const Be=Z(pe,[["render",be]]);export{Be as default};
diff --git a/playground/static/js/index-b82a06c3-5954de8e.js b/playground/static/js/index-b82a06c3-5954de8e.js
new file mode 100644
index 0000000..7e2f6e1
--- /dev/null
+++ b/playground/static/js/index-b82a06c3-5954de8e.js
@@ -0,0 +1,859 @@
+import{a9 as $t,d as wt,aa as bt,Y as Yt,f as zt,ab as Vt,S as Gt,ac as Kt,Q as Jt,o as Pt,a as Mt,h as Bt,t as Ht,l as Nt,b as Wt,w as Xt,n as Lt,j as Ot,U as Zt}from"./main-15081b07.js";var jt={exports:{}};(function(et,St){(function(n,t){et.exports=t()})(window,function(){return function(s){var n={};function t(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return s[e].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=s,t.c=n,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:r})},t.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(a&1&&(e=t(e)),a&8||a&4&&typeof e=="object"&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),a&2&&typeof e!="string")for(var o in e)t.d(r,o,function(v){return e[v]}.bind(null,o));return r},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t(t.s=141)}([function(s,n){function t(e){return e&&e.__esModule?e:{default:e}}s.exports=t},function(s,n,t){s.exports=t(142)},function(s,n,t){t.r(n),t.d(n,"__extends",function(){return a}),t.d(n,"__assign",function(){return r}),t.d(n,"__rest",function(){return o}),t.d(n,"__decorate",function(){return v}),t.d(n,"__param",function(){return g}),t.d(n,"__metadata",function(){return d}),t.d(n,"__awaiter",function(){return p}),t.d(n,"__generator",function(){return f}),t.d(n,"__createBinding",function(){return i}),t.d(n,"__exportStar",function(){return u}),t.d(n,"__values",function(){return l}),t.d(n,"__read",function(){return m}),t.d(n,"__spread",function(){return c}),t.d(n,"__spreadArrays",function(){return h}),t.d(n,"__spreadArray",function(){return A}),t.d(n,"__await",function(){return y}),t.d(n,"__asyncGenerator",function(){return x}),t.d(n,"__asyncDelegator",function(){return S}),t.d(n,"__asyncValues",function(){return T}),t.d(n,"__makeTemplateObject",function(){return P}),t.d(n,"__importStar",function(){return E}),t.d(n,"__importDefault",function(){return D}),t.d(n,"__classPrivateFieldGet",function(){return R}),t.d(n,"__classPrivateFieldSet",function(){return M});/*! *****************************************************************************
+ Copyright (c) Microsoft Corporation.
+
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted.
+
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.
+ ***************************************************************************** */var e=function(I,N){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,F){B.__proto__=F}||function(B,F){for(var O in F)Object.prototype.hasOwnProperty.call(F,O)&&(B[O]=F[O])},e(I,N)};function a(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");e(I,N);function B(){this.constructor=I}I.prototype=N===null?Object.create(N):(B.prototype=N.prototype,new B)}var r=function(){return r=Object.assign||function(N){for(var B,F=1,O=arguments.length;F=0;U--)(L=I[U])&&(H=(O<3?L(H):O>3?L(N,B,H):L(N,B))||H);return O>3&&H&&Object.defineProperty(N,B,H),H}function g(I,N){return function(B,F){N(B,F,I)}}function d(I,N){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(I,N)}function p(I,N,B,F){function O(H){return H instanceof B?H:new B(function(L){L(H)})}return new(B||(B=Promise))(function(H,L){function U(K){try{j(F.next(K))}catch(V){L(V)}}function z(K){try{j(F.throw(K))}catch(V){L(V)}}function j(K){K.done?H(K.value):O(K.value).then(U,z)}j((F=F.apply(I,N||[])).next())})}function f(I,N){var B={label:0,sent:function(){if(H[0]&1)throw H[1];return H[1]},trys:[],ops:[]},F,O,H,L;return L={next:U(0),throw:U(1),return:U(2)},typeof Symbol=="function"&&(L[Symbol.iterator]=function(){return this}),L;function U(j){return function(K){return z([j,K])}}function z(j){if(F)throw new TypeError("Generator is already executing.");for(;B;)try{if(F=1,O&&(H=j[0]&2?O.return:j[0]?O.throw||((H=O.return)&&H.call(O),0):O.next)&&!(H=H.call(O,j[1])).done)return H;switch(O=0,H&&(j=[j[0]&2,H.value]),j[0]){case 0:case 1:H=j;break;case 4:return B.label++,{value:j[1],done:!1};case 5:B.label++,O=j[1],j=[0];continue;case 7:j=B.ops.pop(),B.trys.pop();continue;default:if(H=B.trys,!(H=H.length>0&&H[H.length-1])&&(j[0]===6||j[0]===2)){B=0;continue}if(j[0]===3&&(!H||j[1]>H[0]&&j[1]=I.length&&(I=void 0),{value:I&&I[F++],done:!I}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(I,N){var B=typeof Symbol=="function"&&I[Symbol.iterator];if(!B)return I;var F=B.call(I),O,H=[],L;try{for(;(N===void 0||N-- >0)&&!(O=F.next()).done;)H.push(O.value)}catch(U){L={error:U}}finally{try{O&&!O.done&&(B=F.return)&&B.call(F)}finally{if(L)throw L.error}}return H}function c(){for(var I=[],N=0;N1||U(Q,w)})})}function U(Q,w){try{z(F[Q](w))}catch(G){V(H[0][3],G)}}function z(Q){Q.value instanceof y?Promise.resolve(Q.value.v).then(j,K):V(H[0][2],Q)}function j(Q){U("next",Q)}function K(Q){U("throw",Q)}function V(Q,w){Q(w),H.shift(),H.length&&U(H[0][0],H[0][1])}}function S(I){var N,B;return N={},F("next"),F("throw",function(O){throw O}),F("return"),N[Symbol.iterator]=function(){return this},N;function F(O,H){N[O]=I[O]?function(L){return(B=!B)?{value:y(I[O](L)),done:O==="return"}:H?H(L):L}:H}}function T(I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var N=I[Symbol.asyncIterator],B;return N?N.call(I):(I=typeof l=="function"?l(I):I[Symbol.iterator](),B={},F("next"),F("throw"),F("return"),B[Symbol.asyncIterator]=function(){return this},B);function F(H){B[H]=I[H]&&function(L){return new Promise(function(U,z){L=I[H](L),O(U,z,L.done,L.value)})}}function O(H,L,U,z){Promise.resolve(z).then(function(j){H({value:j,done:U})},L)}}function P(I,N){return Object.defineProperty?Object.defineProperty(I,"raw",{value:N}):I.raw=N,I}var C=Object.create?function(I,N){Object.defineProperty(I,"default",{enumerable:!0,value:N})}:function(I,N){I.default=N};function E(I){if(I&&I.__esModule)return I;var N={};if(I!=null)for(var B in I)B!=="default"&&Object.prototype.hasOwnProperty.call(I,B)&&i(N,I,B);return C(N,I),N}function D(I){return I&&I.__esModule?I:{default:I}}function R(I,N){if(!N.has(I))throw new TypeError("attempted to get private field on non-instance");return N.get(I)}function M(I,N,B){if(!N.has(I))throw new TypeError("attempted to set private field on non-instance");return N.set(I,B),B}},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(89)),o=e(t(4)),v=e(t(26)),g=e(t(17)),d=e(t(121)),p=e(t(27)),f=e(t(91)),i=e(t(70)),u=e(t(28)),l=e(t(57));(0,a.default)(n,"__esModule",{value:!0}),n.DomElement=void 0;var m=t(2),c=t(6),h=[];function A(C){var E=document.createElement("div");E.innerHTML=C;var D=E.children;return c.toArray(D)}function y(C){return C?C instanceof HTMLCollection||C instanceof NodeList:!1}function x(C){var E=document.querySelectorAll(C);return c.toArray(E)}function S(C){var E=[],D=[];return(0,r.default)(C)?E=C:E=C.split(";"),(0,o.default)(E).call(E,function(R){var M,I=(0,v.default)(M=R.split(":")).call(M,function(N){return(0,g.default)(N).call(N)});I.length===2&&D.push(I[0]+":"+I[1])}),D}var T=function(){function C(E){if(this.elems=[],this.length=this.elems.length,this.dataSource=new d.default,!!E){if(E instanceof C)return E;var D=[],R=E instanceof Node?E.nodeType:-1;if(this.selector=E,R===1||R===9)D=[E];else if(y(E))D=c.toArray(E);else if(E instanceof Array)D=E;else if(typeof E=="string"){var M,I=(0,g.default)(M=E.replace(`/
+/mg`,"")).call(M);(0,p.default)(I).call(I,"<")===0?D=A(I):D=x(I)}var N=D.length;if(!N)return this;for(var B=0;B=D&&(E=E%D),P(this.elems[E])},C.prototype.first=function(){return this.get(0)},C.prototype.last=function(){var E=this.length;return this.get(E-1)},C.prototype.on=function(E,D,R){var M;return E?(typeof D=="function"&&(R=D,D=""),(0,o.default)(M=this).call(M,function(I){if(!D){I.addEventListener(E,R);return}var N=function(F){var O=F.target;O.matches(D)&&R.call(O,F)};I.addEventListener(E,N),h.push({elem:I,selector:D,fn:R,agentFn:N})})):this},C.prototype.off=function(E,D,R){var M;return E?(typeof D=="function"&&(R=D,D=""),(0,o.default)(M=this).call(M,function(I){if(D){for(var N=-1,B=0;B]+>/g,function(){return""})}},C.prototype.html=function(E){var D=this.elems[0];return E?(D.innerHTML=E,this):D.innerHTML},C.prototype.val=function(){var E,D=this.elems[0];return(0,g.default)(E=D.value).call(E)},C.prototype.focus=function(){var E;return(0,o.default)(E=this).call(E,function(D){D.focus()})},C.prototype.prev=function(){var E=this.elems[0];return P(E.previousElementSibling)},C.prototype.next=function(){var E=this.elems[0];return P(E.nextElementSibling)},C.prototype.getNextSibling=function(){var E=this.elems[0];return P(E.nextSibling)},C.prototype.parent=function(){var E=this.elems[0];return P(E.parentElement)},C.prototype.parentUntil=function(E,D){var R=D||this.elems[0];if(R.nodeName==="BODY")return null;var M=R.parentElement;return M===null?null:M.matches(E)?P(M):this.parentUntil(E,M)},C.prototype.parentUntilEditor=function(E,D,R){var M=R||this.elems[0];if(P(M).equal(D.$textContainerElem)||P(M).equal(D.$toolbarElem))return null;var I=M.parentElement;return I===null?null:I.matches(E)?P(I):this.parentUntilEditor(E,D,I)},C.prototype.equal=function(E){return E instanceof C?this.elems[0]===E.elems[0]:E instanceof HTMLElement?this.elems[0]===E:!1},C.prototype.insertBefore=function(E){var D,R=P(E),M=R.elems[0];return M?(0,o.default)(D=this).call(D,function(I){var N=M.parentNode;N?.insertBefore(I,M)}):this},C.prototype.insertAfter=function(E){var D,R=P(E),M=R.elems[0],I=M&&M.nextSibling;return M?(0,o.default)(D=this).call(D,function(N){var B=M.parentNode;I?B.insertBefore(N,I):B.appendChild(N)}):this},C.prototype.data=function(E,D){if(D!=null)this.dataSource.set(E,D);else return this.dataSource.get(E)},C.prototype.getNodeTop=function(E){if(this.length<1)return this;var D=this.parent();return E.$textElem.equal(this)||E.$textElem.equal(D)?this:(D.prior=this,D.getNodeTop(E))},C.prototype.getOffsetData=function(){var E=this.elems[0];return{top:E.offsetTop,left:E.offsetLeft,width:E.offsetWidth,height:E.offsetHeight,parent:E.offsetParent}},C.prototype.scrollTop=function(E){var D=this.elems[0];D.scrollTo({top:E})},C}();n.DomElement=T;function P(){for(var C=[],E=0;E /gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g," ")}n.replaceHtmlSymbol=l;function m(E){return E.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')}n.replaceSpecialSymbol=m;function c(E,D){for(var R in E)if(Object.prototype.hasOwnProperty.call(E,R)){var M=D(R,E[R]);if(M===!1)break}}n.forEach=c;function h(E,D){var R,M,I,N=E.length||0;for(R=0;R
',n.EMPTY_P_LAST_REGEX=/ <\/p>$/gim,n.EMPTY_P_REGEX=/
/gim},function(s,n,t){(function(e){var a=function(r){return r&&r.Math==Math&&r};s.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof e=="object"&&e)||Function("return this")()}).call(this,t(145))},function(s,n){s.exports={}},function(s,n,t){var e=t(8),a=t(74),r=t(16),o=t(64),v=t(76),g=t(106),d=a("wks"),p=e.Symbol,f=g?p:p&&p.withoutSetter||o;s.exports=function(i){return r(d,i)||(v&&r(p,i)?d[i]=p[i]:d[i]=f("Symbol."+i)),d[i]}},function(s,n){s.exports=function(t){try{return!!t()}catch{return!0}}},function(s,n,t){var e=t(9),a=t(16),r=t(93),o=t(18).f;s.exports=function(v){var g=e.Symbol||(e.Symbol={});a(g,v)||o(g,v,{value:r.f(v)})}},function(s,n){s.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},function(s,n,t){var e=t(11);s.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(s,n,t){var e=t(9);s.exports=function(a){return e[a+"Prototype"]}},function(s,n){var t={}.hasOwnProperty;s.exports=function(e,a){return t.call(e,a)}},function(s,n,t){s.exports=t(192)},function(s,n,t){var e=t(14),a=t(100),r=t(25),o=t(60),v=Object.defineProperty;n.f=e?v:function(d,p,f){if(r(d),p=o(p,!0),r(f),a)try{return v(d,p,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported");return"value"in f&&(d[p]=f.value),d}},function(s,n,t){var e=t(14),a=t(18),r=t(48);s.exports=e?function(o,v,g){return a.f(o,v,r(1,g))}:function(o,v,g){return o[v]=g,o}},function(s,n,t){var e=function(){var h;return function(){return typeof h>"u"&&(h=!!(window&&document&&document.all&&!window.atob)),h}}(),a=function(){var h={};return function(y){if(typeof h[y]>"u"){var x=document.querySelector(y);if(window.HTMLIFrameElement&&x instanceof window.HTMLIFrameElement)try{x=x.contentDocument.head}catch{x=null}h[y]=x}return h[y]}}(),r=[];function o(c){for(var h=-1,A=0;A"u"){var y=t.nc;y&&(A.nonce=y)}if(Object.keys(A).forEach(function(S){h.setAttribute(S,A[S])}),typeof c.insert=="function")c.insert(h);else{var x=a(c.insert||"head");if(!x)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");x.appendChild(h)}return h}function d(c){if(c.parentNode===null)return!1;c.parentNode.removeChild(c)}var p=function(){var h=[];return function(y,x){return h[y]=x,h.filter(Boolean).join(`
+`)}}();function f(c,h,A,y){var x=A?"":y.media?"@media ".concat(y.media," {").concat(y.css,"}"):y.css;if(c.styleSheet)c.styleSheet.cssText=p(h,x);else{var S=document.createTextNode(x),T=c.childNodes;T[h]&&c.removeChild(T[h]),T.length?c.insertBefore(S,T[h]):c.appendChild(S)}}function i(c,h,A){var y=A.css,x=A.media,S=A.sourceMap;if(x?c.setAttribute("media",x):c.removeAttribute("media"),S&&typeof btoa<"u"&&(y+=`
+/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(S))))," */")),c.styleSheet)c.styleSheet.cssText=y;else{for(;c.firstChild;)c.removeChild(c.firstChild);c.appendChild(document.createTextNode(y))}}var u=null,l=0;function m(c,h){var A,y,x;if(h.singleton){var S=l++;A=u||(u=g(h)),y=f.bind(null,A,S,!1),x=f.bind(null,A,S,!0)}else A=g(h),y=i.bind(null,A,h),x=function(){d(A)};return y(c),function(P){if(P){if(P.css===c.css&&P.media===c.media&&P.sourceMap===c.sourceMap)return;y(c=P)}else x()}}s.exports=function(c,h){h=h||{},!h.singleton&&typeof h.singleton!="boolean"&&(h.singleton=e()),c=c||[];var A=v(c,h);return function(x){if(x=x||[],Object.prototype.toString.call(x)==="[object Array]"){for(var S=0;S0){var C=P?.getNodeName();C&&C==="I"&&T.addClass(A)}})}var x=new p.default(h,c);return h.dropList=x,l.on("click",function(){var S;m.selection.getRange()!=null&&(l.css("z-index",m.zIndex.get("menu")),(0,r.default)(S=m.txt.eventHooks.dropListMenuHoverEvents).call(S,function(T){return T()}),x.show())}).on("mouseleave",function(){l.css("z-index","auto"),x.hideTimeoutId=(0,o.default)(function(){x.hide()})}),h}return u}(d.default);n.default=f},function(s,n,t){var e=t(13);s.exports=function(a){if(!e(a))throw TypeError(String(a)+" is not an object");return a}},function(s,n,t){s.exports=t(188)},function(s,n,t){s.exports=t(201)},function(s,n,t){s.exports=t(213)},function(s,n,t){s.exports=t(283)},function(s,n,t){var e=t(72),a=t(49);s.exports=function(r){return e(a(r))}},function(s,n,t){var e=t(49);s.exports=function(a){return Object(e(a))}},function(s,n,t){var e=t(40),a=t(72),r=t(31),o=t(35),v=t(88),g=[].push,d=function(p){var f=p==1,i=p==2,u=p==3,l=p==4,m=p==6,c=p==5||m;return function(h,A,y,x){for(var S=r(h),T=a(S),P=e(A,y,3),C=o(T.length),E=0,D=x||v,R=f?D(h,C):i?D(h,0):void 0,M,I;C>E;E++)if((c||E in T)&&(M=T[E],I=P(M,E,S),p)){if(f)R[E]=I;else if(I)switch(p){case 3:return!0;case 5:return M;case 6:return E;case 2:g.call(R,M)}else if(l)return!1}return m?-1:u||l?l:R}};s.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6)}},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4)),o=e(t(29)),v=e(t(132));(0,a.default)(n,"__esModule",{value:!0});var g=t(2),d=g.__importDefault(t(3)),p=t(7),f=function(){function i(u,l){this.menu=u,this.conf=l,this.$container=d.default('
');var m=u.editor;m.txt.eventHooks.clickEvents.push(i.hideCurAllPanels),m.txt.eventHooks.toolbarClickEvents.push(i.hideCurAllPanels),m.txt.eventHooks.dropListMenuHoverEvents.push(i.hideCurAllPanels)}return i.prototype.create=function(){var u=this,l=this.menu;if(!i.createdMenus.has(l)){var m=this.conf,c=this.$container,h=m.width||300,A=l.editor.$toolbarElem.getBoundingClientRect(),y=l.$elem.getBoundingClientRect(),x=A.height+A.top-y.top,S=(A.width-h)/2+A.left-y.left,T=300;Math.abs(S)>T&&(y.left
');c.append(P),P.on("click",function(){u.remove()});var C=d.default(''),E=d.default('
');c.append(C).append(E);var D=m.height;D&&E.css("height",D+"px").css("overflow-y","auto");var R=m.tabs||[],M=[],I=[];(0,r.default)(R).call(R,function(B,F){if(B){var O=B.title||"",H=B.tpl||"",L=d.default(''+O+" ");C.append(L);var U=d.default(H);E.append(U),M.push(L),I.push(U),F===0?(L.data("active",!0),L.addClass("w-e-active")):U.hide(),L.on("click",function(){L.data("active")||((0,r.default)(M).call(M,function(z){z.data("active",!1),z.removeClass("w-e-active")}),(0,r.default)(I).call(I,function(z){z.hide()}),L.data("active",!0),L.addClass("w-e-active"),U.show())})}}),c.on("click",function(B){B.stopPropagation()}),l.$elem.append(c),m.setLinkValue&&m.setLinkValue(c,"text"),m.setLinkValue&&m.setLinkValue(c,"link"),(0,r.default)(R).call(R,function(B,F){if(B){var O=B.events||[];(0,r.default)(O).call(O,function(H){var L,U=H.selector,z=H.type,j=H.fn||p.EMPTY_FN,K=I[F],V=(L=H.bindEnter)!==null&&L!==void 0?L:!1,Q=function(G){return g.__awaiter(u,void 0,void 0,function(){var X;return g.__generator(this,function(tt){switch(tt.label){case 0:return G.stopPropagation(),[4,j(G)];case 1:return X=tt.sent(),X&&this.remove(),[2]}})})};(0,o.default)(K).call(K,U).on(z,Q),V&&z==="click"&&K.on("keyup",function(w){w.keyCode==13&&Q(w)})})}});var N=(0,o.default)(c).call(c,"input[type=text],textarea");N.length&&N.get(0).focus(),i.hideCurAllPanels(),l.setPanel(this),i.createdMenus.add(l)}},i.prototype.remove=function(){var u=this.menu,l=this.$container;l&&l.remove(),i.createdMenus.delete(u)},i.hideCurAllPanels=function(){var u;i.createdMenus.size!==0&&(0,r.default)(u=i.createdMenus).call(u,function(l){var m=l.panel;m&&m.remove()})},i.createdMenus=new v.default,i}();n.default=f},function(s,n){var t={}.toString;s.exports=function(e){return t.call(e).slice(8,-1)}},function(s,n,t){var e=t(62),a=Math.min;s.exports=function(r){return r>0?a(e(r),9007199254740991):0}},function(s,n,t){var e=t(9),a=t(8),r=function(o){return typeof o=="function"?o:void 0};s.exports=function(o,v){return arguments.length<2?r(e[o])||r(a[o]):e[o]&&e[o][v]||a[o]&&a[o][v]}},function(s,n,t){var e=t(81),a=t(18).f,r=t(19),o=t(16),v=t(170),g=t(10),d=g("toStringTag");s.exports=function(p,f,i,u){if(p){var l=i?p:p.prototype;o(l,d)||a(l,d,{configurable:!0,value:f}),u&&!e&&r(l,"toString",v)}}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(95)),v=function(g){r.__extends(d,g);function d(p,f){return g.call(this,p,f)||this}return d.prototype.setPanel=function(p){this.panel=p},d}(o.default);n.default=v},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4)),o=e(t(57));(0,a.default)(n,"__esModule",{value:!0});var v=t(2),g=v.__importDefault(t(3)),d=function(){function p(f,i,u){this.editor=f,this.$targetElem=i,this.conf=u,this._show=!1,this._isInsertTextContainer=!1;var l=g.default("
");l.addClass("w-e-tooltip"),this.$container=l}return p.prototype.getPositionData=function(){var f=this.$container,i=0,u=0,l=20,m=document.documentElement.scrollTop,c=this.$targetElem.getBoundingClientRect(),h=this.editor.$textElem.getBoundingClientRect(),A=this.$targetElem.getOffsetData(),y=g.default(A.parent),x=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=y.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var S=y.getBoundingClientRect().height,T=A.top,P=A.left,C=A.height,E=T-x;E>l+5?(i=E-l-15,f.addClass("w-e-tooltip-up")):E+C+l0?E:0)+l+10,f.addClass("w-e-tooltip-down")),P<0?u=0:u=P}else c.top");y.addClass("w-e-tooltip-item-wrapper "),y.append(A),m.append(y),A.on("click",function(x){x.preventDefault();var S=c.onClick(u,l);S&&f.remove()})})},p.prototype.create=function(){var f,i,u=this.editor,l=this.$container;this.appendMenus();var m=this.getPositionData(),c=m.top,h=m.left;l.css("top",c+"px"),l.css("left",h+"px"),l.css("z-index",u.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(l):g.default("body").append(l),this._show=!0,u.beforeDestroy((0,o.default)(f=this.remove).call(f,this)),u.txt.eventHooks.onBlurEvents.push((0,o.default)(i=this.remove).call(i,this))},p.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,a.default)(p.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),p}();n.default=d},function(s,n,t){var e=t(41);s.exports=function(a,r,o){if(e(a),r===void 0)return a;switch(o){case 0:return function(){return a.call(r)};case 1:return function(v){return a.call(r,v)};case 2:return function(v,g){return a.call(r,v,g)};case 3:return function(v,g,d){return a.call(r,v,g,d)}}return function(){return a.apply(r,arguments)}}},function(s,n){s.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},function(s,n,t){var e=t(165),a=t(8),r=t(13),o=t(19),v=t(16),g=t(63),d=t(51),p=a.WeakMap,f,i,u,l=function(S){return u(S)?i(S):f(S,{})},m=function(S){return function(T){var P;if(!r(T)||(P=i(T)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return P}};if(e){var c=new p,h=c.get,A=c.has,y=c.set;f=function(S,T){return y.call(c,S,T),T},i=function(S){return h.call(c,S)||{}},u=function(S){return A.call(c,S)}}else{var x=g("state");d[x]=!0,f=function(S,T){return o(S,x,T),T},i=function(S){return v(S,x)?S[x]:{}},u=function(S){return v(S,x)}}s.exports={set:f,get:i,has:u,enforce:l,getterFor:m}},function(s,n){s.exports=!0},function(s,n){s.exports={}},function(s,n,t){s.exports=t(261)},function(s,n,t){s.exports=t(265)},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0}),n.createElementFragment=n.createDocumentFragment=n.createElement=n.insertBefore=n.getEndPoint=n.getStartPoint=n.updateRange=n.filterSelectionNodes=void 0;var o=t(2),v=t(137),g=o.__importDefault(t(3));function d(h){var A=[];return(0,r.default)(h).call(h,function(y){var x=y.getNodeName();if(x!==v.ListType.OrderedList&&x!==v.ListType.UnorderedList)A.push(y);else if(y.prior)A.push(y.prior);else{var S=y.children();S==null||(0,r.default)(S).call(S,function(T){A.push(g.default(T))})}}),A}n.filterSelectionNodes=d;function p(h,A,y){var x=h.selection,S=document.createRange();A.length>1?(S.setStart(A.elems[0],0),S.setEnd(A.elems[A.length-1],A.elems[A.length-1].childNodes.length)):S.selectNodeContents(A.elems[0]),y&&S.collapse(!1),x.saveRange(S),x.restoreSelection()}n.updateRange=p;function f(h){var A;return h.prior?h.prior:g.default((A=h.children())===null||A===void 0?void 0:A.elems[0])}n.getStartPoint=f;function i(h){var A;return h.prior?h.prior:g.default((A=h.children())===null||A===void 0?void 0:A.last().elems[0])}n.getEndPoint=i;function u(h,A,y){y===void 0&&(y=null),h.parent().elems[0].insertBefore(A,y)}n.insertBefore=u;function l(h){return document.createElement(h)}n.createElement=l;function m(){return document.createDocumentFragment()}n.createDocumentFragment=m;function c(h,A,y){return y===void 0&&(y="li"),(0,r.default)(h).call(h,function(x){var S=l(y);S.innerHTML=x.html(),A.appendChild(S),x.remove()}),A}n.createElementFragment=c},function(s,n){s.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}},function(s,n){s.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},function(s,n,t){var e=t(164).charAt,a=t(42),r=t(75),o="String Iterator",v=a.set,g=a.getterFor(o);r(String,"String",function(d){v(this,{type:o,string:String(d),index:0})},function(){var p=g(this),f=p.string,i=p.index,u;return i>=f.length?{value:void 0,done:!0}:(u=e(f,i),p.index+=u.length,{value:u,done:!1})})},function(s,n){s.exports={}},function(s,n,t){var e=t(107),a=t(80);s.exports=Object.keys||function(o){return e(o,a)}},function(s,n,t){var e=t(19);s.exports=function(a,r,o,v){v&&v.enumerable?a[r]=o:e(a,r,o)}},function(s,n,t){t(173);var e=t(174),a=t(8),r=t(65),o=t(19),v=t(44),g=t(10),d=g("toStringTag");for(var p in e){var f=a[p],i=f&&f.prototype;i&&r(i)!==d&&o(i,d,p),v[p]=v.Array}},function(s,n,t){var e=t(34);s.exports=Array.isArray||function(r){return e(r)=="Array"}},function(s,n,t){var e=t(11),a=t(10),r=t(86),o=a("species");s.exports=function(v){return r>=51||!e(function(){var g=[],d=g.constructor={};return d[o]=function(){return{foo:1}},g[v](Boolean).foo!==1})}},function(s,n,t){s.exports=t(222)},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.ListHandle=void 0;var r=t(2),o=r.__importDefault(t(373)),v=function(){function g(d){this.options=d,this.selectionRangeElem=new o.default}return g}();n.ListHandle=v},function(s,n,t){var e={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,r=a&&!e.call({1:2},1);n.f=r?function(v){var g=a(this,v);return!!g&&g.enumerable}:e},function(s,n,t){var e=t(13);s.exports=function(a,r){if(!e(a))return a;var o,v;if(r&&typeof(o=a.toString)=="function"&&!e(v=o.call(a))||typeof(o=a.valueOf)=="function"&&!e(v=o.call(a))||!r&&typeof(o=a.toString)=="function"&&!e(v=o.call(a)))return v;throw TypeError("Can't convert object to primitive value")}},function(s,n){},function(s,n){var t=Math.ceil,e=Math.floor;s.exports=function(a){return isNaN(a=+a)?0:(a>0?e:t)(a)}},function(s,n,t){var e=t(74),a=t(64),r=e("keys");s.exports=function(o){return r[o]||(r[o]=a(o))}},function(s,n){var t=0,e=Math.random();s.exports=function(a){return"Symbol("+String(a===void 0?"":a)+")_"+(++t+e).toString(36)}},function(s,n,t){var e=t(81),a=t(34),r=t(10),o=r("toStringTag"),v=a(function(){return arguments}())=="Arguments",g=function(d,p){try{return d[p]}catch{}};s.exports=e?a:function(d){var p,f,i;return d===void 0?"Undefined":d===null?"Null":typeof(f=g(p=Object(d),o))=="string"?f:v?a(p):(i=a(p))=="Object"&&typeof p.callee=="function"?"Arguments":i}},function(s,n,t){var e=t(25),a=t(112),r=t(35),o=t(40),v=t(113),g=t(114),d=function(f,i){this.stopped=f,this.result=i},p=s.exports=function(f,i,u,l,m){var c=o(i,u,l?2:1),h,A,y,x,S,T,P;if(m)h=f;else{if(A=v(f),typeof A!="function")throw TypeError("Target is not iterable");if(a(A)){for(y=0,x=r(f.length);x>y;y++)if(S=l?c(e(P=f[y])[0],P[1]):c(f[y]),S&&S instanceof d)return S;return new d(!1)}h=A.call(f)}for(T=h.next;!(P=T.call(h)).done;)if(S=g(h,c,P.value,l),typeof S=="object"&&S&&S instanceof d)return S;return new d(!1)};p.stop=function(f){return new d(!0,f)}},function(s,n,t){var e=t(11);s.exports=function(a,r){var o=[][a];return!!o&&e(function(){o.call(null,r||function(){throw 1},1)})}},function(s,n){s.exports=`
+\v\f\r \u2028\u2029\uFEFF`},function(s,n,t){var e=t(60),a=t(18),r=t(48);s.exports=function(o,v,g){var d=e(v);d in o?a.f(o,d,r(0,g)):o[d]=g}},function(s,n,t){s.exports=t(209)},function(s,n,t){var e=t(14),a=t(59),r=t(48),o=t(30),v=t(60),g=t(16),d=t(100),p=Object.getOwnPropertyDescriptor;n.f=e?p:function(i,u){if(i=o(i),u=v(u,!0),d)try{return p(i,u)}catch{}if(g(i,u))return r(!a.f.call(i,u),i[u])}},function(s,n,t){var e=t(11),a=t(34),r="".split;s.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(o){return a(o)=="String"?r.call(o,""):Object(o)}:Object},function(s,n,t){var e=t(8),a=t(13),r=e.document,o=a(r)&&a(r.createElement);s.exports=function(v){return o?r.createElement(v):{}}},function(s,n,t){var e=t(43),a=t(103);(s.exports=function(r,o){return a[r]||(a[r]=o!==void 0?o:{})})("versions",[]).push({version:"3.6.4",mode:e?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(s,n,t){var e=t(5),a=t(167),r=t(105),o=t(171),v=t(37),g=t(19),d=t(53),p=t(10),f=t(43),i=t(44),u=t(104),l=u.IteratorPrototype,m=u.BUGGY_SAFARI_ITERATORS,c=p("iterator"),h="keys",A="values",y="entries",x=function(){return this};s.exports=function(S,T,P,C,E,D,R){a(P,T,C);var M=function(j){if(j===E&&O)return O;if(!m&&j in B)return B[j];switch(j){case h:return function(){return new P(this,j)};case A:return function(){return new P(this,j)};case y:return function(){return new P(this,j)}}return function(){return new P(this)}},I=T+" Iterator",N=!1,B=S.prototype,F=B[c]||B["@@iterator"]||E&&B[E],O=!m&&F||M(E),H=T=="Array"&&B.entries||F,L,U,z;if(H&&(L=r(H.call(new S)),l!==Object.prototype&&L.next&&(!f&&r(L)!==l&&(o?o(L,l):typeof L[c]!="function"&&g(L,c,x)),v(L,I,!0,!0),f&&(i[I]=x))),E==A&&F&&F.name!==A&&(N=!0,O=function(){return F.call(this)}),(!f||R)&&B[c]!==O&&g(B,c,O),i[T]=O,E)if(U={values:M(A),keys:D?O:M(h),entries:M(y)},R)for(z in U)(m||N||!(z in B))&&d(B,z,U[z]);else e({target:T,proto:!0,forced:m||N},U);return U}},function(s,n,t){var e=t(11);s.exports=!!Object.getOwnPropertySymbols&&!e(function(){return!String(Symbol())})},function(s,n,t){var e=t(25),a=t(169),r=t(80),o=t(51),v=t(108),g=t(73),d=t(63),p=">",f="<",i="prototype",u="script",l=d("IE_PROTO"),m=function(){},c=function(S){return f+u+p+S+f+"/"+u+p},h=function(S){S.write(c("")),S.close();var T=S.parentWindow.Object;return S=null,T},A=function(){var S=g("iframe"),T="java"+u+":",P;return S.style.display="none",v.appendChild(S),S.src=String(T),P=S.contentWindow.document,P.open(),P.write(c("document.F=Object")),P.close(),P.F},y,x=function(){try{y=document.domain&&new ActiveXObject("htmlfile")}catch{}x=y?h(y):A();for(var S=r.length;S--;)delete x[i][r[S]];return x()};o[l]=!0,s.exports=Object.create||function(T,P){var C;return T!==null?(m[i]=e(T),C=new m,m[i]=null,C[l]=T):C=x(),P===void 0?C:a(C,P)}},function(s,n,t){var e=t(30),a=t(35),r=t(79),o=function(v){return function(g,d,p){var f=e(g),i=a(f.length),u=r(p,i),l;if(v&&d!=d){for(;i>u;)if(l=f[u++],l!=l)return!0}else for(;i>u;u++)if((v||u in f)&&f[u]===d)return v||u||0;return!v&&-1}};s.exports={includes:o(!0),indexOf:o(!1)}},function(s,n,t){var e=t(62),a=Math.max,r=Math.min;s.exports=function(o,v){var g=e(o);return g<0?a(g+v,0):r(g,v)}},function(s,n){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(s,n,t){var e=t(10),a=e("toStringTag"),r={};r[a]="z",s.exports=String(r)==="[object z]"},function(s,n){s.exports=function(){}},function(s,n){s.exports=function(t,e,a){if(!(t instanceof e))throw TypeError("Incorrect "+(a?a+" ":"")+"invocation");return t}},function(s,n,t){var e=t(36);s.exports=e("navigator","userAgent")||""},function(s,n,t){var e=t(41),a=function(r){var o,v;this.promise=new r(function(g,d){if(o!==void 0||v!==void 0)throw TypeError("Bad Promise constructor");o=g,v=d}),this.resolve=e(o),this.reject=e(v)};s.exports.f=function(r){return new a(r)}},function(s,n,t){var e=t(8),a=t(84),r=e.process,o=r&&r.versions,v=o&&o.v8,g,d;v?(g=v.split("."),d=g[0]+g[1]):a&&(g=a.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=a.match(/Chrome\/(\d+)/),g&&(d=g[1]))),s.exports=d&&+d},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3)),g=t(6),d=o.__importDefault(t(267)),p=o.__importDefault(t(280)),f=o.__importDefault(t(281)),i=o.__importDefault(t(282)),u=o.__importDefault(t(301)),l=o.__importStar(t(416)),m=o.__importDefault(t(417)),c=o.__importDefault(t(418)),h=o.__importDefault(t(419)),A=o.__importStar(t(420)),y=o.__importDefault(t(423)),x=o.__importDefault(t(424)),S=o.__importDefault(t(425)),T=o.__importDefault(t(427)),P=o.__importDefault(t(437)),C=o.__importDefault(t(440)),E=o.__importStar(t(441)),D=o.__importDefault(t(23)),R=o.__importDefault(t(134)),M=o.__importDefault(t(24)),I=o.__importDefault(t(33)),N=o.__importDefault(t(38)),B=o.__importDefault(t(39)),F=1,O=function(){function H(L,U){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+F++,this.toolbarSelector=L,this.textSelector=U,l.selectorValidator(this),this.config=g.deepClone(d.default),this.$toolbarElem=v.default("
"),this.$textContainerElem=v.default("
"),this.$textElem=v.default("
"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new p.default(this),this.cmd=new f.default(this),this.txt=new i.default(this),this.menus=new u.default(this),this.zIndex=new x.default,this.change=new S.default(this),this.history=new T.default(this),this.onSelectionChange=new C.default(this);var z=P.default(this),j=z.disable,K=z.enable;this.disable=j,this.enable=K,this.isEnable=!0}return H.prototype.initSelection=function(L){m.default(this,L)},H.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),h.default(this),l.default(this),this.txt.init(),this.menus.init(),A.default(this),this.initSelection(!0),c.default(this),this.change.observe(),this.history.observe(),E.default(this)},H.prototype.beforeDestroy=function(L){return this.beforeDestroyHooks.push(L),this},H.prototype.destroy=function(){var L,U=this;(0,r.default)(L=this.beforeDestroyHooks).call(L,function(z){return z.call(U)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},H.prototype.fullScreen=function(){A.setFullScreen(this)},H.prototype.unFullScreen=function(){A.setUnFullScreen(this)},H.prototype.scrollToHead=function(L){y.default(this,L)},H.registerMenu=function(L,U){!U||typeof U!="function"||(H.globalCustomMenuConstructorList[L]=U)},H.prototype.registerPlugin=function(L,U){E.registerPlugin(L,U,this.pluginsFunctionList)},H.registerPlugin=function(L,U){E.registerPlugin(L,U,H.globalPluginsFunctionList)},H.$=v.default,H.BtnMenu=D.default,H.DropList=R.default,H.DropListMenu=M.default,H.Panel=I.default,H.PanelMenu=N.default,H.Tooltip=B.default,H.globalCustomMenuConstructorList={},H.globalPluginsFunctionList={},H}();n.default=O},function(s,n,t){var e=t(13),a=t(55),r=t(10),o=r("species");s.exports=function(v,g){var d;return a(v)&&(d=v.constructor,typeof d=="function"&&(d===Array||a(d.prototype))?d=void 0:e(d)&&(d=d[o],d===null&&(d=void 0))),new(d===void 0?Array:d)(g===0?0:g)}},function(s,n,t){s.exports=t(185)},function(s,n,t){var e=t(49),a=t(68),r="["+a+"]",o=RegExp("^"+r+r+"*"),v=RegExp(r+r+"*$"),g=function(d){return function(p){var f=String(e(p));return d&1&&(f=f.replace(o,"")),d&2&&(f=f.replace(v,"")),f}};s.exports={start:g(1),end:g(2),trim:g(3)}},function(s,n,t){s.exports=t(205)},function(s,n,t){var e=t(227),a=t(230);function r(o){"@babel/helpers - typeof";return typeof a=="function"&&typeof e=="symbol"?s.exports=r=function(g){return typeof g}:s.exports=r=function(g){return g&&typeof a=="function"&&g.constructor===a&&g!==a.prototype?"symbol":typeof g},r(o)}s.exports=r},function(s,n,t){var e=t(10);n.f=e},function(s,n,t){s.exports=t(306)},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(33)),g=function(){function d(p,f){var i=this;this.$elem=p,this.editor=f,this._active=!1,p.on("click",function(u){var l;v.default.hideCurAllPanels(),(0,r.default)(l=f.txt.eventHooks.menuClickEvents).call(l,function(m){return m()}),u.stopPropagation(),f.selection.getRange()!=null&&i.clickHandler(u)})}return d.prototype.clickHandler=function(p){},d.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},d.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,a.default)(d.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),d}();n.default=g},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(28));(0,a.default)(n,"__esModule",{value:!0}),n.getParentNodeA=n.EXTRA_TAG=void 0,n.EXTRA_TAG=["B","FONT","I","STRIKE"];function o(g){for(var d=g.elems[0];d&&(0,r.default)(p=n.EXTRA_TAG).call(p,d.nodeName);){var p;if(d=d.parentElement,d.nodeName==="A")return d}}n.getParentNodeA=o;function v(g){var d,p=g.selection.getSelectionContainerElem();if(!(!((d=p?.elems)===null||d===void 0)&&d.length))return!1;if(p.getNodeName()==="A")return!0;var f=o(p);return!!(f&&f.nodeName==="A")}n.default=v},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(57)),o=e(t(4)),v=e(t(27));(0,a.default)(n,"__esModule",{value:!0});var g=t(2),d=t(6),p=g.__importDefault(t(135)),f=g.__importDefault(t(136)),i=function(){function u(l){this.editor=l}return u.prototype.insertImg=function(l,m,c){var h=this.editor,A=h.config,y="validate.",x=function(D,R){return R===void 0&&(R=y),h.i18next.t(R+D)},S=l.replace(//g,">");S=S.replace("'",'"');var T="";c&&(T=c.replace("'",'"'),T="data-href='"+encodeURIComponent(T)+"' ");var P="";m&&(P=m.replace(//g,">"),P=P.replace("'",'"'),P="alt='"+P+"' "),h.cmd.do("insertHTML"," '),A.linkImgCallback(l,m,c);var C=document.createElement("img");C.onload=function(){C=null},C.onerror=function(){A.customAlert(x("插入图片错误"),"error","wangEditor: "+x("插入图片错误")+","+x("图片链接")+' "'+l+'",'+x("下载链接失败")),C=null},C.onabort=function(){return C=null},C.src=l},u.prototype.uploadImg=function(l){var m=this;if(l.length){var c=this.editor,h=c.config,A="validate.",y=function(Q){return c.i18next.t(A+Q)},x=h.uploadImgServer,S=h.uploadImgShowBase64,T=h.uploadImgMaxSize,P=T/1024/1024,C=h.uploadImgMaxLength,E=h.uploadFileName,D=h.uploadImgParams,R=h.uploadImgParamsWithUrl,M=h.uploadImgHeaders,I=h.uploadImgHooks,N=h.uploadImgTimeout,B=h.withCredentials,F=h.customUploadImg;if(!(!F&&!x&&!S)){var O=[],H=[];if(d.arrForEach(l,function(V){if(V){var Q=V.name||V.type.replace("/","."),w=V.size;if(!(!Q||!w)){var G=c.config.uploadImgAccept.join("|"),X=".("+G+")$",tt=new RegExp(X,"i");if(tt.test(Q)===!1){H.push("【"+Q+"】"+y("不是图片"));return}if(TC){h.customAlert(y("一次最多上传")+C+y("张图片"),"warning");return}if(F&&typeof F=="function"){var L;F(O,(0,r.default)(L=this.insertImg).call(L,this));return}var U=new FormData;if((0,o.default)(O).call(O,function(V,Q){var w=E||V.name;O.length>1&&(w=w+(Q+1)),U.append(w,V)}),x){var z=x.split("#");x=z[0];var j=z[1]||"";(0,o.default)(d).call(d,D,function(V,Q){R&&((0,v.default)(x).call(x,"?")>0?x+="&":x+="?",x=x+V+"="+Q),U.append(V,Q)}),j&&(x+="#"+j);var K=p.default(x,{timeout:N,formData:U,headers:M,withCredentials:!!B,beforeSend:function(Q){if(I.before)return I.before(Q,c,O)},onTimeout:function(Q){h.customAlert(y("上传图片超时"),"error"),I.timeout&&I.timeout(Q,c)},onProgress:function(Q,w){var G=new f.default(c);w.lengthComputable&&(Q=w.loaded/w.total,G.show(Q))},onError:function(Q){h.customAlert(y("上传图片错误"),"error",y("上传图片错误")+","+y("服务器返回状态")+": "+Q.status),I.error&&I.error(Q,c)},onFail:function(Q,w){h.customAlert(y("上传图片失败"),"error",y("上传图片返回结果错误")+(","+y("返回结果")+": ")+w),I.fail&&I.fail(Q,c,w)},onSuccess:function(Q,w){if(I.customInsert){var G;I.customInsert((0,r.default)(G=m.insertImg).call(G,m),w,c);return}if(w.errno!="0"){h.customAlert(y("上传图片失败"),"error",y("上传图片返回结果错误")+","+y("返回结果")+" errno="+w.errno),I.fail&&I.fail(Q,c,w);return}var X=w.data;(0,o.default)(X).call(X,function(tt){typeof tt=="string"?m.insertImg(tt):m.insertImg(tt.url,tt.alt,tt.href)}),I.success&&I.success(Q,c,w)}});typeof K=="string"&&h.customAlert(K,"error");return}S&&d.arrForEach(l,function(V){var Q=m,w=new FileReader;w.readAsDataURL(V),w.onload=function(){if(this.result){var G=this.result.toString();Q.insertImg(G,G)}}})}}},u}();n.default=i},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(410)),o=e(t(4)),v=e(t(45));(0,a.default)(n,"__esModule",{value:!0}),n.dealTextNode=n.isAllTodo=n.isTodo=n.getCursorNextNode=void 0;function g(u){return u.length?u.attr("class")==="w-e-todo":!1}n.isTodo=g;function d(u){var l=u.selection.getSelectionRangeTopNodes();if(l.length!==0)return(0,r.default)(l).call(l,function(m){return g(m)})}n.isAllTodo=d;function p(u,l,m){var c;if(u.hasChildNodes()){var h=u.cloneNode(),A=!1;l.nodeValue===""&&(A=!0);var y=[];return(0,o.default)(c=u.childNodes).call(c,function(x){if(!f(x,l)&&A&&(h.appendChild(x.cloneNode(!0)),x.nodeName!=="BR"&&y.push(x)),f(x,l)){if(x.nodeType===1){var S=p(x,l,m);S&&S.textContent!==""&&h?.appendChild(S)}if(x.nodeType===3&&l.isEqualNode(x)){var T=i(x,m);h.textContent=T}A=!0}}),(0,o.default)(y).call(y,function(x){var S=x;S.remove()}),h}}n.getCursorNextNode=p;function f(u,l){return u.nodeType===3?u.nodeValue===l.nodeValue:u.contains(l)}function i(u,l,m){m===void 0&&(m=!0);var c=u.nodeValue,h=c==null?void 0:(0,v.default)(c).call(c,0,l);if(c=c==null?void 0:(0,v.default)(c).call(c,l),!m){var A=c;c=h,h=A}return u.nodeValue=h,c}n.dealTextNode=i},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(430),o=function(){function v(g){this.maxSize=g,this.isRe=!1,this.data=new r.CeilStack(g),this.revokeData=new r.CeilStack(g)}return(0,a.default)(v.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),v.prototype.resetMaxSize=function(g){this.data.resetMax(g),this.revokeData.resetMax(g)},v.prototype.save=function(g){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(g),this},v.prototype.revoke=function(g){!this.isRe&&(this.isRe=!0);var d=this.data.outstack();return d?(this.revokeData.instack(d),g(d),!0):!1},v.prototype.restore=function(g){!this.isRe&&(this.isRe=!0);var d=this.revokeData.outstack();return d?(this.data.instack(d),g(d),!0):!1},v}();n.default=o},function(s,n,t){var e=t(14),a=t(11),r=t(73);s.exports=!e&&!a(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!=7})},function(s,n,t){var e=t(11),a=/#|\.prototype\./,r=function(p,f){var i=v[o(p)];return i==d?!0:i==g?!1:typeof f=="function"?e(f):!!f},o=r.normalize=function(p){return String(p).replace(a,".").toLowerCase()},v=r.data={},g=r.NATIVE="N",d=r.POLYFILL="P";s.exports=r},function(s,n,t){var e=t(103),a=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(r){return a.call(r)}),s.exports=e.inspectSource},function(s,n,t){var e=t(8),a=t(166),r="__core-js_shared__",o=e[r]||a(r,{});s.exports=o},function(s,n,t){var e=t(105),a=t(19),r=t(16),o=t(10),v=t(43),g=o("iterator"),d=!1,p=function(){return this},f,i,u;[].keys&&(u=[].keys(),"next"in u?(i=e(e(u)),i!==Object.prototype&&(f=i)):d=!0),f==null&&(f={}),!v&&!r(f,g)&&a(f,g,p),s.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:d}},function(s,n,t){var e=t(16),a=t(31),r=t(63),o=t(168),v=r("IE_PROTO"),g=Object.prototype;s.exports=o?Object.getPrototypeOf:function(d){return d=a(d),e(d,v)?d[v]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?g:null}},function(s,n,t){var e=t(76);s.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(s,n,t){var e=t(16),a=t(30),r=t(78).indexOf,o=t(51);s.exports=function(v,g){var d=a(v),p=0,f=[],i;for(i in d)!e(o,i)&&e(d,i)&&f.push(i);for(;g.length>p;)e(d,i=g[p++])&&(~r(f,i)||f.push(i));return f}},function(s,n,t){var e=t(36);s.exports=e("document","documentElement")},function(s,n,t){var e=t(8);s.exports=e.Promise},function(s,n,t){var e=t(53);s.exports=function(a,r,o){for(var v in r)o&&o.unsafe&&a[v]?a[v]=r[v]:e(a,v,r[v],o);return a}},function(s,n,t){var e=t(36),a=t(18),r=t(10),o=t(14),v=r("species");s.exports=function(g){var d=e(g),p=a.f;o&&d&&!d[v]&&p(d,v,{configurable:!0,get:function(){return this}})}},function(s,n,t){var e=t(10),a=t(44),r=e("iterator"),o=Array.prototype;s.exports=function(v){return v!==void 0&&(a.Array===v||o[r]===v)}},function(s,n,t){var e=t(65),a=t(44),r=t(10),o=r("iterator");s.exports=function(v){if(v!=null)return v[o]||v["@@iterator"]||a[e(v)]}},function(s,n,t){var e=t(25);s.exports=function(a,r,o,v){try{return v?r(e(o)[0],o[1]):r(o)}catch(d){var g=a.return;throw g!==void 0&&e(g.call(a)),d}}},function(s,n,t){var e=t(10),a=e("iterator"),r=!1;try{var o=0,v={next:function(){return{done:!!o++}},return:function(){r=!0}};v[a]=function(){return this},Array.from(v,function(){throw 2})}catch{}s.exports=function(g,d){if(!d&&!r)return!1;var p=!1;try{var f={};f[a]=function(){return{next:function(){return{done:p=!0}}}},g(f)}catch{}return p}},function(s,n,t){var e=t(25),a=t(41),r=t(10),o=r("species");s.exports=function(v,g){var d=e(v).constructor,p;return d===void 0||(p=e(d)[o])==null?g:a(p)}},function(s,n,t){var e=t(8),a=t(11),r=t(34),o=t(40),v=t(108),g=t(73),d=t(118),p=e.location,f=e.setImmediate,i=e.clearImmediate,u=e.process,l=e.MessageChannel,m=e.Dispatch,c=0,h={},A="onreadystatechange",y,x,S,T=function(D){if(h.hasOwnProperty(D)){var R=h[D];delete h[D],R()}},P=function(D){return function(){T(D)}},C=function(D){T(D.data)},E=function(D){e.postMessage(D+"",p.protocol+"//"+p.host)};(!f||!i)&&(f=function(R){for(var M=[],I=1;arguments.length>I;)M.push(arguments[I++]);return h[++c]=function(){(typeof R=="function"?R:Function(R)).apply(void 0,M)},y(c),c},i=function(R){delete h[R]},r(u)=="process"?y=function(D){u.nextTick(P(D))}:m&&m.now?y=function(D){m.now(P(D))}:l&&!d?(x=new l,S=x.port2,x.port1.onmessage=C,y=o(S.postMessage,S,1)):e.addEventListener&&typeof postMessage=="function"&&!e.importScripts&&!a(E)&&p.protocol!=="file:"?(y=E,e.addEventListener("message",C,!1)):A in g("script")?y=function(D){v.appendChild(g("script"))[A]=function(){v.removeChild(this),T(D)}}:y=function(D){setTimeout(P(D),0)}),s.exports={set:f,clear:i}},function(s,n,t){var e=t(84);s.exports=/(iphone|ipod|ipad).*applewebkit/i.test(e)},function(s,n,t){var e=t(25),a=t(13),r=t(85);s.exports=function(o,v){if(e(o),a(v)&&v.constructor===o)return v;var g=r.f(o),d=g.resolve;return d(v),g.promise}},function(s,n){s.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},function(s,n,t){s.exports=t(197)},function(s,n,t){var e=t(5),a=t(8),r=t(123),o=t(11),v=t(19),g=t(66),d=t(83),p=t(13),f=t(37),i=t(18).f,u=t(32).forEach,l=t(14),m=t(42),c=m.set,h=m.getterFor;s.exports=function(A,y,x){var S=A.indexOf("Map")!==-1,T=A.indexOf("Weak")!==-1,P=S?"set":"add",C=a[A],E=C&&C.prototype,D={},R;if(!l||typeof C!="function"||!(T||E.forEach&&!o(function(){new C().entries().next()})))R=x.getConstructor(y,A,S,P),r.REQUIRED=!0;else{R=y(function(I,N){c(d(I,R,A),{type:A,collection:new C}),N!=null&&g(N,I[P],I,S)});var M=h(A);u(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(I){var N=I=="add"||I=="set";I in E&&!(T&&I=="clear")&&v(R.prototype,I,function(B,F){var O=M(this).collection;if(!N&&T&&!p(B))return I=="get"?void 0:!1;var H=O[I](B===0?0:B,F);return N?this:H})}),T||i(R.prototype,"size",{configurable:!0,get:function(){return M(this).collection.size}})}return f(R,A,!1,!0),D[A]=R,e({global:!0,forced:!0},D),T||x.setStrong(R,A,S),R}},function(s,n,t){var e=t(51),a=t(13),r=t(16),o=t(18).f,v=t(64),g=t(200),d=v("meta"),p=0,f=Object.isExtensible||function(){return!0},i=function(h){o(h,d,{value:{objectID:"O"+ ++p,weakData:{}}})},u=function(h,A){if(!a(h))return typeof h=="symbol"?h:(typeof h=="string"?"S":"P")+h;if(!r(h,d)){if(!f(h))return"F";if(!A)return"E";i(h)}return h[d].objectID},l=function(h,A){if(!r(h,d)){if(!f(h))return!0;if(!A)return!1;i(h)}return h[d].weakData},m=function(h){return g&&c.REQUIRED&&f(h)&&!r(h,d)&&i(h),h},c=s.exports={REQUIRED:!1,fastKey:u,getWeakData:l,onFreeze:m};e[d]=!0},function(s,n,t){var e=t(18).f,a=t(77),r=t(110),o=t(40),v=t(83),g=t(66),d=t(75),p=t(111),f=t(14),i=t(123).fastKey,u=t(42),l=u.set,m=u.getterFor;s.exports={getConstructor:function(c,h,A,y){var x=c(function(C,E){v(C,x,h),l(C,{type:h,index:a(null),first:void 0,last:void 0,size:0}),f||(C.size=0),E!=null&&g(E,C[y],C,A)}),S=m(h),T=function(C,E,D){var R=S(C),M=P(C,E),I,N;return M?M.value=D:(R.last=M={index:N=i(E,!0),key:E,value:D,previous:I=R.last,next:void 0,removed:!1},R.first||(R.first=M),I&&(I.next=M),f?R.size++:C.size++,N!=="F"&&(R.index[N]=M)),C},P=function(C,E){var D=S(C),R=i(E),M;if(R!=="F")return D.index[R];for(M=D.first;M;M=M.next)if(M.key==E)return M};return r(x.prototype,{clear:function(){for(var E=this,D=S(E),R=D.index,M=D.first;M;)M.removed=!0,M.previous&&(M.previous=M.previous.next=void 0),delete R[M.index],M=M.next;D.first=D.last=void 0,f?D.size=0:E.size=0},delete:function(C){var E=this,D=S(E),R=P(E,C);if(R){var M=R.next,I=R.previous;delete D.index[R.index],R.removed=!0,I&&(I.next=M),M&&(M.previous=I),D.first==R&&(D.first=M),D.last==R&&(D.last=I),f?D.size--:E.size--}return!!R},forEach:function(E){for(var D=S(this),R=o(E,arguments.length>1?arguments[1]:void 0,3),M;M=M?M.next:D.first;)for(R(M.value,M.key,this);M&&M.removed;)M=M.previous},has:function(E){return!!P(this,E)}}),r(x.prototype,A?{get:function(E){var D=P(this,E);return D&&D.value},set:function(E,D){return T(this,E===0?0:E,D)}}:{add:function(E){return T(this,E=E===0?0:E,E)}}),f&&e(x.prototype,"size",{get:function(){return S(this).size}}),x},setStrong:function(c,h,A){var y=h+" Iterator",x=m(h),S=m(y);d(c,h,function(T,P){l(this,{type:y,target:T,state:x(T),kind:P,last:void 0})},function(){for(var T=S(this),P=T.kind,C=T.last;C&&C.removed;)C=C.previous;return!T.target||!(T.last=C=C?C.next:T.state.first)?(T.target=void 0,{value:void 0,done:!0}):P=="keys"?{value:C.key,done:!1}:P=="values"?{value:C.value,done:!1}:{value:[C.key,C.value],done:!1}},A?"entries":"values",!A,!0),p(h)}}},function(s,n,t){var e=t(12);e("iterator")},function(s,n,t){var e=t(107),a=t(80),r=a.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(v){return e(v,r)}},function(s,n){n.f=Object.getOwnPropertySymbols},function(s,n,t){s.exports=t(268)},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.default={zIndex:1e4}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.default={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0}),n.getPasteImgs=n.getPasteHtml=n.getPasteText=void 0;var o=t(2),v=t(6),g=o.__importDefault(t(292));function d(i){var u=i.clipboardData,l="";return u==null?l=window.clipboardData&&window.clipboardData.getData("text"):l=u.getData("text/plain"),v.replaceHtmlSymbol(l)}n.getPasteText=d;function p(i,u,l){u===void 0&&(u=!0),l===void 0&&(l=!1);var m=i.clipboardData,c="";if(m&&(c=m.getData("text/html")),!c){var h=d(i);if(!h)return"";c=""+h+"
"}return c=c.replace(/<(\d)/gm,function(A,y){return"<"+y}),c=c.replace(/<(\/?meta.*?)>/gim,""),c=g.default(c,u,l),c}n.getPasteHtml=p;function f(i){var u,l=[],m=d(i);if(m)return l;var c=(u=i.clipboardData)===null||u===void 0?void 0:u.items;return c&&(0,r.default)(v).call(v,c,function(h,A){var y=A.type;/image/i.test(y)&&l.push(A.getAsFile())}),l}n.getPasteImgs=f},function(s,n,t){s.exports=t(294)},function(s,n,t){s.exports=t(310)},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4)),o=e(t(46));(0,a.default)(n,"__esModule",{value:!0});var v=t(2),g=v.__importDefault(t(3)),d=t(7),p=function(){function f(i,u){var l=this;this.hideTimeoutId=0,this.menu=i,this.conf=u;var m=g.default('
'),c=g.default(""+u.title+"
");c.addClass("w-e-dp-title"),m.append(c);var h=u.list||[],A=u.type||"list",y=u.clickHandler||d.EMPTY_FN,x=g.default('');(0,r.default)(h).call(h,function(S){var T=S.$elem,P=S.value,C=g.default(' ');T&&(C.append(T),x.append(C),C.on("click",function(E){y(P),E.stopPropagation(),l.hideTimeoutId=(0,o.default)(function(){l.hide()})}))}),m.append(x),m.on("mouseleave",function(){l.hideTimeoutId=(0,o.default)(function(){l.hide()})}),this.$container=m,this.rendered=!1,this._show=!1}return f.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var i=this.menu,u=i.$elem,l=this.$container;if(!this._show){if(this.rendered)l.show();else{var m=u.getBoundingClientRect().height||0,c=this.conf.width||100;l.css("margin-top",m+"px").css("width",c+"px"),u.append(l),this.rendered=!0}this._show=!0}},f.prototype.hide=function(){var i=this.$container;this._show&&(i.hide(),this._show=!1)},(0,a.default)(f.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),f}();n.default=p},function(s,n,t){var e=t(0),a=e(t(92)),r=e(t(1)),o=e(t(4));(0,r.default)(n,"__esModule",{value:!0});var v=t(6);function g(d,p){var f=new XMLHttpRequest;if(f.open("POST",d),f.timeout=p.timeout||10*1e3,f.ontimeout=function(){console.error("wangEditor - 请求超时"),p.onTimeout&&p.onTimeout(f)},f.upload&&(f.upload.onprogress=function(u){var l=u.loaded/u.total;p.onProgress&&p.onProgress(l,u)}),p.headers&&(0,o.default)(v).call(v,p.headers,function(u,l){f.setRequestHeader(u,l)}),f.withCredentials=!!p.withCredentials,p.beforeSend){var i=p.beforeSend(f);if(i&&(0,a.default)(i)==="object"&&i.prevent)return i.msg}return f.onreadystatechange=function(){if(f.readyState===4){var u=f.status;if(!(u<200)&&!(u>=300&&u<400)){if(u>=400){console.error("wangEditor - XHR 报错,状态码 "+u),p.onError&&p.onError(f);return}var l=f.responseText,m;if((0,a.default)(l)!=="object")try{m=JSON.parse(l)}catch{console.error("wangEditor - 返回结果不是 JSON 格式",l),p.onFail&&p.onFail(f,l);return}else m=l;p.onSuccess(f,m)}}},f.send(p.formData||null),f}n.default=g},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(342)),o=e(t(46));(0,a.default)(n,"__esModule",{value:!0});var v=t(2),g=v.__importDefault(t(3)),d=function(){function p(f){this.editor=f,this.$textContainer=f.$textContainerElem,this.$bar=g.default('
'),this.isShow=!1,this.time=0,this.timeoutId=0}return p.prototype.show=function(f){var i=this;if(!this.isShow){this.isShow=!0;var u=this.$bar,l=this.$textContainer;l.append(u),(0,r.default)()-this.time>100&&f<=1&&(u.css("width",f*100+"%"),this.time=(0,r.default)());var m=this.timeoutId;m&&clearTimeout(m),this.timeoutId=(0,o.default)(function(){i.hide()},500)}},p.prototype.hide=function(){var f=this.$bar;f.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},p}();n.default=d},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.ListType=void 0;var r=t(2),o=r.__importDefault(t(3)),v=r.__importDefault(t(24)),g=t(47),d=r.__importStar(t(371)),p;(function(i){i.OrderedList="OL",i.UnorderedList="UL"})(p=n.ListType||(n.ListType={}));var f=function(i){r.__extends(u,i);function u(l){var m=this,c=o.default(``),h={width:130,title:"序列",type:"list",list:[{$elem:o.default(`
+
+
+ `+l.i18next.t("menus.dropListMenu.list.无序列表")+`
+
`),value:p.UnorderedList},{$elem:o.default(`
+
+ `+l.i18next.t("menus.dropListMenu.list.有序列表")+`
+
`),value:p.OrderedList}],clickHandler:function(y){m.command(y)}};return m=i.call(this,c,l,h)||this,m}return u.prototype.command=function(l){var m=this.editor,c=m.selection.getSelectionContainerElem();c!==void 0&&(this.handleSelectionRangeNodes(l),this.tryChangeActive())},u.prototype.validator=function(l,m,c){return!(!l.length||!m.length||c.equal(l)||c.equal(m))},u.prototype.handleSelectionRangeNodes=function(l){var m=this.editor,c=m.selection,h=l.toLowerCase(),A=c.getSelectionContainerElem(),y=c.getSelectionStartElem().getNodeTop(m),x=c.getSelectionEndElem().getNodeTop(m);if(this.validator(y,x,m.$textElem)){var S=c.getRange(),T=S?.collapsed;m.$textElem.equal(A)||(A=A.getNodeTop(m));var P={editor:m,listType:l,listTarget:h,$selectionElem:A,$startElem:y,$endElem:x},C;this.isOrderElem(A)?C=d.ClassType.Wrap:this.isOrderElem(y)&&this.isOrderElem(x)?C=d.ClassType.Join:this.isOrderElem(y)?C=d.ClassType.StartJoin:this.isOrderElem(x)?C=d.ClassType.EndJoin:C=d.ClassType.Other;var E=new d.default(d.createListHandle(C,P,S));g.updateRange(m,E.getSelectionRangeElem(),!!T)}},u.prototype.isOrderElem=function(l){var m=l.getNodeName();return m===p.OrderedList||m===p.UnorderedList},u.prototype.tryChangeActive=function(){},u}(v.default);n.default=f},function(s,n,t){s.exports=t(395)},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});function r(o){var v=o.selection.getSelectionContainerElem();return v?.length?!!(v.getNodeName()=="CODE"||v.getNodeName()=="PRE"||v.parent().getNodeName()=="CODE"||v.parent().getNodeName()=="PRE"||/hljs/.test(v.parent().attr("class"))):!1}n.default=r},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(29));(0,a.default)(n,"__esModule",{value:!0}),n.todo=void 0;var o=t(2),v=o.__importDefault(t(3)),g=function(){function p(f){var i;this.template='
',this.checked=!1,this.$todo=v.default(this.template),this.$child=(i=f?.childNodes())===null||i===void 0?void 0:i.clone(!0)}return p.prototype.init=function(){var f=this.$child,i=this.getInputContainer();f&&f.insertAfter(i)},p.prototype.getInput=function(){var f=this.$todo,i=(0,r.default)(f).call(f,"input");return i},p.prototype.getInputContainer=function(){var f=this.getInput().parent();return f},p.prototype.getTodo=function(){return this.$todo},p}();n.todo=g;function d(p){var f=new g(p);return f.init(),f}n.default=d},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2);t(146),t(148),t(152),t(154),t(156),t(158),t(160);var o=r.__importDefault(t(87));r.__exportStar(t(442),n);try{}catch{throw new Error("请在浏览器环境下运行")}n.default=o.default},function(s,n,t){var e=t(143);s.exports=e},function(s,n,t){t(144);var e=t(9),a=e.Object,r=s.exports=function(v,g,d){return a.defineProperty(v,g,d)};a.defineProperty.sham&&(r.sham=!0)},function(s,n,t){var e=t(5),a=t(14),r=t(18);e({target:"Object",stat:!0,forced:!a,sham:!a},{defineProperty:r.f})},function(s,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{typeof window=="object"&&(t=window)}s.exports=t},function(s,n,t){var e=t(20),a=t(147);a=a.__esModule?a.default:a,typeof a=="string"&&(a=[[s.i,a,""]]);var r={};r.insert="head",r.singleton=!1,e(a,r),s.exports=a.locals||{}},function(s,n,t){var e=t(21);n=e(!1),n.push([s.i,`.w-e-toolbar,
+.w-e-text-container,
+.w-e-menu-panel {
+ padding: 0;
+ margin: 0;
+ box-sizing: border-box;
+ background-color: #fff;
+ /*表情菜单样式*/
+ /*分割线样式*/
+}
+.w-e-toolbar h1,
+.w-e-text-container h1,
+.w-e-menu-panel h1 {
+ font-size: 32px !important;
+}
+.w-e-toolbar h2,
+.w-e-text-container h2,
+.w-e-menu-panel h2 {
+ font-size: 24px !important;
+}
+.w-e-toolbar h3,
+.w-e-text-container h3,
+.w-e-menu-panel h3 {
+ font-size: 18.72px !important;
+}
+.w-e-toolbar h4,
+.w-e-text-container h4,
+.w-e-menu-panel h4 {
+ font-size: 16px !important;
+}
+.w-e-toolbar h5,
+.w-e-text-container h5,
+.w-e-menu-panel h5 {
+ font-size: 13.28px !important;
+}
+.w-e-toolbar p,
+.w-e-text-container p,
+.w-e-menu-panel p {
+ font-size: 16px !important;
+}
+.w-e-toolbar .eleImg,
+.w-e-text-container .eleImg,
+.w-e-menu-panel .eleImg {
+ cursor: pointer;
+ display: inline-block;
+ font-size: 18px;
+ padding: 0 3px;
+}
+.w-e-toolbar *,
+.w-e-text-container *,
+.w-e-menu-panel * {
+ padding: 0;
+ margin: 0;
+ box-sizing: border-box;
+}
+.w-e-toolbar hr,
+.w-e-text-container hr,
+.w-e-menu-panel hr {
+ cursor: pointer;
+ display: block;
+ height: 0px;
+ border: 0;
+ border-top: 3px solid #ccc;
+ margin: 20px 0;
+}
+.w-e-clear-fix:after {
+ content: "";
+ display: table;
+ clear: both;
+}
+.w-e-drop-list-item {
+ position: relative;
+ top: 1px;
+ padding-right: 7px;
+ color: #333 !important;
+}
+.w-e-drop-list-tl {
+ padding-left: 10px;
+ text-align: left;
+}
+`,""]),s.exports=n},function(s,n,t){var e=t(20),a=t(149);a=a.__esModule?a.default:a,typeof a=="string"&&(a=[[s.i,a,""]]);var r={};r.insert="head",r.singleton=!1,e(a,r),s.exports=a.locals||{}},function(s,n,t){var e=t(21),a=t(150),r=t(151);n=e(!1);var o=a(r);n.push([s.i,`@font-face {
+ font-family: 'w-e-icon';
+ src: url(`+o+`) format('truetype');
+ font-weight: normal;
+ font-style: normal;
+}
+[class^="w-e-icon-"],
+[class*=" w-e-icon-"] {
+ /* use !important to prevent issues with browser extensions that change fonts */
+ font-family: 'w-e-icon' !important;
+ speak: none;
+ font-style: normal;
+ font-weight: normal;
+ font-variant: normal;
+ text-transform: none;
+ line-height: 1;
+ /* Better Font Rendering =========== */
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+.w-e-icon-close:before {
+ content: "\\f00d";
+}
+.w-e-icon-upload2:before {
+ content: "\\e9c6";
+}
+.w-e-icon-trash-o:before {
+ content: "\\f014";
+}
+.w-e-icon-header:before {
+ content: "\\f1dc";
+}
+.w-e-icon-pencil2:before {
+ content: "\\e906";
+}
+.w-e-icon-paint-brush:before {
+ content: "\\f1fc";
+}
+.w-e-icon-image:before {
+ content: "\\e90d";
+}
+.w-e-icon-play:before {
+ content: "\\e912";
+}
+.w-e-icon-location:before {
+ content: "\\e947";
+}
+.w-e-icon-undo:before {
+ content: "\\e965";
+}
+.w-e-icon-redo:before {
+ content: "\\e966";
+}
+.w-e-icon-quotes-left:before {
+ content: "\\e977";
+}
+.w-e-icon-list-numbered:before {
+ content: "\\e9b9";
+}
+.w-e-icon-list2:before {
+ content: "\\e9bb";
+}
+.w-e-icon-link:before {
+ content: "\\e9cb";
+}
+.w-e-icon-happy:before {
+ content: "\\e9df";
+}
+.w-e-icon-bold:before {
+ content: "\\ea62";
+}
+.w-e-icon-underline:before {
+ content: "\\ea63";
+}
+.w-e-icon-italic:before {
+ content: "\\ea64";
+}
+.w-e-icon-strikethrough:before {
+ content: "\\ea65";
+}
+.w-e-icon-table2:before {
+ content: "\\ea71";
+}
+.w-e-icon-paragraph-left:before {
+ content: "\\ea77";
+}
+.w-e-icon-paragraph-center:before {
+ content: "\\ea78";
+}
+.w-e-icon-paragraph-right:before {
+ content: "\\ea79";
+}
+.w-e-icon-paragraph-justify:before {
+ content: "\\ea7a";
+}
+.w-e-icon-terminal:before {
+ content: "\\f120";
+}
+.w-e-icon-page-break:before {
+ content: "\\ea68";
+}
+.w-e-icon-cancel-circle:before {
+ content: "\\ea0d";
+}
+.w-e-icon-font:before {
+ content: "\\ea5c";
+}
+.w-e-icon-text-heigh:before {
+ content: "\\ea5f";
+}
+.w-e-icon-paint-format:before {
+ content: "\\e90c";
+}
+.w-e-icon-indent-increase:before {
+ content: "\\ea7b";
+}
+.w-e-icon-indent-decrease:before {
+ content: "\\ea7c";
+}
+.w-e-icon-row-height:before {
+ content: "\\e9be";
+}
+.w-e-icon-fullscreen_exit:before {
+ content: "\\e900";
+}
+.w-e-icon-fullscreen:before {
+ content: "\\e901";
+}
+.w-e-icon-split-line:before {
+ content: "\\ea0b";
+}
+.w-e-icon-checkbox-checked:before {
+ content: "\\ea52";
+}
+`,""]),s.exports=n},function(s,n,t){s.exports=function(e,a){return a||(a={}),e=e&&e.__esModule?e.default:e,typeof e!="string"?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),a.hash&&(e+=a.hash),/["'() \t\n]/.test(e)||a.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(s,n,t){t.r(n),n.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(s,n,t){var e=t(20),a=t(153);a=a.__esModule?a.default:a,typeof a=="string"&&(a=[[s.i,a,""]]);var r={};r.insert="head",r.singleton=!1,e(a,r),s.exports=a.locals||{}},function(s,n,t){var e=t(21);n=e(!1),n.push([s.i,`.w-e-toolbar {
+ display: flex;
+ padding: 0 6px;
+ flex-wrap: wrap;
+ position: relative;
+ /* 单个菜单 */
+}
+.w-e-toolbar .w-e-menu {
+ position: relative;
+ display: flex;
+ width: 40px;
+ height: 40px;
+ align-items: center;
+ justify-content: center;
+ text-align: center;
+ cursor: pointer;
+}
+.w-e-toolbar .w-e-menu i {
+ color: #999;
+}
+.w-e-toolbar .w-e-menu:hover {
+ background-color: #F6F6F6;
+}
+.w-e-toolbar .w-e-menu:hover i {
+ color: #333;
+}
+.w-e-toolbar .w-e-active i {
+ color: #1e88e5;
+}
+.w-e-toolbar .w-e-active:hover i {
+ color: #1e88e5;
+}
+.w-e-menu-tooltip {
+ position: absolute;
+ display: flex;
+ color: #f1f1f1;
+ background-color: rgba(0, 0, 0, 0.75);
+ box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
+ border-radius: 4px;
+ padding: 4px 5px 6px;
+ justify-content: center;
+ align-items: center;
+}
+.w-e-menu-tooltip-up::after {
+ content: "";
+ position: absolute;
+ top: 100%;
+ left: 50%;
+ margin-left: -5px;
+ border: 5px solid rgba(0, 0, 0, 0);
+ border-top-color: rgba(0, 0, 0, 0.73);
+}
+.w-e-menu-tooltip-down::after {
+ content: "";
+ position: absolute;
+ bottom: 100%;
+ left: 50%;
+ margin-left: -5px;
+ border: 5px solid rgba(0, 0, 0, 0);
+ border-bottom-color: rgba(0, 0, 0, 0.73);
+}
+.w-e-menu-tooltip-item-wrapper {
+ font-size: 14px;
+ margin: 0 5px;
+}
+`,""]),s.exports=n},function(s,n,t){var e=t(20),a=t(155);a=a.__esModule?a.default:a,typeof a=="string"&&(a=[[s.i,a,""]]);var r={};r.insert="head",r.singleton=!1,e(a,r),s.exports=a.locals||{}},function(s,n,t){var e=t(21);n=e(!1),n.push([s.i,`.w-e-text-container {
+ position: relative;
+ height: 100%;
+}
+.w-e-text-container .w-e-progress {
+ position: absolute;
+ background-color: #1e88e5;
+ top: 0;
+ left: 0;
+ height: 1px;
+}
+.w-e-text-container .placeholder {
+ color: #D4D4D4;
+ position: absolute;
+ font-size: 11pt;
+ line-height: 22px;
+ left: 10px;
+ top: 10px;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ z-index: -1;
+}
+.w-e-text {
+ padding: 0 10px;
+ overflow-y: auto;
+}
+.w-e-text p,
+.w-e-text h1,
+.w-e-text h2,
+.w-e-text h3,
+.w-e-text h4,
+.w-e-text h5,
+.w-e-text table,
+.w-e-text pre {
+ margin: 10px 0;
+ line-height: 1.5;
+}
+.w-e-text ul,
+.w-e-text ol {
+ margin: 10px 0 10px 20px;
+}
+.w-e-text blockquote {
+ display: block;
+ border-left: 8px solid #d0e5f2;
+ padding: 5px 10px;
+ margin: 10px 0;
+ line-height: 1.4;
+ font-size: 100%;
+ background-color: #f1f1f1;
+}
+.w-e-text code {
+ display: inline-block;
+ background-color: #f1f1f1;
+ border-radius: 3px;
+ padding: 3px 5px;
+ margin: 0 3px;
+}
+.w-e-text pre code {
+ display: block;
+}
+.w-e-text table {
+ border-top: 1px solid #ccc;
+ border-left: 1px solid #ccc;
+}
+.w-e-text table td,
+.w-e-text table th {
+ border-bottom: 1px solid #ccc;
+ border-right: 1px solid #ccc;
+ padding: 3px 5px;
+ min-height: 30px;
+ height: 30px;
+}
+.w-e-text table th {
+ border-bottom: 2px solid #ccc;
+ text-align: center;
+ background-color: #f1f1f1;
+}
+.w-e-text:focus {
+ outline: none;
+}
+.w-e-text img {
+ cursor: pointer;
+}
+.w-e-text img:hover {
+ box-shadow: 0 0 5px #333;
+}
+.w-e-text .w-e-todo {
+ margin: 0 0 0 20px;
+}
+.w-e-text .w-e-todo li {
+ list-style: none;
+ font-size: 1em;
+}
+.w-e-text .w-e-todo li span:nth-child(1) {
+ position: relative;
+ left: -18px;
+}
+.w-e-text .w-e-todo li span:nth-child(1) input {
+ position: absolute;
+ margin-right: 3px;
+}
+.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {
+ top: 50%;
+ margin-top: -6px;
+}
+.w-e-tooltip {
+ position: absolute;
+ display: flex;
+ color: #f1f1f1;
+ background-color: rgba(0, 0, 0, 0.75);
+ box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
+ border-radius: 4px;
+ padding: 4px 5px 6px;
+ justify-content: center;
+ align-items: center;
+}
+.w-e-tooltip-up::after {
+ content: "";
+ position: absolute;
+ top: 100%;
+ left: 50%;
+ margin-left: -5px;
+ border: 5px solid rgba(0, 0, 0, 0);
+ border-top-color: rgba(0, 0, 0, 0.73);
+}
+.w-e-tooltip-down::after {
+ content: "";
+ position: absolute;
+ bottom: 100%;
+ left: 50%;
+ margin-left: -5px;
+ border: 5px solid rgba(0, 0, 0, 0);
+ border-bottom-color: rgba(0, 0, 0, 0.73);
+}
+.w-e-tooltip-item-wrapper {
+ cursor: pointer;
+ font-size: 14px;
+ margin: 0 5px;
+}
+.w-e-tooltip-item-wrapper:hover {
+ color: #ccc;
+ text-decoration: underline;
+}
+`,""]),s.exports=n},function(s,n,t){var e=t(20),a=t(157);a=a.__esModule?a.default:a,typeof a=="string"&&(a=[[s.i,a,""]]);var r={};r.insert="head",r.singleton=!1,e(a,r),s.exports=a.locals||{}},function(s,n,t){var e=t(21);n=e(!1),n.push([s.i,`.w-e-menu .w-e-panel-container {
+ position: absolute;
+ top: 0;
+ left: 50%;
+ border: 1px solid #ccc;
+ border-top: 0;
+ box-shadow: 1px 1px 2px #ccc;
+ color: #333;
+ background-color: #fff;
+ text-align: left;
+ /* 为 emotion panel 定制的样式 */
+ /* 上传图片、上传视频的 panel 定制样式 */
+}
+.w-e-menu .w-e-panel-container .w-e-panel-close {
+ position: absolute;
+ right: 0;
+ top: 0;
+ padding: 5px;
+ margin: 2px 5px 0 0;
+ cursor: pointer;
+ color: #999;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-close:hover {
+ color: #333;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-title {
+ list-style: none;
+ display: flex;
+ font-size: 14px;
+ margin: 2px 10px 0 10px;
+ border-bottom: 1px solid #f1f1f1;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {
+ padding: 3px 5px;
+ color: #999;
+ cursor: pointer;
+ margin: 0 3px;
+ position: relative;
+ top: 1px;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {
+ color: #333;
+ border-bottom: 1px solid #333;
+ cursor: default;
+ font-weight: 700;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content {
+ padding: 10px 15px 10px 15px;
+ font-size: 16px;
+ /* 输入框的样式 */
+ /* 按钮的样式 */
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {
+ outline: none;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {
+ width: 100%;
+ border: 1px solid #ccc;
+ padding: 5px;
+ margin-top: 10px;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {
+ border-color: #1e88e5;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {
+ border: none;
+ border-bottom: 1px solid #ccc;
+ font-size: 14px;
+ height: 20px;
+ color: #333;
+ text-align: left;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {
+ width: 30px;
+ text-align: center;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {
+ display: block;
+ width: 100%;
+ margin: 10px 0;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {
+ border-bottom: 2px solid #1e88e5;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {
+ font-size: 14px;
+ color: #1e88e5;
+ border: none;
+ padding: 5px 10px;
+ background-color: #fff;
+ cursor: pointer;
+ border-radius: 3px;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {
+ float: left;
+ margin-right: 10px;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {
+ float: right;
+ margin-left: 10px;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {
+ color: #999;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {
+ color: #c24f4a;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {
+ background-color: #f1f1f1;
+}
+.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {
+ content: "";
+ display: table;
+ clear: both;
+}
+.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {
+ cursor: pointer;
+ font-size: 18px;
+ padding: 0 3px;
+ display: inline-block;
+}
+.w-e-menu .w-e-panel-container .w-e-up-img-container,
+.w-e-menu .w-e-panel-container .w-e-up-video-container {
+ text-align: center;
+}
+.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,
+.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {
+ display: inline-block;
+ color: #999;
+ cursor: pointer;
+ font-size: 60px;
+ line-height: 1;
+}
+.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,
+.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {
+ color: #333;
+}
+`,""]),s.exports=n},function(s,n,t){var e=t(20),a=t(159);a=a.__esModule?a.default:a,typeof a=="string"&&(a=[[s.i,a,""]]);var r={};r.insert="head",r.singleton=!1,e(a,r),s.exports=a.locals||{}},function(s,n,t){var e=t(21);n=e(!1),n.push([s.i,`.w-e-toolbar .w-e-droplist {
+ position: absolute;
+ left: 0;
+ top: 0;
+ background-color: #fff;
+ border: 1px solid #f1f1f1;
+ border-right-color: #ccc;
+ border-bottom-color: #ccc;
+}
+.w-e-toolbar .w-e-droplist .w-e-dp-title {
+ text-align: center;
+ color: #999;
+ line-height: 2;
+ border-bottom: 1px solid #f1f1f1;
+ font-size: 13px;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-list {
+ list-style: none;
+ line-height: 1;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {
+ color: #333;
+ padding: 5px 0;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {
+ background-color: #f1f1f1;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-block {
+ list-style: none;
+ text-align: left;
+ padding: 5px;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {
+ display: inline-block;
+ padding: 3px 5px;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {
+ background-color: #f1f1f1;
+}
+`,""]),s.exports=n},function(s,n,t){var e=t(0),a=e(t(161));Element.prototype.matches||(Element.prototype.matches=function(r){var o=this.ownerDocument.querySelectorAll(r),v=o.length;for(v;v>=0&&o.item(v)!==this;v--);return v>-1}),a.default||(window.Promise=a.default)},function(s,n,t){s.exports=t(162)},function(s,n,t){var e=t(163);s.exports=e},function(s,n,t){t(61),t(50),t(54),t(175),t(178),t(179);var e=t(9);s.exports=e.Promise},function(s,n,t){var e=t(62),a=t(49),r=function(o){return function(v,g){var d=String(a(v)),p=e(g),f=d.length,i,u;return p<0||p>=f?o?"":void 0:(i=d.charCodeAt(p),i<55296||i>56319||p+1===f||(u=d.charCodeAt(p+1))<56320||u>57343?o?d.charAt(p):i:o?d.slice(p,p+2):(i-55296<<10)+(u-56320)+65536)}};s.exports={codeAt:r(!1),charAt:r(!0)}},function(s,n,t){var e=t(8),a=t(102),r=e.WeakMap;s.exports=typeof r=="function"&&/native code/.test(a(r))},function(s,n,t){var e=t(8),a=t(19);s.exports=function(r,o){try{a(e,r,o)}catch{e[r]=o}return o}},function(s,n,t){var e=t(104).IteratorPrototype,a=t(77),r=t(48),o=t(37),v=t(44),g=function(){return this};s.exports=function(d,p,f){var i=p+" Iterator";return d.prototype=a(e,{next:r(1,f)}),o(d,i,!1,!0),v[i]=g,d}},function(s,n,t){var e=t(11);s.exports=!e(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},function(s,n,t){var e=t(14),a=t(18),r=t(25),o=t(52);s.exports=e?Object.defineProperties:function(g,d){r(g);for(var p=o(d),f=p.length,i=0,u;f>i;)a.f(g,u=p[i++],d[u]);return g}},function(s,n,t){var e=t(81),a=t(65);s.exports=e?{}.toString:function(){return"[object "+a(this)+"]"}},function(s,n,t){var e=t(25),a=t(172);s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,o={},v;try{v=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,v.call(o,[]),r=o instanceof Array}catch{}return function(d,p){return e(d),a(p),r?v.call(d,p):d.__proto__=p,d}}():void 0)},function(s,n,t){var e=t(13);s.exports=function(a){if(!e(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype");return a}},function(s,n,t){var e=t(30),a=t(82),r=t(44),o=t(42),v=t(75),g="Array Iterator",d=o.set,p=o.getterFor(g);s.exports=v(Array,"Array",function(f,i){d(this,{type:g,target:e(f),index:0,kind:i})},function(){var f=p(this),i=f.target,u=f.kind,l=f.index++;return!i||l>=i.length?(f.target=void 0,{value:void 0,done:!0}):u=="keys"?{value:l,done:!1}:u=="values"?{value:i[l],done:!1}:{value:[l,i[l]],done:!1}},"values"),r.Arguments=r.Array,a("keys"),a("values"),a("entries")},function(s,n){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(s,n,t){var e=t(5),a=t(43),r=t(8),o=t(36),v=t(109),g=t(53),d=t(110),p=t(37),f=t(111),i=t(13),u=t(41),l=t(83),m=t(34),c=t(102),h=t(66),A=t(115),y=t(116),x=t(117).set,S=t(176),T=t(119),P=t(177),C=t(85),E=t(120),D=t(42),R=t(101),M=t(10),I=t(86),N=M("species"),B="Promise",F=D.get,O=D.set,H=D.getterFor(B),L=v,U=r.TypeError,z=r.document,j=r.process,K=o("fetch"),V=C.f,Q=V,w=m(j)=="process",G=!!(z&&z.createEvent&&r.dispatchEvent),X="unhandledrejection",tt="rejectionhandled",nt=0,ut=1,Rt=2,at=1,Ct=2,ht,it,ft,gt,dt=R(B,function(){var J=c(L)!==String(L);if(!J&&(I===66||!w&&typeof PromiseRejectionEvent!="function")||a&&!L.prototype.finally)return!0;if(I>=51&&/native code/.test(L))return!1;var $=L.resolve(1),Z=function(Y){Y(function(){},function(){})},q=$.constructor={};return q[N]=Z,!($.then(function(){})instanceof Z)}),Ft=dt||!A(function(J){L.all(J).catch(function(){})}),At=function(J){var $;return i(J)&&typeof($=J.then)=="function"?$:!1},mt=function(J,$,Z){if(!$.notified){$.notified=!0;var q=$.reactions;S(function(){for(var Y=$.value,b=$.state==ut,W=0;q.length>W;){var k=q[W++],_=b?k.ok:k.fail,rt=k.resolve,lt=k.reject,st=k.domain,ot,Tt,It;try{_?(b||($.rejection===Ct&&xt(J,$),$.rejection=at),_===!0?ot=Y:(st&&st.enter(),ot=_(Y),st&&(st.exit(),It=!0)),ot===k.promise?lt(U("Promise-chain cycle")):(Tt=At(ot))?Tt.call(ot,rt,lt):rt(ot)):lt(Y)}catch(Qt){st&&!It&&st.exit(),lt(Qt)}}$.reactions=[],$.notified=!1,Z&&!$.rejection&&Dt(J,$)})}},yt=function(J,$,Z){var q,Y;G?(q=z.createEvent("Event"),q.promise=$,q.reason=Z,q.initEvent(J,!1,!0),r.dispatchEvent(q)):q={promise:$,reason:Z},(Y=r["on"+J])?Y(q):J===X&&P("Unhandled promise rejection",Z)},Dt=function(J,$){x.call(r,function(){var Z=$.value,q=Et($),Y;if(q&&(Y=E(function(){w?j.emit("unhandledRejection",Z,J):yt(X,J,Z)}),$.rejection=w||Et($)?Ct:at,Y.error))throw Y.value})},Et=function(J){return J.rejection!==at&&!J.parent},xt=function(J,$){x.call(r,function(){w?j.emit("rejectionHandled",J):yt(tt,J,$.value)})},ct=function(J,$,Z,q){return function(Y){J($,Z,Y,q)}},vt=function(J,$,Z,q){$.done||($.done=!0,q&&($=q),$.value=Z,$.state=Rt,mt(J,$,!0))},pt=function(J,$,Z,q){if(!$.done){$.done=!0,q&&($=q);try{if(J===Z)throw U("Promise can't be resolved itself");var Y=At(Z);Y?S(function(){var b={done:!1};try{Y.call(Z,ct(pt,J,b,$),ct(vt,J,b,$))}catch(W){vt(J,b,W,$)}}):($.value=Z,$.state=ut,mt(J,$,!1))}catch(b){vt(J,{done:!1},b,$)}}};dt&&(L=function($){l(this,L,B),u($),ht.call(this);var Z=F(this);try{$(ct(pt,this,Z),ct(vt,this,Z))}catch(q){vt(this,Z,q)}},ht=function($){O(this,{type:B,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:nt,value:void 0})},ht.prototype=d(L.prototype,{then:function($,Z){var q=H(this),Y=V(y(this,L));return Y.ok=typeof $=="function"?$:!0,Y.fail=typeof Z=="function"&&Z,Y.domain=w?j.domain:void 0,q.parent=!0,q.reactions.push(Y),q.state!=nt&&mt(this,q,!1),Y.promise},catch:function(J){return this.then(void 0,J)}}),it=function(){var J=new ht,$=F(J);this.promise=J,this.resolve=ct(pt,J,$),this.reject=ct(vt,J,$)},C.f=V=function(J){return J===L||J===ft?new it(J):Q(J)},!a&&typeof v=="function"&&(gt=v.prototype.then,g(v.prototype,"then",function($,Z){var q=this;return new L(function(Y,b){gt.call(q,Y,b)}).then($,Z)},{unsafe:!0}),typeof K=="function"&&e({global:!0,enumerable:!0,forced:!0},{fetch:function($){return T(L,K.apply(r,arguments))}}))),e({global:!0,wrap:!0,forced:dt},{Promise:L}),p(L,B,!1,!0),f(B),ft=o(B),e({target:B,stat:!0,forced:dt},{reject:function($){var Z=V(this);return Z.reject.call(void 0,$),Z.promise}}),e({target:B,stat:!0,forced:a||dt},{resolve:function($){return T(a&&this===ft?L:this,$)}}),e({target:B,stat:!0,forced:Ft},{all:function($){var Z=this,q=V(Z),Y=q.resolve,b=q.reject,W=E(function(){var k=u(Z.resolve),_=[],rt=0,lt=1;h($,function(st){var ot=rt++,Tt=!1;_.push(void 0),lt++,k.call(Z,st).then(function(It){Tt||(Tt=!0,_[ot]=It,--lt||Y(_))},b)}),--lt||Y(_)});return W.error&&b(W.value),q.promise},race:function($){var Z=this,q=V(Z),Y=q.reject,b=E(function(){var W=u(Z.resolve);h($,function(k){W.call(Z,k).then(q.resolve,Y)})});return b.error&&Y(b.value),q.promise}})},function(s,n,t){var e=t(8),a=t(71).f,r=t(34),o=t(117).set,v=t(118),g=e.MutationObserver||e.WebKitMutationObserver,d=e.process,p=e.Promise,f=r(d)=="process",i=a(e,"queueMicrotask"),u=i&&i.value,l,m,c,h,A,y,x,S;u||(l=function(){var T,P;for(f&&(T=d.domain)&&T.exit();m;){P=m.fn,m=m.next;try{P()}catch(C){throw m?h():c=void 0,C}}c=void 0,T&&T.enter()},f?h=function(){d.nextTick(l)}:g&&!v?(A=!0,y=document.createTextNode(""),new g(l).observe(y,{characterData:!0}),h=function(){y.data=A=!A}):p&&p.resolve?(x=p.resolve(void 0),S=x.then,h=function(){S.call(x,l)}):h=function(){o.call(e,l)}),s.exports=u||function(T){var P={fn:T,next:void 0};c&&(c.next=P),m||(m=P,h()),c=P}},function(s,n,t){var e=t(8);s.exports=function(a,r){var o=e.console;o&&o.error&&(arguments.length===1?o.error(a):o.error(a,r))}},function(s,n,t){var e=t(5),a=t(41),r=t(85),o=t(120),v=t(66);e({target:"Promise",stat:!0},{allSettled:function(d){var p=this,f=r.f(p),i=f.resolve,u=f.reject,l=o(function(){var m=a(p.resolve),c=[],h=0,A=1;v(d,function(y){var x=h++,S=!1;c.push(void 0),A++,m.call(p,y).then(function(T){S||(S=!0,c[x]={status:"fulfilled",value:T},--A||i(c))},function(T){S||(S=!0,c[x]={status:"rejected",reason:T},--A||i(c))})}),--A||i(c)});return l.error&&u(l.value),f.promise}})},function(s,n,t){var e=t(5),a=t(43),r=t(109),o=t(11),v=t(36),g=t(116),d=t(119),p=t(53),f=!!r&&o(function(){r.prototype.finally.call({then:function(){}},function(){})});e({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(i){var u=g(this,v("Promise")),l=typeof i=="function";return this.then(l?function(m){return d(u,i()).then(function(){return m})}:i,l?function(m){return d(u,i()).then(function(){throw m})}:i)}}),!a&&typeof r=="function"&&!r.prototype.finally&&p(r.prototype,"finally",v("Promise").prototype.finally)},function(s,n,t){t(54);var e=t(181),a=t(65),r=Array.prototype,o={DOMTokenList:!0,NodeList:!0};s.exports=function(v){var g=v.forEach;return v===r||v instanceof Array&&g===r.forEach||o.hasOwnProperty(a(v))?e:g}},function(s,n,t){var e=t(182);s.exports=e},function(s,n,t){t(183);var e=t(15);s.exports=e("Array").forEach},function(s,n,t){var e=t(5),a=t(184);e({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},function(s,n,t){var e=t(32).forEach,a=t(67),r=t(22),o=a("forEach"),v=r("forEach");s.exports=!o||!v?function(d){return e(this,d,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(s,n,t){var e=t(186);s.exports=e},function(s,n,t){t(187);var e=t(9);s.exports=e.Array.isArray},function(s,n,t){var e=t(5),a=t(55);e({target:"Array",stat:!0},{isArray:a})},function(s,n,t){var e=t(189);s.exports=e},function(s,n,t){var e=t(190),a=Array.prototype;s.exports=function(r){var o=r.map;return r===a||r instanceof Array&&o===a.map?e:o}},function(s,n,t){t(191);var e=t(15);s.exports=e("Array").map},function(s,n,t){var e=t(5),a=t(32).map,r=t(56),o=t(22),v=r("map"),g=o("map");e({target:"Array",proto:!0,forced:!v||!g},{map:function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}})},function(s,n,t){var e=t(193);s.exports=e},function(s,n,t){var e=t(194),a=String.prototype;s.exports=function(r){var o=r.trim;return typeof r=="string"||r===a||r instanceof String&&o===a.trim?e:o}},function(s,n,t){t(195);var e=t(15);s.exports=e("String").trim},function(s,n,t){var e=t(5),a=t(90).trim,r=t(196);e({target:"String",proto:!0,forced:r("trim")},{trim:function(){return a(this)}})},function(s,n,t){var e=t(11),a=t(68),r="
";s.exports=function(o){return e(function(){return!!a[o]()||r[o]()!=r||a[o].name!==o})}},function(s,n,t){var e=t(198);s.exports=e},function(s,n,t){t(199),t(61),t(50),t(54);var e=t(9);s.exports=e.Map},function(s,n,t){var e=t(122),a=t(124);s.exports=e("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},a)},function(s,n,t){var e=t(11);s.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(s,n,t){var e=t(202);s.exports=e},function(s,n,t){var e=t(203),a=Array.prototype;s.exports=function(r){var o=r.indexOf;return r===a||r instanceof Array&&o===a.indexOf?e:o}},function(s,n,t){t(204);var e=t(15);s.exports=e("Array").indexOf},function(s,n,t){var e=t(5),a=t(78).indexOf,r=t(67),o=t(22),v=[].indexOf,g=!!v&&1/[1].indexOf(1,-0)<0,d=r("indexOf"),p=o("indexOf",{ACCESSORS:!0,1:0});e({target:"Array",proto:!0,forced:g||!d||!p},{indexOf:function(i){return g?v.apply(this,arguments)||0:a(this,i,arguments.length>1?arguments[1]:void 0)}})},function(s,n,t){var e=t(206);s.exports=e},function(s,n,t){var e=t(207),a=Array.prototype;s.exports=function(r){var o=r.splice;return r===a||r instanceof Array&&o===a.splice?e:o}},function(s,n,t){t(208);var e=t(15);s.exports=e("Array").splice},function(s,n,t){var e=t(5),a=t(79),r=t(62),o=t(35),v=t(31),g=t(88),d=t(69),p=t(56),f=t(22),i=p("splice"),u=f("splice",{ACCESSORS:!0,0:0,1:2}),l=Math.max,m=Math.min,c=9007199254740991,h="Maximum allowed length exceeded";e({target:"Array",proto:!0,forced:!i||!u},{splice:function(y,x){var S=v(this),T=o(S.length),P=a(y,T),C=arguments.length,E,D,R,M,I,N;if(C===0?E=D=0:C===1?(E=0,D=T-P):(E=C-2,D=m(l(r(x),0),T-P)),T+E-D>c)throw TypeError(h);for(R=g(S,D),M=0;MT-D+E;M--)delete S[M-1]}else if(E>D)for(M=T-D;M>P;M--)I=M+D-1,N=M+E-1,I in S?S[N]=S[I]:delete S[N];for(M=0;M1?arguments[1]:void 0)}})},function(s,n,t){var e=t(214);s.exports=e},function(s,n,t){var e=t(215),a=t(217),r=Array.prototype,o=String.prototype;s.exports=function(v){var g=v.includes;return v===r||v instanceof Array&&g===r.includes?e:typeof v=="string"||v===o||v instanceof String&&g===o.includes?a:g}},function(s,n,t){t(216);var e=t(15);s.exports=e("Array").includes},function(s,n,t){var e=t(5),a=t(78).includes,r=t(82),o=t(22),v=o("indexOf",{ACCESSORS:!0,1:0});e({target:"Array",proto:!0,forced:!v},{includes:function(d){return a(this,d,arguments.length>1?arguments[1]:void 0)}}),r("includes")},function(s,n,t){t(218);var e=t(15);s.exports=e("String").includes},function(s,n,t){var e=t(5),a=t(219),r=t(49),o=t(221);e({target:"String",proto:!0,forced:!o("includes")},{includes:function(g){return!!~String(r(this)).indexOf(a(g),arguments.length>1?arguments[1]:void 0)}})},function(s,n,t){var e=t(220);s.exports=function(a){if(e(a))throw TypeError("The method doesn't accept regular expressions");return a}},function(s,n,t){var e=t(13),a=t(34),r=t(10),o=r("match");s.exports=function(v){var g;return e(v)&&((g=v[o])!==void 0?!!g:a(v)=="RegExp")}},function(s,n,t){var e=t(10),a=e("match");s.exports=function(r){var o=/./;try{"/./"[r](o)}catch{try{return o[a]=!1,"/./"[r](o)}catch{}}return!1}},function(s,n,t){var e=t(223);s.exports=e},function(s,n,t){var e=t(224),a=Function.prototype;s.exports=function(r){var o=r.bind;return r===a||r instanceof Function&&o===a.bind?e:o}},function(s,n,t){t(225);var e=t(15);s.exports=e("Function").bind},function(s,n,t){var e=t(5),a=t(226);e({target:"Function",proto:!0},{bind:a})},function(s,n,t){var e=t(41),a=t(13),r=[].slice,o={},v=function(g,d,p){if(!(d in o)){for(var f=[],i=0;i=51||!a(function(){var S=[];return S[l]=!1,S.concat()[0]!==S}),A=f("concat"),y=function(S){if(!o(S))return!1;var T=S[l];return T!==void 0?!!T:r(S)},x=!h||!A;e({target:"Array",proto:!0,forced:x},{concat:function(T){var P=v(this),C=p(P,0),E=0,D,R,M,I,N;for(D=-1,M=arguments.length;Dm)throw TypeError(c);for(R=0;R=m)throw TypeError(c);d(C,E++,N)}return C.length=E,C}})},function(s,n,t){var e=t(5),a=t(8),r=t(36),o=t(43),v=t(14),g=t(76),d=t(106),p=t(11),f=t(16),i=t(55),u=t(13),l=t(25),m=t(31),c=t(30),h=t(60),A=t(48),y=t(77),x=t(52),S=t(126),T=t(235),P=t(127),C=t(71),E=t(18),D=t(59),R=t(19),M=t(53),I=t(74),N=t(63),B=t(51),F=t(64),O=t(10),H=t(93),L=t(12),U=t(37),z=t(42),j=t(32).forEach,K=N("hidden"),V="Symbol",Q="prototype",w=O("toPrimitive"),G=z.set,X=z.getterFor(V),tt=Object[Q],nt=a.Symbol,ut=r("JSON","stringify"),Rt=C.f,at=E.f,Ct=T.f,ht=D.f,it=I("symbols"),ft=I("op-symbols"),gt=I("string-to-symbol-registry"),dt=I("symbol-to-string-registry"),Ft=I("wks"),At=a.QObject,mt=!At||!At[Q]||!At[Q].findChild,yt=v&&p(function(){return y(at({},"a",{get:function(){return at(this,"a",{value:7}).a}})).a!=7})?function(Y,b,W){var k=Rt(tt,b);k&&delete tt[b],at(Y,b,W),k&&Y!==tt&&at(tt,b,k)}:at,Dt=function(Y,b){var W=it[Y]=y(nt[Q]);return G(W,{type:V,tag:Y,description:b}),v||(W.description=b),W},Et=d?function(Y){return typeof Y=="symbol"}:function(Y){return Object(Y)instanceof nt},xt=function(b,W,k){b===tt&&xt(ft,W,k),l(b);var _=h(W,!0);return l(k),f(it,_)?(k.enumerable?(f(b,K)&&b[K][_]&&(b[K][_]=!1),k=y(k,{enumerable:A(0,!1)})):(f(b,K)||at(b,K,A(1,{})),b[K][_]=!0),yt(b,_,k)):at(b,_,k)},ct=function(b,W){l(b);var k=c(W),_=x(k).concat(Z(k));return j(_,function(rt){(!v||pt.call(k,rt))&&xt(b,rt,k[rt])}),b},vt=function(b,W){return W===void 0?y(b):ct(y(b),W)},pt=function(b){var W=h(b,!0),k=ht.call(this,W);return this===tt&&f(it,W)&&!f(ft,W)?!1:k||!f(this,W)||!f(it,W)||f(this,K)&&this[K][W]?k:!0},J=function(b,W){var k=c(b),_=h(W,!0);if(!(k===tt&&f(it,_)&&!f(ft,_))){var rt=Rt(k,_);return rt&&f(it,_)&&!(f(k,K)&&k[K][_])&&(rt.enumerable=!0),rt}},$=function(b){var W=Ct(c(b)),k=[];return j(W,function(_){!f(it,_)&&!f(B,_)&&k.push(_)}),k},Z=function(b){var W=b===tt,k=Ct(W?ft:c(b)),_=[];return j(k,function(rt){f(it,rt)&&(!W||f(tt,rt))&&_.push(it[rt])}),_};if(g||(nt=function(){if(this instanceof nt)throw TypeError("Symbol is not a constructor");var b=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),W=F(b),k=function(_){this===tt&&k.call(ft,_),f(this,K)&&f(this[K],W)&&(this[K][W]=!1),yt(this,W,A(1,_))};return v&&mt&&yt(tt,W,{configurable:!0,set:k}),Dt(W,b)},M(nt[Q],"toString",function(){return X(this).tag}),M(nt,"withoutSetter",function(Y){return Dt(F(Y),Y)}),D.f=pt,E.f=xt,C.f=J,S.f=T.f=$,P.f=Z,H.f=function(Y){return Dt(O(Y),Y)},v&&(at(nt[Q],"description",{configurable:!0,get:function(){return X(this).description}}),o||M(tt,"propertyIsEnumerable",pt,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!g,sham:!g},{Symbol:nt}),j(x(Ft),function(Y){L(Y)}),e({target:V,stat:!0,forced:!g},{for:function(Y){var b=String(Y);if(f(gt,b))return gt[b];var W=nt(b);return gt[b]=W,dt[W]=b,W},keyFor:function(b){if(!Et(b))throw TypeError(b+" is not a symbol");if(f(dt,b))return dt[b]},useSetter:function(){mt=!0},useSimple:function(){mt=!1}}),e({target:"Object",stat:!0,forced:!g,sham:!v},{create:vt,defineProperty:xt,defineProperties:ct,getOwnPropertyDescriptor:J}),e({target:"Object",stat:!0,forced:!g},{getOwnPropertyNames:$,getOwnPropertySymbols:Z}),e({target:"Object",stat:!0,forced:p(function(){P.f(1)})},{getOwnPropertySymbols:function(b){return P.f(m(b))}}),ut){var q=!g||p(function(){var Y=nt();return ut([Y])!="[null]"||ut({a:Y})!="{}"||ut(Object(Y))!="{}"});e({target:"JSON",stat:!0,forced:q},{stringify:function(b,W,k){for(var _=[b],rt=1,lt;arguments.length>rt;)_.push(arguments[rt++]);if(lt=W,!(!u(W)&&b===void 0||Et(b)))return i(W)||(W=function(st,ot){if(typeof lt=="function"&&(ot=lt.call(this,st,ot)),!Et(ot))return ot}),_[1]=W,ut.apply(null,_)}})}nt[Q][w]||R(nt[Q],w,nt[Q].valueOf),U(nt,V),B[K]=!0},function(s,n,t){var e=t(30),a=t(126).f,r={}.toString,o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],v=function(g){try{return a(g)}catch{return o.slice()}};s.exports.f=function(d){return o&&r.call(d)=="[object Window]"?v(d):a(e(d))}},function(s,n,t){var e=t(12);e("asyncIterator")},function(s,n){},function(s,n,t){var e=t(12);e("hasInstance")},function(s,n,t){var e=t(12);e("isConcatSpreadable")},function(s,n,t){var e=t(12);e("match")},function(s,n,t){var e=t(12);e("matchAll")},function(s,n,t){var e=t(12);e("replace")},function(s,n,t){var e=t(12);e("search")},function(s,n,t){var e=t(12);e("species")},function(s,n,t){var e=t(12);e("split")},function(s,n,t){var e=t(12);e("toPrimitive")},function(s,n,t){var e=t(12);e("toStringTag")},function(s,n,t){var e=t(12);e("unscopables")},function(s,n,t){var e=t(37);e(Math,"Math",!0)},function(s,n,t){var e=t(8),a=t(37);a(e.JSON,"JSON",!0)},function(s,n,t){var e=t(12);e("asyncDispose")},function(s,n,t){var e=t(12);e("dispose")},function(s,n,t){var e=t(12);e("observable")},function(s,n,t){var e=t(12);e("patternMatch")},function(s,n,t){var e=t(12);e("replaceAll")},function(s,n,t){s.exports=t(257)},function(s,n,t){var e=t(258);s.exports=e},function(s,n,t){t(259);var e=t(9);s.exports=e.parseInt},function(s,n,t){var e=t(5),a=t(260);e({global:!0,forced:parseInt!=a},{parseInt:a})},function(s,n,t){var e=t(8),a=t(90).trim,r=t(68),o=e.parseInt,v=/^[+-]?0[Xx]/,g=o(r+"08")!==8||o(r+"0x16")!==22;s.exports=g?function(p,f){var i=a(String(p));return o(i,f>>>0||(v.test(i)?16:10))}:o},function(s,n,t){var e=t(262);s.exports=e},function(s,n,t){var e=t(263),a=Array.prototype;s.exports=function(r){var o=r.slice;return r===a||r instanceof Array&&o===a.slice?e:o}},function(s,n,t){t(264);var e=t(15);s.exports=e("Array").slice},function(s,n,t){var e=t(5),a=t(13),r=t(55),o=t(79),v=t(35),g=t(30),d=t(69),p=t(10),f=t(56),i=t(22),u=f("slice"),l=i("slice",{ACCESSORS:!0,0:0,1:2}),m=p("species"),c=[].slice,h=Math.max;e({target:"Array",proto:!0,forced:!u||!l},{slice:function(y,x){var S=g(this),T=v(S.length),P=o(y,T),C=o(x===void 0?T:x,T),E,D,R;if(r(S)&&(E=S.constructor,typeof E=="function"&&(E===Array||r(E.prototype))?E=void 0:a(E)&&(E=E[m],E===null&&(E=void 0)),E===Array||E===void 0))return c.call(S,P,C);for(D=new(E===void 0?Array:E)(h(C-P,0)),R=0;P2,u=i?o.call(arguments,2):void 0;return d(i?function(){(typeof p=="function"?p:Function(p)).apply(this,u)}:p,f)}};e({global:!0,bind:!0,forced:v},{setTimeout:g(a.setTimeout),setInterval:g(a.setInterval)})},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(128));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(272)),g=o.__importDefault(t(273)),d=o.__importDefault(t(129)),p=o.__importDefault(t(274)),f=o.__importDefault(t(275)),i=o.__importDefault(t(276)),u=o.__importDefault(t(130)),l=o.__importDefault(t(277)),m=o.__importDefault(t(278)),c=o.__importDefault(t(279)),h=(0,r.default)({},v.default,g.default,d.default,f.default,p.default,i.default,u.default,l.default,m.default,c.default,{linkCheck:function(y,x){return!0}});n.default=h},function(s,n,t){var e=t(269);s.exports=e},function(s,n,t){t(270);var e=t(9);s.exports=e.Object.assign},function(s,n,t){var e=t(5),a=t(271);e({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},function(s,n,t){var e=t(14),a=t(11),r=t(52),o=t(127),v=t(59),g=t(31),d=t(72),p=Object.assign,f=Object.defineProperty;s.exports=!p||a(function(){if(e&&p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var i={},u={},l=Symbol(),m="abcdefghijklmnopqrst";return i[l]=7,m.split("").forEach(function(c){u[c]=c}),p({},i)[l]!=7||r(p({},u)).join("")!=m})?function(u,l){for(var m=g(u),c=arguments.length,h=1,A=o.f,y=v.f;c>h;)for(var x=d(arguments[h++]),S=A?r(x).concat(A(x)):r(x),T=S.length,P=0,C;T>P;)C=S[P++],(!e||y.call(x,C))&&(m[C]=x[C]);return m}:p},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:" ",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(7);function o(v,g,d){window.alert(v),d&&console.error("wangEditor: "+d)}n.default={onchangeTimeout:200,onchange:null,onfocus:r.EMPTY_FN,onblur:r.EMPTY_FN,onCatalogChange:null,customAlert:o}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(o){return o}}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.default={styleWithCSS:!1}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(7);n.default={linkImgCheck:function(v,g,d){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:r.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5*1024*1024,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:10*1e3,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{重置:"重置",插入:"插入",默认:"默认",创建:"创建",修改:"修改",如:"如",请输入正文:"请输入正文",menus:{title:{标题:"标题",加粗:"加粗",字号:"字号",字体:"字体",斜体:"斜体",下划线:"下划线",删除线:"删除线",缩进:"缩进",行高:"行高",文字颜色:"文字颜色",背景色:"背景色",链接:"链接",序列:"序列",对齐:"对齐",引用:"引用",表情:"表情",图片:"图片",视频:"视频",表格:"表格",代码:"代码",分割线:"分割线",恢复:"恢复",撤销:"撤销",全屏:"全屏",取消全屏:"取消全屏",待办事项:"待办事项"},dropListMenu:{设置标题:"设置标题",背景颜色:"背景颜色",文字颜色:"文字颜色",设置字号:"设置字号",设置字体:"设置字体",设置缩进:"设置缩进",对齐方式:"对齐方式",设置行高:"设置行高",序列:"序列",head:{正文:"正文"},indent:{增加缩进:"增加缩进",减少缩进:"减少缩进"},justify:{靠左:"靠左",居中:"居中",靠右:"靠右",两端:"两端"},list:{无序列表:"无序列表",有序列表:"有序列表"}},panelMenus:{emoticon:{默认:"默认",新浪:"新浪",emoji:"emoji",手势:"手势"},image:{上传图片:"上传图片",网络图片:"网络图片",图片地址:"图片地址",图片文字说明:"图片文字说明",跳转链接:"跳转链接"},link:{链接:"链接",链接文字:"链接文字",取消链接:"取消链接",查看链接:"查看链接"},video:{插入视频:"插入视频",上传视频:"上传视频"},table:{行:"行",列:"列",的:"的",表格:"表格",添加行:"添加行",删除行:"删除行",添加列:"添加列",删除列:"删除列",设置表头:"设置表头",取消表头:"取消表头",插入表格:"插入表格",删除表格:"删除表格"},code:{删除代码:"删除代码",修改代码:"修改代码",插入代码:"插入代码"}}},validate:{张图片:"张图片",大于:"大于",图片链接:"图片链接",不是图片:"不是图片",返回结果:"返回结果",上传图片超时:"上传图片超时",上传图片错误:"上传图片错误",上传图片失败:"上传图片失败",插入图片错误:"插入图片错误",一次最多上传:"一次最多上传",下载链接失败:"下载链接失败",图片验证未通过:"图片验证未通过",服务器返回状态:"服务器返回状态",上传图片返回结果错误:"上传图片返回结果错误",请替换为支持的图片类型:"请替换为支持的图片类型",您插入的网络图片无法识别:"您插入的网络图片无法识别",您刚才插入的图片链接未通过编辑器校验:"您刚才插入的图片链接未通过编辑器校验",插入视频错误:"插入视频错误",视频链接:"视频链接",不是视频:"不是视频",视频验证未通过:"视频验证未通过",个视频:"个视频",上传视频超时:"上传视频超时",上传视频错误:"上传视频错误",上传视频失败:"上传视频失败",上传视频返回结果错误:"上传视频返回结果错误"}}},en:{wangEditor:{重置:"reset",插入:"insert",默认:"default",创建:"create",修改:"edit",如:"like",请输入正文:"please enter the text",menus:{title:{标题:"head",加粗:"bold",字号:"font size",字体:"font family",斜体:"italic",下划线:"underline",删除线:"strikethrough",缩进:"indent",行高:"line heihgt",文字颜色:"font color",背景色:"background",链接:"link",序列:"numbered list",对齐:"align",引用:"quote",表情:"emoticons",图片:"image",视频:"media",表格:"table",代码:"code",分割线:"split line",恢复:"redo",撤销:"undo",全屏:"fullscreen",取消全屏:"cancel fullscreen",待办事项:"todo"},dropListMenu:{设置标题:"title",背景颜色:"background",文字颜色:"font color",设置字号:"font size",设置字体:"font family",设置缩进:"indent",对齐方式:"align",设置行高:"line heihgt",序列:"list",head:{正文:"text"},indent:{增加缩进:"indent",减少缩进:"outdent"},justify:{靠左:"left",居中:"center",靠右:"right",两端:"justify"},list:{无序列表:"unordered",有序列表:"ordered"}},panelMenus:{emoticon:{表情:"emoji",手势:"gesture"},image:{上传图片:"upload image",网络图片:"network image",图片地址:"image link",图片文字说明:"image alt",跳转链接:"hyperlink"},link:{链接:"link",链接文字:"link text",取消链接:"unlink",查看链接:"view links"},video:{插入视频:"insert video",上传视频:"upload local video"},table:{行:"rows",列:"columns",的:" ",表格:"table",添加行:"insert row",删除行:"delete row",添加列:"insert column",删除列:"delete column",设置表头:"set header",取消表头:"cancel header",插入表格:"insert table",删除表格:"delete table"},code:{删除代码:"delete code",修改代码:"edit code",插入代码:"insert code"}}},validate:{张图片:"images",大于:"greater than",图片链接:"image link",不是图片:"is not image",返回结果:"return results",上传图片超时:"upload image timeout",上传图片错误:"upload image error",上传图片失败:"upload image failed",插入图片错误:"insert image error",一次最多上传:"once most at upload",下载链接失败:"download link failed",图片验证未通过:"image validate failed",服务器返回状态:"server return status",上传图片返回结果错误:"upload image return results error",请替换为支持的图片类型:"please replace with a supported image type",您插入的网络图片无法识别:"the network picture you inserted is not recognized",您刚才插入的图片链接未通过编辑器校验:"the image link you just inserted did not pass the editor verification",插入视频错误:"insert video error",视频链接:"video link",不是视频:"is not video",视频验证未通过:"video validate failed",个视频:"videos",上传视频超时:"upload video timeout",上传视频错误:"upload video error",上传视频失败:"upload video failed",上传视频返回结果错误:"upload video return results error"}}}}}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(6);function o(){return!!(r.UA.isIE()||r.UA.isOldEdge)}n.default={compatibleMode:o,historyMaxSize:30}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(7);n.default={onlineVideoCheck:function(v){return!0},onlineVideoCallback:r.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1*1024*1024*1024,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:1e3*60*60*2,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(17));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3)),g=t(6),d=t(7),p=function(){function f(i){this._currentRange=null,this.editor=i}return f.prototype.getRange=function(){return this._currentRange},f.prototype.saveRange=function(i){if(i){this._currentRange=i;return}var u=window.getSelection();if(u.rangeCount!==0){var l=u.getRangeAt(0),m=this.getSelectionContainerElem(l);if(m?.length&&!(m.attr("contenteditable")==="false"||m.parentUntil("[contenteditable=false]"))){var c=this.editor,h=c.$textElem;if(h.isContain(m)){if(h.elems[0]===m.elems[0]){var A;if((0,r.default)(A=h.html()).call(A)===d.EMPTY_P){var y=h.children(),x=y?.last();c.selection.createRangeByElem(x,!0,!0),c.selection.restoreSelection()}}this._currentRange=l}}}},f.prototype.collapseRange=function(i){i===void 0&&(i=!1);var u=this._currentRange;u&&u.collapse(i)},f.prototype.getSelectionText=function(){var i=this._currentRange;return i?i.toString():""},f.prototype.getSelectionContainerElem=function(i){var u;u=i||this._currentRange;var l;if(u)return l=u.commonAncestorContainer,v.default(l.nodeType===1?l:l.parentNode)},f.prototype.getSelectionStartElem=function(i){var u;u=i||this._currentRange;var l;if(u)return l=u.startContainer,v.default(l.nodeType===1?l:l.parentNode)},f.prototype.getSelectionEndElem=function(i){var u;u=i||this._currentRange;var l;if(u)return l=u.endContainer,v.default(l.nodeType===1?l:l.parentNode)},f.prototype.isSelectionEmpty=function(){var i=this._currentRange;return!!(i&&i.startContainer&&i.startContainer===i.endContainer&&i.startOffset===i.endOffset)},f.prototype.restoreSelection=function(){var i=window.getSelection(),u=this._currentRange;i&&u&&(i.removeAllRanges(),i.addRange(u))},f.prototype.createEmptyRange=function(){var i=this.editor,u=this.getRange(),l;if(u&&this.isSelectionEmpty())try{g.UA.isWebkit()?(i.cmd.do("insertHTML",""),u.setEnd(u.endContainer,u.endOffset+1),this.saveRange(u)):(l=v.default(" "),i.cmd.do("insertElem",l),this.createRangeByElem(l,!0))}catch{}},f.prototype.createRangeByElems=function(i,u){var l=window.getSelection?window.getSelection():document.getSelection();l?.removeAllRanges();var m=document.createRange();m.setStart(i,0),m.setEnd(u,u.childNodes.length||1),this.saveRange(m),this.restoreSelection()},f.prototype.createRangeByElem=function(i,u,l){if(i.length){var m=i.elems[0],c=document.createRange();l?c.selectNodeContents(m):c.selectNode(m),u!=null&&(c.collapse(u),u||(this.saveRange(c),this.editor.selection.moveCursor(m))),this.saveRange(c)}},f.prototype.getSelectionRangeTopNodes=function(){var i,u,l,m=(i=this.getSelectionStartElem())===null||i===void 0?void 0:i.getNodeTop(this.editor),c=(u=this.getSelectionEndElem())===null||u===void 0?void 0:u.getNodeTop(this.editor);return l=this.recordSelectionNodes(v.default(m),v.default(c)),l},f.prototype.moveCursor=function(i,u){var l,m=this.getRange(),c=i.nodeType===3?(l=i.nodeValue)===null||l===void 0?void 0:l.length:i.childNodes.length;(g.UA.isFirefox||g.UA.isIE())&&c!==0&&(i.nodeType===3||i.childNodes[c-1].nodeName==="BR")&&(c=c-1);var h=u??c;m&&i&&(m.setStart(i,h),m.setEnd(i,h),this.restoreSelection())},f.prototype.getCursorPos=function(){var i=window.getSelection();return i?.anchorOffset},f.prototype.clearWindowSelectionRange=function(){var i=window.getSelection();i&&i.removeAllRanges()},f.prototype.recordSelectionNodes=function(i,u){var l=[],m=!0;try{for(var c=i,h=this.editor.$textElem;m;){var A=c?.getNodeTop(this.editor);A.getNodeName()==="BODY"&&(m=!1),A.length>0&&(l.push(v.default(c)),u?.equal(A)||h.equal(A)?m=!1:c=A.getNextSibling())}}catch{m=!1}return l},f.prototype.setRangeToElem=function(i){var u=this.getRange();u?.setStart(i,0),u?.setEnd(i,0)},f}();n.default=p},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(3)),v=function(){function g(d){this.editor=d}return g.prototype.do=function(d,p){var f=this.editor;f.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var i=f.selection;if(i.getRange()){switch(i.restoreSelection(),d){case"insertHTML":this.insertHTML(p);break;case"insertElem":this.insertElem(p);break;default:this.execCommand(d,p);break}f.menus.changeActive(),i.saveRange(),i.restoreSelection()}},g.prototype.insertHTML=function(d){var p=this.editor,f=p.selection.getRange();if(f!=null){if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",d);else if(f.insertNode){if(f.deleteContents(),o.default(d).elems.length>0)f.insertNode(o.default(d).elems[0]);else{var i=document.createElement("p");i.appendChild(document.createTextNode(d)),f.insertNode(i)}p.selection.collapseRange()}}},g.prototype.insertElem=function(d){var p=this.editor,f=p.selection.getRange();f!=null&&f.insertNode&&(f.deleteContents(),f.insertNode(d.elems[0]))},g.prototype.execCommand=function(d,p){document.execCommand(d,!1,p)},g.prototype.queryCommandValue=function(d){return document.queryCommandValue(d)},g.prototype.queryCommandState=function(d){return document.queryCommandState(d)},g.prototype.queryCommandSupported=function(d){return document.queryCommandSupported(d)},g}();n.default=v},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(29)),o=e(t(4)),v=e(t(17)),g=e(t(27)),d=e(t(46));(0,a.default)(n,"__esModule",{value:!0});var p=t(2),f=p.__importDefault(t(3)),i=p.__importDefault(t(287)),u=t(6),l=p.__importDefault(t(299)),m=p.__importDefault(t(300)),c=t(7),h=function(){function A(y){this.editor=y,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return A.prototype.init=function(){this._saveRange(),this._bindEventHooks(),i.default(this)},A.prototype.togglePlaceholder=function(){var y,x=this.html(),S=(0,r.default)(y=this.editor.$textContainerElem).call(y,".placeholder");S.hide(),!this.editor.isComposing&&(!x||x===" ")&&S.show()},A.prototype.clear=function(){this.html(c.EMPTY_P)},A.prototype.html=function(y){var x=this.editor,S=x.$textElem;if(y==null){var T=S.html();T=T.replace(/\u200b/gm,""),T=T.replace(/<\/p>/gim,""),T=T.replace(c.EMPTY_P_LAST_REGEX,""),T=T.replace(c.EMPTY_P_REGEX,"
");var P=T.match(/<(img|br|hr|input)[^>]*>/gi);return P!==null&&(0,o.default)(P).call(P,function(C){C.match(/\/>/)||(T=T.replace(C,C.substring(0,C.length-1)+"/>"))}),T}y=(0,v.default)(y).call(y),y===""&&(y=c.EMPTY_P),(0,g.default)(y).call(y,"<")!==0&&(y="
"+y+"
"),S.html(y),x.initSelection()},A.prototype.setJSON=function(y){var x=m.default(y).children(),S=this.editor,T=S.$textElem;x&&T.replaceChildAll(x)},A.prototype.getJSON=function(){var y=this.editor,x=y.$textElem;return l.default(x)},A.prototype.text=function(y){var x=this.editor,S=x.$textElem;if(y==null){var T=S.text();return T=T.replace(/\u200b/gm,""),T}S.text(""+y+"
"),x.initSelection()},A.prototype.append=function(y){var x=this.editor;(0,g.default)(y).call(y,"<")!==0&&(y=""+y+"
"),this.html(this.html()+y),x.initSelection()},A.prototype._saveRange=function(){var y=this.editor,x=y.$textElem,S=f.default(document);function T(){y.selection.saveRange(),y.menus.changeActive()}x.on("keyup",T);function P(){T(),x.off("click",P)}x.on("click",P);function C(){T(),S.off("mouseup",C)}function E(){S.on("mouseup",C),x.off("mouseleave",E)}x.on("mousedown",function(){x.on("mouseleave",E)}),x.on("mouseup",function(D){x.off("mouseleave",E),(0,d.default)(function(){var R=y.selection,M=R.getRange();M!==null&&T()},0)})},A.prototype._bindEventHooks=function(){var y=this.editor,x=y.$textElem,S=this.eventHooks;x.on("click",function(P){var C=S.clickEvents;(0,o.default)(C).call(C,function(E){return E(P)})}),x.on("keyup",function(P){if(P.keyCode===13){var C=S.enterUpEvents;(0,o.default)(C).call(C,function(E){return E(P)})}}),x.on("keyup",function(P){var C=S.keyupEvents;(0,o.default)(C).call(C,function(E){return E(P)})}),x.on("keydown",function(P){var C=S.keydownEvents;(0,o.default)(C).call(C,function(E){return E(P)})}),x.on("keyup",function(P){if(!(P.keyCode!==8&&P.keyCode!==46)){var C=S.deleteUpEvents;(0,o.default)(C).call(C,function(E){return E(P)})}}),x.on("keydown",function(P){if(!(P.keyCode!==8&&P.keyCode!==46)){var C=S.deleteDownEvents;(0,o.default)(C).call(C,function(E){return E(P)})}}),x.on("paste",function(P){if(!u.UA.isIE()){P.preventDefault();var C=S.pasteEvents;(0,o.default)(C).call(C,function(E){return E(P)})}}),x.on("keydown",function(P){(y.isFocus||y.isCompatibleMode)&&(P.ctrlKey||P.metaKey)&&P.keyCode===90&&(P.preventDefault(),P.shiftKey?y.history.restore():y.history.revoke())}),x.on("keyup",function(P){if(P.keyCode===9){P.preventDefault();var C=S.tabUpEvents;(0,o.default)(C).call(C,function(E){return E(P)})}}),x.on("keydown",function(P){if(P.keyCode===9){P.preventDefault();var C=S.tabDownEvents;(0,o.default)(C).call(C,function(E){return E(P)})}}),x.on("scroll",u.throttle(function(P){var C=S.textScrollEvents;(0,o.default)(C).call(C,function(E){return E(P)})},100));function T(P){P.preventDefault()}f.default(document).on("dragleave",T).on("drop",T).on("dragenter",T).on("dragover",T),y.beforeDestroy(function(){f.default(document).off("dragleave",T).off("drop",T).off("dragenter",T).off("dragover",T)}),x.on("drop",function(P){P.preventDefault();var C=S.dropEvents;(0,o.default)(C).call(C,function(E){return E(P)})}),x.on("click",function(P){var C=null,E=P.target,D=f.default(E);if(D.getNodeName()==="A")C=D;else{var R=D.parentUntil("a");R!=null&&(C=R)}if(C){var M=S.linkClickEvents;(0,o.default)(M).call(M,function(I){return I(C)})}}),x.on("click",function(P){var C=null,E=P.target,D=f.default(E);if(D.getNodeName()==="IMG"&&!D.elems[0].getAttribute("data-emoji")&&(P.stopPropagation(),C=D),!!C){var R=S.imgClickEvents;(0,o.default)(R).call(R,function(M){return M(C)})}}),x.on("click",function(P){var C=null,E=P.target,D=f.default(E);if(D.getNodeName()==="PRE")C=D;else{var R=D.parentUntil("pre");R!==null&&(C=R)}if(C){var M=S.codeClickEvents;(0,o.default)(M).call(M,function(I){return I(C)})}}),x.on("click",function(P){var C=null,E=P.target,D=f.default(E);if(D.getNodeName()==="HR"&&(C=D),!!C){y.selection.createRangeByElem(C),y.selection.restoreSelection();var R=S.splitLineEvents;(0,o.default)(R).call(R,function(M){return M(C)})}}),y.$toolbarElem.on("click",function(P){var C=S.toolbarClickEvents;(0,o.default)(C).call(C,function(E){return E(P)})}),y.$textContainerElem.on("mousedown",function(P){var C=P.target,E=f.default(C);if(E.hasClass("w-e-img-drag-rb")){var D=S.imgDragBarMouseDownEvents;(0,o.default)(D).call(D,function(R){return R()})}}),x.on("click",function(P){var C=null,E=P.target;if(C=f.default(E).parentUntilEditor("TABLE",y,E),!!C){var D=S.tableClickEvents;(0,o.default)(D).call(D,function(R){return R(C,P)})}}),x.on("keydown",function(P){if(P.keyCode===13){var C=S.enterDownEvents;(0,o.default)(C).call(C,function(E){return E(P)})}}),x.on("click",function(P){var C=null,E=P.target,D=f.default(E);if(D.getNodeName()==="VIDEO"&&(P.stopPropagation(),C=D),!!C){var R=S.videoClickEvents;(0,o.default)(R).call(R,function(M){return M(C)})}})},A}();n.default=h},function(s,n,t){var e=t(284);s.exports=e},function(s,n,t){var e=t(285),a=Array.prototype;s.exports=function(r){var o=r.find;return r===a||r instanceof Array&&o===a.find?e:o}},function(s,n,t){t(286);var e=t(15);s.exports=e("Array").find},function(s,n,t){var e=t(5),a=t(32).find,r=t(82),o=t(22),v="find",g=!0,d=o(v);v in[]&&Array(1)[v](function(){g=!1}),e({target:"Array",proto:!0,forced:g||!d},{find:function(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}}),r(v)},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(288)),v=r.__importStar(t(289)),g=r.__importDefault(t(290)),d=r.__importDefault(t(291)),p=r.__importDefault(t(298));function f(i){var u=i.editor,l=i.eventHooks;o.default(u,l.enterUpEvents,l.enterDownEvents),v.default(u,l.deleteUpEvents,l.deleteDownEvents),v.cutToKeepP(u,l.keyupEvents),g.default(u,l.tabDownEvents),d.default(u,l.pasteEvents),p.default(u,l.imgClickEvents)}n.default=f},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(27));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=t(7),g=o.__importDefault(t(3));function d(p,f,i){function u(c){var h,A=g.default(v.EMPTY_P);if(A.insertBefore(c),(0,r.default)(h=c.html()).call(h," =0){A.remove();return}p.selection.createRangeByElem(A,!0,!0),p.selection.restoreSelection(),c.remove()}function l(){var c=p.$textElem,h=p.selection.getSelectionContainerElem(),A=h.parent();if(A.html()==="
"){u(A);return}if(h.getNodeName()==="FONT"&&h.text()===""&&h.attr("face")==="monospace"){u(A);return}if(A.equal(c)){var y=h.getNodeName();y==="P"&&h.attr("data-we-empty-p")===null||h.text()||u(h)}}f.push(l);function m(c){var h;p.selection.saveRange((h=getSelection())===null||h===void 0?void 0:h.getRangeAt(0));var A=p.selection.getSelectionContainerElem();A.id===p.textElemId&&(c.preventDefault(),p.cmd.do("insertHTML","
"))}i.push(m)}n.default=d},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(17)),o=e(t(28));(0,a.default)(n,"__esModule",{value:!0}),n.cutToKeepP=void 0;var v=t(2),g=t(7),d=v.__importDefault(t(3));function p(i,u,l){function m(){var h=i.$textElem,A=i.$textElem.html(),y=i.$textElem.text(),x=(0,r.default)(A).call(A),S=["
"," ",'
',g.EMPTY_P];if(/^\s*$/.test(y)&&(!x||(0,o.default)(S).call(S,x))){h.html(g.EMPTY_P);var T=h.getNode();i.selection.createRangeByElems(T.childNodes[0],T.childNodes[0]);var P=i.selection.getSelectionContainerElem();i.selection.restoreSelection(),i.selection.moveCursor(P.getNode(),0)}}u.push(m);function c(h){var A,y=i.$textElem,x=(0,r.default)(A=y.html().toLowerCase()).call(A);if(x===g.EMPTY_P){h.preventDefault();return}}l.push(c)}function f(i,u){function l(m){var c;if(m.keyCode===88){var h=i.$textElem,A=(0,r.default)(c=h.html().toLowerCase()).call(c);if(!A||A===" "){var y=d.default(g.EMPTY_P);h.html(" "),h.append(y),i.selection.createRangeByElem(y,!1,!0),i.selection.restoreSelection(),i.selection.moveCursor(y.getNode(),0)}}}u.push(l)}n.cutToKeepP=f,n.default=p},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});function r(o,v){function g(){if(o.cmd.queryCommandSupported("insertHTML")){var d=o.selection.getSelectionContainerElem();if(d){var p=d.parent(),f=d.getNodeName(),i=p.getNodeName();f=="CODE"||i==="CODE"||i==="PRE"||/hljs/.test(i)?o.cmd.do("insertHTML",o.config.languageTab):o.cmd.do("insertHTML"," ")}}}v.push(g)}n.default=r},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(17)),o=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var v=t(131),g=t(6),d=t(7);function p(m){var c,h=(0,r.default)(c=m.replace(//gim,"
").replace(/<\/div>/gim,"
")).call(c),A=document.createElement("div");return A.innerHTML=h,A.innerHTML.replace(/
<\/p>/gim,"")}function f(m){var c=m.replace(/ | /gm,`
+`).replace(/<[^>]+>/gm,"");return c}function i(m){var c;if(m==="")return!1;var h=document.createElement("div");return h.innerHTML=m,((c=h.firstChild)===null||c===void 0?void 0:c.nodeName)==="P"}function u(m){if(!m?.length)return!1;var c=m.elems[0];return c.nodeName==="P"&&c.innerHTML===" "}function l(m,c){function h(A){var y=m.config,x=y.pasteFilterStyle,S=y.pasteIgnoreImg,T=y.pasteTextHandle,P=v.getPasteHtml(A,x,S),C=v.getPasteText(A);C=C.replace(/\n/gm," ");var E=m.selection.getSelectionContainerElem();if(E){var D=E?.getNodeName(),R=E?.getNodeTop(m),M="";if(R.elems[0]&&(M=R?.getNodeName()),D==="CODE"||M==="PRE"){T&&g.isFunction(T)&&(C=""+(T(C)||"")),m.cmd.do("insertHTML",f(C));return}if(d.urlRegex.test(C)&&x){T&&g.isFunction(T)&&(C=""+(T(C)||""));var I=C.replace(d.urlRegex,function(z){return''+z+" "}),N=m.selection.getRange(),B=document.createElement("div"),F=document.createDocumentFragment();if(B.innerHTML=I,N==null)return;for(;B.childNodes.length;)F.append(B.childNodes[0]);var O=F.querySelectorAll("a");(0,o.default)(O).call(O,function(z){z.innerText=z.href}),N.insertNode&&(N.deleteContents(),N.insertNode(F)),m.selection.clearWindowSelectionRange();return}if(P)try{T&&g.isFunction(T)&&(P=""+(T(P)||""));var H=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(P);if(H&&x)m.cmd.do("insertHTML",""+p(C));else{var L=p(P);if(i(L)){var U=m.$textElem;if(m.cmd.do("insertHTML",L),U.equal(E)){m.selection.createEmptyRange();return}u(R)&&R.remove()}else m.cmd.do("insertHTML",L)}}catch{T&&g.isFunction(T)&&(C=""+(T(C)||"")),m.cmd.do("insertHTML",""+p(C))}}}c.push(h)}n.default=l},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(17)),o=e(t(4)),v=e(t(28));(0,a.default)(n,"__esModule",{value:!0});var g=t(2),d=t(293),p=g.__importDefault(t(297));function f(c){var h=/.*?<\/span>/gi,A=/(.*?)<\/span>/;return c.replace(h,function(y){var x=y.match(A);return x==null?"":x[1]})}function i(c,h){var A;return c=(0,r.default)(A=c.toLowerCase()).call(A),!!(d.IGNORE_TAGS.has(c)||h&&c==="img")}function u(c,h){var A="";A="<"+c;var y=[];(0,o.default)(h).call(h,function(S){y.push(S.name+'="'+S.value+'"')}),y.length>0&&(A=A+" "+y.join(" "));var x=d.EMPTY_TAGS.has(c);return A=A+(x?"/":"")+">",A}function l(c){return""+c+">"}function m(c,h,A){h===void 0&&(h=!0),A===void 0&&(A=!1);var y=[],x="";function S(E){E=(0,r.default)(E).call(E),E&&(d.EMPTY_TAGS.has(E)||(x=E))}function T(){x=""}var P=new p.default;P.parse(c,{startElement:function(D,R){if(S(D),!i(D,A)){var M=d.NECESSARY_ATTRS.get(D)||[],I=[];(0,o.default)(R).call(R,function(B){var F=B.name;if(F==="style"){h||I.push(B);return}(0,v.default)(M).call(M,F)!==!1&&I.push(B)});var N=u(D,I);y.push(N)}},characters:function(D){D&&(i(x,A)||y.push(D))},endElement:function(D){if(!i(D,A)){var R=l(D);y.push(R),T()}},comment:function(D){S(D)}});var C=y.join("");return C=f(C),C}n.default=m},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(132)),o=e(t(121));(0,a.default)(n,"__esModule",{value:!0}),n.TOP_LEVEL_TAGS=n.EMPTY_TAGS=n.NECESSARY_ATTRS=n.IGNORE_TAGS=void 0,n.IGNORE_TAGS=new r.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),n.NECESSARY_ATTRS=new o.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),n.EMPTY_TAGS=new r.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),n.TOP_LEVEL_TAGS=new r.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(s,n,t){var e=t(295);s.exports=e},function(s,n,t){t(296),t(61),t(50),t(54);var e=t(9);s.exports=e.Set},function(s,n,t){var e=t(122),a=t(124);s.exports=e("Set",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},a)},function(s,n){function t(){}t.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,a){a&&(this.contentHandler=a);for(var r,o,v,g=!1,d=this;e.length>0;)e.substring(0,4)==""),v!=-1?(this.contentHandler.comment(e.substring(4,v)),e=e.substring(v+3),g=!1):g=!0):e.substring(0,2)==""?this.endTagRe.test(e)?(r=RegExp.lastMatch,o=RegExp.rightContext,r.replace(this.endTagRe,function(){return d.parseEndTag.apply(d,arguments)}),e=o,g=!1):g=!0:e.charAt(0)=="<"&&(this.startTagRe.test(e)?(r=RegExp.lastMatch,o=RegExp.rightContext,r.replace(this.startTagRe,function(){return d.parseStartTag.apply(d,arguments)}),e=o,g=!1):g=!0),g&&(v=e.indexOf("<"),v==-1?(this.contentHandler.characters(e),e=""):(this.contentHandler.characters(e.substring(0,v)),e=e.substring(v))),g=!0},parseStartTag:function(e,a,r){var o=this.parseAttributes(a,r);this.contentHandler.startElement(a,o)},parseEndTag:function(e,a){this.contentHandler.endElement(a)},parseAttributes:function(e,a){var r=this,o=[];return a.replace(this.attrRe,function(v,g,d,p,f,i,u,l){o.push(r.parseAttribute(e,v,g,d,p,f,i,u,l))}),o},parseAttribute:function(e,a,r){var o="";arguments[7]?o=arguments[8]:arguments[5]?o=arguments[6]:arguments[3]&&(o=arguments[4]);var v=!o&&!arguments[3];return{name:r,value:v?null:o}}},s.exports=t},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});function r(o,v){function g(d){o.selection.createRangeByElem(d),o.selection.restoreSelection()}v.push(g)}n.default=r},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=t(6),g=o.__importDefault(t(3));function d(p){var f=[],i=p.childNodes()||[];return(0,r.default)(i).call(i,function(u){var l,m=u.nodeType;if(m===3&&(l=u.textContent||"",l=v.replaceHtmlSymbol(l)),m===1){l={},l=l,l.tag=u.nodeName.toLowerCase();for(var c=[],h=u.attributes,A=h.length||0,y=0;y0&&d(u.children,l.getRootNode())}l&&i.appendChild(l)}),g.default(i)}n.default=d},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(89)),o=e(t(70)),v=e(t(28)),g=e(t(302)),d=e(t(4)),p=e(t(94)),f=e(t(133)),i=e(t(46)),u=e(t(57));(0,a.default)(n,"__esModule",{value:!0});var l=t(2),m=l.__importDefault(t(87)),c=l.__importDefault(t(314)),h=l.__importDefault(t(3)),A=function(){function y(x){this.editor=x,this.menuList=[],this.constructorList=c.default}return y.prototype.extend=function(x,S){!S||typeof S!="function"||(this.constructorList[x]=S)},y.prototype.init=function(){var x,S,T=this,P=this.editor.config,C=P.excludeMenus;(0,r.default)(C)===!1&&(C=[]),P.menus=(0,o.default)(x=P.menus).call(x,function(F){return(0,v.default)(C).call(C,F)===!1});var E=(0,g.default)(m.default.globalCustomMenuConstructorList);E=(0,o.default)(E).call(E,function(F){return(0,v.default)(C).call(C,F)}),(0,d.default)(E).call(E,function(F){delete m.default.globalCustomMenuConstructorList[F]}),(0,d.default)(S=P.menus).call(S,function(F){var O=T.constructorList[F];T._initMenuList(F,O)});for(var D=0,R=(0,p.default)(m.default.globalCustomMenuConstructorList);D
`);C.css("visibility","hidden"),S.append(C),C.css("z-index",x.zIndex.get("tooltip"));var E=0;function D(){E&&clearTimeout(E)}function R(){D(),C.css("visibility","hidden")}S.on("mouseover",function(M){var I=M.target,N=h.default(I),B,F;if(N.isContain(S)){R();return}if(N.parentUntil(".w-e-droplist")!=null)R();else if(N.attr("data-title"))B=N.attr("data-title"),F=N;else{var O=N.parentUntil(".w-e-menu");O!=null&&(B=O.attr("data-title"),F=O)}if(B&&F){D();var H=F.getOffsetData();C.text(x.i18next.t("menus.title."+B));var L=C.getOffsetData(),U=H.left+H.width/2-L.width/2;C.css("left",U+"px"),P==="up"?C.css("top",H.top-L.height-8+"px"):P==="down"&&C.css("top",H.top+H.height+8+"px"),E=(0,i.default)(function(){C.css("visibility","visible")},200)}else R()}).on("mouseleave",function(){R()})},y.prototype._addToToolbar=function(){var x,S=this.editor,T=S.$toolbarElem;(0,d.default)(x=this.menuList).call(x,function(P){var C=P.$elem;C&&T.append(C)})},y.prototype.menuFind=function(x){for(var S=this.menuList,T=0,P=S.length;Tu;)m=f[u++],(!e||o.call(p,m))&&l.push(g?[m,p[m]]:p[m]);return l}};s.exports={entries:v(!0),values:v(!1)}},function(s,n,t){var e=t(311);s.exports=e},function(s,n,t){var e=t(312),a=Array.prototype;s.exports=function(r){var o=r.some;return r===a||r instanceof Array&&o===a.some?e:o}},function(s,n,t){t(313);var e=t(15);s.exports=e("Array").some},function(s,n,t){var e=t(5),a=t(32).some,r=t(67),o=t(22),v=r("some"),g=o("some");e({target:"Array",proto:!0,forced:!v||!g},{some:function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}})},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(315)),v=r.__importDefault(t(316)),g=r.__importDefault(t(321)),d=r.__importDefault(t(326)),p=r.__importDefault(t(327)),f=r.__importDefault(t(328)),i=r.__importDefault(t(329)),u=r.__importDefault(t(331)),l=r.__importDefault(t(333)),m=r.__importDefault(t(334)),c=r.__importDefault(t(337)),h=r.__importDefault(t(338)),A=r.__importDefault(t(339)),y=r.__importDefault(t(350)),x=r.__importDefault(t(365)),S=r.__importDefault(t(369)),T=r.__importDefault(t(137)),P=r.__importDefault(t(378)),C=r.__importDefault(t(380)),E=r.__importDefault(t(381)),D=r.__importDefault(t(382)),R=r.__importDefault(t(401)),M=r.__importDefault(t(406)),I=r.__importDefault(t(409));n.default={bold:o.default,head:v.default,italic:d.default,link:g.default,underline:p.default,strikeThrough:f.default,fontName:i.default,fontSize:u.default,justify:l.default,quote:m.default,backColor:c.default,foreColor:h.default,video:A.default,image:y.default,indent:x.default,emoticon:S.default,list:T.default,lineHeight:P.default,undo:C.default,redo:E.default,table:D.default,code:R.default,splitLine:M.default,todo:I.default}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(23)),v=r.__importDefault(t(3)),g=function(d){r.__extends(p,d);function p(f){var i=this,u=v.default(`
`);return i=d.call(this,u,f)||this,i}return p.prototype.clickHandler=function(){var f=this.editor,i=f.selection.isSelectionEmpty();i&&f.selection.createEmptyRange(),f.cmd.do("bold"),i&&(f.selection.collapseRange(),f.selection.restoreSelection())},p.prototype.tryChangeActive=function(){var f=this.editor;f.cmd.queryCommandState("bold")?this.active():this.unActive()},p}(o.default);n.default=g},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(27)),o=e(t(29)),v=e(t(4)),g=e(t(317)),d=e(t(28));(0,a.default)(n,"__esModule",{value:!0});var p=t(2),f=p.__importDefault(t(24)),i=p.__importDefault(t(3)),u=t(6),l=t(7),m=function(c){p.__extends(h,c);function h(A){var y=this,x=i.default(''),S={width:100,title:"设置标题",type:"list",list:[{$elem:i.default("H1 "),value:""},{$elem:i.default("H2 "),value:""},{$elem:i.default("H3 "),value:""},{$elem:i.default("H4 "),value:""},{$elem:i.default("H5 "),value:""},{$elem:i.default(" "+A.i18next.t("menus.dropListMenu.head.正文")+"
"),value:""}],clickHandler:function(C){y.command(C)}};y=c.call(this,x,A,S)||this;var T=A.config.onCatalogChange;return T&&(y.oldCatalogs=[],y.addListenerCatalog(),y.getCatalogs()),y}return h.prototype.command=function(A){var y=this.editor,x=y.selection.getSelectionContainerElem();if(x&&y.$textElem.equal(x))this.setMultilineHead(A);else{var S;if((0,r.default)(S=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(S,i.default(x).getNodeName())>-1)return;y.cmd.do("formatBlock",A)}A!=="
"&&this.addUidForSelectionElem()},h.prototype.addUidForSelectionElem=function(){var A=this.editor,y=A.selection.getSelectionContainerElem(),x=u.getRandomCode();i.default(y).attr("id",x)},h.prototype.addListenerCatalog=function(){var A=this,y=this.editor;y.txt.eventHooks.changeEvents.push(function(){A.getCatalogs()})},h.prototype.getCatalogs=function(){var A=this.editor,y=this.editor.$textElem,x=A.config.onCatalogChange,S=(0,o.default)(y).call(y,"h1,h2,h3,h4,h5"),T=[];(0,v.default)(S).call(S,function(P,C){var E=i.default(P),D=E.attr("id"),R=E.getNodeName(),M=E.text();D||(D=u.getRandomCode(),E.attr("id",D)),M&&T.push({tag:R,id:D,text:M})}),(0,g.default)(this.oldCatalogs)!==(0,g.default)(T)&&(this.oldCatalogs=T,x&&x(T))},h.prototype.setMultilineHead=function(A){var y=this,x,S,T=this.editor,P=T.selection,C=(x=P.getSelectionContainerElem())===null||x===void 0?void 0:x.elems[0],E=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],D=i.default(P.getSelectionStartElem()),R=i.default(P.getSelectionEndElem());R.elems[0].outerHTML===i.default(l.EMPTY_P).elems[0].outerHTML&&!R.elems[0].nextSibling&&(R=R.prev());var M=[];M.push(D.getNodeTop(T));var I=[],N=(S=P.getRange())===null||S===void 0?void 0:S.commonAncestorContainer.childNodes;N==null||(0,v.default)(N).call(N,function(O,H){O===M[0].getNode()&&I.push(H),O===R.getNodeTop(T).getNode()&&I.push(H)});for(var B=0;M[B].getNode()!==R.getNodeTop(T).getNode();){if(!M[B].elems[0])return;var F=i.default(M[B].next().getNode());M.push(F),B++}M==null||(0,v.default)(M).call(M,function(O,H){if(!y.hasTag(O,E)){var L=i.default(A),U=O.parent().getNode();L.html(""+O.html()),U.insertBefore(L.getNode(),O.getNode()),O.remove()}}),P.createRangeByElems(C.children[I[0]],C.children[I[1]])},h.prototype.hasTag=function(A,y){var x=this,S;if(!A)return!1;if((0,d.default)(y).call(y,A?.getNodeName()))return!0;var T=!1;return(S=A.children())===null||S===void 0||(0,v.default)(S).call(S,function(P){T=x.hasTag(i.default(P),y)}),T},h.prototype.tryChangeActive=function(){var A=this.editor,y=/^h/i,x=A.cmd.queryCommandValue("formatBlock");y.test(x)?this.active():this.unActive()},h}(f.default);n.default=m},function(s,n,t){s.exports=t(318)},function(s,n,t){var e=t(319);s.exports=e},function(s,n,t){t(320);var e=t(9);e.JSON||(e.JSON={stringify:JSON.stringify}),s.exports=function(r,o,v){return e.JSON.stringify.apply(null,arguments)}},function(s,n,t){var e=t(5),a=t(36),r=t(11),o=a("JSON","stringify"),v=/[\uD800-\uDFFF]/g,g=/^[\uD800-\uDBFF]$/,d=/^[\uDC00-\uDFFF]$/,p=function(i,u,l){var m=l.charAt(u-1),c=l.charAt(u+1);return g.test(i)&&!d.test(c)||d.test(i)&&!g.test(m)?"\\u"+i.charCodeAt(0).toString(16):i},f=r(function(){return o("\uDF06\uD834")!=='"\\udf06\\ud834"'||o("\uDEAD")!=='"\\udead"'});o&&e({target:"JSON",stat:!0,forced:f},{stringify:function(u,l,m){var c=o.apply(null,arguments);return typeof c=="string"?c.replace(v,p):c}})},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(17));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(38)),g=o.__importDefault(t(3)),d=o.__importDefault(t(322)),p=o.__importStar(t(96)),f=o.__importDefault(t(33)),i=o.__importDefault(t(324)),u=t(7),l=function(m){o.__extends(c,m);function c(h){var A=this,y=g.default('
');return A=m.call(this,y,h)||this,i.default(h),A}return c.prototype.clickHandler=function(){var h=this.editor,A,y=h.selection.getSelectionContainerElem(),x=h.$textElem,S=x.html(),T=(0,r.default)(S).call(S);if(T===u.EMPTY_P){var P=x.children();h.selection.createRangeByElem(P,!0,!0),y=h.selection.getSelectionContainerElem()}if(!(y&&h.$textElem.equal(y)))if(this.isActive){var C="",E="";if(A=h.selection.getSelectionContainerElem(),!A)return;if(A.getNodeName()!=="A"){var D=p.getParentNodeA(A);A=g.default(D)}C=A.elems[0].innerText,E=A.attr("href"),this.createPanel(C,E)}else h.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(h.selection.getSelectionText(),"")},c.prototype.createPanel=function(h,A){var y=d.default(this.editor,h,A),x=new f.default(this,y);x.create()},c.prototype.tryChangeActive=function(){var h=this.editor;p.default(h)?this.active():this.unActive()},c}(v.default);n.default=l},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(28)),o=e(t(17)),v=e(t(29));(0,a.default)(n,"__esModule",{value:!0});var g=t(2),d=t(6),p=g.__importDefault(t(3)),f=g.__importStar(t(96)),i=t(323);function u(l,m,c){var h=d.getRandom("input-link"),A=d.getRandom("input-text"),y=d.getRandom("btn-ok"),x=d.getRandom("btn-del"),S=f.default(l)?"inline-block":"none",T;function P(){if(f.default(l)){var M=l.selection.getSelectionContainerElem();M&&(l.selection.createRangeByElem(M),l.selection.restoreSelection(),T=M)}}function C(M,I){var N=M.replace(//g,">"),B=p.default(''+N+" "),F=B.elems[0];F.innerText=M,F.href=I,f.default(l)&&P(),l.cmd.do("insertElem",B)}function E(){if(f.default(l))if(P(),T.getNodeName()==="A"){var M,I=T.elems[0],N=I.parentElement;N&&(0,r.default)(M=f.EXTRA_TAG).call(M,N.nodeName)?N.innerHTML=I.innerHTML:l.cmd.do("insertHTML",""+I.innerHTML+" ")}else{var B=f.getParentNodeA(T),F=B.innerHTML;l.cmd.do("insertHTML",""+F+" ")}}function D(M,I){var N=l.config.linkCheck(M,I);if(N!==void 0){if(N===!0)return!0;l.config.customAlert(N,"warning")}return!1}var R={width:300,height:0,tabs:[{title:l.i18next.t("menus.panelMenus.link.链接"),tpl:``,events:[{selector:"#"+y,type:"click",fn:function(){var I,N,B,F,O,H=l.selection.getSelectionContainerElem(),L=H?.elems[0];l.selection.restoreSelection();var U=l.selection.getSelectionRangeTopNodes()[0].getNode(),z=window.getSelection(),j=p.default("#"+h),K=p.default("#"+A),V=(0,o.default)(I=j.val()).call(I),Q=(0,o.default)(N=K.val()).call(N),w="";z&&!z?.isCollapsed&&(w=(F=i.insertHtml(z,U))===null||F===void 0?void 0:(0,o.default)(F).call(F));var G=w?.replace(/<.*?>/g,""),X=(O=G?.length)!==null&&O!==void 0?O:0;if(X<=Q.length){var tt=Q.substring(0,X),nt=Q.substring(X);G===tt&&(Q=G+nt)}if(V&&(Q||(Q=V),!!D(Q,V))){if(L?.nodeName==="A")return L.setAttribute("href",V),L.innerText=Q,!0;if(L?.nodeName!=="A"&&(0,r.default)(B=f.EXTRA_TAG).call(B,L.nodeName)){var ut=f.getParentNodeA(H);if(ut)return ut.setAttribute("href",V),L.innerText=Q,!0}return C(Q,V),!0}},bindEnter:!0},{selector:"#"+x,type:"click",fn:function(){return E(),!0}}]}],setLinkValue:function(I,N){var B="",F="",O;N==="text"&&(B="#"+A,F=m),N==="link"&&(B="#"+h,F=c),O=(0,v.default)(I).call(I,B).elems[0],O.value=F}};return R}n.default=u},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0}),n.insertHtml=n.createPartHtml=n.makeHtmlString=n.getTopNode=void 0;function o(i,u){var l=i,m=i;do{if(l.textContent===u)break;m=l,l.parentNode&&(l=l?.parentNode)}while(l?.nodeName!=="P");return m}n.getTopNode=o;function v(i,u){var l=i.nodeName,m="";if(i.nodeType===3||/^(h|H)[1-6]$/.test(l))return u;if(i.nodeType===1){var c=i.getAttribute("style"),h=i.getAttribute("face"),A=i.getAttribute("color");c&&(m=m+(' style="'+c+'"')),h&&(m=m+(' face="'+h+'"')),A&&(m=m+(' color="'+A+'"'))}return l=l.toLowerCase(),"<"+l+m+">"+u+""+l+">"}n.makeHtmlString=v;function g(i,u,l,m){var c,h=(c=u.textContent)===null||c===void 0?void 0:c.substring(l,m),A=u,y="";do y=v(A,h??""),h=y,A=A?.parentElement;while(A&&A.textContent!==i);return y}n.createPartHtml=g;function d(i,u){var l,m,c,h,A,y=i.anchorNode,x=i.focusNode,S=i.anchorOffset,T=i.focusOffset,P=(l=u.textContent)!==null&&l!==void 0?l:"",C=p(u),E="",D="",R="",M="",I=y,N=x,B=y;if(y?.isEqualNode(x??null)){var F=g(P,y,S,T);return F=f(C,F),F}for(y&&(D=g(P,y,S??0)),x&&(M=g(P,x,0,T)),y&&(I=o(y,P)),x&&(N=o(x,P)),B=(m=I?.nextSibling)!==null&&m!==void 0?m:y;!B?.isEqualNode(N??null);){var O=B?.nodeName;if(O==="#text")R=R+B?.textContent;else{var H=(h=(c=B?.firstChild)===null||c===void 0?void 0:c.parentElement)===null||h===void 0?void 0:h.innerHTML;B&&(R=R+v(B,H??""))}var L=(A=B?.nextSibling)!==null&&A!==void 0?A:B;if(L===B)break;B=L}return E=""+D+R+M,E=f(C,E),E}n.insertHtml=d;function p(i){for(var u,l=(u=i.textContent)!==null&&u!==void 0?u:"",m=[];i?.textContent===l;)i.nodeName!=="P"&&i.nodeName!=="TABLE"&&m.push(i),i=i.childNodes[0];return m}function f(i,u){return(0,r.default)(i).call(i,function(l){u=v(l,u)}),u}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(325));function v(g){o.default(g)}n.default=v},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(28));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3)),g=o.__importDefault(t(39)),d=t(96);function p(i){var u;function l(c){var h=[{$elem:v.default(""+i.i18next.t("menus.panelMenus.link.查看链接")+" "),onClick:function(y,x){var S=x.attr("href");return window.open(S,"_target"),!0}},{$elem:v.default(""+i.i18next.t("menus.panelMenus.link.取消链接")+" "),onClick:function(y,x){var S,T;y.selection.createRangeByElem(x),y.selection.restoreSelection();var P=x.childNodes();if(P?.getNodeName()==="IMG"){var C=(T=(S=y.selection.getSelectionContainerElem())===null||S===void 0?void 0:S.children())===null||T===void 0?void 0:T.elems[0].children[0];y.cmd.do("insertHTML",` ")}else{var E,D=x.elems[0],R=D.innerHTML,M=D.parentElement;M&&(0,r.default)(E=d.EXTRA_TAG).call(E,M.nodeName)?M.innerHTML=R:y.cmd.do("insertHTML",""+R+" ")}return!0}}];u=new g.default(i,c,h),u.create()}function m(){u&&(u.remove(),u=null)}return{showLinkTooltip:l,hideLinkTooltip:m}}function f(i){var u=p(i),l=u.showLinkTooltip,m=u.hideLinkTooltip;i.txt.eventHooks.linkClickEvents.push(l),i.txt.eventHooks.clickEvents.push(m),i.txt.eventHooks.keyupEvents.push(m),i.txt.eventHooks.toolbarClickEvents.push(m),i.txt.eventHooks.menuClickEvents.push(m),i.txt.eventHooks.textScrollEvents.push(m)}n.default=f},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(23)),v=r.__importDefault(t(3)),g=function(d){r.__extends(p,d);function p(f){var i=this,u=v.default(``);return i=d.call(this,u,f)||this,i}return p.prototype.clickHandler=function(){var f=this.editor,i=f.selection.isSelectionEmpty();i&&f.selection.createEmptyRange(),f.cmd.do("italic"),i&&(f.selection.collapseRange(),f.selection.restoreSelection())},p.prototype.tryChangeActive=function(){var f=this.editor;f.cmd.queryCommandState("italic")?this.active():this.unActive()},p}(o.default);n.default=g},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(23)),v=r.__importDefault(t(3)),g=function(d){r.__extends(p,d);function p(f){var i=this,u=v.default(``);return i=d.call(this,u,f)||this,i}return p.prototype.clickHandler=function(){var f=this.editor,i=f.selection.isSelectionEmpty();i&&f.selection.createEmptyRange(),f.cmd.do("underline"),i&&(f.selection.collapseRange(),f.selection.restoreSelection())},p.prototype.tryChangeActive=function(){var f=this.editor;f.cmd.queryCommandState("underline")?this.active():this.unActive()},p}(o.default);n.default=g},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(23)),v=r.__importDefault(t(3)),g=function(d){r.__extends(p,d);function p(f){var i=this,u=v.default(``);return i=d.call(this,u,f)||this,i}return p.prototype.clickHandler=function(){var f=this.editor,i=f.selection.isSelectionEmpty();i&&f.selection.createEmptyRange(),f.cmd.do("strikeThrough"),i&&(f.selection.collapseRange(),f.selection.restoreSelection())},p.prototype.tryChangeActive=function(){var f=this.editor;f.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},p}(o.default);n.default=g},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(24)),v=r.__importDefault(t(3)),g=r.__importDefault(t(330)),d=function(p){r.__extends(f,p);function f(i){var u=this,l=v.default(``),m=new g.default(i.config.fontNames),c={width:100,title:"设置字体",type:"list",list:m.getItemList(),clickHandler:function(A){u.command(A)}};return u=p.call(this,l,i,c)||this,u}return f.prototype.command=function(i){var u,l=this.editor,m=l.selection.isSelectionEmpty(),c=(u=l.selection.getSelectionContainerElem())===null||u===void 0?void 0:u.elems[0];if(c!=null){var h=c?.nodeName.toLowerCase()!=="p",A=c?.getAttribute("face")===i;if(m){if(h&&!A){var y=l.selection.getSelectionRangeTopNodes();l.selection.createRangeByElem(y[0]),l.selection.moveCursor(y[0].elems[0])}l.selection.setRangeToElem(c),l.selection.createEmptyRange()}l.cmd.do("fontName",i),m&&(l.selection.collapseRange(),l.selection.restoreSelection())}},f.prototype.tryChangeActive=function(){},f}(o.default);n.default=d},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3)),g=function(){function d(p){var f=this;this.itemList=[],(0,r.default)(p).call(p,function(i){var u=typeof i=="string"?i:i.value,l=typeof i=="string"?i:i.name;f.itemList.push({$elem:v.default(``+l+"
"),value:l})})}return d.prototype.getItemList=function(){return this.itemList},d}();n.default=g},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(24)),v=r.__importDefault(t(3)),g=r.__importDefault(t(332)),d=function(p){r.__extends(f,p);function f(i){var u=this,l=v.default(``),m=new g.default(i.config.fontSizes),c={width:160,title:"设置字号",type:"list",list:m.getItemList(),clickHandler:function(A){u.command(A)}};return u=p.call(this,l,i,c)||this,u}return f.prototype.command=function(i){var u,l=this.editor,m=l.selection.isSelectionEmpty(),c=(u=l.selection.getSelectionContainerElem())===null||u===void 0?void 0:u.elems[0];c!=null&&(l.cmd.do("fontSize",i),m&&(l.selection.collapseRange(),l.selection.restoreSelection()))},f.prototype.tryChangeActive=function(){},f}(o.default);n.default=d},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(3)),v=function(){function g(d){this.itemList=[];for(var p in d){var f=d[p];this.itemList.push({$elem:o.default(''+f.name+"
"),value:f.value})}}return g.prototype.getItemList=function(){return this.itemList},g}();n.default=v},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4)),o=e(t(27));(0,a.default)(n,"__esModule",{value:!0});var v=t(2),g=v.__importDefault(t(24)),d=v.__importDefault(t(3)),p=["LI"],f=["BLOCKQUOTE"],i=function(u){v.__extends(l,u);function l(m){var c=this,h=d.default(''),A={width:100,title:"对齐方式",type:"list",list:[{$elem:d.default(`
+
+ `+m.i18next.t("menus.dropListMenu.justify.靠左")+`
+
`),value:"left"},{$elem:d.default(`
+
+ `+m.i18next.t("menus.dropListMenu.justify.居中")+`
+
`),value:"center"},{$elem:d.default(`
+
+ `+m.i18next.t("menus.dropListMenu.justify.靠右")+`
+
`),value:"right"},{$elem:d.default(`
+
+ `+m.i18next.t("menus.dropListMenu.justify.两端")+`
+
`),value:"justify"}],clickHandler:function(x){c.command(x)}};return c=u.call(this,h,m,A)||this,c}return l.prototype.command=function(m){var c=this.editor,h=c.selection,A=h.getSelectionContainerElem();h.saveRange();var y=c.selection.getSelectionRangeTopNodes();if(A?.length)if(this.isSpecialNode(A,y[0])||this.isSpecialTopNode(y[0])){var x=this.getSpecialNodeUntilTop(A,y[0]);if(x==null)return;d.default(x).css("text-align",m)}else(0,r.default)(y).call(y,function(S){S.css("text-align",m)});h.restoreSelection()},l.prototype.getSpecialNodeUntilTop=function(m,c){for(var h=m.elems[0],A=c.elems[0];h!=null;){if((0,o.default)(p).call(p,h?.nodeName)!==-1||h.parentNode===A)return h;h=h.parentNode}return h},l.prototype.isSpecialNode=function(m,c){var h=this.getSpecialNodeUntilTop(m,c);return h==null?!1:(0,o.default)(p).call(p,h.nodeName)!==-1},l.prototype.isSpecialTopNode=function(m){var c;return m==null?!1:(0,o.default)(f).call(f,(c=m.elems[0])===null||c===void 0?void 0:c.nodeName)!==-1},l.prototype.tryChangeActive=function(){},l}(g.default);n.default=i},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3)),g=o.__importDefault(t(23)),d=o.__importDefault(t(335)),p=o.__importDefault(t(336)),f=t(7),i=function(u){o.__extends(l,u);function l(m){var c=this,h=v.default(``);return c=u.call(this,h,m)||this,d.default(m),c}return l.prototype.clickHandler=function(){var m,c,h=this.editor,A=h.selection.isSelectionEmpty(),y=h.selection.getSelectionRangeTopNodes(),x=y[y.length-1],S=this.getTopNodeName();if(S==="BLOCKQUOTE"){var T=v.default(x.childNodes()),P=T.length,C=x;(0,r.default)(T).call(T,function(M){var I=v.default(M);I.insertAfter(C),C=I}),x.remove(),h.selection.moveCursor(T.elems[P-1]),this.tryChangeActive()}else{var E=p.default(y);if(h.$textElem.equal(x)){var D=(m=h.selection.getSelectionContainerElem())===null||m===void 0?void 0:m.elems[0];h.selection.createRangeByElems(D.children[0],D.children[0]),y=h.selection.getSelectionRangeTopNodes(),E=p.default(y),x.append(E)}else E.insertAfter(x);this.delSelectNode(y);var R=(c=E.childNodes())===null||c===void 0?void 0:c.last().getNode();if(R==null)return;R.textContent?h.selection.moveCursor(R):h.selection.moveCursor(R,0),this.tryChangeActive(),v.default(f.EMPTY_P).insertAfter(E);return}A&&(h.selection.collapseRange(),h.selection.restoreSelection())},l.prototype.tryChangeActive=function(){var m,c=this.editor,h=(m=c.selection.getSelectionRangeTopNodes()[0])===null||m===void 0?void 0:m.getNodeName();h==="BLOCKQUOTE"?this.active():this.unActive()},l.prototype.getTopNodeName=function(){var m=this.editor,c=m.selection.getSelectionRangeTopNodes()[0],h=c?.getNodeName();return h},l.prototype.delSelectNode=function(m){(0,r.default)(m).call(m,function(c){c.remove()})},l}(g.default);n.default=i},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=t(7),v=r.__importDefault(t(3));function g(d){function p(f){var i,u=d.selection.getSelectionContainerElem(),l=d.selection.getSelectionRangeTopNodes()[0];if(l?.getNodeName()==="BLOCKQUOTE"){if(u.getNodeName()==="BLOCKQUOTE"){var m=(i=u.childNodes())===null||i===void 0?void 0:i.getNode();d.selection.moveCursor(m)}if(u.text()===""){f.preventDefault(),u.remove();var c=v.default(o.EMPTY_P);c.insertAfter(l),d.selection.moveCursor(c.getNode(),0)}l.text()===""&&l.remove()}}d.txt.eventHooks.enterDownEvents.push(p)}n.default=g},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3));function g(d){var p=v.default(" ");return(0,r.default)(d).call(d,function(f){p.append(f.clone(!0))}),p}n.default=g},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(26));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(24)),g=o.__importDefault(t(3)),d=t(6),p=function(f){o.__extends(i,f);function i(u){var l,m=this,c=g.default(``),h={width:120,title:"背景颜色",type:"inline-block",list:(0,r.default)(l=u.config.colors).call(l,function(A){return{$elem:g.default(' '),value:A}}),clickHandler:function(y){m.command(y)}};return m=f.call(this,c,u,h)||this,m}return i.prototype.command=function(u){var l,m=this.editor,c=m.selection.isSelectionEmpty(),h=(l=m.selection.getSelectionContainerElem())===null||l===void 0?void 0:l.elems[0];if(h!=null){var A=h?.nodeName.toLowerCase()!=="p",y=h?.style.backgroundColor,x=d.hexToRgb(u)===y;if(c){if(A&&!x){var S=m.selection.getSelectionRangeTopNodes();m.selection.createRangeByElem(S[0]),m.selection.moveCursor(S[0].elems[0])}m.selection.createEmptyRange()}m.cmd.do("backColor",u),c&&(m.selection.collapseRange(),m.selection.restoreSelection())}},i.prototype.tryChangeActive=function(){},i}(v.default);n.default=p},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(26));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(24)),g=o.__importDefault(t(3)),d=function(p){o.__extends(f,p);function f(i){var u,l=this,m=g.default(``),c={width:120,title:"文字颜色",type:"inline-block",list:(0,r.default)(u=i.config.colors).call(u,function(h){return{$elem:g.default(' '),value:h}}),clickHandler:function(A){l.command(A)}};return l=p.call(this,m,i,c)||this,l}return f.prototype.command=function(i){var u,l=this.editor,m=l.selection.isSelectionEmpty(),c=(u=l.selection.getSelectionContainerElem())===null||u===void 0?void 0:u.elems[0];if(c!=null){var h=l.selection.getSelectionText();if(c.nodeName==="A"&&c.textContent===h){var A=g.default(" ").getNode();c.appendChild(A)}l.cmd.do("foreColor",i),m&&(l.selection.collapseRange(),l.selection.restoreSelection())}},f.prototype.tryChangeActive=function(){},f}(v.default);n.default=d},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(3)),v=r.__importDefault(t(33)),g=r.__importDefault(t(38)),d=r.__importDefault(t(340)),p=r.__importDefault(t(346)),f=function(i){r.__extends(u,i);function u(l){var m=this,c=o.default(``);return m=i.call(this,c,l)||this,p.default(l),m}return u.prototype.clickHandler=function(){this.createPanel("")},u.prototype.createPanel=function(l){var m=d.default(this.editor,l),c=new v.default(this,m);c.create()},u.prototype.tryChangeActive=function(){},u}(g.default);n.default=f},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(17));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=t(6),g=o.__importDefault(t(3)),d=o.__importDefault(t(341)),p=t(7);function f(i,u){var l=i.config,m=new d.default(i),c=v.getRandom("input-iframe"),h=v.getRandom("btn-ok"),A=v.getRandom("input-upload"),y=v.getRandom("btn-local-ok");function x(C){i.cmd.do("insertHTML",C+p.EMPTY_P),i.config.onlineVideoCallback(C)}function S(C){var E=i.config.onlineVideoCheck(C);return E===!0?!0:(typeof E=="string"&&i.config.customAlert(E,"error"),!1)}var T=[{title:i.i18next.t("menus.panelMenus.video.上传视频"),tpl:``,events:[{selector:"#"+y,type:"click",fn:function(){var E=g.default("#"+A),D=E.elems[0];if(D)D.click();else return!0}},{selector:"#"+A,type:"change",fn:function(){var E=g.default("#"+A),D=E.elems[0];if(!D)return!0;var R=D.files;return R.length&&m.uploadVideo(R),!0}}]},{title:i.i18next.t("menus.panelMenus.video.插入视频"),tpl:`
+
"/>
+
+
+
+ `+i.i18next.t("插入")+`
+
+
+
`,events:[{selector:"#"+h,type:"click",fn:function(){var E,D=g.default("#"+c),R=(0,r.default)(E=D.val()).call(E);if(R&&S(R))return x(R),!0},bindEnter:!0}]}],P={width:300,height:0,tabs:[]};return window.FileReader&&(l.uploadVideoServer||l.customUploadVideo)&&P.tabs.push(T[0]),l.showLinkVideo&&P.tabs.push(T[1]),P}n.default=f},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(133)),o=e(t(57)),v=e(t(4)),g=e(t(27));(0,a.default)(n,"__esModule",{value:!0});var d=t(2),p=t(6),f=d.__importDefault(t(135)),i=d.__importDefault(t(136)),u=t(7),l=t(6),m=function(){function c(h){this.editor=h}return c.prototype.uploadVideo=function(h){var A=this;if(h.length){var y=this.editor,x=y.config,S="validate.",T=function(G){return y.i18next.t(S+G)},P=x.uploadVideoServer,C=x.uploadVideoMaxSize,E=C/1024,D=x.uploadVideoName,R=x.uploadVideoParams,M=x.uploadVideoParamsWithUrl,I=x.uploadVideoHeaders,N=x.uploadVideoHooks,B=x.uploadVideoTimeout,F=x.withVideoCredentials,O=x.customUploadVideo,H=x.uploadVideoAccept,L=[],U=[];if(p.arrForEach(h,function(w){var G=w.name,X=w.size/1024/1024;if(!(!G||!X)){if(!(H instanceof Array)){U.push("【"+H+"】"+T("uploadVideoAccept 不是Array"));return}if(!(0,r.default)(H).call(H,function(tt){return tt===G.split(".")[G.split(".").length-1]})){U.push("【"+G+"】"+T("不是视频"));return}if(E1&&(X=X+(G+1)),j.append(X,w)}),P){var K=P.split("#");P=K[0];var V=K[1]||"";(0,v.default)(p).call(p,R,function(w,G){M&&((0,g.default)(P).call(P,"?")>0?P+="&":P+="?",P=P+w+"="+G),j.append(w,G)}),V&&(P+="#"+V);var Q=f.default(P,{timeout:B,formData:j,headers:I,withCredentials:!!F,beforeSend:function(G){if(N.before)return N.before(G,y,L)},onTimeout:function(G){x.customAlert(T("上传视频超时"),"error"),N.timeout&&N.timeout(G,y)},onProgress:function(G,X){var tt=new i.default(y);X.lengthComputable&&(G=X.loaded/X.total,tt.show(G))},onError:function(G){x.customAlert(T("上传视频错误"),"error",T("上传视频错误")+","+T("服务器返回状态")+": "+G.status),N.error&&N.error(G,y)},onFail:function(G,X){x.customAlert(T("上传视频失败"),"error",T("上传视频返回结果错误")+(","+T("返回结果")+": ")+X),N.fail&&N.fail(G,y,X)},onSuccess:function(G,X){if(N.customInsert){var tt;N.customInsert((0,o.default)(tt=A.insertVideo).call(tt,A),X,y);return}if(X.errno!="0"){x.customAlert(T("上传视频失败"),"error",T("上传视频返回结果错误")+","+T("返回结果")+" errno="+X.errno),N.fail&&N.fail(G,y,X);return}var nt=X.data;A.insertVideo(nt.url),N.success&&N.success(G,y,X)}});typeof Q=="string"&&x.customAlert(Q,"error")}}},c.prototype.insertVideo=function(h){var A=this.editor,y=A.config,x="validate.",S=function(C,E){return E===void 0&&(E=x),A.i18next.t(E+C)};if(!y.customInsertVideo)l.UA.isFirefox?A.cmd.do("insertHTML",'
'):A.cmd.do("insertHTML",' '+u.EMPTY_P);else{y.customInsertVideo(h);return}var T=document.createElement("video");T.onload=function(){T=null},T.onerror=function(){y.customAlert(S("插入视频错误"),"error","wangEditor: "+S("插入视频错误")+","+S("视频链接")+' "'+h+'",'+S("下载链接失败")),T=null},T.onabort=function(){return T=null},T.src=h},c}();n.default=m},function(s,n,t){s.exports=t(343)},function(s,n,t){var e=t(344);s.exports=e},function(s,n,t){t(345);var e=t(9);s.exports=e.Date.now},function(s,n,t){var e=t(5);e({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(347)),v=r.__importDefault(t(349));function g(d){o.default(d),v.default(d)}n.default=g},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.createShowHideFn=void 0;var r=t(2),o=r.__importDefault(t(3)),v=r.__importDefault(t(39)),g=r.__importDefault(t(348));function d(f){var i,u=function(h,A){return A===void 0&&(A=""),f.i18next.t(A+h)};function l(c){var h=[{$elem:o.default(" "),onClick:function(y,x){return x.remove(),!0}},{$elem:o.default("100% "),onClick:function(y,x){return x.attr("width","100%"),x.removeAttr("height"),!0}},{$elem:o.default("50% "),onClick:function(y,x){return x.attr("width","50%"),x.removeAttr("height"),!0}},{$elem:o.default("30% "),onClick:function(y,x){return x.attr("width","30%"),x.removeAttr("height"),!0}},{$elem:o.default(""+u("重置")+" "),onClick:function(y,x){return x.removeAttr("width"),x.removeAttr("height"),!0}},{$elem:o.default(""+u("menus.justify.靠左")+" "),onClick:function(y,x){return g.default(x,"left"),!0}},{$elem:o.default(""+u("menus.justify.居中")+" "),onClick:function(y,x){return g.default(x,"center"),!0}},{$elem:o.default(""+u("menus.justify.靠右")+" "),onClick:function(y,x){return g.default(x,"right"),!0}}];i=new v.default(f,c,h),i.create()}function m(){i&&(i.remove(),i=null)}return{showVideoTooltip:l,hideVideoTooltip:m}}n.createShowHideFn=d;function p(f){var i=d(f),u=i.showVideoTooltip,l=i.hideVideoTooltip;f.txt.eventHooks.videoClickEvents.push(u),f.txt.eventHooks.clickEvents.push(l),f.txt.eventHooks.keyupEvents.push(l),f.txt.eventHooks.toolbarClickEvents.push(l),f.txt.eventHooks.menuClickEvents.push(l),f.txt.eventHooks.textScrollEvents.push(l),f.txt.eventHooks.changeEvents.push(l)}n.default=p},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(28));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3));function g(p,f){var i=["P"],u=d(p,i);u&&v.default(u).css("text-align",f)}n.default=g;function d(p,f){for(var i,u=p.elems[0];u!=null;){if((0,r.default)(f).call(f,u?.nodeName))return u;if(((i=u?.parentNode)===null||i===void 0?void 0:i.nodeName)==="BODY")return null;u=u.parentNode}return u}},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(6);function o(v){if(r.UA.isFirefox){var g=v.txt,d=v.selection,p=g.eventHooks.keydownEvents;p.push(function(f){var i=d.getSelectionContainerElem();if(i){var u=i.getNodeTop(v),l=u.length&&u.prev().length?u.prev():null;l&&l.attr("data-we-video-p")&&d.getCursorPos()===0&&f.keyCode===8&&l.remove()}})}}n.default=o},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(26));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=t(7),g=o.__importDefault(t(3)),d=o.__importDefault(t(33)),p=o.__importDefault(t(38)),f=o.__importDefault(t(351)),i=o.__importDefault(t(364)),u=function(l){o.__extends(m,l);function m(c){var h=this,A=g.default(''),y=i.default(c);if(y.onlyUploadConf){var x;A=y.onlyUploadConf.$elem,(0,r.default)(x=y.onlyUploadConf.events).call(x,function(S){var T=S.type,P=S.fn||v.EMPTY_FN;A.on(T,function(C){C.stopPropagation(),P(C)})})}return h=l.call(this,A,c)||this,h.imgPanelConfig=y,f.default(c),h}return m.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},m.prototype.createPanel=function(){var c=this.imgPanelConfig,h=new d.default(this,c);this.setPanel(h),h.create()},m.prototype.tryChangeActive=function(){},m}(p.default);n.default=u},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(352)),v=r.__importDefault(t(353)),g=r.__importDefault(t(354)),d=r.__importDefault(t(362)),p=r.__importDefault(t(363));function f(i){o.default(i),v.default(i),g.default(i),d.default(i),p.default(i)}n.default=f},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=t(131),v=r.__importDefault(t(97));function g(i,u){var l=i.config,m=l.pasteFilterStyle,c=l.pasteIgnoreImg,h=o.getPasteHtml(u,m,c);if(h)return!0;var A=o.getPasteText(u);return!!A}function d(i,u){for(var l,m=((l=u.clipboardData)===null||l===void 0?void 0:l.types)||[],c=0;c
+
+
+ `);return h.hide(),c.append(h),h}function i(m,c,h){var A=m.getBoundingClientRect(),y=h.getBoundingClientRect(),x=y.width.toFixed(2),S=y.height.toFixed(2);(0,r.default)(c).call(c,".w-e-img-drag-show-size").text(x+"px * "+S+"px"),p(c,(0,o.default)(x),(0,o.default)(S),y.left-A.left,y.top-A.top),c.show()}function u(m){var c=m.$textContainerElem,h,A=f(m,c);function y(T,P){T.on("click",function(C){C.stopPropagation()}),T.on("mousedown",".w-e-img-drag-rb",function(C){if(C.preventDefault(),!h)return;var E=C.clientX,D=C.clientY,R=P.getBoundingClientRect(),M=h.getBoundingClientRect(),I=M.width,N=M.height,B=M.left-R.left,F=M.top-R.top,O=I/N,H=I,L=N,U=g.default(document);function z(){U.off("mousemove",j),U.off("mouseup",K)}function j(V){V.stopPropagation(),V.preventDefault(),H=I+(V.clientX-E),L=N+(V.clientY-D),H/L!=O&&(L=H/O),H=(0,o.default)(H.toFixed(2)),L=(0,o.default)(L.toFixed(2)),(0,r.default)(T).call(T,".w-e-img-drag-show-size").text(H.toFixed(2).replace(".00","")+"px * "+L.toFixed(2).replace(".00","")+"px"),p(T,H,L,B,F)}U.on("mousemove",j);function K(){h.attr("width",H+""),h.attr("height",L+"");var V=h.getBoundingClientRect();p(T,H,L,V.left-R.left,V.top-R.top),z()}U.on("mouseup",K),U.on("mouseleave",z)})}function x(T){if(d.UA.isIE())return!1;T&&(h=T,i(c,A,h))}function S(){(0,r.default)(c).call(c,".w-e-img-drag-mask").hide()}return y(A,c),g.default(document).on("click",S),m.beforeDestroy(function(){g.default(document).off("click",S)}),{showDrag:x,hideDrag:S}}n.createShowHideFn=u;function l(m){var c=u(m),h=c.showDrag,A=c.hideDrag;m.txt.eventHooks.imgClickEvents.push(h),m.txt.eventHooks.textScrollEvents.push(A),m.txt.eventHooks.keyupEvents.push(A),m.txt.eventHooks.toolbarClickEvents.push(A),m.txt.eventHooks.menuClickEvents.push(A),m.txt.eventHooks.changeEvents.push(A)}n.default=l},function(s,n,t){s.exports=t(356)},function(s,n,t){var e=t(357);s.exports=e},function(s,n,t){t(358);var e=t(9);s.exports=e.parseFloat},function(s,n,t){var e=t(5),a=t(359);e({global:!0,forced:parseFloat!=a},{parseFloat:a})},function(s,n,t){var e=t(8),a=t(90).trim,r=t(68),o=e.parseFloat,v=1/o(r+"-0")!==-1/0;s.exports=v?function(d){var p=a(String(d)),f=o(p);return f===0&&p.charAt(0)=="-"?-0:f}:o},function(s,n,t){var e=t(20),a=t(361);a=a.__esModule?a.default:a,typeof a=="string"&&(a=[[s.i,a,""]]);var r={};r.insert="head",r.singleton=!1,e(a,r),s.exports=a.locals||{}},function(s,n,t){var e=t(21);n=e(!1),n.push([s.i,`.w-e-text-container {
+ overflow: hidden;
+}
+.w-e-img-drag-mask {
+ position: absolute;
+ z-index: 1;
+ border: 1px dashed #ccc;
+ box-sizing: border-box;
+}
+.w-e-img-drag-mask .w-e-img-drag-rb {
+ position: absolute;
+ right: -5px;
+ bottom: -5px;
+ width: 16px;
+ height: 16px;
+ border-radius: 50%;
+ background: #ccc;
+ cursor: se-resize;
+}
+.w-e-img-drag-mask .w-e-img-drag-show-size {
+ min-width: 110px;
+ height: 22px;
+ line-height: 22px;
+ font-size: 14px;
+ color: #999;
+ position: absolute;
+ left: 0;
+ top: 0;
+ background-color: #999;
+ color: #fff;
+ border-radius: 2px;
+ padding: 0 5px;
+}
+`,""]),s.exports=n},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.createShowHideFn=void 0;var r=t(2),o=r.__importDefault(t(3)),v=r.__importDefault(t(39));function g(p){var f,i=function(c,h){return h===void 0&&(h=""),p.i18next.t(h+c)};function u(m){var c=[{$elem:o.default(" "),onClick:function(A,y){return A.selection.createRangeByElem(y),A.selection.restoreSelection(),A.cmd.do("delete"),!0}},{$elem:o.default("30% "),onClick:function(A,y){return y.attr("width","30%"),y.removeAttr("height"),!0}},{$elem:o.default("50% "),onClick:function(A,y){return y.attr("width","50%"),y.removeAttr("height"),!0}},{$elem:o.default("100% "),onClick:function(A,y){return y.attr("width","100%"),y.removeAttr("height"),!0}}];c.push({$elem:o.default(""+i("重置")+" "),onClick:function(A,y){return y.removeAttr("width"),y.removeAttr("height"),!0}}),m.attr("data-href")&&c.push({$elem:o.default(""+i("查看链接")+" "),onClick:function(A,y){var x=y.attr("data-href");return x&&(x=decodeURIComponent(x),window.open(x,"_target")),!0}}),f=new v.default(p,m,c),f.create()}function l(){f&&(f.remove(),f=null)}return{showImgTooltip:u,hideImgTooltip:l}}n.createShowHideFn=g;function d(p){var f=g(p),i=f.showImgTooltip,u=f.hideImgTooltip;p.txt.eventHooks.imgClickEvents.push(i),p.txt.eventHooks.clickEvents.push(u),p.txt.eventHooks.keyupEvents.push(u),p.txt.eventHooks.toolbarClickEvents.push(u),p.txt.eventHooks.menuClickEvents.push(u),p.txt.eventHooks.textScrollEvents.push(u),p.txt.eventHooks.imgDragBarMouseDownEvents.push(u),p.txt.eventHooks.changeEvents.push(u)}n.default=d},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});function r(o){var v=o.txt,g=o.selection,d=v.eventHooks.keydownEvents;d.push(function(p){var f=g.getSelectionContainerElem(),i=g.getRange();if(!(!i||!f||p.keyCode!==8||!g.isSelectionEmpty())){var u=i.startContainer,l=i.startOffset,m=null;if(l===0)for(;u!==f.elems[0]&&f.elems[0].contains(u)&&u.parentNode&&!m;){if(u.previousSibling){m=u.previousSibling;break}u=u.parentNode}else u.nodeType!==3&&(m=u.childNodes[l-1]);if(m){for(var c=m;c.childNodes.length;)c=c.childNodes[c.childNodes.length-1];c instanceof HTMLElement&&c.tagName==="IMG"&&(c.remove(),p.preventDefault())}}})}n.default=r},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(26)),o=e(t(17));(0,a.default)(n,"__esModule",{value:!0});var v=t(2),g=v.__importDefault(t(3)),d=t(6),p=v.__importDefault(t(97));function f(i){var u,l=i.config,m=new p.default(i),c=d.getRandom("up-trigger-id"),h=d.getRandom("up-file-id"),A=d.getRandom("input-link-url"),y=d.getRandom("input-link-url-alt"),x=d.getRandom("input-link-url-href"),S=d.getRandom("btn-link"),T="menus.panelMenus.image.",P=function(O,H){return H===void 0&&(H=T),i.i18next.t(H+O)};function C(F,O,H){var L=l.linkImgCheck(F);return L===!0?!0:(typeof L=="string"&&l.customAlert(L,"error"),!1)}var E=l.uploadImgMaxLength===1?"":'multiple="multiple"',D=(0,r.default)(u=l.uploadImgAccept).call(u,function(F){return"image/"+F}).join(","),R=function(O,H,L){return'`},M=[{selector:"#"+c,type:"click",fn:function(){var O=l.uploadImgFromMedia;if(O&&typeof O=="function")return O(),!0;var H=g.default("#"+h),L=H.elems[0];if(L)L.click();else return!0}},{selector:"#"+h,type:"change",fn:function(){var O=g.default("#"+h),H=O.elems[0];if(!H)return!0;var L=H.files;return L?.length&&m.uploadImg(L),H&&(H.value=""),!0}}],I=[` '];l.showLinkImgAlt&&I.push(`
+ '),l.showLinkImgHref&&I.push(`
+ ');var N=[{title:P("上传图片"),tpl:R("w-e-up-img-container","w-e-icon-upload2",""),events:M},{title:P("网络图片"),tpl:`
+ `+I.join("")+`
+
+ '+P("插入","")+`
+
+
`,events:[{selector:"#"+S,type:"click",fn:function(){var O,H=g.default("#"+A),L=(0,o.default)(O=H.val()).call(O);if(L){var U;if(l.showLinkImgAlt){var z;U=(0,o.default)(z=g.default("#"+y).val()).call(z)}var j;if(l.showLinkImgHref){var K;j=(0,o.default)(K=g.default("#"+x).val()).call(K)}if(C(L))return m.insertImg(L,U,j),!0}},bindEnter:!0}]}],B={width:300,height:0,tabs:[],onlyUploadConf:{$elem:g.default(R("w-e-menu","w-e-icon-image","图片")),events:M}};return window.FileReader&&(l.uploadImgShowBase64||l.uploadImgServer||l.customUploadImg||l.uploadImgFromMedia)&&B.tabs.push(N[0]),l.showLinkImg&&(B.tabs.push(N[1]),B.onlyUploadConf=void 0),B}n.default=f},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3)),g=o.__importDefault(t(24)),d=o.__importDefault(t(366)),p=function(f){o.__extends(i,f);function i(u){var l=this,m=v.default(``),c={width:130,title:"设置缩进",type:"list",list:[{$elem:v.default(`
+
+ `+u.i18next.t("menus.dropListMenu.indent.增加缩进")+`
+
`),value:"increase"},{$elem:v.default(`
+
+ `+u.i18next.t("menus.dropListMenu.indent.减少缩进")+`
+
`),value:"decrease"}],clickHandler:function(A){l.command(A)}};return l=f.call(this,m,u,c)||this,l}return i.prototype.command=function(u){var l=this.editor,m=l.selection.getSelectionContainerElem();if(m&&l.$textElem.equal(m)){var c=l.selection.getSelectionRangeTopNodes();c.length>0&&(0,r.default)(c).call(c,function(h){d.default(v.default(h),u,l)})}else m&&m.length>0&&(0,r.default)(m).call(m,function(h){d.default(v.default(h),u,l)});l.selection.restoreSelection(),this.tryChangeActive()},i.prototype.tryChangeActive=function(){var u=this.editor,l=u.selection.getSelectionStartElem(),m=v.default(l).getNodeTop(u);m.length<=0||(m.elems[0].style.paddingLeft!=""?this.active():this.unActive())},i}(g.default);n.default=p},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(45)),o=e(t(17));(0,a.default)(n,"__esModule",{value:!0});var v=t(2),g=v.__importDefault(t(367)),d=v.__importDefault(t(368)),p=/^(\d+)(\w+)$/,f=/^(\d+)%$/;function i(l){var m=l.config.indentation;if(typeof m=="string"){if(p.test(m)){var c,h=(0,r.default)(c=(0,o.default)(m).call(m).match(p)).call(c,1,3),A=h[0],y=h[1];return{value:Number(A),unit:y}}else if(f.test(m))return{value:Number((0,o.default)(m).call(m).match(f)[1]),unit:"%"}}else if(m.value!==void 0&&m.unit)return m;return{value:2,unit:"em"}}function u(l,m,c){var h=l.getNodeTop(c),A=/^(P|H[0-9]*)$/;A.test(h.getNodeName())&&(m==="increase"?g.default(h,i(c)):m==="decrease"&&d.default(h,i(c)))}n.default=u},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(45));(0,a.default)(n,"__esModule",{value:!0});function o(v,g){var d=v.elems[0];if(d.style.paddingLeft==="")v.css("padding-left",g.value+g.unit);else{var p=d.style.paddingLeft,f=(0,r.default)(p).call(p,0,p.length-g.unit.length),i=Number(f)+g.value;v.css("padding-left",""+i+g.unit)}}n.default=o},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(45));(0,a.default)(n,"__esModule",{value:!0});function o(v,g){var d=v.elems[0];if(d.style.paddingLeft!==""){var p=d.style.paddingLeft,f=(0,r.default)(p).call(p,0,p.length-g.unit.length),i=Number(f)-g.value;i>0?v.css("padding-left",""+i+g.unit):v.css("padding-left","")}}n.default=o},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(3)),v=r.__importDefault(t(38)),g=r.__importDefault(t(33)),d=r.__importDefault(t(370)),p=function(f){r.__extends(i,f);function i(u){var l=this,m=o.default(`
`);return l=f.call(this,m,u)||this,l}return i.prototype.createPanel=function(){var u=d.default(this.editor),l=new g.default(this,u);l.create()},i.prototype.clickHandler=function(){this.createPanel()},i.prototype.tryChangeActive=function(){},i}(v.default);n.default=p},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(26)),o=e(t(70)),v=e(t(17));(0,a.default)(n,"__esModule",{value:!0});var g=t(2),d=g.__importDefault(t(3));function p(f){var i=f.config.emotions;function u(c){var h=[];if(c.type=="image"){var A;h=(0,r.default)(A=c.content).call(A,function(x){return typeof x=="string"?"":'
+
+ `}),h=(0,o.default)(h).call(h,function(x){return x!==""})}else{var y;h=(0,r.default)(y=c.content).call(y,function(x){return''+x+" "})}return h.join("").replace(/ /g,"")}var l=(0,r.default)(i).call(i,function(c){return{title:f.i18next.t("menus.panelMenus.emoticon."+c.title),tpl:""+u(c)+"
",events:[{selector:".eleImg",type:"click",fn:function(A){var y=d.default(A.target),x=y.getNodeName(),S;if(x==="IMG"){var T;S=(0,v.default)(T=y.parent().html()).call(T)}else S=""+y.html()+" ";return f.cmd.do("insertHTML",S),!0}}]}}),m={width:300,height:230,tabs:l};return m}n.default=p},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.createListHandle=n.ClassType=void 0;var r=t(2),o=r.__importDefault(t(3)),v=r.__importDefault(t(372)),g=r.__importDefault(t(374)),d=r.__importDefault(t(375)),p=r.__importDefault(t(376)),f=r.__importDefault(t(377)),i;(function(c){c.Wrap="WrapListHandle",c.Join="JoinListHandle",c.StartJoin="StartJoinListHandle",c.EndJoin="EndJoinListHandle",c.Other="OtherListHandle"})(i=n.ClassType||(n.ClassType={}));var u={WrapListHandle:v.default,JoinListHandle:g.default,StartJoinListHandle:d.default,EndJoinListHandle:p.default,OtherListHandle:f.default};function l(c,h,A){if(c===i.Other&&A===void 0)throw new Error("other 类需要传入 range");return c!==i.Other?new u[c](h):new u[c](h,A)}n.createListHandle=l;var m=function(){function c(h){this.handle=h,this.handle.exec()}return c.prototype.getSelectionRangeElem=function(){return o.default(this.handle.selectionRangeElem.get())},c}();n.default=m},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3)),g=t(58),d=t(47),p=function(f){o.__extends(i,f);function i(u){return f.call(this,u)||this}return i.prototype.exec=function(){var u=this.options,l=u.listType,m=u.listTarget,c=u.$selectionElem,h=u.$startElem,A=u.$endElem,y,x=[],S=c?.getNodeName(),T=h.prior,P=A.prior;if(!h.prior&&!A.prior||!T?.prev().length&&!P?.next().length){var C;(0,r.default)(C=c?.children()).call(C,function(B){x.push(v.default(B))}),S===l?y=d.createElementFragment(x,d.createDocumentFragment(),"p"):(y=d.createElement(m),(0,r.default)(x).call(x,function(B){y.appendChild(B.elems[0])})),this.selectionRangeElem.set(y),d.insertBefore(c,y,c.elems[0]),c.remove()}else{for(var E=T;E.length;)x.push(E),P?.equal(E)?E=v.default(void 0):E=E.next();var D=T.prev(),R=P.next();if(S===l?y=d.createElementFragment(x,d.createDocumentFragment(),"p"):(y=d.createElement(m),(0,r.default)(x).call(x,function(B){y.append(B.elems[0])})),D.length&&R.length){for(var M=[];R.length;)M.push(R),R=R.next();var I=d.createElement(S);(0,r.default)(M).call(M,function(B){I.append(B.elems[0])}),v.default(I).insertAfter(c),this.selectionRangeElem.set(y);var N=c.next();N.length?d.insertBefore(c,y,N.elems[0]):c.parent().elems[0].append(y)}else if(!D.length)this.selectionRangeElem.set(y),d.insertBefore(c,y,c.elems[0]);else{this.selectionRangeElem.set(y);var N=c.next();N.length?d.insertBefore(c,y,N.elems[0]):c.parent().elems[0].append(y)}}},i}(g.ListHandle);n.default=p},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=function(){function v(){this._element=null}return v.prototype.set=function(g){if(g instanceof DocumentFragment){var d,p=[];(0,r.default)(d=g.childNodes).call(d,function(f){p.push(f)}),g=p}this._element=g},v.prototype.get=function(){return this._element},v.prototype.clear=function(){this._element=null},v}();n.default=o},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3)),g=t(58),d=t(47),p=function(f){o.__extends(i,f);function i(u){return f.call(this,u)||this}return i.prototype.exec=function(){var u,l,m,c,h,A,y,x=this.options,S=x.editor,T=x.listType,P=x.listTarget,C=x.$startElem,E=x.$endElem,D,R=S.selection.getSelectionRangeTopNodes(),M=C?.getNodeName(),I=E?.getNodeName();if(M===I)if(R.length>2)if(R.shift(),R.pop(),D=d.createElementFragment(d.filterSelectionNodes(R),d.createDocumentFragment()),M===T)(u=E.children())===null||u===void 0||(0,r.default)(u).call(u,function(V){D.append(V)}),E.remove(),this.selectionRangeElem.set(D),C.elems[0].append(D);else{for(var N=document.createDocumentFragment(),B=document.createDocumentFragment(),F=d.getStartPoint(C);F.length;){var O=F.elems[0];F=F.next(),N.append(O)}for(var H=d.getEndPoint(E),L=[];H.length;)L.unshift(H.elems[0]),H=H.prev();(0,r.default)(L).call(L,function(V){B.append(V)});var U=d.createElement(P);U.append(N),U.append(D),U.append(B),D=U,this.selectionRangeElem.set(D),v.default(U).insertAfter(C),!(!((l=C.children())===null||l===void 0)&&l.length)&&C.remove(),!(!((m=E.children())===null||m===void 0)&&m.length)&&E.remove()}else{R.length=0;for(var F=d.getStartPoint(C);F.length;)R.push(F),F=F.next();for(var H=d.getEndPoint(E),L=[];H.length;)L.unshift(H),H=H.prev();R.push.apply(R,L),M===T?(D=d.createElementFragment(R,d.createDocumentFragment(),"p"),this.selectionRangeElem.set(D),d.insertBefore(C,D,E.elems[0])):(D=d.createElement(P),(0,r.default)(R).call(R,function(G){D.append(G.elems[0])}),this.selectionRangeElem.set(D),v.default(D).insertAfter(C)),!(!((c=C.children())===null||c===void 0)&&c.length)&&E.remove(),!(!((h=E.children())===null||h===void 0)&&h.length)&&E.remove()}else{for(var z=[],H=d.getEndPoint(E);H.length;)z.unshift(H),H=H.prev();for(var j=[],F=d.getStartPoint(C);F.length;)j.push(F),F=F.next();if(D=d.createDocumentFragment(),R.shift(),R.pop(),(0,r.default)(j).call(j,function(w){return D.append(w.elems[0])}),D=d.createElementFragment(d.filterSelectionNodes(R),D),(0,r.default)(z).call(z,function(w){return D.append(w.elems[0])}),this.selectionRangeElem.set(D),M===T)C.elems[0].append(D),!(!((A=E.children())===null||A===void 0)&&A.length)&&E.remove();else if(!((y=E.children())===null||y===void 0)&&y.length){var K=E.children();d.insertBefore(K,D,K.elems[0])}else E.elems[0].append(D)}},i}(g.ListHandle);n.default=p},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3)),g=t(58),d=t(47),p=function(f){o.__extends(i,f);function i(u){return f.call(this,u)||this}return i.prototype.exec=function(){var u,l=this.options,m=l.editor,c=l.listType,h=l.listTarget,A=l.$startElem,y,x=m.selection.getSelectionRangeTopNodes(),S=A?.getNodeName();x.shift();for(var T=[],P=d.getStartPoint(A);P.length;)T.push(P),P=P.next();S===c?(y=d.createDocumentFragment(),(0,r.default)(T).call(T,function(C){return y.append(C.elems[0])}),y=d.createElementFragment(d.filterSelectionNodes(x),y),this.selectionRangeElem.set(y),A.elems[0].append(y)):(y=d.createElement(h),(0,r.default)(T).call(T,function(C){return y.append(C.elems[0])}),y=d.createElementFragment(d.filterSelectionNodes(x),y),this.selectionRangeElem.set(y),v.default(y).insertAfter(A),!(!((u=A.children())===null||u===void 0)&&u.length)&&A.remove())},i}(g.ListHandle);n.default=p},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=o.__importDefault(t(3)),g=t(58),d=t(47),p=function(f){o.__extends(i,f);function i(u){return f.call(this,u)||this}return i.prototype.exec=function(){var u,l,m=this.options,c=m.editor,h=m.listType,A=m.listTarget,y=m.$endElem,x,S=c.selection.getSelectionRangeTopNodes(),T=y?.getNodeName();S.pop();for(var P=[],C=d.getEndPoint(y);C.length;)P.unshift(C),C=C.prev();if(T===h)if(x=d.createElementFragment(d.filterSelectionNodes(S),d.createDocumentFragment()),(0,r.default)(P).call(P,function(R){return x.append(R.elems[0])}),this.selectionRangeElem.set(x),!((u=y.children())===null||u===void 0)&&u.length){var E=y.children();d.insertBefore(E,x,E.elems[0])}else y.elems[0].append(x);else{var D=d.filterSelectionNodes(S);D.push.apply(D,P),x=d.createElementFragment(D,d.createElement(A)),this.selectionRangeElem.set(x),v.default(x).insertBefore(y),!(!((l=y.children())===null||l===void 0)&&l.length)&&y.remove()}},i}(g.ListHandle);n.default=p},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=t(58),v=t(47),g=function(d){r.__extends(p,d);function p(f,i){var u=d.call(this,f)||this;return u.range=i,u}return p.prototype.exec=function(){var f=this.options,i=f.editor,u=f.listTarget,l=i.selection.getSelectionRangeTopNodes(),m=v.createElementFragment(v.filterSelectionNodes(l),v.createElement(u));this.selectionRangeElem.set(m),this.range.insertNode(m)},p}(o.ListHandle);n.default=g},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4)),o=e(t(27));(0,a.default)(n,"__esModule",{value:!0});var v=t(2),g=v.__importDefault(t(24)),d=v.__importDefault(t(3)),p=v.__importDefault(t(379)),f=function(i){v.__extends(u,i);function u(l){var m=this,c=d.default(``),h=new p.default(l,l.config.lineHeights),A={width:100,title:"设置行高",type:"list",list:h.getItemList(),clickHandler:function(x){l.selection.saveRange(),m.command(x)}};return m=i.call(this,c,l,A)||this,m}return u.prototype.command=function(l){var m=this.editor;m.selection.restoreSelection();var c=d.default(m.selection.getSelectionContainerElem());if(c.elems.length){if(c&&m.$textElem.equal(c)){for(var h=!1,A=d.default(m.selection.getSelectionStartElem()).elems[0],y=d.default(m.selection.getSelectionEndElem()).elems[0],x=this.getDom(A),S=this.getDom(y),T=c.elems[0].children,P=0;P"+p.i18next.t("默认")+""),value:""}],(0,r.default)(f).call(f,function(u){i.itemList.push({$elem:v.default(""+u+" "),value:u})})}return d.prototype.getItemList=function(){return this.itemList},d}();n.default=g},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(3)),v=r.__importDefault(t(23)),g=function(d){r.__extends(p,d);function p(f){var i=this,u=o.default(``);return i=d.call(this,u,f)||this,i}return p.prototype.clickHandler=function(){var f=this.editor;f.history.revoke();var i=f.$textElem.children();if(i?.length){var u=i.last();f.selection.createRangeByElem(u,!1,!0),f.selection.restoreSelection()}},p.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},p}(v.default);n.default=g},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(3)),v=r.__importDefault(t(23)),g=function(d){r.__extends(p,d);function p(f){var i=this,u=o.default(``);return i=d.call(this,u,f)||this,i}return p.prototype.clickHandler=function(){var f=this.editor;f.history.restore();var i=f.$textElem.children();if(i?.length){var u=i.last();f.selection.createRangeByElem(u,!1,!0),f.selection.restoreSelection()}},p.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},p}(v.default);n.default=g},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(38)),v=r.__importDefault(t(3)),g=r.__importDefault(t(383)),d=r.__importDefault(t(33)),p=r.__importDefault(t(392)),f=function(i){r.__extends(u,i);function u(l){var m=this,c=v.default('');return m=i.call(this,c,l)||this,p.default(l),m}return u.prototype.clickHandler=function(){this.createPanel()},u.prototype.createPanel=function(){var l=g.default(this.editor),m=new d.default(this,l);m.create()},u.prototype.tryChangeActive=function(){},u}(o.default);n.default=f},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(384));(0,a.default)(n,"__esModule",{value:!0});var o=t(2),v=t(6),g=o.__importDefault(t(3));t(389);var d=o.__importDefault(t(391));function p(i){return i>0&&(0,r.default)(i)}function f(i){var u=new d.default(i),l=v.getRandom("w-col-id"),m=v.getRandom("w-row-id"),c=v.getRandom("btn-link"),h="menus.panelMenus.table.",A=function(T){return i.i18next.t(T)},y=[{title:A(h+"插入表格"),tpl:``,events:[{selector:"#"+c,type:"click",fn:function(){var T=Number(g.default("#"+l).val()),P=Number(g.default("#"+m).val());return p(P)&&p(T)?(u.createAction(P,T),!0):(i.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}],x={width:330,height:0,tabs:[]};return x.tabs.push(y[0]),x}n.default=f},function(s,n,t){s.exports=t(385)},function(s,n,t){var e=t(386);s.exports=e},function(s,n,t){t(387);var e=t(9);s.exports=e.Number.isInteger},function(s,n,t){var e=t(5),a=t(388);e({target:"Number",stat:!0},{isInteger:a})},function(s,n,t){var e=t(13),a=Math.floor;s.exports=function(o){return!e(o)&&isFinite(o)&&a(o)===o}},function(s,n,t){var e=t(20),a=t(390);a=a.__esModule?a.default:a,typeof a=="string"&&(a=[[s.i,a,""]]);var r={};r.insert="head",r.singleton=!1,e(a,r),s.exports=a.locals||{}},function(s,n,t){var e=t(21);n=e(!1),n.push([s.i,`.w-e-table {
+ display: flex;
+}
+.w-e-table .w-e-table-input {
+ width: 40px;
+ text-align: center!important;
+ margin: 0 5px;
+}
+`,""]),s.exports=n},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=t(7),v=r.__importDefault(t(3)),g=function(){function d(p){this.editor=p}return d.prototype.createAction=function(p,f){var i=this.editor,u=v.default(i.selection.getSelectionContainerElem()),l=v.default(u.elems[0]).parentUntilEditor("UL",i),m=v.default(u.elems[0]).parentUntilEditor("OL",i);if(!(l||m)){var c=this.createTableHtml(p,f);i.cmd.do("insertHTML",c)}},d.prototype.createTableHtml=function(p,f){for(var i="",u="",l=0;l":u=u+"
";i=i+""+u+" "}var c='"+o.EMPTY_P);return c},d}();n.default=g},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(393)),v=t(400);function g(d){o.default(d),v.bindEventKeyboardEvent(d),v.bindClickEvent(d)}n.default=g},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0});var r=t(2),o=r.__importDefault(t(3)),v=r.__importDefault(t(39)),g=r.__importDefault(t(394)),d=r.__importDefault(t(399)),p=t(7);function f(m){var c;function h(y){var x=new d.default(m),S="menus.panelMenus.table.",T=function(E,D){return D===void 0&&(D=S),m.i18next.t(D+E)},P=[{$elem:o.default(""+T("删除表格")+" "),onClick:function(E,D){return E.selection.createRangeByElem(D),E.selection.restoreSelection(),E.cmd.do("insertHTML",p.EMPTY_P),!0}},{$elem:o.default(""+T("添加行")+" "),onClick:function(E,D){var R=i(E);if(R)return!0;var M=o.default(E.selection.getSelectionStartElem()),I=x.getRowNode(M.elems[0]);if(!I)return!0;var N=Number(x.getCurrentRowIndex(D.elems[0],I)),B=x.getTableHtml(D.elems[0]),F=x.getTableHtml(g.default.ProcessingRow(o.default(B),N).elems[0]);return F=l(D,F),E.selection.createRangeByElem(D),E.selection.restoreSelection(),E.cmd.do("insertHTML",F),!0}},{$elem:o.default(""+T("删除行")+" "),onClick:function(E,D){var R=i(E);if(R)return!0;var M=o.default(E.selection.getSelectionStartElem()),I=x.getRowNode(M.elems[0]);if(!I)return!0;var N=Number(x.getCurrentRowIndex(D.elems[0],I)),B=x.getTableHtml(D.elems[0]),F=g.default.DeleteRow(o.default(B),N).elems[0].children[0].children.length,O="";return E.selection.createRangeByElem(D),E.selection.restoreSelection(),F===0?O=p.EMPTY_P:O=x.getTableHtml(g.default.DeleteRow(o.default(B),N).elems[0]),O=l(D,O),E.cmd.do("insertHTML",O),!0}},{$elem:o.default(""+T("添加列")+" "),onClick:function(E,D){var R=i(E);if(R)return!0;var M=o.default(E.selection.getSelectionStartElem()),I=x.getCurrentColIndex(M.elems[0]),N=x.getTableHtml(D.elems[0]),B=x.getTableHtml(g.default.ProcessingCol(o.default(N),I).elems[0]);return B=l(D,B),E.selection.createRangeByElem(D),E.selection.restoreSelection(),E.cmd.do("insertHTML",B),!0}},{$elem:o.default(""+T("删除列")+" "),onClick:function(E,D){var R=i(E);if(R)return!0;var M=o.default(E.selection.getSelectionStartElem()),I=x.getCurrentColIndex(M.elems[0]),N=x.getTableHtml(D.elems[0]),B=g.default.DeleteCol(o.default(N),I),F=B.elems[0].children[0].children[0].children.length,O="";return E.selection.createRangeByElem(D),E.selection.restoreSelection(),F===0?O=p.EMPTY_P:O=x.getTableHtml(B.elems[0]),O=l(D,O),E.cmd.do("insertHTML",O),!0}},{$elem:o.default(""+T("设置表头")+" "),onClick:function(E,D){var R=i(E);if(R)return!0;var M=o.default(E.selection.getSelectionStartElem()),I=x.getRowNode(M.elems[0]);if(!I)return!0;var N=Number(x.getCurrentRowIndex(D.elems[0],I));N!==0&&(N=0);var B=x.getTableHtml(D.elems[0]),F=x.getTableHtml(g.default.setTheHeader(o.default(B),N,"th").elems[0]);return F=l(D,F),E.selection.createRangeByElem(D),E.selection.restoreSelection(),E.cmd.do("insertHTML",F),!0}},{$elem:o.default(""+T("取消表头")+" "),onClick:function(E,D){var R=o.default(E.selection.getSelectionStartElem()),M=x.getRowNode(R.elems[0]);if(!M)return!0;var I=Number(x.getCurrentRowIndex(D.elems[0],M));I!==0&&(I=0);var N=x.getTableHtml(D.elems[0]),B=x.getTableHtml(g.default.setTheHeader(o.default(N),I,"td").elems[0]);return B=l(D,B),E.selection.createRangeByElem(D),E.selection.restoreSelection(),E.cmd.do("insertHTML",B),!0}}];c=new v.default(m,y,P),c.create()}function A(){c&&(c.remove(),c=null)}return{showTableTooltip:h,hideTableTooltip:A}}function i(m){var c=m.selection.getSelectionStartElem(),h=m.selection.getSelectionEndElem();return c?.elems[0]!==h?.elems[0]}function u(m){var c=f(m),h=c.showTableTooltip,A=c.hideTableTooltip;m.txt.eventHooks.tableClickEvents.push(h),m.txt.eventHooks.clickEvents.push(A),m.txt.eventHooks.keyupEvents.push(A),m.txt.eventHooks.toolbarClickEvents.push(A),m.txt.eventHooks.menuClickEvents.push(A),m.txt.eventHooks.textScrollEvents.push(A)}n.default=u;function l(m,c){var h=m.elems[0].nextSibling;return(!h||h.innerHTML===" ")&&(c+=""+p.EMPTY_P),c}},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(45)),o=e(t(91)),v=e(t(4)),g=e(t(138));(0,a.default)(n,"__esModule",{value:!0});var d=t(2),p=d.__importDefault(t(3));function f(A,y){for(var x=h(A),S=(0,r.default)(Array.prototype).apply(x.children),T=S[0].children.length,P=document.createElement("tr"),C=0;C1?arguments[1]:void 0,c=m!==void 0,h=d(i),A=0,y,x,S,T,P,C;if(c&&(m=e(m,l>2?arguments[2]:void 0,2)),h!=null&&!(u==Array&&o(h)))for(T=h.call(i),P=T.next,x=new u;!(S=P.call(T)).done;A++)C=c?r(T,m,[S.value,A],!0):S.value,g(x,A,C);else for(y=v(i.length),x=new u(y);y>A;A++)C=c?m(i[A],A):i[A],g(x,A,C);return x.length=A,x}},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4)),o=e(t(138));(0,a.default)(n,"__esModule",{value:!0});var v=t(2),g=v.__importDefault(t(3)),d=function(){function p(f){this.editor=f}return p.prototype.getRowNode=function(f){var i,u=g.default(f).elems[0];return u.parentNode&&(u=(i=g.default(u).parentUntil("TR",u))===null||i===void 0?void 0:i.elems[0]),u},p.prototype.getCurrentRowIndex=function(f,i){var u,l=0,m=f.children[0];return m.nodeName==="COLGROUP"&&(m=f.children[f.children.length-1]),(0,r.default)(u=(0,o.default)(m.children)).call(u,function(c,h){c===i&&(l=h)}),l},p.prototype.getCurrentColIndex=function(f){var i,u,l=0,m=g.default(f).getNodeName()==="TD"||g.default(f).getNodeName()==="TH"?f:(u=g.default(f).parentUntil("TD",f))===null||u===void 0?void 0:u.elems[0],c=g.default(m).parent();return(0,r.default)(i=(0,o.default)(c.elems[0].children)).call(i,function(h,A){h===m&&(l=A)}),l},p.prototype.getTableHtml=function(f){var i='";return i},p}();n.default=d},function(s,n,t){var e=t(0),a=e(t(1));(0,a.default)(n,"__esModule",{value:!0}),n.bindEventKeyboardEvent=n.bindClickEvent=void 0;var r=t(2),o=r.__importDefault(t(3));function v(p){if(!p.length)return!1;var f=p.elems[0];return f.nodeName==="P"&&f.innerHTML===" "}function g(p){function f(i,u){if(u.detail>=3){var l=window.getSelection();if(l){var m=l.focusNode,c=l.anchorNode,h=o.default(c?.parentElement);if(!i.isContain(o.default(m))){var A=h.elems[0].tagName==="TD"?h:h.parentUntilEditor("td",p);if(A){var y=p.selection.getRange();y?.setEnd(A.elems[0],A.elems[0].childNodes.length),p.selection.restoreSelection()}}}}}p.txt.eventHooks.tableClickEvents.push(f)}n.bindClickEvent=g;function d(p){var f=p.txt,i=p.selection,u=f.eventHooks.keydownEvents;u.push(function(l){p.selection.saveRange();var m=i.getSelectionContainerElem();if(m){var c=m.getNodeTop(p),h=c.length&&c.prev().length?c.prev():null;if(h&&h.getNodeName()==="TABLE"&&i.isSelectionEmpty()&&i.getCursorPos()===0&&l.keyCode===8){var A=c.next(),y=!!A.length;y&&v(c)&&(c.remove(),p.selection.setRangeToElem(A.elems[0])),l.preventDefault()}}})}n.bindEventKeyboardEvent=d},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(26));(0,a.default)(n,"__esModule",{value:!0}),n.formatCodeHtml=void 0;var o=t(2),v=o.__importDefault(t(38)),g=o.__importDefault(t(3)),d=t(6),p=o.__importDefault(t(402)),f=o.__importDefault(t(139)),i=o.__importDefault(t(33)),u=o.__importDefault(t(403));function l(c,h){if(!h)return h;return h=y(h),h=A(h),h=d.replaceSpecialSymbol(h),h;function A(x){var S=x.match(//g);return S===null||(0,r.default)(S).call(S,function(T){x=x.replace(T,T.replace(/<\/code>/g,`
+`).replace(/ /g,""))}),x}function y(x){var S,T=x.match(//gm);if(!T||!T.length)return x;for(var P=(0,r.default)(S=d.deepClone(T)).call(S,function(E){return E=E.replace(/]+>/,""),E.replace(/<\/span>/,"")}),C=0;C