123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- var P$=Object.defineProperty,j$=Object.defineProperties;var N$=Object.getOwnPropertyDescriptors;var Gh=Object.getOwnPropertySymbols;var RS=Object.prototype.hasOwnProperty,MS=Object.prototype.propertyIsEnumerable;var LS=(t,e,n)=>e in t?P$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Z=(t,e)=>{for(var n in e||(e={}))RS.call(e,n)&&LS(t,n,e[n]);if(Gh)for(var n of Gh(e))MS.call(e,n)&&LS(t,n,e[n]);return t},Vt=(t,e)=>j$(t,N$(e));var zS=(t,e)=>{var n={};for(var r in t)RS.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Gh)for(var r of Gh(t))e.indexOf(r)<0&&MS.call(t,r)&&(n[r]=t[r]);return n};var bn=(t,e,n)=>new Promise((r,o)=>{var i=s=>{try{u(n.next(s))}catch(l){o(l)}},a=s=>{try{u(n.throw(s))}catch(l){o(l)}},u=s=>s.done?r(s.value):Promise.resolve(s.value).then(i,a);u((n=n.apply(t,e)).next())});import{S as _P}from"./index.1ac4415f.js";import{m as I$,a as L$,b as R$,c as M$,f as z$,u as $$,d as H$,e as U$,g as V$,h as W$}from"./api.c2ba730b.js";import{f as G$,S as q$}from"./index.de322ef7.js";import{d as mc,u as J1,r as jo,a as eo,i as $,dk as w5,q as PP,l as ze,_ as ua,a9 as Wn,p as rn,k as je,ai as jP,B as qd,H as ci,cg as NP,aa as IP,aj as Mg,bC as fi,aN as $S,M as K$,ce as og,dl as Y$,a8 as X$,a7 as sy,ag as Z$,at as J$,dm as Q$,e as LP,O as tH,cf as eH,ch as nH,d9 as wo,da as Hc,d7 as rH,d8 as HS}from"./index.1121c4e8.js";import{N as E5}from"./Cascader.af630f76.js";import{P as oH}from"./index.aea83c68.js";import{U as iH}from"./index.f2e2aeec.js";import{l as RP}from"./knowledgeTypeData.3b15dd0b.js";import{d as aH}from"./dayjs.min.cd8da7a1.js";import{g as uH,a as sH}from"./oss-file-upload.d2b5f9e0.js";import{f as lH}from"./dateUtil.0b94c0b3.js";import{d as cH}from"./api.dbd2a264.js";import{T as US}from"./index.ac33b3ef.js";import{g as fH,s as dH}from"./use-async.d0b957f3.js";import"./searchs.b637f0d6.js";import"./api.91c48519.js";import"./vuedraggable.umd.bb40cde2.js";import"./DeleteFilled.a5b1e2e7.js";import"./api.177879f6.js";import"./api.363dbcd0.js";import"./api.10d2371e.js";import"./constant.b4bfe346.js";const pH=mc({name:"addCategory",emits:["handleSuccess","close"],props:["item","list","isAdd"],setup(t,{emit:e}){var l,c,f,p,d;const n=J1(),r=jo(!1),o=jo(null),i=jo([{name:"\u9876\u7EA7\u5206\u7C7B",id:"0"},...G$(t.list,"subMaterialCategoryList")]),a=eo({id:(l=t==null?void 0:t.item)!=null&&l.id?(c=t==null?void 0:t.item)==null?void 0:c.id:null,name:((f=t==null?void 0:t.item)==null?void 0:f.name)||"",desc:((p=t==null?void 0:t.item)==null?void 0:p.desc)||"",parentId:((d=t==null?void 0:t.item)==null?void 0:d.parentId)||"0"}),u={name:[{required:!0,message:"\u8BF7\u586B\u5199\u7D20\u6750\u540D\u79F0",trigger:["blur","change"]}],desc:[{required:!0,message:"\u8BF7\u586B\u5199\u7D20\u6750\u63CF\u8FF0",trigger:["blur","change"]}]},s=()=>{var y;(y=o.value)==null||y.validate(g=>bn(this,null,function*(){if(!g){const m=Z({},a);let v=null;console.log(m),a.id?v=yield I$(m):v=yield L$(m),(v==null?void 0:v.code)==200?(n.success("\u4FDD\u5B58\u6210\u529F"),e("handleSuccess")):n.warning("\u4FDD\u5B58\u5931\u8D25")}}))};return()=>$("div",null,[$(w5,{show:r.value},{default:()=>[$(PP,{ref:o,onSubmit:s,labelPlacement:"top",model:a,rules:u,"require-mark-placement":"left"},{default:()=>[t.isAdd&&$(ze,{label:"\u7236\u7EA7\u5206\u7C7B",path:"parentId"},{default:()=>[$(E5,{placeholder:"\u8BF7\u9009\u62E9\u7236\u7EA7\u5206\u7C7B",value:a.parentId,"onUpdate:value":y=>a.parentId=y,options:i.value,checkStrategy:"all",expandTrigger:"hover",childrenField:"subMaterialCategoryList",valueField:"id",labelField:"name",clearable:!0,filterable:!0},null)]}),$(ze,{label:"\u7D20\u6750\u540D\u79F0",path:"name"},{default:()=>[$(ua,{value:a.name,"onUpdate:value":y=>a.name=y},null)]}),$(ze,{label:"\u5206\u7C7B\u63CF\u8FF0",path:"desc"},{default:()=>[$(ua,{value:a.desc,"onUpdate:value":y=>a.desc=y},null)]})]}),$(Wn,{justify:"end"},{default:()=>[$(rn,{onClick:()=>e("close")},{default:()=>[je("\u53D6\u6D88")]}),$(rn,{type:"primary",onClick:s},{default:()=>[je("\u4FDD\u5B58")]})]})]})])}}),hH=mc({name:"category-list",setup(t){const e=jP(),n=J1(),r=eo({loading:!1,pagination:{page:1,rows:1e4},visiableCity:!1,dataList:[],cityType:"add",materail:null}),o=eo({keyword:"",operatorId:""}),i=()=>[{title:"\u5206\u7C7B\u540D\u79F0",key:"name",fixed:"left"},{title:"\u5206\u7C7B\u63CF\u8FF0",key:"desc"},{title:"\u4E0A\u4F20\u65F6\u95F4",key:"updateTime",render(p){return p.updateTime||p.createTime}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",width:180,render(p){return $(Wn,null,{default:()=>[ci($(rn,{type:"primary",text:!0,onClick:()=>{r.materail={parentId:p.id},r.visiableCity=!0}},{default:()=>[je("\u6DFB\u52A0\u5B50\u5206\u7C7B")]}),[[fi("auth"),"materialCategory/save1599962104022290433"]]),ci($(rn,{type:"primary",text:!0,onClick:()=>{r.cityType="update",r.materail=p,r.visiableCity=!0}},{default:()=>[je("\u4FEE\u6539")]}),[[fi("auth"),"materialCategory/update1599962354053140482"]]),ci($(rn,{type:"primary",text:!0,onClick:()=>f(p)},{default:()=>[je("\u5220\u9664")]}),[[fi("auth"),"materialCategory/remove1599962245085122562"]])]})}}],a=jo(),u=()=>{r.pagination.page=1,c()},s=()=>{var p;(p=a.value)==null||p.submit()},l=()=>{var p;(p=a.value)==null||p.reset()},c=()=>bn(this,null,function*(){try{r.loading=!0;const p=Vt(Z({},o),{page:r.pagination.page,rows:r.pagination.rows}),{data:d}=yield R$(p);r.loading=!1,r.dataList=d.rows||[]}catch(p){r.loading=!1}}),f=p=>bn(this,null,function*(){e.warning({title:"\u8B66\u544A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u6B64\u5206\u7C7B?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>bn(this,null,function*(){(yield M$(p.id)).data&&(u(),n.success("\u5220\u9664\u6210\u529F"))})})});return qd(()=>{c()}),()=>$(Mg,null,[$(_P,{ref:a,model:o,onSubmit:u,onSetModel:p=>Object.assign(o,p),saveKey:"category-key"},{default:()=>[$(ze,{path:"keyword",label:"\u5206\u7C7B\u540D\u79F0"},{default:()=>[$(ua,{placeholder:"\u5206\u7C7B\u540D\u79F0",value:o.keyword,"onUpdate:value":p=>o.keyword=p,onKeydown:p=>{p.code==="Enter"&&u()},clearable:!0},null)]}),$(ze,null,{default:()=>[$(Wn,null,{default:()=>[$(rn,{type:"primary",onClick:s},{default:()=>[je("\u641C\u7D22")]}),$(rn,{type:"default",onClick:l},{default:()=>[je("\u91CD\u7F6E")]})]})]})]}),$(Wn,{style:{paddingBottom:"12px"}},{default:()=>[ci($(rn,{type:"primary",onClick:()=>{r.materail=null,r.cityType="add",r.visiableCity=!0},disabled:r.loading},{default:()=>[je("\u65B0\u589E\u5206\u7C7B")]}),[[fi("auth"),"materialCategory/save1599962104022290433"]])]}),$(NP,{"scroll-x":"1300",loading:r.loading,columns:i(),data:r.dataList,"children-key":"subMaterialCategoryList","default-expand-all":!1,"row-key":p=>p.id},null),$(IP,{show:r.visiableCity,"onUpdate:show":p=>r.visiableCity=p,preset:"dialog",showIcon:!1,title:r.cityType==="add"?"\u65B0\u589E\u5206\u7C7B":"\u4FEE\u6539\u5206\u7C7B",style:{width:"400px"},onClose:()=>{r.materail=null}},{default:()=>[$(pH,{item:r.materail,list:r.dataList,isAdd:r.cityType==="add",onClose:()=>{r.visiableCity=!1},onHandleSuccess:()=>{r.visiableCity=!1,r.materail||(r.pagination.page=1),c()}},null)]})])}}),gH="_datepicker_od4yz_1",vH={datepicker:gH};var Yr=(t=>(t.\u89C6\u9891="VIDEO",t.\u56FE\u7247="IMG",t.\u66F2\u76EE="SONG",t))(Yr||{});var fe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function mH(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ws(t){var e={exports:{}};return t(e,e.exports),e.exports}var Fi,ig,qh=function(t){return t&&t.Math==Math&&t},Tt=qh(typeof globalThis=="object"&&globalThis)||qh(typeof window=="object"&&window)||qh(typeof self=="object"&&self)||qh(typeof fe=="object"&&fe)||function(){return this}()||Function("return this")(),C5=Function.prototype,VS=C5.apply,yH=C5.bind,WS=C5.call,MP=typeof Reflect=="object"&&Reflect.apply||(yH?WS.bind(VS):function(){return WS.apply(VS,arguments)}),zP=Function.prototype,I4=zP.bind,L4=zP.call,bH=I4&&I4.bind(L4),ye=I4?function(t){return t&&bH(L4,t)}:function(t){return t&&function(){return L4.apply(t,arguments)}},hn=function(t){return typeof t=="function"},tr=function(t){try{return!!t()}catch(e){return!0}},Xn=!tr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Uc=Function.prototype.call,Kn=Uc.bind?Uc.bind(Uc):function(){return Uc.apply(Uc,arguments)},GS={}.propertyIsEnumerable,qS=Object.getOwnPropertyDescriptor,wH=qS&&!GS.call({1:2},1)?function(t){var e=qS(this,t);return!!e&&e.enumerable}:GS,x5={f:wH},io=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},EH=ye({}.toString),CH=ye("".slice),Nu=function(t){return CH(EH(t),8,-1)},ly=Tt.Object,xH=ye("".split),$P=tr(function(){return!ly("z").propertyIsEnumerable(0)})?function(t){return Nu(t)=="String"?xH(t,""):ly(t)}:ly,DH=Tt.TypeError,D5=function(t){if(t==null)throw DH("Can't call method on "+t);return t},Wo=function(t){return $P(D5(t))},sr=function(t){return typeof t=="object"?t!==null:hn(t)},ur={},KS=function(t){return hn(t)?t:void 0},yc=function(t,e){return arguments.length<2?KS(ur[t])||KS(Tt[t]):ur[t]&&ur[t][e]||Tt[t]&&Tt[t][e]},Kd=ye({}.isPrototypeOf),cy=yc("navigator","userAgent")||"",YS=Tt.process,XS=Tt.Deno,ZS=YS&&YS.versions||XS&&XS.version,JS=ZS&&ZS.v8;JS&&(ig=(Fi=JS.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!ig&&cy&&(!(Fi=cy.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=cy.match(/Chrome\/(\d+)/))&&(ig=+Fi[1]);var Kh,zg=ig,Do=!!Object.getOwnPropertySymbols&&!tr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&zg&&zg<41}),S5=Do&&!Symbol.sham&&typeof Symbol.iterator=="symbol",SH=Tt.Object,Ol=S5?function(t){return typeof t=="symbol"}:function(t){var e=yc("Symbol");return hn(e)&&Kd(e.prototype,SH(t))},AH=Tt.String,R4=function(t){try{return AH(t)}catch(e){return"Object"}},OH=Tt.TypeError,A5=function(t){if(hn(t))return t;throw OH(R4(t)+" is not a function")},$g=function(t,e){var n=t[e];return n==null?void 0:A5(n)},kH=Tt.TypeError,BH=Object.defineProperty,ha=Tt["__core-js_shared__"]||function(t,e){try{BH(Tt,t,{value:e,configurable:!0,writable:!0})}catch(n){Tt[t]=e}return e}("__core-js_shared__",{}),Es=ws(function(t){(t.exports=function(e,n){return ha[e]||(ha[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),TH=Tt.Object,Gp=function(t){return TH(D5(t))},FH=ye({}.hasOwnProperty),Gt=Object.hasOwn||function(t,e){return FH(Gp(t),e)},_H=0,PH=Math.random(),jH=ye(1 .toString),Hg=function(t){return"Symbol("+(t===void 0?"":t)+")_"+jH(++_H+PH,36)},Vc=Es("wks"),Iu=Tt.Symbol,QS=Iu&&Iu.for,NH=S5?Iu:Iu&&Iu.withoutSetter||Hg,In=function(t){if(!Gt(Vc,t)||!Do&&typeof Vc[t]!="string"){var e="Symbol."+t;Do&&Gt(Iu,t)?Vc[t]=Iu[t]:Vc[t]=S5&&QS?QS(e):NH(e)}return Vc[t]},IH=Tt.TypeError,LH=In("toPrimitive"),RH=function(t,e){if(!sr(t)||Ol(t))return t;var n,r=$g(t,LH);if(r){if(e===void 0&&(e="default"),n=Kn(r,t,e),!sr(n)||Ol(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"&&hn(a=o.toString)&&!sr(u=Kn(a,o))||hn(a=o.valueOf)&&!sr(u=Kn(a,o))||i!=="string"&&hn(a=o.toString)&&!sr(u=Kn(a,o)))return u;throw kH("Can't convert object to primitive value")}(t,e)},bc=function(t){var e=RH(t,"string");return Ol(e)?e:e+""},M4=Tt.document,MH=sr(M4)&&sr(M4.createElement),HP=function(t){return MH?M4.createElement(t):{}},UP=!Xn&&!tr(function(){return Object.defineProperty(HP("div"),"a",{get:function(){return 7}}).a!=7}),t8=Object.getOwnPropertyDescriptor,zH=Xn?t8:function(t,e){if(t=Wo(t),e=bc(e),UP)try{return t8(t,e)}catch(n){}if(Gt(t,e))return io(!Kn(x5.f,t,e),t[e])},Q1={f:zH},$H=/#|\.prototype\./,qp=function(t,e){var n=UH[HH(t)];return n==WH||n!=VH&&(hn(e)?tr(e):!!e)},HH=qp.normalize=function(t){return String(t).replace($H,".").toLowerCase()},UH=qp.data={},VH=qp.NATIVE="N",WH=qp.POLYFILL="P",GH=qp,e8=ye(ye.bind),O5=function(t,e){return A5(t),e===void 0?t:e8?e8(t,e):function(){return t.apply(e,arguments)}},qH=Tt.String,KH=Tt.TypeError,hr=function(t){if(sr(t))return t;throw KH(qH(t)+" is not an object")},YH=Tt.TypeError,n8=Object.defineProperty,XH=Xn?n8:function(t,e,n){if(hr(t),e=bc(e),hr(n),UP)try{return n8(t,e,n)}catch(r){}if("get"in n||"set"in n)throw YH("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Ka={f:XH},Mn=Xn?function(t,e,n){return Ka.f(t,e,io(1,n))}:function(t,e,n){return t[e]=n,t},ZH=Q1.f,JH=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 MP(t,this,arguments)};return e.prototype=t.prototype,e},ii=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?Tt:p?Tt[c]:(Tt[c]||{}).prototype,g=f?ur:ur[c]||Mn(ur,c,{})[c],m=g.prototype;for(o in e)n=!GH(f?o:c+(p?".":"#")+o,t.forced)&&y&&Gt(y,o),a=g[o],n&&(u=t.noTargetGet?(l=ZH(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?O5(i,Tt):t.wrap&&n?JH(i):d&&hn(i)?ye(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Mn(s,"sham",!0),Mn(g,o,s),d&&(Gt(ur,r=c+"Prototype")||Mn(ur,r,{}),Mn(ur[r],o,i),t.real&&m&&!m[o]&&Mn(m,o,i)))},r8=Es("keys"),tm=function(t){return r8[t]||(r8[t]=Hg(t))},QH=!tr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),o8=tm("IE_PROTO"),z4=Tt.Object,tU=z4.prototype,Ug=QH?z4.getPrototypeOf:function(t){var e=Gp(t);if(Gt(e,o8))return e[o8];var n=e.constructor;return hn(n)&&e instanceof n?n.prototype:e instanceof z4?tU:null},eU=Tt.String,nU=Tt.TypeError,Vg=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ye(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return hr(r),function(i){if(typeof i=="object"||hn(i))return i;throw nU("Can't set "+eU(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),rU=Math.ceil,oU=Math.floor,k5=function(t){var e=+t;return e!=e||e===0?0:(e>0?oU:rU)(e)},iU=Math.max,aU=Math.min,$4=function(t,e){var n=k5(t);return n<0?iU(n+e,0):aU(n,e)},uU=Math.min,Kp=function(t){return(e=t.length)>0?uU(k5(e),9007199254740991):0;var e},i8=function(t){return function(e,n,r){var o,i=Wo(e),a=Kp(i),u=$4(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}},sU={includes:i8(!0),indexOf:i8(!1)},Yp={},lU=sU.indexOf,a8=ye([].push),VP=function(t,e){var n,r=Wo(t),o=0,i=[];for(n in r)!Gt(Yp,n)&&Gt(r,n)&&a8(i,n);for(;e.length>o;)Gt(r,n=e[o++])&&(~lU(i,n)||a8(i,n));return i},Wg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cU=Wg.concat("length","prototype"),fU=Object.getOwnPropertyNames||function(t){return VP(t,cU)},B5={f:fU},ag={f:Object.getOwnPropertySymbols},dU=ye([].concat),pU=yc("Reflect","ownKeys")||function(t){var e=B5.f(hr(t)),n=ag.f;return n?dU(e,n(t)):e},T5=Object.keys||function(t){return VP(t,Wg)},hU=Xn?Object.defineProperties:function(t,e){hr(t);for(var n,r=Wo(e),o=T5(e),i=o.length,a=0;i>a;)Ka.f(t,n=o[a++],r[n]);return t},gU=yc("document","documentElement"),WP=tm("IE_PROTO"),fy=function(){},GP=function(t){return"<script>"+t+"<\/script>"},u8=function(t){t.write(GP("")),t.close();var e=t.parentWindow.Object;return t=null,e},ug=function(){try{Kh=new ActiveXObject("htmlfile")}catch(r){}var t,e;ug=typeof document!="undefined"?document.domain&&Kh?u8(Kh):((e=HP("iframe")).style.display="none",gU.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(GP("document.F=Object")),t.close(),t.F):u8(Kh);for(var n=Wg.length;n--;)delete ug.prototype[Wg[n]];return ug()};Yp[WP]=!0;var yi=Object.create||function(t,e){var n;return t!==null?(fy.prototype=hr(t),n=new fy,fy.prototype=null,n[WP]=t):n=ug(),e===void 0?n:hU(n,e)},H4=function(t,e,n){var r=bc(e);r in t?Ka.f(t,r,io(0,n)):t[r]=n},vU=Tt.Array,mU=Math.max,qP=function(t,e,n){for(var r=Kp(t),o=$4(e,r),i=$4(n===void 0?r:n,r),a=vU(mU(i-o,0)),u=0;o<i;o++,u++)H4(a,u,t[o]);return a.length=u,a},yU=ye("".replace),bU=ye("".split),wU=ye([].join),U4=String(Error("zxcasd").stack),KP=/\n\s*at [^:]*:[^\n]*/,EU=KP.test(U4),CU=/@[^\n]*\n/.test(U4)&&!/zxcasd/.test(U4),xU=function(t,e){if(typeof t!="string")return t;if(EU)for(;e--;)t=yU(t,KP,"");else if(CU)return wU(qP(bU(t,`
- `),e),`
- `);return t},DU=function(t,e){sr(e)&&"cause"in e&&Mn(t,"cause",e.cause)},hi={},SU=In("iterator"),AU=Array.prototype,YP={};YP[In("toStringTag")]="z";var F5=String(YP)==="[object z]",OU=In("toStringTag"),kU=Tt.Object,BU=Nu(function(){return arguments}())=="Arguments",Xp=F5?Nu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=kU(t),OU))=="string"?n:BU?Nu(e):(r=Nu(e))=="Object"&&hn(e.callee)?"Arguments":r},TU=In("iterator"),s8=function(t){if(t!=null)return $g(t,TU)||$g(t,"@@iterator")||hi[Xp(t)]},FU=Tt.TypeError,l8=function(t,e,n){var r,o;hr(t);try{if(!(r=$g(t,"return"))){if(e==="throw")throw n;return n}r=Kn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return hr(r),n},_U=Tt.TypeError,sg=function(t,e){this.stopped=t,this.result=e},c8=sg.prototype,PU=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),y=O5(e,c),g=function(v){return r&&l8(r,"normal",v),new sg(!0,v)},m=function(v){return f?(hr(v),d?y(v[0],v[1],g):y(v[0],v[1])):d?y(v,g):y(v)};if(p)r=t;else{if(!(o=s8(t)))throw _U(R4(t)+" is not iterable");if(function(v){return v!==void 0&&(hi.Array===v||AU[SU]===v)}(o)){for(i=0,a=Kp(t);a>i;i++)if((u=m(t[i]))&&Kd(c8,u))return u;return new sg(!1)}r=function(v,h){var b=arguments.length<2?s8(v):h;if(A5(b))return hr(Kn(b,v));throw FU(R4(v)+" is not iterable")}(t,o)}for(s=r.next;!(l=Kn(s,r)).done;){try{u=m(l.value)}catch(v){l8(r,"throw",v)}if(typeof u=="object"&&u&&Kd(c8,u))return u}return new sg(!1)},jU=Tt.String,Yd=function(t){if(Xp(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return jU(t)},NU=function(t,e){return t===void 0?arguments.length<2?"":e:Yd(t)},IU=!tr(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",io(1,7)),t.stack!==7)}),LU=In("toStringTag"),Gg=Tt.Error,RU=[].push,Xd=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Kd(dy,this);Vg?n=Vg(new Gg(void 0),o?Ug(this):dy):(n=o?this:yi(dy),Mn(n,LU,"Error")),Mn(n,"message",NU(e,"")),IU&&Mn(n,"stack",xU(n.stack,1)),DU(n,r);var i=[];return PU(t,RU,{that:i}),Mn(n,"errors",i),n};Vg?Vg(Xd,Gg):function(t,e){for(var n=pU(e),r=Ka.f,o=Q1.f,i=0;i<n.length;i++){var a=n[i];Gt(t,a)||r(t,a,o(e,a))}}(Xd,Gg);var dy=Xd.prototype=yi(Gg.prototype,{constructor:io(1,Xd),message:io(1,""),name:io(1,"AggregateError")});ii({global:!0},{AggregateError:Xd});var MU=ye(Function.toString);hn(ha.inspectSource)||(ha.inspectSource=function(t){return MU(t)});var qg,wd,Kg,XP=ha.inspectSource,f8=Tt.WeakMap,zU=hn(f8)&&/native code/.test(XP(f8)),V4=Tt.TypeError,$U=Tt.WeakMap;if(zU||ha.state){var au=ha.state||(ha.state=new $U),HU=ye(au.get),d8=ye(au.has),UU=ye(au.set);qg=function(t,e){if(d8(au,t))throw new V4("Object already initialized");return e.facade=t,UU(au,t,e),e},wd=function(t){return HU(au,t)||{}},Kg=function(t){return d8(au,t)}}else{var Ls=tm("state");Yp[Ls]=!0,qg=function(t,e){if(Gt(t,Ls))throw new V4("Object already initialized");return e.facade=t,Mn(t,Ls,e),e},wd=function(t){return Gt(t,Ls)?t[Ls]:{}},Kg=function(t){return Gt(t,Ls)}}var sa,p8,h8,wc={set:qg,get:wd,has:Kg,enforce:function(t){return Kg(t)?wd(t):qg(t,{})},getterFor:function(t){return function(e){var n;if(!sr(e)||(n=wd(e)).type!==t)throw V4("Incompatible receiver, "+t+" required");return n}}},ZP=Function.prototype,VU=Xn&&Object.getOwnPropertyDescriptor,py=Gt(ZP,"name"),WU={EXISTS:py,PROPER:py&&function(){}.name==="something",CONFIGURABLE:py&&(!Xn||Xn&&VU(ZP,"name").configurable)},zl=function(t,e,n,r){r&&r.enumerable?t[e]=n:Mn(t,e,n)},W4=In("iterator"),JP=!1;[].keys&&("next"in(h8=[].keys())?(p8=Ug(Ug(h8)))!==Object.prototype&&(sa=p8):JP=!0);var GU=sa==null||tr(function(){var t={};return sa[W4].call(t)!==t});sa=GU?{}:yi(sa),hn(sa[W4])||zl(sa,W4,function(){return this});var QP={IteratorPrototype:sa,BUGGY_SAFARI_ITERATORS:JP},qU=F5?{}.toString:function(){return"[object "+Xp(this)+"]"},KU=Ka.f,g8=In("toStringTag"),Yg=function(t,e,n,r){if(t){var o=n?t:t.prototype;Gt(o,g8)||KU(o,g8,{configurable:!0,value:e}),r&&!F5&&Mn(o,"toString",qU)}},YU=QP.IteratorPrototype,XU=function(){return this},ZU=WU.PROPER,Yh=QP.BUGGY_SAFARI_ITERATORS,hy=In("iterator"),JU=function(){return this},tj=function(t,e,n,r,o,i,a){(function(v,h,b,w){var E=h+" Iterator";v.prototype=yi(YU,{next:io(+!w,b)}),Yg(v,E,!1,!0),hi[E]=XU})(n,e,r);var u,s,l,c=function(v){if(v===o&&g)return g;if(!Yh&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[hy]||d["@@iterator"]||o&&d[o],g=!Yh&&y||c(o),m=e=="Array"&&d.entries||y;if(m&&(u=Ug(m.call(new t)))!==Object.prototype&&u.next&&(Yg(u,f,!0,!0),hi[f]=JU),ZU&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return Kn(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Yh||p||!(l in d))&&zl(d,l,s[l]);else ii({target:e,proto:!0,forced:Yh||p},s);return a&&d[hy]!==g&&zl(d,hy,g,{name:o}),hi[e]=g,s},QU=wc.set,tV=wc.getterFor("Array Iterator");tj(Array,"Array",function(t,e){QU(this,{type:"Array Iterator",target:Wo(t),index:0,kind:e})},function(){var t=tV(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"),hi.Arguments=hi.Array;var eV=ye("".charAt),v8=ye("".charCodeAt),nV=ye("".slice),m8=function(t){return function(e,n){var r,o,i=Yd(D5(e)),a=k5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=v8(i,a))<55296||r>56319||a+1===u||(o=v8(i,a+1))<56320||o>57343?t?eV(i,a):r:t?nV(i,a,a+2):o-56320+(r-55296<<10)+65536}},rV={codeAt:m8(!1),charAt:m8(!0)}.charAt,oV=wc.set,iV=wc.getterFor("String Iterator");tj(String,"String",function(t){oV(this,{type:"String Iterator",string:Yd(t),index:0})},function(){var t,e=iV(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=rV(n,r),e.index+=t.length,{value:t,done:!1})});var aV=ur.AggregateError,y8=In("toStringTag");for(var gy 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 b8=Tt[gy],vy=b8&&b8.prototype;vy&&Xp(vy)!==y8&&Mn(vy,y8,gy),hi[gy]=hi.Array}var _i,lg,uV=aV,Xh=function(t){return t&&t.Math==Math&&t},xt=Xh(typeof globalThis=="object"&&globalThis)||Xh(typeof window=="object"&&window)||Xh(typeof self=="object"&&self)||Xh(typeof fe=="object"&&fe)||function(){return this}()||Function("return this")(),vn=function(t){try{return!!t()}catch(e){return!0}},Ro=!vn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Wc=Function.prototype.call,pn=Wc.bind?Wc.bind(Wc):function(){return Wc.apply(Wc,arguments)},w8={}.propertyIsEnumerable,E8=Object.getOwnPropertyDescriptor,sV=E8&&!w8.call({1:2},1)?function(t){var e=E8(this,t);return!!e&&e.enumerable}:w8,lV={f:sV},ga=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ej=Function.prototype,G4=ej.bind,q4=ej.call,cV=G4&&G4.bind(q4),se=G4?function(t){return t&&cV(q4,t)}:function(t){return t&&function(){return q4.apply(t,arguments)}},fV=se({}.toString),dV=se("".slice),Lu=function(t){return dV(fV(t),8,-1)},my=xt.Object,pV=se("".split),nj=vn(function(){return!my("z").propertyIsEnumerable(0)})?function(t){return Lu(t)=="String"?pV(t,""):my(t)}:my,hV=xt.TypeError,em=function(t){if(t==null)throw hV("Can't call method on "+t);return t},Ec=function(t){return nj(em(t))},Ze=function(t){return typeof t=="function"},Jr=function(t){return typeof t=="object"?t!==null:Ze(t)},gV=function(t){return Ze(t)?t:void 0},Zp=function(t,e){return arguments.length<2?gV(xt[t]):xt[t]&&xt[t][e]},Xg=se({}.isPrototypeOf),yy=Zp("navigator","userAgent")||"",C8=xt.process,x8=xt.Deno,D8=C8&&C8.versions||x8&&x8.version,S8=D8&&D8.v8;S8&&(lg=(_i=S8.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!lg&&yy&&(!(_i=yy.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=yy.match(/Chrome\/(\d+)/))&&(lg=+_i[1]);var A8=lg,K4=!!Object.getOwnPropertySymbols&&!vn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&A8&&A8<41}),_5=K4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",vV=xt.Object,Y4=_5?function(t){return typeof t=="symbol"}:function(t){var e=Zp("Symbol");return Ze(e)&&Xg(e.prototype,vV(t))},mV=xt.String,X4=function(t){try{return mV(t)}catch(e){return"Object"}},yV=xt.TypeError,P5=function(t){if(Ze(t))return t;throw yV(X4(t)+" is not a function")},Zd=function(t,e){var n=t[e];return n==null?void 0:P5(n)},bV=xt.TypeError,wV=Object.defineProperty,j5=function(t,e){try{wV(xt,t,{value:e,configurable:!0,writable:!0})}catch(n){xt[t]=e}return e},va=xt["__core-js_shared__"]||j5("__core-js_shared__",{}),N5=ws(function(t){(t.exports=function(e,n){return va[e]||(va[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),EV=xt.Object,I5=function(t){return EV(em(t))},CV=se({}.hasOwnProperty),Zn=Object.hasOwn||function(t,e){return CV(I5(t),e)},xV=0,DV=Math.random(),SV=se(1 .toString),rj=function(t){return"Symbol("+(t===void 0?"":t)+")_"+SV(++xV+DV,36)},Gc=N5("wks"),Ru=xt.Symbol,O8=Ru&&Ru.for,AV=_5?Ru:Ru&&Ru.withoutSetter||rj,Hn=function(t){if(!Zn(Gc,t)||!K4&&typeof Gc[t]!="string"){var e="Symbol."+t;K4&&Zn(Ru,t)?Gc[t]=Ru[t]:Gc[t]=_5&&O8?O8(e):AV(e)}return Gc[t]},OV=xt.TypeError,kV=Hn("toPrimitive"),BV=function(t,e){if(!Jr(t)||Y4(t))return t;var n,r=Zd(t,kV);if(r){if(e===void 0&&(e="default"),n=pn(r,t,e),!Jr(n)||Y4(n))return n;throw OV("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&Ze(a=o.toString)&&!Jr(u=pn(a,o))||Ze(a=o.valueOf)&&!Jr(u=pn(a,o))||i!=="string"&&Ze(a=o.toString)&&!Jr(u=pn(a,o)))return u;throw bV("Can't convert object to primitive value")}(t,e)},L5=function(t){var e=BV(t,"string");return Y4(e)?e:e+""},Z4=xt.document,TV=Jr(Z4)&&Jr(Z4.createElement),R5=function(t){return TV?Z4.createElement(t):{}},oj=!Ro&&!vn(function(){return Object.defineProperty(R5("div"),"a",{get:function(){return 7}}).a!=7}),k8=Object.getOwnPropertyDescriptor,FV=Ro?k8:function(t,e){if(t=Ec(t),e=L5(e),oj)try{return k8(t,e)}catch(n){}if(Zn(t,e))return ga(!pn(lV.f,t,e),t[e])},M5={f:FV},_V=xt.String,PV=xt.TypeError,gr=function(t){if(Jr(t))return t;throw PV(_V(t)+" is not an object")},jV=xt.TypeError,B8=Object.defineProperty,NV=Ro?B8:function(t,e,n){if(gr(t),e=L5(e),gr(n),oj)try{return B8(t,e,n)}catch(r){}if("get"in n||"set"in n)throw jV("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Cc={f:NV},$n=Ro?function(t,e,n){return Cc.f(t,e,ga(1,n))}:function(t,e,n){return t[e]=n,t},IV=se(Function.toString);Ze(va.inspectSource)||(va.inspectSource=function(t){return IV(t)});var Zg,Ed,Jg,z5=va.inspectSource,T8=xt.WeakMap,LV=Ze(T8)&&/native code/.test(z5(T8)),F8=N5("keys"),$5=function(t){return F8[t]||(F8[t]=rj(t))},H5={},J4=xt.TypeError,RV=xt.WeakMap;if(LV||va.state){var uu=va.state||(va.state=new RV),MV=se(uu.get),_8=se(uu.has),zV=se(uu.set);Zg=function(t,e){if(_8(uu,t))throw new J4("Object already initialized");return e.facade=t,zV(uu,t,e),e},Ed=function(t){return MV(uu,t)||{}},Jg=function(t){return _8(uu,t)}}else{var Rs=$5("state");H5[Rs]=!0,Zg=function(t,e){if(Zn(t,Rs))throw new J4("Object already initialized");return e.facade=t,$n(t,Rs,e),e},Ed=function(t){return Zn(t,Rs)?t[Rs]:{}},Jg=function(t){return Zn(t,Rs)}}var is={set:Zg,get:Ed,has:Jg,enforce:function(t){return Jg(t)?Ed(t):Zg(t,{})},getterFor:function(t){return function(e){var n;if(!Jr(e)||(n=Ed(e)).type!==t)throw J4("Incompatible receiver, "+t+" required");return n}}},ij=Function.prototype,$V=Ro&&Object.getOwnPropertyDescriptor,by=Zn(ij,"name"),U5={EXISTS:by,PROPER:by&&function(){}.name==="something",CONFIGURABLE:by&&(!Ro||Ro&&$V(ij,"name").configurable)},ma=ws(function(t){var e=U5.CONFIGURABLE,n=is.get,r=is.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;Ze(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Zn(u,"name")||e&&u.name!==d)&&$n(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:$n(i,a,u)):f?i[a]=u:j5(a,u)})(Function.prototype,"toString",function(){return Ze(this)&&n(this).source||z5(this)})}),HV=Math.ceil,UV=Math.floor,V5=function(t){var e=+t;return e!=e||e===0?0:(e>0?UV:HV)(e)},VV=Math.max,WV=Math.min,Q4=function(t,e){var n=V5(t);return n<0?VV(n+e,0):WV(n,e)},GV=Math.min,aj=function(t){return t>0?GV(V5(t),9007199254740991):0},nm=function(t){return aj(t.length)},P8=function(t){return function(e,n,r){var o,i=Ec(e),a=nm(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}},qV={includes:P8(!0),indexOf:P8(!1)}.indexOf,j8=se([].push),uj=function(t,e){var n,r=Ec(t),o=0,i=[];for(n in r)!Zn(H5,n)&&Zn(r,n)&&j8(i,n);for(;e.length>o;)Zn(r,n=e[o++])&&(~qV(i,n)||j8(i,n));return i},Qg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],KV=Qg.concat("length","prototype"),YV=Object.getOwnPropertyNames||function(t){return uj(t,KV)},XV={f:YV},ZV={f:Object.getOwnPropertySymbols},JV=se([].concat),QV=Zp("Reflect","ownKeys")||function(t){var e=XV.f(gr(t)),n=ZV.f;return n?JV(e,n(t)):e},sj=function(t,e){for(var n=QV(e),r=Cc.f,o=M5.f,i=0;i<n.length;i++){var a=n[i];Zn(t,a)||r(t,a,o(e,a))}},tW=/#|\.prototype\./,Jp=function(t,e){var n=nW[eW(t)];return n==oW||n!=rW&&(Ze(e)?vn(e):!!e)},eW=Jp.normalize=function(t){return String(t).replace(tW,".").toLowerCase()},nW=Jp.data={},rW=Jp.NATIVE="N",oW=Jp.POLYFILL="P",iW=Jp,aW=M5.f,Qp=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]||j5(u,{}):(xt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=aW(n,r))&&a.value:n[r],!iW(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;sj(i,o)}(t.sham||o&&o.sham)&&$n(i,"sham",!0),ma(n,r,i,t)}},lj={};lj[Hn("toStringTag")]="z";var Zh,W5=String(lj)==="[object z]",uW=Hn("toStringTag"),sW=xt.Object,lW=Lu(function(){return arguments}())=="Arguments",rm=W5?Lu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=sW(t),uW))=="string"?n:lW?Lu(e):(r=Lu(e))=="Object"&&Ze(e.callee)?"Arguments":r},cW=xt.String,Mu=function(t){if(rm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return cW(t)},fW=function(){var t=gr(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},G5=xt.RegExp,q5=vn(function(){var t=G5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),dW=q5||vn(function(){return!G5("a","y").sticky}),pW=q5||vn(function(){var t=G5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),hW={BROKEN_CARET:pW,MISSED_STICKY:dW,UNSUPPORTED_Y:q5},gW=Object.keys||function(t){return uj(t,Qg)},vW=Ro?Object.defineProperties:function(t,e){gr(t);for(var n,r=Ec(e),o=gW(e),i=o.length,a=0;i>a;)Cc.f(t,n=o[a++],r[n]);return t},mW=Zp("document","documentElement"),cj=$5("IE_PROTO"),wy=function(){},fj=function(t){return"<script>"+t+"<\/script>"},N8=function(t){t.write(fj("")),t.close();var e=t.parentWindow.Object;return t=null,e},cg=function(){try{Zh=new ActiveXObject("htmlfile")}catch(r){}var t,e;cg=typeof document!="undefined"?document.domain&&Zh?N8(Zh):((e=R5("iframe")).style.display="none",mW.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(fj("document.F=Object")),t.close(),t.F):N8(Zh);for(var n=Qg.length;n--;)delete cg.prototype[Qg[n]];return cg()};H5[cj]=!0;var I8,Ey,th=Object.create||function(t,e){var n;return t!==null?(wy.prototype=gr(t),n=new wy,wy.prototype=null,n[cj]=t):n=cg(),e===void 0?n:vW(n,e)},yW=xt.RegExp,bW=vn(function(){var t=yW(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),wW=xt.RegExp,EW=vn(function(){var t=wW("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),CW=is.get,xW=N5("native-string-replace",String.prototype.replace),tv=RegExp.prototype.exec,tE=tv,DW=se("".charAt),SW=se("".indexOf),AW=se("".replace),Cy=se("".slice),xy=(Ey=/b*/g,pn(tv,I8=/a/,"a"),pn(tv,Ey,"a"),I8.lastIndex!==0||Ey.lastIndex!==0),L8=hW.BROKEN_CARET,Dy=/()??/.exec("")[1]!==void 0;(xy||Dy||L8||bW||EW)&&(tE=function(t){var e,n,r,o,i,a,u,s=this,l=CW(s),c=Mu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=pn(tE,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=L8&&s.sticky,y=pn(fW,s),g=s.source,m=0,v=c;if(d&&(y=AW(y,"y",""),SW(y,"g")===-1&&(y+="g"),v=Cy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&DW(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",y)),Dy&&(n=new RegExp("^"+g+"$(?!\\s)",y)),xy&&(r=s.lastIndex),o=pn(tv,d?n:s,v),d?o?(o.input=Cy(o.input,m),o[0]=Cy(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:xy&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Dy&&o&&o.length>1&&pn(xW,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=th(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ev=tE;Qp({target:"RegExp",proto:!0,forced:/./.exec!==ev},{exec:ev});var OW=Hn("species"),Sy=RegExp.prototype,kW=se("".charAt),R8=se("".charCodeAt),BW=se("".slice),M8=function(t){return function(e,n){var r,o,i=Mu(em(e)),a=V5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=R8(i,a))<55296||r>56319||a+1===u||(o=R8(i,a+1))<56320||o>57343?t?kW(i,a):r:t?BW(i,a,a+2):o-56320+(r-55296<<10)+65536}},dj={codeAt:M8(!1),charAt:M8(!0)},TW=dj.charAt,FW=function(t,e,n){return e+(n?TW(t,e).length:1)},_W=xt.TypeError,z8=function(t,e){var n=t.exec;if(Ze(n)){var r=pn(n,t,e);return r!==null&&gr(r),r}if(Lu(t)==="RegExp")return pn(ev,t,e);throw _W("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=Hn(t),i=!vn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!vn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[OW]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=se(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=se(l),g=c.exec;return g===ev||g===Sy.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});ma(String.prototype,t,s[0]),ma(Sy,o,s[1])}r&&$n(Sy[o],"sham",!0)})("match",function(t,e,n){return[function(r){var o=em(this),i=r==null?void 0:Zd(r,t);return i?pn(i,r,o):new RegExp(r)[t](Mu(o))},function(r){var o=gr(this),i=Mu(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return z8(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=z8(o,i))!==null;){var f=Mu(s[0]);l[c]=f,f===""&&(o.lastIndex=FW(i,aj(o.lastIndex),u)),c++}return c===0?null:l}]}),Qp({global:!0},{globalThis:xt});var PW=!vn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),$8=$5("IE_PROTO"),eE=xt.Object,jW=eE.prototype,Jd=PW?eE.getPrototypeOf:function(t){var e=I5(t);if(Zn(e,$8))return e[$8];var n=e.constructor;return Ze(n)&&e instanceof n?n.prototype:e instanceof eE?jW:null},NW=xt.String,IW=xt.TypeError,$l=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=se(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return gr(r),function(i){if(typeof i=="object"||Ze(i))return i;throw IW("Can't set "+NW(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),LW=xt.Array,RW=Math.max,MW=se("".replace),zW=se("".split),$W=se([].join),nE=String(Error("zxcasd").stack),pj=/\n\s*at [^:]*:[^\n]*/,HW=pj.test(nE),UW=/@[^\n]*\n/.test(nE)&&!/zxcasd/.test(nE),VW=function(t,e){if(typeof t!="string")return t;if(HW)for(;e--;)t=MW(t,pj,"");else if(UW)return $W(function(n,r,o){for(var i,a,u,s,l=nm(n),c=Q4(r,l),f=Q4(o===void 0?l:o,l),p=LW(RW(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=n[c],s=void 0,(s=L5(a))in i?Cc.f(i,s,ga(0,u)):i[s]=u;return p.length=d,p}(zW(t,`
- `),e),`
- `);return t},WW=function(t,e){Jr(e)&&"cause"in e&&$n(t,"cause",e.cause)},H8=se(se.bind),hj=function(t,e){return P5(t),e===void 0?t:H8?H8(t,e):function(){return t.apply(e,arguments)}},Hl={},GW=Hn("iterator"),qW=Array.prototype,KW=Hn("iterator"),U8=function(t){if(t!=null)return Zd(t,KW)||Zd(t,"@@iterator")||Hl[rm(t)]},YW=xt.TypeError,V8=function(t,e,n){var r,o;gr(t);try{if(!(r=Zd(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 gr(r),n},XW=xt.TypeError,fg=function(t,e){this.stopped=t,this.result=e},W8=fg.prototype,ZW=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),y=hj(e,c),g=function(v){return r&&V8(r,"normal",v),new fg(!0,v)},m=function(v){return f?(gr(v),d?y(v[0],v[1],g):y(v[0],v[1])):d?y(v,g):y(v)};if(p)r=t;else{if(!(o=U8(t)))throw XW(X4(t)+" is not iterable");if(function(v){return v!==void 0&&(Hl.Array===v||qW[GW]===v)}(o)){for(i=0,a=nm(t);a>i;i++)if((u=m(t[i]))&&Xg(W8,u))return u;return new fg(!1)}r=function(v,h){var b=arguments.length<2?U8(v):h;if(P5(b))return gr(pn(b,v));throw YW(X4(v)+" is not iterable")}(t,o)}for(s=r.next;!(l=pn(s,r)).done;){try{u=m(l.value)}catch(v){V8(r,"throw",v)}if(typeof u=="object"&&u&&Xg(W8,u))return u}return new fg(!1)},JW=function(t,e){return t===void 0?arguments.length<2?"":e:Mu(t)},QW=!vn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",ga(1,7)),t.stack!==7)}),tG=Hn("toStringTag"),nv=xt.Error,eG=[].push,Qd=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Xg(Ay,this);$l?n=$l(new nv(void 0),o?Jd(this):Ay):(n=o?this:th(Ay),$n(n,tG,"Error")),$n(n,"message",JW(e,"")),QW&&$n(n,"stack",VW(n.stack,1)),WW(n,r);var i=[];return ZW(t,eG,{that:i}),$n(n,"errors",i),n};$l?$l(Qd,nv):sj(Qd,nv);var Ay=Qd.prototype=th(nv.prototype,{constructor:ga(1,Qd),message:ga(1,""),name:ga(1,"AggregateError")});Qp({global:!0},{AggregateError:Qd});var rE=Hn("unscopables"),oE=Array.prototype;oE[rE]==null&&Cc.f(oE,rE,{configurable:!0,value:th(null)});var zu,G8,q8,Oy=function(t){oE[rE][t]=!0},iE=Hn("iterator"),gj=!1;[].keys&&("next"in(q8=[].keys())?(G8=Jd(Jd(q8)))!==Object.prototype&&(zu=G8):gj=!0);var nG=zu==null||vn(function(){var t={};return zu[iE].call(t)!==t});nG&&(zu={}),Ze(zu[iE])||ma(zu,iE,function(){return this});var K5={IteratorPrototype:zu,BUGGY_SAFARI_ITERATORS:gj},rG=Cc.f,K8=Hn("toStringTag"),Y8=function(t,e,n){t&&!Zn(t=n?t:t.prototype,K8)&&rG(t,K8,{configurable:!0,value:e})},oG=K5.IteratorPrototype,iG=function(){return this},aG=U5.PROPER,uG=U5.CONFIGURABLE,X8=K5.IteratorPrototype,Jh=K5.BUGGY_SAFARI_ITERATORS,qc=Hn("iterator"),sG=function(){return this},vj=function(t,e,n,r,o,i,a){(function(v,h,b,w){var E=h+" Iterator";v.prototype=th(oG,{next:ga(+!w,b)}),Y8(v,E,!1),Hl[E]=iG})(n,e,r);var u,s,l,c=function(v){if(v===o&&g)return g;if(!Jh&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[qc]||d["@@iterator"]||o&&d[o],g=!Jh&&y||c(o),m=e=="Array"&&d.entries||y;if(m&&(u=Jd(m.call(new t)))!==Object.prototype&&u.next&&(Jd(u)!==X8&&($l?$l(u,X8):Ze(u[qc])||ma(u,qc,sG)),Y8(u,f,!0)),aG&&o=="values"&&y&&y.name!=="values"&&(uG?$n(d,"name","values"):(p=!0,g=function(){return pn(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Jh||p||!(l in d))&&ma(d,l,s[l]);else Qp({target:e,proto:!0,forced:Jh||p},s);return d[qc]!==g&&ma(d,qc,g,{name:o}),Hl[e]=g,s},lG=is.set,cG=is.getterFor("Array Iterator"),cd=vj(Array,"Array",function(t,e){lG(this,{type:"Array Iterator",target:Ec(t),index:0,kind:e})},function(){var t=cG(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");Hl.Arguments=Hl.Array,Oy("keys"),Oy("values"),Oy("entries");var fG=dj.charAt,dG=is.set,pG=is.getterFor("String Iterator");vj(String,"String",function(t){dG(this,{type:"String Iterator",string:Mu(t),index:0})},function(){var t,e=pG(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=fG(n,r),e.index+=t.length,{value:t,done:!1})});var ky,rv={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},By=R5("span").classList,Z8=By&&By.constructor&&By.constructor.prototype,mj=Z8===Object.prototype?void 0:Z8,Ty=Hn("iterator"),J8=Hn("toStringTag"),Fy=cd.values,yj=function(t,e){if(t){if(t[Ty]!==Fy)try{$n(t,Ty,Fy)}catch(r){t[Ty]=Fy}if(t[J8]||$n(t,J8,e),rv[e]){for(var n in cd)if(t[n]!==cd[n])try{$n(t,n,cd[n])}catch(r){t[n]=cd[n]}}}};for(var _y in rv)yj(xt[_y]&&xt[_y].prototype,_y);yj(mj,"DOMTokenList"),typeof global=="undefined"?("ActiveXObject"in window&&console.error(`\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668
- Sorry, wangEditor V5+ versions do not support IE browser.`),Q8(),tA()):global&&((ky=global.navigator)===null||ky===void 0?void 0:ky.userAgent.match("QQBrowser"))&&(Q8(),tA());function Q8(){typeof globalThis=="undefined"&&(window.globalThis=window)}function tA(){uV===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var eA,ov=Array.isArray||function(t){return Nu(t)=="Array"},bj=function(){},hG=[],wj=yc("Reflect","construct"),Y5=/^\s*(?:class|function)\b/,gG=ye(Y5.exec),vG=!Y5.exec(bj),Kc=function(t){if(!hn(t))return!1;try{return wj(bj,hG,t),!0}catch(e){return!1}},mG=!wj||tr(function(){var t;return Kc(Kc.call)||!Kc(Object)||!Kc(function(){t=!0})||t})?function(t){if(!hn(t))return!1;switch(Xp(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vG||!!gG(Y5,XP(t))}:Kc,yG=In("species"),nA=Tt.Array,Ej=function(t,e){return new(function(n){var r;return ov(n)&&(r=n.constructor,(mG(r)&&(r===nA||ov(r.prototype))||sr(r)&&(r=r[yG])===null)&&(r=void 0)),r===void 0?nA:r}(t))(e===0?0:e)},bG=In("species"),Cj=In("isConcatSpreadable"),rA=Tt.TypeError,wG=zg>=51||!tr(function(){var t=[];return t[Cj]=!1,t.concat()[0]!==t}),EG=(eA="concat",zg>=51||!tr(function(){var t=[];return(t.constructor={})[bG]=function(){return{foo:1}},t[eA](Boolean).foo!==1})),CG=function(t){if(!sr(t))return!1;var e=t[Cj];return e!==void 0?!!e:ov(t)};ii({target:"Array",proto:!0,forced:!wG||!EG},{concat:function(t){var e,n,r,o,i,a=Gp(this),u=Ej(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(CG(i=e===-1?a:arguments[e])){if(s+(o=Kp(i))>9007199254740991)throw rA("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&H4(u,s,i[n])}else{if(s>=9007199254740991)throw rA("Maximum allowed index exceeded");H4(u,s++,i)}return u.length=s,u}});var oA=B5.f,iA=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xj={f:function(t){return iA&&Nu(t)=="Window"?function(e){try{return oA(e)}catch(n){return qP(iA)}}(t):oA(Wo(t))}},xG=ye([].slice),X5={f:In},DG=Ka.f,Re=function(t){var e=ur.Symbol||(ur.Symbol={});Gt(e,t)||DG(e,t,{value:X5.f(t)})},aA=ye([].push),Pi=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,y=Gp(s),g=$P(y),m=O5(l,c),v=Kp(g),h=0,b=f||Ej,w=e?b(s,v):n||a?b(s,0):void 0;v>h;h++)if((u||h in g)&&(d=m(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:aA(w,p)}else switch(t){case 4:return!1;case 7:aA(w,p)}return i?-1:r||o?o:w}},om={forEach:Pi(0),map:Pi(1),filter:Pi(2),some:Pi(3),every:Pi(4),find:Pi(5),findIndex:Pi(6),filterReject:Pi(7)}.forEach,Gn=tm("hidden"),uA=In("toPrimitive"),SG=wc.set,sA=wc.getterFor("Symbol"),no=Object.prototype,ra=Tt.Symbol,la=ra&&ra.prototype,lA=Tt.TypeError,Py=Tt.QObject,Yc=yc("JSON","stringify"),Dj=Q1.f,oa=Ka.f,Sj=xj.f,AG=x5.f,Aj=ye([].push),bi=Es("symbols"),eh=Es("op-symbols"),jy=Es("string-to-symbol-registry"),Ny=Es("symbol-to-string-registry"),OG=Es("wks"),Iy=!Py||!Py.prototype||!Py.prototype.findChild,aE=Xn&&tr(function(){return yi(oa({},"a",{get:function(){return oa(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=Dj(no,e);r&&delete no[e],oa(t,e,n),r&&t!==no&&oa(no,e,r)}:oa,Ly=function(t,e){var n=bi[t]=yi(la);return SG(n,{type:"Symbol",tag:t,description:e}),Xn||(n.description=e),n},iv=function(t,e,n){t===no&&iv(eh,e,n),hr(t);var r=bc(e);return hr(n),Gt(bi,r)?(n.enumerable?(Gt(t,Gn)&&t[Gn][r]&&(t[Gn][r]=!1),n=yi(n,{enumerable:io(0,!1)})):(Gt(t,Gn)||oa(t,Gn,io(1,{})),t[Gn][r]=!0),aE(t,r,n)):oa(t,r,n)},cA=function(t,e){hr(t);var n=Wo(e),r=T5(n).concat(uE(n));return om(r,function(o){Xn&&!Kn(Oj,n,o)||iv(t,o,n[o])}),t},Oj=function(t){var e=bc(t),n=Kn(AG,this,e);return!(this===no&&Gt(bi,e)&&!Gt(eh,e))&&(!(n||!Gt(this,e)||!Gt(bi,e)||Gt(this,Gn)&&this[Gn][e])||n)},fA=function(t,e){var n=Wo(t),r=bc(e);if(n!==no||!Gt(bi,r)||Gt(eh,r)){var o=Dj(n,r);return!o||!Gt(bi,r)||Gt(n,Gn)&&n[Gn][r]||(o.enumerable=!0),o}},dA=function(t){var e=Sj(Wo(t)),n=[];return om(e,function(r){Gt(bi,r)||Gt(Yp,r)||Aj(n,r)}),n},uE=function(t){var e=t===no,n=Sj(e?eh:Wo(t)),r=[];return om(n,function(o){!Gt(bi,o)||e&&!Gt(no,o)||Aj(r,bi[o])}),r};if(Do||(la=(ra=function(){if(Kd(la,this))throw lA("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Yd(arguments[0]):void 0,e=Hg(t),n=function(r){this===no&&Kn(n,eh,r),Gt(this,Gn)&&Gt(this[Gn],e)&&(this[Gn][e]=!1),aE(this,e,io(1,r))};return Xn&&Iy&&aE(no,e,{configurable:!0,set:n}),Ly(e,t)}).prototype,zl(la,"toString",function(){return sA(this).tag}),zl(ra,"withoutSetter",function(t){return Ly(Hg(t),t)}),x5.f=Oj,Ka.f=iv,Q1.f=fA,B5.f=xj.f=dA,ag.f=uE,X5.f=function(t){return Ly(In(t),t)},Xn&&oa(la,"description",{configurable:!0,get:function(){return sA(this).description}})),ii({global:!0,wrap:!0,forced:!Do,sham:!Do},{Symbol:ra}),om(T5(OG),function(t){Re(t)}),ii({target:"Symbol",stat:!0,forced:!Do},{for:function(t){var e=Yd(t);if(Gt(jy,e))return jy[e];var n=ra(e);return jy[e]=n,Ny[n]=e,n},keyFor:function(t){if(!Ol(t))throw lA(t+" is not a symbol");if(Gt(Ny,t))return Ny[t]},useSetter:function(){Iy=!0},useSimple:function(){Iy=!1}}),ii({target:"Object",stat:!0,forced:!Do,sham:!Xn},{create:function(t,e){return e===void 0?yi(t):cA(yi(t),e)},defineProperty:iv,defineProperties:cA,getOwnPropertyDescriptor:fA}),ii({target:"Object",stat:!0,forced:!Do},{getOwnPropertyNames:dA,getOwnPropertySymbols:uE}),ii({target:"Object",stat:!0,forced:tr(function(){ag.f(1)})},{getOwnPropertySymbols:function(t){return ag.f(Gp(t))}}),Yc){var kG=!Do||tr(function(){var t=ra();return Yc([t])!="[null]"||Yc({a:t})!="{}"||Yc(Object(t))!="{}"});ii({target:"JSON",stat:!0,forced:kG},{stringify:function(t,e,n){var r=xG(arguments),o=e;if((sr(e)||t!==void 0)&&!Ol(t))return ov(e)||(e=function(i,a){if(hn(o)&&(a=Kn(o,this,i,a)),!Ol(a))return a}),r[1]=e,MP(Yc,null,r)}})}if(!la[uA]){var BG=la.valueOf;zl(la,uA,function(t){return Kn(BG,this)})}Yg(ra,"Symbol"),Yp[Gn]=!0,Re("asyncIterator"),Re("hasInstance"),Re("isConcatSpreadable"),Re("iterator"),Re("match"),Re("matchAll"),Re("replace"),Re("search"),Re("species"),Re("split"),Re("toPrimitive"),Re("toStringTag"),Re("unscopables"),Yg(Tt.JSON,"JSON",!0);var TG=ur.Symbol;Re("asyncDispose"),Re("dispose"),Re("matcher"),Re("metadata"),Re("observable"),Re("patternMatch"),Re("replaceAll");var Qh=TG,FG=X5.f("iterator"),_G=ws(function(t){function e(n){return typeof Qh=="function"&&typeof FG=="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 Qh=="function"&&r.constructor===Qh&&r!==Qh.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}),PG=mH(_G),kj=M5.f,jG=vn(function(){kj(1)});if(Qp({target:"Object",stat:!0,forced:!Ro||jG,sham:!Ro},{getOwnPropertyDescriptor:function(t,e){return kj(Ec(t),e)}}),(typeof global=="undefined"?"undefined":PG(global))==="object"){var NG=Object.getOwnPropertyDescriptor(global,"window");global.window&&!NG.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[]})}/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function pA(t){return Object.prototype.toString.call(t)==="[object Object]"}function _n(t){var e,n;return pA(t)!==!1&&((e=t.constructor)===void 0||pA(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Qr(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 as(t){return!!t&&!!t[vr]}function us(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)===$G}(t)||Array.isArray(t)||!!t[EA]||!!t.constructor[EA]||Z5(t)||J5(t))}function tp(t,e,n){n===void 0&&(n=!1),Ul(t)===0?(n?Object.keys:rC)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function Ul(t){var e=t[vr];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Z5(t)?2:J5(t)?3:0}function sE(t,e){return Ul(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Bj(t,e,n){var r=Ul(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function Z5(t){return MG&&t instanceof Map}function J5(t){return zG&&t instanceof Set}function bu(t){return t.o||t.t}function Q5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=HG(t);delete e[vr];for(var n=rC(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 tC(t,e){return e===void 0&&(e=!1),eC(t)||as(t)||!us(t)||(Ul(t)>1&&(t.set=t.add=t.clear=t.delete=IG),Object.freeze(t),e&&tp(t,function(n,r){return tC(r,!0)},!0)),t}function IG(){Qr(2)}function eC(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function gi(t){var e=UG[t];return e||Qr(18,t),e}function hA(){return ep}function Ry(t,e){e&&(gi("Patches"),t.u=[],t.s=[],t.v=e)}function av(t){lE(t),t.p.forEach(LG),t.p=null}function lE(t){t===ep&&(ep=t.l)}function gA(t){return ep={p:[],l:ep,h:t,m:!0,_:0}}function LG(t){var e=t[vr];e.i===0||e.i===1?e.j():e.O=!0}function My(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||gi("ES5").S(e,t,r),r?(n[vr].P&&(av(e),Qr(4)),us(t)&&(t=uv(e,t),e.l||sv(e,t)),e.u&&gi("Patches").M(n[vr],t,e.u,e.s)):t=uv(e,n,[]),av(e),e.u&&e.v(e.u,e.s),t!==Tj?t:void 0}function uv(t,e,n){if(eC(e))return e;var r=e[vr];if(!r)return tp(e,function(i,a){return vA(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return sv(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Q5(r.k):r.o;tp(r.i===3?new Set(o):o,function(i,a){return vA(t,r,o,i,a,n)}),sv(t,o,!1),n&&t.u&&gi("Patches").R(r,n,t.u,t.s)}return r.o}function vA(t,e,n,r,o,i){if(as(o)){var a=uv(t,o,i&&e&&e.i!==3&&!sE(e.D,r)?i.concat(r):void 0);if(Bj(n,r,a),!as(a))return;t.m=!1}if(us(o)&&!eC(o)){if(!t.h.F&&t._<1)return;uv(t,o),e&&e.A.l||sv(t,o)}}function sv(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&tC(e,n)}function zy(t,e){var n=t[vr];return(n?bu(n):t)[e]}function mA(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 cE(t){t.P||(t.P=!0,t.l&&cE(t.l))}function $y(t){t.o||(t.o=Q5(t.t))}function fE(t,e,n){var r=Z5(e)?gi("MapSet").N(e,n):J5(e)?gi("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:hA(),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=pg);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):gi("ES5").J(e,n);return(n?n.A:hA()).p.push(r),r}function RG(t){return as(t)||Qr(22,t),function e(n){if(!us(n))return n;var r,o=n[vr],i=Ul(n);if(o){if(!o.P&&(o.i<4||!gi("ES5").K(o)))return o.t;o.I=!0,r=yA(n,i),o.I=!1}else r=yA(n,i);return tp(r,function(a,u){o&&function(s,l){return Ul(s)===2?s.get(l):s[l]}(o.t,a)===u||Bj(r,a,e(u))}),i===3?new Set(r):r}(t)}function yA(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Q5(t)}var bA,ep,nC=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",MG=typeof Map!="undefined",zG=typeof Set!="undefined",wA=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",Tj=nC?Symbol.for("immer-nothing"):((bA={})["immer-nothing"]=!0,bA),EA=nC?Symbol.for("immer-draftable"):"__$immer_draftable",vr=nC?Symbol.for("immer-state"):"__$immer_state",$G=""+Object.prototype.constructor,rC=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,HG=Object.getOwnPropertyDescriptors||function(t){var e={};return rC(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},UG={},dg={get:function(t,e){if(e===vr)return t;var n=bu(t);if(!sE(n,e))return function(o,i,a){var u,s=mA(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||!us(r)?r:r===zy(t.t,e)?($y(t),t.o[e]=fE(t.A.h,r,t)):r},has:function(t,e){return e in bu(t)},ownKeys:function(t){return Reflect.ownKeys(bu(t))},set:function(t,e,n){var r=mA(bu(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=zy(bu(t),e),i=o==null?void 0:o[vr];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||sE(t.t,e)))return!0;$y(t),cE(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 zy(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,$y(t),cE(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=bu(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Qr(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Qr(12)}},pg={};tp(dg,function(t,e){pg[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),pg.deleteProperty=function(t,e){return dg.deleteProperty.call(this,t[0],e)},pg.set=function(t,e,n){return dg.set.call(this,t[0],e,n,t[0])};var VG=function(){function t(n){var r=this;this.g=wA,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 y=this;d===void 0&&(d=u);for(var g=arguments.length,m=Array(g>1?g-1:0),v=1;v<g;v++)m[v-1]=arguments[v];return s.produce(d,function(h){var b;return(b=i).call.apply(b,[y,h].concat(m))})}}var l;if(typeof i!="function"&&Qr(6),a!==void 0&&typeof a!="function"&&Qr(7),us(o)){var c=gA(r),f=fE(r,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?av(c):lE(c)}return typeof Promise!="undefined"&&l instanceof Promise?l.then(function(d){return Ry(c,a),My(d,c)},function(d){throw av(c),d}):(Ry(c,a),My(l,c))}if(!o||typeof o!="object")return(l=i(o))===Tj?void 0:(l===void 0&&(l=o),r.F&&tC(l,!0),l);Qr(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){us(n)||Qr(8),as(n)&&(n=RG(n));var r=gA(this),o=fE(this,n,void 0);return o[vr].C=!0,lE(r),o},e.finishDraft=function(n,r){var o=(n&&n[vr]).A;return Ry(o,r),My(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!wA&&Qr(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=gi("Patches").$;return as(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),ir=new VG,im=ir.produce;ir.produceWithPatches.bind(ir),ir.setAutoFreeze.bind(ir),ir.setUseProxies.bind(ir),ir.applyPatches.bind(ir);var CA=ir.createDraft.bind(ir),xA=ir.finishDraft.bind(ir);function Go(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lv=new WeakMap,Xc=new WeakMap,DA=new WeakMap,SA=new WeakMap,AA=new WeakMap,OA=new WeakMap;function kA(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 t0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kA(Object(n),!0).forEach(function(r){Go(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var WG=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of C.pathRefs(t))Eq.transform(n,e);for(var r of C.pointRefs(t))Cq.transform(r,e);for(var o of C.rangeRefs(t))Dq.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=lv.get(t)||[],l=GG(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);lv.set(t,a),N.transform(t,e),t.operations.push(e),C.normalize(t),e.type==="set_selection"&&(t.marks=null),Xc.get(t)||(Xc.set(t,!0),Promise.resolve().then(()=>{Xc.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(L.isExpanded(r))N.setNodes(t,{[e]:n},{match:at.isText,split:!0});else{var o=t0(t0({},C.marks(t)||{}),{},{[e]:n});t.marks=o,Xc.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&L.isExpanded(n)&&N.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?et.fragment(t,e):[]},insertBreak:()=>{N.splitNodes(t,{always:!0})},insertFragment:e=>{N.insertFragment(t,e)},insertNode:e=>{N.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=t0({text:e},r);N.insertNodes(t,o)}else N.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!at.isText(n))if(dt.isElement(n)&&n.children.length===0)N.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!C.isEditor(n)&&dt.isElement(n)&&(t.isInline(n)||n.children.length===0||at.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=et.get(t,r);if(!at.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(at.isText(s)||dt.isElement(s)&&t.isInline(s))!==o?(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--):dt.isElement(s)?t.isInline(s)&&(l!=null&&at.isText(l)?c&&(N.insertNodes(t,{text:""},{at:r.concat(i+1),voids:!0}),i++):(N.insertNodes(t,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&at.isText(l)&&(at.equals(s,l,{loose:!0})?(N.mergeNodes(t,{at:r.concat(i),voids:!0}),i--):l.text===""?(N.removeNodes(t,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:n}=t;if(n)if(L.isExpanded(n))N.unsetNodes(t,e,{match:at.isText,split:!0});else{var r=t0({},C.marks(t)||{});delete r[e],t.marks=r,Xc.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=at.isText(n)?[]:Array.from(et.nodes(n),w=>{var[,E]=w;return r.concat(E)});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 y=j.transform(d,t);c.push(y)}var g=c[c.length-1],m=s[s.length-1],v=g.concat(m);return[...l,...c,v];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 wi(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 At,dE=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?ZG(t):t,o=At.None,i=At.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=lq(s,l);if([o,i]=n?[i,c]:[c,o],El(o,At.ZWJ)&&El(i,At.ExtPict)&&!pq(n?t.substring(0,a):t.substring(0,t.length-a))||El(o,At.RI)&&El(i,At.RI)&&!(u=u!==null?!u:!!n||gq(t.substring(0,t.length-a)))||o!==At.None&&i!==At.None&&fq(o,i))break;a+=s.length}return a||1},qG=/\s/,KG=/[\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]/,pE=(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)]},XG=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(qG.test(e))return!1;if(YG.test(e)){var o=dE(n,r),[i,a]=pE(n,o,r);if(t(i,a,r))return!0}return!KG.test(e)},ZG=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(QG(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(JG(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},JG=t=>t>=55296&&t<=56319,QG=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"})(At||(At={}));var tq=/^(?:[\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])$/,eq=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,nq=/^(?:[\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])$/,rq=/^[\u1100-\u115F\uA960-\uA97C]$/,oq=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,iq=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,aq=/^[\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]$/,uq=/^[\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]$/,sq=/^(?:[\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])$/,lq=(t,e)=>{var n=At.Any;return t.search(tq)!==-1&&(n|=At.Extend),e===8205&&(n|=At.ZWJ),e>=127462&&e<=127487&&(n|=At.RI),t.search(eq)!==-1&&(n|=At.Prepend),t.search(nq)!==-1&&(n|=At.SpacingMark),t.search(rq)!==-1&&(n|=At.L),t.search(oq)!==-1&&(n|=At.V),t.search(iq)!==-1&&(n|=At.T),t.search(aq)!==-1&&(n|=At.LV),t.search(uq)!==-1&&(n|=At.LVT),t.search(sq)!==-1&&(n|=At.ExtPict),n};function El(t,e){return(t&e)!=0}var cq=[[At.L,At.L|At.V|At.LV|At.LVT],[At.LV|At.V,At.V|At.T],[At.LVT|At.T,At.T],[At.Any,At.Extend|At.ZWJ],[At.Any,At.SpacingMark],[At.Prepend,At.Any],[At.ZWJ,At.ExtPict],[At.RI,At.RI]];function fq(t,e){return cq.findIndex(n=>El(t,n[0])&&El(e,n[1]))===-1}var dq=/(?:[\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$/,pq=t=>t.search(dq)!==-1,hq=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,gq=t=>{var e=t.match(hq);return e!==null&&e[0].length/2%2==1},BA=t=>_n(t)&&et.isNodeList(t.children)&&!C.isEditor(t),dt={isAncestor:t=>_n(t)&&et.isNodeList(t.children),isElement:BA,isElementList:t=>Array.isArray(t)&&t.every(e=>dt.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 BA(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},vq=["text"],mq=["text"];function TA(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 Ms(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?TA(Object(n),!0).forEach(function(r){Go(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):TA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var FA=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(!at.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,Ms(Ms({},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,Ms(Ms({},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 et.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>C.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>at.isText(n)||C.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>at.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)=>dt.isElement(e)&&!t.isInline(e),isEditor(t){if(!_n(t))return!1;var e=FA.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||_n(t.marks))&&(t.selection===null||L.isRange(t.selection))&&et.isNodeList(t.children)&&ca.isOperationList(t.operations);return FA.set(t,n),n},isEnd(t,e,n){var r=C.end(t,n);return Ft.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&&at.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>dt.isElement(e)&&t.isInline(e),isNormalizing(t){var e=DA.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=C.start(t,n);return Ft.equals(e,r)},isVoid:(t,e)=>dt.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[et.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 et.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(L.isExpanded(n)){var[r]=C.nodes(t,{match:at.isText});if(r){var[o]=r;return wi(o,vq)}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:at.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 wi(u,mq)},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[et.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(yq.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=et.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&C.isVoid(t,w)}}),y=[];for(var[g,m]of d){var v=p&&j.compare(m,p[1])===0;if(r!=="highest"||!v){if(u(g,m))if(r==="lowest"&&v)p=[g,m];else{var h=r==="lowest"?p:[g,m];h&&(o?y.push(h):yield h),p=[g,m]}else if(o&&!v&&at.isText(g))return}}r==="lowest"&&p&&(o?y.push(p):yield p),o&&(yield*y)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>lv.get(i)||[];if(C.isNormalizing(t)){if(n){var o=Array.from(et.nodes(t),i=>{var[,a]=i;return a});lv.set(t,o)}r(t).length!==0&&C.withoutNormalizing(t,()=>{for(var i of r(t))if(et.has(t,i)){var a=C.node(t,i),[u,s]=a;dt.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(`
- 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.
- `));var f=r(t).pop();if(et.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]=et.first(t,e);e=i}else if(o==="end"){var[,a]=et.last(t,e);e=a}}return L.isRange(e)&&(e=o==="start"?L.start(e):o==="end"?L.end(e):j.common(e.anchor.path,e.focus.path)),Ft.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>et.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=SA.get(t);return e||(e=new Set,SA.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]=et.last(t,e);o=i}else{var[,a]=et.first(t,e);o=a}var u=et.get(t,o);if(!at.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(L.isRange(e)){var[s,l]=L.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=AA.get(t);return e||(e=new Set,AA.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]=L.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,y=0;for(var[g,m]of C.nodes(t,{at:n,reverse:o,voids:i})){if(dt.isElement(g)){if(!i&&t.isVoid(g)){yield C.start(t,m);continue}if(t.isInline(g))continue;if(C.hasInlines(t,g)){var v=j.isAncestor(m,s.path)?s:C.end(t,m),h=j.isAncestor(m,u.path)?u:C.start(t,m);f=C.string(t,{anchor:h,focus:v},{voids:i}),c=!0}}if(at.isText(g)){var b=j.equals(m,l.path);for(b?(d=o?l.offset:g.text.length-l.offset,y=l.offset):(d=g.text.length,y=o?d:0),(b||c||r==="offset")&&(yield{path:m,offset:y},c=!1);;){if(p===0){if(f==="")break;p=w(f,r,o),f=pE(f,p,o)[1]}if(y=o?y-p:y+p,(d-=p)<0){p=-d;break}p=0,yield{path:m,offset:y}}}}}function w(E,D,x){return D==="character"?dE(E,x):D==="word"?function(O){for(var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,U=!1;O.length>0;){var M=dE(O,F),[Y,W]=pE(O,M,F);if(XG(Y,W,F))U=!0,R+=M;else{if(U)break;R+=M}O=W}return R}(E,x):D==="line"||D==="block"?E.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)=>L.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=OA.get(t);return e||(e=new Set,OA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){DA.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]=L.edges(o),u="";for(var[s,l]of C.nodes(t,{at:o,match:at.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]=L.edges(e);if(o.offset!==0||i.offset!==0||L.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:at.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,Ms(Ms({},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)}},yq={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},bq=["children"],wq=["text"],_A=new WeakMap,et={ancestor(t,e){var n=et.get(t,e);if(at.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=[et.ancestor(t,r),r];yield o}},child(t,e){if(at.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=et.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=et.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[et.get(t,r),r]},descendant(t,e){var n=et.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 et.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 et.nodes(t,e))dt.isElement(n)&&(yield[n,r])},extractProps:t=>dt.isAncestor(t)?wi(t,bq):wi(t,wq),first(t,e){for(var n=e.slice(),r=et.get(t,n);r&&!at.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(at.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=im({children:t.children},r=>{var[o,i]=L.edges(e),a=et.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!L.includes(e,d)}});for(var[,u]of a){if(!L.includes(e,u)){var s=et.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=et.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=et.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(at.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(at.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:t=>at.isText(t)||dt.isElement(t)||C.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=_A.get(t);if(e!==void 0)return e;var n=t.every(r=>et.isNode(r));return _A.set(t,n),n},last(t,e){for(var n=e.slice(),r=et.get(t,n);r&&!at.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=et.get(t,e);if(!at.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=et.get(t,r);yield[o,r]}},matches:(t,e)=>dt.isElement(t)&&dt.isElementProps(e)&&dt.matches(t,e)||at.isText(t)&&at.isTextProps(e)&&at.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)||at.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(et.has(t,l)){u=l,s=et.get(t,u);continue}}r&&u[u.length-1]!==0?(u=j.previous(u),s=et.get(t,u)):(u=j.parent(u),s=et.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=et.get(t,u)}},parent(t,e){var n=j.parent(e),r=et.get(t,n);if(at.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=>at.isText(t)?t.text:t.children.map(et.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of et.nodes(t,e))at.isText(n)&&(yield[n,r])}};function PA(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 We(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?PA(Object(n),!0).forEach(function(r){Go(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ca={isNodeOperation:t=>ca.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!_n(t))return!1;switch(t.type){case"insert_node":case"remove_node":return j.isPath(t.path)&&et.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)&&_n(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&_n(t.properties)&&_n(t.newProperties);case"set_selection":return t.properties===null&&L.isRange(t.newProperties)||t.newProperties===null&&L.isRange(t.properties)||_n(t.properties)&&_n(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&_n(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>ca.isOperation(e)),isSelectionOperation:t=>ca.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>ca.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return We(We({},t),{},{type:"remove_node"});case"insert_text":return We(We({},t),{},{type:"remove_text"});case"merge_node":return We(We({},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 We(We({},t),{},{path:e,newPath:n});var r=j.transform(n,t),o=j.transform(j.next(n),t);return We(We({},t),{},{path:r,newPath:o});case"remove_node":return We(We({},t),{},{type:"insert_node"});case"remove_text":return We(We({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return We(We({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return We(We({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return We(We({},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 im(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)}}})}},Eq={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 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 NA(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){Go(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 Ft={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)=>Ft.compare(t,e)===1,isBefore:(t,e)=>Ft.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>_n(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return im(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,NA(NA({},n),{},{affinity:"forward"})))}else r.path=j.transform(i,e,n)}})}},Cq={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=Ft.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},xq=["anchor","focus"];function IA(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 L={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return L.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=L.edges(t);return e},equals:(t,e)=>Ft.equals(t.anchor,e.anchor)&&Ft.equals(t.focus,e.focus),includes(t,e){if(L.isRange(e)){if(L.includes(t,e.anchor)||L.includes(t,e.focus))return!0;var[n,r]=L.edges(t),[o,i]=L.edges(e);return Ft.isBefore(n,o)&&Ft.isAfter(r,i)}var[a,u]=L.edges(t),s=!1,l=!1;return Ft.isPoint(e)?(s=Ft.compare(e,a)>=0,l=Ft.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=wi(t,xq),[r,o]=L.edges(t),[i,a]=L.edges(e),u=Ft.isBefore(r,i)?i:r,s=Ft.isBefore(o,a)?o:a;return Ft.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?IA(Object(f),!0).forEach(function(p){Go(l,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):IA(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 Ft.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return Ft.equals(e,n)},isExpanded:t=>!L.isCollapsed(t),isForward:t=>!L.isBackward(t),isRange:t=>_n(t)&&Ft.isPoint(t.anchor)&&Ft.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=L.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return im(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=L.isCollapsed(r);L.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?L.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Ft.transform(r.anchor,e,{affinity:o}),l=Ft.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},Dq={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=L.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},Fj=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(_n(r)&&_n(o)){if(!Fj(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},Sq=["text"],Aq=["anchor","focus"];function LA(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 ti(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?LA(Object(n),!0).forEach(function(r){Go(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):LA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var at={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return wi(i,Sq)}return Fj(r?o(t):t,r?o(e):e)},isText:t=>_n(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>at.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=[ti({},t)];for(var r of e){var o=wi(r,Aq),[i,a]=L.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,y=void 0;if(a.offset<s){var g=a.offset-f;y=ti(ti({},p),{},{text:p.text.slice(g)}),p=ti(ti({},p),{},{text:p.text.slice(0,g)})}if(i.offset>f){var m=i.offset-f;d=ti(ti({},p),{},{text:p.text.slice(0,m)}),p=ti(ti({},p),{},{text:p.text.slice(m)})}Object.assign(p,o),d&&u.push(d),u.push(p),y&&u.push(y)}}n=u}return n}};function RA(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 Zc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?RA(Object(n),!0).forEach(function(r){Go(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):RA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Oq={transform(t,e){t.children=CA(t.children);var n=t.selection&&CA(t.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=et.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 L.points(o))o[f]=Ft.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:y}=i;if(y.length===0)break;var g=et.leaf(r,p),m=g.text.slice(0,d),v=g.text.slice(d);if(g.text=m+y+v,o)for(var[h,b]of L.points(o))o[b]=Ft.transform(h,i);break;case"merge_node":var{path:w}=i,E=et.get(r,w),D=j.previous(w),x=et.get(r,D),O=et.parent(r,w),F=w[w.length-1];if(at.isText(E)&&at.isText(x))x.text+=E.text;else{if(at.isText(E)||at.isText(x))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(E," ").concat(x));x.children.push(...E.children)}if(O.children.splice(F,1),o)for(var[R,U]of L.points(o))o[U]=Ft.transform(R,i);break;case"move_node":var{path:M,newPath:Y}=i;if(j.isAncestor(M,Y))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(Y,"] because the destination is inside itself."));var W=et.get(r,M),G=et.parent(r,M),K=M[M.length-1];G.children.splice(K,1);var ot=j.transform(M,i),ft=et.get(r,j.parent(ot)),ct=ot[ot.length-1];if(ft.children.splice(ct,0,W),o)for(var[st,k]of L.points(o))o[k]=Ft.transform(st,i);break;case"remove_node":var{path:S}=i,P=S[S.length-1];if(et.parent(r,S).children.splice(P,1),o)for(var[H,X]of L.points(o)){var V=Ft.transform(H,i);if(o!=null&&V!=null)o[X]=V;else{var ut=void 0,mt=void 0;for(var[yt,Dt]of et.texts(r)){if(j.compare(Dt,S)!==-1){mt=[yt,Dt];break}ut=[yt,Dt]}var q=!1;ut&&mt&&(q=j.equals(mt[1],S)?!j.hasPrevious(mt[1]):j.common(ut[1],S).length<j.common(mt[1],S).length),ut&&!q?(H.path=ut[1],H.offset=ut[0].text.length):mt?(H.path=mt[1],H.offset=0):o=null}}break;case"remove_text":var{path:Rt,offset:kt,text:ht}=i;if(ht.length===0)break;var Bt=et.leaf(r,Rt),_e=Bt.text.slice(0,kt),Ut=Bt.text.slice(kt+ht.length);if(Bt.text=_e+Ut,o)for(var[re,we]of L.points(o))o[we]=Ft.transform(re,i);break;case"set_node":var{path:Sn,properties:Ht,newProperties:Un}=i;if(Sn.length===0)throw new Error("Cannot set properties on the root node!");var Vr=et.get(r,Sn);for(var go in Un){if(go==="children"||go==="text")throw new Error('Cannot set the "'.concat(go,'" property of nodes!'));var _s=Un[go];_s==null?delete Vr[go]:Vr[go]=_s}for(var nu in Ht)Un.hasOwnProperty(nu)||delete Vr[nu];break;case"set_selection":var{newProperties:Wr}=i;if(Wr==null)o=Wr;else{if(o==null){if(!L.isRange(Wr))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Wr)," when there is no current selection."));o=Zc({},Wr)}for(var vo in Wr){var Ko=Wr[vo];if(Ko==null){if(vo==="anchor"||vo==="focus")throw new Error('Cannot remove the "'.concat(vo,'" selection property'));delete o[vo]}else o[vo]=Ko}}break;case"split_node":var{path:An,position:On,properties:kn}=i;if(An.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(An,"] because the root node cannot be split."));var Ln,cn=et.get(r,An),Cr=et.parent(r,An),Rc=An[An.length-1];if(at.isText(cn)){var Ai=cn.text.slice(0,On),Yo=cn.text.slice(On);cn.text=Ai,Ln=Zc(Zc({},kn),{},{text:Yo})}else{var Ps=cn.children.slice(0,On),ru=cn.children.slice(On);cn.children=Ps,Ln=Zc(Zc({},kn),{},{children:ru})}if(Cr.children.splice(Rc+1,0,Ln),o)for(var[js,Gr]of L.points(o))o[Gr]=Ft.transform(js,i)}return o})(t,n,e)}finally{t.children=xA(t.children),t.selection=n?as(n)?xA(n):n:null}}},kq=["text"],Bq=["children"];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 zA(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){Go(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 Tq={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(et.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),L.isRange(a))if(r||(a=C.unhangRange(t,a)),L.isCollapsed(a))a=a.anchor;else{var[,c]=L.edges(a),f=C.pointRef(t,c);N.delete(t,{at:a}),a=f.unref()}if(Ft.isPoint(a)){u==null&&(u=at.isText(l)?D=>at.isText(D):t.isInline(l)?D=>at.isText(D)||C.isInline(t,D):D=>C.isBlock(t,D));var[p]=C.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,y=C.pathRef(t,d),g=C.isEnd(t,a,d);N.splitNodes(t,{at:a,match:u,mode:i,voids:o});var m=y.unref();a=g?j.next(m):m}var v=j.parent(a),h=a[a.length-1];if(o||!C.void(t,{at:v})){for(var b of e){var w=v.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=j.next(a)}if(a=j.previous(a),s){var E=C.end(t,a);E&&N.select(t,E)}}}})},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)?zs(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[,w]=b;return C.pathRef(t,w)});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:y}=f.children;if(y===1){var g=j.next(p);N.moveNodes(t,{at:l,to:g,voids:o}),N.removeNodes(t,{at:p,voids:o})}else if(d===0)N.moveNodes(t,{at:l,to:p,voids:o});else if(d===y-1){var m=j.next(p);N.moveNodes(t,{at:l,to:m,voids:o})}else{var v=j.next(l),h=j.next(p);N.splitNodes(t,{at:v,voids:o}),N.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=F=>u.children.includes(F)}else n=F=>C.isBlock(t,F);if(!o&&L.isRange(r)&&(r=C.unhangRange(t,r)),L.isRange(r))if(L.isCollapsed(r))r=r.anchor;else{var[,s]=L.edges(r),l=C.pointRef(t,s);N.delete(t,{at:r}),r=l.unref(),e.at==null&&N.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,[y,g]=f;if(d.length!==0&&g.length!==0){var m,v,h=j.next(g),b=j.common(d,g),w=j.isSibling(d,g),E=Array.from(C.levels(t,{at:d}),F=>{var[R]=F;return R}).slice(b.length).slice(0,-1),D=C.above(t,{at:d,mode:"highest",match:F=>E.includes(F)&&_j(t,F)}),x=D&&C.pathRef(t,D[1]);if(at.isText(p)&&at.isText(y)){var O=wi(p,kq);v=y.text.length,m=O}else{if(!dt.isElement(p)||!dt.isElement(y))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(y)));O=wi(p,Bq),v=y.children.length,m=O}w||N.moveNodes(t,{at:d,to:h,voids:i}),x&&N.removeNodes(t,{at:x.current,voids:i}),dt.isElement(y)&&C.isEmpty(t,y)||at.isText(y)&&y.text===""&&g[g.length-1]!==0?N.removeNodes(t,{at:g,voids:i}):t.apply({type:"merge_node",path:h,position:v,properties:m}),x&&x.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)?zs(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[,y]=d;return C.pathRef(t,y)});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)?zs(t,i):p=>C.isBlock(t,p)),!n&&L.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)?zs(t,o):E=>C.isBlock(t,E)),!i&&L.isRange(o)&&(o=C.unhangRange(t,o)),u&&L.isRange(o)){if(L.isCollapsed(o)&&C.leaf(t,o.anchor)[0].text.length>0)return;var l=C.rangeRef(t,o,{affinity:"inward"}),[c,f]=L.edges(o),p=a==="lowest"?"lowest":"highest",d=C.isEnd(t,f,f.path);N.splitNodes(t,{at:f,match:r,mode:p,voids:s,always:!d});var y=C.isStart(t,c,c.path);N.splitNodes(t,{at:c,match:r,mode:p,voids:s,always:!y}),o=l.unref(),n.at==null&&N.select(t,o)}for(var[g,m]of C.nodes(t,{at:o,match:r,mode:a,voids:s})){var v={},h={};if(m.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(v[w]=g[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:m,properties:v,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=W=>C.isBlock(t,W)),L.isRange(i)&&(i=Fq(t,i)),j.isPath(i)){var s=i,l=C.point(t,s),[c]=C.parent(t,s);o=W=>W===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[y,g]=d;if(dt.isElement(y)&&t.isInline(y)){var m=C.after(t,g);if(!m){var v=j.next(g);N.insertNodes(t,{text:""},{at:v,voids:r}),m=C.point(t,v)}i=m,u=!0}a=i.path.length-g.length+1,u=!0}var h=C.pointRef(t,i),b=i.path.length-a,[,w]=p,E=i.path.slice(0,b),D=a===0?i.offset:i.path[b]+0;for(var[x,O]of C.levels(t,{at:E,reverse:!0,voids:r})){var F=!1;if(O.length<w.length||O.length===0||!r&&C.isVoid(t,x))break;var R=f.current,U=C.isEnd(t,R,O);if(u||!f||!C.isEdge(t,R,O)){F=!0;var M=et.extractProps(x);t.apply({type:"split_node",path:O,position:D,properties:M})}D=O[O.length-1]+(F||U?1:0)}if(e.at==null){var Y=h.current||C.end(t,[]);N.select(t,Y)}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;N.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)?zs(t,i):p=>C.isBlock(t,p)),j.isPath(i)&&(i=C.range(t,i));var u=L.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(),[y]=C.node(t,d),g=C.range(t,d);r&&u&&(g=L.intersection(u.current,g)),N.liftNodes(t,{at:g,match:m=>dt.isAncestor(y)&&y.children.includes(m),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)?zs(t,u):t.isInline(e)?m=>C.isInline(t,m)||at.isText(m):m=>C.isBlock(t,m)),o&&L.isRange(u)){var[s,l]=L.edges(u),c=C.rangeRef(t,u,{affinity:"inward"});N.splitNodes(t,{at:l,match:a,voids:i}),N.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&N.select(t,u)}var f=Array.from(C.nodes(t,{at:u,match:t.isInline(e)?m=>C.isBlock(t,m):m=>C.isEditor(m),mode:"lowest",voids:i}));for(var[,p]of f){var d=L.isRange(u)?L.intersection(u,C.range(t,p)):u;if(d){var y=Array.from(C.nodes(t,{at:d,match:a,mode:r,voids:i}));if(y.length>0){var g=function(){var[m]=y,v=y[y.length-1],[,h]=m,[,b]=v;if(h.length===0&&b.length===0)return"continue";var w=j.equals(h,b)?j.parent(h):j.common(h,b),E=C.range(t,h,b),D=C.node(t,w),[x]=D,O=w.length+1,F=j.next(b.slice(0,O)),R=zA(zA({},e),{},{children:[]});N.insertNodes(t,R,{at:F,voids:i}),N.moveNodes(t,{at:E,match:U=>dt.isAncestor(x)&&x.children.includes(U),to:F.concat(0),voids:i})}();if(g==="continue")continue}}}}})}},_j=(t,e)=>{if(dt.isElement(e)){var n=e;return!!C.isVoid(t,e)||n.children.length===1&&_j(t,n.children[0])}return!C.isEditor(e)},Fq=(t,e)=>{if(L.isCollapsed(e))return e.anchor;var[,n]=L.edges(e),r=C.pointRef(t,n);return N.delete(t,{at:e}),r.unref()},zs=(t,e)=>{var[n]=C.node(t,e);return r=>r===n};function $A(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 HA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$A(Object(n),!0).forEach(function(r){Go(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$A(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _q={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")N.select(t,r.anchor);else if(n==="focus")N.select(t,r.focus);else if(n==="start"){var[o]=L.edges(r);N.select(t,o)}else if(n==="end"){var[,i]=L.edges(r);N.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=L.isBackward(n)?"focus":"anchor"),a==="end"&&(a=L.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)}N.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=C.range(t,e),n)N.setSelection(t,e);else{if(!L.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=L.isBackward(r)?"focus":"anchor"),o==="end"&&(o=L.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;N.setSelection(t,{[o==="anchor"?"anchor":"focus"]:HA(HA({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Ft.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!Ft.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})}}},Pq={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(L.isRange(a)&&L.isCollapsed(a)&&(a=a.anchor),Ft.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))N.removeNodes(t,{at:a,voids:i});else if(!L.isCollapsed(a)){if(!u){var[,f]=L.edges(a),p=C.end(t,[]);Ft.equals(f,p)||(a=C.unhangRange(t,a,{voids:i}))}var[d,y]=L.edges(a),g=C.above(t,{match:mt=>C.isBlock(t,mt),at:d,voids:i}),m=C.above(t,{match:mt=>C.isBlock(t,mt),at:y,voids:i}),v=g&&m&&!j.equals(g[1],m[1]),h=j.equals(d.path,y.path),b=i?null:C.void(t,{at:d,mode:"highest"}),w=i?null:C.void(t,{at:y,mode:"highest"});if(b){var E=C.before(t,d);E&&g&&j.isAncestor(g[1],E.path)&&(d=E)}if(w){var D=C.after(t,y);D&&m&&j.isAncestor(m[1],D.path)&&(y=D)}var x,O=[];for(var F of C.nodes(t,{at:a,voids:i})){var[R,U]=F;x&&j.compare(U,x)===0||(!i&&C.isVoid(t,R)||!j.isCommon(U,d.path)&&!j.isCommon(U,y.path))&&(O.push(F),x=U)}var M=Array.from(O,mt=>{var[,yt]=mt;return C.pathRef(t,yt)}),Y=C.pointRef(t,d),W=C.pointRef(t,y);if(!h&&!b){var G=Y.current,[K]=C.leaf(t,G),{path:ot}=G,{offset:ft}=d,ct=K.text.slice(ft);ct.length>0&&t.apply({type:"remove_text",path:ot,offset:ft,text:ct})}for(var st of M){var k=st.unref();N.removeNodes(t,{at:k,voids:i})}if(!w){var S=W.current,[P]=C.leaf(t,S),{path:H}=S,X=h?d.offset:0,V=P.text.slice(X,y.offset);V.length>0&&t.apply({type:"remove_text",path:H,offset:X,text:V})}!h&&v&&W.current&&Y.current&&N.mergeNodes(t,{at:W.current,hanging:!0,voids:i});var ut=n?Y.unref()||W.unref():W.unref()||Y.unref();e.at==null&&ut&&N.select(t,ut)}}})},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(L.isRange(i))if(r||(i=C.unhangRange(t,i)),L.isCollapsed(i))i=i.anchor;else{var[,a]=L.edges(i);if(!o&&C.void(t,{at:a}))return;var u=C.pointRef(t,a);N.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:S=>C.isInline(t,S),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:S=>C.isBlock(t,S),at:i,voids:o}),[,f]=c,p=C.isStart(t,i,f),d=C.isEnd(t,i,f),y=p&&d,g=!p||p&&d,m=!d,[,v]=et.first({children:e},[]),[,h]=et.last({children:e},[]),b=[],w=S=>{var[P,H]=S;return H.length!==0&&(!!y||!(g&&j.isAncestor(H,v)&&dt.isElement(P)&&!t.isVoid(P)&&!t.isInline(P))&&!(m&&j.isAncestor(H,h)&&dt.isElement(P)&&!t.isVoid(P)&&!t.isInline(P)))};for(var E of et.nodes({children:e},{pass:w}))w(E)&&b.push(E);var D=[],x=[],O=[],F=!0,R=!1;for(var[U]of b)dt.isElement(U)&&!t.isInline(U)?(F=!1,R=!0,x.push(U)):F?D.push(U):O.push(U);var[M]=C.nodes(t,{at:i,match:S=>at.isText(S)||C.isInline(t,S),mode:"highest",voids:o}),[,Y]=M,W=C.isStart(t,i,Y),G=C.isEnd(t,i,Y),K=C.pathRef(t,d?j.next(f):f),ot=C.pathRef(t,G?j.next(Y):Y),ft=C.pathRef(t,f);N.splitNodes(t,{at:i,match:S=>R?C.isBlock(t,S):at.isText(S)||C.isInline(t,S),mode:R?"lowest":"highest",voids:o});var ct=C.pathRef(t,!W||W&&G?j.next(Y):Y);if(N.insertNodes(t,D,{at:ct.current,match:S=>at.isText(S)||C.isInline(t,S),mode:"highest",voids:o}),y&&x.length&&N.delete(t,{at:ft.unref(),voids:o}),N.insertNodes(t,x,{at:K.current,match:S=>C.isBlock(t,S),mode:"lowest",voids:o}),N.insertNodes(t,O,{at:ot.current,match:S=>at.isText(S)||C.isInline(t,S),mode:"highest",voids:o}),!n.at){var st;st=O.length>0?j.previous(ot.current):x.length>0?j.previous(K.current):j.previous(ct.current);var k=C.end(t,st);N.select(t,k)}ct.unref(),K.unref(),ot.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)),L.isRange(o))if(L.isCollapsed(o))o=o.anchor;else{var i=L.end(o);if(!r&&C.void(t,{at:i}))return;var a=C.pointRef(t,i);N.delete(t,{at:o,voids:r}),o=a.unref(),N.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 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 e0(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){Go(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 N=e0(e0(e0(e0({},Oq),Tq),_q),Pq),hE="[object Map]",gE="[object Set]",jq=/^\[object .+?Constructor\]$/,Nq=/^(?:0|[1-9]\d*)$/,Iq="[\\ud800-\\udfff]",vE="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",mE="\\ud83c[\\udffb-\\udfff]",Pj="[^\\ud800-\\udfff]",jj="(?:\\ud83c[\\udde6-\\uddff]){2}",Nj="[\\ud800-\\udbff][\\udc00-\\udfff]",VA="(?:"+vE+"|"+mE+")?",Lq="[\\ufe0e\\ufe0f]?"+VA+("(?:\\u200d(?:"+[Pj,jj,Nj].join("|")+")[\\ufe0e\\ufe0f]?"+VA+")*"),Rq="(?:"+[Pj+vE+"?",vE,jj,Nj,Iq].join("|")+")",Mq=RegExp(mE+"(?="+mE+")|"+Rq+Lq,"g"),zq=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),$q=typeof fe=="object"&&fe&&fe.Object===Object&&fe,Hq=typeof self=="object"&&self&&self.Object===Object&&self,Cs=$q||Hq||Function("return this")();function Uq(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 Vq(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function Wq(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}function Gq(t){return function(e){return zq.test(e)}(t)?function(e){return e.match(Mq)||[]}(t):function(e){return e.split("")}(t)}var WA,GA,qq=Function.prototype,am=Object.prototype,Hy=Cs["__core-js_shared__"],qA=function(){var t=/[^.]+$/.exec(Hy&&Hy.keys&&Hy.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ij=qq.toString,cv=am.hasOwnProperty,nh=am.toString,Kq=RegExp("^"+Ij.call(cv).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),KA=Cs.Symbol,Uy=KA?KA.iterator:void 0,Yq=am.propertyIsEnumerable,Xq=(WA=Object.keys,GA=Object,function(t){return WA(GA(t))}),yE=rh(Cs,"DataView"),bE=rh(Cs,"Map"),wE=rh(Cs,"Promise"),EE=rh(Cs,"Set"),CE=rh(Cs,"WeakMap"),Zq=xs(yE),Jq=xs(bE),Qq=xs(wE),tK=xs(EE),eK=xs(CE);function nK(t,e){var n=Lj(t)||function(a){return function(u){return zj(u)&&oC(u)}(a)&&cv.call(a,"callee")&&(!Yq.call(a,"callee")||nh.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&&!cv.call(t,i)||o&&(i=="length"||iK(i,r))||n.push(i);return n}function rK(t){if(!Mj(t)||function(n){return!!qA&&qA in n}(t))return!1;var e=Rj(t)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch(o){}return r}(t)?Kq:jq;return e.test(xs(t))}function oK(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||am,e!==r)return Xq(t);var e,n,r,o=[];for(var i in Object(t))cv.call(t,i)&&i!="constructor"&&o.push(i);return o}function rh(t,e){var n=function(r,o){return r==null?void 0:r[o]}(t,e);return rK(n)?n:void 0}var wu=function(t){return nh.call(t)};function iK(t,e){return!!(e=e==null?9007199254740991:e)&&(typeof t=="number"||Nq.test(t))&&t>-1&&t%1==0&&t<e}function xs(t){if(t!=null){try{return Ij.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(yE&&wu(new yE(new ArrayBuffer(1)))!="[object DataView]"||bE&&wu(new bE)!=hE||wE&&wu(wE.resolve())!="[object Promise]"||EE&&wu(new EE)!=gE||CE&&wu(new CE)!="[object WeakMap]")&&(wu=function(t){var e=nh.call(t),n=e=="[object Object]"?t.constructor:void 0,r=n?xs(n):void 0;if(r)switch(r){case Zq:return"[object DataView]";case Jq:return hE;case Qq:return"[object Promise]";case tK:return gE;case eK:return"[object WeakMap]"}return e});var Lj=Array.isArray;function oC(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!Rj(t)}function Rj(t){var e=Mj(t)?nh.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function Mj(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function zj(t){return!!t&&typeof t=="object"}function aK(t){return t?Uq(t,function(e){return oC(e)?nK(e):oK(e)}(t)):[]}var YA=function(t){if(!t)return[];if(oC(t))return function(n){return typeof n=="string"||!Lj(n)&&zj(n)&&nh.call(n)=="[object String]"}(t)?Gq(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(Uy&&t[Uy])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(t[Uy]());var e=wu(t);return(e==hE?Vq:e==gE?Wq:aK)(t)};function XA(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function iC(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){t[n]===void 0?t[n]=e[n]:XA(e[n])&&XA(t[n])&&Object.keys(e[n]).length>0&&iC(t[n],e[n])})}var $j={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 oh(){var t=typeof document!="undefined"?document:{};return iC(t,$j),t}var uK={document:$j,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=="undefined"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout!="undefined"&&clearTimeout(t)}};function Ds(){var t=typeof window!="undefined"?window:{};return iC(t,uK),t}function xE(t){return xE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xE(t)}function fv(t,e){return fv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},fv(t,e)}function sK(){if(typeof Reflect=="undefined"||!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(t){return!1}}function DE(t,e,n){return DE=sK()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&fv(u,i.prototype),u},DE.apply(null,arguments)}function SE(t){var e=typeof Map=="function"?new Map:void 0;return SE=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 DE(n,arguments,xE(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),fv(r,n)},SE(t)}var fa=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}(SE(Array));function um(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,um(n)):e.push(n)}),e}function Hj(t,e){return Array.prototype.filter.call(t,e)}function B(t,e){var n=Ds(),r=oh(),o=[];if(!e&&t instanceof fa)return t;if(!t)return new fa(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 fa)return t;o=t}return new fa(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 Vl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=um(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function Wl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=um(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function Gl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=um(e.map(function(o){return o.split(" ")}));return Hj(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Rr(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 dv(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function ql(){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 Mo(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 zo(){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(g){var m=g.target;if(m){var v=g.target.dom7EventData||[];if(v.indexOf(g)<0&&v.unshift(g),B(m).is(o))i.apply(m,v);else for(var h=B(m).parents(),b=0;b<h.length;b+=1)B(h[b]).is(o)&&i.apply(h[b],v)}}function s(g){var m=g&&g.target&&g.target.dom7EventData||[];m.indexOf(g)<0&&m.unshift(g),i.apply(this,m)}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 y=c[l];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[y]||(p.dom7Listeners[y]=[]),p.dom7Listeners[y].push({listener:i,proxyListener:s}),p.addEventListener(y,s,a)}}return this}function ZA(){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 y=p[d];i&&y.listener===i||i&&y.listener&&y.listener.dom7proxy&&y.listener.dom7proxy===i?(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1))}}return this}function pv(){var t=Ds();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function hv(){var t=Ds();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function JA(){if(this.length>0){var t=Ds(),e=oh(),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 Kl(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function gv(){for(var t=Ds(),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 vv(t,e){var n,r=Ds();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 mv(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function QA(t){return B(Hj(this,t))}function Ia(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 yv(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 t7(t){var e,n,r=Ds(),o=oh(),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 fa){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}return!1}function Mr(){for(var t,e=oh(),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 fa)for(var i=0;i<t.length;i+=1)this[r].appendChild(t[i]);else this[r].appendChild(t)}return this}function e7(t){var e,n,r=oh();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 fa)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 Yl(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 Xl(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 Zl(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 Jl(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Ql(){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=fa.prototype;var lK="resize scroll".split(" ");function Uj(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)lK.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 n7=Uj("click"),La=Uj("focus"),cK="[object GeneratorFunction]",fK=/^(?:0|[1-9]\d*)$/;function dK(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}var sm=Object.prototype,AE=sm.hasOwnProperty,Vj=sm.toString,pK=sm.propertyIsEnumerable,hK=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);function gK(t,e){var n=Wj(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&aC(u)}(a)&&AE.call(a,"callee")&&(!pK.call(a,"callee")||Vj.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&&!AE.call(t,i)||o&&(i=="length"||bK(i,r))||n.push(i);return n}var r7,vK=(r7=function(t,e){return t&&mK(t,e,wK)},function(t,e){if(t==null)return t;if(!aC(t))return r7(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&e(o[r],r,o)!==!1;);return t}),mK=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 yK(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||sm,e!==r)return hK(t);var e,n,r,o=[];for(var i in Object(t))AE.call(t,i)&&i!="constructor"&&o.push(i);return o}function bK(t,e){return!!(e=e==null?9007199254740991:e)&&(typeof t=="number"||fK.test(t))&&t>-1&&t%1==0&&t<e}var Wj=Array.isArray;function aC(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)?Vj.call(e):"";return n=="[object Function]"||n==cK}(t)}function wK(t){return aC(t)?gK(t):yK(t)}function EK(t){return t}var uC=function(t,e){return(Wj(t)?dK:vK)(t,typeof e=="function"?e:EK)};let Gj=(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 CK=/^\s+|\s+$/g,xK=/^[-+]0x[0-9a-f]+$/i,DK=/^0b[01]+$/i,SK=/^0o[0-7]+$/i,AK=parseInt,OK=typeof fe=="object"&&fe&&fe.Object===Object&&fe,kK=typeof self=="object"&&self&&self.Object===Object&&self,BK=OK||kK||Function("return this")(),TK=Object.prototype.toString,FK=Math.max,_K=Math.min,Vy=function(){return BK.Date.now()};function PK(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 w=r,E=o;return r=o=void 0,l=b,a=t.apply(E,w)}function y(b){return l=b,u=setTimeout(m,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function m(){var b=Vy();if(g(b))return v(b);u=setTimeout(m,function(w){var E=e-(w-s);return f?_K(E,i-(w-l)):E}(b))}function v(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Vy(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(m,e),d(s)}return u===void 0&&(u=setTimeout(m,e)),a}return e=o7(e)||0,wv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?FK(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:v(Vy())},h}function wv(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)&&TK.call(r)=="[object Symbol]"}(t))return NaN;if(wv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=wv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(CK,"");var n=DK.test(t);return n||SK.test(t)?AK(t.slice(2),n?2:8):xK.test(t)?NaN:+t}var ss=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return wv(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),PK(t,e,{leading:r,maxWait:e,trailing:o})};const jK={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 np(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 OE=Array.isArray;function hg(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Wy(t){return t===void 0}function or(t){return t!==void 0}const i7=np("",{},[],void 0,void 0);function Jc(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 NK(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 IK=["create","update","remove","destroy","pre","post"];function LK(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=e!==void 0?e:jK;for(const f of IK)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"),y=d?"."+d.split(" ").join("."):"";return np(r.tagName(f).toLowerCase()+p+y,{},[],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,y;let g,m=f.data;if(m!==void 0){const b=(d=m.hook)===null||d===void 0?void 0:d.init;or(b)&&(b(f),m=f.data)}const v=f.children,h=f.sel;if(h==="!")Wy(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),E=b>0?b:h.length,D=w>0?w:h.length,x=b!==-1||w!==-1?h.slice(0,Math.min(E,D)):h,O=f.elm=or(m)&&or(g=m.ns)?r.createElementNS(g,x,m):r.createElement(x,m);for(E<D&&O.setAttribute("id",h.slice(E+1,D)),w>0&&O.setAttribute("class",h.slice(D+1).replace(/\./g," ")),g=0;g<n.create.length;++g)n.create[g](i7,f);if(OE(v))for(g=0;g<v.length;++g){const R=v[g];R!=null&&r.appendChild(O,a(R,p))}else hg(f.text)&&r.appendChild(O,r.createTextNode(f.text));const F=f.data.hook;or(F)&&((y=F.create)===null||y===void 0||y.call(F,i7,f),F.insert&&p.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,p,d,y,g,m){for(;y<=g;++y){const v=d[y];v!=null&&r.insertBefore(f,a(v,m),p)}}function s(f){var p,d;const y=f.data;if(y!==void 0){(d=(p=y==null?void 0:y.hook)===null||p===void 0?void 0:p.destroy)===null||d===void 0||d.call(p,f);for(let g=0;g<n.destroy.length;++g)n.destroy[g](f);if(f.children!==void 0)for(let g=0;g<f.children.length;++g){const m=f.children[g];m!=null&&typeof m!="string"&&s(m)}}}function l(f,p,d,y){for(var g,m;d<=y;++d){let v,h;const b=p[d];if(b!=null)if(or(b.sel)){s(b),v=n.remove.length+1,h=i(b.elm,v);for(let E=0;E<n.remove.length;++E)n.remove[E](b,h);const w=(m=(g=b==null?void 0:b.data)===null||g===void 0?void 0:g.hook)===null||m===void 0?void 0:m.remove;or(w)?w(b,h):h()}else r.removeChild(f,b.elm)}}function c(f,p,d){var y,g,m,v,h;const b=(y=p.data)===null||y===void 0?void 0:y.hook;(g=b==null?void 0:b.prepatch)===null||g===void 0||g.call(b,f,p);const w=p.elm=f.elm,E=f.children,D=p.children;if(f!==p){if(p.data!==void 0){for(let x=0;x<n.update.length;++x)n.update[x](f,p);(v=(m=p.data.hook)===null||m===void 0?void 0:m.update)===null||v===void 0||v.call(m,f,p)}Wy(p.text)?or(E)&&or(D)?E!==D&&function(x,O,F,R){let U,M,Y,W,G=0,K=0,ot=O.length-1,ft=O[0],ct=O[ot],st=F.length-1,k=F[0],S=F[st];for(;G<=ot&&K<=st;)ft==null?ft=O[++G]:ct==null?ct=O[--ot]:k==null?k=F[++K]:S==null?S=F[--st]:Jc(ft,k)?(c(ft,k,R),ft=O[++G],k=F[++K]):Jc(ct,S)?(c(ct,S,R),ct=O[--ot],S=F[--st]):Jc(ft,S)?(c(ft,S,R),r.insertBefore(x,ft.elm,r.nextSibling(ct.elm)),ft=O[++G],S=F[--st]):Jc(ct,k)?(c(ct,k,R),r.insertBefore(x,ct.elm,ft.elm),ct=O[--ot],k=F[++K]):(U===void 0&&(U=NK(O,G,ot)),M=U[k.key],Wy(M)?r.insertBefore(x,a(k,R),ft.elm):(Y=O[M],Y.sel!==k.sel?r.insertBefore(x,a(k,R),ft.elm):(c(Y,k,R),O[M]=void 0,r.insertBefore(x,Y.elm,ft.elm))),k=F[++K]);(G<=ot||K<=st)&&(G>ot?(W=F[st+1]==null?null:F[st+1].elm,u(x,W,F,K,st,R)):l(x,O,G,ot))}(w,E,D,d):or(D)?(or(f.text)&&r.setTextContent(w,""),u(w,null,D,0,D.length-1,d)):or(E)?l(w,E,0,E.length-1):or(f.text)&&r.setTextContent(w,""):f.text!==p.text&&(or(E)&&l(w,E,0,E.length-1),r.setTextContent(w,p.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,p)}}return function(f,p){let d,y,g;const m=[];for(d=0;d<n.pre.length;++d)n.pre[d]();for(function(v){return v.sel!==void 0}(f)||(f=o(f)),Jc(f,p)?c(f,p,m):(y=f.elm,g=r.parentNode(y),a(p,m),g!==null&&(r.insertBefore(g,p.elm,r.nextSibling(y)),l(g,[f],0,0))),d=0;d<m.length;++d)m[d].data.hook.insert(m[d]);for(d=0;d<n.post.length;++d)n.post[d]();return p}}function qj(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&&qj(o,e[r].children,e[r].sel)}}function tc(t,e,n){let r,o,i,a={};if(n!==void 0?(e!==null&&(a=e),OE(n)?r=n:hg(n)?o=n.toString():n&&n.sel&&(r=[n])):e!=null&&(OE(e)?r=e:hg(e)?o=e.toString():e&&e.sel?r=[e]:a=e),r!==void 0)for(i=0;i<r.length;++i)hg(r[i])&&(r[i]=np(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]!=="#"||qj(a,r,t),np(t,a,r,o,void 0)}function a7(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 RK={create:a7,update:a7};function u7(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 MK={create:u7,update:u7},s7=/[A-Z]/g;function l7(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(s7,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(s7,"-$&").toLowerCase(),i[r]))}const zK={create:l7,update:l7};function Kj(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++)Kj(t[r],e,n)}function $K(t,e){const n=t.type,r=e.data.on;r&&r[n]&&Kj(r[n],e,t)}function Gy(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){$K(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 HK={create:Gy,update:Gy,destroy:Gy};function c7(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 UK={create:c7,update:c7},f7=typeof window!="undefined"&&window.requestAnimationFrame.bind(window)||setTimeout;let qy=!1;function VK(t,e,n){(function(r){f7(function(){f7(r)})})(function(){t[e]=n})}function d7(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]||VK(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const WK={pre:function(){qy=!1},create:d7,update:d7,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;qy||(t.elm.offsetLeft,qy=!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 Yj(t,e){for(const n of t)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?Yj(n,e):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?e.push(np(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function Et(t,e,...n){const r=Yj(n,[]);return typeof t=="function"?t(e,r):r.length===1&&!r[0].sel&&r[0].text?tc(t,e,r[0].text):tc(t,e,r)}Et||(Et={});var GK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qK=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xj="\\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",KK="[\\ud800-\\udfff]",p7="["+Xj+"]",Ev="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Zj="\\d+",YK="[\\u2700-\\u27bf]",Jj="[a-z\\xdf-\\xf6\\xf8-\\xff]",Qj="[^\\ud800-\\udfff"+Xj+Zj+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",kE="\\ud83c[\\udffb-\\udfff]",tN="[^\\ud800-\\udfff]",sC="(?:\\ud83c[\\udde6-\\uddff]){2}",lC="[\\ud800-\\udbff][\\udc00-\\udfff]",gl="[A-Z\\xc0-\\xd6\\xd8-\\xde]",h7="(?:"+Jj+"|"+Qj+")",XK="(?:"+gl+"|"+Qj+")",g7="(?:"+Ev+"|"+kE+")?",eN="[\\ufe0e\\ufe0f]?"+g7+("(?:\\u200d(?:"+[tN,sC,lC].join("|")+")[\\ufe0e\\ufe0f]?"+g7+")*"),ZK="(?:"+[YK,sC,lC].join("|")+")"+eN,JK="(?:"+[tN+Ev+"?",Ev,sC,lC,KK].join("|")+")",QK=RegExp("['\u2019]","g"),tY=RegExp(Ev,"g"),eY=RegExp(kE+"(?="+kE+")|"+JK+eN,"g"),nY=RegExp([gl+"?"+Jj+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[p7,gl,"$"].join("|")+")",XK+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[p7,gl+h7,"$"].join("|")+")",gl+"?"+h7+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",gl+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Zj,ZK].join("|"),"g"),rY=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 ]/,iY=typeof fe=="object"&&fe&&fe.Object===Object&&fe,aY=typeof self=="object"&&self&&self.Object===Object&&self,uY=iY||aY||Function("return this")(),Ky,sY=(Ky={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},function(t){return Ky==null?void 0:Ky[t]});function nN(t){return rY.test(t)}function lY(t){return nN(t)?function(e){return e.match(eY)||[]}(t):function(e){return e.split("")}(t)}var cY=Object.prototype.toString,v7=uY.Symbol,m7=v7?v7.prototype:void 0,y7=m7?m7.toString:void 0;function fY(t){if(typeof t=="string")return t;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&cY.call(n)=="[object Symbol]"}(t))return y7?y7.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function dY(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 gg(t){return t==null?"":fY(t)}var b7,pY=(b7=function(t,e,n){return e=e.toLowerCase(),t+(n?hY(gg(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=gg(e),(n=r?void 0:n)===void 0?function(o){return oY.test(o)}(e)?function(o){return o.match(nY)||[]}(e):function(o){return o.match(GK)||[]}(e):e.match(n)||[]}(function(e){return(e=gg(e))&&e.replace(qK,sY).replace(tY,"")}(t).replace(QK,"")),b7,"")}),w7,hY=(w7="toUpperCase",function(t){var e=nN(t=gg(t))?lY(t):void 0,n=e?e[0]:t.charAt(0),r=e?dY(e,1).join(""):t.slice(1);return n[w7]()+r});for(var gY=pY,vY=typeof window!="undefined"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Yy={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},rN={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:vY?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},cC={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},n0=1;n0<20;n0++)cC["f"+n0]=111+n0;function oN(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 Yy)l[Yy[p]]=!1;var d=!0,y=!1,g=void 0;try{for(var m,v=c[Symbol.iterator]();!(d=(m=v.next()).done);d=!0){var h=m.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=iN(h),E=Yy[w];if(h.length>1&&!E&&!rN[h]&&!cC[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&E||(s?l.key=w:l.which=mY(h)),E&&(l[E]=!b||null)}}catch(D){y=!0,g=D}finally{try{!d&&v.return&&v.return()}finally{if(y)throw g}}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 mY(t){return t=iN(t),cC[t]||t.toUpperCase().charCodeAt(0)}function iN(t){return t=t.toLowerCase(),t=rN[t]||t}var yY=oN,Xy=function(t,e){return oN(t,{byKey:!0},e)},bY=/^\s+|\s+$/g,wY=/^[-+]0x[0-9a-f]+$/i,EY=/^0b[01]+$/i,CY=/^0o[0-7]+$/i,xY=parseInt,DY=typeof fe=="object"&&fe&&fe.Object===Object&&fe,SY=typeof self=="object"&&self&&self.Object===Object&&self,AY=DY||SY||Function("return this")(),OY=Object.prototype.toString,kY=Math.max,BY=Math.min,Zy=function(){return AY.Date.now()};function BE(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function E7(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&OY.call(r)=="[object Symbol]"}(t))return NaN;if(BE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=BE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(bY,"");var n=EY.test(t);return n||CY.test(t)?xY(t.slice(2),n?2:8):wY.test(t)?NaN:+t}var $s,aN=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 w=r,E=o;return r=o=void 0,l=b,a=t.apply(E,w)}function y(b){return l=b,u=setTimeout(m,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function m(){var b=Zy();if(g(b))return v(b);u=setTimeout(m,function(w){var E=e-(w-s);return f?BY(E,i-(w-l)):E}(b))}function v(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Zy(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(m,e),d(s)}return u===void 0&&(u=setTimeout(m,e)),a}return e=E7(e)||0,BE(n)&&(c=!!n.leading,i=(f="maxWait"in n)?kY(E7(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:v(Zy())},h},uN=ws(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]",y="[object Set]",g="[object String]",m="[object Symbol]",v="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",D="[object Int8Array]",x="[object Int16Array]",O="[object Int32Array]",F="[object Uint8Array]",R="[object Uint8ClampedArray]",U="[object Uint16Array]",M="[object Uint32Array]",Y=/\w*$/,W=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,K={};K[o]=K["[object Array]"]=K[h]=K[b]=K[i]=K[a]=K[w]=K[E]=K[D]=K[x]=K[O]=K[l]=K[c]=K[f]=K[d]=K[y]=K[g]=K[m]=K[F]=K[R]=K[U]=K[M]=!0,K["[object Error]"]=K[u]=K[v]=!1;var ot=typeof fe=="object"&&fe&&fe.Object===Object&&fe,ft=typeof self=="object"&&self&&self.Object===Object&&self,ct=ot||ft||Function("return this")(),st=e&&!e.nodeType&&e,k=st&&t&&!t.nodeType&&t,S=k&&k.exports===st;function P(T,z){return T.set(z[0],z[1]),T}function H(T,z){return T.add(z),T}function X(T,z,tt,lt){var $t=-1,ve=T?T.length:0;for(lt&&ve&&(tt=T[++$t]);++$t<ve;)tt=z(tt,T[$t],$t,T);return tt}function V(T){var z=!1;if(T!=null&&typeof T.toString!="function")try{z=!!(T+"")}catch(tt){}return z}function ut(T){var z=-1,tt=Array(T.size);return T.forEach(function(lt,$t){tt[++z]=[$t,lt]}),tt}function mt(T,z){return function(tt){return T(z(tt))}}function yt(T){var z=-1,tt=Array(T.size);return T.forEach(function(lt){tt[++z]=lt}),tt}var Dt=Array.prototype,q=Function.prototype,Rt=Object.prototype,kt=ct["__core-js_shared__"],ht=function(){var T=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),Bt=q.toString,_e=Rt.hasOwnProperty,Ut=Rt.toString,re=RegExp("^"+Bt.call(_e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),we=S?ct.Buffer:void 0,Sn=ct.Symbol,Ht=ct.Uint8Array,Un=mt(Object.getPrototypeOf,Object),Vr=Object.create,go=Rt.propertyIsEnumerable,_s=Dt.splice,nu=Object.getOwnPropertySymbols,Wr=we?we.isBuffer:void 0,vo=mt(Object.keys,Object),Ko=mo(ct,"DataView"),An=mo(ct,"Map"),On=mo(ct,"Promise"),kn=mo(ct,"Set"),Ln=mo(ct,"WeakMap"),cn=mo(Object,"create"),Cr=bo(Ko),Rc=bo(An),Ai=bo(On),Yo=bo(kn),Ps=bo(Ln),ru=Sn?Sn.prototype:void 0,js=ru?ru.valueOf:void 0;function Gr(T){var z=-1,tt=T?T.length:0;for(this.clear();++z<tt;){var lt=T[z];this.set(lt[0],lt[1])}}function xr(T){var z=-1,tt=T?T.length:0;for(this.clear();++z<tt;){var lt=T[z];this.set(lt[0],lt[1])}}function Xo(T){var z=-1,tt=T?T.length:0;for(this.clear();++z<tt;){var lt=T[z];this.set(lt[0],lt[1])}}function qr(T){this.__data__=new xr(T)}function Oi(T,z){var tt=_(T)||function(ie){return function(Kt){return function(nn){return!!nn&&typeof nn=="object"}(Kt)&&I(Kt)}(ie)&&_e.call(ie,"callee")&&(!go.call(ie,"callee")||Ut.call(ie)==o)}(T)?function(ie,Kt){for(var nn=-1,Bn=Array(ie);++nn<ie;)Bn[nn]=Kt(nn);return Bn}(T.length,String):[],lt=tt.length,$t=!!lt;for(var ve in T)!z&&!_e.call(T,ve)||$t&&(ve=="length"||Rh(ve,lt))||tt.push(ve);return tt}function Ih(T,z,tt){var lt=T[z];_e.call(T,z)&&Mh(lt,tt)&&(tt!==void 0||z in T)||(T[z]=tt)}function rr(T,z){for(var tt=T.length;tt--;)if(Mh(T[tt][0],z))return tt;return-1}function Mc(T,z,tt,lt,$t,ve,ie){var Kt;if(lt&&(Kt=ve?lt(T,$t,ve,ie):lt(T)),Kt!==void 0)return Kt;if(!oe(T))return T;var nn=_(T);if(nn){if(Kt=function(wt){var Qt=wt.length,Le=wt.constructor(Qt);return Qt&&typeof wt[0]=="string"&&_e.call(wt,"index")&&(Le.index=wt.index,Le.input=wt.input),Le}(T),!z)return function(wt,Qt){var Le=-1,Mt=wt.length;for(Qt||(Qt=Array(Mt));++Le<Mt;)Qt[Le]=wt[Le];return Qt}(T,Kt)}else{var Bn=yo(T),ou=Bn==u||Bn==s;if(Q(T))return function(wt,Qt){if(Qt)return wt.slice();var Le=new wt.constructor(wt.length);return wt.copy(Le),Le}(T,z);if(Bn==f||Bn==o||ou&&!ve){if(V(T))return ve?T:{};if(Kt=function(wt){return typeof wt.constructor!="function"||ki(wt)?{}:(Qt=Un(wt),oe(Qt)?Vr(Qt):{});var Qt}(ou?{}:T),!z)return function(wt,Qt){return Lh(wt,zc(wt),Qt)}(T,function(wt,Qt){return wt&&Lh(Qt,Nt(Qt),wt)}(Kt,T))}else{if(!K[Bn])return ve?T:{};Kt=function(wt,Qt,Le,Mt){var Yt=wt.constructor;switch(Qt){case h:return Ns(wt);case i:case a:return new Yt(+wt);case b:return function(Xt,Pe){var Rn=Pe?Ns(Xt.buffer):Xt.buffer;return new Xt.constructor(Rn,Xt.byteOffset,Xt.byteLength)}(wt,Mt);case w:case E:case D:case x:case O:case F:case R:case U:case M:return function(Xt,Pe){var Rn=Pe?Ns(Xt.buffer):Xt.buffer;return new Xt.constructor(Rn,Xt.byteOffset,Xt.length)}(wt,Mt);case l:return function(Xt,Pe,Rn){return X(Pe?Rn(ut(Xt),!0):ut(Xt),P,new Xt.constructor)}(wt,Mt,Le);case c:case g:return new Yt(wt);case d:return function(Xt){var Pe=new Xt.constructor(Xt.source,Y.exec(Xt));return Pe.lastIndex=Xt.lastIndex,Pe}(wt);case y:return function(Xt,Pe,Rn){return X(Pe?Rn(yt(Xt),!0):yt(Xt),H,new Xt.constructor)}(wt,Mt,Le);case m:return function(Xt){return js?Object(js.call(Xt)):{}}(wt)}}(T,Bn,Mc,z)}}ie||(ie=new qr);var Qo=ie.get(T);if(Qo)return Qo;if(ie.set(T,Kt),!nn)var Bi=tt?function(wt){return function(Qt,Le,Mt){var Yt=Le(Qt);return _(Qt)?Yt:function(Xt,Pe){for(var Rn=-1,Vn=Pe.length,Kr=Xt.length;++Rn<Vn;)Xt[Kr+Rn]=Pe[Rn];return Xt}(Yt,Mt(Qt))}(wt,Nt,zc)}(T):Nt(T);return function(wt,Qt){for(var Le=-1,Mt=wt?wt.length:0;++Le<Mt&&Qt(wt[Le],Le,wt)!==!1;);}(Bi||T,function(wt,Qt){Bi&&(wt=T[Qt=wt]),Ih(Kt,Qt,Mc(wt,z,tt,lt,Qt,T,ie))}),Kt}function Zo(T){return!(!oe(T)||function(z){return!!ht&&ht in z}(T))&&(vt(T)||V(T)?re:W).test(bo(T))}function Ns(T){var z=new T.constructor(T.byteLength);return new Ht(z).set(new Ht(T)),z}function Lh(T,z,tt,lt){tt||(tt={});for(var $t=-1,ve=z.length;++$t<ve;){var ie=z[$t],Kt=lt?lt(tt[ie],T[ie],ie,tt,T):void 0;Ih(tt,ie,Kt===void 0?T[ie]:Kt)}return tt}function Jo(T,z){var tt,lt,$t=T.__data__;return((lt=typeof(tt=z))=="string"||lt=="number"||lt=="symbol"||lt=="boolean"?tt!=="__proto__":tt===null)?$t[typeof z=="string"?"string":"hash"]:$t.map}function mo(T,z){var tt=function(lt,$t){return lt==null?void 0:lt[$t]}(T,z);return Zo(tt)?tt:void 0}Gr.prototype.clear=function(){this.__data__=cn?cn(null):{}},Gr.prototype.delete=function(T){return this.has(T)&&delete this.__data__[T]},Gr.prototype.get=function(T){var z=this.__data__;if(cn){var tt=z[T];return tt===n?void 0:tt}return _e.call(z,T)?z[T]:void 0},Gr.prototype.has=function(T){var z=this.__data__;return cn?z[T]!==void 0:_e.call(z,T)},Gr.prototype.set=function(T,z){return this.__data__[T]=cn&&z===void 0?n:z,this},xr.prototype.clear=function(){this.__data__=[]},xr.prototype.delete=function(T){var z=this.__data__,tt=rr(z,T);return!(tt<0)&&(tt==z.length-1?z.pop():_s.call(z,tt,1),!0)},xr.prototype.get=function(T){var z=this.__data__,tt=rr(z,T);return tt<0?void 0:z[tt][1]},xr.prototype.has=function(T){return rr(this.__data__,T)>-1},xr.prototype.set=function(T,z){var tt=this.__data__,lt=rr(tt,T);return lt<0?tt.push([T,z]):tt[lt][1]=z,this},Xo.prototype.clear=function(){this.__data__={hash:new Gr,map:new(An||xr),string:new Gr}},Xo.prototype.delete=function(T){return Jo(this,T).delete(T)},Xo.prototype.get=function(T){return Jo(this,T).get(T)},Xo.prototype.has=function(T){return Jo(this,T).has(T)},Xo.prototype.set=function(T,z){return Jo(this,T).set(T,z),this},qr.prototype.clear=function(){this.__data__=new xr},qr.prototype.delete=function(T){return this.__data__.delete(T)},qr.prototype.get=function(T){return this.__data__.get(T)},qr.prototype.has=function(T){return this.__data__.has(T)},qr.prototype.set=function(T,z){var tt=this.__data__;if(tt instanceof xr){var lt=tt.__data__;if(!An||lt.length<199)return lt.push([T,z]),this;tt=this.__data__=new Xo(lt)}return tt.set(T,z),this};var zc=nu?mt(nu,Object):function(){return[]},yo=function(T){return Ut.call(T)};function Rh(T,z){return!!(z=z==null?r:z)&&(typeof T=="number"||G.test(T))&&T>-1&&T%1==0&&T<z}function ki(T){var z=T&&T.constructor;return T===(typeof z=="function"&&z.prototype||Rt)}function bo(T){if(T!=null){try{return Bt.call(T)}catch(z){}try{return T+""}catch(z){}}return""}function Mh(T,z){return T===z||T!=T&&z!=z}(Ko&&yo(new Ko(new ArrayBuffer(1)))!=b||An&&yo(new An)!=l||On&&yo(On.resolve())!=p||kn&&yo(new kn)!=y||Ln&&yo(new Ln)!=v)&&(yo=function(T){var z=Ut.call(T),tt=z==f?T.constructor:void 0,lt=tt?bo(tt):void 0;if(lt)switch(lt){case Cr:return b;case Rc:return l;case Ai:return p;case Yo:return y;case Ps:return v}return z});var _=Array.isArray;function I(T){return T!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=r}(T.length)&&!vt(T)}var Q=Wr||function(){return!1};function vt(T){var z=oe(T)?Ut.call(T):"";return z==u||z==s}function oe(T){var z=typeof T;return!!T&&(z=="object"||z=="function")}function Nt(T){return I(T)?Oi(T):function(z){if(!ki(z))return vo(z);var tt=[];for(var lt in Object(z))_e.call(z,lt)&<!="constructor"&&tt.push(lt);return tt}(T)}t.exports=function(T){return Mc(T,!0,!0)}});function C7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var TY=0;function FY(t){return"__private_"+TY+++"_"+t}function _Y(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}/**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */function x7(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=_Y(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var sN=($s=FY("apply"),class{constructor(t){Object.defineProperty(this,$s,{value:PY}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(C7(this,$s)[$s],this):C7(this,$s)[$s](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 x7(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 x7(n,e)}});function PY(t){if(t==null||!t.strings)return;const e=this.locale;this.locale=Vt(Z({},e),{strings:Z(Z({},e.strings),t.strings)}),this.locale.pluralize=t.pluralize||e.pluralize}var lN=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)],y=Object.keys(e),g=0,m=y.length;g<m;g++){var v=y[g];if(v==="*"&&(f=f.concat(e[v])),d.length===2&&d[0]===v){f=f.concat(e[v]);break}}return f}(n);l.length&&function(c,f,p){for(var d=0,y=f.length;d<y&&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},jY={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:NY}=jY,D7=t=>crypto.getRandomValues(new Uint8Array(t)),S7=(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 IY={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)=>S7(t,e,D7),customRandom:S7,urlAlphabet:NY,random:D7},Jy=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 cN(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}cN.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 LY=/[\/\+\.]/,RY=function(t,e){function n(r){var o=function(i,a,u){var s=new cN(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,t,LY);return o&&o.length>=2}return e?n(e.split(";")[0]):n},MY=0;function zY(t){return"__private_"+MY+++"_"+t}var Qy=zY("publish");class fN{constructor(){Object.defineProperty(this,Qy,{value:$Y}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n=Z({},this.state),r=Z(Z({},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,Qy)[Qy](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function $Y(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(r=>{r(...e)})}fN.VERSION="2.0.3";var A7=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)}},O7={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 k7(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var HY=function(t){if(t==null&&(t=typeof navigator!="undefined"?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 tb(t){return t<10?`0${t}`:t.toString()}var r0=function(){const t=new Date;return`${tb(t.getHours())}:${tb(t.getMinutes())}:${tb(t.getSeconds())}`},dN={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] [${r0()}]`,...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] [${r0()}]`,...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] [${r0()}]`,...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] [${r0()}]`,...e)}}},UY={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}"}}},pN=IY;let hN,gN;function pt(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var VY=0;function en(t){return"__private_"+VY+++"_"+t}const{nanoid:WY}=pN,{justErrorsLogger:GY,debugLogger:qY}=dN;class ko extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError=="undefined"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class KY extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var wn=en("plugins"),Qc=en("storeUnsubscribe"),ei=en("emitter"),Su=en("preProcessors"),Au=en("uploaders"),ui=en("postProcessors"),Cd=en("checkRestrictions"),eb=en("checkMinNumberOfFiles"),rp=en("checkRequiredMetaFieldsOnFile"),nb=en("checkRequiredMetaFields"),on=en("showOrLogErrorAndThrow"),tf=en("assertNewUploadAllowed"),ef=en("checkAndCreateFileStateObject"),nf=en("startIfAutoProceed"),rb=en("addListeners"),Zr=en("updateOnlineStatus"),ni=en("createUpload"),ob=en("getUpload"),Tu=en("removeUpload"),ri=en("runUpload");hN=Symbol.for("uppy test: getPlugins"),gN=Symbol.for("uppy test: createUpload");class vN{constructor(e){Object.defineProperty(this,ri,{value:uX}),Object.defineProperty(this,Tu,{value:aX}),Object.defineProperty(this,ob,{value:iX}),Object.defineProperty(this,ni,{value:oX}),Object.defineProperty(this,rb,{value:rX}),Object.defineProperty(this,nf,{value:nX}),Object.defineProperty(this,ef,{value:eX}),Object.defineProperty(this,tf,{value:tX}),Object.defineProperty(this,on,{value:QY}),Object.defineProperty(this,nb,{value:JY}),Object.defineProperty(this,rp,{value:ZY}),Object.defineProperty(this,eb,{value:XY}),Object.defineProperty(this,Cd,{value:YY}),Object.defineProperty(this,wn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Qc,{writable:!0,value:void 0}),Object.defineProperty(this,ei,{writable:!0,value:lN()}),Object.defineProperty(this,Su,{writable:!0,value:new Set}),Object.defineProperty(this,Au,{writable:!0,value:new Set}),Object.defineProperty(this,ui,{writable:!0,value:new Set}),Object.defineProperty(this,Zr,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=UY;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 fN,logger:GY,infoTimeout:5e3};if(this.opts=Vt(Z(Z({},n),e),{restrictions:Z(Z({},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=qY),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=ss(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:HY(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:Z({},this.opts.meta),info:[],recoveredState:null}),pt(this,Qc)[Qc]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),pt(this,rb)[rb]()}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];pt(this,ei)[ei].emit(e,...r)}on(e,n){return pt(this,ei)[ei].on(e,n),this}once(e,n){return pt(this,ei)[ei].once(e,n),this}off(e,n){return pt(this,ei)[ei].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\u2019t set state for ${e} (the file could have been removed)`);this.setState({files:Vt(Z({},this.getState().files),{[e]:Z(Z({},this.getState().files[e]),n)})})}i18nInit(){const e=new sN([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=Vt(Z(Z({},this.opts),e),{restrictions:Z(Z({},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=Z({},this.getState().files),r={};Object.keys(n).forEach(o=>{const i=Z({},n[o]);i.progress=Z(Z({},i.progress),e),r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){pt(this,Su)[Su].add(e)}removePreProcessor(e){return pt(this,Su)[Su].delete(e)}addPostProcessor(e){pt(this,ui)[ui].add(e)}removePostProcessor(e){return pt(this,ui)[ui].delete(e)}addUploader(e){pt(this,Au)[Au].add(e)}removeUploader(e){return pt(this,Au)[Au].delete(e)}setMeta(e){const n=Z(Z({},this.getState().meta),e),r=Z({},this.getState().files);Object.keys(r).forEach(o=>{r[o]=Vt(Z({},r[o]),{meta:Z(Z({},r[o].meta),e)})}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r=Z({},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=Z(Z({},r[e].meta),n);r[e]=Vt(Z({},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(y=>{let{progress:g}=y;return!g.uploadComplete&&g.uploadStarted}),a=o.filter(y=>!y.progress.uploadStarted),u=o.filter(y=>y.progress.uploadStarted||y.progress.preprocess||y.progress.postprocess),s=o.filter(y=>y.progress.uploadStarted),l=o.filter(y=>y.isPaused),c=o.filter(y=>y.progress.uploadComplete),f=o.filter(y=>y.error),p=i.filter(y=>!y.isPaused),d=o.filter(y=>y.progress.preprocess||y.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(y=>y.isGhost)}}validateRestrictions(e,n){try{return pt(this,Cd)[Cd](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){pt(this,tf)[tf](e);const{files:n}=this.getState();let r=pt(this,ef)[ef](n,e);return n[r.id]&&n[r.id].isGhost&&(r=Vt(Z({},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:Vt(Z({},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}`),pt(this,nf)[nf](),r.id}addFiles(e){pt(this,tf)[tf]();const n=Z({},this.getState().files),r=[],o=[];for(let i=0;i<e.length;i++)try{let a=pt(this,ef)[ef](n,e[i]);n[a.id]&&n[a.id].isGhost&&(a=Vt(Z({},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}
- id: ${r[i].id}
- type: ${r[i].type}`)}),r.length>0&&pt(this,nf)[nf](),o.length>0){let i=`Multiple errors occurred while adding files:
- `;if(o.forEach(a=>{i+=`
- * ${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=Z({},r),a=Z({},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]=Vt(Z({},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=Z({},this.getState().files);Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r=Vt(Z({},e[n]),{isPaused:!0});e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e=Z({},this.getState().files);Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r=Vt(Z({},e[n]),{isPaused:!1,error:null});e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e=Z({},this.getState().files),n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i=Vt(Z({},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=pt(this,ni)[ni](n,{forceAllowNewUpload:!0});return pt(this,ri)[ri](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=pt(this,ni)[ni]([e],{forceAllowNewUpload:!0});return pt(this,ri)[ri](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:Vt(Z({},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}'.
- 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 pt(this,wn)[wn]?pt(this,wn)[wn][r.type].push(r):pt(this,wn)[wn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(pt(this,wn)[wn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[hN](e){return pt(this,wn)[wn][e]}iteratePlugins(e){Object.values(pt(this,wn)[wn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=pt(this,wn)[wn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:Vt(Z({},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(),pt(this,Qc)[Qc](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",pt(this,Zr)[Zr]),window.removeEventListener("offline",pt(this,Zr)[Zr]))}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]?pt(this,ri)[ri](e):(pt(this,Tu)[Tu](e),Promise.reject(new Error("Nonexistent upload")))}[gN](){return pt(this,ni)[ni](...arguments)}addResultData(e,n){if(!pt(this,ob)[ob](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o=Vt(Z({},r[e]),{result:Z(Z({},r[e].result),n)});this.setState({currentUploads:Vt(Z({},r),{[e]:o})})}upload(){var e;(e=pt(this,wn)[wn].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(()=>{pt(this,eb)[eb](n),pt(this,nb)[nb](n)}).catch(o=>{pt(this,on)[on](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=pt(this,ni)[ni](a);return pt(this,ri)[ri](u)}).catch(o=>{pt(this,on)[on](o,{showInformer:!1})}))}}function YY(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 ko(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&RY(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new ko(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 ko(this.i18n("exceedsSize",{size:Jy(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new ko(this.i18n("exceedsSize",{size:Jy(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new ko(this.i18n("inferiorSize",{size:Jy(r)}))}function XY(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new ko(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function ZY(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 ko(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(a),o.push(e[i]),pt(this,on)[on](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),r}function JY(t){const e=Object.keys(t).flatMap(n=>{const r=this.getFile(n);return pt(this,rp)[rp](r)});if(e.length)throw new KY(e,`${this.i18n("missingRequiredMetaField")}`)}function QY(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 tX(t){const{allowNewUpload:e}=this.getState();e===!1&&pt(this,on)[on](new ko(this.i18n("noMoreFilesAllowed")),{file:t})}function eX(t,e){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=A7(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in O7?O7[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=A7(r).extension,i=Boolean(e.isRemote),a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${k7(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${k7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}(Vt(Z({},e),{type:n}));if(this.checkIfFileAlreadyExists(a)){const f=new ko(this.i18n("noDuplicates",{fileName:r}));pt(this,on)[on](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:Z(Z({},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?pt(this,on)[on](new ko("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]);pt(this,Cd)[Cd](l,f)}catch(f){pt(this,on)[on](f,{file:l})}return l}function nX(){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 rX(){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}),pt(this,on)[on](o,{throwErr:!1})}else pt(this,on)[on](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:Vt(Z({},r),{postprocess:pt(this,ui)[ui].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:Vt(Z({},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=Z({},this.getState().files);n[e.id]=Vt(Z({},n[e.id]),{progress:Z({},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:Vt(Z({},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=Z({},this.getState().files);n[e.id]=Vt(Z({},n[e.id]),{progress:Z({},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&&pt(this,rp)[rp](e)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",pt(this,Zr)[Zr]),window.addEventListener("offline",pt(this,Zr)[Zr]),setTimeout(pt(this,Zr)[Zr],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=WY();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:Vt(Z({},o),{[i]:{fileIDs:t,step:0,result:{}}})}),i}function iX(t){const{currentUploads:e}=this.getState();return e[t]}function aX(t){const e=Z({},this.getState().currentUploads);delete e[t],this.setState({currentUploads:e})}function uX(t){return bn(this,null,function*(){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...pt(this,Su)[Su],...pt(this,Au)[Au],...pt(this,ui)[ui]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s=Vt(Z({},n),{step:a});this.setState({currentUploads:Vt(Z({},e),{[t]:s})}),yield u(s.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(a){throw this.emit("error",a),pt(this,Tu)[Tu](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);yield 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),pt(this,Tu)[Tu](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i})}vN.VERSION="2.1.3";var mN=vN,sX=ws(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(k,S){for(var P in S)k[P]=S[P];return k}function y(k){var S=k.parentNode;S&&S.removeChild(k)}function g(k,S,P){var H,X,V,ut={};for(V in S)V=="key"?H=S[V]:V=="ref"?X=S[V]:ut[V]=S[V];if(arguments.length>2&&(ut.children=arguments.length>3?n.call(arguments,2):P),typeof k=="function"&&k.defaultProps!=null)for(V in k.defaultProps)ut[V]===void 0&&(ut[V]=k.defaultProps[V]);return m(k,ut,H,X,null)}function m(k,S,P,H,X){var V={type:k,props:S,key:P,ref:H,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:X==null?++o:X};return X==null&&r.vnode!=null&&r.vnode(V),V}function v(k){return k.children}function h(k,S){this.props=k,this.context=S}function b(k,S){if(S==null)return k.__?b(k.__,k.__.__k.indexOf(k)+1):null;for(var P;S<k.__k.length;S++)if((P=k.__k[S])!=null&&P.__e!=null)return P.__e;return typeof k.type=="function"?b(k):null}function w(k){var S,P;if((k=k.__)!=null&&k.__c!=null){for(k.__e=k.__c.base=null,S=0;S<k.__k.length;S++)if((P=k.__k[S])!=null&&P.__e!=null){k.__e=k.__c.base=P.__e;break}return w(k)}}function E(k){(!k.__d&&(k.__d=!0)&&a.push(k)&&!D.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(D)}function D(){for(var k;D.__r=a.length;)k=a.sort(function(S,P){return S.__v.__b-P.__v.__b}),a=[],k.some(function(S){var P,H,X,V,ut,mt;S.__d&&(ut=(V=(P=S).__v).__e,(mt=P.__P)&&(H=[],(X=d({},V)).__v=V.__v+1,W(mt,V,X,P.__n,mt.ownerSVGElement!==void 0,V.__h!=null?[ut]:null,H,ut==null?b(V):ut,V.__h),G(H,V),V.__e!=ut&&w(V)))})}function x(k,S,P,H,X,V,ut,mt,yt,Dt){var q,Rt,kt,ht,Bt,_e,Ut,re=H&&H.__k||f,we=re.length;for(P.__k=[],q=0;q<S.length;q++)if((ht=P.__k[q]=(ht=S[q])==null||typeof ht=="boolean"?null:typeof ht=="string"||typeof ht=="number"||typeof ht=="bigint"?m(null,ht,null,null,ht):Array.isArray(ht)?m(v,{children:ht},null,null,null):ht.__b>0?m(ht.type,ht.props,ht.key,null,ht.__v):ht)!=null){if(ht.__=P,ht.__b=P.__b+1,(kt=re[q])===null||kt&&ht.key==kt.key&&ht.type===kt.type)re[q]=void 0;else for(Rt=0;Rt<we;Rt++){if((kt=re[Rt])&&ht.key==kt.key&&ht.type===kt.type){re[Rt]=void 0;break}kt=null}W(k,ht,kt=kt||c,X,V,ut,mt,yt,Dt),Bt=ht.__e,(Rt=ht.ref)&&kt.ref!=Rt&&(Ut||(Ut=[]),kt.ref&&Ut.push(kt.ref,null,ht),Ut.push(Rt,ht.__c||Bt,ht)),Bt!=null?(_e==null&&(_e=Bt),typeof ht.type=="function"&&ht.__k===kt.__k?ht.__d=yt=O(ht,yt,k):yt=F(k,ht,kt,re,Bt,yt),typeof P.type=="function"&&(P.__d=yt)):yt&&kt.__e==yt&&yt.parentNode!=k&&(yt=b(kt))}for(P.__e=_e,q=we;q--;)re[q]!=null&&(typeof P.type=="function"&&re[q].__e!=null&&re[q].__e==P.__d&&(P.__d=b(H,q+1)),ft(re[q],re[q]));if(Ut)for(q=0;q<Ut.length;q++)ot(Ut[q],Ut[++q],Ut[++q])}function O(k,S,P){for(var H,X=k.__k,V=0;X&&V<X.length;V++)(H=X[V])&&(H.__=k,S=typeof H.type=="function"?O(H,S,P):F(P,H,H,X,H.__e,S));return S}function F(k,S,P,H,X,V){var ut,mt,yt;if(S.__d!==void 0)ut=S.__d,S.__d=void 0;else if(P==null||X!=V||X.parentNode==null)t:if(V==null||V.parentNode!==k)k.appendChild(X),ut=null;else{for(mt=V,yt=0;(mt=mt.nextSibling)&&yt<H.length;yt+=2)if(mt==X)break t;k.insertBefore(X,V),ut=V}return ut!==void 0?ut:X.nextSibling}function R(k,S,P){S[0]==="-"?k.setProperty(S,P):k[S]=P==null?"":typeof P!="number"||p.test(S)?P:P+"px"}function U(k,S,P,H,X){var V;t:if(S==="style")if(typeof P=="string")k.style.cssText=P;else{if(typeof H=="string"&&(k.style.cssText=H=""),H)for(S in H)P&&S in P||R(k.style,S,"");if(P)for(S in P)H&&P[S]===H[S]||R(k.style,S,P[S])}else if(S[0]==="o"&&S[1]==="n")V=S!==(S=S.replace(/Capture$/,"")),S=S.toLowerCase()in k?S.toLowerCase().slice(2):S.slice(2),k.l||(k.l={}),k.l[S+V]=P,P?H||k.addEventListener(S,V?Y:M,V):k.removeEventListener(S,V?Y:M,V);else if(S!=="dangerouslySetInnerHTML"){if(X)S=S.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(S!=="href"&&S!=="list"&&S!=="form"&&S!=="tabIndex"&&S!=="download"&&S in k)try{k[S]=P==null?"":P;break t}catch(ut){}typeof P=="function"||(P!=null&&(P!==!1||S[0]==="a"&&S[1]==="r")?k.setAttribute(S,P):k.removeAttribute(S))}}function M(k){this.l[k.type+!1](r.event?r.event(k):k)}function Y(k){this.l[k.type+!0](r.event?r.event(k):k)}function W(k,S,P,H,X,V,ut,mt,yt){var Dt,q,Rt,kt,ht,Bt,_e,Ut,re,we,Sn,Ht=S.type;if(S.constructor!==void 0)return null;P.__h!=null&&(yt=P.__h,mt=S.__e=P.__e,S.__h=null,V=[mt]),(Dt=r.__b)&&Dt(S);try{t:if(typeof Ht=="function"){if(Ut=S.props,re=(Dt=Ht.contextType)&&H[Dt.__c],we=Dt?re?re.props.value:Dt.__:H,P.__c?_e=(q=S.__c=P.__c).__=q.__E:("prototype"in Ht&&Ht.prototype.render?S.__c=q=new Ht(Ut,we):(S.__c=q=new h(Ut,we),q.constructor=Ht,q.render=ct),re&&re.sub(q),q.props=Ut,q.state||(q.state={}),q.context=we,q.__n=H,Rt=q.__d=!0,q.__h=[]),q.__s==null&&(q.__s=q.state),Ht.getDerivedStateFromProps!=null&&(q.__s==q.state&&(q.__s=d({},q.__s)),d(q.__s,Ht.getDerivedStateFromProps(Ut,q.__s))),kt=q.props,ht=q.state,Rt)Ht.getDerivedStateFromProps==null&&q.componentWillMount!=null&&q.componentWillMount(),q.componentDidMount!=null&&q.__h.push(q.componentDidMount);else{if(Ht.getDerivedStateFromProps==null&&Ut!==kt&&q.componentWillReceiveProps!=null&&q.componentWillReceiveProps(Ut,we),!q.__e&&q.shouldComponentUpdate!=null&&q.shouldComponentUpdate(Ut,q.__s,we)===!1||S.__v===P.__v){q.props=Ut,q.state=q.__s,S.__v!==P.__v&&(q.__d=!1),q.__v=S,S.__e=P.__e,S.__k=P.__k,S.__k.forEach(function(Un){Un&&(Un.__=S)}),q.__h.length&&ut.push(q);break t}q.componentWillUpdate!=null&&q.componentWillUpdate(Ut,q.__s,we),q.componentDidUpdate!=null&&q.__h.push(function(){q.componentDidUpdate(kt,ht,Bt)})}q.context=we,q.props=Ut,q.state=q.__s,(Dt=r.__r)&&Dt(S),q.__d=!1,q.__v=S,q.__P=k,Dt=q.render(q.props,q.state,q.context),q.state=q.__s,q.getChildContext!=null&&(H=d(d({},H),q.getChildContext())),Rt||q.getSnapshotBeforeUpdate==null||(Bt=q.getSnapshotBeforeUpdate(kt,ht)),Sn=Dt!=null&&Dt.type===v&&Dt.key==null?Dt.props.children:Dt,x(k,Array.isArray(Sn)?Sn:[Sn],S,P,H,X,V,ut,mt,yt),q.base=S.__e,S.__h=null,q.__h.length&&ut.push(q),_e&&(q.__E=q.__=null),q.__e=!1}else V==null&&S.__v===P.__v?(S.__k=P.__k,S.__e=P.__e):S.__e=K(P.__e,S,P,H,X,V,ut,yt);(Dt=r.diffed)&&Dt(S)}catch(Un){S.__v=null,(yt||V!=null)&&(S.__e=mt,S.__h=!!yt,V[V.indexOf(mt)]=null),r.__e(Un,S,P)}}function G(k,S){r.__c&&r.__c(S,k),k.some(function(P){try{k=P.__h,P.__h=[],k.some(function(H){H.call(P)})}catch(H){r.__e(H,P.__v)}})}function K(k,S,P,H,X,V,ut,mt){var yt,Dt,q,Rt=P.props,kt=S.props,ht=S.type,Bt=0;if(ht==="svg"&&(X=!0),V!=null){for(;Bt<V.length;Bt++)if((yt=V[Bt])&&"setAttribute"in yt==!!ht&&(ht?yt.localName===ht:yt.nodeType===3)){k=yt,V[Bt]=null;break}}if(k==null){if(ht===null)return document.createTextNode(kt);k=X?document.createElementNS("http://www.w3.org/2000/svg",ht):document.createElement(ht,kt.is&&kt),V=null,mt=!1}if(ht===null)Rt===kt||mt&&k.data===kt||(k.data=kt);else{if(V=V&&n.call(k.childNodes),Dt=(Rt=P.props||c).dangerouslySetInnerHTML,q=kt.dangerouslySetInnerHTML,!mt){if(V!=null)for(Rt={},Bt=0;Bt<k.attributes.length;Bt++)Rt[k.attributes[Bt].name]=k.attributes[Bt].value;(q||Dt)&&(q&&(Dt&&q.__html==Dt.__html||q.__html===k.innerHTML)||(k.innerHTML=q&&q.__html||""))}if(function(_e,Ut,re,we,Sn){var Ht;for(Ht in re)Ht==="children"||Ht==="key"||Ht in Ut||U(_e,Ht,null,re[Ht],we);for(Ht in Ut)Sn&&typeof Ut[Ht]!="function"||Ht==="children"||Ht==="key"||Ht==="value"||Ht==="checked"||re[Ht]===Ut[Ht]||U(_e,Ht,Ut[Ht],re[Ht],we)}(k,kt,Rt,X,mt),q)S.__k=[];else if(Bt=S.props.children,x(k,Array.isArray(Bt)?Bt:[Bt],S,P,H,X&&ht!=="foreignObject",V,ut,V?V[0]:P.__k&&b(P,0),mt),V!=null)for(Bt=V.length;Bt--;)V[Bt]!=null&&y(V[Bt]);mt||("value"in kt&&(Bt=kt.value)!==void 0&&(Bt!==Rt.value||Bt!==k.value||ht==="progress"&&!Bt)&&U(k,"value",Bt,Rt.value,!1),"checked"in kt&&(Bt=kt.checked)!==void 0&&Bt!==k.checked&&U(k,"checked",Bt,Rt.checked,!1))}return k}function ot(k,S,P){try{typeof k=="function"?k(S):k.current=S}catch(H){r.__e(H,P)}}function ft(k,S,P){var H,X;if(r.unmount&&r.unmount(k),(H=k.ref)&&(H.current&&H.current!==k.__e||ot(H,null,S)),(H=k.__c)!=null){if(H.componentWillUnmount)try{H.componentWillUnmount()}catch(V){r.__e(V,S)}H.base=H.__P=null}if(H=k.__k)for(X=0;X<H.length;X++)H[X]&&ft(H[X],S,typeof k.type!="function");P||k.__e==null||y(k.__e),k.__e=k.__d=void 0}function ct(k,S,P){return this.constructor(k,P)}function st(k,S,P){var H,X,V;r.__&&r.__(k,S),X=(H=typeof P=="function")?null:P&&P.__k||S.__k,V=[],W(S,k=(!H&&P||S).__k=g(v,null,[k]),X||c,c,S.ownerSVGElement!==void 0,!H&&P?[P]:X?null:S.firstChild?n.call(S.childNodes):null,V,!H&&P?P:X?X.__e:S.firstChild,H),G(V,k)}n=f.slice,r={__e:function(k,S){for(var P,H,X;S=S.__;)if((P=S.__c)&&!P.__)try{if((H=P.constructor)&&H.getDerivedStateFromError!=null&&(P.setState(H.getDerivedStateFromError(k)),X=P.__d),P.componentDidCatch!=null&&(P.componentDidCatch(k),X=P.__d),X)return P.__E=P}catch(V){k=V}throw k}},o=0,i=function(k){return k!=null&&k.constructor===void 0},h.prototype.setState=function(k,S){var P;P=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=d({},this.state),typeof k=="function"&&(k=k(d({},P),this.props)),k&&d(P,k),k!=null&&this.__v&&(S&&this.__h.push(S),E(this))},h.prototype.forceUpdate=function(k){this.__v&&(this.__e=!0,k&&this.__h.push(k),E(this))},h.prototype.render=v,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,l=0,e.Component=h,e.Fragment=v,e.cloneElement=function(k,S,P){var H,X,V,ut=d({},k.props);for(V in S)V=="key"?H=S[V]:V=="ref"?X=S[V]:ut[V]=S[V];return arguments.length>2&&(ut.children=arguments.length>3?n.call(arguments,2):P),m(k.type,ut,H||k.key,X||k.ref,null)},e.createContext=function(k,S){var P={__c:S="__cC"+l++,__:k,Consumer:function(H,X){return H.children(X)},Provider:function(H){var X,V;return this.getChildContext||(X=[],(V={})[S]=this,this.getChildContext=function(){return V},this.shouldComponentUpdate=function(ut){this.props.value!==ut.value&&X.some(E)},this.sub=function(ut){X.push(ut);var mt=ut.componentWillUnmount;ut.componentWillUnmount=function(){X.splice(X.indexOf(ut),1),mt&&mt.call(ut)}}),H.children}};return P.Provider.__=P.Consumer.contextType=P},e.createElement=g,e.createRef=function(){return{current:null}},e.h=g,e.hydrate=function k(S,P){st(S,P,k)},e.isValidElement=i,e.options=r,e.render=st,e.toChildArray=function k(S,P){return P=P||[],S==null||typeof S=="boolean"||(Array.isArray(S)?S.some(function(H){k(H,P)}):P.push(S)),P}}),lX=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},fC=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:Vt(Z({},e),{[this.id]:Z(Z({},e[this.id]),t)})})}setOptions(t){this.opts=Z(Z({},this.opts),t),this.setPluginState(),this.i18nInit()}i18nInit(){const t=new sN([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 B7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var cX=0;function fX(t){return"__private_"+cX+++"_"+t}const{render:T7}=sX;var rf=fX("updateUI");class dC extends fC{constructor(){super(...arguments),Object.defineProperty(this,rf,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=lX(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return B7(this,rf)[rf]=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)&&(T7(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),T7(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 dC)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=B7(this,rf))[rf])==null||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var dX=dC;const{debugLogger:pX}=dN;var fd=mN,hX=mN,gX=dX,vX=fC,mX=pX;fd.Uppy=hX,fd.UIPlugin=gX,fd.BasePlugin=vX,fd.debugLogger=mX;class yX 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 pC=yX,ib=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new pC(t)})};class bX extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var o0,ji,xo,Ni,F7,wX=bX;function Co(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var EX=0;function ab(t){return"__private_"+EX+++"_"+t}function ub(t){return bn(this,null,function*(){if(t.status===401)throw new wX;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const r=yield 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 sb=(ji=ab("getPostResponseFunc"),xo=ab("getUrl"),Ni=ab("errorHandler"),F7=o0=class yN{constructor(e,n){Object.defineProperty(this,Ni,{value:xX}),Object.defineProperty(this,xo,{value:CX}),Object.defineProperty(this,ji,{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(Z(Z({},yN.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:Vt(Z({},n),{[r]:o.get("i-am")})}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Co(this,xo)[xo](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=>ib(Co(this,xo)[xo](e),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(Co(this,ji)[ji](n)).then(ub).catch(Co(this,Ni)[Ni]("get",e))}post(e,n,r){const o="post";return this.preflightAndHeaders(e).then(i=>ib(Co(this,xo)[xo](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(Co(this,ji)[ji](r)).then(ub).catch(Co(this,Ni)[Ni](o,e))}delete(e,n,r){const o="delete";return this.preflightAndHeaders(e).then(i=>ib(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(Co(this,ji)[ji](r)).then(ub).catch(Co(this,Ni)[Ni](o,e))}},o0.VERSION="2.0.4",o0.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${o0.VERSION}`},F7);function CX(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function xX(t,e){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${t} ${Co(this,xo)[xo](e)}`);o.cause=n,n=o}return Promise.reject(n)}}var DX={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()})},Eo,Ii,Dr,Tn,i0;let _7,P7;function Ge(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var SX=0;function of(t){return"__private_"+SX+++"_"+t}var AX=(Eo=of("queued"),Ii=of("emitter"),Dr=of("isOpen"),Tn=of("socket"),i0=of("handleMessage"),_7=Symbol.for("uppy test: getSocket"),P7=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,Eo,{writable:!0,value:[]}),Object.defineProperty(this,Ii,{writable:!0,value:lN()}),Object.defineProperty(this,Dr,{writable:!0,value:!1}),Object.defineProperty(this,Tn,{writable:!0,value:void 0}),Object.defineProperty(this,i0,{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 Ge(this,Dr)[Dr]}[_7](){return Ge(this,Tn)[Tn]}[P7](){return Ge(this,Eo)[Eo]}open(){Ge(this,Tn)[Tn]=new WebSocket(this.opts.target),Ge(this,Tn)[Tn].onopen=()=>{for(Ge(this,Dr)[Dr]=!0;Ge(this,Eo)[Eo].length>0&&Ge(this,Dr)[Dr];){const t=Ge(this,Eo)[Eo].shift();this.send(t.action,t.payload)}},Ge(this,Tn)[Tn].onclose=()=>{Ge(this,Dr)[Dr]=!1},Ge(this,Tn)[Tn].onmessage=Ge(this,i0)[i0]}close(){var t;(t=Ge(this,Tn)[Tn])==null||t.close()}send(t,e){Ge(this,Dr)[Dr]?Ge(this,Tn)[Tn].send(JSON.stringify({action:t,payload:e})):Ge(this,Eo)[Eo].push({action:t,payload:e})}on(t,e){Ge(this,Ii)[Ii].on(t,e)}emit(t,e){Ge(this,Ii)[Ii].emit(t,e)}once(t,e){Ge(this,Ii)[Ii].once(t,e)}}),OX={RequestClient:sb,Provider:class extends sb{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}))),Z(Z({},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=Z(Z({},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||DX}},SearchProvider:class extends sb{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:AX},Li,Hs,kX=ss(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 af(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var BX=0;function j7(t){return"__private_"+BX+++"_"+t}var N7=(Li=j7("emitter"),Hs=j7("events"),class{constructor(t){Object.defineProperty(this,Li,{writable:!0,value:void 0}),Object.defineProperty(this,Hs,{writable:!0,value:[]}),af(this,Li)[Li]=t}on(t,e){return af(this,Hs)[Hs].push([t,e]),af(this,Li)[Li].on(t,e)}remove(){for(const[t,e]of af(this,Hs)[Hs].splice(0))af(this,Li)[Li].off(t,e)}});function Sr(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var TX=0;function lm(t){return"__private_"+TX+++"_"+t}var oi=lm("aliveTimer"),su=lm("isDone"),uf=lm("onTimedOut"),lu=lm("timeout"),I7=class{constructor(t,e){Object.defineProperty(this,oi,{writable:!0,value:void 0}),Object.defineProperty(this,su,{writable:!0,value:!1}),Object.defineProperty(this,uf,{writable:!0,value:void 0}),Object.defineProperty(this,lu,{writable:!0,value:void 0}),Sr(this,lu)[lu]=t,Sr(this,uf)[uf]=e}progress(){Sr(this,su)[su]||Sr(this,lu)[lu]>0&&(clearTimeout(Sr(this,oi)[oi]),Sr(this,oi)[oi]=setTimeout(Sr(this,uf)[uf],Sr(this,lu)[lu]))}done(){Sr(this,su)[su]||(clearTimeout(Sr(this,oi)[oi]),Sr(this,oi)[oi]=null,Sr(this,su)[su]=!0)}};function Ye(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var FX=0;function Ss(t){return"__private_"+FX+++"_"+t}function _X(){return new Error("Cancelled")}var ar=Ss("activeRequests"),zn=Ss("queuedHandlers"),xd=Ss("call"),dd=Ss("queueNext"),TE=Ss("next"),lb=Ss("queue"),FE=Ss("dequeue");function PX(t){Ye(this,ar)[ar]+=1;let e,n=!1;try{e=t()}catch(r){throw Ye(this,ar)[ar]-=1,r}return{abort:()=>{n||(n=!0,Ye(this,ar)[ar]-=1,e(),Ye(this,dd)[dd]())},done:()=>{n||(n=!0,Ye(this,ar)[ar]-=1,Ye(this,dd)[dd]())}}}function jX(){queueMicrotask(()=>Ye(this,TE)[TE]())}function NX(){if(Ye(this,ar)[ar]>=this.limit||Ye(this,zn)[zn].length===0)return;const t=Ye(this,zn)[zn].shift(),e=Ye(this,xd)[xd](t.fn);t.abort=e.abort,t.done=e.done}function IX(t,e){e===void 0&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{Ye(this,FE)[FE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Ye(this,zn)[zn].findIndex(o=>n.priority>o.priority);return r===-1?Ye(this,zn)[zn].push(n):Ye(this,zn)[zn].splice(r,0,n),n}function LX(t){const e=Ye(this,zn)[zn].indexOf(t);e!==-1&&Ye(this,zn)[zn].splice(e,1)}var RX={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,FE,{value:LX}),Object.defineProperty(this,lb,{value:IX}),Object.defineProperty(this,TE,{value:NX}),Object.defineProperty(this,dd,{value:jX}),Object.defineProperty(this,xd,{value:PX}),Object.defineProperty(this,ar,{writable:!0,value:0}),Object.defineProperty(this,zn,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Ye(this,ar)[ar]<this.limit?Ye(this,xd)[xd](t):Ye(this,lb)[lb](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=_X()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},L7,R7,bN=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},MX={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:zX}=pN,{Provider:$X,RequestClient:HX,Socket:UX}=OX,{RateLimitedQueue:VX,internalRateLimitedQueue:cb}=RX;function M7(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})),bN(t)?(n=new pC(n,t),n):(n.request=t,n)}function z7(t){return t.data.slice(0,t.data.size,t.meta.type)}var WX=(R7=L7=class extends fC{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=MX;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 bN(o)&&(i=new pC(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts=Z(Z({},n),e),this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),cb in this.opts?this.requests=this.opts[cb]:this.requests=new VX(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=Vt(Z(Z(Z({},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=z7(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=z7(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 N7(this.uppy);const s=new I7(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=zX();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 g=r.getResponseData(u.responseText,u),m=g[r.responseUrlFieldName],v={status:f.target.status,body:g,uploadURL:m};return this.uppy.emit("upload-success",t,v),m&&this.uppy.log(`Download ${t.name} from ${m}`),o(t)}const p=r.getResponseData(u.responseText,u),d=M7(u,r.getResponseError(u.responseText,u)),y={status:f.target.status,body:p};return this.uppy.emit("upload-error",t,d,y),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=M7(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?$X:HX)(this.uppy,t.remote.providerOptions).post(t.remote.url,Vt(Z({},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 UX({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new N7(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=>kX(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,Z(Z({},this.opts),i||{})),u=new XMLHttpRequest,s=new I7(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(y=>{this.uppy.emit("upload-success",y,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[cb]||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\u2019t 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:Vt(Z({},t),{individualCancellation:!1})})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:Vt(Z({},t),{individualCancellation:!0})})}this.uppy.removeUploader(this.handleUpload)}},L7.VERSION="2.0.6",R7),$7=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ih(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ri,vg,a0=function(t){return t&&t.Math==Math&&t},J=a0(typeof globalThis=="object"&&globalThis)||a0(typeof window=="object"&&window)||a0(typeof self=="object"&&self)||a0(typeof $7=="object"&&$7)||function(){return this}()||Function("return this")(),GX=Object.defineProperty,hC=function(t,e){try{GX(J,t,{value:e,configurable:!0,writable:!0})}catch(n){J[t]=e}return e},ya=J["__core-js_shared__"]||hC("__core-js_shared__",{}),gC=ih(function(t){(t.exports=function(e,n){return ya[e]||(ya[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),wN=Function.prototype,_E=wN.bind,PE=wN.call,qX=_E&&_E.bind(PE),gt=_E?function(t){return t&&qX(PE,t)}:function(t){return t&&function(){return PE.apply(t,arguments)}},KX=J.TypeError,zr=function(t){if(t==null)throw KX("Can't call method on "+t);return t},YX=J.Object,Ya=function(t){return YX(zr(t))},XX=gt({}.hasOwnProperty),$e=Object.hasOwn||function(t,e){return XX(Ya(t),e)},ZX=0,JX=Math.random(),QX=gt(1 .toString),vC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+QX(++ZX+JX,36)},ae=function(t){return typeof t=="function"},tZ=function(t){return ae(t)?t:void 0},As=function(t,e){return arguments.length<2?tZ(J[t]):J[t]&&J[t][e]},kl=As("navigator","userAgent")||"",H7=J.process,U7=J.Deno,V7=H7&&H7.versions||U7&&U7.version,W7=V7&&V7.v8;W7&&(vg=(Ri=W7.split("."))[0]>0&&Ri[0]<4?1:+(Ri[0]+Ri[1])),!vg&&kl&&(!(Ri=kl.match(/Edge\/(\d+)/))||Ri[1]>=74)&&(Ri=kl.match(/Chrome\/(\d+)/))&&(vg=+Ri[1]);var op=vg,te=function(t){try{return!!t()}catch(e){return!0}},jE=!!Object.getOwnPropertySymbols&&!te(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&op&&op<41}),mC=jE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",sf=gC("wks"),$u=J.Symbol,G7=$u&&$u.for,eZ=mC?$u:$u&&$u.withoutSetter||vC,Oe=function(t){if(!$e(sf,t)||!jE&&typeof sf[t]!="string"){var e="Symbol."+t;jE&&$e($u,t)?sf[t]=$u[t]:sf[t]=mC&&G7?G7(e):eZ(e)}return sf[t]},EN={};EN[Oe("toStringTag")]="z";var yC=String(EN)==="[object z]",dn=!te(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pe=function(t){return typeof t=="object"?t!==null:ae(t)},NE=J.document,nZ=pe(NE)&&pe(NE.createElement),ip=function(t){return nZ?NE.createElement(t):{}},CN=!dn&&!te(function(){return Object.defineProperty(ip("div"),"a",{get:function(){return 7}}).a!=7}),rZ=J.String,oZ=J.TypeError,He=function(t){if(pe(t))return t;throw oZ(rZ(t)+" is not an object")},lf=Function.prototype.call,qt=lf.bind?lf.bind(lf):function(){return lf.apply(lf,arguments)},ls=gt({}.isPrototypeOf),iZ=J.Object,fb=mC?function(t){return typeof t=="symbol"}:function(t){var e=As("Symbol");return ae(e)&&ls(e.prototype,iZ(t))},aZ=J.String,cm=function(t){try{return aZ(t)}catch(e){return"Object"}},uZ=J.TypeError,Ra=function(t){if(ae(t))return t;throw uZ(cm(t)+" is not a function")},cs=function(t,e){var n=t[e];return n==null?void 0:Ra(n)},sZ=J.TypeError,lZ=J.TypeError,cZ=Oe("toPrimitive"),bC=function(t){var e=function(n,r){if(!pe(n)||fb(n))return n;var o,i=cs(n,cZ);if(i){if(r===void 0&&(r="default"),o=qt(i,n,r),!pe(o)||fb(o))return o;throw lZ("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ae(s=a.toString)&&!pe(l=qt(s,a))||ae(s=a.valueOf)&&!pe(l=qt(s,a))||u!=="string"&&ae(s=a.toString)&&!pe(l=qt(s,a)))return l;throw sZ("Can't convert object to primitive value")}(n,r)}(t,"string");return fb(e)?e:e+""},fZ=J.TypeError,q7=Object.defineProperty,ho={f:dn?q7:function(t,e,n){if(He(t),e=bC(e),He(n),CN)try{return q7(t,e,n)}catch(r){}if("get"in n||"set"in n)throw fZ("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},fm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ao=dn?function(t,e,n){return ho.f(t,e,fm(1,n))}:function(t,e,n){return t[e]=n,t},dZ=gt(Function.toString);ae(ya.inspectSource)||(ya.inspectSource=function(t){return dZ(t)});var Cv,Dd,xv,dm=ya.inspectSource,K7=J.WeakMap,xN=ae(K7)&&/native code/.test(dm(K7)),Y7=gC("keys"),wC=function(t){return Y7[t]||(Y7[t]=vC(t))},pm={},IE=J.TypeError,pZ=J.WeakMap;if(xN||ya.state){var cu=ya.state||(ya.state=new pZ),hZ=gt(cu.get),X7=gt(cu.has),gZ=gt(cu.set);Cv=function(t,e){if(X7(cu,t))throw new IE("Object already initialized");return e.facade=t,gZ(cu,t,e),e},Dd=function(t){return hZ(cu,t)||{}},xv=function(t){return X7(cu,t)}}else{var Us=wC("state");pm[Us]=!0,Cv=function(t,e){if($e(t,Us))throw new IE("Object already initialized");return e.facade=t,ao(t,Us,e),e},Dd=function(t){return $e(t,Us)?t[Us]:{}},xv=function(t){return $e(t,Us)}}var Nn={set:Cv,get:Dd,has:xv,enforce:function(t){return xv(t)?Dd(t):Cv(t,{})},getterFor:function(t){return function(e){var n;if(!pe(e)||(n=Dd(e)).type!==t)throw IE("Incompatible receiver, "+t+" required");return n}}},DN=Function.prototype,vZ=dn&&Object.getOwnPropertyDescriptor,db=$e(DN,"name"),xc={EXISTS:db,PROPER:db&&function(){}.name==="something",CONFIGURABLE:db&&(!dn||dn&&vZ(DN,"name").configurable)},Jn=ih(function(t){var e=xc.CONFIGURABLE,n=Nn.get,r=Nn.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;ae(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$e(u,"name")||e&&u.name!==d)&&ao(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==J?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ao(i,a,u)):f?i[a]=u:hC(a,u)})(Function.prototype,"toString",function(){return ae(this)&&n(this).source||dm(this)})}),mZ=gt({}.toString),yZ=gt("".slice),uo=function(t){return yZ(mZ(t),8,-1)},bZ=Oe("toStringTag"),wZ=J.Object,EZ=uo(function(){return arguments}())=="Arguments",hm=yC?uo:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=wZ(t),bZ))=="string"?n:EZ?uo(e):(r=uo(e))=="Object"&&ae(e.callee)?"Arguments":r},CZ=yC?{}.toString:function(){return"[object "+hm(this)+"]"};yC||Jn(Object.prototype,"toString",CZ,{unsafe:!0});var Dv={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},pb=ip("span").classList,Z7=pb&&pb.constructor&&pb.constructor.prototype,SN=Z7===Object.prototype?void 0:Z7,J7=gt(gt.bind),fs=function(t,e){return Ra(t),e===void 0?t:J7?J7(t,e):function(){return t.apply(e,arguments)}},hb=J.Object,xZ=gt("".split),gm=te(function(){return!hb("z").propertyIsEnumerable(0)})?function(t){return uo(t)=="String"?xZ(t,""):hb(t)}:hb,DZ=Math.ceil,SZ=Math.floor,ah=function(t){var e=+t;return e!=e||e===0?0:(e>0?SZ:DZ)(e)},AZ=Math.min,Dc=function(t){return t>0?AZ(ah(t),9007199254740991):0},Os=function(t){return Dc(t.length)},Sv=Array.isArray||function(t){return uo(t)=="Array"},AN=function(){},OZ=[],ON=As("Reflect","construct"),EC=/^\s*(?:class|function)\b/,kZ=gt(EC.exec),BZ=!EC.exec(AN),cf=function(t){if(!ae(t))return!1;try{return ON(AN,OZ,t),!0}catch(e){return!1}},vm=!ON||te(function(){var t;return cf(cf.call)||!cf(Object)||!cf(function(){t=!0})||t})?function(t){if(!ae(t))return!1;switch(hm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return BZ||!!kZ(EC,dm(t))}:cf,TZ=Oe("species"),Q7=J.Array,kN=function(t,e){return new(function(n){var r;return Sv(n)&&(r=n.constructor,(vm(r)&&(r===Q7||Sv(r.prototype))||pe(r)&&(r=r[TZ])===null)&&(r=void 0)),r===void 0?Q7:r}(t))(e===0?0:e)},t9=gt([].push),Mi=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,y=Ya(s),g=gm(y),m=fs(l,c),v=Os(g),h=0,b=f||kN,w=e?b(s,v):n||a?b(s,0):void 0;v>h;h++)if((u||h in g)&&(d=m(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:t9(w,p)}else switch(t){case 4:return!1;case 7:t9(w,p)}return i?-1:r||o?o:w}},Sc={forEach:Mi(0),map:Mi(1),filter:Mi(2),some:Mi(3),every:Mi(4),find:Mi(5),findIndex:Mi(6),filterReject:Mi(7)},BN=function(t,e){var n=[][t];return!!n&&te(function(){n.call(null,e||function(){throw 1},1)})},FZ=Sc.forEach,gb=BN("forEach")?[].forEach:function(t){return FZ(this,t,arguments.length>1?arguments[1]:void 0)},TN=function(t){if(t&&t.forEach!==gb)try{ao(t,"forEach",gb)}catch(e){t.forEach=gb}};for(var vb in Dv)Dv[vb]&&TN(J[vb]&&J[vb].prototype);TN(SN);var e9={}.propertyIsEnumerable,n9=Object.getOwnPropertyDescriptor,_Z=n9&&!e9.call({1:2},1)?function(t){var e=n9(this,t);return!!e&&e.enumerable}:e9,FN={f:_Z},Xa=function(t){return gm(zr(t))},r9=Object.getOwnPropertyDescriptor,uh={f:dn?r9:function(t,e){if(t=Xa(t),e=bC(e),CN)try{return r9(t,e)}catch(n){}if($e(t,e))return fm(!qt(FN.f,t,e),t[e])}},PZ=Math.max,jZ=Math.min,ec=function(t,e){var n=ah(t);return n<0?PZ(n+e,0):jZ(n,e)},o9=function(t){return function(e,n,r){var o,i=Xa(e),a=Os(i),u=ec(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}},_N={includes:o9(!0),indexOf:o9(!1)},NZ=_N.indexOf,i9=gt([].push),PN=function(t,e){var n,r=Xa(t),o=0,i=[];for(n in r)!$e(pm,n)&&$e(r,n)&&i9(i,n);for(;e.length>o;)$e(r,n=e[o++])&&(~NZ(i,n)||i9(i,n));return i},Av=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],IZ=Av.concat("length","prototype"),ap={f:Object.getOwnPropertyNames||function(t){return PN(t,IZ)}},jN={f:Object.getOwnPropertySymbols},LZ=gt([].concat),RZ=As("Reflect","ownKeys")||function(t){var e=ap.f(He(t)),n=jN.f;return n?LZ(e,n(t)):e},MZ=function(t,e){for(var n=RZ(e),r=ho.f,o=uh.f,i=0;i<n.length;i++){var a=n[i];$e(t,a)||r(t,a,o(e,a))}},zZ=/#|\.prototype\./,sh=function(t,e){var n=HZ[$Z(t)];return n==VZ||n!=UZ&&(ae(e)?te(e):!!e)},$Z=sh.normalize=function(t){return String(t).replace(zZ,".").toLowerCase()},HZ=sh.data={},UZ=sh.NATIVE="N",VZ=sh.POLYFILL="P",up=sh,WZ=uh.f,Se=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?J:l?J[u]||hC(u,{}):(J[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=WZ(n,r))&&a.value:n[r],!up(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;MZ(i,o)}(t.sham||o&&o.sham)&&ao(i,"sham",!0),Jn(n,r,i,t)}},Bl=Object.keys||function(t){return PN(t,Av)},GZ=te(function(){Bl(1)});/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function a9(t){return Object.prototype.toString.call(t)==="[object Object]"}Se({target:"Object",stat:!0,forced:GZ},{keys:function(t){return Bl(Ya(t))}});var qZ={isHistory(t){return a9(e=t)!==!1&&((n=e.constructor)===void 0||a9(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||ca.isOperationList(t.redos[0]))&&(t.undos.length===0||ca.isOperationList(t.undos[0]));var e,n,r}},mb=new WeakMap,yb=new WeakMap,Cl={isHistoryEditor:t=>qZ.isHistory(t.history)&&C.isEditor(t),isMerging:t=>yb.get(t),isSaving:t=>mb.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=Cl.isMerging(t);yb.set(t,!1),e(),yb.set(t,n)},withoutSaving(t,e){var n=Cl.isSaving(t);mb.set(t,!1),e(),mb.set(t,n)}},KZ=J.String,ce=function(t){if(hm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return KZ(t)},CC=function(){var t=He(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},YZ=xc.PROPER,LE=RegExp.prototype,NN=LE.toString,XZ=gt(CC),ZZ=te(function(){return NN.call({source:"a",flags:"b"})!="/a/b"}),JZ=YZ&&NN.name!="toString";(ZZ||JZ)&&Jn(RegExp.prototype,"toString",function(){var t=He(this),e=ce(t.source),n=t.flags;return"/"+e+"/"+ce(n===void 0&&ls(LE,t)&&!("flags"in LE)?XZ(t):n)},{unsafe:!0});var u0,QZ=dn?Object.defineProperties:function(t,e){He(t);for(var n,r=Xa(e),o=Bl(e),i=o.length,a=0;i>a;)ho.f(t,n=o[a++],r[n]);return t},RE=As("document","documentElement"),IN=wC("IE_PROTO"),bb=function(){},LN=function(t){return"<script>"+t+"<\/script>"},u9=function(t){t.write(LN("")),t.close();var e=t.parentWindow.Object;return t=null,e},mg=function(){try{u0=new ActiveXObject("htmlfile")}catch(r){}var t,e;mg=typeof document!="undefined"?document.domain&&u0?u9(u0):((e=ip("iframe")).style.display="none",RE.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(LN("document.F=Object")),t.close(),t.F):u9(u0);for(var n=Av.length;n--;)delete mg.prototype[Av[n]];return mg()};pm[IN]=!0;var mm=Object.create||function(t,e){var n;return t!==null?(bb.prototype=He(t),n=new bb,bb.prototype=null,n[IN]=t):n=mg(),e===void 0?n:QZ(n,e)},ME=Oe("unscopables"),zE=Array.prototype;zE[ME]==null&&ho.f(zE,ME,{configurable:!0,value:mm(null)});var Sd=function(t){zE[ME][t]=!0},tJ=_N.includes;Se({target:"Array",proto:!0},{includes:function(t){return tJ(this,t,arguments.length>1?arguments[1]:void 0)}}),Sd("includes");var eJ=Oe("match"),xC=function(t){var e;return pe(t)&&((e=t[eJ])!==void 0?!!e:uo(t)=="RegExp")},nJ=J.TypeError,DC=function(t){if(xC(t))throw nJ("The method doesn't accept regular expressions");return t},rJ=Oe("match"),SC=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[rJ]=!1,"/./"[t](e)}catch(r){}}return!1},oJ=gt("".indexOf);Se({target:"String",proto:!0,forced:!SC("includes")},{includes:function(t){return!!~oJ(ce(zr(this)),ce(DC(t)),arguments.length>1?arguments[1]:void 0)}});var iJ=/"/g,aJ=gt("".replace);Se({target:"String",proto:!0,forced:te(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ce(zr(this)),r="<a",(r+=' name="'+aJ(ce(e),iJ,""")+'"')+">"+n+"</a>";var e,n,r}});var $E=function(t,e,n){var r,o;He(t);try{if(!(r=cs(t,"return"))){if(e==="throw")throw n;return n}r=qt(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return He(r),n},uJ=function(t,e,n,r){try{return r?e(He(n)[0],n[1]):e(n)}catch(o){$E(t,"throw",o)}},nc={},sJ=Oe("iterator"),lJ=Array.prototype,RN=function(t){return t!==void 0&&(nc.Array===t||lJ[sJ]===t)},sp=function(t,e,n){var r=bC(e);r in t?ho.f(t,r,fm(0,n)):t[r]=n},cJ=Oe("iterator"),AC=function(t){if(t!=null)return cs(t,cJ)||cs(t,"@@iterator")||nc[hm(t)]},fJ=J.TypeError,MN=function(t,e){var n=arguments.length<2?AC(t):e;if(Ra(n))return He(qt(n,t));throw fJ(cm(t)+" is not iterable")},s9=J.Array,zN=Oe("iterator"),$N=!1;try{var dJ=0,l9={next:function(){return{done:!!dJ++}},return:function(){$N=!0}};l9[zN]=function(){return this},Array.from(l9,function(){throw 2})}catch(t){}var OC=function(t,e){if(!e&&!$N)return!1;var n=!1;try{var r={};r[zN]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n},pJ=!OC(function(t){Array.from(t)});Se({target:"Array",stat:!0,forced:pJ},{from:function(t){var e=Ya(t),n=vm(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=fs(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=AC(e),d=0;if(!p||this==s9&&RN(p))for(a=Os(e),u=n?new this(a):s9(a);a>d;d++)f=i?o(e[d],d):e[d],sp(u,d,f);else for(c=(l=MN(e,p)).next,u=n?new this:[];!(s=qt(c,l)).done;d++)f=i?uJ(l,o,[s.value,d],!0):s.value,sp(u,d,f);return u.length=d,u}});var Hu,c9,f9,hJ=gt("".charAt),d9=gt("".charCodeAt),gJ=gt("".slice),p9=function(t){return function(e,n){var r,o,i=ce(zr(e)),a=ah(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=d9(i,a))<55296||r>56319||a+1===u||(o=d9(i,a+1))<56320||o>57343?t?hJ(i,a):r:t?gJ(i,a,a+2):o-56320+(r-55296<<10)+65536}},HN={codeAt:p9(!1),charAt:p9(!0)},vJ=!te(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),h9=wC("IE_PROTO"),HE=J.Object,mJ=HE.prototype,Ov=vJ?HE.getPrototypeOf:function(t){var e=Ya(t);if($e(e,h9))return e[h9];var n=e.constructor;return ae(n)&&e instanceof n?n.prototype:e instanceof HE?mJ:null},UE=Oe("iterator"),UN=!1;[].keys&&("next"in(f9=[].keys())?(c9=Ov(Ov(f9)))!==Object.prototype&&(Hu=c9):UN=!0);var yJ=Hu==null||te(function(){var t={};return Hu[UE].call(t)!==t});yJ&&(Hu={}),ae(Hu[UE])||Jn(Hu,UE,function(){return this});var kC={IteratorPrototype:Hu,BUGGY_SAFARI_ITERATORS:UN},bJ=ho.f,g9=Oe("toStringTag"),kv=function(t,e,n){t&&!$e(t=n?t:t.prototype,g9)&&bJ(t,g9,{configurable:!0,value:e})},wJ=kC.IteratorPrototype,EJ=function(){return this},CJ=J.String,xJ=J.TypeError,rc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=gt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return He(r),function(i){if(typeof i=="object"||ae(i))return i;throw xJ("Can't set "+CJ(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),DJ=xc.PROPER,SJ=xc.CONFIGURABLE,v9=kC.IteratorPrototype,s0=kC.BUGGY_SAFARI_ITERATORS,ff=Oe("iterator"),AJ=function(){return this},BC=function(t,e,n,r,o,i,a){(function(v,h,b,w){var E=h+" Iterator";v.prototype=mm(wJ,{next:fm(1,b)}),kv(v,E,!1),nc[E]=EJ})(n,e,r);var u,s,l,c=function(v){if(v===o&&g)return g;if(!s0&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[ff]||d["@@iterator"]||o&&d[o],g=!s0&&y||c(o),m=e=="Array"&&d.entries||y;if(m&&(u=Ov(m.call(new t)))!==Object.prototype&&u.next&&(Ov(u)!==v9&&(rc?rc(u,v9):ae(u[ff])||Jn(u,ff,AJ)),kv(u,f,!0)),DJ&&o=="values"&&y&&y.name!=="values"&&(SJ?ao(d,"name","values"):(p=!0,g=function(){return qt(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(s0||p||!(l in d))&&Jn(d,l,s[l]);else Se({target:e,proto:!0,forced:s0||p},s);return d[ff]!==g&&Jn(d,ff,g,{name:o}),nc[e]=g,s},OJ=HN.charAt,kJ=Nn.set,BJ=Nn.getterFor("String Iterator");BC(String,"String",function(t){kJ(this,{type:"String Iterator",string:ce(t),index:0})},function(){var t,e=BJ(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=OJ(n,r),e.index+=t.length,{value:t,done:!1})});var wb,TJ=uh.f,m9=gt("".endsWith),FJ=gt("".slice),_J=Math.min,VN=SC("endsWith"),PJ=!(VN||(wb=TJ(String.prototype,"endsWith"),!wb||wb.writable));Se({target:"String",proto:!0,forced:!PJ&&!VN},{endsWith:function(t){var e=ce(zr(this));DC(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:_J(Dc(n),r),i=ce(t);return m9?m9(e,i,o):FJ(e,o-i.length,o)===i}});var jJ=gt([].join),NJ=gm!=Object,IJ=BN("join",",");Se({target:"Array",proto:!0,forced:NJ||!IJ},{join:function(t){return jJ(Xa(this),t===void 0?",":t)}});var LJ=Oe("species"),ym=function(t){return op>=51||!te(function(){var e=[];return(e.constructor={})[LJ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},RJ=Sc.map,MJ=ym("map");Se({target:"Array",proto:!0,forced:!MJ},{map:function(t){return RJ(this,t,arguments.length>1?arguments[1]:void 0)}});var TC=J.RegExp,VE=te(function(){var t=TC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),zJ=VE||te(function(){return!TC("a","y").sticky}),bm={BROKEN_CARET:VE||te(function(){var t=TC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:zJ,UNSUPPORTED_Y:VE},$J=J.RegExp,FC=te(function(){var t=$J(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),HJ=J.RegExp,_C=te(function(){var t=HJ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),UJ=Nn.get,VJ=gC("native-string-replace",String.prototype.replace),Bv=RegExp.prototype.exec,WE=Bv,WJ=gt("".charAt),GJ=gt("".indexOf),qJ=gt("".replace),Eb=gt("".slice),Cb=function(){var t=/a/,e=/b*/g;return qt(Bv,t,"a"),qt(Bv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),y9=bm.BROKEN_CARET,xb=/()??/.exec("")[1]!==void 0;(Cb||xb||y9||FC||_C)&&(WE=function(t){var e,n,r,o,i,a,u,s=this,l=UJ(s),c=ce(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=qt(WE,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=y9&&s.sticky,y=qt(CC,s),g=s.source,m=0,v=c;if(d&&(y=qJ(y,"y",""),GJ(y,"g")===-1&&(y+="g"),v=Eb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&WJ(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",y)),xb&&(n=new RegExp("^"+g+"$(?!\\s)",y)),Cb&&(r=s.lastIndex),o=qt(Bv,d?n:s,v),d?o?(o.input=Eb(o.input,m),o[0]=Eb(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Cb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),xb&&o&&o.length>1&&qt(VJ,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=mm(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var lp=WE;Se({target:"RegExp",proto:!0,forced:/./.exec!==lp},{exec:lp});var PC=Function.prototype,b9=PC.apply,KJ=PC.bind,w9=PC.call,jC=typeof Reflect=="object"&&Reflect.apply||(KJ?w9.bind(b9):function(){return w9.apply(b9,arguments)}),YJ=Oe("species"),Db=RegExp.prototype,NC=function(t,e,n,r){var o=Oe(t),i=!te(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!te(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[YJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=gt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=gt(l),g=c.exec;return g===lp||g===Db.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Jn(String.prototype,t,s[0]),Jn(Db,o,s[1])}r&&ao(Db[o],"sham",!0)},XJ=HN.charAt,IC=function(t,e,n){return e+(n?XJ(t,e).length:1)},ZJ=Math.floor,Sb=gt("".charAt),JJ=gt("".replace),Ab=gt("".slice),QJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,tQ=/\$([$&'`]|\d{1,2})/g,eQ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=tQ;return o!==void 0&&(o=Ya(o),s=QJ),JJ(i,s,function(l,c){var f;switch(Sb(c,0)){case"$":return"$";case"&":return t;case"`":return Ab(e,0,n);case"'":return Ab(e,a);case"<":f=o[Ab(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=ZJ(p/10);return d===0?l:d<=u?r[d-1]===void 0?Sb(c,1):r[d-1]+Sb(c,1):l}f=r[p-1]}return f===void 0?"":f})},nQ=J.TypeError,cp=function(t,e){var n=t.exec;if(ae(n)){var r=qt(n,t,e);return r!==null&&He(r),r}if(uo(t)==="RegExp")return qt(lp,t,e);throw nQ("RegExp#exec called on incompatible receiver")},GE=Oe("replace"),rQ=Math.max,oQ=Math.min,iQ=gt([].concat),Ob=gt([].push),E9=gt("".indexOf),C9=gt("".slice),aQ="a".replace(/./,"$0")==="$0",x9=!!/./[GE]&&/./[GE]("a","$0")==="";NC("replace",function(t,e,n){var r=x9?"$":"$0";return[function(o,i){var a=zr(this),u=o==null?void 0:cs(o,GE);return u?qt(u,o,a,i):qt(e,ce(a),o,i)},function(o,i){var a=He(this),u=ce(o);if(typeof i=="string"&&E9(i,r)===-1&&E9(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=ae(i);l||(i=ce(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=cp(a,u);if(d===null||(Ob(p,d),!c))break;ce(d[0])===""&&(a.lastIndex=IC(u,Dc(a.lastIndex),f))}for(var y,g="",m=0,v=0;v<p.length;v++){for(var h=ce((d=p[v])[0]),b=rQ(oQ(ah(d.index),u.length),0),w=[],E=1;E<d.length;E++)Ob(w,(y=d[E])===void 0?y:String(y));var D=d.groups;if(l){var x=iQ([h],w,b,u);D!==void 0&&Ob(x,D);var O=ce(jC(i,void 0,x))}else O=eQ(h,u,b,w,D,i);b>=m&&(g+=C9(u,m,b)+O,m=b+h.length)}return g+C9(u,m)}]},!!te(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!aQ||x9);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var qE=function(t,e){return qE=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])},qE(t,e)};function Ac(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}qE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Br=function(){return Br=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},Br.apply(this,arguments)};function Tr(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 Wt(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 KE(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var uQ=0,D9=function(){this.id=""+uQ++},sQ=Nn.set,lQ=Nn.getterFor("Array Iterator"),pd=BC(Array,"Array",function(t,e){sQ(this,{type:"Array Iterator",target:Xa(t),index:0,kind:e})},function(){var t=lQ(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");nc.Arguments=nc.Array,Sd("keys"),Sd("values"),Sd("entries");var oc=function(t,e,n){for(var r in e)Jn(t,r,e[r],n);return t},cQ=J.Array,fQ=Math.max,YE=function(t,e,n){for(var r=Os(t),o=ec(e,r),i=ec(n===void 0?r:n,r),a=cQ(fQ(i-o,0)),u=0;o<i;o++,u++)sp(a,u,t[o]);return a.length=u,a},S9=ap.f,A9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dQ={f:function(t){return A9&&uo(t)=="Window"?function(e){try{return S9(e)}catch(n){return YE(A9)}}(t):S9(Xa(t))}},O9=te(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),l0=Object.isExtensible,Fu=te(function(){l0(1)})||O9?function(t){return!!pe(t)&&(!O9||uo(t)!="ArrayBuffer")&&(!l0||l0(t))}:l0,pQ=!te(function(){return Object.isExtensible(Object.preventExtensions({}))}),wm=ih(function(t){var e=ho.f,n=!1,r=vC("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=ap.f,s=gt([].splice),l={};l[r]=1,u(l).length&&(ap.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},Se({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dQ.f}))},fastKey:function(u,s){if(!pe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!$e(u,r)){if(!Fu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!$e(u,r)){if(!Fu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return pQ&&n&&Fu(u)&&!$e(u,r)&&i(u),u}};pm[r]=!0}),hQ=J.TypeError,yg=function(t,e){this.stopped=t,this.result=e},k9=yg.prototype,fp=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),y=fs(e,c),g=function(v){return r&&$E(r,"normal",v),new yg(!0,v)},m=function(v){return f?(He(v),d?y(v[0],v[1],g):y(v[0],v[1])):d?y(v,g):y(v)};if(p)r=t;else{if(!(o=AC(t)))throw hQ(cm(t)+" is not iterable");if(RN(o)){for(i=0,a=Os(t);a>i;i++)if((u=m(t[i]))&&ls(k9,u))return u;return new yg(!1)}r=MN(t,o)}for(s=r.next;!(l=qt(s,r)).done;){try{u=m(l.value)}catch(v){$E(r,"throw",v)}if(typeof u=="object"&&u&&ls(k9,u))return u}return new yg(!1)},gQ=J.TypeError,Em=function(t,e){if(ls(e,t))return t;throw gQ("Incorrect invocation")},WN=function(t,e,n){var r,o;return rc&&ae(r=e.constructor)&&r!==n&&pe(o=r.prototype)&&o!==n.prototype&&rc(t,o),t},GN=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=J[t],u=a&&a.prototype,s=a,l={},c=function(m){var v=gt(u[m]);Jn(u,m,m=="add"?function(h){return v(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!pe(h))&&v(this,h===0?0:h)}:m=="get"?function(h){return o&&!pe(h)?void 0:v(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!pe(h))&&v(this,h===0?0:h)}:function(h,b){return v(this,h===0?0:h,b),this})};if(up(t,!ae(a)||!(o||u.forEach&&!te(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),wm.enable();else if(up(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=te(function(){f.has(1)}),y=OC(function(m){new a(m)}),g=!o&&te(function(){for(var m=new a,v=5;v--;)m[i](v,v);return!m.has(-0)});y||((s=e(function(m,v){Em(m,u);var h=WN(new a,m,s);return v!=null&&fp(v,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Se({global:!0,forced:s!=a},l),kv(s,t),o||n.setStrong(s,t,r),s},c0=wm.getWeakData,vQ=Nn.set,mQ=Nn.getterFor,yQ=Sc.find,bQ=Sc.findIndex,wQ=gt([].splice),EQ=0,f0=function(t){return t.frozen||(t.frozen=new qN)},qN=function(){this.entries=[]},kb=function(t,e){return yQ(t.entries,function(n){return n[0]===e})};qN.prototype={get:function(t){var e=kb(this,t);if(e)return e[1]},has:function(t){return!!kb(this,t)},set:function(t,e){var n=kb(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=bQ(this.entries,function(n){return n[0]===t});return~e&&wQ(this.entries,e,1),!!~e}};var df,KN={getConstructor:function(t,e,n,r){var o=t(function(s,l){Em(s,i),vQ(s,{type:e,id:EQ++,frozen:void 0}),l!=null&&fp(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=mQ(e),u=function(s,l,c){var f=a(s),p=c0(He(l),!0);return p===!0?f0(f).set(l,c):p[f.id]=c,s};return oc(i,{delete:function(s){var l=a(this);if(!pe(s))return!1;var c=c0(s);return c===!0?f0(l).delete(s):c&&$e(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!pe(s))return!1;var c=c0(s);return c===!0?f0(l).has(s):c&&$e(c,l.id)}}),oc(i,n?{get:function(s){var l=a(this);if(pe(s)){var c=c0(s);return c===!0?f0(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}},d0=Nn.enforce,CQ=!J.ActiveXObject&&"ActiveXObject"in J,YN=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},xQ=GN("WeakMap",YN,KN);if(xN&&CQ){df=KN.getConstructor(YN,"WeakMap",!0),wm.enable();var pf=xQ.prototype,B9=gt(pf.delete),p0=gt(pf.has),T9=gt(pf.get),F9=gt(pf.set);oc(pf,{delete:function(t){if(pe(t)&&!Fu(t)){var e=d0(this);return e.frozen||(e.frozen=new df),B9(this,t)||e.frozen.delete(t)}return B9(this,t)},has:function(t){if(pe(t)&&!Fu(t)){var e=d0(this);return e.frozen||(e.frozen=new df),p0(this,t)||e.frozen.has(t)}return p0(this,t)},get:function(t){if(pe(t)&&!Fu(t)){var e=d0(this);return e.frozen||(e.frozen=new df),p0(this,t)?T9(this,t):e.frozen.get(t)}return T9(this,t)},set:function(t,e){if(pe(t)&&!Fu(t)){var n=d0(this);n.frozen||(n.frozen=new df),p0(this,t)?F9(this,t,e):n.frozen.set(t,e)}else F9(this,t,e);return this}})}var Bb=Oe("iterator"),_9=Oe("toStringTag"),Tb=pd.values,XN=function(t,e){if(t){if(t[Bb]!==Tb)try{ao(t,Bb,Tb)}catch(r){t[Bb]=Tb}if(t[_9]||ao(t,_9,e),Dv[e]){for(var n in pd)if(t[n]!==pd[n])try{ao(t,n,pd[n])}catch(r){t[n]=pd[n]}}}};for(var Fb in Dv)XN(J[Fb]&&J[Fb].prototype,Fb);XN(SN,"DOMTokenList");var XE=new WeakMap,ZE=new WeakMap,LC=new WeakMap,Cm=new WeakMap,JE=new WeakMap,Tv=new WeakMap,RC=new WeakMap,QE=new WeakMap,bg=new WeakMap,P9=new WeakMap,j9=new WeakMap,N9=new WeakMap,I9=new WeakMap,dp=new WeakMap,ic=new WeakMap,MC=new WeakMap,Fv=new WeakMap,t6=new WeakMap,_v=new WeakMap,wg=new WeakMap,ZN=new WeakMap,Uu=new WeakMap,_b=new WeakMap,L9=new WeakMap,Pb=new WeakMap,DQ=Sc.find,R9=!0;"find"in[]&&Array(1).find(function(){R9=!1}),Se({target:"Array",proto:!0,forced:R9},{find:function(t){return DQ(this,t,arguments.length>1?arguments[1]:void 0)}}),Sd("find"),Se({global:!0},{globalThis:J});const SQ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];vv&&(B.fn.css=vv),Mr&&(B.fn.append=Mr),Vl&&(B.fn.addClass=Vl),Wl&&(B.fn.removeClass=Wl),Gl&&(B.fn.hasClass=Gl),zo&&(B.fn.on=zo),La&&(B.fn.focus=La),Rr&&(B.fn.attr=Rr),dv&&(B.fn.removeAttr=dv),Kl&&(B.fn.hide=Kl),gv&&(B.fn.show=gv),JA&&(B.fn.offset=JA),pv&&(B.fn.width=pv),hv&&(B.fn.height=hv),Yl&&(B.fn.parent=Yl),bv&&(B.fn.parents=bv),t7&&(B.fn.is=t7),ql&&(B.fn.dataset=ql),Mo&&(B.fn.val=Mo),yv&&(B.fn.text=yv),Ia&&(B.fn.html=Ia),Zl&&(B.fn.children=Zl),Jl&&(B.fn.remove=Jl),Xl&&(B.fn.find=Xl),mv&&(B.fn.each=mv),Ql&&(B.fn.empty=Ql);var Bo,Fn,zC=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Xr=function(t){return ds(t)&&t.nodeType===1},ds=function(t){var e=zC(t);return!!e&&t instanceof e.Node},M9=function(t){var e=t&&t.anchorNode&&zC(t.anchorNode);return!!e&&t instanceof e.Selection},JN=function(t){return ds(t)&&t.nodeType===3},e6=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},QN=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(ds(r=i)&&r.nodeType===8||Xr(i)&&i.childNodes.length===0||Xr(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]},AQ=function(t,e,n){return Wt(QN(t,e,n),1)[0]},OQ=function t(e){var n,r,o="";if(JN(e)&&e.nodeValue)return e.nodeValue;if(Xr(e)){try{for(var i=Tr(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+=`
- `)}return o};function tI(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||tI(o,e)}}function z9(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==Bo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Fn=Bo||(Bo={}))[Fn.ELEMENT_NODE=1]="ELEMENT_NODE",Fn[Fn.TEXT_NODE=3]="TEXT_NODE",Fn[Fn.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Fn[Fn.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Fn[Fn.COMMENT_NODE=8]="COMMENT_NODE",Fn[Fn.DOCUMENT_NODE=9]="DOCUMENT_NODE",Fn[Fn.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Fn[Fn.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var n6=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),Ad=typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var hf=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),kQ=typeof navigator!="undefined"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),BQ=typeof navigator!="undefined"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),r6=typeof navigator!="undefined"&&/Chrome/i.test(navigator.userAgent);typeof navigator!="undefined"&&/.*QQBrowser/.test(navigator.userAgent);var gf=!BQ&&!kQ&&typeof globalThis!="undefined"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=ZN.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=wg.get(e);return n||(n=new D9,wg.set(e,n)),n},setNewKey:function(t){var e=new D9;wg.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=ic.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=A.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return ic.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=A.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[A.findPath(t,e)[0]];return et.get(t,n)},toDOMNode:function(t,e){var n;if(C.isEditor(e))n=MC.get(t);else{var r=A.findKey(t,e);n=t6.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=A.toDOMNode(t,t);try{r=Xr(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=L.isBackward(e),i=A.toDOMPoint(t,n),a=L.isCollapsed(e)?i:A.toDOMPoint(t,r),u=A.getWindow(t).document.createRange(),s=Wt(o?a:i,2),l=s[0],c=s[1],f=Wt(o?i:a,2),p=f[0],d=f[1],y=!!(Xr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Xr(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,y?1:c),u.setEnd(p,g?1:d),u},toDOMPoint:function(t,e){var n,r,o,i=Wt(C.node(t,e.path),1)[0],a=A.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=Tr(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,y=f.getAttribute("data-slate-length"),g=s+(y==null?d:parseInt(y,10));if(e.offset<=g){o=[p,Math.min(d,Math.max(0,e.offset-s))];break}s=g}}}catch(m){n={error:m}}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=Xr(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Fv.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=A.toSlateNode(t,e.target),u=A.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 A.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((M9(e)?e.anchorNode:e.startContainer)&&(M9(e)?(r=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=r6&&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=A.toSlatePoint(t,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var p={anchor:c,focus:f};return L.isExpanded(p)&&L.isForward(p)&&Xr(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=Wt(o?e:function(h){var b,w=Wt(h,2),E=w[0],D=w[1];if(Xr(E)&&E.childNodes.length){var x=D===E.childNodes.length,O=x?D-1:D;for(E=(b=Wt(QN(E,O,x?"backward":"forward"),2))[0],x=(O=b[1])<D;Xr(E)&&E.childNodes.length;){var F=x?E.childNodes.length-1:0;E=AQ(E,F,x?"backward":"forward")}D=x&&E.textContent!=null?E.textContent.length:0}return[E,D]}(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]"),y=null;if(d){c=d.closest('[data-slate-node="text"]');var g=A.getWindow(t).document.createRange();g.setStart(c,0),g.setEnd(u,s);var m=g.cloneContents();KE(KE([],Wt(YA(m.querySelectorAll("[data-slate-zero-width]")))),Wt(YA(m.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=m.textContent.length,y=c}else p&&((d=p.querySelector("[data-slate-leaf]"))?(c=d.closest('[data-slate-node="text"]'),f=(y=d).textContent.length,y.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);y&&f===y.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Ad&&((r=y.textContent)===null||r===void 0?void 0:r.endsWith(`
- `)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var v=A.toSlateNode(t,c);return{path:A.findPath(t,v),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 dt.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return et.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=C.nodes(t,{universal:!0});try{for(var i=Tr(o),a=i.next();!a.done;a=i.next()){var u=Wt(a.value,1)[0];dt.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=Wt(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=Wt(C.nodes(t,{match:function(r){return at.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=Wt(C.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&Wt(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=XE.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return Cm.get(t)||null},getHoverbar:function(t){return Tv.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=A.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Tr(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(g){e={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var c=C.nodes(t,{match:function(g){return!(!dt.isElement(g)||t.isInline(g))},universal:!0});try{for(var f=Tr(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var y=d[0];tI(A.toDOMNode(t,y),function(g,m){var v=B(m);v.attr("data-slate-string")||v.attr("data-slate-zero-width")||v.attr("data-w-e-reserve")||m.removeChild(g)})}}}catch(g){r={error:g}}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=Tr(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||L.isExpanded(e))return!1;var n=A.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=Wt(n,1)[0].children;return r.length===1&&r[0].text===""}},TQ=1,eI={},pp={},FQ=Sc.filter,_Q=ym("filter");Se({target:"Array",proto:!0,forced:!_Q},{filter:function(t){return FQ(this,t,arguments.length>1?arguments[1]:void 0)}});var o6=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,$9=gt("".replace),Pv="["+o6+"]",PQ=RegExp("^"+Pv+Pv+"*"),jQ=RegExp(Pv+Pv+"*$"),jb=function(t){return function(e){var n=ce(zr(e));return 1&t&&(n=$9(n,PQ,"")),2&t&&(n=$9(n,jQ,"")),n}},NQ={start:jb(1),end:jb(2),trim:jb(3)},IQ=xc.PROPER,LQ=NQ.trim;Se({target:"String",proto:!0,forced:function(t){return te(function(){return!!o6[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||IQ&&o6[t].name!==t})}("trim")},{trim:function(){return LQ(this)}});var i6=[],nI={};function RQ(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var hp,Vs,H9,Nb,jv=J.Promise,U9=Oe("species"),$C=function(t){var e=As(t),n=ho.f;dn&&e&&!e[U9]&&n(e,U9,{configurable:!0,get:function(){return this}})},MQ=J.TypeError,zQ=Oe("species"),rI=function(t,e){var n,r=He(t).constructor;return r===void 0||(n=He(r)[zQ])==null?e:function(o){if(vm(o))return o;throw MQ(cm(o)+" is not a constructor")}(n)},oI=gt([].slice),iI=/(?:ipad|iphone|ipod).*applewebkit/i.test(kl),ba=uo(J.process)=="process",a6=J.setImmediate,u6=J.clearImmediate,$Q=J.process,Ib=J.Dispatch,HQ=J.Function,V9=J.MessageChannel,UQ=J.String,Lb=0,Od={};try{hp=J.location}catch(t){}var HC=function(t){if($e(Od,t)){var e=Od[t];delete Od[t],e()}},Rb=function(t){return function(){HC(t)}},W9=function(t){HC(t.data)},G9=function(t){J.postMessage(UQ(t),hp.protocol+"//"+hp.host)};a6&&u6||(a6=function(t){var e=oI(arguments,1);return Od[++Lb]=function(){jC(ae(t)?t:HQ(t),void 0,e)},Vs(Lb),Lb},u6=function(t){delete Od[t]},ba?Vs=function(t){$Q.nextTick(Rb(t))}:Ib&&Ib.now?Vs=function(t){Ib.now(Rb(t))}:V9&&!iI?(Nb=(H9=new V9).port2,H9.port1.onmessage=W9,Vs=fs(Nb.postMessage,Nb)):J.addEventListener&&ae(J.postMessage)&&!J.importScripts&&hp&&hp.protocol!=="file:"&&!te(G9)?(Vs=G9,J.addEventListener("message",W9,!1)):Vs="onreadystatechange"in ip("script")?function(t){RE.appendChild(ip("script")).onreadystatechange=function(){RE.removeChild(this),HC(t)}}:function(t){setTimeout(Rb(t),0)});var vf,Ou,kd,vl,Mb,zb,$b,q9,aI={set:a6,clear:u6},VQ=/ipad|iphone|ipod/i.test(kl)&&J.Pebble!==void 0,WQ=/web0s(?!.*chrome)/i.test(kl),GQ=uh.f,Hb=aI.set,K9=J.MutationObserver||J.WebKitMutationObserver,Y9=J.document,X9=J.process,h0=J.Promise,Z9=GQ(J,"queueMicrotask"),uI=Z9&&Z9.value;uI||(vf=function(){var t,e;for(ba&&(t=X9.domain)&&t.exit();Ou;){e=Ou.fn,Ou=Ou.next;try{e()}catch(n){throw Ou?vl():kd=void 0,n}}kd=void 0,t&&t.enter()},iI||ba||WQ||!K9||!Y9?!VQ&&h0&&h0.resolve?(($b=h0.resolve(void 0)).constructor=h0,q9=fs($b.then,$b),vl=function(){q9(vf)}):ba?vl=function(){X9.nextTick(vf)}:(Hb=fs(Hb,J),vl=function(){Hb(vf)}):(Mb=!0,zb=Y9.createTextNode(""),new K9(vf).observe(zb,{characterData:!0}),vl=function(){zb.data=Mb=!Mb}));var Ub,J9,sI,Q9,lI=uI||function(t){var e={fn:t,next:void 0};kd&&(kd.next=e),Ou||(Ou=e,vl()),kd=e},qQ=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=Ra(e),this.reject=Ra(n)},UC={f:function(t){return new qQ(t)}},s6=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},KQ=typeof window=="object",cI=aI.set,YQ=Oe("species"),Ao="Promise",tO=Nn.getterFor(Ao),XQ=Nn.set,ZQ=Nn.getterFor(Ao),Eu=jv&&jv.prototype,To=jv,mf=Eu,fI=J.TypeError,l6=J.document,VC=J.process,Tl=UC.f,JQ=Tl,QQ=!!(l6&&l6.createEvent&&J.dispatchEvent),dI=ae(J.PromiseRejectionEvent),pI=!1,Bd=up(Ao,function(){var t=dm(To),e=t!==String(To);if(!e&&op===66)return!0;if(op>=51&&/native code/.test(t))return!1;var n=new To(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[YQ]=r,!(pI=n.then(function(){})instanceof r)||!e&&KQ&&!dI}),ttt=Bd||!OC(function(t){To.all(t).catch(function(){})}),hI=function(t){var e;return!(!pe(t)||!ae(e=t.then))&&e},WC=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;lI(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&&ntt(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(fI("Promise-chain cycle")):(u=hI(a))?qt(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ett(t)})}},gI=function(t,e,n){var r,o;QQ?((r=l6.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),J.dispatchEvent(r)):r={promise:e,reason:n},!dI&&(o=J["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=J.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},ett=function(t){qt(cI,J,function(){var e,n=t.facade,r=t.value;if(eO(t)&&(e=s6(function(){ba?VC.emit("unhandledRejection",r,n):gI("unhandledrejection",n,r)}),t.rejection=ba||eO(t)?2:1,e.error))throw e.value})},eO=function(t){return t.rejection!==1&&!t.parent},ntt=function(t){qt(cI,J,function(){var e=t.facade;ba?VC.emit("rejectionHandled",e):gI("rejectionhandled",e,t.value)})},xl=function(t,e,n){return function(r){t(e,r,n)}},Fl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,WC(t,!0))},c6=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw fI("Promise can't be resolved itself");var r=hI(e);r?lI(function(){var o={done:!1};try{qt(r,e,xl(c6,o,t),xl(Fl,o,t))}catch(i){Fl(o,i,t)}}):(t.value=e,t.state=1,WC(t,!1))}catch(o){Fl({done:!1},o,t)}}};if(Bd&&(mf=(To=function(t){Em(this,mf),Ra(t),qt(Ub,this);var e=tO(this);try{t(xl(c6,e),xl(Fl,e))}catch(n){Fl(e,n)}}).prototype,(Ub=function(t){XQ(this,{type:Ao,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=oc(mf,{then:function(t,e){var n=ZQ(this),r=n.reactions,o=Tl(rI(this,To));return o.ok=!ae(t)||t,o.fail=ae(e)&&e,o.domain=ba?VC.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&WC(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),J9=function(){var t=new Ub,e=tO(t);this.promise=t,this.resolve=xl(c6,e),this.reject=xl(Fl,e)},UC.f=Tl=function(t){return t===To||t===sI?new J9(t):JQ(t)},ae(jv)&&Eu!==Object.prototype)){Q9=Eu.then,pI||(Jn(Eu,"then",function(t,e){var n=this;return new To(function(r,o){qt(Q9,n,r,o)}).then(t,e)},{unsafe:!0}),Jn(Eu,"catch",mf.catch,{unsafe:!0}));try{delete Eu.constructor}catch(t){}rc&&rc(Eu,mf)}Se({global:!0,wrap:!0,forced:Bd},{Promise:To}),kv(To,Ao,!1),$C(Ao),sI=As(Ao),Se({target:Ao,stat:!0,forced:Bd},{reject:function(t){var e=Tl(this);return qt(e.reject,void 0,t),e.promise}}),Se({target:Ao,stat:!0,forced:Bd},{resolve:function(t){return function(e,n){if(He(e),pe(n)&&n.constructor===e)return n;var r=UC.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Se({target:Ao,stat:!0,forced:ttt},{all:function(t){var e=this,n=Tl(e),r=n.resolve,o=n.reject,i=s6(function(){var a=Ra(e.resolve),u=[],s=0,l=1;fp(t,function(c){var f=s++,p=!1;l++,qt(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=Tl(e),r=n.reject,o=s6(function(){var i=Ra(e.resolve);fp(t,function(a){qt(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Ws=bm.UNSUPPORTED_Y,rtt=Math.min,vI=[].push,ott=gt(/./.exec),Gs=gt(vI),yf=gt("".slice);function $r(t){Promise.resolve().then(t)}function mI(t,e){return dt.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(v){return mI(v,r)}).join(""));var c=function(v){return nI[v]||RQ}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||i6.forEach(function(v){return p=v(n,p)}),typeof f=="string")return p;var d=f.prefix,y=d===void 0?"":d,g=f.suffix,m=g===void 0?"":g;return y&&(p=y+p),m&&(p+=m),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," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(i);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return i6.forEach(function(s){return i=s(n,i)}),i}(t,e)}function yI(t){return"w-e-element-"+t}NC("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=ce(zr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!xC(o))return qt(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,y=new RegExp(o.source,p+"g");(s=qt(lp,y,a))&&!((l=y.lastIndex)>d&&(Gs(f,yf(a,d,s.index)),s.length>1&&s.index<a.length&&jC(vI,f,YE(s,1)),c=s[0].length,d=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&ott(y,"")||Gs(f,""):Gs(f,yf(a,d)),f.length>u?YE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:qt(e,this,o,i)}:e,[function(o,i){var a=zr(this),u=o==null?void 0:cs(o,t);return u?qt(u,o,a,i):qt(r,ce(a),o,i)},function(o,i){var a=He(this),u=ce(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=rI(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ws?"g":"y"),p=new l(Ws?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return cp(p,u)===null?[u]:[];for(var y=0,g=0,m=[];g<u.length;){p.lastIndex=Ws?0:g;var v,h=cp(p,Ws?yf(u,g):u);if(h===null||(v=rtt(Dc(p.lastIndex+(Ws?g:0)),u.length))===y)g=IC(u,g,c);else{if(Gs(m,yf(u,y,g)),m.length===d)return m;for(var b=1;b<=h.length-1;b++)if(Gs(m,h[b]),m.length===d)return m;g=y=v}}return Gs(m,yf(u,y)),m}]},!!te(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"}),Ws);var nO=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},rO=function(t,e,n){var r=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,n).getBoundingClientRect();return nO(r,o)&&nO(o,r)},bI=["span","b","strong","i","em","s","strike","u","font","sub","sup"],wI=[],GC=[],Nv={},itt=ho.f,att=ap.f,utt=Nn.enforce,stt=Oe("match"),di=J.RegExp,ml=di.prototype,ltt=J.SyntaxError,ctt=gt(CC),ftt=gt(ml.exec),g0=gt("".charAt),oO=gt("".replace),iO=gt("".indexOf),dtt=gt("".slice),ptt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Vu=/a/g,Vb=/a/g,htt=new di(Vu)!==Vu,EI=bm.MISSED_STICKY,gtt=bm.UNSUPPORTED_Y,vtt=dn&&(!htt||EI||FC||_C||te(function(){return Vb[stt]=!1,di(Vu)!=Vu||di(Vb)==Vb||di(Vu,"i")!="/a/i"}));if(up("RegExp",vtt)){for(var zi=function(t,e){var n,r,o,i,a,u,s=ls(ml,this),l=xC(t),c=e===void 0,f=[],p=t;if(!s&&l&&c&&t.constructor===zi)return t;if((l||ls(ml,t))&&(t=t.source,c&&(e="flags"in p?p.flags:ctt(p))),t=t===void 0?"":ce(t),e=e===void 0?"":ce(e),p=t,FC&&"dotAll"in Vu&&(r=!!e&&iO(e,"s")>-1)&&(e=oO(e,/s/g,"")),n=e,EI&&"sticky"in Vu&&(o=!!e&&iO(e,"y")>-1)&>t&&(e=oO(e,/y/g,"")),_C&&(i=function(d){for(var y,g=d.length,m=0,v="",h=[],b={},w=!1,E=!1,D=0,x="";m<=g;m++){if((y=g0(d,m))==="\\")y+=g0(d,++m);else if(y==="]")w=!1;else if(!w)switch(!0){case y==="[":w=!0;break;case y==="(":ftt(ptt,dtt(d,m+1))&&(m+=2,E=!0),v+=y,D++;continue;case(y===">"&&E):if(x===""||$e(b,x))throw new ltt("Invalid capture group name");b[x]=!0,h[h.length]=[x,D],E=!1,x="";continue}E?x+=y:v+=y}return[v,h]}(t),t=i[0],f=i[1]),a=WN(di(t,e),s?this:ml,zi),(r||o||f.length)&&(u=utt(a),r&&(u.dotAll=!0,u.raw=zi(function(d){for(var y,g=d.length,m=0,v="",h=!1;m<=g;m++)(y=g0(d,m))!=="\\"?h||y!=="."?(y==="["?h=!0:y==="]"&&(h=!1),v+=y):v+="[\\s\\S]":v+=y+g0(d,++m);return v}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{ao(a,"source",p===""?"(?:)":p)}catch(d){}return a},mtt=function(t){t in zi||itt(zi,t,{configurable:!0,get:function(){return di[t]},set:function(e){di[t]=e}})},aO=att(di),uO=0;aO.length>uO;)mtt(aO[uO++]);ml.constructor=zi,zi.prototype=ml,Jn(J,"RegExp",zi)}$C("RegExp");var ytt=new RegExp(String.fromCharCode(160),"g");function CI(t){return t.replace(ytt," ")}function sO(t,e){var n=t.length;if(n){var r=t[n-1];if(at.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function btt(t,e,n){return{type:"paragraph",children:[{text:B(t).text().replace(/\s+/gm," ")}]}}function Wb(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!==Bo.ELEMENT_NODE){if(l.nodeType===Bo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
- `)>=0)return;c&&(c=CI(c),sO(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(sO(u,`
- `)||u.push({text:`
- `}));var f=qC(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 Nv)if(i[0].matches(a))return Nv[a];return btt}(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," ")}]),GC.forEach(function(a){i=a(t[0],i,e)}))}),o}function Gb(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
- `));var n=t[0].textContent||"";n=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"\xAE").replace(/©/g,"\xA9").replace(/™/g,"\u2122").replace(/"/g,'"')}(n);var r={text:n=CI(n)};return GC.forEach(function(o){r=o(t[0],r,e)}),r}function qC(t,e){wI.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var n=z9(t);return n==="span"?t.attr("data-w-e-type")?Wb(t,e):Gb(t,e):n==="code"?z9(t.parent())==="pre"?Wb(t,e):Gb(t,e):bI.includes(n)?Gb(t,e):Wb(t,e)}function xI(t,e,n){var r=B(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function lO(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=qC(B(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var wtt=ho.f,cO=wm.fastKey,fO=Nn.set,qb=Nn.getterFor,Ett={getConstructor:function(t,e,n,r){var o=t(function(l,c){Em(l,i),fO(l,{type:e,index:mm(null),first:void 0,last:void 0,size:0}),dn||(l.size=0),c!=null&&fp(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=qb(e),u=function(l,c,f){var p,d,y=a(l),g=s(l,c);return g?g.value=f:(y.last=g={index:d=cO(c,!0),key:c,value:f,previous:p=y.last,next:void 0,removed:!1},y.first||(y.first=g),p&&(p.next=g),dn?y.size++:l.size++,d!=="F"&&(y.index[d]=g)),l},s=function(l,c){var f,p=a(l),d=cO(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return oc(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,dn?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,y=p.previous;delete f.index[p.index],p.removed=!0,y&&(y.next=d),d&&(d.previous=y),f.first==p&&(f.first=d),f.last==p&&(f.last=y),dn?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=fs(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)}}),oc(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)}}),dn&&wtt(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=qb(e),i=qb(r);BC(t,e,function(a,u){fO(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),$C(e)}};GN("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Ett);var dO=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function pO(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var Ctt=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Wt(L.edges(o),2),a=i[0],u=i[1],s=C.void(e,{at:a.path}),l=C.void(e,{at:u.path});if(!L.isCollapsed(o)||s){var c=A.toDOMRange(e,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(E){E.textContent&&E.textContent.trim()!==""&&(p=E)}),l){var d=Wt(l,1)[0],y=c.cloneRange(),g=A.toDOMNode(e,d);y.setEndAfter(g),f=y.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(E){var D=E.getAttribute("data-slate-zero-width")==="n";E.textContent=D?`
- `:""}),JN(p)){var m=p.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(p),f.appendChild(m),p=m}var v=e.getFragment(),h=JSON.stringify(v),b=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",OQ(w)),f.ownerDocument.body.removeChild(w),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=Tr(f),y=d.next();!y.done;y=d.next()){var g=y.value;p&&N.splitNodes(e,{always:!0}),n(g),p=!0}}catch(m){o={error:m}}finally{try{y&&!y.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},e},hd=function(t){return t!=null},xtt={object:!0,function:!0,undefined:!0},Dtt=/^\s*class[\s{/}]/,Stt=Function.prototype.toString,hO=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(n){return!1}return!function(n){if(!function(r){return!!hd(r)&&hasOwnProperty.call(xtt,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch(r){return!1}}(e)}(t)&&!Dtt.test(Stt.call(t))},KC=function(t){return t!=null},Att=Object.keys,Ott=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return Att(KC(t)?Object(t):t)},ktt=function(t){if(!KC(t))throw new TypeError("Cannot use null or undefined");return t},Btt=Math.max,gO=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=Btt(arguments.length,2);for(t=Object(ktt(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r<i;++r)Ott(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},Ttt=Array.prototype.forEach,Ftt=Object.create,_tt=function(t,e){var n;for(n in t)e[n]=t[n]},vO=function(t){var e=Ftt(null);return Ttt.call(arguments,function(n){KC(n)&&_tt(Object(n),e)}),e},Kb="razdwatrzy",Ptt=String.prototype.indexOf,bf=typeof Kb.contains=="function"&&Kb.contains("dwa")===!0&&Kb.contains("foo")===!1?String.prototype.contains:function(t){return Ptt.call(this,t,arguments[1])>-1},v0=ih(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],hd(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?gO(vO(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],hd(r)?hO(r)?hd(o)?hO(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,hd(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?gO(vO(u),s):s}}),Yb=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},jtt=ih(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,y=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(m,v){var h;return Yb(v),y.call(this,"__ee__")?h=this.__ee__:(h=g.value=f(null),p(this,"__ee__",g),g.value=null),h[m]?typeof h[m]=="object"?h[m].push(v):h[m]=[h[m],v]:h[m]=v,this},r=function(m,v){var h,b;return Yb(v),b=this,n.call(this,m,h=function(){o.call(b,m,h),l.call(v,this,arguments)}),h.__eeOnceListener__=v,this},o=function(m,v){var h,b,w,E;if(Yb(v),!y.call(this,"__ee__"))return this;if(!(h=this.__ee__)[m])return this;if(typeof(b=h[m])=="object")for(E=0;w=b[E];++E)w!==v&&w.__eeOnceListener__!==v||(b.length===2?h[m]=b[E?0:1]:b.splice(E,1));else b!==v&&b.__eeOnceListener__!==v||delete h[m];return this},i=function(m){var v,h,b,w,E;if(y.call(this,"__ee__")&&(w=this.__ee__[m]))if(typeof w=="object"){for(h=arguments.length,E=new Array(h-1),v=1;v<h;++v)E[v-1]=arguments[v];for(w=w.slice(),v=0;b=w[v];++v)l.call(b,this,E)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,E=new Array(h-1),v=1;v<h;++v)E[v-1]=arguments[v];l.call(w,this,E)}},a={on:n,once:r,off:o,emit:i},u={on:v0(n),once:v0(r),off:v0(o),emit:v0(i)},s=d({},u),t.exports=e=function(m){return m==null?f(s):d(Object(m),u)},e.methods=a});function m0(t){var e=L9.get(t);return e==null&&(e=jtt(),L9.set(t,e)),e}var Iv=new WeakMap;function mO(t,e){var n=Iv.get(t);n==null&&(n=new Set,Iv.set(t,n)),n.add(e)}function Ntt(t){return Iv.get(t)||new Set}function Itt(t){Iv.set(t,new Set)}function YC(t){var e=A.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function XC(t){var e={top:"0",left:"0"},n=t.selection;if(n==null)return e;var r=YC(t);if(r==null)return e;var o=r.top,i=r.left,a=r.width,u=r.height,s=A.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 y=u-f;c.bottom=y+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function ZC(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=dt.isElement(e)&&t.isVoid(e),i=dt.isElement(e)&&t.isInline(e),a=_v.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(x){var O=[];O.push(x);for(var F=0;O.length>0;){var R=O.pop();if(R==null||++F>1e4)break;var U=R.nodeName;if(R.nodeType===1){var M=U.toLowerCase();if(SQ.includes(M)||M==="iframe"||M==="video")return R;var Y=R.children||[],W=Y.length;if(W)for(var G=W-1;G>=0;G--)O.push(Y[G])}}return null}(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var y=YC(t);if(y==null)return r;var g,m=y.top,v=y.left,h=y.width,b=y.height,w={},E=s-m,D=l-v;if(n==="bar")return w.left=D+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if(n==="modal")return o?i?D>(h-f)/2?w.right=h-D+5+"px":w.left=D+f+5+"px":w.left="20px":w.left=D+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function f6(t,e){$r(function(){var n=YC(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,y=c-i,g=e.attr("style");if(g.indexOf("top")>=0&&(r=d+p-u)>0){var m=e.css("top"),v=parseInt(m.toString())-r;v<0&&(v=0),e.css("top",v+"px")}if(g.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=y+f-a)>0){var w=e.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),e.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var D=e.css("right"),x=parseInt(D.toString())-Math.abs(c);e.css("right",x+"px")}}})}var Ltt=ym("slice"),Rtt=Oe("species"),Xb=J.Array,Mtt=Math.max;Se({target:"Array",proto:!0,forced:!Ltt},{slice:function(t,e){var n,r,o,i=Xa(this),a=Os(i),u=ec(t,a),s=ec(e===void 0?a:e,a);if(Sv(i)&&(n=i.constructor,(vm(n)&&(n===Xb||Sv(n.prototype))||pe(n)&&(n=n[Rtt])===null)&&(n=void 0),n===Xb||n===void 0))return oI(i,u,s);for(r=new(n===void 0?Xb:n)(Mtt(s-u,0)),o=0;u<s;u++,o++)u in i&&sp(r,o,i[u]);return r.length=o,r}});var ztt=uh.f,yO=gt("".startsWith),$tt=gt("".slice),Htt=Math.min,DI=SC("startsWith"),Utt=!DI&&!!function(){var t=ztt(String.prototype,"startsWith");return t&&!t.writable}();Se({target:"String",proto:!0,forced:!Utt&&!DI},{startsWith:function(t){var e=ce(zr(this));DC(t);var n=Dc(Htt(arguments.length>1?arguments[1]:void 0,e.length)),r=ce(t);return yO?yO(e,r,n):$tt(e,n,n+r.length)===r}});var qs=Object.assign,bO=Object.defineProperty,Vtt=gt([].concat),wO=!qs||te(function(){if(dn&&qs({b:1},qs(bO({},"a",{enumerable:!0,get:function(){bO(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}),qs({},t)[n]!=7||Bl(qs({},e)).join("")!=r})?function(t,e){for(var n=Ya(t),r=arguments.length,o=1,i=jN.f,a=FN.f;r>o;)for(var u,s=gm(arguments[o++]),l=i?Vtt(Bl(s),i(s)):Bl(s),c=l.length,f=0;c>f;)u=l[f++],dn&&!qt(a,s,u)||(n[u]=s[u]);return n}:qs;Se({target:"Object",stat:!0,forced:Object.assign!==wO},{assign:wO});var Wtt=["props","attrs","style","dataset","on","hook"];function SI(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(!Wtt.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=gY(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"&&SI(i)})}var d6=[],AI={};function Gtt(t,e,n){return Et(n.isInline(t)?"span":"div",null,e)}function EO(t,e){return e===void 0&&(e=!1),Et("span",{"data-slate-string":!0},e?t+`
- `:t)}function Zb(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),Et("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?Et("br",null):null)}function p6(t,e,n,r){return dp.set(t,e),ic.set(t,n),dt.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=C.isVoid(i,o),c=yI(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,y=d===void 0?[]:d,g=function(E){return AI[E]||Gtt}(p);a=l?null:y.map(function(E,D){return p6(E,D,o,i)});var m=g(o,a,i);if(l){f["data-slate-void"]=!0;var v=s?"span":"div",h=Wt(et.texts(o),1),b=Wt(h[0],1)[0],w=Et(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},p6(b,0,o,i));m=Et(v,{style:{position:"relative"}},m,w),dp.set(b,0),ic.set(b,o)}return m.data==null&&(m.data={}),Object.assign(m.data,f),l||s||(m=function(E,D){var x=D;return d6.forEach(function(O){x=O(E,D)}),x}(o,m)),$r(function(){var E=e6(c);E!=null&&(t6.set(u,E),_v.set(o,E),Fv.set(E,o))}),m}(t,r):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=at.decorations(o,c),p=f.map(function(g,m){var v=function(h,b,w,E,D){b===void 0&&(b=!1);var x=h.text,O=A.findPath(D,w),F=j.parent(O);if(C.isEditor(E))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return D.isVoid(E)?Zb(et.string(E).length):x!==""||E.children[E.children.length-1]!==w||D.isInline(E)||C.string(D,F)!==""?x===""?Zb():b&&x.slice(-1)===`
- `?EO(x,!0):EO(x):Zb(0,!0)}(g,m===f.length-1,o,i,a);return v=function(h,b){var w=b;return d6.forEach(function(E){w=E(h,w)}),w}(g,v),Et("span",{"data-slate-leaf":!0},v)}),d=function(g){return"w-e-text-"+g}(u.id),y=Et("span",{"data-slate-node":"text",id:d,key:u.id},p);return $r(function(){var g=e6(d);g!=null&&(t6.set(u,g),_v.set(o,g),Fv.set(g,o))}),y}(t,n,r)}function qtt(t,e){var n,r=t.$scroll,o=function(g){return"w-e-textarea-"+g}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(g,m){return m===void 0&&(m=!1),tc("div#"+g,{props:{contentEditable:!m}})}(o,a),l=e.children||[];s.children=l.map(function(g,m){var v=p6(g,m,e,e);return SI(v),v});var c=j9.get(t);if(c==null&&(c=!0),c){var f=function(g,m){return B(`<div
- id="`+g+`"
- data-slate-editor
- data-slate-node="value"
- suppressContentEditableWarning
- role="textarea"
- spellCheck="true"
- autoCorrect="true"
- autoCapitalize="true"
- ></div>`)}(o);r.append(f),t.$textArea=f,n=f[0],(d=LK([MK,UK,WK,zK,HK,RK]))(n,s),j9.set(t,!1),N9.set(t,d)}else{var p=I9.get(t),d=N9.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=e6(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var y=zC(n);y&&ZN.set(e,y)}MC.set(e,n),_v.set(e,n),Fv.set(n,e),I9.set(t,s)}}function CO(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function xO(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function Jb(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return xO(n.overflowY,e)||xO(n.overflowX,e)||function(r){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(a){return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(t)}return!1}function y0(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 DO(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(Dt){return Dt!==a};if(!CO(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;CO(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Jb(f)&&!Jb(document.documentElement)||f!=null&&Jb(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=t.getBoundingClientRect(),v=m.height,h=m.width,b=m.top,w=m.right,E=m.bottom,D=m.left,x=o==="start"||o==="nearest"?b:o==="end"?E:b+v/2,O=i==="center"?D+h/2:i==="end"?w:D,F=[],R=0;R<c.length;R++){var U=c[R],M=U.getBoundingClientRect(),Y=M.height,W=M.width,G=M.top,K=M.right,ot=M.bottom,ft=M.left;if(r==="if-needed"&&b>=0&&D>=0&&E<=d&&w<=p&&b>=G&&E<=ot&&D>=ft&&w<=K)return F;var ct=getComputedStyle(U),st=parseInt(ct.borderLeftWidth,10),k=parseInt(ct.borderTopWidth,10),S=parseInt(ct.borderRightWidth,10),P=parseInt(ct.borderBottomWidth,10),H=0,X=0,V="offsetWidth"in U?U.offsetWidth-U.clientWidth-st-S:0,ut="offsetHeight"in U?U.offsetHeight-U.clientHeight-k-P:0;if(l===U)H=o==="start"?x:o==="end"?x-d:o==="nearest"?y0(g,g+d,d,k,P,g+x,g+x+v,v):x-d/2,X=i==="start"?O:i==="center"?O-p/2:i==="end"?O-p:y0(y,y+p,p,st,S,y+O,y+O+h,h),H=Math.max(0,H+g),X=Math.max(0,X+y);else{H=o==="start"?x-G-k:o==="end"?x-ot+P+ut:o==="nearest"?y0(G,ot,Y,k,P+ut,x,x+v,v):x-(G+Y/2)+ut/2,X=i==="start"?O-ft-st:i==="center"?O-(ft+W/2)+V/2:i==="end"?O-K+S+V:y0(ft,K,W,st,S+V,O,O+h,h);var mt=U.scrollLeft,yt=U.scrollTop;x+=yt-(H=Math.max(0,Math.min(yt+H,U.scrollHeight-Y+ut))),O+=mt-(X=Math.max(0,Math.min(mt+X,U.scrollWidth-W+V)))}F.push({el:U,top:H,left:X})}return F}function SO(t){return t===Object(t)&&Object.keys(t).length!==0}function Ar(t,e){return ds(e)&&A.hasDOMNode(t,e,{editable:!0})}function AO(t,e){if(t.getConfig().readOnly)return!1;var n=yl(t,e)&&A.toSlateNode(t,e);return C.isVoid(t,n)}function yl(t,e){return ds(e)&&A.hasDOMNode(t,e)}function OI(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=A.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=MC.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&L.equals(l,r)){var c=!0;if(L.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,y=void 0;(y=d[p])&&y.matches("table")&&(c=!1),(y=d[p-1])&&y.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(e,r)){t.isUpdatingSelection=!0;var g=r&&A.toDOMRange(e,r);if(g){L.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var m=g.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")){m.getBoundingClientRect=g.getBoundingClientRect.bind(g);var v=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(SO(b)&&typeof b.behavior=="function")return b.behavior(w?[]:DO(h,b));if(!w){var E=function(D){return D===!1?{block:"end",inline:"nearest"}:SO(D)?D:{block:"start",inline:"nearest"}}(b);(function(D,x){x===void 0&&(x="auto");var O="scrollBehavior"in document.body.style;D.forEach(function(F){var R=F.el,U=F.top,M=F.left;R.scroll&&O?R.scroll({top:U,left:M,behavior:x}):(R.scrollTop=U,R.scrollLeft=M)})})(DO(h,E),E.behavior)}})(m,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:v,block:"end",behavior:"smooth"}),delete m.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&Ad&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var Qb=new WeakMap,OO=new WeakMap,Ktt={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"},Ytt={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"},Xtt={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Ee=function(t){var e=Ktt[t],n=Ytt[t],r=Xtt[t],o=e&&Xy(e),i=n&&Xy(n),a=r&&Xy(r);return function(u){return!(!o||!o(u))||!!(n6&&i&&i(u))||!(n6||!a||!a(u))}},xe={isBold:Ee("bold"),isCompose:Ee("compose"),isMoveBackward:Ee("moveBackward"),isMoveForward:Ee("moveForward"),isDeleteBackward:Ee("deleteBackward"),isDeleteForward:Ee("deleteForward"),isDeleteLineBackward:Ee("deleteLineBackward"),isDeleteLineForward:Ee("deleteLineForward"),isDeleteWordBackward:Ee("deleteWordBackward"),isDeleteWordForward:Ee("deleteWordForward"),isExtendBackward:Ee("extendBackward"),isExtendForward:Ee("extendForward"),isExtendLineBackward:Ee("extendLineBackward"),isExtendLineForward:Ee("extendLineForward"),isItalic:Ee("italic"),isMoveLineBackward:Ee("moveLineBackward"),isMoveLineForward:Ee("moveLineForward"),isMoveWordBackward:Ee("moveWordBackward"),isMoveWordForward:Ee("moveWordForward"),isRedo:Ee("redo"),isSplitBlock:Ee("splitBlock"),isTransposeCharacter:Ee("transposeCharacter"),isUndo:Ee("undo"),isTab:Ee("tab"),isSelectAll:Ee("selectAll")};function qe(t){t.preventDefault()}var Ztt={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(gf&&!o&&Ar(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=Wt(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||N.select(n,l)}}if(i&&L.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"&&!Pb.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&&Ar(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||Xr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&ds(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(dt.isElement(s)&&!n.isVoid(s))return}if(hf){var l=a.getSelection();l==null||l.removeAllRanges()}Uu.delete(n)}}}},focus:function(t,e,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,Ad&&t.target!==r?r.focus():Uu.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&yl(n,t.target)&&ds(t.target)){var r=A.toSlateNode(n,t.target),o=A.findPath(n,r);if(C.hasPath(n,o)&&et.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);N.select(n,l)}}}},compositionstart:function(t,e,n){if(Ar(n,t.target)){var r=n.selection;if(r&&L.isExpanded(r)&&(C.deleteFragment(n),Promise.resolve().then(function(){OI(e,n,!0)})),r&&L.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";Qb.set(n,i),OO.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(Ar(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(r6||Ad)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=L.isBackward(o)?o.focus:o.anchor,a=Wt(C.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Wt(C.node(n,i.path.slice(0,u+1)),1)[0];if(dt.isElement(s)&&((hf||Ad)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(n);c<l.length?(A.toDOMRange(n,o).startContainer.textContent=Qb.get(n)||"",c>0&&C.insertText(n,l.slice(0,c)),e.changeViewState()):C.insertText(n,l)}else C.insertText(n,l);hf||setTimeout(function(){var f=n.selection;if(f!=null){var p=OO.get(n);p!=null&&A.toDOMRange(n,f).startContainer!==p&&(p.textContent=Qb.get(n)||"")}})}}}},compositionupdate:function(t,e,n){Ar(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&Ar(n,r.target)){if(function(a,u){var s=Cm.get(a),l=s&&s.getMenus(),c=Tv.get(a),f=c&&c.getMenus(),p=Br(Br({},l),f);for(var d in p){var y=p[d],g=y.hotkey;if(g&&yY(g,u)&&!y.isDisabled(a)){var m=y.getValue(a);y.exec(a,m)}}}(n,r),xe.isTab(r))return qe(r),void n.handleTab();if(xe.isRedo(r))return qe(r),void(typeof n.redo=="function"&&n.redo());if(xe.isUndo(r))return qe(r),void(typeof n.undo=="function"&&n.undo());if(xe.isMoveLineBackward(r))return qe(r),void N.move(n,{unit:"line",reverse:!0});if(xe.isMoveLineForward(r))return qe(r),void N.move(n,{unit:"line"});if(xe.isExtendLineBackward(r))return qe(r),void N.move(n,{unit:"line",edge:"focus",reverse:!0});if(xe.isExtendLineForward(r))return qe(r),void N.move(n,{unit:"line",edge:"focus"});if(xe.isMoveBackward(r))return qe(r),void(o&&L.isCollapsed(o)?N.move(n,{reverse:!0}):N.collapse(n,{edge:"start"}));if(xe.isMoveForward(r))return qe(r),void(o&&L.isCollapsed(o)?N.move(n):N.collapse(n,{edge:"end"}));if(xe.isMoveWordBackward(r))return qe(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word",reverse:!0});if(xe.isMoveWordForward(r))return qe(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word"});if(xe.isSelectAll(r))return qe(r),void n.selectAll();if(gf){if((r6||hf)&&o&&(xe.isDeleteBackward(r)||xe.isDeleteForward(r))&&L.isCollapsed(o)){var i=et.parent(n,o.anchor.path);if(dt.isElement(i)&&C.isVoid(n,i)&&C.isInline(n,i))return r.preventDefault(),void N.delete(n,{unit:"block"})}}else{if(xe.isBold(r)||xe.isItalic(r)||xe.isTransposeCharacter(r))return void qe(r);if(xe.isSplitBlock(r))return qe(r),void C.insertBreak(n);if(xe.isDeleteBackward(r))return qe(r),void(o&&L.isExpanded(o)?C.deleteFragment(n,{direction:"backward"}):C.deleteBackward(n));if(xe.isDeleteForward(r))return qe(r),void(o&&L.isExpanded(o)?C.deleteFragment(n,{direction:"forward"}):C.deleteForward(n));if(xe.isDeleteLineBackward(r))return qe(r),void(o&&L.isExpanded(o)?C.deleteFragment(n,{direction:"backward"}):C.deleteBackward(n,{unit:"line"}));if(xe.isDeleteLineForward(r))return qe(r),void(o&&L.isExpanded(o)?C.deleteFragment(n,{direction:"forward"}):C.deleteForward(n,{unit:"line"}));if(xe.isDeleteWordBackward(r))return qe(r),void(o&&L.isExpanded(o)?C.deleteFragment(n,{direction:"backward"}):C.deleteBackward(n,{unit:"word"}));if(xe.isDeleteWordForward(r))return qe(r),void(o&&L.isExpanded(o)?C.deleteFragment(n,{direction:"forward"}):C.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!gf&&!n.getConfig().readOnly&&Ar(n,t.target)){t.preventDefault();var r=t.key;C.insertText(n,r)}},copy:function(t,e,n){var r=t;if(Ar(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&&Ar(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(L.isExpanded(o))C.deleteFragment(n);else{var a=et.parent(n,o.anchor.path);C.isVoid(n,a)&&N.delete(n)}}},paste:function(t,e,n){Pb.set(n,!0);var r=t;if(!n.getConfig().readOnly&&Ar(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void Pb.set(n,!1);if(!gf||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(yl(n,t.target)){var r=A.toSlateNode(n,t.target);C.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(yl(n,r.target)&&!n.getConfig().readOnly){var o=A.toSlateNode(n,r.target),i=A.findPath(n,o);if(C.isVoid(n,o)||C.void(n,{at:i,voids:!0})){var a=C.range(n,i);N.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&&yl(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&yl(n,r.target)&&o!=null&&!(gf&&hf&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);N.select(n,a),e.isDraggingInternally&&(i&&N.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},Jtt=1,Qtt=function(){function t(e){var n=this;this.id=Jtt++,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=ss(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=A.findDocumentOrShadowRoot(s),d=p.activeElement,y=A.toDOMNode(s,s),g=p.getSelection();if(d===y?(u.latestElement=d,Uu.set(s,!0)):Uu.delete(s),!g)return N.deselect(s);var m=g.anchorNode,v=g.focusNode,h=Ar(s,m)||AO(s,m),b=Ar(s,v)||AO(s,v);if(h&&b){var w=A.toSlateRange(s,g,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.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,$r(function(){var a=n.editorInstance,u=A.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=ZE.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&&(uC(Ztt,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",ss(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-A.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;qtt(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),$r(function(){OI(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function JC(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&&JC(e)}function QC(){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 kI(){return B('<div class="w-e-bar-divider"></div>')}function BI(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=n6?"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+`
- `+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}NC("match",function(t,e,n){return[function(r){var o=zr(this),i=r==null?void 0:cs(r,t);return i?qt(i,r,o):new RegExp(r)[t](ce(o))},function(r){var o=He(this),i=ce(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return cp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=cp(o,i))!==null;){var f=ce(s[0]);l[c]=f,f===""&&(o.lastIndex=IC(i,Dc(o.lastIndex),u)),c++}return c===0?null:l}]});var tx=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);JC(d),p.append(d)}else p.text(u);BI(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),$r(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),lr(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=lr(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=lr(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=lr(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}(),tet=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return Ac(e,t),e.prototype.onButtonClick=function(){},e}(tx),ex=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=QE.get(e);n==null&&(n=new Set,QE.set(e,n)),n.add(this),bg.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=bg.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=bg.get(this);e&&e.emit("modalOrPanelHide")}},t}(),eet=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 Ac(e,t),e.prototype.genSelfElem=function(){return null},e}(ex),net=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=QC();i.$button.append(a)}return i}return Ac(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=lr(this);if(this.dropPanel==null){var o=new eet(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}(tx),ret=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 Ac(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=bg.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}(ex);function cr(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 Oc(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 oet=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 Ac(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=lr(this),r=this.menu.getModalPositionNode(n);return dt.isElement(r)?ZC(n,r,"modal"):XC(n)},e.prototype.handleModal=function(){var n=lr(this),r=this.menu;if(this.modal==null){var o=new ret(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=lr(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.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||f6(o,n.$elem),setTimeout(function(){o.blur()})}},e}(tx),iet=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 Ac(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}(ex),aet=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),BI(p,l,a,f,r),this.$elem.append(p),this.menu=n,$r(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),lr(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=lr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new iet(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=lr(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=lr(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=QC();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=lr(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}(),kO=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);JC(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=QC();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}(),BO=new WeakMap;function lr(t){var e=RC.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function TI(t,e,n){n===void 0&&(n=!1);var r=BO.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new net(t,e,n):a?new oet(t,e,n):new tet(t,e,n)}if(o==="select"&&(r=new aet(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return BO.set(e,r),r}function uet(t,e){var n=t.selection;return n!=null&&!L.isCollapsed(n)&&!A.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!at.isText(e)}var set=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=aN(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&&dt.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),$r(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.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;$r(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=kI();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=pp[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=TI(e,o);this.hoverbarItems.push(a),RC.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),dt.isElement(e)){var o=ZC(n,e,"bar");return r.css(o),void f6(n,r)}if(at.isText(e))return o=XC(n),r.css(o),void f6(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(g,m){return A.checkNodeType(m,u)},d=Wt(C.nodes(e,{match:function(g){return p(e,g)},universal:!0}),1),y=d[0];if(y!=null)return r=y[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=JE.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=uet),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=A.findPath(null,e),o=A.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 FI(t,e,n,r){if(dp.set(t,e),ic.set(t,n),dt.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return FI(u,s,t,r)}),C.isVoid(r,t)){var i=Wt(et.texts(t),1),a=Wt(i[0],1)[0];dp.set(a,0),ic.set(a,t)}}}function cet(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=(v=>{var h=v,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:E}=w;if(E.length>0){var D=E[E.length-1];Cl.withoutSaving(h,()=>{C.withoutNormalizing(h,()=>{for(var x of D)h.apply(x)})}),w.redos.pop(),w.undos.push(D)}},h.undo=()=>{var{history:w}=h,{undos:E}=w;if(E.length>0){var D=E[E.length-1];Cl.withoutSaving(h,()=>{C.withoutNormalizing(h,()=>{var x=D.map(ca.inverse).reverse();for(var O of x)h.apply(O)})}),w.redos.push(D),w.undos.pop()}},h.apply=w=>{var{operations:E,history:D}=h,{undos:x}=D,O=x[x.length-1],F=O&&O[O.length-1],R=((W,G)=>!(!G||W.type!=="set_selection"||G.type!=="set_selection"))(w,F),U=Cl.isSaving(h),M=Cl.isMerging(h);if(U==null&&(U=((W,G)=>W.type!=="set_selection"||W.properties!=null&&W.newProperties!=null)(w)),U){if(M==null&&(M=O!=null&&(E.length!==0||((W,G)=>W.type==="set_selection"||!(!G||W.type!=="insert_text"||G.type!=="insert_text"||W.offset!==G.offset+G.text.length||!j.equals(W.path,G.path))||!(!G||W.type!=="remove_text"||G.type!=="remove_text"||W.offset+W.text.length!==G.offset||!j.equals(W.path,G.path)))(w,F)||R)),O&&M)R&&O.pop(),O.push(w);else{var Y=[w];x.push(Y)}for(;x.length>100;)x.shift();(W=>W.type!=="set_selection")(w)&&(D.redos=[])}b(w)},h})(function(v){var h=v,b=h.insertText,w=h.insertNode,E=h.insertFragment,D=h.dangerouslyInsertHtml;return h.insertText=function(x){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O<x.length?b(x.slice(0,O)):b(x))}else b(x)},h.insertNode=function(x){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||O<et.string(x).length||w(x)}else w(x)},h.insertFragment=function(x){if(h.getConfig().maxLength)if(x.length!==1)x.forEach(function(F){h.insertNode(F)});else{var O=x[0];if(A.getLeftLengthOfMaxLength(h)<et.string(O).length)return;E(x)}else E(x)},h.dangerouslyInsertHtml=function(x,O){if(x===void 0&&(x=""),O===void 0&&(O=!1),x)if(h.getConfig().maxLength){var F=A.getLeftLengthOfMaxLength(h);if(!(F<=0)){var R=document.createElement("div");R.innerHTML=x;var U=Array.from(R.childNodes).reduce(function(M,Y){var W=Y.nodeType,G=Y.nodeName;return Y?W===Bo.TEXT_NODE?M+(Y.textContent||""):W===Bo.ELEMENT_NODE?dO.has(G.toLowerCase())?M:M+(Y.textContent||""):M:M},"");F<U.length||D(x,O)}}else D(x,O)},h}(function(v){var h=v;return h.on=function(b,w){var E=m0(h);if(E.on(b,w),b==="destroyed"&&mO(h,w),b!=="destroyed"){var D=function(){return E.off(b,w)};E.on("destroyed",D),mO(h,D)}},h.once=function(b,w){m0(h).once(b,w)},h.off=function(b,w){m0(h).off(b,w)},h.emit=function(b){for(var w=[],E=1;E<arguments.length;E++)w[E-1]=arguments[E];var D=m0(h);D.emit.apply(D,KE([b],Wt(w))),b==="destroyed"&&(Ntt(h).forEach(function(x){return D.off("destroyed",x)}),Itt(h))},h}(function(v){var h=v;return h.select=function(b){N.select(h,b)},h.deselect=function(){var b=h.selection,w=A.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&N.deselect(v)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||N.move(v,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=_b.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return XC(h)},h.getNodePosition=function(b){return ZC(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Wt(L.edges(b),2),E=w[0],D=w[1],x=Wt(C.edges(h,[]),2),O=x[0],F=x[1];return!(!Ft.equals(E,O)||!Ft.equals(D,F))},h.selectAll=function(){var b=C.start(h,[]),w=C.end(h,[]);N.select(h,{anchor:b,focus:w})},h}(function(v){var h=v,b=h.onChange,w=h.insertText,E=h.apply,D=h.deleteBackward;return h.insertText=function(x){h.getConfig().readOnly||w(x)},h.apply=function(x){var O,F,R,U,M,Y,W,G,K=[];switch(x.type){case"insert_text":case"remove_text":case"set_node":try{for(var ot=Tr(C.levels(h,{at:x.path})),ft=ot.next();!ft.done;ft=ot.next()){var ct=Wt(ft.value,2),st=ct[0],k=ct[1],S=A.findKey(h,st);K.push([k,S])}}catch(Rt){O={error:Rt}}finally{try{ft&&!ft.done&&(F=ot.return)&&F.call(ot)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var P=Tr(C.levels(h,{at:j.parent(x.path)})),H=P.next();!H.done;H=P.next()){var X=Wt(H.value,2);st=X[0],k=X[1],S=A.findKey(h,st),K.push([k,S])}}catch(Rt){R={error:Rt}}finally{try{H&&!H.done&&(U=P.return)&&U.call(P)}finally{if(R)throw R.error}}break;case"move_node":try{for(var V=Tr(C.levels(h,{at:j.common(j.parent(x.path),j.parent(x.newPath))})),ut=V.next();!ut.done;ut=V.next()){var mt=Wt(ut.value,2);st=mt[0],k=mt[1],S=A.findKey(h,st),K.push([k,S])}}catch(Rt){M={error:Rt}}finally{try{ut&&!ut.done&&(Y=V.return)&&Y.call(V)}finally{if(M)throw M.error}}}E(x);try{for(var yt=Tr(K),Dt=yt.next();!Dt.done;Dt=yt.next()){var q=Wt(Dt.value,2);k=q[0],S=q[1],st=Wt(C.node(h,k),1)[0],wg.set(st,S)}}catch(Rt){W={error:Rt}}finally{try{Dt&&!Dt.done&&(G=yt.return)&&G.call(yt)}finally{if(W)throw W.error}}},h.deleteBackward=function(x){if(x!=="line")return D(x);if(v.selection&&L.isCollapsed(v.selection)){var O=C.above(v,{match:function(M){return C.isBlock(v,M)},at:v.selection});if(O){var F=Wt(O,2)[1],R=C.range(v,F,v.selection.anchor),U=function(M,Y){var W=C.range(M,L.end(Y)),G=Array.from(C.positions(M,{at:Y})),K=0,ot=G.length,ft=Math.floor(ot/2);if(rO(M,C.range(M,G[K]),W))return C.range(M,G[K],W);if(G.length<2)return C.range(M,G[G.length-1],W);for(;ft!==G.length&&ft!==K;)rO(M,C.range(M,G[ft]),W)?ot=ft:K=ft,ft=Math.floor((K+ot)/2);return C.range(M,G[ot],W)}(h,R);L.isCollapsed(U)||N.delete(v,{at:U})}}},h.onChange=function(){var x=h.selection;x!=null&&_b.set(h,x),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var x=h.children;return(x===void 0?[]:x).map(function(O){return mI(O,h)}).join("")},h.getText=function(){var x=h.children;return(x===void 0?[]:x).map(function(O){return et.string(O)}).join(`
- `)},h.getSelectionText=function(){var x=h.selection;return x==null?"":C.string(v,x)},h.getElemsByType=function(x,O){var F,R;O===void 0&&(O=!1);var U=[],M=C.nodes(h,{at:[],universal:!0});try{for(var Y=Tr(M),W=Y.next();!W.done;W=Y.next()){var G=Wt(W.value,1)[0];if(dt.isElement(G)&&(O?G.type.indexOf(x)>=0:G.type===x)){var K=yI(A.findKey(h,G).id);U.push(Br(Br({},G),{id:K}))}}}catch(ot){F={error:ot}}finally{try{W&&!W.done&&(R=Y.return)&&R.call(Y)}finally{if(F)throw F.error}}return U},h.getElemsByTypePrefix=function(x){return h.getElemsByType(x,!0)},h.isEmpty=function(){var x=h.children,O=x===void 0?[]:x;if(O.length>1)return!1;var F=O[0];if(F==null)return!0;if(dt.isElement(F)&&F.type==="paragraph"){var R=F.children,U=R===void 0?[]:R;if(U.length>1)return!1;var M=U[0];if(M==null||at.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:C.start(h,[]),focus:C.end(h,[])}}),h.children.length===0&&N.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(x){return A.getParentNode(h,x)},h.dangerouslyInsertHtml=function(x,O){if(x===void 0&&(x=""),O===void 0&&(O=!1),x){var F=document.createElement("div");F.innerHTML=x;var R=Array.from(F.childNodes);if(R=R.filter(function(W){var G=W.nodeType,K=W.nodeName;return G===Bo.TEXT_NODE||G===Bo.ELEMENT_NODE&&!dO.has(K.toLowerCase())}),R.length!==0){var U=h.selection;if(U!=null){var M=null;A.isSelectedEmptyParagraph(h)&&!O&&(M=[U.focus.path[0]]),F.setAttribute("hidden","true"),document.body.appendChild(F);var Y=0;R.forEach(function(W){var G=W.nodeType,K=W.nodeName,ot=W.textContent,ft=ot===void 0?"":ot;if(G!==Bo.TEXT_NODE)if(K!=="BR"){var ct=W,st=!1;if(bI.includes(K.toLowerCase()))st=!0;else for(var k in Nv)if(ct.matches(k)){st=!0;break}if(st){var S=qC(B(ct),h);return Array.isArray(S)?(S.forEach(function(H){return pO(h,H)}),Y++):(pO(h,S),Y++),void(A.isSelectedVoidNode(h)&&h.move(1))}var P=window.getComputedStyle(ct).display;A.isSelectedEmptyParagraph(h)||P.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(ct.innerHTML,!0)}else h.insertText(`
- `);else{if(!ft||!ft.trim())return;h.insertNode({text:ft})}}),Y&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),F.remove()}}}},h.setHtml=function(x){x===void 0&&(x="");var O=h.isDisabled(),F=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var U=lO(h,x);if(N.insertFragment(h,U),F||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(R))}catch(M){h.select(C.start(h,[]))}},h}(function(v){var h=v;return h.getAllMenuKeys=function(){var b=[];for(var w in pp)b.push(w);return b},h.getConfig=function(){var b=P9.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var E=h.getConfig().customAlert;E&&E(b,w)},h}(function(v){var h=Ctt(WG());return h.id="wangEditor-"+TQ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),Uu.set(h,!0),b){var w=C.end(h,[]);N.select(h,w)}else{var E=_b.get(h);E?N.select(h,E):N.select(h,C.start(h,[]))}},h.isFocused=function(){return!!Uu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),Uu.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var b=A.getToolbar(h);b&&b.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=A.getTextarea(h);b.destroy(),XE.delete(h),ZE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),Cm.delete(h),LC.delete(w));var E=A.getHoverbar(h);E&&(E.destroy(),Tv.delete(h),JE.delete(E)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="\u7F16\u8F91\u5668\u7981\u7528\u4E86 scroll \uFF0C\u7F16\u8F91\u5668\u5185\u5BB9\u65E0\u6CD5\u6EDA\u52A8\uFF0C\u8BF7\u81EA\u884C\u5B9E\u73B0\u8BE5\u529F\u80FD";return w+=`
- You has disabled editor scroll, please do this yourself`,void console.warn(w)}var E=B("#"+b);if(E.length!==0){var D=E[0];if(!A.hasDOMNode(h,D))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
- \u901A\u8FC7 id '`+b+"' \u627E\u5230\u7684 element \u4E0D\u5728 editor DOM \u4E4B\u5185",void console.error(w,D);var x=A.getTextarea(h),O=x.$textAreaContainer,F=x.$scroll,R=E.offset().top,U=O.offset().top;F[0].scrollBy({top:R-U,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=QE.get(h);b!=null&&b.forEach(function(w){return w.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 A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var E=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==E[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
- \u4E0D\u80FD\u8BBE\u7F6E\u5168\u5C4F\uFF0C\u56E0\u4E3A toolbar DOM \u7236\u8282\u70B9\u548C textarea DOM \u7236\u8282\u70B9\u4E0D\u4E00\u81F4`);E.addClass("w-e-full-screen-container");var D=E.css("z-index");E.attr("data-z-index",D.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=A.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}()))))));if(n&&function(v,h){return xI(v,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(v){v===void 0&&(v={});var h=uN(eI),b={},w=v.MENU_CONF,E=w===void 0?{}:w;return uC(h,function(D,x){b[x]=Br(Br({},D),E[x]||{})}),delete v.MENU_CONF,Br({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(D,x){window.alert(x+`:
- `+D)}},v)}(o);P9.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(v){l=v(l)}),a!=null&&(l.children=lO(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var d=new Qtt(n);XE.set(l,d),ZE.set(d,l),d.changeViewState(),$r(function(){var v=d.$scroll;v!=null&&v.height()<300&&console.warn(`\u7F16\u8F91\u533A\u57DF\u9AD8\u5EA6 < 300px \u8FD9\u53EF\u80FD\u4F1A\u5BFC\u81F4 modal hoverbar \u5B9A\u4F4D\u5F02\u5E38
- Textarea height < 300px . This may be cause modal and hoverbar position error`,v)});var y=void 0;Object.keys(p).length>0&&(y=new set,JE.set(y,l),Tv.set(l,y)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(v,h){return FI(v,h,l,l)});var g=c.onCreated,m=c.onDestroyed;return g&&l.on("created",function(){return g(l)}),m&&l.on("destroyed",function(){return m(l)}),$r(function(){return l.emit("created")}),l}var fet=ym("splice"),det=J.TypeError,pet=Math.max,het=Math.min;Se({target:"Array",proto:!0,forced:!fet},{splice:function(t,e){var n,r,o,i,a,u,s=Ya(this),l=Os(s),c=ec(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=het(pet(ah(e),0),l-c)),l+n-r>9007199254740991)throw det("Maximum allowed length exceeded");for(o=kN(s,r),i=0;i<r;i++)(a=c+i)in s&&sp(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 get=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=aN(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),$r(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=uN(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(y,g){f.splice(s.index+g,0,y)}));var p=f.filter(function(y){if(typeof y=="string"){if(c.includes(y))return!1}else if(c.includes(y.key))return!1;return!0}),d=p.length;p.forEach(function(y,g){if(y==="|"){if(g===0||g+1===d||n==="|")return;var m=kI();return r.append(m),void(n=y)}if(typeof y=="string")return e.registerSingleItem(y,e),void(n=y);e.registerGroup(y),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new kO(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 kO,i=this.menus,a=i[e];if(a==null){var u=pp[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+`'
- \u91CD\u590D\u6CE8\u518C\u4E86\u83DC\u5355\u680F menu '`+e+"'");var s=TI(e,a,o);this.toolbarItems.push(s),RC.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=LC.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}(),vet=xc.EXISTS,met=ho.f,_I=Function.prototype,yet=gt(_I.toString),PI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,bet=gt(PI.exec);function jI(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,y=d===void 0?{}:d,g=t.withCredentials,m=g!==void 0&&g,v=t.timeout,h=v===void 0?1e4:v,b=t.onBeforeUpload,w=b===void 0?function(Y){return Y}:b,E=t.onSuccess,D=E===void 0?function(Y,W){}:E,x=t.onError,O=x===void 0?function(Y,W,G){console.error(Y.name+" upload error",W,G)}:x,F=t.onProgress,R=F===void 0?function(Y){}:F;if(!n)throw new Error(`Cannot get upload server address
- \u6CA1\u6709\u914D\u7F6E\u4E0A\u4F20\u5730\u5740`);if(!o)throw new Error(`Cannot get fieldName
- \u6CA1\u6709\u914D\u7F6E fieldName`);var U=n;p&&(U=function(Y,W){var G=Wt(Y.split("#"),2),K=G[0],ot=G[1],ft=[];uC(W,function(st,k){ft.push(k+"="+st)});var ct=ft.join("&");return K=K.indexOf("?")>0?K+"&"+ct:K+"?"+ct,ot?K+"#"+ot:K}(U,c));var M=new fd({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(WX,{endpoint:U,headers:y,formData:!0,fieldName:o,bundle:!0,withCredentials:m,timeout:h});return M.on("upload-success",function(Y,W){var G=W.body,K=G===void 0?{}:G;try{D(Y,K)}catch(ot){console.error("wangEditor upload file - onSuccess error",ot)}M.removeFile(Y.id)}),M.on("progress",function(Y){Y<1||R(Y)}),M.on("upload-error",function(Y,W,G){try{O(Y,W,G)}catch(K){console.error("wangEditor upload file - onError error",K)}M.removeFile(Y.id)}),M.on("restriction-failed",function(Y,W){try{O(Y,W)}catch(G){console.error("wangEditor upload file - onError error",G)}M.removeFile(Y.id)}),M}function wa(t){return wa=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},wa(t)}function wet(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ke(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){wet(t,o,n[o])})}return t}function Ci(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TO(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 xi(t,e,n){return e&&TO(t.prototype,e),n&&TO(t,n),t}function ps(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gp(t,e){if(e&&(wa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ps(t)}function ac(t){return ac=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ac(t)}function h6(t,e){return h6=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},h6(t,e)}function xm(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&&h6(t,e)}dn&&!vet&&met(_I,"name",{configurable:!0,get:function(){try{return bet(PI,yet(this))[1]}catch(t){return""}}});var Eet={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)}},pi=new(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ci(this,t),this.init(e,n)}return xi(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||Eet,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,Ke({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Ma=function(){function t(){Ci(this,t),this.observers={}}return xi(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 wf(){var t,e,n=new Promise(function(r,o){t=r,e=o});return n.resolve=t,n.reject=e,n}function FO(t){return t==null?"":""+t}function Cet(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function nx(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 _O(t,e,n){var r=nx(t,e,Object);r.obj[r.k]=n}function Lv(t,e){var n=nx(t,e),r=n.obj,o=n.k;if(r)return r[o]}function PO(t,e,n){var r=Lv(t,n);return r!==void 0?r:Lv(e,n)}function NI(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]):NI(t[r],e[r],n):t[r]=e[r]);return t}function Ks(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var xet={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Det(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return xet[e]}):t}var Dm=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function II(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?II(s,l,n):void 0}o=o[r[i]]}return o}}var Aet=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ci(this,e),r=gp(this,ac(e).call(this)),Dm&&Ma.call(ps(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 xm(e,Ma),xi(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=Lv(this.data,s);return l||!u||typeof o!="string"?l:II(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),_O(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=Lv(this.data,s)||{};i?NI(l,o,a):l=Ke({},l,o),_O(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"?Ke({},{},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}(),LI={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}},jO={},NO=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ci(this,e),r=gp(this,ac(e).call(this)),Dm&&Ma.call(ps(r)),Cet(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,ps(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=pi.create("translator"),r}return xm(e,Ma),xi(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(wa(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 y=this.resolve(n,r),g=y&&y.res,m=y&&y.usedKey||s,v=y&&y.exactUsedKey||s,h=Object.prototype.toString.apply(g),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,D=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(E&&g&&D&&b.indexOf(h)<0&&(typeof w!="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(m,g,Ke({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var x=h==="[object Array]",O=x?[]:{},F=x?v:m;for(var R in g)if(Object.prototype.hasOwnProperty.call(g,R)){var U="".concat(F).concat(a).concat(R);O[R]=this.translate(U,Ke({},r,{joinArrays:!1,ns:l})),O[R]===U&&(O[R]=g[R])}g=O}}else if(E&&typeof w=="string"&&h==="[object Array]")(g=g.join(w))&&(g=this.extendTranslation(g,n,r,o));else{var M=!1,Y=!1,W=r.count!==void 0&&typeof r.count!="string",G=e.hasDefaultValue(r),K=W?this.pluralResolver.getSuffix(f,r.count):"",ot=r["defaultValue".concat(K)]||r.defaultValue;!this.isValidLookup(g)&&G&&(M=!0,g=ot),this.isValidLookup(g)||(Y=!0,g=s);var ft=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ct=ft&&Y?void 0:g,st=G&&ot!==g&&this.options.updateMissing;if(Y||M||st){if(this.logger.log(st?"updateKey":"missingKey",f,c,s,st?ot:g),a){var k=this.resolve(s,Ke({},r,{keySeparator:!1}));k&&k.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 S=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(var H=0;H<P.length;H++)S.push(P[H]);else this.options.saveMissingTo==="all"?S=this.languageUtils.toResolveHierarchy(r.lng||this.language):S.push(r.lng||this.language);var X=function(V,ut,mt){i.options.missingKeyHandler?i.options.missingKeyHandler(V,c,ut,st?mt:ct,st,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(V,c,ut,st?mt:ct,st,r),i.emit("missingKey",V,c,ut,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&W?S.forEach(function(V){i.pluralResolver.getSuffixes(V).forEach(function(ut){X([V],s+ut,r["defaultValue".concat(ut)]||ot)})}):X(S,s,ot))}g=this.extendTranslation(g,n,r,y,o),Y&&g===s&&this.options.appendNamespaceToMissingKey&&(g="".concat(c,":").concat(s)),(Y||M)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{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(Ke({},o,{interpolation:Ke({},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=Ke({},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 g=arguments.length,m=new Array(g),v=0;v<g;v++)m[v]=arguments[v];return a&&a[0]===m[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(m[0]," in key: ").concat(r[0])),null):u.translate.apply(u,m.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var d=o.postProcess||this.options.postProcess,y=typeof d=="string"?[d]:d;return n!=null&&y&&y.length&&o.applyPostProcessor!==!1&&(n=LI.handle(y,n,r,this.options&&this.options.postProcessPassResolved?Ke({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 y=l.count!==void 0&&typeof l.count!="string",g=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",m=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(v){s.isValidLookup(r)||(u=v,!jO["".concat(m[0],"-").concat(v)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(jO["".concat(m[0],"-").concat(v)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(m.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!!!")),m.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,E=p,D=[E];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(D,p,h,v,l):(y&&(b=s.pluralResolver.getSuffix(h,l.count)),y&&g&&D.push(E+b),g&&D.push(E+="".concat(s.options.contextSeparator).concat(l.context)),y&&D.push(E+=b));w=D.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(h,v,w,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 t2(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Oet=function(){function t(e){Ci(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pi.create("languageUtils")}return xi(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]=t2(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]=t2(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=t2(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}(),ket=[{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}],Bet={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(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 Number(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 Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}};function Tet(){var t={};return ket.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:Bet[e.fc]}})}),t}var Fet=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ci(this,t),this.languageUtils=e,this.options=n,this.logger=pi.create("pluralResolver"),this.rules=Tet()}return xi(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}(),_et=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ci(this,t),this.logger=pi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return xi(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:Det,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Ks(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Ks(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?Ks(n.nestingPrefix):n.nestingPrefixEscaped||Ks("$t("),this.nestingSuffix=n.nestingSuffix?Ks(n.nestingSuffix):n.nestingSuffixEscaped||Ks(")"),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(g){return g.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var m=PO(n,l,g);return s.alwaysFormat?s.format(m,void 0,r,Ke({},o,n,{interpolationkey:g})):m}var v=g.split(s.formatSeparator),h=v.shift().trim(),b=v.join(s.formatSeparator).trim();return s.format(PO(n,l,h),b,r,Ke({},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,y=[{regex:this.regexpUnescape,safeValue:function(g){return c(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?c(s.escape(g)):c(g)}}];return y.forEach(function(g){for(u=0;i=g.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var m=p(e,i,o);a=typeof m=="string"?m:""}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=FO(a));var v=g.safeValue(a);if(e=e.replace(i[0],v),d?(g.regex.lastIndex+=v.length,g.regex.lastIndex-=i[0].length):g.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=Ke({},a);function s(p,d){var y=this.nestingOptionsSeparator;if(p.indexOf(y)<0)return p;var g=p.split(new RegExp("".concat(y,"[ ]*{"))),m="{".concat(g[1]);p=g[0],m=(m=this.interpolate(m,u)).replace(/'/g,'"');try{u=JSON.parse(m),d&&(u=Ke({},d,u))}catch(v){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),v),"".concat(p).concat(y).concat(m)}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=FO(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,Ke({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),Pet=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ci(this,e),i=gp(this,ac(e).call(this)),Dm&&Ma.call(ps(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=pi.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return xm(e,Ma),xi(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 y="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[y]=2:a.state[y]<0||(a.state[y]===1?s.indexOf(y)<0&&s.push(y):(a.state[y]=1,p=!1,s.indexOf(y)<0&&s.push(y),u.indexOf(y)<0&&u.push(y),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 y=nx(c,f,Object),g=y.obj,m=y.k;g[m]=g[m]||[],g[m].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,Ke({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function jet(){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(wa(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),wa(t[2])==="object"||wa(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 IO(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 b0(){}var Net=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(Ci(this,e),n=gp(this,ac(e).call(this)),Dm&&Ma.call(ps(n)),n.options=IO(r),n.services={},n.logger=pi,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),gp(n,ps(n));setTimeout(function(){n.init(r,o)},0)}return n}return xm(e,Ma),xi(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=Ke({},jet(),this.options,IO(r)),this.format=this.options.interpolation.format,o||(o=b0),!this.options.isClone){this.modules.logger?pi.init(i(this.modules.logger),this.options):pi.init(null,this.options);var a=new Oet(this.options);this.store=new Aet(this.options.resources,this.options);var u=this.services;u.logger=pi,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Fet(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new _et(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Pet(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),m=1;m<y;m++)g[m-1]=arguments[m];n.emit.apply(n,[d].concat(g))}),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 NO(this.services,this.options),this.translator.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),m=1;m<y;m++)g[m-1]=arguments[m];n.emit.apply(n,[d].concat(g))}),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 y;return(y=n.store)[d].apply(y,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments),n}});var f=wf(),p=function(){var d=function(y,g){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(g),o(y,g)};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]:b0,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=wf();return n||(n=this.languages),r||(r=this.options.ns),o||(o=b0),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"&&LI.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=wf();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(wa(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=Ke({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var y=i.options.keySeparator||".",g=o?"".concat(o).concat(y).concat(s):s;return i.t(g,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=wf();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=wf();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]:b0,i=Ke({},this.options,r,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Ke({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new NO(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}(),Rv=new Net;function er(t,e){Rv.addResourceBundle(t,"translation",e,!0,!0)}Rv.init({lng:"zh-CN",resources:{}});var nt=Rv.t.bind(Rv);er("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),er("zh-CN",{editor:{more:"\u66F4\u591A",justify:"\u5BF9\u9F50",indent:"\u7F29\u8FDB",image:"\u56FE\u7247",video:"\u89C6\u9891"}});var Iet=W5?{}.toString:function(){return"[object "+rm(this)+"]"};W5||ma(Object.prototype,"toString",Iet,{unsafe:!0});var LO=Array.isArray||function(t){return Lu(t)=="Array"},RI=function(){},Let=[],MI=Zp("Reflect","construct"),rx=/^\s*(?:class|function)\b/,Ret=se(rx.exec),Met=!rx.exec(RI),Ef=function(t){if(!Ze(t))return!1;try{return MI(RI,Let,t),!0}catch(e){return!1}},zet=!MI||vn(function(){var t;return Ef(Ef.call)||!Ef(Object)||!Ef(function(){t=!0})||t})?function(t){if(!Ze(t))return!1;switch(rm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Met||!!Ret(rx,z5(t))}:Ef,$et=Hn("species"),RO=xt.Array,Het=function(t,e){return new(function(n){var r;return LO(n)&&(r=n.constructor,(zet(r)&&(r===RO||LO(r.prototype))||Jr(r)&&(r=r[$et])===null)&&(r=void 0)),r===void 0?RO:r}(t))(e===0?0:e)},MO=se([].push),$i=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,y=I5(s),g=nj(y),m=hj(l,c),v=nm(g),h=0,b=f||Het,w=e?b(s,v):n||a?b(s,0):void 0;v>h;h++)if((u||h in g)&&(d=m(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:MO(w,p)}else switch(t){case 4:return!1;case 7:MO(w,p)}return i?-1:r||o?o:w}},Uet={forEach:$i(0),map:$i(1),filter:$i(2),some:$i(3),every:$i(4),find:$i(5),findIndex:$i(6),filterReject:$i(7)}.forEach,Vet=function(t,e){var n=[][t];return!!n&&vn(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),e2=Vet?[].forEach:function(t){return Uet(this,t,arguments.length>1?arguments[1]:void 0)},zI=function(t){if(t&&t.forEach!==e2)try{$n(t,"forEach",e2)}catch(e){t.forEach=e2}};for(var n2 in rv)rv[n2]&&zI(xt[n2]&&xt[n2].prototype);zI(mj),er("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"}}),er("zh-CN",{common:{ok:"\u786E\u5B9A",delete:"\u5220\u9664",enter:"\u56DE\u8F66"},blockQuote:{title:"\u5F15\u7528"},codeBlock:{title:"\u4EE3\u7801\u5757"},color:{color:"\u6587\u5B57\u989C\u8272",bgColor:"\u80CC\u666F\u8272",default:"\u9ED8\u8BA4\u989C\u8272",clear:"\u6E05\u9664\u80CC\u666F\u8272"},divider:{title:"\u5206\u5272\u7EBF"},emotion:{title:"\u8868\u60C5"},fontSize:{title:"\u5B57\u53F7",default:"\u9ED8\u8BA4\u5B57\u53F7"},fontFamily:{title:"\u5B57\u4F53",default:"\u9ED8\u8BA4\u5B57\u4F53"},fullScreen:{title:"\u5168\u5C4F"},header:{title:"\u6807\u9898",text:"\u6B63\u6587"},image:{netImage:"\u7F51\u7EDC\u56FE\u7247",delete:"\u5220\u9664\u56FE\u7247",edit:"\u7F16\u8F91\u56FE\u7247",viewLink:"\u67E5\u770B\u94FE\u63A5",src:"\u56FE\u7247\u5730\u5740",desc:"\u56FE\u7247\u63CF\u8FF0",link:"\u56FE\u7247\u94FE\u63A5"},indent:{decrease:"\u51CF\u5C11\u7F29\u8FDB",increase:"\u589E\u52A0\u7F29\u8FDB"},justify:{left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D\u5BF9\u9F50",justify:"\u4E24\u7AEF\u5BF9\u9F50"},lineHeight:{title:"\u884C\u9AD8",default:"\u9ED8\u8BA4\u884C\u9AD8"},link:{insert:"\u63D2\u5165\u94FE\u63A5",text:"\u94FE\u63A5\u6587\u672C",url:"\u94FE\u63A5\u5730\u5740",unLink:"\u53D6\u6D88\u94FE\u63A5",edit:"\u4FEE\u6539\u94FE\u63A5",view:"\u67E5\u770B\u94FE\u63A5"},textStyle:{bold:"\u7C97\u4F53",clear:"\u6E05\u9664\u683C\u5F0F",code:"\u884C\u5185\u4EE3\u7801",italic:"\u659C\u4F53",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",through:"\u5220\u9664\u7EBF",underline:"\u4E0B\u5212\u7EBF"},undo:{undo:"\u64A4\u9500",redo:"\u91CD\u505A"},todo:{todo:"\u5F85\u529E"}});var Wet={type:"paragraph",renderElem:function(t,e,n){return Et("p",null,e)}},Mv=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Sm(t){var e={exports:{}};return t(e,e.exports),e.exports}var Hi,Eg,w0=function(t){return t&&t.Math==Math&&t},Ot=w0(typeof globalThis=="object"&&globalThis)||w0(typeof window=="object"&&window)||w0(typeof self=="object"&&self)||w0(typeof Mv=="object"&&Mv)||function(){return this}()||Function("return this")(),Ae=function(t){try{return!!t()}catch(e){return!0}},fo=!Ae(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Cf=Function.prototype.call,Ne=Cf.bind?Cf.bind(Cf):function(){return Cf.apply(Cf,arguments)},zO={}.propertyIsEnumerable,$O=Object.getOwnPropertyDescriptor,Get=$O&&!zO.call({1:2},1)?function(t){var e=$O(this,t);return!!e&&e.enumerable}:zO,$I={f:Get},ox=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},HI=Function.prototype,g6=HI.bind,v6=HI.call,qet=g6&&g6.bind(v6),bt=g6?function(t){return t&&qet(v6,t)}:function(t){return t&&function(){return v6.apply(t,arguments)}},Ket=bt({}.toString),Yet=bt("".slice),Ea=function(t){return Yet(Ket(t),8,-1)},r2=Ot.Object,Xet=bt("".split),Am=Ae(function(){return!r2("z").propertyIsEnumerable(0)})?function(t){return Ea(t)=="String"?Xet(t,""):r2(t)}:r2,Zet=Ot.TypeError,Hr=function(t){if(t==null)throw Zet("Can't call method on "+t);return t},kc=function(t){return Am(Hr(t))},En=function(t){return typeof t=="function"},Fr=function(t){return typeof t=="object"?t!==null:En(t)},Jet=function(t){return En(t)?t:void 0},lh=function(t,e){return arguments.length<2?Jet(Ot[t]):Ot[t]&&Ot[t][e]},UI=bt({}.isPrototypeOf),o2=lh("navigator","userAgent")||"",HO=Ot.process,UO=Ot.Deno,VO=HO&&HO.versions||UO&&UO.version,WO=VO&&VO.v8;WO&&(Eg=(Hi=WO.split("."))[0]>0&&Hi[0]<4?1:+(Hi[0]+Hi[1])),!Eg&&o2&&(!(Hi=o2.match(/Edge\/(\d+)/))||Hi[1]>=74)&&(Hi=o2.match(/Chrome\/(\d+)/))&&(Eg=+Hi[1]);var m6=Eg,y6=!!Object.getOwnPropertySymbols&&!Ae(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&m6&&m6<41}),ix=y6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Qet=Ot.Object,i2=ix?function(t){return typeof t=="symbol"}:function(t){var e=lh("Symbol");return En(e)&&UI(e.prototype,Qet(t))},tnt=Ot.String,VI=function(t){try{return tnt(t)}catch(e){return"Object"}},ent=Ot.TypeError,WI=function(t){if(En(t))return t;throw ent(VI(t)+" is not a function")},Om=function(t,e){var n=t[e];return n==null?void 0:WI(n)},nnt=Ot.TypeError,rnt=Object.defineProperty,ax=function(t,e){try{rnt(Ot,t,{value:e,configurable:!0,writable:!0})}catch(n){Ot[t]=e}return e},Ca=Ot["__core-js_shared__"]||ax("__core-js_shared__",{}),ux=Sm(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:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),ont=Ot.Object,ch=function(t){return ont(Hr(t))},int=bt({}.hasOwnProperty),jr=Object.hasOwn||function(t,e){return int(ch(t),e)},ant=0,unt=Math.random(),snt=bt(1 .toString),GI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+snt(++ant+unt,36)},xf=ux("wks"),Wu=Ot.Symbol,GO=Wu&&Wu.for,lnt=ix?Wu:Wu&&Wu.withoutSetter||GI,wr=function(t){if(!jr(xf,t)||!y6&&typeof xf[t]!="string"){var e="Symbol."+t;y6&&jr(Wu,t)?xf[t]=Wu[t]:xf[t]=ix&&GO?GO(e):lnt(e)}return xf[t]},cnt=Ot.TypeError,fnt=wr("toPrimitive"),sx=function(t){var e=function(n,r){if(!Fr(n)||i2(n))return n;var o,i=Om(n,fnt);if(i){if(r===void 0&&(r="default"),o=Ne(i,n,r),!Fr(o)||i2(o))return o;throw cnt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&En(s=a.toString)&&!Fr(l=Ne(s,a))||En(s=a.valueOf)&&!Fr(l=Ne(s,a))||u!=="string"&&En(s=a.toString)&&!Fr(l=Ne(s,a)))return l;throw nnt("Can't convert object to primitive value")}(n,r)}(t,"string");return i2(e)?e:e+""},b6=Ot.document,dnt=Fr(b6)&&Fr(b6.createElement),lx=function(t){return dnt?b6.createElement(t):{}},qI=!fo&&!Ae(function(){return Object.defineProperty(lx("div"),"a",{get:function(){return 7}}).a!=7}),qO=Object.getOwnPropertyDescriptor,cx={f:fo?qO:function(t,e){if(t=kc(t),e=sx(e),qI)try{return qO(t,e)}catch(n){}if(jr(t,e))return ox(!Ne($I.f,t,e),t[e])}},pnt=Ot.String,hnt=Ot.TypeError,fr=function(t){if(Fr(t))return t;throw hnt(pnt(t)+" is not an object")},gnt=Ot.TypeError,KO=Object.defineProperty,Bc={f:fo?KO:function(t,e,n){if(fr(t),e=sx(e),fr(n),qI)try{return KO(t,e,n)}catch(r){}if("get"in n||"set"in n)throw gnt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},uc=fo?function(t,e,n){return Bc.f(t,e,ox(1,n))}:function(t,e,n){return t[e]=n,t},vnt=bt(Function.toString);En(Ca.inspectSource)||(Ca.inspectSource=function(t){return vnt(t)});var zv,Td,$v,fx=Ca.inspectSource,YO=Ot.WeakMap,mnt=En(YO)&&/native code/.test(fx(YO)),XO=ux("keys"),KI=function(t){return XO[t]||(XO[t]=GI(t))},dx={},w6=Ot.TypeError,ynt=Ot.WeakMap;if(mnt||Ca.state){var fu=Ca.state||(Ca.state=new ynt),bnt=bt(fu.get),ZO=bt(fu.has),wnt=bt(fu.set);zv=function(t,e){if(ZO(fu,t))throw new w6("Object already initialized");return e.facade=t,wnt(fu,t,e),e},Td=function(t){return bnt(fu,t)||{}},$v=function(t){return ZO(fu,t)}}else{var Ys=KI("state");dx[Ys]=!0,zv=function(t,e){if(jr(t,Ys))throw new w6("Object already initialized");return e.facade=t,uc(t,Ys,e),e},Td=function(t){return jr(t,Ys)?t[Ys]:{}},$v=function(t){return jr(t,Ys)}}var E6={set:zv,get:Td,has:$v,enforce:function(t){return $v(t)?Td(t):zv(t,{})},getterFor:function(t){return function(e){var n;if(!Fr(e)||(n=Td(e)).type!==t)throw w6("Incompatible receiver, "+t+" required");return n}}},YI=Function.prototype,Ent=fo&&Object.getOwnPropertyDescriptor,a2=jr(YI,"name"),km={EXISTS:a2,PROPER:a2&&function(){}.name==="something",CONFIGURABLE:a2&&(!fo||fo&&Ent(YI,"name").configurable)},vp=Sm(function(t){var e=km.CONFIGURABLE,n=E6.get,r=E6.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;En(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!jr(u,"name")||e&&u.name!==d)&&uc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Ot?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:uc(i,a,u)):f?i[a]=u:ax(a,u)})(Function.prototype,"toString",function(){return En(this)&&n(this).source||fx(this)})}),Cnt=Math.ceil,xnt=Math.floor,Tc=function(t){var e=+t;return e!=e||e===0?0:(e>0?xnt:Cnt)(e)},Dnt=Math.max,Snt=Math.min,mp=function(t,e){var n=Tc(t);return n<0?Dnt(n+e,0):Snt(n,e)},Ant=Math.min,fh=function(t){return t>0?Ant(Tc(t),9007199254740991):0},Bm=function(t){return fh(t.length)},JO=function(t){return function(e,n,r){var o,i=kc(e),a=Bm(i),u=mp(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}},XI={includes:JO(!0),indexOf:JO(!1)},Ont=XI.indexOf,QO=bt([].push),ZI=function(t,e){var n,r=kc(t),o=0,i=[];for(n in r)!jr(dx,n)&&jr(r,n)&&QO(i,n);for(;e.length>o;)jr(r,n=e[o++])&&(~Ont(i,n)||QO(i,n));return i},Hv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],knt=Hv.concat("length","prototype"),Bnt={f:Object.getOwnPropertyNames||function(t){return ZI(t,knt)}},JI={f:Object.getOwnPropertySymbols},Tnt=bt([].concat),Fnt=lh("Reflect","ownKeys")||function(t){var e=Bnt.f(fr(t)),n=JI.f;return n?Tnt(e,n(t)):e},_nt=function(t,e){for(var n=Fnt(e),r=Bc.f,o=cx.f,i=0;i<n.length;i++){var a=n[i];jr(t,a)||r(t,a,o(e,a))}},Pnt=/#|\.prototype\./,dh=function(t,e){var n=Nnt[jnt(t)];return n==Lnt||n!=Int&&(En(e)?Ae(e):!!e)},jnt=dh.normalize=function(t){return String(t).replace(Pnt,".").toLowerCase()},Nnt=dh.data={},Int=dh.NATIVE="N",Lnt=dh.POLYFILL="P",Rnt=dh,Mnt=cx.f,un=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Ot:l?Ot[u]||ax(u,{}):(Ot[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Mnt(n,r))&&a.value:n[r],!Rnt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;_nt(i,o)}(t.sham||o&&o.sham)&&uc(i,"sham",!0),vp(n,r,i,t)}},tk=bt(bt.bind),Uv=Array.isArray||function(t){return Ea(t)=="Array"},QI={};QI[wr("toStringTag")]="z";var px=String(QI)==="[object z]",znt=wr("toStringTag"),$nt=Ot.Object,Hnt=Ea(function(){return arguments}())=="Arguments",hx=px?Ea:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=$nt(t),znt))=="string"?n:Hnt?Ea(e):(r=Ea(e))=="Object"&&En(e.callee)?"Arguments":r},tL=function(){},Unt=[],eL=lh("Reflect","construct"),gx=/^\s*(?:class|function)\b/,Vnt=bt(gx.exec),Wnt=!gx.exec(tL),Df=function(t){if(!En(t))return!1;try{return eL(tL,Unt,t),!0}catch(e){return!1}},vx=!eL||Ae(function(){var t;return Df(Df.call)||!Df(Object)||!Df(function(){t=!0})||t})?function(t){if(!En(t))return!1;switch(hx(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Wnt||!!Vnt(gx,fx(t))}:Df,Gnt=wr("species"),ek=Ot.Array,qnt=function(t,e){return new(function(n){var r;return Uv(n)&&(r=n.constructor,(vx(r)&&(r===ek||Uv(r.prototype))||Fr(r)&&(r=r[Gnt])===null)&&(r=void 0)),r===void 0?ek:r}(t))(e===0?0:e)},nk=bt([].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,y=ch(s),g=Am(y),m=function(E,D){return WI(E),D===void 0?E:tk?tk(E,D):function(){return E.apply(D,arguments)}}(l,c),v=Bm(g),h=0,b=f||qnt,w=e?b(s,v):n||a?b(s,0):void 0;v>h;h++)if((u||h in g)&&(d=m(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:nk(w,p)}else switch(t){case 4:return!1;case 7:nk(w,p)}return i?-1:r||o?o:w}},Tm={forEach:Ui(0),map:Ui(1),filter:Ui(2),some:Ui(3),every:Ui(4),find:Ui(5),findIndex:Ui(6),filterReject:Ui(7)},Knt=wr("species"),mx=function(t){return m6>=51||!Ae(function(){var e=[];return(e.constructor={})[Knt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Ynt=Tm.filter;un({target:"Array",proto:!0,forced:!mx("filter")},{filter:function(t){return Ynt(this,t,arguments.length>1?arguments[1]:void 0)}});var Xnt=px?{}.toString:function(){return"[object "+hx(this)+"]"};px||vp(Object.prototype,"toString",Xnt,{unsafe:!0});var E0,Znt=Ot.String,De=function(t){if(hx(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Znt(t)},nL=function(){var t=fr(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},yx=Ot.RegExp,C6=Ae(function(){var t=yx("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Jnt=C6||Ae(function(){return!yx("a","y").sticky}),rL={BROKEN_CARET:C6||Ae(function(){var t=yx("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Jnt,UNSUPPORTED_Y:C6},_l=Object.keys||function(t){return ZI(t,Hv)},Qnt=fo?Object.defineProperties:function(t,e){fr(t);for(var n,r=kc(e),o=_l(e),i=o.length,a=0;i>a;)Bc.f(t,n=o[a++],r[n]);return t},trt=lh("document","documentElement"),oL=KI("IE_PROTO"),u2=function(){},iL=function(t){return"<script>"+t+"<\/script>"},rk=function(t){t.write(iL("")),t.close();var e=t.parentWindow.Object;return t=null,e},Cg=function(){try{E0=new ActiveXObject("htmlfile")}catch(r){}var t,e;Cg=typeof document!="undefined"?document.domain&&E0?rk(E0):((e=lx("iframe")).style.display="none",trt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(iL("document.F=Object")),t.close(),t.F):rk(E0);for(var n=Hv.length;n--;)delete Cg.prototype[Hv[n]];return Cg()};dx[oL]=!0;var ok,s2,aL=Object.create||function(t,e){var n;return t!==null?(u2.prototype=fr(t),n=new u2,u2.prototype=null,n[oL]=t):n=Cg(),e===void 0?n:Qnt(n,e)},ert=Ot.RegExp,nrt=Ae(function(){var t=ert(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),rrt=Ot.RegExp,ort=Ae(function(){var t=rrt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),irt=E6.get,art=ux("native-string-replace",String.prototype.replace),Vv=RegExp.prototype.exec,x6=Vv,urt=bt("".charAt),srt=bt("".indexOf),lrt=bt("".replace),l2=bt("".slice),c2=(s2=/b*/g,Ne(Vv,ok=/a/,"a"),Ne(Vv,s2,"a"),ok.lastIndex!==0||s2.lastIndex!==0),ik=rL.BROKEN_CARET,f2=/()??/.exec("")[1]!==void 0;(c2||f2||ik||nrt||ort)&&(x6=function(t){var e,n,r,o,i,a,u,s=this,l=irt(s),c=De(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ne(x6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=ik&&s.sticky,y=Ne(nL,s),g=s.source,m=0,v=c;if(d&&(y=lrt(y,"y",""),srt(y,"g")===-1&&(y+="g"),v=l2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&urt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",y)),f2&&(n=new RegExp("^"+g+"$(?!\\s)",y)),c2&&(r=s.lastIndex),o=Ne(Vv,d?n:s,v),d?o?(o.input=l2(o.input,m),o[0]=l2(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:c2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),f2&&o&&o.length>1&&Ne(art,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=aL(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var yp=x6;un({target:"RegExp",proto:!0,forced:/./.exec!==yp},{exec:yp});var bx=Function.prototype,ak=bx.apply,crt=bx.bind,uk=bx.call,uL=typeof Reflect=="object"&&Reflect.apply||(crt?uk.bind(ak):function(){return uk.apply(ak,arguments)}),frt=wr("species"),d2=RegExp.prototype,wx=function(t,e,n,r){var o=wr(t),i=!Ae(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ae(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[frt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=bt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=bt(l),g=c.exec;return g===yp||g===d2.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});vp(String.prototype,t,s[0]),vp(d2,o,s[1])}r&&uc(d2[o],"sham",!0)},drt=bt("".charAt),sk=bt("".charCodeAt),prt=bt("".slice),hrt=function(t){return function(e,n){var r,o,i=De(Hr(e)),a=Tc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=sk(i,a))<55296||r>56319||a+1===u||(o=sk(i,a+1))<56320||o>57343?t?drt(i,a):r:t?prt(i,a,a+2):o-56320+(r-55296<<10)+65536}},grt=hrt(!0),Ex=function(t,e,n){return e+(n?grt(t,e).length:1)},vrt=Math.floor,p2=bt("".charAt),mrt=bt("".replace),h2=bt("".slice),yrt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,brt=/\$([$&'`]|\d{1,2})/g,wrt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=brt;return o!==void 0&&(o=ch(o),s=yrt),mrt(i,s,function(l,c){var f;switch(p2(c,0)){case"$":return"$";case"&":return t;case"`":return h2(e,0,n);case"'":return h2(e,a);case"<":f=o[h2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=vrt(p/10);return d===0?l:d<=u?r[d-1]===void 0?p2(c,1):r[d-1]+p2(c,1):l}f=r[p-1]}return f===void 0?"":f})},Ert=Ot.TypeError,bp=function(t,e){var n=t.exec;if(En(n)){var r=Ne(n,t,e);return r!==null&&fr(r),r}if(Ea(t)==="RegExp")return Ne(yp,t,e);throw Ert("RegExp#exec called on incompatible receiver")},D6=wr("replace"),Crt=Math.max,xrt=Math.min,Drt=bt([].concat),g2=bt([].push),lk=bt("".indexOf),ck=bt("".slice),Srt="a".replace(/./,"$0")==="$0",fk=!!/./[D6]&&/./[D6]("a","$0")==="";wx("replace",function(t,e,n){var r=fk?"$":"$0";return[function(o,i){var a=Hr(this),u=o==null?void 0:Om(o,D6);return u?Ne(u,o,a,i):Ne(e,De(a),o,i)},function(o,i){var a=fr(this),u=De(o);if(typeof i=="string"&&lk(i,r)===-1&&lk(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=En(i);l||(i=De(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=bp(a,u);if(d===null||(g2(p,d),!c))break;De(d[0])===""&&(a.lastIndex=Ex(u,fh(a.lastIndex),f))}for(var y,g="",m=0,v=0;v<p.length;v++){for(var h=De((d=p[v])[0]),b=Crt(xrt(Tc(d.index),u.length),0),w=[],E=1;E<d.length;E++)g2(w,(y=d[E])===void 0?y:String(y));var D=d.groups;if(l){var x=Drt([h],w,b,u);D!==void 0&&g2(x,D);var O=De(uL(i,void 0,x))}else O=wrt(h,u,b,w,D,i);b>=m&&(g+=ck(u,m,b)+O,m=b+h.length)}return g+ck(u,m)}]},!!Ae(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Srt||fk);var S6=wr("unscopables"),A6=Array.prototype;A6[S6]==null&&Bc.f(A6,S6,{configurable:!0,value:aL(null)});var sL=function(t){A6[S6][t]=!0},Art=Tm.find,dk=!0;"find"in[]&&Array(1).find(function(){dk=!1}),un({target:"Array",proto:!0,forced:dk},{find:function(t){return Art(this,t,arguments.length>1?arguments[1]:void 0)}}),sL("find");var Ort=wr("match"),lL=function(t){var e;return Fr(t)&&((e=t[Ort])!==void 0?!!e:Ea(t)=="RegExp")},krt=Ot.TypeError,Brt=wr("species"),cL=function(t,e,n){var r=sx(e);r in t?Bc.f(t,r,ox(0,n)):t[r]=n},Trt=Ot.Array,Frt=Math.max,pk=function(t,e,n){for(var r=Bm(t),o=mp(e,r),i=mp(n===void 0?r:n,r),a=Trt(Frt(i-o,0)),u=0;o<i;o++,u++)cL(a,u,t[o]);return a.length=u,a},Xs=rL.UNSUPPORTED_Y,_rt=Math.min,fL=[].push,Prt=bt(/./.exec),Zs=bt(fL),Sf=bt("".slice);wx("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=De(Hr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!lL(o))return Ne(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,y=new RegExp(o.source,p+"g");(s=Ne(yp,y,a))&&!((l=y.lastIndex)>d&&(Zs(f,Sf(a,d,s.index)),s.length>1&&s.index<a.length&&uL(fL,f,pk(s,1)),c=s[0].length,d=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&Prt(y,"")||Zs(f,""):Zs(f,Sf(a,d)),f.length>u?pk(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ne(e,this,o,i)}:e,[function(o,i){var a=Hr(this),u=o==null?void 0:Om(o,t);return u?Ne(u,o,a,i):Ne(r,De(a),o,i)},function(o,i){var a=fr(this),u=De(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,E){var D,x=fr(w).constructor;return x===void 0||(D=fr(x)[Brt])==null?E:function(O){if(vx(O))return O;throw krt(VI(O)+" is not a constructor")}(D)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Xs?"g":"y"),p=new l(Xs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return bp(p,u)===null?[u]:[];for(var y=0,g=0,m=[];g<u.length;){p.lastIndex=Xs?0:g;var v,h=bp(p,Xs?Sf(u,g):u);if(h===null||(v=_rt(fh(p.lastIndex+(Xs?g:0)),u.length))===y)g=Ex(u,g,c);else{if(Zs(m,Sf(u,y,g)),m.length===d)return m;for(var b=1;b<=h.length-1;b++)if(Zs(m,h[b]),m.length===d)return m;g=y=v}}return Zs(m,Sf(u,y)),m}]},!!Ae(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"}),Xs);var O6=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,hk=bt("".replace),Wv="["+O6+"]",jrt=RegExp("^"+Wv+Wv+"*"),Nrt=RegExp(Wv+Wv+"*$"),v2=function(t){return function(e){var n=De(Hr(e));return 1&t&&(n=hk(n,jrt,"")),2&t&&(n=hk(n,Nrt,"")),n}},Irt={start:v2(1),end:v2(2),trim:v2(3)},Lrt=km.PROPER,Rrt=Irt.trim;function Cx(t){return B("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function Fc(t){return t.length===0?"":t[0].outerHTML}function _c(t){return t.length?t[0].tagName.toLowerCase():""}function so(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}un({target:"String",proto:!0,forced:Ae(function(){return!!O6.trim()||"\u200B\x85\u180E".trim()!=="\u200B\x85\u180E"||Lrt&&O6.trim.name!=="trim"})},{trim:function(){return Rrt(this)}}),un({global:!0},{globalThis:Ot}),vv&&(B.fn.css=vv),Mr&&(B.fn.append=Mr),e7&&(B.fn.prepend=e7),Vl&&(B.fn.addClass=Vl),Wl&&(B.fn.removeClass=Wl),Gl&&(B.fn.hasClass=Gl),zo&&(B.fn.on=zo),ZA&&(B.fn.off=ZA),La&&(B.fn.focus=La),Rr&&(B.fn.attr=Rr),dv&&(B.fn.removeAttr=dv),Kl&&(B.fn.hide=Kl),gv&&(B.fn.show=gv),bv&&(B.fn.parents=bv),ql&&(B.fn.dataset=ql),Mo&&(B.fn.val=Mo),yv&&(B.fn.text=yv),Ia&&(B.fn.html=Ia),Zl&&(B.fn.children=Zl),Jl&&(B.fn.remove=Jl),Xl&&(B.fn.find=Xl),pv&&(B.fn.width=pv),hv&&(B.fn.height=hv),QA&&(B.fn.filter=QA),Ql&&(B.fn.empty=Ql);var Mrt={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!at.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},k6=function(t,e){return k6=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])},k6(t,e);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function Ce(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}k6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var za=function(){return za=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},za.apply(this,arguments)};function Za(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 Ja(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 dL(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 Jt(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 gk(t){var e=Jt(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(!dt.isElement(n)||n.type==="paragraph"||et.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!at.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var zrt={renderElems:[Wet],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Mrt],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){gk(r)||e(o)},r.deleteForward=function(o){gk(r)||n(o)},r}},$rt=/"/g,Hrt=bt("".replace),gd=function(t,e,n,r){var o=De(Hr(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+Hrt(De(r),$rt,""")+'"'),i+">"+o+"</"+e+">"},vd=function(t){return Ae(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function m2(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 du(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}un({target:"String",proto:!0,forced:vd("bold")},{bold:function(){return gd(this,"b","","")}}),un({target:"String",proto:!0,forced:vd("italics")},{italics:function(){return gd(this,"i","","")}}),un({target:"String",proto:!0,forced:vd("sub")},{sub:function(){return gd(this,"sub","","")}}),un({target:"String",proto:!0,forced:vd("sup")},{sup:function(){return gd(this,"sup","","")}});var vk={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},y2=lx("span").classList,mk=y2&&y2.constructor&&y2.constructor.prototype,Urt=mk===Object.prototype?void 0:mk,pL=function(t,e){var n=[][t];return!!n&&Ae(function(){n.call(null,e||function(){throw 1},1)})},Vrt=Tm.forEach,b2=pL("forEach")?[].forEach:function(t){return Vrt(this,t,arguments.length>1?arguments[1]:void 0)},hL=function(t){if(t&&t.forEach!==b2)try{uc(t,"forEach",b2)}catch(e){t.forEach=b2}};for(var w2 in vk)vk[w2]&&hL(Ot[w2]&&Ot[w2].prototype);function gL(t,e){return t.selection==null||!!Jt(C.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!C.isVoid(t,n)},universal:!0}),1)[0]}function Wrt(t,e){Object.keys(e).forEach(function(n){n!=="text"&&C.removeMark(t,n)})}hL(Urt),un({target:"Object",stat:!0,forced:Ae(function(){_l(1)})},{keys:function(t){return _l(ch(t))}});var ks=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]:!!Jt(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 gL(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}(),Grt='<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>',qrt='<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>',Krt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Yrt='<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>',Xrt='<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>',vL='<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>',mL='<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>',Zrt='<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>',Jrt='<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>',Qrt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',tot='<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>',eot='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',not='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',rot='<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>',oot='<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>',iot='<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>',aot='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',uot='<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>',sot='<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>',lot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=nt("textStyle.bold"),n.iconSvg=Grt,n.hotkey="mod+b",n}return Ce(e,t),e}(ks),cot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=nt("textStyle.code"),n.iconSvg=Xrt,n.hotkey="mod+e",n}return Ce(e,t),e}(ks),fot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=nt("textStyle.italic"),n.iconSvg=Krt,n.hotkey="mod+i",n}return Ce(e,t),e}(ks),dot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=nt("textStyle.through"),n.iconSvg=Yrt,n.hotkey="mod+shift+x",n}return Ce(e,t),e}(ks),pot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=nt("textStyle.underline"),n.iconSvg=qrt,n.hotkey="mod+u",n}return Ce(e,t),e}(ks),hot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=nt("textStyle.sub"),n.iconSvg=sot,n.hotkey="",n}return Ce(e,t),e}(ks),got=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=nt("textStyle.sup"),n.iconSvg=uot,n.hotkey="",n}return Ce(e,t),e}(ks),vot=function(){function t(){this.title=nt("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 gL(e)},t.prototype.exec=function(e,n){var r,o,i=C.nodes(e,{match:function(s){return at.isText(s)},universal:!0});try{for(var a=dL(i),u=a.next();!u.done;u=a.next())Wrt(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}(),mot={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=Et("strong",null,c)),a&&(c=Et("code",null,c)),o&&(c=Et("em",null,c)),i&&(c=Et("u",null,c)),u&&(c=Et("s",null,c)),s&&(c=Et("sub",null,c)),l&&(c=Et("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new lot}},{key:"underline",factory:function(){return new pot}},{key:"italic",factory:function(){return new fot}},{key:"through",factory:function(){return new dot}},{key:"code",factory:function(){return new cot}},{key:"sub",factory:function(){return new hot}},{key:"sup",factory:function(){return new got}},{key:"clearStyle",factory:function(){return new vot}}],styleToHtml:function(t,e){if(!at.isText(t))return e;if(Cx(e))return m2(t,e);var n=B(e);if(_c(n)==="br")return m2(t,"<br>");var r=n.html();return r=m2(t,r),n.html(r),Fc(n)},parseStyleHtml:function(t,e,n){var r=B(t);if(!at.isText(e))return e;var o=e;return du(r,"b,strong")&&(o.bold=!0),du(r,"i,em")&&(o.italic=!0),du(r,"u")&&(o.underline=!0),du(r,"s,strike")&&(o.through=!0),du(r,"sub")&&(o.sub=!0),du(r,"sup")&&(o.sup=!0),du(r,"code")&&(o.code=!0),o}};function ph(t){return function(e,n,r){return Et("h"+t,null,n)}}var yot={type:"header1",renderElem:ph(1)},bot={type:"header2",renderElem:ph(2)},wot={type:"header3",renderElem:ph(3)},Eot={type:"header4",renderElem:ph(4)},Cot={type:"header5",renderElem:ph(5)},xot=km.PROPER,B6=RegExp.prototype,yL=B6.toString,Dot=bt(nL),Sot=Ae(function(){return yL.call({source:"a",flags:"b"})!="/a/b"}),Aot=xot&&yL.name!="toString";(Sot||Aot)&&vp(RegExp.prototype,"toString",function(){var t=fr(this),e=De(t.source),n=t.flags;return"/"+e+"/"+De(n===void 0&&UI(B6,t)&&!("flags"in B6)?Dot(t):n)},{unsafe:!0});var E2,Oot=Ot.TypeError,bL=function(t){if(lL(t))throw Oot("The method doesn't accept regular expressions");return t},kot=wr("match"),wL=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[kot]=!1,"/./"[t](e)}catch(r){}}return!1},Bot=cx.f,yk=bt("".startsWith),Tot=bt("".slice),Fot=Math.min,bk=wL("startsWith");function EL(t){var e=Jt(C.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=Jt(n,1)[0];return A.getNodeType(r)}function CL(t){return t.selection==null||!Jt(C.nodes(t,{match:function(e){var n=A.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function xL(t,e){e&&N.setNodes(t,{type:e})}un({target:"String",proto:!0,forced:!(!bk&&(E2=Bot(String.prototype,"startsWith"),E2&&!E2.writable)||bk)},{startsWith:function(t){var e=De(Hr(this));bL(t);var n=fh(Fot(arguments.length>1?arguments[1]:void 0,e.length)),r=De(t);return yk?yk(e,r,n):Tot(e,n,n+r.length)===r}});var _ot=function(){function t(){this.title=nt("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:nt("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 EL(e)},t.prototype.isDisabled=function(e){return CL(e)},t.prototype.exec=function(e,n){xL(e,n.toString())},t}(),hh=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return EL(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return CL(e)},t.prototype.exec=function(e,n){var r=this.type;xL(e,n===r?"paragraph":r)},t}(),Pot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Ce(e,t),e}(hh),jot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Ce(e,t),e}(hh),Not=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Ce(e,t),e}(hh),Iot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Ce(e,t),e}(hh),Lot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Ce(e,t),e}(hh),Rot={key:"headerSelect",factory:function(){return new _ot}},Mot={key:"header1",factory:function(){return new Pot}},zot={key:"header2",factory:function(){return new jot}},$ot={key:"header3",factory:function(){return new Not}},Hot={key:"header4",factory:function(){return new Iot}},Uot={key:"header5",factory:function(){return new Lot}};function Af(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function Of(t){return function(e,n,r){var o=B(e);return(n=n.filter(function(i){return!!at.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var Vot={renderElems:[yot,bot,wot,Eot,Cot],elemsToHtml:[{type:"header1",elemToHtml:Af(1)},{type:"header2",elemToHtml:Af(2)},{type:"header3",elemToHtml:Af(3)},{type:"header4",elemToHtml:Af(4)},{type:"header5",elemToHtml:Af(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Of(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Of(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Of(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Of(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Of(5)}],menus:[Rot,Mot,zot,$ot,Hot,Uot],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=Jt(C.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(t,r[1])?N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},Js=Object.assign,wk=Object.defineProperty,Wot=bt([].concat),Ek=!Js||Ae(function(){if(fo&&Js({b:1},Js(wk({},"a",{enumerable:!0,get:function(){wk(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}),Js({},t)[n]!=7||_l(Js({},e)).join("")!=r})?function(t,e){for(var n=ch(t),r=arguments.length,o=1,i=JI.f,a=$I.f;r>o;)for(var u,s=Am(arguments[o++]),l=i?Wot(_l(s),i(s)):_l(s),c=l.length,f=0;c>f;)u=l[f++],fo&&!Ne(a,s,u)||(n[u]=s[u]);return n}:Js;function hs(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}un({target:"Object",stat:!0,forced:Object.assign!==Ek},{assign:Ek});var Got={selector:"font",preParseHtml:function(t){var e=B(t);if(_c(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},DL=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||!!Jt(C.nodes(e,{match:function(n){return A.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=nt("color.default")),n==="bgColor"&&(u=nt("color.clear"));var s=B(`
- <li data-value="0" class="clear">
- <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>
- `+u+`
- </li>
- `);return o.prepend(s),o[0]},t}(),qot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("color.color"),n.iconSvg=Zrt,n.mark="color",n}return Ce(e,t),e}(DL),Kot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("color.bgColor"),n.iconSvg=Jrt,n.mark="bgColor",n}return Ce(e,t),e}(DL),Ck=["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)"],Yot={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&hs(i,{color:r}),o&&hs(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!at.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((Cx(e)||_c(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),Fc(n)):e},preParseHtml:[Got],parseStyleHtml:function(t,e,n){var r=B(t);if(!at.isText(e))return e;var o=e,i=so(r,"color");i&&(o.color=i);var a=so(r,"background-color");return a||(a=so(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new qot},config:{colors:Ck}},{key:"bgColor",factory:function(){return new Kot},config:{colors:Ck}}]},Xot=/^(?:\w+:)?\/\/(\S+)$/,Zot=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Jot=/^[^\s\.]+\.\S{2,}$/,Qot=XI.includes;function Fm(t){return t===void 0&&(t="r"),t+"-"+Gj()}function xx(t){return t.replace(/</g,"<").replace(/>/g,">")}function SL(t,e,n,r){return Za(this,void 0,void 0,function(){var o,i;return Ja(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 AL(t,e,n){return Za(this,void 0,void 0,function(){var r;return Ja(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 Dx(t){return t.selection==null||!!A.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function C2(t,e){return{type:"link",url:xx(t),children:e?[{text:e}]:[]}}function OL(t,e,n){return Za(this,void 0,void 0,function(){var r,o,i;return Ja(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),Dx(t)?[2]:[4,SL("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,AL("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(L.isCollapsed(o)?(t.insertText(" "),i=C2(r,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):C.string(t,o)!==e?(t.deleteFragment(),i=C2(r,e),N.insertNodes(t,i)):(i=C2(r),N.wrapNodes(t,i,{split:!0}),N.collapse(t,{edge:"end"}))),[2]}})})}un({target:"Array",proto:!0},{includes:function(t){return Qot(this,t,arguments.length>1?arguments[1]:void 0)}}),sL("includes");var tit={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return Et("a",{href:o,target:i===void 0?"_blank":i},e)}},eit={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!at.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 x2(){return Fm("w-e-insert-link")}var nit=function(){function t(){this.title=nt("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=x2(),this.urlInputId=x2(),this.buttonId=x2()}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 Dx(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=Jt(cr(nt("link.text"),o),2),s=u[0],l=B(u[1]),c=Jt(cr(nt("link.url"),i),2),f=c[0],p=B(c[1]),d=Jt(Oc(a,nt("common.ok")),1)[0];if(this.$content==null){var y=B("<div></div>");y.on("click","#"+a,function(v){v.preventDefault();var h=y.find("#"+o).val(),b=y.find("#"+i).val();OL(e,h,b),e.hidePanelOrModal()}),this.$content=y}var g=this.$content;if(g.empty(),g.append(s),g.append(f),g.append(d),n==null||L.isCollapsed(n))l.val("");else{var m=C.string(e,n);l.val(m)}return p.val(""),setTimeout(function(){l.focus()}),g[0]},t}();function xk(){return Fm("w-e-update-link")}var rit=function(){function t(){this.title=nt("link.edit"),this.iconSvg=vL,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=xk(),this.buttonId=xk()}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n==null?null:n},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 A.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=Jt(cr(nt("link.url"),n),2),i=o[0],a=B(o[1]),u=Jt(Oc(r,nt("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=A.getSelectedNodeByType(e,"link"),d=p?et.string(p):"",y=s.find("#"+n).val();(function(g,m,v){Za(this,void 0,void 0,function(){var h,b;return Ja(this,function(w){switch(w.label){case 0:return v?[4,SL("editLink",g,m,v)]:[2];case 1:return w.sent()?[4,AL("editLink",g,v)]:[2];case 2:return h=w.sent(),b={url:xx(h)},N.setNodes(g,b,{match:function(E){return A.checkNodeType(E,"link")}}),[2]}})})})(e,d,y),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}(),oit=function(){function t(){this.title=nt("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||A.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.unwrapNodes(e,{match:function(r){return A.checkNodeType(r,"link")}})},t}(),iit=function(){function t(){this.title=nt("link.view"),this.iconSvg=mL,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n==null?null:n},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}(),Dk={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},ait={renderElems:[tit],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:[eit],menus:[{key:"insertLink",factory:function(){return new nit},config:Dk},{key:"editLink",factory:function(){return new rit},config:Dk},{key:"unLink",factory:function(){return new oit}},{key:"viewLink",factory:function(){return new iit}}],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(Xot);if(!c)return!1;var f=c[1];return!(!f||!Zot.test(f)&&!Jot.test(f))}(a)){if(!Dx(o)){var u=o.selection;if(u!=null){var s=C.string(o,u);OL(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Jt(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):et.string(u)===""?N.removeNodes(o,{at:s}):r([u,s])},o}},uit=bt(1 .valueOf),sit=Ot.RangeError,lit=Ot.RangeError,kL=Ot.String,BL=Math.floor,T6=bt(function(t){var e=De(Hr(this)),n="",r=Tc(t);if(r<0||r==1/0)throw sit("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),Sk=bt("".slice),kf=bt(1 .toFixed),Dl=function(t,e,n){return e===0?n:e%2==1?Dl(t,e-1,n*t):Dl(t*t,e/2,n)},Qs=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=BL(o/1e7)},D2=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=BL(r/e),r=r%e*1e7},Ak=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=kL(t[e]);n=n===""?r:n+T6("0",7-r.length)+r}return n};function Ok(t,e){return"w-e-image-container-"+A.findKey(t,e).id}un({target:"Number",proto:!0,forced:Ae(function(){return kf(8e-5,3)!=="0.000"||kf(.9,0)!=="1"||kf(1.255,2)!=="1.25"||kf(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Ae(function(){kf({})})},{toFixed:function(t){var e,n,r,o,i=uit(this),a=Tc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw lit("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return kL(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*Dl(2,69,1))-69)<0?i*Dl(2,-e,1):i/Dl(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Qs(u,0,n),r=a;r>=7;)Qs(u,1e7,0),r-=7;for(Qs(u,Dl(10,r,1),0),r=e-1;r>=23;)D2(u,1<<23),r-=23;D2(u,1<<r),Qs(u,1,1),D2(u,2),l=Ak(u)}else Qs(u,0,n),Qs(u,1<<-e,0),l=Ak(u)+T6("0",a);return a>0?s+((o=l.length)<=a?"0."+T6("0",a-o)+l:Sk(l,0,o-a)+"."+Sk(l,o-a)):s+l}});var cit={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,y=d===void 0?"":d,g=A.isNodeSelected(n,t),m={};p&&(m.width="100%"),y&&(m.height="100%");var v=Et("img",{style:m,src:o,alt:a,"data-href":s}),h=n.isDisabled();return g&&!h?function(b,w,E,D){var x=B("body"),O=Ok(b,w),F=D.width,R=D.height,U=0,M=0,Y=0,W=!1,G=null;function K(st){G=function(){var P=B("#"+O);if(P.length===0)throw new Error("Cannot find image container elem");return P}(),U=st;var k=G.find("img");if(k.length===0)throw new Error("Cannot find image elem");M=k.width(),Y=k.height(),x.on("mousemove",ot),x.on("mouseup",ft);var S=A.getHoverbar(b);S&&S.hideAndClean()}var ot=ss(function(st){st.preventDefault();var k=st.clientX,S=M+(W?U-k:k-U),P=Y*(S/M);G!=null&&(S<=15||P<=15||(G.css("width",S+"px"),G.css("height",P+"px")))},100);function ft(st){if(x.off("mousemove",ot),G!=null){var k=G.width().toFixed(2),S=G.height().toFixed(2),P={style:za(za({},w.style),{width:k+"px",height:S+"px"})};N.setNodes(b,P,{at:A.findPath(b,w)}),x.off("mouseup",ft)}}var ct={};return F&&(ct.width=F),R&&(ct.height=R),Et("div",{id:O,style:ct,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(st){var k=B(st.target);k.hasClass("w-e-image-dragger")&&(st.preventDefault(),(k.hasClass("left-top")||k.hasClass("left-bottom"))&&(W=!0),K(st.clientX))}}},E,Et("div",{className:"w-e-image-dragger left-top"}),Et("div",{className:"w-e-image-dragger right-top"}),Et("div",{className:"w-e-image-dragger left-bottom"}),Et("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,v,{width:p,height:y}):function(b,w,E,D){var x=D.width,O=D.height,F={};return x&&(F.width=x),O&&(F.height=O),Et("div",{id:Ok(b,w),style:F,className:"w-e-image-container"},E)}(n,t,v,{width:p,height:y})}},fit={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:so(r,"width"),height:so(r,"height")},children:[{text:""}]}}};function TL(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Za(this,void 0,void 0,function(){var i,a;return Ja(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 FL(t,e,n){return Za(this,void 0,void 0,function(){var r;return Ja(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 Gu(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Za(this,void 0,void 0,function(){var o,i,a;return Ja(this,function(u){switch(u.label){case 0:return[4,TL("insertImage",t,e,n,r)];case 1:return u.sent()?[4,FL("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:xx(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),_m(t)||(N.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function _m(t){var e=t.selection;return e==null||!L.isCollapsed(e)||!!Jt(C.nodes(t,{match:function(n){var r=A.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 C0(){return Fm("w-e-insert-image")}var dit=function(){function t(){this.title=nt("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=C0(),this.altInputId=C0(),this.hrefInputId=C0(),this.buttonId=C0()}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 _m(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=Jt(cr(nt("image.src"),o),2),l=s[0],c=B(s[1]),f=Jt(cr(nt("image.desc"),i),2),p=f[0],d=B(f[1]),y=Jt(cr(nt("image.link"),a),2),g=y[0],m=B(y[1]),v=Jt(Oc(u,nt("common.ok")),1)[0];if(this.$content==null){var h=B("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var E=h.find("#"+o).val().trim(),D=h.find("#"+i).val().trim(),x=h.find("#"+a).val().trim();n.insertImage(e,E,D,x),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(g),b.append(v),c.val(""),d.val(""),m.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)||Gu(e,n,r,o))},t}(),pit=function(){function t(){this.title=nt("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||A.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{match:function(r){return A.checkNodeType(r,"image")}})},t}();function x0(){return Fm("w-e-edit-image")}var hit=function(){function t(){this.title=nt("image.edit"),this.iconSvg=vL,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=x0(),this.altInputId=x0(),this.hrefInputId=x0(),this.buttonId=x0()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return A.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||!L.isCollapsed(n)||A.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=Jt(cr(nt("image.src"),o),2),c=l[0],f=B(l[1]),p=Jt(cr(nt("image.desc"),i),2),d=p[0],y=B(p[1]),g=Jt(cr(nt("image.link"),a),2),m=g[0],v=B(g[1]),h=Jt(Oc(u,nt("common.ok")),1)[0];if(this.$content==null){var b=B("<div></div>");b.on("click","#"+u,function(U){U.preventDefault();var M=b.find("#"+o).val(),Y=b.find("#"+i).val(),W=b.find("#"+a).val();n.updateImage(e,M,Y,W),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(d),w.append(m),w.append(h);var E=s,D=E.src,x=E.alt,O=x===void 0?"":x,F=E.href,R=F===void 0?"":F;return f.val(D),y.val(O),v.val(R),setTimeout(function(){f.focus()}),w[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={}),Za(this,void 0,void 0,function(){var f,p,d,y,g,m;return Ja(this,function(v){switch(v.label){case 0:return[4,TL("editImage",a,u,s,l)];case 1:return v.sent()?[4,FL("editImage",a,u)]:[2];case 2:return f=v.sent(),(p=A.getSelectedNodeByType(a,"image"))==null||(d=p.style,y={src:f,alt:s,href:l,style:za(za({},d===void 0?{}:d),c)},N.setNodes(a,y,{match:function(h){return A.checkNodeType(h,"image")}}),g=A.getSelectedNodeByType(a,"image"),(m=a.getMenuConfig("editImage").onUpdatedImage)&&m(g)),[2]}})})}(e,n,r,o,i))},t}(),git=function(){function t(){this.title=nt("image.viewLink"),this.iconSvg=mL,this.tag="button"}return t.prototype.getValue=function(e){var n=A.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}(),Sx=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 A.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=A.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:za(za({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),vit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Ce(e,t),e}(Sx),mit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Ce(e,t),e}(Sx),yit=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Ce(e,t),e}(Sx),kk={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},bit={renderElems:[cit],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,y="";return f&&(y+="width: "+f+";"),d&&(y+="height: "+d+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+y+'"/>'}}],parseElemsHtml:[fit],menus:[{key:"insertImage",factory:function(){return new dit},config:kk},{key:"deleteImage",factory:function(){return new pit}},{key:"editImage",factory:function(){return new hit},config:kk},{key:"viewImageLink",factory:function(){return new git}},{key:"imageWidth30",factory:function(){return new vit}},{key:"imageWidth50",factory:function(){return new mit}},{key:"imageWidth100",factory:function(){return new yit}}],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}},wit={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=Et("div",{style:{margin:"5px 0"}},Et("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Et("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,t),u={checked:i.target.checked};N.setNodes(n,u,{at:a})}}})),Et("span",null,e));return o}},Eit=function(){function t(){this.title=nt("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!!A.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!A.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);N.setNodes(e,{type:r?"paragraph":"todo"})},t}(),Cit={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(i){return!!at.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}}},xit={renderElems:[wit],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:[Cit],menus:[{key:"todo",factory:function(){return new Eit}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&L.isCollapsed(o)){var i=A.getSelectedNodeByType(t,"todo");if(i&&et.string(i).length===0)return void N.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},Dit={type:"blockquote",renderElem:function(t,e,n){return Et("blockquote",null,e)}},Sit={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!at.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},Ait=function(){function t(){this.title=nt("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!!A.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!Jt(C.nodes(e,{match:function(n){var r=A.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";N.setNodes(e,{type:r},{mode:"highest"})}},t}(),Oit={key:"blockquote",factory:function(){return new Ait}},kit=bt([].slice),Bit=mx("slice"),Tit=wr("species"),S2=Ot.Array,Fit=Math.max;un({target:"Array",proto:!0,forced:!Bit},{slice:function(t,e){var n,r,o,i=kc(this),a=Bm(i),u=mp(t,a),s=mp(e===void 0?a:e,a);if(Uv(i)&&(n=i.constructor,(vx(n)&&(n===S2||Uv(n.prototype))||Fr(n)&&(n=n[Tit])===null)&&(n=void 0),n===S2||n===void 0))return kit(i,u,s);for(r=new(n===void 0?S2:n)(Fit(s-u,0)),o=0;u<s;u++,o++)u in i&&cL(r,o,i[u]);return r.length=o,r}});var _it={renderElems:[Dit],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Sit],menus:[Oit],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=Jt(C.nodes(t,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=A.findPath(t,a),s=C.end(t,u);if(Ft.equals(s,o.focus)){var l=et.string(a);if(l&&l.slice(-1)===`
- `)return t.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
- `)},r}},Pit=function(){function t(){this.title=nt("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||!!Jt(C.nodes(e,{match:function(n){return A.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}(),jit={menus:[{key:"emotion",factory:function(){return new Pit},config:{emotions:"\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463} \u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(" ")}}]},Nit={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Iit={selector:"font",preParseHtml:function(t){var e=B(t);if(_c(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Nit[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},Lit=bt("".indexOf);un({target:"String",proto:!0,forced:!wL("includes")},{includes:function(t){return!!~Lit(De(Hr(this)),De(bL(t)),arguments.length>1?arguments[1]:void 0)}});var Vi,xg,D0=function(t){return t&&t.Math==Math&&t},_t=D0(typeof globalThis=="object"&&globalThis)||D0(typeof window=="object"&&window)||D0(typeof self=="object"&&self)||D0(typeof Mv=="object"&&Mv)||function(){return this}()||Function("return this")(),Ax=Function.prototype,Bk=Ax.apply,Rit=Ax.bind,Tk=Ax.call,_L=typeof Reflect=="object"&&Reflect.apply||(Rit?Tk.bind(Bk):function(){return Tk.apply(Bk,arguments)}),PL=Function.prototype,F6=PL.bind,_6=PL.call,Mit=F6&&F6.bind(_6),Ie=F6?function(t){return t&&Mit(_6,t)}:function(t){return t&&function(){return _6.apply(t,arguments)}},Cn=function(t){return typeof t=="function"},mr=function(t){try{return!!t()}catch(e){return!0}},Qn=!mr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Bf=Function.prototype.call,ro=Bf.bind?Bf.bind(Bf):function(){return Bf.apply(Bf,arguments)},Fk={}.propertyIsEnumerable,_k=Object.getOwnPropertyDescriptor,zit=_k&&!Fk.call({1:2},1)?function(t){var e=_k(this,t);return!!e&&e.enumerable}:Fk,Ox={f:zit},gs=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},$it=Ie({}.toString),Hit=Ie("".slice),qu=function(t){return Hit($it(t),8,-1)},A2=_t.Object,Uit=Ie("".split),jL=mr(function(){return!A2("z").propertyIsEnumerable(0)})?function(t){return qu(t)=="String"?Uit(t,""):A2(t)}:A2,Vit=_t.TypeError,kx=function(t){if(t==null)throw Vit("Can't call method on "+t);return t},qo=function(t){return jL(kx(t))},_r=function(t){return typeof t=="object"?t!==null:Cn(t)},Or={},Pk=function(t){return Cn(t)?t:void 0},gh=function(t,e){return arguments.length<2?Pk(Or[t])||Pk(_t[t]):Or[t]&&Or[t][e]||_t[t]&&_t[t][e]},NL=Ie({}.isPrototypeOf),O2=gh("navigator","userAgent")||"",jk=_t.process,Nk=_t.Deno,Ik=jk&&jk.versions||Nk&&Nk.version,Lk=Ik&&Ik.v8;Lk&&(xg=(Vi=Lk.split("."))[0]>0&&Vi[0]<4?1:+(Vi[0]+Vi[1])),!xg&&O2&&(!(Vi=O2.match(/Edge\/(\d+)/))||Vi[1]>=74)&&(Vi=O2.match(/Chrome\/(\d+)/))&&(xg=+Vi[1]);var Gv=xg,So=!!Object.getOwnPropertySymbols&&!mr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Gv&&Gv<41}),Bx=So&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Wit=_t.Object,Pl=Bx?function(t){return typeof t=="symbol"}:function(t){var e=gh("Symbol");return Cn(e)&&NL(e.prototype,Wit(t))},Git=_t.String,qit=_t.TypeError,IL=function(t){if(Cn(t))return t;throw qit(function(e){try{return Git(e)}catch(n){return"Object"}}(t)+" is not a function")},Kit=_t.TypeError,Yit=Object.defineProperty,xa=_t["__core-js_shared__"]||function(t,e){try{Yit(_t,t,{value:e,configurable:!0,writable:!0})}catch(n){_t[t]=e}return e}("__core-js_shared__",{}),Bs=Sm(function(t){(t.exports=function(e,n){return xa[e]||(xa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Xit=_t.Object,vh=function(t){return Xit(kx(t))},Zit=Ie({}.hasOwnProperty),Zt=Object.hasOwn||function(t,e){return Zit(vh(t),e)},Jit=0,Qit=Math.random(),tat=Ie(1 .toString),qv=function(t){return"Symbol("+(t===void 0?"":t)+")_"+tat(++Jit+Qit,36)},Tf=Bs("wks"),Ku=_t.Symbol,Rk=Ku&&Ku.for,eat=Bx?Ku:Ku&&Ku.withoutSetter||qv,Er=function(t){if(!Zt(Tf,t)||!So&&typeof Tf[t]!="string"){var e="Symbol."+t;So&&Zt(Ku,t)?Tf[t]=Ku[t]:Tf[t]=Bx&&Rk?Rk(e):eat(e)}return Tf[t]},nat=_t.TypeError,rat=Er("toPrimitive"),Pc=function(t){var e=function(n,r){if(!_r(n)||Pl(n))return n;var o,i,a=(o=n[rat])==null?void 0:IL(o);if(a){if(r===void 0&&(r="default"),i=ro(a,n,r),!_r(i)||Pl(i))return i;throw nat("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&Cn(l=u.toString)&&!_r(c=ro(l,u))||Cn(l=u.valueOf)&&!_r(c=ro(l,u))||s!=="string"&&Cn(l=u.toString)&&!_r(c=ro(l,u)))return c;throw Kit("Can't convert object to primitive value")}(n,r)}(t,"string");return Pl(e)?e:e+""},P6=_t.document,oat=_r(P6)&&_r(P6.createElement),LL=function(t){return oat?P6.createElement(t):{}},RL=!Qn&&!mr(function(){return Object.defineProperty(LL("div"),"a",{get:function(){return 7}}).a!=7}),Mk=Object.getOwnPropertyDescriptor,Tx={f:Qn?Mk:function(t,e){if(t=qo(t),e=Pc(e),RL)try{return Mk(t,e)}catch(n){}if(Zt(t,e))return gs(!ro(Ox.f,t,e),t[e])}},iat=/#|\.prototype\./,mh=function(t,e){var n=uat[aat(t)];return n==lat||n!=sat&&(Cn(e)?mr(e):!!e)},aat=mh.normalize=function(t){return String(t).replace(iat,".").toLowerCase()},uat=mh.data={},sat=mh.NATIVE="N",lat=mh.POLYFILL="P",cat=mh,zk=Ie(Ie.bind),ML=function(t,e){return IL(t),e===void 0?t:zk?zk(t,e):function(){return t.apply(e,arguments)}},fat=_t.String,dat=_t.TypeError,vs=function(t){if(_r(t))return t;throw dat(fat(t)+" is not an object")},pat=_t.TypeError,$k=Object.defineProperty,Ts={f:Qn?$k:function(t,e,n){if(vs(t),e=Pc(e),vs(n),RL)try{return $k(t,e,n)}catch(r){}if("get"in n||"set"in n)throw pat("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Oo=Qn?function(t,e,n){return Ts.f(t,e,gs(1,n))}:function(t,e,n){return t[e]=n,t},hat=Tx.f,gat=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 _L(t,this,arguments)};return e.prototype=t.prototype,e},na=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?_t:p?_t[c]:(_t[c]||{}).prototype,g=f?Or:Or[c]||Oo(Or,c,{})[c],m=g.prototype;for(o in e)n=!cat(f?o:c+(p?".":"#")+o,t.forced)&&y&&Zt(y,o),a=g[o],n&&(u=t.noTargetGet?(l=hat(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?ML(i,_t):t.wrap&&n?gat(i):d&&Cn(i)?Ie(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Oo(s,"sham",!0),Oo(g,o,s),d&&(Zt(Or,r=c+"Prototype")||Oo(Or,r,{}),Oo(Or[r],o,i),t.real&&m&&!m[o]&&Oo(m,o,i)))},Kv=Array.isArray||function(t){return qu(t)=="Array"},vat=Math.ceil,mat=Math.floor,Fx=function(t){var e=+t;return e!=e||e===0?0:(e>0?mat:vat)(e)},yat=Math.min,Pm=function(t){return(e=t.length)>0?yat(Fx(e),9007199254740991):0;var e},j6=function(t,e,n){var r=Pc(e);r in t?Ts.f(t,r,gs(0,n)):t[r]=n},zL={};zL[Er("toStringTag")]="z";var _x=String(zL)==="[object z]",bat=Er("toStringTag"),wat=_t.Object,Eat=qu(function(){return arguments}())=="Arguments",jm=_x?qu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=wat(t),bat))=="string"?n:Eat?qu(e):(r=qu(e))=="Object"&&Cn(e.callee)?"Arguments":r},Cat=Ie(Function.toString);Cn(xa.inspectSource)||(xa.inspectSource=function(t){return Cat(t)});var $L=xa.inspectSource,HL=function(){},xat=[],UL=gh("Reflect","construct"),Px=/^\s*(?:class|function)\b/,Dat=Ie(Px.exec),Sat=!Px.exec(HL),Ff=function(t){if(!Cn(t))return!1;try{return UL(HL,xat,t),!0}catch(e){return!1}},Aat=!UL||mr(function(){var t;return Ff(Ff.call)||!Ff(Object)||!Ff(function(){t=!0})||t})?function(t){if(!Cn(t))return!1;switch(jm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Sat||!!Dat(Px,$L(t))}:Ff,Oat=Er("species"),Hk=_t.Array,VL=function(t,e){return new(function(n){var r;return Kv(n)&&(r=n.constructor,(Aat(r)&&(r===Hk||Kv(r.prototype))||_r(r)&&(r=r[Oat])===null)&&(r=void 0)),r===void 0?Hk:r}(t))(e===0?0:e)},kat=Er("species"),WL=Er("isConcatSpreadable"),Uk=_t.TypeError,Bat=Gv>=51||!mr(function(){var t=[];return t[WL]=!1,t.concat()[0]!==t}),Tat=Gv>=51||!mr(function(){var t=[];return(t.constructor={})[kat]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Fat=function(t){if(!_r(t))return!1;var e=t[WL];return e!==void 0?!!e:Kv(t)};na({target:"Array",proto:!0,forced:!Bat||!Tat},{concat:function(t){var e,n,r,o,i,a=vh(this),u=VL(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(Fat(i=e===-1?a:arguments[e])){if(s+(o=Pm(i))>9007199254740991)throw Uk("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&j6(u,s,i[n])}else{if(s>=9007199254740991)throw Uk("Maximum allowed index exceeded");j6(u,s++,i)}return u.length=s,u}});var S0,_at=_t.String,Yv=function(t){if(jm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return _at(t)},Pat=Math.max,jat=Math.min,N6=function(t,e){var n=Fx(t);return n<0?Pat(n+e,0):jat(n,e)},Vk=function(t){return function(e,n,r){var o,i=qo(e),a=Pm(i),u=N6(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}},Nat={includes:Vk(!0),indexOf:Vk(!1)},yh={},Iat=Nat.indexOf,Wk=Ie([].push),GL=function(t,e){var n,r=qo(t),o=0,i=[];for(n in r)!Zt(yh,n)&&Zt(r,n)&&Wk(i,n);for(;e.length>o;)Zt(r,n=e[o++])&&(~Iat(i,n)||Wk(i,n));return i},Xv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jx=Object.keys||function(t){return GL(t,Xv)},Lat=Qn?Object.defineProperties:function(t,e){vs(t);for(var n,r=qo(e),o=jx(e),i=o.length,a=0;i>a;)Ts.f(t,n=o[a++],r[n]);return t},Rat=gh("document","documentElement"),Gk=Bs("keys"),Nm=function(t){return Gk[t]||(Gk[t]=qv(t))},qL=Nm("IE_PROTO"),k2=function(){},KL=function(t){return"<script>"+t+"<\/script>"},qk=function(t){t.write(KL("")),t.close();var e=t.parentWindow.Object;return t=null,e},Dg=function(){try{S0=new ActiveXObject("htmlfile")}catch(r){}var t,e;Dg=typeof document!="undefined"?document.domain&&S0?qk(S0):((e=LL("iframe")).style.display="none",Rat.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(KL("document.F=Object")),t.close(),t.F):qk(S0);for(var n=Xv.length;n--;)delete Dg.prototype[Xv[n]];return Dg()};yh[qL]=!0;var Zv,Fd,Jv,ms=Object.create||function(t,e){var n;return t!==null?(k2.prototype=vs(t),n=new k2,k2.prototype=null,n[qL]=t):n=Dg(),e===void 0?n:Lat(n,e)},Mat=Xv.concat("length","prototype"),YL={f:Object.getOwnPropertyNames||function(t){return GL(t,Mat)}},zat=_t.Array,$at=Math.max,Kk=YL.f,Yk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],XL={f:function(t){return Yk&&qu(t)=="Window"?function(e){try{return Kk(e)}catch(n){return function(r,o,i){for(var a=Pm(r),u=N6(void 0,a),s=N6(a,a),l=zat($at(s-u,0)),c=0;u<s;u++,c++)j6(l,c,r[u]);return l.length=c,l}(Yk)}}(t):Kk(qo(t))}},B2={f:Object.getOwnPropertySymbols},Hat=Ie([].slice),sc=function(t,e,n,r){r&&r.enumerable?t[e]=n:Oo(t,e,n)},Nx={f:Er},Uat=Ts.f,Me=function(t){var e=Or.Symbol||(Or.Symbol={});Zt(e,t)||Uat(e,t,{value:Nx.f(t)})},Vat=_x?{}.toString:function(){return"[object "+jm(this)+"]"},Wat=Ts.f,Xk=Er("toStringTag"),Qv=function(t,e,n,r){if(t){var o=n?t:t.prototype;Zt(o,Xk)||Wat(o,Xk,{configurable:!0,value:e}),r&&!_x&&Oo(o,"toString",Vat)}},Zk=_t.WeakMap,Gat=Cn(Zk)&&/native code/.test($L(Zk)),I6=_t.TypeError,qat=_t.WeakMap;if(Gat||xa.state){var pu=xa.state||(xa.state=new qat),Kat=Ie(pu.get),Jk=Ie(pu.has),Yat=Ie(pu.set);Zv=function(t,e){if(Jk(pu,t))throw new I6("Object already initialized");return e.facade=t,Yat(pu,t,e),e},Fd=function(t){return Kat(pu,t)||{}},Jv=function(t){return Jk(pu,t)}}else{var tl=Nm("state");yh[tl]=!0,Zv=function(t,e){if(Zt(t,tl))throw new I6("Object already initialized");return e.facade=t,Oo(t,tl,e),e},Fd=function(t){return Zt(t,tl)?t[tl]:{}},Jv=function(t){return Zt(t,tl)}}var jc={set:Zv,get:Fd,has:Jv,enforce:function(t){return Jv(t)?Fd(t):Zv(t,{})},getterFor:function(t){return function(e){var n;if(!_r(e)||(n=Fd(e)).type!==t)throw I6("Incompatible receiver, "+t+" required");return n}}},Qk=Ie([].push),Wi=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,y=vh(s),g=jL(y),m=ML(l,c),v=Pm(g),h=0,b=f||VL,w=e?b(s,v):n||a?b(s,0):void 0;v>h;h++)if((u||h in g)&&(d=m(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:Qk(w,p)}else switch(t){case 4:return!1;case 7:Qk(w,p)}return i?-1:r||o?o:w}},Im=[Wi(0),Wi(1),Wi(2),Wi(3),Wi(4),Wi(5),Wi(6),Wi(7)][0],qn=Nm("hidden"),tB=Er("toPrimitive"),Xat=jc.set,eB=jc.getterFor("Symbol"),oo=Object.prototype,ia=_t.Symbol,da=ia&&ia.prototype,nB=_t.TypeError,T2=_t.QObject,_f=gh("JSON","stringify"),ZL=Tx.f,aa=Ts.f,JL=XL.f,Zat=Ox.f,QL=Ie([].push),Ei=Bs("symbols"),bh=Bs("op-symbols"),F2=Bs("string-to-symbol-registry"),_2=Bs("symbol-to-string-registry"),Jat=Bs("wks"),P2=!T2||!T2.prototype||!T2.prototype.findChild,L6=Qn&&mr(function(){return ms(aa({},"a",{get:function(){return aa(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=ZL(oo,e);r&&delete oo[e],aa(t,e,n),r&&t!==oo&&aa(oo,e,r)}:aa,j2=function(t,e){var n=Ei[t]=ms(da);return Xat(n,{type:"Symbol",tag:t,description:e}),Qn||(n.description=e),n},t1=function(t,e,n){t===oo&&t1(bh,e,n),vs(t);var r=Pc(e);return vs(n),Zt(Ei,r)?(n.enumerable?(Zt(t,qn)&&t[qn][r]&&(t[qn][r]=!1),n=ms(n,{enumerable:gs(0,!1)})):(Zt(t,qn)||aa(t,qn,gs(1,{})),t[qn][r]=!0),L6(t,r,n)):aa(t,r,n)},rB=function(t,e){vs(t);var n=qo(e),r=jx(n).concat(R6(n));return Im(r,function(o){Qn&&!ro(tR,n,o)||t1(t,o,n[o])}),t},tR=function(t){var e=Pc(t),n=ro(Zat,this,e);return!(this===oo&&Zt(Ei,e)&&!Zt(bh,e))&&(!(n||!Zt(this,e)||!Zt(Ei,e)||Zt(this,qn)&&this[qn][e])||n)},oB=function(t,e){var n=qo(t),r=Pc(e);if(n!==oo||!Zt(Ei,r)||Zt(bh,r)){var o=ZL(n,r);return!o||!Zt(Ei,r)||Zt(n,qn)&&n[qn][r]||(o.enumerable=!0),o}},iB=function(t){var e=JL(qo(t)),n=[];return Im(e,function(r){Zt(Ei,r)||Zt(yh,r)||QL(n,r)}),n},R6=function(t){var e=t===oo,n=JL(e?bh:qo(t)),r=[];return Im(n,function(o){!Zt(Ei,o)||e&&!Zt(oo,o)||QL(r,Ei[o])}),r};if(So||(da=(ia=function(){if(NL(da,this))throw nB("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Yv(arguments[0]):void 0,e=qv(t),n=function(r){this===oo&&ro(n,bh,r),Zt(this,qn)&&Zt(this[qn],e)&&(this[qn][e]=!1),L6(this,e,gs(1,r))};return Qn&&P2&&L6(oo,e,{configurable:!0,set:n}),j2(e,t)}).prototype,sc(da,"toString",function(){return eB(this).tag}),sc(ia,"withoutSetter",function(t){return j2(qv(t),t)}),Ox.f=tR,Ts.f=t1,Tx.f=oB,YL.f=XL.f=iB,B2.f=R6,Nx.f=function(t){return j2(Er(t),t)},Qn&&aa(da,"description",{configurable:!0,get:function(){return eB(this).description}})),na({global:!0,wrap:!0,forced:!So,sham:!So},{Symbol:ia}),Im(jx(Jat),function(t){Me(t)}),na({target:"Symbol",stat:!0,forced:!So},{for:function(t){var e=Yv(t);if(Zt(F2,e))return F2[e];var n=ia(e);return F2[e]=n,_2[n]=e,n},keyFor:function(t){if(!Pl(t))throw nB(t+" is not a symbol");if(Zt(_2,t))return _2[t]},useSetter:function(){P2=!0},useSimple:function(){P2=!1}}),na({target:"Object",stat:!0,forced:!So,sham:!Qn},{create:function(t,e){return e===void 0?ms(t):rB(ms(t),e)},defineProperty:t1,defineProperties:rB,getOwnPropertyDescriptor:oB}),na({target:"Object",stat:!0,forced:!So},{getOwnPropertyNames:iB,getOwnPropertySymbols:R6}),na({target:"Object",stat:!0,forced:mr(function(){B2.f(1)})},{getOwnPropertySymbols:function(t){return B2.f(vh(t))}}),_f){var Qat=!So||mr(function(){var t=ia();return _f([t])!="[null]"||_f({a:t})!="{}"||_f(Object(t))!="{}"});na({target:"JSON",stat:!0,forced:Qat},{stringify:function(t,e,n){var r=Hat(arguments),o=e;if((_r(e)||t!==void 0)&&!Pl(t))return Kv(e)||(e=function(i,a){if(Cn(o)&&(a=ro(o,this,i,a)),!Pl(a))return a}),r[1]=e,_L(_f,null,r)}})}if(!da[tB]){var tut=da.valueOf;sc(da,tB,function(t){return ro(tut,this)})}Qv(ia,"Symbol"),yh[qn]=!0,Me("asyncIterator"),Me("hasInstance"),Me("isConcatSpreadable"),Me("iterator"),Me("match"),Me("matchAll"),Me("replace"),Me("search"),Me("species"),Me("split"),Me("toPrimitive"),Me("toStringTag"),Me("unscopables"),Qv(_t.JSON,"JSON",!0);var pa,aB,uB,eut=Or.Symbol,Yu={},eR=Function.prototype,nut=Qn&&Object.getOwnPropertyDescriptor,N2=Zt(eR,"name"),rut={EXISTS:N2,PROPER:N2&&function(){}.name==="something",CONFIGURABLE:N2&&(!Qn||Qn&&nut(eR,"name").configurable)},out=!mr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),sB=Nm("IE_PROTO"),M6=_t.Object,iut=M6.prototype,z6=out?M6.getPrototypeOf:function(t){var e=vh(t);if(Zt(e,sB))return e[sB];var n=e.constructor;return Cn(n)&&e instanceof n?n.prototype:e instanceof M6?iut:null},$6=Er("iterator"),nR=!1;[].keys&&("next"in(uB=[].keys())?(aB=z6(z6(uB)))!==Object.prototype&&(pa=aB):nR=!0);var aut=pa==null||mr(function(){var t={};return pa[$6].call(t)!==t});pa=aut?{}:ms(pa),Cn(pa[$6])||sc(pa,$6,function(){return this});var rR={IteratorPrototype:pa,BUGGY_SAFARI_ITERATORS:nR},uut=rR.IteratorPrototype,sut=function(){return this};_t.String,_t.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{Ie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch(e){}}();var lut=rut.PROPER,A0=rR.BUGGY_SAFARI_ITERATORS,I2=Er("iterator"),cut=function(){return this},oR=function(t,e,n,r,o,i,a){(function(v,h,b,w){var E=h+" Iterator";v.prototype=ms(uut,{next:gs(1,b)}),Qv(v,E,!1,!0),Yu[E]=sut})(n,e,r);var u,s,l,c=function(v){if(v===o&&g)return g;if(!A0&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[I2]||d["@@iterator"]||o&&d[o],g=!A0&&y||c(o),m=e=="Array"&&d.entries||y;if(m&&(u=z6(m.call(new t)))!==Object.prototype&&u.next&&(Qv(u,f,!0,!0),Yu[f]=cut),lut&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return ro(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(A0||p||!(l in d))&&sc(d,l,s[l]);else na({target:e,proto:!0,forced:A0||p},s);return a&&d[I2]!==g&&sc(d,I2,g,{name:o}),Yu[e]=g,s},fut=jc.set,dut=jc.getterFor("Array Iterator");oR(Array,"Array",function(t,e){fut(this,{type:"Array Iterator",target:qo(t),index:0,kind:e})},function(){var t=dut(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"),Yu.Arguments=Yu.Array;var lB=Er("toStringTag");for(var L2 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 cB=_t[L2],R2=cB&&cB.prototype;R2&&jm(R2)!==lB&&Oo(R2,lB,L2),Yu[L2]=Yu.Array}var put=eut;Me("asyncDispose"),Me("dispose"),Me("matcher"),Me("metadata"),Me("observable"),Me("patternMatch"),Me("replaceAll");var O0=put,hut=Ie("".charAt),fB=Ie("".charCodeAt),gut=Ie("".slice),vut=function(t){return function(e,n){var r,o,i=Yv(kx(e)),a=Fx(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=fB(i,a))<55296||r>56319||a+1===u||(o=fB(i,a+1))<56320||o>57343?t?hut(i,a):r:t?gut(i,a,a+2):o-56320+(r-55296<<10)+65536}},mut=vut(!0),yut=jc.set,but=jc.getterFor("String Iterator");oR(String,"String",function(t){yut(this,{type:"String Iterator",string:Yv(t),index:0})},function(){var t,e=but(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=mut(n,r),e.index+=t.length,{value:t,done:!1})});var wut=Nx.f("iterator"),Eut=Sm(function(t){function e(n){return typeof O0=="function"&&typeof wut=="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 O0=="function"&&r.constructor===O0&&r!==O0.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}),iR=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Eut),Cut=km.EXISTS,xut=Bc.f,aR=Function.prototype,Dut=bt(aR.toString),uR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Sut=bt(uR.exec);fo&&!Cut&&xut(aR,"name",{configurable:!0,get:function(){try{return Sut(uR,Dut(this))[1]}catch(t){return""}}});var sR=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,!!Jt(C.nodes(e,{match:function(n){return A.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}(),Aut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("fontSize.title"),n.iconSvg=Qrt,n.mark="fontSize",n}return Ce(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:nt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(iR(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}(sR),Out=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("fontFamily.title"),n.iconSvg=tot,n.mark="fontFamily",n.selectPanelWidth=150,n}return Ce(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:nt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(iR(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}(sR),kut={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&hs(i,{fontSize:r}),o&&hs(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!at.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((Cx(e)||_c(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),Fc(n)):e},preParseHtml:[Iit],parseStyleHtml:function(t,e,n){var r=B(t);if(!at.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=so(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=so(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 Aut},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 Out},config:{fontFamilyList:["\u9ED1\u4F53",{name:"\u4EFF\u5B8B",value:"\u4EFF\u5B8B"},"\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53",{name:"\u5B8B\u4F53",value:"\u5B8B\u4F53"},"\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},But={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=B(t),n=so(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]}},lR=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=Jt(C.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Jt(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Jt(C.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),Tut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("indent.decrease"),n.iconSvg=eot,n}return Ce(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:null},{match:function(o){return dt.isElement(o)}})},e}(lR),Fut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("indent.increase"),n.iconSvg=not,n}return Ce(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:"2em"},{match:function(o){return dt.isElement(o)},mode:"highest"})},e}(lR),_ut={renderStyle:function(t,e){if(!dt.isElement(t))return e;var n=t.indent,r=e;return n&&hs(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!dt.isElement(t))return e;var n=t.indent;if(!n)return e;var r=B(e);return r.css("text-indent",n),Fc(r)},preParseHtml:[But],parseStyleHtml:function(t,e,n){var r=B(t);if(!dt.isElement(e))return e;var o=e,i=so(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Fut}},{key:"delIndent",factory:function(){return new Tut}}]},Lm=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=Jt(C.nodes(e,{match:function(r){var o=A.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||!!A.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}(),Put=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("justify.left"),n.iconSvg=rot,n}return Ce(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"left"},{match:function(o){return dt.isElement(o)&&!n.isInline(o)}})},e}(Lm),jut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("justify.right"),n.iconSvg=oot,n}return Ce(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"right"},{match:function(o){return dt.isElement(o)&&!n.isInline(o)}})},e}(Lm),Nut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("justify.center"),n.iconSvg=iot,n}return Ce(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"center"},{match:function(o){return dt.isElement(o)&&!n.isInline(o)}})},e}(Lm),Iut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=nt("justify.justify"),n.iconSvg=aot,n}return Ce(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"justify"},{match:function(o){return dt.isElement(o)&&!n.isInline(o)}})},e}(Lm),Lut={renderStyle:function(t,e){if(!dt.isElement(t))return e;var n=t.textAlign,r=e;return n&&hs(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!dt.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=B(e);return r.css("text-align",n),Fc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!dt.isElement(e))return e;var o=e,i=so(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Put}},{key:"justifyRight",factory:function(){return new jut}},{key:"justifyCenter",factory:function(){return new Nut}},{key:"justifyJustify",factory:function(){return new Iut}}]},Rut=function(){function t(){this.title=nt("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:nt("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=Jt(C.nodes(e,{match:function(r){var o=A.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?"":dt.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){N.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),Mut={renderStyle:function(t,e){if(!dt.isElement(t))return e;var n=t.lineHeight,r=e;return n&&hs(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!dt.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=B(e);return r.css("line-height",n),Fc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!dt.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=so(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Rut},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},zut=function(){function t(){this.title=nt("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}(),$ut=function(){function t(){this.title=nt("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}(),Hut={menus:[{key:"redo",factory:function(){return new zut}},{key:"undo",factory:function(){return new $ut}}]},Uut={type:"divider",renderElem:function(t,e,n){return tc("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[tc("hr")])}},Vut=function(){function t(){this.title=nt("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||!!A.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){N.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),Wut={renderElems:[Uut],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 Vut}}],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=Jt(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},Gut=Tm.map;un({target:"Array",proto:!0,forced:!mx("map")},{map:function(t){return Gut(this,t,arguments.length>1?arguments[1]:void 0)}});var qut=bt([].join),Kut=Am!=Object,Yut=pL("join",",");un({target:"Array",proto:!0,forced:Kut||!Yut},{join:function(t){return qut(kc(this),t===void 0?",":t)}});var Xut=function(){function t(){this.title=nt("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=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return r==null||A.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=A.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=A.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=et.string(n);N.removeNodes(e,{mode:"highest"});var o=r.split(`
- `).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.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=dL(a),s=u.next();!s.done;s=u.next()){var l=Jt(s.value,1)[0];l&&i.push(et.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}N.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
- `)}]}]};N.insertNodes(e,c,{mode:"highest"})},t}(),Zut={key:"codeBlock",factory:function(){return new Xut}};un({target:"String",proto:!0,forced:vd("anchor")},{anchor:function(t){return gd(this,"a","name",t)}}),wx("match",function(t,e,n){return[function(r){var o=Hr(this),i=r==null?void 0:Om(r,t);return i?Ne(i,r,o):new RegExp(r)[t](De(o))},function(r){var o=fr(this),i=De(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return bp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=bp(o,i))!==null;){var f=De(s[0]);l[c]=f,f===""&&(o.lastIndex=Ex(i,fh(o.lastIndex),u)),c++}return c===0?null:l}]});var Jut={type:"pre",renderElem:function(t,e,n){return Et("pre",null,e)}},Qut={type:"code",renderElem:function(t,e,n){return Et("code",null,e)}},tst={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return A.getNodeType(o)==="code"})}}},est={menus:[Zut],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var p=et.string(l),d=f.anchor.offset,y=p.slice(0,d).split(`
- `),g=y.length;return g===0?"":y[g-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
- `+s)}}o.insertText(`
- `)}else e()},o.normalizeNode=function(i){var a=Jt(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");C.insertText(o,a)}else r(i)},o},renderElems:[Jut,Qut],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(_c(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||""}]}}},tst]},nst=function(){function t(){this.title=nt("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}(),rst={menus:[{key:"fullScreen",factory:function(){return new nst}}]},ost=function(){function t(){this.title=nt("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||!!L.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];N.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(C.start(e,o))}},t}(),ist=[mot,Yot,kut,_ut,Lut,Mut,bit,Wut,jit,ait,est,_it,Vot,zrt,xit,Hut,rst,{menus:[{key:"enter",factory:function(){return new ost}}]}];er("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),er("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var dB=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ix(t){var e={exports:{}};return t(e,e.exports),e.exports}var Gi,Sg,k0=function(t){return t&&t.Math==Math&&t},Ct=k0(typeof globalThis=="object"&&globalThis)||k0(typeof window=="object"&&window)||k0(typeof self=="object"&&self)||k0(typeof dB=="object"&&dB)||function(){return this}()||Function("return this")(),cR=Function.prototype,H6=cR.bind,U6=cR.call,ast=H6&&H6.bind(U6),It=H6?function(t){return t&&ast(U6,t)}:function(t){return t&&function(){return U6.apply(t,arguments)}},Te=function(t){try{return!!t()}catch(e){return!0}},ust=It({}.toString),sst=It("".slice),vi=function(t){return sst(ust(t),8,-1)},M2=Ct.Object,lst=It("".split),fR=Te(function(){return!M2("z").propertyIsEnumerable(0)})?function(t){return vi(t)=="String"?lst(t,""):M2(t)}:M2,cst=Ct.TypeError,Rm=function(t){if(t==null)throw cst("Can't call method on "+t);return t},Nc=function(t){return fR(Rm(t))},fst=Object.defineProperty,Lx=function(t,e){try{fst(Ct,t,{value:e,configurable:!0,writable:!0})}catch(n){Ct[t]=e}return e},Da=Ct["__core-js_shared__"]||Lx("__core-js_shared__",{}),Rx=Ix(function(t){(t.exports=function(e,n){return Da[e]||(Da[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),dst=Ct.Object,wh=function(t){return dst(Rm(t))},pst=It({}.hasOwnProperty),ln=Object.hasOwn||function(t,e){return pst(wh(t),e)},hst=0,gst=Math.random(),vst=It(1 .toString),Mx=function(t){return"Symbol("+(t===void 0?"":t)+")_"+vst(++hst+gst,36)},Fe=function(t){return typeof t=="function"},mst=function(t){return Fe(t)?t:void 0},Eh=function(t,e){return arguments.length<2?mst(Ct[t]):Ct[t]&&Ct[t][e]},z2=Eh("navigator","userAgent")||"",pB=Ct.process,hB=Ct.Deno,gB=pB&&pB.versions||hB&&hB.version,vB=gB&&gB.v8;vB&&(Sg=(Gi=vB.split("."))[0]>0&&Gi[0]<4?1:+(Gi[0]+Gi[1])),!Sg&&z2&&(!(Gi=z2.match(/Edge\/(\d+)/))||Gi[1]>=74)&&(Gi=z2.match(/Chrome\/(\d+)/))&&(Sg=+Gi[1]);var B0,V6=Sg,W6=!!Object.getOwnPropertySymbols&&!Te(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&V6&&V6<41}),zx=W6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Pf=Rx("wks"),Xu=Ct.Symbol,mB=Xu&&Xu.for,yst=zx?Xu:Xu&&Xu.withoutSetter||Mx,Dn=function(t){if(!ln(Pf,t)||!W6&&typeof Pf[t]!="string"){var e="Symbol."+t;W6&&ln(Xu,t)?Pf[t]=Xu[t]:Pf[t]=zx&&mB?mB(e):yst(e)}return Pf[t]},Be=function(t){return typeof t=="object"?t!==null:Fe(t)},bst=Ct.String,wst=Ct.TypeError,nr=function(t){if(Be(t))return t;throw wst(bst(t)+" is not an object")},$a=!Te(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),G6=Ct.document,Est=Be(G6)&&Be(G6.createElement),$x=function(t){return Est?G6.createElement(t):{}},dR=!$a&&!Te(function(){return Object.defineProperty($x("div"),"a",{get:function(){return 7}}).a!=7}),jf=Function.prototype.call,sn=jf.bind?jf.bind(jf):function(){return jf.apply(jf,arguments)},e1=It({}.isPrototypeOf),Cst=Ct.Object,$2=zx?function(t){return typeof t=="symbol"}:function(t){var e=Eh("Symbol");return Fe(e)&&e1(e.prototype,Cst(t))},xst=Ct.String,q6=function(t){try{return xst(t)}catch(e){return"Object"}},Dst=Ct.TypeError,Hx=function(t){if(Fe(t))return t;throw Dst(q6(t)+" is not a function")},wp=function(t,e){var n=t[e];return n==null?void 0:Hx(n)},Sst=Ct.TypeError,Ast=Ct.TypeError,Ost=Dn("toPrimitive"),Ux=function(t){var e=function(n,r){if(!Be(n)||$2(n))return n;var o,i=wp(n,Ost);if(i){if(r===void 0&&(r="default"),o=sn(i,n,r),!Be(o)||$2(o))return o;throw Ast("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)&&!Be(l=sn(s,a))||Fe(s=a.valueOf)&&!Be(l=sn(s,a))||u!=="string"&&Fe(s=a.toString)&&!Be(l=sn(s,a)))return l;throw Sst("Can't convert object to primitive value")}(n,r)}(t,"string");return $2(e)?e:e+""},kst=Ct.TypeError,yB=Object.defineProperty,Fs={f:$a?yB:function(t,e,n){if(nr(t),e=Ux(e),nr(n),dR)try{return yB(t,e,n)}catch(r){}if("get"in n||"set"in n)throw kst("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Bst=Math.ceil,Tst=Math.floor,Ch=function(t){var e=+t;return e!=e||e===0?0:(e>0?Tst:Bst)(e)},Fst=Math.max,_st=Math.min,K6=function(t,e){var n=Ch(t);return n<0?Fst(n+e,0):_st(n,e)},Pst=Math.min,pR=function(t){return t>0?Pst(Ch(t),9007199254740991):0},Ic=function(t){return pR(t.length)},bB=function(t){return function(e,n,r){var o,i=Nc(e),a=Ic(i),u=K6(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}},hR={includes:bB(!0),indexOf:bB(!1)},Mm={},jst=hR.indexOf,wB=It([].push),gR=function(t,e){var n,r=Nc(t),o=0,i=[];for(n in r)!ln(Mm,n)&&ln(r,n)&&wB(i,n);for(;e.length>o;)ln(r,n=e[o++])&&(~jst(i,n)||wB(i,n));return i},n1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nst=Object.keys||function(t){return gR(t,n1)},Ist=$a?Object.defineProperties:function(t,e){nr(t);for(var n,r=Nc(e),o=Nst(e),i=o.length,a=0;i>a;)Fs.f(t,n=o[a++],r[n]);return t},Lst=Eh("document","documentElement"),EB=Rx("keys"),Vx=function(t){return EB[t]||(EB[t]=Mx(t))},vR=Vx("IE_PROTO"),H2=function(){},mR=function(t){return"<script>"+t+"<\/script>"},CB=function(t){t.write(mR("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ag=function(){try{B0=new ActiveXObject("htmlfile")}catch(r){}var t,e;Ag=typeof document!="undefined"?document.domain&&B0?CB(B0):((e=$x("iframe")).style.display="none",Lst.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(mR("document.F=Object")),t.close(),t.F):CB(B0);for(var n=n1.length;n--;)delete Ag.prototype[n1[n]];return Ag()};Mm[vR]=!0;var Wx=Object.create||function(t,e){var n;return t!==null?(H2.prototype=nr(t),n=new H2,H2.prototype=null,n[vR]=t):n=Ag(),e===void 0?n:Ist(n,e)},Y6=Dn("unscopables"),X6=Array.prototype;X6[Y6]==null&&Fs.f(X6,Y6,{configurable:!0,value:Wx(null)});var _d=function(t){X6[Y6][t]=!0},lc={},Rst=It(Function.toString);Fe(Da.inspectSource)||(Da.inspectSource=function(t){return Rst(t)});var r1,Pd,o1,Gx=Da.inspectSource,xB=Ct.WeakMap,yR=Fe(xB)&&/native code/.test(Gx(xB)),zm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Sa=$a?function(t,e,n){return Fs.f(t,e,zm(1,n))}:function(t,e,n){return t[e]=n,t},Z6=Ct.TypeError,Mst=Ct.WeakMap;if(yR||Da.state){var hu=Da.state||(Da.state=new Mst),zst=It(hu.get),DB=It(hu.has),$st=It(hu.set);r1=function(t,e){if(DB(hu,t))throw new Z6("Object already initialized");return e.facade=t,$st(hu,t,e),e},Pd=function(t){return zst(hu,t)||{}},o1=function(t){return DB(hu,t)}}else{var el=Vx("state");Mm[el]=!0,r1=function(t,e){if(ln(t,el))throw new Z6("Object already initialized");return e.facade=t,Sa(t,el,e),e},Pd=function(t){return ln(t,el)?t[el]:{}},o1=function(t){return ln(t,el)}}var Zu,SB,AB,$o={set:r1,get:Pd,has:o1,enforce:function(t){return o1(t)?Pd(t):r1(t,{})},getterFor:function(t){return function(e){var n;if(!Be(e)||(n=Pd(e)).type!==t)throw Z6("Incompatible receiver, "+t+" required");return n}}},OB={}.propertyIsEnumerable,kB=Object.getOwnPropertyDescriptor,Hst={f:kB&&!OB.call({1:2},1)?function(t){var e=kB(this,t);return!!e&&e.enumerable}:OB},BB=Object.getOwnPropertyDescriptor,bR={f:$a?BB:function(t,e){if(t=Nc(t),e=Ux(e),dR)try{return BB(t,e)}catch(n){}if(ln(t,e))return zm(!sn(Hst.f,t,e),t[e])}},wR=Function.prototype,Ust=$a&&Object.getOwnPropertyDescriptor,U2=ln(wR,"name"),qx={EXISTS:U2,PROPER:U2&&function(){}.name==="something",CONFIGURABLE:U2&&(!$a||$a&&Ust(wR,"name").configurable)},No=Ix(function(t){var e=qx.CONFIGURABLE,n=$o.get,r=$o.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")+"]"),(!ln(u,"name")||e&&u.name!==d)&&Sa(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Ct?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Sa(i,a,u)):f?i[a]=u:Lx(a,u)})(Function.prototype,"toString",function(){return Fe(this)&&n(this).source||Gx(this)})}),Vst=n1.concat("length","prototype"),i1={f:Object.getOwnPropertyNames||function(t){return gR(t,Vst)}},Wst={f:Object.getOwnPropertySymbols},Gst=It([].concat),qst=Eh("Reflect","ownKeys")||function(t){var e=i1.f(nr(t)),n=Wst.f;return n?Gst(e,n(t)):e},Kst=function(t,e){for(var n=qst(e),r=Fs.f,o=bR.f,i=0;i<n.length;i++){var a=n[i];ln(t,a)||r(t,a,o(e,a))}},Yst=/#|\.prototype\./,xh=function(t,e){var n=Zst[Xst(t)];return n==Qst||n!=Jst&&(Fe(e)?Te(e):!!e)},Xst=xh.normalize=function(t){return String(t).replace(Yst,".").toLowerCase()},Zst=xh.data={},Jst=xh.NATIVE="N",Qst=xh.POLYFILL="P",J6=xh,tlt=bR.f,Ha=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Ct:l?Ct[u]||Lx(u,{}):(Ct[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=tlt(n,r))&&a.value:n[r],!J6(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Kst(i,o)}(t.sham||o&&o.sham)&&Sa(i,"sham",!0),No(n,r,i,t)}},elt=!Te(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),TB=Vx("IE_PROTO"),Q6=Ct.Object,nlt=Q6.prototype,a1=elt?Q6.getPrototypeOf:function(t){var e=wh(t);if(ln(e,TB))return e[TB];var n=e.constructor;return Fe(n)&&e instanceof n?n.prototype:e instanceof Q6?nlt:null},t3=Dn("iterator"),ER=!1;[].keys&&("next"in(AB=[].keys())?(SB=a1(a1(AB)))!==Object.prototype&&(Zu=SB):ER=!0);var rlt=Zu==null||Te(function(){var t={};return Zu[t3].call(t)!==t});rlt&&(Zu={}),Fe(Zu[t3])||No(Zu,t3,function(){return this});var Kx={IteratorPrototype:Zu,BUGGY_SAFARI_ITERATORS:ER},olt=Fs.f,FB=Dn("toStringTag"),e3=function(t,e,n){t&&!ln(t=n?t:t.prototype,FB)&&olt(t,FB,{configurable:!0,value:e})},ilt=Kx.IteratorPrototype,alt=function(){return this},ult=Ct.String,slt=Ct.TypeError,u1=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=It(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return nr(r),function(i){if(typeof i=="object"||Fe(i))return i;throw slt("Can't set "+ult(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),llt=qx.PROPER,clt=qx.CONFIGURABLE,_B=Kx.IteratorPrototype,T0=Kx.BUGGY_SAFARI_ITERATORS,Nf=Dn("iterator"),flt=function(){return this},CR=function(t,e,n,r,o,i,a){(function(v,h,b,w){var E=h+" Iterator";v.prototype=Wx(ilt,{next:zm(1,b)}),e3(v,E,!1),lc[E]=alt})(n,e,r);var u,s,l,c=function(v){if(v===o&&g)return g;if(!T0&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Nf]||d["@@iterator"]||o&&d[o],g=!T0&&y||c(o),m=e=="Array"&&d.entries||y;if(m&&(u=a1(m.call(new t)))!==Object.prototype&&u.next&&(a1(u)!==_B&&(u1?u1(u,_B):Fe(u[Nf])||No(u,Nf,flt)),e3(u,f,!0)),llt&&o=="values"&&y&&y.name!=="values"&&(clt?Sa(d,"name","values"):(p=!0,g=function(){return sn(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(T0||p||!(l in d))&&No(d,l,s[l]);else Ha({target:e,proto:!0,forced:T0||p},s);return d[Nf]!==g&&No(d,Nf,g,{name:o}),lc[e]=g,s},dlt=$o.set,plt=$o.getterFor("Array Iterator"),md=CR(Array,"Array",function(t,e){dlt(this,{type:"Array Iterator",target:Nc(t),index:0,kind:e})},function(){var t=plt(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");lc.Arguments=lc.Array,_d("keys"),_d("values"),_d("entries");var xR={};xR[Dn("toStringTag")]="z";var Yx=String(xR)==="[object z]",hlt=Dn("toStringTag"),glt=Ct.Object,vlt=vi(function(){return arguments}())=="Arguments",$m=Yx?vi:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=glt(t),hlt))=="string"?n:vlt?vi(e):(r=vi(e))=="Object"&&Fe(e.callee)?"Arguments":r},mlt=Yx?{}.toString:function(){return"[object "+$m(this)+"]"};Yx||No(Object.prototype,"toString",mlt,{unsafe:!0});var ylt=Ct.String,ai=function(t){if($m(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ylt(t)},blt=It("".charAt),PB=It("".charCodeAt),wlt=It("".slice),jB=function(t){return function(e,n){var r,o,i=ai(Rm(e)),a=Ch(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=PB(i,a))<55296||r>56319||a+1===u||(o=PB(i,a+1))<56320||o>57343?t?blt(i,a):r:t?wlt(i,a,a+2):o-56320+(r-55296<<10)+65536}},DR={codeAt:jB(!1),charAt:jB(!0)},Elt=DR.charAt,Clt=$o.set,xlt=$o.getterFor("String Iterator");CR(String,"String",function(t){Clt(this,{type:"String Iterator",string:ai(t),index:0})},function(){var t,e=xlt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Elt(n,r),e.index+=t.length,{value:t,done:!1})});var n3=function(t,e,n){for(var r in e)No(t,r,e[r],n);return t},Dlt=Ct.Array,Slt=Math.max,NB=i1.f,IB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Alt={f:function(t){return IB&&vi(t)=="Window"?function(e){try{return NB(e)}catch(n){return function(r,o,i){for(var a,u,s,l,c=Ic(r),f=K6(void 0,c),p=K6(c,c),d=Dlt(Slt(p-f,0)),y=0;f<p;f++,y++)a=d,u=y,s=r[f],(l=Ux(u))in a?Fs.f(a,l,zm(0,s)):a[l]=s;return d.length=y,d}(IB)}}(t):NB(Nc(t))}},LB=Te(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),F0=Object.isExtensible,_u=Te(function(){F0(1)})||LB?function(t){return!!Be(t)&&(!LB||vi(t)!="ArrayBuffer")&&(!F0||F0(t))}:F0,Olt=!Te(function(){return Object.isExtensible(Object.preventExtensions({}))}),Xx=Ix(function(t){var e=Fs.f,n=!1,r=Mx("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=i1.f,s=It([].splice),l={};l[r]=1,u(l).length&&(i1.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},Ha({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Alt.f}))},fastKey:function(u,s){if(!Be(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!ln(u,r)){if(!_u(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!ln(u,r)){if(!_u(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Olt&&n&&_u(u)&&!ln(u,r)&&i(u),u}};Mm[r]=!0}),RB=It(It.bind),Zx=function(t,e){return Hx(t),e===void 0?t:RB?RB(t,e):function(){return t.apply(e,arguments)}},klt=Dn("iterator"),Blt=Array.prototype,Tlt=Dn("iterator"),MB=function(t){if(t!=null)return wp(t,Tlt)||wp(t,"@@iterator")||lc[$m(t)]},Flt=Ct.TypeError,zB=function(t,e,n){var r,o;nr(t);try{if(!(r=wp(t,"return"))){if(e==="throw")throw n;return n}r=sn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return nr(r),n},_lt=Ct.TypeError,Og=function(t,e){this.stopped=t,this.result=e},$B=Og.prototype,SR=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),y=!(!n||!n.INTERRUPTED),g=Zx(e,f),m=function(h){return r&&zB(r,"normal",h),new Og(!0,h)},v=function(h){return p?(nr(h),y?g(h[0],h[1],m):g(h[0],h[1])):y?g(h,m):g(h)};if(d)r=t;else{if(!(o=MB(t)))throw _lt(q6(t)+" is not iterable");if((c=o)!==void 0&&(lc.Array===c||Blt[klt]===c)){for(i=0,a=Ic(t);a>i;i++)if((u=v(t[i]))&&e1($B,u))return u;return new Og(!1)}r=function(h,b){var w=arguments.length<2?MB(h):b;if(Hx(w))return nr(sn(w,h));throw Flt(q6(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=sn(s,r)).done;){try{u=v(l.value)}catch(h){zB(r,"throw",h)}if(typeof u=="object"&&u&&e1($B,u))return u}return new Og(!1)},Plt=Ct.TypeError,AR=function(t,e){if(e1(e,t))return t;throw Plt("Incorrect invocation")},OR=Dn("iterator"),kR=!1;try{var jlt=0,HB={next:function(){return{done:!!jlt++}},return:function(){kR=!0}};HB[OR]=function(){return this},Array.from(HB,function(){throw 2})}catch(t){}var r3=Array.isArray||function(t){return vi(t)=="Array"},BR=function(){},Nlt=[],TR=Eh("Reflect","construct"),Jx=/^\s*(?:class|function)\b/,Ilt=It(Jx.exec),Llt=!Jx.exec(BR),If=function(t){if(!Fe(t))return!1;try{return TR(BR,Nlt,t),!0}catch(e){return!1}},Rlt=!TR||Te(function(){var t;return If(If.call)||!If(Object)||!If(function(){t=!0})||t})?function(t){if(!Fe(t))return!1;switch($m(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Llt||!!Ilt(Jx,Gx(t))}:If,Mlt=Dn("species"),UB=Ct.Array,FR=function(t,e){return new(function(n){var r;return r3(n)&&(r=n.constructor,(Rlt(r)&&(r===UB||r3(r.prototype))||Be(r)&&(r=r[Mlt])===null)&&(r=void 0)),r===void 0?UB:r}(t))(e===0?0:e)},VB=It([].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,y=wh(s),g=fR(y),m=Zx(l,c),v=Ic(g),h=0,b=f||FR,w=e?b(s,v):n||a?b(s,0):void 0;v>h;h++)if((u||h in g)&&(d=m(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:VB(w,p)}else switch(t){case 4:return!1;case 7:VB(w,p)}return i?-1:r||o?o:w}},Qx={forEach:qi(0),map:qi(1),filter:qi(2),some:qi(3),every:qi(4),find:qi(5),findIndex:qi(6),filterReject:qi(7)},_0=Xx.getWeakData,zlt=$o.set,$lt=$o.getterFor,Hlt=Qx.find,Ult=Qx.findIndex,Vlt=It([].splice),Wlt=0,P0=function(t){return t.frozen||(t.frozen=new _R)},_R=function(){this.entries=[]},V2=function(t,e){return Hlt(t.entries,function(n){return n[0]===e})};_R.prototype={get:function(t){var e=V2(this,t);if(e)return e[1]},has:function(t){return!!V2(this,t)},set:function(t,e){var n=V2(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Ult(this.entries,function(n){return n[0]===t});return~e&&Vlt(this.entries,e,1),!!~e}};var Lf,PR={getConstructor:function(t,e,n,r){var o=t(function(s,l){AR(s,i),zlt(s,{type:e,id:Wlt++,frozen:void 0}),l!=null&&SR(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=$lt(e),u=function(s,l,c){var f=a(s),p=_0(nr(l),!0);return p===!0?P0(f).set(l,c):p[f.id]=c,s};return n3(i,{delete:function(s){var l=a(this);if(!Be(s))return!1;var c=_0(s);return c===!0?P0(l).delete(s):c&&ln(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Be(s))return!1;var c=_0(s);return c===!0?P0(l).has(s):c&&ln(c,l.id)}}),n3(i,n?{get:function(s){var l=a(this);if(Be(s)){var c=_0(s);return c===!0?P0(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}},j0=$o.enforce,Glt=!Ct.ActiveXObject&&"ActiveXObject"in Ct,jR=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},qlt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=Ct[t],u=a&&a.prototype,s=a,l={},c=function(m){var v=It(u[m]);No(u,m,m=="add"?function(h){return v(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!Be(h))&&v(this,h===0?0:h)}:m=="get"?function(h){return o&&!Be(h)?void 0:v(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!Be(h))&&v(this,h===0?0:h)}:function(h,b){return v(this,h===0?0:h,b),this})};if(J6(t,!Fe(a)||!(o||u.forEach&&!Te(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),Xx.enable();else if(J6(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Te(function(){f.has(1)}),y=function(m,v){if(!kR)return!1;var h=!1;try{var b={};b[OR]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch(w){}return h}(),g=!o&&Te(function(){for(var m=new a,v=5;v--;)m[i](v,v);return!m.has(-0)});y||((s=e(function(m,v){AR(m,u);var h=function(b,w,E){var D,x;return u1&&Fe(D=w.constructor)&&D!==E&&Be(x=D.prototype)&&x!==E.prototype&&u1(b,x),b}(new a,m,s);return v!=null&&SR(v,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Ha({global:!0,forced:s!=a},l),e3(s,t),o||n.setStrong(s,t,r),s}("WeakMap",jR,PR);if(yR&&Glt){Lf=PR.getConstructor(jR,"WeakMap",!0),Xx.enable();var Rf=qlt.prototype,WB=It(Rf.delete),N0=It(Rf.has),GB=It(Rf.get),qB=It(Rf.set);n3(Rf,{delete:function(t){if(Be(t)&&!_u(t)){var e=j0(this);return e.frozen||(e.frozen=new Lf),WB(this,t)||e.frozen.delete(t)}return WB(this,t)},has:function(t){if(Be(t)&&!_u(t)){var e=j0(this);return e.frozen||(e.frozen=new Lf),N0(this,t)||e.frozen.has(t)}return N0(this,t)},get:function(t){if(Be(t)&&!_u(t)){var e=j0(this);return e.frozen||(e.frozen=new Lf),N0(this,t)?GB(this,t):e.frozen.get(t)}return GB(this,t)},set:function(t,e){if(Be(t)&&!_u(t)){var n=j0(this);n.frozen||(n.frozen=new Lf),N0(this,t)?qB(this,t,e):n.frozen.set(t,e)}else qB(this,t,e);return this}})}var NR={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},W2=$x("span").classList,KB=W2&&W2.constructor&&W2.constructor.prototype,Klt=KB===Object.prototype?void 0:KB,G2=Dn("iterator"),YB=Dn("toStringTag"),q2=md.values,IR=function(t,e){if(t){if(t[G2]!==q2)try{Sa(t,G2,q2)}catch(r){t[G2]=q2}if(t[YB]||Sa(t,YB,e),NR[e]){for(var n in md)if(t[n]!==md[n])try{Sa(t,n,md[n])}catch(r){t[n]=md[n]}}}};for(var K2 in NR)IR(Ct[K2]&&Ct[K2].prototype,K2);IR(Klt,"DOMTokenList");var o3=new WeakMap,Ylt={type:"list-item",renderElem:function(t,e,n){o3.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,y=d.type,g=d.level,m=g===void 0?0:g,v=d.ordered,h=v!==void 0&&v;if(!h)return-1;var b=1,w=p,E=A.findPath(f,w);if(E[0]===0)return 1;for(;E[0]>0;){var D=j.previous(E),x=C.node(f,D);if(x==null)break;var O=x[0],F=O.level,R=F===void 0?0:F,U=O.type,M=O.ordered;if(U!==y||R<m)break;if(R===m){if(M!==h)break;b++}w=O,E=D}return b}(n,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var p="";switch(f){case 0:p="\u2022";break;case 1:p="\u25E6";break;default:p="\u25AA"}return p}(i);var c=function(f){var p,d=f.children||[],y=d.length;if(y===0)return"";for(var g=0;g<y&&!p;g++){var m=d[g];at.isText(m)&&(p=m)}return p==null?"":p.color||""}(t);return Et("div",{style:u},Et("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Et("span",null,e))}},i3=function(t,e){return i3=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])},i3(t,e);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function LR(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}i3(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function XB(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 jd(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 ZB(t){return C.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var Xlt=hR.includes;Ha({target:"Array",proto:!0},{includes:function(t){return Xlt(this,t,arguments.length>1?arguments[1]:void 0)}}),_d("includes");var JB,Y2,Zlt=function(){var t=nr(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},tD=Ct.RegExp,a3=Te(function(){var t=tD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Jlt=a3||Te(function(){return!tD("a","y").sticky}),Qlt={BROKEN_CARET:a3||Te(function(){var t=tD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Jlt,UNSUPPORTED_Y:a3},tct=Ct.RegExp,ect=Te(function(){var t=tct(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),nct=Ct.RegExp,rct=Te(function(){var t=nct("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),oct=$o.get,ict=Rx("native-string-replace",String.prototype.replace),s1=RegExp.prototype.exec,u3=s1,act=It("".charAt),uct=It("".indexOf),sct=It("".replace),X2=It("".slice),Z2=(Y2=/b*/g,sn(s1,JB=/a/,"a"),sn(s1,Y2,"a"),JB.lastIndex!==0||Y2.lastIndex!==0),QB=Qlt.BROKEN_CARET,J2=/()??/.exec("")[1]!==void 0;(Z2||J2||QB||ect||rct)&&(u3=function(t){var e,n,r,o,i,a,u,s=this,l=oct(s),c=ai(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=sn(u3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=QB&&s.sticky,y=sn(Zlt,s),g=s.source,m=0,v=c;if(d&&(y=sct(y,"y",""),uct(y,"g")===-1&&(y+="g"),v=X2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&act(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",y)),J2&&(n=new RegExp("^"+g+"$(?!\\s)",y)),Z2&&(r=s.lastIndex),o=sn(s1,d?n:s,v),d?o?(o.input=X2(o.input,m),o[0]=X2(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Z2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),J2&&o&&o.length>1&&sn(ict,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=Wx(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var l1=u3;Ha({target:"RegExp",proto:!0,forced:/./.exec!==l1},{exec:l1});var RR=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var n=this.type;return A.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||!!A.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)?N.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):N.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),lct='<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>',cct='<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>',fct=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=nt("listModule.unOrderedList"),n.iconSvg=lct,n}return LR(e,t),e}(RR),dct=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=nt("listModule.orderedList"),n.iconSvg=cct,n}return LR(e,t),e}(RR),pct={key:"bulletedList",factory:function(){return new fct}},hct={key:"numberedList",factory:function(){return new dct}},tT=[],gct={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=o3.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,m=g===void 0?0:g,v=A.findPath(c,l);if(v[0]===0)return m+1;var h=j.previous(v),b=C.node(c,h);if(!b)return 0;var w=jd(b,1)[0];if(A.getNodeType(w)!==p)return m+1;var E=w,D=E.ordered,x=D!==void 0&&D,O=E.level,F=O===void 0?0:O;return F<m?m-F:F>m?0:F===m?x===y?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",tT.push(i);var s=function(l){var c=o3.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,m=g===void 0?0:g,v=A.findPath(c,l);if(v[0]===c.children.length-1)return m+1;var h=j.next(v),b=C.node(c,h);if(!b)return 0;var w=jd(b,1)[0];if(A.getNodeType(w)!==p)return m+1;var E=w,D=E.ordered,x=D!==void 0&&D,O=E.level,F=O===void 0?0:O;return F<m?m-F:F>m?0:F===m?x===y?0:1:0}(t);if(s>0)for(u=0;u<s;u++)r+="</"+tT.pop()+">";return{html:"<li>"+e+"</li>",prefix:n,suffix:r}}},vct=Dn("species"),mct=Qx.filter,yct=V6>=51||!Te(function(){var t=[];return(t.constructor={})[vct]=function(){return{foo:1}},t.filter(Boolean).foo!==1});Ha({target:"Array",proto:!0,forced:!yct},{filter:function(t){return mct(this,t,arguments.length>1?arguments[1]:void 0)}});var eD=Function.prototype,eT=eD.apply,bct=eD.bind,nT=eD.call,wct=typeof Reflect=="object"&&Reflect.apply||(bct?nT.bind(eT):function(){return nT.apply(eT,arguments)}),rT=(Dn("species"),RegExp.prototype),Ect=DR.charAt,Cct=function(t,e,n){return e+(n?Ect(t,e).length:1)},xct=Math.floor,Q2=It("".charAt),Dct=It("".replace),tw=It("".slice),Sct=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Act=/\$([$&'`]|\d{1,2})/g,Oct=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Act;return o!==void 0&&(o=wh(o),s=Sct),Dct(i,s,function(l,c){var f;switch(Q2(c,0)){case"$":return"$";case"&":return t;case"`":return tw(e,0,n);case"'":return tw(e,a);case"<":f=o[tw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=xct(p/10);return d===0?l:d<=u?r[d-1]===void 0?Q2(c,1):r[d-1]+Q2(c,1):l}f=r[p-1]}return f===void 0?"":f})},kct=Ct.TypeError,Bct=function(t,e){var n=t.exec;if(Fe(n)){var r=sn(n,t,e);return r!==null&&nr(r),r}if(vi(t)==="RegExp")return sn(l1,t,e);throw kct("RegExp#exec called on incompatible receiver")},s3=Dn("replace"),Tct=Math.max,Fct=Math.min,_ct=It([].concat),ew=It([].push),oT=It("".indexOf),iT=It("".slice),Pct="a".replace(/./,"$0")==="$0",aT=!!/./[s3]&&/./[s3]("a","$0")==="";(function(t,e,n,r){var o=Dn(t),i=!Te(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Te(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=It(/./[o]),s=function(l,c,f){var p=aT?"$":"$0";return[function(d,y){var g=Rm(this),m=d==null?void 0:wp(d,s3);return m?sn(m,d,g,y):sn(c,ai(g),d,y)},function(d,y){var g=nr(this),m=ai(d);if(typeof y=="string"&&oT(y,p)===-1&&oT(y,"$<")===-1){var v=f(c,g,m,y);if(v.done)return v.value}var h=Fe(y);h||(y=ai(y));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var E=[];;){var D=Bct(g,m);if(D===null||(ew(E,D),!b))break;ai(D[0])===""&&(g.lastIndex=Cct(m,pR(g.lastIndex),w))}for(var x,O="",F=0,R=0;R<E.length;R++){for(var U=ai((D=E[R])[0]),M=Tct(Fct(Ch(D.index),m.length),0),Y=[],W=1;W<D.length;W++)ew(Y,(x=D[W])===void 0?x:String(x));var G=D.groups;if(h){var K=_ct([U],Y,M,m);G!==void 0&&ew(K,G);var ot=ai(wct(y,void 0,K))}else ot=Oct(U,m,M,Y,G,y);M>=F&&(O+=iT(m,F,M)+ot,F=M+U.length)}return O+iT(m,F)}]}(0,""[t],function(l,c,f,p,d){var y=It(l),g=c.exec;return g===l1||g===rT.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});No(String.prototype,t,s[0]),No(rT,o,s[1])}})("replace",0,!!Te(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Pct||aT);var jct=Ct.TypeError,MR=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&Zx(a,u);f<r;){if(f in n){if(s=p?p(n[f],f,e):n[f],i>0&&r3(s))l=Ic(s),c=MR(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw jct("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Nct=MR;function nw(t){return t.length?t[0].tagName.toLowerCase():""}Ha({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=wh(this),n=Ic(e),r=FR(e,0);return r.length=Nct(r,e,e,n,0,t===void 0?1:Ch(t)),r}}),_d("flat"),Ha({global:!0},{globalThis:Ct}),Mr&&(B.fn.append=Mr),Rr&&(B.fn.attr=Rr),Yl&&(B.fn.parent=Yl);var Ict={renderElems:[Ylt],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(L.isExpanded(a))e(i);else{var u=A.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?N.setNodes(o,{level:l-1}):N.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(L.isCollapsed(l)){var c=A.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 N.setNodes(o,{level:p+1})}}if(L.isExpanded(l)){var d=0,y=!1;try{for(var g=XB(ZB(o)),m=g.next();!m.done;m=g.next()){var v=jd(m.value,1)[0];A.getNodeType(v)==="list-item"?d++:y=!0}}catch(x){i={error:x}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}if(y||d<=1)return void n();try{for(var h=XB(ZB(o)),b=h.next();!b.done;b=h.next()){var w=jd(b.value,2),E=(v=w[0],w[1]),D=v.level;p=D===void 0?0:D,N.setNodes(o,{level:p+1},{at:E})}}catch(x){u={error:x}}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=jd(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[pct,hct],elemsToHtml:[gct],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!!at.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return nw(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=nw(s);l==="ul"||l==="ol";)l=nw(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},zR=ws(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]",y="[object RegExp]",g="[object Set]",m="[object String]",v="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[b]=x[a]=x[w]=x[u]=x[s]=x[l]=x[c]=x[f]=x[p]=x[y]=x[g]=x[m]=x[h]=!1;var O=typeof fe=="object"&&fe&&fe.Object===Object&&fe,F=typeof self=="object"&&self&&self.Object===Object&&self,R=O||F||Function("return this")(),U=e&&!e.nodeType&&e,M=U&&t&&!t.nodeType&&t,Y=M&&M.exports===U,W=Y&&O.process,G=function(){try{return W&&W.binding&&W.binding("util")}catch(_){}}(),K=G&&G.isTypedArray;function ot(_,I){for(var Q=-1,vt=_==null?0:_.length;++Q<vt;)if(I(_[Q],Q,_))return!0;return!1}function ft(_){var I=-1,Q=Array(_.size);return _.forEach(function(vt,oe){Q[++I]=[oe,vt]}),Q}function ct(_){var I=-1,Q=Array(_.size);return _.forEach(function(vt){Q[++I]=vt}),Q}var st=Array.prototype,k=Function.prototype,S=Object.prototype,P=R["__core-js_shared__"],H=k.toString,X=S.hasOwnProperty,V=function(){var _=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),ut=S.toString,mt=RegExp("^"+H.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=Y?R.Buffer:void 0,Dt=R.Symbol,q=R.Uint8Array,Rt=S.propertyIsEnumerable,kt=st.splice,ht=Dt?Dt.toStringTag:void 0,Bt=Object.getOwnPropertySymbols,_e=yt?yt.isBuffer:void 0,Ut=function(_,I){return function(Q){return _(I(Q))}}(Object.keys,Object),re=Oi(R,"DataView"),we=Oi(R,"Map"),Sn=Oi(R,"Promise"),Ht=Oi(R,"Set"),Un=Oi(R,"WeakMap"),Vr=Oi(Object,"create"),go=Zo(re),_s=Zo(we),nu=Zo(Sn),Wr=Zo(Ht),vo=Zo(Un),Ko=Dt?Dt.prototype:void 0,An=Ko?Ko.valueOf:void 0;function On(_){var I=-1,Q=_==null?0:_.length;for(this.clear();++I<Q;){var vt=_[I];this.set(vt[0],vt[1])}}function kn(_){var I=-1,Q=_==null?0:_.length;for(this.clear();++I<Q;){var vt=_[I];this.set(vt[0],vt[1])}}function Ln(_){var I=-1,Q=_==null?0:_.length;for(this.clear();++I<Q;){var vt=_[I];this.set(vt[0],vt[1])}}function cn(_){var I=-1,Q=_==null?0:_.length;for(this.__data__=new Ln;++I<Q;)this.add(_[I])}function Cr(_){var I=this.__data__=new kn(_);this.size=I.size}function Rc(_,I){var Q=Jo(_),vt=!Q&&Lh(_),oe=!Q&&!vt&&mo(_),Nt=!Q&&!vt&&!oe&&bo(_),T=Q||vt||oe||Nt,z=T?function($t,ve){for(var ie=-1,Kt=Array($t);++ie<$t;)Kt[ie]=ve(ie);return Kt}(_.length,String):[],tt=z.length;for(var lt in _)!I&&!X.call(_,lt)||T&&(lt=="length"||oe&&(lt=="offset"||lt=="parent")||Nt&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||Mc(lt,tt))||z.push(lt);return z}function Ai(_,I){for(var Q=_.length;Q--;)if(Ns(_[Q][0],I))return Q;return-1}function Yo(_){return _==null?_===void 0?"[object Undefined]":"[object Null]":ht&&ht in Object(_)?function(I){var Q=X.call(I,ht),vt=I[ht];try{I[ht]=void 0;var oe=!0}catch(T){}var Nt=ut.call(I);return oe&&(Q?I[ht]=vt:delete I[ht]),Nt}(_):function(I){return ut.call(I)}(_)}function Ps(_){return ki(_)&&Yo(_)==o}function ru(_,I,Q,vt,oe){return _===I||(_==null||I==null||!ki(_)&&!ki(I)?_!=_&&I!=I:function(Nt,T,z,tt,lt,$t){var ve=Jo(Nt),ie=Jo(T),Kt=ve?i:rr(Nt),nn=ie?i:rr(T),Bn=(Kt=Kt==o?p:Kt)==p,ou=(nn=nn==o?p:nn)==p,Qo=Kt==nn;if(Qo&&mo(Nt)){if(!mo(T))return!1;ve=!0,Bn=!1}if(Qo&&!Bn)return $t||($t=new Cr),ve||bo(Nt)?xr(Nt,T,z,tt,lt,$t):function(Mt,Yt,Xt,Pe,Rn,Vn,Kr){switch(Xt){case w:if(Mt.byteLength!=Yt.byteLength||Mt.byteOffset!=Yt.byteOffset)return!1;Mt=Mt.buffer,Yt=Yt.buffer;case b:return!(Mt.byteLength!=Yt.byteLength||!Vn(new q(Mt),new q(Yt)));case a:case u:case f:return Ns(+Mt,+Yt);case s:return Mt.name==Yt.name&&Mt.message==Yt.message;case y:case m:return Mt==Yt+"";case c:var Ti=ft;case g:var $c=1&Pe;if(Ti||(Ti=ct),Mt.size!=Yt.size&&!$c)return!1;var zh=Kr.get(Mt);if(zh)return zh==Yt;Pe|=2,Kr.set(Mt,Yt);var Is=xr(Ti(Mt),Ti(Yt),Pe,Rn,Vn,Kr);return Kr.delete(Mt),Is;case v:if(An)return An.call(Mt)==An.call(Yt)}return!1}(Nt,T,Kt,z,tt,lt,$t);if(!(1&z)){var Bi=Bn&&X.call(Nt,"__wrapped__"),wt=ou&&X.call(T,"__wrapped__");if(Bi||wt){var Qt=Bi?Nt.value():Nt,Le=wt?T.value():T;return $t||($t=new Cr),lt(Qt,Le,z,tt,$t)}}return Qo?($t||($t=new Cr),function(Mt,Yt,Xt,Pe,Rn,Vn){var Kr=1&Xt,Ti=Xo(Mt),$c=Ti.length,zh=Xo(Yt).length;if($c!=zh&&!Kr)return!1;for(var Is=$c;Is--;){var iu=Ti[Is];if(!(Kr?iu in Yt:X.call(Yt,iu)))return!1}var NS=Vn.get(Mt);if(NS&&Vn.get(Yt))return NS==Yt;var $h=!0;Vn.set(Mt,Yt),Vn.set(Yt,Mt);for(var uy=Kr;++Is<$c;){var Hh=Mt[iu=Ti[Is]],Uh=Yt[iu];if(Pe)var IS=Kr?Pe(Uh,Hh,iu,Yt,Mt,Vn):Pe(Hh,Uh,iu,Mt,Yt,Vn);if(!(IS===void 0?Hh===Uh||Rn(Hh,Uh,Xt,Pe,Vn):IS)){$h=!1;break}uy||(uy=iu=="constructor")}if($h&&!uy){var Vh=Mt.constructor,Wh=Yt.constructor;Vh==Wh||!("constructor"in Mt)||!("constructor"in Yt)||typeof Vh=="function"&&Vh instanceof Vh&&typeof Wh=="function"&&Wh instanceof Wh||($h=!1)}return Vn.delete(Mt),Vn.delete(Yt),$h}(Nt,T,z,tt,lt,$t)):!1}(_,I,Q,vt,ru,oe))}function js(_){return!(!Rh(_)||function(I){return!!V&&V in I}(_))&&(zc(_)?mt:E).test(Zo(_))}function Gr(_){if(Q=(I=_)&&I.constructor,vt=typeof Q=="function"&&Q.prototype||S,I!==vt)return Ut(_);var I,Q,vt,oe=[];for(var Nt in Object(_))X.call(_,Nt)&&Nt!="constructor"&&oe.push(Nt);return oe}function xr(_,I,Q,vt,oe,Nt){var T=1&Q,z=_.length,tt=I.length;if(z!=tt&&!(T&&tt>z))return!1;var lt=Nt.get(_);if(lt&&Nt.get(I))return lt==I;var $t=-1,ve=!0,ie=2&Q?new cn:void 0;for(Nt.set(_,I),Nt.set(I,_);++$t<z;){var Kt=_[$t],nn=I[$t];if(vt)var Bn=T?vt(nn,Kt,$t,I,_,Nt):vt(Kt,nn,$t,_,I,Nt);if(Bn!==void 0){if(Bn)continue;ve=!1;break}if(ie){if(!ot(I,function(ou,Qo){if(Bi=Qo,!ie.has(Bi)&&(Kt===ou||oe(Kt,ou,Q,vt,Nt)))return ie.push(Qo);var Bi})){ve=!1;break}}else if(Kt!==nn&&!oe(Kt,nn,Q,vt,Nt)){ve=!1;break}}return Nt.delete(_),Nt.delete(I),ve}function Xo(_){return function(I,Q,vt){var oe=Q(I);return Jo(I)?oe:function(Nt,T){for(var z=-1,tt=T.length,lt=Nt.length;++z<tt;)Nt[lt+z]=T[z];return Nt}(oe,vt(I))}(_,Mh,Ih)}function qr(_,I){var Q,vt,oe=_.__data__;return((vt=typeof(Q=I))=="string"||vt=="number"||vt=="symbol"||vt=="boolean"?Q!=="__proto__":Q===null)?oe[typeof I=="string"?"string":"hash"]:oe.map}function Oi(_,I){var Q=function(vt,oe){return vt==null?void 0:vt[oe]}(_,I);return js(Q)?Q:void 0}On.prototype.clear=function(){this.__data__=Vr?Vr(null):{},this.size=0},On.prototype.delete=function(_){var I=this.has(_)&&delete this.__data__[_];return this.size-=I?1:0,I},On.prototype.get=function(_){var I=this.__data__;if(Vr){var Q=I[_];return Q===n?void 0:Q}return X.call(I,_)?I[_]:void 0},On.prototype.has=function(_){var I=this.__data__;return Vr?I[_]!==void 0:X.call(I,_)},On.prototype.set=function(_,I){var Q=this.__data__;return this.size+=this.has(_)?0:1,Q[_]=Vr&&I===void 0?n:I,this},kn.prototype.clear=function(){this.__data__=[],this.size=0},kn.prototype.delete=function(_){var I=this.__data__,Q=Ai(I,_);return!(Q<0)&&(Q==I.length-1?I.pop():kt.call(I,Q,1),--this.size,!0)},kn.prototype.get=function(_){var I=this.__data__,Q=Ai(I,_);return Q<0?void 0:I[Q][1]},kn.prototype.has=function(_){return Ai(this.__data__,_)>-1},kn.prototype.set=function(_,I){var Q=this.__data__,vt=Ai(Q,_);return vt<0?(++this.size,Q.push([_,I])):Q[vt][1]=I,this},Ln.prototype.clear=function(){this.size=0,this.__data__={hash:new On,map:new(we||kn),string:new On}},Ln.prototype.delete=function(_){var I=qr(this,_).delete(_);return this.size-=I?1:0,I},Ln.prototype.get=function(_){return qr(this,_).get(_)},Ln.prototype.has=function(_){return qr(this,_).has(_)},Ln.prototype.set=function(_,I){var Q=qr(this,_),vt=Q.size;return Q.set(_,I),this.size+=Q.size==vt?0:1,this},cn.prototype.add=cn.prototype.push=function(_){return this.__data__.set(_,n),this},cn.prototype.has=function(_){return this.__data__.has(_)},Cr.prototype.clear=function(){this.__data__=new kn,this.size=0},Cr.prototype.delete=function(_){var I=this.__data__,Q=I.delete(_);return this.size=I.size,Q},Cr.prototype.get=function(_){return this.__data__.get(_)},Cr.prototype.has=function(_){return this.__data__.has(_)},Cr.prototype.set=function(_,I){var Q=this.__data__;if(Q instanceof kn){var vt=Q.__data__;if(!we||vt.length<199)return vt.push([_,I]),this.size=++Q.size,this;Q=this.__data__=new Ln(vt)}return Q.set(_,I),this.size=Q.size,this};var Ih=Bt?function(_){return _==null?[]:(_=Object(_),function(I,Q){for(var vt=-1,oe=I==null?0:I.length,Nt=0,T=[];++vt<oe;){var z=I[vt];Q(z,vt,I)&&(T[Nt++]=z)}return T}(Bt(_),function(I){return Rt.call(_,I)}))}:function(){return[]},rr=Yo;function Mc(_,I){return!!(I=I==null?r:I)&&(typeof _=="number"||D.test(_))&&_>-1&&_%1==0&&_<I}function Zo(_){if(_!=null){try{return H.call(_)}catch(I){}try{return _+""}catch(I){}}return""}function Ns(_,I){return _===I||_!=_&&I!=I}(re&&rr(new re(new ArrayBuffer(1)))!=w||we&&rr(new we)!=c||Sn&&rr(Sn.resolve())!=d||Ht&&rr(new Ht)!=g||Un&&rr(new Un)!=h)&&(rr=function(_){var I=Yo(_),Q=I==p?_.constructor:void 0,vt=Q?Zo(Q):"";if(vt)switch(vt){case go:return w;case _s:return c;case nu:return d;case Wr:return g;case vo:return h}return I});var Lh=Ps(function(){return arguments}())?Ps:function(_){return ki(_)&&X.call(_,"callee")&&!Rt.call(_,"callee")},Jo=Array.isArray,mo=_e||function(){return!1};function zc(_){if(!Rh(_))return!1;var I=Yo(_);return I==l||I=="[object GeneratorFunction]"||I=="[object AsyncFunction]"||I=="[object Proxy]"}function yo(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=r}function Rh(_){var I=typeof _;return _!=null&&(I=="object"||I=="function")}function ki(_){return _!=null&&typeof _=="object"}var bo=K?function(_){return function(I){return _(I)}}(K):function(_){return ki(_)&&yo(_.length)&&!!x[Yo(_)]};function Mh(_){return(I=_)!=null&&yo(I.length)&&!zc(I)?Rc(_):Gr(_);var I}t.exports=function(_,I){return ru(_,I)}});er("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"}}),er("zh-CN",{tableModule:{deleteCol:"\u5220\u9664\u5217",deleteRow:"\u5220\u9664\u884C",deleteTable:"\u5220\u9664\u8868\u683C",widthAuto:"\u5BBD\u5EA6\u81EA\u9002\u5E94",insertCol:"\u63D2\u5165\u5217",insertRow:"\u63D2\u5165\u884C",insertTable:"\u63D2\u5165\u8868\u683C",header:"\u8868\u5934"}});var uT=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function $R(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ki,kg,I0=function(t){return t&&t.Math==Math&&t},jt=I0(typeof globalThis=="object"&&globalThis)||I0(typeof window=="object"&&window)||I0(typeof self=="object"&&self)||I0(typeof uT=="object"&&uT)||function(){return this}()||Function("return this")(),tn=function(t){try{return!!t()}catch(e){return!0}},Ua=!tn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Mf=Function.prototype.call,Xe=Mf.bind?Mf.bind(Mf):function(){return Mf.apply(Mf,arguments)},sT={}.propertyIsEnumerable,lT=Object.getOwnPropertyDescriptor,Lct={f:lT&&!sT.call({1:2},1)?function(t){var e=lT(this,t);return!!e&&e.enumerable}:sT},nD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},HR=Function.prototype,l3=HR.bind,c3=HR.call,Rct=l3&&l3.bind(c3),zt=l3?function(t){return t&&Rct(c3,t)}:function(t){return t&&function(){return c3.apply(t,arguments)}},Mct=zt({}.toString),zct=zt("".slice),Aa=function(t){return zct(Mct(t),8,-1)},rw=jt.Object,$ct=zt("".split),UR=tn(function(){return!rw("z").propertyIsEnumerable(0)})?function(t){return Aa(t)=="String"?$ct(t,""):rw(t)}:rw,Hct=jt.TypeError,Va=function(t){if(t==null)throw Hct("Can't call method on "+t);return t},Dh=function(t){return UR(Va(t))},xn=function(t){return typeof t=="function"},Pr=function(t){return typeof t=="object"?t!==null:xn(t)},Uct=function(t){return xn(t)?t:void 0},Sh=function(t,e){return arguments.length<2?Uct(jt[t]):jt[t]&&jt[t][e]},VR=zt({}.isPrototypeOf),ow=Sh("navigator","userAgent")||"",cT=jt.process,fT=jt.Deno,dT=cT&&cT.versions||fT&&fT.version,pT=dT&&dT.v8;pT&&(kg=(Ki=pT.split("."))[0]>0&&Ki[0]<4?1:+(Ki[0]+Ki[1])),!kg&&ow&&(!(Ki=ow.match(/Edge\/(\d+)/))||Ki[1]>=74)&&(Ki=ow.match(/Chrome\/(\d+)/))&&(kg=+Ki[1]);var f3=kg,d3=!!Object.getOwnPropertySymbols&&!tn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&f3&&f3<41}),rD=d3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Vct=jt.Object,iw=rD?function(t){return typeof t=="symbol"}:function(t){var e=Sh("Symbol");return xn(e)&&VR(e.prototype,Vct(t))},Wct=jt.String,WR=function(t){try{return Wct(t)}catch(e){return"Object"}},Gct=jt.TypeError,GR=function(t){if(xn(t))return t;throw Gct(WR(t)+" is not a function")},oD=function(t,e){var n=t[e];return n==null?void 0:GR(n)},qct=jt.TypeError,Kct=Object.defineProperty,iD=function(t,e){try{Kct(jt,t,{value:e,configurable:!0,writable:!0})}catch(n){jt[t]=e}return e},Oa=jt["__core-js_shared__"]||iD("__core-js_shared__",{}),aD=$R(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:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Yct=jt.Object,uD=function(t){return Yct(Va(t))},Xct=zt({}.hasOwnProperty),Nr=Object.hasOwn||function(t,e){return Xct(uD(t),e)},Zct=0,Jct=Math.random(),Qct=zt(1 .toString),qR=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Qct(++Zct+Jct,36)},zf=aD("wks"),Ju=jt.Symbol,hT=Ju&&Ju.for,tft=rD?Ju:Ju&&Ju.withoutSetter||qR,Ur=function(t){if(!Nr(zf,t)||!d3&&typeof zf[t]!="string"){var e="Symbol."+t;d3&&Nr(Ju,t)?zf[t]=Ju[t]:zf[t]=rD&&hT?hT(e):tft(e)}return zf[t]},eft=jt.TypeError,nft=Ur("toPrimitive"),sD=function(t){var e=function(n,r){if(!Pr(n)||iw(n))return n;var o,i=oD(n,nft);if(i){if(r===void 0&&(r="default"),o=Xe(i,n,r),!Pr(o)||iw(o))return o;throw eft("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)&&!Pr(l=Xe(s,a))||xn(s=a.valueOf)&&!Pr(l=Xe(s,a))||u!=="string"&&xn(s=a.toString)&&!Pr(l=Xe(s,a)))return l;throw qct("Can't convert object to primitive value")}(n,r)}(t,"string");return iw(e)?e:e+""},p3=jt.document,rft=Pr(p3)&&Pr(p3.createElement),lD=function(t){return rft?p3.createElement(t):{}},KR=!Ua&&!tn(function(){return Object.defineProperty(lD("div"),"a",{get:function(){return 7}}).a!=7}),gT=Object.getOwnPropertyDescriptor,YR={f:Ua?gT:function(t,e){if(t=Dh(t),e=sD(e),KR)try{return gT(t,e)}catch(n){}if(Nr(t,e))return nD(!Xe(Lct.f,t,e),t[e])}},oft=jt.String,ift=jt.TypeError,Ir=function(t){if(Pr(t))return t;throw ift(oft(t)+" is not an object")},aft=jt.TypeError,vT=Object.defineProperty,Ah={f:Ua?vT:function(t,e,n){if(Ir(t),e=sD(e),Ir(n),KR)try{return vT(t,e,n)}catch(r){}if("get"in n||"set"in n)throw aft("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},cc=Ua?function(t,e,n){return Ah.f(t,e,nD(1,n))}:function(t,e,n){return t[e]=n,t},uft=zt(Function.toString);xn(Oa.inspectSource)||(Oa.inspectSource=function(t){return uft(t)});var c1,Nd,f1,cD=Oa.inspectSource,mT=jt.WeakMap,sft=xn(mT)&&/native code/.test(cD(mT)),yT=aD("keys"),XR=function(t){return yT[t]||(yT[t]=qR(t))},fD={},h3=jt.TypeError,lft=jt.WeakMap;if(sft||Oa.state){var gu=Oa.state||(Oa.state=new lft),cft=zt(gu.get),bT=zt(gu.has),fft=zt(gu.set);c1=function(t,e){if(bT(gu,t))throw new h3("Object already initialized");return e.facade=t,fft(gu,t,e),e},Nd=function(t){return cft(gu,t)||{}},f1=function(t){return bT(gu,t)}}else{var nl=XR("state");fD[nl]=!0,c1=function(t,e){if(Nr(t,nl))throw new h3("Object already initialized");return e.facade=t,cc(t,nl,e),e},Nd=function(t){return Nr(t,nl)?t[nl]:{}},f1=function(t){return Nr(t,nl)}}var g3={set:c1,get:Nd,has:f1,enforce:function(t){return f1(t)?Nd(t):c1(t,{})},getterFor:function(t){return function(e){var n;if(!Pr(e)||(n=Nd(e)).type!==t)throw h3("Incompatible receiver, "+t+" required");return n}}},ZR=Function.prototype,dft=Ua&&Object.getOwnPropertyDescriptor,aw=Nr(ZR,"name"),dD={EXISTS:aw,PROPER:aw&&function(){}.name==="something",CONFIGURABLE:aw&&(!Ua||Ua&&dft(ZR,"name").configurable)},Ep=$R(function(t){var e=dD.CONFIGURABLE,n=g3.get,r=g3.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")+"]"),(!Nr(u,"name")||e&&u.name!==d)&&cc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==jt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:cc(i,a,u)):f?i[a]=u:iD(a,u)})(Function.prototype,"toString",function(){return xn(this)&&n(this).source||cD(this)})}),pft=Math.ceil,hft=Math.floor,Hm=function(t){var e=+t;return e!=e||e===0?0:(e>0?hft:pft)(e)},gft=Math.max,vft=Math.min,Cp=function(t,e){var n=Hm(t);return n<0?gft(n+e,0):vft(n,e)},mft=Math.min,pD=function(t){return t>0?mft(Hm(t),9007199254740991):0},Um=function(t){return pD(t.length)},yft=function(t){return function(e,n,r){var o,i=Dh(e),a=Um(i),u=Cp(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}},bft=yft(!1),wT=zt([].push),JR=function(t,e){var n,r=Dh(t),o=0,i=[];for(n in r)!Nr(fD,n)&&Nr(r,n)&&wT(i,n);for(;e.length>o;)Nr(r,n=e[o++])&&(~bft(i,n)||wT(i,n));return i},d1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wft=d1.concat("length","prototype"),Eft={f:Object.getOwnPropertyNames||function(t){return JR(t,wft)}},Cft={f:Object.getOwnPropertySymbols},xft=zt([].concat),Dft=Sh("Reflect","ownKeys")||function(t){var e=Eft.f(Ir(t)),n=Cft.f;return n?xft(e,n(t)):e},Sft=function(t,e){for(var n=Dft(e),r=Ah.f,o=YR.f,i=0;i<n.length;i++){var a=n[i];Nr(t,a)||r(t,a,o(e,a))}},Aft=/#|\.prototype\./,Oh=function(t,e){var n=kft[Oft(t)];return n==Tft||n!=Bft&&(xn(e)?tn(e):!!e)},Oft=Oh.normalize=function(t){return String(t).replace(Aft,".").toLowerCase()},kft=Oh.data={},Bft=Oh.NATIVE="N",Tft=Oh.POLYFILL="P",Fft=Oh,_ft=YR.f,Wa=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?jt:l?jt[u]||iD(u,{}):(jt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=_ft(n,r))&&a.value:n[r],!Fft(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Sft(i,o)}(t.sham||o&&o.sham)&&cc(i,"sham",!0),Ep(n,r,i,t)}},QR={};QR[Ur("toStringTag")]="z";var hD=String(QR)==="[object z]",Pft=Ur("toStringTag"),jft=jt.Object,Nft=Aa(function(){return arguments}())=="Arguments",gD=hD?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(a){}}(e=jft(t),Pft))=="string"?n:Nft?Aa(e):(r=Aa(e))=="Object"&&xn(e.callee)?"Arguments":r},Ift=jt.String,Pn=function(t){if(gD(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ift(t)},Lft=/"/g,Rft=zt("".replace);Wa({target:"String",proto:!0,forced:tn(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=Pn(Va(this)),r="<a",(r+=' name="'+Rft(Pn(e),Lft,""")+'"')+">"+n+"</a>";var e,n,r}});var L0,tM=function(){var t=Ir(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},vD=jt.RegExp,v3=tn(function(){var t=vD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Mft=v3||tn(function(){return!vD("a","y").sticky}),eM={BROKEN_CARET:v3||tn(function(){var t=vD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Mft,UNSUPPORTED_Y:v3},zft=Object.keys||function(t){return JR(t,d1)},$ft=Ua?Object.defineProperties:function(t,e){Ir(t);for(var n,r=Dh(e),o=zft(e),i=o.length,a=0;i>a;)Ah.f(t,n=o[a++],r[n]);return t},Hft=Sh("document","documentElement"),nM=XR("IE_PROTO"),uw=function(){},rM=function(t){return"<script>"+t+"<\/script>"},ET=function(t){t.write(rM("")),t.close();var e=t.parentWindow.Object;return t=null,e},Bg=function(){try{L0=new ActiveXObject("htmlfile")}catch(r){}var t,e;Bg=typeof document!="undefined"?document.domain&&L0?ET(L0):((e=lD("iframe")).style.display="none",Hft.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(rM("document.F=Object")),t.close(),t.F):ET(L0);for(var n=d1.length;n--;)delete Bg.prototype[d1[n]];return Bg()};fD[nM]=!0;var CT,sw,oM=Object.create||function(t,e){var n;return t!==null?(uw.prototype=Ir(t),n=new uw,uw.prototype=null,n[nM]=t):n=Bg(),e===void 0?n:$ft(n,e)},Uft=jt.RegExp,Vft=tn(function(){var t=Uft(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Wft=jt.RegExp,Gft=tn(function(){var t=Wft("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),qft=g3.get,Kft=aD("native-string-replace",String.prototype.replace),p1=RegExp.prototype.exec,m3=p1,Yft=zt("".charAt),Xft=zt("".indexOf),Zft=zt("".replace),lw=zt("".slice),cw=(sw=/b*/g,Xe(p1,CT=/a/,"a"),Xe(p1,sw,"a"),CT.lastIndex!==0||sw.lastIndex!==0),xT=eM.BROKEN_CARET,fw=/()??/.exec("")[1]!==void 0;(cw||fw||xT||Vft||Gft)&&(m3=function(t){var e,n,r,o,i,a,u,s=this,l=qft(s),c=Pn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Xe(m3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=xT&&s.sticky,y=Xe(tM,s),g=s.source,m=0,v=c;if(d&&(y=Zft(y,"y",""),Xft(y,"g")===-1&&(y+="g"),v=lw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Yft(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",y)),fw&&(n=new RegExp("^"+g+"$(?!\\s)",y)),cw&&(r=s.lastIndex),o=Xe(p1,d?n:s,v),d?o?(o.input=lw(o.input,m),o[0]=lw(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:cw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),fw&&o&&o.length>1&&Xe(Kft,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=oM(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var xp=m3;Wa({target:"RegExp",proto:!0,forced:/./.exec!==xp},{exec:xp});var h1=Array.isArray||function(t){return Aa(t)=="Array"},iM=function(){},Jft=[],aM=Sh("Reflect","construct"),mD=/^\s*(?:class|function)\b/,Qft=zt(mD.exec),tdt=!mD.exec(iM),$f=function(t){if(!xn(t))return!1;try{return aM(iM,Jft,t),!0}catch(e){return!1}},yD=!aM||tn(function(){var t;return $f($f.call)||!$f(Object)||!$f(function(){t=!0})||t})?function(t){if(!xn(t))return!1;switch(gD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return tdt||!!Qft(mD,cD(t))}:$f,uM=function(t,e,n){var r=sD(e);r in t?Ah.f(t,r,nD(0,n)):t[r]=n},edt=Ur("species"),bD=function(t){return f3>=51||!tn(function(){var e=[];return(e.constructor={})[edt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},ndt=zt([].slice),rdt=bD("slice"),odt=Ur("species"),dw=jt.Array,idt=Math.max;function po(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 DT(t){var e=t.selection;if(e==null)return!1;var n=po(C.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=po(n,2)[1],o=C.start(t,r);if(Ft.equals(e.anchor,o))return!0}return!1}function ST(t,e){var n,r,o=C.nodes(t,{at:e,match:function(s){return A.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}Wa({target:"Array",proto:!0,forced:!rdt},{slice:function(t,e){var n,r,o,i=Dh(this),a=Um(i),u=Cp(t,a),s=Cp(e===void 0?a:e,a);if(h1(i)&&(n=i.constructor,(yD(n)&&(n===dw||h1(n.prototype))||Pr(n)&&(n=n[odt])===null)&&(n=void 0),n===dw||n===void 0))return ndt(i,u,s);for(r=new(n===void 0?dw:n)(idt(s-u,0)),o=0;u<s;u++,o++)u in i&&uM(r,o,i[u]);return r.length=o,r}});var AT=zt(zt.bind),adt=Ur("species"),OT=jt.Array,udt=function(t,e){return new(function(n){var r;return h1(n)&&(r=n.constructor,(yD(r)&&(r===OT||h1(r.prototype))||Pr(r)&&(r=r[adt])===null)&&(r=void 0)),r===void 0?OT:r}(t))(e===0?0:e)},kT=zt([].push),Yi=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,y=uD(s),g=UR(y),m=function(E,D){return GR(E),D===void 0?E:AT?AT(E,D):function(){return E.apply(D,arguments)}}(l,c),v=Um(g),h=0,b=f||udt,w=e?b(s,v):n||a?b(s,0):void 0;v>h;h++)if((u||h in g)&&(d=m(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:kT(w,p)}else switch(t){case 4:return!1;case 7:kT(w,p)}return i?-1:r||o?o:w}},Vm={forEach:Yi(0),map:Yi(1),filter:Yi(2),some:Yi(3),every:Yi(4),find:Yi(5),findIndex:Yi(6),filterReject:Yi(7)},sdt=Vm.map;Wa({target:"Array",proto:!0,forced:!bD("map")},{map:function(t){return sdt(this,t,arguments.length>1?arguments[1]:void 0)}});var ldt=hD?{}.toString:function(){return"[object "+gD(this)+"]"};function Wm(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function sM(t){return Wm(t).every(function(e){return!!e.isHeader})}hD||Ep(Object.prototype,"toString",ldt,{unsafe:!0});var cdt=dD.PROPER,y3=RegExp.prototype,lM=y3.toString,fdt=zt(tM),ddt=tn(function(){return lM.call({source:"a",flags:"b"})!="/a/b"}),pdt=cdt&&lM.name!="toString";(ddt||pdt)&&Ep(RegExp.prototype,"toString",function(){var t=Ir(this),e=Pn(t.source),n=t.flags;return"/"+e+"/"+Pn(n===void 0&&VR(y3,t)&&!("flags"in y3)?fdt(t):n)},{unsafe:!0});var b3=Ur("unscopables"),w3=Array.prototype;w3[b3]==null&&Ah.f(w3,b3,{configurable:!0,value:oM(null)});var hdt=Vm.find,BT=!0;"find"in[]&&Array(1).find(function(){BT=!1}),Wa({target:"Array",proto:!0,forced:BT},{find:function(t){return hdt(this,t,arguments.length>1?arguments[1]:void 0)}}),w3[b3].find=!0;var wD=Function.prototype,TT=wD.apply,gdt=wD.bind,FT=wD.call,cM=typeof Reflect=="object"&&Reflect.apply||(gdt?FT.bind(TT):function(){return FT.apply(TT,arguments)}),vdt=Ur("species"),pw=RegExp.prototype,fM=function(t,e,n,r){var o=Ur(t),i=!tn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!tn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[vdt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=zt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=zt(l),g=c.exec;return g===xp||g===pw.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Ep(String.prototype,t,s[0]),Ep(pw,o,s[1])}r&&cc(pw[o],"sham",!0)},mdt=Ur("match"),ydt=jt.TypeError,bdt=Ur("species"),wdt=zt("".charAt),_T=zt("".charCodeAt),Edt=zt("".slice),Cdt=function(t){return function(e,n){var r,o,i=Pn(Va(e)),a=Hm(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=_T(i,a))<55296||r>56319||a+1===u||(o=_T(i,a+1))<56320||o>57343?t?wdt(i,a):r:t?Edt(i,a,a+2):o-56320+(r-55296<<10)+65536}},xdt=Cdt(!0),dM=function(t,e,n){return e+(n?xdt(t,e).length:1)},Ddt=jt.Array,Sdt=Math.max,PT=function(t,e,n){for(var r=Um(t),o=Cp(e,r),i=Cp(n===void 0?r:n,r),a=Ddt(Sdt(i-o,0)),u=0;o<i;o++,u++)uM(a,u,t[o]);return a.length=u,a},Adt=jt.TypeError,E3=function(t,e){var n=t.exec;if(xn(n)){var r=Xe(n,t,e);return r!==null&&Ir(r),r}if(Aa(t)==="RegExp")return Xe(xp,t,e);throw Adt("RegExp#exec called on incompatible receiver")},rl=eM.UNSUPPORTED_Y,Odt=Math.min,pM=[].push,kdt=zt(/./.exec),ol=zt(pM),Hf=zt("".slice);fM("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=Pn(Va(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Pr(a=o)||!((u=a[mdt])!==void 0?u:Aa(a)=="RegExp"))return Xe(e,s,o,l);for(var c,f,p,d=[],y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),g=0,m=new RegExp(o.source,y+"g");(c=Xe(xp,m,s))&&!((f=m.lastIndex)>g&&(ol(d,Hf(s,g,c.index)),c.length>1&&c.index<s.length&&cM(pM,d,PT(c,1)),p=c[0].length,g=f,d.length>=l));)m.lastIndex===c.index&&m.lastIndex++;return g===s.length?!p&&kdt(m,"")||ol(d,""):ol(d,Hf(s,g)),d.length>l?PT(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Xe(e,this,o,i)}:e,[function(o,i){var a=Va(this),u=o==null?void 0:oD(o,t);return u?Xe(u,o,a,i):Xe(r,Pn(a),o,i)},function(o,i){var a=Ir(this),u=Pn(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,E){var D,x=Ir(w).constructor;return x===void 0||(D=Ir(x)[bdt])==null?E:function(O){if(yD(O))return O;throw ydt(WR(O)+" is not a constructor")}(D)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(rl?"g":"y"),p=new l(rl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return E3(p,u)===null?[u]:[];for(var y=0,g=0,m=[];g<u.length;){p.lastIndex=rl?0:g;var v,h=E3(p,rl?Hf(u,g):u);if(h===null||(v=Odt(pD(p.lastIndex+(rl?g:0)),u.length))===y)g=dM(u,g,c);else{if(ol(m,Hf(u,y,g)),m.length===d)return m;for(var b=1;b<=h.length-1;b++)if(ol(m,h[b]),m.length===d)return m;g=y=v}}return ol(m,Hf(u,y)),m}]},!!tn(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"}),rl);var C3=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,jT=zt("".replace),g1="["+C3+"]",Bdt=RegExp("^"+g1+g1+"*"),Tdt=RegExp(g1+g1+"*$"),hw=function(t){return function(e){var n=Pn(Va(e));return 1&t&&(n=jT(n,Bdt,"")),2&t&&(n=jT(n,Tdt,"")),n}},Fdt={start:hw(1),end:hw(2),trim:hw(3)},_dt=dD.PROPER,Pdt=Fdt.trim;function hM(t){return t.length?t[0].tagName.toLowerCase():""}Wa({target:"String",proto:!0,forced:function(t){return tn(function(){return!!C3[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||_dt&&C3[t].name!==t})}("trim")},{trim:function(){return Pdt(this)}}),Wa({global:!0},{globalThis:jt}),Mr&&(B.fn.append=Mr),zo&&(B.fn.on=zo),La&&(B.fn.focus=La),Rr&&(B.fn.attr=Rr),Mo&&(B.fn.val=Mo),Ia&&(B.fn.html=Ia),ql&&(B.fn.dataset=ql),Vl&&(B.fn.addClass=Vl),Wl&&(B.fn.removeClass=Wl),Zl&&(B.fn.children=Zl),mv&&(B.fn.each=mv),Xl&&(B.fn.find=Xl);var Dp=!1,gM=0,vM=0,Sp=null,Ap=null,Id=B("body");function mM(t){Dp=!1,Ap=null,Sp=null,Id.off("mousemove",yM),Id.off("mouseup",mM)}Id.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(),Dp=!0;var n=t.clientX;gM=n;var r=e.getBoundingClientRect().width;vM=r,Id.on("mousemove",yM),Id.on("mouseup",mM)}});var yM=ss(function(t){if(Dp&&Ap!=null&&Sp!=null){t.preventDefault();var e=t.clientX,n=vM+(e-gM);(n=Math.floor(100*n)/100)<30&&(n=30),N.setNodes(Ap,{width:n.toString()},{at:Sp})}},100),jdt={type:"table",renderElem:function(t,e,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||L.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,p=A.findPath(u,s),d=C.start(u,p),y=C.end(u,p),g=Ft.compare(c,y)<=0&&Ft.compare(c,d)>=0,m=Ft.compare(f,y)<=0&&Ft.compare(f,d)>=0;return!!(g&&m&&j.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=Et("div",{className:"table-container","data-selected":A.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.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)}}}},Et("table",{width:i,contentEditable:r},Et("colgroup",null,Wm(t).map(function(u){var s=u.width;return Et("col",{width:s===void 0?"auto":s})})),Et("tbody",null,e)));return a}},Ndt={type:"table-row",renderElem:function(t,e,n){return Et("tr",null,e)}},Idt={type:"table-cell",renderElem:function(t,e,n){var r=function(p,d){var y=A.getParentNode(p,d);if(y==null)return!1;var g=A.getParentNode(p,y);return g!=null&&Wm(g).some(function(m){return m===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 Et("td",{colSpan:a,rowSpan:s},e);var f=Et(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:ss(function(p){var d=this.elm;if(d!=null){var y=d.getBoundingClientRect(),g=y.left,m=y.width,v=y.top,h=y.height,b=p.clientX,w=p.clientY;Dp||(b>g+m-5&&b<g+m&&w>v&&w<v+h?(d.style.cursor="col-resize",Ap=n,Sp=A.findPath(n,t)):Dp||(d.style.cursor="auto",Ap=null,Sp=null))}},100)}},e);return f}},Ldt={selector:"table",preParseHtml:function(t){var e=B(t);if(hM(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]}},Rdt=Vm.filter;Wa({target:"Array",proto:!0,forced:!bD("filter")},{filter:function(t){return Rdt(this,t,arguments.length>1?arguments[1]:void 0)}});var Mdt=Math.floor,gw=zt("".charAt),zdt=zt("".replace),vw=zt("".slice),$dt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Hdt=/\$([$&'`]|\d{1,2})/g,Udt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Hdt;return o!==void 0&&(o=uD(o),s=$dt),zdt(i,s,function(l,c){var f;switch(gw(c,0)){case"$":return"$";case"&":return t;case"`":return vw(e,0,n);case"'":return vw(e,a);case"<":f=o[vw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Mdt(p/10);return d===0?l:d<=u?r[d-1]===void 0?gw(c,1):r[d-1]+gw(c,1):l}f=r[p-1]}return f===void 0?"":f})},x3=Ur("replace"),Vdt=Math.max,Wdt=Math.min,Gdt=zt([].concat),mw=zt([].push),NT=zt("".indexOf),IT=zt("".slice),qdt="a".replace(/./,"$0")==="$0",LT=!!/./[x3]&&/./[x3]("a","$0")==="";fM("replace",function(t,e,n){var r=LT?"$":"$0";return[function(o,i){var a=Va(this),u=o==null?void 0:oD(o,x3);return u?Xe(u,o,a,i):Xe(e,Pn(a),o,i)},function(o,i){var a=Ir(this),u=Pn(o);if(typeof i=="string"&&NT(i,r)===-1&&NT(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=xn(i);l||(i=Pn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=E3(a,u);if(d===null||(mw(p,d),!c))break;Pn(d[0])===""&&(a.lastIndex=dM(u,pD(a.lastIndex),f))}for(var y,g="",m=0,v=0;v<p.length;v++){for(var h=Pn((d=p[v])[0]),b=Vdt(Wdt(Hm(d.index),u.length),0),w=[],E=1;E<d.length;E++)mw(w,(y=d[E])===void 0?y:String(y));var D=d.groups;if(l){var x=Gdt([h],w,b,u);D!==void 0&&mw(x,D);var O=Pn(cM(i,void 0,x))}else O=Udt(h,u,b,w,D,i);b>=m&&(g+=IT(u,m,b)+O,m=b+h.length)}return g+IT(u,m)}]},!!tn(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!qdt||LT);var Kdt={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!!at.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:hM(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},Ydt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Xdt={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 A.getNodeType(i)==="table-row"})}}},Zdt=function(){function t(){this.title=nt("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||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.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 × 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,y=p.y;o[0].innerHTML=d+1+" × "+(y+1),i.children().each(function(g){B(g).children().each(function(m){var v=B(m),h=v.dataset(),b=h.x,w=h.y;b<=d&&w<=y?v.addClass("active"):v.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,y=p.y;n.insertTable(e,y+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)){A.isSelectedEmptyParagraph(e)&&N.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);N.insertNodes(e,a,{mode:"highest"})}},t}(),Jdt=function(){function t(){this.title=nt("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||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{mode:"highest"})},t}(),Qdt=function(){function t(){this.title=nt("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||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=po(C.nodes(e,{match:function(d){return A.checkNodeType(d,"table-cell")},universal:!0}),1),o=po(r[0],2),i=o[0],a=o[1],u=A.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);N.insertNodes(e,l,{at:p})}}},t}(),tpt=function(){function t(){this.title=nt("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||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=po(C.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=po(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(e,{mode:"highest"}):N.removeNodes(e,{at:a})}},t}(),RT={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},yw=lD("span").classList,MT=yw&&yw.constructor&&yw.constructor.prototype,ept=MT===Object.prototype?void 0:MT,npt=Vm.forEach,rpt=function(t,e){var n=[].forEach;return!!n&&tn(function(){n.call(null,function(){throw 1},1)})}(),bw=rpt?[].forEach:function(t){return npt(this,t,arguments.length>1?arguments[1]:void 0)},bM=function(t){if(t&&t.forEach!==bw)try{cc(t,"forEach",bw)}catch(e){t.forEach=bw}};for(var ww in RT)RT[ww]&&bM(jt[ww]&&jt[ww].prototype);bM(ept);var opt=function(){function t(){this.title=nt("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||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=po(C.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=po(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);if(u!=null){var s=A.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){dt.isElement(l)&&(l.children||[]).forEach(function(f){var p=A.findPath(e,f);if(p.length===a.length&&zR(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&sM(s)&&(d.isHeader=!0),N.insertNodes(e,d,{at:p})}})})}}},t}(),ipt=function(){function t(){this.title=nt("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||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=po(C.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=po(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(e,{mode:"highest"});else{var l=A.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){dt.isElement(c)&&(c.children||[]).forEach(function(f){var p=A.findPath(e,f);p.length===a.length&&zR(p.slice(-1),a.slice(-1))&&N.removeNodes(e,{at:p})})})}}},t}(),apt=function(){function t(){this.title=nt("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=A.getSelectedNodeByType(e,"table");return n!=null&&sM(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=A.getSelectedNodeByType(e,"table");o!=null&&Wm(o).forEach(function(i){return N.setNodes(e,{isHeader:r},{at:A.findPath(e,i)})})}},t}(),upt=function(){function t(){this.title=nt("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=A.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||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};N.setNodes(e,r,{mode:"highest"})}},t}(),spt={renderElems:[jdt,Ndt,Idt],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:[Ldt],parseElemsHtml:[Kdt,Ydt,Xdt],menus:[{key:"insertTable",factory:function(){return new Zdt}},{key:"deleteTable",factory:function(){return new Jdt}},{key:"insertTableRow",factory:function(){return new Qdt}},{key:"deleteTableRow",factory:function(){return new tpt}},{key:"insertTableCol",factory:function(){return new opt}},{key:"deleteTableCol",factory:function(){return new ipt}},{key:"tableHeader",factory:function(){return new apt}},{key:"tableFullWidth",factory:function(){return new upt}}],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(){A.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
- `)},s.deleteBackward=function(l){if(!DT(s)){var c=s.selection;if(c){var f=C.before(s,c);if(f){var p=ST(s,f),d=ST(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=C.above(t);A.checkNodeType(c[0],"table-cell")&&N.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),N.select(t,f[1]);else{var p=s.children||[],d=p.length;if(A.checkNodeType(p[d-1],"table")){var y=A.genEmptyParagraph();N.insertNodes(s,y,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){DT(s)||r(l)},s.normalizeNode=function(l){var c=po(l,2),f=c[0],p=c[1];if(A.getNodeType(f)!=="table")return o([f,p]);if(A.isLastNode(s,f)){var d=A.genEmptyParagraph();N.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
- `||/<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=A.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(et.string(c).length!==0){var d=A.findPath(s,c),y={anchor:C.start(s,d),focus:C.end(s,d)};s.select(y)}else u();else u()}else u()}else u()},s}};er("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"}}),er("zh-CN",{videoModule:{delete:"\u5220\u9664\u89C6\u9891",uploadVideo:"\u4E0A\u4F20\u89C6\u9891",insertVideo:"\u63D2\u5165\u89C6\u9891",videoSrc:"\u89C6\u9891\u5730\u5740",videoSrcPlaceHolder:"\u89C6\u9891\u6587\u4EF6 url \u6216\u7B2C\u4E09\u65B9 <iframe>",videoPoster:"\u89C6\u9891\u5C01\u9762",videoPosterPlaceHolder:"\u5C01\u9762\u56FE\u7247 url",ok:"\u786E\u5B9A",editSize:"\u4FEE\u6539\u5C3A\u5BF8",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6"}});/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var v1=function(){return v1=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},v1.apply(this,arguments)};function Gm(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 qm(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 Qu(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 lpt(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 zT=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ED(t){var e={exports:{}};return t(e,e.exports),e.exports}var Xi,Tg,R0=function(t){return t&&t.Math==Math&&t},it=R0(typeof globalThis=="object"&&globalThis)||R0(typeof window=="object"&&window)||R0(typeof self=="object"&&self)||R0(typeof zT=="object"&&zT)||function(){return this}()||Function("return this")(),ge=function(t){try{return!!t()}catch(e){return!0}},Ho=!ge(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Uf=Function.prototype.call,de=Uf.bind?Uf.bind(Uf):function(){return Uf.apply(Uf,arguments)},$T={}.propertyIsEnumerable,HT=Object.getOwnPropertyDescriptor,cpt={f:HT&&!$T.call({1:2},1)?function(t){var e=HT(this,t);return!!e&&e.enumerable}:$T},Km=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},wM=Function.prototype,D3=wM.bind,S3=wM.call,fpt=D3&&D3.bind(S3),St=D3?function(t){return t&&fpt(S3,t)}:function(t){return t&&function(){return S3.apply(t,arguments)}},dpt=St({}.toString),ppt=St("".slice),Io=function(t){return ppt(dpt(t),8,-1)},Ew=it.Object,hpt=St("".split),CD=ge(function(){return!Ew("z").propertyIsEnumerable(0)})?function(t){return Io(t)=="String"?hpt(t,""):Ew(t)}:Ew,gpt=it.TypeError,kh=function(t){if(t==null)throw gpt("Can't call method on "+t);return t},Qa=function(t){return CD(kh(t))},ue=function(t){return typeof t=="function"},me=function(t){return typeof t=="object"?t!==null:ue(t)},vpt=function(t){return ue(t)?t:void 0},ys=function(t,e){return arguments.length<2?vpt(it[t]):it[t]&&it[t][e]},Op=St({}.isPrototypeOf),jl=ys("navigator","userAgent")||"",UT=it.process,VT=it.Deno,WT=UT&&UT.versions||VT&&VT.version,GT=WT&&WT.v8;GT&&(Tg=(Xi=GT.split("."))[0]>0&&Xi[0]<4?1:+(Xi[0]+Xi[1])),!Tg&&jl&&(!(Xi=jl.match(/Edge\/(\d+)/))||Xi[1]>=74)&&(Xi=jl.match(/Chrome\/(\d+)/))&&(Tg=+Xi[1]);var kp=Tg,A3=!!Object.getOwnPropertySymbols&&!ge(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&kp&&kp<41}),xD=A3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mpt=it.Object,Cw=xD?function(t){return typeof t=="symbol"}:function(t){var e=ys("Symbol");return ue(e)&&Op(e.prototype,mpt(t))},ypt=it.String,m1=function(t){try{return ypt(t)}catch(e){return"Object"}},bpt=it.TypeError,Ga=function(t){if(ue(t))return t;throw bpt(m1(t)+" is not a function")},Bp=function(t,e){var n=t[e];return n==null?void 0:Ga(n)},wpt=it.TypeError,Ept=Object.defineProperty,DD=function(t,e){try{Ept(it,t,{value:e,configurable:!0,writable:!0})}catch(n){it[t]=e}return e},ka=it["__core-js_shared__"]||DD("__core-js_shared__",{}),SD=ED(function(t){(t.exports=function(e,n){return ka[e]||(ka[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Cpt=it.Object,Ym=function(t){return Cpt(kh(t))},xpt=St({}.hasOwnProperty),Je=Object.hasOwn||function(t,e){return xpt(Ym(t),e)},Dpt=0,Spt=Math.random(),Apt=St(1 .toString),AD=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Apt(++Dpt+Spt,36)},Vf=SD("wks"),ts=it.Symbol,qT=ts&&ts.for,Opt=xD?ts:ts&&ts.withoutSetter||AD,Ue=function(t){if(!Je(Vf,t)||!A3&&typeof Vf[t]!="string"){var e="Symbol."+t;A3&&Je(ts,t)?Vf[t]=ts[t]:Vf[t]=xD&&qT?qT(e):Opt(e)}return Vf[t]},kpt=it.TypeError,Bpt=Ue("toPrimitive"),OD=function(t){var e=function(n,r){if(!me(n)||Cw(n))return n;var o,i=Bp(n,Bpt);if(i){if(r===void 0&&(r="default"),o=de(i,n,r),!me(o)||Cw(o))return o;throw kpt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ue(s=a.toString)&&!me(l=de(s,a))||ue(s=a.valueOf)&&!me(l=de(s,a))||u!=="string"&&ue(s=a.toString)&&!me(l=de(s,a)))return l;throw wpt("Can't convert object to primitive value")}(n,r)}(t,"string");return Cw(e)?e:e+""},O3=it.document,Tpt=me(O3)&&me(O3.createElement),Tp=function(t){return Tpt?O3.createElement(t):{}},EM=!Ho&&!ge(function(){return Object.defineProperty(Tp("div"),"a",{get:function(){return 7}}).a!=7}),KT=Object.getOwnPropertyDescriptor,kD={f:Ho?KT:function(t,e){if(t=Qa(t),e=OD(e),EM)try{return KT(t,e)}catch(n){}if(Je(t,e))return Km(!de(cpt.f,t,e),t[e])}},Fpt=it.String,_pt=it.TypeError,mn=function(t){if(me(t))return t;throw _pt(Fpt(t)+" is not an object")},Ppt=it.TypeError,YT=Object.defineProperty,Di={f:Ho?YT:function(t,e,n){if(mn(t),e=OD(e),mn(n),EM)try{return YT(t,e,n)}catch(r){}if("get"in n||"set"in n)throw Ppt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ba=Ho?function(t,e,n){return Di.f(t,e,Km(1,n))}:function(t,e,n){return t[e]=n,t},jpt=St(Function.toString);ue(ka.inspectSource)||(ka.inspectSource=function(t){return jpt(t)});var y1,Ld,b1,Xm=ka.inspectSource,XT=it.WeakMap,CM=ue(XT)&&/native code/.test(Xm(XT)),ZT=SD("keys"),BD=function(t){return ZT[t]||(ZT[t]=AD(t))},Zm={},k3=it.TypeError,Npt=it.WeakMap;if(CM||ka.state){var vu=ka.state||(ka.state=new Npt),Ipt=St(vu.get),JT=St(vu.has),Lpt=St(vu.set);y1=function(t,e){if(JT(vu,t))throw new k3("Object already initialized");return e.facade=t,Lpt(vu,t,e),e},Ld=function(t){return Ipt(vu,t)||{}},b1=function(t){return JT(vu,t)}}else{var il=BD("state");Zm[il]=!0,y1=function(t,e){if(Je(t,il))throw new k3("Object already initialized");return e.facade=t,Ba(t,il,e),e},Ld=function(t){return Je(t,il)?t[il]:{}},b1=function(t){return Je(t,il)}}var yr={set:y1,get:Ld,has:b1,enforce:function(t){return b1(t)?Ld(t):y1(t,{})},getterFor:function(t){return function(e){var n;if(!me(e)||(n=Ld(e)).type!==t)throw k3("Incompatible receiver, "+t+" required");return n}}},xM=Function.prototype,Rpt=Ho&&Object.getOwnPropertyDescriptor,xw=Je(xM,"name"),Lc={EXISTS:xw,PROPER:xw&&function(){}.name==="something",CONFIGURABLE:xw&&(!Ho||Ho&&Rpt(xM,"name").configurable)},dr=ED(function(t){var e=Lc.CONFIGURABLE,n=yr.get,r=yr.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;ue(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Je(u,"name")||e&&u.name!==d)&&Ba(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==it?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ba(i,a,u)):f?i[a]=u:DD(a,u)})(Function.prototype,"toString",function(){return ue(this)&&n(this).source||Xm(this)})}),Mpt=Math.ceil,zpt=Math.floor,Jm=function(t){var e=+t;return e!=e||e===0?0:(e>0?zpt:Mpt)(e)},$pt=Math.max,Hpt=Math.min,Fp=function(t,e){var n=Jm(t);return n<0?$pt(n+e,0):Hpt(n,e)},Upt=Math.min,DM=function(t){return t>0?Upt(Jm(t),9007199254740991):0},Bh=function(t){return DM(t.length)},QT=function(t){return function(e,n,r){var o,i=Qa(e),a=Bh(i),u=Fp(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}},SM={includes:QT(!0),indexOf:QT(!1)},Vpt=SM.indexOf,tF=St([].push),AM=function(t,e){var n,r=Qa(t),o=0,i=[];for(n in r)!Je(Zm,n)&&Je(r,n)&&tF(i,n);for(;e.length>o;)Je(r,n=e[o++])&&(~Vpt(i,n)||tF(i,n));return i},w1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wpt=w1.concat("length","prototype"),E1={f:Object.getOwnPropertyNames||function(t){return AM(t,Wpt)}},Gpt={f:Object.getOwnPropertySymbols},qpt=St([].concat),Kpt=ys("Reflect","ownKeys")||function(t){var e=E1.f(mn(t)),n=Gpt.f;return n?qpt(e,n(t)):e},Ypt=function(t,e){for(var n=Kpt(e),r=Di.f,o=kD.f,i=0;i<n.length;i++){var a=n[i];Je(t,a)||r(t,a,o(e,a))}},Xpt=/#|\.prototype\./,Th=function(t,e){var n=Jpt[Zpt(t)];return n==tht||n!=Qpt&&(ue(e)?ge(e):!!e)},Zpt=Th.normalize=function(t){return String(t).replace(Xpt,".").toLowerCase()},Jpt=Th.data={},Qpt=Th.NATIVE="N",tht=Th.POLYFILL="P",C1=Th,eht=kD.f,Yn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?it:l?it[u]||DD(u,{}):(it[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=eht(n,r))&&a.value:n[r],!C1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ypt(i,o)}(t.sham||o&&o.sham)&&Ba(i,"sham",!0),dr(n,r,i,t)}},OM={};OM[Ue("toStringTag")]="z";var TD=String(OM)==="[object z]",nht=Ue("toStringTag"),rht=it.Object,oht=Io(function(){return arguments}())=="Arguments",Qm=TD?Io:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=rht(t),nht))=="string"?n:oht?Io(e):(r=Io(e))=="Object"&&ue(e.callee)?"Arguments":r},iht=it.String,kr=function(t){if(Qm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return iht(t)},B3=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,eF=St("".replace),x1="["+B3+"]",aht=RegExp("^"+x1+x1+"*"),uht=RegExp(x1+x1+"*$"),Dw=function(t){return function(e){var n=kr(kh(e));return 1&t&&(n=eF(n,aht,"")),2&t&&(n=eF(n,uht,"")),n}},sht={start:Dw(1),end:Dw(2),trim:Dw(3)},lht=Lc.PROPER,cht=sht.trim;function nF(t){return t.length?t[0].tagName.toLowerCase():""}function kM(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}Yn({target:"String",proto:!0,forced:ge(function(){return!!B3.trim()||"\u200B\x85\u180E".trim()!=="\u200B\x85\u180E"||lht&&B3.trim.name!=="trim"})},{trim:function(){return cht(this)}}),Yn({global:!0},{globalThis:it}),Mr&&(B.fn.append=Mr),zo&&(B.fn.on=zo),La&&(B.fn.focus=La),Rr&&(B.fn.attr=Rr),Mo&&(B.fn.val=Mo),Ia&&(B.fn.html=Ia),Yl&&(B.fn.parent=Yl),Gl&&(B.fn.hasClass=Gl),Ql&&(B.fn.empty=Ql);var M0,fht={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=A.isNodeSelected(n,t);if(a.trim().indexOf("<iframe ")===0)r=Et("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:kM(a,c,p)});else{var y=Et("video",{poster:s,controls:!0},Et("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
- \u62B1\u6B49\uFF0C\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u89C6\u9891`);c!=="auto"&&(y.data.width=c),p!=="auto"&&(y.data.height=p),r=Et("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},y)}return tc("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},dht={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>
- `;return o.trim().indexOf("<iframe ")===0?f+=kM(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
- </div>`}},pht=Object.keys||function(t){return AM(t,w1)},hht=Ho?Object.defineProperties:function(t,e){mn(t);for(var n,r=Qa(e),o=pht(e),i=o.length,a=0;i>a;)Di.f(t,n=o[a++],r[n]);return t},T3=ys("document","documentElement"),BM=BD("IE_PROTO"),Sw=function(){},TM=function(t){return"<script>"+t+"<\/script>"},rF=function(t){t.write(TM("")),t.close();var e=t.parentWindow.Object;return t=null,e},Fg=function(){try{M0=new ActiveXObject("htmlfile")}catch(r){}var t,e;Fg=typeof document!="undefined"?document.domain&&M0?rF(M0):((e=Tp("iframe")).style.display="none",T3.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(TM("document.F=Object")),t.close(),t.F):rF(M0);for(var n=w1.length;n--;)delete Fg.prototype[w1[n]];return Fg()};Zm[BM]=!0;var FD=Object.create||function(t,e){var n;return t!==null?(Sw.prototype=mn(t),n=new Sw,Sw.prototype=null,n[BM]=t):n=Fg(),e===void 0?n:hht(n,e)},F3=Ue("unscopables"),_3=Array.prototype;_3[F3]==null&&Di.f(_3,F3,{configurable:!0,value:FD(null)});var Rd=function(t){_3[F3][t]=!0},ght=SM.includes;Yn({target:"Array",proto:!0},{includes:function(t){return ght(this,t,arguments.length>1?arguments[1]:void 0)}}),Rd("includes");var vht={selector:"iframe,video,p",preParseHtml:function(t){var e=B(t),n=e;if(nF(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=nF(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]}},oF=St(St.bind),_p=function(t,e){return Ga(t),e===void 0?t:oF?oF(t,e):function(){return t.apply(e,arguments)}},D1=Array.isArray||function(t){return Io(t)=="Array"},FM=function(){},mht=[],_M=ys("Reflect","construct"),_D=/^\s*(?:class|function)\b/,yht=St(_D.exec),bht=!_D.exec(FM),Wf=function(t){if(!ue(t))return!1;try{return _M(FM,mht,t),!0}catch(e){return!1}},PD=!_M||ge(function(){var t;return Wf(Wf.call)||!Wf(Object)||!Wf(function(){t=!0})||t})?function(t){if(!ue(t))return!1;switch(Qm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bht||!!yht(_D,Xm(t))}:Wf,wht=Ue("species"),iF=it.Array,Eht=function(t,e){return new(function(n){var r;return D1(n)&&(r=n.constructor,(PD(r)&&(r===iF||D1(r.prototype))||me(r)&&(r=r[wht])===null)&&(r=void 0)),r===void 0?iF:r}(t))(e===0?0:e)},aF=St([].push),Zi=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,y=Ym(s),g=CD(y),m=_p(l,c),v=Bh(g),h=0,b=f||Eht,w=e?b(s,v):n||a?b(s,0):void 0;v>h;h++)if((u||h in g)&&(d=m(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:aF(w,p)}else switch(t){case 4:return!1;case 7:aF(w,p)}return i?-1:r||o?o:w}},jD={forEach:Zi(0),map:Zi(1),filter:Zi(2),some:Zi(3),every:Zi(4),find:Zi(5),findIndex:Zi(6),filterReject:Zi(7)},Cht=jD.find,uF=!0;"find"in[]&&Array(1).find(function(){uF=!1}),Yn({target:"Array",proto:!0,forced:uF},{find:function(t){return Cht(this,t,arguments.length>1?arguments[1]:void 0)}}),Rd("find");var xht=TD?{}.toString:function(){return"[object "+Qm(this)+"]"};function sF(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:""}]}}TD||dr(Object.prototype,"toString",xht,{unsafe:!0});var lF,Aw,Dht={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",sF(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",sF(o,i=l.attr("poster")||"",a,u)}},PM=function(){var t=mn(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},ND=it.RegExp,P3=ge(function(){var t=ND("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Sht=P3||ge(function(){return!ND("a","y").sticky}),Aht={BROKEN_CARET:P3||ge(function(){var t=ND("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Sht,UNSUPPORTED_Y:P3},Oht=it.RegExp,kht=ge(function(){var t=Oht(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Bht=it.RegExp,Tht=ge(function(){var t=Bht("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Fht=yr.get,_ht=SD("native-string-replace",String.prototype.replace),S1=RegExp.prototype.exec,j3=S1,Pht=St("".charAt),jht=St("".indexOf),Nht=St("".replace),Ow=St("".slice),kw=(Aw=/b*/g,de(S1,lF=/a/,"a"),de(S1,Aw,"a"),lF.lastIndex!==0||Aw.lastIndex!==0),cF=Aht.BROKEN_CARET,Bw=/()??/.exec("")[1]!==void 0;(kw||Bw||cF||kht||Tht)&&(j3=function(t){var e,n,r,o,i,a,u,s=this,l=Fht(s),c=kr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=de(j3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=cF&&s.sticky,y=de(PM,s),g=s.source,m=0,v=c;if(d&&(y=Nht(y,"y",""),jht(y,"g")===-1&&(y+="g"),v=Ow(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Pht(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",y)),Bw&&(n=new RegExp("^"+g+"$(?!\\s)",y)),kw&&(r=s.lastIndex),o=de(S1,d?n:s,v),d?o?(o.input=Ow(o.input,m),o[0]=Ow(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:kw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Bw&&o&&o.length>1&&de(_ht,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=FD(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var A1=j3;Yn({target:"RegExp",proto:!0,forced:/./.exec!==A1},{exec:A1});var ID=Function.prototype,fF=ID.apply,Iht=ID.bind,dF=ID.call,jM=typeof Reflect=="object"&&Reflect.apply||(Iht?dF.bind(fF):function(){return dF.apply(fF,arguments)}),pF=(Ue("species"),RegExp.prototype),Lht=St("".charAt),hF=St("".charCodeAt),Rht=St("".slice),gF=function(t){return function(e,n){var r,o,i=kr(kh(e)),a=Jm(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=hF(i,a))<55296||r>56319||a+1===u||(o=hF(i,a+1))<56320||o>57343?t?Lht(i,a):r:t?Rht(i,a,a+2):o-56320+(r-55296<<10)+65536}},NM={codeAt:gF(!1),charAt:gF(!0)},Mht=NM.charAt,zht=function(t,e,n){return e+(n?Mht(t,e).length:1)},$ht=Math.floor,Tw=St("".charAt),Hht=St("".replace),Fw=St("".slice),Uht=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vht=/\$([$&'`]|\d{1,2})/g,Wht=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Vht;return o!==void 0&&(o=Ym(o),s=Uht),Hht(i,s,function(l,c){var f;switch(Tw(c,0)){case"$":return"$";case"&":return t;case"`":return Fw(e,0,n);case"'":return Fw(e,a);case"<":f=o[Fw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=$ht(p/10);return d===0?l:d<=u?r[d-1]===void 0?Tw(c,1):r[d-1]+Tw(c,1):l}f=r[p-1]}return f===void 0?"":f})},Ght=it.TypeError,qht=function(t,e){var n=t.exec;if(ue(n)){var r=de(n,t,e);return r!==null&&mn(r),r}if(Io(t)==="RegExp")return de(A1,t,e);throw Ght("RegExp#exec called on incompatible receiver")},N3=Ue("replace"),Kht=Math.max,Yht=Math.min,Xht=St([].concat),_w=St([].push),vF=St("".indexOf),mF=St("".slice),Zht="a".replace(/./,"$0")==="$0",yF=!!/./[N3]&&/./[N3]("a","$0")==="";function IM(t){return t===void 0&&(t="r"),t+"-"+Gj()}(function(t,e,n,r){var o=Ue(t),i=!ge(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ge(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=St(/./[o]),s=function(l,c,f){var p=yF?"$":"$0";return[function(d,y){var g=kh(this),m=d==null?void 0:Bp(d,N3);return m?de(m,d,g,y):de(c,kr(g),d,y)},function(d,y){var g=mn(this),m=kr(d);if(typeof y=="string"&&vF(y,p)===-1&&vF(y,"$<")===-1){var v=f(c,g,m,y);if(v.done)return v.value}var h=ue(y);h||(y=kr(y));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var E=[];;){var D=qht(g,m);if(D===null||(_w(E,D),!b))break;kr(D[0])===""&&(g.lastIndex=zht(m,DM(g.lastIndex),w))}for(var x,O="",F=0,R=0;R<E.length;R++){for(var U=kr((D=E[R])[0]),M=Kht(Yht(Jm(D.index),m.length),0),Y=[],W=1;W<D.length;W++)_w(Y,(x=D[W])===void 0?x:String(x));var G=D.groups;if(h){var K=Xht([U],Y,M,m);G!==void 0&&_w(K,G);var ot=kr(jM(y,void 0,K))}else ot=Wht(U,m,M,Y,G,y);M>=F&&(O+=mF(m,F,M)+ot,F=M+U.length)}return O+mF(m,F)}]}(0,""[t],function(l,c,f,p,d){var y=St(l),g=c.exec;return g===A1||g===pF.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});dr(String.prototype,t,s[0]),dr(pF,o,s[1])}})("replace",0,!!ge(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Zht||yF);var O1=it.Promise,k1=function(t,e,n){for(var r in e)dr(t,r,e[r],n);return t},Jht=it.String,Qht=it.TypeError,fc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=St(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return mn(r),function(i){if(typeof i=="object"||ue(i))return i;throw Qht("Can't set "+Jht(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),t0t=Di.f,bF=Ue("toStringTag"),B1=function(t,e,n){t&&!Je(t=n?t:t.prototype,bF)&&t0t(t,bF,{configurable:!0,value:e})},wF=Ue("species"),e0t=it.TypeError,LD=function(t,e){if(Op(e,t))return t;throw e0t("Incorrect invocation")},dc={},n0t=Ue("iterator"),r0t=Array.prototype,o0t=Ue("iterator"),EF=function(t){if(t!=null)return Bp(t,o0t)||Bp(t,"@@iterator")||dc[Qm(t)]},i0t=it.TypeError,CF=function(t,e,n){var r,o;mn(t);try{if(!(r=Bp(t,"return"))){if(e==="throw")throw n;return n}r=de(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return mn(r),n},a0t=it.TypeError,_g=function(t,e){this.stopped=t,this.result=e},xF=_g.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),y=!(!n||!n.INTERRUPTED),g=_p(e,f),m=function(h){return r&&CF(r,"normal",h),new _g(!0,h)},v=function(h){return p?(mn(h),y?g(h[0],h[1],m):g(h[0],h[1])):y?g(h,m):g(h)};if(d)r=t;else{if(!(o=EF(t)))throw a0t(m1(t)+" is not iterable");if((c=o)!==void 0&&(dc.Array===c||r0t[n0t]===c)){for(i=0,a=Bh(t);a>i;i++)if((u=v(t[i]))&&Op(xF,u))return u;return new _g(!1)}r=function(h,b){var w=arguments.length<2?EF(h):b;if(Ga(w))return mn(de(w,h));throw i0t(m1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=de(s,r)).done;){try{u=v(l.value)}catch(h){CF(r,"throw",h)}if(typeof u=="object"&&u&&Op(xF,u))return u}return new _g(!1)},LM=Ue("iterator"),RM=!1;try{var u0t=0,DF={next:function(){return{done:!!u0t++}},return:function(){RM=!0}};DF[LM]=function(){return this},Array.from(DF,function(){throw 2})}catch(t){}var Pp,al,SF,Pw,MM=function(t,e){if(!e&&!RM)return!1;var n=!1;try{var r={};r[LM]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n},s0t=it.TypeError,l0t=Ue("species"),zM=St([].slice),$M=/(?:ipad|iphone|ipod).*applewebkit/i.test(jl),Ta=Io(it.process)=="process",I3=it.setImmediate,L3=it.clearImmediate,c0t=it.process,jw=it.Dispatch,f0t=it.Function,AF=it.MessageChannel,d0t=it.String,Nw=0,Md={};try{Pp=it.location}catch(t){}var RD=function(t){if(Je(Md,t)){var e=Md[t];delete Md[t],e()}},Iw=function(t){return function(){RD(t)}},OF=function(t){RD(t.data)},kF=function(t){it.postMessage(d0t(t),Pp.protocol+"//"+Pp.host)};I3&&L3||(I3=function(t){var e=zM(arguments,1);return Md[++Nw]=function(){jM(ue(t)?t:f0t(t),void 0,e)},al(Nw),Nw},L3=function(t){delete Md[t]},Ta?al=function(t){c0t.nextTick(Iw(t))}:jw&&jw.now?al=function(t){jw.now(Iw(t))}:AF&&!$M?(Pw=(SF=new AF).port2,SF.port1.onmessage=OF,al=_p(Pw.postMessage,Pw)):it.addEventListener&&ue(it.postMessage)&&!it.importScripts&&Pp&&Pp.protocol!=="file:"&&!ge(kF)?(al=kF,it.addEventListener("message",OF,!1)):al="onreadystatechange"in Tp("script")?function(t){T3.appendChild(Tp("script")).onreadystatechange=function(){T3.removeChild(this),RD(t)}}:function(t){setTimeout(Iw(t),0)});var Gf,ku,zd,bl,Lw,Rw,Mw,BF,HM={set:I3,clear:L3},p0t=/ipad|iphone|ipod/i.test(jl)&&it.Pebble!==void 0,h0t=/web0s(?!.*chrome)/i.test(jl),g0t=kD.f,zw=HM.set,TF=it.MutationObserver||it.WebKitMutationObserver,FF=it.document,_F=it.process,z0=it.Promise,PF=g0t(it,"queueMicrotask"),UM=PF&&PF.value;UM||(Gf=function(){var t,e;for(Ta&&(t=_F.domain)&&t.exit();ku;){e=ku.fn,ku=ku.next;try{e()}catch(n){throw ku?bl():zd=void 0,n}}zd=void 0,t&&t.enter()},$M||Ta||h0t||!TF||!FF?!p0t&&z0&&z0.resolve?((Mw=z0.resolve(void 0)).constructor=z0,BF=_p(Mw.then,Mw),bl=function(){BF(Gf)}):Ta?bl=function(){_F.nextTick(Gf)}:(zw=_p(zw,it),bl=function(){zw(Gf)}):(Lw=!0,Rw=FF.createTextNode(""),new TF(Gf).observe(Rw,{characterData:!0}),bl=function(){Rw.data=Lw=!Lw}));var $w,jF,VM,NF,WM=UM||function(t){var e={fn:t,next:void 0};zd&&(zd.next=e),ku||(ku=e,bl()),zd=e},v0t=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=Ga(e),this.reject=Ga(n)},MD={f:function(t){return new v0t(t)}},R3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},m0t=typeof window=="object",GM=HM.set,y0t=Ue("species"),si="Promise",IF=yr.getterFor(si),b0t=yr.set,w0t=yr.getterFor(si),Cu=O1&&O1.prototype,Fo=O1,qf=Cu,qM=it.TypeError,M3=it.document,zD=it.process,Nl=MD.f,E0t=Nl,C0t=!!(M3&&M3.createEvent&&it.dispatchEvent),KM=ue(it.PromiseRejectionEvent),YM=!1,$d=C1(si,function(){var t=Xm(Fo),e=t!==String(Fo);if(!e&&kp===66)return!0;if(kp>=51&&/native code/.test(t))return!1;var n=new Fo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[y0t]=r,!(YM=n.then(function(){})instanceof r)||!e&&m0t&&!KM}),x0t=$d||!MM(function(t){Fo.all(t).catch(function(){})}),XM=function(t){var e;return!(!me(t)||!ue(e=t.then))&&e},$D=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;WM(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&&S0t(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(qM("Promise-chain cycle")):(u=XM(a))?de(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&D0t(t)})}},ZM=function(t,e,n){var r,o;C0t?((r=M3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),it.dispatchEvent(r)):r={promise:e,reason:n},!KM&&(o=it["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=it.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},D0t=function(t){de(GM,it,function(){var e,n=t.facade,r=t.value;if(LF(t)&&(e=R3(function(){Ta?zD.emit("unhandledRejection",r,n):ZM("unhandledrejection",n,r)}),t.rejection=Ta||LF(t)?2:1,e.error))throw e.value})},LF=function(t){return t.rejection!==1&&!t.parent},S0t=function(t){de(GM,it,function(){var e=t.facade;Ta?zD.emit("rejectionHandled",e):ZM("rejectionhandled",e,t.value)})},Sl=function(t,e,n){return function(r){t(e,r,n)}},Il=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,$D(t,!0))},z3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw qM("Promise can't be resolved itself");var r=XM(e);r?WM(function(){var o={done:!1};try{de(r,e,Sl(z3,o,t),Sl(Il,o,t))}catch(i){Il(o,i,t)}}):(t.value=e,t.state=1,$D(t,!1))}catch(o){Il({done:!1},o,t)}}};if($d&&(qf=(Fo=function(t){LD(this,qf),Ga(t),de($w,this);var e=IF(this);try{t(Sl(z3,e),Sl(Il,e))}catch(n){Il(e,n)}}).prototype,($w=function(t){b0t(this,{type:si,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=k1(qf,{then:function(t,e){var n=w0t(this),r=n.reactions,o=Nl(function(i,a){var u,s=mn(i).constructor;return s===void 0||(u=mn(s)[l0t])==null?a:function(l){if(PD(l))return l;throw s0t(m1(l)+" is not a constructor")}(u)}(this,Fo));return o.ok=!ue(t)||t,o.fail=ue(e)&&e,o.domain=Ta?zD.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&$D(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),jF=function(){var t=new $w,e=IF(t);this.promise=t,this.resolve=Sl(z3,e),this.reject=Sl(Il,e)},MD.f=Nl=function(t){return t===Fo||t===VM?new jF(t):E0t(t)},ue(O1)&&Cu!==Object.prototype)){NF=Cu.then,YM||(dr(Cu,"then",function(t,e){var n=this;return new Fo(function(r,o){de(NF,n,r,o)}).then(t,e)},{unsafe:!0}),dr(Cu,"catch",qf.catch,{unsafe:!0}));try{delete Cu.constructor}catch(t){}fc&&fc(Cu,qf)}function jp(t,e,n){return n===void 0&&(n=""),Gm(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return qm(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,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(t,l)}),o(l),[2]}})})}function Hw(){return IM("w-e-insert-video")}Yn({global:!0,wrap:!0,forced:$d},{Promise:Fo}),B1(Fo,si,!1),function(t){var e=ys("Promise"),n=Di.f;Ho&&e&&!e[wF]&&n(e,wF,{configurable:!0,get:function(){return this}})}(),VM=ys(si),Yn({target:si,stat:!0,forced:$d},{reject:function(t){var e=Nl(this);return de(e.reject,void 0,t),e.promise}}),Yn({target:si,stat:!0,forced:$d},{resolve:function(t){return function(e,n){if(mn(e),me(n)&&n.constructor===e)return n;var r=MD.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Yn({target:si,stat:!0,forced:x0t},{all:function(t){var e=this,n=Nl(e),r=n.resolve,o=n.reject,i=R3(function(){var a=Ga(e.resolve),u=[],s=0,l=1;T1(t,function(c){var f=s++,p=!1;l++,de(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=Nl(e),r=n.reject,o=R3(function(){var i=Ga(e.resolve);T1(t,function(a){de(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var A0t=function(){function t(){this.title=nt("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=Hw(),this.posterInputId=Hw(),this.buttonId=Hw()}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||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.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=Qu(cr(nt("videoModule.videoSrc"),o,nt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Qu(cr(nt("videoModule.videoPoster"),i,nt("videoModule.videoPosterPlaceHolder")),2),f=c[0],p=c[1],d=B(l),y=B(p),g=Qu(Oc(a,nt("videoModule.ok")),1)[0];if(this.$content==null){var m=B("<div></div>");m.on("click","#"+a,function(h){return Gm(n,void 0,void 0,function(){var b,w;return qm(this,function(E){switch(E.label){case 0:return h.preventDefault(),b=m.find("#"+o).val().trim(),w=m.find("#"+i).val().trim(),[4,jp(e,b,w)];case 1:return E.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=m}var v=this.$content;return v.empty(),v.append(s),v.append(f),v.append(g),d.val(""),y.val(""),setTimeout(function(){d.focus()}),v[0]},t}(),O0t=St([].join),k0t=CD!=Object,B0t=function(t,e){var n=[].join;return!!n&&ge(function(){n.call(null,",",1)})}();Yn({target:"Array",proto:!0,forced:k0t||!B0t},{join:function(t){return O0t(Qa(this),t===void 0?",":t)}});var es,RF,MF,T0t=!ge(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),zF=BD("IE_PROTO"),$3=it.Object,F0t=$3.prototype,F1=T0t?$3.getPrototypeOf:function(t){var e=Ym(t);if(Je(e,zF))return e[zF];var n=e.constructor;return ue(n)&&e instanceof n?n.prototype:e instanceof $3?F0t:null},H3=Ue("iterator"),JM=!1;[].keys&&("next"in(MF=[].keys())?(RF=F1(F1(MF)))!==Object.prototype&&(es=RF):JM=!0);var _0t=es==null||ge(function(){var t={};return es[H3].call(t)!==t});_0t&&(es={}),ue(es[H3])||dr(es,H3,function(){return this});var HD={IteratorPrototype:es,BUGGY_SAFARI_ITERATORS:JM},P0t=HD.IteratorPrototype,j0t=function(){return this},N0t=Lc.PROPER,I0t=Lc.CONFIGURABLE,$F=HD.IteratorPrototype,$0=HD.BUGGY_SAFARI_ITERATORS,Kf=Ue("iterator"),L0t=function(){return this},QM=function(t,e,n,r,o,i,a){(function(v,h,b,w){var E=h+" Iterator";v.prototype=FD(P0t,{next:Km(1,b)}),B1(v,E,!1),dc[E]=j0t})(n,e,r);var u,s,l,c=function(v){if(v===o&&g)return g;if(!$0&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Kf]||d["@@iterator"]||o&&d[o],g=!$0&&y||c(o),m=e=="Array"&&d.entries||y;if(m&&(u=F1(m.call(new t)))!==Object.prototype&&u.next&&(F1(u)!==$F&&(fc?fc(u,$F):ue(u[Kf])||dr(u,Kf,L0t)),B1(u,f,!0)),N0t&&o=="values"&&y&&y.name!=="values"&&(I0t?Ba(d,"name","values"):(p=!0,g=function(){return de(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)($0||p||!(l in d))&&dr(d,l,s[l]);else Yn({target:e,proto:!0,forced:$0||p},s);return d[Kf]!==g&&dr(d,Kf,g,{name:o}),dc[e]=g,s},R0t=yr.set,M0t=yr.getterFor("Array Iterator"),yd=QM(Array,"Array",function(t,e){R0t(this,{type:"Array Iterator",target:Qa(t),index:0,kind:e})},function(){var t=M0t(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,Rd("keys"),Rd("values"),Rd("entries");var z0t=NM.charAt,$0t=yr.set,H0t=yr.getterFor("String Iterator");QM(String,"String",function(t){$0t(this,{type:"String Iterator",string:kr(t),index:0})},function(){var t,e=H0t(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=z0t(n,r),e.index+=t.length,{value:t,done:!1})});var tz=function(t,e,n){var r=OD(e);r in t?Di.f(t,r,Km(0,n)):t[r]=n},U0t=it.Array,V0t=Math.max,HF=E1.f,UF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],W0t={f:function(t){return UF&&Io(t)=="Window"?function(e){try{return HF(e)}catch(n){return function(r,o,i){for(var a=Bh(r),u=Fp(void 0,a),s=Fp(a,a),l=U0t(V0t(s-u,0)),c=0;u<s;u++,c++)tz(l,c,r[u]);return l.length=c,l}(UF)}}(t):HF(Qa(t))}},VF=ge(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),H0=Object.isExtensible,Pu=ge(function(){H0(1)})||VF?function(t){return!!me(t)&&(!VF||Io(t)!="ArrayBuffer")&&(!H0||H0(t))}:H0,G0t=!ge(function(){return Object.isExtensible(Object.preventExtensions({}))}),UD=ED(function(t){var e=Di.f,n=!1,r=AD("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=E1.f,s=St([].splice),l={};l[r]=1,u(l).length&&(E1.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},Yn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:W0t.f}))},fastKey:function(u,s){if(!me(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Je(u,r)){if(!Pu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Je(u,r)){if(!Pu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return G0t&&n&&Pu(u)&&!Je(u,r)&&i(u),u}};Zm[r]=!0}),U0=UD.getWeakData,q0t=yr.set,K0t=yr.getterFor,Y0t=jD.find,X0t=jD.findIndex,Z0t=St([].splice),J0t=0,V0=function(t){return t.frozen||(t.frozen=new ez)},ez=function(){this.entries=[]},Uw=function(t,e){return Y0t(t.entries,function(n){return n[0]===e})};ez.prototype={get:function(t){var e=Uw(this,t);if(e)return e[1]},has:function(t){return!!Uw(this,t)},set:function(t,e){var n=Uw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=X0t(this.entries,function(n){return n[0]===t});return~e&&Z0t(this.entries,e,1),!!~e}};var Yf,nz={getConstructor:function(t,e,n,r){var o=t(function(s,l){LD(s,i),q0t(s,{type:e,id:J0t++,frozen:void 0}),l!=null&&T1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=K0t(e),u=function(s,l,c){var f=a(s),p=U0(mn(l),!0);return p===!0?V0(f).set(l,c):p[f.id]=c,s};return k1(i,{delete:function(s){var l=a(this);if(!me(s))return!1;var c=U0(s);return c===!0?V0(l).delete(s):c&&Je(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!me(s))return!1;var c=U0(s);return c===!0?V0(l).has(s):c&&Je(c,l.id)}}),k1(i,n?{get:function(s){var l=a(this);if(me(s)){var c=U0(s);return c===!0?V0(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}},W0=yr.enforce,Q0t=!it.ActiveXObject&&"ActiveXObject"in it,rz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},tgt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=it[t],u=a&&a.prototype,s=a,l={},c=function(m){var v=St(u[m]);dr(u,m,m=="add"?function(h){return v(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!me(h))&&v(this,h===0?0:h)}:m=="get"?function(h){return o&&!me(h)?void 0:v(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!me(h))&&v(this,h===0?0:h)}:function(h,b){return v(this,h===0?0:h,b),this})};if(C1(t,!ue(a)||!(o||u.forEach&&!ge(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),UD.enable();else if(C1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=ge(function(){f.has(1)}),y=MM(function(m){new a(m)}),g=!o&&ge(function(){for(var m=new a,v=5;v--;)m[i](v,v);return!m.has(-0)});y||((s=e(function(m,v){LD(m,u);var h=function(b,w,E){var D,x;return fc&&ue(D=w.constructor)&&D!==E&&me(x=D.prototype)&&x!==E.prototype&&fc(b,x),b}(new a,m,s);return v!=null&&T1(v,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Yn({global:!0,forced:s!=a},l),B1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",rz,nz);if(CM&&Q0t){Yf=nz.getConstructor(rz,"WeakMap",!0),UD.enable();var Xf=tgt.prototype,WF=St(Xf.delete),G0=St(Xf.has),GF=St(Xf.get),qF=St(Xf.set);k1(Xf,{delete:function(t){if(me(t)&&!Pu(t)){var e=W0(this);return e.frozen||(e.frozen=new Yf),WF(this,t)||e.frozen.delete(t)}return WF(this,t)},has:function(t){if(me(t)&&!Pu(t)){var e=W0(this);return e.frozen||(e.frozen=new Yf),G0(this,t)||e.frozen.has(t)}return G0(this,t)},get:function(t){if(me(t)&&!Pu(t)){var e=W0(this);return e.frozen||(e.frozen=new Yf),G0(this,t)?GF(this,t):e.frozen.get(t)}return GF(this,t)},set:function(t,e){if(me(t)&&!Pu(t)){var n=W0(this);n.frozen||(n.frozen=new Yf),G0(this,t)?qF(this,t,e):n.frozen.set(t,e)}else qF(this,t,e);return this}})}var oz={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},Vw=Tp("span").classList,KF=Vw&&Vw.constructor&&Vw.constructor.prototype,egt=KF===Object.prototype?void 0:KF,Ww=Ue("iterator"),YF=Ue("toStringTag"),Gw=yd.values,iz=function(t,e){if(t){if(t[Ww]!==Gw)try{Ba(t,Ww,Gw)}catch(r){t[Ww]=Gw}if(t[YF]||Ba(t,YF,e),oz[e]){for(var n in yd)if(t[n]!==yd[n])try{Ba(t,n,yd[n])}catch(r){t[n]=yd[n]}}}};for(var qw in oz)iz(it[qw]&&it[qw].prototype,qw);iz(egt,"DOMTokenList");var ngt=Lc.EXISTS,rgt=Di.f,az=Function.prototype,ogt=St(az.toString),uz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,igt=St(uz.exec);Ho&&!ngt&&rgt(az,"name",{configurable:!0,get:function(){try{return igt(uz,ogt(this))[1]}catch(t){return""}}});var agt=Ue("species"),ugt=kp>=51||!ge(function(){var t=[];return(t.constructor={})[agt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),sgt=Ue("species"),Kw=it.Array,lgt=Math.max;function sz(t){return t.getMenuConfig("uploadVideo")}Yn({target:"Array",proto:!0,forced:!ugt},{slice:function(t,e){var n,r,o,i=Qa(this),a=Bh(i),u=Fp(t,a),s=Fp(e===void 0?a:e,a);if(D1(i)&&(n=i.constructor,(PD(n)&&(n===Kw||D1(n.prototype))||me(n)&&(n=n[sgt])===null)&&(n=void 0),n===Kw||n===void 0))return zM(i,u,s);for(r=new(n===void 0?Kw:n)(lgt(s-u,0)),o=0;u<s;u++,o++)u in i&&tz(r,o,i[u]);return r.length=o,r}});var XF=new WeakMap;function cgt(t,e){return Gm(this,void 0,void 0,function(){var n,r,o,i;return qm(this,function(a){switch(a.label){case 0:return n=function(u){var s=XF.get(u);if(s!=null)return s;var l=sz(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,y=l.onError;return s=jI(v1(v1({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,m){if(d)return d(m,function(O,F){return jp(u,O,F)}),void c(g,m);var v=m.errno,h=v===void 0?1:v,b=m.data,w=b===void 0?{}:b;if(h===0){var E=w.url,D=E===void 0?"":E,x=w.poster;jp(u,D,x===void 0?"":x),c(g,m)}else p(g,m)},onError:function(g,m,v){y(g,m,v)}})),XF.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 fgt=function(){function t(){this.title=nt("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 jp(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,y;Gm(this,void 0,void 0,function(){var g,m,v,h,b,w;return qm(this,function(E){switch(E.label){case 0:if(p==null)return[2];g=Array.prototype.slice.call(p),m=sz(f).customUpload,E.label=1;case 1:E.trys.push([1,9,10,15]),v=lpt(g),E.label=2;case 2:return[4,v.next()];case 3:return(h=E.sent()).done?[3,8]:(b=h.value,m?[4,m(b,function(D,x){return jp(f,D,x)})]:[3,5]);case 4:return E.sent(),[3,7];case 5:return[4,cgt(f,b)];case 6:E.sent(),E.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=E.sent(),d={error:w},[3,15];case 10:return E.trys.push([10,,13,14]),h&&!h.done&&(y=v.return)?[4,y.call(v)]:[3,12];case 11:E.sent(),E.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||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),dgt=Lc.PROPER,U3=RegExp.prototype,lz=U3.toString,pgt=St(PM),hgt=ge(function(){return lz.call({source:"a",flags:"b"})!="/a/b"}),ggt=dgt&&lz.name!="toString";function Yw(){return IM("w-e-insert-video")}(hgt||ggt)&&dr(RegExp.prototype,"toString",function(){var t=mn(this),e=kr(t.source),n=t.flags;return"/"+e+"/"+kr(n===void 0&&Op(U3,t)&&!("flags"in U3)?pgt(t):n)},{unsafe:!0});var vgt=function(){function t(){this.title=nt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Yw(),this.heightInputId=Yw(),this.buttonId=Yw()}return t.prototype.getSelectedVideoNode=function(e){return A.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=Qu(cr(nt("videoModule.width"),r,"auto"),2),u=a[0],s=B(a[1]),l=Qu(cr(nt("videoModule.height"),o,"auto"),2),c=l[0],f=B(l[1]),p=Qu(Oc(i,nt("videoModule.ok")),1)[0];if(this.$content==null){var d=B("<div></div>");d.on("click","#"+i,function(w){w.preventDefault();var E=d.find("#"+r).val().trim(),D=d.find("#"+o).val().trim(),x=parseInt(E),O=parseInt(D),F=x?x.toString():"auto",R=O?O.toString():"auto";e.restoreSelection(),N.setNodes(e,{width:F,height:R},{match:function(U){return A.checkNodeType(U,"video")}}),e.hidePanelOrModal()}),this.$content=d}var y=this.$content;y.empty(),y.append(u),y.append(c),y.append(p);var g=this.getSelectedVideoNode(e);if(g==null)return y[0];var m=g.width,v=m===void 0?"auto":m,h=g.height,b=h===void 0?"auto":h;return s.val(v),f.val(b),setTimeout(function(){s.focus()}),y[0]},t}(),mgt={renderElems:[fht],elemsToHtml:[dht],preParseHtml:[vht],parseElemsHtml:[Dht],menus:[{key:"insertVideo",factory:function(){return new A0t},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new fgt},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 vgt}}],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=Qu(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};er("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),er("zh-CN",{uploadImgModule:{uploadImage:"\u4E0A\u4F20\u56FE\u7247",uploadError:"{{fileName}} \u4E0A\u4F20\u51FA\u9519"}});var ZF=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function VD(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ji,Pg,q0=function(t){return t&&t.Math==Math&&t},rt=q0(typeof globalThis=="object"&&globalThis)||q0(typeof window=="object"&&window)||q0(typeof self=="object"&&self)||q0(typeof ZF=="object"&&ZF)||function(){return this}()||Function("return this")(),be=function(t){try{return!!t()}catch(e){return!0}},Uo=!be(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Zf=Function.prototype.call,ee=Zf.bind?Zf.bind(Zf):function(){return Zf.apply(Zf,arguments)},JF={}.propertyIsEnumerable,QF=Object.getOwnPropertyDescriptor,ygt={f:QF&&!JF.call({1:2},1)?function(t){var e=QF(this,t);return!!e&&e.enumerable}:JF},ty=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},cz=Function.prototype,V3=cz.bind,W3=cz.call,bgt=V3&&V3.bind(W3),Pt=V3?function(t){return t&&bgt(W3,t)}:function(t){return t&&function(){return W3.apply(t,arguments)}},wgt=Pt({}.toString),Egt=Pt("".slice),lo=function(t){return Egt(wgt(t),8,-1)},Xw=rt.Object,Cgt=Pt("".split),WD=be(function(){return!Xw("z").propertyIsEnumerable(0)})?function(t){return lo(t)=="String"?Cgt(t,""):Xw(t)}:Xw,xgt=rt.TypeError,Np=function(t){if(t==null)throw xgt("Can't call method on "+t);return t},tu=function(t){return WD(Np(t))},le=function(t){return typeof t=="function"},he=function(t){return typeof t=="object"?t!==null:le(t)},Dgt=function(t){return le(t)?t:void 0},bs=function(t,e){return arguments.length<2?Dgt(rt[t]):rt[t]&&rt[t][e]},Ip=Pt({}.isPrototypeOf),Ll=bs("navigator","userAgent")||"",t_=rt.process,e_=rt.Deno,n_=t_&&t_.versions||e_&&e_.version,r_=n_&&n_.v8;r_&&(Pg=(Ji=r_.split("."))[0]>0&&Ji[0]<4?1:+(Ji[0]+Ji[1])),!Pg&&Ll&&(!(Ji=Ll.match(/Edge\/(\d+)/))||Ji[1]>=74)&&(Ji=Ll.match(/Chrome\/(\d+)/))&&(Pg=+Ji[1]);var Lp=Pg,G3=!!Object.getOwnPropertySymbols&&!be(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Lp&&Lp<41}),GD=G3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Sgt=rt.Object,Zw=GD?function(t){return typeof t=="symbol"}:function(t){var e=bs("Symbol");return le(e)&&Ip(e.prototype,Sgt(t))},Agt=rt.String,_1=function(t){try{return Agt(t)}catch(e){return"Object"}},Ogt=rt.TypeError,qa=function(t){if(le(t))return t;throw Ogt(_1(t)+" is not a function")},Rp=function(t,e){var n=t[e];return n==null?void 0:qa(n)},kgt=rt.TypeError,Bgt=Object.defineProperty,qD=function(t,e){try{Bgt(rt,t,{value:e,configurable:!0,writable:!0})}catch(n){rt[t]=e}return e},Fa=rt["__core-js_shared__"]||qD("__core-js_shared__",{}),KD=VD(function(t){(t.exports=function(e,n){return Fa[e]||(Fa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Tgt=rt.Object,YD=function(t){return Tgt(Np(t))},Fgt=Pt({}.hasOwnProperty),Qe=Object.hasOwn||function(t,e){return Fgt(YD(t),e)},_gt=0,Pgt=Math.random(),jgt=Pt(1 .toString),XD=function(t){return"Symbol("+(t===void 0?"":t)+")_"+jgt(++_gt+Pgt,36)},Jf=KD("wks"),ns=rt.Symbol,o_=ns&&ns.for,Ngt=GD?ns:ns&&ns.withoutSetter||XD,Ve=function(t){if(!Qe(Jf,t)||!G3&&typeof Jf[t]!="string"){var e="Symbol."+t;G3&&Qe(ns,t)?Jf[t]=ns[t]:Jf[t]=GD&&o_?o_(e):Ngt(e)}return Jf[t]},Igt=rt.TypeError,Lgt=Ve("toPrimitive"),ZD=function(t){var e=function(n,r){if(!he(n)||Zw(n))return n;var o,i=Rp(n,Lgt);if(i){if(r===void 0&&(r="default"),o=ee(i,n,r),!he(o)||Zw(o))return o;throw Igt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&le(s=a.toString)&&!he(l=ee(s,a))||le(s=a.valueOf)&&!he(l=ee(s,a))||u!=="string"&&le(s=a.toString)&&!he(l=ee(s,a)))return l;throw kgt("Can't convert object to primitive value")}(n,r)}(t,"string");return Zw(e)?e:e+""},q3=rt.document,Rgt=he(q3)&&he(q3.createElement),Mp=function(t){return Rgt?q3.createElement(t):{}},fz=!Uo&&!be(function(){return Object.defineProperty(Mp("div"),"a",{get:function(){return 7}}).a!=7}),i_=Object.getOwnPropertyDescriptor,JD={f:Uo?i_:function(t,e){if(t=tu(t),e=ZD(e),fz)try{return i_(t,e)}catch(n){}if(Qe(t,e))return ty(!ee(ygt.f,t,e),t[e])}},Mgt=rt.String,zgt=rt.TypeError,yn=function(t){if(he(t))return t;throw zgt(Mgt(t)+" is not an object")},$gt=rt.TypeError,a_=Object.defineProperty,Si={f:Uo?a_:function(t,e,n){if(yn(t),e=ZD(e),yn(n),fz)try{return a_(t,e,n)}catch(r){}if("get"in n||"set"in n)throw $gt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Lo=Uo?function(t,e,n){return Si.f(t,e,ty(1,n))}:function(t,e,n){return t[e]=n,t},Hgt=Pt(Function.toString);le(Fa.inspectSource)||(Fa.inspectSource=function(t){return Hgt(t)});var P1,Hd,j1,ey=Fa.inspectSource,u_=rt.WeakMap,dz=le(u_)&&/native code/.test(ey(u_)),s_=KD("keys"),QD=function(t){return s_[t]||(s_[t]=XD(t))},ny={},K3=rt.TypeError,Ugt=rt.WeakMap;if(dz||Fa.state){var mu=Fa.state||(Fa.state=new Ugt),Vgt=Pt(mu.get),l_=Pt(mu.has),Wgt=Pt(mu.set);P1=function(t,e){if(l_(mu,t))throw new K3("Object already initialized");return e.facade=t,Wgt(mu,t,e),e},Hd=function(t){return Vgt(mu,t)||{}},j1=function(t){return l_(mu,t)}}else{var ul=QD("state");ny[ul]=!0,P1=function(t,e){if(Qe(t,ul))throw new K3("Object already initialized");return e.facade=t,Lo(t,ul,e),e},Hd=function(t){return Qe(t,ul)?t[ul]:{}},j1=function(t){return Qe(t,ul)}}var br={set:P1,get:Hd,has:j1,enforce:function(t){return j1(t)?Hd(t):P1(t,{})},getterFor:function(t){return function(e){var n;if(!he(e)||(n=Hd(e)).type!==t)throw K3("Incompatible receiver, "+t+" required");return n}}},pz=Function.prototype,Ggt=Uo&&Object.getOwnPropertyDescriptor,Jw=Qe(pz,"name"),Fh={EXISTS:Jw,PROPER:Jw&&function(){}.name==="something",CONFIGURABLE:Jw&&(!Uo||Uo&&Ggt(pz,"name").configurable)},pr=VD(function(t){var e=Fh.CONFIGURABLE,n=br.get,r=br.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;le(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Qe(u,"name")||e&&u.name!==d)&&Lo(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:Lo(i,a,u)):f?i[a]=u:qD(a,u)})(Function.prototype,"toString",function(){return le(this)&&n(this).source||ey(this)})}),qgt=Math.ceil,Kgt=Math.floor,tS=function(t){var e=+t;return e!=e||e===0?0:(e>0?Kgt:qgt)(e)},Ygt=Math.max,Xgt=Math.min,zp=function(t,e){var n=tS(t);return n<0?Ygt(n+e,0):Xgt(n,e)},Zgt=Math.min,hz=function(t){return t>0?Zgt(tS(t),9007199254740991):0},_h=function(t){return hz(t.length)},Jgt=function(t){return function(e,n,r){var o,i=tu(e),a=_h(i),u=zp(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}},Qgt=Jgt(!1),c_=Pt([].push),gz=function(t,e){var n,r=tu(t),o=0,i=[];for(n in r)!Qe(ny,n)&&Qe(r,n)&&c_(i,n);for(;e.length>o;)Qe(r,n=e[o++])&&(~Qgt(i,n)||c_(i,n));return i},N1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tvt=N1.concat("length","prototype"),I1={f:Object.getOwnPropertyNames||function(t){return gz(t,tvt)}},evt={f:Object.getOwnPropertySymbols},nvt=Pt([].concat),rvt=bs("Reflect","ownKeys")||function(t){var e=I1.f(yn(t)),n=evt.f;return n?nvt(e,n(t)):e},ovt=function(t,e){for(var n=rvt(e),r=Si.f,o=JD.f,i=0;i<n.length;i++){var a=n[i];Qe(t,a)||r(t,a,o(e,a))}},ivt=/#|\.prototype\./,Ph=function(t,e){var n=uvt[avt(t)];return n==lvt||n!=svt&&(le(e)?be(e):!!e)},avt=Ph.normalize=function(t){return String(t).replace(ivt,".").toLowerCase()},uvt=Ph.data={},svt=Ph.NATIVE="N",lvt=Ph.POLYFILL="P",L1=Ph,cvt=JD.f,_o=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]||qD(u,{}):(rt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=cvt(n,r))&&a.value:n[r],!L1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;ovt(i,o)}(t.sham||o&&o.sham)&&Lo(i,"sham",!0),pr(n,r,i,t)}},R1=Array.isArray||function(t){return lo(t)=="Array"},vz={};vz[Ve("toStringTag")]="z";var eS=String(vz)==="[object z]",fvt=Ve("toStringTag"),dvt=rt.Object,pvt=lo(function(){return arguments}())=="Arguments",ry=eS?lo:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=dvt(t),fvt))=="string"?n:pvt?lo(e):(r=lo(e))=="Object"&&le(e.callee)?"Arguments":r},mz=function(){},hvt=[],yz=bs("Reflect","construct"),nS=/^\s*(?:class|function)\b/,gvt=Pt(nS.exec),vvt=!nS.exec(mz),Qf=function(t){if(!le(t))return!1;try{return yz(mz,hvt,t),!0}catch(e){return!1}},rS=!yz||be(function(){var t;return Qf(Qf.call)||!Qf(Object)||!Qf(function(){t=!0})||t})?function(t){if(!le(t))return!1;switch(ry(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vvt||!!gvt(nS,ey(t))}:Qf,bz=function(t,e,n){var r=ZD(e);r in t?Si.f(t,r,ty(0,n)):t[r]=n},mvt=Ve("species"),wz=Pt([].slice),yvt=Lp>=51||!be(function(){var t=[];return(t.constructor={})[mvt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),bvt=Ve("species"),Qw=rt.Array,wvt=Math.max;_o({target:"Array",proto:!0,forced:!yvt},{slice:function(t,e){var n,r,o,i=tu(this),a=_h(i),u=zp(t,a),s=zp(e===void 0?a:e,a);if(R1(i)&&(n=i.constructor,(rS(n)&&(n===Qw||R1(n.prototype))||he(n)&&(n=n[bvt])===null)&&(n=void 0),n===Qw||n===void 0))return wz(i,u,s);for(r=new(n===void 0?Qw:n)(wvt(s-u,0)),o=0;u<s;u++,o++)u in i&&bz(r,o,i[u]);return r.length=o,r}});var Evt=eS?{}.toString:function(){return"[object "+ry(this)+"]"};eS||pr(Object.prototype,"toString",Evt,{unsafe:!0});var K0,Cvt=rt.String,_a=function(t){if(ry(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Cvt(t)},Ez=function(){var t=yn(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},oS=rt.RegExp,Y3=be(function(){var t=oS("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),xvt=Y3||be(function(){return!oS("a","y").sticky}),Cz={BROKEN_CARET:Y3||be(function(){var t=oS("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:xvt,UNSUPPORTED_Y:Y3},Dvt=Object.keys||function(t){return gz(t,N1)},Svt=Uo?Object.defineProperties:function(t,e){yn(t);for(var n,r=tu(e),o=Dvt(e),i=o.length,a=0;i>a;)Si.f(t,n=o[a++],r[n]);return t},X3=bs("document","documentElement"),xz=QD("IE_PROTO"),t4=function(){},Dz=function(t){return"<script>"+t+"<\/script>"},f_=function(t){t.write(Dz("")),t.close();var e=t.parentWindow.Object;return t=null,e},jg=function(){try{K0=new ActiveXObject("htmlfile")}catch(r){}var t,e;jg=typeof document!="undefined"?document.domain&&K0?f_(K0):((e=Mp("iframe")).style.display="none",X3.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Dz("document.F=Object")),t.close(),t.F):f_(K0);for(var n=N1.length;n--;)delete jg.prototype[N1[n]];return jg()};ny[xz]=!0;var d_,e4,iS=Object.create||function(t,e){var n;return t!==null?(t4.prototype=yn(t),n=new t4,t4.prototype=null,n[xz]=t):n=jg(),e===void 0?n:Svt(n,e)},Avt=rt.RegExp,Ovt=be(function(){var t=Avt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),kvt=rt.RegExp,Bvt=be(function(){var t=kvt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Tvt=br.get,Fvt=KD("native-string-replace",String.prototype.replace),M1=RegExp.prototype.exec,Z3=M1,_vt=Pt("".charAt),Pvt=Pt("".indexOf),jvt=Pt("".replace),n4=Pt("".slice),r4=(e4=/b*/g,ee(M1,d_=/a/,"a"),ee(M1,e4,"a"),d_.lastIndex!==0||e4.lastIndex!==0),p_=Cz.BROKEN_CARET,o4=/()??/.exec("")[1]!==void 0;(r4||o4||p_||Ovt||Bvt)&&(Z3=function(t){var e,n,r,o,i,a,u,s=this,l=Tvt(s),c=_a(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ee(Z3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=p_&&s.sticky,y=ee(Ez,s),g=s.source,m=0,v=c;if(d&&(y=jvt(y,"y",""),Pvt(y,"g")===-1&&(y+="g"),v=n4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&_vt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",y)),o4&&(n=new RegExp("^"+g+"$(?!\\s)",y)),r4&&(r=s.lastIndex),o=ee(M1,d?n:s,v),d?o?(o.input=n4(o.input,m),o[0]=n4(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:r4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),o4&&o&&o.length>1&&ee(Fvt,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=iS(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var $p=Z3;_o({target:"RegExp",proto:!0,forced:/./.exec!==$p},{exec:$p});var aS=Function.prototype,h_=aS.apply,Nvt=aS.bind,g_=aS.call,Sz=typeof Reflect=="object"&&Reflect.apply||(Nvt?g_.bind(h_):function(){return g_.apply(h_,arguments)}),Ivt=Ve("species"),i4=RegExp.prototype,Lvt=Ve("match"),Rvt=rt.TypeError,Mvt=Ve("species"),Az=function(t,e){var n,r=yn(t).constructor;return r===void 0||(n=yn(r)[Mvt])==null?e:function(o){if(rS(o))return o;throw Rvt(_1(o)+" is not a constructor")}(n)},zvt=Pt("".charAt),v_=Pt("".charCodeAt),$vt=Pt("".slice),m_=function(t){return function(e,n){var r,o,i=_a(Np(e)),a=tS(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=v_(i,a))<55296||r>56319||a+1===u||(o=v_(i,a+1))<56320||o>57343?t?zvt(i,a):r:t?$vt(i,a,a+2):o-56320+(r-55296<<10)+65536}},Oz={codeAt:m_(!1),charAt:m_(!0)},Hvt=Oz.charAt,Uvt=function(t,e,n){return e+(n?Hvt(t,e).length:1)},Vvt=rt.Array,Wvt=Math.max,J3=function(t,e,n){for(var r=_h(t),o=zp(e,r),i=zp(n===void 0?r:n,r),a=Vvt(Wvt(i-o,0)),u=0;o<i;o++,u++)bz(a,u,t[o]);return a.length=u,a},Gvt=rt.TypeError,y_=function(t,e){var n=t.exec;if(le(n)){var r=ee(n,t,e);return r!==null&&yn(r),r}if(lo(t)==="RegExp")return ee($p,t,e);throw Gvt("RegExp#exec called on incompatible receiver")},sl=Cz.UNSUPPORTED_Y,qvt=Math.min,kz=[].push,Kvt=Pt(/./.exec),ll=Pt(kz),td=Pt("".slice);(function(t,e,n,r){var o=Ve(t),i=!be(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!be(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Ivt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Pt(/./[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,y){var g,m,v=_a(Np(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(d===void 0)return[v];if(!he(g=d)||!((m=g[Lvt])!==void 0?m:lo(g)=="RegExp"))return ee(c,v,d,h);for(var b,w,E,D=[],x=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,F=new RegExp(d.source,x+"g");(b=ee($p,F,v))&&!((w=F.lastIndex)>O&&(ll(D,td(v,O,b.index)),b.length>1&&b.index<v.length&&Sz(kz,D,J3(b,1)),E=b[0].length,O=w,D.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===v.length?!E&&Kvt(F,"")||ll(D,""):ll(D,td(v,O)),D.length>h?J3(D,0,h):D}:"0".split(void 0,0).length?function(d,y){return d===void 0&&y===0?[]:ee(c,this,d,y)}:c,[function(d,y){var g=Np(this),m=d==null?void 0:Rp(d,l);return m?ee(m,d,g,y):ee(p,_a(g),d,y)},function(d,y){var g=yn(this),m=_a(d),v=f(p,g,m,y,p!==c);if(v.done)return v.value;var h=Az(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(sl?"g":"y"),E=new h(sl?"^(?:"+g.source+")":g,w),D=y===void 0?4294967295:y>>>0;if(D===0)return[];if(m.length===0)return y_(E,m)===null?[m]:[];for(var x=0,O=0,F=[];O<m.length;){E.lastIndex=sl?0:O;var R,U=y_(E,sl?td(m,O):m);if(U===null||(R=qvt(hz(E.lastIndex+(sl?O:0)),m.length))===x)O=Uvt(m,O,b);else{if(ll(F,td(m,x,O)),F.length===D)return F;for(var M=1;M<=U.length-1;M++)if(ll(F,U[M]),F.length===D)return F;O=x=R}}return ll(F,td(m,x)),F}]}(o,""[t],function(l,c,f,p,d){var y=Pt(l),g=c.exec;return g===$p||g===i4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});pr(String.prototype,t,s[0]),pr(i4,o,s[1])}r&&Lo(i4[o],"sham",!0)})("split",0,!!be(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);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var z1=function(){return z1=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},z1.apply(this,arguments)};function uS(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 sS(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 Yvt(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 Q3=Ve("unscopables"),t5=Array.prototype;t5[Q3]==null&&Si.f(t5,Q3,{configurable:!0,value:iS(null)});var rs,b_,w_,a4=function(t){t5[Q3][t]=!0},pc={},Xvt=!be(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),E_=QD("IE_PROTO"),e5=rt.Object,Zvt=e5.prototype,$1=Xvt?e5.getPrototypeOf:function(t){var e=YD(t);if(Qe(e,E_))return e[E_];var n=e.constructor;return le(n)&&e instanceof n?n.prototype:e instanceof e5?Zvt:null},n5=Ve("iterator"),Bz=!1;[].keys&&("next"in(w_=[].keys())?(b_=$1($1(w_)))!==Object.prototype&&(rs=b_):Bz=!0);var Jvt=rs==null||be(function(){var t={};return rs[n5].call(t)!==t});Jvt&&(rs={}),le(rs[n5])||pr(rs,n5,function(){return this});var lS={IteratorPrototype:rs,BUGGY_SAFARI_ITERATORS:Bz},Qvt=Si.f,C_=Ve("toStringTag"),H1=function(t,e,n){t&&!Qe(t=n?t:t.prototype,C_)&&Qvt(t,C_,{configurable:!0,value:e})},t1t=lS.IteratorPrototype,e1t=function(){return this},n1t=rt.String,r1t=rt.TypeError,hc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return yn(r),function(i){if(typeof i=="object"||le(i))return i;throw r1t("Can't set "+n1t(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),o1t=Fh.PROPER,i1t=Fh.CONFIGURABLE,x_=lS.IteratorPrototype,Y0=lS.BUGGY_SAFARI_ITERATORS,ed=Ve("iterator"),a1t=function(){return this},Tz=function(t,e,n,r,o,i,a){(function(v,h,b,w){var E=h+" Iterator";v.prototype=iS(t1t,{next:ty(1,b)}),H1(v,E,!1),pc[E]=e1t})(n,e,r);var u,s,l,c=function(v){if(v===o&&g)return g;if(!Y0&&v in d)return d[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[ed]||d["@@iterator"]||o&&d[o],g=!Y0&&y||c(o),m=e=="Array"&&d.entries||y;if(m&&(u=$1(m.call(new t)))!==Object.prototype&&u.next&&($1(u)!==x_&&(hc?hc(u,x_):le(u[ed])||pr(u,ed,a1t)),H1(u,f,!0)),o1t&&o=="values"&&y&&y.name!=="values"&&(i1t?Lo(d,"name","values"):(p=!0,g=function(){return ee(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Y0||p||!(l in d))&&pr(d,l,s[l]);else _o({target:e,proto:!0,forced:Y0||p},s);return d[ed]!==g&&pr(d,ed,g,{name:o}),pc[e]=g,s},u1t=br.set,s1t=br.getterFor("Array Iterator"),bd=Tz(Array,"Array",function(t,e){u1t(this,{type:"Array Iterator",target:tu(t),index:0,kind:e})},function(){var t=s1t(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");pc.Arguments=pc.Array,a4("keys"),a4("values"),a4("entries");var l1t=Oz.charAt,c1t=br.set,f1t=br.getterFor("String Iterator");Tz(String,"String",function(t){c1t(this,{type:"String Iterator",string:_a(t),index:0})},function(){var t,e=f1t(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=l1t(n,r),e.index+=t.length,{value:t,done:!1})});var U1=function(t,e,n){for(var r in e)pr(t,r,e[r],n);return t},D_=I1.f,S_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d1t={f:function(t){return S_&&lo(t)=="Window"?function(e){try{return D_(e)}catch(n){return J3(S_)}}(t):D_(tu(t))}},A_=be(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),X0=Object.isExtensible,ju=be(function(){X0(1)})||A_?function(t){return!!he(t)&&(!A_||lo(t)!="ArrayBuffer")&&(!X0||X0(t))}:X0,p1t=!be(function(){return Object.isExtensible(Object.preventExtensions({}))}),cS=VD(function(t){var e=Si.f,n=!1,r=XD("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=I1.f,s=Pt([].splice),l={};l[r]=1,u(l).length&&(I1.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},_o({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d1t.f}))},fastKey:function(u,s){if(!he(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Qe(u,r)){if(!ju(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Qe(u,r)){if(!ju(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return p1t&&n&&ju(u)&&!Qe(u,r)&&i(u),u}};ny[r]=!0}),O_=Pt(Pt.bind),Hp=function(t,e){return qa(t),e===void 0?t:O_?O_(t,e):function(){return t.apply(e,arguments)}},h1t=Ve("iterator"),g1t=Array.prototype,v1t=Ve("iterator"),k_=function(t){if(t!=null)return Rp(t,v1t)||Rp(t,"@@iterator")||pc[ry(t)]},m1t=rt.TypeError,B_=function(t,e,n){var r,o;yn(t);try{if(!(r=Rp(t,"return"))){if(e==="throw")throw n;return n}r=ee(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return yn(r),n},y1t=rt.TypeError,Ng=function(t,e){this.stopped=t,this.result=e},T_=Ng.prototype,V1=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),y=!(!n||!n.INTERRUPTED),g=Hp(e,f),m=function(h){return r&&B_(r,"normal",h),new Ng(!0,h)},v=function(h){return p?(yn(h),y?g(h[0],h[1],m):g(h[0],h[1])):y?g(h,m):g(h)};if(d)r=t;else{if(!(o=k_(t)))throw y1t(_1(t)+" is not iterable");if((c=o)!==void 0&&(pc.Array===c||g1t[h1t]===c)){for(i=0,a=_h(t);a>i;i++)if((u=v(t[i]))&&Ip(T_,u))return u;return new Ng(!1)}r=function(h,b){var w=arguments.length<2?k_(h):b;if(qa(w))return yn(ee(w,h));throw m1t(_1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=ee(s,r)).done;){try{u=v(l.value)}catch(h){B_(r,"throw",h)}if(typeof u=="object"&&u&&Ip(T_,u))return u}return new Ng(!1)},b1t=rt.TypeError,fS=function(t,e){if(Ip(e,t))return t;throw b1t("Incorrect invocation")},Fz=Ve("iterator"),_z=!1;try{var w1t=0,F_={next:function(){return{done:!!w1t++}},return:function(){_z=!0}};F_[Fz]=function(){return this},Array.from(F_,function(){throw 2})}catch(t){}var Pz=function(t,e){if(!e&&!_z)return!1;var n=!1;try{var r={};r[Fz]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n},E1t=Ve("species"),__=rt.Array,C1t=function(t,e){return new(function(n){var r;return R1(n)&&(r=n.constructor,(rS(r)&&(r===__||R1(r.prototype))||he(r)&&(r=r[E1t])===null)&&(r=void 0)),r===void 0?__:r}(t))(e===0?0:e)},P_=Pt([].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,y=YD(s),g=WD(y),m=Hp(l,c),v=_h(g),h=0,b=f||C1t,w=e?b(s,v):n||a?b(s,0):void 0;v>h;h++)if((u||h in g)&&(d=m(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:P_(w,p)}else switch(t){case 4:return!1;case 7:P_(w,p)}return i?-1:r||o?o:w}},dS={forEach:Qi(0),map:Qi(1),filter:Qi(2),some:Qi(3),every:Qi(4),find:Qi(5),findIndex:Qi(6),filterReject:Qi(7)},Z0=cS.getWeakData,x1t=br.set,D1t=br.getterFor,S1t=dS.find,A1t=dS.findIndex,O1t=Pt([].splice),k1t=0,J0=function(t){return t.frozen||(t.frozen=new jz)},jz=function(){this.entries=[]},u4=function(t,e){return S1t(t.entries,function(n){return n[0]===e})};jz.prototype={get:function(t){var e=u4(this,t);if(e)return e[1]},has:function(t){return!!u4(this,t)},set:function(t,e){var n=u4(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=A1t(this.entries,function(n){return n[0]===t});return~e&&O1t(this.entries,e,1),!!~e}};var nd,Nz={getConstructor:function(t,e,n,r){var o=t(function(s,l){fS(s,i),x1t(s,{type:e,id:k1t++,frozen:void 0}),l!=null&&V1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=D1t(e),u=function(s,l,c){var f=a(s),p=Z0(yn(l),!0);return p===!0?J0(f).set(l,c):p[f.id]=c,s};return U1(i,{delete:function(s){var l=a(this);if(!he(s))return!1;var c=Z0(s);return c===!0?J0(l).delete(s):c&&Qe(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!he(s))return!1;var c=Z0(s);return c===!0?J0(l).has(s):c&&Qe(c,l.id)}}),U1(i,n?{get:function(s){var l=a(this);if(he(s)){var c=Z0(s);return c===!0?J0(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}},Q0=br.enforce,B1t=!rt.ActiveXObject&&"ActiveXObject"in rt,Iz=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=rt[t],u=a&&a.prototype,s=a,l={},c=function(m){var v=Pt(u[m]);pr(u,m,m=="add"?function(h){return v(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!he(h))&&v(this,h===0?0:h)}:m=="get"?function(h){return o&&!he(h)?void 0:v(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!he(h))&&v(this,h===0?0:h)}:function(h,b){return v(this,h===0?0:h,b),this})};if(L1(t,!le(a)||!(o||u.forEach&&!be(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),cS.enable();else if(L1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=be(function(){f.has(1)}),y=Pz(function(m){new a(m)}),g=!o&&be(function(){for(var m=new a,v=5;v--;)m[i](v,v);return!m.has(-0)});y||((s=e(function(m,v){fS(m,u);var h=function(b,w,E){var D,x;return hc&&le(D=w.constructor)&&D!==E&&he(x=D.prototype)&&x!==E.prototype&&hc(b,x),b}(new a,m,s);return v!=null&&V1(v,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,_o({global:!0,forced:s!=a},l),H1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",Iz,Nz);if(dz&&B1t){nd=Nz.getConstructor(Iz,"WeakMap",!0),cS.enable();var rd=T1t.prototype,j_=Pt(rd.delete),tg=Pt(rd.has),N_=Pt(rd.get),I_=Pt(rd.set);U1(rd,{delete:function(t){if(he(t)&&!ju(t)){var e=Q0(this);return e.frozen||(e.frozen=new nd),j_(this,t)||e.frozen.delete(t)}return j_(this,t)},has:function(t){if(he(t)&&!ju(t)){var e=Q0(this);return e.frozen||(e.frozen=new nd),tg(this,t)||e.frozen.has(t)}return tg(this,t)},get:function(t){if(he(t)&&!ju(t)){var e=Q0(this);return e.frozen||(e.frozen=new nd),tg(this,t)?N_(this,t):e.frozen.get(t)}return N_(this,t)},set:function(t,e){if(he(t)&&!ju(t)){var n=Q0(this);n.frozen||(n.frozen=new nd),tg(this,t)?I_(this,t,e):n.frozen.set(t,e)}else I_(this,t,e);return this}})}var W1={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},s4=Mp("span").classList,L_=s4&&s4.constructor&&s4.constructor.prototype,Lz=L_===Object.prototype?void 0:L_,l4=Ve("iterator"),R_=Ve("toStringTag"),c4=bd.values,Rz=function(t,e){if(t){if(t[l4]!==c4)try{Lo(t,l4,c4)}catch(r){t[l4]=c4}if(t[R_]||Lo(t,R_,e),W1[e]){for(var n in bd)if(t[n]!==bd[n])try{Lo(t,n,bd[n])}catch(r){t[n]=bd[n]}}}};for(var f4 in W1)Rz(rt[f4]&&rt[f4].prototype,f4);Rz(Lz,"DOMTokenList");var Mz=function(t,e){var n=[][t];return!!n&&be(function(){n.call(null,e||function(){throw 1},1)})},F1t=dS.forEach,d4=Mz("forEach")?[].forEach:function(t){return F1t(this,t,arguments.length>1?arguments[1]:void 0)},zz=function(t){if(t&&t.forEach!==d4)try{Lo(t,"forEach",d4)}catch(e){t.forEach=d4}};for(var p4 in W1)W1[p4]&&zz(rt[p4]&&rt[p4].prototype);zz(Lz);var Up,cl,M_,h4,G1=rt.Promise,z_=Ve("species"),$z=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ll),Pa=lo(rt.process)=="process",r5=rt.setImmediate,o5=rt.clearImmediate,_1t=rt.process,g4=rt.Dispatch,P1t=rt.Function,$_=rt.MessageChannel,j1t=rt.String,v4=0,Ud={};try{Up=rt.location}catch(t){}var pS=function(t){if(Qe(Ud,t)){var e=Ud[t];delete Ud[t],e()}},m4=function(t){return function(){pS(t)}},H_=function(t){pS(t.data)},U_=function(t){rt.postMessage(j1t(t),Up.protocol+"//"+Up.host)};r5&&o5||(r5=function(t){var e=wz(arguments,1);return Ud[++v4]=function(){Sz(le(t)?t:P1t(t),void 0,e)},cl(v4),v4},o5=function(t){delete Ud[t]},Pa?cl=function(t){_1t.nextTick(m4(t))}:g4&&g4.now?cl=function(t){g4.now(m4(t))}:$_&&!$z?(h4=(M_=new $_).port2,M_.port1.onmessage=H_,cl=Hp(h4.postMessage,h4)):rt.addEventListener&&le(rt.postMessage)&&!rt.importScripts&&Up&&Up.protocol!=="file:"&&!be(U_)?(cl=U_,rt.addEventListener("message",H_,!1)):cl="onreadystatechange"in Mp("script")?function(t){X3.appendChild(Mp("script")).onreadystatechange=function(){X3.removeChild(this),pS(t)}}:function(t){setTimeout(m4(t),0)});var od,Bu,Vd,wl,y4,b4,w4,V_,Hz={set:r5,clear:o5},N1t=/ipad|iphone|ipod/i.test(Ll)&&rt.Pebble!==void 0,I1t=/web0s(?!.*chrome)/i.test(Ll),L1t=JD.f,E4=Hz.set,W_=rt.MutationObserver||rt.WebKitMutationObserver,G_=rt.document,q_=rt.process,eg=rt.Promise,K_=L1t(rt,"queueMicrotask"),Uz=K_&&K_.value;Uz||(od=function(){var t,e;for(Pa&&(t=q_.domain)&&t.exit();Bu;){e=Bu.fn,Bu=Bu.next;try{e()}catch(n){throw Bu?wl():Vd=void 0,n}}Vd=void 0,t&&t.enter()},$z||Pa||I1t||!W_||!G_?!N1t&&eg&&eg.resolve?((w4=eg.resolve(void 0)).constructor=eg,V_=Hp(w4.then,w4),wl=function(){V_(od)}):Pa?wl=function(){q_.nextTick(od)}:(E4=Hp(E4,rt),wl=function(){E4(od)}):(y4=!0,b4=G_.createTextNode(""),new W_(od).observe(b4,{characterData:!0}),wl=function(){b4.data=y4=!y4}));var C4,Y_,Vz,X_,Wz=Uz||function(t){var e={fn:t,next:void 0};Vd&&(Vd.next=e),Bu||(Bu=e,wl()),Vd=e},R1t=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)},hS={f:function(t){return new R1t(t)}},i5=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},M1t=typeof window=="object",Gz=Hz.set,z1t=Ve("species"),li="Promise",Z_=br.getterFor(li),$1t=br.set,H1t=br.getterFor(li),xu=G1&&G1.prototype,Po=G1,id=xu,qz=rt.TypeError,a5=rt.document,gS=rt.process,Rl=hS.f,U1t=Rl,V1t=!!(a5&&a5.createEvent&&rt.dispatchEvent),Kz=le(rt.PromiseRejectionEvent),Yz=!1,Wd=L1(li,function(){var t=ey(Po),e=t!==String(Po);if(!e&&Lp===66)return!0;if(Lp>=51&&/native code/.test(t))return!1;var n=new Po(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[z1t]=r,!(Yz=n.then(function(){})instanceof r)||!e&&M1t&&!Kz}),W1t=Wd||!Pz(function(t){Po.all(t).catch(function(){})}),Xz=function(t){var e;return!(!he(t)||!le(e=t.then))&&e},vS=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Wz(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&&q1t(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(qz("Promise-chain cycle")):(u=Xz(a))?ee(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&G1t(t)})}},Zz=function(t,e,n){var r,o;V1t?((r=a5.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),rt.dispatchEvent(r)):r={promise:e,reason:n},!Kz&&(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)},G1t=function(t){ee(Gz,rt,function(){var e,n=t.facade,r=t.value;if(J_(t)&&(e=i5(function(){Pa?gS.emit("unhandledRejection",r,n):Zz("unhandledrejection",n,r)}),t.rejection=Pa||J_(t)?2:1,e.error))throw e.value})},J_=function(t){return t.rejection!==1&&!t.parent},q1t=function(t){ee(Gz,rt,function(){var e=t.facade;Pa?gS.emit("rejectionHandled",e):Zz("rejectionhandled",e,t.value)})},Al=function(t,e,n){return function(r){t(e,r,n)}},Ml=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,vS(t,!0))},u5=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw qz("Promise can't be resolved itself");var r=Xz(e);r?Wz(function(){var o={done:!1};try{ee(r,e,Al(u5,o,t),Al(Ml,o,t))}catch(i){Ml(o,i,t)}}):(t.value=e,t.state=1,vS(t,!1))}catch(o){Ml({done:!1},o,t)}}};if(Wd&&(id=(Po=function(t){fS(this,id),qa(t),ee(C4,this);var e=Z_(this);try{t(Al(u5,e),Al(Ml,e))}catch(n){Ml(e,n)}}).prototype,(C4=function(t){$1t(this,{type:li,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=U1(id,{then:function(t,e){var n=H1t(this),r=n.reactions,o=Rl(Az(this,Po));return o.ok=!le(t)||t,o.fail=le(e)&&e,o.domain=Pa?gS.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&vS(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),Y_=function(){var t=new C4,e=Z_(t);this.promise=t,this.resolve=Al(u5,e),this.reject=Al(Ml,e)},hS.f=Rl=function(t){return t===Po||t===Vz?new Y_(t):U1t(t)},le(G1)&&xu!==Object.prototype)){X_=xu.then,Yz||(pr(xu,"then",function(t,e){var n=this;return new Po(function(r,o){ee(X_,n,r,o)}).then(t,e)},{unsafe:!0}),pr(xu,"catch",id.catch,{unsafe:!0}));try{delete xu.constructor}catch(t){}hc&&hc(xu,id)}_o({global:!0,wrap:!0,forced:Wd},{Promise:Po}),H1(Po,li,!1),function(t){var e=bs("Promise"),n=Si.f;Uo&&e&&!e[z_]&&n(e,z_,{configurable:!0,get:function(){return this}})}(),Vz=bs(li),_o({target:li,stat:!0,forced:Wd},{reject:function(t){var e=Rl(this);return ee(e.reject,void 0,t),e.promise}}),_o({target:li,stat:!0,forced:Wd},{resolve:function(t){return function(e,n){if(yn(e),he(n)&&n.constructor===e)return n;var r=hS.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),_o({target:li,stat:!0,forced:W1t},{all:function(t){var e=this,n=Rl(e),r=n.resolve,o=n.reject,i=i5(function(){var a=qa(e.resolve),u=[],s=0,l=1;V1(t,function(c){var f=s++,p=!1;l++,ee(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=Rl(e),r=n.reject,o=i5(function(){var i=qa(e.resolve);V1(t,function(a){ee(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var K1t=Fh.PROPER,s5=RegExp.prototype,Jz=s5.toString,Y1t=Pt(Ez),X1t=be(function(){return Jz.call({source:"a",flags:"b"})!="/a/b"}),Z1t=K1t&&Jz.name!="toString";(X1t||Z1t)&&pr(RegExp.prototype,"toString",function(){var t=yn(this),e=_a(t.source),n=t.flags;return"/"+e+"/"+_a(n===void 0&&Ip(s5,t)&&!("flags"in s5)?Y1t(t):n)},{unsafe:!0});var J1t=Fh.EXISTS,Q1t=Si.f,Qz=Function.prototype,tmt=Pt(Qz.toString),t$=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,emt=Pt(t$.exec);Uo&&!J1t&&Q1t(Qz,"name",{configurable:!0,get:function(){try{return emt(t$,tmt(this))[1]}catch(t){return""}}});var Q_=new WeakMap;function e$(t){return t.getMenuConfig("uploadImage")}function nmt(t,e){return uS(this,void 0,void 0,function(){return sS(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;Gu(t,a,e.name,u),r("ok")}}})]})})}function rmt(t,e){return uS(this,void 0,void 0,function(){var n,r,o,i;return sS(this,function(a){switch(a.label){case 0:return n=function(u){var s=Q_.get(u);if(s!=null)return s;var l=e$(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,y=l.onError;return s=jI(z1(z1({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,m){if(d)return d(m,function(R,U,M){return Gu(u,R,U,M)}),void c(g,m);var v=m.errno,h=v===void 0?1:v,b=m.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(R){var U=R.url,M=U===void 0?"":U,Y=R.alt,W=Y===void 0?"":Y,G=R.href;Gu(u,M,W,G===void 0?"":G)});else{var E=w.url,D=E===void 0?"":E,x=w.alt,O=x===void 0?"":x,F=w.href;Gu(u,D,O,F===void 0?"":F)}c(g,m)}else p(g,m)},onError:function(g,m,v){y(g,m,v)}})),Q_.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 n$(t,e){var n,r;return uS(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,p;return sS(this,function(d){switch(d.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=e$(t),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=Yvt(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,nmt(t,c)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(c,function(y,g,m){return Gu(t,y,g,m)})]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,rmt(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 omt=Pt([].join),imt=WD!=Object,amt=Mz("join",",");_o({target:"Array",proto:!0,forced:imt||!amt},{join:function(t){return omt(tu(this),t===void 0?",":t)}}),Mr&&(B.fn.append=Mr),zo&&(B.fn.on=zo),Jl&&(B.fn.remove=Jl),Mo&&(B.fn.val=Mo),n7&&(B.fn.click=n7),Kl&&(B.fn.hide=Kl);var umt=function(){function t(){this.title=nt("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 _m(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 Gu(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;n$(e,c)})}},t}(),smt={menus:[{key:"uploadImage",factory:function(){return new umt},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(_m(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"})?n$(t,o):e(r)}},n}};er("en",{highLightModule:{selectLang:"Language"}}),er("zh-CN",{highLightModule:{selectLang:"\u9009\u62E9\u8BED\u8A00"}});var q1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function mS(t){var e={exports:{}};return t(e,e.exports),e.exports}var ta,Ig,ng=function(t){return t&&t.Math==Math&&t},Lt=ng(typeof globalThis=="object"&&globalThis)||ng(typeof window=="object"&&window)||ng(typeof self=="object"&&self)||ng(typeof q1=="object"&&q1)||function(){return this}()||Function("return this")(),lmt=Object.defineProperty,yS=function(t,e){try{lmt(Lt,t,{value:e,configurable:!0,writable:!0})}catch(n){Lt[t]=e}return e},ja=Lt["__core-js_shared__"]||yS("__core-js_shared__",{}),bS=mS(function(t){(t.exports=function(e,n){return ja[e]||(ja[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),r$=Function.prototype,l5=r$.bind,c5=r$.call,cmt=l5&&l5.bind(c5),ne=l5?function(t){return t&&cmt(c5,t)}:function(t){return t&&function(){return c5.apply(t,arguments)}},fmt=Lt.TypeError,gc=function(t){if(t==null)throw fmt("Can't call method on "+t);return t},dmt=Lt.Object,wS=function(t){return dmt(gc(t))},pmt=ne({}.hasOwnProperty),Lr=Object.hasOwn||function(t,e){return pmt(wS(t),e)},hmt=0,gmt=Math.random(),vmt=ne(1 .toString),o$=function(t){return"Symbol("+(t===void 0?"":t)+")_"+vmt(++hmt+gmt,36)},jn=function(t){return typeof t=="function"},mmt=function(t){return jn(t)?t:void 0},jh=function(t,e){return arguments.length<2?mmt(Lt[t]):Lt[t]&&Lt[t][e]},x4=jh("navigator","userAgent")||"",tP=Lt.process,eP=Lt.Deno,nP=tP&&tP.versions||eP&&eP.version,rP=nP&&nP.v8;rP&&(Ig=(ta=rP.split("."))[0]>0&&ta[0]<4?1:+(ta[0]+ta[1])),!Ig&&x4&&(!(ta=x4.match(/Edge\/(\d+)/))||ta[1]>=74)&&(ta=x4.match(/Chrome\/(\d+)/))&&(Ig=+ta[1]);var oP=Ig,gn=function(t){try{return!!t()}catch(e){return!0}},f5=!!Object.getOwnPropertySymbols&&!gn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&oP&&oP<41}),ES=f5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ad=bS("wks"),os=Lt.Symbol,iP=os&&os.for,ymt=ES?os:os&&os.withoutSetter||o$,eu=function(t){if(!Lr(ad,t)||!f5&&typeof ad[t]!="string"){var e="Symbol."+t;f5&&Lr(os,t)?ad[t]=os[t]:ad[t]=ES&&iP?iP(e):ymt(e)}return ad[t]},i$={};i$[eu("toStringTag")]="z";var CS=String(i$)==="[object z]",Vo=!gn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),to=function(t){return typeof t=="object"?t!==null:jn(t)},d5=Lt.document,bmt=to(d5)&&to(d5.createElement),xS=function(t){return bmt?d5.createElement(t):{}},a$=!Vo&&!gn(function(){return Object.defineProperty(xS("div"),"a",{get:function(){return 7}}).a!=7}),wmt=Lt.String,Emt=Lt.TypeError,co=function(t){if(to(t))return t;throw Emt(wmt(t)+" is not an object")},ud=Function.prototype.call,an=ud.bind?ud.bind(ud):function(){return ud.apply(ud,arguments)},u$=ne({}.isPrototypeOf),Cmt=Lt.Object,D4=ES?function(t){return typeof t=="symbol"}:function(t){var e=jh("Symbol");return jn(e)&&u$(e.prototype,Cmt(t))},xmt=Lt.String,s$=function(t){try{return xmt(t)}catch(e){return"Object"}},Dmt=Lt.TypeError,l$=function(t){if(jn(t))return t;throw Dmt(s$(t)+" is not a function")},c$=function(t,e){var n=t[e];return n==null?void 0:l$(n)},Smt=Lt.TypeError,Amt=Lt.TypeError,Omt=eu("toPrimitive"),DS=function(t){var e=function(n,r){if(!to(n)||D4(n))return n;var o,i=c$(n,Omt);if(i){if(r===void 0&&(r="default"),o=an(i,n,r),!to(o)||D4(o))return o;throw Amt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&jn(s=a.toString)&&!to(l=an(s,a))||jn(s=a.valueOf)&&!to(l=an(s,a))||u!=="string"&&jn(s=a.toString)&&!to(l=an(s,a)))return l;throw Smt("Can't convert object to primitive value")}(n,r)}(t,"string");return D4(e)?e:e+""},kmt=Lt.TypeError,aP=Object.defineProperty,oy={f:Vo?aP:function(t,e,n){if(co(t),e=DS(e),co(n),a$)try{return aP(t,e,n)}catch(r){}if("get"in n||"set"in n)throw kmt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},SS=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},vc=Vo?function(t,e,n){return oy.f(t,e,SS(1,n))}:function(t,e,n){return t[e]=n,t},Bmt=ne(Function.toString);jn(ja.inspectSource)||(ja.inspectSource=function(t){return Bmt(t)});var K1,Gd,Y1,AS=ja.inspectSource,uP=Lt.WeakMap,Tmt=jn(uP)&&/native code/.test(AS(uP)),sP=bS("keys"),f$=function(t){return sP[t]||(sP[t]=o$(t))},OS={},p5=Lt.TypeError,Fmt=Lt.WeakMap;if(Tmt||ja.state){var yu=ja.state||(ja.state=new Fmt),_mt=ne(yu.get),lP=ne(yu.has),Pmt=ne(yu.set);K1=function(t,e){if(lP(yu,t))throw new p5("Object already initialized");return e.facade=t,Pmt(yu,t,e),e},Gd=function(t){return _mt(yu,t)||{}},Y1=function(t){return lP(yu,t)}}else{var fl=f$("state");OS[fl]=!0,K1=function(t,e){if(Lr(t,fl))throw new p5("Object already initialized");return e.facade=t,vc(t,fl,e),e},Gd=function(t){return Lr(t,fl)?t[fl]:{}},Y1=function(t){return Lr(t,fl)}}var h5={set:K1,get:Gd,has:Y1,enforce:function(t){return Y1(t)?Gd(t):K1(t,{})},getterFor:function(t){return function(e){var n;if(!to(e)||(n=Gd(e)).type!==t)throw p5("Incompatible receiver, "+t+" required");return n}}},d$=Function.prototype,jmt=Vo&&Object.getOwnPropertyDescriptor,S4=Lr(d$,"name"),p$={EXISTS:S4,PROPER:S4&&function(){}.name==="something",CONFIGURABLE:S4&&(!Vo||Vo&&jmt(d$,"name").configurable)},Vp=mS(function(t){var e=p$.CONFIGURABLE,n=h5.get,r=h5.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;jn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Lr(u,"name")||e&&u.name!==d)&&vc(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:vc(i,a,u)):f?i[a]=u:yS(a,u)})(Function.prototype,"toString",function(){return jn(this)&&n(this).source||AS(this)})}),Nmt=ne({}.toString),Imt=ne("".slice),Na=function(t){return Imt(Nmt(t),8,-1)},Lmt=eu("toStringTag"),Rmt=Lt.Object,Mmt=Na(function(){return arguments}())=="Arguments",kS=CS?Na:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=Rmt(t),Lmt))=="string"?n:Mmt?Na(e):(r=Na(e))=="Object"&&jn(e.callee)?"Arguments":r},zmt=CS?{}.toString:function(){return"[object "+kS(this)+"]"};CS||Vp(Object.prototype,"toString",zmt,{unsafe:!0});var cP,fP={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},A4=xS("span").classList,dP=A4&&A4.constructor&&A4.constructor.prototype,$mt=dP===Object.prototype?void 0:dP,pP=ne(ne.bind),O4=Lt.Object,Hmt=ne("".split),BS=gn(function(){return!O4("z").propertyIsEnumerable(0)})?function(t){return Na(t)=="String"?Hmt(t,""):O4(t)}:O4,Umt=Math.ceil,Vmt=Math.floor,TS=function(t){var e=+t;return e!=e||e===0?0:(e>0?Vmt:Umt)(e)},Wmt=Math.min,h$=function(t){return t>0?Wmt(TS(t),9007199254740991):0},FS=function(t){return h$(t.length)},hP=Array.isArray||function(t){return Na(t)=="Array"},g$=function(){},Gmt=[],v$=jh("Reflect","construct"),_S=/^\s*(?:class|function)\b/,qmt=ne(_S.exec),Kmt=!_S.exec(g$),sd=function(t){if(!jn(t))return!1;try{return v$(g$,Gmt,t),!0}catch(e){return!1}},m$=!v$||gn(function(){var t;return sd(sd.call)||!sd(Object)||!sd(function(){t=!0})||t})?function(t){if(!jn(t))return!1;switch(kS(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Kmt||!!qmt(_S,AS(t))}:sd,Ymt=eu("species"),gP=Lt.Array,Xmt=function(t,e){return new(function(n){var r;return hP(n)&&(r=n.constructor,(m$(r)&&(r===gP||hP(r.prototype))||to(r)&&(r=r[Ymt])===null)&&(r=void 0)),r===void 0?gP:r}(t))(e===0?0:e)},vP=ne([].push),ea=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,y=wS(s),g=BS(y),m=function(E,D){return l$(E),D===void 0?E:pP?pP(E,D):function(){return E.apply(D,arguments)}}(l,c),v=FS(g),h=0,b=f||Xmt,w=e?b(s,v):n||a?b(s,0):void 0;v>h;h++)if((u||h in g)&&(d=m(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:vP(w,p)}else switch(t){case 4:return!1;case 7:vP(w,p)}return i?-1:r||o?o:w}},Zmt=[ea(0),ea(1),ea(2),ea(3),ea(4),ea(5),ea(6),ea(7)][0],k4=(cP=[].forEach)&&gn(function(){cP.call(null,function(){throw 1},1)})?[].forEach:function(t){return Zmt(this,t,arguments.length>1?arguments[1]:void 0)},y$=function(t){if(t&&t.forEach!==k4)try{vc(t,"forEach",k4)}catch(e){t.forEach=k4}};for(var B4 in fP)fP[B4]&&y$(Lt[B4]&&Lt[B4].prototype);y$($mt);var mP={}.propertyIsEnumerable,yP=Object.getOwnPropertyDescriptor,b$={f:yP&&!mP.call({1:2},1)?function(t){var e=yP(this,t);return!!e&&e.enumerable}:mP},iy=function(t){return BS(gc(t))},bP=Object.getOwnPropertyDescriptor,w$={f:Vo?bP:function(t,e){if(t=iy(t),e=DS(e),a$)try{return bP(t,e)}catch(n){}if(Lr(t,e))return SS(!an(b$.f,t,e),t[e])}},Jmt=Math.max,Qmt=Math.min,g5=function(t,e){var n=TS(t);return n<0?Jmt(n+e,0):Qmt(n,e)},tyt=function(t){return function(e,n,r){var o,i=iy(e),a=FS(i),u=g5(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}},eyt=tyt(!1),wP=ne([].push),E$=function(t,e){var n,r=iy(t),o=0,i=[];for(n in r)!Lr(OS,n)&&Lr(r,n)&&wP(i,n);for(;e.length>o;)Lr(r,n=e[o++])&&(~eyt(i,n)||wP(i,n));return i},X1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nyt=X1.concat("length","prototype"),ryt={f:Object.getOwnPropertyNames||function(t){return E$(t,nyt)}},C$={f:Object.getOwnPropertySymbols},oyt=ne([].concat),iyt=jh("Reflect","ownKeys")||function(t){var e=ryt.f(co(t)),n=C$.f;return n?oyt(e,n(t)):e},ayt=function(t,e){for(var n=iyt(e),r=oy.f,o=w$.f,i=0;i<n.length;i++){var a=n[i];Lr(t,a)||r(t,a,o(e,a))}},uyt=/#|\.prototype\./,Nh=function(t,e){var n=lyt[syt(t)];return n==fyt||n!=cyt&&(jn(e)?gn(e):!!e)},syt=Nh.normalize=function(t){return String(t).replace(uyt,".").toLowerCase()},lyt=Nh.data={},cyt=Nh.NATIVE="N",fyt=Nh.POLYFILL="P",dyt=Nh,pyt=w$.f,ay=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]||yS(u,{}):(Lt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=pyt(n,r))&&a.value:n[r],!dyt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;ayt(i,o)}(t.sham||o&&o.sham)&&vc(i,"sham",!0),Vp(n,r,i,t)}},Lg=Object.keys||function(t){return E$(t,X1)},dl=Object.assign,EP=Object.defineProperty,hyt=ne([].concat),CP=!dl||gn(function(){if(Vo&&dl({b:1},dl(EP({},"a",{enumerable:!0,get:function(){EP(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}),dl({},t)[n]!=7||Lg(dl({},e)).join("")!=r})?function(t,e){for(var n=wS(t),r=arguments.length,o=1,i=C$.f,a=b$.f;r>o;)for(var u,s=BS(arguments[o++]),l=i?hyt(Lg(s),i(s)):Lg(s),c=l.length,f=0;c>f;)u=l[f++],Vo&&!an(a,s,u)||(n[u]=s[u]);return n}:dl;ay({target:"Object",stat:!0,forced:Object.assign!==CP},{assign:CP});var xP=mS(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 m(v){return v instanceof u?new u(v.type,m(v.content),v.alias):Array.isArray(v)?v.map(m):v.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++o}),m.__id},clone:function m(v,h){var b,w;switch(h=h||{},a.util.type(v)){case"Object":if(w=a.util.objId(v),h[w])return h[w];for(var E in b={},h[w]=b,v)v.hasOwnProperty(E)&&(b[E]=m(v[E],h));return b;case"Array":return w=a.util.objId(v),h[w]?h[w]:(b=[],h[w]=b,v.forEach(function(D,x){b[x]=m(D,h)}),b);default:return v}},getLanguage:function(m){for(;m&&!r.test(m.className);)m=m.parentElement;return m?(m.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(m){var v=document.getElementsByTagName("script");for(var h in v)if(v[h].src==m)return v[h]}return null}},isActive:function(m,v,h){for(var b="no-"+v;m;){var w=m.classList;if(w.contains(v))return!0;if(w.contains(b))return!1;m=m.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(m,v){var h=a.util.clone(a.languages[m]);for(var b in v)h[b]=v[b];return h},insertBefore:function(m,v,h,b){var w=(b=b||a.languages)[m],E={};for(var D in w)if(w.hasOwnProperty(D)){if(D==v)for(var x in h)h.hasOwnProperty(x)&&(E[x]=h[x]);h.hasOwnProperty(D)||(E[D]=w[D])}var O=b[m];return b[m]=E,a.languages.DFS(a.languages,function(F,R){R===O&&F!=m&&(this[F]=E)}),E},DFS:function m(v,h,b,w){w=w||{};var E=a.util.objId;for(var D in v)if(v.hasOwnProperty(D)){h.call(v,D,v[D],b||D);var x=v[D],O=a.util.type(x);O!=="Object"||w[E(x)]?O!=="Array"||w[E(x)]||(w[E(x)]=!0,m(x,h,D,w)):(w[E(x)]=!0,m(x,h,null,w))}}},plugins:{},highlightAll:function(m,v){a.highlightAllUnder(document,m,v)},highlightAllUnder:function(m,v,h){var b={callback:h,container:m,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 w,E=0;w=b.elements[E++];)a.highlightElement(w,v===!0,b.callback)},highlightElement:function(m,v,h){var b=a.util.getLanguage(m),w=a.languages[b];m.className=m.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var E=m.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&(E.className=E.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var D={element:m,language:b,grammar:w,code:m.textContent};function x(F){D.highlightedCode=F,a.hooks.run("before-insert",D),D.element.innerHTML=D.highlightedCode,a.hooks.run("after-highlight",D),a.hooks.run("complete",D),h&&h.call(D.element)}if(a.hooks.run("before-sanity-check",D),(E=D.element.parentElement)&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!D.code)return a.hooks.run("complete",D),void(h&&h.call(D.element));if(a.hooks.run("before-highlight",D),D.grammar)if(v&&n.Worker){var O=new Worker(a.filename);O.onmessage=function(F){x(F.data)},O.postMessage(JSON.stringify({language:D.language,code:D.code,immediateClose:!0}))}else x(a.highlight(D.code,D.grammar,D.language));else x(a.util.encode(D.code))},highlight:function(m,v,h){var b={code:m,grammar:v,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(m,v){var h=v.rest;if(h){for(var b in h)v[b]=h[b];delete v.rest}var w=new c;return f(w,w.head,m),l(m,w,v,w.head,0),function(E){for(var D=[],x=E.head.next;x!==E.tail;)D.push(x.value),x=x.next;return D}(w)},hooks:{all:{},add:function(m,v){var h=a.hooks.all;h[m]=h[m]||[],h[m].push(v)},run:function(m,v){var h=a.hooks.all[m];if(h&&h.length)for(var b,w=0;b=h[w++];)b(v)}},Token:u};function u(m,v,h,b){this.type=m,this.content=v,this.alias=h,this.length=0|(b||"").length}function s(m,v,h,b){m.lastIndex=v;var w=m.exec(h);if(w&&b&&w[1]){var E=w[1].length;w.index+=E,w[0]=w[0].slice(E)}return w}function l(m,v,h,b,w,E){for(var D in h)if(h.hasOwnProperty(D)&&h[D]){var x=h[D];x=Array.isArray(x)?x:[x];for(var O=0;O<x.length;++O){if(E&&E.cause==D+","+O)return;var F=x[O],R=F.inside,U=!!F.lookbehind,M=!!F.greedy,Y=F.alias;if(M&&!F.pattern.global){var W=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,W+"g")}for(var G=F.pattern||F,K=b.next,ot=w;K!==v.tail&&!(E&&ot>=E.reach);ot+=K.value.length,K=K.next){var ft=K.value;if(v.length>m.length)return;if(!(ft instanceof u)){var ct,st=1;if(M){if(!(ct=s(G,ot,m,U)))break;var k=ct.index,S=ct.index+ct[0].length,P=ot;for(P+=K.value.length;k>=P;)P+=(K=K.next).value.length;if(ot=P-=K.value.length,K.value instanceof u)continue;for(var H=K;H!==v.tail&&(P<S||typeof H.value=="string");H=H.next)st++,P+=H.value.length;st--,ft=m.slice(ot,P),ct.index-=ot}else if(!(ct=s(G,0,ft,U)))continue;k=ct.index;var X=ct[0],V=ft.slice(0,k),ut=ft.slice(k+X.length),mt=ot+ft.length;E&&mt>E.reach&&(E.reach=mt);var yt=K.prev;if(V&&(yt=f(v,yt,V),ot+=V.length),p(v,yt,st),K=f(v,yt,new u(D,R?a.tokenize(X,R):X,Y,X)),ut&&f(v,K,ut),st>1){var Dt={cause:D+","+O,reach:mt};l(m,v,h,K.prev,ot,Dt),E&&Dt.reach>E.reach&&(E.reach=Dt.reach)}}}}}}function c(){var m={value:null,prev:null,next:null},v={value:null,prev:m,next:null};m.next=v,this.head=m,this.tail=v,this.length=0}function f(m,v,h){var b=v.next,w={value:h,prev:v,next:b};return v.next=w,b.prev=w,m.length++,w}function p(m,v,h){for(var b=v.next,w=0;w<h&&b!==m.tail;w++)b=b.next;v.next=b,b.prev=v,m.length-=w}if(n.Prism=a,u.stringify=function m(v,h){if(typeof v=="string")return v;if(Array.isArray(v)){var b="";return v.forEach(function(O){b+=m(O,h)}),b}var w={type:v.type,content:m(v.content,h),tag:"span",classes:["token",v.type],attributes:{},language:h},E=v.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(w.classes,E):w.classes.push(E)),a.hooks.run("wrap",w);var D="";for(var x in w.attributes)D+=" "+x+'="'+(w.attributes[x]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+D+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(m){var v=JSON.parse(m.data),h=v.language,b=v.code,w=v.immediateClose;n.postMessage(a.highlight(b,a.languages[h],h)),w&&n.close()},!1)),a;var d=a.util.currentScript();function y(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var g=document.readyState;g==="loading"||g==="interactive"&&d&&d.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return a}(typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{});/**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */t.exports&&(t.exports=e),q1!==void 0&&(q1.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(/&/,"&"))}),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!="undefined"){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\u2026";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 y=e.plugins.autoloader;y&&y.loadLanguages(p);var g=new XMLHttpRequest;g.open("GET",f,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?(l.setAttribute(r,"loaded"),c.textContent=g.responseText,e.highlightElement(c)):(l.setAttribute(r,"failed"),g.status>=400?c.textContent="\u2716 Error "+g.status+" while fetching file: "+g.statusText:c.textContent="\u2716 Error: File does not exist or is empty"))},g.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(/&/,"&"))}),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(S,P){return S.replace(/<<(\d+)>>/g,function(H,X){return"(?:"+P[+X]+")"})}function n(S,P,H){return RegExp(e(S,P),H||"")}function r(S,P){for(var H=0;H<P;H++)S=S.replace(/<<self>>/g,function(){return"(?:"+S+")"});return S.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(S){return"\\b(?:"+S.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),y=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,m=e(/<<0>>(?:\s*<<1>>)?/.source,[g,d]),v=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,m]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,h]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,y,h]),E=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),D=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,v,h]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,D]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,p,g]),inside:x}],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,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[y]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,v]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,d]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(d),alias:"class-name",inside:x}}},"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,m,g,D,c.source,y,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,y]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(D),greedy:!0,inside:x},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 U=F+"|"+O,M=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[U]),Y=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),W=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,G=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,Y]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[W,G]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[W]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[Y]),inside:t.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var K=/:[^}\r\n]+/.source,ot=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),ft=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ot,K]),ct=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[U]),2),st=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ct,K]);function k(S,P){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[S]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[P,K]),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:k(ft,ot)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[st]),lookbehind:!0,greedy:!0,inside:k(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 y=f[p];if(y.type==="code"){var g=y.content[1],m=y.content[3];if(g&&m&&g.type==="code-language"&&m.type==="code-block"&&typeof g.content=="string"){var v=g.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(v=(/[a-z][\w-]*/i.exec(v)||[""])[0].toLowerCase());m.alias?typeof m.alias=="string"?m.alias=[m.alias,h]:m.alias.push(h):m.alias=[h]}}else c(y.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],y=/language-(.+)/.exec(d);if(y){c=y[1];break}}var g=t.languages[c];if(g)l.content=t.highlight(function(v){var h=v.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,w){var E;return(w=w.toLowerCase())[0]==="#"?(E=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(E)):u[w]||b})}(l.content),g,c);else if(c&&c!=="none"&&t.plugins.autoloader){var m="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=m,t.plugins.autoloader.loadLanguages(c,function(){var v=document.getElementById(m);v&&(v.innerHTML=t.highlight(v.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(/</g,"<").replace(/&/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var gyt=["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 x$(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,n){return e+x$(n)},0)}var rg,vyt=Lt.String,mi=function(t){if(kS(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vyt(t)},D$=function(){var t=co(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},PS=Lt.RegExp,v5=gn(function(){var t=PS("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),myt=v5||gn(function(){return!PS("a","y").sticky}),S$={BROKEN_CARET:v5||gn(function(){var t=PS("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:myt,UNSUPPORTED_Y:v5},yyt=Vo?Object.defineProperties:function(t,e){co(t);for(var n,r=iy(e),o=Lg(e),i=o.length,a=0;i>a;)oy.f(t,n=o[a++],r[n]);return t},byt=jh("document","documentElement"),A$=f$("IE_PROTO"),T4=function(){},O$=function(t){return"<script>"+t+"<\/script>"},DP=function(t){t.write(O$("")),t.close();var e=t.parentWindow.Object;return t=null,e},Rg=function(){try{rg=new ActiveXObject("htmlfile")}catch(r){}var t,e;Rg=typeof document!="undefined"?document.domain&&rg?DP(rg):((e=xS("iframe")).style.display="none",byt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(O$("document.F=Object")),t.close(),t.F):DP(rg);for(var n=X1.length;n--;)delete Rg.prototype[X1[n]];return Rg()};OS[A$]=!0;var SP,F4,wyt=Object.create||function(t,e){var n;return t!==null?(T4.prototype=co(t),n=new T4,T4.prototype=null,n[A$]=t):n=Rg(),e===void 0?n:yyt(n,e)},Eyt=Lt.RegExp,Cyt=gn(function(){var t=Eyt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),xyt=Lt.RegExp,Dyt=gn(function(){var t=xyt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Syt=h5.get,Ayt=bS("native-string-replace",String.prototype.replace),Z1=RegExp.prototype.exec,m5=Z1,Oyt=ne("".charAt),kyt=ne("".indexOf),Byt=ne("".replace),_4=ne("".slice),P4=(F4=/b*/g,an(Z1,SP=/a/,"a"),an(Z1,F4,"a"),SP.lastIndex!==0||F4.lastIndex!==0),AP=S$.BROKEN_CARET,j4=/()??/.exec("")[1]!==void 0;(P4||j4||AP||Cyt||Dyt)&&(m5=function(t){var e,n,r,o,i,a,u,s=this,l=Syt(s),c=mi(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=an(m5,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=AP&&s.sticky,y=an(D$,s),g=s.source,m=0,v=c;if(d&&(y=Byt(y,"y",""),kyt(y,"g")===-1&&(y+="g"),v=_4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Oyt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",y)),j4&&(n=new RegExp("^"+g+"$(?!\\s)",y)),P4&&(r=s.lastIndex),o=an(Z1,d?n:s,v),d?o?(o.input=_4(o.input,m),o[0]=_4(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:P4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),j4&&o&&o.length>1&&an(Ayt,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=wyt(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Wp=m5;ay({target:"RegExp",proto:!0,forced:/./.exec!==Wp},{exec:Wp});var jS=Function.prototype,OP=jS.apply,Tyt=jS.bind,kP=jS.call,Fyt=typeof Reflect=="object"&&Reflect.apply||(Tyt?kP.bind(OP):function(){return kP.apply(OP,arguments)}),_yt=eu("species"),N4=RegExp.prototype,Pyt=eu("match"),jyt=Lt.TypeError,Nyt=eu("species"),Iyt=ne("".charAt),BP=ne("".charCodeAt),Lyt=ne("".slice),Ryt=function(t){return function(e,n){var r,o,i=mi(gc(e)),a=TS(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=BP(i,a))<55296||r>56319||a+1===u||(o=BP(i,a+1))<56320||o>57343?t?Iyt(i,a):r:t?Lyt(i,a,a+2):o-56320+(r-55296<<10)+65536}},Myt=Ryt(!0),zyt=function(t,e,n){return e+(n?Myt(t,e).length:1)},$yt=Lt.Array,Hyt=Math.max,TP=function(t,e,n){for(var r,o,i,a,u=FS(t),s=g5(e,u),l=g5(n===void 0?u:n,u),c=$yt(Hyt(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=t[s],(a=DS(o))in r?oy.f(r,a,SS(0,i)):r[a]=i;return c.length=f,c},Uyt=Lt.TypeError,FP=function(t,e){var n=t.exec;if(jn(n)){var r=an(n,t,e);return r!==null&&co(r),r}if(Na(t)==="RegExp")return an(Wp,t,e);throw Uyt("RegExp#exec called on incompatible receiver")},pl=S$.UNSUPPORTED_Y,Vyt=Math.min,k$=[].push,Wyt=ne(/./.exec),hl=ne(k$),ld=ne("".slice);(function(t,e,n,r){var o=eu(t),i=!gn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!gn(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[_yt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ne(/./[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,y){var g,m,v=mi(gc(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(d===void 0)return[v];if(!to(g=d)||!((m=g[Pyt])!==void 0?m:Na(g)=="RegExp"))return an(c,v,d,h);for(var b,w,E,D=[],x=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,F=new RegExp(d.source,x+"g");(b=an(Wp,F,v))&&!((w=F.lastIndex)>O&&(hl(D,ld(v,O,b.index)),b.length>1&&b.index<v.length&&Fyt(k$,D,TP(b,1)),E=b[0].length,O=w,D.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===v.length?!E&&Wyt(F,"")||hl(D,""):hl(D,ld(v,O)),D.length>h?TP(D,0,h):D}:"0".split(void 0,0).length?function(d,y){return d===void 0&&y===0?[]:an(c,this,d,y)}:c,[function(d,y){var g=gc(this),m=d==null?void 0:c$(d,l);return m?an(m,d,g,y):an(p,mi(g),d,y)},function(d,y){var g=co(this),m=mi(d),v=f(p,g,m,y,p!==c);if(v.done)return v.value;var h=function(Y,W){var G,K=co(Y).constructor;return K===void 0||(G=co(K)[Nyt])==null?W:function(ot){if(m$(ot))return ot;throw jyt(s$(ot)+" is not a constructor")}(G)}(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(pl?"g":"y"),E=new h(pl?"^(?:"+g.source+")":g,w),D=y===void 0?4294967295:y>>>0;if(D===0)return[];if(m.length===0)return FP(E,m)===null?[m]:[];for(var x=0,O=0,F=[];O<m.length;){E.lastIndex=pl?0:O;var R,U=FP(E,pl?ld(m,O):m);if(U===null||(R=Vyt(h$(E.lastIndex+(pl?O:0)),m.length))===x)O=zyt(m,O,b);else{if(hl(F,ld(m,x,O)),F.length===D)return F;for(var M=1;M<=U.length-1;M++)if(hl(F,U[M]),F.length===D)return F;O=x=R}}return hl(F,ld(m,x)),F}]}(o,""[t],function(l,c,f,p,d){var y=ne(l),g=c.exec;return g===Wp||g===N4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Vp(String.prototype,t,s[0]),Vp(N4,o,s[1])}r&&vc(N4[o],"sham",!0)})("split",0,!!gn(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"}),pl),ay({global:!0},{globalThis:Lt}),Rr&&(B.fn.attr=Rr);var Gyt=p$.PROPER,y5=RegExp.prototype,B$=y5.toString,qyt=ne(D$),Kyt=gn(function(){return B$.call({source:"a",flags:"b"})!="/a/b"}),Yyt=Gyt&&B$.name!="toString";(Kyt||Yyt)&&Vp(RegExp.prototype,"toString",function(){var t=co(this),e=mi(t.source),n=t.flags;return"/"+e+"/"+mi(n===void 0&&u$(y5,t)&&!("flags"in y5)?qyt(t):n)},{unsafe:!0});var Xyt=function(){function t(){this.title=nt("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||!dt.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()};N.setNodes(e,r,{match:function(o){return A.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return dt.isElement(r)?r.type!=="pre"?null:n:null},t}(),Zyt={renderStyle:function(t,e){var n=t,r=e,o="";return gyt.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(!dt.isElement(e)||A.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 Xyt},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>"}}]},Jyt=/"/g,Qyt=ne("".replace);ay({target:"String",proto:!0,forced:gn(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=mi(gc(this)),r="<a",(r+=' name="'+Qyt(mi(e),Jyt,""")+'"')+">"+n+"</a>";var e,n,r}});var T$=function(t){var e,n,r,o=function(v,h){var b=typeof Symbol=="function"&&v[Symbol.iterator];if(!b)return v;var w,E,D=b.call(v),x=[];try{for(;(h===void 0||h-- >0)&&!(w=D.next()).done;)x.push(w.value)}catch(O){E={error:O}}finally{try{w&&!w.done&&(b=D.return)&&b.call(D)}finally{if(E)throw E.error}}return x}(t,2),i=o[0],a=o[1],u=[],s=function(v){if(!at.isText(v))return null;var h=A.getParentNode(null,v);if(h&&A.getNodeType(h)==="code"){var b=A.getParentNode(null,h);if(b&&A.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(v,h){if(!h)return[];var b=xP.languages[h];return b?xP.tokenize(v.text,b):[]}(i,c),p=0;try{for(var d=function(v){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&v[h],w=0;if(b)return b.call(v);if(v&&typeof v.length=="number")return{next:function(){return v&&w>=v.length&&(v=void 0),{value:v&&v[w++],done:!v}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),y=d.next();!y.done;y=d.next()){var g=y.value,m=p+x$(g);typeof g!="string"&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:p},r.focus={path:a,offset:m},r)),p=m}}catch(v){e={error:v}}finally{try{y&&!y.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return u},ke=function(){return ke=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},ke.apply(this,arguments)},fn=function(){function t(){throw new Error(`\u4E0D\u80FD\u5B9E\u4F8B\u5316
- Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=ke(ke({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=ke(ke({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=ke(ke({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=ke(ke({},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=Br(Br({},u),o||{});if(pp[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");pp[i]=a,function(l,c){c!=null&&(eI[l]=c)}(i,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;AI[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){d6.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;nI[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){i6.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){wI.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;Nv[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){GC.push(n)})(e)},t.registerModule=function(e){Du(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function Du(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 fn.registerMenu(c)}),n&&n.forEach(function(c){return fn.registerRenderElem(c)}),r&&fn.registerRenderStyle(r),o&&o.forEach(function(c){return fn.registerElemToHtml(c)}),i&&fn.registerStyleToHtml(i),a&&a.forEach(function(c){return fn.registerPreParseHtml(c)}),u&&u.forEach(function(c){return fn.registerParseElemHtml(c)}),s&&fn.registerParseStyleHtml(s),l&&fn.registerPlugin(l)}ist.forEach(function(t){return Du(t)}),Du(Ict),Du(spt),Du(mgt),Du(smt),Du(Zyt);var F$='<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>',_$={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"]}},tbt={hoverbarKeys:ke(ke({},_$),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};fn.setEditorConfig(ke(ke({},tbt),{decorate:T$}));var ebt={hoverbarKeys:_$};fn.setSimpleEditorConfig(ke(ke({},ebt),{decorate:T$}));var nbt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:nt("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:nt("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:nt("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:nt("editor.image"),iconSvg:F$,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:nt("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"]};fn.setToolbarConfig(nbt);var rbt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:nt("editor.image"),iconSvg:F$,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function obt(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"?fn.simpleEditorConfig:fn.editorConfig,c=ke(ke({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return cet({selector:n,config:ke(ke(ke({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:fn.plugins})}function ibt(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"?fn.simpleToolbarConfig:fn.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(m,v){return xI(m,"data-w-e-toolbar",v)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var y=Br({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},d||{}),g=new get(f,y);return LC.set(g,l),Cm.set(l,g),g}(n,{selector:e,config:ke(ke({},u),o)});return s}fn.setSimpleToolbarConfig(rbt);const abt="_editorWrapper_1x387_1",ubt={editorWrapper:abt},sbt=()=>{let t=new Date().getTime();return window.performance&&typeof window.performance.now=="function"&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n=="x"?r:r&3|8).toString(16)})},lbt=mc({name:"editor",props:{value:{type:String,default:""},editorType:{type:String,default:"default"},placeholder:{type:String,default:"\u8BF7\u8F93\u5165\u5185\u5BB9..."},disabled:{type:Boolean,default:!1},height:{type:Number,default:300},bucketName:{type:String,default:"gyt"},maxLength:{type:Number,default:null},id:{type:String,default:""},excludeKeys:{type:Array,default:[]}},emits:["update:value"],setup(t,{slots:e,attrs:n,emit:r}){eo({policy:"",signature:"",key:"",KSSAccessKeyId:"",acl:"public-read",name:""});const o=t.id||sbt(),i=jo(!1),a=`https://${t.bucketName}.ks3-cn-beijing.ksyuncs.com/`,u=jo(!1),s=$S(),l=$S(),c={placeholder:t.placeholder,maxLength:t.maxLength,onChange(g){const m=g.getHtml();g.isEmpty()?r("update:value",""):(r("update:value",m),u.value=!0)},MENU_CONF:[]};K$(()=>t.value,g=>{u.value||s.value.setHtml(g)}),c.MENU_CONF.uploadImage={customUpload(g,m){return bn(this,null,function*(){f(g,m)})}},c.MENU_CONF.uploadVideo={customUpload(g,m){return bn(this,null,function*(){f(g,m)})}};const f=(g,m)=>bn(this,null,function*(){try{i.value=!0;const v=g.name.slice(g.name.lastIndexOf(".")),b=`${aH().format("MM")}/${new Date().getTime()+v}`,w={filename:b,bucketName:t.bucketName,postData:{filename:b,acl:"public-read",key:b,unknowValueField:[]}},{data:E}=yield uH(w),D={policy:E.policy,signature:E.signature,key:b,acl:"public-read",KSSAccessKeyId:E.kssAccessKeyId,name:b,file:g},x=yield sH(a,D);console.log(x,"res"),m&&m(x),i.value=!1}catch(v){i.value=!1}}),p={modalAppendToBody:!0,excludeKeys:["group-image","group-video","codeBlock","fullScreen","code","insertLink","todo",...t.excludeKeys],insertKeys:{index:23,keys:["uploadImage","uploadVideo"]}};return qd(()=>{s.value=obt({selector:`#editor-container${o}`,html:t.value||"<p></p>",config:c,mode:t.editorType}),l.value=ibt({editor:s.value,selector:`#toolbar-container${o}`,config:p,mode:"default"}),t.disabled&&s.value.disable(),s.value.on("modalOrPanelShow",g=>{if(g.type!=="modal")return;const{$elem:m}=g;m[0].style.left="50%",m[0].style.top="50%",m[0].style.marginLeft="-150px",m[0].style.marginTop="-150px"})}),()=>$(Mg,null,[$(w5,{show:i.value},{default:()=>[$("div",{id:`editor\u2014wrapper${o}`,class:[ubt.editorWrapper,"editorContainer"]},[$("div",{id:`toolbar-container${o}`},null),$("div",{id:`editor-container${o}`,style:{height:t.height+"px"}},null)])]})])}}),cbt=mc({name:"addMaterial",emits:["handleSuccess","close"],props:["item","isLook","categoryList"],setup(t,{emit:e}){const n=J1(),r=jo(!1),o=jo(null),i=jo(),a=eo({name:"",sn:"",materialCategoryId:null,type:Yr.\u89C6\u9891,checkItem:null,materialRefs:[],content:"",courseTypeCode:[],enableFlag:!0});qd(()=>bn(this,null,function*(){var g;if((g=t==null?void 0:t.item)!=null&&g.id){r.value=!0;const m=yield z$(t.item.id);(m==null?void 0:m.code)==200&&(Object.keys(a).forEach(v=>{var h,b;(h=m==null?void 0:m.data)!=null&&h[v]&&(v==="adviseStudyTimeSecond"?a[v]=m.data[v]+"":v==="courseTypeCode"?a[v]=((b=m.data[v])==null?void 0:b.split(","))||[]:a[v]=m.data[v]),v==="enableFlag"&&(a[v]=m.data[v])}),a.type==="SONG"&&(d.music={name:m.data.contentDesc}),console.log("\u{1F680} ~ saveModel",a)),r.value=!1}}));function u(g,m){return m?!0:a.type===Yr.\u89C6\u9891?new Error("\u8BF7\u4E0A\u4F20\u89C6\u9891"):a.type===Yr.\u56FE\u7247?new Error("\u8BF7\u4E0A\u4F20\u56FE\u7247"):new Error("\u8BF7\u9009\u62E9\u66F2\u76EE")}function s(g,m){return m?/^\+?[1-9]\d*$/.test(m)?!0:new Error("\u8BF7\u586B\u5199\u6B63\u786E\u7684\u65F6\u95F4"):new Error("\u8BF7\u586B\u5199\u65F6\u95F4")}function l(g,m){return Array.isArray(m)&&!m.length?new Error("\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B"):!0}const c={name:[{required:!0,message:"\u8BF7\u586B\u5199\u7D20\u6750\u540D\u79F0",trigger:["blur","change"]}],sn:[{required:!0,message:"\u5206\u6BB5\u7F16\u53F7",trigger:["blur","change"]}],materialCategoryId:[{required:!0,message:"\u8BF7\u9009\u62E9\u7D20\u6750\u5206\u7C7B",trigger:["blur","change"]}],adviseStudyTimeSecond:[{validator:s,trigger:["change"]}],content:[{validator:u,trigger:["blur","change","input"]}],courseTypeCode:[{validator:l,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B",trigger:["blur","change"]}]},f=()=>{var g;(g=o.value)==null||g.validate(m=>bn(this,null,function*(){var v,h;if(!m){const b=Vt(Z({},a),{courseTypeCode:((v=a.courseTypeCode)==null?void 0:v.join(","))||""});let w=null;(h=t==null?void 0:t.item)!=null&&h.id?(b.id=t.item.id,w=yield $$(b)):w=yield H$(b),(w==null?void 0:w.code)==200?(n.success("\u4FDD\u5B58\u6210\u529F"),e("handleSuccess")):n.warning("\u4FDD\u5B58\u5931\u8D25")}}))},p=()=>{a.content="",d.music=""},d=eo({show:!1,music:"",type:""}),y=g=>{var m;d.music=g,a.content=g.id,d.show=!1,(m=i.value)==null||m.restoreValidation()};return()=>$("div",null,[$(w5,{show:r.value},{default:()=>[$(PP,{disabled:!!t.isLook,ref:o,onSubmit:f,labelPlacement:"top",model:a,rules:c,"require-mark-placement":"left"},{default:()=>[$(Wn,{justify:"space-between","item-style":{flex:1}},{default:()=>[$(ze,{label:"\u7D20\u6750\u540D\u79F0",path:"name"},{default:()=>[$(ua,{value:a.name,"onUpdate:value":g=>a.name=g},null)]}),$(ze,{label:"\u5206\u6BB5\u7F16\u53F7",path:"sn"},{default:()=>[$(ua,{value:a.sn,"onUpdate:value":g=>a.sn=g},null)]})]}),$(Wn,{justify:"space-between","item-style":{flex:1}},{default:()=>[$(ze,{label:"\u7D20\u6750\u5206\u7C7B",path:"materialCategoryId"},{default:()=>[$(E5,{value:a.materialCategoryId,"onUpdate:value":g=>a.materialCategoryId=g,placeholder:"\u8BF7\u9009\u62E9\u7D20\u6750\u5206\u7C7B",options:t.categoryList,checkStrategy:"child",childrenField:"subMaterialCategoryList",expandTrigger:"hover",valueField:"id",labelField:"name"},null)]})]}),$(Wn,{justify:"space-between","item-style":{flex:1}},{default:()=>[$(ze,{label:"\u8BFE\u7A0B\u7C7B\u578B",path:"courseTypeCode"},{default:()=>[$(og,{multiple:!0,clearable:!0,disabled:!!(t!=null&&t.item),value:a.courseTypeCode,onUpdateValue:g=>{a.courseTypeCode=g},options:RP},null)]}),$(ze,{label:"\u662F\u5426\u542F\u7528"},{default:()=>[$(Y$,{value:a.enableFlag,"onUpdate:value":g=>a.enableFlag=g},null)]})]}),$(ze,{label:"\u7D20\u6750\u7C7B\u578B",required:!0,labelPlacement:"left",path:"type"},{default:()=>[$(X$,{value:a.type,"onUpdate:value":g=>a.type=g,onUpdateValue:()=>p()},{default:()=>[$(sy,{value:Yr.\u89C6\u9891},{default:()=>[je("\u89C6\u9891")]}),$(sy,{value:Yr.\u56FE\u7247},{default:()=>[je("\u56FE\u7247")]}),$(sy,{value:Yr.\u66F2\u76EE},{default:()=>[je("\u66F2\u76EE")]})]})]}),$(Wn,{justify:"space-between","item-style":{flex:1}},{default:()=>[$(ze,{label:"\u4E0A\u4F20\u7D20\u6750",path:"content",ref:i,required:!0},{default:()=>[a.type===Yr.\u66F2\u76EE?$(Wn,null,{default:()=>{var g;return[$(rn,{disabled:t.isLook,type:"primary",onClick:()=>{d.show=!0,d.type="upload"}},{default:()=>[je("\u9009\u62E9\u66F2\u8C31")]}),d.music&&$(ua,{disabled:!0,value:(g=d.music)==null?void 0:g.name},null)]}}):$(iH,{accept:a.type===Yr.\u89C6\u9891?"video/*":a.type===Yr.\u56FE\u7247?"image/*":"",path:"courseware/",listType:a.type===Yr.\u56FE\u7247?"image-card":"image",fileList:a.content,"onUpdate:fileList":g=>a.content=g,size:1024,disabled:t.isLook,onReadFileInputEventAsArrayBuffer:()=>{var g;(g=i.value)==null||g.restoreValidation()}},null)]}),a.type!=="SONG"&&$(ze,{label:"\u5173\u8054\u66F2\u76EE"},{default:()=>[$(Wn,null,{default:()=>[$(rn,{disabled:t.isLook,type:"primary",onClick:()=>{d.show=!0,d.type="correlation"}},{default:()=>[je("\u9009\u62E9\u66F2\u8C31")]}),a.materialRefs.length>0&&$(Z$,null,{default:()=>{var g;return[$(ua,{disabled:!0,value:(g=a.materialRefs[0])==null?void 0:g.resourceName},null),$(rn,{type:"primary",disabled:t.isLook,onClick:()=>{a.materialRefs=[]}},{default:()=>[je("\u5220\u9664")]})]}})]})]})]}),$(ze,{label:"\u68C0\u67E5\u4E8B\u9879",labelPlacement:"left",path:"checkItem"},{default:()=>[$(lbt,{value:a.checkItem,"onUpdate:value":g=>a.checkItem=g,maxLength:1e3,editorType:"simple",bucketName:"news-info",excludeKeys:["emotion","insertTable","uploadImage","uploadVideo","bulletedList","numberedList","blockquote","divider"]},null)]})]}),t.isLook?"":$(Wn,{justify:"end"},{default:()=>[$(rn,{type:"default",onClick:()=>e("close")},{default:()=>[je("\u53D6\u6D88")]}),$(rn,{type:"primary",onClick:f},{default:()=>[je("\u4FDD\u5B58")]})]})]}),$(J$,{width:"80vw",height:"100vh",show:d.show,"onUpdate:show":g=>d.show=g},{default:()=>[$(Q$,{title:"\u9009\u62E9\u66F2\u8C31",closable:!0},{default:()=>[$(q$,{type:d.type,onSelect:g=>{console.log(d.type,g),d.type==="upload"?y(g):(a.materialRefs=[{resourceId:g.id,knowledgeType:"MUSIC",resourceName:g.name}],d.show=!1)}},null)]})]})])}}),b5={VIDEO:"\u89C6\u9891",IMG:"\u56FE\u7247",SONG:"\u66F2\u76EE"},fbt=Object.keys(b5).map(t=>({label:b5[t],value:t})),dbt=mc({name:"material-list",setup(t){const e=jP(),n=J1(),r=eo({loading:!1,pagination:{page:1,rows:10,pageTotal:10},visiableCity:!1,dataList:[],cityType:"add",materail:null,isLook:!1,employeeList:[]}),o=eo({keyword:null,time:null,containMusic:null,courseTypeCode:null,materialCategoryId:null,type:null}),i=LP(),a=eo({list:[],index:-1}),u=()=>bn(this,null,function*(){try{const{data:v}=yield U$({page:1});a.list=(v==null?void 0:v.rows)||[]}catch(v){}}),s=eo({list:[]}),l=()=>bn(this,null,function*(){try{const{data:v}=yield cH({page:1,rows:1e3});s.list=(v==null?void 0:v.rows)||[]}catch(v){}});tH("subjects",s),qd(()=>{console.log(i.query,"route.query"),i.query.id&&(o.keyword=i.query.id),u(),l()});const c=()=>[{title:"\u7D20\u6750\u540D\u79F0",key:"name",render(v){return $(Hc,{labelPlacement:"left",column:1},{default:()=>[$(wo,{label:"\u7D20\u6750\u540D\u79F0"},{default:()=>[v.name]}),$(wo,{label:"\u7D20\u6750\u7F16\u53F7"},{default:()=>[v.id]}),$(wo,{label:"\u7D20\u6750\u5206\u7C7B"},{default:()=>[$(US,{content:v.materialCategoryName},null)]})]})}},{title:"\u7D20\u6750\u4FE1\u606F",key:"sn",render(v){return $(Hc,{labelPlacement:"left",column:1},{default:()=>[$(wo,{label:"\u5206\u6BB5\u7F16\u53F7"},{default:()=>[v.sn]}),$(wo,{label:"\u7D20\u6750\u7C7B\u578B"},{default:()=>[b5[v.type]]})]})}},{title:"\u8BFE\u7A0B\u4FE1\u606F",key:"type",render(v){return $(Hc,{labelPlacement:"left",column:1},{default:()=>[$(wo,{label:"\u8BFE\u7A0B\u7C7B\u578B"},{default:()=>[v.courseTypeName]})]})}},{title:"\u5173\u8054\u66F2\u76EE",key:"type",render(v){return $(Hc,{labelPlacement:"left",column:1},{default:()=>[$(wo,{label:"\u66F2\u76EE\u540D\u79F0"},{default:()=>{var h,b;return[$(US,{content:((b=(h=v.materialRef)==null?void 0:h.relateMaterialInfo)==null?void 0:b.name)||"--"},null)]}}),$(wo,{label:"\u66F2\u76EE\u72B6\u6001"},{default:()=>{var h,b,w;return[(h=v.materialRef)!=null&&h.relateMaterialInfo?(w=(b=v.materialRef)==null?void 0:b.relateMaterialInfo)!=null&&w.status?"\u542F\u7528":"\u505C\u7528":"--"]}})]})}},{title:"\u64CD\u4F5C\u4FE1\u606F",key:"createTime",render(v){return $(Hc,{labelPlacement:"left",column:1},{default:()=>[$(wo,{label:"\u4E0A\u4F20\u4EBA"},{default:()=>[v.operatorName]}),$(wo,{label:"\u4E0A\u4F20\u65F6\u95F4"},{default:()=>[v.createTime?v.createTime:"--"]})]})}},{title:"\u72B6\u6001",key:"delFlag",render(v){return $(Mg,null,[$(nH,{type:v.enableFlag?"success":"warning"},{default:()=>[v.enableFlag?"\u542F\u7528":"\u505C\u7528"]})])}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",width:160,render(v){return $(Wn,null,{default:()=>[$(rn,{type:"primary",text:!0,onClick:()=>{r.isLook=!0,r.materail=v,r.visiableCity=!0}},{default:()=>[je("\u67E5\u770B")]}),ci($(rn,{type:"primary",text:!0,onClick:()=>{r.cityType="update",r.materail=v,r.visiableCity=!0}},{default:()=>[je("\u4FEE\u6539")]}),[[fi("auth"),"material/update1599948375910109186"]]),ci($(rn,{type:"primary",text:!0,disabled:v.enableFlag,onClick:()=>m(v)},{default:()=>[je("\u5220\u9664")]}),[[fi("auth"),"material/remove1599948195949301762"]])]})}}],f=jo(),p=()=>{r.pagination.page=1,g()},d=()=>{var v;(v=f.value)==null||v.submit()},y=()=>{var v;(v=f.value)==null||v.reset()},g=()=>bn(this,null,function*(){try{r.loading=!0;const v=o,{time:h}=v,b=zS(v,["time"]),w=Vt(Z(Z({},b),lH(h,["startTime","endTime"])),{page:r.pagination.page,rows:r.pagination.rows}),{data:E}=yield V$(w);r.loading=!1,r.pagination.pageTotal=Number(E.total);const D=E.rows||[];D.forEach(x=>{x.materialRefs&&x.materialRefs.length>0?x.materialRef=x.materialRefs[0]:x.materialRef={}}),r.dataList=D||[]}catch(h){r.loading=!1}}),m=v=>bn(this,null,function*(){e.warning({title:"\u8B66\u544A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u6B64\u7D20\u6750?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>bn(this,null,function*(){(yield W$(v.id)).data&&(p(),n.success("\u5220\u9664\u6210\u529F"))})})});return qd(()=>{g()}),()=>$(Mg,null,[$(_P,{ref:f,"label-width":"",model:o,onSubmit:p,onSetModel:v=>Object.assign(o,v),saveKey:"material-key"},{default:()=>[$(ze,{label:"\u641C\u7D22\u6761\u4EF6",path:"keyword"},{default:()=>[$(ua,{value:o.keyword,"onUpdate:value":v=>o.keyword=v,onKeydown:v=>{v.code==="Enter"&&p()},placeholder:"\u7D20\u6750\u540D\u79F0/\u7F16\u53F7",clearable:!0},null)]}),$(ze,{label:"\u7D20\u6750\u5206\u7C7B",path:"materialCategoryId"},{default:()=>[$(E5,{value:o.materialCategoryId,"onUpdate:value":v=>o.materialCategoryId=v,options:a.list,checkStrategy:"child",childrenField:"subMaterialCategoryList",expandTrigger:"hover",valueField:"id",labelField:"name",clearable:!0,filterable:!0},null)]}),$(ze,{label:"\u7D20\u6750\u7C7B\u578B",path:"type"},{default:()=>[$(og,{clearable:!0,value:o.type,"onUpdate:value":v=>o.type=v,options:fbt},null)]}),$(ze,{label:"\u8BFE\u7A0B\u7C7B\u578B",path:"courseTypeCode"},{default:()=>[$(og,{clearable:!0,value:o.courseTypeCode,"onUpdate:value":v=>o.courseTypeCode=v,options:RP},null)]}),$(ze,{label:"\u5173\u8054\u66F2\u76EE",path:"containMusic"},{default:()=>[$(og,{clearable:!0,value:o.containMusic,"onUpdate:value":v=>o.containMusic=v,options:[{label:"\u5173\u8054",value:!0},{label:"\u4E0D\u5173\u8054",value:!1}]},null)]}),$(ze,{label:"\u641C\u7D22\u65F6\u95F4",path:"time"},{default:()=>[$(eH,{class:vH.datepicker,value:o.time,"onUpdate:value":v=>o.time=v,type:"daterange",clearable:!0},null)]}),$(ze,null,{default:()=>[$(Wn,null,{default:()=>[$(rn,{type:"primary",onClick:d},{default:()=>[je("\u641C\u7D22")]}),$(rn,{type:"default",onClick:y},{default:()=>[je("\u91CD\u7F6E")]})]})]})]}),$(Wn,{style:{paddingBottom:"12px"}},{default:()=>[ci($(rn,{type:"primary",onClick:()=>{r.cityType="add",r.materail=null,r.visiableCity=!0}},{default:()=>[je("\u6DFB\u52A0\u7D20\u6750")]}),[[fi("auth"),"material/save1599948016487616513"]])]}),$(NP,{loading:r.loading,columns:c(),data:r.dataList},null),$(oH,{page:r.pagination.page,"onUpdate:page":v=>r.pagination.page=v,pageSize:r.pagination.rows,"onUpdate:pageSize":v=>r.pagination.rows=v,pageTotal:r.pagination.pageTotal,"onUpdate:pageTotal":v=>r.pagination.pageTotal=v,onList:g,sync:!0,saveKey:"material-key"},null),$(IP,{show:r.visiableCity,"onUpdate:show":v=>r.visiableCity=v,preset:"dialog",showIcon:!1,title:r.cityType==="add"?"\u6DFB\u52A0\u7D20\u6750":"\u4FEE\u6539\u7D20\u6750",style:{width:"1000px"},onClose:()=>{r.isLook=!1}},{default:()=>[r.visiableCity&&$(cbt,{item:r.materail,isLook:r.isLook,categoryList:a.list,onClose:()=>{r.visiableCity=!1},onHandleSuccess:()=>{r.visiableCity=!1,r.materail||(r.pagination.page=1),g()}},null)]})])}}),Ibt=mc({name:"educational-manage",setup(){const t=eo({tabName:"MaterialList"}),e=LP();fH(r=>{r.form.tabName&&(t.tabName=r.form.tabName)});const n=r=>{dH(r,"tabName",e)};return()=>$("div",{class:"system-menu-container"},[$("div",{class:["section-container"],style:"padding-top: 0"},[$(rH,{size:"large",value:t.tabName,"onUpdate:value":[r=>t.tabName=r,r=>n(r)]},{default:()=>[ci($(HS,{name:"MaterialList",tab:"\u7D20\u6750\u5217\u8868"},{default:()=>[$(dbt,null,null)]}),[[fi("auth"),"material/page1750897012676493314"]]),ci($(HS,{name:"CategoryList",tab:"\u7D20\u6750\u5206\u7C7B"},{default:()=>[$(hH,null,null)]}),[[fi("auth"),"materialCategory/page1608008438042112001"]])]})])])}});export{Ibt as default};
|