index-K8IR974I.js 836 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. import{d as Kr,a as $a,r as tu,x as si,w as ks,o as _c,K as Et,e as ot,y as jt,L as vt,j as dt,i as oe,f as Gt,t as Se,C as Fe,G as Dl,F as Yn,B as vi,ae as ip,D as Xl,a2 as F3,aq as ih,m as Vu,u as ut,am as lr,E as $$,A as V$,ar as Zl,N as T3,ap as W4,Y as $P,X as H$,b as U$,n as W$,ax as VP,ay as q$,z as HP,az as UP,s as Fo,ac as G$,aA as WP,an as K$,ao as Y$,av as X$,aB as Z$,aC as J$,aD as Q$}from"./vue-A59npLRR.js";import{k as tV,U as K8,V as eV,W as nV,X as rV,_ as xi,b as Fd,Y as q4,Z as oV,v as iV,$ as Ii,a0 as G4,q as aV,a1 as uV,a2 as my,a3 as sV,P as Y8,a4 as lV}from"./index-EwE51S_X.js";import{b as cV,T as fV,S as dV}from"./baTable-MdxYOkAk.js";import{p as pV}from"./index-XALue448.js";const hV={class:"icon-selector-box"},gV={class:"selector-header"},vV={class:"selector-title"},mV={class:"selector-tab"},yV=["title"],bV=["title"],wV=["title"],EV=["title"],SV={class:"selector-body"},CV={key:0},DV=["title","onClick"],xV={class:"icon-prepend"},AV={key:0,class:"name"},OV=Kr({__name:"iconSelector",props:{size:{default:"default"},disabled:{type:Boolean,default:!1},title:{default:""},type:{default:"ele"},placement:{default:"bottom"},modelValue:{default:""},showIconName:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,r=e,o=$a(),i=$a(),a=tu({iconType:n.type,selectorWidth:0,popoverVisible:!1,inputFocus:!1,iconSelectorMouseover:!1,fontIconNames:[],inputValue:"",prependIcon:n.modelValue,defaultModelValue:n.modelValue||"fa fa-circle-o",iconKey:0}),u=()=>{a.inputFocus=a.popoverVisible=!0},s=()=>{a.inputFocus=!1,a.popoverVisible=a.iconSelectorMouseover},l=()=>{a.iconKey++,a.prependIcon=a.defaultModelValue,a.inputValue="",r("update:modelValue",a.defaultModelValue),r("change",a.defaultModelValue)},c=v=>{a.iconType=v,a.fontIconNames=[],v=="ele"?K8().then(g=>{a.fontIconNames=g}):v=="awe"?eV().then(g=>{a.fontIconNames=g.map(y=>`fa ${y}`)}):v=="ali"?nV().then(g=>{a.fontIconNames=g.map(y=>`iconfont ${y}`)}):v=="local"&&rV().then(g=>{a.fontIconNames=g})},f=v=>{a.iconSelectorMouseover=a.popoverVisible=!1,a.iconKey++,a.prependIcon=v,a.inputValue="",r("update:modelValue",v),r("change",v),Xl(()=>{o.value.blur()})},p=si(()=>{if(!a.inputValue)return a.fontIconNames;let v=a.inputValue.trim().toLowerCase();return a.fontIconNames.filter(g=>{if(g.toLowerCase().indexOf(v)!==-1)return g})}),d=()=>{Xl(()=>{a.selectorWidth=o.value.$el.offsetWidth<260?260:o.value.$el.offsetWidth})},m=()=>{a.popoverVisible=!!(a.inputFocus||a.iconSelectorMouseover)};return ks(()=>n.modelValue,()=>{a.iconKey++,n.modelValue!=a.prependIcon&&(a.defaultModelValue=n.modelValue),n.modelValue==""&&(a.defaultModelValue="fa fa-circle-o"),a.prependIcon=n.modelValue}),_c(()=>{d(),tV(document,"click",m),K8().then(v=>{a.fontIconNames=v})}),(v,g)=>{const y=Et("Icon"),h=Et("el-scrollbar"),b=Et("el-input"),E=Et("el-popover");return ot(),jt(E,{placement:v.placement,trigger:"focus","hide-after":0,width:a.selectorWidth,visible:a.popoverVisible},{reference:vt(()=>[dt(b,{modelValue:a.inputValue,"onUpdate:modelValue":g[6]||(g[6]=w=>a.inputValue=w),size:v.size,disabled:v.disabled,placeholder:v.$t("Search")+v.$t("utils.Icon"),ref_key:"selectorInput",ref:o,onFocus:u,onBlur:s,class:Dl("size-"+v.size)},{prepend:vt(()=>[oe("div",xV,[(ot(),jt(y,{key:"icon"+a.iconKey,name:a.prependIcon?a.prependIcon:a.defaultModelValue},null,8,["name"])),v.showIconName?(ot(),Gt("div",AV,Se(a.prependIcon?a.prependIcon:a.defaultModelValue),1)):Fe("",!0)])]),append:vt(()=>[dt(y,{onClick:l,name:"el-icon-RefreshRight"})]),_:1},8,["modelValue","size","disabled","placeholder","class"])]),default:vt(()=>[oe("div",{onMouseover:g[4]||(g[4]=ip(w=>a.iconSelectorMouseover=!0,["stop"])),onMouseout:g[5]||(g[5]=ip(w=>a.iconSelectorMouseover=!1,["stop"])),class:"icon-selector"},[oe("div",hV,[oe("div",gV,[oe("div",vV,Se(v.title?v.title:v.$t("utils.Please select an icon")),1),oe("div",mV,[oe("span",{title:"Element Puls "+v.$t("utils.Icon"),onClick:g[0]||(g[0]=w=>c("ele")),class:Dl(a.iconType=="ele"?"active":"")}," ele ",10,yV),oe("span",{title:"Font Awesome "+v.$t("utils.Icon"),onClick:g[1]||(g[1]=w=>c("awe")),class:Dl(a.iconType=="awe"?"active":"")}," awe ",10,bV),oe("span",{title:v.$t("utils.Ali iconcont Icon"),onClick:g[2]||(g[2]=w=>c("ali")),class:Dl(a.iconType=="ali"?"active":"")}," ali ",10,wV),oe("span",{title:v.$t("utils.Local icon title"),onClick:g[3]||(g[3]=w=>c("local")),class:Dl(a.iconType=="local"?"active":"")}," local ",10,EV)])]),oe("div",SV,[dt(h,{ref_key:"selectorScrollbarRef",ref:i},{default:vt(()=>[p.value.length>0?(ot(),Gt("div",CV,[(ot(!0),Gt(Yn,null,vi(p.value,(w,S)=>(ot(),Gt("div",{class:"icon-selector-item",title:w,onClick:D=>f(w),key:S},[dt(y,{name:w},null,8,["name"])],8,DV))),128))])):Fe("",!0)]),_:1},512)])])],32)]),_:1},8,["placement","width","visible"])}}}),kV=xi(OV,[["__scopeId","data-v-13330066"]]),_V=["string","password","number","radio","checkbox","switch","textarea","array","datetime","year","date","time","select","selects","remoteSelect","remoteSelects","editor","city","image","images","file","files","icon","color"],BV=Kr({__name:"array",props:{modelValue:{default:()=>[]},keyTitle:{default:""},valueTitle:{default:""}},setup(t){const{t:e}=F3(),n=t,r=tu({value:n.modelValue,keyTitle:n.keyTitle?n.keyTitle:e("utils.ArrayKey"),valueTitle:n.valueTitle?n.valueTitle:e("utils.ArrayValue")}),o=()=>{r.value.push({key:"",value:""})},i=a=>{r.value.splice(a,1)};return ks(()=>n.modelValue,a=>{r.value=a}),(a,u)=>{const s=Et("el-col"),l=Et("el-row"),c=Et("el-input"),f=Et("el-button"),p=ih("blur");return ot(),Gt("div",null,[dt(l,{gutter:10},{default:vt(()=>[dt(s,{span:10,class:"ba-array-key"},{default:vt(()=>[Vu(Se(r.keyTitle),1)]),_:1}),dt(s,{span:10,class:"ba-array-value"},{default:vt(()=>[Vu(Se(r.valueTitle),1)]),_:1})]),_:1}),(ot(!0),Gt(Yn,null,vi(r.value,(d,m)=>(ot(),jt(l,{class:"ba-array-item",gutter:10,key:m},{default:vt(()=>[dt(s,{span:10},{default:vt(()=>[dt(c,{modelValue:d.key,"onUpdate:modelValue":v=>d.key=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),dt(s,{span:10},{default:vt(()=>[dt(c,{modelValue:d.value,"onUpdate:modelValue":v=>d.value=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),dt(s,{span:4},{default:vt(()=>[dt(f,{onClick:v=>i(m),size:"small",icon:"el-icon-Delete",circle:""},null,8,["onClick"])]),_:2},1024)]),_:2},1024))),128)),dt(l,{gutter:10},{default:vt(()=>[dt(s,{span:10,offset:10},{default:vt(()=>[lr((ot(),jt(f,{class:"ba-add-array-item",onClick:o,icon:"el-icon-Plus"},{default:vt(()=>[Vu(Se(ut(e)("Add")),1)]),_:1})),[[p]])]),_:1})]),_:1})])}}}),FV=xi(BV,[["__scopeId","data-v-b7b95894"]]),TV={class:"w100"},PV=Kr({__name:"remoteSelect",props:{pk:{default:"id"},field:{default:"name"},params:{default:()=>({})},multiple:{type:Boolean,default:!1},remoteUrl:{default:""},modelValue:{default:""},labelFormatter:{},tooltipParams:{default:()=>({})}},emits:["update:modelValue","row"],setup(t,{expose:e,emit:n}){const r=$a(),o=t,i=tu({primaryKey:o.pk,options:[],loading:!1,total:0,currentPage:1,pageSize:10,params:o.params,keyword:"",value:o.modelValue?o.modelValue:"",selectKey:Fd(),initializeData:!1,accidentBlur:!1,focusStatus:!1});let a=null;const u=$$(),s=n,l=w=>{var S;if(s("update:modelValue",w),typeof((S=u==null?void 0:u.vnode.props)==null?void 0:S.onRow)=="function"){let D=o.pk.split("."),x=D[D.length-1];if(typeof w=="number"||typeof w=="string"){const k=q4(i.options,x,w.toString());s("row",k?W4(i.options[k]):{})}else{const k=[];for(const N in w){let $=q4(i.options,x,w[N].toString());$&&k.push(W4(i.options[$]))}s("row",k)}}},c=w=>{w||Xl(()=>{var S;(S=r.value)==null||S.blur()})},f=()=>{var w;i.focusStatus=!0,((w=r.value)==null?void 0:w.query)!=i.keyword&&(i.keyword="",i.initializeData=!1,i.accidentBlur=!0),i.initializeData||v()},p=()=>{i.focusStatus=!1},d=()=>{i.keyword="",i.initializeData=!1},m=w=>{i.keyword!=w&&(i.keyword=w,v())},v=(w="")=>{i.loading=!0,i.params.page=i.currentPage,i.params.initKey=o.pk,i.params.initValue=w,oV(o.remoteUrl,i.keyword,i.params).then(S=>{let D=!0,x=S.data.options?S.data.options:S.data.list;if(typeof o.labelFormatter=="function")for(const k in x)x[k][o.field]=o.labelFormatter(x[k],k);i.options=x,i.total=S.data.total??0,w&&(i.selectKey=Fd(),D=!1),i.loading=!1,i.initializeData=D,i.accidentBlur&&Xl(()=>{var N;const k=(N=r.value)==null?void 0:N.$el.querySelector(".el-select__tags .el-select__input");k&&k.focus(),i.accidentBlur=!1})}).catch(()=>{i.loading=!1})},g=w=>{i.currentPage=w,v()},y=()=>{if(i.value){if(typeof i.value=="object")for(const w in i.value)i.value[w]=i.value[w].toString();else typeof i.value=="number"&&(i.value=i.value.toString());v(i.value)}};return _c(()=>{if(o.pk.indexOf(".")>0){let w=o.pk.split(".");i.primaryKey=w[1]?w[1]:w[0]}y(),setTimeout(()=>{var w;window!=null&&window.IntersectionObserver&&(a=new IntersectionObserver(S=>{var D;for(const x in S)S[x].isIntersecting||(D=r.value)==null||D.blur()}),((w=r.value)==null?void 0:w.$el)instanceof Element&&a.observe(r.value.$el))},500)}),V$(()=>{a==null||a.disconnect()}),ks(()=>o.modelValue,w=>{String(i.value)!=String(w)&&(i.value=w||"",y())}),e({blur:()=>{var w;(w=r.value)==null||w.blur()},focus:()=>{var w;(w=r.value)==null||w.focus()},getSelectRef:()=>r.value}),(w,S)=>{const D=Et("el-tooltip"),x=Et("el-option"),k=Et("el-pagination"),N=Et("el-select"),$=Et("el-popover");return ot(),Gt("div",TV,[dt($,{width:"100%",placement:"bottom","popper-class":"remote-select-popper",visible:i.focusStatus&&!i.loading&&!i.keyword&&!i.options.length,teleported:!1,content:w.$t("utils.No data")},{reference:vt(()=>[(ot(),jt(N,Zl({ref_key:"selectRef",ref:r,class:"w100",onFocus:f,onBlur:p,loading:i.loading||i.accidentBlur,filterable:!0,remote:!0,clearable:"","remote-show-suffix":"","remote-method":m,modelValue:i.value,"onUpdate:modelValue":S[0]||(S[0]=R=>i.value=R),onChange:l,multiple:w.multiple,key:i.selectKey,onClear:d,onVisibleChange:c},w.$attrs),{default:vt(()=>[(ot(!0),Gt(Yn,null,vi(i.options,R=>(ot(),jt(x,{class:"remote-select-option",label:R[w.field],value:R[i.primaryKey].toString(),key:R[i.primaryKey]},{default:vt(()=>[ut(T3)(w.tooltipParams)?Fe("",!0):(ot(),jt(D,{key:0,placement:"right",effect:"light"},{content:vt(()=>[(ot(!0),Gt(Yn,null,vi(w.tooltipParams,(K,U)=>(ot(),Gt("p",{key:U},Se(U)+": "+Se(R[K]),1))),128))]),default:vt(()=>[oe("div",null,Se(R[w.field]),1)]),_:2},1024))]),_:2},1032,["label","value"]))),128)),i.total?(ot(),jt(k,{key:0,currentPage:i.currentPage,"page-size":i.pageSize,class:"select-pagination",layout:"->, prev, next",total:i.total,onCurrentChange:g},null,8,["currentPage","page-size","total"])):Fe("",!0)]),_:1},16,["loading","modelValue","multiple"]))]),_:1},8,["visible","content"])])}}}),jV=xi(PV,[["__scopeId","data-v-80311f76"]]),IV={},NV={class:"tips"};function RV(t,e){return ot(),Gt("div",NV,Se(t.$t("utils.Please install editor")),1)}const LV=xi(IV,[["render",RV],["__scopeId","data-v-5d5c399b"]]),MV=Object.freeze(Object.defineProperty({__proto__:null,default:LV},Symbol.toStringTag,{value:"Module"}));var ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zV(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _s(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ni,mg,a0=function(t){return t&&t.Math==Math&&t},Pt=a0(typeof globalThis=="object"&&globalThis)||a0(typeof window=="object"&&window)||a0(typeof self=="object"&&self)||a0(typeof ve=="object"&&ve)||function(){return this}()||Function("return this")(),P3=Function.prototype,X8=P3.apply,$V=P3.bind,Z8=P3.call,qP=typeof Reflect=="object"&&Reflect.apply||($V?Z8.bind(X8):function(){return Z8.apply(X8,arguments)}),GP=Function.prototype,K4=GP.bind,Y4=GP.call,VV=K4&&K4.bind(Y4),De=K4?function(t){return t&&VV(Y4,t)}:function(t){return t&&function(){return Y4.apply(t,arguments)}},bn=function(t){return typeof t=="function"},or=function(t){try{return!!t()}catch{return!0}},tr=!or(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),tf=Function.prototype.call,Jn=tf.bind?tf.bind(tf):function(){return tf.apply(tf,arguments)},J8={}.propertyIsEnumerable,Q8=Object.getOwnPropertyDescriptor,HV=Q8&&!J8.call({1:2},1)?function(t){var e=Q8(this,t);return!!e&&e.enumerable}:J8,j3={f:HV},lo=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},UV=De({}.toString),WV=De("".slice),Hu=function(t){return WV(UV(t),8,-1)},yy=Pt.Object,qV=De("".split),KP=or(function(){return!yy("z").propertyIsEnumerable(0)})?function(t){return Hu(t)=="String"?qV(t,""):yy(t)}:yy,GV=Pt.TypeError,I3=function(t){if(t==null)throw GV("Can't call method on "+t);return t},Ko=function(t){return KP(I3(t))},pr=function(t){return typeof t=="object"?t!==null:bn(t)},dr={},tx=function(t){return bn(t)?t:void 0},Bc=function(t,e){return arguments.length<2?tx(dr[t])||tx(Pt[t]):dr[t]&&dr[t][e]||Pt[t]&&Pt[t][e]},ap=De({}.isPrototypeOf),by=Bc("navigator","userAgent")||"",ex=Pt.process,nx=Pt.Deno,rx=ex&&ex.versions||nx&&nx.version,ox=rx&&rx.v8;ox&&(mg=(Ni=ox.split("."))[0]>0&&Ni[0]<4?1:+(Ni[0]+Ni[1])),!mg&&by&&(!(Ni=by.match(/Edge\/(\d+)/))||Ni[1]>=74)&&(Ni=by.match(/Chrome\/(\d+)/))&&(mg=+Ni[1]);var u0,Zg=mg,Oo=!!Object.getOwnPropertySymbols&&!or(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Zg&&Zg<41}),N3=Oo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",KV=Pt.Object,Rl=N3?function(t){return typeof t=="symbol"}:function(t){var e=Bc("Symbol");return bn(e)&&ap(e.prototype,KV(t))},YV=Pt.String,X4=function(t){try{return YV(t)}catch{return"Object"}},XV=Pt.TypeError,R3=function(t){if(bn(t))return t;throw XV(X4(t)+" is not a function")},Jg=function(t,e){var n=t[e];return n==null?void 0:R3(n)},ZV=Pt.TypeError,JV=Object.defineProperty,ba=Pt["__core-js_shared__"]||function(t,e){try{JV(Pt,t,{value:e,configurable:!0,writable:!0})}catch{Pt[t]=e}return e}("__core-js_shared__",{}),Bs=_s(function(t){(t.exports=function(e,n){return ba[e]||(ba[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),QV=Pt.Object,ah=function(t){return QV(I3(t))},tH=De({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return tH(ah(t),e)},eH=0,nH=Math.random(),rH=De(1 .toString),Qg=function(t){return"Symbol("+(t===void 0?"":t)+")_"+rH(++eH+nH,36)},ef=Bs("wks"),Uu=Pt.Symbol,ix=Uu&&Uu.for,oH=N3?Uu:Uu&&Uu.withoutSetter||Qg,zn=function(t){if(!Xt(ef,t)||!Oo&&typeof ef[t]!="string"){var e="Symbol."+t;Oo&&Xt(Uu,t)?ef[t]=Uu[t]:ef[t]=N3&&ix?ix(e):oH(e)}return ef[t]},iH=Pt.TypeError,aH=zn("toPrimitive"),uH=function(t,e){if(!pr(t)||Rl(t))return t;var n,r=Jg(t,aH);if(r){if(e===void 0&&(e="default"),n=Jn(r,t,e),!pr(n)||Rl(n))return n;throw iH("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&bn(a=o.toString)&&!pr(u=Jn(a,o))||bn(a=o.valueOf)&&!pr(u=Jn(a,o))||i!=="string"&&bn(a=o.toString)&&!pr(u=Jn(a,o)))return u;throw ZV("Can't convert object to primitive value")}(t,e)},Fc=function(t){var e=uH(t,"string");return Rl(e)?e:e+""},Z4=Pt.document,sH=pr(Z4)&&pr(Z4.createElement),YP=function(t){return sH?Z4.createElement(t):{}},XP=!tr&&!or(function(){return Object.defineProperty(YP("div"),"a",{get:function(){return 7}}).a!=7}),ax=Object.getOwnPropertyDescriptor,lH=tr?ax:function(t,e){if(t=Ko(t),e=Fc(e),XP)try{return ax(t,e)}catch{}if(Xt(t,e))return lo(!Jn(j3.f,t,e),t[e])},s1={f:lH},cH=/#|\.prototype\./,uh=function(t,e){var n=dH[fH(t)];return n==hH||n!=pH&&(bn(e)?or(e):!!e)},fH=uh.normalize=function(t){return String(t).replace(cH,".").toLowerCase()},dH=uh.data={},pH=uh.NATIVE="N",hH=uh.POLYFILL="P",gH=uh,ux=De(De.bind),L3=function(t,e){return R3(t),e===void 0?t:ux?ux(t,e):function(){return t.apply(e,arguments)}},vH=Pt.String,mH=Pt.TypeError,br=function(t){if(pr(t))return t;throw mH(vH(t)+" is not an object")},yH=Pt.TypeError,sx=Object.defineProperty,bH=tr?sx:function(t,e,n){if(br(t),e=Fc(e),br(n),XP)try{return sx(t,e,n)}catch{}if("get"in n||"set"in n)throw yH("Accessors not supported");return"value"in n&&(t[e]=n.value),t},eu={f:bH},Hn=tr?function(t,e,n){return eu.f(t,e,lo(1,n))}:function(t,e,n){return t[e]=n,t},wH=s1.f,EH=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return qP(t,this,arguments)};return e.prototype=t.prototype,e},li=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,m=f?Pt:p?Pt[c]:(Pt[c]||{}).prototype,v=f?dr:dr[c]||Hn(dr,c,{})[c],g=v.prototype;for(o in e)n=!gH(f?o:c+(p?".":"#")+o,t.forced)&&m&&Xt(m,o),a=v[o],n&&(u=t.noTargetGet?(l=wH(m,o))&&l.value:m[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?L3(i,Pt):t.wrap&&n?EH(i):d&&bn(i)?De(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Hn(s,"sham",!0),Hn(v,o,s),d&&(Xt(dr,r=c+"Prototype")||Hn(dr,r,{}),Hn(dr[r],o,i),t.real&&g&&!g[o]&&Hn(g,o,i)))},lx=Bs("keys"),l1=function(t){return lx[t]||(lx[t]=Qg(t))},SH=!or(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),cx=l1("IE_PROTO"),J4=Pt.Object,CH=J4.prototype,tv=SH?J4.getPrototypeOf:function(t){var e=ah(t);if(Xt(e,cx))return e[cx];var n=e.constructor;return bn(n)&&e instanceof n?n.prototype:e instanceof J4?CH:null},DH=Pt.String,xH=Pt.TypeError,ev=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=De(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return br(r),function(i){if(typeof i=="object"||bn(i))return i;throw xH("Can't set "+DH(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),AH=Math.ceil,OH=Math.floor,M3=function(t){var e=+t;return e!=e||e===0?0:(e>0?OH:AH)(e)},kH=Math.max,_H=Math.min,Q4=function(t,e){var n=M3(t);return n<0?kH(n+e,0):_H(n,e)},BH=Math.min,sh=function(t){return(e=t.length)>0?BH(M3(e),9007199254740991):0;var e},fx=function(t){return function(e,n,r){var o,i=Ko(e),a=sh(i),u=Q4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},FH={includes:fx(!0),indexOf:fx(!1)},lh={},TH=FH.indexOf,dx=De([].push),ZP=function(t,e){var n,r=Ko(t),o=0,i=[];for(n in r)!Xt(lh,n)&&Xt(r,n)&&dx(i,n);for(;e.length>o;)Xt(r,n=e[o++])&&(~TH(i,n)||dx(i,n));return i},nv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],PH=nv.concat("length","prototype"),jH=Object.getOwnPropertyNames||function(t){return ZP(t,PH)},z3={f:jH},yg={f:Object.getOwnPropertySymbols},IH=De([].concat),NH=Bc("Reflect","ownKeys")||function(t){var e=z3.f(br(t)),n=yg.f;return n?IH(e,n(t)):e},$3=Object.keys||function(t){return ZP(t,nv)},RH=tr?Object.defineProperties:function(t,e){br(t);for(var n,r=Ko(e),o=$3(e),i=o.length,a=0;i>a;)eu.f(t,n=o[a++],r[n]);return t},LH=Bc("document","documentElement"),JP=l1("IE_PROTO"),wy=function(){},QP=function(t){return"<script>"+t+"<\/script>"},px=function(t){t.write(QP("")),t.close();var e=t.parentWindow.Object;return t=null,e},bg=function(){try{u0=new ActiveXObject("htmlfile")}catch{}var t,e;bg=typeof document<"u"?document.domain&&u0?px(u0):((e=YP("iframe")).style.display="none",LH.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(QP("document.F=Object")),t.close(),t.F):px(u0);for(var n=nv.length;n--;)delete bg.prototype[nv[n]];return bg()};lh[JP]=!0;var Ei=Object.create||function(t,e){var n;return t!==null?(wy.prototype=br(t),n=new wy,wy.prototype=null,n[JP]=t):n=bg(),e===void 0?n:RH(n,e)},tE=function(t,e,n){var r=Fc(e);r in t?eu.f(t,r,lo(0,n)):t[r]=n},MH=Pt.Array,zH=Math.max,tj=function(t,e,n){for(var r=sh(t),o=Q4(e,r),i=Q4(n===void 0?r:n,r),a=MH(zH(i-o,0)),u=0;o<i;o++,u++)tE(a,u,t[o]);return a.length=u,a},$H=De("".replace),VH=De("".split),HH=De([].join),eE=String(Error("zxcasd").stack),ej=/\n\s*at [^:]*:[^\n]*/,UH=ej.test(eE),WH=/@[^\n]*\n/.test(eE)&&!/zxcasd/.test(eE),qH=function(t,e){if(typeof t!="string")return t;if(UH)for(;e--;)t=$H(t,ej,"");else if(WH)return HH(tj(VH(t,`
  2. `),e),`
  3. `);return t},GH=function(t,e){pr(e)&&"cause"in e&&Hn(t,"cause",e.cause)},mi={},KH=zn("iterator"),YH=Array.prototype,nj={};nj[zn("toStringTag")]="z";var V3=String(nj)==="[object z]",XH=zn("toStringTag"),ZH=Pt.Object,JH=Hu(function(){return arguments}())=="Arguments",ch=V3?Hu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=ZH(t),XH))=="string"?n:JH?Hu(e):(r=Hu(e))=="Object"&&bn(e.callee)?"Arguments":r},QH=zn("iterator"),hx=function(t){if(t!=null)return Jg(t,QH)||Jg(t,"@@iterator")||mi[ch(t)]},tU=Pt.TypeError,gx=function(t,e,n){var r,o;br(t);try{if(!(r=Jg(t,"return"))){if(e==="throw")throw n;return n}r=Jn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return br(r),n},eU=Pt.TypeError,wg=function(t,e){this.stopped=t,this.result=e},vx=wg.prototype,nU=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),m=L3(e,c),v=function(y){return r&&gx(r,"normal",y),new wg(!0,y)},g=function(y){return f?(br(y),d?m(y[0],y[1],v):m(y[0],y[1])):d?m(y,v):m(y)};if(p)r=t;else{if(!(o=hx(t)))throw eU(X4(t)+" is not iterable");if(function(y){return y!==void 0&&(mi.Array===y||YH[KH]===y)}(o)){for(i=0,a=sh(t);a>i;i++)if((u=g(t[i]))&&ap(vx,u))return u;return new wg(!1)}r=function(y,h){var b=arguments.length<2?hx(y):h;if(R3(b))return br(Jn(b,y));throw tU(X4(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=Jn(s,r)).done;){try{u=g(l.value)}catch(y){gx(r,"throw",y)}if(typeof u=="object"&&u&&ap(vx,u))return u}return new wg(!1)},rU=Pt.String,up=function(t){if(ch(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return rU(t)},oU=function(t,e){return t===void 0?arguments.length<2?"":e:up(t)},iU=!or(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",lo(1,7)),t.stack!==7)}),aU=zn("toStringTag"),rv=Pt.Error,uU=[].push,sp=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=ap(Ey,this);ev?n=ev(new rv(void 0),o?tv(this):Ey):(n=o?this:Ei(Ey),Hn(n,aU,"Error")),Hn(n,"message",oU(e,"")),iU&&Hn(n,"stack",qH(n.stack,1)),GH(n,r);var i=[];return nU(t,uU,{that:i}),Hn(n,"errors",i),n};ev?ev(sp,rv):function(t,e){for(var n=NH(e),r=eu.f,o=s1.f,i=0;i<n.length;i++){var a=n[i];Xt(t,a)||r(t,a,o(e,a))}}(sp,rv);var Ey=sp.prototype=Ei(rv.prototype,{constructor:lo(1,sp),message:lo(1,""),name:lo(1,"AggregateError")});li({global:!0},{AggregateError:sp});var sU=De(Function.toString);bn(ba.inspectSource)||(ba.inspectSource=function(t){return sU(t)});var ov,Td,iv,rj=ba.inspectSource,mx=Pt.WeakMap,lU=bn(mx)&&/native code/.test(rj(mx)),nE=Pt.TypeError,cU=Pt.WeakMap;if(lU||ba.state){var pu=ba.state||(ba.state=new cU),fU=De(pu.get),yx=De(pu.has),dU=De(pu.set);ov=function(t,e){if(yx(pu,t))throw new nE("Object already initialized");return e.facade=t,dU(pu,t,e),e},Td=function(t){return fU(pu,t)||{}},iv=function(t){return yx(pu,t)}}else{var qs=l1("state");lh[qs]=!0,ov=function(t,e){if(Xt(t,qs))throw new nE("Object already initialized");return e.facade=t,Hn(t,qs,e),e},Td=function(t){return Xt(t,qs)?t[qs]:{}},iv=function(t){return Xt(t,qs)}}var pa,bx,wx,Tc={set:ov,get:Td,has:iv,enforce:function(t){return iv(t)?Td(t):ov(t,{})},getterFor:function(t){return function(e){var n;if(!pr(e)||(n=Td(e)).type!==t)throw nE("Incompatible receiver, "+t+" required");return n}}},oj=Function.prototype,pU=tr&&Object.getOwnPropertyDescriptor,Sy=Xt(oj,"name"),hU={EXISTS:Sy,PROPER:Sy&&(function(){}).name==="something",CONFIGURABLE:Sy&&(!tr||tr&&pU(oj,"name").configurable)},Jl=function(t,e,n,r){r&&r.enumerable?t[e]=n:Hn(t,e,n)},rE=zn("iterator"),ij=!1;[].keys&&("next"in(wx=[].keys())?(bx=tv(tv(wx)))!==Object.prototype&&(pa=bx):ij=!0);var gU=pa==null||or(function(){var t={};return pa[rE].call(t)!==t});pa=gU?{}:Ei(pa),bn(pa[rE])||Jl(pa,rE,function(){return this});var aj={IteratorPrototype:pa,BUGGY_SAFARI_ITERATORS:ij},vU=V3?{}.toString:function(){return"[object "+ch(this)+"]"},mU=eu.f,Ex=zn("toStringTag"),av=function(t,e,n,r){if(t){var o=n?t:t.prototype;Xt(o,Ex)||mU(o,Ex,{configurable:!0,value:e}),r&&!V3&&Hn(o,"toString",vU)}},yU=aj.IteratorPrototype,bU=function(){return this},wU=hU.PROPER,s0=aj.BUGGY_SAFARI_ITERATORS,Cy=zn("iterator"),EU=function(){return this},uj=function(t,e,n,r,o,i,a){(function(y,h,b,E){var w=h+" Iterator";y.prototype=Ei(yU,{next:lo(+!E,b)}),av(y,w,!1,!0),mi[w]=bU})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!s0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,m=d[Cy]||d["@@iterator"]||o&&d[o],v=!s0&&m||c(o),g=e=="Array"&&d.entries||m;if(g&&(u=tv(g.call(new t)))!==Object.prototype&&u.next&&(av(u,f,!0,!0),mi[f]=EU),wU&&o=="values"&&m&&m.name!=="values"&&(p=!0,v=function(){return Jn(m,this)}),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(s0||p||!(l in d))&&Jl(d,l,s[l]);else li({target:e,proto:!0,forced:s0||p},s);return a&&d[Cy]!==v&&Jl(d,Cy,v,{name:o}),mi[e]=v,s},SU=Tc.set,CU=Tc.getterFor("Array Iterator");uj(Array,"Array",function(t,e){SU(this,{type:"Array Iterator",target:Ko(t),index:0,kind:e})},function(){var t=CU(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),mi.Arguments=mi.Array;var DU=De("".charAt),Sx=De("".charCodeAt),xU=De("".slice),Cx=function(t){return function(e,n){var r,o,i=up(I3(e)),a=M3(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Sx(i,a))<55296||r>56319||a+1===u||(o=Sx(i,a+1))<56320||o>57343?t?DU(i,a):r:t?xU(i,a,a+2):o-56320+(r-55296<<10)+65536}},AU={codeAt:Cx(!1),charAt:Cx(!0)}.charAt,OU=Tc.set,kU=Tc.getterFor("String Iterator");uj(String,"String",function(t){OU(this,{type:"String Iterator",string:up(t),index:0})},function(){var t,e=kU(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=AU(n,r),e.index+=t.length,{value:t,done:!1})});var _U=dr.AggregateError,Dx=zn("toStringTag");for(var Dy in{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}){var xx=Pt[Dy],xy=xx&&xx.prototype;xy&&ch(xy)!==Dx&&Hn(xy,Dx,Dy),mi[Dy]=mi.Array}var Ri,Eg,BU=_U,l0=function(t){return t&&t.Math==Math&&t},At=l0(typeof globalThis=="object"&&globalThis)||l0(typeof window=="object"&&window)||l0(typeof self=="object"&&self)||l0(typeof ve=="object"&&ve)||function(){return this}()||Function("return this")(),En=function(t){try{return!!t()}catch{return!0}},$o=!En(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),nf=Function.prototype.call,yn=nf.bind?nf.bind(nf):function(){return nf.apply(nf,arguments)},Ax={}.propertyIsEnumerable,Ox=Object.getOwnPropertyDescriptor,FU=Ox&&!Ax.call({1:2},1)?function(t){var e=Ox(this,t);return!!e&&e.enumerable}:Ax,TU={f:FU},wa=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},sj=Function.prototype,oE=sj.bind,iE=sj.call,PU=oE&&oE.bind(iE),pe=oE?function(t){return t&&PU(iE,t)}:function(t){return t&&function(){return iE.apply(t,arguments)}},jU=pe({}.toString),IU=pe("".slice),Wu=function(t){return IU(jU(t),8,-1)},Ay=At.Object,NU=pe("".split),lj=En(function(){return!Ay("z").propertyIsEnumerable(0)})?function(t){return Wu(t)=="String"?NU(t,""):Ay(t)}:Ay,RU=At.TypeError,c1=function(t){if(t==null)throw RU("Can't call method on "+t);return t},Pc=function(t){return lj(c1(t))},rn=function(t){return typeof t=="function"},ro=function(t){return typeof t=="object"?t!==null:rn(t)},LU=function(t){return rn(t)?t:void 0},fh=function(t,e){return arguments.length<2?LU(At[t]):At[t]&&At[t][e]},uv=pe({}.isPrototypeOf),Oy=fh("navigator","userAgent")||"",kx=At.process,_x=At.Deno,Bx=kx&&kx.versions||_x&&_x.version,Fx=Bx&&Bx.v8;Fx&&(Eg=(Ri=Fx.split("."))[0]>0&&Ri[0]<4?1:+(Ri[0]+Ri[1])),!Eg&&Oy&&(!(Ri=Oy.match(/Edge\/(\d+)/))||Ri[1]>=74)&&(Ri=Oy.match(/Chrome\/(\d+)/))&&(Eg=+Ri[1]);var Tx=Eg,aE=!!Object.getOwnPropertySymbols&&!En(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Tx&&Tx<41}),H3=aE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",MU=At.Object,uE=H3?function(t){return typeof t=="symbol"}:function(t){var e=fh("Symbol");return rn(e)&&uv(e.prototype,MU(t))},zU=At.String,sE=function(t){try{return zU(t)}catch{return"Object"}},$U=At.TypeError,U3=function(t){if(rn(t))return t;throw $U(sE(t)+" is not a function")},lp=function(t,e){var n=t[e];return n==null?void 0:U3(n)},VU=At.TypeError,HU=Object.defineProperty,W3=function(t,e){try{HU(At,t,{value:e,configurable:!0,writable:!0})}catch{At[t]=e}return e},Ea=At["__core-js_shared__"]||W3("__core-js_shared__",{}),q3=_s(function(t){(t.exports=function(e,n){return Ea[e]||(Ea[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),UU=At.Object,G3=function(t){return UU(c1(t))},WU=pe({}.hasOwnProperty),er=Object.hasOwn||function(t,e){return WU(G3(t),e)},qU=0,GU=Math.random(),KU=pe(1 .toString),cj=function(t){return"Symbol("+(t===void 0?"":t)+")_"+KU(++qU+GU,36)},rf=q3("wks"),qu=At.Symbol,Px=qu&&qu.for,YU=H3?qu:qu&&qu.withoutSetter||cj,qn=function(t){if(!er(rf,t)||!aE&&typeof rf[t]!="string"){var e="Symbol."+t;aE&&er(qu,t)?rf[t]=qu[t]:rf[t]=H3&&Px?Px(e):YU(e)}return rf[t]},XU=At.TypeError,ZU=qn("toPrimitive"),JU=function(t,e){if(!ro(t)||uE(t))return t;var n,r=lp(t,ZU);if(r){if(e===void 0&&(e="default"),n=yn(r,t,e),!ro(n)||uE(n))return n;throw XU("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&rn(a=o.toString)&&!ro(u=yn(a,o))||rn(a=o.valueOf)&&!ro(u=yn(a,o))||i!=="string"&&rn(a=o.toString)&&!ro(u=yn(a,o)))return u;throw VU("Can't convert object to primitive value")}(t,e)},K3=function(t){var e=JU(t,"string");return uE(e)?e:e+""},lE=At.document,QU=ro(lE)&&ro(lE.createElement),Y3=function(t){return QU?lE.createElement(t):{}},fj=!$o&&!En(function(){return Object.defineProperty(Y3("div"),"a",{get:function(){return 7}}).a!=7}),jx=Object.getOwnPropertyDescriptor,tW=$o?jx:function(t,e){if(t=Pc(t),e=K3(e),fj)try{return jx(t,e)}catch{}if(er(t,e))return wa(!yn(TU.f,t,e),t[e])},X3={f:tW},eW=At.String,nW=At.TypeError,wr=function(t){if(ro(t))return t;throw nW(eW(t)+" is not an object")},rW=At.TypeError,Ix=Object.defineProperty,oW=$o?Ix:function(t,e,n){if(wr(t),e=K3(e),wr(n),fj)try{return Ix(t,e,n)}catch{}if("get"in n||"set"in n)throw rW("Accessors not supported");return"value"in n&&(t[e]=n.value),t},jc={f:oW},Wn=$o?function(t,e,n){return jc.f(t,e,wa(1,n))}:function(t,e,n){return t[e]=n,t},iW=pe(Function.toString);rn(Ea.inspectSource)||(Ea.inspectSource=function(t){return iW(t)});var sv,Pd,lv,Z3=Ea.inspectSource,Nx=At.WeakMap,aW=rn(Nx)&&/native code/.test(Z3(Nx)),Rx=q3("keys"),J3=function(t){return Rx[t]||(Rx[t]=cj(t))},Q3={},cE=At.TypeError,uW=At.WeakMap;if(aW||Ea.state){var hu=Ea.state||(Ea.state=new uW),sW=pe(hu.get),Lx=pe(hu.has),lW=pe(hu.set);sv=function(t,e){if(Lx(hu,t))throw new cE("Object already initialized");return e.facade=t,lW(hu,t,e),e},Pd=function(t){return sW(hu,t)||{}},lv=function(t){return Lx(hu,t)}}else{var Gs=J3("state");Q3[Gs]=!0,sv=function(t,e){if(er(t,Gs))throw new cE("Object already initialized");return e.facade=t,Wn(t,Gs,e),e},Pd=function(t){return er(t,Gs)?t[Gs]:{}},lv=function(t){return er(t,Gs)}}var ps={set:sv,get:Pd,has:lv,enforce:function(t){return lv(t)?Pd(t):sv(t,{})},getterFor:function(t){return function(e){var n;if(!ro(e)||(n=Pd(e)).type!==t)throw cE("Incompatible receiver, "+t+" required");return n}}},dj=Function.prototype,cW=$o&&Object.getOwnPropertyDescriptor,ky=er(dj,"name"),tC={EXISTS:ky,PROPER:ky&&(function(){}).name==="something",CONFIGURABLE:ky&&(!$o||$o&&cW(dj,"name").configurable)},Sa=_s(function(t){var e=tC.CONFIGURABLE,n=ps.get,r=ps.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;rn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!er(u,"name")||e&&u.name!==d)&&Wn(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==At?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Wn(i,a,u)):f?i[a]=u:W3(a,u)})(Function.prototype,"toString",function(){return rn(this)&&n(this).source||Z3(this)})}),fW=Math.ceil,dW=Math.floor,eC=function(t){var e=+t;return e!=e||e===0?0:(e>0?dW:fW)(e)},pW=Math.max,hW=Math.min,fE=function(t,e){var n=eC(t);return n<0?pW(n+e,0):hW(n,e)},gW=Math.min,pj=function(t){return t>0?gW(eC(t),9007199254740991):0},f1=function(t){return pj(t.length)},Mx=function(t){return function(e,n,r){var o,i=Pc(e),a=f1(i),u=fE(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},vW={includes:Mx(!0),indexOf:Mx(!1)}.indexOf,zx=pe([].push),hj=function(t,e){var n,r=Pc(t),o=0,i=[];for(n in r)!er(Q3,n)&&er(r,n)&&zx(i,n);for(;e.length>o;)er(r,n=e[o++])&&(~vW(i,n)||zx(i,n));return i},cv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mW=cv.concat("length","prototype"),yW=Object.getOwnPropertyNames||function(t){return hj(t,mW)},bW={f:yW},wW={f:Object.getOwnPropertySymbols},EW=pe([].concat),SW=fh("Reflect","ownKeys")||function(t){var e=bW.f(wr(t)),n=wW.f;return n?EW(e,n(t)):e},gj=function(t,e){for(var n=SW(e),r=jc.f,o=X3.f,i=0;i<n.length;i++){var a=n[i];er(t,a)||r(t,a,o(e,a))}},CW=/#|\.prototype\./,dh=function(t,e){var n=xW[DW(t)];return n==OW||n!=AW&&(rn(e)?En(e):!!e)},DW=dh.normalize=function(t){return String(t).replace(CW,".").toLowerCase()},xW=dh.data={},AW=dh.NATIVE="N",OW=dh.POLYFILL="P",kW=dh,_W=X3.f,ph=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?At:l?At[u]||W3(u,{}):(At[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=_W(n,r))&&a.value:n[r],!kW(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;gj(i,o)}(t.sham||o&&o.sham)&&Wn(i,"sham",!0),Sa(n,r,i,t)}},vj={};vj[qn("toStringTag")]="z";var c0,nC=String(vj)==="[object z]",BW=qn("toStringTag"),FW=At.Object,TW=Wu(function(){return arguments}())=="Arguments",d1=nC?Wu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=FW(t),BW))=="string"?n:TW?Wu(e):(r=Wu(e))=="Object"&&rn(e.callee)?"Arguments":r},PW=At.String,Gu=function(t){if(d1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return PW(t)},jW=function(){var t=wr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},rC=At.RegExp,oC=En(function(){var t=rC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),IW=oC||En(function(){return!rC("a","y").sticky}),NW=oC||En(function(){var t=rC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),RW={BROKEN_CARET:NW,MISSED_STICKY:IW,UNSUPPORTED_Y:oC},LW=Object.keys||function(t){return hj(t,cv)},MW=$o?Object.defineProperties:function(t,e){wr(t);for(var n,r=Pc(e),o=LW(e),i=o.length,a=0;i>a;)jc.f(t,n=o[a++],r[n]);return t},zW=fh("document","documentElement"),mj=J3("IE_PROTO"),_y=function(){},yj=function(t){return"<script>"+t+"<\/script>"},$x=function(t){t.write(yj("")),t.close();var e=t.parentWindow.Object;return t=null,e},Sg=function(){try{c0=new ActiveXObject("htmlfile")}catch{}var t,e;Sg=typeof document<"u"?document.domain&&c0?$x(c0):((e=Y3("iframe")).style.display="none",zW.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(yj("document.F=Object")),t.close(),t.F):$x(c0);for(var n=cv.length;n--;)delete Sg.prototype[cv[n]];return Sg()};Q3[mj]=!0;var Vx,By,hh=Object.create||function(t,e){var n;return t!==null?(_y.prototype=wr(t),n=new _y,_y.prototype=null,n[mj]=t):n=Sg(),e===void 0?n:MW(n,e)},$W=At.RegExp,VW=En(function(){var t=$W(".","s");return!(t.dotAll&&t.exec(`
  4. `)&&t.flags==="s")}),HW=At.RegExp,UW=En(function(){var t=HW("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),WW=ps.get,qW=q3("native-string-replace",String.prototype.replace),fv=RegExp.prototype.exec,dE=fv,GW=pe("".charAt),KW=pe("".indexOf),YW=pe("".replace),Fy=pe("".slice),Ty=(By=/b*/g,yn(fv,Vx=/a/,"a"),yn(fv,By,"a"),Vx.lastIndex!==0||By.lastIndex!==0),Hx=RW.BROKEN_CARET,Py=/()??/.exec("")[1]!==void 0;(Ty||Py||Hx||VW||UW)&&(dE=function(t){var e,n,r,o,i,a,u,s=this,l=WW(s),c=Gu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=yn(dE,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=Hx&&s.sticky,m=yn(jW,s),v=s.source,g=0,y=c;if(d&&(m=YW(m,"y",""),KW(m,"g")===-1&&(m+="g"),y=Fy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&GW(c,s.lastIndex-1)!==`
  5. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),Py&&(n=new RegExp("^"+v+"$(?!\\s)",m)),Ty&&(r=s.lastIndex),o=yn(fv,d?n:s,y),d?o?(o.input=Fy(o.input,g),o[0]=Fy(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ty&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Py&&o&&o.length>1&&yn(qW,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=hh(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var dv=dE;ph({target:"RegExp",proto:!0,forced:/./.exec!==dv},{exec:dv});var XW=qn("species"),jy=RegExp.prototype,ZW=pe("".charAt),Ux=pe("".charCodeAt),JW=pe("".slice),Wx=function(t){return function(e,n){var r,o,i=Gu(c1(e)),a=eC(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Ux(i,a))<55296||r>56319||a+1===u||(o=Ux(i,a+1))<56320||o>57343?t?ZW(i,a):r:t?JW(i,a,a+2):o-56320+(r-55296<<10)+65536}},bj={codeAt:Wx(!1),charAt:Wx(!0)},QW=bj.charAt,tq=function(t,e,n){return e+(n?QW(t,e).length:1)},eq=At.TypeError,qx=function(t,e){var n=t.exec;if(rn(n)){var r=yn(n,t,e);return r!==null&&wr(r),r}if(Wu(t)==="RegExp")return yn(dv,t,e);throw eq("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=qn(t),i=!En(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!En(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[XW]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=pe(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var m=pe(l),v=c.exec;return v===dv||v===jy.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});Sa(String.prototype,t,s[0]),Sa(jy,o,s[1])}r&&Wn(jy[o],"sham",!0)})("match",function(t,e,n){return[function(r){var o=c1(this),i=r==null?void 0:lp(r,t);return i?yn(i,r,o):new RegExp(r)[t](Gu(o))},function(r){var o=wr(this),i=Gu(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return qx(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=qx(o,i))!==null;){var f=Gu(s[0]);l[c]=f,f===""&&(o.lastIndex=tq(i,pj(o.lastIndex),u)),c++}return c===0?null:l}]}),ph({global:!0},{globalThis:At});var nq=!En(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Gx=J3("IE_PROTO"),pE=At.Object,rq=pE.prototype,cp=nq?pE.getPrototypeOf:function(t){var e=G3(t);if(er(e,Gx))return e[Gx];var n=e.constructor;return rn(n)&&e instanceof n?n.prototype:e instanceof pE?rq:null},oq=At.String,iq=At.TypeError,Ql=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return wr(r),function(i){if(typeof i=="object"||rn(i))return i;throw iq("Can't set "+oq(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),aq=At.Array,uq=Math.max,sq=pe("".replace),lq=pe("".split),cq=pe([].join),hE=String(Error("zxcasd").stack),wj=/\n\s*at [^:]*:[^\n]*/,fq=wj.test(hE),dq=/@[^\n]*\n/.test(hE)&&!/zxcasd/.test(hE),pq=function(t,e){if(typeof t!="string")return t;if(fq)for(;e--;)t=sq(t,wj,"");else if(dq)return cq(function(n,r,o){for(var i,a,u,s,l=f1(n),c=fE(r,l),f=fE(o===void 0?l:o,l),p=aq(uq(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=n[c],s=void 0,(s=K3(a))in i?jc.f(i,s,wa(0,u)):i[s]=u;return p.length=d,p}(lq(t,`
  6. `),e),`
  7. `);return t},hq=function(t,e){ro(e)&&"cause"in e&&Wn(t,"cause",e.cause)},Kx=pe(pe.bind),Ej=function(t,e){return U3(t),e===void 0?t:Kx?Kx(t,e):function(){return t.apply(e,arguments)}},tc={},gq=qn("iterator"),vq=Array.prototype,mq=qn("iterator"),Yx=function(t){if(t!=null)return lp(t,mq)||lp(t,"@@iterator")||tc[d1(t)]},yq=At.TypeError,Xx=function(t,e,n){var r,o;wr(t);try{if(!(r=lp(t,"return"))){if(e==="throw")throw n;return n}r=yn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return wr(r),n},bq=At.TypeError,Cg=function(t,e){this.stopped=t,this.result=e},Zx=Cg.prototype,wq=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),m=Ej(e,c),v=function(y){return r&&Xx(r,"normal",y),new Cg(!0,y)},g=function(y){return f?(wr(y),d?m(y[0],y[1],v):m(y[0],y[1])):d?m(y,v):m(y)};if(p)r=t;else{if(!(o=Yx(t)))throw bq(sE(t)+" is not iterable");if(function(y){return y!==void 0&&(tc.Array===y||vq[gq]===y)}(o)){for(i=0,a=f1(t);a>i;i++)if((u=g(t[i]))&&uv(Zx,u))return u;return new Cg(!1)}r=function(y,h){var b=arguments.length<2?Yx(y):h;if(U3(b))return wr(yn(b,y));throw yq(sE(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=yn(s,r)).done;){try{u=g(l.value)}catch(y){Xx(r,"throw",y)}if(typeof u=="object"&&u&&uv(Zx,u))return u}return new Cg(!1)},Eq=function(t,e){return t===void 0?arguments.length<2?"":e:Gu(t)},Sq=!En(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",wa(1,7)),t.stack!==7)}),Cq=qn("toStringTag"),pv=At.Error,Dq=[].push,fp=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=uv(Iy,this);Ql?n=Ql(new pv(void 0),o?cp(this):Iy):(n=o?this:hh(Iy),Wn(n,Cq,"Error")),Wn(n,"message",Eq(e,"")),Sq&&Wn(n,"stack",pq(n.stack,1)),hq(n,r);var i=[];return wq(t,Dq,{that:i}),Wn(n,"errors",i),n};Ql?Ql(fp,pv):gj(fp,pv);var Iy=fp.prototype=hh(pv.prototype,{constructor:wa(1,fp),message:wa(1,""),name:wa(1,"AggregateError")});ph({global:!0},{AggregateError:fp});var gE=qn("unscopables"),vE=Array.prototype;vE[gE]==null&&jc.f(vE,gE,{configurable:!0,value:hh(null)});var Ku,Jx,Qx,Ny=function(t){vE[gE][t]=!0},mE=qn("iterator"),Sj=!1;[].keys&&("next"in(Qx=[].keys())?(Jx=cp(cp(Qx)))!==Object.prototype&&(Ku=Jx):Sj=!0);var xq=Ku==null||En(function(){var t={};return Ku[mE].call(t)!==t});xq&&(Ku={}),rn(Ku[mE])||Sa(Ku,mE,function(){return this});var iC={IteratorPrototype:Ku,BUGGY_SAFARI_ITERATORS:Sj},Aq=jc.f,tA=qn("toStringTag"),eA=function(t,e,n){t&&!er(t=n?t:t.prototype,tA)&&Aq(t,tA,{configurable:!0,value:e})},Oq=iC.IteratorPrototype,kq=function(){return this},_q=tC.PROPER,Bq=tC.CONFIGURABLE,nA=iC.IteratorPrototype,f0=iC.BUGGY_SAFARI_ITERATORS,of=qn("iterator"),Fq=function(){return this},Cj=function(t,e,n,r,o,i,a){(function(y,h,b,E){var w=h+" Iterator";y.prototype=hh(Oq,{next:wa(+!E,b)}),eA(y,w,!1),tc[w]=kq})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!f0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,m=d[of]||d["@@iterator"]||o&&d[o],v=!f0&&m||c(o),g=e=="Array"&&d.entries||m;if(g&&(u=cp(g.call(new t)))!==Object.prototype&&u.next&&(cp(u)!==nA&&(Ql?Ql(u,nA):rn(u[of])||Sa(u,of,Fq)),eA(u,f,!0)),_q&&o=="values"&&m&&m.name!=="values"&&(Bq?Wn(d,"name","values"):(p=!0,v=function(){return yn(m,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(f0||p||!(l in d))&&Sa(d,l,s[l]);else ph({target:e,proto:!0,forced:f0||p},s);return d[of]!==v&&Sa(d,of,v,{name:o}),tc[e]=v,s},Tq=ps.set,Pq=ps.getterFor("Array Iterator"),Ed=Cj(Array,"Array",function(t,e){Tq(this,{type:"Array Iterator",target:Pc(t),index:0,kind:e})},function(){var t=Pq(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");tc.Arguments=tc.Array,Ny("keys"),Ny("values"),Ny("entries");var jq=bj.charAt,Iq=ps.set,Nq=ps.getterFor("String Iterator");Cj(String,"String",function(t){Iq(this,{type:"String Iterator",string:Gu(t),index:0})},function(){var t,e=Nq(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=jq(n,r),e.index+=t.length,{value:t,done:!1})});var Ry,hv={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},Ly=Y3("span").classList,rA=Ly&&Ly.constructor&&Ly.constructor.prototype,Dj=rA===Object.prototype?void 0:rA,My=qn("iterator"),oA=qn("toStringTag"),zy=Ed.values,xj=function(t,e){if(t){if(t[My]!==zy)try{Wn(t,My,zy)}catch{t[My]=zy}if(t[oA]||Wn(t,oA,e),hv[e]){for(var n in Ed)if(t[n]!==Ed[n])try{Wn(t,n,Ed[n])}catch{t[n]=Ed[n]}}}};for(var $y in hv)xj(At[$y]&&At[$y].prototype,$y);xj(Dj,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
  8. Sorry, wangEditor V5+ versions do not support IE browser.`),iA(),aA()):global&&(!((Ry=global.navigator)===null||Ry===void 0)&&Ry.userAgent.match("QQBrowser"))&&(iA(),aA());function iA(){typeof globalThis>"u"&&(window.globalThis=window)}function aA(){BU===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var uA,gv=Array.isArray||function(t){return Hu(t)=="Array"},Aj=function(){},Rq=[],Oj=Bc("Reflect","construct"),aC=/^\s*(?:class|function)\b/,Lq=De(aC.exec),Mq=!aC.exec(Aj),af=function(t){if(!bn(t))return!1;try{return Oj(Aj,Rq,t),!0}catch{return!1}},zq=!Oj||or(function(){var t;return af(af.call)||!af(Object)||!af(function(){t=!0})||t})?function(t){if(!bn(t))return!1;switch(ch(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Mq||!!Lq(aC,rj(t))}:af,$q=zn("species"),sA=Pt.Array,kj=function(t,e){return new(function(n){var r;return gv(n)&&(r=n.constructor,(zq(r)&&(r===sA||gv(r.prototype))||pr(r)&&(r=r[$q])===null)&&(r=void 0)),r===void 0?sA:r}(t))(e===0?0:e)},Vq=zn("species"),_j=zn("isConcatSpreadable"),lA=Pt.TypeError,Hq=Zg>=51||!or(function(){var t=[];return t[_j]=!1,t.concat()[0]!==t}),Uq=(uA="concat",Zg>=51||!or(function(){var t=[];return(t.constructor={})[Vq]=function(){return{foo:1}},t[uA](Boolean).foo!==1})),Wq=function(t){if(!pr(t))return!1;var e=t[_j];return e!==void 0?!!e:gv(t)};li({target:"Array",proto:!0,forced:!Hq||!Uq},{concat:function(t){var e,n,r,o,i,a=ah(this),u=kj(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(Wq(i=e===-1?a:arguments[e])){if(s+(o=sh(i))>9007199254740991)throw lA("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&tE(u,s,i[n])}else{if(s>=9007199254740991)throw lA("Maximum allowed index exceeded");tE(u,s++,i)}return u.length=s,u}});var cA=z3.f,fA=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bj={f:function(t){return fA&&Hu(t)=="Window"?function(e){try{return cA(e)}catch{return tj(fA)}}(t):cA(Ko(t))}},qq=De([].slice),uC={f:zn},Gq=eu.f,We=function(t){var e=dr.Symbol||(dr.Symbol={});Xt(e,t)||Gq(e,t,{value:uC.f(t)})},dA=De([].push),Li=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=ah(s),v=KP(m),g=L3(l,c),y=sh(v),h=0,b=f||kj,E=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=g(p=v[h],h,m),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:dA(E,p)}else switch(t){case 4:return!1;case 7:dA(E,p)}return i?-1:r||o?o:E}},p1={forEach:Li(0),map:Li(1),filter:Li(2),some:Li(3),every:Li(4),find:Li(5),findIndex:Li(6),filterReject:Li(7)}.forEach,Xn=l1("hidden"),pA=zn("toPrimitive"),Kq=Tc.set,hA=Tc.getterFor("Symbol"),ao=Object.prototype,la=Pt.Symbol,ha=la&&la.prototype,gA=Pt.TypeError,Vy=Pt.QObject,uf=Bc("JSON","stringify"),Fj=s1.f,ca=eu.f,Tj=Bj.f,Yq=j3.f,Pj=De([].push),Si=Bs("symbols"),gh=Bs("op-symbols"),Hy=Bs("string-to-symbol-registry"),Uy=Bs("symbol-to-string-registry"),Xq=Bs("wks"),Wy=!Vy||!Vy.prototype||!Vy.prototype.findChild,yE=tr&&or(function(){return Ei(ca({},"a",{get:function(){return ca(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=Fj(ao,e);r&&delete ao[e],ca(t,e,n),r&&t!==ao&&ca(ao,e,r)}:ca,qy=function(t,e){var n=Si[t]=Ei(ha);return Kq(n,{type:"Symbol",tag:t,description:e}),tr||(n.description=e),n},vv=function(t,e,n){t===ao&&vv(gh,e,n),br(t);var r=Fc(e);return br(n),Xt(Si,r)?(n.enumerable?(Xt(t,Xn)&&t[Xn][r]&&(t[Xn][r]=!1),n=Ei(n,{enumerable:lo(0,!1)})):(Xt(t,Xn)||ca(t,Xn,lo(1,{})),t[Xn][r]=!0),yE(t,r,n)):ca(t,r,n)},vA=function(t,e){br(t);var n=Ko(e),r=$3(n).concat(bE(n));return p1(r,function(o){tr&&!Jn(jj,n,o)||vv(t,o,n[o])}),t},jj=function(t){var e=Fc(t),n=Jn(Yq,this,e);return!(this===ao&&Xt(Si,e)&&!Xt(gh,e))&&(!(n||!Xt(this,e)||!Xt(Si,e)||Xt(this,Xn)&&this[Xn][e])||n)},mA=function(t,e){var n=Ko(t),r=Fc(e);if(n!==ao||!Xt(Si,r)||Xt(gh,r)){var o=Fj(n,r);return!o||!Xt(Si,r)||Xt(n,Xn)&&n[Xn][r]||(o.enumerable=!0),o}},yA=function(t){var e=Tj(Ko(t)),n=[];return p1(e,function(r){Xt(Si,r)||Xt(lh,r)||Pj(n,r)}),n},bE=function(t){var e=t===ao,n=Tj(e?gh:Ko(t)),r=[];return p1(n,function(o){!Xt(Si,o)||e&&!Xt(ao,o)||Pj(r,Si[o])}),r};if(Oo||(ha=(la=function(){if(ap(ha,this))throw gA("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?up(arguments[0]):void 0,e=Qg(t),n=function(r){this===ao&&Jn(n,gh,r),Xt(this,Xn)&&Xt(this[Xn],e)&&(this[Xn][e]=!1),yE(this,e,lo(1,r))};return tr&&Wy&&yE(ao,e,{configurable:!0,set:n}),qy(e,t)}).prototype,Jl(ha,"toString",function(){return hA(this).tag}),Jl(la,"withoutSetter",function(t){return qy(Qg(t),t)}),j3.f=jj,eu.f=vv,s1.f=mA,z3.f=Bj.f=yA,yg.f=bE,uC.f=function(t){return qy(zn(t),t)},tr&&ca(ha,"description",{configurable:!0,get:function(){return hA(this).description}})),li({global:!0,wrap:!0,forced:!Oo,sham:!Oo},{Symbol:la}),p1($3(Xq),function(t){We(t)}),li({target:"Symbol",stat:!0,forced:!Oo},{for:function(t){var e=up(t);if(Xt(Hy,e))return Hy[e];var n=la(e);return Hy[e]=n,Uy[n]=e,n},keyFor:function(t){if(!Rl(t))throw gA(t+" is not a symbol");if(Xt(Uy,t))return Uy[t]},useSetter:function(){Wy=!0},useSimple:function(){Wy=!1}}),li({target:"Object",stat:!0,forced:!Oo,sham:!tr},{create:function(t,e){return e===void 0?Ei(t):vA(Ei(t),e)},defineProperty:vv,defineProperties:vA,getOwnPropertyDescriptor:mA}),li({target:"Object",stat:!0,forced:!Oo},{getOwnPropertyNames:yA,getOwnPropertySymbols:bE}),li({target:"Object",stat:!0,forced:or(function(){yg.f(1)})},{getOwnPropertySymbols:function(t){return yg.f(ah(t))}}),uf){var Zq=!Oo||or(function(){var t=la();return uf([t])!="[null]"||uf({a:t})!="{}"||uf(Object(t))!="{}"});li({target:"JSON",stat:!0,forced:Zq},{stringify:function(t,e,n){var r=qq(arguments),o=e;if((pr(e)||t!==void 0)&&!Rl(t))return gv(e)||(e=function(i,a){if(bn(o)&&(a=Jn(o,this,i,a)),!Rl(a))return a}),r[1]=e,qP(uf,null,r)}})}if(!ha[pA]){var Jq=ha.valueOf;Jl(ha,pA,function(t){return Jn(Jq,this)})}av(la,"Symbol"),lh[Xn]=!0,We("asyncIterator"),We("hasInstance"),We("isConcatSpreadable"),We("iterator"),We("match"),We("matchAll"),We("replace"),We("search"),We("species"),We("split"),We("toPrimitive"),We("toStringTag"),We("unscopables"),av(Pt.JSON,"JSON",!0);var Qq=dr.Symbol;We("asyncDispose"),We("dispose"),We("matcher"),We("metadata"),We("observable"),We("patternMatch"),We("replaceAll");var d0=Qq,tG=uC.f("iterator"),eG=_s(function(t){function e(n){return typeof d0=="function"&&typeof tG=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof d0=="function"&&r.constructor===d0&&r!==d0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),nG=zV(eG),Ij=X3.f,rG=En(function(){Ij(1)});if(ph({target:"Object",stat:!0,forced:!$o||rG,sham:!$o},{getOwnPropertyDescriptor:function(t,e){return Ij(Pc(t),e)}}),(typeof global>"u"?"undefined":nG(global))==="object"){var oG=Object.getOwnPropertyDescriptor(global,"window");global.window&&!oG.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
  9. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  10. *
  11. * Copyright (c) 2014-2017, Jon Schlinkert.
  12. * Released under the MIT License.
  13. */function bA(t){return Object.prototype.toString.call(t)==="[object Object]"}function Nn(t){var e,n;return bA(t)!==!1&&((e=t.constructor)===void 0||bA(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function oo(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function hs(t){return!!t&&!!t[Er]}function gs(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===cG}(t)||Array.isArray(t)||!!t[OA]||!!t.constructor[OA]||sC(t)||lC(t))}function dp(t,e,n){n===void 0&&(n=!1),ec(t)===0?(n?Object.keys:hC)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function ec(t){var e=t[Er];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:sC(t)?2:lC(t)?3:0}function wE(t,e){return ec(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Nj(t,e,n){var r=ec(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function sC(t){return sG&&t instanceof Map}function lC(t){return lG&&t instanceof Set}function Au(t){return t.o||t.t}function cC(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=fG(t);delete e[Er];for(var n=hC(e),r=0;r<n.length;r++){var o=n[r],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function fC(t,e){return e===void 0&&(e=!1),dC(t)||hs(t)||!gs(t)||(ec(t)>1&&(t.set=t.add=t.clear=t.delete=iG),Object.freeze(t),e&&dp(t,function(n,r){return fC(r,!0)},!0)),t}function iG(){oo(2)}function dC(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function yi(t){var e=dG[t];return e||oo(18,t),e}function wA(){return pp}function Gy(t,e){e&&(yi("Patches"),t.u=[],t.s=[],t.v=e)}function mv(t){EE(t),t.p.forEach(aG),t.p=null}function EE(t){t===pp&&(pp=t.l)}function EA(t){return pp={p:[],l:pp,h:t,m:!0,_:0}}function aG(t){var e=t[Er];e.i===0||e.i===1?e.j():e.O=!0}function Ky(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||yi("ES5").S(e,t,r),r?(n[Er].P&&(mv(e),oo(4)),gs(t)&&(t=yv(e,t),e.l||bv(e,t)),e.u&&yi("Patches").M(n[Er],t,e.u,e.s)):t=yv(e,n,[]),mv(e),e.u&&e.v(e.u,e.s),t!==Rj?t:void 0}function yv(t,e,n){if(dC(e))return e;var r=e[Er];if(!r)return dp(e,function(i,a){return SA(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return bv(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=cC(r.k):r.o;dp(r.i===3?new Set(o):o,function(i,a){return SA(t,r,o,i,a,n)}),bv(t,o,!1),n&&t.u&&yi("Patches").R(r,n,t.u,t.s)}return r.o}function SA(t,e,n,r,o,i){if(hs(o)){var a=yv(t,o,i&&e&&e.i!==3&&!wE(e.D,r)?i.concat(r):void 0);if(Nj(n,r,a),!hs(a))return;t.m=!1}if(gs(o)&&!dC(o)){if(!t.h.F&&t._<1)return;yv(t,o),e&&e.A.l||bv(t,o)}}function bv(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&fC(e,n)}function Yy(t,e){var n=t[Er];return(n?Au(n):t)[e]}function CA(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function SE(t){t.P||(t.P=!0,t.l&&SE(t.l))}function Xy(t){t.o||(t.o=cC(t.t))}function CE(t,e,n){var r=sC(e)?yi("MapSet").N(e,n):lC(e)?yi("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:wA(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=Dg;a&&(s=[u],l=xg);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):yi("ES5").J(e,n);return(n?n.A:wA()).p.push(r),r}function uG(t){return hs(t)||oo(22,t),function e(n){if(!gs(n))return n;var r,o=n[Er],i=ec(n);if(o){if(!o.P&&(o.i<4||!yi("ES5").K(o)))return o.t;o.I=!0,r=DA(n,i),o.I=!1}else r=DA(n,i);return dp(r,function(a,u){o&&function(s,l){return ec(s)===2?s.get(l):s[l]}(o.t,a)===u||Nj(r,a,e(u))}),i===3?new Set(r):r}(t)}function DA(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return cC(t)}var xA,pp,pC=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",sG=typeof Map<"u",lG=typeof Set<"u",AA=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rj=pC?Symbol.for("immer-nothing"):((xA={})["immer-nothing"]=!0,xA),OA=pC?Symbol.for("immer-draftable"):"__$immer_draftable",Er=pC?Symbol.for("immer-state"):"__$immer_state",cG=""+Object.prototype.constructor,hC=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,fG=Object.getOwnPropertyDescriptors||function(t){var e={};return hC(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},dG={},Dg={get:function(t,e){if(e===Er)return t;var n=Au(t);if(!wE(n,e))return function(o,i,a){var u,s=CA(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!gs(r)?r:r===Yy(t.t,e)?(Xy(t),t.o[e]=CE(t.A.h,r,t)):r},has:function(t,e){return e in Au(t)},ownKeys:function(t){return Reflect.ownKeys(Au(t))},set:function(t,e,n){var r=CA(Au(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=Yy(Au(t),e),i=o==null?void 0:o[Er];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||wE(t.t,e)))return!0;Xy(t),SE(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return Yy(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,Xy(t),SE(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Au(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){oo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){oo(12)}},xg={};dp(Dg,function(t,e){xg[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),xg.deleteProperty=function(t,e){return Dg.deleteProperty.call(this,t[0],e)},xg.set=function(t,e,n){return Dg.set.call(this,t[0],e,n,t[0])};var pG=function(){function t(n){var r=this;this.g=AA,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=r;return function(d){var m=this;d===void 0&&(d=u);for(var v=arguments.length,g=Array(v>1?v-1:0),y=1;y<v;y++)g[y-1]=arguments[y];return s.produce(d,function(h){var b;return(b=i).call.apply(b,[m,h].concat(g))})}}var l;if(typeof i!="function"&&oo(6),a!==void 0&&typeof a!="function"&&oo(7),gs(o)){var c=EA(r),f=CE(r,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?mv(c):EE(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(d){return Gy(c,a),Ky(d,c)},function(d){throw mv(c),d}):(Gy(c,a),Ky(l,c))}if(!o||typeof o!="object")return(l=i(o))===Rj?void 0:(l===void 0&&(l=o),r.F&&fC(l,!0),l);oo(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return r.produceWithPatches(s,function(p){return o.apply(void 0,[p].concat(c))})}:[r.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var e=t.prototype;return e.createDraft=function(n){gs(n)||oo(8),hs(n)&&(n=uG(n));var r=EA(this),o=CE(this,n,void 0);return o[Er].C=!0,EE(r),o},e.finishDraft=function(n,r){var o=(n&&n[Er]).A;return Gy(o,r),Ky(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!AA&&oo(20),this.g=n},e.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=yi("Patches").$;return hs(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),cr=new pG,h1=cr.produce;cr.produceWithPatches.bind(cr),cr.setAutoFreeze.bind(cr),cr.setUseProxies.bind(cr),cr.applyPatches.bind(cr);var kA=cr.createDraft.bind(cr),_A=cr.finishDraft.bind(cr);function Yo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wv=new WeakMap,sf=new WeakMap,BA=new WeakMap,FA=new WeakMap,TA=new WeakMap,PA=new WeakMap;function jA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function p0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jA(Object(n),!0).forEach(function(r){Yo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var hG=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of C.pathRefs(t))UG.transform(n,e);for(var r of C.pointRefs(t))WG.transform(r,e);for(var o of C.rangeRefs(t))GG.transform(o,e);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=wv.get(t)||[],l=gG(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);wv.set(t,a),I.transform(t,e),t.operations.push(e),C.normalize(t),e.type==="set_selection"&&(t.marks=null),sf.get(t)||(sf.set(t,!0),Promise.resolve().then(()=>{sf.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(M.isExpanded(r))I.setNodes(t,{[e]:n},{match:it.isText,split:!0});else{var o=p0(p0({},C.marks(t)||{}),{},{[e]:n});t.marks=o,sf.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&M.isCollapsed(n)&&I.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&M.isCollapsed(n)&&I.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&M.isExpanded(n)&&I.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?Q.fragment(t,e):[]},insertBreak:()=>{I.splitNodes(t,{always:!0})},insertFragment:e=>{I.insertFragment(t,e)},insertNode:e=>{I.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=p0({text:e},r);I.insertNodes(t,o)}else I.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!it.isText(n))if(pt.isElement(n)&&n.children.length===0)I.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!C.isEditor(n)&&pt.isElement(n)&&(t.isInline(n)||n.children.length===0||it.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Q.get(t,r);if(!it.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(it.isText(s)||pt.isElement(s)&&t.isInline(s))!==o?(I.removeNodes(t,{at:r.concat(i),voids:!0}),i--):pt.isElement(s)?t.isInline(s)&&(l!=null&&it.isText(l)?c&&(I.insertNodes(t,{text:""},{at:r.concat(i+1),voids:!0}),i++):(I.insertNodes(t,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&it.isText(l)&&(it.equals(s,l,{loose:!0})?(I.mergeNodes(t,{at:r.concat(i),voids:!0}),i--):l.text===""?(I.removeNodes(t,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(I.removeNodes(t,{at:r.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:n}=t;if(n)if(M.isExpanded(n))I.unsetNodes(t,e,{match:it.isText,split:!0});else{var r=p0({},C.marks(t)||{});delete r[e],t.marks=r,sf.get(t)||t.onChange()}}};return t},gG=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return j.levels(e);case"insert_node":var{node:n,path:r}=t,o=j.levels(r),i=it.isText(n)?[]:Array.from(Q.nodes(n),E=>{var[,w]=E;return r.concat(w)});return[...o,...i];case"merge_node":var{path:a}=t;return[...j.ancestors(a),j.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(j.equals(u,s))return[];var l=[],c=[];for(var f of j.ancestors(u)){var p=j.transform(f,t);l.push(p)}for(var d of j.ancestors(s)){var m=j.transform(d,t);c.push(m)}var v=c[c.length-1],g=s[s.length-1],y=v.concat(g);return[...l,...c,y];case"remove_node":var{path:h}=t;return[...j.ancestors(h)];case"split_node":var{path:b}=t;return[...j.levels(b),j.next(b)];default:return[]}};function Ci(t,e){if(t==null)return{};var n,r,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var _t,DE=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?wG(t):t,o=_t.None,i=_t.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=TG(s,l);if([o,i]=n?[i,c]:[c,o],Fl(o,_t.ZWJ)&&Fl(i,_t.ExtPict)&&!NG(n?t.substring(0,a):t.substring(0,t.length-a))||Fl(o,_t.RI)&&Fl(i,_t.RI)&&!(u=u!==null?!u:!!n||LG(t.substring(0,t.length-a)))||o!==_t.None&&i!==_t.None&&jG(o,i))break;a+=s.length}return a||1},vG=/\s/,mG=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,yG=/['\u2018\u2019]/,xE=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},bG=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(vG.test(e))return!1;if(yG.test(e)){var o=DE(n,r),[i,a]=xE(n,o,r);if(t(i,a,r))return!0}return!mG.test(e)},wG=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(SG(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(EG(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},EG=t=>t>=55296&&t<=56319,SG=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(_t||(_t={}));var CG=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,DG=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,xG=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,AG=/^[\u1100-\u115F\uA960-\uA97C]$/,OG=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,kG=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,_G=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,BG=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,FG=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,TG=(t,e)=>{var n=_t.Any;return t.search(CG)!==-1&&(n|=_t.Extend),e===8205&&(n|=_t.ZWJ),e>=127462&&e<=127487&&(n|=_t.RI),t.search(DG)!==-1&&(n|=_t.Prepend),t.search(xG)!==-1&&(n|=_t.SpacingMark),t.search(AG)!==-1&&(n|=_t.L),t.search(OG)!==-1&&(n|=_t.V),t.search(kG)!==-1&&(n|=_t.T),t.search(_G)!==-1&&(n|=_t.LV),t.search(BG)!==-1&&(n|=_t.LVT),t.search(FG)!==-1&&(n|=_t.ExtPict),n};function Fl(t,e){return(t&e)!=0}var PG=[[_t.L,_t.L|_t.V|_t.LV|_t.LVT],[_t.LV|_t.V,_t.V|_t.T],[_t.LVT|_t.T,_t.T],[_t.Any,_t.Extend|_t.ZWJ],[_t.Any,_t.SpacingMark],[_t.Prepend,_t.Any],[_t.ZWJ,_t.ExtPict],[_t.RI,_t.RI]];function jG(t,e){return PG.findIndex(n=>Fl(t,n[0])&&Fl(e,n[1]))===-1}var IG=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,NG=t=>t.search(IG)!==-1,RG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,LG=t=>{var e=t.match(RG);return e!==null&&e[0].length/2%2==1},IA=t=>Nn(t)&&Q.isNodeList(t.children)&&!C.isEditor(t),pt={isAncestor:t=>Nn(t)&&Q.isNodeList(t.children),isElement:IA,isElementList:t=>Array.isArray(t)&&t.every(e=>pt.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return IA(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},MG=["text"],zG=["text"];function NA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ks(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?NA(Object(n),!0).forEach(function(r){Yo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):NA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var RA=new WeakMap,C={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var a=C.path(t,o),u=r==="lowest";for(var[s,l]of C.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!it.isText(s)&&!j.equals(a,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:C.point(t,e,{edge:"end"}),focus:C.end(t,[])},{distance:i=1}=r,a=0;for(var u of C.positions(t,Ks(Ks({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:C.start(t,[]),focus:C.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of C.positions(t,Ks(Ks({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[C.start(t,e),C.end(t,e)],end:(t,e)=>C.point(t,e,{edge:"end"}),first(t,e){var n=C.path(t,e,{edge:"start"});return C.node(t,n)},fragment(t,e){var n=C.range(t,e);return Q.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>C.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>it.isText(n)||C.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>it.isText(n)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>pt.isElement(e)&&!t.isInline(e),isEditor(t){if(!Nn(t))return!1;var e=RA.get(t);if(e!==void 0)return e;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||Nn(t.marks))&&(t.selection===null||M.isRange(t.selection))&&Q.isNodeList(t.children)&&ga.isOperationList(t.operations);return RA.set(t,n),n},isEnd(t,e,n){var r=C.end(t,n);return It.equals(e,r)},isEdge:(t,e,n)=>C.isStart(t,e,n)||C.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&it.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>pt.isElement(e)&&t.isInline(e),isNormalizing(t){var e=BA.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=C.start(t,n);return It.equals(e,r)},isVoid:(t,e)=>pt.isElement(e)&&t.isVoid(e),last(t,e){var n=C.path(t,e,{edge:"end"});return C.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=C.path(t,e,n);return[Q.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=C.path(t,n);for(var[s,l]of Q.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&C.isVoid(t,s)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(M.isExpanded(n)){var[r]=C.nodes(t,{match:it.isText});if(r){var[o]=r;return Ci(o,MG)}return{}}var{anchor:i}=n,{path:a}=i,[u]=C.leaf(t,a);if(i.offset===0){var s=C.previous(t,{at:a,match:it.isText}),l=C.above(t,{match:d=>C.isBlock(t,d)});if(s&&l){var[c,f]=s,[,p]=l;j.isAncestor(p,f)&&(u=c)}}return Ci(u,zG)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=C.after(t,i,{voids:r});if(a){var[,u]=C.last(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(j.isPath(i)){var[l]=C.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=C.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=C.path(t,e,n);return[Q.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if($G.isSpan(n))s=n[0],l=n[1];else{var c=C.path(t,n,{edge:"start"}),f=C.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=Q.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[E]=b;return!a&&C.isVoid(t,E)}}),m=[];for(var[v,g]of d){var y=p&&j.compare(g,p[1])===0;if(r!=="highest"||!y){if(u(v,g))if(r==="lowest"&&y)p=[v,g];else{var h=r==="lowest"?p:[v,g];h&&(o?m.push(h):yield h),p=[v,g]}else if(o&&!y&&it.isText(v))return}}r==="lowest"&&p&&(o?m.push(p):yield p),o&&(yield*m)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>wv.get(i)||[];if(C.isNormalizing(t)){if(n){var o=Array.from(Q.nodes(t),i=>{var[,a]=i;return a});wv.set(t,o)}r(t).length!==0&&C.withoutNormalizing(t,()=>{for(var i of r(t))if(Q.has(t,i)){var a=C.node(t,i),[u,s]=a;pt.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*r(t).length,c=0;r(t).length!==0;){if(c>l)throw new Error(`
  14. Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
  15. `));var f=r(t).pop();if(Q.has(t,f)){var p=C.node(t,f);t.normalizeNode(p)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=C.path(t,e,n),o=j.parent(r);return C.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(j.isPath(e)){if(o==="start"){var[,i]=Q.first(t,e);e=i}else if(o==="end"){var[,a]=Q.last(t,e);e=a}}return M.isRange(e)&&(e=o==="start"?M.start(e):o==="end"?M.end(e):j.common(e.anchor.path,e.focus.path)),It.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>Q.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return C.pathRefs(t).delete(o),o.current=null,i}};return C.pathRefs(t).add(o),o},pathRefs(t){var e=FA.get(t);return e||(e=new Set,FA.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(j.isPath(e)){var o;if(r==="end"){var[,i]=Q.last(t,e);o=i}else{var[,a]=Q.first(t,e);o=a}var u=Q.get(t,o);if(!it.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(M.isRange(e)){var[s,l]=M.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return C.pointRefs(t).delete(o),o.current=null,i}};return C.pointRefs(t).add(o),o},pointRefs(t){var e=TA.get(t);return e||(e=new Set,TA.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=e;if(n){var a=C.range(t,n),[u,s]=M.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,m=0;for(var[v,g]of C.nodes(t,{at:n,reverse:o,voids:i})){if(pt.isElement(v)){if(!i&&t.isVoid(v)){yield C.start(t,g);continue}if(t.isInline(v))continue;if(C.hasInlines(t,v)){var y=j.isAncestor(g,s.path)?s:C.end(t,g),h=j.isAncestor(g,u.path)?u:C.start(t,g);f=C.string(t,{anchor:h,focus:y},{voids:i}),c=!0}}if(it.isText(v)){var b=j.equals(g,l.path);for(b?(d=o?l.offset:v.text.length-l.offset,m=l.offset):(d=v.text.length,m=o?d:0),(b||c||r==="offset")&&(yield{path:g,offset:m},c=!1);;){if(p===0){if(f==="")break;p=E(f,r,o),f=xE(f,p,o)[1]}if(m=o?m-p:m+p,(d-=p)<0){p=-d;break}p=0,yield{path:g,offset:m}}}}}function E(w,S,D){return S==="character"?DE(w,D):S==="word"?function(x){for(var k=arguments.length>1&&arguments[1]!==void 0&&arguments[1],N=0,$=!1;x.length>0;){var R=DE(x,k),[K,U]=xE(x,R,k);if(bG(K,U,k))$=!0,N+=R;else{if($)break;N+=R}x=U}return N}(w,D):S==="line"||S==="block"?w.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=C.before(t,i,{voids:r});if(a){var[,u]=C.first(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(j.isPath(i)){var[l]=C.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=C.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>M.isRange(e)&&!n?e:{anchor:C.start(t,e),focus:C.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return C.rangeRefs(t).delete(o),o.current=null,i}};return C.rangeRefs(t).add(o),o},rangeRefs(t){var e=PA.get(t);return e||(e=new Set,PA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){BA.set(t,e)},start:(t,e)=>C.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=C.range(t,e),[i,a]=M.edges(o),u="";for(var[s,l]of C.nodes(t,{at:o,match:it.isText,voids:r})){var c=s.text;j.equals(l,a.path)&&(c=c.slice(0,a.offset)),j.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=M.edges(e);if(o.offset!==0||i.offset!==0||M.isCollapsed(e))return e;var a=C.above(t,{at:i,match:p=>C.isBlock(t,p)}),u=a?a[1]:[],s={anchor:C.start(t,[]),focus:i},l=!0;for(var[c,f]of C.nodes(t,{at:s,match:it.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||j.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,Ks(Ks({},e),{},{match:n=>C.isVoid(t,n)}))},withoutNormalizing(t,e){var n=C.isNormalizing(t);C.setNormalizing(t,!1);try{e()}finally{C.setNormalizing(t,n)}C.normalize(t)}},$G={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},VG=["children"],HG=["text"],LA=new WeakMap,Q={ancestor(t,e){var n=Q.get(t,e);if(it.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.ancestors(e,n)){var o=[Q.ancestor(t,r),r];yield o}},child(t,e){if(it.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Q.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Q.child(o,a),s=e.concat(a);yield[u,s],a=r?a-1:a+1}},common(t,e,n){var r=j.common(e,n);return[Q.get(t,r),r]},descendant(t,e){var n=Q.get(t,e);if(C.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))pt.isElement(n)&&(yield[n,r])},extractProps:t=>pt.isAncestor(t)?Ci(t,VG):Ci(t,HG),first(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!it.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(it.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=h1({children:t.children},r=>{var[o,i]=M.edges(e),a=Q.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!M.includes(e,d)}});for(var[,u]of a){if(!M.includes(e,u)){var s=Q.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=Q.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=Q.leaf(r,u);f.text=f.text.slice(o.offset)}}C.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(it.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));n=n.children[o]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(it.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:t=>it.isText(t)||pt.isElement(t)||C.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=LA.get(t);if(e!==void 0)return e;var n=t.every(r=>Q.isNode(r));return LA.set(t,n),n},last(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!it.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=Q.get(t,e);if(!it.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.levels(e,n)){var o=Q.get(t,r);yield[o,r]}},matches:(t,e)=>pt.isElement(t)&&pt.isElementProps(e)&&pt.matches(t,e)||it.isText(t)&&it.isTextProps(e)&&it.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(r?j.isBefore(u,i):j.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||it.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=j.next(u);if(Q.has(t,l)){u=l,s=Q.get(t,u);continue}}r&&u[u.length-1]!==0?(u=j.previous(u),s=Q.get(t,u)):(u=j.parent(u),s=Q.get(t,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;j.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Q.get(t,u)}},parent(t,e){var n=j.parent(e),r=Q.get(t,n);if(it.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>it.isText(t)?t.text:t.children.map(Q.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))it.isText(n)&&(yield[n,r])}};function MA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ze(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?MA(Object(n),!0).forEach(function(r){Yo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):MA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ga={isNodeOperation:t=>ga.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!Nn(t))return!1;switch(t.type){case"insert_node":case"remove_node":return j.isPath(t.path)&&Q.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&j.isPath(t.path);case"merge_node":return typeof t.position=="number"&&j.isPath(t.path)&&Nn(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&Nn(t.properties)&&Nn(t.newProperties);case"set_selection":return t.properties===null&&M.isRange(t.newProperties)||t.newProperties===null&&M.isRange(t.properties)||Nn(t.properties)&&Nn(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&Nn(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>ga.isOperation(e)),isSelectionOperation:t=>ga.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>ga.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return Ze(Ze({},t),{},{type:"remove_node"});case"insert_text":return Ze(Ze({},t),{},{type:"remove_text"});case"merge_node":return Ze(Ze({},t),{},{type:"split_node",path:j.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(j.equals(e,n))return t;if(j.isSibling(n,e))return Ze(Ze({},t),{},{path:e,newPath:n});var r=j.transform(n,t),o=j.transform(j.next(n),t);return Ze(Ze({},t),{},{path:r,newPath:o});case"remove_node":return Ze(Ze({},t),{},{type:"insert_node"});case"remove_text":return Ze(Ze({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return Ze(Ze({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return Ze(Ze({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Ze(Ze({},t),{},{type:"merge_node",path:j.next(t.path)})}}},j={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=j.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r];if(o!==e[r])break;n.push(o)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return j.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((n,r)=>n===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>j.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&j.compare(t,e)===0,isBefore:(t,e)=>j.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&j.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&j.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&j.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&j.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&j.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!j.isAncestor(e,t)&&!j.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h1(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(j.equals(i,r)||j.endsBefore(i,r)||j.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(j.equals(a,r)||j.isAncestor(a,r))return null;j.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;j.equals(u,r)||j.endsBefore(u,r)?r[u.length-1]-=1:j.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(j.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else j.endsBefore(l,r)?r[l.length-1]+=1:j.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=e;if(j.equals(f,p))return;if(j.isAncestor(f,r)||j.equals(f,r)){var d=p.slice();return j.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(r.slice(f.length))}j.isSibling(f,p)&&(j.isAncestor(p,r)||j.equals(p,r))?j.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:j.endsBefore(p,r)||j.equals(p,r)||j.isAncestor(p,r)?(j.endsBefore(f,r)&&(r[f.length-1]-=1),r[p.length-1]+=1):j.endsBefore(f,r)&&(j.equals(p,r)&&(r[p.length-1]+=1),r[f.length-1]-=1)}}})}},UG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=j.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}};function zA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function $A(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zA(Object(n),!0).forEach(function(r){Yo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var It={compare(t,e){var n=j.compare(t.path,e.path);return n===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter:(t,e)=>It.compare(t,e)===1,isBefore:(t,e)=>It.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>Nn(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h1(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(e.type){case"insert_node":case"move_node":r.path=j.transform(i,e,n);break;case"insert_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset+=e.text.length);break;case"merge_node":j.equals(e.path,i)&&(r.offset+=e.position),r.path=j.transform(i,e,n);break;case"remove_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(j.equals(e.path,i)||j.isAncestor(e.path,i))return null;r.path=j.transform(i,e,n);break;case"split_node":if(j.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position<a||e.position===a&&o==="forward")&&(r.offset-=e.position,r.path=j.transform(i,e,$A($A({},n),{},{affinity:"forward"})))}else r.path=j.transform(i,e,n)}})}},WG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=It.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},qG=["anchor","focus"];function VA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}var M={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return M.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=M.edges(t);return e},equals:(t,e)=>It.equals(t.anchor,e.anchor)&&It.equals(t.focus,e.focus),includes(t,e){if(M.isRange(e)){if(M.includes(t,e.anchor)||M.includes(t,e.focus))return!0;var[n,r]=M.edges(t),[o,i]=M.edges(e);return It.isBefore(n,o)&&It.isAfter(r,i)}var[a,u]=M.edges(t),s=!1,l=!1;return It.isPoint(e)?(s=It.compare(e,a)>=0,l=It.compare(e,u)<=0):(s=j.compare(e,a.path)>=0,l=j.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=Ci(t,qG),[r,o]=M.edges(t),[i,a]=M.edges(e),u=It.isBefore(r,i)?i:r,s=It.isBefore(o,a)?o:a;return It.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?VA(Object(f),!0).forEach(function(p){Yo(l,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):VA(Object(f)).forEach(function(p){Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(f,p))})}return l}({anchor:u,focus:s},n)},isBackward(t){var{anchor:e,focus:n}=t;return It.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return It.equals(e,n)},isExpanded:t=>!M.isCollapsed(t),isForward:t=>!M.isBackward(t),isRange:t=>Nn(t)&&It.isPoint(t.anchor)&&It.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=M.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h1(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=M.isCollapsed(r);M.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?M.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=It.transform(r.anchor,e,{affinity:o}),l=It.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},GG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=M.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},Lj=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(Nn(r)&&Nn(o)){if(!Lj(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},KG=["text"],YG=["anchor","focus"];function HA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ri(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?HA(Object(n),!0).forEach(function(r){Yo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):HA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var it={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return Ci(i,KG)}return Lj(r?o(t):t,r?o(e):e)},isText:t=>Nn(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>it.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[ri({},t)];for(var r of e){var o=Ci(r,YG),[i,a]=M.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var p=l,d=void 0,m=void 0;if(a.offset<s){var v=a.offset-f;m=ri(ri({},p),{},{text:p.text.slice(v)}),p=ri(ri({},p),{},{text:p.text.slice(0,v)})}if(i.offset>f){var g=i.offset-f;d=ri(ri({},p),{},{text:p.text.slice(0,g)}),p=ri(ri({},p),{},{text:p.text.slice(g)})}Object.assign(p,o),d&&u.push(d),u.push(p),m&&u.push(m)}}n=u}return n}};function UA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function lf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?UA(Object(n),!0).forEach(function(r){Yo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):UA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var XG={transform(t,e){t.children=kA(t.children);var n=t.selection&&kA(t.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Q.parent(r,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of M.points(o))o[f]=It.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:m}=i;if(m.length===0)break;var v=Q.leaf(r,p),g=v.text.slice(0,d),y=v.text.slice(d);if(v.text=g+m+y,o)for(var[h,b]of M.points(o))o[b]=It.transform(h,i);break;case"merge_node":var{path:E}=i,w=Q.get(r,E),S=j.previous(E),D=Q.get(r,S),x=Q.parent(r,E),k=E[E.length-1];if(it.isText(w)&&it.isText(D))D.text+=w.text;else{if(it.isText(w)||it.isText(D))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(E,"] to nodes of different interfaces: ").concat(w," ").concat(D));D.children.push(...w.children)}if(x.children.splice(k,1),o)for(var[N,$]of M.points(o))o[$]=It.transform(N,i);break;case"move_node":var{path:R,newPath:K}=i;if(j.isAncestor(R,K))throw new Error("Cannot move a path [".concat(R,"] to new path [").concat(K,"] because the destination is inside itself."));var U=Q.get(r,R),W=Q.parent(r,R),G=R[R.length-1];W.children.splice(G,1);var nt=j.transform(R,i),ft=Q.get(r,j.parent(nt)),ct=nt[nt.length-1];if(ft.children.splice(ct,0,U),o)for(var[st,_]of M.points(o))o[_]=It.transform(st,i);break;case"remove_node":var{path:A}=i,P=A[A.length-1];if(Q.parent(r,A).children.splice(P,1),o)for(var[V,Y]of M.points(o)){var H=It.transform(V,i);if(o!=null&&H!=null)o[Y]=H;else{var at=void 0,bt=void 0;for(var[wt,Ot]of Q.texts(r)){if(j.compare(Ot,A)!==-1){bt=[wt,Ot];break}at=[wt,Ot]}var q=!1;at&&bt&&(q=j.equals(bt[1],A)?!j.hasPrevious(bt[1]):j.common(at[1],A).length<j.common(bt[1],A).length),at&&!q?(V.path=at[1],V.offset=at[0].text.length):bt?(V.path=bt[1],V.offset=0):o=null}}break;case"remove_text":var{path:Vt,offset:Ft,text:gt}=i;if(gt.length===0)break;var Tt=Q.leaf(r,Vt),ze=Tt.text.slice(0,Ft),Kt=Tt.text.slice(Ft+gt.length);if(Tt.text=ze+Kt,o)for(var[se,Ae]of M.points(o))o[Ae]=It.transform(se,i);break;case"set_node":var{path:_n,properties:qt,newProperties:Gn}=i;if(_n.length===0)throw new Error("Cannot set properties on the root node!");var Xr=Q.get(r,_n);for(var bo in Gn){if(bo==="children"||bo==="text")throw new Error('Cannot set the "'.concat(bo,'" property of nodes!'));var $s=Gn[bo];$s==null?delete Xr[bo]:Xr[bo]=$s}for(var lu in qt)Gn.hasOwnProperty(lu)||delete Xr[lu];break;case"set_selection":var{newProperties:Zr}=i;if(Zr==null)o=Zr;else{if(o==null){if(!M.isRange(Zr))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Zr)," when there is no current selection."));o=lf({},Zr)}for(var wo in Zr){var Zo=Zr[wo];if(Zo==null){if(wo==="anchor"||wo==="focus")throw new Error('Cannot remove the "'.concat(wo,'" selection property'));delete o[wo]}else o[wo]=Zo}}break;case"split_node":var{path:Bn,position:Fn,properties:Tn}=i;if(Bn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Bn,"] because the root node cannot be split."));var $n,gn=Q.get(r,Bn),Or=Q.parent(r,Bn),Xc=Bn[Bn.length-1];if(it.isText(gn)){var Bi=gn.text.slice(0,Fn),Jo=gn.text.slice(Fn);gn.text=Bi,$n=lf(lf({},Tn),{},{text:Jo})}else{var Vs=gn.children.slice(0,Fn),cu=gn.children.slice(Fn);gn.children=Vs,$n=lf(lf({},Tn),{},{children:cu})}if(Or.children.splice(Xc+1,0,$n),o)for(var[Hs,Jr]of M.points(o))o[Jr]=It.transform(Hs,i)}return o})(t,n,e)}finally{t.children=_A(t.children),t.selection=n?hs(n)?_A(n):n:null}}},ZG=["text"],JG=["children"];function WA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function qA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?WA(Object(n),!0).forEach(function(r){Yo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):WA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var QG={insertNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Q.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?C.end(t,[]):[0],s=!0),s==null&&(s=!1),M.isRange(a))if(r||(a=C.unhangRange(t,a)),M.isCollapsed(a))a=a.anchor;else{var[,c]=M.edges(a),f=C.pointRef(t,c);I.delete(t,{at:a}),a=f.unref()}if(It.isPoint(a)){u==null&&(u=it.isText(l)?S=>it.isText(S):t.isInline(l)?S=>it.isText(S)||C.isInline(t,S):S=>C.isBlock(t,S));var[p]=C.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,m=C.pathRef(t,d),v=C.isEnd(t,a,d);I.splitNodes(t,{at:a,match:u,mode:i,voids:o});var g=m.unref();a=v?j.next(g):g}var y=j.parent(a),h=a[a.length-1];if(o||!C.void(t,{at:y})){for(var b of e){var E=y.concat(h);h++,t.apply({type:"insert_node",path:E,node:b}),a=j.next(a)}if(a=j.previous(a),s){var w=C.end(t,a);w&&I.select(t,w)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=j.isPath(n)?Ys(t,n):b=>C.isBlock(t,b)),n){var a=C.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,E]=b;return C.pathRef(t,E)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=C.node(t,j.parent(l)),[f,p]=c,d=l[l.length-1],{length:m}=f.children;if(m===1){var v=j.next(p);I.moveNodes(t,{at:l,to:v,voids:o}),I.removeNodes(t,{at:p,voids:o})}else if(d===0)I.moveNodes(t,{at:l,to:p,voids:o});else if(d===m-1){var g=j.next(p);I.moveNodes(t,{at:l,to:g,voids:o})}else{var y=j.next(l),h=j.next(p);I.splitNodes(t,{at:y,voids:o}),I.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(j.isPath(r)){var[u]=C.parent(t,r);n=k=>u.children.includes(k)}else n=k=>C.isBlock(t,k);if(!o&&M.isRange(r)&&(r=C.unhangRange(t,r)),M.isRange(r))if(M.isCollapsed(r))r=r.anchor;else{var[,s]=M.edges(r),l=C.pointRef(t,s);I.delete(t,{at:r}),r=l.unref(),e.at==null&&I.select(t,r)}var[c]=C.nodes(t,{at:r,match:n,voids:i,mode:a}),f=C.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[m,v]=f;if(d.length!==0&&v.length!==0){var g,y,h=j.next(v),b=j.common(d,v),E=j.isSibling(d,v),w=Array.from(C.levels(t,{at:d}),k=>{var[N]=k;return N}).slice(b.length).slice(0,-1),S=C.above(t,{at:d,mode:"highest",match:k=>w.includes(k)&&Mj(t,k)}),D=S&&C.pathRef(t,S[1]);if(it.isText(p)&&it.isText(m)){var x=Ci(p,ZG);y=m.text.length,g=x}else{if(!pt.isElement(p)||!pt.isElement(m))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(m)));x=Ci(p,JG),y=m.children.length,g=x}E||I.moveNodes(t,{at:d,to:h,voids:i}),D&&I.removeNodes(t,{at:D.current,voids:i}),pt.isElement(m)&&C.isEmpty(t,m)||it.isText(m)&&m.text===""&&v[v.length-1]!==0?I.removeNodes(t,{at:v,voids:i}):t.apply({type:"merge_node",path:h,position:y,properties:g}),D&&D.unref()}}}})},moveNodes(t,e){C.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=j.isPath(r)?Ys(t,r):d=>C.isBlock(t,d));var u=C.pathRef(t,n),s=C.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,m]=d;return C.pathRef(t,m)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:p}),u.current&&j.isSibling(p,f)&&j.isAfter(p,f)&&(u.current=j.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Ys(t,i):p=>C.isBlock(t,p)),!n&&M.isRange(i)&&(i=C.unhangRange(t,i));var u=C.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,p=>{var[,d]=p;return C.pathRef(t,d)});for(var l of s){var c=l.unref();if(c){var[f]=C.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=j.isPath(o)?Ys(t,o):w=>C.isBlock(t,w)),!i&&M.isRange(o)&&(o=C.unhangRange(t,o)),u&&M.isRange(o)){if(M.isCollapsed(o)&&C.leaf(t,o.anchor)[0].text.length>0)return;var l=C.rangeRef(t,o,{affinity:"inward"}),[c,f]=M.edges(o),p=a==="lowest"?"lowest":"highest",d=C.isEnd(t,f,f.path);I.splitNodes(t,{at:f,match:r,mode:p,voids:s,always:!d});var m=C.isStart(t,c,c.path);I.splitNodes(t,{at:c,match:r,mode:p,voids:s,always:!m}),o=l.unref(),n.at==null&&I.select(t,o)}for(var[v,g]of C.nodes(t,{at:o,match:r,mode:a,voids:s})){var y={},h={};if(g.length!==0){var b=!1;for(var E in e)E!=="children"&&E!=="text"&&e[E]!==v[E]&&(b=!0,v.hasOwnProperty(E)&&(y[E]=v[E]),e[E]!=null&&(h[E]=e[E]));b&&t.apply({type:"set_node",path:g,properties:y,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=U=>C.isBlock(t,U)),M.isRange(i)&&(i=tK(t,i)),j.isPath(i)){var s=i,l=C.point(t,s),[c]=C.parent(t,s);o=U=>U===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=C.pointRef(t,i,{affinity:"backward"}),[p]=C.nodes(t,{at:i,match:o,mode:n,voids:r});if(p){var d=C.void(t,{at:i,mode:"highest"});if(!r&&d){var[m,v]=d;if(pt.isElement(m)&&t.isInline(m)){var g=C.after(t,v);if(!g){var y=j.next(v);I.insertNodes(t,{text:""},{at:y,voids:r}),g=C.point(t,y)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var h=C.pointRef(t,i),b=i.path.length-a,[,E]=p,w=i.path.slice(0,b),S=a===0?i.offset:i.path[b]+0;for(var[D,x]of C.levels(t,{at:w,reverse:!0,voids:r})){var k=!1;if(x.length<E.length||x.length===0||!r&&C.isVoid(t,D))break;var N=f.current,$=C.isEnd(t,N,x);if(u||!f||!C.isEdge(t,N,x)){k=!0;var R=Q.extractProps(D);t.apply({type:"split_node",path:x,position:S,properties:R})}S=x[x.length-1]+(k||$?1:0)}if(e.at==null){var K=h.current||C.end(t,[]);I.select(t,K)}f.unref(),h.unref()}}})},unsetNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;I.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Ys(t,i):p=>C.isBlock(t,p)),j.isPath(i)&&(i=C.range(t,i));var u=M.isRange(i)?C.rangeRef(t,i):null,s=C.nodes(t,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,p=>{var[,d]=p;return C.pathRef(t,d)}).reverse(),c=function(p){var d=p.unref(),[m]=C.node(t,d),v=C.range(t,d);r&&u&&(v=M.intersection(u.current,v)),I.liftNodes(t,{at:v,match:g=>pt.isAncestor(m)&&m.children.includes(g),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=j.isPath(u)?Ys(t,u):t.isInline(e)?g=>C.isInline(t,g)||it.isText(g):g=>C.isBlock(t,g)),o&&M.isRange(u)){var[s,l]=M.edges(u),c=C.rangeRef(t,u,{affinity:"inward"});I.splitNodes(t,{at:l,match:a,voids:i}),I.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&I.select(t,u)}var f=Array.from(C.nodes(t,{at:u,match:t.isInline(e)?g=>C.isBlock(t,g):g=>C.isEditor(g),mode:"lowest",voids:i}));for(var[,p]of f){var d=M.isRange(u)?M.intersection(u,C.range(t,p)):u;if(d){var m=Array.from(C.nodes(t,{at:d,match:a,mode:r,voids:i}));if(m.length>0){var v=function(){var[g]=m,y=m[m.length-1],[,h]=g,[,b]=y;if(h.length===0&&b.length===0)return"continue";var E=j.equals(h,b)?j.parent(h):j.common(h,b),w=C.range(t,h,b),S=C.node(t,E),[D]=S,x=E.length+1,k=j.next(b.slice(0,x)),N=qA(qA({},e),{},{children:[]});I.insertNodes(t,N,{at:k,voids:i}),I.moveNodes(t,{at:w,match:$=>pt.isAncestor(D)&&D.children.includes($),to:k.concat(0),voids:i})}();if(v==="continue")continue}}}}})}},Mj=(t,e)=>{if(pt.isElement(e)){var n=e;return!!C.isVoid(t,e)||n.children.length===1&&Mj(t,n.children[0])}return!C.isEditor(e)},tK=(t,e)=>{if(M.isCollapsed(e))return e.anchor;var[,n]=M.edges(e),r=C.pointRef(t,n);return I.delete(t,{at:e}),r.unref()},Ys=(t,e)=>{var[n]=C.node(t,e);return r=>r===n};function GA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function KA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?GA(Object(n),!0).forEach(function(r){Yo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):GA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var eK={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")I.select(t,r.anchor);else if(n==="focus")I.select(t,r.focus);else if(n==="start"){var[o]=M.edges(r);I.select(t,o)}else if(n==="end"){var[,i]=M.edges(r);I.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(n){a==="start"&&(a=M.isBackward(n)?"focus":"anchor"),a==="end"&&(a=M.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?C.before(t,u,l):C.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?C.before(t,s,l):C.after(t,s,l);p&&(c.focus=p)}I.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=C.range(t,e),n)I.setSelection(t,e);else{if(!M.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=M.isBackward(r)?"focus":"anchor"),o==="end"&&(o=M.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;I.setSelection(t,{[o==="anchor"?"anchor":"focus"]:KA(KA({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!It.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!It.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},nK={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(M.isRange(a)&&M.isCollapsed(a)&&(a=a.anchor),It.isPoint(a)){var s=C.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?C.before(t,a,c)||C.start(t,[]):C.after(t,a,c)||C.end(t,[])},u=!0}}if(j.isPath(a))I.removeNodes(t,{at:a,voids:i});else if(!M.isCollapsed(a)){if(!u){var[,f]=M.edges(a),p=C.end(t,[]);It.equals(f,p)||(a=C.unhangRange(t,a,{voids:i}))}var[d,m]=M.edges(a),v=C.above(t,{match:bt=>C.isBlock(t,bt),at:d,voids:i}),g=C.above(t,{match:bt=>C.isBlock(t,bt),at:m,voids:i}),y=v&&g&&!j.equals(v[1],g[1]),h=j.equals(d.path,m.path),b=i?null:C.void(t,{at:d,mode:"highest"}),E=i?null:C.void(t,{at:m,mode:"highest"});if(b){var w=C.before(t,d);w&&v&&j.isAncestor(v[1],w.path)&&(d=w)}if(E){var S=C.after(t,m);S&&g&&j.isAncestor(g[1],S.path)&&(m=S)}var D,x=[];for(var k of C.nodes(t,{at:a,voids:i})){var[N,$]=k;D&&j.compare($,D)===0||(!i&&C.isVoid(t,N)||!j.isCommon($,d.path)&&!j.isCommon($,m.path))&&(x.push(k),D=$)}var R=Array.from(x,bt=>{var[,wt]=bt;return C.pathRef(t,wt)}),K=C.pointRef(t,d),U=C.pointRef(t,m);if(!h&&!b){var W=K.current,[G]=C.leaf(t,W),{path:nt}=W,{offset:ft}=d,ct=G.text.slice(ft);ct.length>0&&t.apply({type:"remove_text",path:nt,offset:ft,text:ct})}for(var st of R){var _=st.unref();I.removeNodes(t,{at:_,voids:i})}if(!E){var A=U.current,[P]=C.leaf(t,A),{path:V}=A,Y=h?d.offset:0,H=P.text.slice(Y,m.offset);H.length>0&&t.apply({type:"remove_text",path:V,offset:Y,text:H})}!h&&y&&U.current&&K.current&&I.mergeNodes(t,{at:U.current,hanging:!0,voids:i});var at=n?K.unref()||U.unref():U.unref()||K.unref();e.at==null&&at&&I.select(t,at)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(M.isRange(i))if(r||(i=C.unhangRange(t,i)),M.isCollapsed(i))i=i.anchor;else{var[,a]=M.edges(i);if(!o&&C.void(t,{at:a}))return;var u=C.pointRef(t,a);I.delete(t,{at:i}),i=u.unref()}else j.isPath(i)&&(i=C.start(t,i));if(o||!C.void(t,{at:i})){var s=C.above(t,{at:i,match:A=>C.isInline(t,A),mode:"highest",voids:o});if(s){var[,l]=s;C.isEnd(t,i,l)?i=C.after(t,l):C.isStart(t,i,l)&&(i=C.before(t,l))}var c=C.above(t,{match:A=>C.isBlock(t,A),at:i,voids:o}),[,f]=c,p=C.isStart(t,i,f),d=C.isEnd(t,i,f),m=p&&d,v=!p||p&&d,g=!d,[,y]=Q.first({children:e},[]),[,h]=Q.last({children:e},[]),b=[],E=A=>{var[P,V]=A;return V.length!==0&&(!!m||!(v&&j.isAncestor(V,y)&&pt.isElement(P)&&!t.isVoid(P)&&!t.isInline(P))&&!(g&&j.isAncestor(V,h)&&pt.isElement(P)&&!t.isVoid(P)&&!t.isInline(P)))};for(var w of Q.nodes({children:e},{pass:E}))E(w)&&b.push(w);var S=[],D=[],x=[],k=!0,N=!1;for(var[$]of b)pt.isElement($)&&!t.isInline($)?(k=!1,N=!0,D.push($)):k?S.push($):x.push($);var[R]=C.nodes(t,{at:i,match:A=>it.isText(A)||C.isInline(t,A),mode:"highest",voids:o}),[,K]=R,U=C.isStart(t,i,K),W=C.isEnd(t,i,K),G=C.pathRef(t,d?j.next(f):f),nt=C.pathRef(t,W?j.next(K):K),ft=C.pathRef(t,f);I.splitNodes(t,{at:i,match:A=>N?C.isBlock(t,A):it.isText(A)||C.isInline(t,A),mode:N?"lowest":"highest",voids:o});var ct=C.pathRef(t,!U||U&&W?j.next(K):K);if(I.insertNodes(t,S,{at:ct.current,match:A=>it.isText(A)||C.isInline(t,A),mode:"highest",voids:o}),m&&D.length&&I.delete(t,{at:ft.unref(),voids:o}),I.insertNodes(t,D,{at:G.current,match:A=>C.isBlock(t,A),mode:"lowest",voids:o}),I.insertNodes(t,x,{at:nt.current,match:A=>it.isText(A)||C.isInline(t,A),mode:"highest",voids:o}),!n.at){var st;st=x.length>0?j.previous(nt.current):D.length>0?j.previous(G.current):j.previous(ct.current);var _=C.end(t,st);I.select(t,_)}ct.unref(),G.unref(),nt.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(j.isPath(o)&&(o=C.range(t,o)),M.isRange(o))if(M.isCollapsed(o))o=o.anchor;else{var i=M.end(o);if(!r&&C.void(t,{at:i}))return;var a=C.pointRef(t,i);I.delete(t,{at:o,voids:r}),o=a.unref(),I.setSelection(t,{anchor:o,focus:o})}if(r||!C.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function YA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function h0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?YA(Object(n),!0).forEach(function(r){Yo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):YA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var I=h0(h0(h0(h0({},XG),QG),eK),nK),AE="[object Map]",OE="[object Set]",rK=/^\[object .+?Constructor\]$/,oK=/^(?:0|[1-9]\d*)$/,iK="[\\ud800-\\udfff]",kE="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",_E="\\ud83c[\\udffb-\\udfff]",zj="[^\\ud800-\\udfff]",$j="(?:\\ud83c[\\udde6-\\uddff]){2}",Vj="[\\ud800-\\udbff][\\udc00-\\udfff]",XA="(?:"+kE+"|"+_E+")?",aK="[\\ufe0e\\ufe0f]?"+XA+("(?:\\u200d(?:"+[zj,$j,Vj].join("|")+")[\\ufe0e\\ufe0f]?"+XA+")*"),uK="(?:"+[zj+kE+"?",kE,$j,Vj,iK].join("|")+")",sK=RegExp(_E+"(?="+_E+")|"+uK+aK,"g"),lK=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),cK=typeof ve=="object"&&ve&&ve.Object===Object&&ve,fK=typeof self=="object"&&self&&self.Object===Object&&self,Fs=cK||fK||Function("return this")();function dK(t,e){return function(n,r){for(var o=-1,i=n?n.length:0,a=Array(i);++o<i;)a[o]=r(n[o],o,n);return a}(e,function(n){return t[n]})}function pK(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function hK(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}function gK(t){return function(e){return lK.test(e)}(t)?function(e){return e.match(sK)||[]}(t):function(e){return e.split("")}(t)}var ZA,JA,vK=Function.prototype,g1=Object.prototype,Zy=Fs["__core-js_shared__"],QA=function(){var t=/[^.]+$/.exec(Zy&&Zy.keys&&Zy.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Hj=vK.toString,Ev=g1.hasOwnProperty,vh=g1.toString,mK=RegExp("^"+Hj.call(Ev).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),t7=Fs.Symbol,Jy=t7?t7.iterator:void 0,yK=g1.propertyIsEnumerable,bK=(ZA=Object.keys,JA=Object,function(t){return ZA(JA(t))}),BE=mh(Fs,"DataView"),FE=mh(Fs,"Map"),TE=mh(Fs,"Promise"),PE=mh(Fs,"Set"),jE=mh(Fs,"WeakMap"),wK=Ts(BE),EK=Ts(FE),SK=Ts(TE),CK=Ts(PE),DK=Ts(jE);function xK(t,e){var n=Uj(t)||function(a){return function(u){return Gj(u)&&gC(u)}(a)&&Ev.call(a,"callee")&&(!yK.call(a,"callee")||vh.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!Ev.call(t,i)||o&&(i=="length"||kK(i,r))||n.push(i);return n}function AK(t){if(!qj(t)||function(n){return!!QA&&QA in n}(t))return!1;var e=Wj(t)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(t)?mK:rK;return e.test(Ts(t))}function OK(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||g1,e!==r)return bK(t);var e,n,r,o=[];for(var i in Object(t))Ev.call(t,i)&&i!="constructor"&&o.push(i);return o}function mh(t,e){var n=function(r,o){return r==null?void 0:r[o]}(t,e);return AK(n)?n:void 0}var Ou=function(t){return vh.call(t)};function kK(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||oK.test(t))&&t>-1&&t%1==0&&t<e}function Ts(t){if(t!=null){try{return Hj.call(t)}catch{}try{return t+""}catch{}}return""}(BE&&Ou(new BE(new ArrayBuffer(1)))!="[object DataView]"||FE&&Ou(new FE)!=AE||TE&&Ou(TE.resolve())!="[object Promise]"||PE&&Ou(new PE)!=OE||jE&&Ou(new jE)!="[object WeakMap]")&&(Ou=function(t){var e=vh.call(t),n=e=="[object Object]"?t.constructor:void 0,r=n?Ts(n):void 0;if(r)switch(r){case wK:return"[object DataView]";case EK:return AE;case SK:return"[object Promise]";case CK:return OE;case DK:return"[object WeakMap]"}return e});var Uj=Array.isArray;function gC(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!Wj(t)}function Wj(t){var e=qj(t)?vh.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function qj(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Gj(t){return!!t&&typeof t=="object"}function _K(t){return t?dK(t,function(e){return gC(e)?xK(e):OK(e)}(t)):[]}var e7=function(t){if(!t)return[];if(gC(t))return function(n){return typeof n=="string"||!Uj(n)&&Gj(n)&&vh.call(n)=="[object String]"}(t)?gK(t):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r}(t);if(Jy&&t[Jy])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(t[Jy]());var e=Ou(t);return(e==AE?pK:e==OE?hK:_K)(t)};function n7(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function vC(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){t[n]===void 0?t[n]=e[n]:n7(e[n])&&n7(t[n])&&Object.keys(e[n]).length>0&&vC(t[n],e[n])})}var Kj={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function yh(){var t=typeof document<"u"?document:{};return vC(t,Kj),t}var BK={document:Kj,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function Ps(){var t=typeof window<"u"?window:{};return vC(t,BK),t}function IE(t){return IE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},IE(t)}function Sv(t,e){return Sv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Sv(t,e)}function FK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function NE(t,e,n){return NE=FK()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&Sv(u,i.prototype),u},NE.apply(null,arguments)}function RE(t){var e=typeof Map=="function"?new Map:void 0;return RE=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return NE(n,arguments,IE(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Sv(r,n)},RE(t)}var va=function(t){var e,n;function r(o){var i,a,u;return i=t.call.apply(t,[this].concat(o))||this,a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(RE(Array));function v1(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,v1(n)):e.push(n)}),e}function Yj(t,e){return Array.prototype.filter.call(t,e)}function B(t,e){var n=Ps(),r=yh(),o=[];if(!e&&t instanceof va)return t;if(!t)return new va(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(l,c){if(typeof l!="string")return[l];for(var f=[],p=c.querySelectorAll(l),d=0;d<p.length;d+=1)f.push(p[d]);return f}(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)o.push(t);else if(Array.isArray(t)){if(t instanceof va)return t;o=t}return new va(function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c}(o))}function nc(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=v1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function rc(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=v1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function oc(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=v1(e.map(function(o){return o.split(" ")}));return Yj(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Hr(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this}function Cv(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function ic(){var t=this[0];if(t){var e,n={};if(t.dataset)for(var r in t.dataset)n[r]=t.dataset[r];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(n[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Vo(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<e.selectedOptions.length;r+=1)n.push(e.selectedOptions[r].value);return n}return e.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(t)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=t.indexOf(i.options[a].value)>=0;else i.value=t}return this}function Ho(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];function u(v){var g=v.target;if(g){var y=v.target.dom7EventData||[];if(y.indexOf(v)<0&&y.unshift(v),B(g).is(o))i.apply(g,y);else for(var h=B(g).parents(),b=0;b<h.length;b+=1)B(h[b]).is(o)&&i.apply(h[b],y)}}function s(v){var g=v&&v.target&&v.target.dom7EventData||[];g.indexOf(v)<0&&g.unshift(v),i.apply(this,g)}typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var p=this[f];if(o)for(l=0;l<c.length;l+=1){var d=c[l];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[d]||(p.dom7LiveListeners[d]=[]),p.dom7LiveListeners[d].push({listener:i,proxyListener:u}),p.addEventListener(d,u,a)}else for(l=0;l<c.length;l+=1){var m=c[l];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[m]||(p.dom7Listeners[m]=[]),p.dom7Listeners[m].push({listener:i,proxyListener:s}),p.addEventListener(m,s,a)}}return this}function r7(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],p=void 0;if(!o&&f.dom7Listeners?p=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(p=f.dom7LiveListeners[l]),p&&p.length)for(var d=p.length-1;d>=0;d-=1){var m=p[d];i&&m.listener===i||i&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===i?(f.removeEventListener(l,m.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,m.proxyListener,a),p.splice(d,1))}}return this}function Dv(){var t=Ps();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function xv(){var t=Ps();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function o7(){if(this.length>0){var t=Ps(),e=yh(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function ac(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function Av(){for(var t=Ps(),e=0;e<this.length;e+=1){var n=this[e];n.style.display==="none"&&(n.style.display=""),t.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function Ov(t,e){var n,r=Ps();if(arguments.length===1){if(typeof t!="string"){for(n=0;n<this.length;n+=1)for(var o in t)this[n].style[o]=t[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function kv(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function i7(t){return B(Yj(this,t))}function Va(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function _v(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function a7(t){var e,n,r=Ps(),o=yh(),i=this[0];if(!i||t===void 0)return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(e=B(t),n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}if(t===o)return i===o;if(t===r)return i===r;if(t.nodeType||t instanceof va){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}return!1}function Ur(){for(var t,e=yh(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[r].appendChild(o.firstChild)}else if(t instanceof va)for(var i=0;i<t.length;i+=1)this[r].appendChild(t[i]);else this[r].appendChild(t)}return this}function u7(t){var e,n,r=yh();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=r.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof va)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function uc(t){for(var e=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?B(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return B(e)}function Bv(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)t?B(r).is(t)&&e.push(r):e.push(r),r=r.parentNode;return B(e)}function sc(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return B(e)}function lc(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)t&&!B(r[o]).is(t)||e.push(r[o]);return B(e)}function cc(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function fc(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var n=0;n<e.childNodes.length;n+=1)e.childNodes[n].parentNode&&e.childNodes[n].parentNode.removeChild(e.childNodes[n]);e.textContent=""}}return this}B.fn=va.prototype;var TK="resize scroll".split(" ");function Xj(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)TK.indexOf(t)<0&&(t in this[o]?this[o][t]():B(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}}var s7=Xj("click"),Ha=Xj("focus"),PK="[object GeneratorFunction]",jK=/^(?:0|[1-9]\d*)$/;function IK(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}var m1=Object.prototype,LE=m1.hasOwnProperty,Zj=m1.toString,NK=m1.propertyIsEnumerable,RK=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);function LK(t,e){var n=Jj(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&mC(u)}(a)&&LE.call(a,"callee")&&(!NK.call(a,"callee")||Zj.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!LE.call(t,i)||o&&(i=="length"||VK(i,r))||n.push(i);return n}var l7,MK=(l7=function(t,e){return t&&zK(t,e,HK)},function(t,e){if(t==null)return t;if(!mC(t))return l7(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&e(o[r],r,o)!==!1;);return t}),zK=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(n(i[s],s,i)===!1)break}return e}}();function $K(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||m1,e!==r)return RK(t);var e,n,r,o=[];for(var i in Object(t))LE.call(t,i)&&i!="constructor"&&o.push(i);return o}function VK(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||jK.test(t))&&t>-1&&t%1==0&&t<e}var Jj=Array.isArray;function mC(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?Zj.call(e):"";return n=="[object Function]"||n==PK}(t)}function HK(t){return mC(t)?LK(t):$K(t)}function UK(t){return t}var yC=function(t,e){return(Jj(t)?IK:MK)(t,typeof e=="function"?e:UK)};let Qj=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var WK=/^\s+|\s+$/g,qK=/^[-+]0x[0-9a-f]+$/i,GK=/^0b[01]+$/i,KK=/^0o[0-7]+$/i,YK=parseInt,XK=typeof ve=="object"&&ve&&ve.Object===Object&&ve,ZK=typeof self=="object"&&self&&self.Object===Object&&self,JK=XK||ZK||Function("return this")(),QK=Object.prototype.toString,tY=Math.max,eY=Math.min,Qy=function(){return JK.Date.now()};function nY(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var E=r,w=o;return r=o=void 0,l=b,a=t.apply(w,E)}function m(b){return l=b,u=setTimeout(g,e),c?d(b):a}function v(b){var E=b-s;return s===void 0||E>=e||E<0||f&&b-l>=i}function g(){var b=Qy();if(v(b))return y(b);u=setTimeout(g,function(E){var w=e-(E-s);return f?eY(w,i-(E-l)):w}(b))}function y(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Qy(),E=v(b);if(r=arguments,o=this,s=b,E){if(u===void 0)return m(s);if(f)return u=setTimeout(g,e),d(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=c7(e)||0,Fv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?tY(c7(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(Qy())},h}function Fv(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function c7(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&QK.call(r)=="[object Symbol]"}(t))return NaN;if(Fv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Fv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(WK,"");var n=GK.test(t);return n||KK.test(t)?YK(t.slice(2),n?2:8):qK.test(t)?NaN:+t}var vs=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return Fv(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),nY(t,e,{leading:r,maxWait:e,trailing:o})};const rY={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function hp(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const ME=Array.isArray;function Ag(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function tb(t){return t===void 0}function sr(t){return t!==void 0}const f7=hp("",{},[],void 0,void 0);function cf(t,e){var n,r;const o=t.key===e.key,i=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&i}function oY(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const a=(r=t[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const iY=["create","update","remove","destroy","pre","post"];function aY(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=e!==void 0?e:rY;for(const f of iY)for(const p of t){const d=p[f];d!==void 0&&n[f].push(d)}function o(f){const p=f.id?"#"+f.id:"",d=f.getAttribute("class"),m=d?"."+d.split(" ").join("."):"";return hp(r.tagName(f).toLowerCase()+p+m,{},[],void 0,f)}function i(f,p){return function(){if(--p==0){const d=r.parentNode(f);r.removeChild(d,f)}}}function a(f,p){var d,m;let v,g=f.data;if(g!==void 0){const b=(d=g.hook)===null||d===void 0?void 0:d.init;sr(b)&&(b(f),g=f.data)}const y=f.children,h=f.sel;if(h==="!")tb(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),E=h.indexOf(".",b),w=b>0?b:h.length,S=E>0?E:h.length,D=b!==-1||E!==-1?h.slice(0,Math.min(w,S)):h,x=f.elm=sr(g)&&sr(v=g.ns)?r.createElementNS(v,D,g):r.createElement(D,g);for(w<S&&x.setAttribute("id",h.slice(w+1,S)),E>0&&x.setAttribute("class",h.slice(S+1).replace(/\./g," ")),v=0;v<n.create.length;++v)n.create[v](f7,f);if(ME(y))for(v=0;v<y.length;++v){const N=y[v];N!=null&&r.appendChild(x,a(N,p))}else Ag(f.text)&&r.appendChild(x,r.createTextNode(f.text));const k=f.data.hook;sr(k)&&((m=k.create)===null||m===void 0||m.call(k,f7,f),k.insert&&p.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,p,d,m,v,g){for(;m<=v;++m){const y=d[m];y!=null&&r.insertBefore(f,a(y,g),p)}}function s(f){var p,d;const m=f.data;if(m!==void 0){(d=(p=m==null?void 0:m.hook)===null||p===void 0?void 0:p.destroy)===null||d===void 0||d.call(p,f);for(let v=0;v<n.destroy.length;++v)n.destroy[v](f);if(f.children!==void 0)for(let v=0;v<f.children.length;++v){const g=f.children[v];g!=null&&typeof g!="string"&&s(g)}}}function l(f,p,d,m){for(var v,g;d<=m;++d){let y,h;const b=p[d];if(b!=null)if(sr(b.sel)){s(b),y=n.remove.length+1,h=i(b.elm,y);for(let w=0;w<n.remove.length;++w)n.remove[w](b,h);const E=(g=(v=b==null?void 0:b.data)===null||v===void 0?void 0:v.hook)===null||g===void 0?void 0:g.remove;sr(E)?E(b,h):h()}else r.removeChild(f,b.elm)}}function c(f,p,d){var m,v,g,y,h;const b=(m=p.data)===null||m===void 0?void 0:m.hook;(v=b==null?void 0:b.prepatch)===null||v===void 0||v.call(b,f,p);const E=p.elm=f.elm,w=f.children,S=p.children;if(f!==p){if(p.data!==void 0){for(let D=0;D<n.update.length;++D)n.update[D](f,p);(y=(g=p.data.hook)===null||g===void 0?void 0:g.update)===null||y===void 0||y.call(g,f,p)}tb(p.text)?sr(w)&&sr(S)?w!==S&&function(D,x,k,N){let $,R,K,U,W=0,G=0,nt=x.length-1,ft=x[0],ct=x[nt],st=k.length-1,_=k[0],A=k[st];for(;W<=nt&&G<=st;)ft==null?ft=x[++W]:ct==null?ct=x[--nt]:_==null?_=k[++G]:A==null?A=k[--st]:cf(ft,_)?(c(ft,_,N),ft=x[++W],_=k[++G]):cf(ct,A)?(c(ct,A,N),ct=x[--nt],A=k[--st]):cf(ft,A)?(c(ft,A,N),r.insertBefore(D,ft.elm,r.nextSibling(ct.elm)),ft=x[++W],A=k[--st]):cf(ct,_)?(c(ct,_,N),r.insertBefore(D,ct.elm,ft.elm),ct=x[--nt],_=k[++G]):($===void 0&&($=oY(x,W,nt)),R=$[_.key],tb(R)?r.insertBefore(D,a(_,N),ft.elm):(K=x[R],K.sel!==_.sel?r.insertBefore(D,a(_,N),ft.elm):(c(K,_,N),x[R]=void 0,r.insertBefore(D,K.elm,ft.elm))),_=k[++G]);(W<=nt||G<=st)&&(W>nt?(U=k[st+1]==null?null:k[st+1].elm,u(D,U,k,G,st,N)):l(D,x,W,nt))}(E,w,S,d):sr(S)?(sr(f.text)&&r.setTextContent(E,""),u(E,null,S,0,S.length-1,d)):sr(w)?l(E,w,0,w.length-1):sr(f.text)&&r.setTextContent(E,""):f.text!==p.text&&(sr(w)&&l(E,w,0,w.length-1),r.setTextContent(E,p.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,p)}}return function(f,p){let d,m,v;const g=[];for(d=0;d<n.pre.length;++d)n.pre[d]();for(function(y){return y.sel!==void 0}(f)||(f=o(f)),cf(f,p)?c(f,p,g):(m=f.elm,v=r.parentNode(m),a(p,g),v!==null&&(r.insertBefore(v,p.elm,r.nextSibling(m)),l(v,[f],0,0))),d=0;d<g.length;++d)g[d].data.hook.insert(g[d]);for(d=0;d<n.post.length;++d)n.post[d]();return p}}function tI(t,e,n){if(t.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&e!==void 0)for(let r=0;r<e.length;++r){const o=e[r].data;o!==void 0&&tI(o,e[r].children,e[r].sel)}}function dc(t,e,n){let r,o,i,a={};if(n!==void 0?(e!==null&&(a=e),ME(n)?r=n:Ag(n)?o=n.toString():n&&n.sel&&(r=[n])):e!=null&&(ME(e)?r=e:Ag(e)?o=e.toString():e&&e.sel?r=[e]:a=e),r!==void 0)for(i=0;i<r.length;++i)Ag(r[i])&&(r[i]=hp(void 0,void 0,void 0,r[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||tI(a,r,t),hp(t,a,r,o,void 0)}function d7(t,e){let n;const r=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const a=i[n];o[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}const uY={create:d7,update:d7};function p7(t,e){let n,r;const o=e.elm;let i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const sY={create:p7,update:p7},h7=/[A-Z]/g;function g7(t,e){const n=e.elm;let r,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(h7,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(h7,"-$&").toLowerCase(),i[r]))}const lY={create:g7,update:g7};function eI(t,e,n){if(typeof t=="function")t.call(e,n,e);else if(typeof t=="object")for(let r=0;r<t.length;r++)eI(t[r],e,n)}function cY(t,e){const n=t.type,r=e.data.on;r&&r[n]&&eI(r[n],e,t)}function eb(t,e){const n=t.data.on,r=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const s=e.listener=t.listener||function l(c){cY(c,l.vnode)};if(s.vnode=e,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const fY={create:eb,update:eb,destroy:eb};function v7(t,e){let n,r,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const dY={create:v7,update:v7},m7=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let nb=!1;function pY(t,e,n){(function(r){m7(function(){m7(r)})})(function(){t[e]=n})}function y7(t,e){let n,r;const o=e.elm;let i=t.data.style,a=e.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],u&&n===i.delayed[s]||pY(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const hY={pre:function(){nb=!1},create:y7,update:y7,destroy:function(t){let e,n;const r=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(n in e)r.style[n]=e[n]},remove:function(t,e){const n=t.data.style;if(!n||!n.remove)return void e();let r;nb||(t.elm.offsetLeft,nb=!0);const o=t.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function nI(t,e){for(const n of t)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?nI(n,e):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?e.push(hp(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function Dt(t,e,...n){const r=nI(n,[]);return typeof t=="function"?t(e,r):r.length===1&&!r[0].sel&&r[0].text?dc(t,e,r[0].text):dc(t,e,r)}Dt||(Dt={});var gY=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vY=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rI="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mY="[\\ud800-\\udfff]",b7="["+rI+"]",Tv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",oI="\\d+",yY="[\\u2700-\\u27bf]",iI="[a-z\\xdf-\\xf6\\xf8-\\xff]",aI="[^\\ud800-\\udfff"+rI+oI+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",zE="\\ud83c[\\udffb-\\udfff]",uI="[^\\ud800-\\udfff]",bC="(?:\\ud83c[\\udde6-\\uddff]){2}",wC="[\\ud800-\\udbff][\\udc00-\\udfff]",xl="[A-Z\\xc0-\\xd6\\xd8-\\xde]",w7="(?:"+iI+"|"+aI+")",bY="(?:"+xl+"|"+aI+")",E7="(?:"+Tv+"|"+zE+")?",sI="[\\ufe0e\\ufe0f]?"+E7+("(?:\\u200d(?:"+[uI,bC,wC].join("|")+")[\\ufe0e\\ufe0f]?"+E7+")*"),wY="(?:"+[yY,bC,wC].join("|")+")"+sI,EY="(?:"+[uI+Tv+"?",Tv,bC,wC,mY].join("|")+")",SY=RegExp("['’]","g"),CY=RegExp(Tv,"g"),DY=RegExp(zE+"(?="+zE+")|"+EY+sI,"g"),xY=RegExp([xl+"?"+iI+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[b7,xl,"$"].join("|")+")",bY+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[b7,xl+w7,"$"].join("|")+")",xl+"?"+w7+"+(?:['’](?:d|ll|m|re|s|t|ve))?",xl+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",oI,wY].join("|"),"g"),AY=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),OY=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kY=typeof ve=="object"&&ve&&ve.Object===Object&&ve,_Y=typeof self=="object"&&self&&self.Object===Object&&self,BY=kY||_Y||Function("return this")(),rb,FY=(rb={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(t){return rb==null?void 0:rb[t]});function lI(t){return AY.test(t)}function TY(t){return lI(t)?function(e){return e.match(DY)||[]}(t):function(e){return e.split("")}(t)}var PY=Object.prototype.toString,S7=BY.Symbol,C7=S7?S7.prototype:void 0,D7=C7?C7.toString:void 0;function jY(t){if(typeof t=="string")return t;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&PY.call(n)=="[object Symbol]"}(t))return D7?D7.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function IY(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l}(t,e,n)}function Og(t){return t==null?"":jY(t)}var x7,NY=(x7=function(t,e,n){return e=e.toLowerCase(),t+(n?RY(Og(e).toLowerCase()):e)},function(t){return function(e,n,r,o){var i=-1,a=e?e.length:0;for(o&&a&&(r=e[++i]);++i<a;)r=n(r,e[i],i,e);return r}(function(e,n,r){return e=Og(e),(n=r?void 0:n)===void 0?function(o){return OY.test(o)}(e)?function(o){return o.match(xY)||[]}(e):function(o){return o.match(gY)||[]}(e):e.match(n)||[]}(function(e){return(e=Og(e))&&e.replace(vY,FY).replace(CY,"")}(t).replace(SY,"")),x7,"")}),A7,RY=(A7="toUpperCase",function(t){var e=lI(t=Og(t))?TY(t):void 0,n=e?e[0]:t.charAt(0),r=e?IY(e,1).join(""):t.slice(1);return n[A7]()+r});for(var LY=NY,MY=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),ob={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},cI={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:MY?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},EC={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},g0=1;g0<20;g0++)EC["f"+g0]=111+g0;function fI(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=t.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var p in ob)l[ob[p]]=!1;var d=!0,m=!1,v=void 0;try{for(var g,y=c[Symbol.iterator]();!(d=(g=y.next()).done);d=!0){var h=g.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var E=dI(h),w=ob[E];if(h.length>1&&!w&&!cI[h]&&!EC[E])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&w||(s?l.key=E:l.which=zY(h)),w&&(l[w]=!b||null)}}catch(S){m=!0,v=S}finally{try{!d&&y.return&&y.return()}finally{if(m)throw v}}return l}(i,e)}),o=function(i){return r.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return n==null?o:o(n)}function zY(t){return t=dI(t),EC[t]||t.toUpperCase().charCodeAt(0)}function dI(t){return t=t.toLowerCase(),t=cI[t]||t}var $Y=fI,ib=function(t,e){return fI(t,{byKey:!0},e)},VY=/^\s+|\s+$/g,HY=/^[-+]0x[0-9a-f]+$/i,UY=/^0b[01]+$/i,WY=/^0o[0-7]+$/i,qY=parseInt,GY=typeof ve=="object"&&ve&&ve.Object===Object&&ve,KY=typeof self=="object"&&self&&self.Object===Object&&self,YY=GY||KY||Function("return this")(),XY=Object.prototype.toString,ZY=Math.max,JY=Math.min,ab=function(){return YY.Date.now()};function $E(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function O7(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&XY.call(r)=="[object Symbol]"}(t))return NaN;if($E(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=$E(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(VY,"");var n=UY.test(t);return n||WY.test(t)?qY(t.slice(2),n?2:8):HY.test(t)?NaN:+t}var Xs,pI=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var E=r,w=o;return r=o=void 0,l=b,a=t.apply(w,E)}function m(b){return l=b,u=setTimeout(g,e),c?d(b):a}function v(b){var E=b-s;return s===void 0||E>=e||E<0||f&&b-l>=i}function g(){var b=ab();if(v(b))return y(b);u=setTimeout(g,function(E){var w=e-(E-s);return f?JY(w,i-(E-l)):w}(b))}function y(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=ab(),E=v(b);if(r=arguments,o=this,s=b,E){if(u===void 0)return m(s);if(f)return u=setTimeout(g,e),d(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=O7(e)||0,$E(n)&&(c=!!n.leading,i=(f="maxWait"in n)?ZY(O7(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(ab())},h},hI=_s(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",d="[object RegExp]",m="[object Set]",v="[object String]",g="[object Symbol]",y="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",E="[object Float32Array]",w="[object Float64Array]",S="[object Int8Array]",D="[object Int16Array]",x="[object Int32Array]",k="[object Uint8Array]",N="[object Uint8ClampedArray]",$="[object Uint16Array]",R="[object Uint32Array]",K=/\w*$/,U=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,G={};G[o]=G["[object Array]"]=G[h]=G[b]=G[i]=G[a]=G[E]=G[w]=G[S]=G[D]=G[x]=G[l]=G[c]=G[f]=G[d]=G[m]=G[v]=G[g]=G[k]=G[N]=G[$]=G[R]=!0,G["[object Error]"]=G[u]=G[y]=!1;var nt=typeof ve=="object"&&ve&&ve.Object===Object&&ve,ft=typeof self=="object"&&self&&self.Object===Object&&self,ct=nt||ft||Function("return this")(),st=e&&!e.nodeType&&e,_=st&&t&&!t.nodeType&&t,A=_&&_.exports===st;function P(F,z){return F.set(z[0],z[1]),F}function V(F,z){return F.add(z),F}function Y(F,z,J,lt){var Wt=-1,Ee=F?F.length:0;for(lt&&Ee&&(J=F[++Wt]);++Wt<Ee;)J=z(J,F[Wt],Wt,F);return J}function H(F){var z=!1;if(F!=null&&typeof F.toString!="function")try{z=!!(F+"")}catch{}return z}function at(F){var z=-1,J=Array(F.size);return F.forEach(function(lt,Wt){J[++z]=[Wt,lt]}),J}function bt(F,z){return function(J){return F(z(J))}}function wt(F){var z=-1,J=Array(F.size);return F.forEach(function(lt){J[++z]=lt}),J}var Ot=Array.prototype,q=Function.prototype,Vt=Object.prototype,Ft=ct["__core-js_shared__"],gt=function(){var F=/[^.]+$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return F?"Symbol(src)_1."+F:""}(),Tt=q.toString,ze=Vt.hasOwnProperty,Kt=Vt.toString,se=RegExp("^"+Tt.call(ze).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=A?ct.Buffer:void 0,_n=ct.Symbol,qt=ct.Uint8Array,Gn=bt(Object.getPrototypeOf,Object),Xr=Object.create,bo=Vt.propertyIsEnumerable,$s=Ot.splice,lu=Object.getOwnPropertySymbols,Zr=Ae?Ae.isBuffer:void 0,wo=bt(Object.keys,Object),Zo=Eo(ct,"DataView"),Bn=Eo(ct,"Map"),Fn=Eo(ct,"Promise"),Tn=Eo(ct,"Set"),$n=Eo(ct,"WeakMap"),gn=Eo(Object,"create"),Or=Co(Zo),Xc=Co(Bn),Bi=Co(Fn),Jo=Co(Tn),Vs=Co($n),cu=_n?_n.prototype:void 0,Hs=cu?cu.valueOf:void 0;function Jr(F){var z=-1,J=F?F.length:0;for(this.clear();++z<J;){var lt=F[z];this.set(lt[0],lt[1])}}function kr(F){var z=-1,J=F?F.length:0;for(this.clear();++z<J;){var lt=F[z];this.set(lt[0],lt[1])}}function Qo(F){var z=-1,J=F?F.length:0;for(this.clear();++z<J;){var lt=F[z];this.set(lt[0],lt[1])}}function Qr(F){this.__data__=new kr(F)}function Fi(F,z){var J=T(F)||function(ce){return function(Jt){return function(ln){return!!ln&&typeof ln=="object"}(Jt)&&L(Jt)}(ce)&&ze.call(ce,"callee")&&(!bo.call(ce,"callee")||Kt.call(ce)==o)}(F)?function(ce,Jt){for(var ln=-1,Pn=Array(ce);++ln<ce;)Pn[ln]=Jt(ln);return Pn}(F.length,String):[],lt=J.length,Wt=!!lt;for(var Ee in F)!z&&!ze.call(F,Ee)||Wt&&(Ee=="length"||Jh(Ee,lt))||J.push(Ee);return J}function Xh(F,z,J){var lt=F[z];ze.call(F,z)&&Qh(lt,J)&&(J!==void 0||z in F)||(F[z]=J)}function ur(F,z){for(var J=F.length;J--;)if(Qh(F[J][0],z))return J;return-1}function Zc(F,z,J,lt,Wt,Ee,ce){var Jt;if(lt&&(Jt=Ee?lt(F,Wt,Ee,ce):lt(F)),Jt!==void 0)return Jt;if(!le(F))return F;var ln=T(F);if(ln){if(Jt=function(Ct){var re=Ct.length,Ue=Ct.constructor(re);return re&&typeof Ct[0]=="string"&&ze.call(Ct,"index")&&(Ue.index=Ct.index,Ue.input=Ct.input),Ue}(F),!z)return function(Ct,re){var Ue=-1,Ht=Ct.length;for(re||(re=Array(Ht));++Ue<Ht;)re[Ue]=Ct[Ue];return re}(F,Jt)}else{var Pn=So(F),fu=Pn==u||Pn==s;if(Z(F))return function(Ct,re){if(re)return Ct.slice();var Ue=new Ct.constructor(Ct.length);return Ct.copy(Ue),Ue}(F,z);if(Pn==f||Pn==o||fu&&!Ee){if(H(F))return Ee?F:{};if(Jt=function(Ct){return typeof Ct.constructor!="function"||Ti(Ct)?{}:(re=Gn(Ct),le(re)?Xr(re):{});var re}(fu?{}:F),!z)return function(Ct,re){return Zh(Ct,Jc(Ct),re)}(F,function(Ct,re){return Ct&&Zh(re,Mt(re),Ct)}(Jt,F))}else{if(!G[Pn])return Ee?F:{};Jt=function(Ct,re,Ue,Ht){var Qt=Ct.constructor;switch(re){case h:return Us(Ct);case i:case a:return new Qt(+Ct);case b:return function(te,$e){var Vn=$e?Us(te.buffer):te.buffer;return new te.constructor(Vn,te.byteOffset,te.byteLength)}(Ct,Ht);case E:case w:case S:case D:case x:case k:case N:case $:case R:return function(te,$e){var Vn=$e?Us(te.buffer):te.buffer;return new te.constructor(Vn,te.byteOffset,te.length)}(Ct,Ht);case l:return function(te,$e,Vn){return Y($e?Vn(at(te),!0):at(te),P,new te.constructor)}(Ct,Ht,Ue);case c:case v:return new Qt(Ct);case d:return function(te){var $e=new te.constructor(te.source,K.exec(te));return $e.lastIndex=te.lastIndex,$e}(Ct);case m:return function(te,$e,Vn){return Y($e?Vn(wt(te),!0):wt(te),V,new te.constructor)}(Ct,Ht,Ue);case g:return function(te){return Hs?Object(Hs.call(te)):{}}(Ct)}}(F,Pn,Zc,z)}}ce||(ce=new Qr);var ni=ce.get(F);if(ni)return ni;if(ce.set(F,Jt),!ln)var Pi=J?function(Ct){return function(re,Ue,Ht){var Qt=Ue(re);return T(re)?Qt:function(te,$e){for(var Vn=-1,Kn=$e.length,to=te.length;++Vn<Kn;)te[to+Vn]=$e[Vn];return te}(Qt,Ht(re))}(Ct,Mt,Jc)}(F):Mt(F);return function(Ct,re){for(var Ue=-1,Ht=Ct?Ct.length:0;++Ue<Ht&&re(Ct[Ue],Ue,Ct)!==!1;);}(Pi||F,function(Ct,re){Pi&&(Ct=F[re=Ct]),Xh(Jt,re,Zc(Ct,z,J,lt,re,F,ce))}),Jt}function ti(F){return!(!le(F)||function(z){return!!gt&&gt in z}(F))&&(yt(F)||H(F)?se:U).test(Co(F))}function Us(F){var z=new F.constructor(F.byteLength);return new qt(z).set(new qt(F)),z}function Zh(F,z,J,lt){J||(J={});for(var Wt=-1,Ee=z.length;++Wt<Ee;){var ce=z[Wt],Jt=lt?lt(J[ce],F[ce],ce,J,F):void 0;Xh(J,ce,Jt===void 0?F[ce]:Jt)}return J}function ei(F,z){var J,lt,Wt=F.__data__;return((lt=typeof(J=z))=="string"||lt=="number"||lt=="symbol"||lt=="boolean"?J!=="__proto__":J===null)?Wt[typeof z=="string"?"string":"hash"]:Wt.map}function Eo(F,z){var J=function(lt,Wt){return lt==null?void 0:lt[Wt]}(F,z);return ti(J)?J:void 0}Jr.prototype.clear=function(){this.__data__=gn?gn(null):{}},Jr.prototype.delete=function(F){return this.has(F)&&delete this.__data__[F]},Jr.prototype.get=function(F){var z=this.__data__;if(gn){var J=z[F];return J===n?void 0:J}return ze.call(z,F)?z[F]:void 0},Jr.prototype.has=function(F){var z=this.__data__;return gn?z[F]!==void 0:ze.call(z,F)},Jr.prototype.set=function(F,z){return this.__data__[F]=gn&&z===void 0?n:z,this},kr.prototype.clear=function(){this.__data__=[]},kr.prototype.delete=function(F){var z=this.__data__,J=ur(z,F);return!(J<0)&&(J==z.length-1?z.pop():$s.call(z,J,1),!0)},kr.prototype.get=function(F){var z=this.__data__,J=ur(z,F);return J<0?void 0:z[J][1]},kr.prototype.has=function(F){return ur(this.__data__,F)>-1},kr.prototype.set=function(F,z){var J=this.__data__,lt=ur(J,F);return lt<0?J.push([F,z]):J[lt][1]=z,this},Qo.prototype.clear=function(){this.__data__={hash:new Jr,map:new(Bn||kr),string:new Jr}},Qo.prototype.delete=function(F){return ei(this,F).delete(F)},Qo.prototype.get=function(F){return ei(this,F).get(F)},Qo.prototype.has=function(F){return ei(this,F).has(F)},Qo.prototype.set=function(F,z){return ei(this,F).set(F,z),this},Qr.prototype.clear=function(){this.__data__=new kr},Qr.prototype.delete=function(F){return this.__data__.delete(F)},Qr.prototype.get=function(F){return this.__data__.get(F)},Qr.prototype.has=function(F){return this.__data__.has(F)},Qr.prototype.set=function(F,z){var J=this.__data__;if(J instanceof kr){var lt=J.__data__;if(!Bn||lt.length<199)return lt.push([F,z]),this;J=this.__data__=new Qo(lt)}return J.set(F,z),this};var Jc=lu?bt(lu,Object):function(){return[]},So=function(F){return Kt.call(F)};function Jh(F,z){return!!(z=z??r)&&(typeof F=="number"||W.test(F))&&F>-1&&F%1==0&&F<z}function Ti(F){var z=F&&F.constructor;return F===(typeof z=="function"&&z.prototype||Vt)}function Co(F){if(F!=null){try{return Tt.call(F)}catch{}try{return F+""}catch{}}return""}function Qh(F,z){return F===z||F!=F&&z!=z}(Zo&&So(new Zo(new ArrayBuffer(1)))!=b||Bn&&So(new Bn)!=l||Fn&&So(Fn.resolve())!=p||Tn&&So(new Tn)!=m||$n&&So(new $n)!=y)&&(So=function(F){var z=Kt.call(F),J=z==f?F.constructor:void 0,lt=J?Co(J):void 0;if(lt)switch(lt){case Or:return b;case Xc:return l;case Bi:return p;case Jo:return m;case Vs:return y}return z});var T=Array.isArray;function L(F){return F!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=r}(F.length)&&!yt(F)}var Z=Zr||function(){return!1};function yt(F){var z=le(F)?Kt.call(F):"";return z==u||z==s}function le(F){var z=typeof F;return!!F&&(z=="object"||z=="function")}function Mt(F){return L(F)?Fi(F):function(z){if(!Ti(z))return wo(z);var J=[];for(var lt in Object(z))ze.call(z,lt)&&lt!="constructor"&&J.push(lt);return J}(F)}t.exports=function(F){return Zc(F,!0,!0)}});function k7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var QY=0;function tX(t){return"__private_"+QY+++"_"+t}function eX(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),a<u.length-1&&r.push(n)})),r}/**
  16. * Takes a string with placeholder variables like `%{smart_count} file selected`
  17. * and replaces it with values from options `{smart_count: 5}`
  18. *
  19. * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
  20. * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
  21. *
  22. * @param {string} phrase that needs interpolation, with placeholders
  23. * @param {object} options with values that will be used to replace placeholders
  24. * @returns {any[]} interpolated
  25. */function _7(t,e){const n=/\$/g;let r=[t];if(e==null)return r;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=eX(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var gI=(Xs=tX("apply"),class{constructor(t){Object.defineProperty(this,Xs,{value:nX}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(k7(this,Xs)[Xs],this):k7(this,Xs)[Xs](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if(typeof n=="object"){if(e&&e.smart_count!==void 0)return _7(n[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return _7(n,e)}});function nX(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var vI=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],m=Object.keys(e),v=0,g=m.length;v<g;v++){var y=m[v];if(y==="*"&&(f=f.concat(e[y])),d.length===2&&d[0]===y){f=f.concat(e[y]);break}}return f}(n);l.length&&function(c,f,p){for(var d=0,m=f.length;d<m&&f[d];d++)f[d].event=c,f[d].apply(f[d],p)}(n,l,[r,o,i,a,u,s])},t.on=function(n,r){e[n]||(e[n]=[]),e[n].push(r)},t.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),t.off(n,o)})},t.off=function(n,r){var o=[];if(n&&r)for(var i=this._fns[n],a=0,u=i?i.length:0;a<u;a++)i[a]!==r&&o.push(i[a]);o.length?this._fns[n]=o:delete this._fns[n]},t},rX={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:oX}=rX,B7=t=>crypto.getRandomValues(new Uint8Array(t)),F7=(t,e,n)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*r*e/t.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=t[a[u]&r]||"",i.length===e)return i}}};var iX={nanoid:(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e},customAlphabet:(t,e)=>F7(t,e,B7),customRandom:F7,urlAlphabet:oX,random:B7},ub=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function mI(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}mI.prototype.match=function(t){var e,n,r=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e<i;e++)o[e]!=="*"&&(r=e<n.length&&o[e]===n[e]);r=r&&n}else r=!1;else if(typeof t.splice=="function")for(r=[],e=t.length;e--;)this.match(t[e])&&(r[r.length]=t[e]);else if(typeof t=="object")for(var a in r={},t)this.match(a)&&(r[a]=t[a]);return r};var aX=/[\/\+\.]/,uX=function(t,e){function n(r){var o=function(i,a,u){var s=new mI(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,t,aX);return o&&o.length>=2}return e?n(e.split(";")[0]):n},sX=0;function lX(t){return"__private_"+sX+++"_"+t}var sb=lX("publish");class yI{constructor(){Object.defineProperty(this,sb,{value:cX}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n={...this.state},r={...this.state,...e};this.state=r,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,sb)[sb](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function cX(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(r=>{r(...e)})}yI.VERSION="2.0.3";var T7=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},P7={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function j7(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var fX=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function lb(t){return t<10?`0${t}`:t.toString()}var v0=function(){const t=new Date;return`${lb(t.getHours())}:${lb(t.getMinutes())}:${lb(t.getSeconds())}`},bI={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${v0()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.debug(`[Uppy] [${v0()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.warn(`[Uppy] [${v0()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${v0()}]`,...e)}}},dX={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},wI=iX;let EI,SI;function ht(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var pX=0;function sn(t){return"__private_"+pX+++"_"+t}const{nanoid:hX}=wI,{justErrorsLogger:gX,debugLogger:vX}=bI;class To extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class mX extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Dn=sn("plugins"),ff=sn("storeUnsubscribe"),oi=sn("emitter"),Tu=sn("preProcessors"),Pu=sn("uploaders"),fi=sn("postProcessors"),jd=sn("checkRestrictions"),cb=sn("checkMinNumberOfFiles"),gp=sn("checkRequiredMetaFieldsOnFile"),fb=sn("checkRequiredMetaFields"),cn=sn("showOrLogErrorAndThrow"),df=sn("assertNewUploadAllowed"),pf=sn("checkAndCreateFileStateObject"),hf=sn("startIfAutoProceed"),db=sn("addListeners"),no=sn("updateOnlineStatus"),ii=sn("createUpload"),pb=sn("getUpload"),Ru=sn("removeUpload"),ai=sn("runUpload");EI=Symbol.for("uppy test: getPlugins"),SI=Symbol.for("uppy test: createUpload");class CI{constructor(e){Object.defineProperty(this,ai,{value:BX}),Object.defineProperty(this,Ru,{value:_X}),Object.defineProperty(this,pb,{value:kX}),Object.defineProperty(this,ii,{value:OX}),Object.defineProperty(this,db,{value:AX}),Object.defineProperty(this,hf,{value:xX}),Object.defineProperty(this,pf,{value:DX}),Object.defineProperty(this,df,{value:CX}),Object.defineProperty(this,cn,{value:SX}),Object.defineProperty(this,fb,{value:EX}),Object.defineProperty(this,gp,{value:wX}),Object.defineProperty(this,cb,{value:bX}),Object.defineProperty(this,jd,{value:yX}),Object.defineProperty(this,Dn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,ff,{writable:!0,value:void 0}),Object.defineProperty(this,oi,{writable:!0,value:vI()}),Object.defineProperty(this,Tu,{writable:!0,value:new Set}),Object.defineProperty(this,Pu,{writable:!0,value:new Set}),Object.defineProperty(this,fi,{writable:!0,value:new Set}),Object.defineProperty(this,no,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=dX;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:new yI,logger:gX,infoTimeout:5e3};if(this.opts={...n,...e,restrictions:{...n.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=vX),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=vs(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:fX(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ht(this,ff)[ff]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),ht(this,db)[db]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];ht(this,oi)[oi].emit(e,...r)}on(e,n){return ht(this,oi)[oi].on(e,n),this}once(e,n){return ht(this,oi)[oi].once(e,n),this}off(e,n){return ht(this,oi)[oi].off(e,n),this}updateAll(e){this.iteratePlugins(n=>{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...n}}})}i18nInit(){const e=new gI([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(o=>{const i={...n[o]};i.progress={...i.progress,...e},r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){ht(this,Tu)[Tu].add(e)}removePreProcessor(e){return ht(this,Tu)[Tu].delete(e)}addPostProcessor(e){ht(this,fi)[fi].add(e)}removePostProcessor(e){return ht(this,fi)[fi].delete(e)}addUploader(e){ht(this,Pu)[Pu].add(e)}removeUploader(e){return ht(this,Pu)[Pu].delete(e)}setMeta(e){const n={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...r[e].meta,...n};r[e]={...r[e],meta:o},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),i=o.filter(m=>{let{progress:v}=m;return!v.uploadComplete&&v.uploadStarted}),a=o.filter(m=>!m.progress.uploadStarted),u=o.filter(m=>m.progress.uploadStarted||m.progress.preprocess||m.progress.postprocess),s=o.filter(m=>m.progress.uploadStarted),l=o.filter(m=>m.isPaused),c=o.filter(m=>m.progress.uploadComplete),f=o.filter(m=>m.error),p=i.filter(m=>!m.isPaused),d=o.filter(m=>m.progress.preprocess||m.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&d.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(m=>m.isGhost)}}validateRestrictions(e,n){try{return ht(this,jd)[jd](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){ht(this,df)[df](e);const{files:n}=this.getState();let r=ht(this,pf)[pf](n,e);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),ht(this,hf)[hf](),r.id}addFiles(e){ht(this,df)[df]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<e.length;i++)try{let a=ht(this,pf)[pf](n,e[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(i=>{this.log(`Added file: ${r[i].name}
  26. id: ${r[i].id}
  27. type: ${r[i].type}`)}),r.length>0&&ht(this,hf)[hf](),o.length>0){let i=`Multiple errors occurred while adding files:
  28. `;if(o.forEach(a=>{i+=`
  29. * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const p=o[f].fileIDs.filter(s);p.length!==0?a[f]={...o[f],fileIDs:p}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!0};e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!1,error:null};e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=ht(this,ii)[ii](n,{forceAllowNewUpload:!0});return ht(this,ai)[ai](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),n=Object.keys(e);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const n=ht(this,ii)[ii]([e],{forceAllowNewUpload:!0});return ht(this,ai)[ai](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,n){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,p)=>f+p.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach(s=>{a+=s.progress.bytesUploaded}),r.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,n){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
  30. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),r.type in ht(this,Dn)[Dn]?ht(this,Dn)[Dn][r.type].push(r):ht(this,Dn)[Dn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(ht(this,Dn)[Dn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[EI](e){return ht(this,Dn)[Dn][e]}iteratePlugins(e){Object.values(ht(this,Dn)[Dn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=ht(this,Dn)[Dn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),ht(this,ff)[ff](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ht(this,no)[no]),window.removeEventListener("offline",ht(this,no)[no]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:n,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,n){const{logger:r}=this.opts;switch(n){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?ht(this,ai)[ai](e):(ht(this,Ru)[Ru](e),Promise.reject(new Error("Nonexistent upload")))}[SI](){return ht(this,ii)[ii](...arguments)}addResultData(e,n){if(!ht(this,pb)[pb](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o={...r[e],result:{...r[e].result,...n}};this.setState({currentUploads:{...r,[e]:o}})}upload(){var e;(e=ht(this,Dn)[Dn].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{ht(this,cb)[cb](n),ht(this,fb)[fb](n)}).catch(o=>{ht(this,cn)[cn](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=ht(this,ii)[ii](a);return ht(this,ai)[ai](u)}).catch(o=>{ht(this,cn)[cn](o,{showInformer:!1})}))}}function yX(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new To(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&uX(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new To(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new To(this.i18n("exceedsSize",{size:ub(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new To(this.i18n("exceedsSize",{size:ub(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new To(this.i18n("inferiorSize",{size:ub(r)}))}function bX(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new To(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function wX(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<e.length;i++)if(!n.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new To(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(a),o.push(e[i]),ht(this,cn)[cn](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),r}function EX(t){const e=Object.keys(t).flatMap(n=>{const r=this.getFile(n);return ht(this,gp)[gp](r)});if(e.length)throw new mX(e,`${this.i18n("missingRequiredMetaField")}`)}function SX(t,e){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",r,t)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function CX(t){const{allowNewUpload:e}=this.getState();e===!1&&ht(this,cn)[cn](new To(this.i18n("noMoreFilesAllowed")),{file:t})}function DX(t,e){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=T7(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in P7?P7[d]:"application/octet-stream"}(e),r=function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=T7(r).extension,i=!!e.isRemote,a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${j7(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${j7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}({...e,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new To(this.i18n("noDuplicates",{fileName:r}));ht(this,cn)[cn](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?ht(this,cn)[cn](new To("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(p=>t[p]);ht(this,jd)[jd](l,f)}catch(f){ht(this,cn)[cn](f,{file:l})}return l}function xX(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function AX(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),ht(this,cn)[cn](o,{throwErr:!1})}else ht(this,cn)[cn](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:ht(this,fi)[fi].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&ht(this,gp)[gp](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ht(this,no)[no]),window.addEventListener("offline",ht(this,no)[no]),setTimeout(ht(this,no)[no],3e3))}function OX(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=hX();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:t,step:0,result:{}}}}),i}function kX(t){const{currentUploads:e}=this.getState();return e[t]}function _X(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function BX(t){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...ht(this,Tu)[Tu],...ht(this,Pu)[Pu],...ht(this,fi)[fi]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s={...n,step:a};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(a){throw this.emit("error",a),ht(this,Ru)[Ru](t),a}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let i;return n&&(i=n.result,this.emit("complete",i),ht(this,Ru)[Ru](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i}CI.VERSION="2.1.3";var DI=CI,FX=_s(function(t,e){var n,r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(_,A){for(var P in A)_[P]=A[P];return _}function m(_){var A=_.parentNode;A&&A.removeChild(_)}function v(_,A,P){var V,Y,H,at={};for(H in A)H=="key"?V=A[H]:H=="ref"?Y=A[H]:at[H]=A[H];if(arguments.length>2&&(at.children=arguments.length>3?n.call(arguments,2):P),typeof _=="function"&&_.defaultProps!=null)for(H in _.defaultProps)at[H]===void 0&&(at[H]=_.defaultProps[H]);return g(_,at,V,Y,null)}function g(_,A,P,V,Y){var H={type:_,props:A,key:P,ref:V,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Y??++o};return Y==null&&r.vnode!=null&&r.vnode(H),H}function y(_){return _.children}function h(_,A){this.props=_,this.context=A}function b(_,A){if(A==null)return _.__?b(_.__,_.__.__k.indexOf(_)+1):null;for(var P;A<_.__k.length;A++)if((P=_.__k[A])!=null&&P.__e!=null)return P.__e;return typeof _.type=="function"?b(_):null}function E(_){var A,P;if((_=_.__)!=null&&_.__c!=null){for(_.__e=_.__c.base=null,A=0;A<_.__k.length;A++)if((P=_.__k[A])!=null&&P.__e!=null){_.__e=_.__c.base=P.__e;break}return E(_)}}function w(_){(!_.__d&&(_.__d=!0)&&a.push(_)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var _;S.__r=a.length;)_=a.sort(function(A,P){return A.__v.__b-P.__v.__b}),a=[],_.some(function(A){var P,V,Y,H,at,bt;A.__d&&(at=(H=(P=A).__v).__e,(bt=P.__P)&&(V=[],(Y=d({},H)).__v=H.__v+1,U(bt,H,Y,P.__n,bt.ownerSVGElement!==void 0,H.__h!=null?[at]:null,V,at??b(H),H.__h),W(V,H),H.__e!=at&&E(H)))})}function D(_,A,P,V,Y,H,at,bt,wt,Ot){var q,Vt,Ft,gt,Tt,ze,Kt,se=V&&V.__k||f,Ae=se.length;for(P.__k=[],q=0;q<A.length;q++)if((gt=P.__k[q]=(gt=A[q])==null||typeof gt=="boolean"?null:typeof gt=="string"||typeof gt=="number"||typeof gt=="bigint"?g(null,gt,null,null,gt):Array.isArray(gt)?g(y,{children:gt},null,null,null):gt.__b>0?g(gt.type,gt.props,gt.key,null,gt.__v):gt)!=null){if(gt.__=P,gt.__b=P.__b+1,(Ft=se[q])===null||Ft&&gt.key==Ft.key&&gt.type===Ft.type)se[q]=void 0;else for(Vt=0;Vt<Ae;Vt++){if((Ft=se[Vt])&&gt.key==Ft.key&&gt.type===Ft.type){se[Vt]=void 0;break}Ft=null}U(_,gt,Ft=Ft||c,Y,H,at,bt,wt,Ot),Tt=gt.__e,(Vt=gt.ref)&&Ft.ref!=Vt&&(Kt||(Kt=[]),Ft.ref&&Kt.push(Ft.ref,null,gt),Kt.push(Vt,gt.__c||Tt,gt)),Tt!=null?(ze==null&&(ze=Tt),typeof gt.type=="function"&&gt.__k===Ft.__k?gt.__d=wt=x(gt,wt,_):wt=k(_,gt,Ft,se,Tt,wt),typeof P.type=="function"&&(P.__d=wt)):wt&&Ft.__e==wt&&wt.parentNode!=_&&(wt=b(Ft))}for(P.__e=ze,q=Ae;q--;)se[q]!=null&&(typeof P.type=="function"&&se[q].__e!=null&&se[q].__e==P.__d&&(P.__d=b(V,q+1)),ft(se[q],se[q]));if(Kt)for(q=0;q<Kt.length;q++)nt(Kt[q],Kt[++q],Kt[++q])}function x(_,A,P){for(var V,Y=_.__k,H=0;Y&&H<Y.length;H++)(V=Y[H])&&(V.__=_,A=typeof V.type=="function"?x(V,A,P):k(P,V,V,Y,V.__e,A));return A}function k(_,A,P,V,Y,H){var at,bt,wt;if(A.__d!==void 0)at=A.__d,A.__d=void 0;else if(P==null||Y!=H||Y.parentNode==null)t:if(H==null||H.parentNode!==_)_.appendChild(Y),at=null;else{for(bt=H,wt=0;(bt=bt.nextSibling)&&wt<V.length;wt+=2)if(bt==Y)break t;_.insertBefore(Y,H),at=H}return at!==void 0?at:Y.nextSibling}function N(_,A,P){A[0]==="-"?_.setProperty(A,P):_[A]=P==null?"":typeof P!="number"||p.test(A)?P:P+"px"}function $(_,A,P,V,Y){var H;t:if(A==="style")if(typeof P=="string")_.style.cssText=P;else{if(typeof V=="string"&&(_.style.cssText=V=""),V)for(A in V)P&&A in P||N(_.style,A,"");if(P)for(A in P)V&&P[A]===V[A]||N(_.style,A,P[A])}else if(A[0]==="o"&&A[1]==="n")H=A!==(A=A.replace(/Capture$/,"")),A=A.toLowerCase()in _?A.toLowerCase().slice(2):A.slice(2),_.l||(_.l={}),_.l[A+H]=P,P?V||_.addEventListener(A,H?K:R,H):_.removeEventListener(A,H?K:R,H);else if(A!=="dangerouslySetInnerHTML"){if(Y)A=A.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(A!=="href"&&A!=="list"&&A!=="form"&&A!=="tabIndex"&&A!=="download"&&A in _)try{_[A]=P??"";break t}catch{}typeof P=="function"||(P!=null&&(P!==!1||A[0]==="a"&&A[1]==="r")?_.setAttribute(A,P):_.removeAttribute(A))}}function R(_){this.l[_.type+!1](r.event?r.event(_):_)}function K(_){this.l[_.type+!0](r.event?r.event(_):_)}function U(_,A,P,V,Y,H,at,bt,wt){var Ot,q,Vt,Ft,gt,Tt,ze,Kt,se,Ae,_n,qt=A.type;if(A.constructor!==void 0)return null;P.__h!=null&&(wt=P.__h,bt=A.__e=P.__e,A.__h=null,H=[bt]),(Ot=r.__b)&&Ot(A);try{t:if(typeof qt=="function"){if(Kt=A.props,se=(Ot=qt.contextType)&&V[Ot.__c],Ae=Ot?se?se.props.value:Ot.__:V,P.__c?ze=(q=A.__c=P.__c).__=q.__E:("prototype"in qt&&qt.prototype.render?A.__c=q=new qt(Kt,Ae):(A.__c=q=new h(Kt,Ae),q.constructor=qt,q.render=ct),se&&se.sub(q),q.props=Kt,q.state||(q.state={}),q.context=Ae,q.__n=V,Vt=q.__d=!0,q.__h=[]),q.__s==null&&(q.__s=q.state),qt.getDerivedStateFromProps!=null&&(q.__s==q.state&&(q.__s=d({},q.__s)),d(q.__s,qt.getDerivedStateFromProps(Kt,q.__s))),Ft=q.props,gt=q.state,Vt)qt.getDerivedStateFromProps==null&&q.componentWillMount!=null&&q.componentWillMount(),q.componentDidMount!=null&&q.__h.push(q.componentDidMount);else{if(qt.getDerivedStateFromProps==null&&Kt!==Ft&&q.componentWillReceiveProps!=null&&q.componentWillReceiveProps(Kt,Ae),!q.__e&&q.shouldComponentUpdate!=null&&q.shouldComponentUpdate(Kt,q.__s,Ae)===!1||A.__v===P.__v){q.props=Kt,q.state=q.__s,A.__v!==P.__v&&(q.__d=!1),q.__v=A,A.__e=P.__e,A.__k=P.__k,A.__k.forEach(function(Gn){Gn&&(Gn.__=A)}),q.__h.length&&at.push(q);break t}q.componentWillUpdate!=null&&q.componentWillUpdate(Kt,q.__s,Ae),q.componentDidUpdate!=null&&q.__h.push(function(){q.componentDidUpdate(Ft,gt,Tt)})}q.context=Ae,q.props=Kt,q.state=q.__s,(Ot=r.__r)&&Ot(A),q.__d=!1,q.__v=A,q.__P=_,Ot=q.render(q.props,q.state,q.context),q.state=q.__s,q.getChildContext!=null&&(V=d(d({},V),q.getChildContext())),Vt||q.getSnapshotBeforeUpdate==null||(Tt=q.getSnapshotBeforeUpdate(Ft,gt)),_n=Ot!=null&&Ot.type===y&&Ot.key==null?Ot.props.children:Ot,D(_,Array.isArray(_n)?_n:[_n],A,P,V,Y,H,at,bt,wt),q.base=A.__e,A.__h=null,q.__h.length&&at.push(q),ze&&(q.__E=q.__=null),q.__e=!1}else H==null&&A.__v===P.__v?(A.__k=P.__k,A.__e=P.__e):A.__e=G(P.__e,A,P,V,Y,H,at,wt);(Ot=r.diffed)&&Ot(A)}catch(Gn){A.__v=null,(wt||H!=null)&&(A.__e=bt,A.__h=!!wt,H[H.indexOf(bt)]=null),r.__e(Gn,A,P)}}function W(_,A){r.__c&&r.__c(A,_),_.some(function(P){try{_=P.__h,P.__h=[],_.some(function(V){V.call(P)})}catch(V){r.__e(V,P.__v)}})}function G(_,A,P,V,Y,H,at,bt){var wt,Ot,q,Vt=P.props,Ft=A.props,gt=A.type,Tt=0;if(gt==="svg"&&(Y=!0),H!=null){for(;Tt<H.length;Tt++)if((wt=H[Tt])&&"setAttribute"in wt==!!gt&&(gt?wt.localName===gt:wt.nodeType===3)){_=wt,H[Tt]=null;break}}if(_==null){if(gt===null)return document.createTextNode(Ft);_=Y?document.createElementNS("http://www.w3.org/2000/svg",gt):document.createElement(gt,Ft.is&&Ft),H=null,bt=!1}if(gt===null)Vt===Ft||bt&&_.data===Ft||(_.data=Ft);else{if(H=H&&n.call(_.childNodes),Ot=(Vt=P.props||c).dangerouslySetInnerHTML,q=Ft.dangerouslySetInnerHTML,!bt){if(H!=null)for(Vt={},Tt=0;Tt<_.attributes.length;Tt++)Vt[_.attributes[Tt].name]=_.attributes[Tt].value;(q||Ot)&&(q&&(Ot&&q.__html==Ot.__html||q.__html===_.innerHTML)||(_.innerHTML=q&&q.__html||""))}if(function(ze,Kt,se,Ae,_n){var qt;for(qt in se)qt==="children"||qt==="key"||qt in Kt||$(ze,qt,null,se[qt],Ae);for(qt in Kt)_n&&typeof Kt[qt]!="function"||qt==="children"||qt==="key"||qt==="value"||qt==="checked"||se[qt]===Kt[qt]||$(ze,qt,Kt[qt],se[qt],Ae)}(_,Ft,Vt,Y,bt),q)A.__k=[];else if(Tt=A.props.children,D(_,Array.isArray(Tt)?Tt:[Tt],A,P,V,Y&&gt!=="foreignObject",H,at,H?H[0]:P.__k&&b(P,0),bt),H!=null)for(Tt=H.length;Tt--;)H[Tt]!=null&&m(H[Tt]);bt||("value"in Ft&&(Tt=Ft.value)!==void 0&&(Tt!==Vt.value||Tt!==_.value||gt==="progress"&&!Tt)&&$(_,"value",Tt,Vt.value,!1),"checked"in Ft&&(Tt=Ft.checked)!==void 0&&Tt!==_.checked&&$(_,"checked",Tt,Vt.checked,!1))}return _}function nt(_,A,P){try{typeof _=="function"?_(A):_.current=A}catch(V){r.__e(V,P)}}function ft(_,A,P){var V,Y;if(r.unmount&&r.unmount(_),(V=_.ref)&&(V.current&&V.current!==_.__e||nt(V,null,A)),(V=_.__c)!=null){if(V.componentWillUnmount)try{V.componentWillUnmount()}catch(H){r.__e(H,A)}V.base=V.__P=null}if(V=_.__k)for(Y=0;Y<V.length;Y++)V[Y]&&ft(V[Y],A,typeof _.type!="function");P||_.__e==null||m(_.__e),_.__e=_.__d=void 0}function ct(_,A,P){return this.constructor(_,P)}function st(_,A,P){var V,Y,H;r.__&&r.__(_,A),Y=(V=typeof P=="function")?null:P&&P.__k||A.__k,H=[],U(A,_=(!V&&P||A).__k=v(y,null,[_]),Y||c,c,A.ownerSVGElement!==void 0,!V&&P?[P]:Y?null:A.firstChild?n.call(A.childNodes):null,H,!V&&P?P:Y?Y.__e:A.firstChild,V),W(H,_)}n=f.slice,r={__e:function(_,A){for(var P,V,Y;A=A.__;)if((P=A.__c)&&!P.__)try{if((V=P.constructor)&&V.getDerivedStateFromError!=null&&(P.setState(V.getDerivedStateFromError(_)),Y=P.__d),P.componentDidCatch!=null&&(P.componentDidCatch(_),Y=P.__d),Y)return P.__E=P}catch(H){_=H}throw _}},o=0,i=function(_){return _!=null&&_.constructor===void 0},h.prototype.setState=function(_,A){var P;P=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=d({},this.state),typeof _=="function"&&(_=_(d({},P),this.props)),_&&d(P,_),_!=null&&this.__v&&(A&&this.__h.push(A),w(this))},h.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),w(this))},h.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,e.Component=h,e.Fragment=y,e.cloneElement=function(_,A,P){var V,Y,H,at=d({},_.props);for(H in A)H=="key"?V=A[H]:H=="ref"?Y=A[H]:at[H]=A[H];return arguments.length>2&&(at.children=arguments.length>3?n.call(arguments,2):P),g(_.type,at,V||_.key,Y||_.ref,null)},e.createContext=function(_,A){var P={__c:A="__cC"+l++,__:_,Consumer:function(V,Y){return V.children(Y)},Provider:function(V){var Y,H;return this.getChildContext||(Y=[],(H={})[A]=this,this.getChildContext=function(){return H},this.shouldComponentUpdate=function(at){this.props.value!==at.value&&Y.some(w)},this.sub=function(at){Y.push(at);var bt=at.componentWillUnmount;at.componentWillUnmount=function(){Y.splice(Y.indexOf(at),1),bt&&bt.call(at)}}),V.children}};return P.Provider.__=P.Consumer.contextType=P},e.createElement=v,e.createRef=function(){return{current:null}},e.h=v,e.hydrate=function _(A,P){st(A,P,_)},e.isValidElement=i,e.options=r,e.render=st,e.toChildArray=function _(A,P){return P=P||[],A==null||typeof A=="boolean"||(Array.isArray(A)?A.some(function(V){_(V,P)}):P.push(A)),P}}),TX=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((n=t)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?t:null;var n},SC=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new gI([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function I7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var PX=0;function jX(t){return"__private_"+PX+++"_"+t}const{render:N7}=FX;var gf=jX("updateUI");class CC extends SC{constructor(){super(...arguments),Object.defineProperty(this,gf,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=TX(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return I7(this,gf)[gf]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];return c=p,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(N7(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),N7(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof CC)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof e=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(e){var n,r;this.el!=null&&((n=(r=I7(this,gf))[gf])==null||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var IX=CC;const{debugLogger:NX}=bI;var Sd=DI,RX=DI,LX=IX,MX=SC,zX=NX;Sd.Uppy=RX,Sd.UIPlugin=LX,Sd.BasePlugin=MX,Sd.debugLogger=zX;class $X extends Error{constructor(e,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=n}}var DC=$X,hb=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new DC(t)})};class VX extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var m0,Mi,Ao,zi,R7,HX=VX;function xo(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var UX=0;function gb(t){return"__private_"+UX+++"_"+t}async function vb(t){if(t.status===401)throw new HX;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const r=await e;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return e}var mb=(Mi=gb("getPostResponseFunc"),Ao=gb("getUrl"),zi=gb("errorHandler"),R7=m0=class xI{constructor(e,n){Object.defineProperty(this,zi,{value:qX}),Object.defineProperty(this,Ao,{value:WX}),Object.defineProperty(this,Mi,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),n=this.opts.companionUrl;return(e&&e[n]?e[n]:n).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...xI.defaultHeaders,...e})}onReceiveResponse(e){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(xo(this,Ao)[Ao](e),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(i=>{r.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(e,n){return this.preflightAndHeaders(e).then(r=>hb(xo(this,Ao)[Ao](e),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(xo(this,Mi)[Mi](n)).then(vb).catch(xo(this,zi)[zi]("get",e))}post(e,n,r){const o="post";return this.preflightAndHeaders(e).then(i=>hb(xo(this,Ao)[Ao](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(xo(this,Mi)[Mi](r)).then(vb).catch(xo(this,zi)[zi](o,e))}delete(e,n,r){const o="delete";return this.preflightAndHeaders(e).then(i=>hb(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(xo(this,Mi)[Mi](r)).then(vb).catch(xo(this,zi)[zi](o,e))}},m0.VERSION="2.0.4",m0.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${m0.VERSION}`},R7);function WX(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function qX(t,e){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${t} ${xo(this,Ao)[Ao](e)}`);o.cause=n,n=o}return Promise.reject(n)}}var GX={setItem:(t,e)=>new Promise(n=>{localStorage.setItem(t,e),n()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},Do,$i,_r,jn,y0;let L7,M7;function Je(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var KX=0;function vf(t){return"__private_"+KX+++"_"+t}var YX=(Do=vf("queued"),$i=vf("emitter"),_r=vf("isOpen"),jn=vf("socket"),y0=vf("handleMessage"),L7=Symbol.for("uppy test: getSocket"),M7=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,Do,{writable:!0,value:[]}),Object.defineProperty(this,$i,{writable:!0,value:vI()}),Object.defineProperty(this,_r,{writable:!0,value:!1}),Object.defineProperty(this,jn,{writable:!0,value:void 0}),Object.defineProperty(this,y0,{writable:!0,value:e=>{try{const n=JSON.parse(e.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return Je(this,_r)[_r]}[L7](){return Je(this,jn)[jn]}[M7](){return Je(this,Do)[Do]}open(){Je(this,jn)[jn]=new WebSocket(this.opts.target),Je(this,jn)[jn].onopen=()=>{for(Je(this,_r)[_r]=!0;Je(this,Do)[Do].length>0&&Je(this,_r)[_r];){const t=Je(this,Do)[Do].shift();this.send(t.action,t.payload)}},Je(this,jn)[jn].onclose=()=>{Je(this,_r)[_r]=!1},Je(this,jn)[jn].onmessage=Je(this,y0)[y0]}close(){var t;(t=Je(this,jn)[jn])==null||t.close()}send(t,e){Je(this,_r)[_r]?Je(this,jn)[jn].send(JSON.stringify({action:t,payload:e})):Je(this,Do)[Do].push({action:t,payload:e})}on(t,e){Je(this,$i)[$i].on(t,e)}emit(t,e){Je(this,$i)[$i].emit(t,e)}once(t,e){Je(this,$i)[$i].once(t,e)}}),XX={RequestClient:mb,Provider:class extends mb{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[e,n]=t;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...r}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),n=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:n}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(t,e,n){if(t.type="acquirer",t.files=[],n&&(t.opts={...n,...e}),e.serverUrl||e.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(e.companionAllowedHosts){const r=e.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||GX}},SearchProvider:class extends mb{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,e){return e=e?`&${e}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${e}`)}},Socket:YX},Vi,Zs,ZX=vs(function(t,e,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=e;r&&(t.uppy.log(`Upload progress: ${r}`),t.uppy.emit("upload-progress",n,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function mf(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var JX=0;function z7(t){return"__private_"+JX+++"_"+t}var $7=(Vi=z7("emitter"),Zs=z7("events"),class{constructor(t){Object.defineProperty(this,Vi,{writable:!0,value:void 0}),Object.defineProperty(this,Zs,{writable:!0,value:[]}),mf(this,Vi)[Vi]=t}on(t,e){return mf(this,Zs)[Zs].push([t,e]),mf(this,Vi)[Vi].on(t,e)}remove(){for(const[t,e]of mf(this,Zs)[Zs].splice(0))mf(this,Vi)[Vi].off(t,e)}});function Br(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var QX=0;function y1(t){return"__private_"+QX+++"_"+t}var ui=y1("aliveTimer"),gu=y1("isDone"),yf=y1("onTimedOut"),vu=y1("timeout"),V7=class{constructor(t,e){Object.defineProperty(this,ui,{writable:!0,value:void 0}),Object.defineProperty(this,gu,{writable:!0,value:!1}),Object.defineProperty(this,yf,{writable:!0,value:void 0}),Object.defineProperty(this,vu,{writable:!0,value:void 0}),Br(this,vu)[vu]=t,Br(this,yf)[yf]=e}progress(){Br(this,gu)[gu]||Br(this,vu)[vu]>0&&(clearTimeout(Br(this,ui)[ui]),Br(this,ui)[ui]=setTimeout(Br(this,yf)[yf],Br(this,vu)[vu]))}done(){Br(this,gu)[gu]||(clearTimeout(Br(this,ui)[ui]),Br(this,ui)[ui]=null,Br(this,gu)[gu]=!0)}};function en(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var tZ=0;function js(t){return"__private_"+tZ+++"_"+t}function eZ(){return new Error("Cancelled")}var fr=js("activeRequests"),Un=js("queuedHandlers"),Id=js("call"),Cd=js("queueNext"),VE=js("next"),yb=js("queue"),HE=js("dequeue");function nZ(t){en(this,fr)[fr]+=1;let e,n=!1;try{e=t()}catch(r){throw en(this,fr)[fr]-=1,r}return{abort:()=>{n||(n=!0,en(this,fr)[fr]-=1,e(),en(this,Cd)[Cd]())},done:()=>{n||(n=!0,en(this,fr)[fr]-=1,en(this,Cd)[Cd]())}}}function rZ(){queueMicrotask(()=>en(this,VE)[VE]())}function oZ(){if(en(this,fr)[fr]>=this.limit||en(this,Un)[Un].length===0)return;const t=en(this,Un)[Un].shift(),e=en(this,Id)[Id](t.fn);t.abort=e.abort,t.done=e.done}function iZ(t,e){e===void 0&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{en(this,HE)[HE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=en(this,Un)[Un].findIndex(o=>n.priority>o.priority);return r===-1?en(this,Un)[Un].push(n):en(this,Un)[Un].splice(r,0,n),n}function aZ(t){const e=en(this,Un)[Un].indexOf(t);e!==-1&&en(this,Un)[Un].splice(e,1)}var uZ={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,HE,{value:aZ}),Object.defineProperty(this,yb,{value:iZ}),Object.defineProperty(this,VE,{value:oZ}),Object.defineProperty(this,Cd,{value:rZ}),Object.defineProperty(this,Id,{value:nZ}),Object.defineProperty(this,fr,{writable:!0,value:0}),Object.defineProperty(this,Un,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return en(this,fr)[fr]<this.limit?en(this,Id)[Id](t):en(this,yb)[yb](t,e)}wrapPromiseFunction(t,e){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=n.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(p){f=Promise.reject(p)}return f.then(p=>{c?l(c):(a.done(),s(p))},p=>{c?l(c):(a.done(),l(p))}),()=>{c=eZ()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},H7,U7,AI=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},sZ={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:lZ}=wI,{Provider:cZ,RequestClient:fZ,Socket:dZ}=XX,{RateLimitedQueue:pZ,internalRateLimitedQueue:bb}=uZ;function W7(t,e){let n=e;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),AI(t)?(n=new DC(n,t),n):(n.request=t,n)}function q7(t){return t.data.slice(0,t.data.size,t.meta.type)}var hZ=(U7=H7=class extends SC{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=sZ;const n={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){t.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return AI(o)&&(i=new DC(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),bb in this.opts?this.requests=this.opts[bb]:this.requests=new pZ(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const e=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(t):Object.assign(r.headers,this.opts.headers),e&&Object.assign(r.headers,e.headers),t.xhrUpload&&Object.assign(r.headers,t.xhrUpload.headers),r}addMetadata(t,e,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e)).forEach(r=>{t.append(r,e[r])})}createFormDataUpload(t,e){const n=new FormData;this.addMetadata(n,t.meta,e);const r=q7(t);return t.name?n.append(e.fieldName,r,t.meta.name):n.append(e.fieldName,r),n}createBundledUpload(t,e){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,e),t.forEach(o=>{const i=this.getOptions(o),a=q7(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)}),n}upload(t,e,n){const r=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${n}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=r.formData?this.createFormDataUpload(t,r):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new $7(this.uppy);const s=new V7(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=lZ();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const v=r.getResponseData(u.responseText,u),g=v[r.responseUrlFieldName],y={status:f.target.status,body:v,uploadURL:g};return this.uppy.emit("upload-success",t,y),g&&this.uppy.log(`Download ${t.name} from ${g}`),o(t)}const p=r.getResponseData(u.responseText,u),d=W7(u,r.getResponseError(u.responseText,u)),m={status:f.target.status,body:p};return this.uppy.emit("upload-error",t,d,m),i(d)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=W7(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)}),u.open(r.method.toUpperCase(),r.endpoint,!0),u.withCredentials=r.withCredentials,r.responseType!==""&&(u.responseType=r.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(p=>{u.setRequestHeader(p,f.headers[p])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((n,r)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach(i=>{o[i]=t.meta[i]}),new(t.remote.providerOptions.provider?cZ:fZ)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.headers}).then(i=>{const{token:a}=i,u=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(t.remote.companionUrl),s=new dZ({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new $7(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>ZX(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),p=f[e.responseUrlFieldName],d={status:c.response.status,body:f,uploadURL:p};return this.uppy.emit("upload-success",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n()}),s.on("error",c=>{const f=c.response,p=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r(p)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),r(i)})})}uploadBundle(t){return new Promise((e,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new V7(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),n(c)}),l=c=>{t.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&t.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const p=this.opts.getResponseData(u.responseText,u),d={status:c.target.status,body:p};return t.forEach(m=>{this.uppy.emit("upload-success",m,d)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),n(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),n(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((n,r)=>{const o=parseInt(r,10)+1,i=t.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,i):this.upload(n,o,i)});return function(n){const r=[],o=[];function i(u){r.push(u)}function a(u){o.push(u)}return Promise.all(n.map(u=>u.then(i,a))).then(()=>({successful:r,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",n=>{t===n.id&&e(n.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",n=>{t===n&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&e()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[bb]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const e=t.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(e.some(n=>n.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},H7.VERSION="2.0.6",U7),G7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bh(t){var e={exports:{}};return t(e,e.exports),e.exports}var Hi,kg,b0=function(t){return t&&t.Math==Math&&t},X=b0(typeof globalThis=="object"&&globalThis)||b0(typeof window=="object"&&window)||b0(typeof self=="object"&&self)||b0(typeof G7=="object"&&G7)||function(){return this}()||Function("return this")(),gZ=Object.defineProperty,xC=function(t,e){try{gZ(X,t,{value:e,configurable:!0,writable:!0})}catch{X[t]=e}return e},Ca=X["__core-js_shared__"]||xC("__core-js_shared__",{}),AC=bh(function(t){(t.exports=function(e,n){return Ca[e]||(Ca[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),OI=Function.prototype,UE=OI.bind,WE=OI.call,vZ=UE&&UE.bind(WE),mt=UE?function(t){return t&&vZ(WE,t)}:function(t){return t&&function(){return WE.apply(t,arguments)}},mZ=X.TypeError,Wr=function(t){if(t==null)throw mZ("Can't call method on "+t);return t},yZ=X.Object,nu=function(t){return yZ(Wr(t))},bZ=mt({}.hasOwnProperty),Ge=Object.hasOwn||function(t,e){return bZ(nu(t),e)},wZ=0,EZ=Math.random(),SZ=mt(1 .toString),OC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+SZ(++wZ+EZ,36)},fe=function(t){return typeof t=="function"},CZ=function(t){return fe(t)?t:void 0},Is=function(t,e){return arguments.length<2?CZ(X[t]):X[t]&&X[t][e]},Ll=Is("navigator","userAgent")||"",K7=X.process,Y7=X.Deno,X7=K7&&K7.versions||Y7&&Y7.version,Z7=X7&&X7.v8;Z7&&(kg=(Hi=Z7.split("."))[0]>0&&Hi[0]<4?1:+(Hi[0]+Hi[1])),!kg&&Ll&&(!(Hi=Ll.match(/Edge\/(\d+)/))||Hi[1]>=74)&&(Hi=Ll.match(/Chrome\/(\d+)/))&&(kg=+Hi[1]);var vp=kg,ie=function(t){try{return!!t()}catch{return!0}},qE=!!Object.getOwnPropertySymbols&&!ie(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vp&&vp<41}),kC=qE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",bf=AC("wks"),Yu=X.Symbol,J7=Yu&&Yu.for,DZ=kC?Yu:Yu&&Yu.withoutSetter||OC,Ie=function(t){if(!Ge(bf,t)||!qE&&typeof bf[t]!="string"){var e="Symbol."+t;qE&&Ge(Yu,t)?bf[t]=Yu[t]:bf[t]=kC&&J7?J7(e):DZ(e)}return bf[t]},kI={};kI[Ie("toStringTag")]="z";var _C=String(kI)==="[object z]",mn=!ie(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ye=function(t){return typeof t=="object"?t!==null:fe(t)},GE=X.document,xZ=ye(GE)&&ye(GE.createElement),mp=function(t){return xZ?GE.createElement(t):{}},_I=!mn&&!ie(function(){return Object.defineProperty(mp("div"),"a",{get:function(){return 7}}).a!=7}),AZ=X.String,OZ=X.TypeError,Ke=function(t){if(ye(t))return t;throw OZ(AZ(t)+" is not an object")},wf=Function.prototype.call,Zt=wf.bind?wf.bind(wf):function(){return wf.apply(wf,arguments)},ms=mt({}.isPrototypeOf),kZ=X.Object,wb=kC?function(t){return typeof t=="symbol"}:function(t){var e=Is("Symbol");return fe(e)&&ms(e.prototype,kZ(t))},_Z=X.String,b1=function(t){try{return _Z(t)}catch{return"Object"}},BZ=X.TypeError,Ua=function(t){if(fe(t))return t;throw BZ(b1(t)+" is not a function")},ys=function(t,e){var n=t[e];return n==null?void 0:Ua(n)},FZ=X.TypeError,TZ=X.TypeError,PZ=Ie("toPrimitive"),BC=function(t){var e=function(n,r){if(!ye(n)||wb(n))return n;var o,i=ys(n,PZ);if(i){if(r===void 0&&(r="default"),o=Zt(i,n,r),!ye(o)||wb(o))return o;throw TZ("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&fe(s=a.toString)&&!ye(l=Zt(s,a))||fe(s=a.valueOf)&&!ye(l=Zt(s,a))||u!=="string"&&fe(s=a.toString)&&!ye(l=Zt(s,a)))return l;throw FZ("Can't convert object to primitive value")}(n,r)}(t,"string");return wb(e)?e:e+""},jZ=X.TypeError,Q7=Object.defineProperty,yo={f:mn?Q7:function(t,e,n){if(Ke(t),e=BC(e),Ke(n),_I)try{return Q7(t,e,n)}catch{}if("get"in n||"set"in n)throw jZ("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},w1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},co=mn?function(t,e,n){return yo.f(t,e,w1(1,n))}:function(t,e,n){return t[e]=n,t},IZ=mt(Function.toString);fe(Ca.inspectSource)||(Ca.inspectSource=function(t){return IZ(t)});var Pv,Nd,jv,E1=Ca.inspectSource,t9=X.WeakMap,BI=fe(t9)&&/native code/.test(E1(t9)),e9=AC("keys"),FC=function(t){return e9[t]||(e9[t]=OC(t))},S1={},KE=X.TypeError,NZ=X.WeakMap;if(BI||Ca.state){var mu=Ca.state||(Ca.state=new NZ),RZ=mt(mu.get),n9=mt(mu.has),LZ=mt(mu.set);Pv=function(t,e){if(n9(mu,t))throw new KE("Object already initialized");return e.facade=t,LZ(mu,t,e),e},Nd=function(t){return RZ(mu,t)||{}},jv=function(t){return n9(mu,t)}}else{var Js=FC("state");S1[Js]=!0,Pv=function(t,e){if(Ge(t,Js))throw new KE("Object already initialized");return e.facade=t,co(t,Js,e),e},Nd=function(t){return Ge(t,Js)?t[Js]:{}},jv=function(t){return Ge(t,Js)}}var Mn={set:Pv,get:Nd,has:jv,enforce:function(t){return jv(t)?Nd(t):Pv(t,{})},getterFor:function(t){return function(e){var n;if(!ye(e)||(n=Nd(e)).type!==t)throw KE("Incompatible receiver, "+t+" required");return n}}},FI=Function.prototype,MZ=mn&&Object.getOwnPropertyDescriptor,Eb=Ge(FI,"name"),Ic={EXISTS:Eb,PROPER:Eb&&(function(){}).name==="something",CONFIGURABLE:Eb&&(!mn||mn&&MZ(FI,"name").configurable)},nr=bh(function(t){var e=Ic.CONFIGURABLE,n=Mn.get,r=Mn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;fe(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ge(u,"name")||e&&u.name!==d)&&co(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==X?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:co(i,a,u)):f?i[a]=u:xC(a,u)})(Function.prototype,"toString",function(){return fe(this)&&n(this).source||E1(this)})}),zZ=mt({}.toString),$Z=mt("".slice),fo=function(t){return $Z(zZ(t),8,-1)},VZ=Ie("toStringTag"),HZ=X.Object,UZ=fo(function(){return arguments}())=="Arguments",C1=_C?fo:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=HZ(t),VZ))=="string"?n:UZ?fo(e):(r=fo(e))=="Object"&&fe(e.callee)?"Arguments":r},WZ=_C?{}.toString:function(){return"[object "+C1(this)+"]"};_C||nr(Object.prototype,"toString",WZ,{unsafe:!0});var Iv={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},Sb=mp("span").classList,r9=Sb&&Sb.constructor&&Sb.constructor.prototype,TI=r9===Object.prototype?void 0:r9,o9=mt(mt.bind),bs=function(t,e){return Ua(t),e===void 0?t:o9?o9(t,e):function(){return t.apply(e,arguments)}},Cb=X.Object,qZ=mt("".split),D1=ie(function(){return!Cb("z").propertyIsEnumerable(0)})?function(t){return fo(t)=="String"?qZ(t,""):Cb(t)}:Cb,GZ=Math.ceil,KZ=Math.floor,wh=function(t){var e=+t;return e!=e||e===0?0:(e>0?KZ:GZ)(e)},YZ=Math.min,Nc=function(t){return t>0?YZ(wh(t),9007199254740991):0},Ns=function(t){return Nc(t.length)},Nv=Array.isArray||function(t){return fo(t)=="Array"},PI=function(){},XZ=[],jI=Is("Reflect","construct"),TC=/^\s*(?:class|function)\b/,ZZ=mt(TC.exec),JZ=!TC.exec(PI),Ef=function(t){if(!fe(t))return!1;try{return jI(PI,XZ,t),!0}catch{return!1}},x1=!jI||ie(function(){var t;return Ef(Ef.call)||!Ef(Object)||!Ef(function(){t=!0})||t})?function(t){if(!fe(t))return!1;switch(C1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return JZ||!!ZZ(TC,E1(t))}:Ef,QZ=Ie("species"),i9=X.Array,II=function(t,e){return new(function(n){var r;return Nv(n)&&(r=n.constructor,(x1(r)&&(r===i9||Nv(r.prototype))||ye(r)&&(r=r[QZ])===null)&&(r=void 0)),r===void 0?i9:r}(t))(e===0?0:e)},a9=mt([].push),Ui=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=nu(s),v=D1(m),g=bs(l,c),y=Ns(v),h=0,b=f||II,E=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=g(p=v[h],h,m),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:a9(E,p)}else switch(t){case 4:return!1;case 7:a9(E,p)}return i?-1:r||o?o:E}},Rc={forEach:Ui(0),map:Ui(1),filter:Ui(2),some:Ui(3),every:Ui(4),find:Ui(5),findIndex:Ui(6),filterReject:Ui(7)},NI=function(t,e){var n=[][t];return!!n&&ie(function(){n.call(null,e||function(){throw 1},1)})},tJ=Rc.forEach,Db=NI("forEach")?[].forEach:function(t){return tJ(this,t,arguments.length>1?arguments[1]:void 0)},RI=function(t){if(t&&t.forEach!==Db)try{co(t,"forEach",Db)}catch{t.forEach=Db}};for(var xb in Iv)Iv[xb]&&RI(X[xb]&&X[xb].prototype);RI(TI);var u9={}.propertyIsEnumerable,s9=Object.getOwnPropertyDescriptor,eJ=s9&&!u9.call({1:2},1)?function(t){var e=s9(this,t);return!!e&&e.enumerable}:u9,LI={f:eJ},ru=function(t){return D1(Wr(t))},l9=Object.getOwnPropertyDescriptor,Eh={f:mn?l9:function(t,e){if(t=ru(t),e=BC(e),_I)try{return l9(t,e)}catch{}if(Ge(t,e))return w1(!Zt(LI.f,t,e),t[e])}},nJ=Math.max,rJ=Math.min,pc=function(t,e){var n=wh(t);return n<0?nJ(n+e,0):rJ(n,e)},c9=function(t){return function(e,n,r){var o,i=ru(e),a=Ns(i),u=pc(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},MI={includes:c9(!0),indexOf:c9(!1)},oJ=MI.indexOf,f9=mt([].push),zI=function(t,e){var n,r=ru(t),o=0,i=[];for(n in r)!Ge(S1,n)&&Ge(r,n)&&f9(i,n);for(;e.length>o;)Ge(r,n=e[o++])&&(~oJ(i,n)||f9(i,n));return i},Rv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iJ=Rv.concat("length","prototype"),yp={f:Object.getOwnPropertyNames||function(t){return zI(t,iJ)}},$I={f:Object.getOwnPropertySymbols},aJ=mt([].concat),uJ=Is("Reflect","ownKeys")||function(t){var e=yp.f(Ke(t)),n=$I.f;return n?aJ(e,n(t)):e},sJ=function(t,e){for(var n=uJ(e),r=yo.f,o=Eh.f,i=0;i<n.length;i++){var a=n[i];Ge(t,a)||r(t,a,o(e,a))}},lJ=/#|\.prototype\./,Sh=function(t,e){var n=fJ[cJ(t)];return n==pJ||n!=dJ&&(fe(e)?ie(e):!!e)},cJ=Sh.normalize=function(t){return String(t).replace(lJ,".").toLowerCase()},fJ=Sh.data={},dJ=Sh.NATIVE="N",pJ=Sh.POLYFILL="P",bp=Sh,hJ=Eh.f,Pe=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?X:l?X[u]||xC(u,{}):(X[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=hJ(n,r))&&a.value:n[r],!bp(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;sJ(i,o)}(t.sham||o&&o.sham)&&co(i,"sham",!0),nr(n,r,i,t)}},Ml=Object.keys||function(t){return zI(t,Rv)},gJ=ie(function(){Ml(1)});/*!
  31. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  32. *
  33. * Copyright (c) 2014-2017, Jon Schlinkert.
  34. * Released under the MIT License.
  35. */function d9(t){return Object.prototype.toString.call(t)==="[object Object]"}Pe({target:"Object",stat:!0,forced:gJ},{keys:function(t){return Ml(nu(t))}});var vJ={isHistory(t){return d9(e=t)!==!1&&((n=e.constructor)===void 0||d9(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||ga.isOperationList(t.redos[0]))&&(t.undos.length===0||ga.isOperationList(t.undos[0]));var e,n,r}},Ab=new WeakMap,Ob=new WeakMap,Tl={isHistoryEditor:t=>vJ.isHistory(t.history)&&C.isEditor(t),isMerging:t=>Ob.get(t),isSaving:t=>Ab.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=Tl.isMerging(t);Ob.set(t,!1),e(),Ob.set(t,n)},withoutSaving(t,e){var n=Tl.isSaving(t);Ab.set(t,!1),e(),Ab.set(t,n)}},mJ=X.String,ge=function(t){if(C1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return mJ(t)},PC=function(){var t=Ke(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},yJ=Ic.PROPER,YE=RegExp.prototype,VI=YE.toString,bJ=mt(PC),wJ=ie(function(){return VI.call({source:"a",flags:"b"})!="/a/b"}),EJ=yJ&&VI.name!="toString";(wJ||EJ)&&nr(RegExp.prototype,"toString",function(){var t=Ke(this),e=ge(t.source),n=t.flags;return"/"+e+"/"+ge(n===void 0&&ms(YE,t)&&!("flags"in YE)?bJ(t):n)},{unsafe:!0});var w0,SJ=mn?Object.defineProperties:function(t,e){Ke(t);for(var n,r=ru(e),o=Ml(e),i=o.length,a=0;i>a;)yo.f(t,n=o[a++],r[n]);return t},XE=Is("document","documentElement"),HI=FC("IE_PROTO"),kb=function(){},UI=function(t){return"<script>"+t+"<\/script>"},p9=function(t){t.write(UI("")),t.close();var e=t.parentWindow.Object;return t=null,e},_g=function(){try{w0=new ActiveXObject("htmlfile")}catch{}var t,e;_g=typeof document<"u"?document.domain&&w0?p9(w0):((e=mp("iframe")).style.display="none",XE.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(UI("document.F=Object")),t.close(),t.F):p9(w0);for(var n=Rv.length;n--;)delete _g.prototype[Rv[n]];return _g()};S1[HI]=!0;var A1=Object.create||function(t,e){var n;return t!==null?(kb.prototype=Ke(t),n=new kb,kb.prototype=null,n[HI]=t):n=_g(),e===void 0?n:SJ(n,e)},ZE=Ie("unscopables"),JE=Array.prototype;JE[ZE]==null&&yo.f(JE,ZE,{configurable:!0,value:A1(null)});var Rd=function(t){JE[ZE][t]=!0},CJ=MI.includes;Pe({target:"Array",proto:!0},{includes:function(t){return CJ(this,t,arguments.length>1?arguments[1]:void 0)}}),Rd("includes");var DJ=Ie("match"),jC=function(t){var e;return ye(t)&&((e=t[DJ])!==void 0?!!e:fo(t)=="RegExp")},xJ=X.TypeError,IC=function(t){if(jC(t))throw xJ("The method doesn't accept regular expressions");return t},AJ=Ie("match"),NC=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[AJ]=!1,"/./"[t](e)}catch{}}return!1},OJ=mt("".indexOf);Pe({target:"String",proto:!0,forced:!NC("includes")},{includes:function(t){return!!~OJ(ge(Wr(this)),ge(IC(t)),arguments.length>1?arguments[1]:void 0)}});var kJ=/"/g,_J=mt("".replace);Pe({target:"String",proto:!0,forced:ie(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ge(Wr(this)),r="<a",(r+=' name="'+_J(ge(e),kJ,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var QE=function(t,e,n){var r,o;Ke(t);try{if(!(r=ys(t,"return"))){if(e==="throw")throw n;return n}r=Zt(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Ke(r),n},BJ=function(t,e,n,r){try{return r?e(Ke(n)[0],n[1]):e(n)}catch(o){QE(t,"throw",o)}},hc={},FJ=Ie("iterator"),TJ=Array.prototype,WI=function(t){return t!==void 0&&(hc.Array===t||TJ[FJ]===t)},wp=function(t,e,n){var r=BC(e);r in t?yo.f(t,r,w1(0,n)):t[r]=n},PJ=Ie("iterator"),RC=function(t){if(t!=null)return ys(t,PJ)||ys(t,"@@iterator")||hc[C1(t)]},jJ=X.TypeError,qI=function(t,e){var n=arguments.length<2?RC(t):e;if(Ua(n))return Ke(Zt(n,t));throw jJ(b1(t)+" is not iterable")},h9=X.Array,GI=Ie("iterator"),KI=!1;try{var IJ=0,g9={next:function(){return{done:!!IJ++}},return:function(){KI=!0}};g9[GI]=function(){return this},Array.from(g9,function(){throw 2})}catch{}var LC=function(t,e){if(!e&&!KI)return!1;var n=!1;try{var r={};r[GI]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},NJ=!LC(function(t){Array.from(t)});Pe({target:"Array",stat:!0,forced:NJ},{from:function(t){var e=nu(t),n=x1(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=bs(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=RC(e),d=0;if(!p||this==h9&&WI(p))for(a=Ns(e),u=n?new this(a):h9(a);a>d;d++)f=i?o(e[d],d):e[d],wp(u,d,f);else for(c=(l=qI(e,p)).next,u=n?new this:[];!(s=Zt(c,l)).done;d++)f=i?BJ(l,o,[s.value,d],!0):s.value,wp(u,d,f);return u.length=d,u}});var Xu,v9,m9,RJ=mt("".charAt),y9=mt("".charCodeAt),LJ=mt("".slice),b9=function(t){return function(e,n){var r,o,i=ge(Wr(e)),a=wh(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=y9(i,a))<55296||r>56319||a+1===u||(o=y9(i,a+1))<56320||o>57343?t?RJ(i,a):r:t?LJ(i,a,a+2):o-56320+(r-55296<<10)+65536}},YI={codeAt:b9(!1),charAt:b9(!0)},MJ=!ie(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),w9=FC("IE_PROTO"),tS=X.Object,zJ=tS.prototype,Lv=MJ?tS.getPrototypeOf:function(t){var e=nu(t);if(Ge(e,w9))return e[w9];var n=e.constructor;return fe(n)&&e instanceof n?n.prototype:e instanceof tS?zJ:null},eS=Ie("iterator"),XI=!1;[].keys&&("next"in(m9=[].keys())?(v9=Lv(Lv(m9)))!==Object.prototype&&(Xu=v9):XI=!0);var $J=Xu==null||ie(function(){var t={};return Xu[eS].call(t)!==t});$J&&(Xu={}),fe(Xu[eS])||nr(Xu,eS,function(){return this});var MC={IteratorPrototype:Xu,BUGGY_SAFARI_ITERATORS:XI},VJ=yo.f,E9=Ie("toStringTag"),Mv=function(t,e,n){t&&!Ge(t=n?t:t.prototype,E9)&&VJ(t,E9,{configurable:!0,value:e})},HJ=MC.IteratorPrototype,UJ=function(){return this},WJ=X.String,qJ=X.TypeError,gc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=mt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Ke(r),function(i){if(typeof i=="object"||fe(i))return i;throw qJ("Can't set "+WJ(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),GJ=Ic.PROPER,KJ=Ic.CONFIGURABLE,S9=MC.IteratorPrototype,E0=MC.BUGGY_SAFARI_ITERATORS,Sf=Ie("iterator"),YJ=function(){return this},zC=function(t,e,n,r,o,i,a){(function(y,h,b,E){var w=h+" Iterator";y.prototype=A1(HJ,{next:w1(1,b)}),Mv(y,w,!1),hc[w]=UJ})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!E0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,m=d[Sf]||d["@@iterator"]||o&&d[o],v=!E0&&m||c(o),g=e=="Array"&&d.entries||m;if(g&&(u=Lv(g.call(new t)))!==Object.prototype&&u.next&&(Lv(u)!==S9&&(gc?gc(u,S9):fe(u[Sf])||nr(u,Sf,YJ)),Mv(u,f,!0)),GJ&&o=="values"&&m&&m.name!=="values"&&(KJ?co(d,"name","values"):(p=!0,v=function(){return Zt(m,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(E0||p||!(l in d))&&nr(d,l,s[l]);else Pe({target:e,proto:!0,forced:E0||p},s);return d[Sf]!==v&&nr(d,Sf,v,{name:o}),hc[e]=v,s},XJ=YI.charAt,ZJ=Mn.set,JJ=Mn.getterFor("String Iterator");zC(String,"String",function(t){ZJ(this,{type:"String Iterator",string:ge(t),index:0})},function(){var t,e=JJ(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=XJ(n,r),e.index+=t.length,{value:t,done:!1})});var _b,QJ=Eh.f,C9=mt("".endsWith),tQ=mt("".slice),eQ=Math.min,ZI=NC("endsWith"),nQ=!(ZI||(_b=QJ(String.prototype,"endsWith"),!_b||_b.writable));Pe({target:"String",proto:!0,forced:!nQ&&!ZI},{endsWith:function(t){var e=ge(Wr(this));IC(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:eQ(Nc(n),r),i=ge(t);return C9?C9(e,i,o):tQ(e,o-i.length,o)===i}});var rQ=mt([].join),oQ=D1!=Object,iQ=NI("join",",");Pe({target:"Array",proto:!0,forced:oQ||!iQ},{join:function(t){return rQ(ru(this),t===void 0?",":t)}});var aQ=Ie("species"),O1=function(t){return vp>=51||!ie(function(){var e=[];return(e.constructor={})[aQ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},uQ=Rc.map,sQ=O1("map");Pe({target:"Array",proto:!0,forced:!sQ},{map:function(t){return uQ(this,t,arguments.length>1?arguments[1]:void 0)}});var $C=X.RegExp,nS=ie(function(){var t=$C("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),lQ=nS||ie(function(){return!$C("a","y").sticky}),k1={BROKEN_CARET:nS||ie(function(){var t=$C("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:lQ,UNSUPPORTED_Y:nS},cQ=X.RegExp,VC=ie(function(){var t=cQ(".","s");return!(t.dotAll&&t.exec(`
  36. `)&&t.flags==="s")}),fQ=X.RegExp,HC=ie(function(){var t=fQ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),dQ=Mn.get,pQ=AC("native-string-replace",String.prototype.replace),zv=RegExp.prototype.exec,rS=zv,hQ=mt("".charAt),gQ=mt("".indexOf),vQ=mt("".replace),Bb=mt("".slice),Fb=function(){var t=/a/,e=/b*/g;return Zt(zv,t,"a"),Zt(zv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),D9=k1.BROKEN_CARET,Tb=/()??/.exec("")[1]!==void 0;(Fb||Tb||D9||VC||HC)&&(rS=function(t){var e,n,r,o,i,a,u,s=this,l=dQ(s),c=ge(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Zt(rS,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=D9&&s.sticky,m=Zt(PC,s),v=s.source,g=0,y=c;if(d&&(m=vQ(m,"y",""),gQ(m,"g")===-1&&(m+="g"),y=Bb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&hQ(c,s.lastIndex-1)!==`
  37. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),Tb&&(n=new RegExp("^"+v+"$(?!\\s)",m)),Fb&&(r=s.lastIndex),o=Zt(zv,d?n:s,y),d?o?(o.input=Bb(o.input,g),o[0]=Bb(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Fb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Tb&&o&&o.length>1&&Zt(pQ,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=A1(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Ep=rS;Pe({target:"RegExp",proto:!0,forced:/./.exec!==Ep},{exec:Ep});var UC=Function.prototype,x9=UC.apply,mQ=UC.bind,A9=UC.call,WC=typeof Reflect=="object"&&Reflect.apply||(mQ?A9.bind(x9):function(){return A9.apply(x9,arguments)}),yQ=Ie("species"),Pb=RegExp.prototype,qC=function(t,e,n,r){var o=Ie(t),i=!ie(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ie(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[yQ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=mt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var m=mt(l),v=c.exec;return v===Ep||v===Pb.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});nr(String.prototype,t,s[0]),nr(Pb,o,s[1])}r&&co(Pb[o],"sham",!0)},bQ=YI.charAt,GC=function(t,e,n){return e+(n?bQ(t,e).length:1)},wQ=Math.floor,jb=mt("".charAt),EQ=mt("".replace),Ib=mt("".slice),SQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,CQ=/\$([$&'`]|\d{1,2})/g,DQ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=CQ;return o!==void 0&&(o=nu(o),s=SQ),EQ(i,s,function(l,c){var f;switch(jb(c,0)){case"$":return"$";case"&":return t;case"`":return Ib(e,0,n);case"'":return Ib(e,a);case"<":f=o[Ib(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=wQ(p/10);return d===0?l:d<=u?r[d-1]===void 0?jb(c,1):r[d-1]+jb(c,1):l}f=r[p-1]}return f===void 0?"":f})},xQ=X.TypeError,Sp=function(t,e){var n=t.exec;if(fe(n)){var r=Zt(n,t,e);return r!==null&&Ke(r),r}if(fo(t)==="RegExp")return Zt(Ep,t,e);throw xQ("RegExp#exec called on incompatible receiver")},oS=Ie("replace"),AQ=Math.max,OQ=Math.min,kQ=mt([].concat),Nb=mt([].push),O9=mt("".indexOf),k9=mt("".slice),_Q="a".replace(/./,"$0")==="$0",_9=!!/./[oS]&&/./[oS]("a","$0")==="";qC("replace",function(t,e,n){var r=_9?"$":"$0";return[function(o,i){var a=Wr(this),u=o==null?void 0:ys(o,oS);return u?Zt(u,o,a,i):Zt(e,ge(a),o,i)},function(o,i){var a=Ke(this),u=ge(o);if(typeof i=="string"&&O9(i,r)===-1&&O9(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=fe(i);l||(i=ge(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=Sp(a,u);if(d===null||(Nb(p,d),!c))break;ge(d[0])===""&&(a.lastIndex=GC(u,Nc(a.lastIndex),f))}for(var m,v="",g=0,y=0;y<p.length;y++){for(var h=ge((d=p[y])[0]),b=AQ(OQ(wh(d.index),u.length),0),E=[],w=1;w<d.length;w++)Nb(E,(m=d[w])===void 0?m:String(m));var S=d.groups;if(l){var D=kQ([h],E,b,u);S!==void 0&&Nb(D,S);var x=ge(WC(i,void 0,D))}else x=DQ(h,u,b,E,S,i);b>=g&&(v+=k9(u,g,b)+x,g=b+h.length)}return v+k9(u,g)}]},!!ie(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!_Q||_9);/*! *****************************************************************************
  38. Copyright (c) Microsoft Corporation.
  39. Permission to use, copy, modify, and/or distribute this software for any
  40. purpose with or without fee is hereby granted.
  41. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  42. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  43. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  44. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  45. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  46. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  47. PERFORMANCE OF THIS SOFTWARE.
  48. ***************************************************************************** */var iS=function(t,e){return iS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},iS(t,e)};function Lc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}iS(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var jr=function(){return jr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},jr.apply(this,arguments)};function Ir(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function aS(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var BQ=0,B9=function(){this.id=""+BQ++},FQ=Mn.set,TQ=Mn.getterFor("Array Iterator"),Dd=zC(Array,"Array",function(t,e){FQ(this,{type:"Array Iterator",target:ru(t),index:0,kind:e})},function(){var t=TQ(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");hc.Arguments=hc.Array,Rd("keys"),Rd("values"),Rd("entries");var vc=function(t,e,n){for(var r in e)nr(t,r,e[r],n);return t},PQ=X.Array,jQ=Math.max,uS=function(t,e,n){for(var r=Ns(t),o=pc(e,r),i=pc(n===void 0?r:n,r),a=PQ(jQ(i-o,0)),u=0;o<i;o++,u++)wp(a,u,t[o]);return a.length=u,a},F9=yp.f,T9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],IQ={f:function(t){return T9&&fo(t)=="Window"?function(e){try{return F9(e)}catch{return uS(T9)}}(t):F9(ru(t))}},P9=ie(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),S0=Object.isExtensible,Lu=ie(function(){S0(1)})||P9?function(t){return!!ye(t)&&(!P9||fo(t)!="ArrayBuffer")&&(!S0||S0(t))}:S0,NQ=!ie(function(){return Object.isExtensible(Object.preventExtensions({}))}),_1=bh(function(t){var e=yo.f,n=!1,r=OC("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=yp.f,s=mt([].splice),l={};l[r]=1,u(l).length&&(yp.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Pe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:IQ.f}))},fastKey:function(u,s){if(!ye(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ge(u,r)){if(!Lu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ge(u,r)){if(!Lu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return NQ&&n&&Lu(u)&&!Ge(u,r)&&i(u),u}};S1[r]=!0}),RQ=X.TypeError,Bg=function(t,e){this.stopped=t,this.result=e},j9=Bg.prototype,Cp=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),m=bs(e,c),v=function(y){return r&&QE(r,"normal",y),new Bg(!0,y)},g=function(y){return f?(Ke(y),d?m(y[0],y[1],v):m(y[0],y[1])):d?m(y,v):m(y)};if(p)r=t;else{if(!(o=RC(t)))throw RQ(b1(t)+" is not iterable");if(WI(o)){for(i=0,a=Ns(t);a>i;i++)if((u=g(t[i]))&&ms(j9,u))return u;return new Bg(!1)}r=qI(t,o)}for(s=r.next;!(l=Zt(s,r)).done;){try{u=g(l.value)}catch(y){QE(r,"throw",y)}if(typeof u=="object"&&u&&ms(j9,u))return u}return new Bg(!1)},LQ=X.TypeError,B1=function(t,e){if(ms(e,t))return t;throw LQ("Incorrect invocation")},JI=function(t,e,n){var r,o;return gc&&fe(r=e.constructor)&&r!==n&&ye(o=r.prototype)&&o!==n.prototype&&gc(t,o),t},QI=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=X[t],u=a&&a.prototype,s=a,l={},c=function(g){var y=mt(u[g]);nr(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!ye(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!ye(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!ye(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(bp(t,!fe(a)||!(o||u.forEach&&!ie(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),_1.enable();else if(bp(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=ie(function(){f.has(1)}),m=LC(function(g){new a(g)}),v=!o&&ie(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});m||((s=e(function(g,y){B1(g,u);var h=JI(new a,g,s);return y!=null&&Cp(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Pe({global:!0,forced:s!=a},l),Mv(s,t),o||n.setStrong(s,t,r),s},C0=_1.getWeakData,MQ=Mn.set,zQ=Mn.getterFor,$Q=Rc.find,VQ=Rc.findIndex,HQ=mt([].splice),UQ=0,D0=function(t){return t.frozen||(t.frozen=new tN)},tN=function(){this.entries=[]},Rb=function(t,e){return $Q(t.entries,function(n){return n[0]===e})};tN.prototype={get:function(t){var e=Rb(this,t);if(e)return e[1]},has:function(t){return!!Rb(this,t)},set:function(t,e){var n=Rb(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=VQ(this.entries,function(n){return n[0]===t});return~e&&HQ(this.entries,e,1),!!~e}};var Cf,eN={getConstructor:function(t,e,n,r){var o=t(function(s,l){B1(s,i),MQ(s,{type:e,id:UQ++,frozen:void 0}),l!=null&&Cp(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=zQ(e),u=function(s,l,c){var f=a(s),p=C0(Ke(l),!0);return p===!0?D0(f).set(l,c):p[f.id]=c,s};return vc(i,{delete:function(s){var l=a(this);if(!ye(s))return!1;var c=C0(s);return c===!0?D0(l).delete(s):c&&Ge(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ye(s))return!1;var c=C0(s);return c===!0?D0(l).has(s):c&&Ge(c,l.id)}}),vc(i,n?{get:function(s){var l=a(this);if(ye(s)){var c=C0(s);return c===!0?D0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},x0=Mn.enforce,WQ=!X.ActiveXObject&&"ActiveXObject"in X,nN=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},qQ=QI("WeakMap",nN,eN);if(BI&&WQ){Cf=eN.getConstructor(nN,"WeakMap",!0),_1.enable();var Df=qQ.prototype,I9=mt(Df.delete),A0=mt(Df.has),N9=mt(Df.get),R9=mt(Df.set);vc(Df,{delete:function(t){if(ye(t)&&!Lu(t)){var e=x0(this);return e.frozen||(e.frozen=new Cf),I9(this,t)||e.frozen.delete(t)}return I9(this,t)},has:function(t){if(ye(t)&&!Lu(t)){var e=x0(this);return e.frozen||(e.frozen=new Cf),A0(this,t)||e.frozen.has(t)}return A0(this,t)},get:function(t){if(ye(t)&&!Lu(t)){var e=x0(this);return e.frozen||(e.frozen=new Cf),A0(this,t)?N9(this,t):e.frozen.get(t)}return N9(this,t)},set:function(t,e){if(ye(t)&&!Lu(t)){var n=x0(this);n.frozen||(n.frozen=new Cf),A0(this,t)?R9(this,t,e):n.frozen.set(t,e)}else R9(this,t,e);return this}})}var Lb=Ie("iterator"),L9=Ie("toStringTag"),Mb=Dd.values,rN=function(t,e){if(t){if(t[Lb]!==Mb)try{co(t,Lb,Mb)}catch{t[Lb]=Mb}if(t[L9]||co(t,L9,e),Iv[e]){for(var n in Dd)if(t[n]!==Dd[n])try{co(t,n,Dd[n])}catch{t[n]=Dd[n]}}}};for(var zb in Iv)rN(X[zb]&&X[zb].prototype,zb);rN(TI,"DOMTokenList");var sS=new WeakMap,lS=new WeakMap,KC=new WeakMap,F1=new WeakMap,cS=new WeakMap,$v=new WeakMap,YC=new WeakMap,fS=new WeakMap,Fg=new WeakMap,M9=new WeakMap,z9=new WeakMap,$9=new WeakMap,V9=new WeakMap,Dp=new WeakMap,mc=new WeakMap,XC=new WeakMap,Vv=new WeakMap,dS=new WeakMap,Hv=new WeakMap,Tg=new WeakMap,oN=new WeakMap,Zu=new WeakMap,$b=new WeakMap,H9=new WeakMap,Vb=new WeakMap,GQ=Rc.find,U9=!0;"find"in[]&&Array(1).find(function(){U9=!1}),Pe({target:"Array",proto:!0,forced:U9},{find:function(t){return GQ(this,t,arguments.length>1?arguments[1]:void 0)}}),Rd("find"),Pe({global:!0},{globalThis:X});const KQ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Ov&&(B.fn.css=Ov),Ur&&(B.fn.append=Ur),nc&&(B.fn.addClass=nc),rc&&(B.fn.removeClass=rc),oc&&(B.fn.hasClass=oc),Ho&&(B.fn.on=Ho),Ha&&(B.fn.focus=Ha),Hr&&(B.fn.attr=Hr),Cv&&(B.fn.removeAttr=Cv),ac&&(B.fn.hide=ac),Av&&(B.fn.show=Av),o7&&(B.fn.offset=o7),Dv&&(B.fn.width=Dv),xv&&(B.fn.height=xv),uc&&(B.fn.parent=uc),Bv&&(B.fn.parents=Bv),a7&&(B.fn.is=a7),ic&&(B.fn.dataset=ic),Vo&&(B.fn.val=Vo),_v&&(B.fn.text=_v),Va&&(B.fn.html=Va),lc&&(B.fn.children=lc),cc&&(B.fn.remove=cc),sc&&(B.fn.find=sc),kv&&(B.fn.each=kv),fc&&(B.fn.empty=fc);var Po,In,ZC=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},eo=function(t){return ws(t)&&t.nodeType===1},ws=function(t){var e=ZC(t);return!!e&&t instanceof e.Node},W9=function(t){var e=t&&t.anchorNode&&ZC(t.anchorNode);return!!e&&t instanceof e.Selection},iN=function(t){return ws(t)&&t.nodeType===3},pS=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},aN=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(ws(r=i)&&r.nodeType===8||eo(i)&&i.childNodes.length===0||eo(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,n="backward"):a<0?(s=!0,a=e+1,n="forward"):(i=o[a],e=a,a+=n==="forward"?1:-1);return[i,e]},YQ=function(t,e,n){return Yt(aN(t,e,n),1)[0]},XQ=function t(e){var n,r,o="";if(iN(e)&&e.nodeValue)return e.nodeValue;if(eo(e)){try{for(var i=Ir(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
  49. `)}return o};function uN(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var n=t.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||uN(o,e)}}function q9(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==Po.ELEMENT_NODE?"":e.tagName.toLowerCase()}(In=Po||(Po={}))[In.ELEMENT_NODE=1]="ELEMENT_NODE",In[In.TEXT_NODE=3]="TEXT_NODE",In[In.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",In[In.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",In[In.COMMENT_NODE=8]="COMMENT_NODE",In[In.DOCUMENT_NODE=9]="DOCUMENT_NODE",In[In.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",In[In.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var hS=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Ld=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),xf=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),ZQ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),JQ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),gS=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Af=!JQ&&!ZQ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",O={getWindow:function(t){var e=oN.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=Tg.get(e);return n||(n=new B9,Tg.set(e,n)),n},setNewKey:function(t){var e=new B9;Tg.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=mc.get(r);if(o==null){if(C.isEditor(r))return n;break}var i=Dp.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=O.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return mc.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=O.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[O.findPath(t,e)[0]];return Q.get(t,n)},toDOMNode:function(t,e){var n;if(C.isEditor(e))n=XC.get(t);else{var r=O.findKey(t,e);n=dS.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=O.toDOMNode(t,t);try{r=eo(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=M.isBackward(e),i=O.toDOMPoint(t,n),a=M.isCollapsed(e)?i:O.toDOMPoint(t,r),u=O.getWindow(t).document.createRange(),s=Yt(o?a:i,2),l=s[0],c=s[1],f=Yt(o?i:a,2),p=f[0],d=f[1],m=!!(eo(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(eo(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,m?1:c),u.setEnd(p,v?1:d),u},toDOMPoint:function(t,e){var n,r,o,i=Yt(C.node(t,e.path),1)[0],a=O.toDOMNode(t,i);C.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Ir(u),c=l.next();!c.done;c=l.next()){var f=c.value,p=f.childNodes[0];if(p!=null&&p.textContent!=null){var d=p.textContent.length,m=f.getAttribute("data-slate-length"),v=s+(m==null?d:parseInt(m,10));if(e.offset<=v){o=[p,Math.min(d,Math.max(0,e.offset-s))];break}s=v}}}catch(g){n={error:g}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var n=eo(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Vv.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=O.toSlateNode(t,e.target),u=O.findPath(t,a);if(C.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=C.point(t,u,{edge:l?"start":"end"}),f=l?C.before(t,c):C.after(t,c);if(f)return C.range(t,f)}var p=this.getWindow(t).document;if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var d=p.caretPositionFromPoint(n,r);d&&((i=p.createRange()).setStart(d.offsetNode,d.offset),i.setEnd(d.offsetNode,d.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return O.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((W9(e)?e.anchorNode:e.startContainer)&&(W9(e)?(r=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=gS&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(r=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=O.toSlatePoint(t,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:O.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var p={anchor:c,focus:f};return M.isExpanded(p)&&M.isForward(p)&&eo(i)&&C.void(t,{at:p.focus,mode:"highest"})&&(p=C.unhangRange(t,p,{voids:!0})),p},toSlatePoint:function(t,e,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Yt(o?e:function(h){var b,E=Yt(h,2),w=E[0],S=E[1];if(eo(w)&&w.childNodes.length){var D=S===w.childNodes.length,x=D?S-1:S;for(w=(b=Yt(aN(w,x,D?"backward":"forward"),2))[0],D=(x=b[1])<S;eo(w)&&w.childNodes.length;){var k=D?w.childNodes.length-1:0;w=YQ(w,k,D?"backward":"forward")}S=D&&w.textContent!=null?w.textContent.length:0}return[w,S]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var p=l.closest('[data-slate-void="true"]'),d=l.closest("[data-slate-leaf]"),m=null;if(d){c=d.closest('[data-slate-node="text"]');var v=O.getWindow(t).document.createRange();v.setStart(c,0),v.setEnd(u,s);var g=v.cloneContents();aS(aS([],Yt(e7(g.querySelectorAll("[data-slate-zero-width]")))),Yt(e7(g.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=g.textContent.length,m=c}else p&&((d=p.querySelector("[data-slate-leaf]"))?(c=d.closest('[data-slate-node="text"]'),f=(m=d).textContent.length,m.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);m&&f===m.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Ld&&(!((r=m.textContent)===null||r===void 0)&&r.endsWith(`
  50. `)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var y=O.toSlateNode(t,c);return{path:O.findPath(t,y),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return C.hasPath(t,n.path)&&C.hasPath(t,r.path)},getNodeType:function(t){return pt.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return Q.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=C.nodes(t,{universal:!0});try{for(var i=Ir(o),a=i.next();!a.done;a=i.next()){var u=Yt(a.value,1)[0];pt.isElement(u)&&r.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},getSelectedNodeByType:function(t,e){var n=this,r=Yt(C.nodes(t,{match:function(i){return n.checkNodeType(i,e)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Yt(C.nodes(t,{match:function(r){return it.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=Yt(C.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&Yt(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(C.isEnd(t,n.anchor,e)||C.isEnd(t,n.focus,e))},getTextarea:function(t){var e=sS.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return F1.get(t)||null},getHoverbar:function(t){return $v.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,n){t.normalizeNode([e,[n]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),n=e.maxLength,r=e.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,i=O.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Ir(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(v){e={error:v}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var c=C.nodes(t,{match:function(v){return!(!pt.isElement(v)||t.isInline(v))},universal:!0});try{for(var f=Ir(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var m=d[0];uN(O.toDOMNode(t,m),function(v,g){var y=B(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||g.removeChild(v)})}}}catch(v){r={error:v}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=C.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=Ir(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||M.isExpanded(e))return!1;var n=O.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=C.node(t,e);if(n==null)return!1;var r=Yt(n,1)[0].children;return r.length===1&&r[0].text===""}},QQ=1,sN={},xp={},ttt=Rc.filter,ett=O1("filter");Pe({target:"Array",proto:!0,forced:!ett},{filter:function(t){return ttt(this,t,arguments.length>1?arguments[1]:void 0)}});var vS=`
  51. \v\f\r                 \u2028\u2029\uFEFF`,G9=mt("".replace),Uv="["+vS+"]",ntt=RegExp("^"+Uv+Uv+"*"),rtt=RegExp(Uv+Uv+"*$"),Hb=function(t){return function(e){var n=ge(Wr(e));return 1&t&&(n=G9(n,ntt,"")),2&t&&(n=G9(n,rtt,"")),n}},ott={start:Hb(1),end:Hb(2),trim:Hb(3)},itt=Ic.PROPER,att=ott.trim;Pe({target:"String",proto:!0,forced:function(t){return ie(function(){return!!vS[t]()||"​…᠎"[t]()!=="​…᠎"||itt&&vS[t].name!==t})}("trim")},{trim:function(){return att(this)}});var mS=[],lN={};function utt(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var Ap,Qs,K9,Ub,Wv=X.Promise,Y9=Ie("species"),JC=function(t){var e=Is(t),n=yo.f;mn&&e&&!e[Y9]&&n(e,Y9,{configurable:!0,get:function(){return this}})},stt=X.TypeError,ltt=Ie("species"),cN=function(t,e){var n,r=Ke(t).constructor;return r===void 0||(n=Ke(r)[ltt])==null?e:function(o){if(x1(o))return o;throw stt(b1(o)+" is not a constructor")}(n)},fN=mt([].slice),dN=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ll),Da=fo(X.process)=="process",yS=X.setImmediate,bS=X.clearImmediate,ctt=X.process,Wb=X.Dispatch,ftt=X.Function,X9=X.MessageChannel,dtt=X.String,qb=0,Md={};try{Ap=X.location}catch{}var QC=function(t){if(Ge(Md,t)){var e=Md[t];delete Md[t],e()}},Gb=function(t){return function(){QC(t)}},Z9=function(t){QC(t.data)},J9=function(t){X.postMessage(dtt(t),Ap.protocol+"//"+Ap.host)};yS&&bS||(yS=function(t){var e=fN(arguments,1);return Md[++qb]=function(){WC(fe(t)?t:ftt(t),void 0,e)},Qs(qb),qb},bS=function(t){delete Md[t]},Da?Qs=function(t){ctt.nextTick(Gb(t))}:Wb&&Wb.now?Qs=function(t){Wb.now(Gb(t))}:X9&&!dN?(Ub=(K9=new X9).port2,K9.port1.onmessage=Z9,Qs=bs(Ub.postMessage,Ub)):X.addEventListener&&fe(X.postMessage)&&!X.importScripts&&Ap&&Ap.protocol!=="file:"&&!ie(J9)?(Qs=J9,X.addEventListener("message",Z9,!1)):Qs="onreadystatechange"in mp("script")?function(t){XE.appendChild(mp("script")).onreadystatechange=function(){XE.removeChild(this),QC(t)}}:function(t){setTimeout(Gb(t),0)});var Of,ju,zd,Al,Kb,Yb,Xb,Q9,pN={set:yS,clear:bS},ptt=/ipad|iphone|ipod/i.test(Ll)&&X.Pebble!==void 0,htt=/web0s(?!.*chrome)/i.test(Ll),gtt=Eh.f,Zb=pN.set,tO=X.MutationObserver||X.WebKitMutationObserver,eO=X.document,nO=X.process,O0=X.Promise,rO=gtt(X,"queueMicrotask"),hN=rO&&rO.value;hN||(Of=function(){var t,e;for(Da&&(t=nO.domain)&&t.exit();ju;){e=ju.fn,ju=ju.next;try{e()}catch(n){throw ju?Al():zd=void 0,n}}zd=void 0,t&&t.enter()},dN||Da||htt||!tO||!eO?!ptt&&O0&&O0.resolve?((Xb=O0.resolve(void 0)).constructor=O0,Q9=bs(Xb.then,Xb),Al=function(){Q9(Of)}):Da?Al=function(){nO.nextTick(Of)}:(Zb=bs(Zb,X),Al=function(){Zb(Of)}):(Kb=!0,Yb=eO.createTextNode(""),new tO(Of).observe(Yb,{characterData:!0}),Al=function(){Yb.data=Kb=!Kb}));var Jb,oO,gN,iO,vN=hN||function(t){var e={fn:t,next:void 0};zd&&(zd.next=e),ju||(ju=e,Al()),zd=e},vtt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Ua(e),this.reject=Ua(n)},t5={f:function(t){return new vtt(t)}},wS=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},mtt=typeof window=="object",mN=pN.set,ytt=Ie("species"),_o="Promise",aO=Mn.getterFor(_o),btt=Mn.set,wtt=Mn.getterFor(_o),ku=Wv&&Wv.prototype,jo=Wv,kf=ku,yN=X.TypeError,ES=X.document,e5=X.process,zl=t5.f,Ett=zl,Stt=!!(ES&&ES.createEvent&&X.dispatchEvent),bN=fe(X.PromiseRejectionEvent),wN=!1,$d=bp(_o,function(){var t=E1(jo),e=t!==String(jo);if(!e&&vp===66)return!0;if(vp>=51&&/native code/.test(t))return!1;var n=new jo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[ytt]=r,!(wN=n.then(function(){})instanceof r)||!e&&mtt&&!bN}),Ctt=$d||!LC(function(t){jo.all(t).catch(function(){})}),EN=function(t){var e;return!(!ye(t)||!fe(e=t.then))&&e},n5=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;vN(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&xtt(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(yN("Promise-chain cycle")):(u=EN(a))?Zt(u,a,f,p):f(a)):p(r)}catch(m){d&&!s&&d.exit(),p(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Dtt(t)})}},SN=function(t,e,n){var r,o;Stt?((r=ES.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),X.dispatchEvent(r)):r={promise:e,reason:n},!bN&&(o=X["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=X.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},Dtt=function(t){Zt(mN,X,function(){var e,n=t.facade,r=t.value;if(uO(t)&&(e=wS(function(){Da?e5.emit("unhandledRejection",r,n):SN("unhandledrejection",n,r)}),t.rejection=Da||uO(t)?2:1,e.error))throw e.value})},uO=function(t){return t.rejection!==1&&!t.parent},xtt=function(t){Zt(mN,X,function(){var e=t.facade;Da?e5.emit("rejectionHandled",e):SN("rejectionhandled",e,t.value)})},Pl=function(t,e,n){return function(r){t(e,r,n)}},$l=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,n5(t,!0))},SS=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw yN("Promise can't be resolved itself");var r=EN(e);r?vN(function(){var o={done:!1};try{Zt(r,e,Pl(SS,o,t),Pl($l,o,t))}catch(i){$l(o,i,t)}}):(t.value=e,t.state=1,n5(t,!1))}catch(o){$l({done:!1},o,t)}}};if($d&&(kf=(jo=function(t){B1(this,kf),Ua(t),Zt(Jb,this);var e=aO(this);try{t(Pl(SS,e),Pl($l,e))}catch(n){$l(e,n)}}).prototype,(Jb=function(t){btt(this,{type:_o,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=vc(kf,{then:function(t,e){var n=wtt(this),r=n.reactions,o=zl(cN(this,jo));return o.ok=!fe(t)||t,o.fail=fe(e)&&e,o.domain=Da?e5.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&n5(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),oO=function(){var t=new Jb,e=aO(t);this.promise=t,this.resolve=Pl(SS,e),this.reject=Pl($l,e)},t5.f=zl=function(t){return t===jo||t===gN?new oO(t):Ett(t)},fe(Wv)&&ku!==Object.prototype)){iO=ku.then,wN||(nr(ku,"then",function(t,e){var n=this;return new jo(function(r,o){Zt(iO,n,r,o)}).then(t,e)},{unsafe:!0}),nr(ku,"catch",kf.catch,{unsafe:!0}));try{delete ku.constructor}catch{}gc&&gc(ku,kf)}Pe({global:!0,wrap:!0,forced:$d},{Promise:jo}),Mv(jo,_o,!1),JC(_o),gN=Is(_o),Pe({target:_o,stat:!0,forced:$d},{reject:function(t){var e=zl(this);return Zt(e.reject,void 0,t),e.promise}}),Pe({target:_o,stat:!0,forced:$d},{resolve:function(t){return function(e,n){if(Ke(e),ye(n)&&n.constructor===e)return n;var r=t5.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Pe({target:_o,stat:!0,forced:Ctt},{all:function(t){var e=this,n=zl(e),r=n.resolve,o=n.reject,i=wS(function(){var a=Ua(e.resolve),u=[],s=0,l=1;Cp(t,function(c){var f=s++,p=!1;l++,Zt(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=zl(e),r=n.reject,o=wS(function(){var i=Ua(e.resolve);Cp(t,function(a){Zt(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var tl=k1.UNSUPPORTED_Y,Att=Math.min,CN=[].push,Ott=mt(/./.exec),el=mt(CN),_f=mt("".slice);function qr(t){Promise.resolve().then(t)}function DN(t,e){return pt.isElement(t)?function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=C.isVoid(r,n),l="";s||(l=u.map(function(y){return DN(y,r)}).join(""));var c=function(y){return lN[y]||utt}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||mS.forEach(function(y){return p=y(n,p)}),typeof f=="string")return p;var d=f.prefix,m=d===void 0?"":d,v=f.suffix,g=v===void 0?"":v;return m&&(p=m+p),g&&(p+=g),p}(t,e):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=function(s){return s.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(i);var a=O.getParentsNodes(r,n).some(function(s){return O.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/&nbsp;/g," ")),i===""){var u=O.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return mS.forEach(function(s){return i=s(n,i)}),i}(t,e)}function xN(t){return"w-e-element-"+t}qC("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=ge(Wr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!jC(o))return Zt(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,m=new RegExp(o.source,p+"g");(s=Zt(Ep,m,a))&&!((l=m.lastIndex)>d&&(el(f,_f(a,d,s.index)),s.length>1&&s.index<a.length&&WC(CN,f,uS(s,1)),c=s[0].length,d=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return d===a.length?!c&&Ott(m,"")||el(f,""):el(f,_f(a,d)),f.length>u?uS(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Zt(e,this,o,i)}:e,[function(o,i){var a=Wr(this),u=o==null?void 0:ys(o,t);return u?Zt(u,o,a,i):Zt(r,ge(a),o,i)},function(o,i){var a=Ke(this),u=ge(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=cN(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(tl?"g":"y"),p=new l(tl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return Sp(p,u)===null?[u]:[];for(var m=0,v=0,g=[];v<u.length;){p.lastIndex=tl?0:v;var y,h=Sp(p,tl?_f(u,v):u);if(h===null||(y=Att(Nc(p.lastIndex+(tl?v:0)),u.length))===m)v=GC(u,v,c);else{if(el(g,_f(u,m,v)),g.length===d)return g;for(var b=1;b<=h.length-1;b++)if(el(g,h[b]),g.length===d)return g;v=m=y}}return el(g,_f(u,m)),g}]},!!ie(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),tl);var sO=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},lO=function(t,e,n){var r=O.toDOMRange(t,e).getBoundingClientRect(),o=O.toDOMRange(t,n).getBoundingClientRect();return sO(r,o)&&sO(o,r)},AN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],ON=[],r5=[],qv={},ktt=yo.f,_tt=yp.f,Btt=Mn.enforce,Ftt=Ie("match"),hi=X.RegExp,Ol=hi.prototype,Ttt=X.SyntaxError,Ptt=mt(PC),jtt=mt(Ol.exec),k0=mt("".charAt),cO=mt("".replace),fO=mt("".indexOf),Itt=mt("".slice),Ntt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ju=/a/g,Qb=/a/g,Rtt=new hi(Ju)!==Ju,kN=k1.MISSED_STICKY,Ltt=k1.UNSUPPORTED_Y,Mtt=mn&&(!Rtt||kN||VC||HC||ie(function(){return Qb[Ftt]=!1,hi(Ju)!=Ju||hi(Qb)==Qb||hi(Ju,"i")!="/a/i"}));if(bp("RegExp",Mtt)){for(var Wi=function(t,e){var n,r,o,i,a,u,s=ms(Ol,this),l=jC(t),c=e===void 0,f=[],p=t;if(!s&&l&&c&&t.constructor===Wi)return t;if((l||ms(Ol,t))&&(t=t.source,c&&(e="flags"in p?p.flags:Ptt(p))),t=t===void 0?"":ge(t),e=e===void 0?"":ge(e),p=t,VC&&"dotAll"in Ju&&(r=!!e&&fO(e,"s")>-1)&&(e=cO(e,/s/g,"")),n=e,kN&&"sticky"in Ju&&(o=!!e&&fO(e,"y")>-1)&&Ltt&&(e=cO(e,/y/g,"")),HC&&(i=function(d){for(var m,v=d.length,g=0,y="",h=[],b={},E=!1,w=!1,S=0,D="";g<=v;g++){if((m=k0(d,g))==="\\")m+=k0(d,++g);else if(m==="]")E=!1;else if(!E)switch(!0){case m==="[":E=!0;break;case m==="(":jtt(Ntt,Itt(d,g+1))&&(g+=2,w=!0),y+=m,S++;continue;case(m===">"&&w):if(D===""||Ge(b,D))throw new Ttt("Invalid capture group name");b[D]=!0,h[h.length]=[D,S],w=!1,D="";continue}w?D+=m:y+=m}return[y,h]}(t),t=i[0],f=i[1]),a=JI(hi(t,e),s?this:Ol,Wi),(r||o||f.length)&&(u=Btt(a),r&&(u.dotAll=!0,u.raw=Wi(function(d){for(var m,v=d.length,g=0,y="",h=!1;g<=v;g++)(m=k0(d,g))!=="\\"?h||m!=="."?(m==="["?h=!0:m==="]"&&(h=!1),y+=m):y+="[\\s\\S]":y+=m+k0(d,++g);return y}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{co(a,"source",p===""?"(?:)":p)}catch{}return a},ztt=function(t){t in Wi||ktt(Wi,t,{configurable:!0,get:function(){return hi[t]},set:function(e){hi[t]=e}})},dO=_tt(hi),pO=0;dO.length>pO;)ztt(dO[pO++]);Ol.constructor=Wi,Wi.prototype=Ol,nr(X,"RegExp",Wi)}JC("RegExp");var $tt=new RegExp(" ","g");function _N(t){return t.replace($tt," ")}function hO(t,e){var n=t.length;if(n){var r=t[n-1];if(it.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function Vtt(t,e,n){return{type:"paragraph",children:[{text:B(t).text().replace(/\s+/gm," ")}]}}function t2(t,e){var n=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==Po.ELEMENT_NODE){if(l.nodeType===Po.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
  52. `)>=0)return;c&&(c=_N(c),hO(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(hO(u,`
  53. `)||u.push({text:`
  54. `}));var f=o5(B(l),a);Array.isArray(f)?f.forEach(function(p){return u.push(p)}):u.push(f)}}),u)}(t,e),r=function(i){for(var a in qv)if(i[0].matches(a))return qv[a];return Vtt}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){C.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),r5.forEach(function(a){i=a(t[0],i,e)}))}),o}function e2(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
  55. `));var n=t[0].textContent||"";n=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=_N(n)};return r5.forEach(function(o){r=o(t[0],r,e)}),r}function o5(t,e){ON.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var n=q9(t);return n==="span"?t.attr("data-w-e-type")?t2(t,e):e2(t,e):n==="code"?q9(t.parent())==="pre"?t2(t,e):e2(t,e):AN.includes(n)?e2(t,e):t2(t,e)}function BN(t,e,n){var r=B(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function gO(t,e){e===void 0&&(e="");var n=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=B("<div>"+e+"</div>");return Array.from(r.children()).forEach(function(o){var i=o5(B(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var Htt=yo.f,vO=_1.fastKey,mO=Mn.set,n2=Mn.getterFor,Utt={getConstructor:function(t,e,n,r){var o=t(function(l,c){B1(l,i),mO(l,{type:e,index:A1(null),first:void 0,last:void 0,size:0}),mn||(l.size=0),c!=null&&Cp(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=n2(e),u=function(l,c,f){var p,d,m=a(l),v=s(l,c);return v?v.value=f:(m.last=v={index:d=vO(c,!0),key:c,value:f,previous:p=m.last,next:void 0,removed:!1},m.first||(m.first=v),p&&(p.next=v),mn?m.size++:l.size++,d!=="F"&&(m.index[d]=v)),l},s=function(l,c){var f,p=a(l),d=vO(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return vc(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,mn?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),p=s(c,l);if(p){var d=p.next,m=p.previous;delete f.index[p.index],p.removed=!0,m&&(m.next=d),d&&(d.previous=m),f.first==p&&(f.first=d),f.last==p&&(f.last=m),mn?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=bs(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(p(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),vc(i,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),mn&&Htt(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=n2(e),i=n2(r);zC(t,e,function(a,u){mO(this,{type:r,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),JC(e)}};QI("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Utt);var yO=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function bO(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):I.insertNodes(t,e,{mode:"highest"})}var Wtt=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Yt(M.edges(o),2),a=i[0],u=i[1],s=C.void(e,{at:a.path}),l=C.void(e,{at:u.path});if(!M.isCollapsed(o)||s){var c=O.toDOMRange(e,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(w){w.textContent&&w.textContent.trim()!==""&&(p=w)}),l){var d=Yt(l,1)[0],m=c.cloneRange(),v=O.toDOMNode(e,d);m.setEndAfter(v),f=m.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(w){var S=w.getAttribute("data-slate-zero-width")==="n";w.textContent=S?`
  56. `:""}),iN(p)){var g=p.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(p),f.appendChild(g),p=g}var y=e.getFragment(),h=JSON.stringify(y),b=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var E=f.ownerDocument.createElement("div");return E.appendChild(f),E.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(E),r.setData("text/html",E.innerHTML),r.setData("text/plain",XQ(E)),f.ownerDocument.body.removeChild(E),r}}},e.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=Ir(f),m=d.next();!m.done;m=d.next()){var v=m.value;p&&I.splitNodes(e,{always:!0}),n(v),p=!0}}catch(g){o={error:g}}finally{try{m&&!m.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},e},xd=function(t){return t!=null},qtt={object:!0,function:!0,undefined:!0},Gtt=/^\s*class[\s{/}]/,Ktt=Function.prototype.toString,wO=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!xd(r)&&hasOwnProperty.call(qtt,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(e)}(t)&&!Gtt.test(Ktt.call(t))},i5=function(t){return t!=null},Ytt=Object.keys,Xtt=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return Ytt(i5(t)?Object(t):t)},Ztt=function(t){if(!i5(t))throw new TypeError("Cannot use null or undefined");return t},Jtt=Math.max,EO=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,i=Jtt(arguments.length,2);for(t=Object(Ztt(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r<i;++r)Xtt(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},Qtt=Array.prototype.forEach,tet=Object.create,eet=function(t,e){var n;for(n in t)e[n]=t[n]},SO=function(t){var e=tet(null);return Qtt.call(arguments,function(n){i5(n)&&eet(Object(n),e)}),e},r2="razdwatrzy",net=String.prototype.indexOf,Bf=typeof r2.contains=="function"&&r2.contains("dwa")===!0&&r2.contains("foo")===!1?String.prototype.contains:function(t){return net.call(this,t,arguments[1])>-1},_0=bh(function(t){var e=t.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],xd(n)?(o=Bf.call(n,"c"),i=Bf.call(n,"e"),a=Bf.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?EO(SO(u),s):s};e.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],xd(r)?wO(r)?xd(o)?wO(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,xd(n)?(i=Bf.call(n,"c"),a=Bf.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?EO(SO(u),s):s}}),o2=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},ret=bh(function(t,e){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,m=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(g,y){var h;return o2(y),m.call(this,"__ee__")?h=this.__ee__:(h=v.value=f(null),p(this,"__ee__",v),v.value=null),h[g]?typeof h[g]=="object"?h[g].push(y):h[g]=[h[g],y]:h[g]=y,this},r=function(g,y){var h,b;return o2(y),b=this,n.call(this,g,h=function(){o.call(b,g,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},o=function(g,y){var h,b,E,w;if(o2(y),!m.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof(b=h[g])=="object")for(w=0;E=b[w];++w)E!==y&&E.__eeOnceListener__!==y||(b.length===2?h[g]=b[w?0:1]:b.splice(w,1));else b!==y&&b.__eeOnceListener__!==y||delete h[g];return this},i=function(g){var y,h,b,E,w;if(m.call(this,"__ee__")&&(E=this.__ee__[g]))if(typeof E=="object"){for(h=arguments.length,w=new Array(h-1),y=1;y<h;++y)w[y-1]=arguments[y];for(E=E.slice(),y=0;b=E[y];++y)l.call(b,this,w)}else switch(arguments.length){case 1:c.call(E,this);break;case 2:c.call(E,this,arguments[1]);break;case 3:c.call(E,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,w=new Array(h-1),y=1;y<h;++y)w[y-1]=arguments[y];l.call(E,this,w)}},a={on:n,once:r,off:o,emit:i},u={on:_0(n),once:_0(r),off:_0(o),emit:_0(i)},s=d({},u),t.exports=e=function(g){return g==null?f(s):d(Object(g),u)},e.methods=a});function B0(t){var e=H9.get(t);return e==null&&(e=ret(),H9.set(t,e)),e}var Gv=new WeakMap;function CO(t,e){var n=Gv.get(t);n==null&&(n=new Set,Gv.set(t,n)),n.add(e)}function oet(t){return Gv.get(t)||new Set}function iet(t){Gv.set(t,new Set)}function a5(t){var e=O.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function u5(t){var e={top:"0",left:"0"},n=t.selection;if(n==null)return e;var r=a5(t);if(r==null)return e;var o=r.top,i=r.left,a=r.width,u=r.height,s=O.toDOMRange(t,n).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,p=s.left-i;if(p>a/2){var d=a-p;c.right=d+5+"px"}else c.left=p+5+"px";if(f>u/2){var m=u-f;c.bottom=m+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function s5(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=pt.isElement(e)&&t.isVoid(e),i=pt.isElement(e)&&t.isInline(e),a=Hv.get(e);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=function(D){var x=[];x.push(D);for(var k=0;x.length>0;){var N=x.pop();if(N==null||++k>1e4)break;var $=N.nodeName;if(N.nodeType===1){var R=$.toLowerCase();if(KQ.includes(R)||R==="iframe"||R==="video")return N;var K=N.children||[],U=K.length;if(U)for(var W=U-1;W>=0;W--)x.push(K[W])}}return null}(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var m=a5(t);if(m==null)return r;var v,g=m.top,y=m.left,h=m.width,b=m.height,E={},w=s-g,S=l-y;if(n==="bar")return E.left=S+"px",w>40?E.bottom=b-w+5+"px":E.top=w+c+5+"px",E;if(n==="modal")return o?i?S>(h-f)/2?E.right=h-S+5+"px":E.left=S+f+5+"px":E.left="20px":E.left=S+"px",o?((v=w)<0&&(v=0),E.top=v+"px"):w>(b-c)/2?E.bottom=b-w+5+"px":((v=w+c)<0&&(v=0),E.top=v+5+"px"),E;throw new Error("type '"+n+"' is invalid")}function CS(t,e){qr(function(){var n=a5(t);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),p=e.height(),d=l-o,m=c-i,v=e.attr("style");if(v.indexOf("top")>=0&&(r=d+p-u)>0){var g=e.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),e.css("top",y+"px")}if(v.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=m+f-a)>0){var E=e.css("left"),w=parseInt(E.toString())-r;w<0&&(w=0),e.css("left",w+"px")}if(v.indexOf("right")>=0&&c<0){var S=e.css("right"),D=parseInt(S.toString())-Math.abs(c);e.css("right",D+"px")}}})}var aet=O1("slice"),uet=Ie("species"),i2=X.Array,set=Math.max;Pe({target:"Array",proto:!0,forced:!aet},{slice:function(t,e){var n,r,o,i=ru(this),a=Ns(i),u=pc(t,a),s=pc(e===void 0?a:e,a);if(Nv(i)&&(n=i.constructor,(x1(n)&&(n===i2||Nv(n.prototype))||ye(n)&&(n=n[uet])===null)&&(n=void 0),n===i2||n===void 0))return fN(i,u,s);for(r=new(n===void 0?i2:n)(set(s-u,0)),o=0;u<s;u++,o++)u in i&&wp(r,o,i[u]);return r.length=o,r}});var cet=Eh.f,DO=mt("".startsWith),fet=mt("".slice),det=Math.min,FN=NC("startsWith"),pet=!FN&&!!function(){var t=cet(String.prototype,"startsWith");return t&&!t.writable}();Pe({target:"String",proto:!0,forced:!pet&&!FN},{startsWith:function(t){var e=ge(Wr(this));IC(t);var n=Nc(det(arguments.length>1?arguments[1]:void 0,e.length)),r=ge(t);return DO?DO(e,r,n):fet(e,n,n+r.length)===r}});var nl=Object.assign,xO=Object.defineProperty,het=mt([].concat),AO=!nl||ie(function(){if(mn&&nl({b:1},nl(xO({},"a",{enumerable:!0,get:function(){xO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),nl({},t)[n]!=7||Ml(nl({},e)).join("")!=r})?function(t,e){for(var n=nu(t),r=arguments.length,o=1,i=$I.f,a=LI.f;r>o;)for(var u,s=D1(arguments[o++]),l=i?het(Ml(s),i(s)):Ml(s),c=l.length,f=0;c>f;)u=l[f++],mn&&!Zt(a,s,u)||(n[u]=s[u]);return n}:nl;Pe({target:"Object",stat:!0,forced:Object.assign!==AO},{assign:AO});var get=["props","attrs","style","dataset","on","hook"];function TN(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!get.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=LY(l),function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(t,(u={},u[i]=s,u)),delete n[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&TN(i)})}var DS=[],PN={};function vet(t,e,n){return Dt(n.isInline(t)?"span":"div",null,e)}function OO(t,e){return e===void 0&&(e=!1),Dt("span",{"data-slate-string":!0},e?t+`
  57. `:t)}function a2(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),Dt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?Dt("br",null):null)}function xS(t,e,n,r){return Dp.set(t,e),mc.set(t,n),pt.isElement(t)?function(o,i){var a,u=O.findKey(i,o),s=i.isInline(o),l=C.isVoid(i,o),c=xN(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,m=d===void 0?[]:d,v=function(w){return PN[w]||vet}(p);a=l?null:m.map(function(w,S){return xS(w,S,o,i)});var g=v(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=Yt(Q.texts(o),1),b=Yt(h[0],1)[0],E=Dt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},xS(b,0,o,i));g=Dt(y,{style:{position:"relative"}},g,E),Dp.set(b,0),mc.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||s||(g=function(w,S){var D=S;return DS.forEach(function(x){D=x(w,S)}),D}(o,g)),qr(function(){var w=pS(c);w!=null&&(dS.set(u,w),Hv.set(o,w),Vv.set(w,o))}),g}(t,r):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=O.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=O.findPath(a,o),c=s([o,l]),f=it.decorations(o,c),p=f.map(function(v,g){var y=function(h,b,E,w,S){b===void 0&&(b=!1);var D=h.text,x=O.findPath(S,E),k=j.parent(x);if(C.isEditor(w))throw new Error("Text node "+JSON.stringify(E)+" parent is Editor");return S.isVoid(w)?a2(Q.string(w).length):D!==""||w.children[w.children.length-1]!==E||S.isInline(w)||C.string(S,k)!==""?D===""?a2():b&&D.slice(-1)===`
  58. `?OO(D,!0):OO(D):a2(0,!0)}(v,g===f.length-1,o,i,a);return y=function(h,b){var E=b;return DS.forEach(function(w){E=w(h,E)}),E}(v,y),Dt("span",{"data-slate-leaf":!0},y)}),d=function(v){return"w-e-text-"+v}(u.id),m=Dt("span",{"data-slate-node":"text",id:d,key:u.id},p);return qr(function(){var v=pS(d);v!=null&&(dS.set(u,v),Hv.set(o,v),Vv.set(v,o))}),m}(t,n,r)}function met(t,e){var n,r=t.$scroll,o=function(v){return"w-e-textarea-"+v}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(v,g){return g===void 0&&(g=!1),dc("div#"+v,{props:{contentEditable:!g}})}(o,a),l=e.children||[];s.children=l.map(function(v,g){var y=xS(v,g,e,e);return TN(y),y});var c=z9.get(t);if(c==null&&(c=!0),c){var f=function(v,g){return B(`<div
  59. id="`+v+`"
  60. data-slate-editor
  61. data-slate-node="value"
  62. suppressContentEditableWarning
  63. role="textarea"
  64. spellCheck="true"
  65. autoCorrect="true"
  66. autoCapitalize="true"
  67. ></div>`)}(o);r.append(f),t.$textArea=f,n=f[0],(d=aY([sY,dY,hY,lY,fY,uY]))(n,s),z9.set(t,!1),$9.set(t,d)}else{var p=V9.get(t),d=$9.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=pS(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var m=ZC(n);m&&oN.set(e,m)}XC.set(e,n),Hv.set(e,n),Vv.set(n,e),V9.set(t,s)}}function kO(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function _O(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function u2(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return _O(n.overflowY,e)||_O(n.overflowX,e)||function(r){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(t)}return!1}function F0(t,e,n,r,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=n||a>=e&&u>=n?i-t-r:a>e&&u<n||i<t&&u>n?a-e+o:0}function BO(t,e){var n=window,r=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Ot){return Ot!==a};if(!kO(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;kO(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&u2(f)&&!u2(document.documentElement)||f!=null&&u2(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=t.getBoundingClientRect(),y=g.height,h=g.width,b=g.top,E=g.right,w=g.bottom,S=g.left,D=o==="start"||o==="nearest"?b:o==="end"?w:b+y/2,x=i==="center"?S+h/2:i==="end"?E:S,k=[],N=0;N<c.length;N++){var $=c[N],R=$.getBoundingClientRect(),K=R.height,U=R.width,W=R.top,G=R.right,nt=R.bottom,ft=R.left;if(r==="if-needed"&&b>=0&&S>=0&&w<=d&&E<=p&&b>=W&&w<=nt&&S>=ft&&E<=G)return k;var ct=getComputedStyle($),st=parseInt(ct.borderLeftWidth,10),_=parseInt(ct.borderTopWidth,10),A=parseInt(ct.borderRightWidth,10),P=parseInt(ct.borderBottomWidth,10),V=0,Y=0,H="offsetWidth"in $?$.offsetWidth-$.clientWidth-st-A:0,at="offsetHeight"in $?$.offsetHeight-$.clientHeight-_-P:0;if(l===$)V=o==="start"?D:o==="end"?D-d:o==="nearest"?F0(v,v+d,d,_,P,v+D,v+D+y,y):D-d/2,Y=i==="start"?x:i==="center"?x-p/2:i==="end"?x-p:F0(m,m+p,p,st,A,m+x,m+x+h,h),V=Math.max(0,V+v),Y=Math.max(0,Y+m);else{V=o==="start"?D-W-_:o==="end"?D-nt+P+at:o==="nearest"?F0(W,nt,K,_,P+at,D,D+y,y):D-(W+K/2)+at/2,Y=i==="start"?x-ft-st:i==="center"?x-(ft+U/2)+H/2:i==="end"?x-G+A+H:F0(ft,G,U,st,A+H,x,x+h,h);var bt=$.scrollLeft,wt=$.scrollTop;D+=wt-(V=Math.max(0,Math.min(wt+V,$.scrollHeight-K+at))),x+=bt-(Y=Math.max(0,Math.min(bt+Y,$.scrollWidth-U+H)))}k.push({el:$,top:V,left:Y})}return k}function FO(t){return t===Object(t)&&Object.keys(t).length!==0}function Fr(t,e){return ws(e)&&O.hasDOMNode(t,e,{editable:!0})}function TO(t,e){if(t.getConfig().readOnly)return!1;var n=kl(t,e)&&O.toSlateNode(t,e);return C.isVoid(t,n)}function kl(t,e){return ws(e)&&O.hasDOMNode(t,e)}function jN(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=O.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=XC.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=O.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&M.equals(l,r)){var c=!0;if(M.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,m=void 0;(m=d[p])&&m.matches("table")&&(c=!1),(m=d[p-1])&&m.matches("table")&&(c=!1)}}if(c)return}}if(!r||O.hasRange(e,r)){t.isUpdatingSelection=!0;var v=r&&O.toDOMRange(e,r);if(v){M.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(h,b){var E=!h.ownerDocument.documentElement.contains(h);if(FO(b)&&typeof b.behavior=="function")return b.behavior(E?[]:BO(h,b));if(!E){var w=function(S){return S===!1?{block:"end",inline:"nearest"}:FO(S)?S:{block:"start",inline:"nearest"}}(b);(function(S,D){D===void 0&&(D="auto");var x="scrollBehavior"in document.body.style;S.forEach(function(k){var N=k.el,$=k.top,R=k.left;N.scroll&&x?N.scroll({top:$,left:R,behavior:D}):(N.scrollTop=$,N.scrollLeft=R)})})(BO(h,w),w.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){v&&Ld&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=O.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var s2=new WeakMap,PO=new WeakMap,yet={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},bet={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},wet={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Oe=function(t){var e=yet[t],n=bet[t],r=wet[t],o=e&&ib(e),i=n&&ib(n),a=r&&ib(r);return function(u){return!(!o||!o(u))||!!(hS&&i&&i(u))||!(hS||!a||!a(u))}},_e={isBold:Oe("bold"),isCompose:Oe("compose"),isMoveBackward:Oe("moveBackward"),isMoveForward:Oe("moveForward"),isDeleteBackward:Oe("deleteBackward"),isDeleteForward:Oe("deleteForward"),isDeleteLineBackward:Oe("deleteLineBackward"),isDeleteLineForward:Oe("deleteLineForward"),isDeleteWordBackward:Oe("deleteWordBackward"),isDeleteWordForward:Oe("deleteWordForward"),isExtendBackward:Oe("extendBackward"),isExtendForward:Oe("extendForward"),isExtendLineBackward:Oe("extendLineBackward"),isExtendLineForward:Oe("extendLineForward"),isItalic:Oe("italic"),isMoveLineBackward:Oe("moveLineBackward"),isMoveLineForward:Oe("moveLineForward"),isMoveWordBackward:Oe("moveWordBackward"),isMoveWordForward:Oe("moveWordForward"),isRedo:Oe("redo"),isSplitBlock:Oe("splitBlock"),isTransposeCharacter:Oe("transposeCharacter"),isUndo:Oe("undo"),isTab:Oe("tab"),isSelectAll:Oe("selectAll")};function Qe(t){t.preventDefault()}var Eet={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(Af&&!o&&Fr(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Yt(r.getTargetRanges(),1)[0];if(s){var l=O.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&M.equals(i,l)||I.select(n,l)}}if(i&&M.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";C.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":C.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":C.deleteForward(n);break;case"deleteContentBackward":C.deleteBackward(n);break;case"deleteEntireSoftLine":C.deleteBackward(n,{unit:"line"}),C.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":C.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":C.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":C.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":C.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":C.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":C.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":C.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!Vb.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&C.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&Fr(n,r.target)){var a=O.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===O.toDOMNode(n,n)||eo(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&ws(u)&&O.hasDOMNode(n,u)){var s=O.toSlateNode(n,u);if(pt.isElement(s)&&!n.isVoid(s))return}if(xf){var l=a.getSelection();l==null||l.removeAllRanges()}Zu.delete(n)}}}},focus:function(t,e,n){var r=O.toDOMNode(n,n),o=O.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,Ld&&t.target!==r?r.focus():Zu.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&kl(n,t.target)&&ws(t.target)){var r=O.toSlateNode(n,t.target),o=O.findPath(n,r);if(C.hasPath(n,o)&&Q.get(n,o)===r){var i=C.start(n,o),a=C.end(n,o),u=C.void(n,{at:i}),s=C.void(n,{at:a});if(u&&s&&j.equals(u[1],s[1])){var l=C.range(n,i);I.select(n,l)}}}},compositionstart:function(t,e,n){if(Fr(n,t.target)){var r=n.selection;if(r&&M.isExpanded(r)&&(C.deleteFragment(n),Promise.resolve().then(function(){jN(e,n,!0)})),r&&M.isCollapsed(r)){var o=O.toDOMRange(n,r).startContainer,i=o.textContent||"";s2.set(n,i),PO.set(n,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(Fr(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(gS||Ld)&&O.cleanExposedTexNodeInSelectionBlock(n);for(var i=M.isBackward(o)?o.focus:o.anchor,a=Yt(C.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Yt(C.node(n,i.path.slice(0,u+1)),1)[0];if(pt.isElement(s)&&((xf||Ld)&&s.type==="link"||s.type==="code")){O.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=O.getLeftLengthOfMaxLength(n);c<l.length?(O.toDOMRange(n,o).startContainer.textContent=s2.get(n)||"",c>0&&C.insertText(n,l.slice(0,c)),e.changeViewState()):C.insertText(n,l)}else C.insertText(n,l);xf||setTimeout(function(){var f=n.selection;if(f!=null){var p=PO.get(n);p!=null&&O.toDOMRange(n,f).startContainer!==p&&(p.textContent=s2.get(n)||"")}})}}}},compositionupdate:function(t,e,n){Fr(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&Fr(n,r.target)){if(function(a,u){var s=F1.get(a),l=s&&s.getMenus(),c=$v.get(a),f=c&&c.getMenus(),p=jr(jr({},l),f);for(var d in p){var m=p[d],v=m.hotkey;if(v&&$Y(v,u)&&!m.isDisabled(a)){var g=m.getValue(a);m.exec(a,g)}}}(n,r),_e.isTab(r))return Qe(r),void n.handleTab();if(_e.isRedo(r))return Qe(r),void(typeof n.redo=="function"&&n.redo());if(_e.isUndo(r))return Qe(r),void(typeof n.undo=="function"&&n.undo());if(_e.isMoveLineBackward(r))return Qe(r),void I.move(n,{unit:"line",reverse:!0});if(_e.isMoveLineForward(r))return Qe(r),void I.move(n,{unit:"line"});if(_e.isExtendLineBackward(r))return Qe(r),void I.move(n,{unit:"line",edge:"focus",reverse:!0});if(_e.isExtendLineForward(r))return Qe(r),void I.move(n,{unit:"line",edge:"focus"});if(_e.isMoveBackward(r))return Qe(r),void(o&&M.isCollapsed(o)?I.move(n,{reverse:!0}):I.collapse(n,{edge:"start"}));if(_e.isMoveForward(r))return Qe(r),void(o&&M.isCollapsed(o)?I.move(n):I.collapse(n,{edge:"end"}));if(_e.isMoveWordBackward(r))return Qe(r),o&&M.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word",reverse:!0});if(_e.isMoveWordForward(r))return Qe(r),o&&M.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word"});if(_e.isSelectAll(r))return Qe(r),void n.selectAll();if(Af){if((gS||xf)&&o&&(_e.isDeleteBackward(r)||_e.isDeleteForward(r))&&M.isCollapsed(o)){var i=Q.parent(n,o.anchor.path);if(pt.isElement(i)&&C.isVoid(n,i)&&C.isInline(n,i))return r.preventDefault(),void I.delete(n,{unit:"block"})}}else{if(_e.isBold(r)||_e.isItalic(r)||_e.isTransposeCharacter(r))return void Qe(r);if(_e.isSplitBlock(r))return Qe(r),void C.insertBreak(n);if(_e.isDeleteBackward(r))return Qe(r),void(o&&M.isExpanded(o)?C.deleteFragment(n,{direction:"backward"}):C.deleteBackward(n));if(_e.isDeleteForward(r))return Qe(r),void(o&&M.isExpanded(o)?C.deleteFragment(n,{direction:"forward"}):C.deleteForward(n));if(_e.isDeleteLineBackward(r))return Qe(r),void(o&&M.isExpanded(o)?C.deleteFragment(n,{direction:"backward"}):C.deleteBackward(n,{unit:"line"}));if(_e.isDeleteLineForward(r))return Qe(r),void(o&&M.isExpanded(o)?C.deleteFragment(n,{direction:"forward"}):C.deleteForward(n,{unit:"line"}));if(_e.isDeleteWordBackward(r))return Qe(r),void(o&&M.isExpanded(o)?C.deleteFragment(n,{direction:"backward"}):C.deleteBackward(n,{unit:"word"}));if(_e.isDeleteWordForward(r))return Qe(r),void(o&&M.isExpanded(o)?C.deleteFragment(n,{direction:"forward"}):C.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!Af&&!n.getConfig().readOnly&&Fr(n,t.target)){t.preventDefault();var r=t.key;C.insertText(n,r)}},copy:function(t,e,n){var r=t;if(Fr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&Fr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(M.isExpanded(o))C.deleteFragment(n);else{var a=Q.parent(n,o.anchor.path);C.isVoid(n,a)&&I.delete(n)}}},paste:function(t,e,n){Vb.set(n,!0);var r=t;if(!n.getConfig().readOnly&&Fr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void Vb.set(n,!1);if(!Af||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(t,e,n){if(kl(n,t.target)){var r=O.toSlateNode(n,t.target);C.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(kl(n,r.target)&&!n.getConfig().readOnly){var o=O.toSlateNode(n,r.target),i=O.findPath(n,o);if(C.isVoid(n,o)||C.void(n,{at:i,voids:!0})){var a=C.range(n,i);I.select(n,a)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&kl(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&kl(n,r.target)&&o!=null&&!(Af&&xf&&o.files.length>0)){r.preventDefault();var i=n.selection,a=O.findEventRange(n,r);I.select(n,a),e.isDraggingInternally&&(i&&I.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},Cet=1,Det=function(){function t(e){var n=this;this.id=Cet++,this.$textArea=null,this.$progressBar=B('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=B('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=vs(function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var p=O.findDocumentOrShadowRoot(s),d=p.activeElement,m=O.toDOMNode(s,s),v=p.getSelection();if(d===m?(u.latestElement=d,Zu.set(s,!0)):Zu.delete(s),!v)return I.deselect(s);var g=v.anchorNode,y=v.focusNode,h=Fr(s,g)||TO(s,g),b=Fr(s,y)||TO(s,y);if(h&&b){var E=O.toSlateRange(s,v,{exactMatch:!1,suppressThrow:!1});I.select(s,E)}else I.deselect(s)}})(n,a)},100);var r=B(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=B('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=B('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,qr(function(){var a=n.editorInstance,u=O.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=lS.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(yC(Eet,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",vs(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-O.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;met(this,n),function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=B('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}}(this,n),qr(function(){jN(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function l5(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&l5(e)}function c5(){return B('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function IN(){return B('<div class="w-e-bar-divider"></div>')}function NN(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=hS?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+`
  68. `+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}qC("match",function(t,e,n){return[function(r){var o=Wr(this),i=r==null?void 0:ys(r,t);return i?Zt(i,r,o):new RegExp(r)[t](ge(o))},function(r){var o=Ke(this),i=ge(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return Sp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Sp(o,i))!==null;){var f=ge(s[0]);l[c]=f,f===""&&(o.lastIndex=GC(i,Nc(o.lastIndex),u)),c++}return c===0?null:l}]});var f5=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button"></button>'),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,p=this.$button;if(f){var d=B(f);l5(d),p.append(d)}else p.text(u);NN(p,f,u,l,r),r&&f&&p.append(B('<span class="title">'+u+"</span>")),a&&p.css("width",a+"px"),p.attr("data-menu-key",e),this.$elem.append(p),qr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),hr(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=hr(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=hr(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=hr(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),xet=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return Lc(e,t),e.prototype.onButtonClick=function(){},e}(f5),d5=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=fS.get(e);n==null&&(n=new Set,fS.set(e,n)),n.add(this),Fg.set(this,e)},t.prototype.renderContent=function(e){var n=this.$elem;n.empty(),n.append(e);var r=this.genSelfElem();r&&n.append(r)},t.prototype.appendTo=function(e){var n=this.$elem;e.append(n)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=Fg.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=Fg.get(this);e&&e.emit("modalOrPanelHide")}},t}(),Aet=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=B('<div class="w-e-drop-panel"></div>'),r}return Lc(e,t),e.prototype.genSelfElem=function(){return null},e}(d5),Oet=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=c5();i.$button.append(a)}return i}return Lc(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=hr(this);if(this.dropPanel==null){var o=new Aet(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(f5),ket=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=B('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return Lc(e,t),e.prototype.genSelfElem=function(){var n=this,r=B('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=Fg.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(d5);function gr(t,e,n){var r=B('<label class="babel-container"></label>');r.append("<span>"+t+"</span>");var o=B('<input type="text" id="'+e+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function Mc(t,e){var n=B('<div class="button-container"></div>'),r=B('<button type="button" id="'+t+'">'+e+"</button>");return n.append(r),[n[0],r[0]]}var _et=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;return i.$body=B("body"),i.modal=null,i.menu=r,i}return Lc(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=hr(this),r=this.menu.getModalPositionNode(n);return pt.isElement(r)?s5(n,r,"modal"):u5(n)},e.prototype.handleModal=function(){var n=hr(this),r=this.menu;if(this.modal==null){var o=new ket(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=hr(this),i=this.menu;if(i.getModalContentElem!=null){var a=O.getTextarea(o),u=O.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||CS(o,n.$elem),setTimeout(function(){o.blur()})}},e}(f5),Bet=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=B('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return Lc(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=B("<ul></ul>");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=B('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=B('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(B('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(d5),Fet=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",e),NN(p,l,a,f,r),this.$elem.append(p),this.menu=n,qr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),hr(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=hr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new Bet(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=B(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var n=hr(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=hr(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var p=u[f];if(p.value===s){c=p.text;break}}return c}(n.getOptions(e),r.toString()),i=this.$button,a=c5();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=hr(this),n=this.menu.isDisabled(e),r=this.$button;(e.selection==null||e.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),jO=function(){function t(e){this.$elem=B('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=B('<div class="w-e-bar-item-menus-container"></div>'),this.$button=B('<button type="button"></button>');var n=e.key,r=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(r){var u=B(r);l5(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=c5();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){B(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),IO=new WeakMap;function hr(t){var e=YC.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function RN(t,e,n){n===void 0&&(n=!1);var r=IO.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new Oet(t,e,n):a?new _et(t,e,n):new xet(t,e,n)}if(o==="select"&&(r=new Fet(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return IO.set(e,r),r}function Tet(t,e){var n=t.selection;return n!=null&&!M.isCollapsed(n)&&!O.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!it.isText(e)}var Pet=function(){function t(){var e=this;this.$elem=B('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=pI(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&pt.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),qr(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),O.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;qr(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=IN();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=xp[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),r[e]=o}var a=RN(e,o);this.hoverbarItems.push(a),YC.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),pt.isElement(e)){var o=s5(n,e,"bar");return r.css(o),void CS(n,r)}if(it.isText(e))return o=u5(n),r.css(o),void CS(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,p=l||function(v,g){return O.checkNodeType(g,u)},d=Yt(C.nodes(e,{match:function(v){return p(e,v)},universal:!0}),1),m=d[0];if(m!=null)return r=m[0],o=f,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=cS.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=Tet),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=O.findPath(null,e),o=O.findPath(null,n);return j.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function LN(t,e,n,r){if(Dp.set(t,e),mc.set(t,n),pt.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return LN(u,s,t,r)}),C.isVoid(r,t)){var i=Yt(Q.texts(t),1),a=Yt(i[0],1)[0];Dp.set(a,0),mc.set(a,t)}}}function jet(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(y=>{var h=y,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:E}=h,{redos:w}=E;if(w.length>0){var S=w[w.length-1];Tl.withoutSaving(h,()=>{C.withoutNormalizing(h,()=>{for(var D of S)h.apply(D)})}),E.redos.pop(),E.undos.push(S)}},h.undo=()=>{var{history:E}=h,{undos:w}=E;if(w.length>0){var S=w[w.length-1];Tl.withoutSaving(h,()=>{C.withoutNormalizing(h,()=>{var D=S.map(ga.inverse).reverse();for(var x of D)h.apply(x)})}),E.redos.push(S),E.undos.pop()}},h.apply=E=>{var{operations:w,history:S}=h,{undos:D}=S,x=D[D.length-1],k=x&&x[x.length-1],N=((U,W)=>!(!W||U.type!=="set_selection"||W.type!=="set_selection"))(E,k),$=Tl.isSaving(h),R=Tl.isMerging(h);if($==null&&($=((U,W)=>U.type!=="set_selection"||U.properties!=null&&U.newProperties!=null)(E)),$){if(R==null&&(R=x!=null&&(w.length!==0||((U,W)=>U.type==="set_selection"||!(!W||U.type!=="insert_text"||W.type!=="insert_text"||U.offset!==W.offset+W.text.length||!j.equals(U.path,W.path))||!(!W||U.type!=="remove_text"||W.type!=="remove_text"||U.offset+U.text.length!==W.offset||!j.equals(U.path,W.path)))(E,k)||N)),x&&R)N&&x.pop(),x.push(E);else{var K=[E];D.push(K)}for(;D.length>100;)D.shift();(U=>U.type!=="set_selection")(E)&&(S.redos=[])}b(E)},h})(function(y){var h=y,b=h.insertText,E=h.insertNode,w=h.insertFragment,S=h.dangerouslyInsertHtml;return h.insertText=function(D){if(h.getConfig().maxLength){var x=O.getLeftLengthOfMaxLength(h);x<=0||(x<D.length?b(D.slice(0,x)):b(D))}else b(D)},h.insertNode=function(D){if(h.getConfig().maxLength){var x=O.getLeftLengthOfMaxLength(h);x<=0||x<Q.string(D).length||E(D)}else E(D)},h.insertFragment=function(D){if(h.getConfig().maxLength)if(D.length!==1)D.forEach(function(k){h.insertNode(k)});else{var x=D[0];if(O.getLeftLengthOfMaxLength(h)<Q.string(x).length)return;w(D)}else w(D)},h.dangerouslyInsertHtml=function(D,x){if(D===void 0&&(D=""),x===void 0&&(x=!1),D)if(h.getConfig().maxLength){var k=O.getLeftLengthOfMaxLength(h);if(!(k<=0)){var N=document.createElement("div");N.innerHTML=D;var $=Array.from(N.childNodes).reduce(function(R,K){var U=K.nodeType,W=K.nodeName;return K?U===Po.TEXT_NODE?R+(K.textContent||""):U===Po.ELEMENT_NODE?yO.has(W.toLowerCase())?R:R+(K.textContent||""):R:R},"");k<$.length||S(D,x)}}else S(D,x)},h}(function(y){var h=y;return h.on=function(b,E){var w=B0(h);if(w.on(b,E),b==="destroyed"&&CO(h,E),b!=="destroyed"){var S=function(){return w.off(b,E)};w.on("destroyed",S),CO(h,S)}},h.once=function(b,E){B0(h).once(b,E)},h.off=function(b,E){B0(h).off(b,E)},h.emit=function(b){for(var E=[],w=1;w<arguments.length;w++)E[w-1]=arguments[w];var S=B0(h);S.emit.apply(S,aS([b],Yt(E))),b==="destroyed"&&(oet(h).forEach(function(D){return S.off("destroyed",D)}),iet(h))},h}(function(y){var h=y;return h.select=function(b){I.select(h,b)},h.deselect=function(){var b=h.selection,E=O.findDocumentOrShadowRoot(h).getSelection();E&&E.rangeCount>0&&E.removeAllRanges(),b&&I.deselect(y)},h.move=function(b,E){E===void 0&&(E=!1),b&&(b<0||I.move(y,{distance:b,unit:"character",reverse:E}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=$b.get(h);b!=null&&(h.focus(),I.select(h,b))},h.getSelectionPosition=function(){return u5(h)},h.getNodePosition=function(b){return s5(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var E=Yt(M.edges(b),2),w=E[0],S=E[1],D=Yt(C.edges(h,[]),2),x=D[0],k=D[1];return!(!It.equals(w,x)||!It.equals(S,k))},h.selectAll=function(){var b=C.start(h,[]),E=C.end(h,[]);I.select(h,{anchor:b,focus:E})},h}(function(y){var h=y,b=h.onChange,E=h.insertText,w=h.apply,S=h.deleteBackward;return h.insertText=function(D){h.getConfig().readOnly||E(D)},h.apply=function(D){var x,k,N,$,R,K,U,W,G=[];switch(D.type){case"insert_text":case"remove_text":case"set_node":try{for(var nt=Ir(C.levels(h,{at:D.path})),ft=nt.next();!ft.done;ft=nt.next()){var ct=Yt(ft.value,2),st=ct[0],_=ct[1],A=O.findKey(h,st);G.push([_,A])}}catch(Vt){x={error:Vt}}finally{try{ft&&!ft.done&&(k=nt.return)&&k.call(nt)}finally{if(x)throw x.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var P=Ir(C.levels(h,{at:j.parent(D.path)})),V=P.next();!V.done;V=P.next()){var Y=Yt(V.value,2);st=Y[0],_=Y[1],A=O.findKey(h,st),G.push([_,A])}}catch(Vt){N={error:Vt}}finally{try{V&&!V.done&&($=P.return)&&$.call(P)}finally{if(N)throw N.error}}break;case"move_node":try{for(var H=Ir(C.levels(h,{at:j.common(j.parent(D.path),j.parent(D.newPath))})),at=H.next();!at.done;at=H.next()){var bt=Yt(at.value,2);st=bt[0],_=bt[1],A=O.findKey(h,st),G.push([_,A])}}catch(Vt){R={error:Vt}}finally{try{at&&!at.done&&(K=H.return)&&K.call(H)}finally{if(R)throw R.error}}}w(D);try{for(var wt=Ir(G),Ot=wt.next();!Ot.done;Ot=wt.next()){var q=Yt(Ot.value,2);_=q[0],A=q[1],st=Yt(C.node(h,_),1)[0],Tg.set(st,A)}}catch(Vt){U={error:Vt}}finally{try{Ot&&!Ot.done&&(W=wt.return)&&W.call(wt)}finally{if(U)throw U.error}}},h.deleteBackward=function(D){if(D!=="line")return S(D);if(y.selection&&M.isCollapsed(y.selection)){var x=C.above(y,{match:function(R){return C.isBlock(y,R)},at:y.selection});if(x){var k=Yt(x,2)[1],N=C.range(y,k,y.selection.anchor),$=function(R,K){var U=C.range(R,M.end(K)),W=Array.from(C.positions(R,{at:K})),G=0,nt=W.length,ft=Math.floor(nt/2);if(lO(R,C.range(R,W[G]),U))return C.range(R,W[G],U);if(W.length<2)return C.range(R,W[W.length-1],U);for(;ft!==W.length&&ft!==G;)lO(R,C.range(R,W[ft]),U)?nt=ft:G=ft,ft=Math.floor((G+nt)/2);return C.range(R,W[nt],U)}(h,N);M.isCollapsed($)||I.delete(y,{at:$})}}},h.onChange=function(){var D=h.selection;D!=null&&$b.set(h,D),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var D=h.children;return(D===void 0?[]:D).map(function(x){return DN(x,h)}).join("")},h.getText=function(){var D=h.children;return(D===void 0?[]:D).map(function(x){return Q.string(x)}).join(`
  69. `)},h.getSelectionText=function(){var D=h.selection;return D==null?"":C.string(y,D)},h.getElemsByType=function(D,x){var k,N;x===void 0&&(x=!1);var $=[],R=C.nodes(h,{at:[],universal:!0});try{for(var K=Ir(R),U=K.next();!U.done;U=K.next()){var W=Yt(U.value,1)[0];if(pt.isElement(W)&&(x?W.type.indexOf(D)>=0:W.type===D)){var G=xN(O.findKey(h,W).id);$.push(jr(jr({},W),{id:G}))}}}catch(nt){k={error:nt}}finally{try{U&&!U.done&&(N=K.return)&&N.call(K)}finally{if(k)throw k.error}}return $},h.getElemsByTypePrefix=function(D){return h.getElemsByType(D,!0)},h.isEmpty=function(){var D=h.children,x=D===void 0?[]:D;if(x.length>1)return!1;var k=x[0];if(k==null)return!0;if(pt.isElement(k)&&k.type==="paragraph"){var N=k.children,$=N===void 0?[]:N;if($.length>1)return!1;var R=$[0];if(R==null||it.isText(R)&&R.text==="")return!0}return!1},h.clear=function(){I.delete(h,{at:{anchor:C.start(h,[]),focus:C.end(h,[])}}),h.children.length===0&&I.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(D){return O.getParentNode(h,D)},h.dangerouslyInsertHtml=function(D,x){if(D===void 0&&(D=""),x===void 0&&(x=!1),D){var k=document.createElement("div");k.innerHTML=D;var N=Array.from(k.childNodes);if(N=N.filter(function(U){var W=U.nodeType,G=U.nodeName;return W===Po.TEXT_NODE||W===Po.ELEMENT_NODE&&!yO.has(G.toLowerCase())}),N.length!==0){var $=h.selection;if($!=null){var R=null;O.isSelectedEmptyParagraph(h)&&!x&&(R=[$.focus.path[0]]),k.setAttribute("hidden","true"),document.body.appendChild(k);var K=0;N.forEach(function(U){var W=U.nodeType,G=U.nodeName,nt=U.textContent,ft=nt===void 0?"":nt;if(W!==Po.TEXT_NODE)if(G!=="BR"){var ct=U,st=!1;if(AN.includes(G.toLowerCase()))st=!0;else for(var _ in qv)if(ct.matches(_)){st=!0;break}if(st){var A=o5(B(ct),h);return Array.isArray(A)?(A.forEach(function(V){return bO(h,V)}),K++):(bO(h,A),K++),void(O.isSelectedVoidNode(h)&&h.move(1))}var P=window.getComputedStyle(ct).display;O.isSelectedEmptyParagraph(h)||P.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(ct.innerHTML,!0)}else h.insertText(`
  70. `);else{if(!ft||!ft.trim())return;h.insertNode({text:ft})}}),K&&R&&O.isEmptyPath(h,R)&&I.removeNodes(h,{at:R}),k.remove()}}}},h.setHtml=function(D){D===void 0&&(D="");var x=h.isDisabled(),k=h.isFocused(),N=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var $=gO(h,D);if(I.insertFragment(h,$),k||(h.deselect(),h.blur()),x&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(N))}catch{h.select(C.start(h,[]))}},h}(function(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var E in xp)b.push(E);return b},h.getConfig=function(){var b=M9.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var E=h.getConfig().MENU_CONF;return(E===void 0?{}:E)[b]||{}},h.alert=function(b,E){E===void 0&&(E="info");var w=h.getConfig().customAlert;w&&w(b,E)},h}(function(y){var h=Wtt(hG());return h.id="wangEditor-"+QQ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(O.toDOMNode(h,h).focus({preventScroll:!0}),Zu.set(h,!0),b){var E=C.end(h,[]);I.select(h,E)}else{var w=$b.get(h);w?I.select(h,w):I.select(h,C.start(h,[]))}},h.isFocused=function(){return!!Zu.get(h)},h.blur=function(){O.toDOMNode(h,h).blur(),I.deselect(h),Zu.set(h,!1)},h.updateView=function(){O.getTextarea(h).changeViewState();var b=O.getToolbar(h);b&&b.changeToolbarState();var E=O.getHoverbar(h);E&&E.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=O.getTextarea(h);b.destroy(),sS.delete(h),lS.delete(b);var E=O.getToolbar(h);E&&(E.destroy(),F1.delete(h),KC.delete(E));var w=O.getHoverbar(h);w&&(w.destroy(),$v.delete(h),cS.delete(w)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var E="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return E+=`
  71. You has disabled editor scroll, please do this yourself`,void console.warn(E)}var w=B("#"+b);if(w.length!==0){var S=w[0];if(!O.hasDOMNode(h,S))return E="Element (found by id is '"+b+"') is not in editor DOM",E+=`
  72. 通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(E,S);var D=O.getTextarea(h),x=D.$textAreaContainer,k=D.$scroll,N=w.offset().top,$=x.offset().top;k[0].scrollBy({top:N-$,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||O.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=fS.get(h);b!=null&&b.forEach(function(E){return E.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return O.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,E=O.getToolbar(h);E&&(b=E.$box);var w=O.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==w[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
  73. 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);w.addClass("w-e-full-screen-container");var S=w.css("z-index");w.attr("data-z-index",S.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=O.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return O.getTextarea(h).$textAreaContainer[0]},h}()))))));if(n&&function(y,h){return BN(y,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(y){y===void 0&&(y={});var h=hI(sN),b={},E=y.MENU_CONF,w=E===void 0?{}:E;return yC(h,function(S,D){b[D]=jr(jr({},S),w[D]||{})}),delete y.MENU_CONF,jr({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,D){window.alert(D+`:
  74. `+S)}},y)}(o);M9.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=gO(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),O.normalizeContent(l),n){var d=new Det(n);sS.set(l,d),lS.set(d,l),d.changeViewState(),qr(function(){var y=d.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
  75. Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var m=void 0;Object.keys(p).length>0&&(m=new Pet,cS.set(m,l),$v.set(l,m)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return LN(y,h,l,l)});var v=c.onCreated,g=c.onDestroyed;return v&&l.on("created",function(){return v(l)}),g&&l.on("destroyed",function(){return g(l)}),qr(function(){return l.emit("created")}),l}var Iet=O1("splice"),Net=X.TypeError,Ret=Math.max,Let=Math.min;Pe({target:"Array",proto:!0,forced:!Iet},{splice:function(t,e){var n,r,o,i,a,u,s=nu(this),l=Ns(s),c=pc(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=Let(Ret(wh(e),0),l-c)),l+n-r>9007199254740991)throw Net("Maximum allowed length exceeded");for(o=II(s,r),i=0;i<r;i++)(a=c+i)in s&&wp(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var Met=function(){function t(e,n){var r=this;this.$toolbar=B('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=pI(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=B(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),qr(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=hI(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(m,v){f.splice(s.index+v,0,m)}));var p=f.filter(function(m){if(typeof m=="string"){if(c.includes(m))return!1}else if(c.includes(m.key))return!1;return!0}),d=p.length;p.forEach(function(m,v){if(m==="|"){if(v===0||v+1===d||n==="|")return;var g=IN();return r.append(g),void(n=m)}if(typeof m=="string")return e.registerSingleItem(m,e),void(n=m);e.registerGroup(m),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new jO(l)}(e),i=e.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,o)}),r.append(o.$elem)},t.prototype.registerSingleItem=function(e,n){var r=this.getEditorInstance(),o=n instanceof jO,i=this.menus,a=i[e];if(a==null){var u=xp[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`'
  76. 重复注册了菜单栏 menu '`+e+"'");var s=RN(e,a,o);this.toolbarItems.push(s),YC.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=KC.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),zet=Ic.EXISTS,$et=yo.f,MN=Function.prototype,Vet=mt(MN.toString),zN=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Het=mt(zN.exec);function $N(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,p=f!==void 0&&f,d=t.headers,m=d===void 0?{}:d,v=t.withCredentials,g=v!==void 0&&v,y=t.timeout,h=y===void 0?1e4:y,b=t.onBeforeUpload,E=b===void 0?function(K){return K}:b,w=t.onSuccess,S=w===void 0?function(K,U){}:w,D=t.onError,x=D===void 0?function(K,U,W){console.error(K.name+" upload error",U,W)}:D,k=t.onProgress,N=k===void 0?function(K){}:k;if(!n)throw new Error(`Cannot get upload server address
  77. 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
  78. 没有配置 fieldName`);var $=n;p&&($=function(K,U){var W=Yt(K.split("#"),2),G=W[0],nt=W[1],ft=[];yC(U,function(st,_){ft.push(_+"="+st)});var ct=ft.join("&");return G=G.indexOf("?")>0?G+"&"+ct:G+"?"+ct,nt?G+"#"+nt:G}($,c));var R=new Sd({onBeforeUpload:E,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(hZ,{endpoint:$,headers:m,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:h});return R.on("upload-success",function(K,U){var W=U.body,G=W===void 0?{}:W;try{S(K,G)}catch(nt){console.error("wangEditor upload file - onSuccess error",nt)}R.removeFile(K.id)}),R.on("progress",function(K){K<1||N(K)}),R.on("upload-error",function(K,U,W){try{x(K,U,W)}catch(G){console.error("wangEditor upload file - onError error",G)}R.removeFile(K.id)}),R.on("restriction-failed",function(K,U){try{x(K,U)}catch(W){console.error("wangEditor upload file - onError error",W)}R.removeFile(K.id)}),R}function xa(t){return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xa(t)}function Uet(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){Uet(t,o,n[o])})}return t}function Ai(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Oi(t,e,n){return e&&NO(t.prototype,e),n&&NO(t,n),t}function Es(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Op(t,e){if(e&&(xa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Es(t)}function yc(t){return yc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yc(t)}function AS(t,e){return AS=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},AS(t,e)}function T1(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&AS(t,e)}mn&&!zet&&$et(MN,"name",{configurable:!0,get:function(){try{return Het(zN,Vet(this))[1]}catch{return""}}});var Wet={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},gi=new(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ai(this,t),this.init(e,n)}return Oi(t,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||Wet,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,r,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(e){return new t(this.logger,tn({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Wa=function(){function t(){Ai(this,t),this.observers={}}return Oi(t,[{key:"on",value:function(e,n){var r=this;return e.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(e,n){this.observers[e]&&(n?this.observers[e]=this.observers[e].filter(function(r){return r!==n}):delete this.observers[e])}},{key:"emit",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[e].concat(r))})}}}]),t}();function Ff(){var t,e,n=new Promise(function(r,o){t=r,e=o});return n.resolve=t,n.reject=e,n}function RO(t){return t==null?"":""+t}function qet(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function p5(t,e,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:r(i.shift())}}function LO(t,e,n){var r=p5(t,e,Object);r.obj[r.k]=n}function Kv(t,e){var n=p5(t,e),r=n.obj,o=n.k;if(r)return r[o]}function MO(t,e,n){var r=Kv(t,n);return r!==void 0?r:Kv(e,n)}function VN(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):VN(t[r],e[r],n):t[r]=e[r]);return t}function rl(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Get={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Ket(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return Get[e]}):t}var P1=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function HN(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];s===void 0&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?HN(s,l,n):void 0}o=o[r[i]]}return o}}var Yet=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ai(this,e),r=Op(this,yc(e).call(this)),P1&&Wa.call(Es(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return T1(e,Wa),Oi(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=Kv(this.data,s);return l||!u||typeof o!="string"?l:HN(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(i=r,r=(s=n.split("."))[1]),this.addNamespaces(r),LO(this.data,s,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=Kv(this.data,s)||{};i?VN(l,o,a):l=tn({},l,o),LO(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?tn({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),UN={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,n,r,o))}),e}},zO={},$O=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ai(this,e),r=Op(this,yc(e).call(this)),P1&&Wa.call(Es(r)),qet(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Es(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=gi.create("translator"),r}return T1(e,Wa),Oi(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(xa(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var m=this.resolve(n,r),v=m&&m.res,g=m&&m.usedKey||s,y=m&&m.exactUsedKey||s,h=Object.prototype.toString.apply(v),b=["[object Number]","[object Function]","[object RegExp]"],E=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if(w&&v&&S&&b.indexOf(h)<0&&(typeof E!="string"||h!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,v,tn({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var D=h==="[object Array]",x=D?[]:{},k=D?y:g;for(var N in v)if(Object.prototype.hasOwnProperty.call(v,N)){var $="".concat(k).concat(a).concat(N);x[N]=this.translate($,tn({},r,{joinArrays:!1,ns:l})),x[N]===$&&(x[N]=v[N])}v=x}}else if(w&&typeof E=="string"&&h==="[object Array]")(v=v.join(E))&&(v=this.extendTranslation(v,n,r,o));else{var R=!1,K=!1,U=r.count!==void 0&&typeof r.count!="string",W=e.hasDefaultValue(r),G=U?this.pluralResolver.getSuffix(f,r.count):"",nt=r["defaultValue".concat(G)]||r.defaultValue;!this.isValidLookup(v)&&W&&(R=!0,v=nt),this.isValidLookup(v)||(K=!0,v=s);var ft=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ct=ft&&K?void 0:v,st=W&&nt!==v&&this.options.updateMissing;if(K||R||st){if(this.logger.log(st?"updateKey":"missingKey",f,c,s,st?nt:v),a){var _=this.resolve(s,tn({},r,{keySeparator:!1}));_&&_.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var A=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(var V=0;V<P.length;V++)A.push(P[V]);else this.options.saveMissingTo==="all"?A=this.languageUtils.toResolveHierarchy(r.lng||this.language):A.push(r.lng||this.language);var Y=function(H,at,bt){i.options.missingKeyHandler?i.options.missingKeyHandler(H,c,at,st?bt:ct,st,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(H,c,at,st?bt:ct,st,r),i.emit("missingKey",H,c,at,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?A.forEach(function(H){i.pluralResolver.getSuffixes(H).forEach(function(at){Y([H],s+at,r["defaultValue".concat(at)]||nt)})}):Y(A,s,nt))}v=this.extendTranslation(v,n,r,m,o),K&&v===s&&this.options.appendNamespaceToMissingKey&&(v="".concat(c,":").concat(s)),(K||R)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(v))}return v}},{key:"extendTranslation",value:function(n,r,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(tn({},o,{interpolation:tn({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=tn({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var p=n.match(this.interpolator.nestingRegexp);s<(p&&p.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var v=arguments.length,g=new Array(v),y=0;y<v;y++)g[y]=arguments[y];return a&&a[0]===g[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(r[0])),null):u.translate.apply(u,g.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var d=o.postProcess||this.options.postProcess,m=typeof d=="string"?[d]:d;return n!=null&&m&&m.length&&o.applyPostProcessor!==!1&&(n=UN.handle(m,n,r,this.options&&this.options.postProcessPassResolved?tn({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),p=f.key;o=p;var d=f.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var m=l.count!==void 0&&typeof l.count!="string",v=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(y){s.isValidLookup(r)||(u=y,!zO["".concat(g[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(zO["".concat(g[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,E,w=p,S=[w];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,p,h,y,l):(m&&(b=s.pluralResolver.getSuffix(h,l.count)),m&&v&&S.push(w+b),v&&S.push(w+="".concat(s.options.contextSeparator).concat(l.context)),m&&S.push(w+=b));E=S.pop();)s.isValidLookup(r)||(i=E,r=s.getResource(h,y,E,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),e}();function l2(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Xet=function(){function t(e){Ai(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gi.create("languageUtils")}return Oi(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=l2(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=l2(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=l2(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&e.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),t}(),Zet=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Jet={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};function Qet(){var t={};return Zet.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:Jet[e.fc]}})}),t}var tnt=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ai(this,t),this.languageUtils=e,this.options=n,this.logger=gi.create("pluralResolver"),this.rules=Qet()}return Oi(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),ent=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ai(this,t),this.logger=gi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return Oi(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:Ket,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?rl(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?rl(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?rl(n.nestingPrefix):n.nestingPrefixEscaped||rl("$t("),this.nestingSuffix=n.nestingSuffix?rl(n.nestingSuffix):n.nestingSuffixEscaped||rl(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(v){return v.replace(/\$/g,"$$$$")}var f=function(v){if(v.indexOf(s.formatSeparator)<0){var g=MO(n,l,v);return s.alwaysFormat?s.format(g,void 0,r,tn({},o,n,{interpolationkey:v})):g}var y=v.split(s.formatSeparator),h=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(MO(n,l,h),b,r,tn({},o,n,{interpolationkey:h}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,m=[{regex:this.regexpUnescape,safeValue:function(v){return c(v)}},{regex:this.regexp,safeValue:function(v){return s.escapeValue?c(s.escape(v)):c(v)}}];return m.forEach(function(v){for(u=0;i=v.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var g=p(e,i,o);a=typeof g=="string"?g:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=RO(a));var y=v.safeValue(a);if(e=e.replace(i[0],y),d?(v.regex.lastIndex+=y.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=tn({},a);function s(p,d){var m=this.nestingOptionsSeparator;if(p.indexOf(m)<0)return p;var v=p.split(new RegExp("".concat(m,"[ ]*{"))),g="{".concat(v[1]);p=v[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),d&&(u=tn({},d,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),y),"".concat(p).concat(m).concat(g)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(p){return p.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=RO(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,tn({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),nnt=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ai(this,e),i=Op(this,yc(e).call(this)),P1&&Wa.call(Es(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=gi.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return T1(e,Wa),Oi(e,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var p=!0;r.forEach(function(d){var m="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[m]=2:a.state[m]<0||(a.state[m]===1?s.indexOf(m)<0&&s.push(m):(a.state[m]=1,p=!1,s.indexOf(m)<0&&s.push(m),u.indexOf(m)<0&&u.push(m),c.indexOf(d)<0&&c.push(d)))}),p||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),o&&this.store.addResourceBundle(a,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,p,d){var m=p5(c,f,Object),v=m.obj,g=m.k;v[g]=v[g]||[],v[g].push(p)})(l.loaded,[a],u),function(c,f){for(var p=c.indexOf(f);p!==-1;)c.splice(p,1),p=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,tn({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function rnt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if(xa(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),xa(t[2])==="object"||xa(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function VO(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function T0(){}var ont=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Ai(this,e),n=Op(this,yc(e).call(this)),P1&&Wa.call(Es(n)),n.options=VO(r),n.services={},n.logger=gi,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),Op(n,Es(n));setTimeout(function(){n.init(r,o)},0)}return n}return T1(e,Wa),Oi(e,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(d){return d?typeof d=="function"?new d:d:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=tn({},rnt(),this.options,VO(r)),this.format=this.options.interpolation.format,o||(o=T0),!this.options.isClone){this.modules.logger?gi.init(i(this.modules.logger),this.options):gi.init(null,this.options);var a=new Xet(this.options);this.store=new Yet(this.options.resources,this.options);var u=this.services;u.logger=gi,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new tnt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new ent(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new nnt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var m=arguments.length,v=new Array(m>1?m-1:0),g=1;g<m;g++)v[g-1]=arguments[g];n.emit.apply(n,[d].concat(v))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new $O(this.services,this.options),this.translator.on("*",function(d){for(var m=arguments.length,v=new Array(m>1?m-1:0),g=1;g<m;g++)v[g-1]=arguments[g];n.emit.apply(n,[d].concat(v))}),this.modules.external.forEach(function(d){d.init&&d.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(d){n[d]=function(){var m;return(m=n.store)[d].apply(m,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(d){n[d]=function(){var m;return(m=n.store)[d].apply(m,arguments),n}});var f=Ff(),p=function(){var d=function(m,v){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(v),o(m,v)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return d(null,n.t.bind(n));n.changeLanguage(n.options.lng,d)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T0,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=Ff();return n||(n=this.languages),r||(r=this.options.ns),o||(o=T0),this.services.backendConnector.reload(n,r,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&UN.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=Ff();this.emit("languageChanging",n);var a=function(u){n||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function u(s,l){var c;if(xa(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d<f;d++)p[d-2]=arguments[d];c=i.options.overloadTranslationOptionHandler([s,l].concat(p))}else c=tn({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var m=i.options.keySeparator||".",v=o?"".concat(o).concat(m).concat(s):s;return i.t(v,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=o,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var p=r.services.backendConnector.state["".concat(c,"|").concat(f)];return p===-1||p===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=Ff();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),r&&r(a)}),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=Ff();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T0,i=tn({},this.options,r,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=tn({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new $O(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),kp=new ont;function ir(t,e){kp.addResourceBundle(t,"translation",e,!0,!0)}function int(t){kp.changeLanguage(t)}kp.init({lng:"zh-CN",resources:{}});var tt=kp.t.bind(kp);ir("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),ir("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var ant=nC?{}.toString:function(){return"[object "+d1(this)+"]"};nC||Sa(Object.prototype,"toString",ant,{unsafe:!0});var HO=Array.isArray||function(t){return Wu(t)=="Array"},WN=function(){},unt=[],qN=fh("Reflect","construct"),h5=/^\s*(?:class|function)\b/,snt=pe(h5.exec),lnt=!h5.exec(WN),Tf=function(t){if(!rn(t))return!1;try{return qN(WN,unt,t),!0}catch{return!1}},cnt=!qN||En(function(){var t;return Tf(Tf.call)||!Tf(Object)||!Tf(function(){t=!0})||t})?function(t){if(!rn(t))return!1;switch(d1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return lnt||!!snt(h5,Z3(t))}:Tf,fnt=qn("species"),UO=At.Array,dnt=function(t,e){return new(function(n){var r;return HO(n)&&(r=n.constructor,(cnt(r)&&(r===UO||HO(r.prototype))||ro(r)&&(r=r[fnt])===null)&&(r=void 0)),r===void 0?UO:r}(t))(e===0?0:e)},WO=pe([].push),qi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=G3(s),v=lj(m),g=Ej(l,c),y=f1(v),h=0,b=f||dnt,E=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=g(p=v[h],h,m),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:WO(E,p)}else switch(t){case 4:return!1;case 7:WO(E,p)}return i?-1:r||o?o:E}},pnt={forEach:qi(0),map:qi(1),filter:qi(2),some:qi(3),every:qi(4),find:qi(5),findIndex:qi(6),filterReject:qi(7)}.forEach,hnt=function(t,e){var n=[][t];return!!n&&En(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),c2=hnt?[].forEach:function(t){return pnt(this,t,arguments.length>1?arguments[1]:void 0)},GN=function(t){if(t&&t.forEach!==c2)try{Wn(t,"forEach",c2)}catch{t.forEach=c2}};for(var f2 in hv)hv[f2]&&GN(At[f2]&&At[f2].prototype);GN(Dj),ir("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),ir("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var gnt={type:"paragraph",renderElem:function(t,e,n){return Dt("p",null,e)}},Yv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function j1(t){var e={exports:{}};return t(e,e.exports),e.exports}var Gi,Pg,P0=function(t){return t&&t.Math==Math&&t},Bt=P0(typeof globalThis=="object"&&globalThis)||P0(typeof window=="object"&&window)||P0(typeof self=="object"&&self)||P0(typeof Yv=="object"&&Yv)||function(){return this}()||Function("return this")(),je=function(t){try{return!!t()}catch{return!0}},vo=!je(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Pf=Function.prototype.call,Ve=Pf.bind?Pf.bind(Pf):function(){return Pf.apply(Pf,arguments)},qO={}.propertyIsEnumerable,GO=Object.getOwnPropertyDescriptor,vnt=GO&&!qO.call({1:2},1)?function(t){var e=GO(this,t);return!!e&&e.enumerable}:qO,KN={f:vnt},g5=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},YN=Function.prototype,OS=YN.bind,kS=YN.call,mnt=OS&&OS.bind(kS),St=OS?function(t){return t&&mnt(kS,t)}:function(t){return t&&function(){return kS.apply(t,arguments)}},ynt=St({}.toString),bnt=St("".slice),Aa=function(t){return bnt(ynt(t),8,-1)},d2=Bt.Object,wnt=St("".split),I1=je(function(){return!d2("z").propertyIsEnumerable(0)})?function(t){return Aa(t)=="String"?wnt(t,""):d2(t)}:d2,Ent=Bt.TypeError,Gr=function(t){if(t==null)throw Ent("Can't call method on "+t);return t},zc=function(t){return I1(Gr(t))},xn=function(t){return typeof t=="function"},Nr=function(t){return typeof t=="object"?t!==null:xn(t)},Snt=function(t){return xn(t)?t:void 0},Ch=function(t,e){return arguments.length<2?Snt(Bt[t]):Bt[t]&&Bt[t][e]},XN=St({}.isPrototypeOf),p2=Ch("navigator","userAgent")||"",KO=Bt.process,YO=Bt.Deno,XO=KO&&KO.versions||YO&&YO.version,ZO=XO&&XO.v8;ZO&&(Pg=(Gi=ZO.split("."))[0]>0&&Gi[0]<4?1:+(Gi[0]+Gi[1])),!Pg&&p2&&(!(Gi=p2.match(/Edge\/(\d+)/))||Gi[1]>=74)&&(Gi=p2.match(/Chrome\/(\d+)/))&&(Pg=+Gi[1]);var _S=Pg,BS=!!Object.getOwnPropertySymbols&&!je(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&_S&&_S<41}),v5=BS&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Cnt=Bt.Object,h2=v5?function(t){return typeof t=="symbol"}:function(t){var e=Ch("Symbol");return xn(e)&&XN(e.prototype,Cnt(t))},Dnt=Bt.String,ZN=function(t){try{return Dnt(t)}catch{return"Object"}},xnt=Bt.TypeError,JN=function(t){if(xn(t))return t;throw xnt(ZN(t)+" is not a function")},N1=function(t,e){var n=t[e];return n==null?void 0:JN(n)},Ant=Bt.TypeError,Ont=Object.defineProperty,m5=function(t,e){try{Ont(Bt,t,{value:e,configurable:!0,writable:!0})}catch{Bt[t]=e}return e},Oa=Bt["__core-js_shared__"]||m5("__core-js_shared__",{}),y5=j1(function(t){(t.exports=function(e,n){return Oa[e]||(Oa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),knt=Bt.Object,Dh=function(t){return knt(Gr(t))},_nt=St({}.hasOwnProperty),Mr=Object.hasOwn||function(t,e){return _nt(Dh(t),e)},Bnt=0,Fnt=Math.random(),Tnt=St(1 .toString),QN=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Tnt(++Bnt+Fnt,36)},jf=y5("wks"),Qu=Bt.Symbol,JO=Qu&&Qu.for,Pnt=v5?Qu:Qu&&Qu.withoutSetter||QN,xr=function(t){if(!Mr(jf,t)||!BS&&typeof jf[t]!="string"){var e="Symbol."+t;BS&&Mr(Qu,t)?jf[t]=Qu[t]:jf[t]=v5&&JO?JO(e):Pnt(e)}return jf[t]},jnt=Bt.TypeError,Int=xr("toPrimitive"),b5=function(t){var e=function(n,r){if(!Nr(n)||h2(n))return n;var o,i=N1(n,Int);if(i){if(r===void 0&&(r="default"),o=Ve(i,n,r),!Nr(o)||h2(o))return o;throw jnt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&xn(s=a.toString)&&!Nr(l=Ve(s,a))||xn(s=a.valueOf)&&!Nr(l=Ve(s,a))||u!=="string"&&xn(s=a.toString)&&!Nr(l=Ve(s,a)))return l;throw Ant("Can't convert object to primitive value")}(n,r)}(t,"string");return h2(e)?e:e+""},FS=Bt.document,Nnt=Nr(FS)&&Nr(FS.createElement),w5=function(t){return Nnt?FS.createElement(t):{}},tR=!vo&&!je(function(){return Object.defineProperty(w5("div"),"a",{get:function(){return 7}}).a!=7}),QO=Object.getOwnPropertyDescriptor,E5={f:vo?QO:function(t,e){if(t=zc(t),e=b5(e),tR)try{return QO(t,e)}catch{}if(Mr(t,e))return g5(!Ve(KN.f,t,e),t[e])}},Rnt=Bt.String,Lnt=Bt.TypeError,vr=function(t){if(Nr(t))return t;throw Lnt(Rnt(t)+" is not an object")},Mnt=Bt.TypeError,tk=Object.defineProperty,$c={f:vo?tk:function(t,e,n){if(vr(t),e=b5(e),vr(n),tR)try{return tk(t,e,n)}catch{}if("get"in n||"set"in n)throw Mnt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},bc=vo?function(t,e,n){return $c.f(t,e,g5(1,n))}:function(t,e,n){return t[e]=n,t},znt=St(Function.toString);xn(Oa.inspectSource)||(Oa.inspectSource=function(t){return znt(t)});var Xv,Vd,Zv,S5=Oa.inspectSource,ek=Bt.WeakMap,$nt=xn(ek)&&/native code/.test(S5(ek)),nk=y5("keys"),eR=function(t){return nk[t]||(nk[t]=QN(t))},C5={},TS=Bt.TypeError,Vnt=Bt.WeakMap;if($nt||Oa.state){var yu=Oa.state||(Oa.state=new Vnt),Hnt=St(yu.get),rk=St(yu.has),Unt=St(yu.set);Xv=function(t,e){if(rk(yu,t))throw new TS("Object already initialized");return e.facade=t,Unt(yu,t,e),e},Vd=function(t){return Hnt(yu,t)||{}},Zv=function(t){return rk(yu,t)}}else{var ol=eR("state");C5[ol]=!0,Xv=function(t,e){if(Mr(t,ol))throw new TS("Object already initialized");return e.facade=t,bc(t,ol,e),e},Vd=function(t){return Mr(t,ol)?t[ol]:{}},Zv=function(t){return Mr(t,ol)}}var PS={set:Xv,get:Vd,has:Zv,enforce:function(t){return Zv(t)?Vd(t):Xv(t,{})},getterFor:function(t){return function(e){var n;if(!Nr(e)||(n=Vd(e)).type!==t)throw TS("Incompatible receiver, "+t+" required");return n}}},nR=Function.prototype,Wnt=vo&&Object.getOwnPropertyDescriptor,g2=Mr(nR,"name"),R1={EXISTS:g2,PROPER:g2&&(function(){}).name==="something",CONFIGURABLE:g2&&(!vo||vo&&Wnt(nR,"name").configurable)},_p=j1(function(t){var e=R1.CONFIGURABLE,n=PS.get,r=PS.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;xn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mr(u,"name")||e&&u.name!==d)&&bc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Bt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:bc(i,a,u)):f?i[a]=u:m5(a,u)})(Function.prototype,"toString",function(){return xn(this)&&n(this).source||S5(this)})}),qnt=Math.ceil,Gnt=Math.floor,Vc=function(t){var e=+t;return e!=e||e===0?0:(e>0?Gnt:qnt)(e)},Knt=Math.max,Ynt=Math.min,Bp=function(t,e){var n=Vc(t);return n<0?Knt(n+e,0):Ynt(n,e)},Xnt=Math.min,xh=function(t){return t>0?Xnt(Vc(t),9007199254740991):0},L1=function(t){return xh(t.length)},ok=function(t){return function(e,n,r){var o,i=zc(e),a=L1(i),u=Bp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},rR={includes:ok(!0),indexOf:ok(!1)},Znt=rR.indexOf,ik=St([].push),oR=function(t,e){var n,r=zc(t),o=0,i=[];for(n in r)!Mr(C5,n)&&Mr(r,n)&&ik(i,n);for(;e.length>o;)Mr(r,n=e[o++])&&(~Znt(i,n)||ik(i,n));return i},Jv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jnt=Jv.concat("length","prototype"),Qnt={f:Object.getOwnPropertyNames||function(t){return oR(t,Jnt)}},iR={f:Object.getOwnPropertySymbols},trt=St([].concat),ert=Ch("Reflect","ownKeys")||function(t){var e=Qnt.f(vr(t)),n=iR.f;return n?trt(e,n(t)):e},nrt=function(t,e){for(var n=ert(e),r=$c.f,o=E5.f,i=0;i<n.length;i++){var a=n[i];Mr(t,a)||r(t,a,o(e,a))}},rrt=/#|\.prototype\./,Ah=function(t,e){var n=irt[ort(t)];return n==urt||n!=art&&(xn(e)?je(e):!!e)},ort=Ah.normalize=function(t){return String(t).replace(rrt,".").toLowerCase()},irt=Ah.data={},art=Ah.NATIVE="N",urt=Ah.POLYFILL="P",srt=Ah,lrt=E5.f,dn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Bt:l?Bt[u]||m5(u,{}):(Bt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=lrt(n,r))&&a.value:n[r],!srt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;nrt(i,o)}(t.sham||o&&o.sham)&&bc(i,"sham",!0),_p(n,r,i,t)}},ak=St(St.bind),Qv=Array.isArray||function(t){return Aa(t)=="Array"},aR={};aR[xr("toStringTag")]="z";var D5=String(aR)==="[object z]",crt=xr("toStringTag"),frt=Bt.Object,drt=Aa(function(){return arguments}())=="Arguments",x5=D5?Aa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=frt(t),crt))=="string"?n:drt?Aa(e):(r=Aa(e))=="Object"&&xn(e.callee)?"Arguments":r},uR=function(){},prt=[],sR=Ch("Reflect","construct"),A5=/^\s*(?:class|function)\b/,hrt=St(A5.exec),grt=!A5.exec(uR),If=function(t){if(!xn(t))return!1;try{return sR(uR,prt,t),!0}catch{return!1}},O5=!sR||je(function(){var t;return If(If.call)||!If(Object)||!If(function(){t=!0})||t})?function(t){if(!xn(t))return!1;switch(x5(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return grt||!!hrt(A5,S5(t))}:If,vrt=xr("species"),uk=Bt.Array,mrt=function(t,e){return new(function(n){var r;return Qv(n)&&(r=n.constructor,(O5(r)&&(r===uk||Qv(r.prototype))||Nr(r)&&(r=r[vrt])===null)&&(r=void 0)),r===void 0?uk:r}(t))(e===0?0:e)},sk=St([].push),Ki=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=Dh(s),v=I1(m),g=function(w,S){return JN(w),S===void 0?w:ak?ak(w,S):function(){return w.apply(S,arguments)}}(l,c),y=L1(v),h=0,b=f||mrt,E=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=g(p=v[h],h,m),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:sk(E,p)}else switch(t){case 4:return!1;case 7:sk(E,p)}return i?-1:r||o?o:E}},M1={forEach:Ki(0),map:Ki(1),filter:Ki(2),some:Ki(3),every:Ki(4),find:Ki(5),findIndex:Ki(6),filterReject:Ki(7)},yrt=xr("species"),k5=function(t){return _S>=51||!je(function(){var e=[];return(e.constructor={})[yrt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},brt=M1.filter;dn({target:"Array",proto:!0,forced:!k5("filter")},{filter:function(t){return brt(this,t,arguments.length>1?arguments[1]:void 0)}});var wrt=D5?{}.toString:function(){return"[object "+x5(this)+"]"};D5||_p(Object.prototype,"toString",wrt,{unsafe:!0});var j0,Ert=Bt.String,Te=function(t){if(x5(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ert(t)},lR=function(){var t=vr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},_5=Bt.RegExp,jS=je(function(){var t=_5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Srt=jS||je(function(){return!_5("a","y").sticky}),cR={BROKEN_CARET:jS||je(function(){var t=_5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Srt,UNSUPPORTED_Y:jS},Vl=Object.keys||function(t){return oR(t,Jv)},Crt=vo?Object.defineProperties:function(t,e){vr(t);for(var n,r=zc(e),o=Vl(e),i=o.length,a=0;i>a;)$c.f(t,n=o[a++],r[n]);return t},Drt=Ch("document","documentElement"),fR=eR("IE_PROTO"),v2=function(){},dR=function(t){return"<script>"+t+"<\/script>"},lk=function(t){t.write(dR("")),t.close();var e=t.parentWindow.Object;return t=null,e},jg=function(){try{j0=new ActiveXObject("htmlfile")}catch{}var t,e;jg=typeof document<"u"?document.domain&&j0?lk(j0):((e=w5("iframe")).style.display="none",Drt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(dR("document.F=Object")),t.close(),t.F):lk(j0);for(var n=Jv.length;n--;)delete jg.prototype[Jv[n]];return jg()};C5[fR]=!0;var ck,m2,pR=Object.create||function(t,e){var n;return t!==null?(v2.prototype=vr(t),n=new v2,v2.prototype=null,n[fR]=t):n=jg(),e===void 0?n:Crt(n,e)},xrt=Bt.RegExp,Art=je(function(){var t=xrt(".","s");return!(t.dotAll&&t.exec(`
  79. `)&&t.flags==="s")}),Ort=Bt.RegExp,krt=je(function(){var t=Ort("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),_rt=PS.get,Brt=y5("native-string-replace",String.prototype.replace),tm=RegExp.prototype.exec,IS=tm,Frt=St("".charAt),Trt=St("".indexOf),Prt=St("".replace),y2=St("".slice),b2=(m2=/b*/g,Ve(tm,ck=/a/,"a"),Ve(tm,m2,"a"),ck.lastIndex!==0||m2.lastIndex!==0),fk=cR.BROKEN_CARET,w2=/()??/.exec("")[1]!==void 0;(b2||w2||fk||Art||krt)&&(IS=function(t){var e,n,r,o,i,a,u,s=this,l=_rt(s),c=Te(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ve(IS,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=fk&&s.sticky,m=Ve(lR,s),v=s.source,g=0,y=c;if(d&&(m=Prt(m,"y",""),Trt(m,"g")===-1&&(m+="g"),y=y2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Frt(c,s.lastIndex-1)!==`
  80. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),w2&&(n=new RegExp("^"+v+"$(?!\\s)",m)),b2&&(r=s.lastIndex),o=Ve(tm,d?n:s,y),d?o?(o.input=y2(o.input,g),o[0]=y2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:b2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),w2&&o&&o.length>1&&Ve(Brt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=pR(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Fp=IS;dn({target:"RegExp",proto:!0,forced:/./.exec!==Fp},{exec:Fp});var B5=Function.prototype,dk=B5.apply,jrt=B5.bind,pk=B5.call,hR=typeof Reflect=="object"&&Reflect.apply||(jrt?pk.bind(dk):function(){return pk.apply(dk,arguments)}),Irt=xr("species"),E2=RegExp.prototype,F5=function(t,e,n,r){var o=xr(t),i=!je(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!je(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[Irt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=St(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var m=St(l),v=c.exec;return v===Fp||v===E2.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});_p(String.prototype,t,s[0]),_p(E2,o,s[1])}r&&bc(E2[o],"sham",!0)},Nrt=St("".charAt),hk=St("".charCodeAt),Rrt=St("".slice),Lrt=function(t){return function(e,n){var r,o,i=Te(Gr(e)),a=Vc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=hk(i,a))<55296||r>56319||a+1===u||(o=hk(i,a+1))<56320||o>57343?t?Nrt(i,a):r:t?Rrt(i,a,a+2):o-56320+(r-55296<<10)+65536}},Mrt=Lrt(!0),T5=function(t,e,n){return e+(n?Mrt(t,e).length:1)},zrt=Math.floor,S2=St("".charAt),$rt=St("".replace),C2=St("".slice),Vrt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Hrt=/\$([$&'`]|\d{1,2})/g,Urt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Hrt;return o!==void 0&&(o=Dh(o),s=Vrt),$rt(i,s,function(l,c){var f;switch(S2(c,0)){case"$":return"$";case"&":return t;case"`":return C2(e,0,n);case"'":return C2(e,a);case"<":f=o[C2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=zrt(p/10);return d===0?l:d<=u?r[d-1]===void 0?S2(c,1):r[d-1]+S2(c,1):l}f=r[p-1]}return f===void 0?"":f})},Wrt=Bt.TypeError,Tp=function(t,e){var n=t.exec;if(xn(n)){var r=Ve(n,t,e);return r!==null&&vr(r),r}if(Aa(t)==="RegExp")return Ve(Fp,t,e);throw Wrt("RegExp#exec called on incompatible receiver")},NS=xr("replace"),qrt=Math.max,Grt=Math.min,Krt=St([].concat),D2=St([].push),gk=St("".indexOf),vk=St("".slice),Yrt="a".replace(/./,"$0")==="$0",mk=!!/./[NS]&&/./[NS]("a","$0")==="";F5("replace",function(t,e,n){var r=mk?"$":"$0";return[function(o,i){var a=Gr(this),u=o==null?void 0:N1(o,NS);return u?Ve(u,o,a,i):Ve(e,Te(a),o,i)},function(o,i){var a=vr(this),u=Te(o);if(typeof i=="string"&&gk(i,r)===-1&&gk(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=xn(i);l||(i=Te(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=Tp(a,u);if(d===null||(D2(p,d),!c))break;Te(d[0])===""&&(a.lastIndex=T5(u,xh(a.lastIndex),f))}for(var m,v="",g=0,y=0;y<p.length;y++){for(var h=Te((d=p[y])[0]),b=qrt(Grt(Vc(d.index),u.length),0),E=[],w=1;w<d.length;w++)D2(E,(m=d[w])===void 0?m:String(m));var S=d.groups;if(l){var D=Krt([h],E,b,u);S!==void 0&&D2(D,S);var x=Te(hR(i,void 0,D))}else x=Urt(h,u,b,E,S,i);b>=g&&(v+=vk(u,g,b)+x,g=b+h.length)}return v+vk(u,g)}]},!!je(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Yrt||mk);var RS=xr("unscopables"),LS=Array.prototype;LS[RS]==null&&$c.f(LS,RS,{configurable:!0,value:pR(null)});var gR=function(t){LS[RS][t]=!0},Xrt=M1.find,yk=!0;"find"in[]&&Array(1).find(function(){yk=!1}),dn({target:"Array",proto:!0,forced:yk},{find:function(t){return Xrt(this,t,arguments.length>1?arguments[1]:void 0)}}),gR("find");var Zrt=xr("match"),vR=function(t){var e;return Nr(t)&&((e=t[Zrt])!==void 0?!!e:Aa(t)=="RegExp")},Jrt=Bt.TypeError,Qrt=xr("species"),mR=function(t,e,n){var r=b5(e);r in t?$c.f(t,r,g5(0,n)):t[r]=n},tot=Bt.Array,eot=Math.max,bk=function(t,e,n){for(var r=L1(t),o=Bp(e,r),i=Bp(n===void 0?r:n,r),a=tot(eot(i-o,0)),u=0;o<i;o++,u++)mR(a,u,t[o]);return a.length=u,a},il=cR.UNSUPPORTED_Y,not=Math.min,yR=[].push,rot=St(/./.exec),al=St(yR),Nf=St("".slice);F5("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Te(Gr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!vR(o))return Ve(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,m=new RegExp(o.source,p+"g");(s=Ve(Fp,m,a))&&!((l=m.lastIndex)>d&&(al(f,Nf(a,d,s.index)),s.length>1&&s.index<a.length&&hR(yR,f,bk(s,1)),c=s[0].length,d=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return d===a.length?!c&&rot(m,"")||al(f,""):al(f,Nf(a,d)),f.length>u?bk(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ve(e,this,o,i)}:e,[function(o,i){var a=Gr(this),u=o==null?void 0:N1(o,t);return u?Ve(u,o,a,i):Ve(r,Te(a),o,i)},function(o,i){var a=vr(this),u=Te(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(E,w){var S,D=vr(E).constructor;return D===void 0||(S=vr(D)[Qrt])==null?w:function(x){if(O5(x))return x;throw Jrt(ZN(x)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(il?"g":"y"),p=new l(il?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return Tp(p,u)===null?[u]:[];for(var m=0,v=0,g=[];v<u.length;){p.lastIndex=il?0:v;var y,h=Tp(p,il?Nf(u,v):u);if(h===null||(y=not(xh(p.lastIndex+(il?v:0)),u.length))===m)v=T5(u,v,c);else{if(al(g,Nf(u,m,v)),g.length===d)return g;for(var b=1;b<=h.length-1;b++)if(al(g,h[b]),g.length===d)return g;v=m=y}}return al(g,Nf(u,m)),g}]},!!je(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),il);var MS=`
  81. \v\f\r                 \u2028\u2029\uFEFF`,wk=St("".replace),em="["+MS+"]",oot=RegExp("^"+em+em+"*"),iot=RegExp(em+em+"*$"),x2=function(t){return function(e){var n=Te(Gr(e));return 1&t&&(n=wk(n,oot,"")),2&t&&(n=wk(n,iot,"")),n}},aot={start:x2(1),end:x2(2),trim:x2(3)},uot=R1.PROPER,sot=aot.trim;function P5(t){return B("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function Hc(t){return t.length===0?"":t[0].outerHTML}function Uc(t){return t.length?t[0].tagName.toLowerCase():""}function po(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}dn({target:"String",proto:!0,forced:je(function(){return!!MS.trim()||"​…᠎".trim()!=="​…᠎"||uot&&MS.trim.name!=="trim"})},{trim:function(){return sot(this)}}),dn({global:!0},{globalThis:Bt}),Ov&&(B.fn.css=Ov),Ur&&(B.fn.append=Ur),u7&&(B.fn.prepend=u7),nc&&(B.fn.addClass=nc),rc&&(B.fn.removeClass=rc),oc&&(B.fn.hasClass=oc),Ho&&(B.fn.on=Ho),r7&&(B.fn.off=r7),Ha&&(B.fn.focus=Ha),Hr&&(B.fn.attr=Hr),Cv&&(B.fn.removeAttr=Cv),ac&&(B.fn.hide=ac),Av&&(B.fn.show=Av),Bv&&(B.fn.parents=Bv),ic&&(B.fn.dataset=ic),Vo&&(B.fn.val=Vo),_v&&(B.fn.text=_v),Va&&(B.fn.html=Va),lc&&(B.fn.children=lc),cc&&(B.fn.remove=cc),sc&&(B.fn.find=sc),Dv&&(B.fn.width=Dv),xv&&(B.fn.height=xv),i7&&(B.fn.filter=i7),fc&&(B.fn.empty=fc);var lot={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},zS=function(t,e){return zS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},zS(t,e);/*! *****************************************************************************
  82. Copyright (c) Microsoft Corporation.
  83. Permission to use, copy, modify, and/or distribute this software for any
  84. purpose with or without fee is hereby granted.
  85. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  86. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  87. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  88. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  89. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  90. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  91. PERFORMANCE OF THIS SOFTWARE.
  92. ***************************************************************************** */};function ke(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}zS(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var qa=function(){return qa=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},qa.apply(this,arguments)};function ou(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function iu(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function bR(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ne(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Ek(t){var e=ne(C.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!pt.isElement(n)||n.type==="paragraph"||Q.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!it.isText(o[0])&&(I.setNodes(t,{type:"paragraph"}),!0)}var cot={renderElems:[gnt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[lot],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){Ek(r)||e(o)},r.deleteForward=function(o){Ek(r)||n(o)},r}},fot=/"/g,dot=St("".replace),Ad=function(t,e,n,r){var o=Te(Gr(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+dot(Te(r),fot,"&quot;")+'"'),i+">"+o+"</"+e+">"},Od=function(t){return je(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function A2(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function bu(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}dn({target:"String",proto:!0,forced:Od("bold")},{bold:function(){return Ad(this,"b","","")}}),dn({target:"String",proto:!0,forced:Od("italics")},{italics:function(){return Ad(this,"i","","")}}),dn({target:"String",proto:!0,forced:Od("sub")},{sub:function(){return Ad(this,"sub","","")}}),dn({target:"String",proto:!0,forced:Od("sup")},{sup:function(){return Ad(this,"sup","","")}});var Sk={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},O2=w5("span").classList,Ck=O2&&O2.constructor&&O2.constructor.prototype,pot=Ck===Object.prototype?void 0:Ck,wR=function(t,e){var n=[][t];return!!n&&je(function(){n.call(null,e||function(){throw 1},1)})},hot=M1.forEach,k2=wR("forEach")?[].forEach:function(t){return hot(this,t,arguments.length>1?arguments[1]:void 0)},ER=function(t){if(t&&t.forEach!==k2)try{bc(t,"forEach",k2)}catch{t.forEach=k2}};for(var _2 in Sk)Sk[_2]&&ER(Bt[_2]&&Bt[_2].prototype);function SR(t,e){return t.selection==null||!!ne(C.nodes(t,{match:function(n){return O.getNodeType(n)==="pre"||!!C.isVoid(t,n)},universal:!0}),1)[0]}function got(t,e){Object.keys(e).forEach(function(n){n!=="text"&&C.removeMark(t,n)})}ER(pot),dn({target:"Object",stat:!0,forced:je(function(){Vl(1)})},{keys:function(t){return Vl(Dh(t))}});var Rs=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=C.marks(e);return r?r[n]:!!ne(C.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return SR(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),vot='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',mot='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',yot='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',bot='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',wot='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',CR='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',DR='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',Eot='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',Sot='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',Cot='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Dot='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',xot='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Aot='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Oot='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',kot='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',_ot='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Bot='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Fot='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Tot='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Pot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=tt("textStyle.bold"),n.iconSvg=vot,n.hotkey="mod+b",n}return ke(e,t),e}(Rs),jot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=tt("textStyle.code"),n.iconSvg=wot,n.hotkey="mod+e",n}return ke(e,t),e}(Rs),Iot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=tt("textStyle.italic"),n.iconSvg=yot,n.hotkey="mod+i",n}return ke(e,t),e}(Rs),Not=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=tt("textStyle.through"),n.iconSvg=bot,n.hotkey="mod+shift+x",n}return ke(e,t),e}(Rs),Rot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=tt("textStyle.underline"),n.iconSvg=mot,n.hotkey="mod+u",n}return ke(e,t),e}(Rs),Lot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=tt("textStyle.sub"),n.iconSvg=Tot,n.hotkey="",n}return ke(e,t),e}(Rs),Mot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=tt("textStyle.sup"),n.iconSvg=Fot,n.hotkey="",n}return ke(e,t),e}(Rs),zot=function(){function t(){this.title=tt("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return SR(e)},t.prototype.exec=function(e,n){var r,o,i=C.nodes(e,{match:function(s){return it.isText(s)},universal:!0});try{for(var a=bR(i),u=a.next();!u.done;u=a.next())got(e,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},t}(),$ot={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(c=Dt("strong",null,c)),a&&(c=Dt("code",null,c)),o&&(c=Dt("em",null,c)),i&&(c=Dt("u",null,c)),u&&(c=Dt("s",null,c)),s&&(c=Dt("sub",null,c)),l&&(c=Dt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Pot}},{key:"underline",factory:function(){return new Rot}},{key:"italic",factory:function(){return new Iot}},{key:"through",factory:function(){return new Not}},{key:"code",factory:function(){return new jot}},{key:"sub",factory:function(){return new Lot}},{key:"sup",factory:function(){return new Mot}},{key:"clearStyle",factory:function(){return new zot}}],styleToHtml:function(t,e){if(!it.isText(t))return e;if(P5(e))return A2(t,e);var n=B(e);if(Uc(n)==="br")return A2(t,"<br>");var r=n.html();return r=A2(t,r),n.html(r),Hc(n)},parseStyleHtml:function(t,e,n){var r=B(t);if(!it.isText(e))return e;var o=e;return bu(r,"b,strong")&&(o.bold=!0),bu(r,"i,em")&&(o.italic=!0),bu(r,"u")&&(o.underline=!0),bu(r,"s,strike")&&(o.through=!0),bu(r,"sub")&&(o.sub=!0),bu(r,"sup")&&(o.sup=!0),bu(r,"code")&&(o.code=!0),o}};function Oh(t){return function(e,n,r){return Dt("h"+t,null,n)}}var Vot={type:"header1",renderElem:Oh(1)},Hot={type:"header2",renderElem:Oh(2)},Uot={type:"header3",renderElem:Oh(3)},Wot={type:"header4",renderElem:Oh(4)},qot={type:"header5",renderElem:Oh(5)},Got=R1.PROPER,$S=RegExp.prototype,xR=$S.toString,Kot=St(lR),Yot=je(function(){return xR.call({source:"a",flags:"b"})!="/a/b"}),Xot=Got&&xR.name!="toString";(Yot||Xot)&&_p(RegExp.prototype,"toString",function(){var t=vr(this),e=Te(t.source),n=t.flags;return"/"+e+"/"+Te(n===void 0&&XN($S,t)&&!("flags"in $S)?Kot(t):n)},{unsafe:!0});var B2,Zot=Bt.TypeError,AR=function(t){if(vR(t))throw Zot("The method doesn't accept regular expressions");return t},Jot=xr("match"),OR=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[Jot]=!1,"/./"[t](e)}catch{}}return!1},Qot=E5.f,Dk=St("".startsWith),tit=St("".slice),eit=Math.min,xk=OR("startsWith");function kR(t){var e=ne(C.nodes(t,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=ne(n,1)[0];return O.getNodeType(r)}function _R(t){return t.selection==null||!ne(C.nodes(t,{match:function(e){var n=O.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function BR(t,e){e&&I.setNodes(t,{type:e})}dn({target:"String",proto:!0,forced:!(!xk&&(B2=Qot(String.prototype,"startsWith"),B2&&!B2.writable)||xk)},{startsWith:function(t){var e=Te(Gr(this));AR(t);var n=xh(eit(arguments.length>1?arguments[1]:void 0,e.length)),r=Te(t);return Dk?Dk(e,r,n):tit(e,n,n+r.length)===r}});var nit=function(){function t(){this.title=tt("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(e){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:tt("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return kR(e)},t.prototype.isDisabled=function(e){return _R(e)},t.prototype.exec=function(e,n){BR(e,n.toString())},t}(),kh=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return kR(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return _R(e)},t.prototype.exec=function(e,n){var r=this.type;BR(e,n===r?"paragraph":r)},t}(),rit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return ke(e,t),e}(kh),oit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return ke(e,t),e}(kh),iit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return ke(e,t),e}(kh),ait=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return ke(e,t),e}(kh),uit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return ke(e,t),e}(kh),sit={key:"headerSelect",factory:function(){return new nit}},lit={key:"header1",factory:function(){return new rit}},cit={key:"header2",factory:function(){return new oit}},fit={key:"header3",factory:function(){return new iit}},dit={key:"header4",factory:function(){return new ait}},pit={key:"header5",factory:function(){return new uit}};function Rf(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function Lf(t){return function(e,n,r){var o=B(e);return(n=n.filter(function(i){return!!it.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var hit={renderElems:[Vot,Hot,Uot,Wot,qot],elemsToHtml:[{type:"header1",elemToHtml:Rf(1)},{type:"header2",elemToHtml:Rf(2)},{type:"header3",elemToHtml:Rf(3)},{type:"header4",elemToHtml:Rf(4)},{type:"header5",elemToHtml:Rf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Lf(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Lf(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Lf(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Lf(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Lf(5)}],menus:[sit,lit,cit,fit,dit,pit],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=ne(C.nodes(n,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&O.isSelectionAtLineEnd(t,r[1])?I.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},ul=Object.assign,Ak=Object.defineProperty,git=St([].concat),Ok=!ul||je(function(){if(vo&&ul({b:1},ul(Ak({},"a",{enumerable:!0,get:function(){Ak(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),ul({},t)[n]!=7||Vl(ul({},e)).join("")!=r})?function(t,e){for(var n=Dh(t),r=arguments.length,o=1,i=iR.f,a=KN.f;r>o;)for(var u,s=I1(arguments[o++]),l=i?git(Vl(s),i(s)):Vl(s),c=l.length,f=0;c>f;)u=l[f++],vo&&!Ve(a,s,u)||(n[u]=s[u]);return n}:ul;function Ss(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}dn({target:"Object",stat:!0,forced:Object.assign!==Ok},{assign:Ok});var vit={selector:"font",preParseHtml:function(t){var e=B(t);if(Uc(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},FR=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=C.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!ne(C.nodes(e,{match:function(n){return O.getNodeType(n)==="pre"||!!C.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=B('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=B(c).attr("data-value");f==="0"?C.removeMark(e,n):C.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=B('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=B('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=tt("color.default")),n==="bgColor"&&(u=tt("color.clear"));var s=B(`
  93. <li data-value="0" class="clear">
  94. <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
  95. `+u+`
  96. </li>
  97. `);return o.prepend(s),o[0]},t}(),mit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.color"),n.iconSvg=Eot,n.mark="color",n}return ke(e,t),e}(FR),yit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.bgColor"),n.iconSvg=Sot,n.mark="bgColor",n}return ke(e,t),e}(FR),kk=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],bit={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&Ss(i,{color:r}),o&&Ss(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((P5(e)||Uc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),Hc(n)):e},preParseHtml:[vit],parseStyleHtml:function(t,e,n){var r=B(t);if(!it.isText(e))return e;var o=e,i=po(r,"color");i&&(o.color=i);var a=po(r,"background-color");return a||(a=po(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new mit},config:{colors:kk}},{key:"bgColor",factory:function(){return new yit},config:{colors:kk}}]},wit=/^(?:\w+:)?\/\/(\S+)$/,Eit=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Sit=/^[^\s\.]+\.\S{2,}$/,Cit=rR.includes;function z1(t){return t===void 0&&(t="r"),t+"-"+Qj()}function j5(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function TR(t,e,n,r){return ou(this,void 0,void 0,function(){var o,i;return iu(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function PR(t,e,n){return ou(this,void 0,void 0,function(){var r;return iu(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function I5(t){return t.selection==null||!!O.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function F2(t,e){return{type:"link",url:j5(t),children:e?[{text:e}]:[]}}function jR(t,e,n){return ou(this,void 0,void 0,function(){var r,o,i;return iu(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),I5(t)?[2]:[4,TR("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,PR("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(M.isCollapsed(o)?(t.insertText(" "),i=F2(r,e),I.insertNodes(t,i),t.insertFragment([{text:" "}])):C.string(t,o)!==e?(t.deleteFragment(),i=F2(r,e),I.insertNodes(t,i)):(i=F2(r),I.wrapNodes(t,i,{split:!0}),I.collapse(t,{edge:"end"}))),[2]}})})}dn({target:"Array",proto:!0},{includes:function(t){return Cit(this,t,arguments.length>1?arguments[1]:void 0)}}),gR("includes");var Dit={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return Dt("a",{href:o,target:i===void 0?"_blank":i},e)}},xit={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function T2(){return z1("w-e-insert-link")}var Ait=function(){function t(){this.title=tt("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=T2(),this.urlInputId=T2(),this.buttonId=T2()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return I5(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=ne(gr(tt("link.text"),o),2),s=u[0],l=B(u[1]),c=ne(gr(tt("link.url"),i),2),f=c[0],p=B(c[1]),d=ne(Mc(a,tt("common.ok")),1)[0];if(this.$content==null){var m=B("<div></div>");m.on("click","#"+a,function(y){y.preventDefault();var h=m.find("#"+o).val(),b=m.find("#"+i).val();jR(e,h,b),e.hidePanelOrModal()}),this.$content=m}var v=this.$content;if(v.empty(),v.append(s),v.append(f),v.append(d),n==null||M.isCollapsed(n))l.val("");else{var g=C.string(e,n);l.val(g)}return p.val(""),setTimeout(function(){l.focus()}),v[0]},t}();function _k(){return z1("w-e-update-link")}var Oit=function(){function t(){this.title=tt("link.edit"),this.iconSvg=CR,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=_k(),this.buttonId=_k()}return t.prototype.getSelectedLinkElem=function(e){var n=O.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return O.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=ne(gr(tt("link.url"),n),2),i=o[0],a=B(o[1]),u=ne(Mc(r,tt("common.ok")),1)[0];if(this.$content==null){var s=B("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var p=O.getSelectedNodeByType(e,"link"),d=p?Q.string(p):"",m=s.find("#"+n).val();(function(v,g,y){ou(this,void 0,void 0,function(){var h,b;return iu(this,function(E){switch(E.label){case 0:return y?[4,TR("editLink",v,g,y)]:[2];case 1:return E.sent()?[4,PR("editLink",v,y)]:[2];case 2:return h=E.sent(),b={url:j5(h)},I.setNodes(v,b,{match:function(w){return O.checkNodeType(w,"link")}}),[2]}})})})(e,d,m),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),kit=function(){function t(){this.title=tt("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.unwrapNodes(e,{match:function(r){return O.checkNodeType(r,"link")}})},t}(),_it=function(){function t(){this.title=tt("link.view"),this.iconSvg=DR,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=O.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),Bk={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},Bit={renderElems:[Dit],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[xit],menus:[{key:"insertLink",factory:function(){return new Ait},config:Bk},{key:"editLink",factory:function(){return new Oit},config:Bk},{key:"unLink",factory:function(){return new kit}},{key:"viewLink",factory:function(){return new _it}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(wit);if(!c)return!1;var f=c[1];return!(!f||!Eit.test(f)&&!Sit.test(f))}(a)){if(!I5(o)){var u=o.selection;if(u!=null){var s=C.string(o,u);jR(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=ne(i,2),u=a[0],s=a[1];return O.getNodeType(u)!=="link"?r([u,s]):Q.string(u)===""?I.removeNodes(o,{at:s}):r([u,s])},o}},Fit=St(1 .valueOf),Tit=Bt.RangeError,Pit=Bt.RangeError,IR=Bt.String,NR=Math.floor,VS=St(function(t){var e=Te(Gr(this)),n="",r=Vc(t);if(r<0||r==1/0)throw Tit("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),Fk=St("".slice),Mf=St(1 .toFixed),jl=function(t,e,n){return e===0?n:e%2==1?jl(t,e-1,n*t):jl(t*t,e/2,n)},sl=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=NR(o/1e7)},P2=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=NR(r/e),r=r%e*1e7},Tk=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=IR(t[e]);n=n===""?r:n+VS("0",7-r.length)+r}return n};function Pk(t,e){return"w-e-image-container-"+O.findKey(t,e).id}dn({target:"Number",proto:!0,forced:je(function(){return Mf(8e-5,3)!=="0.000"||Mf(.9,0)!=="1"||Mf(1.255,2)!=="1.25"||Mf(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!je(function(){Mf({})})},{toFixed:function(t){var e,n,r,o,i=Fit(this),a=Vc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Pit("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return IR(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f}(i*jl(2,69,1))-69)<0?i*jl(2,-e,1):i/jl(2,e,1),n*=4503599627370496,(e=52-e)>0){for(sl(u,0,n),r=a;r>=7;)sl(u,1e7,0),r-=7;for(sl(u,jl(10,r,1),0),r=e-1;r>=23;)P2(u,1<<23),r-=23;P2(u,1<<r),sl(u,1,1),P2(u,2),l=Tk(u)}else sl(u,0,n),sl(u,1<<-e,0),l=Tk(u)+VS("0",a);return a>0?s+((o=l.length)<=a?"0."+VS("0",a-o)+l:Fk(l,0,o-a)+"."+Fk(l,o-a)):s+l}});var jit={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,p=f===void 0?"":f,d=c.height,m=d===void 0?"":d,v=O.isNodeSelected(n,t),g={};p&&(g.width="100%"),m&&(g.height="100%");var y=Dt("img",{style:g,src:o,alt:a,"data-href":s}),h=n.isDisabled();return v&&!h?function(b,E,w,S){var D=B("body"),x=Pk(b,E),k=S.width,N=S.height,$=0,R=0,K=0,U=!1,W=null;function G(st){W=function(){var P=B("#"+x);if(P.length===0)throw new Error("Cannot find image container elem");return P}(),$=st;var _=W.find("img");if(_.length===0)throw new Error("Cannot find image elem");R=_.width(),K=_.height(),D.on("mousemove",nt),D.on("mouseup",ft);var A=O.getHoverbar(b);A&&A.hideAndClean()}var nt=vs(function(st){st.preventDefault();var _=st.clientX,A=R+(U?$-_:_-$),P=K*(A/R);W!=null&&(A<=15||P<=15||(W.css("width",A+"px"),W.css("height",P+"px")))},100);function ft(st){if(D.off("mousemove",nt),W!=null){var _=W.width().toFixed(2),A=W.height().toFixed(2),P={style:qa(qa({},E.style),{width:_+"px",height:A+"px"})};I.setNodes(b,P,{at:O.findPath(b,E)}),D.off("mouseup",ft)}}var ct={};return k&&(ct.width=k),N&&(ct.height=N),Dt("div",{id:x,style:ct,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(st){var _=B(st.target);_.hasClass("w-e-image-dragger")&&(st.preventDefault(),(_.hasClass("left-top")||_.hasClass("left-bottom"))&&(U=!0),G(st.clientX))}}},w,Dt("div",{className:"w-e-image-dragger left-top"}),Dt("div",{className:"w-e-image-dragger right-top"}),Dt("div",{className:"w-e-image-dragger left-bottom"}),Dt("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,y,{width:p,height:m}):function(b,E,w,S){var D=S.width,x=S.height,k={};return D&&(k.width=D),x&&(k.height=x),Dt("div",{id:Pk(b,E),style:k,className:"w-e-image-container"},w)}(n,t,y,{width:p,height:m})}},Iit={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:po(r,"width"),height:po(r,"height")},children:[{text:""}]}}};function RR(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),ou(this,void 0,void 0,function(){var i,a;return iu(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function LR(t,e,n){return ou(this,void 0,void 0,function(){var r;return iu(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function ts(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),ou(this,void 0,void 0,function(){var o,i,a;return iu(this,function(u){switch(u.label){case 0:return[4,RR("insertImage",t,e,n,r)];case 1:return u.sent()?[4,LR("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:j5(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),O.getSelectedNodeByType(t,"image")&&t.move(1),$1(t)||(I.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function $1(t){var e=t.selection;return e==null||!M.isCollapsed(e)||!!ne(C.nodes(t,{match:function(n){var r=O.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!C.isVoid(t,n)},universal:!0}),1)[0]}function I0(){return z1("w-e-insert-image")}var Nit=function(){function t(){this.title=tt("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=I0(),this.altInputId=I0(),this.hrefInputId=I0(),this.buttonId=I0()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return $1(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=ne(gr(tt("image.src"),o),2),l=s[0],c=B(s[1]),f=ne(gr(tt("image.desc"),i),2),p=f[0],d=B(f[1]),m=ne(gr(tt("image.link"),a),2),v=m[0],g=B(m[1]),y=ne(Mc(u,tt("common.ok")),1)[0];if(this.$content==null){var h=B("<div></div>");h.on("click","#"+u,function(E){E.preventDefault();var w=h.find("#"+o).val().trim(),S=h.find("#"+i).val().trim(),D=h.find("#"+a).val().trim();n.insertImage(e,w,S,D),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(v),b.append(y),c.val(""),d.val(""),g.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||ts(e,n,r,o))},t}(),Rit=function(){function t(){this.title=tt("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.removeNodes(e,{match:function(r){return O.checkNodeType(r,"image")}})},t}();function N0(){return z1("w-e-edit-image")}var Lit=function(){function t(){this.title=tt("image.edit"),this.iconSvg=CR,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=N0(),this.altInputId=N0(),this.hrefInputId=N0(),this.buttonId=N0()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return O.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=ne(gr(tt("image.src"),o),2),c=l[0],f=B(l[1]),p=ne(gr(tt("image.desc"),i),2),d=p[0],m=B(p[1]),v=ne(gr(tt("image.link"),a),2),g=v[0],y=B(v[1]),h=ne(Mc(u,tt("common.ok")),1)[0];if(this.$content==null){var b=B("<div></div>");b.on("click","#"+u,function($){$.preventDefault();var R=b.find("#"+o).val(),K=b.find("#"+i).val(),U=b.find("#"+a).val();n.updateImage(e,R,K,U),e.hidePanelOrModal()}),this.$content=b}var E=this.$content;E.empty(),E.append(c),E.append(d),E.append(g),E.append(h);var w=s,S=w.src,D=w.alt,x=D===void 0?"":D,k=w.href,N=k===void 0?"":k;return f.val(S),m.val(x),y.val(N),setTimeout(function(){f.focus()}),E[0]},t.prototype.updateImage=function(e,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),ou(this,void 0,void 0,function(){var f,p,d,m,v,g;return iu(this,function(y){switch(y.label){case 0:return[4,RR("editImage",a,u,s,l)];case 1:return y.sent()?[4,LR("editImage",a,u)]:[2];case 2:return f=y.sent(),(p=O.getSelectedNodeByType(a,"image"))==null||(d=p.style,m={src:f,alt:s,href:l,style:qa(qa({},d===void 0?{}:d),c)},I.setNodes(a,m,{match:function(h){return O.checkNodeType(h,"image")}}),v=O.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(v)),[2]}})})}(e,n,r,o,i))},t}(),Mit=function(){function t(){this.title=tt("image.viewLink"),this.iconSvg=DR,this.tag="button"}return t.prototype.getValue=function(e){var n=O.getSelectedNodeByType(e,"image");return n&&n.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),N5=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return O.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=O.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:qa(qa({},i===void 0?{}:i),{width:this.value,height:""})};I.setNodes(e,a,{match:function(u){return O.checkNodeType(u,"image")}})}}},t}(),zit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return ke(e,t),e}(N5),$it=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return ke(e,t),e}(N5),Vit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return ke(e,t),e}(N5),jk={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},Hit={renderElems:[jit],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,p=l.height,d=p===void 0?"":p,m="";return f&&(m+="width: "+f+";"),d&&(m+="height: "+d+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+m+'"/>'}}],parseElemsHtml:[Iit],menus:[{key:"insertImage",factory:function(){return new Nit},config:jk},{key:"deleteImage",factory:function(){return new Rit}},{key:"editImage",factory:function(){return new Lit},config:jk},{key:"viewImageLink",factory:function(){return new Mit}},{key:"imageWidth30",factory:function(){return new zit}},{key:"imageWidth50",factory:function(){return new $it}},{key:"imageWidth100",factory:function(){return new Vit}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},Uit={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=Dt("div",{style:{margin:"5px 0"}},Dt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Dt("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(i){var a=O.findPath(n,t),u={checked:i.target.checked};I.setNodes(n,u,{at:a})}}})),Dt("span",null,e));return o}},Wit=function(){function t(){this.title=tt("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!O.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(n){if(C.isVoid(e,n)&&C.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);I.setNodes(e,{type:r?"paragraph":"todo"})},t}(),qit={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(i){return!!it.isText(i)||!!n.isInline(i)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},Git={renderElems:[Uit],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=B(t).find("li"),n=B('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[qit],menus:[{key:"todo",factory:function(){return new Wit}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&M.isCollapsed(o)){var i=O.getSelectedNodeByType(t,"todo");if(i&&Q.string(i).length===0)return void I.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},Kit={type:"blockquote",renderElem:function(t,e,n){return Dt("blockquote",null,e)}},Yit={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},Xit=function(){function t(){this.title=tt("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!O.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!ne(C.nodes(e,{match:function(n){var r=O.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";I.setNodes(e,{type:r},{mode:"highest"})}},t}(),Zit={key:"blockquote",factory:function(){return new Xit}},Jit=St([].slice),Qit=k5("slice"),tat=xr("species"),j2=Bt.Array,eat=Math.max;dn({target:"Array",proto:!0,forced:!Qit},{slice:function(t,e){var n,r,o,i=zc(this),a=L1(i),u=Bp(t,a),s=Bp(e===void 0?a:e,a);if(Qv(i)&&(n=i.constructor,(O5(n)&&(n===j2||Qv(n.prototype))||Nr(n)&&(n=n[tat])===null)&&(n=void 0),n===j2||n===void 0))return Jit(i,u,s);for(r=new(n===void 0?j2:n)(eat(s-u,0)),o=0;u<s;u++,o++)u in i&&mR(r,o,i[u]);return r.length=o,r}});var nat={renderElems:[Kit],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Yit],menus:[Zit],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(o==null)return e();var i=ne(C.nodes(t,{match:function(c){return O.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=O.findPath(t,a),s=C.end(t,u);if(It.equals(s,o.focus)){var l=Q.string(a);if(l&&l.slice(-1)===`
  98. `)return t.deleteBackward("character"),void I.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
  99. `)},r}},rat=function(){function t(){this.title=tt("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!ne(C.nodes(e,{match:function(n){return O.getNodeType(n)==="pre"||!!C.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=B('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=B(a).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=B("<li>"+i+"</li>");r.append(a)}),r[0]},t}(),oat={menus:[{key:"emotion",factory:function(){return new rat},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},iat={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},aat={selector:"font",preParseHtml:function(t){var e=B(t);if(Uc(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",iat[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},uat=St("".indexOf);dn({target:"String",proto:!0,forced:!OR("includes")},{includes:function(t){return!!~uat(Te(Gr(this)),Te(AR(t)),arguments.length>1?arguments[1]:void 0)}});var Yi,Ig,R0=function(t){return t&&t.Math==Math&&t},Nt=R0(typeof globalThis=="object"&&globalThis)||R0(typeof window=="object"&&window)||R0(typeof self=="object"&&self)||R0(typeof Yv=="object"&&Yv)||function(){return this}()||Function("return this")(),R5=Function.prototype,Ik=R5.apply,sat=R5.bind,Nk=R5.call,MR=typeof Reflect=="object"&&Reflect.apply||(sat?Nk.bind(Ik):function(){return Nk.apply(Ik,arguments)}),zR=Function.prototype,HS=zR.bind,US=zR.call,lat=HS&&HS.bind(US),He=HS?function(t){return t&&lat(US,t)}:function(t){return t&&function(){return US.apply(t,arguments)}},An=function(t){return typeof t=="function"},Sr=function(t){try{return!!t()}catch{return!0}},rr=!Sr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),zf=Function.prototype.call,uo=zf.bind?zf.bind(zf):function(){return zf.apply(zf,arguments)},Rk={}.propertyIsEnumerable,Lk=Object.getOwnPropertyDescriptor,cat=Lk&&!Rk.call({1:2},1)?function(t){var e=Lk(this,t);return!!e&&e.enumerable}:Rk,L5={f:cat},Cs=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},fat=He({}.toString),dat=He("".slice),es=function(t){return dat(fat(t),8,-1)},I2=Nt.Object,pat=He("".split),$R=Sr(function(){return!I2("z").propertyIsEnumerable(0)})?function(t){return es(t)=="String"?pat(t,""):I2(t)}:I2,hat=Nt.TypeError,M5=function(t){if(t==null)throw hat("Can't call method on "+t);return t},Xo=function(t){return $R(M5(t))},Rr=function(t){return typeof t=="object"?t!==null:An(t)},Tr={},Mk=function(t){return An(t)?t:void 0},_h=function(t,e){return arguments.length<2?Mk(Tr[t])||Mk(Nt[t]):Tr[t]&&Tr[t][e]||Nt[t]&&Nt[t][e]},VR=He({}.isPrototypeOf),N2=_h("navigator","userAgent")||"",zk=Nt.process,$k=Nt.Deno,Vk=zk&&zk.versions||$k&&$k.version,Hk=Vk&&Vk.v8;Hk&&(Ig=(Yi=Hk.split("."))[0]>0&&Yi[0]<4?1:+(Yi[0]+Yi[1])),!Ig&&N2&&(!(Yi=N2.match(/Edge\/(\d+)/))||Yi[1]>=74)&&(Yi=N2.match(/Chrome\/(\d+)/))&&(Ig=+Yi[1]);var nm=Ig,ko=!!Object.getOwnPropertySymbols&&!Sr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nm&&nm<41}),z5=ko&&!Symbol.sham&&typeof Symbol.iterator=="symbol",gat=Nt.Object,Hl=z5?function(t){return typeof t=="symbol"}:function(t){var e=_h("Symbol");return An(e)&&VR(e.prototype,gat(t))},vat=Nt.String,mat=Nt.TypeError,HR=function(t){if(An(t))return t;throw mat(function(e){try{return vat(e)}catch{return"Object"}}(t)+" is not a function")},yat=Nt.TypeError,bat=Object.defineProperty,ka=Nt["__core-js_shared__"]||function(t,e){try{bat(Nt,t,{value:e,configurable:!0,writable:!0})}catch{Nt[t]=e}return e}("__core-js_shared__",{}),Ls=j1(function(t){(t.exports=function(e,n){return ka[e]||(ka[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),wat=Nt.Object,Bh=function(t){return wat(M5(t))},Eat=He({}.hasOwnProperty),ee=Object.hasOwn||function(t,e){return Eat(Bh(t),e)},Sat=0,Cat=Math.random(),Dat=He(1 .toString),rm=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Dat(++Sat+Cat,36)},$f=Ls("wks"),ns=Nt.Symbol,Uk=ns&&ns.for,xat=z5?ns:ns&&ns.withoutSetter||rm,Ar=function(t){if(!ee($f,t)||!ko&&typeof $f[t]!="string"){var e="Symbol."+t;ko&&ee(ns,t)?$f[t]=ns[t]:$f[t]=z5&&Uk?Uk(e):xat(e)}return $f[t]},Aat=Nt.TypeError,Oat=Ar("toPrimitive"),Wc=function(t){var e=function(n,r){if(!Rr(n)||Hl(n))return n;var o,i,a=(o=n[Oat])==null?void 0:HR(o);if(a){if(r===void 0&&(r="default"),i=uo(a,n,r),!Rr(i)||Hl(i))return i;throw Aat("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&An(l=u.toString)&&!Rr(c=uo(l,u))||An(l=u.valueOf)&&!Rr(c=uo(l,u))||s!=="string"&&An(l=u.toString)&&!Rr(c=uo(l,u)))return c;throw yat("Can't convert object to primitive value")}(n,r)}(t,"string");return Hl(e)?e:e+""},WS=Nt.document,kat=Rr(WS)&&Rr(WS.createElement),UR=function(t){return kat?WS.createElement(t):{}},WR=!rr&&!Sr(function(){return Object.defineProperty(UR("div"),"a",{get:function(){return 7}}).a!=7}),Wk=Object.getOwnPropertyDescriptor,$5={f:rr?Wk:function(t,e){if(t=Xo(t),e=Wc(e),WR)try{return Wk(t,e)}catch{}if(ee(t,e))return Cs(!uo(L5.f,t,e),t[e])}},_at=/#|\.prototype\./,Fh=function(t,e){var n=Fat[Bat(t)];return n==Pat||n!=Tat&&(An(e)?Sr(e):!!e)},Bat=Fh.normalize=function(t){return String(t).replace(_at,".").toLowerCase()},Fat=Fh.data={},Tat=Fh.NATIVE="N",Pat=Fh.POLYFILL="P",jat=Fh,qk=He(He.bind),qR=function(t,e){return HR(t),e===void 0?t:qk?qk(t,e):function(){return t.apply(e,arguments)}},Iat=Nt.String,Nat=Nt.TypeError,Ds=function(t){if(Rr(t))return t;throw Nat(Iat(t)+" is not an object")},Rat=Nt.TypeError,Gk=Object.defineProperty,Ms={f:rr?Gk:function(t,e,n){if(Ds(t),e=Wc(e),Ds(n),WR)try{return Gk(t,e,n)}catch{}if("get"in n||"set"in n)throw Rat("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Bo=rr?function(t,e,n){return Ms.f(t,e,Cs(1,n))}:function(t,e,n){return t[e]=n,t},Lat=$5.f,Mat=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return MR(t,this,arguments)};return e.prototype=t.prototype,e},sa=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,m=f?Nt:p?Nt[c]:(Nt[c]||{}).prototype,v=f?Tr:Tr[c]||Bo(Tr,c,{})[c],g=v.prototype;for(o in e)n=!jat(f?o:c+(p?".":"#")+o,t.forced)&&m&&ee(m,o),a=v[o],n&&(u=t.noTargetGet?(l=Lat(m,o))&&l.value:m[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?qR(i,Nt):t.wrap&&n?Mat(i):d&&An(i)?He(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Bo(s,"sham",!0),Bo(v,o,s),d&&(ee(Tr,r=c+"Prototype")||Bo(Tr,r,{}),Bo(Tr[r],o,i),t.real&&g&&!g[o]&&Bo(g,o,i)))},om=Array.isArray||function(t){return es(t)=="Array"},zat=Math.ceil,$at=Math.floor,V5=function(t){var e=+t;return e!=e||e===0?0:(e>0?$at:zat)(e)},Vat=Math.min,V1=function(t){return(e=t.length)>0?Vat(V5(e),9007199254740991):0;var e},qS=function(t,e,n){var r=Wc(e);r in t?Ms.f(t,r,Cs(0,n)):t[r]=n},GR={};GR[Ar("toStringTag")]="z";var H5=String(GR)==="[object z]",Hat=Ar("toStringTag"),Uat=Nt.Object,Wat=es(function(){return arguments}())=="Arguments",H1=H5?es:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Uat(t),Hat))=="string"?n:Wat?es(e):(r=es(e))=="Object"&&An(e.callee)?"Arguments":r},qat=He(Function.toString);An(ka.inspectSource)||(ka.inspectSource=function(t){return qat(t)});var KR=ka.inspectSource,YR=function(){},Gat=[],XR=_h("Reflect","construct"),U5=/^\s*(?:class|function)\b/,Kat=He(U5.exec),Yat=!U5.exec(YR),Vf=function(t){if(!An(t))return!1;try{return XR(YR,Gat,t),!0}catch{return!1}},Xat=!XR||Sr(function(){var t;return Vf(Vf.call)||!Vf(Object)||!Vf(function(){t=!0})||t})?function(t){if(!An(t))return!1;switch(H1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Yat||!!Kat(U5,KR(t))}:Vf,Zat=Ar("species"),Kk=Nt.Array,ZR=function(t,e){return new(function(n){var r;return om(n)&&(r=n.constructor,(Xat(r)&&(r===Kk||om(r.prototype))||Rr(r)&&(r=r[Zat])===null)&&(r=void 0)),r===void 0?Kk:r}(t))(e===0?0:e)},Jat=Ar("species"),JR=Ar("isConcatSpreadable"),Yk=Nt.TypeError,Qat=nm>=51||!Sr(function(){var t=[];return t[JR]=!1,t.concat()[0]!==t}),tut=nm>=51||!Sr(function(){var t=[];return(t.constructor={})[Jat]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),eut=function(t){if(!Rr(t))return!1;var e=t[JR];return e!==void 0?!!e:om(t)};sa({target:"Array",proto:!0,forced:!Qat||!tut},{concat:function(t){var e,n,r,o,i,a=Bh(this),u=ZR(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(eut(i=e===-1?a:arguments[e])){if(s+(o=V1(i))>9007199254740991)throw Yk("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&qS(u,s,i[n])}else{if(s>=9007199254740991)throw Yk("Maximum allowed index exceeded");qS(u,s++,i)}return u.length=s,u}});var L0,nut=Nt.String,im=function(t){if(H1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return nut(t)},rut=Math.max,out=Math.min,GS=function(t,e){var n=V5(t);return n<0?rut(n+e,0):out(n,e)},Xk=function(t){return function(e,n,r){var o,i=Xo(e),a=V1(i),u=GS(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},iut={includes:Xk(!0),indexOf:Xk(!1)},Th={},aut=iut.indexOf,Zk=He([].push),QR=function(t,e){var n,r=Xo(t),o=0,i=[];for(n in r)!ee(Th,n)&&ee(r,n)&&Zk(i,n);for(;e.length>o;)ee(r,n=e[o++])&&(~aut(i,n)||Zk(i,n));return i},am=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],W5=Object.keys||function(t){return QR(t,am)},uut=rr?Object.defineProperties:function(t,e){Ds(t);for(var n,r=Xo(e),o=W5(e),i=o.length,a=0;i>a;)Ms.f(t,n=o[a++],r[n]);return t},sut=_h("document","documentElement"),Jk=Ls("keys"),U1=function(t){return Jk[t]||(Jk[t]=rm(t))},tL=U1("IE_PROTO"),R2=function(){},eL=function(t){return"<script>"+t+"<\/script>"},Qk=function(t){t.write(eL("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ng=function(){try{L0=new ActiveXObject("htmlfile")}catch{}var t,e;Ng=typeof document<"u"?document.domain&&L0?Qk(L0):((e=UR("iframe")).style.display="none",sut.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(eL("document.F=Object")),t.close(),t.F):Qk(L0);for(var n=am.length;n--;)delete Ng.prototype[am[n]];return Ng()};Th[tL]=!0;var um,Hd,sm,xs=Object.create||function(t,e){var n;return t!==null?(R2.prototype=Ds(t),n=new R2,R2.prototype=null,n[tL]=t):n=Ng(),e===void 0?n:uut(n,e)},lut=am.concat("length","prototype"),nL={f:Object.getOwnPropertyNames||function(t){return QR(t,lut)}},cut=Nt.Array,fut=Math.max,t_=nL.f,e_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rL={f:function(t){return e_&&es(t)=="Window"?function(e){try{return t_(e)}catch{return function(r,o,i){for(var a=V1(r),u=GS(void 0,a),s=GS(a,a),l=cut(fut(s-u,0)),c=0;u<s;u++,c++)qS(l,c,r[u]);return l.length=c,l}(e_)}}(t):t_(Xo(t))}},L2={f:Object.getOwnPropertySymbols},dut=He([].slice),wc=function(t,e,n,r){r&&r.enumerable?t[e]=n:Bo(t,e,n)},q5={f:Ar},put=Ms.f,qe=function(t){var e=Tr.Symbol||(Tr.Symbol={});ee(e,t)||put(e,t,{value:q5.f(t)})},hut=H5?{}.toString:function(){return"[object "+H1(this)+"]"},gut=Ms.f,n_=Ar("toStringTag"),lm=function(t,e,n,r){if(t){var o=n?t:t.prototype;ee(o,n_)||gut(o,n_,{configurable:!0,value:e}),r&&!H5&&Bo(o,"toString",hut)}},r_=Nt.WeakMap,vut=An(r_)&&/native code/.test(KR(r_)),KS=Nt.TypeError,mut=Nt.WeakMap;if(vut||ka.state){var wu=ka.state||(ka.state=new mut),yut=He(wu.get),o_=He(wu.has),but=He(wu.set);um=function(t,e){if(o_(wu,t))throw new KS("Object already initialized");return e.facade=t,but(wu,t,e),e},Hd=function(t){return yut(wu,t)||{}},sm=function(t){return o_(wu,t)}}else{var ll=U1("state");Th[ll]=!0,um=function(t,e){if(ee(t,ll))throw new KS("Object already initialized");return e.facade=t,Bo(t,ll,e),e},Hd=function(t){return ee(t,ll)?t[ll]:{}},sm=function(t){return ee(t,ll)}}var qc={set:um,get:Hd,has:sm,enforce:function(t){return sm(t)?Hd(t):um(t,{})},getterFor:function(t){return function(e){var n;if(!Rr(e)||(n=Hd(e)).type!==t)throw KS("Incompatible receiver, "+t+" required");return n}}},i_=He([].push),Xi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=Bh(s),v=$R(m),g=qR(l,c),y=V1(v),h=0,b=f||ZR,E=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=g(p=v[h],h,m),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:i_(E,p)}else switch(t){case 4:return!1;case 7:i_(E,p)}return i?-1:r||o?o:E}},W1=[Xi(0),Xi(1),Xi(2),Xi(3),Xi(4),Xi(5),Xi(6),Xi(7)][0],Zn=U1("hidden"),a_=Ar("toPrimitive"),wut=qc.set,u_=qc.getterFor("Symbol"),so=Object.prototype,fa=Nt.Symbol,ma=fa&&fa.prototype,s_=Nt.TypeError,M2=Nt.QObject,Hf=_h("JSON","stringify"),oL=$5.f,da=Ms.f,iL=rL.f,Eut=L5.f,aL=He([].push),Di=Ls("symbols"),Ph=Ls("op-symbols"),z2=Ls("string-to-symbol-registry"),$2=Ls("symbol-to-string-registry"),Sut=Ls("wks"),V2=!M2||!M2.prototype||!M2.prototype.findChild,YS=rr&&Sr(function(){return xs(da({},"a",{get:function(){return da(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=oL(so,e);r&&delete so[e],da(t,e,n),r&&t!==so&&da(so,e,r)}:da,H2=function(t,e){var n=Di[t]=xs(ma);return wut(n,{type:"Symbol",tag:t,description:e}),rr||(n.description=e),n},cm=function(t,e,n){t===so&&cm(Ph,e,n),Ds(t);var r=Wc(e);return Ds(n),ee(Di,r)?(n.enumerable?(ee(t,Zn)&&t[Zn][r]&&(t[Zn][r]=!1),n=xs(n,{enumerable:Cs(0,!1)})):(ee(t,Zn)||da(t,Zn,Cs(1,{})),t[Zn][r]=!0),YS(t,r,n)):da(t,r,n)},l_=function(t,e){Ds(t);var n=Xo(e),r=W5(n).concat(XS(n));return W1(r,function(o){rr&&!uo(uL,n,o)||cm(t,o,n[o])}),t},uL=function(t){var e=Wc(t),n=uo(Eut,this,e);return!(this===so&&ee(Di,e)&&!ee(Ph,e))&&(!(n||!ee(this,e)||!ee(Di,e)||ee(this,Zn)&&this[Zn][e])||n)},c_=function(t,e){var n=Xo(t),r=Wc(e);if(n!==so||!ee(Di,r)||ee(Ph,r)){var o=oL(n,r);return!o||!ee(Di,r)||ee(n,Zn)&&n[Zn][r]||(o.enumerable=!0),o}},f_=function(t){var e=iL(Xo(t)),n=[];return W1(e,function(r){ee(Di,r)||ee(Th,r)||aL(n,r)}),n},XS=function(t){var e=t===so,n=iL(e?Ph:Xo(t)),r=[];return W1(n,function(o){!ee(Di,o)||e&&!ee(so,o)||aL(r,Di[o])}),r};if(ko||(ma=(fa=function(){if(VR(ma,this))throw s_("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?im(arguments[0]):void 0,e=rm(t),n=function(r){this===so&&uo(n,Ph,r),ee(this,Zn)&&ee(this[Zn],e)&&(this[Zn][e]=!1),YS(this,e,Cs(1,r))};return rr&&V2&&YS(so,e,{configurable:!0,set:n}),H2(e,t)}).prototype,wc(ma,"toString",function(){return u_(this).tag}),wc(fa,"withoutSetter",function(t){return H2(rm(t),t)}),L5.f=uL,Ms.f=cm,$5.f=c_,nL.f=rL.f=f_,L2.f=XS,q5.f=function(t){return H2(Ar(t),t)},rr&&da(ma,"description",{configurable:!0,get:function(){return u_(this).description}})),sa({global:!0,wrap:!0,forced:!ko,sham:!ko},{Symbol:fa}),W1(W5(Sut),function(t){qe(t)}),sa({target:"Symbol",stat:!0,forced:!ko},{for:function(t){var e=im(t);if(ee(z2,e))return z2[e];var n=fa(e);return z2[e]=n,$2[n]=e,n},keyFor:function(t){if(!Hl(t))throw s_(t+" is not a symbol");if(ee($2,t))return $2[t]},useSetter:function(){V2=!0},useSimple:function(){V2=!1}}),sa({target:"Object",stat:!0,forced:!ko,sham:!rr},{create:function(t,e){return e===void 0?xs(t):l_(xs(t),e)},defineProperty:cm,defineProperties:l_,getOwnPropertyDescriptor:c_}),sa({target:"Object",stat:!0,forced:!ko},{getOwnPropertyNames:f_,getOwnPropertySymbols:XS}),sa({target:"Object",stat:!0,forced:Sr(function(){L2.f(1)})},{getOwnPropertySymbols:function(t){return L2.f(Bh(t))}}),Hf){var Cut=!ko||Sr(function(){var t=fa();return Hf([t])!="[null]"||Hf({a:t})!="{}"||Hf(Object(t))!="{}"});sa({target:"JSON",stat:!0,forced:Cut},{stringify:function(t,e,n){var r=dut(arguments),o=e;if((Rr(e)||t!==void 0)&&!Hl(t))return om(e)||(e=function(i,a){if(An(o)&&(a=uo(o,this,i,a)),!Hl(a))return a}),r[1]=e,MR(Hf,null,r)}})}if(!ma[a_]){var Dut=ma.valueOf;wc(ma,a_,function(t){return uo(Dut,this)})}lm(fa,"Symbol"),Th[Zn]=!0,qe("asyncIterator"),qe("hasInstance"),qe("isConcatSpreadable"),qe("iterator"),qe("match"),qe("matchAll"),qe("replace"),qe("search"),qe("species"),qe("split"),qe("toPrimitive"),qe("toStringTag"),qe("unscopables"),lm(Nt.JSON,"JSON",!0);var ya,d_,p_,xut=Tr.Symbol,rs={},sL=Function.prototype,Aut=rr&&Object.getOwnPropertyDescriptor,U2=ee(sL,"name"),Out={EXISTS:U2,PROPER:U2&&(function(){}).name==="something",CONFIGURABLE:U2&&(!rr||rr&&Aut(sL,"name").configurable)},kut=!Sr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),h_=U1("IE_PROTO"),ZS=Nt.Object,_ut=ZS.prototype,JS=kut?ZS.getPrototypeOf:function(t){var e=Bh(t);if(ee(e,h_))return e[h_];var n=e.constructor;return An(n)&&e instanceof n?n.prototype:e instanceof ZS?_ut:null},QS=Ar("iterator"),lL=!1;[].keys&&("next"in(p_=[].keys())?(d_=JS(JS(p_)))!==Object.prototype&&(ya=d_):lL=!0);var But=ya==null||Sr(function(){var t={};return ya[QS].call(t)!==t});ya=But?{}:xs(ya),An(ya[QS])||wc(ya,QS,function(){return this});var cL={IteratorPrototype:ya,BUGGY_SAFARI_ITERATORS:lL},Fut=cL.IteratorPrototype,Tut=function(){return this};Nt.String,Nt.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{He(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var Put=Out.PROPER,M0=cL.BUGGY_SAFARI_ITERATORS,W2=Ar("iterator"),jut=function(){return this},fL=function(t,e,n,r,o,i,a){(function(y,h,b,E){var w=h+" Iterator";y.prototype=xs(Fut,{next:Cs(1,b)}),lm(y,w,!1,!0),rs[w]=Tut})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!M0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,m=d[W2]||d["@@iterator"]||o&&d[o],v=!M0&&m||c(o),g=e=="Array"&&d.entries||m;if(g&&(u=JS(g.call(new t)))!==Object.prototype&&u.next&&(lm(u,f,!0,!0),rs[f]=jut),Put&&o=="values"&&m&&m.name!=="values"&&(p=!0,v=function(){return uo(m,this)}),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(M0||p||!(l in d))&&wc(d,l,s[l]);else sa({target:e,proto:!0,forced:M0||p},s);return a&&d[W2]!==v&&wc(d,W2,v,{name:o}),rs[e]=v,s},Iut=qc.set,Nut=qc.getterFor("Array Iterator");fL(Array,"Array",function(t,e){Iut(this,{type:"Array Iterator",target:Xo(t),index:0,kind:e})},function(){var t=Nut(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),rs.Arguments=rs.Array;var g_=Ar("toStringTag");for(var q2 in{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}){var v_=Nt[q2],G2=v_&&v_.prototype;G2&&H1(G2)!==g_&&Bo(G2,g_,q2),rs[q2]=rs.Array}var Rut=xut;qe("asyncDispose"),qe("dispose"),qe("matcher"),qe("metadata"),qe("observable"),qe("patternMatch"),qe("replaceAll");var z0=Rut,Lut=He("".charAt),m_=He("".charCodeAt),Mut=He("".slice),zut=function(t){return function(e,n){var r,o,i=im(M5(e)),a=V5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=m_(i,a))<55296||r>56319||a+1===u||(o=m_(i,a+1))<56320||o>57343?t?Lut(i,a):r:t?Mut(i,a,a+2):o-56320+(r-55296<<10)+65536}},$ut=zut(!0),Vut=qc.set,Hut=qc.getterFor("String Iterator");fL(String,"String",function(t){Vut(this,{type:"String Iterator",string:im(t),index:0})},function(){var t,e=Hut(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=$ut(n,r),e.index+=t.length,{value:t,done:!1})});var Uut=q5.f("iterator"),Wut=j1(function(t){function e(n){return typeof z0=="function"&&typeof Uut=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof z0=="function"&&r.constructor===z0&&r!==z0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),dL=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Wut),qut=R1.EXISTS,Gut=$c.f,pL=Function.prototype,Kut=St(pL.toString),hL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Yut=St(hL.exec);vo&&!qut&&Gut(pL,"name",{configurable:!0,get:function(){try{return Yut(hL,Kut(this))[1]}catch{return""}}});var gL=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=C.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!ne(C.nodes(e,{match:function(n){return O.getNodeType(n)==="pre"||!!C.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),Xut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontSize.title"),n.iconSvg=Cot,n.mark="fontSize",n}return ke(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:tt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(dL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(gL),Zut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontFamily.title"),n.iconSvg=Dot,n.mark="fontFamily",n.selectPanelWidth=150,n}return ke(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:tt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(dL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(gL),Jut={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&Ss(i,{fontSize:r}),o&&Ss(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((P5(e)||Uc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),Hc(n)):e},preParseHtml:[aat],parseStyleHtml:function(t,e,n){var r=B(t);if(!it.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=po(r,"font-size"),s=a.find(function(d){return d.value&&d.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=po(r,"font-family").replace(/"/g,""),p=c.find(function(d){return d.value&&d.value===f})||c.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new Xut},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new Zut},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Qut={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=B(t),n=po(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},vL=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=ne(C.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":ne(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=ne(C.nodes(e,{match:function(r){var o=O.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),tst=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.decrease"),n.iconSvg=xot,n}return ke(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){I.setNodes(n,{indent:null},{match:function(o){return pt.isElement(o)}})},e}(vL),est=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.increase"),n.iconSvg=Aot,n}return ke(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){I.setNodes(n,{indent:"2em"},{match:function(o){return pt.isElement(o)},mode:"highest"})},e}(vL),nst={renderStyle:function(t,e){if(!pt.isElement(t))return e;var n=t.indent,r=e;return n&&Ss(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!pt.isElement(t))return e;var n=t.indent;if(!n)return e;var r=B(e);return r.css("text-indent",n),Hc(r)},preParseHtml:[Qut],parseStyleHtml:function(t,e,n){var r=B(t);if(!pt.isElement(e))return e;var o=e,i=po(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new est}},{key:"delIndent",factory:function(){return new tst}}]},q1=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=ne(C.nodes(e,{match:function(r){var o=O.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(n){if(C.isVoid(e,n)&&C.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),rst=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.left"),n.iconSvg=Oot,n}return ke(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"left"},{match:function(o){return pt.isElement(o)&&!n.isInline(o)}})},e}(q1),ost=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.right"),n.iconSvg=kot,n}return ke(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"right"},{match:function(o){return pt.isElement(o)&&!n.isInline(o)}})},e}(q1),ist=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.center"),n.iconSvg=_ot,n}return ke(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"center"},{match:function(o){return pt.isElement(o)&&!n.isInline(o)}})},e}(q1),ast=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.justify"),n.iconSvg=Bot,n}return ke(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"justify"},{match:function(o){return pt.isElement(o)&&!n.isInline(o)}})},e}(q1),ust={renderStyle:function(t,e){if(!pt.isElement(t))return e;var n=t.textAlign,r=e;return n&&Ss(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!pt.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=B(e);return r.css("text-align",n),Hc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!pt.isElement(e))return e;var o=e,i=po(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new rst}},{key:"justifyRight",factory:function(){return new ost}},{key:"justifyCenter",factory:function(){return new ist}},{key:"justifyJustify",factory:function(){return new ast}}]},sst=function(){function t(){this.title=tt("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:tt("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.getMatchNode=function(e){var n=ne(C.nodes(e,{match:function(r){var o=O.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":pt.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){I.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),lst={renderStyle:function(t,e){if(!pt.isElement(t))return e;var n=t.lineHeight,r=e;return n&&Ss(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!pt.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=B(e);return r.css("line-height",n),Hc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!pt.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=po(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new sst},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},cst=function(){function t(){this.title=tt("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.redo=="function"&&e.redo()},t}(),fst=function(){function t(){this.title=tt("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.undo=="function"&&e.undo()},t}(),dst={menus:[{key:"redo",factory:function(){return new cst}},{key:"undo",factory:function(){return new fst}}]},pst={type:"divider",renderElem:function(t,e,n){return dc("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:O.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[dc("hr")])}},hst=function(){function t(){this.title=tt("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=O.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){I.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),gst={renderElems:[pst],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new hst}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var i=ne(o,2),a=i[0],u=i[1];if(O.getNodeType(a)!=="divider")return n([a,u]);O.isLastNode(r,a)&&I.insertNodes(r,O.genEmptyParagraph(),{at:[u[0]+1]})},r}},vst=M1.map;dn({target:"Array",proto:!0,forced:!k5("map")},{map:function(t){return vst(this,t,arguments.length>1?arguments[1]:void 0)}});var mst=St([].join),yst=I1!=Object,bst=wR("join",",");dn({target:"Array",proto:!0,forced:yst||!bst},{join:function(t){return mst(zc(this),t===void 0?",":t)}});var wst=function(){function t(){this.title=tt("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(e){var n=O.getSelectedNodeByType(e,"code");if(n==null)return null;var r=O.getParentNode(e,n);return r==null||O.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=O.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=O.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=Q.string(n);I.removeNodes(e,{mode:"highest"});var o=r.split(`
  100. `).map(function(i){return{type:"paragraph",children:[{text:i}]}});I.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,i=[],a=C.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=bR(a),s=u.next();!s.done;s=u.next()){var l=ne(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}I.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
  101. `)}]}]};I.insertNodes(e,c,{mode:"highest"})},t}(),Est={key:"codeBlock",factory:function(){return new wst}};dn({target:"String",proto:!0,forced:Od("anchor")},{anchor:function(t){return Ad(this,"a","name",t)}}),F5("match",function(t,e,n){return[function(r){var o=Gr(this),i=r==null?void 0:N1(r,t);return i?Ve(i,r,o):new RegExp(r)[t](Te(o))},function(r){var o=vr(this),i=Te(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return Tp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Tp(o,i))!==null;){var f=Te(s[0]);l[c]=f,f===""&&(o.lastIndex=T5(i,xh(o.lastIndex),u)),c++}return c===0?null:l}]});var Sst={type:"pre",renderElem:function(t,e,n){return Dt("pre",null,e)}},Cst={type:"code",renderElem:function(t,e,n){return Dt("code",null,e)}},Dst={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return O.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return O.getNodeType(o)==="code"})}}},xst={menus:[Est],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=O.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var p=Q.string(l),d=f.anchor.offset,m=p.slice(0,d).split(`
  102. `),v=m.length;return v===0?"":m[v-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
  103. `+s)}}o.insertText(`
  104. `)}else e()},o.normalizeNode=function(i){var a=ne(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l==="code"&&s.length<=1&&I.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(O.isLastNode(o,u)&&I.insertNodes(o,O.genEmptyParagraph(),{at:[s[0]+1]}),O.getNodeType(u.children[0])!=="code"&&(I.unwrapNodes(o),I.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(O.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");C.insertText(o,a)}else r(i)},o},renderElems:[Sst,Cst],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=B(t);if(Uc(e)!=="code")return t;var n=e.find("xmp");if(n.length===0)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:B(t)[0].textContent||""}]}}},Dst]},Ast=function(){function t(){this.title=tt("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),Ost={menus:[{key:"fullScreen",factory:function(){return new Ast}}]},kst=function(){function t(){this.title=tt("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!!M.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];I.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(C.start(e,o))}},t}(),_st=[$ot,bit,Jut,nst,ust,lst,Hit,gst,oat,Bit,xst,nat,hit,cot,Git,dst,Ost,{menus:[{key:"enter",factory:function(){return new kst}}]}];ir("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),ir("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var y_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function G5(t){var e={exports:{}};return t(e,e.exports),e.exports}var Zi,Rg,$0=function(t){return t&&t.Math==Math&&t},xt=$0(typeof globalThis=="object"&&globalThis)||$0(typeof window=="object"&&window)||$0(typeof self=="object"&&self)||$0(typeof y_=="object"&&y_)||function(){return this}()||Function("return this")(),mL=Function.prototype,t6=mL.bind,e6=mL.call,Bst=t6&&t6.bind(e6),zt=t6?function(t){return t&&Bst(e6,t)}:function(t){return t&&function(){return e6.apply(t,arguments)}},Le=function(t){try{return!!t()}catch{return!0}},Fst=zt({}.toString),Tst=zt("".slice),bi=function(t){return Tst(Fst(t),8,-1)},K2=xt.Object,Pst=zt("".split),yL=Le(function(){return!K2("z").propertyIsEnumerable(0)})?function(t){return bi(t)=="String"?Pst(t,""):K2(t)}:K2,jst=xt.TypeError,G1=function(t){if(t==null)throw jst("Can't call method on "+t);return t},Gc=function(t){return yL(G1(t))},Ist=Object.defineProperty,K5=function(t,e){try{Ist(xt,t,{value:e,configurable:!0,writable:!0})}catch{xt[t]=e}return e},_a=xt["__core-js_shared__"]||K5("__core-js_shared__",{}),Y5=G5(function(t){(t.exports=function(e,n){return _a[e]||(_a[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Nst=xt.Object,jh=function(t){return Nst(G1(t))},Rst=zt({}.hasOwnProperty),hn=Object.hasOwn||function(t,e){return Rst(jh(t),e)},Lst=0,Mst=Math.random(),zst=zt(1 .toString),X5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+zst(++Lst+Mst,36)},Me=function(t){return typeof t=="function"},$st=function(t){return Me(t)?t:void 0},Ih=function(t,e){return arguments.length<2?$st(xt[t]):xt[t]&&xt[t][e]},Y2=Ih("navigator","userAgent")||"",b_=xt.process,w_=xt.Deno,E_=b_&&b_.versions||w_&&w_.version,S_=E_&&E_.v8;S_&&(Rg=(Zi=S_.split("."))[0]>0&&Zi[0]<4?1:+(Zi[0]+Zi[1])),!Rg&&Y2&&(!(Zi=Y2.match(/Edge\/(\d+)/))||Zi[1]>=74)&&(Zi=Y2.match(/Chrome\/(\d+)/))&&(Rg=+Zi[1]);var V0,n6=Rg,r6=!!Object.getOwnPropertySymbols&&!Le(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n6&&n6<41}),Z5=r6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Uf=Y5("wks"),os=xt.Symbol,C_=os&&os.for,Vst=Z5?os:os&&os.withoutSetter||X5,kn=function(t){if(!hn(Uf,t)||!r6&&typeof Uf[t]!="string"){var e="Symbol."+t;r6&&hn(os,t)?Uf[t]=os[t]:Uf[t]=Z5&&C_?C_(e):Vst(e)}return Uf[t]},Re=function(t){return typeof t=="object"?t!==null:Me(t)},Hst=xt.String,Ust=xt.TypeError,ar=function(t){if(Re(t))return t;throw Ust(Hst(t)+" is not an object")},Ga=!Le(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),o6=xt.document,Wst=Re(o6)&&Re(o6.createElement),J5=function(t){return Wst?o6.createElement(t):{}},bL=!Ga&&!Le(function(){return Object.defineProperty(J5("div"),"a",{get:function(){return 7}}).a!=7}),Wf=Function.prototype.call,pn=Wf.bind?Wf.bind(Wf):function(){return Wf.apply(Wf,arguments)},fm=zt({}.isPrototypeOf),qst=xt.Object,X2=Z5?function(t){return typeof t=="symbol"}:function(t){var e=Ih("Symbol");return Me(e)&&fm(e.prototype,qst(t))},Gst=xt.String,i6=function(t){try{return Gst(t)}catch{return"Object"}},Kst=xt.TypeError,Q5=function(t){if(Me(t))return t;throw Kst(i6(t)+" is not a function")},Pp=function(t,e){var n=t[e];return n==null?void 0:Q5(n)},Yst=xt.TypeError,Xst=xt.TypeError,Zst=kn("toPrimitive"),tD=function(t){var e=function(n,r){if(!Re(n)||X2(n))return n;var o,i=Pp(n,Zst);if(i){if(r===void 0&&(r="default"),o=pn(i,n,r),!Re(o)||X2(o))return o;throw Xst("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&Me(s=a.toString)&&!Re(l=pn(s,a))||Me(s=a.valueOf)&&!Re(l=pn(s,a))||u!=="string"&&Me(s=a.toString)&&!Re(l=pn(s,a)))return l;throw Yst("Can't convert object to primitive value")}(n,r)}(t,"string");return X2(e)?e:e+""},Jst=xt.TypeError,D_=Object.defineProperty,zs={f:Ga?D_:function(t,e,n){if(ar(t),e=tD(e),ar(n),bL)try{return D_(t,e,n)}catch{}if("get"in n||"set"in n)throw Jst("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Qst=Math.ceil,tlt=Math.floor,Nh=function(t){var e=+t;return e!=e||e===0?0:(e>0?tlt:Qst)(e)},elt=Math.max,nlt=Math.min,a6=function(t,e){var n=Nh(t);return n<0?elt(n+e,0):nlt(n,e)},rlt=Math.min,wL=function(t){return t>0?rlt(Nh(t),9007199254740991):0},Kc=function(t){return wL(t.length)},x_=function(t){return function(e,n,r){var o,i=Gc(e),a=Kc(i),u=a6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},EL={includes:x_(!0),indexOf:x_(!1)},K1={},olt=EL.indexOf,A_=zt([].push),SL=function(t,e){var n,r=Gc(t),o=0,i=[];for(n in r)!hn(K1,n)&&hn(r,n)&&A_(i,n);for(;e.length>o;)hn(r,n=e[o++])&&(~olt(i,n)||A_(i,n));return i},dm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ilt=Object.keys||function(t){return SL(t,dm)},alt=Ga?Object.defineProperties:function(t,e){ar(t);for(var n,r=Gc(e),o=ilt(e),i=o.length,a=0;i>a;)zs.f(t,n=o[a++],r[n]);return t},ult=Ih("document","documentElement"),O_=Y5("keys"),eD=function(t){return O_[t]||(O_[t]=X5(t))},CL=eD("IE_PROTO"),Z2=function(){},DL=function(t){return"<script>"+t+"<\/script>"},k_=function(t){t.write(DL("")),t.close();var e=t.parentWindow.Object;return t=null,e},Lg=function(){try{V0=new ActiveXObject("htmlfile")}catch{}var t,e;Lg=typeof document<"u"?document.domain&&V0?k_(V0):((e=J5("iframe")).style.display="none",ult.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(DL("document.F=Object")),t.close(),t.F):k_(V0);for(var n=dm.length;n--;)delete Lg.prototype[dm[n]];return Lg()};K1[CL]=!0;var nD=Object.create||function(t,e){var n;return t!==null?(Z2.prototype=ar(t),n=new Z2,Z2.prototype=null,n[CL]=t):n=Lg(),e===void 0?n:alt(n,e)},u6=kn("unscopables"),s6=Array.prototype;s6[u6]==null&&zs.f(s6,u6,{configurable:!0,value:nD(null)});var Ud=function(t){s6[u6][t]=!0},Ec={},slt=zt(Function.toString);Me(_a.inspectSource)||(_a.inspectSource=function(t){return slt(t)});var pm,Wd,hm,rD=_a.inspectSource,__=xt.WeakMap,xL=Me(__)&&/native code/.test(rD(__)),Y1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ba=Ga?function(t,e,n){return zs.f(t,e,Y1(1,n))}:function(t,e,n){return t[e]=n,t},l6=xt.TypeError,llt=xt.WeakMap;if(xL||_a.state){var Eu=_a.state||(_a.state=new llt),clt=zt(Eu.get),B_=zt(Eu.has),flt=zt(Eu.set);pm=function(t,e){if(B_(Eu,t))throw new l6("Object already initialized");return e.facade=t,flt(Eu,t,e),e},Wd=function(t){return clt(Eu,t)||{}},hm=function(t){return B_(Eu,t)}}else{var cl=eD("state");K1[cl]=!0,pm=function(t,e){if(hn(t,cl))throw new l6("Object already initialized");return e.facade=t,Ba(t,cl,e),e},Wd=function(t){return hn(t,cl)?t[cl]:{}},hm=function(t){return hn(t,cl)}}var is,F_,T_,Uo={set:pm,get:Wd,has:hm,enforce:function(t){return hm(t)?Wd(t):pm(t,{})},getterFor:function(t){return function(e){var n;if(!Re(e)||(n=Wd(e)).type!==t)throw l6("Incompatible receiver, "+t+" required");return n}}},P_={}.propertyIsEnumerable,j_=Object.getOwnPropertyDescriptor,dlt={f:j_&&!P_.call({1:2},1)?function(t){var e=j_(this,t);return!!e&&e.enumerable}:P_},I_=Object.getOwnPropertyDescriptor,AL={f:Ga?I_:function(t,e){if(t=Gc(t),e=tD(e),bL)try{return I_(t,e)}catch{}if(hn(t,e))return Y1(!pn(dlt.f,t,e),t[e])}},OL=Function.prototype,plt=Ga&&Object.getOwnPropertyDescriptor,J2=hn(OL,"name"),oD={EXISTS:J2,PROPER:J2&&(function(){}).name==="something",CONFIGURABLE:J2&&(!Ga||Ga&&plt(OL,"name").configurable)},Lo=G5(function(t){var e=oD.CONFIGURABLE,n=Uo.get,r=Uo.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Me(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!hn(u,"name")||e&&u.name!==d)&&Ba(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==xt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ba(i,a,u)):f?i[a]=u:K5(a,u)})(Function.prototype,"toString",function(){return Me(this)&&n(this).source||rD(this)})}),hlt=dm.concat("length","prototype"),gm={f:Object.getOwnPropertyNames||function(t){return SL(t,hlt)}},glt={f:Object.getOwnPropertySymbols},vlt=zt([].concat),mlt=Ih("Reflect","ownKeys")||function(t){var e=gm.f(ar(t)),n=glt.f;return n?vlt(e,n(t)):e},ylt=function(t,e){for(var n=mlt(e),r=zs.f,o=AL.f,i=0;i<n.length;i++){var a=n[i];hn(t,a)||r(t,a,o(e,a))}},blt=/#|\.prototype\./,Rh=function(t,e){var n=Elt[wlt(t)];return n==Clt||n!=Slt&&(Me(e)?Le(e):!!e)},wlt=Rh.normalize=function(t){return String(t).replace(blt,".").toLowerCase()},Elt=Rh.data={},Slt=Rh.NATIVE="N",Clt=Rh.POLYFILL="P",c6=Rh,Dlt=AL.f,Ka=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?xt:l?xt[u]||K5(u,{}):(xt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Dlt(n,r))&&a.value:n[r],!c6(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;ylt(i,o)}(t.sham||o&&o.sham)&&Ba(i,"sham",!0),Lo(n,r,i,t)}},xlt=!Le(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),N_=eD("IE_PROTO"),f6=xt.Object,Alt=f6.prototype,vm=xlt?f6.getPrototypeOf:function(t){var e=jh(t);if(hn(e,N_))return e[N_];var n=e.constructor;return Me(n)&&e instanceof n?n.prototype:e instanceof f6?Alt:null},d6=kn("iterator"),kL=!1;[].keys&&("next"in(T_=[].keys())?(F_=vm(vm(T_)))!==Object.prototype&&(is=F_):kL=!0);var Olt=is==null||Le(function(){var t={};return is[d6].call(t)!==t});Olt&&(is={}),Me(is[d6])||Lo(is,d6,function(){return this});var iD={IteratorPrototype:is,BUGGY_SAFARI_ITERATORS:kL},klt=zs.f,R_=kn("toStringTag"),p6=function(t,e,n){t&&!hn(t=n?t:t.prototype,R_)&&klt(t,R_,{configurable:!0,value:e})},_lt=iD.IteratorPrototype,Blt=function(){return this},Flt=xt.String,Tlt=xt.TypeError,mm=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=zt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return ar(r),function(i){if(typeof i=="object"||Me(i))return i;throw Tlt("Can't set "+Flt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),Plt=oD.PROPER,jlt=oD.CONFIGURABLE,L_=iD.IteratorPrototype,H0=iD.BUGGY_SAFARI_ITERATORS,qf=kn("iterator"),Ilt=function(){return this},_L=function(t,e,n,r,o,i,a){(function(y,h,b,E){var w=h+" Iterator";y.prototype=nD(_lt,{next:Y1(1,b)}),p6(y,w,!1),Ec[w]=Blt})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!H0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,m=d[qf]||d["@@iterator"]||o&&d[o],v=!H0&&m||c(o),g=e=="Array"&&d.entries||m;if(g&&(u=vm(g.call(new t)))!==Object.prototype&&u.next&&(vm(u)!==L_&&(mm?mm(u,L_):Me(u[qf])||Lo(u,qf,Ilt)),p6(u,f,!0)),Plt&&o=="values"&&m&&m.name!=="values"&&(jlt?Ba(d,"name","values"):(p=!0,v=function(){return pn(m,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(H0||p||!(l in d))&&Lo(d,l,s[l]);else Ka({target:e,proto:!0,forced:H0||p},s);return d[qf]!==v&&Lo(d,qf,v,{name:o}),Ec[e]=v,s},Nlt=Uo.set,Rlt=Uo.getterFor("Array Iterator"),kd=_L(Array,"Array",function(t,e){Nlt(this,{type:"Array Iterator",target:Gc(t),index:0,kind:e})},function(){var t=Rlt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Ec.Arguments=Ec.Array,Ud("keys"),Ud("values"),Ud("entries");var BL={};BL[kn("toStringTag")]="z";var aD=String(BL)==="[object z]",Llt=kn("toStringTag"),Mlt=xt.Object,zlt=bi(function(){return arguments}())=="Arguments",X1=aD?bi:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Mlt(t),Llt))=="string"?n:zlt?bi(e):(r=bi(e))=="Object"&&Me(e.callee)?"Arguments":r},$lt=aD?{}.toString:function(){return"[object "+X1(this)+"]"};aD||Lo(Object.prototype,"toString",$lt,{unsafe:!0});var Vlt=xt.String,ci=function(t){if(X1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Vlt(t)},Hlt=zt("".charAt),M_=zt("".charCodeAt),Ult=zt("".slice),z_=function(t){return function(e,n){var r,o,i=ci(G1(e)),a=Nh(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=M_(i,a))<55296||r>56319||a+1===u||(o=M_(i,a+1))<56320||o>57343?t?Hlt(i,a):r:t?Ult(i,a,a+2):o-56320+(r-55296<<10)+65536}},FL={codeAt:z_(!1),charAt:z_(!0)},Wlt=FL.charAt,qlt=Uo.set,Glt=Uo.getterFor("String Iterator");_L(String,"String",function(t){qlt(this,{type:"String Iterator",string:ci(t),index:0})},function(){var t,e=Glt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Wlt(n,r),e.index+=t.length,{value:t,done:!1})});var h6=function(t,e,n){for(var r in e)Lo(t,r,e[r],n);return t},Klt=xt.Array,Ylt=Math.max,$_=gm.f,V_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xlt={f:function(t){return V_&&bi(t)=="Window"?function(e){try{return $_(e)}catch{return function(r,o,i){for(var a,u,s,l,c=Kc(r),f=a6(void 0,c),p=a6(c,c),d=Klt(Ylt(p-f,0)),m=0;f<p;f++,m++)a=d,u=m,s=r[f],(l=tD(u))in a?zs.f(a,l,Y1(0,s)):a[l]=s;return d.length=m,d}(V_)}}(t):$_(Gc(t))}},H_=Le(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),U0=Object.isExtensible,Mu=Le(function(){U0(1)})||H_?function(t){return!!Re(t)&&(!H_||bi(t)!="ArrayBuffer")&&(!U0||U0(t))}:U0,Zlt=!Le(function(){return Object.isExtensible(Object.preventExtensions({}))}),uD=G5(function(t){var e=zs.f,n=!1,r=X5("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=gm.f,s=zt([].splice),l={};l[r]=1,u(l).length&&(gm.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Ka({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xlt.f}))},fastKey:function(u,s){if(!Re(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!hn(u,r)){if(!Mu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!hn(u,r)){if(!Mu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Zlt&&n&&Mu(u)&&!hn(u,r)&&i(u),u}};K1[r]=!0}),U_=zt(zt.bind),sD=function(t,e){return Q5(t),e===void 0?t:U_?U_(t,e):function(){return t.apply(e,arguments)}},Jlt=kn("iterator"),Qlt=Array.prototype,tct=kn("iterator"),W_=function(t){if(t!=null)return Pp(t,tct)||Pp(t,"@@iterator")||Ec[X1(t)]},ect=xt.TypeError,q_=function(t,e,n){var r,o;ar(t);try{if(!(r=Pp(t,"return"))){if(e==="throw")throw n;return n}r=pn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return ar(r),n},nct=xt.TypeError,Mg=function(t,e){this.stopped=t,this.result=e},G_=Mg.prototype,TL=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),v=sD(e,f),g=function(h){return r&&q_(r,"normal",h),new Mg(!0,h)},y=function(h){return p?(ar(h),m?v(h[0],h[1],g):v(h[0],h[1])):m?v(h,g):v(h)};if(d)r=t;else{if(!(o=W_(t)))throw nct(i6(t)+" is not iterable");if((c=o)!==void 0&&(Ec.Array===c||Qlt[Jlt]===c)){for(i=0,a=Kc(t);a>i;i++)if((u=y(t[i]))&&fm(G_,u))return u;return new Mg(!1)}r=function(h,b){var E=arguments.length<2?W_(h):b;if(Q5(E))return ar(pn(E,h));throw ect(i6(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=pn(s,r)).done;){try{u=y(l.value)}catch(h){q_(r,"throw",h)}if(typeof u=="object"&&u&&fm(G_,u))return u}return new Mg(!1)},rct=xt.TypeError,PL=function(t,e){if(fm(e,t))return t;throw rct("Incorrect invocation")},jL=kn("iterator"),IL=!1;try{var oct=0,K_={next:function(){return{done:!!oct++}},return:function(){IL=!0}};K_[jL]=function(){return this},Array.from(K_,function(){throw 2})}catch{}var g6=Array.isArray||function(t){return bi(t)=="Array"},NL=function(){},ict=[],RL=Ih("Reflect","construct"),lD=/^\s*(?:class|function)\b/,act=zt(lD.exec),uct=!lD.exec(NL),Gf=function(t){if(!Me(t))return!1;try{return RL(NL,ict,t),!0}catch{return!1}},sct=!RL||Le(function(){var t;return Gf(Gf.call)||!Gf(Object)||!Gf(function(){t=!0})||t})?function(t){if(!Me(t))return!1;switch(X1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uct||!!act(lD,rD(t))}:Gf,lct=kn("species"),Y_=xt.Array,LL=function(t,e){return new(function(n){var r;return g6(n)&&(r=n.constructor,(sct(r)&&(r===Y_||g6(r.prototype))||Re(r)&&(r=r[lct])===null)&&(r=void 0)),r===void 0?Y_:r}(t))(e===0?0:e)},X_=zt([].push),Ji=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=jh(s),v=yL(m),g=sD(l,c),y=Kc(v),h=0,b=f||LL,E=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=g(p=v[h],h,m),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:X_(E,p)}else switch(t){case 4:return!1;case 7:X_(E,p)}return i?-1:r||o?o:E}},cD={forEach:Ji(0),map:Ji(1),filter:Ji(2),some:Ji(3),every:Ji(4),find:Ji(5),findIndex:Ji(6),filterReject:Ji(7)},W0=uD.getWeakData,cct=Uo.set,fct=Uo.getterFor,dct=cD.find,pct=cD.findIndex,hct=zt([].splice),gct=0,q0=function(t){return t.frozen||(t.frozen=new ML)},ML=function(){this.entries=[]},Q2=function(t,e){return dct(t.entries,function(n){return n[0]===e})};ML.prototype={get:function(t){var e=Q2(this,t);if(e)return e[1]},has:function(t){return!!Q2(this,t)},set:function(t,e){var n=Q2(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=pct(this.entries,function(n){return n[0]===t});return~e&&hct(this.entries,e,1),!!~e}};var Kf,zL={getConstructor:function(t,e,n,r){var o=t(function(s,l){PL(s,i),cct(s,{type:e,id:gct++,frozen:void 0}),l!=null&&TL(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=fct(e),u=function(s,l,c){var f=a(s),p=W0(ar(l),!0);return p===!0?q0(f).set(l,c):p[f.id]=c,s};return h6(i,{delete:function(s){var l=a(this);if(!Re(s))return!1;var c=W0(s);return c===!0?q0(l).delete(s):c&&hn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Re(s))return!1;var c=W0(s);return c===!0?q0(l).has(s):c&&hn(c,l.id)}}),h6(i,n?{get:function(s){var l=a(this);if(Re(s)){var c=W0(s);return c===!0?q0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},G0=Uo.enforce,vct=!xt.ActiveXObject&&"ActiveXObject"in xt,$L=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},mct=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=xt[t],u=a&&a.prototype,s=a,l={},c=function(g){var y=zt(u[g]);Lo(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!Re(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!Re(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!Re(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(c6(t,!Me(a)||!(o||u.forEach&&!Le(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),uD.enable();else if(c6(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Le(function(){f.has(1)}),m=function(g,y){if(!IL)return!1;var h=!1;try{var b={};b[jL]=function(){return{next:function(){return{done:h=!0}}}},function(E){new a(E)}(b)}catch{}return h}(),v=!o&&Le(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});m||((s=e(function(g,y){PL(g,u);var h=function(b,E,w){var S,D;return mm&&Me(S=E.constructor)&&S!==w&&Re(D=S.prototype)&&D!==w.prototype&&mm(b,D),b}(new a,g,s);return y!=null&&TL(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Ka({global:!0,forced:s!=a},l),p6(s,t),o||n.setStrong(s,t,r),s}("WeakMap",$L,zL);if(xL&&vct){Kf=zL.getConstructor($L,"WeakMap",!0),uD.enable();var Yf=mct.prototype,Z_=zt(Yf.delete),K0=zt(Yf.has),J_=zt(Yf.get),Q_=zt(Yf.set);h6(Yf,{delete:function(t){if(Re(t)&&!Mu(t)){var e=G0(this);return e.frozen||(e.frozen=new Kf),Z_(this,t)||e.frozen.delete(t)}return Z_(this,t)},has:function(t){if(Re(t)&&!Mu(t)){var e=G0(this);return e.frozen||(e.frozen=new Kf),K0(this,t)||e.frozen.has(t)}return K0(this,t)},get:function(t){if(Re(t)&&!Mu(t)){var e=G0(this);return e.frozen||(e.frozen=new Kf),K0(this,t)?J_(this,t):e.frozen.get(t)}return J_(this,t)},set:function(t,e){if(Re(t)&&!Mu(t)){var n=G0(this);n.frozen||(n.frozen=new Kf),K0(this,t)?Q_(this,t,e):n.frozen.set(t,e)}else Q_(this,t,e);return this}})}var VL={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},tw=J5("span").classList,tB=tw&&tw.constructor&&tw.constructor.prototype,yct=tB===Object.prototype?void 0:tB,ew=kn("iterator"),eB=kn("toStringTag"),nw=kd.values,HL=function(t,e){if(t){if(t[ew]!==nw)try{Ba(t,ew,nw)}catch{t[ew]=nw}if(t[eB]||Ba(t,eB,e),VL[e]){for(var n in kd)if(t[n]!==kd[n])try{Ba(t,n,kd[n])}catch{t[n]=kd[n]}}}};for(var rw in VL)HL(xt[rw]&&xt[rw].prototype,rw);HL(yct,"DOMTokenList");var v6=new WeakMap,bct={type:"list-item",renderElem:function(t,e,n){v6.set(t,n);var r=t,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,p){var d=p,m=d.type,v=d.level,g=v===void 0?0:v,y=d.ordered,h=y!==void 0&&y;if(!h)return-1;var b=1,E=p,w=O.findPath(f,E);if(w[0]===0)return 1;for(;w[0]>0;){var S=j.previous(w),D=C.node(f,S);if(D==null)break;var x=D[0],k=x.level,N=k===void 0?0:k,$=x.type,R=x.ordered;if($!==m||N<g)break;if(N===g){if(R!==h)break;b++}E=x,w=S}return b}(n,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var p="";switch(f){case 0:p="•";break;case 1:p="◦";break;default:p="▪"}return p}(i);var c=function(f){var p,d=f.children||[],m=d.length;if(m===0)return"";for(var v=0;v<m&&!p;v++){var g=d[v];it.isText(g)&&(p=g)}return p==null?"":p.color||""}(t);return Dt("div",{style:u},Dt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Dt("span",null,e))}},m6=function(t,e){return m6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},m6(t,e);/*! *****************************************************************************
  105. Copyright (c) Microsoft Corporation.
  106. Permission to use, copy, modify, and/or distribute this software for any
  107. purpose with or without fee is hereby granted.
  108. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  109. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  110. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  111. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  112. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  113. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  114. PERFORMANCE OF THIS SOFTWARE.
  115. ***************************************************************************** */};function UL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}m6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function nB(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function qd(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function rB(t){return C.nodes(t,{at:t.selection||void 0,match:function(e){return O.findPath(t,e).length===1}})}var wct=EL.includes;Ka({target:"Array",proto:!0},{includes:function(t){return wct(this,t,arguments.length>1?arguments[1]:void 0)}}),Ud("includes");var oB,ow,Ect=function(){var t=ar(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},fD=xt.RegExp,y6=Le(function(){var t=fD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Sct=y6||Le(function(){return!fD("a","y").sticky}),Cct={BROKEN_CARET:y6||Le(function(){var t=fD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Sct,UNSUPPORTED_Y:y6},Dct=xt.RegExp,xct=Le(function(){var t=Dct(".","s");return!(t.dotAll&&t.exec(`
  116. `)&&t.flags==="s")}),Act=xt.RegExp,Oct=Le(function(){var t=Act("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),kct=Uo.get,_ct=Y5("native-string-replace",String.prototype.replace),ym=RegExp.prototype.exec,b6=ym,Bct=zt("".charAt),Fct=zt("".indexOf),Tct=zt("".replace),iw=zt("".slice),aw=(ow=/b*/g,pn(ym,oB=/a/,"a"),pn(ym,ow,"a"),oB.lastIndex!==0||ow.lastIndex!==0),iB=Cct.BROKEN_CARET,uw=/()??/.exec("")[1]!==void 0;(aw||uw||iB||xct||Oct)&&(b6=function(t){var e,n,r,o,i,a,u,s=this,l=kct(s),c=ci(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=pn(b6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=iB&&s.sticky,m=pn(Ect,s),v=s.source,g=0,y=c;if(d&&(m=Tct(m,"y",""),Fct(m,"g")===-1&&(m+="g"),y=iw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Bct(c,s.lastIndex-1)!==`
  117. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),uw&&(n=new RegExp("^"+v+"$(?!\\s)",m)),aw&&(r=s.lastIndex),o=pn(ym,d?n:s,y),d?o?(o.input=iw(o.input,g),o[0]=iw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:aw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),uw&&o&&o.length>1&&pn(_ct,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=nD(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var bm=b6;Ka({target:"RegExp",proto:!0,forced:/./.exec!==bm},{exec:bm});var WL=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var n=this.type;return O.getSelectedNodeByType(e,n)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var n=this.getListNode(e);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(n){if(C.isVoid(e,n)&&C.isBlock(e,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},t.prototype.exec=function(e,n){this.isActive(e)?I.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):I.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),Pct='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',jct='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',Ict=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=tt("listModule.unOrderedList"),n.iconSvg=Pct,n}return UL(e,t),e}(WL),Nct=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=tt("listModule.orderedList"),n.iconSvg=jct,n}return UL(e,t),e}(WL),Rct={key:"bulletedList",factory:function(){return new Ict}},Lct={key:"numberedList",factory:function(){return new Nct}},aB=[],Mct={type:"list-item",elemToHtml:function(t,e){var n="",r="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=v6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,m=d!==void 0&&d,v=f.level,g=v===void 0?0:v,y=O.findPath(c,l);if(y[0]===0)return g+1;var h=j.previous(y),b=C.node(c,h);if(!b)return 0;var E=qd(b,1)[0];if(O.getNodeType(E)!==p)return g+1;var w=E,S=w.ordered,D=S!==void 0&&S,x=w.level,k=x===void 0?0:x;return k<g?g-k:k>g?0:k===g?D===m?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",aB.push(i);var s=function(l){var c=v6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,m=d!==void 0&&d,v=f.level,g=v===void 0?0:v,y=O.findPath(c,l);if(y[0]===c.children.length-1)return g+1;var h=j.next(y),b=C.node(c,h);if(!b)return 0;var E=qd(b,1)[0];if(O.getNodeType(E)!==p)return g+1;var w=E,S=w.ordered,D=S!==void 0&&S,x=w.level,k=x===void 0?0:x;return k<g?g-k:k>g?0:k===g?D===m?0:1:0}(t);if(s>0)for(u=0;u<s;u++)r+="</"+aB.pop()+">";return{html:"<li>"+e+"</li>",prefix:n,suffix:r}}},zct=kn("species"),$ct=cD.filter,Vct=n6>=51||!Le(function(){var t=[];return(t.constructor={})[zct]=function(){return{foo:1}},t.filter(Boolean).foo!==1});Ka({target:"Array",proto:!0,forced:!Vct},{filter:function(t){return $ct(this,t,arguments.length>1?arguments[1]:void 0)}});var dD=Function.prototype,uB=dD.apply,Hct=dD.bind,sB=dD.call,Uct=typeof Reflect=="object"&&Reflect.apply||(Hct?sB.bind(uB):function(){return sB.apply(uB,arguments)}),lB=(kn("species"),RegExp.prototype),Wct=FL.charAt,qct=function(t,e,n){return e+(n?Wct(t,e).length:1)},Gct=Math.floor,sw=zt("".charAt),Kct=zt("".replace),lw=zt("".slice),Yct=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Xct=/\$([$&'`]|\d{1,2})/g,Zct=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Xct;return o!==void 0&&(o=jh(o),s=Yct),Kct(i,s,function(l,c){var f;switch(sw(c,0)){case"$":return"$";case"&":return t;case"`":return lw(e,0,n);case"'":return lw(e,a);case"<":f=o[lw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Gct(p/10);return d===0?l:d<=u?r[d-1]===void 0?sw(c,1):r[d-1]+sw(c,1):l}f=r[p-1]}return f===void 0?"":f})},Jct=xt.TypeError,Qct=function(t,e){var n=t.exec;if(Me(n)){var r=pn(n,t,e);return r!==null&&ar(r),r}if(bi(t)==="RegExp")return pn(bm,t,e);throw Jct("RegExp#exec called on incompatible receiver")},w6=kn("replace"),tft=Math.max,eft=Math.min,nft=zt([].concat),cw=zt([].push),cB=zt("".indexOf),fB=zt("".slice),rft="a".replace(/./,"$0")==="$0",dB=!!/./[w6]&&/./[w6]("a","$0")==="";(function(t,e,n,r){var o=kn(t),i=!Le(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Le(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=zt(/./[o]),s=function(l,c,f){var p=dB?"$":"$0";return[function(d,m){var v=G1(this),g=d==null?void 0:Pp(d,w6);return g?pn(g,d,v,m):pn(c,ci(v),d,m)},function(d,m){var v=ar(this),g=ci(d);if(typeof m=="string"&&cB(m,p)===-1&&cB(m,"$<")===-1){var y=f(c,v,g,m);if(y.done)return y.value}var h=Me(m);h||(m=ci(m));var b=v.global;if(b){var E=v.unicode;v.lastIndex=0}for(var w=[];;){var S=Qct(v,g);if(S===null||(cw(w,S),!b))break;ci(S[0])===""&&(v.lastIndex=qct(g,wL(v.lastIndex),E))}for(var D,x="",k=0,N=0;N<w.length;N++){for(var $=ci((S=w[N])[0]),R=tft(eft(Nh(S.index),g.length),0),K=[],U=1;U<S.length;U++)cw(K,(D=S[U])===void 0?D:String(D));var W=S.groups;if(h){var G=nft([$],K,R,g);W!==void 0&&cw(G,W);var nt=ci(Uct(m,void 0,G))}else nt=Zct($,g,R,K,W,m);R>=k&&(x+=fB(g,k,R)+nt,k=R+$.length)}return x+fB(g,k)}]}(0,""[t],function(l,c,f,p,d){var m=zt(l),v=c.exec;return v===bm||v===lB.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});Lo(String.prototype,t,s[0]),Lo(lB,o,s[1])}})("replace",0,!!Le(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!rft||dB);var oft=xt.TypeError,qL=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&sD(a,u);f<r;){if(f in n){if(s=p?p(n[f],f,e):n[f],i>0&&g6(s))l=Kc(s),c=qL(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw oft("Exceed the acceptable array length");t[c]=s}c++}f++}return c},ift=qL;function fw(t){return t.length?t[0].tagName.toLowerCase():""}Ka({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=jh(this),n=Kc(e),r=LL(e,0);return r.length=ift(r,e,e,n,0,t===void 0?1:Nh(t)),r}}),Ud("flat"),Ka({global:!0},{globalThis:xt}),Ur&&(B.fn.append=Ur),Hr&&(B.fn.attr=Hr),uc&&(B.fn.parent=uc);var aft={renderElems:[bct],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(M.isExpanded(a))e(i);else{var u=O.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?I.setNodes(o,{level:l-1}):I.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(M.isCollapsed(l)){var c=O.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,p=f===void 0?0:f;return void I.setNodes(o,{level:p+1})}}if(M.isExpanded(l)){var d=0,m=!1;try{for(var v=nB(rB(o)),g=v.next();!g.done;g=v.next()){var y=qd(g.value,1)[0];O.getNodeType(y)==="list-item"?d++:m=!0}}catch(D){i={error:D}}finally{try{g&&!g.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}if(m||d<=1)return void n();try{for(var h=nB(rB(o)),b=h.next();!b.done;b=h.next()){var E=qd(b.value,2),w=(y=E[0],E[1]),S=y.level;p=S===void 0?0:S,I.setNodes(o,{level:p+1},{at:w})}}catch(D){u={error:D}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=qd(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||I.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[Rct,Lct],elemsToHtml:[Mct],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(a){return!!it.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return fw(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=fw(s);l==="ul"||l==="ol";)l=fw(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},GL=_s(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",m="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",w=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[o]=D[i]=D[b]=D[a]=D[E]=D[u]=D[s]=D[l]=D[c]=D[f]=D[p]=D[m]=D[v]=D[g]=D[h]=!1;var x=typeof ve=="object"&&ve&&ve.Object===Object&&ve,k=typeof self=="object"&&self&&self.Object===Object&&self,N=x||k||Function("return this")(),$=e&&!e.nodeType&&e,R=$&&t&&!t.nodeType&&t,K=R&&R.exports===$,U=K&&x.process,W=function(){try{return U&&U.binding&&U.binding("util")}catch{}}(),G=W&&W.isTypedArray;function nt(T,L){for(var Z=-1,yt=T==null?0:T.length;++Z<yt;)if(L(T[Z],Z,T))return!0;return!1}function ft(T){var L=-1,Z=Array(T.size);return T.forEach(function(yt,le){Z[++L]=[le,yt]}),Z}function ct(T){var L=-1,Z=Array(T.size);return T.forEach(function(yt){Z[++L]=yt}),Z}var st=Array.prototype,_=Function.prototype,A=Object.prototype,P=N["__core-js_shared__"],V=_.toString,Y=A.hasOwnProperty,H=function(){var T=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),at=A.toString,bt=RegExp("^"+V.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=K?N.Buffer:void 0,Ot=N.Symbol,q=N.Uint8Array,Vt=A.propertyIsEnumerable,Ft=st.splice,gt=Ot?Ot.toStringTag:void 0,Tt=Object.getOwnPropertySymbols,ze=wt?wt.isBuffer:void 0,Kt=function(T,L){return function(Z){return T(L(Z))}}(Object.keys,Object),se=Fi(N,"DataView"),Ae=Fi(N,"Map"),_n=Fi(N,"Promise"),qt=Fi(N,"Set"),Gn=Fi(N,"WeakMap"),Xr=Fi(Object,"create"),bo=ti(se),$s=ti(Ae),lu=ti(_n),Zr=ti(qt),wo=ti(Gn),Zo=Ot?Ot.prototype:void 0,Bn=Zo?Zo.valueOf:void 0;function Fn(T){var L=-1,Z=T==null?0:T.length;for(this.clear();++L<Z;){var yt=T[L];this.set(yt[0],yt[1])}}function Tn(T){var L=-1,Z=T==null?0:T.length;for(this.clear();++L<Z;){var yt=T[L];this.set(yt[0],yt[1])}}function $n(T){var L=-1,Z=T==null?0:T.length;for(this.clear();++L<Z;){var yt=T[L];this.set(yt[0],yt[1])}}function gn(T){var L=-1,Z=T==null?0:T.length;for(this.__data__=new $n;++L<Z;)this.add(T[L])}function Or(T){var L=this.__data__=new Tn(T);this.size=L.size}function Xc(T,L){var Z=ei(T),yt=!Z&&Zh(T),le=!Z&&!yt&&Eo(T),Mt=!Z&&!yt&&!le&&Co(T),F=Z||yt||le||Mt,z=F?function(Wt,Ee){for(var ce=-1,Jt=Array(Wt);++ce<Wt;)Jt[ce]=Ee(ce);return Jt}(T.length,String):[],J=z.length;for(var lt in T)!L&&!Y.call(T,lt)||F&&(lt=="length"||le&&(lt=="offset"||lt=="parent")||Mt&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||Zc(lt,J))||z.push(lt);return z}function Bi(T,L){for(var Z=T.length;Z--;)if(Us(T[Z][0],L))return Z;return-1}function Jo(T){return T==null?T===void 0?"[object Undefined]":"[object Null]":gt&&gt in Object(T)?function(L){var Z=Y.call(L,gt),yt=L[gt];try{L[gt]=void 0;var le=!0}catch{}var Mt=at.call(L);return le&&(Z?L[gt]=yt:delete L[gt]),Mt}(T):function(L){return at.call(L)}(T)}function Vs(T){return Ti(T)&&Jo(T)==o}function cu(T,L,Z,yt,le){return T===L||(T==null||L==null||!Ti(T)&&!Ti(L)?T!=T&&L!=L:function(Mt,F,z,J,lt,Wt){var Ee=ei(Mt),ce=ei(F),Jt=Ee?i:ur(Mt),ln=ce?i:ur(F),Pn=(Jt=Jt==o?p:Jt)==p,fu=(ln=ln==o?p:ln)==p,ni=Jt==ln;if(ni&&Eo(Mt)){if(!Eo(F))return!1;Ee=!0,Pn=!1}if(ni&&!Pn)return Wt||(Wt=new Or),Ee||Co(Mt)?kr(Mt,F,z,J,lt,Wt):function(Ht,Qt,te,$e,Vn,Kn,to){switch(te){case E:if(Ht.byteLength!=Qt.byteLength||Ht.byteOffset!=Qt.byteOffset)return!1;Ht=Ht.buffer,Qt=Qt.buffer;case b:return!(Ht.byteLength!=Qt.byteLength||!Kn(new q(Ht),new q(Qt)));case a:case u:case f:return Us(+Ht,+Qt);case s:return Ht.name==Qt.name&&Ht.message==Qt.message;case m:case g:return Ht==Qt+"";case c:var ji=ft;case v:var Qc=1&$e;if(ji||(ji=ct),Ht.size!=Qt.size&&!Qc)return!1;var t0=to.get(Ht);if(t0)return t0==Qt;$e|=2,to.set(Ht,Qt);var Ws=kr(ji(Ht),ji(Qt),$e,Vn,Kn,to);return to.delete(Ht),Ws;case y:if(Bn)return Bn.call(Ht)==Bn.call(Qt)}return!1}(Mt,F,Jt,z,J,lt,Wt);if(!(1&z)){var Pi=Pn&&Y.call(Mt,"__wrapped__"),Ct=fu&&Y.call(F,"__wrapped__");if(Pi||Ct){var re=Pi?Mt.value():Mt,Ue=Ct?F.value():F;return Wt||(Wt=new Or),lt(re,Ue,z,J,Wt)}}return ni?(Wt||(Wt=new Or),function(Ht,Qt,te,$e,Vn,Kn){var to=1&te,ji=Qo(Ht),Qc=ji.length,t0=Qo(Qt).length;if(Qc!=t0&&!to)return!1;for(var Ws=Qc;Ws--;){var du=ji[Ws];if(!(to?du in Qt:Y.call(Qt,du)))return!1}var q8=Kn.get(Ht);if(q8&&Kn.get(Qt))return q8==Qt;var e0=!0;Kn.set(Ht,Qt),Kn.set(Qt,Ht);for(var vy=to;++Ws<Qc;){var n0=Ht[du=ji[Ws]],r0=Qt[du];if($e)var G8=to?$e(r0,n0,du,Qt,Ht,Kn):$e(n0,r0,du,Ht,Qt,Kn);if(!(G8===void 0?n0===r0||Vn(n0,r0,te,$e,Kn):G8)){e0=!1;break}vy||(vy=du=="constructor")}if(e0&&!vy){var o0=Ht.constructor,i0=Qt.constructor;o0==i0||!("constructor"in Ht)||!("constructor"in Qt)||typeof o0=="function"&&o0 instanceof o0&&typeof i0=="function"&&i0 instanceof i0||(e0=!1)}return Kn.delete(Ht),Kn.delete(Qt),e0}(Mt,F,z,J,lt,Wt)):!1}(T,L,Z,yt,cu,le))}function Hs(T){return!(!Jh(T)||function(L){return!!H&&H in L}(T))&&(Jc(T)?bt:w).test(ti(T))}function Jr(T){if(Z=(L=T)&&L.constructor,yt=typeof Z=="function"&&Z.prototype||A,L!==yt)return Kt(T);var L,Z,yt,le=[];for(var Mt in Object(T))Y.call(T,Mt)&&Mt!="constructor"&&le.push(Mt);return le}function kr(T,L,Z,yt,le,Mt){var F=1&Z,z=T.length,J=L.length;if(z!=J&&!(F&&J>z))return!1;var lt=Mt.get(T);if(lt&&Mt.get(L))return lt==L;var Wt=-1,Ee=!0,ce=2&Z?new gn:void 0;for(Mt.set(T,L),Mt.set(L,T);++Wt<z;){var Jt=T[Wt],ln=L[Wt];if(yt)var Pn=F?yt(ln,Jt,Wt,L,T,Mt):yt(Jt,ln,Wt,T,L,Mt);if(Pn!==void 0){if(Pn)continue;Ee=!1;break}if(ce){if(!nt(L,function(fu,ni){if(Pi=ni,!ce.has(Pi)&&(Jt===fu||le(Jt,fu,Z,yt,Mt)))return ce.push(ni);var Pi})){Ee=!1;break}}else if(Jt!==ln&&!le(Jt,ln,Z,yt,Mt)){Ee=!1;break}}return Mt.delete(T),Mt.delete(L),Ee}function Qo(T){return function(L,Z,yt){var le=Z(L);return ei(L)?le:function(Mt,F){for(var z=-1,J=F.length,lt=Mt.length;++z<J;)Mt[lt+z]=F[z];return Mt}(le,yt(L))}(T,Qh,Xh)}function Qr(T,L){var Z,yt,le=T.__data__;return((yt=typeof(Z=L))=="string"||yt=="number"||yt=="symbol"||yt=="boolean"?Z!=="__proto__":Z===null)?le[typeof L=="string"?"string":"hash"]:le.map}function Fi(T,L){var Z=function(yt,le){return yt==null?void 0:yt[le]}(T,L);return Hs(Z)?Z:void 0}Fn.prototype.clear=function(){this.__data__=Xr?Xr(null):{},this.size=0},Fn.prototype.delete=function(T){var L=this.has(T)&&delete this.__data__[T];return this.size-=L?1:0,L},Fn.prototype.get=function(T){var L=this.__data__;if(Xr){var Z=L[T];return Z===n?void 0:Z}return Y.call(L,T)?L[T]:void 0},Fn.prototype.has=function(T){var L=this.__data__;return Xr?L[T]!==void 0:Y.call(L,T)},Fn.prototype.set=function(T,L){var Z=this.__data__;return this.size+=this.has(T)?0:1,Z[T]=Xr&&L===void 0?n:L,this},Tn.prototype.clear=function(){this.__data__=[],this.size=0},Tn.prototype.delete=function(T){var L=this.__data__,Z=Bi(L,T);return!(Z<0)&&(Z==L.length-1?L.pop():Ft.call(L,Z,1),--this.size,!0)},Tn.prototype.get=function(T){var L=this.__data__,Z=Bi(L,T);return Z<0?void 0:L[Z][1]},Tn.prototype.has=function(T){return Bi(this.__data__,T)>-1},Tn.prototype.set=function(T,L){var Z=this.__data__,yt=Bi(Z,T);return yt<0?(++this.size,Z.push([T,L])):Z[yt][1]=L,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Fn,map:new(Ae||Tn),string:new Fn}},$n.prototype.delete=function(T){var L=Qr(this,T).delete(T);return this.size-=L?1:0,L},$n.prototype.get=function(T){return Qr(this,T).get(T)},$n.prototype.has=function(T){return Qr(this,T).has(T)},$n.prototype.set=function(T,L){var Z=Qr(this,T),yt=Z.size;return Z.set(T,L),this.size+=Z.size==yt?0:1,this},gn.prototype.add=gn.prototype.push=function(T){return this.__data__.set(T,n),this},gn.prototype.has=function(T){return this.__data__.has(T)},Or.prototype.clear=function(){this.__data__=new Tn,this.size=0},Or.prototype.delete=function(T){var L=this.__data__,Z=L.delete(T);return this.size=L.size,Z},Or.prototype.get=function(T){return this.__data__.get(T)},Or.prototype.has=function(T){return this.__data__.has(T)},Or.prototype.set=function(T,L){var Z=this.__data__;if(Z instanceof Tn){var yt=Z.__data__;if(!Ae||yt.length<199)return yt.push([T,L]),this.size=++Z.size,this;Z=this.__data__=new $n(yt)}return Z.set(T,L),this.size=Z.size,this};var Xh=Tt?function(T){return T==null?[]:(T=Object(T),function(L,Z){for(var yt=-1,le=L==null?0:L.length,Mt=0,F=[];++yt<le;){var z=L[yt];Z(z,yt,L)&&(F[Mt++]=z)}return F}(Tt(T),function(L){return Vt.call(T,L)}))}:function(){return[]},ur=Jo;function Zc(T,L){return!!(L=L??r)&&(typeof T=="number"||S.test(T))&&T>-1&&T%1==0&&T<L}function ti(T){if(T!=null){try{return V.call(T)}catch{}try{return T+""}catch{}}return""}function Us(T,L){return T===L||T!=T&&L!=L}(se&&ur(new se(new ArrayBuffer(1)))!=E||Ae&&ur(new Ae)!=c||_n&&ur(_n.resolve())!=d||qt&&ur(new qt)!=v||Gn&&ur(new Gn)!=h)&&(ur=function(T){var L=Jo(T),Z=L==p?T.constructor:void 0,yt=Z?ti(Z):"";if(yt)switch(yt){case bo:return E;case $s:return c;case lu:return d;case Zr:return v;case wo:return h}return L});var Zh=Vs(function(){return arguments}())?Vs:function(T){return Ti(T)&&Y.call(T,"callee")&&!Vt.call(T,"callee")},ei=Array.isArray,Eo=ze||function(){return!1};function Jc(T){if(!Jh(T))return!1;var L=Jo(T);return L==l||L=="[object GeneratorFunction]"||L=="[object AsyncFunction]"||L=="[object Proxy]"}function So(T){return typeof T=="number"&&T>-1&&T%1==0&&T<=r}function Jh(T){var L=typeof T;return T!=null&&(L=="object"||L=="function")}function Ti(T){return T!=null&&typeof T=="object"}var Co=G?function(T){return function(L){return T(L)}}(G):function(T){return Ti(T)&&So(T.length)&&!!D[Jo(T)]};function Qh(T){return(L=T)!=null&&So(L.length)&&!Jc(L)?Xc(T):Jr(T);var L}t.exports=function(T,L){return cu(T,L)}});ir("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),ir("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var pB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function KL(t){var e={exports:{}};return t(e,e.exports),e.exports}var Qi,zg,Y0=function(t){return t&&t.Math==Math&&t},Lt=Y0(typeof globalThis=="object"&&globalThis)||Y0(typeof window=="object"&&window)||Y0(typeof self=="object"&&self)||Y0(typeof pB=="object"&&pB)||function(){return this}()||Function("return this")(),un=function(t){try{return!!t()}catch{return!0}},Ya=!un(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Xf=Function.prototype.call,nn=Xf.bind?Xf.bind(Xf):function(){return Xf.apply(Xf,arguments)},hB={}.propertyIsEnumerable,gB=Object.getOwnPropertyDescriptor,uft={f:gB&&!hB.call({1:2},1)?function(t){var e=gB(this,t);return!!e&&e.enumerable}:hB},pD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},YL=Function.prototype,E6=YL.bind,S6=YL.call,sft=E6&&E6.bind(S6),Ut=E6?function(t){return t&&sft(S6,t)}:function(t){return t&&function(){return S6.apply(t,arguments)}},lft=Ut({}.toString),cft=Ut("".slice),Fa=function(t){return cft(lft(t),8,-1)},dw=Lt.Object,fft=Ut("".split),XL=un(function(){return!dw("z").propertyIsEnumerable(0)})?function(t){return Fa(t)=="String"?fft(t,""):dw(t)}:dw,dft=Lt.TypeError,Xa=function(t){if(t==null)throw dft("Can't call method on "+t);return t},Lh=function(t){return XL(Xa(t))},On=function(t){return typeof t=="function"},Lr=function(t){return typeof t=="object"?t!==null:On(t)},pft=function(t){return On(t)?t:void 0},Mh=function(t,e){return arguments.length<2?pft(Lt[t]):Lt[t]&&Lt[t][e]},ZL=Ut({}.isPrototypeOf),pw=Mh("navigator","userAgent")||"",vB=Lt.process,mB=Lt.Deno,yB=vB&&vB.versions||mB&&mB.version,bB=yB&&yB.v8;bB&&(zg=(Qi=bB.split("."))[0]>0&&Qi[0]<4?1:+(Qi[0]+Qi[1])),!zg&&pw&&(!(Qi=pw.match(/Edge\/(\d+)/))||Qi[1]>=74)&&(Qi=pw.match(/Chrome\/(\d+)/))&&(zg=+Qi[1]);var C6=zg,D6=!!Object.getOwnPropertySymbols&&!un(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&C6&&C6<41}),hD=D6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",hft=Lt.Object,hw=hD?function(t){return typeof t=="symbol"}:function(t){var e=Mh("Symbol");return On(e)&&ZL(e.prototype,hft(t))},gft=Lt.String,JL=function(t){try{return gft(t)}catch{return"Object"}},vft=Lt.TypeError,QL=function(t){if(On(t))return t;throw vft(JL(t)+" is not a function")},gD=function(t,e){var n=t[e];return n==null?void 0:QL(n)},mft=Lt.TypeError,yft=Object.defineProperty,vD=function(t,e){try{yft(Lt,t,{value:e,configurable:!0,writable:!0})}catch{Lt[t]=e}return e},Ta=Lt["__core-js_shared__"]||vD("__core-js_shared__",{}),mD=KL(function(t){(t.exports=function(e,n){return Ta[e]||(Ta[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),bft=Lt.Object,yD=function(t){return bft(Xa(t))},wft=Ut({}.hasOwnProperty),zr=Object.hasOwn||function(t,e){return wft(yD(t),e)},Eft=0,Sft=Math.random(),Cft=Ut(1 .toString),tM=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Cft(++Eft+Sft,36)},Zf=mD("wks"),as=Lt.Symbol,wB=as&&as.for,Dft=hD?as:as&&as.withoutSetter||tM,Yr=function(t){if(!zr(Zf,t)||!D6&&typeof Zf[t]!="string"){var e="Symbol."+t;D6&&zr(as,t)?Zf[t]=as[t]:Zf[t]=hD&&wB?wB(e):Dft(e)}return Zf[t]},xft=Lt.TypeError,Aft=Yr("toPrimitive"),bD=function(t){var e=function(n,r){if(!Lr(n)||hw(n))return n;var o,i=gD(n,Aft);if(i){if(r===void 0&&(r="default"),o=nn(i,n,r),!Lr(o)||hw(o))return o;throw xft("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&On(s=a.toString)&&!Lr(l=nn(s,a))||On(s=a.valueOf)&&!Lr(l=nn(s,a))||u!=="string"&&On(s=a.toString)&&!Lr(l=nn(s,a)))return l;throw mft("Can't convert object to primitive value")}(n,r)}(t,"string");return hw(e)?e:e+""},x6=Lt.document,Oft=Lr(x6)&&Lr(x6.createElement),wD=function(t){return Oft?x6.createElement(t):{}},eM=!Ya&&!un(function(){return Object.defineProperty(wD("div"),"a",{get:function(){return 7}}).a!=7}),EB=Object.getOwnPropertyDescriptor,nM={f:Ya?EB:function(t,e){if(t=Lh(t),e=bD(e),eM)try{return EB(t,e)}catch{}if(zr(t,e))return pD(!nn(uft.f,t,e),t[e])}},kft=Lt.String,_ft=Lt.TypeError,$r=function(t){if(Lr(t))return t;throw _ft(kft(t)+" is not an object")},Bft=Lt.TypeError,SB=Object.defineProperty,zh={f:Ya?SB:function(t,e,n){if($r(t),e=bD(e),$r(n),eM)try{return SB(t,e,n)}catch{}if("get"in n||"set"in n)throw Bft("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Sc=Ya?function(t,e,n){return zh.f(t,e,pD(1,n))}:function(t,e,n){return t[e]=n,t},Fft=Ut(Function.toString);On(Ta.inspectSource)||(Ta.inspectSource=function(t){return Fft(t)});var wm,Gd,Em,ED=Ta.inspectSource,CB=Lt.WeakMap,Tft=On(CB)&&/native code/.test(ED(CB)),DB=mD("keys"),rM=function(t){return DB[t]||(DB[t]=tM(t))},SD={},A6=Lt.TypeError,Pft=Lt.WeakMap;if(Tft||Ta.state){var Su=Ta.state||(Ta.state=new Pft),jft=Ut(Su.get),xB=Ut(Su.has),Ift=Ut(Su.set);wm=function(t,e){if(xB(Su,t))throw new A6("Object already initialized");return e.facade=t,Ift(Su,t,e),e},Gd=function(t){return jft(Su,t)||{}},Em=function(t){return xB(Su,t)}}else{var fl=rM("state");SD[fl]=!0,wm=function(t,e){if(zr(t,fl))throw new A6("Object already initialized");return e.facade=t,Sc(t,fl,e),e},Gd=function(t){return zr(t,fl)?t[fl]:{}},Em=function(t){return zr(t,fl)}}var O6={set:wm,get:Gd,has:Em,enforce:function(t){return Em(t)?Gd(t):wm(t,{})},getterFor:function(t){return function(e){var n;if(!Lr(e)||(n=Gd(e)).type!==t)throw A6("Incompatible receiver, "+t+" required");return n}}},oM=Function.prototype,Nft=Ya&&Object.getOwnPropertyDescriptor,gw=zr(oM,"name"),CD={EXISTS:gw,PROPER:gw&&(function(){}).name==="something",CONFIGURABLE:gw&&(!Ya||Ya&&Nft(oM,"name").configurable)},jp=KL(function(t){var e=CD.CONFIGURABLE,n=O6.get,r=O6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;On(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!zr(u,"name")||e&&u.name!==d)&&Sc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Lt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Sc(i,a,u)):f?i[a]=u:vD(a,u)})(Function.prototype,"toString",function(){return On(this)&&n(this).source||ED(this)})}),Rft=Math.ceil,Lft=Math.floor,Z1=function(t){var e=+t;return e!=e||e===0?0:(e>0?Lft:Rft)(e)},Mft=Math.max,zft=Math.min,Ip=function(t,e){var n=Z1(t);return n<0?Mft(n+e,0):zft(n,e)},$ft=Math.min,DD=function(t){return t>0?$ft(Z1(t),9007199254740991):0},J1=function(t){return DD(t.length)},Vft=function(t){return function(e,n,r){var o,i=Lh(e),a=J1(i),u=Ip(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Hft=Vft(!1),AB=Ut([].push),iM=function(t,e){var n,r=Lh(t),o=0,i=[];for(n in r)!zr(SD,n)&&zr(r,n)&&AB(i,n);for(;e.length>o;)zr(r,n=e[o++])&&(~Hft(i,n)||AB(i,n));return i},Sm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Uft=Sm.concat("length","prototype"),Wft={f:Object.getOwnPropertyNames||function(t){return iM(t,Uft)}},qft={f:Object.getOwnPropertySymbols},Gft=Ut([].concat),Kft=Mh("Reflect","ownKeys")||function(t){var e=Wft.f($r(t)),n=qft.f;return n?Gft(e,n(t)):e},Yft=function(t,e){for(var n=Kft(e),r=zh.f,o=nM.f,i=0;i<n.length;i++){var a=n[i];zr(t,a)||r(t,a,o(e,a))}},Xft=/#|\.prototype\./,$h=function(t,e){var n=Jft[Zft(t)];return n==tdt||n!=Qft&&(On(e)?un(e):!!e)},Zft=$h.normalize=function(t){return String(t).replace(Xft,".").toLowerCase()},Jft=$h.data={},Qft=$h.NATIVE="N",tdt=$h.POLYFILL="P",edt=$h,ndt=nM.f,Za=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Lt:l?Lt[u]||vD(u,{}):(Lt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=ndt(n,r))&&a.value:n[r],!edt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Yft(i,o)}(t.sham||o&&o.sham)&&Sc(i,"sham",!0),jp(n,r,i,t)}},aM={};aM[Yr("toStringTag")]="z";var xD=String(aM)==="[object z]",rdt=Yr("toStringTag"),odt=Lt.Object,idt=Fa(function(){return arguments}())=="Arguments",AD=xD?Fa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=odt(t),rdt))=="string"?n:idt?Fa(e):(r=Fa(e))=="Object"&&On(e.callee)?"Arguments":r},adt=Lt.String,Rn=function(t){if(AD(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return adt(t)},udt=/"/g,sdt=Ut("".replace);Za({target:"String",proto:!0,forced:un(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=Rn(Xa(this)),r="<a",(r+=' name="'+sdt(Rn(e),udt,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var X0,uM=function(){var t=$r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},OD=Lt.RegExp,k6=un(function(){var t=OD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),ldt=k6||un(function(){return!OD("a","y").sticky}),sM={BROKEN_CARET:k6||un(function(){var t=OD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:ldt,UNSUPPORTED_Y:k6},cdt=Object.keys||function(t){return iM(t,Sm)},fdt=Ya?Object.defineProperties:function(t,e){$r(t);for(var n,r=Lh(e),o=cdt(e),i=o.length,a=0;i>a;)zh.f(t,n=o[a++],r[n]);return t},ddt=Mh("document","documentElement"),lM=rM("IE_PROTO"),vw=function(){},cM=function(t){return"<script>"+t+"<\/script>"},OB=function(t){t.write(cM("")),t.close();var e=t.parentWindow.Object;return t=null,e},$g=function(){try{X0=new ActiveXObject("htmlfile")}catch{}var t,e;$g=typeof document<"u"?document.domain&&X0?OB(X0):((e=wD("iframe")).style.display="none",ddt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(cM("document.F=Object")),t.close(),t.F):OB(X0);for(var n=Sm.length;n--;)delete $g.prototype[Sm[n]];return $g()};SD[lM]=!0;var kB,mw,fM=Object.create||function(t,e){var n;return t!==null?(vw.prototype=$r(t),n=new vw,vw.prototype=null,n[lM]=t):n=$g(),e===void 0?n:fdt(n,e)},pdt=Lt.RegExp,hdt=un(function(){var t=pdt(".","s");return!(t.dotAll&&t.exec(`
  118. `)&&t.flags==="s")}),gdt=Lt.RegExp,vdt=un(function(){var t=gdt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),mdt=O6.get,ydt=mD("native-string-replace",String.prototype.replace),Cm=RegExp.prototype.exec,_6=Cm,bdt=Ut("".charAt),wdt=Ut("".indexOf),Edt=Ut("".replace),yw=Ut("".slice),bw=(mw=/b*/g,nn(Cm,kB=/a/,"a"),nn(Cm,mw,"a"),kB.lastIndex!==0||mw.lastIndex!==0),_B=sM.BROKEN_CARET,ww=/()??/.exec("")[1]!==void 0;(bw||ww||_B||hdt||vdt)&&(_6=function(t){var e,n,r,o,i,a,u,s=this,l=mdt(s),c=Rn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=nn(_6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=_B&&s.sticky,m=nn(uM,s),v=s.source,g=0,y=c;if(d&&(m=Edt(m,"y",""),wdt(m,"g")===-1&&(m+="g"),y=yw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&bdt(c,s.lastIndex-1)!==`
  119. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),ww&&(n=new RegExp("^"+v+"$(?!\\s)",m)),bw&&(r=s.lastIndex),o=nn(Cm,d?n:s,y),d?o?(o.input=yw(o.input,g),o[0]=yw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:bw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ww&&o&&o.length>1&&nn(ydt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=fM(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Np=_6;Za({target:"RegExp",proto:!0,forced:/./.exec!==Np},{exec:Np});var Dm=Array.isArray||function(t){return Fa(t)=="Array"},dM=function(){},Sdt=[],pM=Mh("Reflect","construct"),kD=/^\s*(?:class|function)\b/,Cdt=Ut(kD.exec),Ddt=!kD.exec(dM),Jf=function(t){if(!On(t))return!1;try{return pM(dM,Sdt,t),!0}catch{return!1}},_D=!pM||un(function(){var t;return Jf(Jf.call)||!Jf(Object)||!Jf(function(){t=!0})||t})?function(t){if(!On(t))return!1;switch(AD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ddt||!!Cdt(kD,ED(t))}:Jf,hM=function(t,e,n){var r=bD(e);r in t?zh.f(t,r,pD(0,n)):t[r]=n},xdt=Yr("species"),BD=function(t){return C6>=51||!un(function(){var e=[];return(e.constructor={})[xdt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Adt=Ut([].slice),Odt=BD("slice"),kdt=Yr("species"),Ew=Lt.Array,_dt=Math.max;function mo(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function BB(t){var e=t.selection;if(e==null)return!1;var n=mo(C.nodes(t,{match:function(i){return O.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=mo(n,2)[1],o=C.start(t,r);if(It.equals(e.anchor,o))return!0}return!1}function FB(t,e){var n,r,o=C.nodes(t,{at:e,match:function(s){return O.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}Za({target:"Array",proto:!0,forced:!Odt},{slice:function(t,e){var n,r,o,i=Lh(this),a=J1(i),u=Ip(t,a),s=Ip(e===void 0?a:e,a);if(Dm(i)&&(n=i.constructor,(_D(n)&&(n===Ew||Dm(n.prototype))||Lr(n)&&(n=n[kdt])===null)&&(n=void 0),n===Ew||n===void 0))return Adt(i,u,s);for(r=new(n===void 0?Ew:n)(_dt(s-u,0)),o=0;u<s;u++,o++)u in i&&hM(r,o,i[u]);return r.length=o,r}});var TB=Ut(Ut.bind),Bdt=Yr("species"),PB=Lt.Array,Fdt=function(t,e){return new(function(n){var r;return Dm(n)&&(r=n.constructor,(_D(r)&&(r===PB||Dm(r.prototype))||Lr(r)&&(r=r[Bdt])===null)&&(r=void 0)),r===void 0?PB:r}(t))(e===0?0:e)},jB=Ut([].push),ta=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=yD(s),v=XL(m),g=function(w,S){return QL(w),S===void 0?w:TB?TB(w,S):function(){return w.apply(S,arguments)}}(l,c),y=J1(v),h=0,b=f||Fdt,E=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=g(p=v[h],h,m),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:jB(E,p)}else switch(t){case 4:return!1;case 7:jB(E,p)}return i?-1:r||o?o:E}},Q1={forEach:ta(0),map:ta(1),filter:ta(2),some:ta(3),every:ta(4),find:ta(5),findIndex:ta(6),filterReject:ta(7)},Tdt=Q1.map;Za({target:"Array",proto:!0,forced:!BD("map")},{map:function(t){return Tdt(this,t,arguments.length>1?arguments[1]:void 0)}});var Pdt=xD?{}.toString:function(){return"[object "+AD(this)+"]"};function ty(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function gM(t){return ty(t).every(function(e){return!!e.isHeader})}xD||jp(Object.prototype,"toString",Pdt,{unsafe:!0});var jdt=CD.PROPER,B6=RegExp.prototype,vM=B6.toString,Idt=Ut(uM),Ndt=un(function(){return vM.call({source:"a",flags:"b"})!="/a/b"}),Rdt=jdt&&vM.name!="toString";(Ndt||Rdt)&&jp(RegExp.prototype,"toString",function(){var t=$r(this),e=Rn(t.source),n=t.flags;return"/"+e+"/"+Rn(n===void 0&&ZL(B6,t)&&!("flags"in B6)?Idt(t):n)},{unsafe:!0});var F6=Yr("unscopables"),T6=Array.prototype;T6[F6]==null&&zh.f(T6,F6,{configurable:!0,value:fM(null)});var Ldt=Q1.find,IB=!0;"find"in[]&&Array(1).find(function(){IB=!1}),Za({target:"Array",proto:!0,forced:IB},{find:function(t){return Ldt(this,t,arguments.length>1?arguments[1]:void 0)}}),T6[F6].find=!0;var FD=Function.prototype,NB=FD.apply,Mdt=FD.bind,RB=FD.call,mM=typeof Reflect=="object"&&Reflect.apply||(Mdt?RB.bind(NB):function(){return RB.apply(NB,arguments)}),zdt=Yr("species"),Sw=RegExp.prototype,yM=function(t,e,n,r){var o=Yr(t),i=!un(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!un(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[zdt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Ut(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var m=Ut(l),v=c.exec;return v===Np||v===Sw.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});jp(String.prototype,t,s[0]),jp(Sw,o,s[1])}r&&Sc(Sw[o],"sham",!0)},$dt=Yr("match"),Vdt=Lt.TypeError,Hdt=Yr("species"),Udt=Ut("".charAt),LB=Ut("".charCodeAt),Wdt=Ut("".slice),qdt=function(t){return function(e,n){var r,o,i=Rn(Xa(e)),a=Z1(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=LB(i,a))<55296||r>56319||a+1===u||(o=LB(i,a+1))<56320||o>57343?t?Udt(i,a):r:t?Wdt(i,a,a+2):o-56320+(r-55296<<10)+65536}},Gdt=qdt(!0),bM=function(t,e,n){return e+(n?Gdt(t,e).length:1)},Kdt=Lt.Array,Ydt=Math.max,MB=function(t,e,n){for(var r=J1(t),o=Ip(e,r),i=Ip(n===void 0?r:n,r),a=Kdt(Ydt(i-o,0)),u=0;o<i;o++,u++)hM(a,u,t[o]);return a.length=u,a},Xdt=Lt.TypeError,P6=function(t,e){var n=t.exec;if(On(n)){var r=nn(n,t,e);return r!==null&&$r(r),r}if(Fa(t)==="RegExp")return nn(Np,t,e);throw Xdt("RegExp#exec called on incompatible receiver")},dl=sM.UNSUPPORTED_Y,Zdt=Math.min,wM=[].push,Jdt=Ut(/./.exec),pl=Ut(wM),Qf=Ut("".slice);yM("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=Rn(Xa(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Lr(a=o)||!((u=a[$dt])!==void 0?u:Fa(a)=="RegExp"))return nn(e,s,o,l);for(var c,f,p,d=[],m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),v=0,g=new RegExp(o.source,m+"g");(c=nn(Np,g,s))&&!((f=g.lastIndex)>v&&(pl(d,Qf(s,v,c.index)),c.length>1&&c.index<s.length&&mM(wM,d,MB(c,1)),p=c[0].length,v=f,d.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return v===s.length?!p&&Jdt(g,"")||pl(d,""):pl(d,Qf(s,v)),d.length>l?MB(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:nn(e,this,o,i)}:e,[function(o,i){var a=Xa(this),u=o==null?void 0:gD(o,t);return u?nn(u,o,a,i):nn(r,Rn(a),o,i)},function(o,i){var a=$r(this),u=Rn(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(E,w){var S,D=$r(E).constructor;return D===void 0||(S=$r(D)[Hdt])==null?w:function(x){if(_D(x))return x;throw Vdt(JL(x)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(dl?"g":"y"),p=new l(dl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return P6(p,u)===null?[u]:[];for(var m=0,v=0,g=[];v<u.length;){p.lastIndex=dl?0:v;var y,h=P6(p,dl?Qf(u,v):u);if(h===null||(y=Zdt(DD(p.lastIndex+(dl?v:0)),u.length))===m)v=bM(u,v,c);else{if(pl(g,Qf(u,m,v)),g.length===d)return g;for(var b=1;b<=h.length-1;b++)if(pl(g,h[b]),g.length===d)return g;v=m=y}}return pl(g,Qf(u,m)),g}]},!!un(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),dl);var j6=`
  120. \v\f\r                 \u2028\u2029\uFEFF`,zB=Ut("".replace),xm="["+j6+"]",Qdt=RegExp("^"+xm+xm+"*"),tpt=RegExp(xm+xm+"*$"),Cw=function(t){return function(e){var n=Rn(Xa(e));return 1&t&&(n=zB(n,Qdt,"")),2&t&&(n=zB(n,tpt,"")),n}},ept={start:Cw(1),end:Cw(2),trim:Cw(3)},npt=CD.PROPER,rpt=ept.trim;function EM(t){return t.length?t[0].tagName.toLowerCase():""}Za({target:"String",proto:!0,forced:function(t){return un(function(){return!!j6[t]()||"​…᠎"[t]()!=="​…᠎"||npt&&j6[t].name!==t})}("trim")},{trim:function(){return rpt(this)}}),Za({global:!0},{globalThis:Lt}),Ur&&(B.fn.append=Ur),Ho&&(B.fn.on=Ho),Ha&&(B.fn.focus=Ha),Hr&&(B.fn.attr=Hr),Vo&&(B.fn.val=Vo),Va&&(B.fn.html=Va),ic&&(B.fn.dataset=ic),nc&&(B.fn.addClass=nc),rc&&(B.fn.removeClass=rc),lc&&(B.fn.children=lc),kv&&(B.fn.each=kv),sc&&(B.fn.find=sc);var Rp=!1,SM=0,CM=0,Lp=null,Mp=null,Kd=B("body");function DM(t){Rp=!1,Mp=null,Lp=null,Kd.off("mousemove",xM),Kd.off("mouseup",DM)}Kd.on("mousedown",function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),Rp=!0;var n=t.clientX;SM=n;var r=e.getBoundingClientRect().width;CM=r,Kd.on("mousemove",xM),Kd.on("mouseup",DM)}});var xM=vs(function(t){if(Rp&&Mp!=null&&Lp!=null){t.preventDefault();var e=t.clientX,n=CM+(e-SM);(n=Math.floor(100*n)/100)<30&&(n=30),I.setNodes(Mp,{width:n.toString()},{at:Lp})}},100),opt={type:"table",renderElem:function(t,e,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||M.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,p=O.findPath(u,s),d=C.start(u,p),m=C.end(u,p),v=It.compare(c,m)<=0&&It.compare(c,d)>=0,g=It.compare(f,m)<=0&&It.compare(f,d)>=0;return!!(v&&g&&j.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=Dt("div",{className:"table-container","data-selected":O.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=O.findPath(n,t),l=C.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},Dt("table",{width:i,contentEditable:r},Dt("colgroup",null,ty(t).map(function(u){var s=u.width;return Dt("col",{width:s===void 0?"auto":s})})),Dt("tbody",null,e)));return a}},ipt={type:"table-row",renderElem:function(t,e,n){return Dt("tr",null,e)}},apt={type:"table-cell",renderElem:function(t,e,n){var r=function(p,d){var m=O.getParentNode(p,d);if(m==null)return!1;var v=O.getParentNode(p,m);return v!=null&&ty(v).some(function(g){return g===d})}(n,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return Dt("td",{colSpan:a,rowSpan:s},e);var f=Dt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:vs(function(p){var d=this.elm;if(d!=null){var m=d.getBoundingClientRect(),v=m.left,g=m.width,y=m.top,h=m.height,b=p.clientX,E=p.clientY;Rp||(b>v+g-5&&b<v+g&&E>y&&E<y+h?(d.style.cursor="col-resize",Mp=n,Lp=O.findPath(n,t)):Rp||(d.style.cursor="auto",Mp=null,Lp=null))}},100)}},e);return f}},upt={selector:"table",preParseHtml:function(t){var e=B(t);if(EM(e)!=="table")return t;var n=e.find("tbody");if(n.length===0)return t;var r=e.find("tr");return e.append(r),n.remove(),e[0]}},spt=Q1.filter;Za({target:"Array",proto:!0,forced:!BD("filter")},{filter:function(t){return spt(this,t,arguments.length>1?arguments[1]:void 0)}});var lpt=Math.floor,Dw=Ut("".charAt),cpt=Ut("".replace),xw=Ut("".slice),fpt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,dpt=/\$([$&'`]|\d{1,2})/g,ppt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=dpt;return o!==void 0&&(o=yD(o),s=fpt),cpt(i,s,function(l,c){var f;switch(Dw(c,0)){case"$":return"$";case"&":return t;case"`":return xw(e,0,n);case"'":return xw(e,a);case"<":f=o[xw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=lpt(p/10);return d===0?l:d<=u?r[d-1]===void 0?Dw(c,1):r[d-1]+Dw(c,1):l}f=r[p-1]}return f===void 0?"":f})},I6=Yr("replace"),hpt=Math.max,gpt=Math.min,vpt=Ut([].concat),Aw=Ut([].push),$B=Ut("".indexOf),VB=Ut("".slice),mpt="a".replace(/./,"$0")==="$0",HB=!!/./[I6]&&/./[I6]("a","$0")==="";yM("replace",function(t,e,n){var r=HB?"$":"$0";return[function(o,i){var a=Xa(this),u=o==null?void 0:gD(o,I6);return u?nn(u,o,a,i):nn(e,Rn(a),o,i)},function(o,i){var a=$r(this),u=Rn(o);if(typeof i=="string"&&$B(i,r)===-1&&$B(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=On(i);l||(i=Rn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=P6(a,u);if(d===null||(Aw(p,d),!c))break;Rn(d[0])===""&&(a.lastIndex=bM(u,DD(a.lastIndex),f))}for(var m,v="",g=0,y=0;y<p.length;y++){for(var h=Rn((d=p[y])[0]),b=hpt(gpt(Z1(d.index),u.length),0),E=[],w=1;w<d.length;w++)Aw(E,(m=d[w])===void 0?m:String(m));var S=d.groups;if(l){var D=vpt([h],E,b,u);S!==void 0&&Aw(D,S);var x=Rn(mM(i,void 0,D))}else x=ppt(h,u,b,E,S,i);b>=g&&(v+=VB(u,g,b)+x,g=b+h.length)}return v+VB(u,g)}]},!!un(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!mpt||HB);var ypt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(u){return!!it.isText(u)||!!n.isInline(u)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:EM(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},bpt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return O.getNodeType(r)==="table-cell"})}}},wpt={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var p=f.split(":");p[0].trim()==="width"&&(u=p[1].trim())}}return u}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return O.getNodeType(i)==="table-row"})}}},Ept=function(){function t(){this.title=tt("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||!!O.getSelectedElems(e).some(function(r){var o=O.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=B('<div class="w-e-panel-content-table"></div>'),o=B("<span>0 &times; 0</span>"),i=B("<table></table>"),a=0;a<10;a++){for(var u=B("<tr></tr>"),s=0;s<10;s++){var l=B("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,m=p.y;o[0].innerHTML=d+1+" &times; "+(m+1),i.children().each(function(v){B(v).children().each(function(g){var y=B(g),h=y.dataset(),b=h.x,E=h.y;b<=d&&E<=m?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,m=p.y;n.insertTable(e,m+1,d+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){O.isSelectedEmptyParagraph(e)&&I.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],p=0;p<s;p++){var d={type:"table-cell",children:[{text:""}]};c===0&&(d.isHeader=!0),f.push(d)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);I.insertNodes(e,a,{mode:"highest"})}},t}(),Spt=function(){function t(){this.title=tt("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.removeNodes(e,{mode:"highest"})},t}(),Cpt=function(){function t(){this.title=tt("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=mo(C.nodes(e,{match:function(d){return O.checkNodeType(d,"table-cell")},universal:!0}),1),o=mo(r[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=j.parent(a),p=j.next(f);I.insertNodes(e,l,{at:p})}}},t}(),Dpt=function(){function t(){this.title=tt("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=mo(C.nodes(e,{match:function(s){return O.checkNodeType(s,"table-row")},universal:!0}),1),o=mo(r[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?I.removeNodes(e,{mode:"highest"}):I.removeNodes(e,{at:a})}},t}(),UB={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},Ow=wD("span").classList,WB=Ow&&Ow.constructor&&Ow.constructor.prototype,xpt=WB===Object.prototype?void 0:WB,Apt=Q1.forEach,Opt=function(t,e){var n=[].forEach;return!!n&&un(function(){n.call(null,function(){throw 1},1)})}(),kw=Opt?[].forEach:function(t){return Apt(this,t,arguments.length>1?arguments[1]:void 0)},AM=function(t){if(t&&t.forEach!==kw)try{Sc(t,"forEach",kw)}catch{t.forEach=kw}};for(var _w in UB)UB[_w]&&AM(Lt[_w]&&Lt[_w].prototype);AM(xpt);var kpt=function(){function t(){this.title=tt("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=mo(C.nodes(e,{match:function(l){return O.checkNodeType(l,"table-cell")},universal:!0}),1),o=mo(r[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i);if(u!=null){var s=O.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){pt.isElement(l)&&(l.children||[]).forEach(function(f){var p=O.findPath(e,f);if(p.length===a.length&&GL(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&gM(s)&&(d.isHeader=!0),I.insertNodes(e,d,{at:p})}})})}}},t}(),_pt=function(){function t(){this.title=tt("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=mo(C.nodes(e,{match:function(c){return O.checkNodeType(c,"table-cell")},universal:!0}),1),o=mo(r[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)I.removeNodes(e,{mode:"highest"});else{var l=O.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){pt.isElement(c)&&(c.children||[]).forEach(function(f){var p=O.findPath(e,f);p.length===a.length&&GL(p.slice(-1),a.slice(-1))&&I.removeNodes(e,{at:p})})})}}},t}(),Bpt=function(){function t(){this.title=tt("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=O.getSelectedNodeByType(e,"table");return n!=null&&gM(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=O.getSelectedNodeByType(e,"table");o!=null&&ty(o).forEach(function(i){return I.setNodes(e,{isHeader:r},{at:O.findPath(e,i)})})}},t}(),Fpt=function(){function t(){this.title=tt("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=O.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};I.setNodes(e,r,{mode:"highest"})}},t}(),Tpt={renderElems:[opt,ipt,apt],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[upt],parseElemsHtml:[ypt,bpt,wpt],menus:[{key:"insertTable",factory:function(){return new Ept}},{key:"deleteTable",factory:function(){return new Spt}},{key:"insertTableRow",factory:function(){return new Cpt}},{key:"deleteTableRow",factory:function(){return new Dpt}},{key:"insertTableCol",factory:function(){return new kpt}},{key:"deleteTableCol",factory:function(){return new _pt}},{key:"tableHeader",factory:function(){return new Bpt}},{key:"tableFullWidth",factory:function(){return new Fpt}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){O.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
  121. `)},s.deleteBackward=function(l){if(!BB(s)){var c=s.selection;if(c){var f=C.before(s,c);if(f){var p=FB(s,f),d=FB(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(O.getSelectedNodeByType(s,"table")){var c=C.above(t);O.checkNodeType(c[0],"table-cell")&&I.select(t,c[1]);var f=C.next(t);if(f)f[0]&&f[0].text&&(f=(l=C.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),I.select(t,f[1]);else{var p=s.children||[],d=p.length;if(O.checkNodeType(p[d-1],"table")){var m=O.genEmptyParagraph();I.insertNodes(s,m,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){BB(s)||r(l)},s.normalizeNode=function(l){var c=mo(l,2),f=c[0],p=c[1];if(O.getNodeType(f)!=="table")return o([f,p]);if(O.isLastNode(s,f)){var d=O.genEmptyParagraph();I.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(O.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
  122. `||/<img[^>]+>/.test(l.getData("text/html"))?i(l):C.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=O.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,p=l.focus;if(j.equals(f.path.slice(0,3),p.path.slice(0,3)))if(Q.string(c).length!==0){var d=O.findPath(s,c),m={anchor:C.start(s,d),focus:C.end(s,d)};s.select(m)}else u();else u()}else u()}else u()},s}};ir("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),ir("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
  123. Copyright (c) Microsoft Corporation.
  124. Permission to use, copy, modify, and/or distribute this software for any
  125. purpose with or without fee is hereby granted.
  126. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  127. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  128. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  129. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  130. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  131. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  132. PERFORMANCE OF THIS SOFTWARE.
  133. ***************************************************************************** */var Am=function(){return Am=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Am.apply(this,arguments)};function ey(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function ny(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function us(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Ppt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var qB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TD(t){var e={exports:{}};return t(e,e.exports),e.exports}var ea,Vg,Z0=function(t){return t&&t.Math==Math&&t},rt=Z0(typeof globalThis=="object"&&globalThis)||Z0(typeof window=="object"&&window)||Z0(typeof self=="object"&&self)||Z0(typeof qB=="object"&&qB)||function(){return this}()||Function("return this")(),we=function(t){try{return!!t()}catch{return!0}},Wo=!we(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),td=Function.prototype.call,me=td.bind?td.bind(td):function(){return td.apply(td,arguments)},GB={}.propertyIsEnumerable,KB=Object.getOwnPropertyDescriptor,jpt={f:KB&&!GB.call({1:2},1)?function(t){var e=KB(this,t);return!!e&&e.enumerable}:GB},ry=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},OM=Function.prototype,N6=OM.bind,R6=OM.call,Ipt=N6&&N6.bind(R6),kt=N6?function(t){return t&&Ipt(R6,t)}:function(t){return t&&function(){return R6.apply(t,arguments)}},Npt=kt({}.toString),Rpt=kt("".slice),Mo=function(t){return Rpt(Npt(t),8,-1)},Bw=rt.Object,Lpt=kt("".split),PD=we(function(){return!Bw("z").propertyIsEnumerable(0)})?function(t){return Mo(t)=="String"?Lpt(t,""):Bw(t)}:Bw,Mpt=rt.TypeError,Vh=function(t){if(t==null)throw Mpt("Can't call method on "+t);return t},au=function(t){return PD(Vh(t))},de=function(t){return typeof t=="function"},Ce=function(t){return typeof t=="object"?t!==null:de(t)},zpt=function(t){return de(t)?t:void 0},As=function(t,e){return arguments.length<2?zpt(rt[t]):rt[t]&&rt[t][e]},zp=kt({}.isPrototypeOf),Ul=As("navigator","userAgent")||"",YB=rt.process,XB=rt.Deno,ZB=YB&&YB.versions||XB&&XB.version,JB=ZB&&ZB.v8;JB&&(Vg=(ea=JB.split("."))[0]>0&&ea[0]<4?1:+(ea[0]+ea[1])),!Vg&&Ul&&(!(ea=Ul.match(/Edge\/(\d+)/))||ea[1]>=74)&&(ea=Ul.match(/Chrome\/(\d+)/))&&(Vg=+ea[1]);var $p=Vg,L6=!!Object.getOwnPropertySymbols&&!we(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&$p&&$p<41}),jD=L6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$pt=rt.Object,Fw=jD?function(t){return typeof t=="symbol"}:function(t){var e=As("Symbol");return de(e)&&zp(e.prototype,$pt(t))},Vpt=rt.String,Om=function(t){try{return Vpt(t)}catch{return"Object"}},Hpt=rt.TypeError,Ja=function(t){if(de(t))return t;throw Hpt(Om(t)+" is not a function")},Vp=function(t,e){var n=t[e];return n==null?void 0:Ja(n)},Upt=rt.TypeError,Wpt=Object.defineProperty,ID=function(t,e){try{Wpt(rt,t,{value:e,configurable:!0,writable:!0})}catch{rt[t]=e}return e},Pa=rt["__core-js_shared__"]||ID("__core-js_shared__",{}),ND=TD(function(t){(t.exports=function(e,n){return Pa[e]||(Pa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),qpt=rt.Object,oy=function(t){return qpt(Vh(t))},Gpt=kt({}.hasOwnProperty),on=Object.hasOwn||function(t,e){return Gpt(oy(t),e)},Kpt=0,Ypt=Math.random(),Xpt=kt(1 .toString),RD=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Xpt(++Kpt+Ypt,36)},ed=ND("wks"),ss=rt.Symbol,QB=ss&&ss.for,Zpt=jD?ss:ss&&ss.withoutSetter||RD,Ye=function(t){if(!on(ed,t)||!L6&&typeof ed[t]!="string"){var e="Symbol."+t;L6&&on(ss,t)?ed[t]=ss[t]:ed[t]=jD&&QB?QB(e):Zpt(e)}return ed[t]},Jpt=rt.TypeError,Qpt=Ye("toPrimitive"),LD=function(t){var e=function(n,r){if(!Ce(n)||Fw(n))return n;var o,i=Vp(n,Qpt);if(i){if(r===void 0&&(r="default"),o=me(i,n,r),!Ce(o)||Fw(o))return o;throw Jpt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&de(s=a.toString)&&!Ce(l=me(s,a))||de(s=a.valueOf)&&!Ce(l=me(s,a))||u!=="string"&&de(s=a.toString)&&!Ce(l=me(s,a)))return l;throw Upt("Can't convert object to primitive value")}(n,r)}(t,"string");return Fw(e)?e:e+""},M6=rt.document,tht=Ce(M6)&&Ce(M6.createElement),Hp=function(t){return tht?M6.createElement(t):{}},kM=!Wo&&!we(function(){return Object.defineProperty(Hp("div"),"a",{get:function(){return 7}}).a!=7}),tF=Object.getOwnPropertyDescriptor,MD={f:Wo?tF:function(t,e){if(t=au(t),e=LD(e),kM)try{return tF(t,e)}catch{}if(on(t,e))return ry(!me(jpt.f,t,e),t[e])}},eht=rt.String,nht=rt.TypeError,Sn=function(t){if(Ce(t))return t;throw nht(eht(t)+" is not an object")},rht=rt.TypeError,eF=Object.defineProperty,ki={f:Wo?eF:function(t,e,n){if(Sn(t),e=LD(e),Sn(n),kM)try{return eF(t,e,n)}catch{}if("get"in n||"set"in n)throw rht("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ja=Wo?function(t,e,n){return ki.f(t,e,ry(1,n))}:function(t,e,n){return t[e]=n,t},oht=kt(Function.toString);de(Pa.inspectSource)||(Pa.inspectSource=function(t){return oht(t)});var km,Yd,_m,iy=Pa.inspectSource,nF=rt.WeakMap,_M=de(nF)&&/native code/.test(iy(nF)),rF=ND("keys"),zD=function(t){return rF[t]||(rF[t]=RD(t))},ay={},z6=rt.TypeError,iht=rt.WeakMap;if(_M||Pa.state){var Cu=Pa.state||(Pa.state=new iht),aht=kt(Cu.get),oF=kt(Cu.has),uht=kt(Cu.set);km=function(t,e){if(oF(Cu,t))throw new z6("Object already initialized");return e.facade=t,uht(Cu,t,e),e},Yd=function(t){return aht(Cu,t)||{}},_m=function(t){return oF(Cu,t)}}else{var hl=zD("state");ay[hl]=!0,km=function(t,e){if(on(t,hl))throw new z6("Object already initialized");return e.facade=t,ja(t,hl,e),e},Yd=function(t){return on(t,hl)?t[hl]:{}},_m=function(t){return on(t,hl)}}var Cr={set:km,get:Yd,has:_m,enforce:function(t){return _m(t)?Yd(t):km(t,{})},getterFor:function(t){return function(e){var n;if(!Ce(e)||(n=Yd(e)).type!==t)throw z6("Incompatible receiver, "+t+" required");return n}}},BM=Function.prototype,sht=Wo&&Object.getOwnPropertyDescriptor,Tw=on(BM,"name"),Yc={EXISTS:Tw,PROPER:Tw&&(function(){}).name==="something",CONFIGURABLE:Tw&&(!Wo||Wo&&sht(BM,"name").configurable)},mr=TD(function(t){var e=Yc.CONFIGURABLE,n=Cr.get,r=Cr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;de(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!on(u,"name")||e&&u.name!==d)&&ja(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==rt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ja(i,a,u)):f?i[a]=u:ID(a,u)})(Function.prototype,"toString",function(){return de(this)&&n(this).source||iy(this)})}),lht=Math.ceil,cht=Math.floor,uy=function(t){var e=+t;return e!=e||e===0?0:(e>0?cht:lht)(e)},fht=Math.max,dht=Math.min,Up=function(t,e){var n=uy(t);return n<0?fht(n+e,0):dht(n,e)},pht=Math.min,FM=function(t){return t>0?pht(uy(t),9007199254740991):0},Hh=function(t){return FM(t.length)},iF=function(t){return function(e,n,r){var o,i=au(e),a=Hh(i),u=Up(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},TM={includes:iF(!0),indexOf:iF(!1)},hht=TM.indexOf,aF=kt([].push),PM=function(t,e){var n,r=au(t),o=0,i=[];for(n in r)!on(ay,n)&&on(r,n)&&aF(i,n);for(;e.length>o;)on(r,n=e[o++])&&(~hht(i,n)||aF(i,n));return i},Bm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ght=Bm.concat("length","prototype"),Fm={f:Object.getOwnPropertyNames||function(t){return PM(t,ght)}},vht={f:Object.getOwnPropertySymbols},mht=kt([].concat),yht=As("Reflect","ownKeys")||function(t){var e=Fm.f(Sn(t)),n=vht.f;return n?mht(e,n(t)):e},bht=function(t,e){for(var n=yht(e),r=ki.f,o=MD.f,i=0;i<n.length;i++){var a=n[i];on(t,a)||r(t,a,o(e,a))}},wht=/#|\.prototype\./,Uh=function(t,e){var n=Sht[Eht(t)];return n==Dht||n!=Cht&&(de(e)?we(e):!!e)},Eht=Uh.normalize=function(t){return String(t).replace(wht,".").toLowerCase()},Sht=Uh.data={},Cht=Uh.NATIVE="N",Dht=Uh.POLYFILL="P",Tm=Uh,xht=MD.f,Qn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?rt:l?rt[u]||ID(u,{}):(rt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=xht(n,r))&&a.value:n[r],!Tm(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;bht(i,o)}(t.sham||o&&o.sham)&&ja(i,"sham",!0),mr(n,r,i,t)}},jM={};jM[Ye("toStringTag")]="z";var $D=String(jM)==="[object z]",Aht=Ye("toStringTag"),Oht=rt.Object,kht=Mo(function(){return arguments}())=="Arguments",sy=$D?Mo:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Oht(t),Aht))=="string"?n:kht?Mo(e):(r=Mo(e))=="Object"&&de(e.callee)?"Arguments":r},_ht=rt.String,Pr=function(t){if(sy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return _ht(t)},$6=`
  134. \v\f\r                 \u2028\u2029\uFEFF`,uF=kt("".replace),Pm="["+$6+"]",Bht=RegExp("^"+Pm+Pm+"*"),Fht=RegExp(Pm+Pm+"*$"),Pw=function(t){return function(e){var n=Pr(Vh(e));return 1&t&&(n=uF(n,Bht,"")),2&t&&(n=uF(n,Fht,"")),n}},Tht={start:Pw(1),end:Pw(2),trim:Pw(3)},Pht=Yc.PROPER,jht=Tht.trim;function sF(t){return t.length?t[0].tagName.toLowerCase():""}function IM(t,e,n){e===void 0&&(e="auto"),n===void 0&&(n="auto");var r=B(t);return r.attr("width",e),r.attr("height",n),r[0].outerHTML}Qn({target:"String",proto:!0,forced:we(function(){return!!$6.trim()||"​…᠎".trim()!=="​…᠎"||Pht&&$6.trim.name!=="trim"})},{trim:function(){return jht(this)}}),Qn({global:!0},{globalThis:rt}),Ur&&(B.fn.append=Ur),Ho&&(B.fn.on=Ho),Ha&&(B.fn.focus=Ha),Hr&&(B.fn.attr=Hr),Vo&&(B.fn.val=Vo),Va&&(B.fn.html=Va),uc&&(B.fn.parent=uc),oc&&(B.fn.hasClass=oc),fc&&(B.fn.empty=fc);var J0,Iht={type:"video",renderElem:function(t,e,n){var r,o=t,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,p=f===void 0?"auto":f,d=O.isNodeSelected(n,t);if(a.trim().indexOf("<iframe ")===0)r=Dt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:IM(a,c,p)});else{var m=Dt("video",{poster:s,controls:!0},Dt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
  135. 抱歉,浏览器不支持 video 视频`);c!=="auto"&&(m.data.width=c),p!=="auto"&&(m.data.height=p),r=Dt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},m)}return dc("div",{props:{contentEditable:!1},on:{mousedown:function(v){return v.preventDefault()}}},r)}},Nht={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=r===void 0?"":r,i=n.poster,a=i===void 0?"":i,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
  136. `;return o.trim().indexOf("<iframe ")===0?f+=IM(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
  137. </div>`}},Rht=Object.keys||function(t){return PM(t,Bm)},Lht=Wo?Object.defineProperties:function(t,e){Sn(t);for(var n,r=au(e),o=Rht(e),i=o.length,a=0;i>a;)ki.f(t,n=o[a++],r[n]);return t},V6=As("document","documentElement"),NM=zD("IE_PROTO"),jw=function(){},RM=function(t){return"<script>"+t+"<\/script>"},lF=function(t){t.write(RM("")),t.close();var e=t.parentWindow.Object;return t=null,e},Hg=function(){try{J0=new ActiveXObject("htmlfile")}catch{}var t,e;Hg=typeof document<"u"?document.domain&&J0?lF(J0):((e=Hp("iframe")).style.display="none",V6.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(RM("document.F=Object")),t.close(),t.F):lF(J0);for(var n=Bm.length;n--;)delete Hg.prototype[Bm[n]];return Hg()};ay[NM]=!0;var VD=Object.create||function(t,e){var n;return t!==null?(jw.prototype=Sn(t),n=new jw,jw.prototype=null,n[NM]=t):n=Hg(),e===void 0?n:Lht(n,e)},H6=Ye("unscopables"),U6=Array.prototype;U6[H6]==null&&ki.f(U6,H6,{configurable:!0,value:VD(null)});var Xd=function(t){U6[H6][t]=!0},Mht=TM.includes;Qn({target:"Array",proto:!0},{includes:function(t){return Mht(this,t,arguments.length>1?arguments[1]:void 0)}}),Xd("includes");var zht={selector:"iframe,video,p",preParseHtml:function(t){var e=B(t),n=e;if(sF(e)==="p"){var r=e.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=B(o))}}var a=sF(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=B('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},cF=kt(kt.bind),Wp=function(t,e){return Ja(t),e===void 0?t:cF?cF(t,e):function(){return t.apply(e,arguments)}},jm=Array.isArray||function(t){return Mo(t)=="Array"},LM=function(){},$ht=[],MM=As("Reflect","construct"),HD=/^\s*(?:class|function)\b/,Vht=kt(HD.exec),Hht=!HD.exec(LM),nd=function(t){if(!de(t))return!1;try{return MM(LM,$ht,t),!0}catch{return!1}},UD=!MM||we(function(){var t;return nd(nd.call)||!nd(Object)||!nd(function(){t=!0})||t})?function(t){if(!de(t))return!1;switch(sy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Hht||!!Vht(HD,iy(t))}:nd,Uht=Ye("species"),fF=rt.Array,Wht=function(t,e){return new(function(n){var r;return jm(n)&&(r=n.constructor,(UD(r)&&(r===fF||jm(r.prototype))||Ce(r)&&(r=r[Uht])===null)&&(r=void 0)),r===void 0?fF:r}(t))(e===0?0:e)},dF=kt([].push),na=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=oy(s),v=PD(m),g=Wp(l,c),y=Hh(v),h=0,b=f||Wht,E=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=g(p=v[h],h,m),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:dF(E,p)}else switch(t){case 4:return!1;case 7:dF(E,p)}return i?-1:r||o?o:E}},WD={forEach:na(0),map:na(1),filter:na(2),some:na(3),every:na(4),find:na(5),findIndex:na(6),filterReject:na(7)},qht=WD.find,pF=!0;"find"in[]&&Array(1).find(function(){pF=!1}),Qn({target:"Array",proto:!0,forced:pF},{find:function(t){return qht(this,t,arguments.length>1?arguments[1]:void 0)}}),Xd("find");var Ght=$D?{}.toString:function(){return"[object "+sy(this)+"]"};function hF(t,e,n,r){return e===void 0&&(e=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:t,poster:e,width:n,height:r,children:[{text:""}]}}$D||mr(Object.prototype,"toString",Ght,{unsafe:!0});var gF,Iw,Kht={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=B(t),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",hF(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",hF(o,i=l.attr("poster")||"",a,u)}},zM=function(){var t=Sn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},qD=rt.RegExp,W6=we(function(){var t=qD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Yht=W6||we(function(){return!qD("a","y").sticky}),Xht={BROKEN_CARET:W6||we(function(){var t=qD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Yht,UNSUPPORTED_Y:W6},Zht=rt.RegExp,Jht=we(function(){var t=Zht(".","s");return!(t.dotAll&&t.exec(`
  138. `)&&t.flags==="s")}),Qht=rt.RegExp,t0t=we(function(){var t=Qht("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),e0t=Cr.get,n0t=ND("native-string-replace",String.prototype.replace),Im=RegExp.prototype.exec,q6=Im,r0t=kt("".charAt),o0t=kt("".indexOf),i0t=kt("".replace),Nw=kt("".slice),Rw=(Iw=/b*/g,me(Im,gF=/a/,"a"),me(Im,Iw,"a"),gF.lastIndex!==0||Iw.lastIndex!==0),vF=Xht.BROKEN_CARET,Lw=/()??/.exec("")[1]!==void 0;(Rw||Lw||vF||Jht||t0t)&&(q6=function(t){var e,n,r,o,i,a,u,s=this,l=e0t(s),c=Pr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=me(q6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=vF&&s.sticky,m=me(zM,s),v=s.source,g=0,y=c;if(d&&(m=i0t(m,"y",""),o0t(m,"g")===-1&&(m+="g"),y=Nw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&r0t(c,s.lastIndex-1)!==`
  139. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),Lw&&(n=new RegExp("^"+v+"$(?!\\s)",m)),Rw&&(r=s.lastIndex),o=me(Im,d?n:s,y),d?o?(o.input=Nw(o.input,g),o[0]=Nw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Rw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Lw&&o&&o.length>1&&me(n0t,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=VD(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Nm=q6;Qn({target:"RegExp",proto:!0,forced:/./.exec!==Nm},{exec:Nm});var GD=Function.prototype,mF=GD.apply,a0t=GD.bind,yF=GD.call,$M=typeof Reflect=="object"&&Reflect.apply||(a0t?yF.bind(mF):function(){return yF.apply(mF,arguments)}),bF=(Ye("species"),RegExp.prototype),u0t=kt("".charAt),wF=kt("".charCodeAt),s0t=kt("".slice),EF=function(t){return function(e,n){var r,o,i=Pr(Vh(e)),a=uy(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=wF(i,a))<55296||r>56319||a+1===u||(o=wF(i,a+1))<56320||o>57343?t?u0t(i,a):r:t?s0t(i,a,a+2):o-56320+(r-55296<<10)+65536}},VM={codeAt:EF(!1),charAt:EF(!0)},l0t=VM.charAt,c0t=function(t,e,n){return e+(n?l0t(t,e).length:1)},f0t=Math.floor,Mw=kt("".charAt),d0t=kt("".replace),zw=kt("".slice),p0t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,h0t=/\$([$&'`]|\d{1,2})/g,g0t=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=h0t;return o!==void 0&&(o=oy(o),s=p0t),d0t(i,s,function(l,c){var f;switch(Mw(c,0)){case"$":return"$";case"&":return t;case"`":return zw(e,0,n);case"'":return zw(e,a);case"<":f=o[zw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=f0t(p/10);return d===0?l:d<=u?r[d-1]===void 0?Mw(c,1):r[d-1]+Mw(c,1):l}f=r[p-1]}return f===void 0?"":f})},v0t=rt.TypeError,m0t=function(t,e){var n=t.exec;if(de(n)){var r=me(n,t,e);return r!==null&&Sn(r),r}if(Mo(t)==="RegExp")return me(Nm,t,e);throw v0t("RegExp#exec called on incompatible receiver")},G6=Ye("replace"),y0t=Math.max,b0t=Math.min,w0t=kt([].concat),$w=kt([].push),SF=kt("".indexOf),CF=kt("".slice),E0t="a".replace(/./,"$0")==="$0",DF=!!/./[G6]&&/./[G6]("a","$0")==="";function HM(t){return t===void 0&&(t="r"),t+"-"+Qj()}(function(t,e,n,r){var o=Ye(t),i=!we(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!we(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=kt(/./[o]),s=function(l,c,f){var p=DF?"$":"$0";return[function(d,m){var v=Vh(this),g=d==null?void 0:Vp(d,G6);return g?me(g,d,v,m):me(c,Pr(v),d,m)},function(d,m){var v=Sn(this),g=Pr(d);if(typeof m=="string"&&SF(m,p)===-1&&SF(m,"$<")===-1){var y=f(c,v,g,m);if(y.done)return y.value}var h=de(m);h||(m=Pr(m));var b=v.global;if(b){var E=v.unicode;v.lastIndex=0}for(var w=[];;){var S=m0t(v,g);if(S===null||($w(w,S),!b))break;Pr(S[0])===""&&(v.lastIndex=c0t(g,FM(v.lastIndex),E))}for(var D,x="",k=0,N=0;N<w.length;N++){for(var $=Pr((S=w[N])[0]),R=y0t(b0t(uy(S.index),g.length),0),K=[],U=1;U<S.length;U++)$w(K,(D=S[U])===void 0?D:String(D));var W=S.groups;if(h){var G=w0t([$],K,R,g);W!==void 0&&$w(G,W);var nt=Pr($M(m,void 0,G))}else nt=g0t($,g,R,K,W,m);R>=k&&(x+=CF(g,k,R)+nt,k=R+$.length)}return x+CF(g,k)}]}(0,""[t],function(l,c,f,p,d){var m=kt(l),v=c.exec;return v===Nm||v===bF.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});mr(String.prototype,t,s[0]),mr(bF,o,s[1])}})("replace",0,!!we(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!E0t||DF);var Rm=rt.Promise,Lm=function(t,e,n){for(var r in e)mr(t,r,e[r],n);return t},S0t=rt.String,C0t=rt.TypeError,Cc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=kt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Sn(r),function(i){if(typeof i=="object"||de(i))return i;throw C0t("Can't set "+S0t(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),D0t=ki.f,xF=Ye("toStringTag"),Mm=function(t,e,n){t&&!on(t=n?t:t.prototype,xF)&&D0t(t,xF,{configurable:!0,value:e})},AF=Ye("species"),x0t=rt.TypeError,KD=function(t,e){if(zp(e,t))return t;throw x0t("Incorrect invocation")},Dc={},A0t=Ye("iterator"),O0t=Array.prototype,k0t=Ye("iterator"),OF=function(t){if(t!=null)return Vp(t,k0t)||Vp(t,"@@iterator")||Dc[sy(t)]},_0t=rt.TypeError,kF=function(t,e,n){var r,o;Sn(t);try{if(!(r=Vp(t,"return"))){if(e==="throw")throw n;return n}r=me(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Sn(r),n},B0t=rt.TypeError,Ug=function(t,e){this.stopped=t,this.result=e},_F=Ug.prototype,zm=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),v=Wp(e,f),g=function(h){return r&&kF(r,"normal",h),new Ug(!0,h)},y=function(h){return p?(Sn(h),m?v(h[0],h[1],g):v(h[0],h[1])):m?v(h,g):v(h)};if(d)r=t;else{if(!(o=OF(t)))throw B0t(Om(t)+" is not iterable");if((c=o)!==void 0&&(Dc.Array===c||O0t[A0t]===c)){for(i=0,a=Hh(t);a>i;i++)if((u=y(t[i]))&&zp(_F,u))return u;return new Ug(!1)}r=function(h,b){var E=arguments.length<2?OF(h):b;if(Ja(E))return Sn(me(E,h));throw _0t(Om(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=me(s,r)).done;){try{u=y(l.value)}catch(h){kF(r,"throw",h)}if(typeof u=="object"&&u&&zp(_F,u))return u}return new Ug(!1)},UM=Ye("iterator"),WM=!1;try{var F0t=0,BF={next:function(){return{done:!!F0t++}},return:function(){WM=!0}};BF[UM]=function(){return this},Array.from(BF,function(){throw 2})}catch{}var qp,gl,FF,Vw,qM=function(t,e){if(!e&&!WM)return!1;var n=!1;try{var r={};r[UM]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},T0t=rt.TypeError,P0t=Ye("species"),GM=kt([].slice),KM=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ul),Ia=Mo(rt.process)=="process",K6=rt.setImmediate,Y6=rt.clearImmediate,j0t=rt.process,Hw=rt.Dispatch,I0t=rt.Function,TF=rt.MessageChannel,N0t=rt.String,Uw=0,Zd={};try{qp=rt.location}catch{}var YD=function(t){if(on(Zd,t)){var e=Zd[t];delete Zd[t],e()}},Ww=function(t){return function(){YD(t)}},PF=function(t){YD(t.data)},jF=function(t){rt.postMessage(N0t(t),qp.protocol+"//"+qp.host)};K6&&Y6||(K6=function(t){var e=GM(arguments,1);return Zd[++Uw]=function(){$M(de(t)?t:I0t(t),void 0,e)},gl(Uw),Uw},Y6=function(t){delete Zd[t]},Ia?gl=function(t){j0t.nextTick(Ww(t))}:Hw&&Hw.now?gl=function(t){Hw.now(Ww(t))}:TF&&!KM?(Vw=(FF=new TF).port2,FF.port1.onmessage=PF,gl=Wp(Vw.postMessage,Vw)):rt.addEventListener&&de(rt.postMessage)&&!rt.importScripts&&qp&&qp.protocol!=="file:"&&!we(jF)?(gl=jF,rt.addEventListener("message",PF,!1)):gl="onreadystatechange"in Hp("script")?function(t){V6.appendChild(Hp("script")).onreadystatechange=function(){V6.removeChild(this),YD(t)}}:function(t){setTimeout(Ww(t),0)});var rd,Iu,Jd,_l,qw,Gw,Kw,IF,YM={set:K6,clear:Y6},R0t=/ipad|iphone|ipod/i.test(Ul)&&rt.Pebble!==void 0,L0t=/web0s(?!.*chrome)/i.test(Ul),M0t=MD.f,Yw=YM.set,NF=rt.MutationObserver||rt.WebKitMutationObserver,RF=rt.document,LF=rt.process,Q0=rt.Promise,MF=M0t(rt,"queueMicrotask"),XM=MF&&MF.value;XM||(rd=function(){var t,e;for(Ia&&(t=LF.domain)&&t.exit();Iu;){e=Iu.fn,Iu=Iu.next;try{e()}catch(n){throw Iu?_l():Jd=void 0,n}}Jd=void 0,t&&t.enter()},KM||Ia||L0t||!NF||!RF?!R0t&&Q0&&Q0.resolve?((Kw=Q0.resolve(void 0)).constructor=Q0,IF=Wp(Kw.then,Kw),_l=function(){IF(rd)}):Ia?_l=function(){LF.nextTick(rd)}:(Yw=Wp(Yw,rt),_l=function(){Yw(rd)}):(qw=!0,Gw=RF.createTextNode(""),new NF(rd).observe(Gw,{characterData:!0}),_l=function(){Gw.data=qw=!qw}));var Xw,zF,ZM,$F,JM=XM||function(t){var e={fn:t,next:void 0};Jd&&(Jd.next=e),Iu||(Iu=e,_l()),Jd=e},z0t=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Ja(e),this.reject=Ja(n)},XD={f:function(t){return new z0t(t)}},X6=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},$0t=typeof window=="object",QM=YM.set,V0t=Ye("species"),di="Promise",VF=Cr.getterFor(di),H0t=Cr.set,U0t=Cr.getterFor(di),_u=Rm&&Rm.prototype,Io=Rm,od=_u,tz=rt.TypeError,Z6=rt.document,ZD=rt.process,Wl=XD.f,W0t=Wl,q0t=!!(Z6&&Z6.createEvent&&rt.dispatchEvent),ez=de(rt.PromiseRejectionEvent),nz=!1,Qd=Tm(di,function(){var t=iy(Io),e=t!==String(Io);if(!e&&$p===66)return!0;if($p>=51&&/native code/.test(t))return!1;var n=new Io(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[V0t]=r,!(nz=n.then(function(){})instanceof r)||!e&&$0t&&!ez}),G0t=Qd||!qM(function(t){Io.all(t).catch(function(){})}),rz=function(t){var e;return!(!Ce(t)||!de(e=t.then))&&e},JD=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;JM(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&Y0t(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(tz("Promise-chain cycle")):(u=rz(a))?me(u,a,f,p):f(a)):p(r)}catch(m){d&&!s&&d.exit(),p(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&K0t(t)})}},oz=function(t,e,n){var r,o;q0t?((r=Z6.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),rt.dispatchEvent(r)):r={promise:e,reason:n},!ez&&(o=rt["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=rt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},K0t=function(t){me(QM,rt,function(){var e,n=t.facade,r=t.value;if(HF(t)&&(e=X6(function(){Ia?ZD.emit("unhandledRejection",r,n):oz("unhandledrejection",n,r)}),t.rejection=Ia||HF(t)?2:1,e.error))throw e.value})},HF=function(t){return t.rejection!==1&&!t.parent},Y0t=function(t){me(QM,rt,function(){var e=t.facade;Ia?ZD.emit("rejectionHandled",e):oz("rejectionhandled",e,t.value)})},Il=function(t,e,n){return function(r){t(e,r,n)}},ql=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,JD(t,!0))},J6=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw tz("Promise can't be resolved itself");var r=rz(e);r?JM(function(){var o={done:!1};try{me(r,e,Il(J6,o,t),Il(ql,o,t))}catch(i){ql(o,i,t)}}):(t.value=e,t.state=1,JD(t,!1))}catch(o){ql({done:!1},o,t)}}};if(Qd&&(od=(Io=function(t){KD(this,od),Ja(t),me(Xw,this);var e=VF(this);try{t(Il(J6,e),Il(ql,e))}catch(n){ql(e,n)}}).prototype,(Xw=function(t){H0t(this,{type:di,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Lm(od,{then:function(t,e){var n=U0t(this),r=n.reactions,o=Wl(function(i,a){var u,s=Sn(i).constructor;return s===void 0||(u=Sn(s)[P0t])==null?a:function(l){if(UD(l))return l;throw T0t(Om(l)+" is not a constructor")}(u)}(this,Io));return o.ok=!de(t)||t,o.fail=de(e)&&e,o.domain=Ia?ZD.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&JD(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),zF=function(){var t=new Xw,e=VF(t);this.promise=t,this.resolve=Il(J6,e),this.reject=Il(ql,e)},XD.f=Wl=function(t){return t===Io||t===ZM?new zF(t):W0t(t)},de(Rm)&&_u!==Object.prototype)){$F=_u.then,nz||(mr(_u,"then",function(t,e){var n=this;return new Io(function(r,o){me($F,n,r,o)}).then(t,e)},{unsafe:!0}),mr(_u,"catch",od.catch,{unsafe:!0}));try{delete _u.constructor}catch{}Cc&&Cc(_u,od)}function Gp(t,e,n){return n===void 0&&(n=""),ey(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return ny(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),r=t.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(e,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,a(e)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){I.insertNodes(t,l)}),o(l),[2]}})})}function Zw(){return HM("w-e-insert-video")}Qn({global:!0,wrap:!0,forced:Qd},{Promise:Io}),Mm(Io,di,!1),function(t){var e=As("Promise"),n=ki.f;Wo&&e&&!e[AF]&&n(e,AF,{configurable:!0,get:function(){return this}})}(),ZM=As(di),Qn({target:di,stat:!0,forced:Qd},{reject:function(t){var e=Wl(this);return me(e.reject,void 0,t),e.promise}}),Qn({target:di,stat:!0,forced:Qd},{resolve:function(t){return function(e,n){if(Sn(e),Ce(n)&&n.constructor===e)return n;var r=XD.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Qn({target:di,stat:!0,forced:G0t},{all:function(t){var e=this,n=Wl(e),r=n.resolve,o=n.reject,i=X6(function(){var a=Ja(e.resolve),u=[],s=0,l=1;zm(t,function(c){var f=s++,p=!1;l++,me(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Wl(e),r=n.reject,o=X6(function(){var i=Ja(e.resolve);zm(t,function(a){me(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var X0t=function(){function t(){this.title=tt("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Zw(),this.posterInputId=Zw(),this.buttonId=Zw()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||!!O.getSelectedElems(e).some(function(r){var o=O.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=us(gr(tt("videoModule.videoSrc"),o,tt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=us(gr(tt("videoModule.videoPoster"),i,tt("videoModule.videoPosterPlaceHolder")),2),f=c[0],p=c[1],d=B(l),m=B(p),v=us(Mc(a,tt("videoModule.ok")),1)[0];if(this.$content==null){var g=B("<div></div>");g.on("click","#"+a,function(h){return ey(n,void 0,void 0,function(){var b,E;return ny(this,function(w){switch(w.label){case 0:return h.preventDefault(),b=g.find("#"+o).val().trim(),E=g.find("#"+i).val().trim(),[4,Gp(e,b,E)];case 1:return w.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=g}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(v),d.val(""),m.val(""),setTimeout(function(){d.focus()}),y[0]},t}(),Z0t=kt([].join),J0t=PD!=Object,Q0t=function(t,e){var n=[].join;return!!n&&we(function(){n.call(null,",",1)})}();Qn({target:"Array",proto:!0,forced:J0t||!Q0t},{join:function(t){return Z0t(au(this),t===void 0?",":t)}});var ls,UF,WF,tgt=!we(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),qF=zD("IE_PROTO"),Q6=rt.Object,egt=Q6.prototype,$m=tgt?Q6.getPrototypeOf:function(t){var e=oy(t);if(on(e,qF))return e[qF];var n=e.constructor;return de(n)&&e instanceof n?n.prototype:e instanceof Q6?egt:null},t3=Ye("iterator"),iz=!1;[].keys&&("next"in(WF=[].keys())?(UF=$m($m(WF)))!==Object.prototype&&(ls=UF):iz=!0);var ngt=ls==null||we(function(){var t={};return ls[t3].call(t)!==t});ngt&&(ls={}),de(ls[t3])||mr(ls,t3,function(){return this});var QD={IteratorPrototype:ls,BUGGY_SAFARI_ITERATORS:iz},rgt=QD.IteratorPrototype,ogt=function(){return this},igt=Yc.PROPER,agt=Yc.CONFIGURABLE,GF=QD.IteratorPrototype,tg=QD.BUGGY_SAFARI_ITERATORS,id=Ye("iterator"),ugt=function(){return this},az=function(t,e,n,r,o,i,a){(function(y,h,b,E){var w=h+" Iterator";y.prototype=VD(rgt,{next:ry(1,b)}),Mm(y,w,!1),Dc[w]=ogt})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!tg&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,m=d[id]||d["@@iterator"]||o&&d[o],v=!tg&&m||c(o),g=e=="Array"&&d.entries||m;if(g&&(u=$m(g.call(new t)))!==Object.prototype&&u.next&&($m(u)!==GF&&(Cc?Cc(u,GF):de(u[id])||mr(u,id,ugt)),Mm(u,f,!0)),igt&&o=="values"&&m&&m.name!=="values"&&(agt?ja(d,"name","values"):(p=!0,v=function(){return me(m,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(tg||p||!(l in d))&&mr(d,l,s[l]);else Qn({target:e,proto:!0,forced:tg||p},s);return d[id]!==v&&mr(d,id,v,{name:o}),Dc[e]=v,s},sgt=Cr.set,lgt=Cr.getterFor("Array Iterator"),_d=az(Array,"Array",function(t,e){sgt(this,{type:"Array Iterator",target:au(t),index:0,kind:e})},function(){var t=lgt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Dc.Arguments=Dc.Array,Xd("keys"),Xd("values"),Xd("entries");var cgt=VM.charAt,fgt=Cr.set,dgt=Cr.getterFor("String Iterator");az(String,"String",function(t){fgt(this,{type:"String Iterator",string:Pr(t),index:0})},function(){var t,e=dgt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=cgt(n,r),e.index+=t.length,{value:t,done:!1})});var uz=function(t,e,n){var r=LD(e);r in t?ki.f(t,r,ry(0,n)):t[r]=n},pgt=rt.Array,hgt=Math.max,KF=Fm.f,YF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ggt={f:function(t){return YF&&Mo(t)=="Window"?function(e){try{return KF(e)}catch{return function(r,o,i){for(var a=Hh(r),u=Up(void 0,a),s=Up(a,a),l=pgt(hgt(s-u,0)),c=0;u<s;u++,c++)uz(l,c,r[u]);return l.length=c,l}(YF)}}(t):KF(au(t))}},XF=we(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),eg=Object.isExtensible,zu=we(function(){eg(1)})||XF?function(t){return!!Ce(t)&&(!XF||Mo(t)!="ArrayBuffer")&&(!eg||eg(t))}:eg,vgt=!we(function(){return Object.isExtensible(Object.preventExtensions({}))}),t8=TD(function(t){var e=ki.f,n=!1,r=RD("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Fm.f,s=kt([].splice),l={};l[r]=1,u(l).length&&(Fm.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Qn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ggt.f}))},fastKey:function(u,s){if(!Ce(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!on(u,r)){if(!zu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!on(u,r)){if(!zu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return vgt&&n&&zu(u)&&!on(u,r)&&i(u),u}};ay[r]=!0}),ng=t8.getWeakData,mgt=Cr.set,ygt=Cr.getterFor,bgt=WD.find,wgt=WD.findIndex,Egt=kt([].splice),Sgt=0,rg=function(t){return t.frozen||(t.frozen=new sz)},sz=function(){this.entries=[]},Jw=function(t,e){return bgt(t.entries,function(n){return n[0]===e})};sz.prototype={get:function(t){var e=Jw(this,t);if(e)return e[1]},has:function(t){return!!Jw(this,t)},set:function(t,e){var n=Jw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=wgt(this.entries,function(n){return n[0]===t});return~e&&Egt(this.entries,e,1),!!~e}};var ad,lz={getConstructor:function(t,e,n,r){var o=t(function(s,l){KD(s,i),mgt(s,{type:e,id:Sgt++,frozen:void 0}),l!=null&&zm(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=ygt(e),u=function(s,l,c){var f=a(s),p=ng(Sn(l),!0);return p===!0?rg(f).set(l,c):p[f.id]=c,s};return Lm(i,{delete:function(s){var l=a(this);if(!Ce(s))return!1;var c=ng(s);return c===!0?rg(l).delete(s):c&&on(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Ce(s))return!1;var c=ng(s);return c===!0?rg(l).has(s):c&&on(c,l.id)}}),Lm(i,n?{get:function(s){var l=a(this);if(Ce(s)){var c=ng(s);return c===!0?rg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},og=Cr.enforce,Cgt=!rt.ActiveXObject&&"ActiveXObject"in rt,cz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Dgt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=rt[t],u=a&&a.prototype,s=a,l={},c=function(g){var y=kt(u[g]);mr(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!Ce(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!Ce(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!Ce(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(Tm(t,!de(a)||!(o||u.forEach&&!we(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),t8.enable();else if(Tm(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=we(function(){f.has(1)}),m=qM(function(g){new a(g)}),v=!o&&we(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});m||((s=e(function(g,y){KD(g,u);var h=function(b,E,w){var S,D;return Cc&&de(S=E.constructor)&&S!==w&&Ce(D=S.prototype)&&D!==w.prototype&&Cc(b,D),b}(new a,g,s);return y!=null&&zm(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Qn({global:!0,forced:s!=a},l),Mm(s,t),o||n.setStrong(s,t,r),s}("WeakMap",cz,lz);if(_M&&Cgt){ad=lz.getConstructor(cz,"WeakMap",!0),t8.enable();var ud=Dgt.prototype,ZF=kt(ud.delete),ig=kt(ud.has),JF=kt(ud.get),QF=kt(ud.set);Lm(ud,{delete:function(t){if(Ce(t)&&!zu(t)){var e=og(this);return e.frozen||(e.frozen=new ad),ZF(this,t)||e.frozen.delete(t)}return ZF(this,t)},has:function(t){if(Ce(t)&&!zu(t)){var e=og(this);return e.frozen||(e.frozen=new ad),ig(this,t)||e.frozen.has(t)}return ig(this,t)},get:function(t){if(Ce(t)&&!zu(t)){var e=og(this);return e.frozen||(e.frozen=new ad),ig(this,t)?JF(this,t):e.frozen.get(t)}return JF(this,t)},set:function(t,e){if(Ce(t)&&!zu(t)){var n=og(this);n.frozen||(n.frozen=new ad),ig(this,t)?QF(this,t,e):n.frozen.set(t,e)}else QF(this,t,e);return this}})}var fz={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},Qw=Hp("span").classList,tT=Qw&&Qw.constructor&&Qw.constructor.prototype,xgt=tT===Object.prototype?void 0:tT,t4=Ye("iterator"),eT=Ye("toStringTag"),e4=_d.values,dz=function(t,e){if(t){if(t[t4]!==e4)try{ja(t,t4,e4)}catch{t[t4]=e4}if(t[eT]||ja(t,eT,e),fz[e]){for(var n in _d)if(t[n]!==_d[n])try{ja(t,n,_d[n])}catch{t[n]=_d[n]}}}};for(var n4 in fz)dz(rt[n4]&&rt[n4].prototype,n4);dz(xgt,"DOMTokenList");var Agt=Yc.EXISTS,Ogt=ki.f,pz=Function.prototype,kgt=kt(pz.toString),hz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,_gt=kt(hz.exec);Wo&&!Agt&&Ogt(pz,"name",{configurable:!0,get:function(){try{return _gt(hz,kgt(this))[1]}catch{return""}}});var Bgt=Ye("species"),Fgt=$p>=51||!we(function(){var t=[];return(t.constructor={})[Bgt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Tgt=Ye("species"),r4=rt.Array,Pgt=Math.max;function gz(t){return t.getMenuConfig("uploadVideo")}Qn({target:"Array",proto:!0,forced:!Fgt},{slice:function(t,e){var n,r,o,i=au(this),a=Hh(i),u=Up(t,a),s=Up(e===void 0?a:e,a);if(jm(i)&&(n=i.constructor,(UD(n)&&(n===r4||jm(n.prototype))||Ce(n)&&(n=n[Tgt])===null)&&(n=void 0),n===r4||n===void 0))return GM(i,u,s);for(r=new(n===void 0?r4:n)(Pgt(s-u,0)),o=0;u<s;u++,o++)u in i&&uz(r,o,i[u]);return r.length=o,r}});var nT=new WeakMap;function jgt(t,e){return ey(this,void 0,void 0,function(){var n,r,o,i;return ny(this,function(a){switch(a.label){case 0:return n=function(u){var s=nT.get(u);if(s!=null)return s;var l=gz(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,m=l.onError;return s=$N(Am(Am({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,g){if(d)return d(g,function(x,k){return Gp(u,x,k)}),void c(v,g);var y=g.errno,h=y===void 0?1:y,b=g.data,E=b===void 0?{}:b;if(h===0){var w=E.url,S=w===void 0?"":w,D=E.poster;Gp(u,S,D===void 0?"":D),c(v,g)}else p(v,g)},onError:function(v,g,y){m(v,g,y)}})),nT.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var Igt=function(){function t(){this.title=tt("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f){return Gp(e,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,p){var d,m;ey(this,void 0,void 0,function(){var v,g,y,h,b,E;return ny(this,function(w){switch(w.label){case 0:if(p==null)return[2];v=Array.prototype.slice.call(p),g=gz(f).customUpload,w.label=1;case 1:w.trys.push([1,9,10,15]),y=Ppt(v),w.label=2;case 2:return[4,y.next()];case 3:return(h=w.sent()).done?[3,8]:(b=h.value,g?[4,g(b,function(S,D){return Gp(f,S,D)})]:[3,5]);case 4:return w.sent(),[3,7];case 5:return[4,jgt(f,b)];case 6:w.sent(),w.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return E=w.sent(),d={error:E},[3,15];case 10:return w.trys.push([10,,13,14]),h&&!h.done&&(m=y.return)?[4,m.call(y)]:[3,12];case 11:w.sent(),w.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!M.isCollapsed(n)||!!O.getSelectedElems(e).some(function(r){var o=O.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),Ngt=Yc.PROPER,e3=RegExp.prototype,vz=e3.toString,Rgt=kt(zM),Lgt=we(function(){return vz.call({source:"a",flags:"b"})!="/a/b"}),Mgt=Ngt&&vz.name!="toString";function o4(){return HM("w-e-insert-video")}(Lgt||Mgt)&&mr(RegExp.prototype,"toString",function(){var t=Sn(this),e=Pr(t.source),n=t.flags;return"/"+e+"/"+Pr(n===void 0&&zp(e3,t)&&!("flags"in e3)?Rgt(t):n)},{unsafe:!0});var zgt=function(){function t(){this.title=tt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=o4(),this.heightInputId=o4(),this.buttonId=o4()}return t.prototype.getSelectedVideoNode=function(e){return O.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=us(gr(tt("videoModule.width"),r,"auto"),2),u=a[0],s=B(a[1]),l=us(gr(tt("videoModule.height"),o,"auto"),2),c=l[0],f=B(l[1]),p=us(Mc(i,tt("videoModule.ok")),1)[0];if(this.$content==null){var d=B("<div></div>");d.on("click","#"+i,function(E){E.preventDefault();var w=d.find("#"+r).val().trim(),S=d.find("#"+o).val().trim(),D=parseInt(w),x=parseInt(S),k=D?D.toString():"auto",N=x?x.toString():"auto";e.restoreSelection(),I.setNodes(e,{width:k,height:N},{match:function($){return O.checkNodeType($,"video")}}),e.hidePanelOrModal()}),this.$content=d}var m=this.$content;m.empty(),m.append(u),m.append(c),m.append(p);var v=this.getSelectedVideoNode(e);if(v==null)return m[0];var g=v.width,y=g===void 0?"auto":g,h=v.height,b=h===void 0?"auto":h;return s.val(y),f.val(b),setTimeout(function(){s.focus()}),m[0]},t}(),$gt={renderElems:[Iht],elemsToHtml:[Nht],preParseHtml:[zht],parseElemsHtml:[Kht],menus:[{key:"insertVideo",factory:function(){return new X0t},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new Igt},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n)}}},{key:"editVideoSize",factory:function(){return new zgt}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="video"||e(o)},r.normalizeNode=function(o){var i=us(o,2),a=i[0],u=i[1];return O.getNodeType(a)==="video"&&O.isLastNode(r,a)&&I.insertNodes(r,O.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};ir("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),ir("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var rT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e8(t){var e={exports:{}};return t(e,e.exports),e.exports}var ra,Wg,ag=function(t){return t&&t.Math==Math&&t},et=ag(typeof globalThis=="object"&&globalThis)||ag(typeof window=="object"&&window)||ag(typeof self=="object"&&self)||ag(typeof rT=="object"&&rT)||function(){return this}()||Function("return this")(),xe=function(t){try{return!!t()}catch{return!0}},qo=!xe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),sd=Function.prototype.call,ae=sd.bind?sd.bind(sd):function(){return sd.apply(sd,arguments)},oT={}.propertyIsEnumerable,iT=Object.getOwnPropertyDescriptor,Vgt={f:iT&&!oT.call({1:2},1)?function(t){var e=iT(this,t);return!!e&&e.enumerable}:oT},ly=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},mz=Function.prototype,n3=mz.bind,r3=mz.call,Hgt=n3&&n3.bind(r3),Rt=n3?function(t){return t&&Hgt(r3,t)}:function(t){return t&&function(){return r3.apply(t,arguments)}},Ugt=Rt({}.toString),Wgt=Rt("".slice),ho=function(t){return Wgt(Ugt(t),8,-1)},i4=et.Object,qgt=Rt("".split),n8=xe(function(){return!i4("z").propertyIsEnumerable(0)})?function(t){return ho(t)=="String"?qgt(t,""):i4(t)}:i4,Ggt=et.TypeError,Kp=function(t){if(t==null)throw Ggt("Can't call method on "+t);return t},uu=function(t){return n8(Kp(t))},he=function(t){return typeof t=="function"},be=function(t){return typeof t=="object"?t!==null:he(t)},Kgt=function(t){return he(t)?t:void 0},Os=function(t,e){return arguments.length<2?Kgt(et[t]):et[t]&&et[t][e]},Yp=Rt({}.isPrototypeOf),Gl=Os("navigator","userAgent")||"",aT=et.process,uT=et.Deno,sT=aT&&aT.versions||uT&&uT.version,lT=sT&&sT.v8;lT&&(Wg=(ra=lT.split("."))[0]>0&&ra[0]<4?1:+(ra[0]+ra[1])),!Wg&&Gl&&(!(ra=Gl.match(/Edge\/(\d+)/))||ra[1]>=74)&&(ra=Gl.match(/Chrome\/(\d+)/))&&(Wg=+ra[1]);var Xp=Wg,o3=!!Object.getOwnPropertySymbols&&!xe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Xp&&Xp<41}),r8=o3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ygt=et.Object,a4=r8?function(t){return typeof t=="symbol"}:function(t){var e=Os("Symbol");return he(e)&&Yp(e.prototype,Ygt(t))},Xgt=et.String,Vm=function(t){try{return Xgt(t)}catch{return"Object"}},Zgt=et.TypeError,Qa=function(t){if(he(t))return t;throw Zgt(Vm(t)+" is not a function")},Zp=function(t,e){var n=t[e];return n==null?void 0:Qa(n)},Jgt=et.TypeError,Qgt=Object.defineProperty,o8=function(t,e){try{Qgt(et,t,{value:e,configurable:!0,writable:!0})}catch{et[t]=e}return e},Na=et["__core-js_shared__"]||o8("__core-js_shared__",{}),i8=e8(function(t){(t.exports=function(e,n){return Na[e]||(Na[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),tvt=et.Object,a8=function(t){return tvt(Kp(t))},evt=Rt({}.hasOwnProperty),an=Object.hasOwn||function(t,e){return evt(a8(t),e)},nvt=0,rvt=Math.random(),ovt=Rt(1 .toString),u8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+ovt(++nvt+rvt,36)},ld=i8("wks"),cs=et.Symbol,cT=cs&&cs.for,ivt=r8?cs:cs&&cs.withoutSetter||u8,Xe=function(t){if(!an(ld,t)||!o3&&typeof ld[t]!="string"){var e="Symbol."+t;o3&&an(cs,t)?ld[t]=cs[t]:ld[t]=r8&&cT?cT(e):ivt(e)}return ld[t]},avt=et.TypeError,uvt=Xe("toPrimitive"),s8=function(t){var e=function(n,r){if(!be(n)||a4(n))return n;var o,i=Zp(n,uvt);if(i){if(r===void 0&&(r="default"),o=ae(i,n,r),!be(o)||a4(o))return o;throw avt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&he(s=a.toString)&&!be(l=ae(s,a))||he(s=a.valueOf)&&!be(l=ae(s,a))||u!=="string"&&he(s=a.toString)&&!be(l=ae(s,a)))return l;throw Jgt("Can't convert object to primitive value")}(n,r)}(t,"string");return a4(e)?e:e+""},i3=et.document,svt=be(i3)&&be(i3.createElement),Jp=function(t){return svt?i3.createElement(t):{}},yz=!qo&&!xe(function(){return Object.defineProperty(Jp("div"),"a",{get:function(){return 7}}).a!=7}),fT=Object.getOwnPropertyDescriptor,l8={f:qo?fT:function(t,e){if(t=uu(t),e=s8(e),yz)try{return fT(t,e)}catch{}if(an(t,e))return ly(!ae(Vgt.f,t,e),t[e])}},lvt=et.String,cvt=et.TypeError,Cn=function(t){if(be(t))return t;throw cvt(lvt(t)+" is not an object")},fvt=et.TypeError,dT=Object.defineProperty,_i={f:qo?dT:function(t,e,n){if(Cn(t),e=s8(e),Cn(n),yz)try{return dT(t,e,n)}catch{}if("get"in n||"set"in n)throw fvt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},zo=qo?function(t,e,n){return _i.f(t,e,ly(1,n))}:function(t,e,n){return t[e]=n,t},dvt=Rt(Function.toString);he(Na.inspectSource)||(Na.inspectSource=function(t){return dvt(t)});var Hm,tp,Um,cy=Na.inspectSource,pT=et.WeakMap,bz=he(pT)&&/native code/.test(cy(pT)),hT=i8("keys"),c8=function(t){return hT[t]||(hT[t]=u8(t))},fy={},a3=et.TypeError,pvt=et.WeakMap;if(bz||Na.state){var Du=Na.state||(Na.state=new pvt),hvt=Rt(Du.get),gT=Rt(Du.has),gvt=Rt(Du.set);Hm=function(t,e){if(gT(Du,t))throw new a3("Object already initialized");return e.facade=t,gvt(Du,t,e),e},tp=function(t){return hvt(Du,t)||{}},Um=function(t){return gT(Du,t)}}else{var vl=c8("state");fy[vl]=!0,Hm=function(t,e){if(an(t,vl))throw new a3("Object already initialized");return e.facade=t,zo(t,vl,e),e},tp=function(t){return an(t,vl)?t[vl]:{}},Um=function(t){return an(t,vl)}}var Dr={set:Hm,get:tp,has:Um,enforce:function(t){return Um(t)?tp(t):Hm(t,{})},getterFor:function(t){return function(e){var n;if(!be(e)||(n=tp(e)).type!==t)throw a3("Incompatible receiver, "+t+" required");return n}}},wz=Function.prototype,vvt=qo&&Object.getOwnPropertyDescriptor,u4=an(wz,"name"),Wh={EXISTS:u4,PROPER:u4&&(function(){}).name==="something",CONFIGURABLE:u4&&(!qo||qo&&vvt(wz,"name").configurable)},yr=e8(function(t){var e=Wh.CONFIGURABLE,n=Dr.get,r=Dr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;he(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!an(u,"name")||e&&u.name!==d)&&zo(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==et?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:zo(i,a,u)):f?i[a]=u:o8(a,u)})(Function.prototype,"toString",function(){return he(this)&&n(this).source||cy(this)})}),mvt=Math.ceil,yvt=Math.floor,f8=function(t){var e=+t;return e!=e||e===0?0:(e>0?yvt:mvt)(e)},bvt=Math.max,wvt=Math.min,Qp=function(t,e){var n=f8(t);return n<0?bvt(n+e,0):wvt(n,e)},Evt=Math.min,Ez=function(t){return t>0?Evt(f8(t),9007199254740991):0},qh=function(t){return Ez(t.length)},Svt=function(t){return function(e,n,r){var o,i=uu(e),a=qh(i),u=Qp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Cvt=Svt(!1),vT=Rt([].push),Sz=function(t,e){var n,r=uu(t),o=0,i=[];for(n in r)!an(fy,n)&&an(r,n)&&vT(i,n);for(;e.length>o;)an(r,n=e[o++])&&(~Cvt(i,n)||vT(i,n));return i},Wm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dvt=Wm.concat("length","prototype"),qm={f:Object.getOwnPropertyNames||function(t){return Sz(t,Dvt)}},xvt={f:Object.getOwnPropertySymbols},Avt=Rt([].concat),Ovt=Os("Reflect","ownKeys")||function(t){var e=qm.f(Cn(t)),n=xvt.f;return n?Avt(e,n(t)):e},kvt=function(t,e){for(var n=Ovt(e),r=_i.f,o=l8.f,i=0;i<n.length;i++){var a=n[i];an(t,a)||r(t,a,o(e,a))}},_vt=/#|\.prototype\./,Gh=function(t,e){var n=Fvt[Bvt(t)];return n==Pvt||n!=Tvt&&(he(e)?xe(e):!!e)},Bvt=Gh.normalize=function(t){return String(t).replace(_vt,".").toLowerCase()},Fvt=Gh.data={},Tvt=Gh.NATIVE="N",Pvt=Gh.POLYFILL="P",Gm=Gh,jvt=l8.f,No=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?et:l?et[u]||o8(u,{}):(et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=jvt(n,r))&&a.value:n[r],!Gm(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;kvt(i,o)}(t.sham||o&&o.sham)&&zo(i,"sham",!0),yr(n,r,i,t)}},Km=Array.isArray||function(t){return ho(t)=="Array"},Cz={};Cz[Xe("toStringTag")]="z";var d8=String(Cz)==="[object z]",Ivt=Xe("toStringTag"),Nvt=et.Object,Rvt=ho(function(){return arguments}())=="Arguments",dy=d8?ho:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Nvt(t),Ivt))=="string"?n:Rvt?ho(e):(r=ho(e))=="Object"&&he(e.callee)?"Arguments":r},Dz=function(){},Lvt=[],xz=Os("Reflect","construct"),p8=/^\s*(?:class|function)\b/,Mvt=Rt(p8.exec),zvt=!p8.exec(Dz),cd=function(t){if(!he(t))return!1;try{return xz(Dz,Lvt,t),!0}catch{return!1}},h8=!xz||xe(function(){var t;return cd(cd.call)||!cd(Object)||!cd(function(){t=!0})||t})?function(t){if(!he(t))return!1;switch(dy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zvt||!!Mvt(p8,cy(t))}:cd,Az=function(t,e,n){var r=s8(e);r in t?_i.f(t,r,ly(0,n)):t[r]=n},$vt=Xe("species"),Oz=Rt([].slice),Vvt=Xp>=51||!xe(function(){var t=[];return(t.constructor={})[$vt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Hvt=Xe("species"),s4=et.Array,Uvt=Math.max;No({target:"Array",proto:!0,forced:!Vvt},{slice:function(t,e){var n,r,o,i=uu(this),a=qh(i),u=Qp(t,a),s=Qp(e===void 0?a:e,a);if(Km(i)&&(n=i.constructor,(h8(n)&&(n===s4||Km(n.prototype))||be(n)&&(n=n[Hvt])===null)&&(n=void 0),n===s4||n===void 0))return Oz(i,u,s);for(r=new(n===void 0?s4:n)(Uvt(s-u,0)),o=0;u<s;u++,o++)u in i&&Az(r,o,i[u]);return r.length=o,r}});var Wvt=d8?{}.toString:function(){return"[object "+dy(this)+"]"};d8||yr(Object.prototype,"toString",Wvt,{unsafe:!0});var ug,qvt=et.String,Ra=function(t){if(dy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return qvt(t)},kz=function(){var t=Cn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},g8=et.RegExp,u3=xe(function(){var t=g8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Gvt=u3||xe(function(){return!g8("a","y").sticky}),_z={BROKEN_CARET:u3||xe(function(){var t=g8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Gvt,UNSUPPORTED_Y:u3},Kvt=Object.keys||function(t){return Sz(t,Wm)},Yvt=qo?Object.defineProperties:function(t,e){Cn(t);for(var n,r=uu(e),o=Kvt(e),i=o.length,a=0;i>a;)_i.f(t,n=o[a++],r[n]);return t},s3=Os("document","documentElement"),Bz=c8("IE_PROTO"),l4=function(){},Fz=function(t){return"<script>"+t+"<\/script>"},mT=function(t){t.write(Fz("")),t.close();var e=t.parentWindow.Object;return t=null,e},qg=function(){try{ug=new ActiveXObject("htmlfile")}catch{}var t,e;qg=typeof document<"u"?document.domain&&ug?mT(ug):((e=Jp("iframe")).style.display="none",s3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(Fz("document.F=Object")),t.close(),t.F):mT(ug);for(var n=Wm.length;n--;)delete qg.prototype[Wm[n]];return qg()};fy[Bz]=!0;var yT,c4,v8=Object.create||function(t,e){var n;return t!==null?(l4.prototype=Cn(t),n=new l4,l4.prototype=null,n[Bz]=t):n=qg(),e===void 0?n:Yvt(n,e)},Xvt=et.RegExp,Zvt=xe(function(){var t=Xvt(".","s");return!(t.dotAll&&t.exec(`
  140. `)&&t.flags==="s")}),Jvt=et.RegExp,Qvt=xe(function(){var t=Jvt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),tmt=Dr.get,emt=i8("native-string-replace",String.prototype.replace),Ym=RegExp.prototype.exec,l3=Ym,nmt=Rt("".charAt),rmt=Rt("".indexOf),omt=Rt("".replace),f4=Rt("".slice),d4=(c4=/b*/g,ae(Ym,yT=/a/,"a"),ae(Ym,c4,"a"),yT.lastIndex!==0||c4.lastIndex!==0),bT=_z.BROKEN_CARET,p4=/()??/.exec("")[1]!==void 0;(d4||p4||bT||Zvt||Qvt)&&(l3=function(t){var e,n,r,o,i,a,u,s=this,l=tmt(s),c=Ra(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ae(l3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=bT&&s.sticky,m=ae(kz,s),v=s.source,g=0,y=c;if(d&&(m=omt(m,"y",""),rmt(m,"g")===-1&&(m+="g"),y=f4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&nmt(c,s.lastIndex-1)!==`
  141. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),p4&&(n=new RegExp("^"+v+"$(?!\\s)",m)),d4&&(r=s.lastIndex),o=ae(Ym,d?n:s,y),d?o?(o.input=f4(o.input,g),o[0]=f4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:d4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),p4&&o&&o.length>1&&ae(emt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=v8(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var th=l3;No({target:"RegExp",proto:!0,forced:/./.exec!==th},{exec:th});var m8=Function.prototype,wT=m8.apply,imt=m8.bind,ET=m8.call,Tz=typeof Reflect=="object"&&Reflect.apply||(imt?ET.bind(wT):function(){return ET.apply(wT,arguments)}),amt=Xe("species"),h4=RegExp.prototype,umt=Xe("match"),smt=et.TypeError,lmt=Xe("species"),Pz=function(t,e){var n,r=Cn(t).constructor;return r===void 0||(n=Cn(r)[lmt])==null?e:function(o){if(h8(o))return o;throw smt(Vm(o)+" is not a constructor")}(n)},cmt=Rt("".charAt),ST=Rt("".charCodeAt),fmt=Rt("".slice),CT=function(t){return function(e,n){var r,o,i=Ra(Kp(e)),a=f8(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=ST(i,a))<55296||r>56319||a+1===u||(o=ST(i,a+1))<56320||o>57343?t?cmt(i,a):r:t?fmt(i,a,a+2):o-56320+(r-55296<<10)+65536}},jz={codeAt:CT(!1),charAt:CT(!0)},dmt=jz.charAt,pmt=function(t,e,n){return e+(n?dmt(t,e).length:1)},hmt=et.Array,gmt=Math.max,c3=function(t,e,n){for(var r=qh(t),o=Qp(e,r),i=Qp(n===void 0?r:n,r),a=hmt(gmt(i-o,0)),u=0;o<i;o++,u++)Az(a,u,t[o]);return a.length=u,a},vmt=et.TypeError,DT=function(t,e){var n=t.exec;if(he(n)){var r=ae(n,t,e);return r!==null&&Cn(r),r}if(ho(t)==="RegExp")return ae(th,t,e);throw vmt("RegExp#exec called on incompatible receiver")},ml=_z.UNSUPPORTED_Y,mmt=Math.min,Iz=[].push,ymt=Rt(/./.exec),yl=Rt(Iz),fd=Rt("".slice);(function(t,e,n,r){var o=Xe(t),i=!xe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!xe(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[amt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Rt(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,m){var v,g,y=Ra(Kp(this)),h=m===void 0?4294967295:m>>>0;if(h===0)return[];if(d===void 0)return[y];if(!be(v=d)||!((g=v[umt])!==void 0?g:ho(v)=="RegExp"))return ae(c,y,d,h);for(var b,E,w,S=[],D=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),x=0,k=new RegExp(d.source,D+"g");(b=ae(th,k,y))&&!((E=k.lastIndex)>x&&(yl(S,fd(y,x,b.index)),b.length>1&&b.index<y.length&&Tz(Iz,S,c3(b,1)),w=b[0].length,x=E,S.length>=h));)k.lastIndex===b.index&&k.lastIndex++;return x===y.length?!w&&ymt(k,"")||yl(S,""):yl(S,fd(y,x)),S.length>h?c3(S,0,h):S}:"0".split(void 0,0).length?function(d,m){return d===void 0&&m===0?[]:ae(c,this,d,m)}:c,[function(d,m){var v=Kp(this),g=d==null?void 0:Zp(d,l);return g?ae(g,d,v,m):ae(p,Ra(v),d,m)},function(d,m){var v=Cn(this),g=Ra(d),y=f(p,v,g,m,p!==c);if(y.done)return y.value;var h=Pz(v,RegExp),b=v.unicode,E=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(ml?"g":"y"),w=new h(ml?"^(?:"+v.source+")":v,E),S=m===void 0?4294967295:m>>>0;if(S===0)return[];if(g.length===0)return DT(w,g)===null?[g]:[];for(var D=0,x=0,k=[];x<g.length;){w.lastIndex=ml?0:x;var N,$=DT(w,ml?fd(g,x):g);if($===null||(N=mmt(Ez(w.lastIndex+(ml?x:0)),g.length))===D)x=pmt(g,x,b);else{if(yl(k,fd(g,D,x)),k.length===S)return k;for(var R=1;R<=$.length-1;R++)if(yl(k,$[R]),k.length===S)return k;x=D=N}}return yl(k,fd(g,D)),k}]}(o,""[t],function(l,c,f,p,d){var m=Rt(l),v=c.exec;return v===th||v===h4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});yr(String.prototype,t,s[0]),yr(h4,o,s[1])}r&&zo(h4[o],"sham",!0)})("split",0,!!xe(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),ml);/*! *****************************************************************************
  142. Copyright (c) Microsoft Corporation.
  143. Permission to use, copy, modify, and/or distribute this software for any
  144. purpose with or without fee is hereby granted.
  145. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  146. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  147. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  148. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  149. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  150. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  151. PERFORMANCE OF THIS SOFTWARE.
  152. ***************************************************************************** */var Xm=function(){return Xm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Xm.apply(this,arguments)};function y8(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function b8(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function bmt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var f3=Xe("unscopables"),d3=Array.prototype;d3[f3]==null&&_i.f(d3,f3,{configurable:!0,value:v8(null)});var fs,xT,AT,g4=function(t){d3[f3][t]=!0},xc={},wmt=!xe(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),OT=c8("IE_PROTO"),p3=et.Object,Emt=p3.prototype,Zm=wmt?p3.getPrototypeOf:function(t){var e=a8(t);if(an(e,OT))return e[OT];var n=e.constructor;return he(n)&&e instanceof n?n.prototype:e instanceof p3?Emt:null},h3=Xe("iterator"),Nz=!1;[].keys&&("next"in(AT=[].keys())?(xT=Zm(Zm(AT)))!==Object.prototype&&(fs=xT):Nz=!0);var Smt=fs==null||xe(function(){var t={};return fs[h3].call(t)!==t});Smt&&(fs={}),he(fs[h3])||yr(fs,h3,function(){return this});var w8={IteratorPrototype:fs,BUGGY_SAFARI_ITERATORS:Nz},Cmt=_i.f,kT=Xe("toStringTag"),Jm=function(t,e,n){t&&!an(t=n?t:t.prototype,kT)&&Cmt(t,kT,{configurable:!0,value:e})},Dmt=w8.IteratorPrototype,xmt=function(){return this},Amt=et.String,Omt=et.TypeError,Ac=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Rt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Cn(r),function(i){if(typeof i=="object"||he(i))return i;throw Omt("Can't set "+Amt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),kmt=Wh.PROPER,_mt=Wh.CONFIGURABLE,_T=w8.IteratorPrototype,sg=w8.BUGGY_SAFARI_ITERATORS,dd=Xe("iterator"),Bmt=function(){return this},Rz=function(t,e,n,r,o,i,a){(function(y,h,b,E){var w=h+" Iterator";y.prototype=v8(Dmt,{next:ly(1,b)}),Jm(y,w,!1),xc[w]=xmt})(n,e,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!sg&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,m=d[dd]||d["@@iterator"]||o&&d[o],v=!sg&&m||c(o),g=e=="Array"&&d.entries||m;if(g&&(u=Zm(g.call(new t)))!==Object.prototype&&u.next&&(Zm(u)!==_T&&(Ac?Ac(u,_T):he(u[dd])||yr(u,dd,Bmt)),Jm(u,f,!0)),kmt&&o=="values"&&m&&m.name!=="values"&&(_mt?zo(d,"name","values"):(p=!0,v=function(){return ae(m,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(sg||p||!(l in d))&&yr(d,l,s[l]);else No({target:e,proto:!0,forced:sg||p},s);return d[dd]!==v&&yr(d,dd,v,{name:o}),xc[e]=v,s},Fmt=Dr.set,Tmt=Dr.getterFor("Array Iterator"),Bd=Rz(Array,"Array",function(t,e){Fmt(this,{type:"Array Iterator",target:uu(t),index:0,kind:e})},function(){var t=Tmt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");xc.Arguments=xc.Array,g4("keys"),g4("values"),g4("entries");var Pmt=jz.charAt,jmt=Dr.set,Imt=Dr.getterFor("String Iterator");Rz(String,"String",function(t){jmt(this,{type:"String Iterator",string:Ra(t),index:0})},function(){var t,e=Imt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Pmt(n,r),e.index+=t.length,{value:t,done:!1})});var Qm=function(t,e,n){for(var r in e)yr(t,r,e[r],n);return t},BT=qm.f,FT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Nmt={f:function(t){return FT&&ho(t)=="Window"?function(e){try{return BT(e)}catch{return c3(FT)}}(t):BT(uu(t))}},TT=xe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),lg=Object.isExtensible,$u=xe(function(){lg(1)})||TT?function(t){return!!be(t)&&(!TT||ho(t)!="ArrayBuffer")&&(!lg||lg(t))}:lg,Rmt=!xe(function(){return Object.isExtensible(Object.preventExtensions({}))}),E8=e8(function(t){var e=_i.f,n=!1,r=u8("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=qm.f,s=Rt([].splice),l={};l[r]=1,u(l).length&&(qm.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},No({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Nmt.f}))},fastKey:function(u,s){if(!be(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!an(u,r)){if(!$u(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!an(u,r)){if(!$u(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Rmt&&n&&$u(u)&&!an(u,r)&&i(u),u}};fy[r]=!0}),PT=Rt(Rt.bind),eh=function(t,e){return Qa(t),e===void 0?t:PT?PT(t,e):function(){return t.apply(e,arguments)}},Lmt=Xe("iterator"),Mmt=Array.prototype,zmt=Xe("iterator"),jT=function(t){if(t!=null)return Zp(t,zmt)||Zp(t,"@@iterator")||xc[dy(t)]},$mt=et.TypeError,IT=function(t,e,n){var r,o;Cn(t);try{if(!(r=Zp(t,"return"))){if(e==="throw")throw n;return n}r=ae(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Cn(r),n},Vmt=et.TypeError,Gg=function(t,e){this.stopped=t,this.result=e},NT=Gg.prototype,t1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),v=eh(e,f),g=function(h){return r&&IT(r,"normal",h),new Gg(!0,h)},y=function(h){return p?(Cn(h),m?v(h[0],h[1],g):v(h[0],h[1])):m?v(h,g):v(h)};if(d)r=t;else{if(!(o=jT(t)))throw Vmt(Vm(t)+" is not iterable");if((c=o)!==void 0&&(xc.Array===c||Mmt[Lmt]===c)){for(i=0,a=qh(t);a>i;i++)if((u=y(t[i]))&&Yp(NT,u))return u;return new Gg(!1)}r=function(h,b){var E=arguments.length<2?jT(h):b;if(Qa(E))return Cn(ae(E,h));throw $mt(Vm(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=ae(s,r)).done;){try{u=y(l.value)}catch(h){IT(r,"throw",h)}if(typeof u=="object"&&u&&Yp(NT,u))return u}return new Gg(!1)},Hmt=et.TypeError,S8=function(t,e){if(Yp(e,t))return t;throw Hmt("Incorrect invocation")},Lz=Xe("iterator"),Mz=!1;try{var Umt=0,RT={next:function(){return{done:!!Umt++}},return:function(){Mz=!0}};RT[Lz]=function(){return this},Array.from(RT,function(){throw 2})}catch{}var zz=function(t,e){if(!e&&!Mz)return!1;var n=!1;try{var r={};r[Lz]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},Wmt=Xe("species"),LT=et.Array,qmt=function(t,e){return new(function(n){var r;return Km(n)&&(r=n.constructor,(h8(r)&&(r===LT||Km(r.prototype))||be(r)&&(r=r[Wmt])===null)&&(r=void 0)),r===void 0?LT:r}(t))(e===0?0:e)},MT=Rt([].push),oa=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=a8(s),v=n8(m),g=eh(l,c),y=qh(v),h=0,b=f||qmt,E=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=g(p=v[h],h,m),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:MT(E,p)}else switch(t){case 4:return!1;case 7:MT(E,p)}return i?-1:r||o?o:E}},C8={forEach:oa(0),map:oa(1),filter:oa(2),some:oa(3),every:oa(4),find:oa(5),findIndex:oa(6),filterReject:oa(7)},cg=E8.getWeakData,Gmt=Dr.set,Kmt=Dr.getterFor,Ymt=C8.find,Xmt=C8.findIndex,Zmt=Rt([].splice),Jmt=0,fg=function(t){return t.frozen||(t.frozen=new $z)},$z=function(){this.entries=[]},v4=function(t,e){return Ymt(t.entries,function(n){return n[0]===e})};$z.prototype={get:function(t){var e=v4(this,t);if(e)return e[1]},has:function(t){return!!v4(this,t)},set:function(t,e){var n=v4(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Xmt(this.entries,function(n){return n[0]===t});return~e&&Zmt(this.entries,e,1),!!~e}};var pd,Vz={getConstructor:function(t,e,n,r){var o=t(function(s,l){S8(s,i),Gmt(s,{type:e,id:Jmt++,frozen:void 0}),l!=null&&t1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Kmt(e),u=function(s,l,c){var f=a(s),p=cg(Cn(l),!0);return p===!0?fg(f).set(l,c):p[f.id]=c,s};return Qm(i,{delete:function(s){var l=a(this);if(!be(s))return!1;var c=cg(s);return c===!0?fg(l).delete(s):c&&an(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!be(s))return!1;var c=cg(s);return c===!0?fg(l).has(s):c&&an(c,l.id)}}),Qm(i,n?{get:function(s){var l=a(this);if(be(s)){var c=cg(s);return c===!0?fg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},dg=Dr.enforce,Qmt=!et.ActiveXObject&&"ActiveXObject"in et,Hz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},t1t=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=et[t],u=a&&a.prototype,s=a,l={},c=function(g){var y=Rt(u[g]);yr(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!be(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!be(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!be(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(Gm(t,!he(a)||!(o||u.forEach&&!xe(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),E8.enable();else if(Gm(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=xe(function(){f.has(1)}),m=zz(function(g){new a(g)}),v=!o&&xe(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});m||((s=e(function(g,y){S8(g,u);var h=function(b,E,w){var S,D;return Ac&&he(S=E.constructor)&&S!==w&&be(D=S.prototype)&&D!==w.prototype&&Ac(b,D),b}(new a,g,s);return y!=null&&t1(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,No({global:!0,forced:s!=a},l),Jm(s,t),o||n.setStrong(s,t,r),s}("WeakMap",Hz,Vz);if(bz&&Qmt){pd=Vz.getConstructor(Hz,"WeakMap",!0),E8.enable();var hd=t1t.prototype,zT=Rt(hd.delete),pg=Rt(hd.has),$T=Rt(hd.get),VT=Rt(hd.set);Qm(hd,{delete:function(t){if(be(t)&&!$u(t)){var e=dg(this);return e.frozen||(e.frozen=new pd),zT(this,t)||e.frozen.delete(t)}return zT(this,t)},has:function(t){if(be(t)&&!$u(t)){var e=dg(this);return e.frozen||(e.frozen=new pd),pg(this,t)||e.frozen.has(t)}return pg(this,t)},get:function(t){if(be(t)&&!$u(t)){var e=dg(this);return e.frozen||(e.frozen=new pd),pg(this,t)?$T(this,t):e.frozen.get(t)}return $T(this,t)},set:function(t,e){if(be(t)&&!$u(t)){var n=dg(this);n.frozen||(n.frozen=new pd),pg(this,t)?VT(this,t,e):n.frozen.set(t,e)}else VT(this,t,e);return this}})}var e1={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},m4=Jp("span").classList,HT=m4&&m4.constructor&&m4.constructor.prototype,Uz=HT===Object.prototype?void 0:HT,y4=Xe("iterator"),UT=Xe("toStringTag"),b4=Bd.values,Wz=function(t,e){if(t){if(t[y4]!==b4)try{zo(t,y4,b4)}catch{t[y4]=b4}if(t[UT]||zo(t,UT,e),e1[e]){for(var n in Bd)if(t[n]!==Bd[n])try{zo(t,n,Bd[n])}catch{t[n]=Bd[n]}}}};for(var w4 in e1)Wz(et[w4]&&et[w4].prototype,w4);Wz(Uz,"DOMTokenList");var qz=function(t,e){var n=[][t];return!!n&&xe(function(){n.call(null,e||function(){throw 1},1)})},e1t=C8.forEach,E4=qz("forEach")?[].forEach:function(t){return e1t(this,t,arguments.length>1?arguments[1]:void 0)},Gz=function(t){if(t&&t.forEach!==E4)try{zo(t,"forEach",E4)}catch{t.forEach=E4}};for(var S4 in e1)e1[S4]&&Gz(et[S4]&&et[S4].prototype);Gz(Uz);var nh,bl,WT,C4,n1=et.Promise,qT=Xe("species"),Kz=/(?:ipad|iphone|ipod).*applewebkit/i.test(Gl),La=ho(et.process)=="process",g3=et.setImmediate,v3=et.clearImmediate,n1t=et.process,D4=et.Dispatch,r1t=et.Function,GT=et.MessageChannel,o1t=et.String,x4=0,ep={};try{nh=et.location}catch{}var D8=function(t){if(an(ep,t)){var e=ep[t];delete ep[t],e()}},A4=function(t){return function(){D8(t)}},KT=function(t){D8(t.data)},YT=function(t){et.postMessage(o1t(t),nh.protocol+"//"+nh.host)};g3&&v3||(g3=function(t){var e=Oz(arguments,1);return ep[++x4]=function(){Tz(he(t)?t:r1t(t),void 0,e)},bl(x4),x4},v3=function(t){delete ep[t]},La?bl=function(t){n1t.nextTick(A4(t))}:D4&&D4.now?bl=function(t){D4.now(A4(t))}:GT&&!Kz?(C4=(WT=new GT).port2,WT.port1.onmessage=KT,bl=eh(C4.postMessage,C4)):et.addEventListener&&he(et.postMessage)&&!et.importScripts&&nh&&nh.protocol!=="file:"&&!xe(YT)?(bl=YT,et.addEventListener("message",KT,!1)):bl="onreadystatechange"in Jp("script")?function(t){s3.appendChild(Jp("script")).onreadystatechange=function(){s3.removeChild(this),D8(t)}}:function(t){setTimeout(A4(t),0)});var gd,Nu,np,Bl,O4,k4,_4,XT,Yz={set:g3,clear:v3},i1t=/ipad|iphone|ipod/i.test(Gl)&&et.Pebble!==void 0,a1t=/web0s(?!.*chrome)/i.test(Gl),u1t=l8.f,B4=Yz.set,ZT=et.MutationObserver||et.WebKitMutationObserver,JT=et.document,QT=et.process,hg=et.Promise,tP=u1t(et,"queueMicrotask"),Xz=tP&&tP.value;Xz||(gd=function(){var t,e;for(La&&(t=QT.domain)&&t.exit();Nu;){e=Nu.fn,Nu=Nu.next;try{e()}catch(n){throw Nu?Bl():np=void 0,n}}np=void 0,t&&t.enter()},Kz||La||a1t||!ZT||!JT?!i1t&&hg&&hg.resolve?((_4=hg.resolve(void 0)).constructor=hg,XT=eh(_4.then,_4),Bl=function(){XT(gd)}):La?Bl=function(){QT.nextTick(gd)}:(B4=eh(B4,et),Bl=function(){B4(gd)}):(O4=!0,k4=JT.createTextNode(""),new ZT(gd).observe(k4,{characterData:!0}),Bl=function(){k4.data=O4=!O4}));var F4,eP,Zz,nP,Jz=Xz||function(t){var e={fn:t,next:void 0};np&&(np.next=e),Nu||(Nu=e,Bl()),np=e},s1t=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Qa(e),this.reject=Qa(n)},x8={f:function(t){return new s1t(t)}},m3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},l1t=typeof window=="object",Qz=Yz.set,c1t=Xe("species"),pi="Promise",rP=Dr.getterFor(pi),f1t=Dr.set,d1t=Dr.getterFor(pi),Bu=n1&&n1.prototype,Ro=n1,vd=Bu,t$=et.TypeError,y3=et.document,A8=et.process,Kl=x8.f,p1t=Kl,h1t=!!(y3&&y3.createEvent&&et.dispatchEvent),e$=he(et.PromiseRejectionEvent),n$=!1,rp=Gm(pi,function(){var t=cy(Ro),e=t!==String(Ro);if(!e&&Xp===66)return!0;if(Xp>=51&&/native code/.test(t))return!1;var n=new Ro(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[c1t]=r,!(n$=n.then(function(){})instanceof r)||!e&&l1t&&!e$}),g1t=rp||!zz(function(t){Ro.all(t).catch(function(){})}),r$=function(t){var e;return!(!be(t)||!he(e=t.then))&&e},O8=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Jz(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&m1t(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(t$("Promise-chain cycle")):(u=r$(a))?ae(u,a,f,p):f(a)):p(r)}catch(m){d&&!s&&d.exit(),p(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&v1t(t)})}},o$=function(t,e,n){var r,o;h1t?((r=y3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),et.dispatchEvent(r)):r={promise:e,reason:n},!e$&&(o=et["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=et.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},v1t=function(t){ae(Qz,et,function(){var e,n=t.facade,r=t.value;if(oP(t)&&(e=m3(function(){La?A8.emit("unhandledRejection",r,n):o$("unhandledrejection",n,r)}),t.rejection=La||oP(t)?2:1,e.error))throw e.value})},oP=function(t){return t.rejection!==1&&!t.parent},m1t=function(t){ae(Qz,et,function(){var e=t.facade;La?A8.emit("rejectionHandled",e):o$("rejectionhandled",e,t.value)})},Nl=function(t,e,n){return function(r){t(e,r,n)}},Yl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,O8(t,!0))},b3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw t$("Promise can't be resolved itself");var r=r$(e);r?Jz(function(){var o={done:!1};try{ae(r,e,Nl(b3,o,t),Nl(Yl,o,t))}catch(i){Yl(o,i,t)}}):(t.value=e,t.state=1,O8(t,!1))}catch(o){Yl({done:!1},o,t)}}};if(rp&&(vd=(Ro=function(t){S8(this,vd),Qa(t),ae(F4,this);var e=rP(this);try{t(Nl(b3,e),Nl(Yl,e))}catch(n){Yl(e,n)}}).prototype,(F4=function(t){f1t(this,{type:pi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Qm(vd,{then:function(t,e){var n=d1t(this),r=n.reactions,o=Kl(Pz(this,Ro));return o.ok=!he(t)||t,o.fail=he(e)&&e,o.domain=La?A8.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&O8(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),eP=function(){var t=new F4,e=rP(t);this.promise=t,this.resolve=Nl(b3,e),this.reject=Nl(Yl,e)},x8.f=Kl=function(t){return t===Ro||t===Zz?new eP(t):p1t(t)},he(n1)&&Bu!==Object.prototype)){nP=Bu.then,n$||(yr(Bu,"then",function(t,e){var n=this;return new Ro(function(r,o){ae(nP,n,r,o)}).then(t,e)},{unsafe:!0}),yr(Bu,"catch",vd.catch,{unsafe:!0}));try{delete Bu.constructor}catch{}Ac&&Ac(Bu,vd)}No({global:!0,wrap:!0,forced:rp},{Promise:Ro}),Jm(Ro,pi,!1),function(t){var e=Os("Promise"),n=_i.f;qo&&e&&!e[qT]&&n(e,qT,{configurable:!0,get:function(){return this}})}(),Zz=Os(pi),No({target:pi,stat:!0,forced:rp},{reject:function(t){var e=Kl(this);return ae(e.reject,void 0,t),e.promise}}),No({target:pi,stat:!0,forced:rp},{resolve:function(t){return function(e,n){if(Cn(e),be(n)&&n.constructor===e)return n;var r=x8.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),No({target:pi,stat:!0,forced:g1t},{all:function(t){var e=this,n=Kl(e),r=n.resolve,o=n.reject,i=m3(function(){var a=Qa(e.resolve),u=[],s=0,l=1;t1(t,function(c){var f=s++,p=!1;l++,ae(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Kl(e),r=n.reject,o=m3(function(){var i=Qa(e.resolve);t1(t,function(a){ae(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var y1t=Wh.PROPER,w3=RegExp.prototype,i$=w3.toString,b1t=Rt(kz),w1t=xe(function(){return i$.call({source:"a",flags:"b"})!="/a/b"}),E1t=y1t&&i$.name!="toString";(w1t||E1t)&&yr(RegExp.prototype,"toString",function(){var t=Cn(this),e=Ra(t.source),n=t.flags;return"/"+e+"/"+Ra(n===void 0&&Yp(w3,t)&&!("flags"in w3)?b1t(t):n)},{unsafe:!0});var S1t=Wh.EXISTS,C1t=_i.f,a$=Function.prototype,D1t=Rt(a$.toString),u$=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,x1t=Rt(u$.exec);qo&&!S1t&&C1t(a$,"name",{configurable:!0,get:function(){try{return x1t(u$,D1t(this))[1]}catch{return""}}});var iP=new WeakMap;function s$(t){return t.getMenuConfig("uploadImage")}function A1t(t,e){return y8(this,void 0,void 0,function(){return b8(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;ts(t,a,e.name,u),r("ok")}}})]})})}function O1t(t,e){return y8(this,void 0,void 0,function(){var n,r,o,i;return b8(this,function(a){switch(a.label){case 0:return n=function(u){var s=iP.get(u);if(s!=null)return s;var l=s$(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,m=l.onError;return s=$N(Xm(Xm({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,g){if(d)return d(g,function(N,$,R){return ts(u,N,$,R)}),void c(v,g);var y=g.errno,h=y===void 0?1:y,b=g.data,E=b===void 0?{}:b;if(h===0){if(Array.isArray(E))E.forEach(function(N){var $=N.url,R=$===void 0?"":$,K=N.alt,U=K===void 0?"":K,W=N.href;ts(u,R,U,W===void 0?"":W)});else{var w=E.url,S=w===void 0?"":w,D=E.alt,x=D===void 0?"":D,k=E.href;ts(u,S,x,k===void 0?"":k)}c(v,g)}else p(v,g)},onError:function(v,g,y){m(v,g,y)}})),iP.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function l$(t,e){var n,r;return y8(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,p;return b8(this,function(d){switch(d.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=s$(t),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=bmt(o),d.label=2;case 2:return[4,s.next()];case 3:return(l=d.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,A1t(t,c)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(c,function(m,v,g){return ts(t,m,v,g)})]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,O1t(t,c)];case 8:d.sent(),d.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return p=d.sent(),n={error:p},[3,17];case 12:return d.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:d.sent(),d.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var k1t=Rt([].join),_1t=n8!=Object,B1t=qz("join",",");No({target:"Array",proto:!0,forced:_1t||!B1t},{join:function(t){return k1t(uu(this),t===void 0?",":t)}}),Ur&&(B.fn.append=Ur),Ho&&(B.fn.on=Ho),cc&&(B.fn.remove=cc),Vo&&(B.fn.val=Vo),s7&&(B.fn.click=s7),ac&&(B.fn.hide=ac);var F1t=function(){function t(){this.title=tt("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return $1(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,p){return ts(e,c,f,p)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;l$(e,c)})}},t}(),T1t={menus:[{key:"uploadImage",factory:function(){return new F1t},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,n=t;return n.insertData=function(r){if($1(n))e(r);else if(r.getData("text/plain"))e(r);else{var o=r.files;o.length<=0?e(r):Array.prototype.slice.call(o).some(function(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),p=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)p.push(l.value)}catch(d){c={error:d}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return p}(i.type.split("/"),1)[0]==="image"})?l$(t,o):e(r)}},n}};ir("en",{highLightModule:{selectLang:"Language"}}),ir("zh-CN",{highLightModule:{selectLang:"选择语言"}});var r1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function k8(t){var e={exports:{}};return t(e,e.exports),e.exports}var ia,Kg,gg=function(t){return t&&t.Math==Math&&t},$t=gg(typeof globalThis=="object"&&globalThis)||gg(typeof window=="object"&&window)||gg(typeof self=="object"&&self)||gg(typeof r1=="object"&&r1)||function(){return this}()||Function("return this")(),P1t=Object.defineProperty,_8=function(t,e){try{P1t($t,t,{value:e,configurable:!0,writable:!0})}catch{$t[t]=e}return e},Ma=$t["__core-js_shared__"]||_8("__core-js_shared__",{}),B8=k8(function(t){(t.exports=function(e,n){return Ma[e]||(Ma[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),c$=Function.prototype,E3=c$.bind,S3=c$.call,j1t=E3&&E3.bind(S3),ue=E3?function(t){return t&&j1t(S3,t)}:function(t){return t&&function(){return S3.apply(t,arguments)}},I1t=$t.TypeError,Oc=function(t){if(t==null)throw I1t("Can't call method on "+t);return t},N1t=$t.Object,F8=function(t){return N1t(Oc(t))},R1t=ue({}.hasOwnProperty),Vr=Object.hasOwn||function(t,e){return R1t(F8(t),e)},L1t=0,M1t=Math.random(),z1t=ue(1 .toString),f$=function(t){return"Symbol("+(t===void 0?"":t)+")_"+z1t(++L1t+M1t,36)},Ln=function(t){return typeof t=="function"},$1t=function(t){return Ln(t)?t:void 0},Kh=function(t,e){return arguments.length<2?$1t($t[t]):$t[t]&&$t[t][e]},T4=Kh("navigator","userAgent")||"",aP=$t.process,uP=$t.Deno,sP=aP&&aP.versions||uP&&uP.version,lP=sP&&sP.v8;lP&&(Kg=(ia=lP.split("."))[0]>0&&ia[0]<4?1:+(ia[0]+ia[1])),!Kg&&T4&&(!(ia=T4.match(/Edge\/(\d+)/))||ia[1]>=74)&&(ia=T4.match(/Chrome\/(\d+)/))&&(Kg=+ia[1]);var cP=Kg,wn=function(t){try{return!!t()}catch{return!0}},C3=!!Object.getOwnPropertySymbols&&!wn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&cP&&cP<41}),T8=C3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",md=B8("wks"),ds=$t.Symbol,fP=ds&&ds.for,V1t=T8?ds:ds&&ds.withoutSetter||f$,su=function(t){if(!Vr(md,t)||!C3&&typeof md[t]!="string"){var e="Symbol."+t;C3&&Vr(ds,t)?md[t]=ds[t]:md[t]=T8&&fP?fP(e):V1t(e)}return md[t]},d$={};d$[su("toStringTag")]="z";var P8=String(d$)==="[object z]",Go=!wn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),io=function(t){return typeof t=="object"?t!==null:Ln(t)},D3=$t.document,H1t=io(D3)&&io(D3.createElement),j8=function(t){return H1t?D3.createElement(t):{}},p$=!Go&&!wn(function(){return Object.defineProperty(j8("div"),"a",{get:function(){return 7}}).a!=7}),U1t=$t.String,W1t=$t.TypeError,go=function(t){if(io(t))return t;throw W1t(U1t(t)+" is not an object")},yd=Function.prototype.call,fn=yd.bind?yd.bind(yd):function(){return yd.apply(yd,arguments)},h$=ue({}.isPrototypeOf),q1t=$t.Object,P4=T8?function(t){return typeof t=="symbol"}:function(t){var e=Kh("Symbol");return Ln(e)&&h$(e.prototype,q1t(t))},G1t=$t.String,g$=function(t){try{return G1t(t)}catch{return"Object"}},K1t=$t.TypeError,v$=function(t){if(Ln(t))return t;throw K1t(g$(t)+" is not a function")},m$=function(t,e){var n=t[e];return n==null?void 0:v$(n)},Y1t=$t.TypeError,X1t=$t.TypeError,Z1t=su("toPrimitive"),I8=function(t){var e=function(n,r){if(!io(n)||P4(n))return n;var o,i=m$(n,Z1t);if(i){if(r===void 0&&(r="default"),o=fn(i,n,r),!io(o)||P4(o))return o;throw X1t("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&Ln(s=a.toString)&&!io(l=fn(s,a))||Ln(s=a.valueOf)&&!io(l=fn(s,a))||u!=="string"&&Ln(s=a.toString)&&!io(l=fn(s,a)))return l;throw Y1t("Can't convert object to primitive value")}(n,r)}(t,"string");return P4(e)?e:e+""},J1t=$t.TypeError,dP=Object.defineProperty,py={f:Go?dP:function(t,e,n){if(go(t),e=I8(e),go(n),p$)try{return dP(t,e,n)}catch{}if("get"in n||"set"in n)throw J1t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},N8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},kc=Go?function(t,e,n){return py.f(t,e,N8(1,n))}:function(t,e,n){return t[e]=n,t},Q1t=ue(Function.toString);Ln(Ma.inspectSource)||(Ma.inspectSource=function(t){return Q1t(t)});var o1,op,i1,R8=Ma.inspectSource,pP=$t.WeakMap,tyt=Ln(pP)&&/native code/.test(R8(pP)),hP=B8("keys"),y$=function(t){return hP[t]||(hP[t]=f$(t))},L8={},x3=$t.TypeError,eyt=$t.WeakMap;if(tyt||Ma.state){var xu=Ma.state||(Ma.state=new eyt),nyt=ue(xu.get),gP=ue(xu.has),ryt=ue(xu.set);o1=function(t,e){if(gP(xu,t))throw new x3("Object already initialized");return e.facade=t,ryt(xu,t,e),e},op=function(t){return nyt(xu,t)||{}},i1=function(t){return gP(xu,t)}}else{var wl=y$("state");L8[wl]=!0,o1=function(t,e){if(Vr(t,wl))throw new x3("Object already initialized");return e.facade=t,kc(t,wl,e),e},op=function(t){return Vr(t,wl)?t[wl]:{}},i1=function(t){return Vr(t,wl)}}var A3={set:o1,get:op,has:i1,enforce:function(t){return i1(t)?op(t):o1(t,{})},getterFor:function(t){return function(e){var n;if(!io(e)||(n=op(e)).type!==t)throw x3("Incompatible receiver, "+t+" required");return n}}},b$=Function.prototype,oyt=Go&&Object.getOwnPropertyDescriptor,j4=Vr(b$,"name"),w$={EXISTS:j4,PROPER:j4&&(function(){}).name==="something",CONFIGURABLE:j4&&(!Go||Go&&oyt(b$,"name").configurable)},rh=k8(function(t){var e=w$.CONFIGURABLE,n=A3.get,r=A3.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Ln(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Vr(u,"name")||e&&u.name!==d)&&kc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==$t?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:kc(i,a,u)):f?i[a]=u:_8(a,u)})(Function.prototype,"toString",function(){return Ln(this)&&n(this).source||R8(this)})}),iyt=ue({}.toString),ayt=ue("".slice),za=function(t){return ayt(iyt(t),8,-1)},uyt=su("toStringTag"),syt=$t.Object,lyt=za(function(){return arguments}())=="Arguments",M8=P8?za:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=syt(t),uyt))=="string"?n:lyt?za(e):(r=za(e))=="Object"&&Ln(e.callee)?"Arguments":r},cyt=P8?{}.toString:function(){return"[object "+M8(this)+"]"};P8||rh(Object.prototype,"toString",cyt,{unsafe:!0});var vP,mP={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},I4=j8("span").classList,yP=I4&&I4.constructor&&I4.constructor.prototype,fyt=yP===Object.prototype?void 0:yP,bP=ue(ue.bind),N4=$t.Object,dyt=ue("".split),z8=wn(function(){return!N4("z").propertyIsEnumerable(0)})?function(t){return za(t)=="String"?dyt(t,""):N4(t)}:N4,pyt=Math.ceil,hyt=Math.floor,$8=function(t){var e=+t;return e!=e||e===0?0:(e>0?hyt:pyt)(e)},gyt=Math.min,E$=function(t){return t>0?gyt($8(t),9007199254740991):0},V8=function(t){return E$(t.length)},wP=Array.isArray||function(t){return za(t)=="Array"},S$=function(){},vyt=[],C$=Kh("Reflect","construct"),H8=/^\s*(?:class|function)\b/,myt=ue(H8.exec),yyt=!H8.exec(S$),bd=function(t){if(!Ln(t))return!1;try{return C$(S$,vyt,t),!0}catch{return!1}},D$=!C$||wn(function(){var t;return bd(bd.call)||!bd(Object)||!bd(function(){t=!0})||t})?function(t){if(!Ln(t))return!1;switch(M8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yyt||!!myt(H8,R8(t))}:bd,byt=su("species"),EP=$t.Array,wyt=function(t,e){return new(function(n){var r;return wP(n)&&(r=n.constructor,(D$(r)&&(r===EP||wP(r.prototype))||io(r)&&(r=r[byt])===null)&&(r=void 0)),r===void 0?EP:r}(t))(e===0?0:e)},SP=ue([].push),aa=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,m=F8(s),v=z8(m),g=function(w,S){return v$(w),S===void 0?w:bP?bP(w,S):function(){return w.apply(S,arguments)}}(l,c),y=V8(v),h=0,b=f||wyt,E=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(d=g(p=v[h],h,m),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:SP(E,p)}else switch(t){case 4:return!1;case 7:SP(E,p)}return i?-1:r||o?o:E}},Eyt=[aa(0),aa(1),aa(2),aa(3),aa(4),aa(5),aa(6),aa(7)][0],R4=(vP=[].forEach)&&wn(function(){vP.call(null,function(){throw 1},1)})?[].forEach:function(t){return Eyt(this,t,arguments.length>1?arguments[1]:void 0)},x$=function(t){if(t&&t.forEach!==R4)try{kc(t,"forEach",R4)}catch{t.forEach=R4}};for(var L4 in mP)mP[L4]&&x$($t[L4]&&$t[L4].prototype);x$(fyt);var CP={}.propertyIsEnumerable,DP=Object.getOwnPropertyDescriptor,A$={f:DP&&!CP.call({1:2},1)?function(t){var e=DP(this,t);return!!e&&e.enumerable}:CP},hy=function(t){return z8(Oc(t))},xP=Object.getOwnPropertyDescriptor,O$={f:Go?xP:function(t,e){if(t=hy(t),e=I8(e),p$)try{return xP(t,e)}catch{}if(Vr(t,e))return N8(!fn(A$.f,t,e),t[e])}},Syt=Math.max,Cyt=Math.min,O3=function(t,e){var n=$8(t);return n<0?Syt(n+e,0):Cyt(n,e)},Dyt=function(t){return function(e,n,r){var o,i=hy(e),a=V8(i),u=O3(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},xyt=Dyt(!1),AP=ue([].push),k$=function(t,e){var n,r=hy(t),o=0,i=[];for(n in r)!Vr(L8,n)&&Vr(r,n)&&AP(i,n);for(;e.length>o;)Vr(r,n=e[o++])&&(~xyt(i,n)||AP(i,n));return i},a1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ayt=a1.concat("length","prototype"),Oyt={f:Object.getOwnPropertyNames||function(t){return k$(t,Ayt)}},_$={f:Object.getOwnPropertySymbols},kyt=ue([].concat),_yt=Kh("Reflect","ownKeys")||function(t){var e=Oyt.f(go(t)),n=_$.f;return n?kyt(e,n(t)):e},Byt=function(t,e){for(var n=_yt(e),r=py.f,o=O$.f,i=0;i<n.length;i++){var a=n[i];Vr(t,a)||r(t,a,o(e,a))}},Fyt=/#|\.prototype\./,Yh=function(t,e){var n=Pyt[Tyt(t)];return n==Iyt||n!=jyt&&(Ln(e)?wn(e):!!e)},Tyt=Yh.normalize=function(t){return String(t).replace(Fyt,".").toLowerCase()},Pyt=Yh.data={},jyt=Yh.NATIVE="N",Iyt=Yh.POLYFILL="P",Nyt=Yh,Ryt=O$.f,gy=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?$t:l?$t[u]||_8(u,{}):($t[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Ryt(n,r))&&a.value:n[r],!Nyt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Byt(i,o)}(t.sham||o&&o.sham)&&kc(i,"sham",!0),rh(n,r,i,t)}},Yg=Object.keys||function(t){return k$(t,a1)},El=Object.assign,OP=Object.defineProperty,Lyt=ue([].concat),kP=!El||wn(function(){if(Go&&El({b:1},El(OP({},"a",{enumerable:!0,get:function(){OP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),El({},t)[n]!=7||Yg(El({},e)).join("")!=r})?function(t,e){for(var n=F8(t),r=arguments.length,o=1,i=_$.f,a=A$.f;r>o;)for(var u,s=z8(arguments[o++]),l=i?Lyt(Yg(s),i(s)):Yg(s),c=l.length,f=0;c>f;)u=l[f++],Go&&!fn(a,s,u)||(n[u]=s[u]);return n}:El;gy({target:"Object",stat:!0,forced:Object.assign!==kP},{assign:kP});var _P=k8(function(t){var e=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function g(y){return y instanceof u?new u(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(y,h){var b,E;switch(h=h||{},a.util.type(y)){case"Object":if(E=a.util.objId(y),h[E])return h[E];for(var w in b={},h[E]=b,y)y.hasOwnProperty(w)&&(b[w]=g(y[w],h));return b;case"Array":return E=a.util.objId(y),h[E]?h[E]:(b=[],h[E]=b,y.forEach(function(S,D){b[D]=g(S,h)}),b);default:return y}},getLanguage:function(g){for(;g&&!r.test(g.className);)g=g.parentElement;return g?(g.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var h in y)if(y[h].src==g)return y[h]}return null}},isActive:function(g,y,h){for(var b="no-"+y;g;){var E=g.classList;if(E.contains(y))return!0;if(E.contains(b))return!1;g=g.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,y){var h=a.util.clone(a.languages[g]);for(var b in y)h[b]=y[b];return h},insertBefore:function(g,y,h,b){var E=(b=b||a.languages)[g],w={};for(var S in E)if(E.hasOwnProperty(S)){if(S==y)for(var D in h)h.hasOwnProperty(D)&&(w[D]=h[D]);h.hasOwnProperty(S)||(w[S]=E[S])}var x=b[g];return b[g]=w,a.languages.DFS(a.languages,function(k,N){N===x&&k!=g&&(this[k]=w)}),w},DFS:function g(y,h,b,E){E=E||{};var w=a.util.objId;for(var S in y)if(y.hasOwnProperty(S)){h.call(y,S,y[S],b||S);var D=y[S],x=a.util.type(D);x!=="Object"||E[w(D)]?x!=="Array"||E[w(D)]||(E[w(D)]=!0,g(D,h,S,E)):(E[w(D)]=!0,g(D,h,null,E))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,h){var b={callback:h,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var E,w=0;E=b.elements[w++];)a.highlightElement(E,y===!0,b.callback)},highlightElement:function(g,y,h){var b=a.util.getLanguage(g),E=a.languages[b];g.className=g.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var w=g.parentElement;w&&w.nodeName.toLowerCase()==="pre"&&(w.className=w.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var S={element:g,language:b,grammar:E,code:g.textContent};function D(k){S.highlightedCode=k,a.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,a.hooks.run("after-highlight",S),a.hooks.run("complete",S),h&&h.call(S.element)}if(a.hooks.run("before-sanity-check",S),(w=S.element.parentElement)&&w.nodeName.toLowerCase()==="pre"&&!w.hasAttribute("tabindex")&&w.setAttribute("tabindex","0"),!S.code)return a.hooks.run("complete",S),void(h&&h.call(S.element));if(a.hooks.run("before-highlight",S),S.grammar)if(y&&n.Worker){var x=new Worker(a.filename);x.onmessage=function(k){D(k.data)},x.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else D(a.highlight(S.code,S.grammar,S.language));else D(a.util.encode(S.code))},highlight:function(g,y,h){var b={code:g,grammar:y,language:h};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(g,y){var h=y.rest;if(h){for(var b in h)y[b]=h[b];delete y.rest}var E=new c;return f(E,E.head,g),l(g,E,y,E.head,0),function(w){for(var S=[],D=w.head.next;D!==w.tail;)S.push(D.value),D=D.next;return S}(E)},hooks:{all:{},add:function(g,y){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(y)},run:function(g,y){var h=a.hooks.all[g];if(h&&h.length)for(var b,E=0;b=h[E++];)b(y)}},Token:u};function u(g,y,h,b){this.type=g,this.content=y,this.alias=h,this.length=0|(b||"").length}function s(g,y,h,b){g.lastIndex=y;var E=g.exec(h);if(E&&b&&E[1]){var w=E[1].length;E.index+=w,E[0]=E[0].slice(w)}return E}function l(g,y,h,b,E,w){for(var S in h)if(h.hasOwnProperty(S)&&h[S]){var D=h[S];D=Array.isArray(D)?D:[D];for(var x=0;x<D.length;++x){if(w&&w.cause==S+","+x)return;var k=D[x],N=k.inside,$=!!k.lookbehind,R=!!k.greedy,K=k.alias;if(R&&!k.pattern.global){var U=k.pattern.toString().match(/[imsuy]*$/)[0];k.pattern=RegExp(k.pattern.source,U+"g")}for(var W=k.pattern||k,G=b.next,nt=E;G!==y.tail&&!(w&&nt>=w.reach);nt+=G.value.length,G=G.next){var ft=G.value;if(y.length>g.length)return;if(!(ft instanceof u)){var ct,st=1;if(R){if(!(ct=s(W,nt,g,$)))break;var _=ct.index,A=ct.index+ct[0].length,P=nt;for(P+=G.value.length;_>=P;)P+=(G=G.next).value.length;if(nt=P-=G.value.length,G.value instanceof u)continue;for(var V=G;V!==y.tail&&(P<A||typeof V.value=="string");V=V.next)st++,P+=V.value.length;st--,ft=g.slice(nt,P),ct.index-=nt}else if(!(ct=s(W,0,ft,$)))continue;_=ct.index;var Y=ct[0],H=ft.slice(0,_),at=ft.slice(_+Y.length),bt=nt+ft.length;w&&bt>w.reach&&(w.reach=bt);var wt=G.prev;if(H&&(wt=f(y,wt,H),nt+=H.length),p(y,wt,st),G=f(y,wt,new u(S,N?a.tokenize(Y,N):Y,K,Y)),at&&f(y,G,at),st>1){var Ot={cause:S+","+x,reach:bt};l(g,y,h,G.prev,nt,Ot),w&&Ot.reach>w.reach&&(w.reach=Ot.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function f(g,y,h){var b=y.next,E={value:h,prev:y,next:b};return y.next=E,b.prev=E,g.length++,E}function p(g,y,h){for(var b=y.next,E=0;E<h&&b!==g.tail;E++)b=b.next;y.next=b,b.prev=y,g.length-=E}if(n.Prism=a,u.stringify=function g(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach(function(x){b+=g(x,h)}),b}var E={type:y.type,content:g(y.content,h),tag:"span",classes:["token",y.type],attributes:{},language:h},w=y.alias;w&&(Array.isArray(w)?Array.prototype.push.apply(E.classes,w):E.classes.push(w)),a.hooks.run("wrap",E);var S="";for(var D in E.attributes)S+=" "+D+'="'+(E.attributes[D]||"").replace(/"/g,"&quot;")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+S+">"+E.content+"</"+E.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(g){var y=JSON.parse(g.data),h=y.language,b=y.code,E=y.immediateClose;n.postMessage(a.highlight(b,a.languages[h],h)),E&&n.close()},!1)),a;var d=a.util.currentScript();function m(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var v=document.readyState;v==="loading"||v==="interactive"&&d&&d.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
  153. * Prism: Lightweight, robust, elegant syntax highlighting
  154. *
  155. * @license MIT <https://opensource.org/licenses/MIT>
  156. * @author Lea Verou <https://lea.verou.me>
  157. * @namespace
  158. * @public
  159. */t.exports&&(t.exports=e),r1!==void 0&&(r1.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(e!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),e.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(r,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),p=s.language;if(p==="none"){var d=(/\.(\w+)$/.exec(f)||[,"none"])[1];p=n[d]||d}u(c,p),u(l,p);var m=e.plugins.autoloader;m&&m.loadLanguages(p);var v=new XMLHttpRequest;v.open("GET",f,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?(l.setAttribute(r,"loaded"),c.textContent=v.responseText,e.highlightElement(c)):(l.setAttribute(r,"failed"),v.status>=400?c.textContent="✖ Error "+v.status+" while fetching file: "+v.statusText:c.textContent="✖ Error: File does not exist or is empty"))},v.send(null)}}),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}}()});(function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],p=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:p=!0),(p||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var d=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(d+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(d=a(s[c-1])+d,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",d,null,d)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(A,P){return A.replace(/<<(\d+)>>/g,function(V,Y){return"(?:"+P[+Y]+")"})}function n(A,P,V){return RegExp(e(A,P),V||"")}function r(A,P){for(var V=0;V<P;V++)A=A.replace(/<<self>>/g,function(){return"(?:"+A+")"});return A.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(A){return"\\b(?:"+A.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),p=s(o+" "+i+" "+u),d=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),m=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=e(/<<0>>(?:\s*<<1>>)?/.source,[v,d]),y=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),E=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,m,h]),w=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),S=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,h]),D={keyword:c,punctuation:/[<>()?,.:[\]]/},x=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,N=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:RegExp(x),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,S]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,p,v]),inside:D}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,d]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(d),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,v,S,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var $=k+"|"+x,R=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[$]),K=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,W=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,K]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[K]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var G=/:[^}\r\n]+/.source,nt=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),ft=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[nt,G]),ct=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[$]),2),st=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ct,G]);function _(A,P){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[A]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[P,G]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ft]),lookbehind:!0,greedy:!0,inside:_(ft,nt)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[st]),lookbehind:!0,greedy:!0,inside:_(st,ct)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){t.languages.ruby=t.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:t.languages.ruby}}}),t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),t.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:e}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=t.languages.bash[o[a]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var p=0,d=f.length;p<d;p++){var m=f[p];if(m.type==="code"){var v=m.content[1],g=m.content[3];if(v&&g&&v.type==="code-language"&&g.type==="code-block"&&typeof v.content=="string"){var y=v.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(m.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,p=l.classes.length;f<p;f++){var d=l.classes[f],m=/language-(.+)/.exec(d);if(m){c=m[1];break}}var v=t.languages[c];if(v)l.content=t.highlight(function(y){var h=y.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,E){var w;return(E=E.toLowerCase())[0]==="#"?(w=E[1]==="x"?parseInt(E.slice(2),16):Number(E.slice(1)),s(w)):u[E]||b})}(l.content),v,c);else if(c&&c!=="none"&&t.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,t.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(g);y&&(y.innerHTML=t.highlight(y.textContent,t.languages[c],c))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var Myt=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function B$(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,n){return e+B$(n)},0)}var vg,zyt=$t.String,wi=function(t){if(M8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return zyt(t)},F$=function(){var t=go(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},U8=$t.RegExp,k3=wn(function(){var t=U8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),$yt=k3||wn(function(){return!U8("a","y").sticky}),T$={BROKEN_CARET:k3||wn(function(){var t=U8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:$yt,UNSUPPORTED_Y:k3},Vyt=Go?Object.defineProperties:function(t,e){go(t);for(var n,r=hy(e),o=Yg(e),i=o.length,a=0;i>a;)py.f(t,n=o[a++],r[n]);return t},Hyt=Kh("document","documentElement"),P$=y$("IE_PROTO"),M4=function(){},j$=function(t){return"<script>"+t+"<\/script>"},BP=function(t){t.write(j$("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xg=function(){try{vg=new ActiveXObject("htmlfile")}catch{}var t,e;Xg=typeof document<"u"?document.domain&&vg?BP(vg):((e=j8("iframe")).style.display="none",Hyt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(j$("document.F=Object")),t.close(),t.F):BP(vg);for(var n=a1.length;n--;)delete Xg.prototype[a1[n]];return Xg()};L8[P$]=!0;var FP,z4,Uyt=Object.create||function(t,e){var n;return t!==null?(M4.prototype=go(t),n=new M4,M4.prototype=null,n[P$]=t):n=Xg(),e===void 0?n:Vyt(n,e)},Wyt=$t.RegExp,qyt=wn(function(){var t=Wyt(".","s");return!(t.dotAll&&t.exec(`
  160. `)&&t.flags==="s")}),Gyt=$t.RegExp,Kyt=wn(function(){var t=Gyt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Yyt=A3.get,Xyt=B8("native-string-replace",String.prototype.replace),u1=RegExp.prototype.exec,_3=u1,Zyt=ue("".charAt),Jyt=ue("".indexOf),Qyt=ue("".replace),$4=ue("".slice),V4=(z4=/b*/g,fn(u1,FP=/a/,"a"),fn(u1,z4,"a"),FP.lastIndex!==0||z4.lastIndex!==0),TP=T$.BROKEN_CARET,H4=/()??/.exec("")[1]!==void 0;(V4||H4||TP||qyt||Kyt)&&(_3=function(t){var e,n,r,o,i,a,u,s=this,l=Yyt(s),c=wi(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=fn(_3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=TP&&s.sticky,m=fn(F$,s),v=s.source,g=0,y=c;if(d&&(m=Qyt(m,"y",""),Jyt(m,"g")===-1&&(m+="g"),y=$4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Zyt(c,s.lastIndex-1)!==`
  161. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),H4&&(n=new RegExp("^"+v+"$(?!\\s)",m)),V4&&(r=s.lastIndex),o=fn(u1,d?n:s,y),d?o?(o.input=$4(o.input,g),o[0]=$4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:V4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),H4&&o&&o.length>1&&fn(Xyt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Uyt(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var oh=_3;gy({target:"RegExp",proto:!0,forced:/./.exec!==oh},{exec:oh});var W8=Function.prototype,PP=W8.apply,tbt=W8.bind,jP=W8.call,ebt=typeof Reflect=="object"&&Reflect.apply||(tbt?jP.bind(PP):function(){return jP.apply(PP,arguments)}),nbt=su("species"),U4=RegExp.prototype,rbt=su("match"),obt=$t.TypeError,ibt=su("species"),abt=ue("".charAt),IP=ue("".charCodeAt),ubt=ue("".slice),sbt=function(t){return function(e,n){var r,o,i=wi(Oc(e)),a=$8(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=IP(i,a))<55296||r>56319||a+1===u||(o=IP(i,a+1))<56320||o>57343?t?abt(i,a):r:t?ubt(i,a,a+2):o-56320+(r-55296<<10)+65536}},lbt=sbt(!0),cbt=function(t,e,n){return e+(n?lbt(t,e).length:1)},fbt=$t.Array,dbt=Math.max,NP=function(t,e,n){for(var r,o,i,a,u=V8(t),s=O3(e,u),l=O3(n===void 0?u:n,u),c=fbt(dbt(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=t[s],(a=I8(o))in r?py.f(r,a,N8(0,i)):r[a]=i;return c.length=f,c},pbt=$t.TypeError,RP=function(t,e){var n=t.exec;if(Ln(n)){var r=fn(n,t,e);return r!==null&&go(r),r}if(za(t)==="RegExp")return fn(oh,t,e);throw pbt("RegExp#exec called on incompatible receiver")},Sl=T$.UNSUPPORTED_Y,hbt=Math.min,I$=[].push,gbt=ue(/./.exec),Cl=ue(I$),wd=ue("".slice);(function(t,e,n,r){var o=su(t),i=!wn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!wn(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[nbt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ue(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,m){var v,g,y=wi(Oc(this)),h=m===void 0?4294967295:m>>>0;if(h===0)return[];if(d===void 0)return[y];if(!io(v=d)||!((g=v[rbt])!==void 0?g:za(v)=="RegExp"))return fn(c,y,d,h);for(var b,E,w,S=[],D=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),x=0,k=new RegExp(d.source,D+"g");(b=fn(oh,k,y))&&!((E=k.lastIndex)>x&&(Cl(S,wd(y,x,b.index)),b.length>1&&b.index<y.length&&ebt(I$,S,NP(b,1)),w=b[0].length,x=E,S.length>=h));)k.lastIndex===b.index&&k.lastIndex++;return x===y.length?!w&&gbt(k,"")||Cl(S,""):Cl(S,wd(y,x)),S.length>h?NP(S,0,h):S}:"0".split(void 0,0).length?function(d,m){return d===void 0&&m===0?[]:fn(c,this,d,m)}:c,[function(d,m){var v=Oc(this),g=d==null?void 0:m$(d,l);return g?fn(g,d,v,m):fn(p,wi(v),d,m)},function(d,m){var v=go(this),g=wi(d),y=f(p,v,g,m,p!==c);if(y.done)return y.value;var h=function(K,U){var W,G=go(K).constructor;return G===void 0||(W=go(G)[ibt])==null?U:function(nt){if(D$(nt))return nt;throw obt(g$(nt)+" is not a constructor")}(W)}(v,RegExp),b=v.unicode,E=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(Sl?"g":"y"),w=new h(Sl?"^(?:"+v.source+")":v,E),S=m===void 0?4294967295:m>>>0;if(S===0)return[];if(g.length===0)return RP(w,g)===null?[g]:[];for(var D=0,x=0,k=[];x<g.length;){w.lastIndex=Sl?0:x;var N,$=RP(w,Sl?wd(g,x):g);if($===null||(N=hbt(E$(w.lastIndex+(Sl?x:0)),g.length))===D)x=cbt(g,x,b);else{if(Cl(k,wd(g,D,x)),k.length===S)return k;for(var R=1;R<=$.length-1;R++)if(Cl(k,$[R]),k.length===S)return k;x=D=N}}return Cl(k,wd(g,D)),k}]}(o,""[t],function(l,c,f,p,d){var m=ue(l),v=c.exec;return v===oh||v===U4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}});rh(String.prototype,t,s[0]),rh(U4,o,s[1])}r&&kc(U4[o],"sham",!0)})("split",0,!!wn(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Sl),gy({global:!0},{globalThis:$t}),Hr&&(B.fn.attr=Hr);var vbt=w$.PROPER,B3=RegExp.prototype,N$=B3.toString,mbt=ue(F$),ybt=wn(function(){return N$.call({source:"a",flags:"b"})!="/a/b"}),bbt=vbt&&N$.name!="toString";(ybt||bbt)&&rh(RegExp.prototype,"toString",function(){var t=go(this),e=wi(t.source),n=t.flags;return"/"+e+"/"+wi(n===void 0&&h$(B3,t)&&!("flags"in B3)?mbt(t):n)},{unsafe:!0});var wbt=function(){function t(){this.title=tt("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;n.push({text:u,value:s})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);if(n==null||!pt.isElement(n))return"";var r=n.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,n){if(this.getSelectCodeElem(e)!=null){var r={language:n.toString()};I.setNodes(e,r,{match:function(o){return O.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var n=O.getSelectedNodeByType(e,"code");if(n==null)return null;var r=O.getParentNode(e,n);return pt.isElement(r)?r.type!=="pre"?null:n:null},t}(),Ebt={renderStyle:function(t,e){var n=t,r=e,o="";return Myt.forEach(function(i){n[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(r,o="token "+o),r},parseStyleHtml:function(t,e,n){var r=B(t);if(!pt.isElement(e)||O.getNodeType(e)!=="code")return e;var o=e,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new wbt},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){var n=t.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+e+"</code>"}}]},Sbt=/"/g,Cbt=ue("".replace);gy({target:"String",proto:!0,forced:wn(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=wi(Oc(this)),r="<a",(r+=' name="'+Cbt(wi(e),Sbt,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var R$=function(t){var e,n,r,o=function(y,h){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var E,w,S=b.call(y),D=[];try{for(;(h===void 0||h-- >0)&&!(E=S.next()).done;)D.push(E.value)}catch(x){w={error:x}}finally{try{E&&!E.done&&(b=S.return)&&b.call(S)}finally{if(w)throw w.error}}return D}(t,2),i=o[0],a=o[1],u=[],s=function(y){if(!it.isText(y))return null;var h=O.getParentNode(null,y);if(h&&O.getNodeType(h)==="code"){var b=O.getParentNode(null,h);if(b&&O.getNodeType(b)==="pre")return h}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(y,h){if(!h)return[];var b=_P.languages[h];return b?_P.tokenize(y.text,b):[]}(i,c),p=0;try{for(var d=function(y){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&y[h],E=0;if(b)return b.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&E>=y.length&&(y=void 0),{value:y&&y[E++],done:!y}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),m=d.next();!m.done;m=d.next()){var v=m.value,g=p+B$(v);typeof v!="string"&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:p},r.focus={path:a,offset:g},r)),p=g}}catch(y){e={error:y}}finally{try{m&&!m.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return u},Ne=function(){return Ne=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ne.apply(this,arguments)},vn=function(){function t(){throw new Error(`不能实例化
  162. Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Ne(Ne({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Ne(Ne({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Ne(Ne({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Ne(Ne({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=jr(jr({},u),o||{});if(xp[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");xp[i]=a,function(l,c){c!=null&&(sN[l]=c)}(i,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;PN[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){DS.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;lN[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){mS.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){ON.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;qv[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){r5.push(n)})(e)},t.registerModule=function(e){Fu(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
  163. Copyright (c) Microsoft Corporation.
  164. Permission to use, copy, modify, and/or distribute this software for any
  165. purpose with or without fee is hereby granted.
  166. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  167. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  168. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  169. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  170. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  171. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  172. PERFORMANCE OF THIS SOFTWARE.
  173. ***************************************************************************** */function Fu(t){var e=t.menus,n=t.renderElems,r=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,a=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach(function(c){return vn.registerMenu(c)}),n&&n.forEach(function(c){return vn.registerRenderElem(c)}),r&&vn.registerRenderStyle(r),o&&o.forEach(function(c){return vn.registerElemToHtml(c)}),i&&vn.registerStyleToHtml(i),a&&a.forEach(function(c){return vn.registerPreParseHtml(c)}),u&&u.forEach(function(c){return vn.registerParseElemHtml(c)}),s&&vn.registerParseStyleHtml(s),l&&vn.registerPlugin(l)}_st.forEach(function(t){return Fu(t)}),Fu(aft),Fu(Tpt),Fu($gt),Fu(T1t),Fu(Ebt);var L$='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',M$={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},Dbt={hoverbarKeys:Ne(Ne({},M$),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};vn.setEditorConfig(Ne(Ne({},Dbt),{decorate:R$}));var xbt={hoverbarKeys:M$};vn.setSimpleEditorConfig(Ne(Ne({},xbt),{decorate:R$}));var Abt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:tt("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:tt("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:tt("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:L$,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:tt("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};vn.setToolbarConfig(Abt);var Obt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:L$,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function kbt(t){t===void 0&&(t={});var e=t.selector,n=e===void 0?"":e,r=t.content,o=r===void 0?[]:r,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?vn.simpleEditorConfig:vn.editorConfig,c=Ne(Ne({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return jet({selector:n,config:Ne(Ne(Ne({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:vn.plugins})}function _bt(t){var e=t.selector,n=t.editor,r=t.config,o=r===void 0?{}:r,i=t.mode,a=i===void 0?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?vn.simpleToolbarConfig:vn.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,p=c.config,d=p===void 0?{}:p;if(function(g,y){return BN(g,"data-w-e-toolbar",y)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var m=jr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},d||{}),v=new Met(f,m);return KC.set(v,l),F1.set(l,v),v}(n,{selector:e,config:Ne(Ne({},u),o)});return s}vn.setSimpleToolbarConfig(Obt);var Bbt=Object.defineProperty,Fbt=Object.defineProperties,Tbt=Object.getOwnPropertyDescriptors,LP=Object.getOwnPropertySymbols,Pbt=Object.prototype.hasOwnProperty,jbt=Object.prototype.propertyIsEnumerable,MP=(t,e,n)=>e in t?Bbt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ibt=(t,e)=>{for(var n in e||(e={}))Pbt.call(e,n)&&MP(t,n,e[n]);if(LP)for(var n of LP(e))jbt.call(e,n)&&MP(t,n,e[n]);return t},Nbt=(t,e)=>Fbt(t,Tbt(e));function ua(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`
  174. Please use '@${t}' event instead of props`,e}var z$=(t,e)=>{for(const[n,r]of e)t[n]=r;return t};const Rbt=Kr({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const n=$a(null),r=$P(null),o=$a(""),i=()=>{if(!n.value)return;const u=W4(t.defaultContent);kbt({selector:n.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:Nbt(Ibt({},t.defaultConfig),{onCreated(s){if(r.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=ua("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,e.emit("update:modelValue",l),e.emit("onChange",s),t.defaultConfig.onChange){const c=ua("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=ua("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=ua("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=ua("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=ua("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=ua("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=ua("customPaste");throw new Error(f)}let c;return e.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return _c(()=>{i()}),ks(()=>t.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),Lbt={ref:"box",style:{height:"100%"}};function Mbt(t,e,n,r,o,i){return ot(),Gt("div",Lbt,null,512)}var zbt=z$(Rbt,[["render",Mbt]]);const $bt=Kr({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=$a(null),n=r=>{if(e.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");O.getToolbar(r)||_bt({editor:r,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return H$(()=>{const{editor:r}=t;r!=null&&n(r)}),{selector:e}}}),Vbt={ref:"selector"};function Hbt(t,e,n,r,o,i){return ot(),Gt("div",Vbt,null,512)}var Ubt=z$($bt,[["render",Hbt]]);const Wbt=Kr({__name:"wang",props:{height:{default:"320px"},mode:{default:"default"},placeholder:{default:"请输入内容..."},modelValue:{default:""},toolbarConfig:{default:()=>({excludeKeys:["|"]})},editorConfig:{default:()=>({})},editorStyle:{default:()=>({})},style:{default:()=>({})},fileForceLocal:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=iV(),i=$P(),a=n,u=tu({mounted:!1,value:r.modelValue?r.modelValue:"<p></p>",editorConfig:r.editorConfig,editorStyle:r.editorStyle});_c(()=>{int(o.lang.defaultLang=="zh-cn"?"zh-CN":o.lang.defaultLang),u.editorConfig.placeholder=r.placeholder,u.editorConfig.MENU_CONF={},u.editorConfig.MENU_CONF.uploadImage={fieldName:"file",maxFileSize:10*1024*1024,async customUpload(f,p){Ii.configure({showSpinner:!0,trickle:!1}),Ii.start();let d=new FormData;d.append("file",f),G4(d,{},r.fileForceLocal,{onUploadProgress:m=>{Ii.set(m.progress)}}).then(m=>{m.code==1&&p(m.data.file.full_url,m.data.file.name,m.data.file.full_url),Ii.done()})}},u.editorConfig.MENU_CONF.uploadVideo={fieldName:"file",async customUpload(f,p){Ii.configure({showSpinner:!0,trickle:!1}),Ii.start();let d=new FormData;d.append("file",f),G4(d,{},r.fileForceLocal,{onUploadProgress:m=>{Ii.set(m.progress)}}).then(m=>{m.code==1&&p(m.data.file.full_url),Ii.done()})}},u.editorStyle.height=r.height,u.editorStyle["overflow-y"]="hidden",u.mounted=!0}),U$(()=>{i.value!=null&&i.value.destroy()});const s=f=>{i.value=f},l=()=>{a("update:modelValue",i.value.getHtml())};return e({getRef:()=>i.value}),ks(()=>r.modelValue,f=>{u.value=f||"<p></p>"}),(f,p)=>u.mounted?(ot(),Gt("div",{key:0,style:W$(f.style),class:"ba-editor wangeditor"},[dt(ut(Ubt),{class:"wangeditor-toolbar",editor:i.value,defaultConfig:f.toolbarConfig,mode:f.mode},null,8,["editor","defaultConfig","mode"]),dt(ut(zbt),Zl({style:u.editorStyle,modelValue:u.value,"onUpdate:modelValue":p[0]||(p[0]=d=>u.value=d),defaultConfig:u.editorConfig,mode:f.mode,onOnCreated:s,onOnChange:l},f.$attrs),null,16,["style","modelValue","defaultConfig","mode"])],4)):Fe("",!0)}}),qbt=xi(Wbt,[["__scopeId","data-v-c3c938ec"]]),Gbt=Object.freeze(Object.defineProperty({__proto__:null,default:qbt},Symbol.toStringTag,{value:"Module"})),Kbt=Kr({__name:"editor",props:{editorType:{default:"default"}},setup(t){const e=t,n=tu({editorType:e.editorType}),r={},o=Object.assign({"../../mixins/editor/default.vue":MV,"../../mixins/editor/wang.vue":Gbt});for(const i in o){const a=i.replace("../../mixins/editor/","").replace(".vue","");r[a]=o[i].default,e.editorType=="default"&&a!="default"&&(n.editorType=a)}return(i,a)=>(ot(),Gt("div",null,[(ot(),jt(HP(r[n.editorType]),VP(q$(i.$attrs)),null,16))]))}}),Be=()=>({null:!1,primaryKey:!1,unsigned:!1,autoIncrement:!1}),I2t={string:{type:"varchar",length:200,precision:0,default:"empty string",...Be()},password:{type:"varchar",length:32,precision:0,default:"empty string",...Be()},number:{type:"int",length:10,precision:0,default:"0",...Be()},radio:{type:"enum",length:0,precision:0,default:"",...Be()},checkbox:{type:"set",length:0,precision:0,default:"",...Be()},switch:{type:"tinyint",length:1,precision:0,default:"1",...Be(),unsigned:!0},textarea:{type:"varchar",length:255,precision:0,default:"empty string",...Be()},array:{type:"varchar",length:255,precision:0,default:"empty string",...Be()},datetime:{type:"bigint",length:16,precision:0,default:"null",...Be(),null:!0,unsigned:!0},year:{type:"year",length:4,precision:0,default:"null",...Be(),null:!0},date:{type:"date",length:0,precision:0,default:"null",...Be(),null:!0},time:{type:"time",length:0,precision:0,default:"null",...Be(),null:!0},select:{type:"enum",length:0,precision:0,default:"",...Be()},selects:{type:"varchar",length:100,precision:0,default:"empty string",...Be()},remoteSelect:{type:"int",length:10,precision:0,default:"0",...Be(),unsigned:!0},remoteSelects:{type:"varchar",length:100,precision:0,default:"empty string",...Be()},editor:{type:"text",length:0,precision:0,default:"empty string",...Be(),null:!0},city:{type:"varchar",length:100,precision:0,default:"empty string",...Be()},image:{type:"varchar",length:200,precision:0,default:"empty string",...Be()},images:{type:"varchar",length:255,precision:0,default:"empty string",...Be()},file:{type:"varchar",length:200,precision:0,default:"empty string",...Be()},files:{type:"varchar",length:255,precision:0,default:"empty string",...Be()},icon:{type:"varchar",length:50,precision:0,default:"empty string",...Be()},color:{type:"varchar",length:30,precision:0,default:"empty string",...Be()}},zP=t=>typeof t=="string"?t==""?[]:t.split(","):t,Ybt={class:"table-com-search"},Xbt={class:"com-search-col"},Zbt={key:0,class:"com-search-col-label"},Jbt={class:"com-search-col-input"},Qbt={class:"com-search-col"},t2t={key:0,class:"com-search-col-label w16"},e2t={class:"com-search-col-input-range w83"},n2t={class:"com-search-col"},r2t={key:0,class:"com-search-col-label"},o2t={key:1,class:"com-search-col-input-range"},i2t={class:"range-separator"},a2t={key:2,class:"com-search-col-input"},u2t={key:3,class:"com-search-col-input"},s2t={class:"com-search-col pl-20"},l2t=Kr({__name:"index",setup(t){const e=UP("baTable"),n=()=>{let o=[];for(const i in e.comSearch.form){if(!e.comSearch.fieldData.has(i))continue;let a="",u=e.comSearch.fieldData.get(i);if(u.render=="datetime"&&(u.operator=="RANGE"||u.operator=="NOT RANGE"))e.comSearch.form[i]&&e.comSearch.form[i].length>=2&&(u.comSearchRender=="date"?a=e.comSearch.form[i][0]+" 00:00:00,"+e.comSearch.form[i][1]+" 23:59:59":a=e.comSearch.form[i][0]+","+e.comSearch.form[i][1]);else if(u.operator=="RANGE"||u.operator=="NOT RANGE"){if(!e.comSearch.form[i+"-start"]&&!e.comSearch.form[i+"-end"])continue;a=e.comSearch.form[i+"-start"]+","+e.comSearch.form[i+"-end"]}else e.comSearch.form[i]&&(a=e.comSearch.form[i]);a&&o.push({field:i,val:a,operator:u.operator,render:u.render})}e.onTableAction("com-search",o)},r=()=>{for(const o in e.comSearch.form)e.comSearch.form[o]="";n()};return(o,i)=>{const a=Et("el-col"),u=Et("el-date-picker"),s=Et("el-input"),l=Et("el-checkbox"),c=Et("el-option"),f=Et("el-select"),p=Et("el-button"),d=Et("el-row"),m=Et("el-form"),v=ih("blur");return ot(),Gt("div",Ybt,[dt(m,{onSubmit:i[1]||(i[1]=ip(()=>{},["prevent"])),onKeyup:G$(n,["enter"]),"label-position":"top",model:ut(e).comSearch.form},{default:vt(()=>[dt(d,null,{default:vt(()=>[(ot(!0),Gt(Yn,null,vi(ut(e).table.column,(g,y)=>{var h,b,E,w;return ot(),Gt(Yn,{key:y},[g.operator!==!1?(ot(),Gt(Yn,{key:0},[g.comSearchRender=="customRender"||g.comSearchRender=="slot"?(ot(),jt(a,VP(Zl({key:0},{xs:(h=g.comSearchColAttr)!=null&&h.xs?(b=g.comSearchColAttr)==null?void 0:b.xs:24,sm:(E=g.comSearchColAttr)!=null&&E.sm?(w=g.comSearchColAttr)==null?void 0:w.sm:6,...g.comSearchColAttr})),{default:vt(()=>[oe("div",Xbt,[g.comSearchShowLabel!==!1?(ot(),Gt("div",Zbt,Se(g.label),1)):Fe("",!0),oe("div",Jbt,[g.comSearchRender=="customRender"?(ot(),jt(HP(g.comSearchCustomRender),{key:0,renderRow:g,renderField:g.prop,renderValue:ut(e).comSearch.form[g.prop]},null,8,["renderRow","renderField","renderValue"])):g.comSearchRender=="slot"?Fo(o.$slots,g.comSearchSlotName,{key:1},void 0,!0):Fe("",!0)])])]),_:2},1040)):g.render=="datetime"&&(g.operator=="RANGE"||g.operator=="NOT RANGE")?(ot(),jt(a,{key:1,xs:24,sm:12},{default:vt(()=>[oe("div",Qbt,[g.comSearchShowLabel!==!1?(ot(),Gt("div",t2t,Se(g.label),1)):Fe("",!0),oe("div",e2t,[dt(u,{class:"datetime-picker",modelValue:ut(e).comSearch.form[g.prop],"onUpdate:modelValue":S=>ut(e).comSearch.form[g.prop]=S,"default-value":ut(e).comSearch.form[g.prop+"-default"]?ut(e).comSearch.form[g.prop+"-default"]:[new Date,new Date],type:g.comSearchRender=="date"?"daterange":"datetimerange","range-separator":o.$t("To"),"start-placeholder":o.$t("el.datepicker.startDate"),"end-placeholder":o.$t("el.datepicker.endDate"),"value-format":g.comSearchRender=="date"?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss",teleported:!1},null,8,["modelValue","onUpdate:modelValue","default-value","type","range-separator","start-placeholder","end-placeholder","value-format"])])])]),_:2},1024)):(ot(),jt(a,{key:2,xs:24,sm:6},{default:vt(()=>[oe("div",n2t,[g.comSearchShowLabel!==!1?(ot(),Gt("div",r2t,Se(g.label),1)):Fe("",!0),g.operator=="RANGE"||g.operator=="NOT RANGE"?(ot(),Gt("div",o2t,[dt(s,{placeholder:g.operatorPlaceholder,type:"string",modelValue:ut(e).comSearch.form[g.prop+"-start"],"onUpdate:modelValue":S=>ut(e).comSearch.form[g.prop+"-start"]=S,clearable:!0},null,8,["placeholder","modelValue","onUpdate:modelValue"]),oe("div",i2t,Se(o.$t("To")),1),dt(s,{placeholder:g.operatorPlaceholder,type:"string",modelValue:ut(e).comSearch.form[g.prop+"-end"],"onUpdate:modelValue":S=>ut(e).comSearch.form[g.prop+"-end"]=S,clearable:!0},null,8,["placeholder","modelValue","onUpdate:modelValue"])])):g.operator=="NULL"||g.operator=="NOT NULL"?(ot(),Gt("div",a2t,[dt(l,{modelValue:ut(e).comSearch.form[g.prop],"onUpdate:modelValue":S=>ut(e).comSearch.form[g.prop]=S,label:g.operator,size:"large"},null,8,["modelValue","onUpdate:modelValue","label"])])):g.operator?(ot(),Gt("div",u2t,[g.render=="datetime"||g.comSearchRender=="date"?(ot(),jt(u,{key:0,class:"datetime-picker",modelValue:ut(e).comSearch.form[g.prop],"onUpdate:modelValue":S=>ut(e).comSearch.form[g.prop]=S,type:g.comSearchRender=="date"?"date":"datetime","value-format":g.comSearchRender=="date"?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss",placeholder:g.operatorPlaceholder,"default-value":ut(e).comSearch.form[g.prop+"-default"]?ut(e).comSearch.form[g.prop+"-default"]:new Date,teleported:!1},null,8,["modelValue","onUpdate:modelValue","type","value-format","placeholder","default-value"])):(g.render=="tag"||g.render=="tags"||g.comSearchRender=="select")&&g.replaceValue?(ot(),jt(f,{key:1,class:"w100",placeholder:g.operatorPlaceholder,modelValue:ut(e).comSearch.form[g.prop],"onUpdate:modelValue":S=>ut(e).comSearch.form[g.prop]=S,clearable:!0},{default:vt(()=>[(ot(!0),Gt(Yn,null,vi(g.replaceValue,(S,D)=>(ot(),jt(c,{key:g.prop+D,label:S,value:D},null,8,["label","value"]))),128))]),_:2},1032,["placeholder","modelValue","onUpdate:modelValue"])):g.comSearchRender=="remoteSelect"?(ot(),jt(B2t,{key:2,type:"remoteSelect",modelValue:ut(e).comSearch.form[g.prop],"onUpdate:modelValue":S=>ut(e).comSearch.form[g.prop]=S,attr:g.remote,placeholder:g.operatorPlaceholder},null,8,["modelValue","onUpdate:modelValue","attr","placeholder"])):g.render=="switch"?(ot(),jt(f,{key:3,placeholder:g.operatorPlaceholder,modelValue:ut(e).comSearch.form[g.prop],"onUpdate:modelValue":S=>ut(e).comSearch.form[g.prop]=S,clearable:!0,class:"w100"},{default:vt(()=>[ut(T3)(g.replaceValue)?(ot(),Gt(Yn,{key:1},[dt(c,{label:o.$t("utils.open"),value:"1"},null,8,["label"]),dt(c,{label:o.$t("utils.close"),value:"0"},null,8,["label"])],64)):(ot(!0),Gt(Yn,{key:0},vi(g.replaceValue,(S,D)=>(ot(),jt(c,{key:g.prop+D,label:S,value:D},null,8,["label","value"]))),128))]),_:2},1032,["placeholder","modelValue","onUpdate:modelValue"])):(ot(),jt(s,{key:4,placeholder:g.operatorPlaceholder,type:"string",modelValue:ut(e).comSearch.form[g.prop],"onUpdate:modelValue":S=>ut(e).comSearch.form[g.prop]=S,clearable:!0},null,8,["placeholder","modelValue","onUpdate:modelValue"]))])):Fe("",!0)])]),_:2},1024))],64)):Fe("",!0)],64)}),128)),dt(a,{xs:24,sm:6},{default:vt(()=>[oe("div",s2t,[lr((ot(),jt(p,{onClick:n,type:"primary"},{default:vt(()=>[Vu(Se(o.$t("Search")),1)]),_:1})),[[v]]),dt(p,{onClick:i[0]||(i[0]=g=>r())},{default:vt(()=>[Vu(Se(o.$t("Reset")),1)]),_:1})])]),_:1})]),_:3})]),_:3},8,["model"])])}}}),c2t=xi(l2t,[["__scopeId","data-v-be471c1e"]]),f2t={class:"table-header-operate-text"},d2t={class:"table-header-operate-text"},p2t={class:"mlr-12"},h2t={class:"table-header-operate-text"},g2t={class:"table-header-operate-text"},v2t={class:"table-search"},m2t={key:1,class:"table-search-button-group"},y2t=Kr({__name:"index",props:{buttons:{default:()=>["refresh","add","edit","delete"]},quickSearchPlaceholder:{default:""}},setup(t){const{t:e}=F3(),n=UP("baTable"),r=t,o=si(()=>{let l=[];for(let c of n.table.column)c.type==="selection"||c.render==="buttons"||c.enableColumnDisplayControl===!1||l.push(c);return l}),i=si(()=>n.table.selection.length>0),a=(l,c={})=>{n.onTableHeaderAction(l,c)},u=()=>{n.onTableHeaderAction("quick-search",{keyword:n.table.filter.quickSearch})},s=(l,c)=>{n.onTableHeaderAction("change-show-column",{field:c,value:l})};return(l,c)=>{const f=Et("Icon"),p=Et("el-button"),d=Et("el-tooltip"),m=Et("el-popconfirm"),v=Et("el-input"),g=Et("el-checkbox"),y=Et("el-dropdown-item"),h=Et("el-dropdown-menu"),b=Et("el-dropdown"),E=ih("blur");return ot(),Gt(Yn,null,[dt(Y$,{name:"el-zoom-in-bottom",mode:"out-in"},{default:vt(()=>[lr(dt(c2t,null,WP({_:2},[vi(l.$slots,(w,S)=>({name:S,fn:vt(()=>[Fo(l.$slots,S,{},void 0,!0)])}))]),1536),[[K$,r.buttons.includes("comSearch")&&ut(n).table.showComSearch]])]),_:3}),oe("div",Zl(l.$attrs,{class:"table-header ba-scroll-style"}),[Fo(l.$slots,"refreshPrepend",{},void 0,!0),r.buttons.includes("refresh")?(ot(),jt(d,{key:0,content:ut(e)("Refresh"),placement:"top"},{default:vt(()=>[lr((ot(),jt(p,{onClick:c[0]||(c[0]=w=>a("refresh",{loading:!0})),color:"#40485b",class:"table-header-operate",type:"info"},{default:vt(()=>[dt(f,{name:"fa fa-refresh"})]),_:1})),[[E]])]),_:1},8,["content"])):Fe("",!0),Fo(l.$slots,"refreshAppend",{},void 0,!0),r.buttons.includes("add")&&ut(n).auth("add")?(ot(),jt(d,{key:1,content:ut(e)("Add"),placement:"top"},{default:vt(()=>[lr((ot(),jt(p,{onClick:c[1]||(c[1]=w=>a("add")),class:"table-header-operate",type:"primary"},{default:vt(()=>[dt(f,{name:"fa fa-plus"}),oe("span",f2t,Se(ut(e)("Add")),1)]),_:1})),[[E]])]),_:1},8,["content"])):Fe("",!0),r.buttons.includes("edit")&&ut(n).auth("edit")?(ot(),jt(d,{key:2,content:ut(e)("Edit selected row"),placement:"top"},{default:vt(()=>[lr((ot(),jt(p,{onClick:c[2]||(c[2]=w=>a("edit")),disabled:!i.value,class:"table-header-operate",type:"primary"},{default:vt(()=>[dt(f,{name:"fa fa-pencil"}),oe("span",d2t,Se(ut(e)("Edit")),1)]),_:1},8,["disabled"])),[[E]])]),_:1},8,["content"])):Fe("",!0),r.buttons.includes("delete")&&ut(n).auth("del")?(ot(),jt(m,{key:3,onConfirm:c[3]||(c[3]=w=>a("delete")),"confirm-button-text":ut(e)("Delete"),"cancel-button-text":ut(e)("Cancel"),confirmButtonType:"danger",title:ut(e)("Are you sure to delete the selected record?"),disabled:!i.value},{reference:vt(()=>[oe("div",p2t,[dt(d,{content:ut(e)("Delete selected row"),placement:"top"},{default:vt(()=>[lr((ot(),jt(p,{disabled:!i.value,class:"table-header-operate",type:"danger"},{default:vt(()=>[dt(f,{name:"fa fa-trash"}),oe("span",h2t,Se(ut(e)("Delete")),1)]),_:1},8,["disabled"])),[[E]])]),_:1},8,["content"])])]),_:1},8,["confirm-button-text","cancel-button-text","title","disabled"])):Fe("",!0),r.buttons.includes("unfold")?(ot(),jt(d,{key:4,content:(ut(n).table.expandAll?ut(e)("Shrink"):ut(e)("Open"))+ut(e)("All submenus"),placement:"top"},{default:vt(()=>[lr((ot(),jt(p,{onClick:c[4]||(c[4]=w=>ut(n).onTableHeaderAction("unfold",{unfold:!ut(n).table.expandAll})),class:"table-header-operate",type:ut(n).table.expandAll?"danger":"warning"},{default:vt(()=>[oe("span",g2t,Se(ut(n).table.expandAll?ut(e)("Shrink all"):ut(e)("Expand all")),1)]),_:1},8,["type"])),[[E]])]),_:1},8,["content"])):Fe("",!0),Fo(l.$slots,"default",{},void 0,!0),oe("div",v2t,[Fo(l.$slots,"quickSearchPrepend",{},void 0,!0),r.buttons.includes("quickSearch")?(ot(),jt(v,{key:0,modelValue:ut(n).table.filter.quickSearch,"onUpdate:modelValue":c[5]||(c[5]=w=>ut(n).table.filter.quickSearch=w),class:"xs-hidden quick-search",onInput:c[6]||(c[6]=w=>ut(aV)(u,500)()),placeholder:l.quickSearchPlaceholder?l.quickSearchPlaceholder:ut(e)("Search"),clearable:""},null,8,["modelValue","placeholder"])):Fe("",!0),r.buttons.includes("columnDisplay")||r.buttons.includes("comSearch")?(ot(),Gt("div",m2t,[r.buttons.includes("columnDisplay")?(ot(),jt(b,{key:0,"max-height":380,"hide-on-click":!1},{dropdown:vt(()=>[dt(h,null,{default:vt(()=>[(ot(!0),Gt(Yn,null,vi(o.value,(w,S)=>(ot(),jt(y,{key:S},{default:vt(()=>[w.prop?(ot(),jt(g,{key:0,onChange:D=>s(D,w.prop),checked:!w.show,"model-value":w.show,size:"small",label:w.label},null,8,["onChange","checked","model-value","label"])):Fe("",!0)]),_:2},1024))),128))]),_:1})]),default:vt(()=>[lr((ot(),jt(p,{class:Dl(["table-search-button-item",r.buttons.includes("comSearch")?"right-border":""]),color:"#dcdfe6",plain:""},{default:vt(()=>[dt(f,{size:"14",name:"el-icon-Grid"})]),_:1},8,["class"])),[[E]])]),_:1})):Fe("",!0),r.buttons.includes("comSearch")?(ot(),jt(d,{key:1,disabled:ut(n).table.showComSearch,content:ut(e)("Expand generic search"),placement:"top"},{default:vt(()=>[lr((ot(),jt(p,{class:"table-search-button-item",onClick:c[7]||(c[7]=w=>ut(n).table.showComSearch=!ut(n).table.showComSearch),color:"#dcdfe6",plain:""},{default:vt(()=>[dt(f,{size:"14",name:"el-icon-Search"})]),_:1})),[[E]])]),_:1},8,["disabled","content"])):Fe("",!0)])):Fe("",!0)])],16)],64)}}}),b2t=xi(y2t,[["__scopeId","data-v-a8d9bceb"]]),w2t={class:"table-header-operate-text"},E2t={key:0,class:"ml-10"},S2t={class:"selection-count"},C2t=Kr({__name:"selectFile",props:{type:{default:"file"},limit:{default:0},modelValue:{type:Boolean,default:!1},returnFullUrl:{type:Boolean,default:!1}},emits:["update:modelValue","choice"],setup(t,{emit:e}){const n=t,r=e,o=$a(),{t:i}=F3(),a=tu({ready:!1,tableSelectable:!0}),u=[{render:"tipButton",name:"choice",text:i("utils.choice"),type:"primary",icon:"fa fa-check",class:"table-row-choice",disabledTip:!1,click:p=>{o.value.getRef().clearSelection(),r("choice",n.returnFullUrl?[p.full_url]:[p.url])}}],s=new cV(new uV("/admin/routine.Attachment/"),{column:[{type:"selection",selectable:p=>{if(n.limit==0)return!0;if(s.table.selection){for(const d in s.table.selection)if(p.id==s.table.selection[d].id)return!0}return a.tableSelectable},align:"center",operator:!1},{label:i("Id"),prop:"id",align:"center",operator:"LIKE",operatorPlaceholder:i("Fuzzy query"),width:70},{label:i("utils.Breakdown"),prop:"topic",align:"center",operator:"LIKE",operatorPlaceholder:i("Fuzzy query")},{label:i("utils.preview"),prop:"suffix",align:"center",renderFormatter:pV,render:"image",operator:!1},{label:i("utils.type"),prop:"mimetype",align:"center",operator:"LIKE",showOverflowTooltip:!0,operatorPlaceholder:i("Fuzzy query")},{label:i("utils.size"),prop:"size",align:"center",formatter:(p,d,m)=>{var v=parseFloat(m),g=Math.floor(Math.log(v)/Math.log(1024));return parseInt((v/Math.pow(1024,g)).toFixed(g<2?0:2))*1+" "+["B","KB","MB","GB","TB"][g]},operator:"RANGE",sortable:"custom",operatorPlaceholder:"bytes"},{label:i("utils.Last upload time"),prop:"last_upload_time",align:"center",render:"datetime",operator:"RANGE",width:160,sortable:"custom"},{show:!1,label:i("utils.Upload (Reference) times"),prop:"quote",align:"center",width:150,operator:"RANGE",sortable:"custom"},{label:i("utils.Original name"),prop:"name",align:"center",showOverflowTooltip:!0,operator:"LIKE",operatorPlaceholder:i("Fuzzy query")},{label:i("Operate"),align:"center",width:"100",render:"buttons",buttons:u,operator:!1}],defaultOrder:{prop:"last_upload_time",order:"desc"}});X$("baTable",s);const l=()=>{var p;n.type=="image"&&(s.table.filter.search=[{field:"mimetype",val:"image",operator:"LIKE"}]),s.table.ref=o.value,s.table.filter.limit=8,(p=s.getIndex())==null||p.then(()=>{s.initSort()}),a.ready=!0},c=()=>{var p;if((p=s.table.selection)!=null&&p.length){let d=[];for(const v in s.table.selection)d.push(n.returnFullUrl?s.table.selection[v].full_url:s.table.selection[v].url);r("choice",d),o.value.getRef().clearSelection()}},f=p=>{n.limit!=0&&(p.length>n.limit&&o.value.getRef().toggleRowSelection(p[p.length-1],!1),a.tableSelectable=!(p.length>=n.limit))};return _c(()=>{s.mount()}),ks(()=>n.modelValue,p=>{p&&!a.ready&&Xl(()=>{l()})}),(p,d)=>{const m=Et("Icon"),v=Et("el-button"),g=Et("el-tooltip"),y=Et("el-dialog"),h=ih("blur");return ot(),Gt("div",null,[dt(y,{onClose:d[0]||(d[0]=b=>r("update:modelValue",!1)),width:"60%","model-value":p.modelValue,class:"ba-upload-select-dialog",title:ut(i)("utils.Select File"),"append-to-body":!0,"destroy-on-close":!0,top:"4vh"},{default:vt(()=>[dt(b2t,{buttons:["refresh","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":ut(i)("Quick search placeholder",{fields:ut(i)("utils.Original name")})},{default:vt(()=>[dt(g,{content:ut(i)("utils.choice"),placement:"top"},{default:vt(()=>[lr((ot(),jt(v,{onClick:c,disabled:!(ut(s).table.selection.length>0),class:"table-header-operate",type:"primary"},{default:vt(()=>[dt(m,{name:"fa fa-check"}),oe("span",w2t,Se(ut(i)("utils.choice")),1)]),_:1},8,["disabled"])),[[h]])]),_:1},8,["content"]),p.limit!==0?(ot(),Gt("div",E2t,[Vu(Se(ut(i)("utils.You can also select"))+" ",1),oe("span",S2t,Se(p.limit-ut(s).table.selection.length),1),Vu(" "+Se(ut(i)("utils.items")),1)])):Fe("",!0)]),_:1},8,["quick-search-placeholder"]),dt(fV,{ref_key:"tableRef",ref:o,onSelectionChange:f},null,512)]),_:1},8,["model-value","title"])])}}}),D2t={class:"w100"},x2t={class:"ba-upload-preview-scroll ba-scroll-style"},A2t=["src"],O2t=Kr({__name:"baUpload",props:{type:{default:"image"},data:{default:()=>({})},modelValue:{default:()=>[]},returnFullUrl:{type:Boolean,default:!1},hideSelectFile:{type:Boolean,default:!1},attr:{default:()=>({})},forceLocal:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=Z$(),a=$a(),u=tu({key:Fd(),defaultReturnType:"string",preview:{show:!1,url:""},fileList:[],attr:{},uploading:0,selectFile:{show:!1,type:"file",returnFullUrl:r.returnFullUrl},events:[]}),s=(w,S)=>{const D=q4(S,"uid",w.uid);if(!D||(w=S[D],!w||!w.raw)||typeof u.events.beforeUpload=="function"&&u.events.beforeUpload(w)===!1)return;let x=new FormData;x.append("file",w.raw),x=y(x),u.uploading++,G4(x,{uuid:Fd()},r.forceLocal,{onUploadProgress:k=>{const N=k;k.total&&k.total>0&&(N.percent=k.loaded/k.total*100,w.status="uploading",w.percentage=Math.round(N.percent),typeof u.events.onProgress=="function"&&u.events.onProgress(N,w,S))}}).then(k=>{k.code==1?(w.serverUrl=k.data.file.url,w.status="success",o("update:modelValue",g()),typeof u.events.onSuccess=="function"&&u.events.onSuccess(k,w,S)):(w.status="fail",S.splice(D,1),typeof u.events.onError=="function"&&u.events.onError(k,w,S))}).catch(k=>{w.status="fail",S.splice(D,1),typeof u.events.onError=="function"&&u.events.onError(k,w,S)}).finally(()=>{u.uploading--,h(w,S)})},l=(w,S)=>{typeof u.events.onRemove=="function"&&u.events.onRemove(w,S),h(w,S),o("update:modelValue",g())},c=w=>{if(typeof u.events.onPreview=="function"&&u.events.onPreview(w),!(!w||!w.url)){if(r.type=="file"||r.type=="files"){window.open(Y8(w.url));return}u.preview.show=!0,u.preview.url=w.url}},f=w=>{const S=w[0];S.uid=Q$(),a.value.handleStart(S),typeof u.events.onExceed=="function"&&u.events.onExceed(S,w)},p=w=>{w=g("array").concat(w),v(w),o("update:modelValue",g()),h(w,u.fileList),u.selectFile.show=!1},d=()=>{Xl(()=>{var D;let w=(D=a.value)==null?void 0:D.$el.querySelector(".el-upload-list");w.getElementsByClassName("el-upload-list__item").length>=2&&dV.create(w,{animation:200,draggable:".el-upload-list__item",onEnd:x=>{x.oldIndex!=x.newIndex&&(u.fileList[x.newIndex]=[u.fileList[x.oldIndex],u.fileList[x.oldIndex]=u.fileList[x.newIndex]][0],o("update:modelValue",g()))}})})};_c(()=>{r.type=="image"||r.type=="file"?u.attr={...u.attr,limit:1}:u.attr={...u.attr,multiple:!0},(r.type=="image"||r.type=="images")&&(u.selectFile.type="image",u.attr={...u.attr,accept:"image/*",listType:"picture-card"});const w={},S=["onPreview","onRemove","onSuccess","onError","onChange","onExceed","beforeUpload","onProgress"];for(const D in r.attr)S.includes(D)?u.events[D]=r.attr[D]:w[D]=r.attr[D];u.attr={...u.attr,...w},u.attr.limit&&(u.selectFile.limit=u.attr.limit),v(r.modelValue),d()}),ks(()=>r.modelValue,w=>{if(u.uploading>0)return;if(w==null)return v("");let S=my(zP(J$(w))),D=my(g("array"));S.sort().toString()!=D.sort().toString()&&v(w)});const m=()=>u.attr.limit&&u.fileList.length>u.attr.limit?(u.fileList=u.fileList.slice(u.fileList.length-u.attr.limit),!0):!1,v=w=>{let S=zP(w);u.fileList=[],u.defaultReturnType=typeof w=="string"||r.type=="file"||r.type=="image"?"string":"array";for(const D in S)u.fileList.push({name:sV(S[D]),url:Y8(S[D]),serverUrl:S[D]});(m()||r.returnFullUrl)&&o("update:modelValue",g()),u.key=Fd()},g=(w=u.defaultReturnType)=>{m();let S=[];for(const D in u.fileList)u.fileList[D].serverUrl&&S.push(u.fileList[D].serverUrl);return r.returnFullUrl&&(S=my(S)),w==="string"?S.join(","):S},y=w=>{if(r.data&&!T3(r.data))for(const S in r.data)w.append(S,r.data[S]);return w},h=(w,S)=>{d(),typeof u.events.onChange=="function"&&u.events.onChange(w,S)};return e({getUploadRef:()=>a.value,showSelectFile:()=>{u.selectFile.show=!0}}),(w,S)=>{const D=Et("Icon"),x=Et("el-button"),k=Et("el-upload"),N=Et("el-dialog"),$=ih("blur");return ot(),Gt("div",D2t,[(ot(),jt(k,Zl({ref_key:"upload",ref:a,class:["ba-upload",w.type],"file-list":u.fileList,"onUpdate:fileList":S[2]||(S[2]=R=>u.fileList=R),"auto-upload":!1,onChange:s,onRemove:l,onPreview:c,onExceed:f},u.attr,{key:u.key}),WP({_:2},[ut(i).default?{name:"default",fn:vt(()=>[Fo(w.$slots,"default",{},void 0,!0)]),key:"0"}:{name:"default",fn:vt(()=>[w.type=="image"||w.type=="images"?(ot(),Gt(Yn,{key:0},[w.hideSelectFile?Fe("",!0):(ot(),Gt("div",{key:0,onClick:S[0]||(S[0]=ip(R=>u.selectFile.show=!0,["stop"])),class:"ba-upload-select-image"},Se(w.$t("utils.choice")),1)),dt(D,{class:"ba-upload-icon",name:"el-icon-Plus",size:"30",color:"#c0c4cc"})],64)):(ot(),Gt(Yn,{key:1},[lr((ot(),jt(x,{type:"primary"},{default:vt(()=>[dt(D,{name:"el-icon-Plus",color:"#ffffff"}),oe("span",null,Se(w.$t("Upload")),1)]),_:1})),[[$]]),w.hideSelectFile?Fe("",!0):lr((ot(),jt(x,{key:0,onClick:S[1]||(S[1]=ip(R=>u.selectFile.show=!0,["stop"])),type:"success"},{default:vt(()=>[dt(D,{name:"fa fa-th-list",size:"14px",color:"#ffffff"}),oe("span",{class:"ml-6"},Se(w.$t("utils.choice")),1)]),_:1})),[[$]])],64))]),key:"1"},ut(i).trigger?{name:"trigger",fn:vt(()=>[Fo(w.$slots,"trigger",{},void 0,!0)]),key:"2"}:void 0,ut(i).tip?{name:"tip",fn:vt(()=>[Fo(w.$slots,"tip",{},void 0,!0)]),key:"3"}:void 0,ut(i).file?{name:"file",fn:vt(()=>[Fo(w.$slots,"file",{},void 0,!0)]),key:"4"}:void 0]),1040,["class","file-list"])),dt(N,{modelValue:u.preview.show,"onUpdate:modelValue":S[3]||(S[3]=R=>u.preview.show=R),class:"ba-upload-preview"},{default:vt(()=>[oe("div",x2t,[oe("img",{src:u.preview.url,class:"ba-upload-preview-img",alt:""},null,8,A2t)])]),_:1},8,["modelValue"]),dt(C2t,Zl({modelValue:u.selectFile.show,"onUpdate:modelValue":S[4]||(S[4]=R=>u.selectFile.show=R)},u.selectFile,{onChoice:p}),null,16,["modelValue"])])}}}),k2t=xi(O2t,[["__scopeId","data-v-ceedabd6"]]),_2t=Kr({name:"baInput",props:{type:{type:String,required:!0,validator:t=>_V.includes(t)},modelValue:{type:null,required:!0},attr:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}}},emits:["update:modelValue"],setup(t,{emit:e}){const n=p=>{e("update:modelValue",p)};let r=t.data&&t.data.childrenAttr?t.data.childrenAttr:{};const o=()=>()=>dt(Et("el-input"),{type:t.type=="string"?"text":t.type,...t.attr,modelValue:t.modelValue,"onUpdate:modelValue":n}),i=()=>{(!t.data||!t.data.content)&&console.warn("请传递 "+t.type+"的 content");let p=[];for(const d in t.data.content)p.push(dt(Et("el-"+t.type),{label:d,...r},()=>t.data.content[d]));return()=>{const d=si(()=>{if(t.type=="radio")return t.modelValue==null?"":""+t.modelValue;{let m=[];for(const v in t.modelValue)m[v]=""+t.modelValue[v];return m}});return dt(Et("el-"+t.type+"-group"),{...t.attr,modelValue:d.value,"onUpdate:modelValue":n},()=>p)}},a=()=>{let p=[];(!t.data||!t.data.content)&&console.warn("请传递 "+t.type+"的 content");for(const d in t.data.content)p.push(dt(Et("el-option"),{key:d,label:t.data.content[d],value:d,...r}));return()=>{const d=si(()=>{if(t.type=="select")return t.modelValue==null?"":""+t.modelValue;{let m=[];for(const v in t.modelValue)m[v]=""+t.modelValue[v];return m}});return dt(Et("el-select"),{class:"w100",multiple:t.type!="select",clearable:!0,...t.attr,modelValue:d.value,"onUpdate:modelValue":n},()=>p)}},u=()=>{let p="YYYY-MM-DD HH:mm:ss";switch(t.type){case"date":p="YYYY-MM-DD";break;case"year":p="YYYY";break}return()=>dt(Et("el-date-picker"),{class:"w100",type:t.type,"value-format":p,...t.attr,modelValue:t.modelValue,"onUpdate:modelValue":n})},s=()=>()=>dt(k2t,{type:t.type,data:t.attr?t.attr.data:{},modelValue:t.modelValue,"onUpdate:modelValue":n,returnFullUrl:t.attr?t.attr.returnFullUrl||t.attr["return-full-url"]:!1,hideSelectFile:t.attr?t.attr.hideSelectFile||t.attr["hide-select-file"]:!1,attr:t.attr,forceLocal:t.attr?t.attr.forceLocal||t.attr["force-local"]:!1}),l=()=>()=>dt(jV,{modelValue:t.modelValue,"onUpdate:modelValue":n,multiple:t.type!="remoteSelect",...t.attr}),c=new Map([["string",o],["number",o],["textarea",o],["password",o],["radio",i],["checkbox",i],["switch",()=>{const p=si(()=>typeof t.modelValue),d=si(()=>{if(p.value==="boolean")return t.modelValue;{let m=parseInt(t.modelValue);return!(isNaN(m)||m<=0)}});return()=>dt(Et("el-switch"),{...t.attr,modelValue:d.value,"onUpdate:modelValue":m=>{let v=m;switch(p.value){case"string":v=m?"1":"0";break;case"number":v=m?1:0}e("update:modelValue",v)}})}],["datetime",u],["year",()=>()=>{const p=si(()=>t.modelValue?""+t.modelValue:null);return dt(Et("el-date-picker"),{class:"w100",type:t.type,"value-format":"YYYY",...t.attr,modelValue:p.value,"onUpdate:modelValue":n})}],["date",u],["time",()=>{const p=si(()=>{if(t.modelValue instanceof Date)return t.modelValue;if(t.modelValue){let d=new Date;return new Date(d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate()+" "+t.modelValue)}else return""});return()=>dt(Et("el-time-picker"),{class:"w100",clearable:!0,format:"HH:mm:ss",...t.attr,modelValue:p.value,"onUpdate:modelValue":n})}],["select",a],["selects",a],["array",()=>()=>dt(FV,{modelValue:t.modelValue,"onUpdate:modelValue":n,...t.attr})],["remoteSelect",l],["remoteSelects",l],["city",()=>{let p=t.data&&t.data.level?t.data.level-1:2;const d=tu({value:"ready",nodes:[],key:"",currentRequest:null});let m={};const v=(y,h)=>m[y]&&m[y][h]?m[y][h]:!1,g=(y,h,b=[])=>{m[y]||(m[y]={}),m[y][h]=b};return()=>dt(Et("el-cascader"),{modelValue:t.modelValue,"onUpdate:modelValue":n,class:"w100",clearable:!0,props:{lazy:!0,lazyLoad(y,h){const{level:b,pathValues:E}=y;let w=E.join(",");w=w||"init";let S=v(b,w);if(S)return h(S);if(d.key==w&&d.value==t.modelValue)return d.currentRequest?d.currentRequest:h(d.nodes);let D=[];d.key=w,d.value=t.modelValue,d.currentRequest=lV(E).then(x=>{let k=!1;t.modelValue&&typeof t.modelValue[0]=="string"&&(k=!0);for(const N in x.data)k&&(x.data[N].value=x.data[N].value.toString()),x.data[N].leaf=b>=p,D.push(x.data[N]);d.nodes=D,d.currentRequest=null,g(b,w,D),h(D)})}},...t.attr})}],["image",s],["images",s],["file",s],["files",s],["icon",()=>()=>dt(kV,{modelValue:t.modelValue,"onUpdate:modelValue":n,...t.attr})],["color",()=>()=>dt(Et("el-color-picker"),{modelValue:t.modelValue,"onUpdate:modelValue":n,...t.attr})],["editor",()=>()=>dt(Kbt,{modelValue:t.modelValue,"onUpdate:modelValue":n,...t.attr})],["default",()=>{console.warn("暂不支持"+t.type+"的输入框类型,你可以自行在 BaInput 组件内添加逻辑")}]]);return(c.get(t.type)||c.get("default")).call(this)}}),B2t=xi(_2t,[["__scopeId","data-v-22a68b17"]]);export{B2t as B,kV as I,b2t as T,I2t as f,_V as i,Be as n};