@wangeditor-next/editor 5.3.15 → 5.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -21
- package/dist/css/style.css +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t={exports:{}};return e(t,t.exports),t.exports}var r,o,i=function(e){return e&&e.Math==Math&&e},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=Function.prototype,s=u.apply,l=u.bind,c=u.call,f="object"==typeof Reflect&&Reflect.apply||(l?c.bind(s):function(){return c.apply(s,arguments)}),d=Function.prototype,p=d.bind,h=d.call,v=p&&p.bind(h),g=p?function(e){return e&&v(h,e)}:function(e){return e&&function(){return h.apply(e,arguments)}},y=function(e){return"function"==typeof e},m=function(e){try{return!!e()}catch(e){return!0}},b=!m((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=Function.prototype.call,w=E.bind?E.bind(E):function(){return E.apply(E,arguments)},S={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,D=C&&!S.call({1:2},1)?function(e){var t=C(this,e);return!!t&&t.enumerable}:S,A={f:D},x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},O=g({}.toString),T=g("".slice),N=function(e){return T(O(e),8,-1)},k=a.Object,B=g("".split),I=m((function(){return!k("z").propertyIsEnumerable(0)}))?function(e){return"String"==N(e)?B(e,""):k(e)}:k,F=a.TypeError,P=function(e){if(null==e)throw F("Can't call method on "+e);return e},R=function(e){return I(P(e))},_=function(e){return"object"==typeof e?null!==e:y(e)},L={},j=function(e){return y(e)?e:void 0},M=function(e,t){return arguments.length<2?j(L[e])||j(a[e]):L[e]&&L[e][t]||a[e]&&a[e][t]},z=g({}.isPrototypeOf),H=M("navigator","userAgent")||"",U=a.process,$=a.Deno,V=U&&U.versions||$&&$.version,G=V&&V.v8;G&&(o=(r=G.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&H&&(!(r=H.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=H.match(/Chrome\/(\d+)/))&&(o=+r[1]);var W,q=o,K=!!Object.getOwnPropertySymbols&&!m((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&q&&q<41})),Y=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=a.Object,Z=Y?function(e){return"symbol"==typeof e}:function(e){var t=M("Symbol");return y(t)&&z(t.prototype,X(e))},J=a.String,Q=function(e){try{return J(e)}catch(e){return"Object"}},ee=a.TypeError,te=function(e){if(y(e))return e;throw ee(Q(e)+" is not a function")},ne=function(e,t){var n=e[t];return null==n?void 0:te(n)},re=a.TypeError,oe=Object.defineProperty,ie=a["__core-js_shared__"]||function(e,t){try{oe(a,e,{value:t,configurable:!0,writable:!0})}catch(n){a[e]=t}return t}("__core-js_shared__",{}),ae=n((function(e){(e.exports=function(e,t){return ie[e]||(ie[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ue=a.Object,se=function(e){return ue(P(e))},le=g({}.hasOwnProperty),ce=Object.hasOwn||function(e,t){return le(se(e),t)},fe=0,de=Math.random(),pe=g(1..toString),he=function(e){return"Symbol("+(void 0===e?"":e)+")_"+pe(++fe+de,36)},ve=ae("wks"),ge=a.Symbol,ye=ge&&ge.for,me=Y?ge:ge&&ge.withoutSetter||he,be=function(e){if(!ce(ve,e)||!K&&"string"!=typeof ve[e]){var t="Symbol."+e;K&&ce(ge,e)?ve[e]=ge[e]:ve[e]=Y&&ye?ye(t):me(t)}return ve[e]},Ee=a.TypeError,we=be("toPrimitive"),Se=function(e,t){if(!_(e)||Z(e))return e;var n,r=ne(e,we);if(r){if(void 0===t&&(t="default"),n=w(r,e,t),!_(n)||Z(n))return n;throw Ee("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&y(n=e.toString)&&!_(r=w(n,e)))return r;if(y(n=e.valueOf)&&!_(r=w(n,e)))return r;if("string"!==t&&y(n=e.toString)&&!_(r=w(n,e)))return r;throw re("Can't convert object to primitive value")}(e,t)},Ce=function(e){var t=Se(e,"string");return Z(t)?t:t+""},De=a.document,Ae=_(De)&&_(De.createElement),xe=function(e){return Ae?De.createElement(e):{}},Oe=!b&&!m((function(){return 7!=Object.defineProperty(xe("div"),"a",{get:function(){return 7}}).a})),Te=Object.getOwnPropertyDescriptor,Ne=b?Te:function(e,t){if(e=R(e),t=Ce(t),Oe)try{return Te(e,t)}catch(e){}if(ce(e,t))return x(!w(A.f,e,t),e[t])},ke={f:Ne},Be=/#|\.prototype\./,Ie=function(e,t){var n=Pe[Fe(e)];return n==_e||n!=Re&&(y(t)?m(t):!!t)},Fe=Ie.normalize=function(e){return String(e).replace(Be,".").toLowerCase()},Pe=Ie.data={},Re=Ie.NATIVE="N",_e=Ie.POLYFILL="P",Le=Ie,je=g(g.bind),Me=function(e,t){return te(e),void 0===t?e:je?je(e,t):function(){return e.apply(t,arguments)}},ze=a.String,He=a.TypeError,Ue=function(e){if(_(e))return e;throw He(ze(e)+" is not an object")},$e=a.TypeError,Ve=Object.defineProperty,Ge=b?Ve:function(e,t,n){if(Ue(e),t=Ce(t),Ue(n),Oe)try{return Ve(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $e("Accessors not supported");return"value"in n&&(e[t]=n.value),e},We={f:Ge},qe=b?function(e,t,n){return We.f(e,t,x(1,n))}:function(e,t,n){return e[t]=n,e},Ke=ke.f,Ye=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return f(e,this,arguments)};return t.prototype=e.prototype,t},Xe=function(e,t){var n,r,o,i,u,s,l,c,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?a:p?a[f]:(a[f]||{}).prototype,m=d?L:L[f]||qe(L,f,{})[f],b=m.prototype;for(o in t)n=!Le(d?o:f+(p?".":"#")+o,e.forced)&&v&&ce(v,o),u=m[o],n&&(s=e.noTargetGet?(c=Ke(v,o))&&c.value:v[o]),i=n&&s?s:t[o],n&&typeof u==typeof i||(l=e.bind&&n?Me(i,a):e.wrap&&n?Ye(i):h&&y(i)?g(i):i,(e.sham||i&&i.sham||u&&u.sham)&&qe(l,"sham",!0),qe(m,o,l),h&&(ce(L,r=f+"Prototype")||qe(L,r,{}),qe(L[r],o,i),e.real&&b&&!b[o]&&qe(b,o,i)))},Ze=ae("keys"),Je=function(e){return Ze[e]||(Ze[e]=he(e))},Qe=!m((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),et=Je("IE_PROTO"),tt=a.Object,nt=tt.prototype,rt=Qe?tt.getPrototypeOf:function(e){var t=se(e);if(ce(t,et))return t[et];var n=t.constructor;return y(n)&&t instanceof n?n.prototype:t instanceof tt?nt:null},ot=a.String,it=a.TypeError,at=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=g(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ue(n),function(e){if("object"==typeof e||y(e))return e;throw it("Can't set "+ot(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ut=Math.ceil,st=Math.floor,lt=function(e){var t=+e;return t!=t||0===t?0:(t>0?st:ut)(t)},ct=Math.max,ft=Math.min,dt=function(e,t){var n=lt(e);return n<0?ct(n+t,0):ft(n,t)},pt=Math.min,ht=function(e){return(t=e.length)>0?pt(lt(t),9007199254740991):0;var t},vt=function(e){return function(t,n,r){var o,i=R(t),a=ht(i),u=dt(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},gt={includes:vt(!0),indexOf:vt(!1)},yt={},mt=gt.indexOf,bt=g([].push),Et=function(e,t){var n,r=R(e),o=0,i=[];for(n in r)!ce(yt,n)&&ce(r,n)&&bt(i,n);for(;t.length>o;)ce(r,n=t[o++])&&(~mt(i,n)||bt(i,n));return i},wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],St=wt.concat("length","prototype"),Ct=Object.getOwnPropertyNames||function(e){return Et(e,St)},Dt={f:Ct},At={f:Object.getOwnPropertySymbols},xt=g([].concat),Ot=M("Reflect","ownKeys")||function(e){var t=Dt.f(Ue(e)),n=At.f;return n?xt(t,n(e)):t},Tt=Object.keys||function(e){return Et(e,wt)},Nt=b?Object.defineProperties:function(e,t){Ue(e);for(var n,r=R(t),o=Tt(t),i=o.length,a=0;i>a;)We.f(e,n=o[a++],r[n]);return e},kt=M("document","documentElement"),Bt=Je("IE_PROTO"),It=function(){},Ft=function(e){return"<script>"+e+"<\/script>"},Pt=function(e){e.write(Ft("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rt=function(){try{W=new ActiveXObject("htmlfile")}catch(e){}var e,t;Rt="undefined"!=typeof document?document.domain&&W?Pt(W):((t=xe("iframe")).style.display="none",kt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ft("document.F=Object")),e.close(),e.F):Pt(W);for(var n=wt.length;n--;)delete Rt.prototype[wt[n]];return Rt()};yt[Bt]=!0;var _t=Object.create||function(e,t){var n;return null!==e?(It.prototype=Ue(e),n=new It,It.prototype=null,n[Bt]=e):n=Rt(),void 0===t?n:Nt(n,t)},Lt=function(e,t,n){var r=Ce(t);r in e?We.f(e,r,x(0,n)):e[r]=n},jt=a.Array,Mt=Math.max,zt=function(e,t,n){for(var r=ht(e),o=dt(t,r),i=dt(void 0===n?r:n,r),a=jt(Mt(i-o,0)),u=0;o<i;o++,u++)Lt(a,u,e[o]);return a.length=u,a},Ht=g("".replace),Ut=g("".split),$t=g([].join),Vt=String(Error("zxcasd").stack),Gt=/\n\s*at [^:]*:[^\n]*/,Wt=Gt.test(Vt),qt=/@[^\n]*\n/.test(Vt)&&!/zxcasd/.test(Vt),Kt=function(e,t){if("string"!=typeof e)return e;if(Wt)for(;t--;)e=Ht(e,Gt,"");else if(qt)return $t(zt(Ut(e,"\n"),t),"\n");return e},Yt=function(e,t){_(t)&&"cause"in t&&qe(e,"cause",t.cause)},Xt={},Zt=be("iterator"),Jt=Array.prototype,Qt={};Qt[be("toStringTag")]="z";var en="[object z]"===String(Qt),tn=be("toStringTag"),nn=a.Object,rn="Arguments"==N(function(){return arguments}()),on=en?N:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=nn(e),tn))?n:rn?N(t):"Object"==(r=N(t))&&y(t.callee)?"Arguments":r},an=be("iterator"),un=function(e){if(null!=e)return ne(e,an)||ne(e,"@@iterator")||Xt[on(e)]},sn=a.TypeError,ln=function(e,t,n){var r,o;Ue(e);try{if(!(r=ne(e,"return"))){if("throw"===t)throw n;return n}r=w(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ue(r),n},cn=a.TypeError,fn=function(e,t){this.stopped=e,this.result=t},dn=fn.prototype,pn=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Me(t,c),v=function(e){return r&&ln(r,"normal",e),new fn(!0,e)},g=function(e){return f?(Ue(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=un(e)))throw cn(Q(e)+" is not iterable");if(function(e){return void 0!==e&&(Xt.Array===e||Jt[Zt]===e)}(o)){for(i=0,a=ht(e);a>i;i++)if((u=g(e[i]))&&z(dn,u))return u;return new fn(!1)}r=function(e,t){var n=arguments.length<2?un(e):t;if(te(n))return Ue(w(n,e));throw sn(Q(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=w(s,r)).done;){try{u=g(l.value)}catch(e){ln(r,"throw",e)}if("object"==typeof u&&u&&z(dn,u))return u}return new fn(!1)},hn=a.String,vn=function(e){if("Symbol"===on(e))throw TypeError("Cannot convert a Symbol value to a string");return hn(e)},gn=function(e,t){return void 0===e?arguments.length<2?"":t:vn(e)},yn=!m((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",x(1,7)),7!==e.stack)})),mn=be("toStringTag"),bn=a.Error,En=[].push,wn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=z(Sn,this);at?n=at(new bn(void 0),o?rt(this):Sn):(n=o?this:_t(Sn),qe(n,mn,"Error")),qe(n,"message",gn(t,"")),yn&&qe(n,"stack",Kt(n.stack,1)),Yt(n,r);var i=[];return pn(e,En,{that:i}),qe(n,"errors",i),n};at?at(wn,bn):function(e,t){for(var n=Ot(t),r=We.f,o=ke.f,i=0;i<n.length;i++){var a=n[i];ce(e,a)||r(e,a,o(t,a))}}(wn,bn);var Sn=wn.prototype=_t(bn.prototype,{constructor:x(1,wn),message:x(1,""),name:x(1,"AggregateError")});Xe({global:!0},{AggregateError:wn});var Cn=g(Function.toString);y(ie.inspectSource)||(ie.inspectSource=function(e){return Cn(e)});var Dn,An,xn,On=ie.inspectSource,Tn=a.WeakMap,Nn=y(Tn)&&/native code/.test(On(Tn)),kn=a.TypeError,Bn=a.WeakMap;if(Nn||ie.state){var In=ie.state||(ie.state=new Bn),Fn=g(In.get),Pn=g(In.has),Rn=g(In.set);Dn=function(e,t){if(Pn(In,e))throw new kn("Object already initialized");return t.facade=e,Rn(In,e,t),t},An=function(e){return Fn(In,e)||{}},xn=function(e){return Pn(In,e)}}else{var _n=Je("state");yt[_n]=!0,Dn=function(e,t){if(ce(e,_n))throw new kn("Object already initialized");return t.facade=e,qe(e,_n,t),t},An=function(e){return ce(e,_n)?e[_n]:{}},xn=function(e){return ce(e,_n)}}var Ln,jn,Mn,zn={set:Dn,get:An,has:xn,enforce:function(e){return xn(e)?An(e):Dn(e,{})},getterFor:function(e){return function(t){var n;if(!_(t)||(n=An(t)).type!==e)throw kn("Incompatible receiver, "+e+" required");return n}}},Hn=Function.prototype,Un=b&&Object.getOwnPropertyDescriptor,$n=ce(Hn,"name"),Vn={EXISTS:$n,PROPER:$n&&"something"===function(){}.name,CONFIGURABLE:$n&&(!b||b&&Un(Hn,"name").configurable)},Gn=function(e,t,n,r){r&&r.enumerable?e[t]=n:qe(e,t,n)},Wn=be("iterator"),qn=!1;[].keys&&("next"in(Mn=[].keys())?(jn=rt(rt(Mn)))!==Object.prototype&&(Ln=jn):qn=!0);var Kn=null==Ln||m((function(){var e={};return Ln[Wn].call(e)!==e}));Ln=Kn?{}:_t(Ln),y(Ln[Wn])||Gn(Ln,Wn,(function(){return this}));var Yn={IteratorPrototype:Ln,BUGGY_SAFARI_ITERATORS:qn},Xn=en?{}.toString:function(){return"[object "+on(this)+"]"},Zn=We.f,Jn=be("toStringTag"),Qn=function(e,t,n,r){if(e){var o=n?e:e.prototype;ce(o,Jn)||Zn(o,Jn,{configurable:!0,value:t}),r&&!en&&qe(o,"toString",Xn)}},er=Yn.IteratorPrototype,tr=function(){return this},nr=Vn.PROPER,rr=Yn.BUGGY_SAFARI_ITERATORS,or=be("iterator"),ir=function(){return this},ar=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=_t(er,{next:x(+!r,n)}),Qn(e,o,!1,!0),Xt[o]=tr}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!rr&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[or]||p["@@iterator"]||o&&p[o],v=!rr&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=rt(g.call(new e)))!==Object.prototype&&u.next&&(Qn(u,f,!0,!0),Xt[f]=ir),nr&&"values"==o&&h&&"values"!==h.name&&(d=!0,v=function(){return w(h,this)}),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(rr||d||!(l in p))&&Gn(p,l,s[l]);else Xe({target:t,proto:!0,forced:rr||d},s);return a&&p[or]!==v&&Gn(p,or,v,{name:o}),Xt[t]=v,s},ur=zn.set,sr=zn.getterFor("Array Iterator");ar(Array,"Array",(function(e,t){ur(this,{type:"Array Iterator",target:R(e),index:0,kind:t})}),(function(){var e=sr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Xt.Arguments=Xt.Array;var lr=g("".charAt),cr=g("".charCodeAt),fr=g("".slice),dr=function(e){return function(t,n){var r,o,i=vn(P(t)),a=lt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=cr(i,a))<55296||r>56319||a+1===u||(o=cr(i,a+1))<56320||o>57343?e?lr(i,a):r:e?fr(i,a,a+2):o-56320+(r-55296<<10)+65536}},pr={codeAt:dr(!1),charAt:dr(!0)}.charAt,hr=zn.set,vr=zn.getterFor("String Iterator");ar(String,"String",(function(e){hr(this,{type:"String Iterator",string:vn(e),index:0})}),(function(){var e,t=vr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=pr(n,r),t.index+=e.length,{value:e,done:!1})}));var gr=L.AggregateError,yr=be("toStringTag");for(var mr 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 br=a[mr],Er=br&&br.prototype;Er&&on(Er)!==yr&&qe(Er,yr,mr),Xt[mr]=Xt.Array}var wr,Sr,Cr=gr,Dr=function(e){return e&&e.Math==Math&&e},Ar=Dr("object"==typeof globalThis&&globalThis)||Dr("object"==typeof window&&window)||Dr("object"==typeof self&&self)||Dr("object"==typeof e&&e)||function(){return this}()||Function("return this")(),xr=function(e){try{return!!e()}catch(e){return!0}},Or=!xr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Tr=Function.prototype.call,Nr=Tr.bind?Tr.bind(Tr):function(){return Tr.apply(Tr,arguments)},kr={}.propertyIsEnumerable,Br=Object.getOwnPropertyDescriptor,Ir=Br&&!kr.call({1:2},1)?function(e){var t=Br(this,e);return!!t&&t.enumerable}:kr,Fr={f:Ir},Pr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rr=Function.prototype,_r=Rr.bind,Lr=Rr.call,jr=_r&&_r.bind(Lr),Mr=_r?function(e){return e&&jr(Lr,e)}:function(e){return e&&function(){return Lr.apply(e,arguments)}},zr=Mr({}.toString),Hr=Mr("".slice),Ur=function(e){return Hr(zr(e),8,-1)},$r=Ar.Object,Vr=Mr("".split),Gr=xr((function(){return!$r("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ur(e)?Vr(e,""):$r(e)}:$r,Wr=Ar.TypeError,qr=function(e){if(null==e)throw Wr("Can't call method on "+e);return e},Kr=function(e){return Gr(qr(e))},Yr=function(e){return"function"==typeof e},Xr=function(e){return"object"==typeof e?null!==e:Yr(e)},Zr=function(e){return Yr(e)?e:void 0},Jr=function(e,t){return arguments.length<2?Zr(Ar[e]):Ar[e]&&Ar[e][t]},Qr=Mr({}.isPrototypeOf),eo=Jr("navigator","userAgent")||"",to=Ar.process,no=Ar.Deno,ro=to&&to.versions||no&&no.version,oo=ro&&ro.v8;oo&&(Sr=(wr=oo.split("."))[0]>0&&wr[0]<4?1:+(wr[0]+wr[1])),!Sr&&eo&&(!(wr=eo.match(/Edge\/(\d+)/))||wr[1]>=74)&&(wr=eo.match(/Chrome\/(\d+)/))&&(Sr=+wr[1]);var io=Sr,ao=!!Object.getOwnPropertySymbols&&!xr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&io&&io<41})),uo=ao&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,so=Ar.Object,lo=uo?function(e){return"symbol"==typeof e}:function(e){var t=Jr("Symbol");return Yr(t)&&Qr(t.prototype,so(e))},co=Ar.String,fo=function(e){try{return co(e)}catch(e){return"Object"}},po=Ar.TypeError,ho=function(e){if(Yr(e))return e;throw po(fo(e)+" is not a function")},vo=function(e,t){var n=e[t];return null==n?void 0:ho(n)},go=Ar.TypeError,yo=Object.defineProperty,mo=function(e,t){try{yo(Ar,e,{value:t,configurable:!0,writable:!0})}catch(n){Ar[e]=t}return t},bo=Ar["__core-js_shared__"]||mo("__core-js_shared__",{}),Eo=n((function(e){(e.exports=function(e,t){return bo[e]||(bo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),wo=Ar.Object,So=function(e){return wo(qr(e))},Co=Mr({}.hasOwnProperty),Do=Object.hasOwn||function(e,t){return Co(So(e),t)},Ao=0,xo=Math.random(),Oo=Mr(1..toString),To=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Oo(++Ao+xo,36)},No=Eo("wks"),ko=Ar.Symbol,Bo=ko&&ko.for,Io=uo?ko:ko&&ko.withoutSetter||To,Fo=function(e){if(!Do(No,e)||!ao&&"string"!=typeof No[e]){var t="Symbol."+e;ao&&Do(ko,e)?No[e]=ko[e]:No[e]=uo&&Bo?Bo(t):Io(t)}return No[e]},Po=Ar.TypeError,Ro=Fo("toPrimitive"),_o=function(e,t){if(!Xr(e)||lo(e))return e;var n,r=vo(e,Ro);if(r){if(void 0===t&&(t="default"),n=Nr(r,e,t),!Xr(n)||lo(n))return n;throw Po("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Yr(n=e.toString)&&!Xr(r=Nr(n,e)))return r;if(Yr(n=e.valueOf)&&!Xr(r=Nr(n,e)))return r;if("string"!==t&&Yr(n=e.toString)&&!Xr(r=Nr(n,e)))return r;throw go("Can't convert object to primitive value")}(e,t)},Lo=function(e){var t=_o(e,"string");return lo(t)?t:t+""},jo=Ar.document,Mo=Xr(jo)&&Xr(jo.createElement),zo=function(e){return Mo?jo.createElement(e):{}},Ho=!Or&&!xr((function(){return 7!=Object.defineProperty(zo("div"),"a",{get:function(){return 7}}).a})),Uo=Object.getOwnPropertyDescriptor,$o=Or?Uo:function(e,t){if(e=Kr(e),t=Lo(t),Ho)try{return Uo(e,t)}catch(e){}if(Do(e,t))return Pr(!Nr(Fr.f,e,t),e[t])},Vo={f:$o},Go=Ar.String,Wo=Ar.TypeError,qo=function(e){if(Xr(e))return e;throw Wo(Go(e)+" is not an object")},Ko=Ar.TypeError,Yo=Object.defineProperty,Xo=Or?Yo:function(e,t,n){if(qo(e),t=Lo(t),qo(n),Ho)try{return Yo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ko("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Zo={f:Xo},Jo=Or?function(e,t,n){return Zo.f(e,t,Pr(1,n))}:function(e,t,n){return e[t]=n,e},Qo=Mr(Function.toString);Yr(bo.inspectSource)||(bo.inspectSource=function(e){return Qo(e)});var ei,ti,ni,ri=bo.inspectSource,oi=Ar.WeakMap,ii=Yr(oi)&&/native code/.test(ri(oi)),ai=Eo("keys"),ui=function(e){return ai[e]||(ai[e]=To(e))},si={},li=Ar.TypeError,ci=Ar.WeakMap;if(ii||bo.state){var fi=bo.state||(bo.state=new ci),di=Mr(fi.get),pi=Mr(fi.has),hi=Mr(fi.set);ei=function(e,t){if(pi(fi,e))throw new li("Object already initialized");return t.facade=e,hi(fi,e,t),t},ti=function(e){return di(fi,e)||{}},ni=function(e){return pi(fi,e)}}else{var vi=ui("state");si[vi]=!0,ei=function(e,t){if(Do(e,vi))throw new li("Object already initialized");return t.facade=e,Jo(e,vi,t),t},ti=function(e){return Do(e,vi)?e[vi]:{}},ni=function(e){return Do(e,vi)}}var gi={set:ei,get:ti,has:ni,enforce:function(e){return ni(e)?ti(e):ei(e,{})},getterFor:function(e){return function(t){var n;if(!Xr(t)||(n=ti(t)).type!==e)throw li("Incompatible receiver, "+e+" required");return n}}},yi=Function.prototype,mi=Or&&Object.getOwnPropertyDescriptor,bi=Do(yi,"name"),Ei={EXISTS:bi,PROPER:bi&&"something"===function(){}.name,CONFIGURABLE:bi&&(!Or||Or&&mi(yi,"name").configurable)},wi=n((function(e){var t=Ei.CONFIGURABLE,n=gi.get,r=gi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Yr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Do(i,"name")||t&&i.name!==f)&&Jo(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Ar?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Jo(e,n,i)):l?e[n]=i:mo(n,i)})(Function.prototype,"toString",(function(){return Yr(this)&&n(this).source||ri(this)}))})),Si=Math.ceil,Ci=Math.floor,Di=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ci:Si)(t)},Ai=Math.max,xi=Math.min,Oi=function(e,t){var n=Di(e);return n<0?Ai(n+t,0):xi(n,t)},Ti=Math.min,Ni=function(e){return e>0?Ti(Di(e),9007199254740991):0},ki=function(e){return Ni(e.length)},Bi=function(e){return function(t,n,r){var o,i=Kr(t),a=ki(i),u=Oi(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Ii={includes:Bi(!0),indexOf:Bi(!1)}.indexOf,Fi=Mr([].push),Pi=function(e,t){var n,r=Kr(e),o=0,i=[];for(n in r)!Do(si,n)&&Do(r,n)&&Fi(i,n);for(;t.length>o;)Do(r,n=t[o++])&&(~Ii(i,n)||Fi(i,n));return i},Ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_i=Ri.concat("length","prototype"),Li=Object.getOwnPropertyNames||function(e){return Pi(e,_i)},ji={f:Li},Mi={f:Object.getOwnPropertySymbols},zi=Mr([].concat),Hi=Jr("Reflect","ownKeys")||function(e){var t=ji.f(qo(e)),n=Mi.f;return n?zi(t,n(e)):t},Ui=function(e,t){for(var n=Hi(t),r=Zo.f,o=Vo.f,i=0;i<n.length;i++){var a=n[i];Do(e,a)||r(e,a,o(t,a))}},$i=/#|\.prototype\./,Vi=function(e,t){var n=Wi[Gi(e)];return n==Ki||n!=qi&&(Yr(t)?xr(t):!!t)},Gi=Vi.normalize=function(e){return String(e).replace($i,".").toLowerCase()},Wi=Vi.data={},qi=Vi.NATIVE="N",Ki=Vi.POLYFILL="P",Yi=Vi,Xi=Vo.f,Zi=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ar:l?Ar[u]||mo(u,{}):(Ar[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xi(n,r))&&a.value:n[r],!Yi(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ui(i,o)}(e.sham||o&&o.sham)&&Jo(i,"sham",!0),wi(n,r,i,e)}},Ji={};Ji[Fo("toStringTag")]="z";var Qi,ea="[object z]"===String(Ji),ta=Fo("toStringTag"),na=Ar.Object,ra="Arguments"==Ur(function(){return arguments}()),oa=ea?Ur:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=na(e),ta))?n:ra?Ur(t):"Object"==(r=Ur(t))&&Yr(t.callee)?"Arguments":r},ia=Ar.String,aa=function(e){if("Symbol"===oa(e))throw TypeError("Cannot convert a Symbol value to a string");return ia(e)},ua=function(){var e=qo(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},sa=Ar.RegExp,la=xr((function(){var e=sa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ca=la||xr((function(){return!sa("a","y").sticky})),fa=la||xr((function(){var e=sa("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),da={BROKEN_CARET:fa,MISSED_STICKY:ca,UNSUPPORTED_Y:la},pa=Object.keys||function(e){return Pi(e,Ri)},ha=Or?Object.defineProperties:function(e,t){qo(e);for(var n,r=Kr(t),o=pa(t),i=o.length,a=0;i>a;)Zo.f(e,n=o[a++],r[n]);return e},va=Jr("document","documentElement"),ga=ui("IE_PROTO"),ya=function(){},ma=function(e){return"<script>"+e+"<\/script>"},ba=function(e){e.write(ma("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ea=function(){try{Qi=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ea="undefined"!=typeof document?document.domain&&Qi?ba(Qi):((t=zo("iframe")).style.display="none",va.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ma("document.F=Object")),e.close(),e.F):ba(Qi);for(var n=Ri.length;n--;)delete Ea.prototype[Ri[n]];return Ea()};si[ga]=!0;var wa,Sa,Ca=Object.create||function(e,t){var n;return null!==e?(ya.prototype=qo(e),n=new ya,ya.prototype=null,n[ga]=e):n=Ea(),void 0===t?n:ha(n,t)},Da=Ar.RegExp,Aa=xr((function(){var e=Da(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),xa=Ar.RegExp,Oa=xr((function(){var e=xa("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ta=gi.get,Na=Eo("native-string-replace",String.prototype.replace),ka=RegExp.prototype.exec,Ba=ka,Ia=Mr("".charAt),Fa=Mr("".indexOf),Pa=Mr("".replace),Ra=Mr("".slice),_a=(Sa=/b*/g,Nr(ka,wa=/a/,"a"),Nr(ka,Sa,"a"),0!==wa.lastIndex||0!==Sa.lastIndex),La=da.BROKEN_CARET,ja=void 0!==/()??/.exec("")[1];(_a||ja||La||Aa||Oa)&&(Ba=function(e){var t,n,r,o,i,a,u,s=this,l=Ta(s),c=aa(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Nr(Ba,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=La&&s.sticky,h=Nr(ua,s),v=s.source,g=0,y=c;if(p&&(h=Pa(h,"y",""),-1===Fa(h,"g")&&(h+="g"),y=Ra(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ia(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),ja&&(n=new RegExp("^"+v+"$(?!\\s)",h)),_a&&(r=s.lastIndex),o=Nr(ka,p?n:s,y),p?o?(o.input=Ra(o.input,g),o[0]=Ra(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:_a&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ja&&o&&o.length>1&&Nr(Na,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Ca(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ma=Ba;Zi({target:"RegExp",proto:!0,forced:/./.exec!==Ma},{exec:Ma});var za=Fo("species"),Ha=RegExp.prototype,Ua=Mr("".charAt),$a=Mr("".charCodeAt),Va=Mr("".slice),Ga=function(e){return function(t,n){var r,o,i=aa(qr(t)),a=Di(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=$a(i,a))<55296||r>56319||a+1===u||(o=$a(i,a+1))<56320||o>57343?e?Ua(i,a):r:e?Va(i,a,a+2):o-56320+(r-55296<<10)+65536}},Wa={codeAt:Ga(!1),charAt:Ga(!0)},qa=Wa.charAt,Ka=function(e,t,n){return t+(n?qa(e,t).length:1)},Ya=Ar.TypeError,Xa=function(e,t){var n=e.exec;if(Yr(n)){var r=Nr(n,e,t);return null!==r&&qo(r),r}if("RegExp"===Ur(e))return Nr(Ma,e,t);throw Ya("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Fo(e),i=!xr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!xr((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[za]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Mr(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Mr(e),s=t.exec;return s===Ma||s===Ha.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));wi(String.prototype,e,s[0]),wi(Ha,o,s[1])}r&&Jo(Ha[o],"sham",!0)}("match",(function(e,t,n){return[function(t){var n=qr(this),r=null==t?void 0:vo(t,e);return r?Nr(r,t,n):new RegExp(t)[e](aa(n))},function(e){var r=qo(this),o=aa(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Xa(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Xa(r,o));){var c=aa(u[0]);s[l]=c,""===c&&(r.lastIndex=Ka(o,Ni(r.lastIndex),a)),l++}return 0===l?null:s}]})),Zi({global:!0},{globalThis:Ar});var Za=!xr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ja=ui("IE_PROTO"),Qa=Ar.Object,eu=Qa.prototype,tu=Za?Qa.getPrototypeOf:function(e){var t=So(e);if(Do(t,Ja))return t[Ja];var n=t.constructor;return Yr(n)&&t instanceof n?n.prototype:t instanceof Qa?eu:null},nu=Ar.String,ru=Ar.TypeError,ou=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Mr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return qo(n),function(e){if("object"==typeof e||Yr(e))return e;throw ru("Can't set "+nu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),iu=Ar.Array,au=Math.max,uu=Mr("".replace),su=Mr("".split),lu=Mr([].join),cu=String(Error("zxcasd").stack),fu=/\n\s*at [^:]*:[^\n]*/,du=fu.test(cu),pu=/@[^\n]*\n/.test(cu)&&!/zxcasd/.test(cu),hu=function(e,t){if("string"!=typeof e)return e;if(du)for(;t--;)e=uu(e,fu,"");else if(pu)return lu(function(e,t,n){for(var r,o,i,a,u=ki(e),s=Oi(t,u),l=Oi(void 0===n?u:n,u),c=iu(au(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],a=void 0,(a=Lo(o))in r?Zo.f(r,a,Pr(0,i)):r[a]=i;return c.length=f,c}(su(e,"\n"),t),"\n");return e},vu=function(e,t){Xr(t)&&"cause"in t&&Jo(e,"cause",t.cause)},gu=Mr(Mr.bind),yu=function(e,t){return ho(e),void 0===t?e:gu?gu(e,t):function(){return e.apply(t,arguments)}},mu={},bu=Fo("iterator"),Eu=Array.prototype,wu=Fo("iterator"),Su=function(e){if(null!=e)return vo(e,wu)||vo(e,"@@iterator")||mu[oa(e)]},Cu=Ar.TypeError,Du=function(e,t,n){var r,o;qo(e);try{if(!(r=vo(e,"return"))){if("throw"===t)throw n;return n}r=Nr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return qo(r),n},Au=Ar.TypeError,xu=function(e,t){this.stopped=e,this.result=t},Ou=xu.prototype,Tu=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=yu(t,c),v=function(e){return r&&Du(r,"normal",e),new xu(!0,e)},g=function(e){return f?(qo(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=Su(e)))throw Au(fo(e)+" is not iterable");if(function(e){return void 0!==e&&(mu.Array===e||Eu[bu]===e)}(o)){for(i=0,a=ki(e);a>i;i++)if((u=g(e[i]))&&Qr(Ou,u))return u;return new xu(!1)}r=function(e,t){var n=arguments.length<2?Su(e):t;if(ho(n))return qo(Nr(n,e));throw Cu(fo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Nr(s,r)).done;){try{u=g(l.value)}catch(e){Du(r,"throw",e)}if("object"==typeof u&&u&&Qr(Ou,u))return u}return new xu(!1)},Nu=function(e,t){return void 0===e?arguments.length<2?"":t:aa(e)},ku=!xr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Pr(1,7)),7!==e.stack)})),Bu=Fo("toStringTag"),Iu=Ar.Error,Fu=[].push,Pu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Qr(Ru,this);ou?n=ou(new Iu(void 0),o?tu(this):Ru):(n=o?this:Ca(Ru),Jo(n,Bu,"Error")),Jo(n,"message",Nu(t,"")),ku&&Jo(n,"stack",hu(n.stack,1)),vu(n,r);var i=[];return Tu(e,Fu,{that:i}),Jo(n,"errors",i),n};ou?ou(Pu,Iu):Ui(Pu,Iu);var Ru=Pu.prototype=Ca(Iu.prototype,{constructor:Pr(1,Pu),message:Pr(1,""),name:Pr(1,"AggregateError")});Zi({global:!0},{AggregateError:Pu});var _u=Fo("unscopables"),Lu=Array.prototype;null==Lu[_u]&&Zo.f(Lu,_u,{configurable:!0,value:Ca(null)});var ju,Mu,zu,Hu=function(e){Lu[_u][e]=!0},Uu=Fo("iterator"),$u=!1;[].keys&&("next"in(zu=[].keys())?(Mu=tu(tu(zu)))!==Object.prototype&&(ju=Mu):$u=!0);var Vu=null==ju||xr((function(){var e={};return ju[Uu].call(e)!==e}));Vu&&(ju={}),Yr(ju[Uu])||wi(ju,Uu,(function(){return this}));var Gu={IteratorPrototype:ju,BUGGY_SAFARI_ITERATORS:$u},Wu=Zo.f,qu=Fo("toStringTag"),Ku=function(e,t,n){e&&!Do(e=n?e:e.prototype,qu)&&Wu(e,qu,{configurable:!0,value:t})},Yu=Gu.IteratorPrototype,Xu=function(){return this},Zu=Ei.PROPER,Ju=Ei.CONFIGURABLE,Qu=Gu.IteratorPrototype,es=Gu.BUGGY_SAFARI_ITERATORS,ts=Fo("iterator"),ns=function(){return this},rs=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Ca(Yu,{next:Pr(+!r,n)}),Ku(e,o,!1),mu[o]=Xu}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!es&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ts]||p["@@iterator"]||o&&p[o],v=!es&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=tu(g.call(new e)))!==Object.prototype&&u.next&&(tu(u)!==Qu&&(ou?ou(u,Qu):Yr(u[ts])||wi(u,ts,ns)),Ku(u,f,!0)),Zu&&"values"==o&&h&&"values"!==h.name&&(Ju?Jo(p,"name","values"):(d=!0,v=function(){return Nr(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(es||d||!(l in p))&&wi(p,l,s[l]);else Zi({target:t,proto:!0,forced:es||d},s);return p[ts]!==v&&wi(p,ts,v,{name:o}),mu[t]=v,s},os=gi.set,is=gi.getterFor("Array Iterator"),as=rs(Array,"Array",(function(e,t){os(this,{type:"Array Iterator",target:Kr(e),index:0,kind:t})}),(function(){var e=is(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");mu.Arguments=mu.Array,Hu("keys"),Hu("values"),Hu("entries");var us=Wa.charAt,ss=gi.set,ls=gi.getterFor("String Iterator");rs(String,"String",(function(e){ss(this,{type:"String Iterator",string:aa(e),index:0})}),(function(){var e,t=ls(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=us(n,r),t.index+=e.length,{value:e,done:!1})}));var cs,fs={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},ds=zo("span").classList,ps=ds&&ds.constructor&&ds.constructor.prototype,hs=ps===Object.prototype?void 0:ps,vs=Fo("iterator"),gs=Fo("toStringTag"),ys=as.values,ms=function(e,t){if(e){if(e[vs]!==ys)try{Jo(e,vs,ys)}catch(t){e[vs]=ys}if(e[gs]||Jo(e,gs,t),fs[t])for(var n in as)if(e[n]!==as[n])try{Jo(e,n,as[n])}catch(t){e[n]=as[n]}}};for(var bs in fs)ms(Ar[bs]&&Ar[bs].prototype,bs);if(ms(hs,"DOMTokenList"),"undefined"==typeof global){if("ActiveXObject"in window){"\n Sorry, wangEditor V5+ versions do not support IE browser.",console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser.")}Es(),ws()}else global&&(null===(cs=global.navigator)||void 0===cs?void 0:cs.userAgent.match("QQBrowser"))&&(Es(),ws());function Es(){"undefined"==typeof globalThis&&(window.globalThis=window)}function ws(){void 0===Cr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var Ss,Cs=Array.isArray||function(e){return"Array"==N(e)},Ds=function(){},As=[],xs=M("Reflect","construct"),Os=/^\s*(?:class|function)\b/,Ts=g(Os.exec),Ns=!Os.exec(Ds),ks=function(e){if(!y(e))return!1;try{return xs(Ds,As,e),!0}catch(e){return!1}},Bs=!xs||m((function(){var e;return ks(ks.call)||!ks(Object)||!ks((function(){e=!0}))||e}))?function(e){if(!y(e))return!1;switch(on(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ns||!!Ts(Os,On(e))}:ks,Is=be("species"),Fs=a.Array,Ps=function(e,t){return new(function(e){var t;return Cs(e)&&(t=e.constructor,(Bs(t)&&(t===Fs||Cs(t.prototype))||_(t)&&null===(t=t[Is]))&&(t=void 0)),void 0===t?Fs:t}(e))(0===t?0:t)},Rs=be("species"),_s=be("isConcatSpreadable"),Ls=a.TypeError,js=q>=51||!m((function(){var e=[];return e[_s]=!1,e.concat()[0]!==e})),Ms=(Ss="concat",q>=51||!m((function(){var e=[];return(e.constructor={})[Rs]=function(){return{foo:1}},1!==e[Ss](Boolean).foo}))),zs=function(e){if(!_(e))return!1;var t=e[_s];return void 0!==t?!!t:Cs(e)};Xe({target:"Array",proto:!0,forced:!js||!Ms},{concat:function(e){var t,n,r,o,i,a=se(this),u=Ps(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(zs(i=-1===t?a:arguments[t])){if(s+(o=ht(i))>9007199254740991)throw Ls("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Lt(u,s,i[n])}else{if(s>=9007199254740991)throw Ls("Maximum allowed index exceeded");Lt(u,s++,i)}return u.length=s,u}});var Hs=Dt.f,Us="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$s={f:function(e){return Us&&"Window"==N(e)?function(e){try{return Hs(e)}catch(e){return zt(Us)}}(e):Hs(R(e))}},Vs=g([].slice),Gs={f:be},Ws=We.f,qs=function(e){var t=L.Symbol||(L.Symbol={});ce(t,e)||Ws(t,e,{value:Gs.f(e)})},Ks=g([].push),Ys=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=se(s),v=I(h),g=Me(l,c),y=ht(v),m=0,b=f||Ps,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ks(E,d)}else switch(e){case 4:return!1;case 7:Ks(E,d)}return i?-1:r||o?o:E}},Xs={forEach:Ys(0),map:Ys(1),filter:Ys(2),some:Ys(3),every:Ys(4),find:Ys(5),findIndex:Ys(6),filterReject:Ys(7)}.forEach,Zs=Je("hidden"),Js=be("toPrimitive"),Qs=zn.set,el=zn.getterFor("Symbol"),tl=Object.prototype,nl=a.Symbol,rl=nl&&nl.prototype,ol=a.TypeError,il=a.QObject,al=M("JSON","stringify"),ul=ke.f,sl=We.f,ll=$s.f,cl=A.f,fl=g([].push),dl=ae("symbols"),pl=ae("op-symbols"),hl=ae("string-to-symbol-registry"),vl=ae("symbol-to-string-registry"),gl=ae("wks"),yl=!il||!il.prototype||!il.prototype.findChild,ml=b&&m((function(){return 7!=_t(sl({},"a",{get:function(){return sl(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ul(tl,t);r&&delete tl[t],sl(e,t,n),r&&e!==tl&&sl(tl,t,r)}:sl,bl=function(e,t){var n=dl[e]=_t(rl);return Qs(n,{type:"Symbol",tag:e,description:t}),b||(n.description=t),n},El=function(e,t,n){e===tl&&El(pl,t,n),Ue(e);var r=Ce(t);return Ue(n),ce(dl,r)?(n.enumerable?(ce(e,Zs)&&e[Zs][r]&&(e[Zs][r]=!1),n=_t(n,{enumerable:x(0,!1)})):(ce(e,Zs)||sl(e,Zs,x(1,{})),e[Zs][r]=!0),ml(e,r,n)):sl(e,r,n)},wl=function(e,t){Ue(e);var n=R(t),r=Tt(n).concat(Al(n));return Xs(r,(function(t){b&&!w(Sl,n,t)||El(e,t,n[t])})),e},Sl=function(e){var t=Ce(e),n=w(cl,this,t);return!(this===tl&&ce(dl,t)&&!ce(pl,t))&&(!(n||!ce(this,t)||!ce(dl,t)||ce(this,Zs)&&this[Zs][t])||n)},Cl=function(e,t){var n=R(e),r=Ce(t);if(n!==tl||!ce(dl,r)||ce(pl,r)){var o=ul(n,r);return!o||!ce(dl,r)||ce(n,Zs)&&n[Zs][r]||(o.enumerable=!0),o}},Dl=function(e){var t=ll(R(e)),n=[];return Xs(t,(function(e){ce(dl,e)||ce(yt,e)||fl(n,e)})),n},Al=function(e){var t=e===tl,n=ll(t?pl:R(e)),r=[];return Xs(n,(function(e){!ce(dl,e)||t&&!ce(tl,e)||fl(r,dl[e])})),r};if(K||(rl=(nl=function(){if(z(rl,this))throw ol("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?vn(arguments[0]):void 0,t=he(e),n=function(e){this===tl&&w(n,pl,e),ce(this,Zs)&&ce(this[Zs],t)&&(this[Zs][t]=!1),ml(this,t,x(1,e))};return b&&yl&&ml(tl,t,{configurable:!0,set:n}),bl(t,e)}).prototype,Gn(rl,"toString",(function(){return el(this).tag})),Gn(nl,"withoutSetter",(function(e){return bl(he(e),e)})),A.f=Sl,We.f=El,ke.f=Cl,Dt.f=$s.f=Dl,At.f=Al,Gs.f=function(e){return bl(be(e),e)},b&&sl(rl,"description",{configurable:!0,get:function(){return el(this).description}})),Xe({global:!0,wrap:!0,forced:!K,sham:!K},{Symbol:nl}),Xs(Tt(gl),(function(e){qs(e)})),Xe({target:"Symbol",stat:!0,forced:!K},{for:function(e){var t=vn(e);if(ce(hl,t))return hl[t];var n=nl(t);return hl[t]=n,vl[n]=t,n},keyFor:function(e){if(!Z(e))throw ol(e+" is not a symbol");if(ce(vl,e))return vl[e]},useSetter:function(){yl=!0},useSimple:function(){yl=!1}}),Xe({target:"Object",stat:!0,forced:!K,sham:!b},{create:function(e,t){return void 0===t?_t(e):wl(_t(e),t)},defineProperty:El,defineProperties:wl,getOwnPropertyDescriptor:Cl}),Xe({target:"Object",stat:!0,forced:!K},{getOwnPropertyNames:Dl,getOwnPropertySymbols:Al}),Xe({target:"Object",stat:!0,forced:m((function(){At.f(1)}))},{getOwnPropertySymbols:function(e){return At.f(se(e))}}),al){var xl=!K||m((function(){var e=nl();return"[null]"!=al([e])||"{}"!=al({a:e})||"{}"!=al(Object(e))}));Xe({target:"JSON",stat:!0,forced:xl},{stringify:function(e,t,n){var r=Vs(arguments),o=t;if((_(t)||void 0!==e)&&!Z(e))return Cs(t)||(t=function(e,t){if(y(o)&&(t=w(o,this,e,t)),!Z(t))return t}),r[1]=t,f(al,null,r)}})}if(!rl[Js]){var Ol=rl.valueOf;Gn(rl,Js,(function(e){return w(Ol,this)}))}Qn(nl,"Symbol"),yt[Zs]=!0,qs("asyncIterator"),qs("hasInstance"),qs("isConcatSpreadable"),qs("iterator"),qs("match"),qs("matchAll"),qs("replace"),qs("search"),qs("species"),qs("split"),qs("toPrimitive"),qs("toStringTag"),qs("unscopables"),Qn(a.JSON,"JSON",!0);var Tl=L.Symbol;qs("asyncDispose"),qs("dispose"),qs("matcher"),qs("metadata"),qs("observable"),qs("patternMatch"),qs("replaceAll");var Nl=Tl,kl=Gs.f("iterator"),Bl=n((function(e){function t(n){return"function"==typeof Nl&&"symbol"==typeof kl?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Nl&&e.constructor===Nl&&e!==Nl.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Il=t(Bl),Fl=Vo.f,Pl=xr((function(){Fl(1)}));if(Zi({target:"Object",stat:!0,forced:!Or||Pl,sham:!Or},{getOwnPropertyDescriptor:function(e,t){return Fl(Kr(e),t)}}),"object"===("undefined"==typeof global?"undefined":Il(global))){var Rl=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Rl.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(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}
|
|
1
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t={exports:{}};return e(t,t.exports),t.exports}var r,o,i=function(e){return e&&e.Math==Math&&e},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=Function.prototype,s=u.apply,l=u.bind,c=u.call,f="object"==typeof Reflect&&Reflect.apply||(l?c.bind(s):function(){return c.apply(s,arguments)}),d=Function.prototype,p=d.bind,h=d.call,v=p&&p.bind(h),g=p?function(e){return e&&v(h,e)}:function(e){return e&&function(){return h.apply(e,arguments)}},y=function(e){return"function"==typeof e},m=function(e){try{return!!e()}catch(e){return!0}},b=!m((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=Function.prototype.call,w=E.bind?E.bind(E):function(){return E.apply(E,arguments)},S={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,D=C&&!S.call({1:2},1)?function(e){var t=C(this,e);return!!t&&t.enumerable}:S,A={f:D},x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},O=g({}.toString),T=g("".slice),k=function(e){return T(O(e),8,-1)},N=a.Object,B=g("".split),I=m((function(){return!N("z").propertyIsEnumerable(0)}))?function(e){return"String"==k(e)?B(e,""):N(e)}:N,F=a.TypeError,P=function(e){if(null==e)throw F("Can't call method on "+e);return e},R=function(e){return I(P(e))},L=function(e){return"object"==typeof e?null!==e:y(e)},_={},j=function(e){return y(e)?e:void 0},M=function(e,t){return arguments.length<2?j(_[e])||j(a[e]):_[e]&&_[e][t]||a[e]&&a[e][t]},z=g({}.isPrototypeOf),H=M("navigator","userAgent")||"",U=a.process,$=a.Deno,V=U&&U.versions||$&&$.version,G=V&&V.v8;G&&(o=(r=G.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&H&&(!(r=H.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=H.match(/Chrome\/(\d+)/))&&(o=+r[1]);var W,q=o,K=!!Object.getOwnPropertySymbols&&!m((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&q&&q<41})),Y=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=a.Object,Z=Y?function(e){return"symbol"==typeof e}:function(e){var t=M("Symbol");return y(t)&&z(t.prototype,X(e))},J=a.String,Q=function(e){try{return J(e)}catch(e){return"Object"}},ee=a.TypeError,te=function(e){if(y(e))return e;throw ee(Q(e)+" is not a function")},ne=function(e,t){var n=e[t];return null==n?void 0:te(n)},re=a.TypeError,oe=Object.defineProperty,ie="__core-js_shared__",ae=a[ie]||function(e,t){try{oe(a,e,{value:t,configurable:!0,writable:!0})}catch(n){a[e]=t}return t}(ie,{}),ue=n((function(e){(e.exports=function(e,t){return ae[e]||(ae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),se=a.Object,le=function(e){return se(P(e))},ce=g({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return ce(le(e),t)},de=0,pe=Math.random(),he=g(1..toString),ve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+he(++de+pe,36)},ge=ue("wks"),ye=a.Symbol,me=ye&&ye.for,be=Y?ye:ye&&ye.withoutSetter||ve,Ee=function(e){if(!fe(ge,e)||!K&&"string"!=typeof ge[e]){var t="Symbol."+e;K&&fe(ye,e)?ge[e]=ye[e]:ge[e]=Y&&me?me(t):be(t)}return ge[e]},we=a.TypeError,Se=Ee("toPrimitive"),Ce=function(e,t){if(!L(e)||Z(e))return e;var n,r=ne(e,Se);if(r){if(void 0===t&&(t="default"),n=w(r,e,t),!L(n)||Z(n))return n;throw we("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&y(n=e.toString)&&!L(r=w(n,e)))return r;if(y(n=e.valueOf)&&!L(r=w(n,e)))return r;if("string"!==t&&y(n=e.toString)&&!L(r=w(n,e)))return r;throw re("Can't convert object to primitive value")}(e,t)},De=function(e){var t=Ce(e,"string");return Z(t)?t:t+""},Ae=a.document,xe=L(Ae)&&L(Ae.createElement),Oe=function(e){return xe?Ae.createElement(e):{}},Te=!b&&!m((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),ke=Object.getOwnPropertyDescriptor,Ne=b?ke:function(e,t){if(e=R(e),t=De(t),Te)try{return ke(e,t)}catch(e){}if(fe(e,t))return x(!w(A.f,e,t),e[t])},Be={f:Ne},Ie=/#|\.prototype\./,Fe=function(e,t){var n=Re[Pe(e)];return n==_e||n!=Le&&(y(t)?m(t):!!t)},Pe=Fe.normalize=function(e){return String(e).replace(Ie,".").toLowerCase()},Re=Fe.data={},Le=Fe.NATIVE="N",_e=Fe.POLYFILL="P",je=Fe,Me=g(g.bind),ze=function(e,t){return te(e),void 0===t?e:Me?Me(e,t):function(){return e.apply(t,arguments)}},He=a.String,Ue=a.TypeError,$e=function(e){if(L(e))return e;throw Ue(He(e)+" is not an object")},Ve=a.TypeError,Ge=Object.defineProperty,We=b?Ge:function(e,t,n){if($e(e),t=De(t),$e(n),Te)try{return Ge(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ve("Accessors not supported");return"value"in n&&(e[t]=n.value),e},qe={f:We},Ke=b?function(e,t,n){return qe.f(e,t,x(1,n))}:function(e,t,n){return e[t]=n,e},Ye=Be.f,Xe=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return f(e,this,arguments)};return t.prototype=e.prototype,t},Ze=function(e,t){var n,r,o,i,u,s,l,c,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?a:p?a[f]:(a[f]||{}).prototype,m=d?_:_[f]||Ke(_,f,{})[f],b=m.prototype;for(o in t)n=!je(d?o:f+(p?".":"#")+o,e.forced)&&v&&fe(v,o),u=m[o],n&&(s=e.noTargetGet?(c=Ye(v,o))&&c.value:v[o]),i=n&&s?s:t[o],n&&typeof u==typeof i||(l=e.bind&&n?ze(i,a):e.wrap&&n?Xe(i):h&&y(i)?g(i):i,(e.sham||i&&i.sham||u&&u.sham)&&Ke(l,"sham",!0),Ke(m,o,l),h&&(fe(_,r=f+"Prototype")||Ke(_,r,{}),Ke(_[r],o,i),e.real&&b&&!b[o]&&Ke(b,o,i)))},Je=ue("keys"),Qe=function(e){return Je[e]||(Je[e]=ve(e))},et=!m((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tt=Qe("IE_PROTO"),nt=a.Object,rt=nt.prototype,ot=et?nt.getPrototypeOf:function(e){var t=le(e);if(fe(t,tt))return t[tt];var n=t.constructor;return y(n)&&t instanceof n?n.prototype:t instanceof nt?rt:null},it=a.String,at=a.TypeError,ut=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=g(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return $e(n),function(e){if("object"==typeof e||y(e))return e;throw at("Can't set "+it(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),st=Math.ceil,lt=Math.floor,ct=function(e){var t=+e;return t!=t||0===t?0:(t>0?lt:st)(t)},ft=Math.max,dt=Math.min,pt=function(e,t){var n=ct(e);return n<0?ft(n+t,0):dt(n,t)},ht=Math.min,vt=function(e){return(t=e.length)>0?ht(ct(t),9007199254740991):0;var t},gt=function(e){return function(t,n,r){var o,i=R(t),a=vt(i),u=pt(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},yt={includes:gt(!0),indexOf:gt(!1)},mt={},bt=yt.indexOf,Et=g([].push),wt=function(e,t){var n,r=R(e),o=0,i=[];for(n in r)!fe(mt,n)&&fe(r,n)&&Et(i,n);for(;t.length>o;)fe(r,n=t[o++])&&(~bt(i,n)||Et(i,n));return i},St=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ct=St.concat("length","prototype"),Dt=Object.getOwnPropertyNames||function(e){return wt(e,Ct)},At={f:Dt},xt={f:Object.getOwnPropertySymbols},Ot=g([].concat),Tt=M("Reflect","ownKeys")||function(e){var t=At.f($e(e)),n=xt.f;return n?Ot(t,n(e)):t},kt=Object.keys||function(e){return wt(e,St)},Nt=b?Object.defineProperties:function(e,t){$e(e);for(var n,r=R(t),o=kt(t),i=o.length,a=0;i>a;)qe.f(e,n=o[a++],r[n]);return e},Bt=M("document","documentElement"),It="prototype",Ft="script",Pt=Qe("IE_PROTO"),Rt=function(){},Lt=function(e){return"<"+Ft+">"+e+"</"+Ft+">"},_t=function(e){e.write(Lt("")),e.close();var t=e.parentWindow.Object;return e=null,t},jt=function(){try{W=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;jt="undefined"!=typeof document?document.domain&&W?_t(W):(t=Oe("iframe"),n="java"+Ft+":",t.style.display="none",Bt.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Lt("document.F=Object")),e.close(),e.F):_t(W);for(var r=St.length;r--;)delete jt[It][St[r]];return jt()};mt[Pt]=!0;var Mt=Object.create||function(e,t){var n;return null!==e?(Rt[It]=$e(e),n=new Rt,Rt[It]=null,n[Pt]=e):n=jt(),void 0===t?n:Nt(n,t)},zt=function(e,t,n){var r=De(t);r in e?qe.f(e,r,x(0,n)):e[r]=n},Ht=a.Array,Ut=Math.max,$t=function(e,t,n){for(var r=vt(e),o=pt(t,r),i=pt(void 0===n?r:n,r),a=Ht(Ut(i-o,0)),u=0;o<i;o++,u++)zt(a,u,e[o]);return a.length=u,a},Vt=g("".replace),Gt=g("".split),Wt=g([].join),qt=String(Error("zxcasd").stack),Kt=/\n\s*at [^:]*:[^\n]*/,Yt=Kt.test(qt),Xt=/@[^\n]*\n/.test(qt)&&!/zxcasd/.test(qt),Zt={},Jt=Ee("iterator"),Qt=Array.prototype,en={};en[Ee("toStringTag")]="z";var tn="[object z]"===String(en),nn=Ee("toStringTag"),rn=a.Object,on="Arguments"==k(function(){return arguments}()),an=tn?k:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=rn(e),nn))?n:on?k(t):"Object"==(r=k(t))&&y(t.callee)?"Arguments":r},un=Ee("iterator"),sn=function(e){if(null!=e)return ne(e,un)||ne(e,"@@iterator")||Zt[an(e)]},ln=a.TypeError,cn=function(e,t,n){var r,o;$e(e);try{if(!(r=ne(e,"return"))){if("throw"===t)throw n;return n}r=w(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return $e(r),n},fn=a.TypeError,dn=function(e,t){this.stopped=e,this.result=t},pn=dn.prototype,hn=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=ze(t,c),v=function(e){return r&&cn(r,"normal",e),new dn(!0,e)},g=function(e){return f?($e(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=sn(e)))throw fn(Q(e)+" is not iterable");if(function(e){return void 0!==e&&(Zt.Array===e||Qt[Jt]===e)}(o)){for(i=0,a=vt(e);a>i;i++)if((u=g(e[i]))&&z(pn,u))return u;return new dn(!1)}r=function(e,t){var n=arguments.length<2?sn(e):t;if(te(n))return $e(w(n,e));throw ln(Q(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=w(s,r)).done;){try{u=g(l.value)}catch(e){cn(r,"throw",e)}if("object"==typeof u&&u&&z(pn,u))return u}return new dn(!1)},vn=a.String,gn=function(e){if("Symbol"===an(e))throw TypeError("Cannot convert a Symbol value to a string");return vn(e)},yn=!m((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",x(1,7)),7!==e.stack)})),mn=Ee("toStringTag"),bn=a.Error,En=[].push,wn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=z(Sn,this);ut?n=ut(new bn(void 0),o?ot(this):Sn):(n=o?this:Mt(Sn),Ke(n,mn,"Error")),Ke(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:gn(e)}(t,"")),yn&&Ke(n,"stack",function(e,t){if("string"!=typeof e)return e;if(Yt)for(;t--;)e=Vt(e,Kt,"");else if(Xt)return Wt($t(Gt(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){L(t)&&"cause"in t&&Ke(e,"cause",t.cause)}(n,r);var i=[];return hn(e,En,{that:i}),Ke(n,"errors",i),n};ut?ut(wn,bn):function(e,t){for(var n=Tt(t),r=qe.f,o=Be.f,i=0;i<n.length;i++){var a=n[i];fe(e,a)||r(e,a,o(t,a))}}(wn,bn);var Sn=wn.prototype=Mt(bn.prototype,{constructor:x(1,wn),message:x(1,""),name:x(1,"AggregateError")});Ze({global:!0},{AggregateError:wn});var Cn=g(Function.toString);y(ae.inspectSource)||(ae.inspectSource=function(e){return Cn(e)});var Dn,An,xn,On=ae.inspectSource,Tn=a.WeakMap,kn=y(Tn)&&/native code/.test(On(Tn)),Nn="Object already initialized",Bn=a.TypeError,In=a.WeakMap;if(kn||ae.state){var Fn=ae.state||(ae.state=new In),Pn=g(Fn.get),Rn=g(Fn.has),Ln=g(Fn.set);Dn=function(e,t){if(Rn(Fn,e))throw new Bn(Nn);return t.facade=e,Ln(Fn,e,t),t},An=function(e){return Pn(Fn,e)||{}},xn=function(e){return Rn(Fn,e)}}else{var _n=Qe("state");mt[_n]=!0,Dn=function(e,t){if(fe(e,_n))throw new Bn(Nn);return t.facade=e,Ke(e,_n,t),t},An=function(e){return fe(e,_n)?e[_n]:{}},xn=function(e){return fe(e,_n)}}var jn,Mn,zn,Hn={set:Dn,get:An,has:xn,enforce:function(e){return xn(e)?An(e):Dn(e,{})},getterFor:function(e){return function(t){var n;if(!L(t)||(n=An(t)).type!==e)throw Bn("Incompatible receiver, "+e+" required");return n}}},Un=Function.prototype,$n=b&&Object.getOwnPropertyDescriptor,Vn=fe(Un,"name"),Gn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!b||b&&$n(Un,"name").configurable)},Wn=function(e,t,n,r){r&&r.enumerable?e[t]=n:Ke(e,t,n)},qn=Ee("iterator"),Kn=!1;[].keys&&("next"in(zn=[].keys())?(Mn=ot(ot(zn)))!==Object.prototype&&(jn=Mn):Kn=!0);var Yn=null==jn||m((function(){var e={};return jn[qn].call(e)!==e}));jn=Yn?{}:Mt(jn),y(jn[qn])||Wn(jn,qn,(function(){return this}));var Xn={IteratorPrototype:jn,BUGGY_SAFARI_ITERATORS:Kn},Zn=tn?{}.toString:function(){return"[object "+an(this)+"]"},Jn=qe.f,Qn=Ee("toStringTag"),er=function(e,t,n,r){if(e){var o=n?e:e.prototype;fe(o,Qn)||Jn(o,Qn,{configurable:!0,value:t}),r&&!tn&&Ke(o,"toString",Zn)}},tr=Xn.IteratorPrototype,nr=function(){return this},rr=Gn.PROPER,or=Xn.BUGGY_SAFARI_ITERATORS,ir=Ee("iterator"),ar="keys",ur="values",sr="entries",lr=function(){return this},cr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Mt(tr,{next:x(+!r,n)}),er(e,o,!1,!0),Zt[o]=nr}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!or&&e in p)return p[e];switch(e){case ar:case ur:case sr:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ir]||p["@@iterator"]||o&&p[o],v=!or&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=ot(g.call(new e)))!==Object.prototype&&u.next&&(er(u,f,!0,!0),Zt[f]=lr),rr&&o==ur&&h&&h.name!==ur&&(d=!0,v=function(){return w(h,this)}),o)if(s={values:c(ur),keys:i?v:c(ar),entries:c(sr)},a)for(l in s)(or||d||!(l in p))&&Wn(p,l,s[l]);else Ze({target:t,proto:!0,forced:or||d},s);return a&&p[ir]!==v&&Wn(p,ir,v,{name:o}),Zt[t]=v,s},fr="Array Iterator",dr=Hn.set,pr=Hn.getterFor(fr);cr(Array,"Array",(function(e,t){dr(this,{type:fr,target:R(e),index:0,kind:t})}),(function(){var e=pr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Zt.Arguments=Zt.Array;var hr=g("".charAt),vr=g("".charCodeAt),gr=g("".slice),yr=function(e){return function(t,n){var r,o,i=gn(P(t)),a=ct(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=vr(i,a))<55296||r>56319||a+1===u||(o=vr(i,a+1))<56320||o>57343?e?hr(i,a):r:e?gr(i,a,a+2):o-56320+(r-55296<<10)+65536}},mr={codeAt:yr(!1),charAt:yr(!0)}.charAt,br="String Iterator",Er=Hn.set,wr=Hn.getterFor(br);cr(String,"String",(function(e){Er(this,{type:br,string:gn(e),index:0})}),(function(){var e,t=wr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=mr(n,r),t.index+=e.length,{value:e,done:!1})}));var Sr=_.AggregateError,Cr=Ee("toStringTag");for(var Dr 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 Ar=a[Dr],xr=Ar&&Ar.prototype;xr&&an(xr)!==Cr&&Ke(xr,Cr,Dr),Zt[Dr]=Zt.Array}var Or,Tr,kr=Sr,Nr=function(e){return e&&e.Math==Math&&e},Br=Nr("object"==typeof globalThis&&globalThis)||Nr("object"==typeof window&&window)||Nr("object"==typeof self&&self)||Nr("object"==typeof e&&e)||function(){return this}()||Function("return this")(),Ir=function(e){try{return!!e()}catch(e){return!0}},Fr=!Ir((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Pr=Function.prototype.call,Rr=Pr.bind?Pr.bind(Pr):function(){return Pr.apply(Pr,arguments)},Lr={}.propertyIsEnumerable,_r=Object.getOwnPropertyDescriptor,jr=_r&&!Lr.call({1:2},1)?function(e){var t=_r(this,e);return!!t&&t.enumerable}:Lr,Mr={f:jr},zr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Hr=Function.prototype,Ur=Hr.bind,$r=Hr.call,Vr=Ur&&Ur.bind($r),Gr=Ur?function(e){return e&&Vr($r,e)}:function(e){return e&&function(){return $r.apply(e,arguments)}},Wr=Gr({}.toString),qr=Gr("".slice),Kr=function(e){return qr(Wr(e),8,-1)},Yr=Br.Object,Xr=Gr("".split),Zr=Ir((function(){return!Yr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Kr(e)?Xr(e,""):Yr(e)}:Yr,Jr=Br.TypeError,Qr=function(e){if(null==e)throw Jr("Can't call method on "+e);return e},eo=function(e){return Zr(Qr(e))},to=function(e){return"function"==typeof e},no=function(e){return"object"==typeof e?null!==e:to(e)},ro=function(e,t){return arguments.length<2?(n=Br[e],to(n)?n:void 0):Br[e]&&Br[e][t];var n},oo=Gr({}.isPrototypeOf),io=ro("navigator","userAgent")||"",ao=Br.process,uo=Br.Deno,so=ao&&ao.versions||uo&&uo.version,lo=so&&so.v8;lo&&(Tr=(Or=lo.split("."))[0]>0&&Or[0]<4?1:+(Or[0]+Or[1])),!Tr&&io&&(!(Or=io.match(/Edge\/(\d+)/))||Or[1]>=74)&&(Or=io.match(/Chrome\/(\d+)/))&&(Tr=+Or[1]);var co=Tr,fo=!!Object.getOwnPropertySymbols&&!Ir((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&co&&co<41})),po=fo&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ho=Br.Object,vo=po?function(e){return"symbol"==typeof e}:function(e){var t=ro("Symbol");return to(t)&&oo(t.prototype,ho(e))},go=Br.String,yo=function(e){try{return go(e)}catch(e){return"Object"}},mo=Br.TypeError,bo=function(e){if(to(e))return e;throw mo(yo(e)+" is not a function")},Eo=function(e,t){var n=e[t];return null==n?void 0:bo(n)},wo=Br.TypeError,So=Object.defineProperty,Co=function(e,t){try{So(Br,e,{value:t,configurable:!0,writable:!0})}catch(n){Br[e]=t}return t},Do="__core-js_shared__",Ao=Br[Do]||Co(Do,{}),xo=n((function(e){(e.exports=function(e,t){return Ao[e]||(Ao[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Oo=Br.Object,To=function(e){return Oo(Qr(e))},ko=Gr({}.hasOwnProperty),No=Object.hasOwn||function(e,t){return ko(To(e),t)},Bo=0,Io=Math.random(),Fo=Gr(1..toString),Po=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Fo(++Bo+Io,36)},Ro=xo("wks"),Lo=Br.Symbol,_o=Lo&&Lo.for,jo=po?Lo:Lo&&Lo.withoutSetter||Po,Mo=function(e){if(!No(Ro,e)||!fo&&"string"!=typeof Ro[e]){var t="Symbol."+e;fo&&No(Lo,e)?Ro[e]=Lo[e]:Ro[e]=po&&_o?_o(t):jo(t)}return Ro[e]},zo=Br.TypeError,Ho=Mo("toPrimitive"),Uo=function(e,t){if(!no(e)||vo(e))return e;var n,r=Eo(e,Ho);if(r){if(void 0===t&&(t="default"),n=Rr(r,e,t),!no(n)||vo(n))return n;throw zo("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&to(n=e.toString)&&!no(r=Rr(n,e)))return r;if(to(n=e.valueOf)&&!no(r=Rr(n,e)))return r;if("string"!==t&&to(n=e.toString)&&!no(r=Rr(n,e)))return r;throw wo("Can't convert object to primitive value")}(e,t)},$o=function(e){var t=Uo(e,"string");return vo(t)?t:t+""},Vo=Br.document,Go=no(Vo)&&no(Vo.createElement),Wo=function(e){return Go?Vo.createElement(e):{}},qo=!Fr&&!Ir((function(){return 7!=Object.defineProperty(Wo("div"),"a",{get:function(){return 7}}).a})),Ko=Object.getOwnPropertyDescriptor,Yo=Fr?Ko:function(e,t){if(e=eo(e),t=$o(t),qo)try{return Ko(e,t)}catch(e){}if(No(e,t))return zr(!Rr(Mr.f,e,t),e[t])},Xo={f:Yo},Zo=Br.String,Jo=Br.TypeError,Qo=function(e){if(no(e))return e;throw Jo(Zo(e)+" is not an object")},ei=Br.TypeError,ti=Object.defineProperty,ni=Fr?ti:function(e,t,n){if(Qo(e),t=$o(t),Qo(n),qo)try{return ti(e,t,n)}catch(e){}if("get"in n||"set"in n)throw ei("Accessors not supported");return"value"in n&&(e[t]=n.value),e},ri={f:ni},oi=Fr?function(e,t,n){return ri.f(e,t,zr(1,n))}:function(e,t,n){return e[t]=n,e},ii=Gr(Function.toString);to(Ao.inspectSource)||(Ao.inspectSource=function(e){return ii(e)});var ai,ui,si,li=Ao.inspectSource,ci=Br.WeakMap,fi=to(ci)&&/native code/.test(li(ci)),di=xo("keys"),pi=function(e){return di[e]||(di[e]=Po(e))},hi={},vi="Object already initialized",gi=Br.TypeError,yi=Br.WeakMap;if(fi||Ao.state){var mi=Ao.state||(Ao.state=new yi),bi=Gr(mi.get),Ei=Gr(mi.has),wi=Gr(mi.set);ai=function(e,t){if(Ei(mi,e))throw new gi(vi);return t.facade=e,wi(mi,e,t),t},ui=function(e){return bi(mi,e)||{}},si=function(e){return Ei(mi,e)}}else{var Si=pi("state");hi[Si]=!0,ai=function(e,t){if(No(e,Si))throw new gi(vi);return t.facade=e,oi(e,Si,t),t},ui=function(e){return No(e,Si)?e[Si]:{}},si=function(e){return No(e,Si)}}var Ci={set:ai,get:ui,has:si,enforce:function(e){return si(e)?ui(e):ai(e,{})},getterFor:function(e){return function(t){var n;if(!no(t)||(n=ui(t)).type!==e)throw gi("Incompatible receiver, "+e+" required");return n}}},Di=Function.prototype,Ai=Fr&&Object.getOwnPropertyDescriptor,xi=No(Di,"name"),Oi={EXISTS:xi,PROPER:xi&&"something"===function(){}.name,CONFIGURABLE:xi&&(!Fr||Fr&&Ai(Di,"name").configurable)},Ti=n((function(e){var t=Oi.CONFIGURABLE,n=Ci.get,r=Ci.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;to(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!No(i,"name")||t&&i.name!==f)&&oi(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Br?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:oi(e,n,i)):l?e[n]=i:Co(n,i)})(Function.prototype,"toString",(function(){return to(this)&&n(this).source||li(this)}))})),ki=Math.ceil,Ni=Math.floor,Bi=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ni:ki)(t)},Ii=Math.max,Fi=Math.min,Pi=function(e,t){var n=Bi(e);return n<0?Ii(n+t,0):Fi(n,t)},Ri=Math.min,Li=function(e){return e>0?Ri(Bi(e),9007199254740991):0},_i=function(e){return Li(e.length)},ji=function(e){return function(t,n,r){var o,i=eo(t),a=_i(i),u=Pi(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Mi={includes:ji(!0),indexOf:ji(!1)}.indexOf,zi=Gr([].push),Hi=function(e,t){var n,r=eo(e),o=0,i=[];for(n in r)!No(hi,n)&&No(r,n)&&zi(i,n);for(;t.length>o;)No(r,n=t[o++])&&(~Mi(i,n)||zi(i,n));return i},Ui=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$i=Ui.concat("length","prototype"),Vi=Object.getOwnPropertyNames||function(e){return Hi(e,$i)},Gi={f:Vi},Wi={f:Object.getOwnPropertySymbols},qi=Gr([].concat),Ki=ro("Reflect","ownKeys")||function(e){var t=Gi.f(Qo(e)),n=Wi.f;return n?qi(t,n(e)):t},Yi=function(e,t){for(var n=Ki(t),r=ri.f,o=Xo.f,i=0;i<n.length;i++){var a=n[i];No(e,a)||r(e,a,o(t,a))}},Xi=/#|\.prototype\./,Zi=function(e,t){var n=Qi[Ji(e)];return n==ta||n!=ea&&(to(t)?Ir(t):!!t)},Ji=Zi.normalize=function(e){return String(e).replace(Xi,".").toLowerCase()},Qi=Zi.data={},ea=Zi.NATIVE="N",ta=Zi.POLYFILL="P",na=Zi,ra=Xo.f,oa=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Br:l?Br[u]||Co(u,{}):(Br[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ra(n,r))&&a.value:n[r],!na(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Yi(i,o)}(e.sham||o&&o.sham)&&oi(i,"sham",!0),Ti(n,r,i,e)}},ia={};ia[Mo("toStringTag")]="z";var aa,ua="[object z]"===String(ia),sa=Mo("toStringTag"),la=Br.Object,ca="Arguments"==Kr(function(){return arguments}()),fa=ua?Kr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=la(e),sa))?n:ca?Kr(t):"Object"==(r=Kr(t))&&to(t.callee)?"Arguments":r},da=Br.String,pa=function(e){if("Symbol"===fa(e))throw TypeError("Cannot convert a Symbol value to a string");return da(e)},ha=function(){var e=Qo(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},va=Br.RegExp,ga=Ir((function(){var e=va("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ya=ga||Ir((function(){return!va("a","y").sticky})),ma=ga||Ir((function(){var e=va("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ba={BROKEN_CARET:ma,MISSED_STICKY:ya,UNSUPPORTED_Y:ga},Ea=Object.keys||function(e){return Hi(e,Ui)},wa=Fr?Object.defineProperties:function(e,t){Qo(e);for(var n,r=eo(t),o=Ea(t),i=o.length,a=0;i>a;)ri.f(e,n=o[a++],r[n]);return e},Sa=ro("document","documentElement"),Ca="prototype",Da="script",Aa=pi("IE_PROTO"),xa=function(){},Oa=function(e){return"<"+Da+">"+e+"</"+Da+">"},Ta=function(e){e.write(Oa("")),e.close();var t=e.parentWindow.Object;return e=null,t},ka=function(){try{aa=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;ka="undefined"!=typeof document?document.domain&&aa?Ta(aa):(t=Wo("iframe"),n="java"+Da+":",t.style.display="none",Sa.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Oa("document.F=Object")),e.close(),e.F):Ta(aa);for(var r=Ui.length;r--;)delete ka[Ca][Ui[r]];return ka()};hi[Aa]=!0;var Na,Ba,Ia=Object.create||function(e,t){var n;return null!==e?(xa[Ca]=Qo(e),n=new xa,xa[Ca]=null,n[Aa]=e):n=ka(),void 0===t?n:wa(n,t)},Fa=Br.RegExp,Pa=Ir((function(){var e=Fa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ra=Br.RegExp,La=Ir((function(){var e=Ra("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),_a=Ci.get,ja=xo("native-string-replace",String.prototype.replace),Ma=RegExp.prototype.exec,za=Ma,Ha=Gr("".charAt),Ua=Gr("".indexOf),$a=Gr("".replace),Va=Gr("".slice),Ga=(Ba=/b*/g,Rr(Ma,Na=/a/,"a"),Rr(Ma,Ba,"a"),0!==Na.lastIndex||0!==Ba.lastIndex),Wa=ba.BROKEN_CARET,qa=void 0!==/()??/.exec("")[1];(Ga||qa||Wa||Pa||La)&&(za=function(e){var t,n,r,o,i,a,u,s=this,l=_a(s),c=pa(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Rr(za,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Wa&&s.sticky,h=Rr(ha,s),v=s.source,g=0,y=c;if(p&&(h=$a(h,"y",""),-1===Ua(h,"g")&&(h+="g"),y=Va(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ha(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),qa&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Ga&&(r=s.lastIndex),o=Rr(Ma,p?n:s,y),p?o?(o.input=Va(o.input,g),o[0]=Va(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ga&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),qa&&o&&o.length>1&&Rr(ja,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Ia(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ka=za;oa({target:"RegExp",proto:!0,forced:/./.exec!==Ka},{exec:Ka});var Ya=Mo("species"),Xa=RegExp.prototype,Za=Gr("".charAt),Ja=Gr("".charCodeAt),Qa=Gr("".slice),eu=function(e){return function(t,n){var r,o,i=pa(Qr(t)),a=Bi(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ja(i,a))<55296||r>56319||a+1===u||(o=Ja(i,a+1))<56320||o>57343?e?Za(i,a):r:e?Qa(i,a,a+2):o-56320+(r-55296<<10)+65536}},tu={codeAt:eu(!1),charAt:eu(!0)},nu=tu.charAt,ru=function(e,t,n){return t+(n?nu(e,t).length:1)},ou=Br.TypeError,iu=function(e,t){var n=e.exec;if(to(n)){var r=Rr(n,e,t);return null!==r&&Qo(r),r}if("RegExp"===Kr(e))return Rr(Ka,e,t);throw ou("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Mo(e),i=!Ir((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Ir((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Ya]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Gr(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Gr(e),s=t.exec;return s===Ka||s===Xa.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Ti(String.prototype,e,s[0]),Ti(Xa,o,s[1])}r&&oi(Xa[o],"sham",!0)}("match",(function(e,t,n){return[function(t){var n=Qr(this),r=null==t?void 0:Eo(t,e);return r?Rr(r,t,n):new RegExp(t)[e](pa(n))},function(e){var r=Qo(this),o=pa(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return iu(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=iu(r,o));){var c=pa(u[0]);s[l]=c,""===c&&(r.lastIndex=ru(o,Li(r.lastIndex),a)),l++}return 0===l?null:s}]})),oa({global:!0},{globalThis:Br});var au=!Ir((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),uu=pi("IE_PROTO"),su=Br.Object,lu=su.prototype,cu=au?su.getPrototypeOf:function(e){var t=To(e);if(No(t,uu))return t[uu];var n=t.constructor;return to(n)&&t instanceof n?n.prototype:t instanceof su?lu:null},fu=Br.String,du=Br.TypeError,pu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Gr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Qo(n),function(e){if("object"==typeof e||to(e))return e;throw du("Can't set "+fu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),hu=Br.Array,vu=Math.max,gu=Gr("".replace),yu=Gr("".split),mu=Gr([].join),bu=String(Error("zxcasd").stack),Eu=/\n\s*at [^:]*:[^\n]*/,wu=Eu.test(bu),Su=/@[^\n]*\n/.test(bu)&&!/zxcasd/.test(bu),Cu=function(e,t){if("string"!=typeof e)return e;if(wu)for(;t--;)e=gu(e,Eu,"");else if(Su)return mu(function(e,t,n){for(var r,o,i,a,u=_i(e),s=Pi(t,u),l=Pi(void 0===n?u:n,u),c=hu(vu(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],a=void 0,(a=$o(o))in r?ri.f(r,a,zr(0,i)):r[a]=i;return c.length=f,c}(yu(e,"\n"),t),"\n");return e},Du=Gr(Gr.bind),Au=function(e,t){return bo(e),void 0===t?e:Du?Du(e,t):function(){return e.apply(t,arguments)}},xu={},Ou=Mo("iterator"),Tu=Array.prototype,ku=Mo("iterator"),Nu=function(e){if(null!=e)return Eo(e,ku)||Eo(e,"@@iterator")||xu[fa(e)]},Bu=Br.TypeError,Iu=function(e,t,n){var r,o;Qo(e);try{if(!(r=Eo(e,"return"))){if("throw"===t)throw n;return n}r=Rr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Qo(r),n},Fu=Br.TypeError,Pu=function(e,t){this.stopped=e,this.result=t},Ru=Pu.prototype,Lu=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Au(t,c),v=function(e){return r&&Iu(r,"normal",e),new Pu(!0,e)},g=function(e){return f?(Qo(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=Nu(e)))throw Fu(yo(e)+" is not iterable");if(function(e){return void 0!==e&&(xu.Array===e||Tu[Ou]===e)}(o)){for(i=0,a=_i(e);a>i;i++)if((u=g(e[i]))&&oo(Ru,u))return u;return new Pu(!1)}r=function(e,t){var n=arguments.length<2?Nu(e):t;if(bo(n))return Qo(Rr(n,e));throw Bu(yo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Rr(s,r)).done;){try{u=g(l.value)}catch(e){Iu(r,"throw",e)}if("object"==typeof u&&u&&oo(Ru,u))return u}return new Pu(!1)},_u=!Ir((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",zr(1,7)),7!==e.stack)})),ju=Mo("toStringTag"),Mu=Br.Error,zu=[].push,Hu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=oo(Uu,this);pu?n=pu(new Mu(void 0),o?cu(this):Uu):(n=o?this:Ia(Uu),oi(n,ju,"Error")),oi(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:pa(e)}(t,"")),_u&&oi(n,"stack",Cu(n.stack,1)),function(e,t){no(t)&&"cause"in t&&oi(e,"cause",t.cause)}(n,r);var i=[];return Lu(e,zu,{that:i}),oi(n,"errors",i),n};pu?pu(Hu,Mu):Yi(Hu,Mu);var Uu=Hu.prototype=Ia(Mu.prototype,{constructor:zr(1,Hu),message:zr(1,""),name:zr(1,"AggregateError")});oa({global:!0},{AggregateError:Hu});var $u=Mo("unscopables"),Vu=Array.prototype;null==Vu[$u]&&ri.f(Vu,$u,{configurable:!0,value:Ia(null)});var Gu,Wu,qu,Ku=function(e){Vu[$u][e]=!0},Yu=Mo("iterator"),Xu=!1;[].keys&&("next"in(qu=[].keys())?(Wu=cu(cu(qu)))!==Object.prototype&&(Gu=Wu):Xu=!0);var Zu=null==Gu||Ir((function(){var e={};return Gu[Yu].call(e)!==e}));Zu&&(Gu={}),to(Gu[Yu])||Ti(Gu,Yu,(function(){return this}));var Ju={IteratorPrototype:Gu,BUGGY_SAFARI_ITERATORS:Xu},Qu=ri.f,es=Mo("toStringTag"),ts=function(e,t,n){e&&!No(e=n?e:e.prototype,es)&&Qu(e,es,{configurable:!0,value:t})},ns=Ju.IteratorPrototype,rs=function(){return this},os=Oi.PROPER,is=Oi.CONFIGURABLE,as=Ju.IteratorPrototype,us=Ju.BUGGY_SAFARI_ITERATORS,ss=Mo("iterator"),ls="keys",cs="values",fs="entries",ds=function(){return this},ps=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Ia(ns,{next:zr(+!r,n)}),ts(e,o,!1),xu[o]=rs}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!us&&e in p)return p[e];switch(e){case ls:case cs:case fs:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ss]||p["@@iterator"]||o&&p[o],v=!us&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=cu(g.call(new e)))!==Object.prototype&&u.next&&(cu(u)!==as&&(pu?pu(u,as):to(u[ss])||Ti(u,ss,ds)),ts(u,f,!0)),os&&o==cs&&h&&h.name!==cs&&(is?oi(p,"name",cs):(d=!0,v=function(){return Rr(h,this)})),o)if(s={values:c(cs),keys:i?v:c(ls),entries:c(fs)},a)for(l in s)(us||d||!(l in p))&&Ti(p,l,s[l]);else oa({target:t,proto:!0,forced:us||d},s);return p[ss]!==v&&Ti(p,ss,v,{name:o}),xu[t]=v,s},hs="Array Iterator",vs=Ci.set,gs=Ci.getterFor(hs),ys=ps(Array,"Array",(function(e,t){vs(this,{type:hs,target:eo(e),index:0,kind:t})}),(function(){var e=gs(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");xu.Arguments=xu.Array,Ku("keys"),Ku("values"),Ku("entries");var ms=tu.charAt,bs="String Iterator",Es=Ci.set,ws=Ci.getterFor(bs);ps(String,"String",(function(e){Es(this,{type:bs,string:pa(e),index:0})}),(function(){var e,t=ws(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ms(n,r),t.index+=e.length,{value:e,done:!1})}));var Ss,Cs={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},Ds=Wo("span").classList,As=Ds&&Ds.constructor&&Ds.constructor.prototype,xs=As===Object.prototype?void 0:As,Os=Mo("iterator"),Ts=Mo("toStringTag"),ks=ys.values,Ns=function(e,t){if(e){if(e[Os]!==ks)try{oi(e,Os,ks)}catch(t){e[Os]=ks}if(e[Ts]||oi(e,Ts,t),Cs[t])for(var n in ys)if(e[n]!==ys[n])try{oi(e,n,ys[n])}catch(t){e[n]=ys[n]}}};for(var Bs in Cs)Ns(Br[Bs]&&Br[Bs].prototype,Bs);if(Ns(xs,"DOMTokenList"),"undefined"==typeof global){if("ActiveXObject"in window){console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser.")}Is(),Fs()}else global&&(null===(Ss=global.navigator)||void 0===Ss?void 0:Ss.userAgent.match("QQBrowser"))&&(Is(),Fs());function Is(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Fs(){void 0===kr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var Ps,Rs=Array.isArray||function(e){return"Array"==k(e)},Ls=function(){},_s=[],js=M("Reflect","construct"),Ms=/^\s*(?:class|function)\b/,zs=g(Ms.exec),Hs=!Ms.exec(Ls),Us=function(e){if(!y(e))return!1;try{return js(Ls,_s,e),!0}catch(e){return!1}},$s=!js||m((function(){var e;return Us(Us.call)||!Us(Object)||!Us((function(){e=!0}))||e}))?function(e){if(!y(e))return!1;switch(an(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Hs||!!zs(Ms,On(e))}:Us,Vs=Ee("species"),Gs=a.Array,Ws=function(e,t){return new(function(e){var t;return Rs(e)&&(t=e.constructor,($s(t)&&(t===Gs||Rs(t.prototype))||L(t)&&null===(t=t[Vs]))&&(t=void 0)),void 0===t?Gs:t}(e))(0===t?0:t)},qs=Ee("species"),Ks=Ee("isConcatSpreadable"),Ys=9007199254740991,Xs="Maximum allowed index exceeded",Zs=a.TypeError,Js=q>=51||!m((function(){var e=[];return e[Ks]=!1,e.concat()[0]!==e})),Qs=(Ps="concat",q>=51||!m((function(){var e=[];return(e.constructor={})[qs]=function(){return{foo:1}},1!==e[Ps](Boolean).foo}))),el=function(e){if(!L(e))return!1;var t=e[Ks];return void 0!==t?!!t:Rs(e)};Ze({target:"Array",proto:!0,forced:!Js||!Qs},{concat:function(e){var t,n,r,o,i,a=le(this),u=Ws(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(el(i=-1===t?a:arguments[t])){if(s+(o=vt(i))>Ys)throw Zs(Xs);for(n=0;n<o;n++,s++)n in i&&zt(u,s,i[n])}else{if(s>=Ys)throw Zs(Xs);zt(u,s++,i)}return u.length=s,u}});var tl=At.f,nl="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rl={f:function(e){return nl&&"Window"==k(e)?function(e){try{return tl(e)}catch(e){return $t(nl)}}(e):tl(R(e))}},ol=g([].slice),il={f:Ee},al=qe.f,ul=function(e){var t=_.Symbol||(_.Symbol={});fe(t,e)||al(t,e,{value:il.f(e)})},sl=g([].push),ll=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=le(s),v=I(h),g=ze(l,c),y=vt(v),m=0,b=f||Ws,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:sl(E,d)}else switch(e){case 4:return!1;case 7:sl(E,d)}return i?-1:r||o?o:E}},cl={forEach:ll(0),map:ll(1),filter:ll(2),some:ll(3),every:ll(4),find:ll(5),findIndex:ll(6),filterReject:ll(7)}.forEach,fl=Qe("hidden"),dl="Symbol",pl="prototype",hl=Ee("toPrimitive"),vl=Hn.set,gl=Hn.getterFor(dl),yl=Object[pl],ml=a.Symbol,bl=ml&&ml[pl],El=a.TypeError,wl=a.QObject,Sl=M("JSON","stringify"),Cl=Be.f,Dl=qe.f,Al=rl.f,xl=A.f,Ol=g([].push),Tl=ue("symbols"),kl=ue("op-symbols"),Nl=ue("string-to-symbol-registry"),Bl=ue("symbol-to-string-registry"),Il=ue("wks"),Fl=!wl||!wl[pl]||!wl[pl].findChild,Pl=b&&m((function(){return 7!=Mt(Dl({},"a",{get:function(){return Dl(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Cl(yl,t);r&&delete yl[t],Dl(e,t,n),r&&e!==yl&&Dl(yl,t,r)}:Dl,Rl=function(e,t){var n=Tl[e]=Mt(bl);return vl(n,{type:dl,tag:e,description:t}),b||(n.description=t),n},Ll=function(e,t,n){e===yl&&Ll(kl,t,n),$e(e);var r=De(t);return $e(n),fe(Tl,r)?(n.enumerable?(fe(e,fl)&&e[fl][r]&&(e[fl][r]=!1),n=Mt(n,{enumerable:x(0,!1)})):(fe(e,fl)||Dl(e,fl,x(1,{})),e[fl][r]=!0),Pl(e,r,n)):Dl(e,r,n)},_l=function(e,t){$e(e);var n=R(t),r=kt(n).concat(Hl(n));return cl(r,(function(t){b&&!w(jl,n,t)||Ll(e,t,n[t])})),e},jl=function(e){var t=De(e),n=w(xl,this,t);return!(this===yl&&fe(Tl,t)&&!fe(kl,t))&&(!(n||!fe(this,t)||!fe(Tl,t)||fe(this,fl)&&this[fl][t])||n)},Ml=function(e,t){var n=R(e),r=De(t);if(n!==yl||!fe(Tl,r)||fe(kl,r)){var o=Cl(n,r);return!o||!fe(Tl,r)||fe(n,fl)&&n[fl][r]||(o.enumerable=!0),o}},zl=function(e){var t=Al(R(e)),n=[];return cl(t,(function(e){fe(Tl,e)||fe(mt,e)||Ol(n,e)})),n},Hl=function(e){var t=e===yl,n=Al(t?kl:R(e)),r=[];return cl(n,(function(e){!fe(Tl,e)||t&&!fe(yl,e)||Ol(r,Tl[e])})),r};if(K||(bl=(ml=function(){if(z(bl,this))throw El("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?gn(arguments[0]):void 0,t=ve(e),n=function(e){this===yl&&w(n,kl,e),fe(this,fl)&&fe(this[fl],t)&&(this[fl][t]=!1),Pl(this,t,x(1,e))};return b&&Fl&&Pl(yl,t,{configurable:!0,set:n}),Rl(t,e)})[pl],Wn(bl,"toString",(function(){return gl(this).tag})),Wn(ml,"withoutSetter",(function(e){return Rl(ve(e),e)})),A.f=jl,qe.f=Ll,Be.f=Ml,At.f=rl.f=zl,xt.f=Hl,il.f=function(e){return Rl(Ee(e),e)},b&&Dl(bl,"description",{configurable:!0,get:function(){return gl(this).description}})),Ze({global:!0,wrap:!0,forced:!K,sham:!K},{Symbol:ml}),cl(kt(Il),(function(e){ul(e)})),Ze({target:dl,stat:!0,forced:!K},{for:function(e){var t=gn(e);if(fe(Nl,t))return Nl[t];var n=ml(t);return Nl[t]=n,Bl[n]=t,n},keyFor:function(e){if(!Z(e))throw El(e+" is not a symbol");if(fe(Bl,e))return Bl[e]},useSetter:function(){Fl=!0},useSimple:function(){Fl=!1}}),Ze({target:"Object",stat:!0,forced:!K,sham:!b},{create:function(e,t){return void 0===t?Mt(e):_l(Mt(e),t)},defineProperty:Ll,defineProperties:_l,getOwnPropertyDescriptor:Ml}),Ze({target:"Object",stat:!0,forced:!K},{getOwnPropertyNames:zl,getOwnPropertySymbols:Hl}),Ze({target:"Object",stat:!0,forced:m((function(){xt.f(1)}))},{getOwnPropertySymbols:function(e){return xt.f(le(e))}}),Sl){var Ul=!K||m((function(){var e=ml();return"[null]"!=Sl([e])||"{}"!=Sl({a:e})||"{}"!=Sl(Object(e))}));Ze({target:"JSON",stat:!0,forced:Ul},{stringify:function(e,t,n){var r=ol(arguments),o=t;if((L(t)||void 0!==e)&&!Z(e))return Rs(t)||(t=function(e,t){if(y(o)&&(t=w(o,this,e,t)),!Z(t))return t}),r[1]=t,f(Sl,null,r)}})}if(!bl[hl]){var $l=bl.valueOf;Wn(bl,hl,(function(e){return w($l,this)}))}er(ml,dl),mt[fl]=!0,ul("asyncIterator"),ul("hasInstance"),ul("isConcatSpreadable"),ul("iterator"),ul("match"),ul("matchAll"),ul("replace"),ul("search"),ul("species"),ul("split"),ul("toPrimitive"),ul("toStringTag"),ul("unscopables"),er(a.JSON,"JSON",!0);var Vl=_.Symbol;ul("asyncDispose"),ul("dispose"),ul("matcher"),ul("metadata"),ul("observable"),ul("patternMatch"),ul("replaceAll");var Gl=Vl,Wl=il.f("iterator"),ql=n((function(e){function t(n){return"function"==typeof Gl&&"symbol"==typeof Wl?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Gl&&e.constructor===Gl&&e!==Gl.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Kl=t(ql),Yl=Xo.f,Xl=Ir((function(){Yl(1)}));if(oa({target:"Object",stat:!0,forced:!Fr||Xl,sham:!Fr},{getOwnPropertyDescriptor:function(e,t){return Yl(eo(e),t)}}),"object"===("undefined"==typeof global?"undefined":Kl(global))){var Zl=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Zl.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(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}
|
|
2
2
|
/*!
|
|
3
3
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
6
6
|
* Released under the MIT License.
|
|
7
|
-
*/function _l(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ll(e){var t,n;return!1!==_l(e)&&(void 0===(t=e.constructor)||!1!==_l(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function jl(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ml(e){return!!e&&!!e[Dc]}function zl(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Ac}(e)||Array.isArray(e)||!!e[Cc]||!!e.constructor[Cc]||Gl(e)||Wl(e))}function Hl(e,t,n){void 0===n&&(n=!1),0===Ul(e)?(n?Object.keys:xc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Ul(e){var t=e[Dc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Gl(e)?2:Wl(e)?3:0}function $l(e,t){return 2===Ul(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Vl(e,t,n){var r=Ul(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Gl(e){return bc&&e instanceof Map}function Wl(e){return Ec&&e instanceof Set}function ql(e){return e.o||e.t}function Kl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Oc(e);delete t[Dc];for(var n=xc(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Yl(e,t){return void 0===t&&(t=!1),Zl(e)||Ml(e)||!zl(e)||(Ul(e)>1&&(e.set=e.add=e.clear=e.delete=Xl),Object.freeze(e),t&&Hl(e,(function(e,t){return Yl(t,!0)}),!0)),e}function Xl(){jl(2)}function Zl(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Jl(e){var t=Tc[e];return t||jl(18,e),t}function Ql(){return yc}function ec(e,t){t&&(Jl("Patches"),e.u=[],e.s=[],e.v=t)}function tc(e){nc(e),e.p.forEach(oc),e.p=null}function nc(e){e===yc&&(yc=e.l)}function rc(e){return yc={p:[],l:yc,h:e,m:!0,_:0}}function oc(e){var t=e[Dc];0===t.i||1===t.i?t.j():t.O=!0}function ic(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Jl("ES5").S(t,e,r),r?(n[Dc].P&&(tc(t),jl(4)),zl(e)&&(e=ac(t,e),t.l||sc(t,e)),t.u&&Jl("Patches").M(n[Dc],e,t.u,t.s)):e=ac(t,n,[]),tc(t),t.u&&t.v(t.u,t.s),e!==Sc?e:void 0}function ac(e,t,n){if(Zl(t))return t;var r=t[Dc];if(!r)return Hl(t,(function(o,i){return uc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return sc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Kl(r.k):r.o;Hl(3===r.i?new Set(o):o,(function(t,i){return uc(e,r,o,t,i,n)})),sc(e,o,!1),n&&e.u&&Jl("Patches").R(r,n,e.u,e.s)}return r.o}function uc(e,t,n,r,o,i){if(Ml(o)){var a=ac(e,o,i&&t&&3!==t.i&&!$l(t.D,r)?i.concat(r):void 0);if(Vl(n,r,a),!Ml(a))return;e.m=!1}if(zl(o)&&!Zl(o)){if(!e.h.F&&e._<1)return;ac(e,o),t&&t.A.l||sc(e,o)}}function sc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Yl(t,n)}function lc(e,t){var n=e[Dc];return(n?ql(n):e)[t]}function cc(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function fc(e){e.P||(e.P=!0,e.l&&fc(e.l))}function dc(e){e.o||(e.o=Kl(e.t))}function pc(e,t,n){var r=Gl(t)?Jl("MapSet").N(t,n):Wl(t)?Jl("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Ql(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Nc;n&&(o=[r],i=kc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Jl("ES5").J(t,n);return(n?n.A:Ql()).p.push(r),r}function hc(e){return Ml(e)||jl(22,e),function e(t){if(!zl(t))return t;var n,r=t[Dc],o=Ul(t);if(r){if(!r.P&&(r.i<4||!Jl("ES5").K(r)))return r.t;r.I=!0,n=vc(t,o),r.I=!1}else n=vc(t,o);return Hl(n,(function(t,o){r&&function(e,t){return 2===Ul(e)?e.get(t):e[t]}(r.t,t)===o||Vl(n,t,e(o))})),3===o?new Set(n):n}(e)}function vc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Kl(e)}var gc,yc,mc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),bc="undefined"!=typeof Map,Ec="undefined"!=typeof Set,wc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Sc=mc?Symbol.for("immer-nothing"):((gc={})["immer-nothing"]=!0,gc),Cc=mc?Symbol.for("immer-draftable"):"__$immer_draftable",Dc=mc?Symbol.for("immer-state"):"__$immer_state",Ac=""+Object.prototype.constructor,xc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Oc=Object.getOwnPropertyDescriptors||function(e){var t={};return xc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Tc={},Nc={get:function(e,t){if(t===Dc)return e;var n=ql(e);if(!$l(n,t))return function(e,t,n){var r,o=cc(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!zl(r)?r:r===lc(e.t,t)?(dc(e),e.o[t]=pc(e.A.h,r,e)):r},has:function(e,t){return t in ql(e)},ownKeys:function(e){return Reflect.ownKeys(ql(e))},set:function(e,t,n){var r=cc(ql(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=lc(ql(e),t),i=null==o?void 0:o[Dc];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||$l(e.t,t)))return!0;dc(e),fc(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==lc(e.t,t)||t in e.t?(e.D[t]=!1,dc(e),fc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ql(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){jl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){jl(12)}},kc={};Hl(Nc,(function(e,t){kc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),kc.deleteProperty=function(e,t){return Nc.deleteProperty.call(this,e[0],t)},kc.set=function(e,t,n){return Nc.set.call(this,e[0],t,n,e[0])};var Bc=function(){function e(e){var t=this;this.g=wc,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&jl(6),void 0!==r&&"function"!=typeof r&&jl(7),zl(e)){var u=rc(t),s=pc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?tc(u):nc(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return ec(u,r),ic(e,u)}),(function(e){throw tc(u),e})):(ec(u,r),ic(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===Sc)return;return void 0===a&&(a=e),t.F&&Yl(a,!0),a}jl(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){zl(e)||jl(8),Ml(e)&&(e=hc(e));var t=rc(this),n=pc(this,e,void 0);return n[Dc].C=!0,nc(t),n},t.finishDraft=function(e,t){var n=(e&&e[Dc]).A;return ec(n,t),ic(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!wc&&jl(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Jl("Patches").$;return Ml(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Ic=new Bc,Fc=Ic.produce;Ic.produceWithPatches.bind(Ic),Ic.setAutoFreeze.bind(Ic),Ic.setUseProxies.bind(Ic),Ic.applyPatches.bind(Ic);var Pc=Ic.createDraft.bind(Ic),Rc=Ic.finishDraft.bind(Ic);function _c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lc=new WeakMap,jc=new WeakMap,Mc=new WeakMap,zc=new WeakMap,Hc=new WeakMap,Uc=new WeakMap;function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gc=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Nf.pathRefs(e))zf.transform(n,t);for(var r of Nf.pointRefs(e))Vf.transform(r,t);for(var o of Nf.rangeRefs(e))Kf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=Lc.get(e)||[],l=Wc(t);for(var c of s){u(Mf.transform(c,t))}for(var f of l)u(f);Lc.set(e,a),md.transform(e,t),e.operations.push(t),Nf.normalize(e),"set_selection"===t.type&&(e.marks=null),jc.get(e)||(jc.set(e,!0),Promise.resolve().then((()=>{jc.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(qf.isExpanded(r))md.setNodes(e,{[t]:n},{match:ed.isText,split:!0});else{var o=Vc(Vc({},Nf.marks(e)||{}),{},{[t]:n});e.marks=o,jc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&qf.isCollapsed(n)&&md.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&qf.isCollapsed(n)&&md.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&qf.isExpanded(n)&&md.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Rf.fragment(e,t):[]},insertBreak:()=>{md.splitNodes(e,{always:!0})},insertFragment:t=>{md.insertFragment(e,t)},insertNode:t=>{md.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Vc({text:t},r);md.insertNodes(e,o)}else md.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!ed.isText(n))if(Cf.isElement(n)&&0===n.children.length){md.insertNodes(e,{text:""},{at:r.concat(0),voids:!0})}else for(var o=!Nf.isEditor(n)&&(Cf.isElement(n)&&(e.isInline(n)||0===n.children.length||ed.isText(n.children[0])||e.isInline(n.children[0]))),i=0,a=0;a<n.children.length;a++,i++){var u=Rf.get(e,r);if(!ed.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;if((ed.isText(s)||Cf.isElement(s)&&e.isInline(s))!==o)md.removeNodes(e,{at:r.concat(i),voids:!0}),i--;else if(Cf.isElement(s)){if(e.isInline(s))if(null!=l&&ed.isText(l)){if(c){md.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++}}else{md.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++}}else null!=l&&ed.isText(l)&&(ed.equals(s,l,{loose:!0})?(md.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(md.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(md.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(qf.isExpanded(n))md.unsetNodes(e,t,{match:ed.isText,split:!0});else{var r=Vc({},Nf.marks(e)||{});delete r[t],e.marks=r,jc.get(e)||e.onChange()}}};return e},Wc=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Mf.levels(t);case"insert_node":var{node:n,path:r}=e,o=Mf.levels(r),i=ed.isText(n)?[]:Array.from(Rf.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...Mf.ancestors(a),Mf.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(Mf.equals(u,s))return[];var l=[],c=[];for(var f of Mf.ancestors(u)){var d=Mf.transform(f,e);l.push(d)}for(var p of Mf.ancestors(s)){var h=Mf.transform(p,e);c.push(h)}var v=c[c.length-1],g=s[s.length-1],y=v.concat(g);return[...l,...c,y];case"remove_node":var{path:m}=e;return[...Mf.ancestors(m)];case"split_node":var{path:b}=e;return[...Mf.levels(b),Mf.next(b)];default:return[]}};function qc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Kc,Yc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?tf(e):e,o=Kc.None,i=Kc.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=hf(s,l);if([o,i]=n?[i,c]:[c,o],vf(o,Kc.ZWJ)&&vf(i,Kc.ExtPict)&&!bf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(vf(o,Kc.RI)&&vf(i,Kc.RI)&&!(u=null!==u?!u:!!n||wf(e.substring(0,e.length-a))))break;if(o!==Kc.None&&i!==Kc.None&&yf(o,i))break;a+=s.length}return a||1},Xc=/\s/,Zc=/[\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]/,Jc=/['\u2018\u2019]/,Qc=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},ef=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Xc.test(t))return!1;if(Jc.test(t)){var o=Yc(n,r),[i,a]=Qc(n,o,r);if(e(i,a,r))return!0}return!Zc.test(t)},tf=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(rf(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(nf(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},nf=e=>e>=55296&&e<=56319,rf=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Kc||(Kc={}));var of=/^(?:[\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])$/,af=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,uf=/^(?:[\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])$/,sf=/^[\u1100-\u115F\uA960-\uA97C]$/,lf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,cf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ff=/^[\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]$/,df=/^[\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]$/,pf=/^(?:[\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])$/,hf=(e,t)=>{var n=Kc.Any;return-1!==e.search(of)&&(n|=Kc.Extend),8205===t&&(n|=Kc.ZWJ),t>=127462&&t<=127487&&(n|=Kc.RI),-1!==e.search(af)&&(n|=Kc.Prepend),-1!==e.search(uf)&&(n|=Kc.SpacingMark),-1!==e.search(sf)&&(n|=Kc.L),-1!==e.search(lf)&&(n|=Kc.V),-1!==e.search(cf)&&(n|=Kc.T),-1!==e.search(ff)&&(n|=Kc.LV),-1!==e.search(df)&&(n|=Kc.LVT),-1!==e.search(pf)&&(n|=Kc.ExtPict),n};function vf(e,t){return 0!=(e&t)}var gf=[[Kc.L,Kc.L|Kc.V|Kc.LV|Kc.LVT],[Kc.LV|Kc.V,Kc.V|Kc.T],[Kc.LVT|Kc.T,Kc.T],[Kc.Any,Kc.Extend|Kc.ZWJ],[Kc.Any,Kc.SpacingMark],[Kc.Prepend,Kc.Any],[Kc.ZWJ,Kc.ExtPict],[Kc.RI,Kc.RI]];function yf(e,t){return-1===gf.findIndex((n=>vf(e,n[0])&&vf(t,n[1])))}var mf=/(?:[\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$/,bf=e=>-1!==e.search(mf),Ef=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,wf=e=>{var t=e.match(Ef);return null!==t&&t[0].length/2%2==1},Sf=e=>Ll(e)&&Rf.isNodeList(e.children)&&!Nf.isEditor(e),Cf={isAncestor:e=>Ll(e)&&Rf.isNodeList(e.children),isElement:Sf,isElementList:e=>Array.isArray(e)&&e.every((e=>Cf.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Sf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Df=["text"],Af=["text"];function xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tf=new WeakMap,Nf={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Nf.path(e,o),u="lowest"===r;for(var[s,l]of Nf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!ed.isText(s)&&!Mf.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Nf.point(e,t,{edge:"end"}),focus:Nf.end(e,[])},{distance:i=1}=r,a=0;for(var u of Nf.positions(e,Of(Of({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Nf.start(e,[]),focus:Nf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Nf.positions(e,Of(Of({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Nf.start(e,t),Nf.end(e,t)],end:(e,t)=>Nf.point(e,t,{edge:"end"}),first(e,t){var n=Nf.path(e,t,{edge:"start"});return Nf.node(e,n)},fragment(e,t){var n=Nf.range(e,t);return Rf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Nf.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>ed.isText(t)||Nf.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>ed.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Cf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Ll(e))return!1;var t=Tf.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Ll(e.marks))&&(null===e.selection||qf.isRange(e.selection))&&Rf.isNodeList(e.children)&&jf.isOperationList(e.operations);return Tf.set(e,n),n},isEnd(e,t,n){var r=Nf.end(e,n);return $f.equals(t,r)},isEdge:(e,t,n)=>Nf.isStart(e,t,n)||Nf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&ed.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Cf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Mc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Nf.start(e,n);return $f.equals(t,r)},isVoid:(e,t)=>Cf.isElement(t)&&e.isVoid(t),last(e,t){var n=Nf.path(e,t,{edge:"end"});return Nf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Nf.path(e,t,n);return[Rf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=Nf.path(e,n);for(var[s,l]of Rf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Nf.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(qf.isExpanded(n)){var[r]=Nf.nodes(e,{match:ed.isText});if(r){var[o]=r;return qc(o,Df)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Nf.leaf(e,a);if(0===i.offset){var s=Nf.previous(e,{at:a,match:ed.isText}),l=Nf.above(e,{match:t=>Nf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Mf.isAncestor(d,f)&&(u=c)}}return qc(u,Af)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Nf.after(e,i,{voids:r});if(a){var[,u]=Nf.last(e,[]),s=[a.path,u];if(Mf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Mf.isPath(i)){var[l]=Nf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Nf.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Nf.path(e,t,n);return[Rf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(Bf.isSpan(n))s=n[0],l=n[1];else{var c=Nf.path(e,n,{edge:"start"}),f=Nf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Rf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Nf.isVoid(e,n)}}),h=[];for(var[v,g]of p){var y=d&&0===Mf.compare(g,d[1]);if("highest"!==r||!y)if(u(v,g))if("lowest"===r&&y)d=[v,g];else{var m="lowest"===r?d:[v,g];m&&(o?h.push(m):yield m),d=[v,g]}else if(o&&!y&&ed.isText(v))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Lc.get(e)||[];if(Nf.isNormalizing(e)){if(n){var o=Array.from(Rf.nodes(e),(e=>{var[,t]=e;return t}));Lc.set(e,o)}0!==r(e).length&&Nf.withoutNormalizing(e,(()=>{for(var t of r(e))if(Rf.has(e,t)){var n=Nf.node(e,t),[o,i]=n;Cf.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(Rf.has(e,s)){var l=Nf.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Nf.path(e,t,n),o=Mf.parent(r);return Nf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Mf.isPath(t))if("start"===o){var[,i]=Rf.first(e,t);t=i}else if("end"===o){var[,a]=Rf.last(e,t);t=a}return qf.isRange(t)&&(t="start"===o?qf.start(t):"end"===o?qf.end(t):Mf.common(t.anchor.path,t.focus.path)),$f.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Rf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Nf.pathRefs(e).delete(o),o.current=null,t}};return Nf.pathRefs(e).add(o),o},pathRefs(e){var t=zc.get(e);return t||(t=new Set,zc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Mf.isPath(t)){var o;if("end"===r){var[,i]=Rf.last(e,t);o=i}else{var[,a]=Rf.first(e,t);o=a}var u=Rf.get(e,o);if(!ed.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(qf.isRange(t)){var[s,l]=qf.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Nf.pointRefs(e).delete(o),o.current=null,t}};return Nf.pointRefs(e).add(o),o},pointRefs(e){var t=Hc.get(e);return t||(t=new Set,Hc.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Nf.range(e,n),[u,s]=qf.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[v,g]of Nf.nodes(e,{at:n,reverse:o,voids:i})){if(Cf.isElement(v)){if(!i&&e.isVoid(v)){yield Nf.start(e,g);continue}if(e.isInline(v))continue;if(Nf.hasInlines(e,v)){var y=Mf.isAncestor(g,s.path)?s:Nf.end(e,g),m=Mf.isAncestor(g,u.path)?u:Nf.start(e,g);f=Nf.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(ed.isText(v)){var b=Mf.equals(g,l.path);for(b?(p=o?l.offset:v.text.length-l.offset,h=l.offset):(p=v.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:g,offset:h},c=!1);;){if(0===d){if(""===f)break;d=E(f,r,o),f=Qc(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:h}}}}}function E(e,t,n){return"character"===t?Yc(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Yc(e,t),[i,a]=Qc(e,o,t);if(ef(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Nf.before(e,i,{voids:r});if(a){var[,u]=Nf.first(e,[]),s=[a.path,u];if(Mf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Mf.isPath(i)){var[l]=Nf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Nf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>qf.isRange(t)&&!n?t:{anchor:Nf.start(e,t),focus:Nf.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Nf.rangeRefs(e).delete(o),o.current=null,t}};return Nf.rangeRefs(e).add(o),o},rangeRefs(e){var t=Uc.get(e);return t||(t=new Set,Uc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Mc.set(e,t)},start:(e,t)=>Nf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Nf.range(e,t),[i,a]=qf.edges(o),u="";for(var[s,l]of Nf.nodes(e,{at:o,match:ed.isText,voids:r})){var c=s.text;Mf.equals(l,a.path)&&(c=c.slice(0,a.offset)),Mf.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=qf.edges(t);if(0!==o.offset||0!==i.offset||qf.isCollapsed(t))return t;var a=Nf.above(e,{at:i,match:t=>Nf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Nf.start(e,[]),focus:i},l=!0;for(var[c,f]of Nf.nodes(e,{at:s,match:ed.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Mf.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Nf.above(e,Of(Of({},t),{},{match:t=>Nf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Nf.isNormalizing(e);Nf.setNormalizing(e,!1);try{t()}finally{Nf.setNormalizing(e,n)}Nf.normalize(e)}},kf={isLocation:e=>Mf.isPath(e)||$f.isPoint(e)||qf.isRange(e)},Bf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Mf.isPath)},If=["children"],Ff=["text"],Pf=new WeakMap,Rf={ancestor(e,t){var n=Rf.get(e,t);if(ed.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Mf.ancestors(t,n)){var o=[Rf.ancestor(e,r),r];yield o}},child(e,t){if(ed.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Rf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Rf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Mf.common(t,n);return[Rf.get(e,r),r]},descendant(e,t){var n=Rf.get(e,t);if(Nf.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Rf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Rf.nodes(e,t))Cf.isElement(n)&&(yield[n,r])},extractProps:e=>Cf.isAncestor(e)?qc(e,If):qc(e,Ff),first(e,t){for(var n=t.slice(),r=Rf.get(e,n);r&&!ed.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(ed.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Fc({children:e.children},(e=>{var[n,r]=qf.edges(t),o=Rf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!qf.includes(t,n)}});for(var[,i]of o){if(!qf.includes(t,i)){var a=Rf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Mf.equals(i,r.path)){var s=Rf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Mf.equals(i,n.path)){var l=Rf.leaf(e,i);l.text=l.text.slice(n.offset)}}Nf.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(ed.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(ed.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>ed.isText(e)||Cf.isElement(e)||Nf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Pf.get(e);if(void 0!==t)return t;var n=e.every((e=>Rf.isNode(e)));return Pf.set(e,n),n},last(e,t){for(var n=t.slice(),r=Rf.get(e,n);r&&!ed.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Rf.get(e,t);if(!ed.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Mf.levels(t,n)){var o=Rf.get(e,r);yield[o,r]}},matches:(e,t)=>Cf.isElement(e)&&Cf.isElementProps(t)&&Cf.matches(e,t)||ed.isText(e)&&ed.isTextProps(t)&&ed.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?Mf.isBefore(u,i):Mf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||ed.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Mf.next(u);if(Rf.has(e,l)){u=l,s=Rf.get(e,u);continue}}if(r&&0!==u[u.length-1])u=Mf.previous(u),s=Rf.get(e,u);else u=Mf.parent(u),s=Rf.get(e,u),a.add(s)}else{a.add(s);var c=r?s.children.length-1:0;Mf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Rf.get(e,u)}},parent(e,t){var n=Mf.parent(t),r=Rf.get(e,n);if(ed.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>ed.isText(e)?e.text:e.children.map(Rf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Rf.nodes(e,t))ed.isText(n)&&(yield[n,r])}};function _f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_f(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jf={isNodeOperation:e=>jf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Ll(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Mf.isPath(e.path)&&Rf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Mf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Mf.isPath(e.path)&&Ll(e.properties);case"move_node":return Mf.isPath(e.path)&&Mf.isPath(e.newPath);case"set_node":return Mf.isPath(e.path)&&Ll(e.properties)&&Ll(e.newProperties);case"set_selection":return null===e.properties&&qf.isRange(e.newProperties)||null===e.newProperties&&qf.isRange(e.properties)||Ll(e.properties)&&Ll(e.newProperties);case"split_node":return Mf.isPath(e.path)&&"number"==typeof e.position&&Ll(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>jf.isOperation(e))),isSelectionOperation:e=>jf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>jf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Lf(Lf({},e),{},{type:"remove_node"});case"insert_text":return Lf(Lf({},e),{},{type:"remove_text"});case"merge_node":return Lf(Lf({},e),{},{type:"split_node",path:Mf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Mf.equals(t,n))return e;if(Mf.isSibling(n,t))return Lf(Lf({},e),{},{path:t,newPath:n});var r=Mf.transform(n,e),o=Mf.transform(Mf.next(n),e);return Lf(Lf({},e),{},{path:r,newPath:o});case"remove_node":return Lf(Lf({},e),{},{type:"insert_node"});case"remove_text":return Lf(Lf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Lf(Lf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Lf(Lf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Lf(Lf({},e),{},{type:"merge_node",path:Mf.next(e.path)})}}},Mf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Mf.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Mf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Mf.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Mf.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Mf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Mf.compare(e,t),isBefore:(e,t)=>-1===Mf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Mf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Mf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Mf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Mf.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Mf.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Mf.isAncestor(t,e)&&!Mf.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fc(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Mf.equals(i,r)||Mf.endsBefore(i,r)||Mf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Mf.equals(a,r)||Mf.isAncestor(a,r))return null;Mf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Mf.equals(u,r)||Mf.endsBefore(u,r)?r[u.length-1]-=1:Mf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Mf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Mf.endsBefore(l,r)?r[l.length-1]+=1:Mf.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(Mf.equals(f,d))return;if(Mf.isAncestor(f,r)||Mf.equals(f,r)){var p=d.slice();return Mf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Mf.isSibling(f,d)&&(Mf.isAncestor(d,r)||Mf.equals(d,r))?Mf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Mf.endsBefore(d,r)||Mf.equals(d,r)||Mf.isAncestor(d,r)?(Mf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Mf.endsBefore(f,r)&&(Mf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},zf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Mf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Hf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $f={compare(e,t){var n=Mf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===$f.compare(e,t),isBefore:(e,t)=>-1===$f.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Mf.equals(e.path,t.path),isPoint:e=>Ll(e)&&"number"==typeof e.offset&&Mf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fc(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Mf.transform(o,t,n);break;case"insert_text":Mf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Mf.equals(t.path,o)&&(e.offset+=t.position),e.path=Mf.transform(o,t,n);break;case"remove_text":Mf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Mf.equals(t.path,o)||Mf.isAncestor(t.path,o))return null;e.path=Mf.transform(o,t,n);break;case"split_node":if(Mf.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Mf.transform(o,t,Uf(Uf({},n),{},{affinity:"forward"})))}else e.path=Mf.transform(o,t,n)}}))}},Vf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=$f.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Gf=["anchor","focus"];function Wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var qf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return qf.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=qf.edges(e);return t},equals:(e,t)=>$f.equals(e.anchor,t.anchor)&&$f.equals(e.focus,t.focus),includes(e,t){if(qf.isRange(t)){if(qf.includes(e,t.anchor)||qf.includes(e,t.focus))return!0;var[n,r]=qf.edges(e),[o,i]=qf.edges(t);return $f.isBefore(n,o)&&$f.isAfter(r,i)}var[a,u]=qf.edges(e),s=!1,l=!1;return $f.isPoint(t)?(s=$f.compare(t,a)>=0,l=$f.compare(t,u)<=0):(s=Mf.compare(t,a.path)>=0,l=Mf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=qc(e,Gf),[r,o]=qf.edges(e),[i,a]=qf.edges(t),u=$f.isBefore(r,i)?i:r,s=$f.isBefore(o,a)?o:a;return $f.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return $f.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return $f.equals(t,n)},isExpanded:e=>!qf.isCollapsed(e),isForward:e=>!qf.isBackward(e),isRange:e=>Ll(e)&&$f.isPoint(e.anchor)&&$f.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=qf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fc(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=qf.isCollapsed(e);qf.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?qf.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=$f.transform(e.anchor,t,{affinity:r}),s=$f.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Kf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=qf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Yf=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ll(r)&&Ll(o)){if(!Yf(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 t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Xf=["text"],Zf=["anchor","focus"];function Jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ed={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return qc(e,Xf)}return Yf(r?o(e):e,r?o(t):t)},isText:e=>Ll(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>ed.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Qf({},e)];for(var r of t){var o=qc(r,Zf),[i,a]=qf.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&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var v=a.offset-f;h=Qf(Qf({},d),{},{text:d.text.slice(v)}),d=Qf(Qf({},d),{},{text:d.text.slice(0,v)})}if(i.offset>f){var g=i.offset-f;p=Qf(Qf({},d),{},{text:d.text.slice(0,g)}),d=Qf(Qf({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?td(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rd={transform(e,t){e.children=Pc(e.children);var n=e.selection&&Pc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Rf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of qf.points(t))t[s]=$f.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Rf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[v,g]of qf.points(t))t[g]=$f.transform(v,n);break;case"merge_node":var{path:y}=n,m=Rf.get(e,y),b=Mf.previous(y),E=Rf.get(e,b),w=Rf.parent(e,y),S=y[y.length-1];if(ed.isText(m)&&ed.isText(E))E.text+=m.text;else{if(ed.isText(m)||ed.isText(E))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(E));E.children.push(...m.children)}if(w.children.splice(S,1),t)for(var[C,D]of qf.points(t))t[D]=$f.transform(C,n);break;case"move_node":var{path:A,newPath:x}=n;if(Mf.isAncestor(A,x))throw new Error("Cannot move a path [".concat(A,"] to new path [").concat(x,"] because the destination is inside itself."));var O=Rf.get(e,A),T=Rf.parent(e,A),N=A[A.length-1];T.children.splice(N,1);var k=Mf.transform(A,n),B=Rf.get(e,Mf.parent(k)),I=k[k.length-1];if(B.children.splice(I,0,O),t)for(var[F,P]of qf.points(t))t[P]=$f.transform(F,n);break;case"remove_node":var{path:R}=n,_=R[R.length-1];if(Rf.parent(e,R).children.splice(_,1),t)for(var[L,j]of qf.points(t)){var M=$f.transform(L,n);if(null!=t&&null!=M)t[j]=M;else{var z=void 0,H=void 0;for(var[U,$]of Rf.texts(e)){if(-1!==Mf.compare($,R)){H=[U,$];break}z=[U,$]}var V=!1;z&&H&&(V=Mf.equals(H[1],R)?!Mf.hasPrevious(H[1]):Mf.common(z[1],R).length<Mf.common(H[1],R).length),z&&!V?(L.path=z[1],L.offset=z[0].text.length):H?(L.path=H[1],L.offset=0):t=null}}break;case"remove_text":var{path:G,offset:W,text:q}=n;if(0===q.length)break;var K=Rf.leaf(e,G),Y=K.text.slice(0,W),X=K.text.slice(W+q.length);if(K.text=Y+X,t)for(var[Z,J]of qf.points(t))t[J]=$f.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Rf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!qf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=nd({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=Rf.get(e,le),he=Rf.parent(e,le),ve=le[le.length-1];if(ed.isText(pe)){var ge=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ge,de=nd(nd({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=nd(nd({},fe),{},{children:be})}if(he.children.splice(ve+1,0,de),t)for(var[Ee,we]of qf.points(t))t[we]=$f.transform(Ee,n)}return t})(e,n,t)}finally{e.children=Rc(e.children),e.selection=n?Ml(n)?Rc(n):n:null}}},od=["text"],id=["children"];function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Rf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Nf.end(e,[]):[0],s=!0),null==s&&(s=!1),qf.isRange(a))if(r||(a=Nf.unhangRange(e,a)),qf.isCollapsed(a))a=a.anchor;else{var[,c]=qf.edges(a),f=Nf.pointRef(e,c);md.delete(e,{at:a}),a=f.unref()}if($f.isPoint(a)){null==u&&(u=ed.isText(l)?e=>ed.isText(e):e.isInline(l)?t=>ed.isText(t)||Nf.isInline(e,t):t=>Nf.isBlock(e,t));var[d]=Nf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Nf.pathRef(e,p),v=Nf.isEnd(e,a,p);md.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=h.unref();a=v?Mf.next(g):g}var y=Mf.parent(a),m=a[a.length-1];if(o||!Nf.void(e,{at:y})){for(var b of t){var E=y.concat(m);m++,e.apply({type:"insert_node",path:E,node:b}),a=Mf.next(a)}if(a=Mf.previous(a),s){var w=Nf.end(e,a);w&&md.select(e,w)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Mf.isPath(n)?fd(e,n):t=>Nf.isBlock(e,t)),n){var a=Nf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Nf.pathRef(e,n)}));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=Nf.node(e,Mf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var v=Mf.next(d);md.moveNodes(e,{at:l,to:v,voids:o}),md.removeNodes(e,{at:d,voids:o})}else if(0===p)md.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var g=Mf.next(d);md.moveNodes(e,{at:l,to:g,voids:o})}else{var y=Mf.next(l),m=Mf.next(d);md.splitNodes(e,{at:y,voids:o}),md.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Mf.isPath(r)){var[u]=Nf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Nf.isBlock(e,t);if(!o&&qf.isRange(r)&&(r=Nf.unhangRange(e,r)),qf.isRange(r))if(qf.isCollapsed(r))r=r.anchor;else{var[,s]=qf.edges(r),l=Nf.pointRef(e,s);md.delete(e,{at:r}),r=l.unref(),null==t.at&&md.select(e,r)}var[c]=Nf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Nf.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,v]=f;if(0!==p.length&&0!==v.length){var g,y,m=Mf.next(v),b=Mf.common(p,v),E=Mf.isSibling(p,v),w=Array.from(Nf.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),S=Nf.above(e,{at:p,mode:"highest",match:t=>w.includes(t)&&ld(e,t)}),C=S&&Nf.pathRef(e,S[1]);if(ed.isText(d)&&ed.isText(h)){var D=qc(d,od);y=h.text.length,g=D}else{if(!Cf.isElement(d)||!Cf.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));D=qc(d,id);y=h.children.length,g=D}E||md.moveNodes(e,{at:p,to:m,voids:i}),C&&md.removeNodes(e,{at:C.current,voids:i}),Cf.isElement(h)&&Nf.isEmpty(e,h)||ed.isText(h)&&""===h.text&&0!==v[v.length-1]?md.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){Nf.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Mf.isPath(r)?fd(e,r):t=>Nf.isBlock(e,t));var u=Nf.pathRef(e,n),s=Nf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return Nf.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Mf.isSibling(d,f)&&Mf.isAfter(d,f)&&(u.current=Mf.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Mf.isPath(i)?fd(e,i):t=>Nf.isBlock(e,t)),!n&&qf.isRange(i)&&(i=Nf.unhangRange(e,i));var u=Nf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Nf.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=Nf.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=Mf.isPath(o)?fd(e,o):t=>Nf.isBlock(e,t)),!i&&qf.isRange(o)&&(o=Nf.unhangRange(e,o)),u&&qf.isRange(o)){if(qf.isCollapsed(o)&&Nf.leaf(e,o.anchor)[0].text.length>0)return;var l=Nf.rangeRef(e,o,{affinity:"inward"}),[c,f]=qf.edges(o),d="lowest"===a?"lowest":"highest",p=Nf.isEnd(e,f,f.path);md.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Nf.isStart(e,c,c.path);md.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&md.select(e,o)}for(var[v,g]of Nf.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==g.length){var b=!1;for(var E in t)"children"!==E&&"text"!==E&&t[E]!==v[E]&&(b=!0,v.hasOwnProperty(E)&&(y[E]=v[E]),null!=t[E]&&(m[E]=t[E]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>Nf.isBlock(e,t)),qf.isRange(i)&&(i=cd(e,i)),Mf.isPath(i)){var s=i,l=Nf.point(e,s),[c]=Nf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Nf.pointRef(e,i,{affinity:"backward"}),[d]=Nf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Nf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,v]=p;if(Cf.isElement(h)&&e.isInline(h)){var g=Nf.after(e,v);if(!g){var y=Mf.next(v);md.insertNodes(e,{text:""},{at:y,voids:r}),g=Nf.point(e,y)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var m=Nf.pointRef(e,i),b=i.path.length-a,[,E]=d,w=i.path.slice(0,b),S=0===a?i.offset:i.path[b]+0;for(var[C,D]of Nf.levels(e,{at:w,reverse:!0,voids:r})){var A=!1;if(D.length<E.length||0===D.length||!r&&Nf.isVoid(e,C))break;var x=f.current,O=Nf.isEnd(e,x,D);if(u||!f||!Nf.isEdge(e,x,D)){A=!0;var T=Rf.extractProps(C);e.apply({type:"split_node",path:D,position:S,properties:T})}S=D[D.length-1]+(A||O?1:0)}if(null==t.at){var N=m.current||Nf.end(e,[]);md.select(e,N)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;md.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Mf.isPath(i)?fd(e,i):t=>Nf.isBlock(e,t)),Mf.isPath(i)&&(i=Nf.range(e,i));var u=qf.isRange(i)?Nf.rangeRef(e,i):null,s=Nf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Nf.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Nf.node(e,n),a=Nf.range(e,n);r&&u&&(a=qf.intersection(u.current,a)),md.liftNodes(e,{at:a,match:e=>Cf.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Mf.isPath(u)?fd(e,u):e.isInline(t)?t=>Nf.isInline(e,t)||ed.isText(t):t=>Nf.isBlock(e,t)),o&&qf.isRange(u)){var[s,l]=qf.edges(u),c=Nf.rangeRef(e,u,{affinity:"inward"});md.splitNodes(e,{at:l,match:a,voids:i}),md.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&md.select(e,u)}var f=Array.from(Nf.nodes(e,{at:u,match:e.isInline(t)?t=>Nf.isBlock(e,t):e=>Nf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=qf.isRange(u)?qf.intersection(u,Nf.range(e,d)):u;if(p){var h=Array.from(Nf.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var v=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Mf.equals(o,a)?Mf.parent(o):Mf.common(o,a),s=Nf.range(e,o,a),l=Nf.node(e,u),[c]=l,f=u.length+1,d=Mf.next(a.slice(0,f)),p=ud(ud({},t),{},{children:[]});md.insertNodes(e,p,{at:d,voids:i}),md.moveNodes(e,{at:s,match:e=>Cf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===v)continue}}}}}))}},ld=(e,t)=>{if(Cf.isElement(t)){var n=t;return!!Nf.isVoid(e,t)||1===n.children.length&&ld(e,n.children[0])}return!Nf.isEditor(t)},cd=(e,t)=>{if(qf.isCollapsed(t))return t.anchor;var[,n]=qf.edges(t),r=Nf.pointRef(e,n);return md.delete(e,{at:t}),r.unref()},fd=(e,t)=>{var[n]=Nf.node(e,t);return e=>e===n};function dd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hd={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)md.select(e,r.anchor);else if("focus"===n)md.select(e,r.focus);else if("start"===n){var[o]=qf.edges(r);md.select(e,o)}else if("end"===n){var[,i]=qf.edges(r);md.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=qf.isBackward(n)?"focus":"anchor"),"end"===a&&(a=qf.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Nf.before(e,u,l):Nf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Nf.before(e,s,l):Nf.after(e,s,l);d&&(c.focus=d)}md.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Nf.range(e,t),n)md.setSelection(e,t);else{if(!qf.isRange(t))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(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=qf.isBackward(r)?"focus":"anchor"),"end"===o&&(o=qf.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;md.setSelection(e,{["anchor"===o?"anchor":"focus"]:pd(pd({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!$f.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!$f.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},vd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(qf.isRange(a)&&qf.isCollapsed(a)&&(a=a.anchor),$f.isPoint(a)){var s=Nf.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?Nf.before(e,a,c)||Nf.start(e,[]):Nf.after(e,a,c)||Nf.end(e,[])},u=!0}}if(Mf.isPath(a))md.removeNodes(e,{at:a,voids:i});else if(!qf.isCollapsed(a)){if(!u){var[,f]=qf.edges(a),d=Nf.end(e,[]);$f.equals(f,d)||(a=Nf.unhangRange(e,a,{voids:i}))}var[p,h]=qf.edges(a),v=Nf.above(e,{match:t=>Nf.isBlock(e,t),at:p,voids:i}),g=Nf.above(e,{match:t=>Nf.isBlock(e,t),at:h,voids:i}),y=v&&g&&!Mf.equals(v[1],g[1]),m=Mf.equals(p.path,h.path),b=i?null:Nf.void(e,{at:p,mode:"highest"}),E=i?null:Nf.void(e,{at:h,mode:"highest"});if(b){var w=Nf.before(e,p);w&&v&&Mf.isAncestor(v[1],w.path)&&(p=w)}if(E){var S=Nf.after(e,h);S&&g&&Mf.isAncestor(g[1],S.path)&&(h=S)}var C,D=[];for(var A of Nf.nodes(e,{at:a,voids:i})){var[x,O]=A;C&&0===Mf.compare(O,C)||(!i&&Nf.isVoid(e,x)||!Mf.isCommon(O,p.path)&&!Mf.isCommon(O,h.path))&&(D.push(A),C=O)}var T=Array.from(D,(t=>{var[,n]=t;return Nf.pathRef(e,n)})),N=Nf.pointRef(e,p),k=Nf.pointRef(e,h);if(!m&&!b){var B=N.current,[I]=Nf.leaf(e,B),{path:F}=B,{offset:P}=p,R=I.text.slice(P);R.length>0&&e.apply({type:"remove_text",path:F,offset:P,text:R})}for(var _ of T){var L=_.unref();md.removeNodes(e,{at:L,voids:i})}if(!E){var j=k.current,[M]=Nf.leaf(e,j),{path:z}=j,H=m?p.offset:0,U=M.text.slice(H,h.offset);U.length>0&&e.apply({type:"remove_text",path:z,offset:H,text:U})}!m&&y&&k.current&&N.current&&md.mergeNodes(e,{at:k.current,hanging:!0,voids:i});var $=n?N.unref()||k.unref():k.unref()||N.unref();null==t.at&&$&&md.select(e,$)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(qf.isRange(i))if(r||(i=Nf.unhangRange(e,i)),qf.isCollapsed(i))i=i.anchor;else{var[,a]=qf.edges(i);if(!o&&Nf.void(e,{at:a}))return;var u=Nf.pointRef(e,a);md.delete(e,{at:i}),i=u.unref()}else Mf.isPath(i)&&(i=Nf.start(e,i));if(o||!Nf.void(e,{at:i})){var s=Nf.above(e,{at:i,match:t=>Nf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;if(Nf.isEnd(e,i,l))i=Nf.after(e,l);else if(Nf.isStart(e,i,l)){i=Nf.before(e,l)}}var c=Nf.above(e,{match:t=>Nf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Nf.isStart(e,i,f),p=Nf.isEnd(e,i,f),h=d&&p,v=!d||d&&p,g=!p,[,y]=Rf.first({children:t},[]),[,m]=Rf.last({children:t},[]),b=[],E=t=>{var[n,r]=t;return!(0===r.length)&&(!!h||!(v&&Mf.isAncestor(r,y)&&Cf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(g&&Mf.isAncestor(r,m)&&Cf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var w of Rf.nodes({children:t},{pass:E}))E(w)&&b.push(w);var S=[],C=[],D=[],A=!0,x=!1;for(var[O]of b)Cf.isElement(O)&&!e.isInline(O)?(A=!1,x=!0,C.push(O)):A?S.push(O):D.push(O);var[T]=Nf.nodes(e,{at:i,match:t=>ed.isText(t)||Nf.isInline(e,t),mode:"highest",voids:o}),[,N]=T,k=Nf.isStart(e,i,N),B=Nf.isEnd(e,i,N),I=Nf.pathRef(e,p?Mf.next(f):f),F=Nf.pathRef(e,B?Mf.next(N):N),P=Nf.pathRef(e,f);md.splitNodes(e,{at:i,match:t=>x?Nf.isBlock(e,t):ed.isText(t)||Nf.isInline(e,t),mode:x?"lowest":"highest",voids:o});var R=Nf.pathRef(e,!k||k&&B?Mf.next(N):N);if(md.insertNodes(e,S,{at:R.current,match:t=>ed.isText(t)||Nf.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&md.delete(e,{at:P.unref(),voids:o}),md.insertNodes(e,C,{at:I.current,match:t=>Nf.isBlock(e,t),mode:"lowest",voids:o}),md.insertNodes(e,D,{at:F.current,match:t=>ed.isText(t)||Nf.isInline(e,t),mode:"highest",voids:o}),!n.at){var _;_=D.length>0?Mf.previous(F.current):C.length>0?Mf.previous(I.current):Mf.previous(R.current);var L=Nf.end(e,_);md.select(e,L)}R.unref(),I.unref(),F.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Mf.isPath(o)&&(o=Nf.range(e,o)),qf.isRange(o))if(qf.isCollapsed(o))o=o.anchor;else{var i=qf.end(o);if(!r&&Nf.void(e,{at:i}))return;var a=Nf.pointRef(e,i);md.delete(e,{at:o,voids:r}),o=a.unref(),md.setSelection(e,{anchor:o,focus:o})}if(r||!Nf.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var md=yd(yd(yd(yd({},rd),sd),hd),vd),bd="[object Map]",Ed="[object Set]",wd=/^\[object .+?Constructor\]$/,Sd=/^(?:0|[1-9]\d*)$/,Cd="[\\ud800-\\udfff]",Dd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Ad="\\ud83c[\\udffb-\\udfff]",xd="[^\\ud800-\\udfff]",Od="(?:\\ud83c[\\udde6-\\uddff]){2}",Td="[\\ud800-\\udbff][\\udc00-\\udfff]",Nd="(?:"+Dd+"|"+Ad+")"+"?",kd="[\\ufe0e\\ufe0f]?"+Nd+("(?:\\u200d(?:"+[xd,Od,Td].join("|")+")[\\ufe0e\\ufe0f]?"+Nd+")*"),Bd="(?:"+[xd+Dd+"?",Dd,Od,Td,Cd].join("|")+")",Id=RegExp(Ad+"(?="+Ad+")|"+Bd+kd,"g"),Fd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Pd="object"==typeof e&&e&&e.Object===Object&&e,Rd="object"==typeof self&&self&&self.Object===Object&&self,_d=Pd||Rd||Function("return this")();function Ld(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(t,(function(t){return e[t]}))}function jd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Md(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function zd(e){return function(e){return Fd.test(e)}(e)?function(e){return e.match(Id)||[]}(e):function(e){return e.split("")}(e)}var Hd,Ud,$d=Function.prototype,Vd=Object.prototype,Gd=_d["__core-js_shared__"],Wd=function(){var e=/[^.]+$/.exec(Gd&&Gd.keys&&Gd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),qd=$d.toString,Kd=Vd.hasOwnProperty,Yd=Vd.toString,Xd=RegExp("^"+qd.call(Kd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zd=_d.Symbol,Jd=Zd?Zd.iterator:void 0,Qd=Vd.propertyIsEnumerable,ep=(Hd=Object.keys,Ud=Object,function(e){return Hd(Ud(e))}),tp=hp(_d,"DataView"),np=hp(_d,"Map"),rp=hp(_d,"Promise"),op=hp(_d,"Set"),ip=hp(_d,"WeakMap"),ap=yp(tp),up=yp(np),sp=yp(rp),lp=yp(op),cp=yp(ip);function fp(e,t){var n=mp(e)||function(e){return function(e){return Sp(e)&&bp(e)}(e)&&Kd.call(e,"callee")&&(!Qd.call(e,"callee")||"[object Arguments]"==Yd.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Kd.call(e,i)||o&&("length"==i||gp(i,r))||n.push(i);return n}function dp(e){if(!wp(e)||function(e){return!!Wd&&Wd in e}(e))return!1;var t=Ep(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Xd:wd;return t.test(yp(e))}function pp(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Vd,t!==r)return ep(e);var t,n,r,o=[];for(var i in Object(e))Kd.call(e,i)&&"constructor"!=i&&o.push(i);return o}function hp(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return dp(n)?n:void 0}var vp=function(e){return Yd.call(e)};function gp(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Sd.test(e))&&e>-1&&e%1==0&&e<t}function yp(e){if(null!=e){try{return qd.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(tp&&"[object DataView]"!=vp(new tp(new ArrayBuffer(1)))||np&&vp(new np)!=bd||rp&&"[object Promise]"!=vp(rp.resolve())||op&&vp(new op)!=Ed||ip&&"[object WeakMap]"!=vp(new ip))&&(vp=function(e){var t=Yd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?yp(n):void 0;if(r)switch(r){case ap:return"[object DataView]";case up:return bd;case sp:return"[object Promise]";case lp:return Ed;case cp:return"[object WeakMap]"}return t});var mp=Array.isArray;function bp(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Ep(e)}function Ep(e){var t=wp(e)?Yd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function wp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Sp(e){return!!e&&"object"==typeof e}function Cp(e){return e?Ld(e,function(e){return bp(e)?fp(e):pp(e)}(e)):[]}var Dp=function(e){if(!e)return[];if(bp(e))return function(e){return"string"==typeof e||!mp(e)&&Sp(e)&&"[object String]"==Yd.call(e)}(e)?zd(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(Jd&&e[Jd])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Jd]());var t=vp(e);return(t==bd?jd:t==Ed?Md:Cp)(e)};function Ap(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function xp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Ap(t[n])&&Ap(e[n])&&Object.keys(t[n]).length>0&&xp(e[n],t[n])}))}var Op={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 Tp(){var e="undefined"!=typeof document?document:{};return xp(e,Op),e}var Np={document:Op,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(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function kp(){var e="undefined"!=typeof window?window:{};return xp(e,Np),e}function Bp(e){return Bp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bp(e)}function Ip(e,t){return Ip=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ip(e,t)}function Fp(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Pp(e,t,n){return Pp=Fp()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Ip(o,n.prototype),o},Pp.apply(null,arguments)}function Rp(e){var t="function"==typeof Map?new Map:void 0;return Rp=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Pp(e,arguments,Bp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ip(n,e)},Rp(e)}var _p=function(e){var t,n;function r(t){var n,r,o;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Rp(Array));function Lp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Lp(e)):t.push(e)})),t}function jp(e,t){return Array.prototype.filter.call(e,t)}function Mp(e,t){var n=kp(),r=Tp(),o=[];if(!t&&e instanceof _p)return e;if(!e)return new _p(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(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(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof _p)return e;o=e}return new _p(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Lp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Hp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Lp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Up(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Lp(t.map((function(e){return e.split(" ")})));return jp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function $p(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Vp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Gp(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Wp(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function qp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),Mp(t).is(o))i.apply(t,n);else for(var r=Mp(t).parents(),a=0;a<r.length;a+=1)Mp(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Kp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[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],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Yp(){var e=kp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Xp(){var e=kp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Zp(){if(this.length>0){var e=kp(),t=Tp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Jp(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Qp(){for(var e=kp(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function eh(e,t){var n,r=kp();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function th(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function nh(e){return Mp(jp(this,e))}function rh(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function oh(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function ih(e){var t,n,r=kp(),o=Tp(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Mp(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof _p){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function ah(){for(var e,t=Tp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof _p)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function uh(e){var t,n,r=Tp();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof _p)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function sh(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Mp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Mp(t)}function lh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Mp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Mp(t)}function ch(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return Mp(t)}function fh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!Mp(r[o]).is(e)||t.push(r[o]);return Mp(t)}function dh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ph(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}Mp.fn=_p.prototype;var hh="resize scroll".split(" ");function vh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)hh.indexOf(e)<0&&(e in this[o]?this[o][e]():Mp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var gh=vh("click"),yh=vh("focus"),mh="[object GeneratorFunction]",bh=/^(?:0|[1-9]\d*)$/;function Eh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var wh=Object.prototype,Sh=wh.hasOwnProperty,Ch=wh.toString,Dh=wh.propertyIsEnumerable,Ah=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function xh(e,t){var n=Fh(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ph(e)}(e)&&Sh.call(e,"callee")&&(!Dh.call(e,"callee")||"[object Arguments]"==Ch.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Sh.call(e,i)||o&&("length"==i||Ih(i,r))||n.push(i);return n}var Oh,Th,Nh=(Oh=function(e,t){return e&&kh(e,t,Rh)},function(e,t){if(null==e)return e;if(!Ph(e))return Oh(e,t);for(var n=e.length,r=Th?n:-1,o=Object(e);(Th?r--:++r<n)&&!1!==t(o[r],r,o););return e}),kh=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}();function Bh(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||wh,t!==r)return Ah(e);var t,n,r,o=[];for(var i in Object(e))Sh.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ih(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||bh.test(e))&&e>-1&&e%1==0&&e<t}var Fh=Array.isArray;function Ph(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?Ch.call(e):"";return"[object Function]"==t||t==mh}(e)}function Rh(e){return Ph(e)?xh(e):Bh(e)}function _h(e){return e}var Lh=function(e,t){return(Fh(e)?Eh:Nh)(e,"function"==typeof t?t:_h)};let jh=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Mh=/^\s+|\s+$/g,zh=/^[-+]0x[0-9a-f]+$/i,Hh=/^0b[01]+$/i,Uh=/^0o[0-7]+$/i,$h=parseInt,Vh="object"==typeof e&&e&&e.Object===Object&&e,Gh="object"==typeof self&&self&&self.Object===Object&&self,Wh=Vh||Gh||Function("return this")(),qh=Object.prototype.toString,Kh=Math.max,Yh=Math.min,Xh=function(){return Wh.Date.now()};function Zh(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(g,t),c?p(e):a}function v(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e=Xh();if(v(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-s);return f?Yh(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Xh(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Qh(t)||0,Jh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Kh(Qh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Xh())},m}function Jh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Qh(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==qh.call(e)}(e))return NaN;if(Jh(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Jh(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Mh,"");var n=Hh.test(e);return n||Uh.test(e)?$h(e.slice(2),n?2:8):zh.test(e)?NaN:+e}var ev=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Jh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Zh(e,t,{leading:r,maxWait:t,trailing:o})};const tv={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function nv(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const rv=Array.isArray;function ov(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function iv(e){return void 0===e}function av(e){return void 0!==e}const uv=nv("",{},[],void 0,void 0);function sv(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function lv(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const cv=["create","update","remove","destroy","pre","post"];function fv(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:tv;for(const t of cv)for(const r of e){const e=r[t];void 0!==e&&n[t].push(e)}function o(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return nv(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}function i(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function a(e,t){var o,i;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;av(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)iv(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,v=e.elm=av(s)&&av(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&v.setAttribute("id",c.slice(d+1,p)),f>0&&v.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](uv,e);if(rv(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(v,a(e,t))}else ov(e.text)&&r.appendChild(v,r.createTextNode(e.text));const g=e.data.hook;av(g)&&(null===(i=g.create)||void 0===i||i.call(g,uv,e),g.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function u(e,t,n,o,i,u){for(;o<=i;++o){const i=n[o];null!=i&&r.insertBefore(e,a(i,u),t)}}function s(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&s(n)}}}function l(e,t,o,a){for(var u,l;o<=a;++o){let a,c;const f=t[o];if(null!=f)if(av(f.sel)){s(f),a=n.remove.length+1,c=i(f.elm,a);for(let e=0;e<n.remove.length;++e)n.remove[e](f,c);const e=null===(l=null===(u=null==f?void 0:f.data)||void 0===u?void 0:u.hook)||void 0===l?void 0:l.remove;av(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function c(e,t,o){var i,s,f,d,p;const h=null===(i=t.data)||void 0===i?void 0:i.hook;null===(s=null==h?void 0:h.prepatch)||void 0===s||s.call(h,e,t);const v=t.elm=e.elm,g=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}iv(t.text)?av(g)&&av(y)?g!==y&&function(e,t,n,o){let i,s,f,d,p=0,h=0,v=t.length-1,g=t[0],y=t[v],m=n.length-1,b=n[0],E=n[m];for(;p<=v&&h<=m;)null==g?g=t[++p]:null==y?y=t[--v]:null==b?b=n[++h]:null==E?E=n[--m]:sv(g,b)?(c(g,b,o),g=t[++p],b=n[++h]):sv(y,E)?(c(y,E,o),y=t[--v],E=n[--m]):sv(g,E)?(c(g,E,o),r.insertBefore(e,g.elm,r.nextSibling(y.elm)),g=t[++p],E=n[--m]):sv(y,b)?(c(y,b,o),r.insertBefore(e,y.elm,g.elm),y=t[--v],b=n[++h]):(void 0===i&&(i=lv(t,p,v)),s=i[b.key],iv(s)?r.insertBefore(e,a(b,o),g.elm):(f=t[s],f.sel!==b.sel?r.insertBefore(e,a(b,o),g.elm):(c(f,b,o),t[s]=void 0,r.insertBefore(e,f.elm,g.elm))),b=n[++h]);(p<=v||h<=m)&&(p>v?(d=null==n[m+1]?null:n[m+1].elm,u(e,d,n,h,m,o)):l(e,t,p,v))}(v,g,y,o):av(y)?(av(e.text)&&r.setTextContent(v,""),u(v,null,y,0,y.length-1,o)):av(g)?l(v,g,0,g.length-1):av(e.text)&&r.setTextContent(v,""):e.text!==t.text&&(av(g)&&l(v,g,0,g.length-1),r.setTextContent(v,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let i,u,s;const f=[];for(i=0;i<n.pre.length;++i)n.pre[i]();for(function(e){return void 0!==e.sel}(e)||(e=o(e)),sv(e,t)?c(e,t,f):(u=e.elm,s=r.parentNode(u),a(t,f),null!==s&&(r.insertBefore(s,t.elm,r.nextSibling(u)),l(s,[e],0,0))),i=0;i<f.length;++i)f[i].data.hook.insert(f[i]);for(i=0;i<n.post.length;++i)n.post[i]();return t}}function dv(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let e=0;e<t.length;++e){const n=t[e].data;void 0!==n&&dv(n,t[e].children,t[e].sel)}}function pv(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),rv(n)?r=n:ov(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(rv(t)?r=t:ov(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)ov(r[i])&&(r[i]=nv(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||dv(a,r,e),nv(e,a,r,o,void 0)}function hv(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const vv={create:hv,update:hv};function gv(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.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 yv={create:gv,update:gv},mv=/[A-Z]/g;function bv(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(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(mv,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(mv,"-$&").toLowerCase(),i[r]))}const Ev={create:bv,update:bv};function wv(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)wv(e[r],t,n)}function Sv(e,t){const n=e.type,r=t.data.on;r&&r[n]&&wv(r[n],t,e)}function Cv(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.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 r=t.listener=e.listener||function e(t){Sv(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Dv={create:Cv,update:Cv,destroy:Cv};function Av(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const xv={create:Av,update:Av},Ov="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Tv=!1;function Nv(e,t,n){!function(e){Ov((function(){Ov(e)}))}((function(){e[t]=n}))}function kv(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(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],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Nv(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Bv={pre:function(){Tv=!1},create:kv,update:kv,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Tv||(e.elm.offsetLeft,Tv=!0);const o=e.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)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function Iv(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Iv(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(nv(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Fv(e,t,...n){const r=Iv(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?pv(e,t,r[0].text):pv(e,t,r)}Fv||(Fv={});var Pv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_v="\\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",Lv="[\\ud800-\\udfff]",jv="["+_v+"]",Mv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",zv="\\d+",Hv="[\\u2700-\\u27bf]",Uv="[a-z\\xdf-\\xf6\\xf8-\\xff]",$v="[^\\ud800-\\udfff"+_v+zv+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Vv="\\ud83c[\\udffb-\\udfff]",Gv="[^\\ud800-\\udfff]",Wv="(?:\\ud83c[\\udde6-\\uddff]){2}",qv="[\\ud800-\\udbff][\\udc00-\\udfff]",Kv="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yv="(?:"+Uv+"|"+$v+")",Xv="(?:"+Kv+"|"+$v+")",Zv="(?:"+Mv+"|"+Vv+")"+"?",Jv="[\\ufe0e\\ufe0f]?"+Zv+("(?:\\u200d(?:"+[Gv,Wv,qv].join("|")+")[\\ufe0e\\ufe0f]?"+Zv+")*"),Qv="(?:"+[Hv,Wv,qv].join("|")+")"+Jv,eg="(?:"+[Gv+Mv+"?",Mv,Wv,qv,Lv].join("|")+")",tg=RegExp("['’]","g"),ng=RegExp(Mv,"g"),rg=RegExp(Vv+"(?="+Vv+")|"+eg+Jv,"g"),og=RegExp([Kv+"?"+Uv+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[jv,Kv,"$"].join("|")+")",Xv+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[jv,Kv+Yv,"$"].join("|")+")",Kv+"?"+Yv+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Kv+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",zv,Qv].join("|"),"g"),ig=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),ag=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ug="object"==typeof e&&e&&e.Object===Object&&e,sg="object"==typeof self&&self&&self.Object===Object&&self,lg=ug||sg||Function("return this")();var cg,fg=(cg={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==cg?void 0:cg[e]});function dg(e){return ig.test(e)}function pg(e){return dg(e)?function(e){return e.match(rg)||[]}(e):function(e){return e.split("")}(e)}var hg=Object.prototype.toString,vg=lg.Symbol,gg=vg?vg.prototype:void 0,yg=gg?gg.toString:void 0;function mg(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==hg.call(e)}(e))return yg?yg.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function bg(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function Eg(e){return null==e?"":mg(e)}var wg,Sg=(wg=function(e,t,n){return t=t.toLowerCase(),e+(n?Dg(Eg(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=Eg(e),void 0===(t=n?void 0:t)?function(e){return ag.test(e)}(e)?function(e){return e.match(og)||[]}(e):function(e){return e.match(Pv)||[]}(e):e.match(t)||[]}(function(e){return(e=Eg(e))&&e.replace(Rv,fg).replace(ng,"")}(e).replace(tg,"")),wg,"")});var Cg,Dg=(Cg="toUpperCase",function(e){var t=dg(e=Eg(e))?pg(e):void 0,n=t?t[0]:e.charAt(0),r=t?bg(t,1).join(""):e.slice(1);return n[Cg]()+r});for(var Ag=Sg,xg="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Og={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Tg={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:xg?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Ng={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},kg=1;kg<20;kg++)Ng["f"+kg]=111+kg;function Bg(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in Og)r[Og[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Fg(d),v=Og[h];if(d.length>1&&!v&&!Tg[d]&&!Ng[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&v||(n?r.key=h:r.which=Ig(d)),v&&(r[v]=!p||null)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}(t,e)}))};return null==n?o:o(n)}function Ig(e){return e=Fg(e),Ng[e]||e.toUpperCase().charCodeAt(0)}function Fg(e){return e=e.toLowerCase(),e=Tg[e]||e}var Pg=Bg,Rg=function(e,t){return Bg(e,{byKey:!0},t)},_g=/^\s+|\s+$/g,Lg=/^[-+]0x[0-9a-f]+$/i,jg=/^0b[01]+$/i,Mg=/^0o[0-7]+$/i,zg=parseInt,Hg="object"==typeof e&&e&&e.Object===Object&&e,Ug="object"==typeof self&&self&&self.Object===Object&&self,$g=Hg||Ug||Function("return this")(),Vg=Object.prototype.toString,Gg=Math.max,Wg=Math.min,qg=function(){return $g.Date.now()};function Kg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Yg(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Vg.call(e)}(e))return NaN;if(Kg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Kg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(_g,"");var n=jg.test(e);return n||Mg.test(e)?zg(e.slice(2),n?2:8):Lg.test(e)?NaN:+e}var Xg,Zg=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(g,t),c?p(e):a}function v(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e=qg();if(v(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-s);return f?Wg(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=qg(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Yg(t)||0,Kg(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Gg(Yg(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(qg())},m},Jg=n((function(t,n){var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",D="[object Int16Array]",A="[object Int32Array]",x="[object Uint8Array]",O="[object Uint8ClampedArray]",T="[object Uint16Array]",N="[object Uint32Array]",k=/\w*$/,B=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,F={};F[i]=F["[object Array]"]=F[b]=F[E]=F[a]=F[u]=F[w]=F[S]=F[C]=F[D]=F[A]=F[c]=F[f]=F[d]=F[h]=F[v]=F[g]=F[y]=F[x]=F[O]=F[T]=F[N]=!0,F["[object Error]"]=F[s]=F[m]=!1;var P="object"==typeof e&&e&&e.Object===Object&&e,R="object"==typeof self&&self&&self.Object===Object&&self,_=P||R||Function("return this")(),L=n&&!n.nodeType&&n,j=L&&t&&!t.nodeType&&t,M=j&&j.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function U(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function G(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=_["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?_.Buffer:void 0,re=_.Symbol,oe=_.Uint8Array,ie=G(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=G(Object.keys,Object),de=Le(_,"DataView"),pe=Le(_,"Map"),he=Le(_,"Promise"),ve=Le(_,"Set"),ge=Le(_,"WeakMap"),ye=Le(Object,"create"),me=Ue(de),be=Ue(pe),Ee=Ue(he),we=Ue(ve),Se=Ue(ge),Ce=re?re.prototype:void 0,De=Ce?Ce.valueOf:void 0;function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){this.__data__=new xe(e)}function Ne(e,t){var n=Ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ge(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||ze(a,r))||n.push(a);return n}function ke(e,t,n){var r=e[t];Q.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Be(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Ie(e,t,n,r,o,p,m){var B;if(r&&(B=p?r(e,o,p,m):r(e)),void 0!==B)return B;if(!Ke(e))return e;var I=Ve(e);if(I){if(B=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,B)}else{var P=Me(e),R=P==s||P==l;if(We(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(P==d||P==i||R&&!p){if($(e))return p?e:{};if(B=function(e){return"function"!=typeof e.constructor||He(e)?{}:(t=ie(e),Ke(t)?ae(t):{});var t}(R?{}:e),!t)return function(e,t){return Re(e,je(e),t)}(e,function(e,t){return e&&Re(t,Ye(t),e)}(B,e))}else{if(!F[P])return p?e:{};B=function(e,t,n,r){var o=e.constructor;switch(t){case b:return Pe(e);case a:case u:return new o(+e);case E:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case S:case C:case D:case A:case x:case O:case T:case N:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return U(t?n(V(e),!0):V(e),z,new e.constructor)}(e,r,n);case f:case g:return new o(e);case h:return function(e){var t=new e.constructor(e.source,k.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,n){return U(t?n(W(e),!0):W(e),H,new e.constructor)}(e,r,n);case y:return function(e){return De?Object(De.call(e)):{}}(e)}}(e,P,Ie,t)}}m||(m=new Te);var _=m.get(e);if(_)return _;if(m.set(e,B),!I)var L=n?function(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ye,je)}(e):Ye(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(L||e,(function(o,i){L&&(o=e[i=o]),ke(B,i,Ie(o,t,n,r,i,e,m))})),B}function Fe(e){return!(!Ke(e)||function(e){return!!Z&&Z in e}(e))&&(qe(e)||$(e)?te:B).test(Ue(e))}function Pe(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Re(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;ke(n,a,void 0===u?e[a]:u)}return n}function _e(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Fe(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===r?void 0:n}return Q.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?r:t,this},xe.prototype.clear=function(){this.__data__=[]},xe.prototype.delete=function(e){var t=this.__data__,n=Be(t,e);return!(n<0)&&(n==t.length-1?t.pop():se.call(t,n,1),!0)},xe.prototype.get=function(e){var t=this.__data__,n=Be(t,e);return n<0?void 0:t[n][1]},xe.prototype.has=function(e){return Be(this.__data__,e)>-1},xe.prototype.set=function(e,t){var n=this.__data__,r=Be(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Ae,map:new(pe||xe),string:new Ae}},Oe.prototype.delete=function(e){return _e(this,e).delete(e)},Oe.prototype.get=function(e){return _e(this,e).get(e)},Oe.prototype.has=function(e){return _e(this,e).has(e)},Oe.prototype.set=function(e,t){return _e(this,e).set(e,t),this},Te.prototype.clear=function(){this.__data__=new xe},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xe){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var je=le?G(le,Object):function(){return[]},Me=function(e){return ee.call(e)};function ze(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function He(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function Ue(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(de&&Me(new de(new ArrayBuffer(1)))!=E||pe&&Me(new pe)!=c||he&&Me(he.resolve())!=p||ve&&Me(new ve)!=v||ge&&Me(new ge)!=m)&&(Me=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?Ue(n):void 0;if(r)switch(r){case me:return E;case be:return c;case Ee:return p;case we:return v;case Se:return m}return t});var Ve=Array.isArray;function Ge(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!qe(e)}var We=ce||function(){return!1};function qe(e){var t=Ke(e)?ee.call(e):"";return t==s||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return Ge(e)?Ne(e):function(e){if(!He(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}t.exports=function(e){return Ie(e,!0,!0)}}));function Qg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ey=0;function ty(e){return"__private_"+ey+++"_"+e}function ny(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r}
|
|
7
|
+
*/function Jl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ql(e){var t,n;return!1!==Jl(e)&&(void 0===(t=e.constructor)||!1!==Jl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function ec(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function tc(e){return!!e&&!!e[zc]}function nc(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Hc}(e)||Array.isArray(e)||!!e[Mc]||!!e.constructor[Mc]||uc(e)||sc(e))}function rc(e,t,n){void 0===n&&(n=!1),0===oc(e)?(n?Object.keys:Uc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function oc(e){var t=e[zc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:uc(e)?2:sc(e)?3:0}function ic(e,t){return 2===oc(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ac(e,t,n){var r=oc(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function uc(e){return Rc&&e instanceof Map}function sc(e){return Lc&&e instanceof Set}function lc(e){return e.o||e.t}function cc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=$c(e);delete t[zc];for(var n=Uc(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function fc(e,t){return void 0===t&&(t=!1),pc(e)||tc(e)||!nc(e)||(oc(e)>1&&(e.set=e.add=e.clear=e.delete=dc),Object.freeze(e),t&&rc(e,(function(e,t){return fc(t,!0)}),!0)),e}function dc(){ec(2)}function pc(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function hc(e){var t=Vc[e];return t||ec(18,e),t}function vc(){return Fc}function gc(e,t){t&&(hc("Patches"),e.u=[],e.s=[],e.v=t)}function yc(e){mc(e),e.p.forEach(Ec),e.p=null}function mc(e){e===Fc&&(Fc=e.l)}function bc(e){return Fc={p:[],l:Fc,h:e,m:!0,_:0}}function Ec(e){var t=e[zc];0===t.i||1===t.i?t.j():t.O=!0}function wc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||hc("ES5").S(t,e,r),r?(n[zc].P&&(yc(t),ec(4)),nc(e)&&(e=Sc(t,e),t.l||Dc(t,e)),t.u&&hc("Patches").M(n[zc],e,t.u,t.s)):e=Sc(t,n,[]),yc(t),t.u&&t.v(t.u,t.s),e!==jc?e:void 0}function Sc(e,t,n){if(pc(t))return t;var r=t[zc];if(!r)return rc(t,(function(o,i){return Cc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Dc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=cc(r.k):r.o;rc(3===r.i?new Set(o):o,(function(t,i){return Cc(e,r,o,t,i,n)})),Dc(e,o,!1),n&&e.u&&hc("Patches").R(r,n,e.u,e.s)}return r.o}function Cc(e,t,n,r,o,i){if(tc(o)){var a=Sc(e,o,i&&t&&3!==t.i&&!ic(t.D,r)?i.concat(r):void 0);if(ac(n,r,a),!tc(a))return;e.m=!1}if(nc(o)&&!pc(o)){if(!e.h.F&&e._<1)return;Sc(e,o),t&&t.A.l||Dc(e,o)}}function Dc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&fc(t,n)}function Ac(e,t){var n=e[zc];return(n?lc(n):e)[t]}function xc(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Oc(e){e.P||(e.P=!0,e.l&&Oc(e.l))}function Tc(e){e.o||(e.o=cc(e.t))}function kc(e,t,n){var r=uc(t)?hc("MapSet").N(t,n):sc(t)?hc("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:vc(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Gc;n&&(o=[r],i=Wc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):hc("ES5").J(t,n);return(n?n.A:vc()).p.push(r),r}function Nc(e){return tc(e)||ec(22,e),function e(t){if(!nc(t))return t;var n,r=t[zc],o=oc(t);if(r){if(!r.P&&(r.i<4||!hc("ES5").K(r)))return r.t;r.I=!0,n=Bc(t,o),r.I=!1}else n=Bc(t,o);return rc(n,(function(t,o){r&&function(e,t){return 2===oc(e)?e.get(t):e[t]}(r.t,t)===o||ac(n,t,e(o))})),3===o?new Set(n):n}(e)}function Bc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return cc(e)}var Ic,Fc,Pc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Rc="undefined"!=typeof Map,Lc="undefined"!=typeof Set,_c="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,jc=Pc?Symbol.for("immer-nothing"):((Ic={})["immer-nothing"]=!0,Ic),Mc=Pc?Symbol.for("immer-draftable"):"__$immer_draftable",zc=Pc?Symbol.for("immer-state"):"__$immer_state",Hc=""+Object.prototype.constructor,Uc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,$c=Object.getOwnPropertyDescriptors||function(e){var t={};return Uc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Vc={},Gc={get:function(e,t){if(t===zc)return e;var n=lc(e);if(!ic(n,t))return function(e,t,n){var r,o=xc(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!nc(r)?r:r===Ac(e.t,t)?(Tc(e),e.o[t]=kc(e.A.h,r,e)):r},has:function(e,t){return t in lc(e)},ownKeys:function(e){return Reflect.ownKeys(lc(e))},set:function(e,t,n){var r=xc(lc(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Ac(lc(e),t),i=null==o?void 0:o[zc];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||ic(e.t,t)))return!0;Tc(e),Oc(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Ac(e.t,t)||t in e.t?(e.D[t]=!1,Tc(e),Oc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=lc(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){ec(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ec(12)}},Wc={};rc(Gc,(function(e,t){Wc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Wc.deleteProperty=function(e,t){return Gc.deleteProperty.call(this,e[0],t)},Wc.set=function(e,t,n){return Gc.set.call(this,e[0],t,n,e[0])};var qc=function(){function e(e){var t=this;this.g=_c,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&ec(6),void 0!==r&&"function"!=typeof r&&ec(7),nc(e)){var u=bc(t),s=kc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?yc(u):mc(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return gc(u,r),wc(e,u)}),(function(e){throw yc(u),e})):(gc(u,r),wc(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===jc)return;return void 0===a&&(a=e),t.F&&fc(a,!0),a}ec(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){nc(e)||ec(8),tc(e)&&(e=Nc(e));var t=bc(this),n=kc(this,e,void 0);return n[zc].C=!0,mc(t),n},t.finishDraft=function(e,t){var n=(e&&e[zc]).A;return gc(n,t),wc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!_c&&ec(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=hc("Patches").$;return tc(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Kc=new qc,Yc=Kc.produce;Kc.produceWithPatches.bind(Kc),Kc.setAutoFreeze.bind(Kc),Kc.setUseProxies.bind(Kc),Kc.applyPatches.bind(Kc);var Xc=Kc.createDraft.bind(Kc),Zc=Kc.finishDraft.bind(Kc);function Jc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qc=new WeakMap,ef=new WeakMap,tf=new WeakMap,nf=new WeakMap,rf=new WeakMap,of=new WeakMap;function af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?af(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sf=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Gf.pathRefs(e))nd.transform(n,t);for(var r of Gf.pointRefs(e))ad.transform(r,t);for(var o of Gf.rangeRefs(e))cd.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=Qc.get(e)||[],l=lf(t);for(var c of s){u(td.transform(c,t))}for(var f of l)u(f);Qc.set(e,a),Pd.transform(e,t),e.operations.push(t),Gf.normalize(e),"set_selection"===t.type&&(e.marks=null),ef.get(e)||(ef.set(e,!0),Promise.resolve().then((()=>{ef.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(ld.isExpanded(r))Pd.setNodes(e,{[t]:n},{match:gd.isText,split:!0});else{var o=uf(uf({},Gf.marks(e)||{}),{},{[t]:n});e.marks=o,ef.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&ld.isCollapsed(n)&&Pd.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&ld.isCollapsed(n)&&Pd.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&ld.isExpanded(n)&&Pd.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Zf.fragment(e,t):[]},insertBreak:()=>{Pd.splitNodes(e,{always:!0})},insertFragment:t=>{Pd.insertFragment(e,t)},insertNode:t=>{Pd.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=uf({text:t},r);Pd.insertNodes(e,o)}else Pd.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!gd.isText(n))if(Mf.isElement(n)&&0===n.children.length){Pd.insertNodes(e,{text:""},{at:r.concat(0),voids:!0})}else for(var o=!Gf.isEditor(n)&&(Mf.isElement(n)&&(e.isInline(n)||0===n.children.length||gd.isText(n.children[0])||e.isInline(n.children[0]))),i=0,a=0;a<n.children.length;a++,i++){var u=Zf.get(e,r);if(!gd.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;if((gd.isText(s)||Mf.isElement(s)&&e.isInline(s))!==o)Pd.removeNodes(e,{at:r.concat(i),voids:!0}),i--;else if(Mf.isElement(s)){if(e.isInline(s))if(null!=l&&gd.isText(l)){if(c){Pd.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++}}else{Pd.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++}}else null!=l&&gd.isText(l)&&(gd.equals(s,l,{loose:!0})?(Pd.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(Pd.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(Pd.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(ld.isExpanded(n))Pd.unsetNodes(e,t,{match:gd.isText,split:!0});else{var r=uf({},Gf.marks(e)||{});delete r[t],e.marks=r,ef.get(e)||e.onChange()}}};return e},lf=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return td.levels(t);case"insert_node":var{node:n,path:r}=e,o=td.levels(r),i=gd.isText(n)?[]:Array.from(Zf.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...td.ancestors(a),td.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(td.equals(u,s))return[];var l=[],c=[];for(var f of td.ancestors(u)){var d=td.transform(f,e);l.push(d)}for(var p of td.ancestors(s)){var h=td.transform(p,e);c.push(h)}var v=c[c.length-1],g=s[s.length-1],y=v.concat(g);return[...l,...c,y];case"remove_node":var{path:m}=e;return[...td.ancestors(m)];case"split_node":var{path:b}=e;return[...td.levels(b),td.next(b)];default:return[]}};function cf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ff,df=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?mf(e):e,o=ff.None,i=ff.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=Nf(s,l);if([o,i]=n?[i,c]:[c,o],Bf(o,ff.ZWJ)&&Bf(i,ff.ExtPict)&&!Rf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Bf(o,ff.RI)&&Bf(i,ff.RI)&&!(u=null!==u?!u:!!n||_f(e.substring(0,e.length-a))))break;if(o!==ff.None&&i!==ff.None&&Ff(o,i))break;a+=s.length}return a||1},pf=/\s/,hf=/[\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]/,vf=/['\u2018\u2019]/,gf=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},yf=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(pf.test(t))return!1;if(vf.test(t)){var o=df(n,r),[i,a]=gf(n,o,r);if(e(i,a,r))return!0}return!hf.test(t)},mf=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Ef(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(bf(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},bf=e=>e>=55296&&e<=56319,Ef=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(ff||(ff={}));var wf=/^(?:[\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])$/,Sf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Cf=/^(?:[\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])$/,Df=/^[\u1100-\u115F\uA960-\uA97C]$/,Af=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,xf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Of=/^[\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]$/,Tf=/^[\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]$/,kf=/^(?:[\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])$/,Nf=(e,t)=>{var n=ff.Any;return-1!==e.search(wf)&&(n|=ff.Extend),8205===t&&(n|=ff.ZWJ),t>=127462&&t<=127487&&(n|=ff.RI),-1!==e.search(Sf)&&(n|=ff.Prepend),-1!==e.search(Cf)&&(n|=ff.SpacingMark),-1!==e.search(Df)&&(n|=ff.L),-1!==e.search(Af)&&(n|=ff.V),-1!==e.search(xf)&&(n|=ff.T),-1!==e.search(Of)&&(n|=ff.LV),-1!==e.search(Tf)&&(n|=ff.LVT),-1!==e.search(kf)&&(n|=ff.ExtPict),n};function Bf(e,t){return!!(e&t)}var If=[[ff.L,ff.L|ff.V|ff.LV|ff.LVT],[ff.LV|ff.V,ff.V|ff.T],[ff.LVT|ff.T,ff.T],[ff.Any,ff.Extend|ff.ZWJ],[ff.Any,ff.SpacingMark],[ff.Prepend,ff.Any],[ff.ZWJ,ff.ExtPict],[ff.RI,ff.RI]];function Ff(e,t){return-1===If.findIndex((n=>Bf(e,n[0])&&Bf(t,n[1])))}var Pf=/(?:[\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$/,Rf=e=>-1!==e.search(Pf),Lf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,_f=e=>{var t=e.match(Lf);return null!==t&&t[0].length/2%2==1},jf=e=>Ql(e)&&Zf.isNodeList(e.children)&&!Gf.isEditor(e),Mf={isAncestor:e=>Ql(e)&&Zf.isNodeList(e.children),isElement:jf,isElementList:e=>Array.isArray(e)&&e.every((e=>Mf.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return jf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},zf=["text"],Hf=["text"];function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vf=new WeakMap,Gf={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Gf.path(e,o),u="lowest"===r;for(var[s,l]of Gf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!gd.isText(s)&&!td.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Gf.point(e,t,{edge:"end"}),focus:Gf.end(e,[])},{distance:i=1}=r,a=0;for(var u of Gf.positions(e,$f($f({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Gf.start(e,[]),focus:Gf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Gf.positions(e,$f($f({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Gf.start(e,t),Gf.end(e,t)],end:(e,t)=>Gf.point(e,t,{edge:"end"}),first(e,t){var n=Gf.path(e,t,{edge:"start"});return Gf.node(e,n)},fragment(e,t){var n=Gf.range(e,t);return Zf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Gf.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>gd.isText(t)||Gf.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>gd.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Mf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Ql(e))return!1;var t=Vf.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Ql(e.marks))&&(null===e.selection||ld.isRange(e.selection))&&Zf.isNodeList(e.children)&&ed.isOperationList(e.operations);return Vf.set(e,n),n},isEnd(e,t,n){var r=Gf.end(e,n);return id.equals(t,r)},isEdge:(e,t,n)=>Gf.isStart(e,t,n)||Gf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&gd.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Mf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=tf.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Gf.start(e,n);return id.equals(t,r)},isVoid:(e,t)=>Mf.isElement(t)&&e.isVoid(t),last(e,t){var n=Gf.path(e,t,{edge:"end"});return Gf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Gf.path(e,t,n);return[Zf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=Gf.path(e,n);for(var[s,l]of Zf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Gf.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(ld.isExpanded(n)){var[r]=Gf.nodes(e,{match:gd.isText});if(r){var[o]=r;return cf(o,zf)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Gf.leaf(e,a);if(0===i.offset){var s=Gf.previous(e,{at:a,match:gd.isText}),l=Gf.above(e,{match:t=>Gf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;td.isAncestor(d,f)&&(u=c)}}return cf(u,Hf)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Gf.after(e,i,{voids:r});if(a){var[,u]=Gf.last(e,[]),s=[a.path,u];if(td.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(td.isPath(i)){var[l]=Gf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Gf.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Gf.path(e,t,n);return[Zf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(qf.isSpan(n))s=n[0],l=n[1];else{var c=Gf.path(e,n,{edge:"start"}),f=Gf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Zf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Gf.isVoid(e,n)}}),h=[];for(var[v,g]of p){var y=d&&0===td.compare(g,d[1]);if("highest"!==r||!y)if(u(v,g))if("lowest"===r&&y)d=[v,g];else{var m="lowest"===r?d:[v,g];m&&(o?h.push(m):yield m),d=[v,g]}else if(o&&!y&&gd.isText(v))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Qc.get(e)||[];if(Gf.isNormalizing(e)){if(n){var o=Array.from(Zf.nodes(e),(e=>{var[,t]=e;return t}));Qc.set(e,o)}0!==r(e).length&&Gf.withoutNormalizing(e,(()=>{for(var t of r(e))if(Zf.has(e,t)){var n=Gf.node(e,t),[o,i]=n;Mf.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(Zf.has(e,s)){var l=Gf.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Gf.path(e,t,n),o=td.parent(r);return Gf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(td.isPath(t))if("start"===o){var[,i]=Zf.first(e,t);t=i}else if("end"===o){var[,a]=Zf.last(e,t);t=a}return ld.isRange(t)&&(t="start"===o?ld.start(t):"end"===o?ld.end(t):td.common(t.anchor.path,t.focus.path)),id.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Zf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Gf.pathRefs(e).delete(o),o.current=null,t}};return Gf.pathRefs(e).add(o),o},pathRefs(e){var t=nf.get(e);return t||(t=new Set,nf.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(td.isPath(t)){var o;if("end"===r){var[,i]=Zf.last(e,t);o=i}else{var[,a]=Zf.first(e,t);o=a}var u=Zf.get(e,o);if(!gd.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(ld.isRange(t)){var[s,l]=ld.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Gf.pointRefs(e).delete(o),o.current=null,t}};return Gf.pointRefs(e).add(o),o},pointRefs(e){var t=rf.get(e);return t||(t=new Set,rf.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Gf.range(e,n),[u,s]=ld.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[v,g]of Gf.nodes(e,{at:n,reverse:o,voids:i})){if(Mf.isElement(v)){if(!i&&e.isVoid(v)){yield Gf.start(e,g);continue}if(e.isInline(v))continue;if(Gf.hasInlines(e,v)){var y=td.isAncestor(g,s.path)?s:Gf.end(e,g),m=td.isAncestor(g,u.path)?u:Gf.start(e,g);f=Gf.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(gd.isText(v)){var b=td.equals(g,l.path);for(b?(p=o?l.offset:v.text.length-l.offset,h=l.offset):(p=v.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:g,offset:h},c=!1);;){if(0===d){if(""===f)break;d=E(f,r,o),f=gf(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:h}}}}}function E(e,t,n){return"character"===t?df(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=df(e,t),[i,a]=gf(e,o,t);if(yf(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Gf.before(e,i,{voids:r});if(a){var[,u]=Gf.first(e,[]),s=[a.path,u];if(td.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(td.isPath(i)){var[l]=Gf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Gf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>ld.isRange(t)&&!n?t:{anchor:Gf.start(e,t),focus:Gf.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Gf.rangeRefs(e).delete(o),o.current=null,t}};return Gf.rangeRefs(e).add(o),o},rangeRefs(e){var t=of.get(e);return t||(t=new Set,of.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){tf.set(e,t)},start:(e,t)=>Gf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Gf.range(e,t),[i,a]=ld.edges(o),u="";for(var[s,l]of Gf.nodes(e,{at:o,match:gd.isText,voids:r})){var c=s.text;td.equals(l,a.path)&&(c=c.slice(0,a.offset)),td.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=ld.edges(t);if(0!==o.offset||0!==i.offset||ld.isCollapsed(t))return t;var a=Gf.above(e,{at:i,match:t=>Gf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Gf.start(e,[]),focus:i},l=!0;for(var[c,f]of Gf.nodes(e,{at:s,match:gd.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||td.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Gf.above(e,$f($f({},t),{},{match:t=>Gf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Gf.isNormalizing(e);Gf.setNormalizing(e,!1);try{t()}finally{Gf.setNormalizing(e,n)}Gf.normalize(e)}},Wf={isLocation:e=>td.isPath(e)||id.isPoint(e)||ld.isRange(e)},qf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(td.isPath)},Kf=["children"],Yf=["text"],Xf=new WeakMap,Zf={ancestor(e,t){var n=Zf.get(e,t);if(gd.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of td.ancestors(t,n)){var o=[Zf.ancestor(e,r),r];yield o}},child(e,t){if(gd.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Zf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Zf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=td.common(t,n);return[Zf.get(e,r),r]},descendant(e,t){var n=Zf.get(e,t);if(Gf.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Zf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Zf.nodes(e,t))Mf.isElement(n)&&(yield[n,r])},extractProps:e=>Mf.isAncestor(e)?cf(e,Kf):cf(e,Yf),first(e,t){for(var n=t.slice(),r=Zf.get(e,n);r&&!gd.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(gd.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Yc({children:e.children},(e=>{var[n,r]=ld.edges(t),o=Zf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!ld.includes(t,n)}});for(var[,i]of o){if(!ld.includes(t,i)){var a=Zf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(td.equals(i,r.path)){var s=Zf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(td.equals(i,n.path)){var l=Zf.leaf(e,i);l.text=l.text.slice(n.offset)}}Gf.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(gd.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(gd.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>gd.isText(e)||Mf.isElement(e)||Gf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Xf.get(e);if(void 0!==t)return t;var n=e.every((e=>Zf.isNode(e)));return Xf.set(e,n),n},last(e,t){for(var n=t.slice(),r=Zf.get(e,n);r&&!gd.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Zf.get(e,t);if(!gd.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of td.levels(t,n)){var o=Zf.get(e,r);yield[o,r]}},matches:(e,t)=>Mf.isElement(e)&&Mf.isElementProps(t)&&Mf.matches(e,t)||gd.isText(e)&&gd.isTextProps(t)&&gd.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?td.isBefore(u,i):td.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||gd.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=td.next(u);if(Zf.has(e,l)){u=l,s=Zf.get(e,u);continue}}if(r&&0!==u[u.length-1])u=td.previous(u),s=Zf.get(e,u);else u=td.parent(u),s=Zf.get(e,u),a.add(s)}else{a.add(s);var c=r?s.children.length-1:0;td.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Zf.get(e,u)}},parent(e,t){var n=td.parent(t),r=Zf.get(e,n);if(gd.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>gd.isText(e)?e.text:e.children.map(Zf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Zf.nodes(e,t))gd.isText(n)&&(yield[n,r])}};function Jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ed={isNodeOperation:e=>ed.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Ql(e))return!1;switch(e.type){case"insert_node":case"remove_node":return td.isPath(e.path)&&Zf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&td.isPath(e.path);case"merge_node":return"number"==typeof e.position&&td.isPath(e.path)&&Ql(e.properties);case"move_node":return td.isPath(e.path)&&td.isPath(e.newPath);case"set_node":return td.isPath(e.path)&&Ql(e.properties)&&Ql(e.newProperties);case"set_selection":return null===e.properties&&ld.isRange(e.newProperties)||null===e.newProperties&&ld.isRange(e.properties)||Ql(e.properties)&&Ql(e.newProperties);case"split_node":return td.isPath(e.path)&&"number"==typeof e.position&&Ql(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>ed.isOperation(e))),isSelectionOperation:e=>ed.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>ed.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Qf(Qf({},e),{},{type:"remove_node"});case"insert_text":return Qf(Qf({},e),{},{type:"remove_text"});case"merge_node":return Qf(Qf({},e),{},{type:"split_node",path:td.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(td.equals(t,n))return e;if(td.isSibling(n,t))return Qf(Qf({},e),{},{path:t,newPath:n});var r=td.transform(n,e),o=td.transform(td.next(n),e);return Qf(Qf({},e),{},{path:r,newPath:o});case"remove_node":return Qf(Qf({},e),{},{type:"insert_node"});case"remove_text":return Qf(Qf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Qf(Qf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Qf(Qf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Qf(Qf({},e),{},{type:"merge_node",path:td.next(e.path)})}}},td={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=td.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return td.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return td.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return td.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===td.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===td.compare(e,t),isBefore:(e,t)=>-1===td.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===td.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===td.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===td.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===td.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&td.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!td.isAncestor(t,e)&&!td.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Yc(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(td.equals(i,r)||td.endsBefore(i,r)||td.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(td.equals(a,r)||td.isAncestor(a,r))return null;td.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;td.equals(u,r)||td.endsBefore(u,r)?r[u.length-1]-=1:td.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(td.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else td.endsBefore(l,r)?r[l.length-1]+=1:td.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(td.equals(f,d))return;if(td.isAncestor(f,r)||td.equals(f,r)){var p=d.slice();return td.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}td.isSibling(f,d)&&(td.isAncestor(d,r)||td.equals(d,r))?td.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:td.endsBefore(d,r)||td.equals(d,r)||td.isAncestor(d,r)?(td.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):td.endsBefore(f,r)&&(td.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},nd={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=td.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var id={compare(e,t){var n=td.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===id.compare(e,t),isBefore:(e,t)=>-1===id.compare(e,t),equals:(e,t)=>e.offset===t.offset&&td.equals(e.path,t.path),isPoint:e=>Ql(e)&&"number"==typeof e.offset&&td.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Yc(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=td.transform(o,t,n);break;case"insert_text":td.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":td.equals(t.path,o)&&(e.offset+=t.position),e.path=td.transform(o,t,n);break;case"remove_text":td.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(td.equals(t.path,o)||td.isAncestor(t.path,o))return null;e.path=td.transform(o,t,n);break;case"split_node":if(td.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=td.transform(o,t,od(od({},n),{},{affinity:"forward"})))}else e.path=td.transform(o,t,n)}}))}},ad={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=id.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},ud=["anchor","focus"];function sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ld={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return ld.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=ld.edges(e);return t},equals:(e,t)=>id.equals(e.anchor,t.anchor)&&id.equals(e.focus,t.focus),includes(e,t){if(ld.isRange(t)){if(ld.includes(e,t.anchor)||ld.includes(e,t.focus))return!0;var[n,r]=ld.edges(e),[o,i]=ld.edges(t);return id.isBefore(n,o)&&id.isAfter(r,i)}var[a,u]=ld.edges(e),s=!1,l=!1;return id.isPoint(t)?(s=id.compare(t,a)>=0,l=id.compare(t,u)<=0):(s=td.compare(t,a.path)>=0,l=td.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=cf(e,ud),[r,o]=ld.edges(e),[i,a]=ld.edges(t),u=id.isBefore(r,i)?i:r,s=id.isBefore(o,a)?o:a;return id.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sd(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return id.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return id.equals(t,n)},isExpanded:e=>!ld.isCollapsed(e),isForward:e=>!ld.isBackward(e),isRange:e=>Ql(e)&&id.isPoint(e.anchor)&&id.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=ld.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Yc(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=ld.isCollapsed(e);ld.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?ld.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=id.transform(e.anchor,t,{affinity:r}),s=id.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},cd={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=ld.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},fd=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ql(r)&&Ql(o)){if(!fd(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 t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},dd=["text"],pd=["anchor","focus"];function hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hd(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gd={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return cf(e,dd)}return fd(r?o(e):e,r?o(t):t)},isText:e=>Ql(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>gd.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[vd({},e)];for(var r of t){var o=cf(r,pd),[i,a]=ld.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&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var v=a.offset-f;h=vd(vd({},d),{},{text:d.text.slice(v)}),d=vd(vd({},d),{},{text:d.text.slice(0,v)})}if(i.offset>f){var g=i.offset-f;p=vd(vd({},d),{},{text:d.text.slice(0,g)}),d=vd(vd({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bd={transform(e,t){e.children=Xc(e.children);var n=e.selection&&Xc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Zf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of ld.points(t))t[s]=id.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Zf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[v,g]of ld.points(t))t[g]=id.transform(v,n);break;case"merge_node":var{path:y}=n,m=Zf.get(e,y),b=td.previous(y),E=Zf.get(e,b),w=Zf.parent(e,y),S=y[y.length-1];if(gd.isText(m)&&gd.isText(E))E.text+=m.text;else{if(gd.isText(m)||gd.isText(E))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(E));E.children.push(...m.children)}if(w.children.splice(S,1),t)for(var[C,D]of ld.points(t))t[D]=id.transform(C,n);break;case"move_node":var{path:A,newPath:x}=n;if(td.isAncestor(A,x))throw new Error("Cannot move a path [".concat(A,"] to new path [").concat(x,"] because the destination is inside itself."));var O=Zf.get(e,A),T=Zf.parent(e,A),k=A[A.length-1];T.children.splice(k,1);var N=td.transform(A,n),B=Zf.get(e,td.parent(N)),I=N[N.length-1];if(B.children.splice(I,0,O),t)for(var[F,P]of ld.points(t))t[P]=id.transform(F,n);break;case"remove_node":var{path:R}=n,L=R[R.length-1];if(Zf.parent(e,R).children.splice(L,1),t)for(var[_,j]of ld.points(t)){var M=id.transform(_,n);if(null!=t&&null!=M)t[j]=M;else{var z=void 0,H=void 0;for(var[U,$]of Zf.texts(e)){if(-1!==td.compare($,R)){H=[U,$];break}z=[U,$]}var V=!1;z&&H&&(V=td.equals(H[1],R)?!td.hasPrevious(H[1]):td.common(z[1],R).length<td.common(H[1],R).length),z&&!V?(_.path=z[1],_.offset=z[0].text.length):H?(_.path=H[1],_.offset=0):t=null}}break;case"remove_text":var{path:G,offset:W,text:q}=n;if(0===q.length)break;var K=Zf.leaf(e,G),Y=K.text.slice(0,W),X=K.text.slice(W+q.length);if(K.text=Y+X,t)for(var[Z,J]of ld.points(t))t[J]=id.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Zf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!ld.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=md({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=Zf.get(e,le),he=Zf.parent(e,le),ve=le[le.length-1];if(gd.isText(pe)){var ge=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ge,de=md(md({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=md(md({},fe),{},{children:be})}if(he.children.splice(ve+1,0,de),t)for(var[Ee,we]of ld.points(t))t[we]=id.transform(Ee,n)}return t})(e,n,t)}finally{e.children=Zc(e.children),e.selection=n?tc(n)?Zc(n):n:null}}},Ed=["text"],wd=["children"];function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Gf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Zf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Gf.end(e,[]):[0],s=!0),null==s&&(s=!1),ld.isRange(a))if(r||(a=Gf.unhangRange(e,a)),ld.isCollapsed(a))a=a.anchor;else{var[,c]=ld.edges(a),f=Gf.pointRef(e,c);Pd.delete(e,{at:a}),a=f.unref()}if(id.isPoint(a)){null==u&&(u=gd.isText(l)?e=>gd.isText(e):e.isInline(l)?t=>gd.isText(t)||Gf.isInline(e,t):t=>Gf.isBlock(e,t));var[d]=Gf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Gf.pathRef(e,p),v=Gf.isEnd(e,a,p);Pd.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=h.unref();a=v?td.next(g):g}var y=td.parent(a),m=a[a.length-1];if(o||!Gf.void(e,{at:y})){for(var b of t){var E=y.concat(m);m++,e.apply({type:"insert_node",path:E,node:b}),a=td.next(a)}if(a=td.previous(a),s){var w=Gf.end(e,a);w&&Pd.select(e,w)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gf.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=td.isPath(n)?Od(e,n):t=>Gf.isBlock(e,t)),n){var a=Gf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Gf.pathRef(e,n)}));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=Gf.node(e,td.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var v=td.next(d);Pd.moveNodes(e,{at:l,to:v,voids:o}),Pd.removeNodes(e,{at:d,voids:o})}else if(0===p)Pd.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var g=td.next(d);Pd.moveNodes(e,{at:l,to:g,voids:o})}else{var y=td.next(l),m=td.next(d);Pd.splitNodes(e,{at:y,voids:o}),Pd.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gf.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(td.isPath(r)){var[u]=Gf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Gf.isBlock(e,t);if(!o&&ld.isRange(r)&&(r=Gf.unhangRange(e,r)),ld.isRange(r))if(ld.isCollapsed(r))r=r.anchor;else{var[,s]=ld.edges(r),l=Gf.pointRef(e,s);Pd.delete(e,{at:r}),r=l.unref(),null==t.at&&Pd.select(e,r)}var[c]=Gf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Gf.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,v]=f;if(0!==p.length&&0!==v.length){var g,y,m=td.next(v),b=td.common(p,v),E=td.isSibling(p,v),w=Array.from(Gf.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),S=Gf.above(e,{at:p,mode:"highest",match:t=>w.includes(t)&&Ad(e,t)}),C=S&&Gf.pathRef(e,S[1]);if(gd.isText(d)&&gd.isText(h)){var D=cf(d,Ed);y=h.text.length,g=D}else{if(!Mf.isElement(d)||!Mf.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));D=cf(d,wd);y=h.children.length,g=D}E||Pd.moveNodes(e,{at:p,to:m,voids:i}),C&&Pd.removeNodes(e,{at:C.current,voids:i}),Mf.isElement(h)&&Gf.isEmpty(e,h)||gd.isText(h)&&""===h.text&&0!==v[v.length-1]?Pd.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){Gf.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=td.isPath(r)?Od(e,r):t=>Gf.isBlock(e,t));var u=Gf.pathRef(e,n),s=Gf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return Gf.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&td.isSibling(d,f)&&td.isAfter(d,f)&&(u.current=td.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gf.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=td.isPath(i)?Od(e,i):t=>Gf.isBlock(e,t)),!n&&ld.isRange(i)&&(i=Gf.unhangRange(e,i));var u=Gf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Gf.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=Gf.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Gf.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=td.isPath(o)?Od(e,o):t=>Gf.isBlock(e,t)),!i&&ld.isRange(o)&&(o=Gf.unhangRange(e,o)),u&&ld.isRange(o)){if(ld.isCollapsed(o)&&Gf.leaf(e,o.anchor)[0].text.length>0)return;var l=Gf.rangeRef(e,o,{affinity:"inward"}),[c,f]=ld.edges(o),d="lowest"===a?"lowest":"highest",p=Gf.isEnd(e,f,f.path);Pd.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Gf.isStart(e,c,c.path);Pd.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&Pd.select(e,o)}for(var[v,g]of Gf.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==g.length){var b=!1;for(var E in t)"children"!==E&&"text"!==E&&t[E]!==v[E]&&(b=!0,v.hasOwnProperty(E)&&(y[E]=v[E]),null!=t[E]&&(m[E]=t[E]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gf.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>Gf.isBlock(e,t)),ld.isRange(i)&&(i=xd(e,i)),td.isPath(i)){var s=i,l=Gf.point(e,s),[c]=Gf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Gf.pointRef(e,i,{affinity:"backward"}),[d]=Gf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Gf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,v]=p;if(Mf.isElement(h)&&e.isInline(h)){var g=Gf.after(e,v);if(!g){var y=td.next(v);Pd.insertNodes(e,{text:""},{at:y,voids:r}),g=Gf.point(e,y)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var m=Gf.pointRef(e,i),b=i.path.length-a,[,E]=d,w=i.path.slice(0,b),S=0===a?i.offset:i.path[b]+0;for(var[C,D]of Gf.levels(e,{at:w,reverse:!0,voids:r})){var A=!1;if(D.length<E.length||0===D.length||!r&&Gf.isVoid(e,C))break;var x=f.current,O=Gf.isEnd(e,x,D);if(u||!f||!Gf.isEdge(e,x,D)){A=!0;var T=Zf.extractProps(C);e.apply({type:"split_node",path:D,position:S,properties:T})}S=D[D.length-1]+(A||O?1:0)}if(null==t.at){var k=m.current||Gf.end(e,[]);Pd.select(e,k)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Pd.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gf.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=td.isPath(i)?Od(e,i):t=>Gf.isBlock(e,t)),td.isPath(i)&&(i=Gf.range(e,i));var u=ld.isRange(i)?Gf.rangeRef(e,i):null,s=Gf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Gf.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Gf.node(e,n),a=Gf.range(e,n);r&&u&&(a=ld.intersection(u.current,a)),Pd.liftNodes(e,{at:a,match:e=>Mf.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Gf.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=td.isPath(u)?Od(e,u):e.isInline(t)?t=>Gf.isInline(e,t)||gd.isText(t):t=>Gf.isBlock(e,t)),o&&ld.isRange(u)){var[s,l]=ld.edges(u),c=Gf.rangeRef(e,u,{affinity:"inward"});Pd.splitNodes(e,{at:l,match:a,voids:i}),Pd.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&Pd.select(e,u)}var f=Array.from(Gf.nodes(e,{at:u,match:e.isInline(t)?t=>Gf.isBlock(e,t):e=>Gf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=ld.isRange(u)?ld.intersection(u,Gf.range(e,d)):u;if(p){var h=Array.from(Gf.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var v=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=td.equals(o,a)?td.parent(o):td.common(o,a),s=Gf.range(e,o,a),l=Gf.node(e,u),[c]=l,f=u.length+1,d=td.next(a.slice(0,f)),p=Cd(Cd({},t),{},{children:[]});Pd.insertNodes(e,p,{at:d,voids:i}),Pd.moveNodes(e,{at:s,match:e=>Mf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===v)continue}}}}}))}},Ad=(e,t)=>{if(Mf.isElement(t)){var n=t;return!!Gf.isVoid(e,t)||1===n.children.length&&Ad(e,n.children[0])}return!Gf.isEditor(t)},xd=(e,t)=>{if(ld.isCollapsed(t))return t.anchor;var[,n]=ld.edges(t),r=Gf.pointRef(e,n);return Pd.delete(e,{at:t}),r.unref()},Od=(e,t)=>{var[n]=Gf.node(e,t);return e=>e===n};function Td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Td(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nd={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Pd.select(e,r.anchor);else if("focus"===n)Pd.select(e,r.focus);else if("start"===n){var[o]=ld.edges(r);Pd.select(e,o)}else if("end"===n){var[,i]=ld.edges(r);Pd.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=ld.isBackward(n)?"focus":"anchor"),"end"===a&&(a=ld.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Gf.before(e,u,l):Gf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Gf.before(e,s,l):Gf.after(e,s,l);d&&(c.focus=d)}Pd.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Gf.range(e,t),n)Pd.setSelection(e,t);else{if(!ld.isRange(t))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(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=ld.isBackward(r)?"focus":"anchor"),"end"===o&&(o=ld.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;Pd.setSelection(e,{["anchor"===o?"anchor":"focus"]:kd(kd({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!id.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!id.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Bd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gf.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(ld.isRange(a)&&ld.isCollapsed(a)&&(a=a.anchor),id.isPoint(a)){var s=Gf.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?Gf.before(e,a,c)||Gf.start(e,[]):Gf.after(e,a,c)||Gf.end(e,[])},u=!0}}if(td.isPath(a))Pd.removeNodes(e,{at:a,voids:i});else if(!ld.isCollapsed(a)){if(!u){var[,f]=ld.edges(a),d=Gf.end(e,[]);id.equals(f,d)||(a=Gf.unhangRange(e,a,{voids:i}))}var[p,h]=ld.edges(a),v=Gf.above(e,{match:t=>Gf.isBlock(e,t),at:p,voids:i}),g=Gf.above(e,{match:t=>Gf.isBlock(e,t),at:h,voids:i}),y=v&&g&&!td.equals(v[1],g[1]),m=td.equals(p.path,h.path),b=i?null:Gf.void(e,{at:p,mode:"highest"}),E=i?null:Gf.void(e,{at:h,mode:"highest"});if(b){var w=Gf.before(e,p);w&&v&&td.isAncestor(v[1],w.path)&&(p=w)}if(E){var S=Gf.after(e,h);S&&g&&td.isAncestor(g[1],S.path)&&(h=S)}var C,D=[];for(var A of Gf.nodes(e,{at:a,voids:i})){var[x,O]=A;C&&0===td.compare(O,C)||(!i&&Gf.isVoid(e,x)||!td.isCommon(O,p.path)&&!td.isCommon(O,h.path))&&(D.push(A),C=O)}var T=Array.from(D,(t=>{var[,n]=t;return Gf.pathRef(e,n)})),k=Gf.pointRef(e,p),N=Gf.pointRef(e,h);if(!m&&!b){var B=k.current,[I]=Gf.leaf(e,B),{path:F}=B,{offset:P}=p,R=I.text.slice(P);R.length>0&&e.apply({type:"remove_text",path:F,offset:P,text:R})}for(var L of T){var _=L.unref();Pd.removeNodes(e,{at:_,voids:i})}if(!E){var j=N.current,[M]=Gf.leaf(e,j),{path:z}=j,H=m?p.offset:0,U=M.text.slice(H,h.offset);U.length>0&&e.apply({type:"remove_text",path:z,offset:H,text:U})}!m&&y&&N.current&&k.current&&Pd.mergeNodes(e,{at:N.current,hanging:!0,voids:i});var $=n?k.unref()||N.unref():N.unref()||k.unref();null==t.at&&$&&Pd.select(e,$)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Gf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(ld.isRange(i))if(r||(i=Gf.unhangRange(e,i)),ld.isCollapsed(i))i=i.anchor;else{var[,a]=ld.edges(i);if(!o&&Gf.void(e,{at:a}))return;var u=Gf.pointRef(e,a);Pd.delete(e,{at:i}),i=u.unref()}else td.isPath(i)&&(i=Gf.start(e,i));if(o||!Gf.void(e,{at:i})){var s=Gf.above(e,{at:i,match:t=>Gf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;if(Gf.isEnd(e,i,l))i=Gf.after(e,l);else if(Gf.isStart(e,i,l)){i=Gf.before(e,l)}}var c=Gf.above(e,{match:t=>Gf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Gf.isStart(e,i,f),p=Gf.isEnd(e,i,f),h=d&&p,v=!d||d&&p,g=!p,[,y]=Zf.first({children:t},[]),[,m]=Zf.last({children:t},[]),b=[],E=t=>{var[n,r]=t;return!(0===r.length)&&(!!h||!(v&&td.isAncestor(r,y)&&Mf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(g&&td.isAncestor(r,m)&&Mf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var w of Zf.nodes({children:t},{pass:E}))E(w)&&b.push(w);var S=[],C=[],D=[],A=!0,x=!1;for(var[O]of b)Mf.isElement(O)&&!e.isInline(O)?(A=!1,x=!0,C.push(O)):A?S.push(O):D.push(O);var[T]=Gf.nodes(e,{at:i,match:t=>gd.isText(t)||Gf.isInline(e,t),mode:"highest",voids:o}),[,k]=T,N=Gf.isStart(e,i,k),B=Gf.isEnd(e,i,k),I=Gf.pathRef(e,p?td.next(f):f),F=Gf.pathRef(e,B?td.next(k):k),P=Gf.pathRef(e,f);Pd.splitNodes(e,{at:i,match:t=>x?Gf.isBlock(e,t):gd.isText(t)||Gf.isInline(e,t),mode:x?"lowest":"highest",voids:o});var R=Gf.pathRef(e,!N||N&&B?td.next(k):k);if(Pd.insertNodes(e,S,{at:R.current,match:t=>gd.isText(t)||Gf.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&Pd.delete(e,{at:P.unref(),voids:o}),Pd.insertNodes(e,C,{at:I.current,match:t=>Gf.isBlock(e,t),mode:"lowest",voids:o}),Pd.insertNodes(e,D,{at:F.current,match:t=>gd.isText(t)||Gf.isInline(e,t),mode:"highest",voids:o}),!n.at){var L;L=D.length>0?td.previous(F.current):C.length>0?td.previous(I.current):td.previous(R.current);var _=Gf.end(e,L);Pd.select(e,_)}R.unref(),I.unref(),F.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Gf.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(td.isPath(o)&&(o=Gf.range(e,o)),ld.isRange(o))if(ld.isCollapsed(o))o=o.anchor;else{var i=ld.end(o);if(!r&&Gf.void(e,{at:i}))return;var a=Gf.pointRef(e,i);Pd.delete(e,{at:o,voids:r}),o=a.unref(),Pd.setSelection(e,{anchor:o,focus:o})}if(r||!Gf.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function Id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Id(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pd=Fd(Fd(Fd(Fd({},bd),Dd),Nd),Bd),Rd=9007199254740991,Ld="[object Arguments]",_d="[object Function]",jd="[object GeneratorFunction]",Md="[object Map]",zd="[object Promise]",Hd="[object Set]",Ud="[object String]",$d="[object WeakMap]",Vd="[object DataView]",Gd=/^\[object .+?Constructor\]$/,Wd=/^(?:0|[1-9]\d*)$/,qd="\\ud800-\\udfff",Kd="\\u0300-\\u036f\\ufe20-\\ufe23",Yd="\\u20d0-\\u20f0",Xd="\\ufe0e\\ufe0f",Zd="["+qd+"]",Jd="["+Kd+Yd+"]",Qd="\\ud83c[\\udffb-\\udfff]",ep="[^"+qd+"]",tp="(?:\\ud83c[\\udde6-\\uddff]){2}",np="[\\ud800-\\udbff][\\udc00-\\udfff]",rp="\\u200d",op="(?:"+Jd+"|"+Qd+")"+"?",ip="["+Xd+"]?",ap=ip+op+("(?:"+rp+"(?:"+[ep,tp,np].join("|")+")"+ip+op+")*"),up="(?:"+[ep+Jd+"?",Jd,tp,np,Zd].join("|")+")",sp=RegExp(Qd+"(?="+Qd+")|"+up+ap,"g"),lp=RegExp("["+rp+qd+Kd+Yd+Xd+"]"),cp="object"==typeof e&&e&&e.Object===Object&&e,fp="object"==typeof self&&self&&self.Object===Object&&self,dp=cp||fp||Function("return this")();function pp(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(t,(function(t){return e[t]}))}function hp(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function vp(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function gp(e){return function(e){return lp.test(e)}(e)?function(e){return e.match(sp)||[]}(e):function(e){return e.split("")}(e)}var yp,mp,bp=Function.prototype,Ep=Object.prototype,wp=dp["__core-js_shared__"],Sp=function(){var e=/[^.]+$/.exec(wp&&wp.keys&&wp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Cp=bp.toString,Dp=Ep.hasOwnProperty,Ap=Ep.toString,xp=RegExp("^"+Cp.call(Dp).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Op=dp.Symbol,Tp=Op?Op.iterator:void 0,kp=Ep.propertyIsEnumerable,Np=(yp=Object.keys,mp=Object,function(e){return yp(mp(e))}),Bp=Vp(dp,"DataView"),Ip=Vp(dp,"Map"),Fp=Vp(dp,"Promise"),Pp=Vp(dp,"Set"),Rp=Vp(dp,"WeakMap"),Lp=qp(Bp),_p=qp(Ip),jp=qp(Fp),Mp=qp(Pp),zp=qp(Rp);function Hp(e,t){var n=Kp(e)||function(e){return function(e){return Jp(e)&&Yp(e)}(e)&&Dp.call(e,"callee")&&(!kp.call(e,"callee")||Ap.call(e)==Ld)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Dp.call(e,i)||o&&("length"==i||Wp(i,r))||n.push(i);return n}function Up(e){if(!Zp(e)||function(e){return!!Sp&&Sp in e}(e))return!1;var t=Xp(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?xp:Gd;return t.test(qp(e))}function $p(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Ep,t!==r)return Np(e);var t,n,r,o=[];for(var i in Object(e))Dp.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Vp(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Up(n)?n:void 0}var Gp=function(e){return Ap.call(e)};function Wp(e,t){return!!(t=null==t?Rd:t)&&("number"==typeof e||Wd.test(e))&&e>-1&&e%1==0&&e<t}function qp(e){if(null!=e){try{return Cp.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Bp&&Gp(new Bp(new ArrayBuffer(1)))!=Vd||Ip&&Gp(new Ip)!=Md||Fp&&Gp(Fp.resolve())!=zd||Pp&&Gp(new Pp)!=Hd||Rp&&Gp(new Rp)!=$d)&&(Gp=function(e){var t=Ap.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?qp(n):void 0;if(r)switch(r){case Lp:return Vd;case _p:return Md;case jp:return zd;case Mp:return Hd;case zp:return $d}return t});var Kp=Array.isArray;function Yp(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Rd}(e.length)&&!Xp(e)}function Xp(e){var t=Zp(e)?Ap.call(e):"";return t==_d||t==jd}function Zp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Jp(e){return!!e&&"object"==typeof e}function Qp(e){return e?pp(e,function(e){return Yp(e)?Hp(e):$p(e)}(e)):[]}var eh=function(e){if(!e)return[];if(Yp(e))return function(e){return"string"==typeof e||!Kp(e)&&Jp(e)&&Ap.call(e)==Ud}(e)?gp(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(Tp&&e[Tp])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Tp]());var t=Gp(e);return(t==Md?hp:t==Hd?vp:Qp)(e)};function th(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function nh(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:th(t[n])&&th(e[n])&&Object.keys(t[n]).length>0&&nh(e[n],t[n])}))}var rh={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 e="undefined"!=typeof document?document:{};return nh(e,rh),e}var ih={document:rh,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(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function ah(){var e="undefined"!=typeof window?window:{};return nh(e,ih),e}function uh(e){return uh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uh(e)}function sh(e,t){return sh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sh(e,t)}function lh(e,t,n){return lh=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&sh(o,n.prototype),o},lh.apply(null,arguments)}function ch(e){var t="function"==typeof Map?new Map:void 0;return ch=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return lh(e,arguments,uh(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),sh(n,e)},ch(e)}var fh=function(e){var t,n;function r(t){var n,r,o;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(ch(Array));function dh(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,dh(e)):t.push(e)})),t}function ph(e,t){return Array.prototype.filter.call(e,t)}function hh(e,t){var n=ah(),r=oh(),o=[];if(!t&&e instanceof fh)return e;if(!e)return new fh(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(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(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof fh)return e;o=e}return new fh(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function vh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dh(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function gh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dh(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function yh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=dh(t.map((function(e){return e.split(" ")})));return ph(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function mh(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function bh(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Eh(e,t){var n;if(void 0===t){if(!(n=this[0]))return;if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var r=n.getAttribute("data-"+e);return r||void 0}for(var o=0;o<this.length;o+=1)(n=this[o]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}function wh(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Sh(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Ch(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),hh(t).is(o))i.apply(t,n);else for(var r=hh(t).parents(),a=0;a<r.length;a+=1)hh(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Dh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[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],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Ah(){var e=ah();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function xh(){var e=ah();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Oh(){if(this.length>0){var e=ah(),t=oh(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Th(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function kh(){for(var e=ah(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Nh(e,t){var n,r=ah();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Bh(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Ih(e){return hh(ph(this,e))}function Fh(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Ph(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Rh(e){var t,n,r=ah(),o=oh(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=hh(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof fh){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Lh(){for(var e,t=oh(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof fh)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function _h(e){var t,n,r=oh();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof fh)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function jh(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?hh(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return hh(t)}function Mh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?hh(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return hh(t)}function zh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return hh(t)}function Hh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!hh(r[o]).is(e)||t.push(r[o]);return hh(t)}function Uh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function $h(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}hh.fn=fh.prototype;var Vh="resize scroll".split(" ");function Gh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)Vh.indexOf(e)<0&&(e in this[o]?this[o][e]():hh(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Wh=Gh("click"),qh=Gh("focus"),Kh=9007199254740991,Yh="[object Arguments]",Xh="[object Function]",Zh="[object GeneratorFunction]",Jh=/^(?:0|[1-9]\d*)$/;function Qh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var ev=Object.prototype,tv=ev.hasOwnProperty,nv=ev.toString,rv=ev.propertyIsEnumerable,ov=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function iv(e,t){var n=dv(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&pv(e)}(e)&&tv.call(e,"callee")&&(!rv.call(e,"callee")||nv.call(e)==Yh)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!tv.call(e,i)||o&&("length"==i||fv(i,r))||n.push(i);return n}var av,uv,sv=(av=function(e,t){return e&&lv(e,t,hv)},function(e,t){if(null==e)return e;if(!pv(e))return av(e,t);for(var n=e.length,r=uv?n:-1,o=Object(e);(uv?r--:++r<n)&&!1!==t(o[r],r,o););return e}),lv=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}();function cv(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||ev,t!==r)return ov(e);var t,n,r,o=[];for(var i in Object(e))tv.call(e,i)&&"constructor"!=i&&o.push(i);return o}function fv(e,t){return!!(t=null==t?Kh:t)&&("number"==typeof e||Jh.test(e))&&e>-1&&e%1==0&&e<t}var dv=Array.isArray;function pv(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Kh}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?nv.call(e):"";return t==Xh||t==Zh}(e)}function hv(e){return pv(e)?iv(e):cv(e)}function vv(e){return e}var gv=function(e,t){return(dv(e)?Qh:sv)(e,"function"==typeof t?t:vv)};let yv=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var mv="Expected a function",bv=NaN,Ev="[object Symbol]",wv=/^\s+|\s+$/g,Sv=/^[-+]0x[0-9a-f]+$/i,Cv=/^0b[01]+$/i,Dv=/^0o[0-7]+$/i,Av=parseInt,xv="object"==typeof e&&e&&e.Object===Object&&e,Ov="object"==typeof self&&self&&self.Object===Object&&self,Tv=xv||Ov||Function("return this")(),kv=Object.prototype.toString,Nv=Math.max,Bv=Math.min,Iv=function(){return Tv.Date.now()};function Fv(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError(mv);function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Iv();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Bv(n,i-(e-l)):n}(e))}function g(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=Iv(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(v,t),c?p(e):a}(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Rv(t)||0,Pv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Nv(Rv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g(Iv())},y}function Pv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Rv(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&kv.call(e)==Ev}(e))return bv;if(Pv(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Pv(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(wv,"");var n=Cv.test(e);return n||Dv.test(e)?Av(e.slice(2),n?2:8):Sv.test(e)?bv:+e}var Lv=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(mv);return Pv(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Fv(e,t,{leading:r,maxWait:t,trailing:o})};const _v={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function jv(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const Mv=Array.isArray;function zv(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Hv(e){return void 0===e}function Uv(e){return void 0!==e}const $v=jv("",{},[],void 0,void 0);function Vv(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function Gv(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const Wv=["create","update","remove","destroy","pre","post"];function qv(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:_v;for(const t of Wv)for(const r of e){const e=r[t];void 0!==e&&n[t].push(e)}function o(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return jv(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}function i(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function a(e,t){var o,i;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;Uv(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)Hv(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,v=e.elm=Uv(s)&&Uv(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&v.setAttribute("id",c.slice(d+1,p)),f>0&&v.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u]($v,e);if(Mv(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(v,a(e,t))}else zv(e.text)&&r.appendChild(v,r.createTextNode(e.text));const g=e.data.hook;Uv(g)&&(null===(i=g.create)||void 0===i||i.call(g,$v,e),g.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function u(e,t,n,o,i,u){for(;o<=i;++o){const i=n[o];null!=i&&r.insertBefore(e,a(i,u),t)}}function s(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&s(n)}}}function l(e,t,o,a){for(var u,l;o<=a;++o){let a,c;const f=t[o];if(null!=f)if(Uv(f.sel)){s(f),a=n.remove.length+1,c=i(f.elm,a);for(let e=0;e<n.remove.length;++e)n.remove[e](f,c);const e=null===(l=null===(u=null==f?void 0:f.data)||void 0===u?void 0:u.hook)||void 0===l?void 0:l.remove;Uv(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function c(e,t,o){var i,s,f,d,p;const h=null===(i=t.data)||void 0===i?void 0:i.hook;null===(s=null==h?void 0:h.prepatch)||void 0===s||s.call(h,e,t);const v=t.elm=e.elm,g=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}Hv(t.text)?Uv(g)&&Uv(y)?g!==y&&function(e,t,n,o){let i,s,f,d,p=0,h=0,v=t.length-1,g=t[0],y=t[v],m=n.length-1,b=n[0],E=n[m];for(;p<=v&&h<=m;)null==g?g=t[++p]:null==y?y=t[--v]:null==b?b=n[++h]:null==E?E=n[--m]:Vv(g,b)?(c(g,b,o),g=t[++p],b=n[++h]):Vv(y,E)?(c(y,E,o),y=t[--v],E=n[--m]):Vv(g,E)?(c(g,E,o),r.insertBefore(e,g.elm,r.nextSibling(y.elm)),g=t[++p],E=n[--m]):Vv(y,b)?(c(y,b,o),r.insertBefore(e,y.elm,g.elm),y=t[--v],b=n[++h]):(void 0===i&&(i=Gv(t,p,v)),s=i[b.key],Hv(s)?r.insertBefore(e,a(b,o),g.elm):(f=t[s],f.sel!==b.sel?r.insertBefore(e,a(b,o),g.elm):(c(f,b,o),t[s]=void 0,r.insertBefore(e,f.elm,g.elm))),b=n[++h]);(p<=v||h<=m)&&(p>v?(d=null==n[m+1]?null:n[m+1].elm,u(e,d,n,h,m,o)):l(e,t,p,v))}(v,g,y,o):Uv(y)?(Uv(e.text)&&r.setTextContent(v,""),u(v,null,y,0,y.length-1,o)):Uv(g)?l(v,g,0,g.length-1):Uv(e.text)&&r.setTextContent(v,""):e.text!==t.text&&(Uv(g)&&l(v,g,0,g.length-1),r.setTextContent(v,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let i,u,s;const f=[];for(i=0;i<n.pre.length;++i)n.pre[i]();for(function(e){return void 0!==e.sel}(e)||(e=o(e)),Vv(e,t)?c(e,t,f):(u=e.elm,s=r.parentNode(u),a(t,f),null!==s&&(r.insertBefore(s,t.elm,r.nextSibling(u)),l(s,[e],0,0))),i=0;i<f.length;++i)f[i].data.hook.insert(f[i]);for(i=0;i<n.post.length;++i)n.post[i]();return t}}function Kv(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let e=0;e<t.length;++e){const n=t[e].data;void 0!==n&&Kv(n,t[e].children,t[e].sel)}}function Yv(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Mv(n)?r=n:zv(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(Mv(t)?r=t:zv(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)zv(r[i])&&(r[i]=jv(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Kv(a,r,e),jv(e,a,r,o,void 0)}function Xv(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const Zv={create:Xv,update:Xv};function Jv(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.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 Qv={create:Jv,update:Jv},eg=/[A-Z]/g;function tg(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(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(eg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(eg,"-$&").toLowerCase(),i[r]))}const ng={create:tg,update:tg};function rg(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)rg(e[r],t,n)}function og(e,t){const n=e.type,r=t.data.on;r&&r[n]&&rg(r[n],t,e)}function ig(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.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 r=t.listener=e.listener||function e(t){og(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const ag={create:ig,update:ig,destroy:ig};function ug(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const sg={create:ug,update:ug},lg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,cg=function(e){lg((function(){lg(e)}))};let fg=!1;function dg(e,t,n){cg((function(){e[t]=n}))}function pg(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(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],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||dg(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const hg={pre:function(){fg=!1},create:pg,update:pg,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;fg||(e.elm.offsetLeft,fg=!0);const o=e.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)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function vg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?vg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(jv(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function gg(e,t,...n){const r=vg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Yv(e,t,r[0].text):Yv(e,t,r)}gg||(gg={});var yg=1/0,mg="[object Symbol]",bg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Eg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wg="\\ud800-\\udfff",Sg="\\u0300-\\u036f\\ufe20-\\ufe23",Cg="\\u20d0-\\u20f0",Dg="\\u2700-\\u27bf",Ag="a-z\\xdf-\\xf6\\xf8-\\xff",xg="A-Z\\xc0-\\xd6\\xd8-\\xde",Og="\\ufe0e\\ufe0f",Tg="\\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",kg="['’]",Ng="["+wg+"]",Bg="["+Tg+"]",Ig="["+Sg+Cg+"]",Fg="\\d+",Pg="["+Dg+"]",Rg="["+Ag+"]",Lg="[^"+wg+Tg+Fg+Dg+Ag+xg+"]",_g="\\ud83c[\\udffb-\\udfff]",jg="[^"+wg+"]",Mg="(?:\\ud83c[\\udde6-\\uddff]){2}",zg="[\\ud800-\\udbff][\\udc00-\\udfff]",Hg="["+xg+"]",Ug="\\u200d",$g="(?:"+Rg+"|"+Lg+")",Vg="(?:"+Hg+"|"+Lg+")",Gg="(?:['’](?:d|ll|m|re|s|t|ve))?",Wg="(?:['’](?:D|LL|M|RE|S|T|VE))?",qg="(?:"+Ig+"|"+_g+")"+"?",Kg="["+Og+"]?",Yg=Kg+qg+("(?:"+Ug+"(?:"+[jg,Mg,zg].join("|")+")"+Kg+qg+")*"),Xg="(?:"+[Pg,Mg,zg].join("|")+")"+Yg,Zg="(?:"+[jg+Ig+"?",Ig,Mg,zg,Ng].join("|")+")",Jg=RegExp(kg,"g"),Qg=RegExp(Ig,"g"),ey=RegExp(_g+"(?="+_g+")|"+Zg+Yg,"g"),ty=RegExp([Hg+"?"+Rg+"+"+Gg+"(?="+[Bg,Hg,"$"].join("|")+")",Vg+"+"+Wg+"(?="+[Bg,Hg+$g,"$"].join("|")+")",Hg+"?"+$g+"+"+Gg,Hg+"+"+Wg,Fg,Xg].join("|"),"g"),ny=RegExp("["+Ug+wg+Sg+Cg+Og+"]"),ry=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oy="object"==typeof e&&e&&e.Object===Object&&e,iy="object"==typeof self&&self&&self.Object===Object&&self,ay=oy||iy||Function("return this")();var uy,sy=(uy={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==uy?void 0:uy[e]});function ly(e){return ny.test(e)}function cy(e){return ly(e)?function(e){return e.match(ey)||[]}(e):function(e){return e.split("")}(e)}var fy=Object.prototype.toString,dy=ay.Symbol,py=dy?dy.prototype:void 0,hy=py?py.toString:void 0;function vy(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&fy.call(e)==mg}(e))return hy?hy.call(e):"";var t=e+"";return"0"==t&&1/e==-yg?"-0":t}function gy(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function yy(e){return null==e?"":vy(e)}var my,by=(my=function(e,t,n){return t=t.toLowerCase(),e+(n?wy(yy(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=yy(e),void 0===(t=n?void 0:t)?function(e){return ry.test(e)}(e)?function(e){return e.match(ty)||[]}(e):function(e){return e.match(bg)||[]}(e):e.match(t)||[]}(function(e){return(e=yy(e))&&e.replace(Eg,sy).replace(Qg,"")}(e).replace(Jg,"")),my,"")});var Ey,wy=(Ey="toUpperCase",function(e){var t=ly(e=yy(e))?cy(e):void 0,n=t?t[0]:e.charAt(0),r=t?gy(t,1).join(""):e.slice(1);return n[Ey]()+r});for(var Sy=by,Cy="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Dy={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Ay={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Cy?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},xy={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},Oy=1;Oy<20;Oy++)xy["f"+Oy]=111+Oy;function Ty(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),i=o.length;for(var a in Dy)r[Dy[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Ny(d),v=Dy[h];if(d.length>1&&!v&&!Ay[d]&&!xy[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&v||(n?r.key=h:r.which=ky(d)),v&&(r[v]=!p||null)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}(t,e)}))};return null==n?o:o(n)}function ky(e){return e=Ny(e),xy[e]||e.toUpperCase().charCodeAt(0)}function Ny(e){return e=e.toLowerCase(),e=Ay[e]||e}var By=Ty,Iy=function(e,t){return Ty(e,{byKey:!0},t)},Fy=NaN,Py="[object Symbol]",Ry=/^\s+|\s+$/g,Ly=/^[-+]0x[0-9a-f]+$/i,_y=/^0b[01]+$/i,jy=/^0o[0-7]+$/i,My=parseInt,zy="object"==typeof e&&e&&e.Object===Object&&e,Hy="object"==typeof self&&self&&self.Object===Object&&self,Uy=zy||Hy||Function("return this")(),$y=Object.prototype.toString,Vy=Math.max,Gy=Math.min,Wy=function(){return Uy.Date.now()};function qy(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ky(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&$y.call(e)==Py}(e))return Fy;if(qy(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qy(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ry,"");var n=_y.test(e);return n||jy.test(e)?My(e.slice(2),n?2:8):Ly.test(e)?Fy:+e}var Yy,Xy=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Wy();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Gy(n,i-(e-l)):n}(e))}function g(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=Wy(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(v,t),c?p(e):a}(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Ky(t)||0,qy(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Vy(Ky(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g(Wy())},y},Zy=n((function(t,n){var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",D="[object Int16Array]",A="[object Int32Array]",x="[object Uint8Array]",O="[object Uint8ClampedArray]",T="[object Uint16Array]",k="[object Uint32Array]",N=/\w*$/,B=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,F={};F[i]=F["[object Array]"]=F[b]=F[E]=F[a]=F[u]=F[w]=F[S]=F[C]=F[D]=F[A]=F[c]=F[f]=F[d]=F[h]=F[v]=F[g]=F[y]=F[x]=F[O]=F[T]=F[k]=!0,F["[object Error]"]=F[s]=F[m]=!1;var P="object"==typeof e&&e&&e.Object===Object&&e,R="object"==typeof self&&self&&self.Object===Object&&self,L=P||R||Function("return this")(),_=n&&!n.nodeType&&n,j=_&&t&&!t.nodeType&&t,M=j&&j.exports===_;function z(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function U(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function G(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=L["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?L.Buffer:void 0,re=L.Symbol,oe=L.Uint8Array,ie=G(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=G(Object.keys,Object),de=_e(L,"DataView"),pe=_e(L,"Map"),he=_e(L,"Promise"),ve=_e(L,"Set"),ge=_e(L,"WeakMap"),ye=_e(Object,"create"),me=Ue(de),be=Ue(pe),Ee=Ue(he),we=Ue(ve),Se=Ue(ge),Ce=re?re.prototype:void 0,De=Ce?Ce.valueOf:void 0;function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){this.__data__=new xe(e)}function ke(e,t){var n=Ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ge(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||ze(a,r))||n.push(a);return n}function Ne(e,t,n){var r=e[t];Q.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Be(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Ie(e,t,n,r,o,p,m){var B;if(r&&(B=p?r(e,o,p,m):r(e)),void 0!==B)return B;if(!Ke(e))return e;var I=Ve(e);if(I){if(B=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,B)}else{var P=Me(e),R=P==s||P==l;if(We(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(P==d||P==i||R&&!p){if($(e))return p?e:{};if(B=function(e){return"function"!=typeof e.constructor||He(e)?{}:(t=ie(e),Ke(t)?ae(t):{});var t}(R?{}:e),!t)return function(e,t){return Re(e,je(e),t)}(e,function(e,t){return e&&Re(t,Ye(t),e)}(B,e))}else{if(!F[P])return p?e:{};B=function(e,t,n,r){var o=e.constructor;switch(t){case b:return Pe(e);case a:case u:return new o(+e);case E:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case S:case C:case D:case A:case x:case O:case T:case k:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){var r=t?n(V(e),!0):V(e);return U(r,z,new e.constructor)}(e,r,n);case f:case g:return new o(e);case h:return function(e){var t=new e.constructor(e.source,N.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,n){var r=t?n(W(e),!0):W(e);return U(r,H,new e.constructor)}(e,r,n);case y:return function(e){return De?Object(De.call(e)):{}}(e)}}(e,P,Ie,t)}}m||(m=new Te);var L=m.get(e);if(L)return L;if(m.set(e,B),!I)var _=n?function(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ye,je)}(e):Ye(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(_||e,(function(o,i){_&&(o=e[i=o]),Ne(B,i,Ie(o,t,n,r,i,e,m))})),B}function Fe(e){return!(!Ke(e)||function(e){return!!Z&&Z in e}(e))&&(qe(e)||$(e)?te:B).test(Ue(e))}function Pe(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Re(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;Ne(n,a,void 0===u?e[a]:u)}return n}function Le(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function _e(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Fe(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===r?void 0:n}return Q.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?r:t,this},xe.prototype.clear=function(){this.__data__=[]},xe.prototype.delete=function(e){var t=this.__data__,n=Be(t,e);return!(n<0)&&(n==t.length-1?t.pop():se.call(t,n,1),!0)},xe.prototype.get=function(e){var t=this.__data__,n=Be(t,e);return n<0?void 0:t[n][1]},xe.prototype.has=function(e){return Be(this.__data__,e)>-1},xe.prototype.set=function(e,t){var n=this.__data__,r=Be(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Ae,map:new(pe||xe),string:new Ae}},Oe.prototype.delete=function(e){return Le(this,e).delete(e)},Oe.prototype.get=function(e){return Le(this,e).get(e)},Oe.prototype.has=function(e){return Le(this,e).has(e)},Oe.prototype.set=function(e,t){return Le(this,e).set(e,t),this},Te.prototype.clear=function(){this.__data__=new xe},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xe){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var je=le?G(le,Object):function(){return[]},Me=function(e){return ee.call(e)};function ze(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function He(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function Ue(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(de&&Me(new de(new ArrayBuffer(1)))!=E||pe&&Me(new pe)!=c||he&&Me(he.resolve())!=p||ve&&Me(new ve)!=v||ge&&Me(new ge)!=m)&&(Me=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?Ue(n):void 0;if(r)switch(r){case me:return E;case be:return c;case Ee:return p;case we:return v;case Se:return m}return t});var Ve=Array.isArray;function Ge(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!qe(e)}var We=ce||function(){return!1};function qe(e){var t=Ke(e)?ee.call(e):"";return t==s||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return Ge(e)?ke(e):function(e){if(!He(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}t.exports=function(e){return Ie(e,!0,!0)}}));function Jy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Qy=0;function em(e){return"__private_"+Qy+++"_"+e}function tm(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r}
|
|
8
8
|
/**
|
|
9
9
|
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
10
10
|
* and replaces it with values from options `{smart_count: 5}`
|
|
@@ -15,13 +15,13 @@ var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?windo
|
|
|
15
15
|
* @param {string} phrase that needs interpolation, with placeholders
|
|
16
16
|
* @param {object} options with values that will be used to replace placeholders
|
|
17
17
|
* @returns {any[]} interpolated
|
|
18
|
-
*/function ry(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=ny(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var oy=(Xg=ty("apply"),class{constructor(e){Object.defineProperty(this,Xg,{value:iy}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Qg(this,Xg)[Xg],this):Qg(this,Xg)[Xg](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){return ry(n[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return ry(n,t)}});function iy(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var ay=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;for(;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){var r=0,o=t.length;for(;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e};var uy={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:sy}=uy,ly=e=>crypto.getRandomValues(new Uint8Array(e)),cy=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var fy={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>cy(e,t,ly),customRandom:cy,urlAlphabet:sy,random:ly},dy=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function py(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}py.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var hy=/[\/\+\.]/,vy=function(e,t){function n(t){var n=function(e,t,n){var r=new py(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,hy);return n&&n.length>=2}return t?n(t.split(";")[0]):n};var gy=0;function yy(e){return"__private_"+gy+++"_"+e}var my=yy("publish");class by{constructor(){Object.defineProperty(this,my,{value:Ey}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,my)[my](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Ey(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}by.VERSION="2.0.3";var wy=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Sy={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 Cy(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var Dy=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||(r>18||18===r&&o>=18218)};function Ay(e){return e<10?`0${e}`:e.toString()}var xy=function(){const e=new Date;return`${Ay(e.getHours())}:${Ay(e.getMinutes())}:${Ay(e.getSeconds())}`};var Oy={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${xy()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${xy()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${xy()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${xy()}]`,...t)}}},Ty={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}"}}},Ny=fy;let ky,By;function Iy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Fy=0;function Py(e){return"__private_"+Fy+++"_"+e}const{nanoid:Ry}=Ny,{justErrorsLogger:_y,debugLogger:Ly}=Oy;class jy extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class My extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var zy=Py("plugins"),Hy=Py("storeUnsubscribe"),Uy=Py("emitter"),$y=Py("preProcessors"),Vy=Py("uploaders"),Gy=Py("postProcessors"),Wy=Py("checkRestrictions"),qy=Py("checkMinNumberOfFiles"),Ky=Py("checkRequiredMetaFieldsOnFile"),Yy=Py("checkRequiredMetaFields"),Xy=Py("showOrLogErrorAndThrow"),Zy=Py("assertNewUploadAllowed"),Jy=Py("checkAndCreateFileStateObject"),Qy=Py("startIfAutoProceed"),em=Py("addListeners"),tm=Py("updateOnlineStatus"),nm=Py("createUpload"),rm=Py("getUpload"),om=Py("removeUpload"),im=Py("runUpload");ky=Symbol.for("uppy test: getPlugins"),By=Symbol.for("uppy test: createUpload");class am{constructor(e){Object.defineProperty(this,im,{value:bm}),Object.defineProperty(this,om,{value:mm}),Object.defineProperty(this,rm,{value:ym}),Object.defineProperty(this,nm,{value:gm}),Object.defineProperty(this,em,{value:vm}),Object.defineProperty(this,Qy,{value:hm}),Object.defineProperty(this,Jy,{value:pm}),Object.defineProperty(this,Zy,{value:dm}),Object.defineProperty(this,Xy,{value:fm}),Object.defineProperty(this,Yy,{value:cm}),Object.defineProperty(this,Ky,{value:lm}),Object.defineProperty(this,qy,{value:sm}),Object.defineProperty(this,Wy,{value:um}),Object.defineProperty(this,zy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Hy,{writable:!0,value:void 0}),Object.defineProperty(this,Uy,{writable:!0,value:ay()}),Object.defineProperty(this,$y,{writable:!0,value:new Set}),Object.defineProperty(this,Vy,{writable:!0,value:new Set}),Object.defineProperty(this,Gy,{writable:!0,value:new Set}),Object.defineProperty(this,tm,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Ty;const t={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:e=>e,onBeforeUpload:e=>e,store:new by,logger:_y,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.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=Ly),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=ev(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Dy(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Iy(this,Hy)[Hy]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Iy(this,em)[em]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Iy(this,Uy)[Uy].emit(e,...n)}on(e,t){return Iy(this,Uy)[Uy].on(e,t),this}once(e,t){return Iy(this,Uy)[Uy].once(e,t),this}off(e,t){return Iy(this,Uy)[Uy].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new oy([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Iy(this,$y)[$y].add(e)}removePreProcessor(e){return Iy(this,$y)[$y].delete(e)}addPostProcessor(e){Iy(this,Gy)[Gy].add(e)}removePostProcessor(e){return Iy(this,Gy)[Gy].delete(e)}addUploader(e){Iy(this,Vy)[Vy].add(e)}removeUploader(e){return Iy(this,Vy)[Vy].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return Iy(this,Wy)[Wy](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Iy(this,Zy)[Zy](e);const{files:t}=this.getState();let n=Iy(this,Jy)[Jy](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Iy(this,Qy)[Qy](),n.id}addFiles(e){Iy(this,Zy)[Zy]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=Iy(this,Jy)[Jy](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&Iy(this,Qy)[Qy](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Iy(this,nm)[nm](t,{forceAllowNewUpload:!0});return Iy(this,im)[im](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"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 t=Iy(this,nm)[nm]([e],{forceAllowNewUpload:!0});return Iy(this,im)[im](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||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,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`)}const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Iy(this,zy)[zy]?Iy(this,zy)[zy][n.type].push(n):Iy(this,zy)[zy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Iy(this,zy)[zy])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[ky](e){return Iy(this,zy)[zy][e]}iteratePlugins(e){Object.values(Iy(this,zy)[zy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Iy(this,zy)[zy][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Iy(this,Hy)[Hy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Iy(this,tm)[tm]),window.removeEventListener("offline",Iy(this,tm)[tm]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Iy(this,im)[im](e):(Iy(this,om)[om](e),Promise.reject(new Error("Nonexistent upload")))}[By](){return Iy(this,nm)[nm](...arguments)}addResultData(e,t){if(!Iy(this,rm)[rm](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Iy(this,zy)[zy].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{Iy(this,qy)[qy](t),Iy(this,Yy)[Yy](t)})).catch((e=>{Iy(this,Xy)[Xy](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=Iy(this,nm)[nm](r);return Iy(this,im)[im](o)})).catch((e=>{Iy(this,Xy)[Xy](e,{showInformer:!1})})))}}function um(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new jy(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a){if(!a.some((t=>t.indexOf("/")>-1?!!e.type&&vy(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new jy(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new jy(this.i18n("exceedsSize",{size:dy(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new jy(this.i18n("exceedsSize",{size:dy(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new jy(this.i18n("inferiorSize",{size:dy(r)}))}function sm(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new jy(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function lm(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new jy(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),Iy(this,Xy)[Xy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function cm(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return Iy(this,Ky)[Ky](t)}));if(t.length)throw new My(t,`${this.i18n("missingRequiredMetaField")}`)}function fm(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function dm(e){const{allowNewUpload:t}=this.getState();!1===t&&Iy(this,Xy)[Xy](new jy(this.i18n("noMoreFilesAllowed")),{file:e})}function pm(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=wy(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Sy?Sy[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=wy(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Cy(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Cy(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new jy(this.i18n("noDuplicates",{fileName:r}));Iy(this,Xy)[Xy](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);!1===c?Iy(this,Xy)[Xy](new jy("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map((t=>e[t]));Iy(this,Wy)[Wy](l,t)}catch(e){Iy(this,Xy)[Xy](e,{file:l})}return l}function hm(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function vm(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),Iy(this,Xy)[Xy](e,{throwErr:!1})}else Iy(this,Xy)[Xy](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,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Iy(this,Gy)[Gy].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):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 t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):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 t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Iy(this,Ky)[Ky](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Iy(this,tm)[tm]),window.addEventListener("offline",Iy(this,tm)[tm]),setTimeout(Iy(this,tm)[tm],3e3))}function gm(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Ry();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function ym(e){const{currentUploads:t}=this.getState();return t[e]}function mm(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function bm(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Iy(this,$y)[$y],...Iy(this,Vy)[Vy],...Iy(this,Gy)[Gy]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),Iy(this,om)[om](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Iy(this,om)[om](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}am.VERSION="2.1.3";var Em=am,wm=n((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return g(e,u,o,i,null)}function g(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function w(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var e;S.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,k(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),B(n,o),o.__e!=i&&E(o)))}))}function C(e,t,n,r,o,i,a,u,s,l){var d,p,h,v,m,E,w,S=r&&r.__k||f,C=S.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(y,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=S[d])||h&&v.key==h.key&&v.type===h.type)S[d]=void 0;else for(p=0;p<C;p++){if((h=S[p])&&v.key==h.key&&v.type===h.type){S[p]=void 0;break}h=null}k(e,v,h=h||c,o,i,a,u,s,l),m=v.__e,(p=v.ref)&&h.ref!=p&&(w||(w=[]),h.ref&&w.push(h.ref,null,v),w.push(p,v.__c||m,v)),null!=m?(null==E&&(E=m),"function"==typeof v.type&&v.__k===h.__k?v.__d=s=D(v,s,e):s=A(e,v,h,S,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=E,d=C;d--;)null!=S[d]&&("function"==typeof n.type&&null!=S[d].__e&&S[d].__e==n.__d&&(n.__d=b(r,d+1)),P(S[d],S[d]));if(w)for(d=0;d<w.length;d++)F(w[d],w[++d],w[++d])}function D(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?D(r,t,n):A(n,r,r,o,r.__e,t));return t}function A(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function x(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||x(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||x(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?N:T,i):e.removeEventListener(t,i?N:T,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function T(e){this.l[e.type+!1](r.event?r.event(e):e)}function N(e){this.l[e.type+!0](r.event?r.event(e):e)}function k(e,t,n,o,i,a,u,s,l){var c,f,d,h,v,g,b,E,w,S,D,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof A){if(E=t.props,w=(c=A.contextType)&&o[c.__c],S=c?w?w.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in A&&A.prototype.render?t.__c=f=new A(E,S):(t.__c=f=new m(E,S),f.constructor=A,f.render=R),w&&w.sub(f),f.props=E,f.state||(f.state={}),f.context=S,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,A.getDerivedStateFromProps(E,f.__s))),h=f.props,v=f.state,d)null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==A.getDerivedStateFromProps&&E!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(E,S),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(E,f.__s,S)||t.__v===n.__v){f.props=E,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(E,f.__s,S),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,v,g)}))}f.context=S,f.props=E,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(h,v)),D=null!=c&&c.type===y&&null==c.key?c.props.children:c,C(e,Array.isArray(D)?D:[D],t,n,o,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=I(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function B(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function I(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,v=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!g&&(g?l.localName===g:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===g)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),a=null,s=!1}if(null===g)p===v||s&&e.data===v||(e.data=v);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=v.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,v,p,i,s),d)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in v&&void 0!==(y=v.value)&&(y!==p.value||y!==e.value||"progress"===g&&!y)&&O(e,"value",y,p.value,!1),"checked"in v&&void 0!==(y=v.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}function F(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function P(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||F(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&P(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function R(e,t,n){return this.constructor(e,n)}function _(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],k(t,e=(!i&&o||t).__k=v(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),B(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),g(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function e(t,n){_(t,n,e)},t.isValidElement=i,t.options=r,t.render=_,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Sm=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},Cm=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new oy([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),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 Dm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Am=0;function xm(e){return"__private_"+Am+++"_"+e}const{render:Om}=wm;var Tm=xm("updateUI");class Nm extends Cm{constructor(){super(...arguments),Object.defineProperty(this,Tm,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=Sm(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Dm(this,Tm)[Tm]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(Om(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Om(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof Nm)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" 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(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Dm(this,Tm))[Tm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var km=Nm;const{debugLogger:Bm}=Oy;var Im=Em,Fm=Em,Pm=km,Rm=Cm,_m=Bm;Im.Uppy=Fm,Im.UIPlugin=Pm,Im.BasePlugin=Rm,Im.debugLogger=_m;class Lm extends Error{constructor(e,t){void 0===t&&(t=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=t}}var jm=Lm,Mm=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new jm(e)}))};class zm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Hm,Um,$m,Vm,Gm,Wm=zm;function qm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Km=0;function Ym(e){return"__private_"+Km+++"_"+e}async function Xm(e){if(401===e.status)throw new Wm;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var Zm=(Um=Ym("getPostResponseFunc"),$m=Ym("getUrl"),Vm=Ym("errorHandler"),Gm=Hm=class e{constructor(e,t){Object.defineProperty(this,Vm,{value:Qm}),Object.defineProperty(this,$m,{value:Jm}),Object.defineProperty(this,Um,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,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(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(qm(this,$m)[$m](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>Mm(qm(this,$m)[$m](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(qm(this,Um)[Um](t)).then(Xm).catch(qm(this,Vm)[Vm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>Mm(qm(this,$m)[$m](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(qm(this,Um)[Um](n)).then(Xm).catch(qm(this,Vm)[Vm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>Mm(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(qm(this,Um)[Um](n)).then(Xm).catch(qm(this,Vm)[Vm](r,e))}},Hm.VERSION="2.0.4",Hm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Hm.VERSION}`},Gm);function Jm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Qm(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${qm(this,$m)[$m](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var eb={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};var tb,nb,rb,ob,ib;let ab,ub;function sb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lb=0;function cb(e){return"__private_"+lb+++"_"+e}var fb=(tb=cb("queued"),nb=cb("emitter"),rb=cb("isOpen"),ob=cb("socket"),ib=cb("handleMessage"),ab=Symbol.for("uppy test: getSocket"),ub=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,tb,{writable:!0,value:[]}),Object.defineProperty(this,nb,{writable:!0,value:ay()}),Object.defineProperty(this,rb,{writable:!0,value:!1}),Object.defineProperty(this,ob,{writable:!0,value:void 0}),Object.defineProperty(this,ib,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return sb(this,rb)[rb]}[ab](){return sb(this,ob)[ob]}[ub](){return sb(this,tb)[tb]}open(){sb(this,ob)[ob]=new WebSocket(this.opts.target),sb(this,ob)[ob].onopen=()=>{for(sb(this,rb)[rb]=!0;sb(this,tb)[tb].length>0&&sb(this,rb)[rb];){const e=sb(this,tb)[tb].shift();this.send(e.action,e.payload)}},sb(this,ob)[ob].onclose=()=>{sb(this,rb)[rb]=!1},sb(this,ob)[ob].onmessage=sb(this,ib)[ib]}close(){var e;null==(e=sb(this,ob)[ob])||e.close()}send(e,t){sb(this,rb)[rb]?sb(this,ob)[ob].send(JSON.stringify({action:e,payload:t})):sb(this,tb)[tb].push({action:e,payload:t})}on(e,t){sb(this,nb)[nb].on(e,t)}emit(e,t){sb(this,nb)[nb].emit(e,t)}once(e,t){sb(this,nb)[nb].once(e,t)}}),db={RequestClient:Zm,Provider:class extends Zm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.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((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.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(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||eb}},SearchProvider:class extends Zm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:fb};var pb,hb,vb=ev((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function gb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var yb=0;function mb(e){return"__private_"+yb+++"_"+e}var bb=(pb=mb("emitter"),hb=mb("events"),class{constructor(e){Object.defineProperty(this,pb,{writable:!0,value:void 0}),Object.defineProperty(this,hb,{writable:!0,value:[]}),gb(this,pb)[pb]=e}on(e,t){return gb(this,hb)[hb].push([e,t]),gb(this,pb)[pb].on(e,t)}remove(){for(const[e,t]of gb(this,hb)[hb].splice(0))gb(this,pb)[pb].off(e,t)}});function Eb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var wb=0;function Sb(e){return"__private_"+wb+++"_"+e}var Cb=Sb("aliveTimer"),Db=Sb("isDone"),Ab=Sb("onTimedOut"),xb=Sb("timeout");var Ob=class{constructor(e,t){Object.defineProperty(this,Cb,{writable:!0,value:void 0}),Object.defineProperty(this,Db,{writable:!0,value:!1}),Object.defineProperty(this,Ab,{writable:!0,value:void 0}),Object.defineProperty(this,xb,{writable:!0,value:void 0}),Eb(this,xb)[xb]=e,Eb(this,Ab)[Ab]=t}progress(){Eb(this,Db)[Db]||Eb(this,xb)[xb]>0&&(clearTimeout(Eb(this,Cb)[Cb]),Eb(this,Cb)[Cb]=setTimeout(Eb(this,Ab)[Ab],Eb(this,xb)[xb]))}done(){Eb(this,Db)[Db]||(clearTimeout(Eb(this,Cb)[Cb]),Eb(this,Cb)[Cb]=null,Eb(this,Db)[Db]=!0)}};function Tb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nb=0;function kb(e){return"__private_"+Nb+++"_"+e}function Bb(){return new Error("Cancelled")}var Ib=kb("activeRequests"),Fb=kb("queuedHandlers"),Pb=kb("call"),Rb=kb("queueNext"),_b=kb("next"),Lb=kb("queue"),jb=kb("dequeue");function Mb(e){Tb(this,Ib)[Ib]+=1;let t,n=!1;try{t=e()}catch(e){throw Tb(this,Ib)[Ib]-=1,e}return{abort:()=>{n||(n=!0,Tb(this,Ib)[Ib]-=1,t(),Tb(this,Rb)[Rb]())},done:()=>{n||(n=!0,Tb(this,Ib)[Ib]-=1,Tb(this,Rb)[Rb]())}}}function zb(){queueMicrotask((()=>Tb(this,_b)[_b]()))}function Hb(){if(Tb(this,Ib)[Ib]>=this.limit)return;if(0===Tb(this,Fb)[Fb].length)return;const e=Tb(this,Fb)[Fb].shift(),t=Tb(this,Pb)[Pb](e.fn);e.abort=t.abort,e.done=t.done}function Ub(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Tb(this,jb)[jb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Tb(this,Fb)[Fb].findIndex((e=>n.priority>e.priority));return-1===r?Tb(this,Fb)[Fb].push(n):Tb(this,Fb)[Fb].splice(r,0,n),n}function $b(e){const t=Tb(this,Fb)[Fb].indexOf(e);-1!==t&&Tb(this,Fb)[Fb].splice(t,1)}var Vb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,jb,{value:$b}),Object.defineProperty(this,Lb,{value:Ub}),Object.defineProperty(this,_b,{value:Hb}),Object.defineProperty(this,Rb,{value:zb}),Object.defineProperty(this,Pb,{value:Mb}),Object.defineProperty(this,Ib,{writable:!0,value:0}),Object.defineProperty(this,Fb,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Tb(this,Ib)[Ib]<this.limit?Tb(this,Pb)[Pb](e):Tb(this,Lb)[Lb](e,t)}wrapPromiseFunction(e,t){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(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=Bb()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")};var Gb,Wb,qb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Kb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Yb}=Ny,{Provider:Xb,RequestClient:Zb,Socket:Jb}=db,{RateLimitedQueue:Qb,internalRateLimitedQueue:eE}=Vb;function tE(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),qb(e)?(n=new jm(n,e),n):(n.request=e,n)}function nE(e){return e.data.slice(0,e.data.size,e.meta.type)}var rE=(Wb=Gb=class extends Cm{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Kb;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return qb(t)&&(n=new jm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),eE in this.opts?this.requests=this.opts[eE]:this.requests=new Qb(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(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=nE(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=nE(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new bb(this.uppy);const a=new Ob(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=Yb();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=tE(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=tE(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]}));new(e.remote.providerOptions.provider?Xb:Zb)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new Jb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new bb(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>vb(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new Ob(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)})),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((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[eE]||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 t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Gb.VERSION="2.0.6",Wb),oE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function iE(e){var t={exports:{}};return e(t,t.exports),t.exports}var aE,uE,sE=function(e){return e&&e.Math==Math&&e},lE=sE("object"==typeof globalThis&&globalThis)||sE("object"==typeof window&&window)||sE("object"==typeof self&&self)||sE("object"==typeof oE&&oE)||function(){return this}()||Function("return this")(),cE=Object.defineProperty,fE=function(e,t){try{cE(lE,e,{value:t,configurable:!0,writable:!0})}catch(n){lE[e]=t}return t},dE=lE["__core-js_shared__"]||fE("__core-js_shared__",{}),pE=iE((function(e){(e.exports=function(e,t){return dE[e]||(dE[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),hE=Function.prototype,vE=hE.bind,gE=hE.call,yE=vE&&vE.bind(gE),mE=vE?function(e){return e&&yE(gE,e)}:function(e){return e&&function(){return gE.apply(e,arguments)}},bE=lE.TypeError,EE=function(e){if(null==e)throw bE("Can't call method on "+e);return e},wE=lE.Object,SE=function(e){return wE(EE(e))},CE=mE({}.hasOwnProperty),DE=Object.hasOwn||function(e,t){return CE(SE(e),t)},AE=0,xE=Math.random(),OE=mE(1..toString),TE=function(e){return"Symbol("+(void 0===e?"":e)+")_"+OE(++AE+xE,36)},NE=function(e){return"function"==typeof e},kE=function(e){return NE(e)?e:void 0},BE=function(e,t){return arguments.length<2?kE(lE[e]):lE[e]&&lE[e][t]},IE=BE("navigator","userAgent")||"",FE=lE.process,PE=lE.Deno,RE=FE&&FE.versions||PE&&PE.version,_E=RE&&RE.v8;_E&&(uE=(aE=_E.split("."))[0]>0&&aE[0]<4?1:+(aE[0]+aE[1])),!uE&&IE&&(!(aE=IE.match(/Edge\/(\d+)/))||aE[1]>=74)&&(aE=IE.match(/Chrome\/(\d+)/))&&(uE=+aE[1]);var LE=uE,jE=function(e){try{return!!e()}catch(e){return!0}},ME=!!Object.getOwnPropertySymbols&&!jE((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&LE&&LE<41})),zE=ME&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,HE=pE("wks"),UE=lE.Symbol,$E=UE&&UE.for,VE=zE?UE:UE&&UE.withoutSetter||TE,GE=function(e){if(!DE(HE,e)||!ME&&"string"!=typeof HE[e]){var t="Symbol."+e;ME&&DE(UE,e)?HE[e]=UE[e]:HE[e]=zE&&$E?$E(t):VE(t)}return HE[e]},WE={};WE[GE("toStringTag")]="z";var qE="[object z]"===String(WE),KE=!jE((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),YE=function(e){return"object"==typeof e?null!==e:NE(e)},XE=lE.document,ZE=YE(XE)&&YE(XE.createElement),JE=function(e){return ZE?XE.createElement(e):{}},QE=!KE&&!jE((function(){return 7!=Object.defineProperty(JE("div"),"a",{get:function(){return 7}}).a})),ew=lE.String,tw=lE.TypeError,nw=function(e){if(YE(e))return e;throw tw(ew(e)+" is not an object")},rw=Function.prototype.call,ow=rw.bind?rw.bind(rw):function(){return rw.apply(rw,arguments)},iw=mE({}.isPrototypeOf),aw=lE.Object,uw=zE?function(e){return"symbol"==typeof e}:function(e){var t=BE("Symbol");return NE(t)&&iw(t.prototype,aw(e))},sw=lE.String,lw=function(e){try{return sw(e)}catch(e){return"Object"}},cw=lE.TypeError,fw=function(e){if(NE(e))return e;throw cw(lw(e)+" is not a function")},dw=function(e,t){var n=e[t];return null==n?void 0:fw(n)},pw=lE.TypeError,hw=lE.TypeError,vw=GE("toPrimitive"),gw=function(e){var t=function(e,t){if(!YE(e)||uw(e))return e;var n,r=dw(e,vw);if(r){if(void 0===t&&(t="default"),n=ow(r,e,t),!YE(n)||uw(n))return n;throw hw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&NE(n=e.toString)&&!YE(r=ow(n,e)))return r;if(NE(n=e.valueOf)&&!YE(r=ow(n,e)))return r;if("string"!==t&&NE(n=e.toString)&&!YE(r=ow(n,e)))return r;throw pw("Can't convert object to primitive value")}(e,t)}(e,"string");return uw(t)?t:t+""},yw=lE.TypeError,mw=Object.defineProperty,bw={f:KE?mw:function(e,t,n){if(nw(e),t=gw(t),nw(n),QE)try{return mw(e,t,n)}catch(e){}if("get"in n||"set"in n)throw yw("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ew=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ww=KE?function(e,t,n){return bw.f(e,t,Ew(1,n))}:function(e,t,n){return e[t]=n,e},Sw=mE(Function.toString);NE(dE.inspectSource)||(dE.inspectSource=function(e){return Sw(e)});var Cw,Dw,Aw,xw=dE.inspectSource,Ow=lE.WeakMap,Tw=NE(Ow)&&/native code/.test(xw(Ow)),Nw=pE("keys"),kw=function(e){return Nw[e]||(Nw[e]=TE(e))},Bw={},Iw=lE.TypeError,Fw=lE.WeakMap;if(Tw||dE.state){var Pw=dE.state||(dE.state=new Fw),Rw=mE(Pw.get),_w=mE(Pw.has),Lw=mE(Pw.set);Cw=function(e,t){if(_w(Pw,e))throw new Iw("Object already initialized");return t.facade=e,Lw(Pw,e,t),t},Dw=function(e){return Rw(Pw,e)||{}},Aw=function(e){return _w(Pw,e)}}else{var jw=kw("state");Bw[jw]=!0,Cw=function(e,t){if(DE(e,jw))throw new Iw("Object already initialized");return t.facade=e,ww(e,jw,t),t},Dw=function(e){return DE(e,jw)?e[jw]:{}},Aw=function(e){return DE(e,jw)}}var Mw={set:Cw,get:Dw,has:Aw,enforce:function(e){return Aw(e)?Dw(e):Cw(e,{})},getterFor:function(e){return function(t){var n;if(!YE(t)||(n=Dw(t)).type!==e)throw Iw("Incompatible receiver, "+e+" required");return n}}},zw=Function.prototype,Hw=KE&&Object.getOwnPropertyDescriptor,Uw=DE(zw,"name"),$w={EXISTS:Uw,PROPER:Uw&&"something"===function(){}.name,CONFIGURABLE:Uw&&(!KE||KE&&Hw(zw,"name").configurable)},Vw=iE((function(e){var t=$w.CONFIGURABLE,n=Mw.get,r=Mw.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;NE(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!DE(i,"name")||t&&i.name!==f)&&ww(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==lE?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ww(e,n,i)):l?e[n]=i:fE(n,i)})(Function.prototype,"toString",(function(){return NE(this)&&n(this).source||xw(this)}))})),Gw=mE({}.toString),Ww=mE("".slice),qw=function(e){return Ww(Gw(e),8,-1)},Kw=GE("toStringTag"),Yw=lE.Object,Xw="Arguments"==qw(function(){return arguments}()),Zw=qE?qw:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Yw(e),Kw))?n:Xw?qw(t):"Object"==(r=qw(t))&&NE(t.callee)?"Arguments":r},Jw=qE?{}.toString:function(){return"[object "+Zw(this)+"]"};qE||Vw(Object.prototype,"toString",Jw,{unsafe:!0});var Qw={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},eS=JE("span").classList,tS=eS&&eS.constructor&&eS.constructor.prototype,nS=tS===Object.prototype?void 0:tS,rS=mE(mE.bind),oS=function(e,t){return fw(e),void 0===t?e:rS?rS(e,t):function(){return e.apply(t,arguments)}},iS=lE.Object,aS=mE("".split),uS=jE((function(){return!iS("z").propertyIsEnumerable(0)}))?function(e){return"String"==qw(e)?aS(e,""):iS(e)}:iS,sS=Math.ceil,lS=Math.floor,cS=function(e){var t=+e;return t!=t||0===t?0:(t>0?lS:sS)(t)},fS=Math.min,dS=function(e){return e>0?fS(cS(e),9007199254740991):0},pS=function(e){return dS(e.length)},hS=Array.isArray||function(e){return"Array"==qw(e)},vS=function(){},gS=[],yS=BE("Reflect","construct"),mS=/^\s*(?:class|function)\b/,bS=mE(mS.exec),ES=!mS.exec(vS),wS=function(e){if(!NE(e))return!1;try{return yS(vS,gS,e),!0}catch(e){return!1}},SS=!yS||jE((function(){var e;return wS(wS.call)||!wS(Object)||!wS((function(){e=!0}))||e}))?function(e){if(!NE(e))return!1;switch(Zw(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ES||!!bS(mS,xw(e))}:wS,CS=GE("species"),DS=lE.Array,AS=function(e,t){return new(function(e){var t;return hS(e)&&(t=e.constructor,(SS(t)&&(t===DS||hS(t.prototype))||YE(t)&&null===(t=t[CS]))&&(t=void 0)),void 0===t?DS:t}(e))(0===t?0:t)},xS=mE([].push),OS=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=SE(s),v=uS(h),g=oS(l,c),y=pS(v),m=0,b=f||AS,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:xS(E,d)}else switch(e){case 4:return!1;case 7:xS(E,d)}return i?-1:r||o?o:E}},TS={forEach:OS(0),map:OS(1),filter:OS(2),some:OS(3),every:OS(4),find:OS(5),findIndex:OS(6),filterReject:OS(7)},NS=function(e,t){var n=[][e];return!!n&&jE((function(){n.call(null,t||function(){throw 1},1)}))},kS=TS.forEach,BS=NS("forEach")?[].forEach:function(e){return kS(this,e,arguments.length>1?arguments[1]:void 0)},IS=function(e){if(e&&e.forEach!==BS)try{ww(e,"forEach",BS)}catch(t){e.forEach=BS}};for(var FS in Qw)Qw[FS]&&IS(lE[FS]&&lE[FS].prototype);IS(nS);var PS={}.propertyIsEnumerable,RS=Object.getOwnPropertyDescriptor,_S=RS&&!PS.call({1:2},1)?function(e){var t=RS(this,e);return!!t&&t.enumerable}:PS,LS={f:_S},jS=function(e){return uS(EE(e))},MS=Object.getOwnPropertyDescriptor,zS={f:KE?MS:function(e,t){if(e=jS(e),t=gw(t),QE)try{return MS(e,t)}catch(e){}if(DE(e,t))return Ew(!ow(LS.f,e,t),e[t])}},HS=Math.max,US=Math.min,$S=function(e,t){var n=cS(e);return n<0?HS(n+t,0):US(n,t)},VS=function(e){return function(t,n,r){var o,i=jS(t),a=pS(i),u=$S(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},GS={includes:VS(!0),indexOf:VS(!1)},WS=GS.indexOf,qS=mE([].push),KS=function(e,t){var n,r=jS(e),o=0,i=[];for(n in r)!DE(Bw,n)&&DE(r,n)&&qS(i,n);for(;t.length>o;)DE(r,n=t[o++])&&(~WS(i,n)||qS(i,n));return i},YS=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],XS=YS.concat("length","prototype"),ZS={f:Object.getOwnPropertyNames||function(e){return KS(e,XS)}},JS={f:Object.getOwnPropertySymbols},QS=mE([].concat),eC=BE("Reflect","ownKeys")||function(e){var t=ZS.f(nw(e)),n=JS.f;return n?QS(t,n(e)):t},tC=function(e,t){for(var n=eC(t),r=bw.f,o=zS.f,i=0;i<n.length;i++){var a=n[i];DE(e,a)||r(e,a,o(t,a))}},nC=/#|\.prototype\./,rC=function(e,t){var n=iC[oC(e)];return n==uC||n!=aC&&(NE(t)?jE(t):!!t)},oC=rC.normalize=function(e){return String(e).replace(nC,".").toLowerCase()},iC=rC.data={},aC=rC.NATIVE="N",uC=rC.POLYFILL="P",sC=rC,lC=zS.f,cC=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?lE:l?lE[u]||fE(u,{}):(lE[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=lC(n,r))&&a.value:n[r],!sC(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;tC(i,o)}(e.sham||o&&o.sham)&&ww(i,"sham",!0),Vw(n,r,i,e)}},fC=Object.keys||function(e){return KS(e,YS)},dC=jE((function(){fC(1)}));
|
|
18
|
+
*/function nm(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=tm(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var rm=(Yy=em("apply"),class{constructor(e){Object.defineProperty(this,Yy,{value:om}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Jy(this,Yy)[Yy],this):Jy(this,Yy)[Yy](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){return nm(n[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return nm(n,t)}});function om(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var im=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;for(;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){var r=0,o=t.length;for(;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e};var am={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:um}=am,sm=e=>crypto.getRandomValues(new Uint8Array(e)),lm=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var cm={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>lm(e,t,sm),customRandom:lm,urlAlphabet:um,random:sm},fm=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function dm(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}dm.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var pm=/[\/\+\.]/,hm=function(e,t){function n(t){var n=function(e,t,n){var r=new dm(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,pm);return n&&n.length>=2}return t?n(t.split(";")[0]):n};var vm=0;function gm(e){return"__private_"+vm+++"_"+e}var ym=gm("publish");class mm{constructor(){Object.defineProperty(this,ym,{value:bm}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,ym)[ym](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function bm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}mm.VERSION="2.0.3";var Em=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},wm={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 Sm(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var Cm=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||(r>18||18===r&&o>=18218)};function Dm(e){return e<10?`0${e}`:e.toString()}var Am=function(){const e=new Date;return`${Dm(e.getHours())}:${Dm(e.getMinutes())}:${Dm(e.getSeconds())}`};var xm={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Am()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Am()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Am()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Am()}]`,...t)}}},Om={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}"}}},Tm=cm;let km,Nm;function Bm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Im=0;function Fm(e){return"__private_"+Im+++"_"+e}const{nanoid:Pm}=Tm,{justErrorsLogger:Rm,debugLogger:Lm}=xm;class _m extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class jm extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Mm=Fm("plugins"),zm=Fm("storeUnsubscribe"),Hm=Fm("emitter"),Um=Fm("preProcessors"),$m=Fm("uploaders"),Vm=Fm("postProcessors"),Gm=Fm("checkRestrictions"),Wm=Fm("checkMinNumberOfFiles"),qm=Fm("checkRequiredMetaFieldsOnFile"),Km=Fm("checkRequiredMetaFields"),Ym=Fm("showOrLogErrorAndThrow"),Xm=Fm("assertNewUploadAllowed"),Zm=Fm("checkAndCreateFileStateObject"),Jm=Fm("startIfAutoProceed"),Qm=Fm("addListeners"),eb=Fm("updateOnlineStatus"),tb=Fm("createUpload"),nb=Fm("getUpload"),rb=Fm("removeUpload"),ob=Fm("runUpload");km=Symbol.for("uppy test: getPlugins"),Nm=Symbol.for("uppy test: createUpload");class ib{constructor(e){Object.defineProperty(this,ob,{value:mb}),Object.defineProperty(this,rb,{value:yb}),Object.defineProperty(this,nb,{value:gb}),Object.defineProperty(this,tb,{value:vb}),Object.defineProperty(this,Qm,{value:hb}),Object.defineProperty(this,Jm,{value:pb}),Object.defineProperty(this,Zm,{value:db}),Object.defineProperty(this,Xm,{value:fb}),Object.defineProperty(this,Ym,{value:cb}),Object.defineProperty(this,Km,{value:lb}),Object.defineProperty(this,qm,{value:sb}),Object.defineProperty(this,Wm,{value:ub}),Object.defineProperty(this,Gm,{value:ab}),Object.defineProperty(this,Mm,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,zm,{writable:!0,value:void 0}),Object.defineProperty(this,Hm,{writable:!0,value:im()}),Object.defineProperty(this,Um,{writable:!0,value:new Set}),Object.defineProperty(this,$m,{writable:!0,value:new Set}),Object.defineProperty(this,Vm,{writable:!0,value:new Set}),Object.defineProperty(this,eb,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Om;const t={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:e=>e,onBeforeUpload:e=>e,store:new mm,logger:Rm,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.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=Lm),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Lv(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Cm(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Bm(this,zm)[zm]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Bm(this,Qm)[Qm]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Bm(this,Hm)[Hm].emit(e,...n)}on(e,t){return Bm(this,Hm)[Hm].on(e,t),this}once(e,t){return Bm(this,Hm)[Hm].once(e,t),this}off(e,t){return Bm(this,Hm)[Hm].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new rm([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Bm(this,Um)[Um].add(e)}removePreProcessor(e){return Bm(this,Um)[Um].delete(e)}addPostProcessor(e){Bm(this,Vm)[Vm].add(e)}removePostProcessor(e){return Bm(this,Vm)[Vm].delete(e)}addUploader(e){Bm(this,$m)[$m].add(e)}removeUploader(e){return Bm(this,$m)[$m].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return Bm(this,Gm)[Gm](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Bm(this,Xm)[Xm](e);const{files:t}=this.getState();let n=Bm(this,Zm)[Zm](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Bm(this,Jm)[Jm](),n.id}addFiles(e){Bm(this,Xm)[Xm]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=Bm(this,Zm)[Zm](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&Bm(this,Jm)[Jm](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Bm(this,tb)[tb](t,{forceAllowNewUpload:!0});return Bm(this,ob)[ob](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"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 t=Bm(this,tb)[tb]([e],{forceAllowNewUpload:!0});return Bm(this,ob)[ob](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||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,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`)}const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Bm(this,Mm)[Mm]?Bm(this,Mm)[Mm][n.type].push(n):Bm(this,Mm)[Mm][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Bm(this,Mm)[Mm])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[km](e){return Bm(this,Mm)[Mm][e]}iteratePlugins(e){Object.values(Bm(this,Mm)[Mm]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Bm(this,Mm)[Mm][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Bm(this,zm)[zm](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Bm(this,eb)[eb]),window.removeEventListener("offline",Bm(this,eb)[eb]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Bm(this,ob)[ob](e):(Bm(this,rb)[rb](e),Promise.reject(new Error("Nonexistent upload")))}[Nm](){return Bm(this,tb)[tb](...arguments)}addResultData(e,t){if(!Bm(this,nb)[nb](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Bm(this,Mm)[Mm].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{Bm(this,Wm)[Wm](t),Bm(this,Km)[Km](t)})).catch((e=>{Bm(this,Ym)[Ym](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=Bm(this,tb)[tb](r);return Bm(this,ob)[ob](o)})).catch((e=>{Bm(this,Ym)[Ym](e,{showInformer:!1})})))}}function ab(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new _m(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a){if(!a.some((t=>t.indexOf("/")>-1?!!e.type&&hm(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new _m(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new _m(this.i18n("exceedsSize",{size:fm(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new _m(this.i18n("exceedsSize",{size:fm(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new _m(this.i18n("inferiorSize",{size:fm(r)}))}function ub(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new _m(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function sb(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new _m(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),Bm(this,Ym)[Ym](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function lb(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return Bm(this,qm)[qm](t)}));if(t.length)throw new jm(t,`${this.i18n("missingRequiredMetaField")}`)}function cb(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function fb(e){const{allowNewUpload:t}=this.getState();!1===t&&Bm(this,Ym)[Ym](new _m(this.i18n("noMoreFilesAllowed")),{file:e})}function db(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Em(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in wm?wm[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=Em(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Sm(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Sm(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new _m(this.i18n("noDuplicates",{fileName:r}));Bm(this,Ym)[Ym](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);!1===c?Bm(this,Ym)[Ym](new _m("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map((t=>e[t]));Bm(this,Gm)[Gm](l,t)}catch(e){Bm(this,Ym)[Ym](e,{file:l})}return l}function pb(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function hb(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),Bm(this,Ym)[Ym](e,{throwErr:!1})}else Bm(this,Ym)[Ym](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,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Bm(this,Vm)[Vm].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):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 t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):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 t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Bm(this,qm)[qm](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Bm(this,eb)[eb]),window.addEventListener("offline",Bm(this,eb)[eb]),setTimeout(Bm(this,eb)[eb],3e3))}function vb(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Pm();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function gb(e){const{currentUploads:t}=this.getState();return t[e]}function yb(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function mb(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Bm(this,Um)[Um],...Bm(this,$m)[$m],...Bm(this,Vm)[Vm]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),Bm(this,rb)[rb](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Bm(this,rb)[rb](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}ib.VERSION="2.1.3";var bb=ib,Eb=n((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return g(e,u,o,i,null)}function g(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function w(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var e;S.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,N(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),B(n,o),o.__e!=i&&E(o)))}))}function C(e,t,n,r,o,i,a,u,s,l){var d,p,h,v,m,E,w,S=r&&r.__k||f,C=S.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(y,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=S[d])||h&&v.key==h.key&&v.type===h.type)S[d]=void 0;else for(p=0;p<C;p++){if((h=S[p])&&v.key==h.key&&v.type===h.type){S[p]=void 0;break}h=null}N(e,v,h=h||c,o,i,a,u,s,l),m=v.__e,(p=v.ref)&&h.ref!=p&&(w||(w=[]),h.ref&&w.push(h.ref,null,v),w.push(p,v.__c||m,v)),null!=m?(null==E&&(E=m),"function"==typeof v.type&&v.__k===h.__k?v.__d=s=D(v,s,e):s=A(e,v,h,S,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=E,d=C;d--;)null!=S[d]&&("function"==typeof n.type&&null!=S[d].__e&&S[d].__e==n.__d&&(n.__d=b(r,d+1)),P(S[d],S[d]));if(w)for(d=0;d<w.length;d++)F(w[d],w[++d],w[++d])}function D(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?D(r,t,n):A(n,r,r,o,r.__e,t));return t}function A(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function x(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||x(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||x(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?k:T,i):e.removeEventListener(t,i?k:T,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function T(e){this.l[e.type+!1](r.event?r.event(e):e)}function k(e){this.l[e.type+!0](r.event?r.event(e):e)}function N(e,t,n,o,i,a,u,s,l){var c,f,d,h,v,g,b,E,w,S,D,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof A){if(E=t.props,w=(c=A.contextType)&&o[c.__c],S=c?w?w.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in A&&A.prototype.render?t.__c=f=new A(E,S):(t.__c=f=new m(E,S),f.constructor=A,f.render=R),w&&w.sub(f),f.props=E,f.state||(f.state={}),f.context=S,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,A.getDerivedStateFromProps(E,f.__s))),h=f.props,v=f.state,d)null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==A.getDerivedStateFromProps&&E!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(E,S),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(E,f.__s,S)||t.__v===n.__v){f.props=E,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(E,f.__s,S),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,v,g)}))}f.context=S,f.props=E,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(h,v)),D=null!=c&&c.type===y&&null==c.key?c.props.children:c,C(e,Array.isArray(D)?D:[D],t,n,o,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=I(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function B(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function I(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,v=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!g&&(g?l.localName===g:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===g)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),a=null,s=!1}if(null===g)p===v||s&&e.data===v||(e.data=v);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=v.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,v,p,i,s),d)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in v&&void 0!==(y=v.value)&&(y!==p.value||y!==e.value||"progress"===g&&!y)&&O(e,"value",y,p.value,!1),"checked"in v&&void 0!==(y=v.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}function F(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function P(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||F(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&P(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function R(e,t,n){return this.constructor(e,n)}function L(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],N(t,e=(!i&&o||t).__k=v(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),B(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),g(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function e(t,n){L(t,n,e)},t.isValidElement=i,t.options=r,t.render=L,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),wb=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},Sb=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new rm([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),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 Cb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Db=0;function Ab(e){return"__private_"+Db+++"_"+e}const{render:xb}=Eb;var Ob=Ab("updateUI");class Tb extends Sb{constructor(){super(...arguments),Object.defineProperty(this,Ob,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=wb(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Cb(this,Ob)[Ob]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(xb(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),xb(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof Tb)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" 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(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Cb(this,Ob))[Ob])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var kb=Tb;const{debugLogger:Nb}=xm;var Bb=bb,Ib=bb,Fb=kb,Pb=Sb,Rb=Nb;Bb.Uppy=Ib,Bb.UIPlugin=Fb,Bb.BasePlugin=Pb,Bb.debugLogger=Rb;class Lb extends Error{constructor(e,t){void 0===t&&(t=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=t}}var _b=Lb,jb=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new _b(e)}))};class Mb extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var zb,Hb,Ub,$b,Vb,Gb=Mb;function Wb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qb=0;function Kb(e){return"__private_"+qb+++"_"+e}async function Yb(e){if(401===e.status)throw new Gb;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var Xb=(Hb=Kb("getPostResponseFunc"),Ub=Kb("getUrl"),$b=Kb("errorHandler"),Vb=zb=class e{constructor(e,t){Object.defineProperty(this,$b,{value:Jb}),Object.defineProperty(this,Ub,{value:Zb}),Object.defineProperty(this,Hb,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,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(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Wb(this,Ub)[Ub](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>jb(Wb(this,Ub)[Ub](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Wb(this,Hb)[Hb](t)).then(Yb).catch(Wb(this,$b)[$b]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>jb(Wb(this,Ub)[Ub](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(Wb(this,Hb)[Hb](n)).then(Yb).catch(Wb(this,$b)[$b](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>jb(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(Wb(this,Hb)[Hb](n)).then(Yb).catch(Wb(this,$b)[$b](r,e))}},zb.VERSION="2.0.4",zb.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${zb.VERSION}`},Vb);function Zb(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Jb(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${Wb(this,Ub)[Ub](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Qb={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};var eE,tE,nE,rE,oE;let iE,aE;function uE(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sE=0;function lE(e){return"__private_"+sE+++"_"+e}var cE=(eE=lE("queued"),tE=lE("emitter"),nE=lE("isOpen"),rE=lE("socket"),oE=lE("handleMessage"),iE=Symbol.for("uppy test: getSocket"),aE=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,eE,{writable:!0,value:[]}),Object.defineProperty(this,tE,{writable:!0,value:im()}),Object.defineProperty(this,nE,{writable:!0,value:!1}),Object.defineProperty(this,rE,{writable:!0,value:void 0}),Object.defineProperty(this,oE,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return uE(this,nE)[nE]}[iE](){return uE(this,rE)[rE]}[aE](){return uE(this,eE)[eE]}open(){uE(this,rE)[rE]=new WebSocket(this.opts.target),uE(this,rE)[rE].onopen=()=>{for(uE(this,nE)[nE]=!0;uE(this,eE)[eE].length>0&&uE(this,nE)[nE];){const e=uE(this,eE)[eE].shift();this.send(e.action,e.payload)}},uE(this,rE)[rE].onclose=()=>{uE(this,nE)[nE]=!1},uE(this,rE)[rE].onmessage=uE(this,oE)[oE]}close(){var e;null==(e=uE(this,rE)[rE])||e.close()}send(e,t){uE(this,nE)[nE]?uE(this,rE)[rE].send(JSON.stringify({action:e,payload:t})):uE(this,eE)[eE].push({action:e,payload:t})}on(e,t){uE(this,tE)[tE].on(e,t)}emit(e,t){uE(this,tE)[tE].emit(e,t)}once(e,t){uE(this,tE)[tE].once(e,t)}}),fE={RequestClient:Xb,Provider:class extends Xb{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.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((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.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(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||Qb}},SearchProvider:class extends Xb{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:cE};var dE,pE,hE=Lv((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function vE(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var gE=0;function yE(e){return"__private_"+gE+++"_"+e}var mE=(dE=yE("emitter"),pE=yE("events"),class{constructor(e){Object.defineProperty(this,dE,{writable:!0,value:void 0}),Object.defineProperty(this,pE,{writable:!0,value:[]}),vE(this,dE)[dE]=e}on(e,t){return vE(this,pE)[pE].push([e,t]),vE(this,dE)[dE].on(e,t)}remove(){for(const[e,t]of vE(this,pE)[pE].splice(0))vE(this,dE)[dE].off(e,t)}});function bE(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var EE=0;function wE(e){return"__private_"+EE+++"_"+e}var SE=wE("aliveTimer"),CE=wE("isDone"),DE=wE("onTimedOut"),AE=wE("timeout");var xE=class{constructor(e,t){Object.defineProperty(this,SE,{writable:!0,value:void 0}),Object.defineProperty(this,CE,{writable:!0,value:!1}),Object.defineProperty(this,DE,{writable:!0,value:void 0}),Object.defineProperty(this,AE,{writable:!0,value:void 0}),bE(this,AE)[AE]=e,bE(this,DE)[DE]=t}progress(){bE(this,CE)[CE]||bE(this,AE)[AE]>0&&(clearTimeout(bE(this,SE)[SE]),bE(this,SE)[SE]=setTimeout(bE(this,DE)[DE],bE(this,AE)[AE]))}done(){bE(this,CE)[CE]||(clearTimeout(bE(this,SE)[SE]),bE(this,SE)[SE]=null,bE(this,CE)[CE]=!0)}};function OE(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var TE=0;function kE(e){return"__private_"+TE+++"_"+e}var NE=kE("activeRequests"),BE=kE("queuedHandlers"),IE=kE("call"),FE=kE("queueNext"),PE=kE("next"),RE=kE("queue"),LE=kE("dequeue");function _E(e){OE(this,NE)[NE]+=1;let t,n=!1;try{t=e()}catch(e){throw OE(this,NE)[NE]-=1,e}return{abort:()=>{n||(n=!0,OE(this,NE)[NE]-=1,t(),OE(this,FE)[FE]())},done:()=>{n||(n=!0,OE(this,NE)[NE]-=1,OE(this,FE)[FE]())}}}function jE(){queueMicrotask((()=>OE(this,PE)[PE]()))}function ME(){if(OE(this,NE)[NE]>=this.limit)return;if(0===OE(this,BE)[BE].length)return;const e=OE(this,BE)[BE].shift(),t=OE(this,IE)[IE](e.fn);e.abort=t.abort,e.done=t.done}function zE(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{OE(this,LE)[LE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=OE(this,BE)[BE].findIndex((e=>n.priority>e.priority));return-1===r?OE(this,BE)[BE].push(n):OE(this,BE)[BE].splice(r,0,n),n}function HE(e){const t=OE(this,BE)[BE].indexOf(e);-1!==t&&OE(this,BE)[BE].splice(t,1)}var UE={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,LE,{value:HE}),Object.defineProperty(this,RE,{value:zE}),Object.defineProperty(this,PE,{value:ME}),Object.defineProperty(this,FE,{value:jE}),Object.defineProperty(this,IE,{value:_E}),Object.defineProperty(this,NE,{writable:!0,value:0}),Object.defineProperty(this,BE,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return OE(this,NE)[NE]<this.limit?OE(this,IE)[IE](e):OE(this,RE)[RE](e,t)}wrapPromiseFunction(e,t){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(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=new Error("Cancelled")}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")};var $E,VE,GE=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},WE={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:qE}=Tm,{Provider:KE,RequestClient:YE,Socket:XE}=fE,{RateLimitedQueue:ZE,internalRateLimitedQueue:JE}=UE;function QE(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),GE(e)?(n=new _b(n,e),n):(n.request=e,n)}function ew(e){return e.data.slice(0,e.data.size,e.meta.type)}var tw=(VE=$E=class extends Sb{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=WE;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return GE(t)&&(n=new _b(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),JE in this.opts?this.requests=this.opts[JE]:this.requests=new ZE(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(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=ew(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=ew(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new mE(this.uppy);const a=new xE(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=qE();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=QE(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=QE(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]}));new(e.remote.providerOptions.provider?KE:YE)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new XE({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new mE(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>hE(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new xE(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)})),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((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[JE]||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 t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},$E.VERSION="2.0.6",VE),nw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function rw(e){var t={exports:{}};return e(t,t.exports),t.exports}var ow,iw,aw=function(e){return e&&e.Math==Math&&e},uw=aw("object"==typeof globalThis&&globalThis)||aw("object"==typeof window&&window)||aw("object"==typeof self&&self)||aw("object"==typeof nw&&nw)||function(){return this}()||Function("return this")(),sw=Object.defineProperty,lw=function(e,t){try{sw(uw,e,{value:t,configurable:!0,writable:!0})}catch(n){uw[e]=t}return t},cw="__core-js_shared__",fw=uw[cw]||lw(cw,{}),dw=rw((function(e){(e.exports=function(e,t){return fw[e]||(fw[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),pw=Function.prototype,hw=pw.bind,vw=pw.call,gw=hw&&hw.bind(vw),yw=hw?function(e){return e&&gw(vw,e)}:function(e){return e&&function(){return vw.apply(e,arguments)}},mw=uw.TypeError,bw=function(e){if(null==e)throw mw("Can't call method on "+e);return e},Ew=uw.Object,ww=function(e){return Ew(bw(e))},Sw=yw({}.hasOwnProperty),Cw=Object.hasOwn||function(e,t){return Sw(ww(e),t)},Dw=0,Aw=Math.random(),xw=yw(1..toString),Ow=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xw(++Dw+Aw,36)},Tw=function(e){return"function"==typeof e},kw=function(e,t){return arguments.length<2?(n=uw[e],Tw(n)?n:void 0):uw[e]&&uw[e][t];var n},Nw=kw("navigator","userAgent")||"",Bw=uw.process,Iw=uw.Deno,Fw=Bw&&Bw.versions||Iw&&Iw.version,Pw=Fw&&Fw.v8;Pw&&(iw=(ow=Pw.split("."))[0]>0&&ow[0]<4?1:+(ow[0]+ow[1])),!iw&&Nw&&(!(ow=Nw.match(/Edge\/(\d+)/))||ow[1]>=74)&&(ow=Nw.match(/Chrome\/(\d+)/))&&(iw=+ow[1]);var Rw=iw,Lw=function(e){try{return!!e()}catch(e){return!0}},_w=!!Object.getOwnPropertySymbols&&!Lw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Rw&&Rw<41})),jw=_w&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mw=dw("wks"),zw=uw.Symbol,Hw=zw&&zw.for,Uw=jw?zw:zw&&zw.withoutSetter||Ow,$w=function(e){if(!Cw(Mw,e)||!_w&&"string"!=typeof Mw[e]){var t="Symbol."+e;_w&&Cw(zw,e)?Mw[e]=zw[e]:Mw[e]=jw&&Hw?Hw(t):Uw(t)}return Mw[e]},Vw={};Vw[$w("toStringTag")]="z";var Gw="[object z]"===String(Vw),Ww=!Lw((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),qw=function(e){return"object"==typeof e?null!==e:Tw(e)},Kw=uw.document,Yw=qw(Kw)&&qw(Kw.createElement),Xw=function(e){return Yw?Kw.createElement(e):{}},Zw=!Ww&&!Lw((function(){return 7!=Object.defineProperty(Xw("div"),"a",{get:function(){return 7}}).a})),Jw=uw.String,Qw=uw.TypeError,eS=function(e){if(qw(e))return e;throw Qw(Jw(e)+" is not an object")},tS=Function.prototype.call,nS=tS.bind?tS.bind(tS):function(){return tS.apply(tS,arguments)},rS=yw({}.isPrototypeOf),oS=uw.Object,iS=jw?function(e){return"symbol"==typeof e}:function(e){var t=kw("Symbol");return Tw(t)&&rS(t.prototype,oS(e))},aS=uw.String,uS=function(e){try{return aS(e)}catch(e){return"Object"}},sS=uw.TypeError,lS=function(e){if(Tw(e))return e;throw sS(uS(e)+" is not a function")},cS=function(e,t){var n=e[t];return null==n?void 0:lS(n)},fS=uw.TypeError,dS=uw.TypeError,pS=$w("toPrimitive"),hS=function(e){var t=function(e,t){if(!qw(e)||iS(e))return e;var n,r=cS(e,pS);if(r){if(void 0===t&&(t="default"),n=nS(r,e,t),!qw(n)||iS(n))return n;throw dS("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Tw(n=e.toString)&&!qw(r=nS(n,e)))return r;if(Tw(n=e.valueOf)&&!qw(r=nS(n,e)))return r;if("string"!==t&&Tw(n=e.toString)&&!qw(r=nS(n,e)))return r;throw fS("Can't convert object to primitive value")}(e,t)}(e,"string");return iS(t)?t:t+""},vS=uw.TypeError,gS=Object.defineProperty,yS={f:Ww?gS:function(e,t,n){if(eS(e),t=hS(t),eS(n),Zw)try{return gS(e,t,n)}catch(e){}if("get"in n||"set"in n)throw vS("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},mS=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bS=Ww?function(e,t,n){return yS.f(e,t,mS(1,n))}:function(e,t,n){return e[t]=n,e},ES=yw(Function.toString);Tw(fw.inspectSource)||(fw.inspectSource=function(e){return ES(e)});var wS,SS,CS,DS=fw.inspectSource,AS=uw.WeakMap,xS=Tw(AS)&&/native code/.test(DS(AS)),OS=dw("keys"),TS=function(e){return OS[e]||(OS[e]=Ow(e))},kS={},NS="Object already initialized",BS=uw.TypeError,IS=uw.WeakMap;if(xS||fw.state){var FS=fw.state||(fw.state=new IS),PS=yw(FS.get),RS=yw(FS.has),LS=yw(FS.set);wS=function(e,t){if(RS(FS,e))throw new BS(NS);return t.facade=e,LS(FS,e,t),t},SS=function(e){return PS(FS,e)||{}},CS=function(e){return RS(FS,e)}}else{var _S=TS("state");kS[_S]=!0,wS=function(e,t){if(Cw(e,_S))throw new BS(NS);return t.facade=e,bS(e,_S,t),t},SS=function(e){return Cw(e,_S)?e[_S]:{}},CS=function(e){return Cw(e,_S)}}var jS={set:wS,get:SS,has:CS,enforce:function(e){return CS(e)?SS(e):wS(e,{})},getterFor:function(e){return function(t){var n;if(!qw(t)||(n=SS(t)).type!==e)throw BS("Incompatible receiver, "+e+" required");return n}}},MS=Function.prototype,zS=Ww&&Object.getOwnPropertyDescriptor,HS=Cw(MS,"name"),US={EXISTS:HS,PROPER:HS&&"something"===function(){}.name,CONFIGURABLE:HS&&(!Ww||Ww&&zS(MS,"name").configurable)},$S=rw((function(e){var t=US.CONFIGURABLE,n=jS.get,r=jS.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Tw(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cw(i,"name")||t&&i.name!==f)&&bS(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==uw?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:bS(e,n,i)):l?e[n]=i:lw(n,i)})(Function.prototype,"toString",(function(){return Tw(this)&&n(this).source||DS(this)}))})),VS=yw({}.toString),GS=yw("".slice),WS=function(e){return GS(VS(e),8,-1)},qS=$w("toStringTag"),KS=uw.Object,YS="Arguments"==WS(function(){return arguments}()),XS=Gw?WS:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=KS(e),qS))?n:YS?WS(t):"Object"==(r=WS(t))&&Tw(t.callee)?"Arguments":r},ZS=Gw?{}.toString:function(){return"[object "+XS(this)+"]"};Gw||$S(Object.prototype,"toString",ZS,{unsafe:!0});var JS={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},QS=Xw("span").classList,eC=QS&&QS.constructor&&QS.constructor.prototype,tC=eC===Object.prototype?void 0:eC,nC=yw(yw.bind),rC=function(e,t){return lS(e),void 0===t?e:nC?nC(e,t):function(){return e.apply(t,arguments)}},oC=uw.Object,iC=yw("".split),aC=Lw((function(){return!oC("z").propertyIsEnumerable(0)}))?function(e){return"String"==WS(e)?iC(e,""):oC(e)}:oC,uC=Math.ceil,sC=Math.floor,lC=function(e){var t=+e;return t!=t||0===t?0:(t>0?sC:uC)(t)},cC=Math.min,fC=function(e){return e>0?cC(lC(e),9007199254740991):0},dC=function(e){return fC(e.length)},pC=Array.isArray||function(e){return"Array"==WS(e)},hC=function(){},vC=[],gC=kw("Reflect","construct"),yC=/^\s*(?:class|function)\b/,mC=yw(yC.exec),bC=!yC.exec(hC),EC=function(e){if(!Tw(e))return!1;try{return gC(hC,vC,e),!0}catch(e){return!1}},wC=!gC||Lw((function(){var e;return EC(EC.call)||!EC(Object)||!EC((function(){e=!0}))||e}))?function(e){if(!Tw(e))return!1;switch(XS(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bC||!!mC(yC,DS(e))}:EC,SC=$w("species"),CC=uw.Array,DC=function(e,t){return new(function(e){var t;return pC(e)&&(t=e.constructor,(wC(t)&&(t===CC||pC(t.prototype))||qw(t)&&null===(t=t[SC]))&&(t=void 0)),void 0===t?CC:t}(e))(0===t?0:t)},AC=yw([].push),xC=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=ww(s),v=aC(h),g=rC(l,c),y=dC(v),m=0,b=f||DC,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:AC(E,d)}else switch(e){case 4:return!1;case 7:AC(E,d)}return i?-1:r||o?o:E}},OC={forEach:xC(0),map:xC(1),filter:xC(2),some:xC(3),every:xC(4),find:xC(5),findIndex:xC(6),filterReject:xC(7)},TC=function(e,t){var n=[][e];return!!n&&Lw((function(){n.call(null,t||function(){throw 1},1)}))},kC=OC.forEach,NC=TC("forEach")?[].forEach:function(e){return kC(this,e,arguments.length>1?arguments[1]:void 0)},BC=function(e){if(e&&e.forEach!==NC)try{bS(e,"forEach",NC)}catch(t){e.forEach=NC}};for(var IC in JS)JS[IC]&&BC(uw[IC]&&uw[IC].prototype);BC(tC);var FC={}.propertyIsEnumerable,PC=Object.getOwnPropertyDescriptor,RC=PC&&!FC.call({1:2},1)?function(e){var t=PC(this,e);return!!t&&t.enumerable}:FC,LC={f:RC},_C=function(e){return aC(bw(e))},jC=Object.getOwnPropertyDescriptor,MC={f:Ww?jC:function(e,t){if(e=_C(e),t=hS(t),Zw)try{return jC(e,t)}catch(e){}if(Cw(e,t))return mS(!nS(LC.f,e,t),e[t])}},zC=Math.max,HC=Math.min,UC=function(e,t){var n=lC(e);return n<0?zC(n+t,0):HC(n,t)},$C=function(e){return function(t,n,r){var o,i=_C(t),a=dC(i),u=UC(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},VC={includes:$C(!0),indexOf:$C(!1)},GC=VC.indexOf,WC=yw([].push),qC=function(e,t){var n,r=_C(e),o=0,i=[];for(n in r)!Cw(kS,n)&&Cw(r,n)&&WC(i,n);for(;t.length>o;)Cw(r,n=t[o++])&&(~GC(i,n)||WC(i,n));return i},KC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],YC=KC.concat("length","prototype"),XC={f:Object.getOwnPropertyNames||function(e){return qC(e,YC)}},ZC={f:Object.getOwnPropertySymbols},JC=yw([].concat),QC=kw("Reflect","ownKeys")||function(e){var t=XC.f(eS(e)),n=ZC.f;return n?JC(t,n(e)):t},eD=function(e,t){for(var n=QC(t),r=yS.f,o=MC.f,i=0;i<n.length;i++){var a=n[i];Cw(e,a)||r(e,a,o(t,a))}},tD=/#|\.prototype\./,nD=function(e,t){var n=oD[rD(e)];return n==aD||n!=iD&&(Tw(t)?Lw(t):!!t)},rD=nD.normalize=function(e){return String(e).replace(tD,".").toLowerCase()},oD=nD.data={},iD=nD.NATIVE="N",aD=nD.POLYFILL="P",uD=nD,sD=MC.f,lD=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?uw:l?uw[u]||lw(u,{}):(uw[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=sD(n,r))&&a.value:n[r],!uD(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;eD(i,o)}(e.sham||o&&o.sham)&&bS(i,"sham",!0),$S(n,r,i,e)}},cD=Object.keys||function(e){return qC(e,KC)},fD=Lw((function(){cD(1)}));
|
|
19
19
|
/*!
|
|
20
20
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
21
21
|
*
|
|
22
22
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
23
23
|
* Released under the MIT License.
|
|
24
|
-
*/function pC(e){return"[object Object]"===Object.prototype.toString.call(e)}cC({target:"Object",stat:!0,forced:dC},{keys:function(e){return fC(SE(e))}});var hC={isHistory(e){return!1!==pC(t=e)&&(void 0===(n=t.constructor)||!1!==pC(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||jf.isOperationList(e.redos[0]))&&(0===e.undos.length||jf.isOperationList(e.undos[0]));var t,n,r}},vC=new WeakMap,gC=new WeakMap,yC={isHistoryEditor:e=>hC.isHistory(e.history)&&Nf.isEditor(e),isMerging:e=>gC.get(e),isSaving:e=>vC.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=yC.isMerging(e);gC.set(e,!1),t(),gC.set(e,n)},withoutSaving(e,t){var n=yC.isSaving(e);vC.set(e,!1),t(),vC.set(e,n)}},mC=lE.String,bC=function(e){if("Symbol"===Zw(e))throw TypeError("Cannot convert a Symbol value to a string");return mC(e)},EC=function(){var e=nw(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},wC=$w.PROPER,SC=RegExp.prototype,CC=SC.toString,DC=mE(EC),AC=jE((function(){return"/a/b"!=CC.call({source:"a",flags:"b"})})),xC=wC&&"toString"!=CC.name;(AC||xC)&&Vw(RegExp.prototype,"toString",(function(){var e=nw(this),t=bC(e.source),n=e.flags;return"/"+t+"/"+bC(void 0===n&&iw(SC,e)&&!("flags"in SC)?DC(e):n)}),{unsafe:!0});var OC=function(e){return void 0!==e&&(DE(e,"value")||DE(e,"writable"))},TC=!jE((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),NC=kw("IE_PROTO"),kC=lE.Object,BC=kC.prototype,IC=TC?kC.getPrototypeOf:function(e){var t=SE(e);if(DE(t,NC))return t[NC];var n=t.constructor;return NE(n)&&t instanceof n?n.prototype:t instanceof kC?BC:null};cC({target:"Reflect",stat:!0},{get:function e(t,n){var r,o,i=arguments.length<3?t:arguments[2];return nw(t)===i?t[n]:(r=zS.f(t,n))?OC(r)?r.value:void 0===r.get?void 0:ow(r.get,i):YE(o=IC(t))?e(o,n,i):void 0}});var FC,PC=KE?Object.defineProperties:function(e,t){nw(e);for(var n,r=jS(t),o=fC(t),i=o.length,a=0;i>a;)bw.f(e,n=o[a++],r[n]);return e},RC=BE("document","documentElement"),_C=kw("IE_PROTO"),LC=function(){},jC=function(e){return"<script>"+e+"<\/script>"},MC=function(e){e.write(jC("")),e.close();var t=e.parentWindow.Object;return e=null,t},zC=function(){try{FC=new ActiveXObject("htmlfile")}catch(e){}var e,t;zC="undefined"!=typeof document?document.domain&&FC?MC(FC):((t=JE("iframe")).style.display="none",RC.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(jC("document.F=Object")),e.close(),e.F):MC(FC);for(var n=YS.length;n--;)delete zC.prototype[YS[n]];return zC()};Bw[_C]=!0;var HC=Object.create||function(e,t){var n;return null!==e?(LC.prototype=nw(e),n=new LC,LC.prototype=null,n[_C]=e):n=zC(),void 0===t?n:PC(n,t)},UC=GE("unscopables"),$C=Array.prototype;null==$C[UC]&&bw.f($C,UC,{configurable:!0,value:HC(null)});var VC=function(e){$C[UC][e]=!0},GC=GS.includes;cC({target:"Array",proto:!0},{includes:function(e){return GC(this,e,arguments.length>1?arguments[1]:void 0)}}),VC("includes");var WC=GE("match"),qC=function(e){var t;return YE(e)&&(void 0!==(t=e[WC])?!!t:"RegExp"==qw(e))},KC=lE.TypeError,YC=function(e){if(qC(e))throw KC("The method doesn't accept regular expressions");return e},XC=GE("match"),ZC=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[XC]=!1,"/./"[e](t)}catch(e){}}return!1},JC=mE("".indexOf);cC({target:"String",proto:!0,forced:!ZC("includes")},{includes:function(e){return!!~JC(bC(EE(this)),bC(YC(e)),arguments.length>1?arguments[1]:void 0)}});var QC=/"/g,eD=mE("".replace);cC({target:"String",proto:!0,forced:("anchor",jE((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return"a","name",t=e,n=bC(EE(this)),r="<a",(r+=' name="'+eD(bC(t),QC,""")+'"')+">"+n+"</a>";var t,n,r}});var tD=function(e,t,n){var r,o;nw(e);try{if(!(r=dw(e,"return"))){if("throw"===t)throw n;return n}r=ow(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return nw(r),n},nD=function(e,t,n,r){try{return r?t(nw(n)[0],n[1]):t(n)}catch(t){tD(e,"throw",t)}},rD={},oD=GE("iterator"),iD=Array.prototype,aD=function(e){return void 0!==e&&(rD.Array===e||iD[oD]===e)},uD=function(e,t,n){var r=gw(t);r in e?bw.f(e,r,Ew(0,n)):e[r]=n},sD=GE("iterator"),lD=function(e){if(null!=e)return dw(e,sD)||dw(e,"@@iterator")||rD[Zw(e)]},cD=lE.TypeError,fD=function(e,t){var n=arguments.length<2?lD(e):t;if(fw(n))return nw(ow(n,e));throw cD(lw(e)+" is not iterable")},dD=lE.Array,pD=GE("iterator"),hD=!1;try{var vD=0,gD={next:function(){return{done:!!vD++}},return:function(){hD=!0}};gD[pD]=function(){return this},Array.from(gD,(function(){throw 2}))}catch(yN){}var yD=function(e,t){if(!t&&!hD)return!1;var n=!1;try{var r={};r[pD]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},mD=!yD((function(e){Array.from(e)}));cC({target:"Array",stat:!0,forced:mD},{from:function(e){var t=SE(e),n=SS(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=oS(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=lD(t),p=0;if(!d||this==dD&&aD(d))for(a=pS(t),u=n?new this(a):dD(a);a>p;p++)f=i?o(t[p],p):t[p],uD(u,p,f);else for(c=(l=fD(t,d)).next,u=n?new this:[];!(s=ow(c,l)).done;p++)f=i?nD(l,o,[s.value,p],!0):s.value,uD(u,p,f);return u.length=p,u}});var bD,ED,wD,SD=mE("".charAt),CD=mE("".charCodeAt),DD=mE("".slice),AD=function(e){return function(t,n){var r,o,i=bC(EE(t)),a=cS(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=CD(i,a))<55296||r>56319||a+1===u||(o=CD(i,a+1))<56320||o>57343?e?SD(i,a):r:e?DD(i,a,a+2):o-56320+(r-55296<<10)+65536}},xD={codeAt:AD(!1),charAt:AD(!0)},OD=GE("iterator"),TD=!1;[].keys&&("next"in(wD=[].keys())?(ED=IC(IC(wD)))!==Object.prototype&&(bD=ED):TD=!0);var ND=null==bD||jE((function(){var e={};return bD[OD].call(e)!==e}));ND&&(bD={}),NE(bD[OD])||Vw(bD,OD,(function(){return this}));var kD={IteratorPrototype:bD,BUGGY_SAFARI_ITERATORS:TD},BD=bw.f,ID=GE("toStringTag"),FD=function(e,t,n){e&&!DE(e=n?e:e.prototype,ID)&&BD(e,ID,{configurable:!0,value:t})},PD=kD.IteratorPrototype,RD=function(){return this},_D=lE.String,LD=lE.TypeError,jD=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=mE(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return nw(n),function(e){if("object"==typeof e||NE(e))return e;throw LD("Can't set "+_D(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),MD=$w.PROPER,zD=$w.CONFIGURABLE,HD=kD.IteratorPrototype,UD=kD.BUGGY_SAFARI_ITERATORS,$D=GE("iterator"),VD=function(){return this},GD=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=HC(PD,{next:Ew(1,n)}),FD(e,o,!1),rD[o]=RD}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!UD&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[$D]||p["@@iterator"]||o&&p[o],v=!UD&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=IC(g.call(new e)))!==Object.prototype&&u.next&&(IC(u)!==HD&&(jD?jD(u,HD):NE(u[$D])||Vw(u,$D,VD)),FD(u,f,!0)),MD&&"values"==o&&h&&"values"!==h.name&&(zD?ww(p,"name","values"):(d=!0,v=function(){return ow(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(UD||d||!(l in p))&&Vw(p,l,s[l]);else cC({target:t,proto:!0,forced:UD||d},s);return p[$D]!==v&&Vw(p,$D,v,{name:o}),rD[t]=v,s},WD=xD.charAt,qD=Mw.set,KD=Mw.getterFor("String Iterator");GD(String,"String",(function(e){qD(this,{type:"String Iterator",string:bC(e),index:0})}),(function(){var e,t=KD(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=WD(n,r),t.index+=e.length,{value:e,done:!1})}));var YD,XD=zS.f,ZD=mE("".endsWith),JD=mE("".slice),QD=Math.min,eA=ZC("endsWith"),tA=!(eA||(YD=XD(String.prototype,"endsWith"),!YD||YD.writable));cC({target:"String",proto:!0,forced:!tA&&!eA},{endsWith:function(e){var t=bC(EE(this));YC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:QD(dS(n),r),i=bC(e);return ZD?ZD(t,i,o):JD(t,o-i.length,o)===i}});var nA=mE([].join),rA=uS!=Object,oA=NS("join",",");cC({target:"Array",proto:!0,forced:rA||!oA},{join:function(e){return nA(jS(this),void 0===e?",":e)}});var iA=GE("species"),aA=function(e){return LE>=51||!jE((function(){var t=[];return(t.constructor={})[iA]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},uA=TS.map,sA=aA("map");cC({target:"Array",proto:!0,forced:!sA},{map:function(e){return uA(this,e,arguments.length>1?arguments[1]:void 0)}});var lA=lE.RegExp,cA=jE((function(){var e=lA("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),fA=cA||jE((function(){return!lA("a","y").sticky})),dA={BROKEN_CARET:cA||jE((function(){var e=lA("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:fA,UNSUPPORTED_Y:cA},pA=lE.RegExp,hA=jE((function(){var e=pA(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),vA=lE.RegExp,gA=jE((function(){var e=vA("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),yA=Mw.get,mA=pE("native-string-replace",String.prototype.replace),bA=RegExp.prototype.exec,EA=bA,wA=mE("".charAt),SA=mE("".indexOf),CA=mE("".replace),DA=mE("".slice),AA=function(){var e=/a/,t=/b*/g;return ow(bA,e,"a"),ow(bA,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),xA=dA.BROKEN_CARET,OA=void 0!==/()??/.exec("")[1];(AA||OA||xA||hA||gA)&&(EA=function(e){var t,n,r,o,i,a,u,s=this,l=yA(s),c=bC(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ow(EA,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xA&&s.sticky,h=ow(EC,s),v=s.source,g=0,y=c;if(p&&(h=CA(h,"y",""),-1===SA(h,"g")&&(h+="g"),y=DA(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==wA(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),OA&&(n=new RegExp("^"+v+"$(?!\\s)",h)),AA&&(r=s.lastIndex),o=ow(bA,p?n:s,y),p?o?(o.input=DA(o.input,g),o[0]=DA(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:AA&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),OA&&o&&o.length>1&&ow(mA,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=HC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var TA=EA;cC({target:"RegExp",proto:!0,forced:/./.exec!==TA},{exec:TA});var NA=Function.prototype,kA=NA.apply,BA=NA.bind,IA=NA.call,FA="object"==typeof Reflect&&Reflect.apply||(BA?IA.bind(kA):function(){return IA.apply(kA,arguments)}),PA=GE("species"),RA=RegExp.prototype,_A=function(e,t,n,r){var o=GE(e),i=!jE((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!jE((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[PA]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=mE(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=mE(e),s=t.exec;return s===TA||s===RA.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Vw(String.prototype,e,s[0]),Vw(RA,o,s[1])}r&&ww(RA[o],"sham",!0)},LA=xD.charAt,jA=function(e,t,n){return t+(n?LA(e,t).length:1)},MA=Math.floor,zA=mE("".charAt),HA=mE("".replace),UA=mE("".slice),$A=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,VA=/\$([$&'`]|\d{1,2})/g,GA=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=VA;return void 0!==o&&(o=SE(o),s=$A),HA(i,s,(function(i,s){var l;switch(zA(s,0)){case"$":return"$";case"&":return e;case"`":return UA(t,0,n);case"'":return UA(t,a);case"<":l=o[UA(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=MA(c/10);return 0===f?i:f<=u?void 0===r[f-1]?zA(s,1):r[f-1]+zA(s,1):i}l=r[c-1]}return void 0===l?"":l}))},WA=lE.TypeError,qA=function(e,t){var n=e.exec;if(NE(n)){var r=ow(n,e,t);return null!==r&&nw(r),r}if("RegExp"===qw(e))return ow(TA,e,t);throw WA("RegExp#exec called on incompatible receiver")},KA=GE("replace"),YA=Math.max,XA=Math.min,ZA=mE([].concat),JA=mE([].push),QA=mE("".indexOf),ex=mE("".slice),tx="$0"==="a".replace(/./,"$0"),nx=!!/./[KA]&&""===/./[KA]("a","$0");_A("replace",(function(e,t,n){var r=nx?"$":"$0";return[function(e,n){var r=EE(this),o=null==e?void 0:dw(e,KA);return o?ow(o,e,r,n):ow(t,bC(r),e,n)},function(e,o){var i=nw(this),a=bC(e);if("string"==typeof o&&-1===QA(o,r)&&-1===QA(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=NE(o);s||(o=bC(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=qA(i,a);if(null===d)break;if(JA(f,d),!l)break;""===bC(d[0])&&(i.lastIndex=jA(a,dS(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=bC((d=f[g])[0]),m=YA(XA(cS(d.index),a.length),0),b=[],E=1;E<d.length;E++)JA(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=ZA([y],b,m,a);void 0!==w&&JA(S,w);var C=bC(FA(o,void 0,S))}else C=GA(y,a,m,b,w,o);m>=v&&(h+=ex(a,v,m)+C,v=m+y.length)}return h+ex(a,v)}]}),!!jE((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!tx||nx);var rx=function(e,t){return rx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},rx(e,t)};function ox(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}rx(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ix=function(){return ix=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ix.apply(this,arguments)};function ax(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ux(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function sx(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var lx=0,cx=function(){this.id=""+lx++},fx=Mw.set,dx=Mw.getterFor("Array Iterator"),px=GD(Array,"Array",(function(e,t){fx(this,{type:"Array Iterator",target:jS(e),index:0,kind:t})}),(function(){var e=dx(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");rD.Arguments=rD.Array,VC("keys"),VC("values"),VC("entries");var hx=function(e,t,n){for(var r in t)Vw(e,r,t[r],n);return e},vx=lE.Array,gx=Math.max,yx=function(e,t,n){for(var r=pS(e),o=$S(t,r),i=$S(void 0===n?r:n,r),a=vx(gx(i-o,0)),u=0;o<i;o++,u++)uD(a,u,e[o]);return a.length=u,a},mx=ZS.f,bx="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ex={f:function(e){return bx&&"Window"==qw(e)?function(e){try{return mx(e)}catch(e){return yx(bx)}}(e):mx(jS(e))}},wx=jE((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Sx=Object.isExtensible,Cx=jE((function(){Sx(1)}))||wx?function(e){return!!YE(e)&&(!wx||"ArrayBuffer"!=qw(e))&&(!Sx||Sx(e))}:Sx,Dx=!jE((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ax=iE((function(e){var t=bw.f,n=!1,r=TE("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=ZS.f,t=mE([].splice),o={};o[r]=1,e(o).length&&(ZS.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},cC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ex.f}))},fastKey:function(e,t){if(!YE(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!DE(e,r)){if(!Cx(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!DE(e,r)){if(!Cx(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Dx&&n&&Cx(e)&&!DE(e,r)&&i(e),e}};Bw[r]=!0})),xx=lE.TypeError,Ox=function(e,t){this.stopped=e,this.result=t},Tx=Ox.prototype,Nx=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=oS(t,c),v=function(e){return r&&tD(r,"normal",e),new Ox(!0,e)},g=function(e){return f?(nw(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=lD(e)))throw xx(lw(e)+" is not iterable");if(aD(o)){for(i=0,a=pS(e);a>i;i++)if((u=g(e[i]))&&iw(Tx,u))return u;return new Ox(!1)}r=fD(e,o)}for(s=r.next;!(l=ow(s,r)).done;){try{u=g(l.value)}catch(e){tD(r,"throw",e)}if("object"==typeof u&&u&&iw(Tx,u))return u}return new Ox(!1)},kx=lE.TypeError,Bx=function(e,t){if(iw(t,e))return e;throw kx("Incorrect invocation")},Ix=function(e,t,n){var r,o;return jD&&NE(r=t.constructor)&&r!==n&&YE(o=r.prototype)&&o!==n.prototype&&jD(e,o),e},Fx=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=lE[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=mE(u[e]);Vw(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!YE(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!YE(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!YE(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(sC(e,!NE(a)||!(o||u.forEach&&!jE((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Ax.enable();else if(sC(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=jE((function(){f.has(1)})),h=yD((function(e){new a(e)})),v=!o&&jE((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Bx(e,u);var n=Ix(new a,e,s);return null!=t&&Nx(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,cC({global:!0,forced:s!=a},l),FD(s,e),o||n.setStrong(s,e,r),s},Px=Ax.getWeakData,Rx=Mw.set,_x=Mw.getterFor,Lx=TS.find,jx=TS.findIndex,Mx=mE([].splice),zx=0,Hx=function(e){return e.frozen||(e.frozen=new Ux)},Ux=function(){this.entries=[]},$x=function(e,t){return Lx(e.entries,(function(e){return e[0]===t}))};Ux.prototype={get:function(e){var t=$x(this,e);if(t)return t[1]},has:function(e){return!!$x(this,e)},set:function(e,t){var n=$x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=jx(this.entries,(function(t){return t[0]===e}));return~t&&Mx(this.entries,t,1),!!~t}};var Vx,Gx={getConstructor:function(e,t,n,r){var o=e((function(e,o){Bx(e,i),Rx(e,{type:t,id:zx++,frozen:void 0}),null!=o&&Nx(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=_x(t),u=function(e,t,n){var r=a(e),o=Px(nw(t),!0);return!0===o?Hx(r).set(t,n):o[r.id]=n,e};return hx(i,{delete:function(e){var t=a(this);if(!YE(e))return!1;var n=Px(e);return!0===n?Hx(t).delete(e):n&&DE(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!YE(e))return!1;var n=Px(e);return!0===n?Hx(t).has(e):n&&DE(n,t.id)}}),hx(i,n?{get:function(e){var t=a(this);if(YE(e)){var n=Px(e);return!0===n?Hx(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Wx=Mw.enforce,qx=!lE.ActiveXObject&&"ActiveXObject"in lE,Kx=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Yx=Fx("WeakMap",Kx,Gx);if(Tw&&qx){Vx=Gx.getConstructor(Kx,"WeakMap",!0),Ax.enable();var Xx=Yx.prototype,Zx=mE(Xx.delete),Jx=mE(Xx.has),Qx=mE(Xx.get),eO=mE(Xx.set);hx(Xx,{delete:function(e){if(YE(e)&&!Cx(e)){var t=Wx(this);return t.frozen||(t.frozen=new Vx),Zx(this,e)||t.frozen.delete(e)}return Zx(this,e)},has:function(e){if(YE(e)&&!Cx(e)){var t=Wx(this);return t.frozen||(t.frozen=new Vx),Jx(this,e)||t.frozen.has(e)}return Jx(this,e)},get:function(e){if(YE(e)&&!Cx(e)){var t=Wx(this);return t.frozen||(t.frozen=new Vx),Jx(this,e)?Qx(this,e):t.frozen.get(e)}return Qx(this,e)},set:function(e,t){if(YE(e)&&!Cx(e)){var n=Wx(this);n.frozen||(n.frozen=new Vx),Jx(this,e)?eO(this,e,t):n.frozen.set(e,t)}else eO(this,e,t);return this}})}var tO=GE("iterator"),nO=GE("toStringTag"),rO=px.values,oO=function(e,t){if(e){if(e[tO]!==rO)try{ww(e,tO,rO)}catch(t){e[tO]=rO}if(e[nO]||ww(e,nO,t),Qw[t])for(var n in px)if(e[n]!==px[n])try{ww(e,n,px[n])}catch(t){e[n]=px[n]}}};for(var iO in Qw)oO(lE[iO]&&lE[iO].prototype,iO);oO(nS,"DOMTokenList");var aO=new WeakMap,uO=new WeakMap,sO=new WeakMap,lO=new WeakMap,cO=new WeakMap,fO=new WeakMap,dO=new WeakMap,pO=new WeakMap,hO=new WeakMap,vO=new WeakMap,gO=new WeakMap,yO=new WeakMap,mO=new WeakMap,bO=new WeakMap,EO=new WeakMap,wO=new WeakMap,SO=new WeakMap,CO=new WeakMap,DO=new WeakMap,AO=new WeakMap,xO=new WeakMap,OO=new WeakMap,TO=new WeakMap,NO=new WeakMap,kO=new WeakMap,BO=TS.find,IO=!0;"find"in[]&&Array(1).find((function(){IO=!1})),cC({target:"Array",proto:!0,forced:IO},{find:function(e){return BO(this,e,arguments.length>1?arguments[1]:void 0)}}),VC("find"),cC({global:!0},{globalThis:lE});const FO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];var PO,RO,_O,LO,jO=lE.Promise,MO=GE("species"),zO=function(e){var t=BE(e),n=bw.f;KE&&t&&!t[MO]&&n(t,MO,{configurable:!0,get:function(){return this}})},HO=lE.TypeError,UO=GE("species"),$O=function(e,t){var n,r=nw(e).constructor;return void 0===r||null==(n=nw(r)[UO])?t:function(e){if(SS(e))return e;throw HO(lw(e)+" is not a constructor")}(n)},VO=mE([].slice),GO=/(?:ipad|iphone|ipod).*applewebkit/i.test(IE),WO="process"==qw(lE.process),qO=lE.setImmediate,KO=lE.clearImmediate,YO=lE.process,XO=lE.Dispatch,ZO=lE.Function,JO=lE.MessageChannel,QO=lE.String,eT=0,tT={};try{PO=lE.location}catch(yN){}var nT=function(e){if(DE(tT,e)){var t=tT[e];delete tT[e],t()}},rT=function(e){return function(){nT(e)}},oT=function(e){nT(e.data)},iT=function(e){lE.postMessage(QO(e),PO.protocol+"//"+PO.host)};qO&&KO||(qO=function(e){var t=VO(arguments,1);return tT[++eT]=function(){FA(NE(e)?e:ZO(e),void 0,t)},RO(eT),eT},KO=function(e){delete tT[e]},WO?RO=function(e){YO.nextTick(rT(e))}:XO&&XO.now?RO=function(e){XO.now(rT(e))}:JO&&!GO?(LO=(_O=new JO).port2,_O.port1.onmessage=oT,RO=oS(LO.postMessage,LO)):lE.addEventListener&&NE(lE.postMessage)&&!lE.importScripts&&PO&&"file:"!==PO.protocol&&!jE(iT)?(RO=iT,lE.addEventListener("message",oT,!1)):RO="onreadystatechange"in JE("script")?function(e){RC.appendChild(JE("script")).onreadystatechange=function(){RC.removeChild(this),nT(e)}}:function(e){setTimeout(rT(e),0)});var aT,uT,sT,lT,cT,fT,dT,pT,hT={set:qO,clear:KO},vT=/ipad|iphone|ipod/i.test(IE)&&void 0!==lE.Pebble,gT=/web0s(?!.*chrome)/i.test(IE),yT=zS.f,mT=hT.set,bT=lE.MutationObserver||lE.WebKitMutationObserver,ET=lE.document,wT=lE.process,ST=lE.Promise,CT=yT(lE,"queueMicrotask"),DT=CT&&CT.value;DT||(aT=function(){var e,t;for(WO&&(e=wT.domain)&&e.exit();uT;){t=uT.fn,uT=uT.next;try{t()}catch(e){throw uT?lT():sT=void 0,e}}sT=void 0,e&&e.enter()},GO||WO||gT||!bT||!ET?!vT&&ST&&ST.resolve?((dT=ST.resolve(void 0)).constructor=ST,pT=oS(dT.then,dT),lT=function(){pT(aT)}):WO?lT=function(){wT.nextTick(aT)}:(mT=oS(mT,lE),lT=function(){mT(aT)}):(cT=!0,fT=ET.createTextNode(""),new bT(aT).observe(fT,{characterData:!0}),lT=function(){fT.data=cT=!cT}));var AT,xT,OT,TT,NT=DT||function(e){var t={fn:e,next:void 0};sT&&(sT.next=t),uT||(uT=t,lT()),sT=t},kT=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=fw(t),this.reject=fw(n)},BT={f:function(e){return new kT(e)}},IT=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},FT="object"==typeof window,PT=hT.set,RT=GE("species"),_T="Promise",LT=Mw.getterFor(_T),jT=Mw.set,MT=Mw.getterFor(_T),zT=jO&&jO.prototype,HT=jO,UT=zT,$T=lE.TypeError,VT=lE.document,GT=lE.process,WT=BT.f,qT=WT,KT=!!(VT&&VT.createEvent&&lE.dispatchEvent),YT=NE(lE.PromiseRejectionEvent),XT=!1,ZT=sC(_T,(function(){var e=xw(HT),t=e!==String(HT);if(!t&&66===LE)return!0;if(LE>=51&&/native code/.test(e))return!1;var n=new HT((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[RT]=r,!(XT=n.then((function(){}))instanceof r)||!t&&FT&&!YT})),JT=ZT||!yD((function(e){HT.all(e).catch((function(){}))})),QT=function(e){var t;return!(!YE(e)||!NE(t=e.then))&&t},eN=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;NT((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&oN(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d($T("Promise-chain cycle")):(u=QT(a))?ow(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&nN(e)}))}},tN=function(e,t,n){var r,o;KT?((r=VT.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),lE.dispatchEvent(r)):r={promise:t,reason:n},!YT&&(o=lE["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=lE.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},nN=function(e){ow(PT,lE,(function(){var t,n=e.facade,r=e.value;if(rN(e)&&(t=IT((function(){WO?GT.emit("unhandledRejection",r,n):tN("unhandledrejection",n,r)})),e.rejection=WO||rN(e)?2:1,t.error))throw t.value}))},rN=function(e){return 1!==e.rejection&&!e.parent},oN=function(e){ow(PT,lE,(function(){var t=e.facade;WO?GT.emit("rejectionHandled",t):tN("rejectionhandled",t,e.value)}))},iN=function(e,t,n){return function(r){e(t,r,n)}},aN=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,eN(e,!0))},uN=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw $T("Promise can't be resolved itself");var r=QT(t);r?NT((function(){var n={done:!1};try{ow(r,t,iN(uN,n,e),iN(aN,n,e))}catch(t){aN(n,t,e)}})):(e.value=t,e.state=1,eN(e,!1))}catch(t){aN({done:!1},t,e)}}};if(ZT&&(UT=(HT=function(e){Bx(this,UT),fw(e),ow(AT,this);var t=LT(this);try{e(iN(uN,t),iN(aN,t))}catch(e){aN(t,e)}}).prototype,(AT=function(e){jT(this,{type:_T,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=hx(UT,{then:function(e,t){var n=MT(this),r=n.reactions,o=WT($O(this,HT));return o.ok=!NE(e)||e,o.fail=NE(t)&&t,o.domain=WO?GT.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&eN(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),xT=function(){var e=new AT,t=LT(e);this.promise=e,this.resolve=iN(uN,t),this.reject=iN(aN,t)},BT.f=WT=function(e){return e===HT||e===OT?new xT(e):qT(e)},NE(jO)&&zT!==Object.prototype)){TT=zT.then,XT||(Vw(zT,"then",(function(e,t){var n=this;return new HT((function(e,t){ow(TT,n,e,t)})).then(e,t)}),{unsafe:!0}),Vw(zT,"catch",UT.catch,{unsafe:!0}));try{delete zT.constructor}catch(yN){}jD&&jD(zT,UT)}cC({global:!0,wrap:!0,forced:ZT},{Promise:HT}),FD(HT,_T,!1),zO(_T),OT=BE(_T),cC({target:_T,stat:!0,forced:ZT},{reject:function(e){var t=WT(this);return ow(t.reject,void 0,e),t.promise}}),cC({target:_T,stat:!0,forced:ZT},{resolve:function(e){return function(e,t){if(nw(e),YE(t)&&t.constructor===e)return t;var n=BT.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),cC({target:_T,stat:!0,forced:JT},{all:function(e){var t=this,n=WT(t),r=n.resolve,o=n.reject,i=IT((function(){var n=fw(t.resolve),i=[],a=0,u=1;Nx(e,(function(e){var s=a++,l=!1;u++,ow(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=WT(t),r=n.reject,o=IT((function(){var o=fw(t.resolve);Nx(e,(function(e){ow(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var sN=dA.UNSUPPORTED_Y,lN=Math.min,cN=[].push,fN=mE(/./.exec),dN=mE(cN),pN=mE("".slice);function hN(e){Promise.resolve().then(e)}_A("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=bC(EE(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!qC(e))return ow(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=ow(TA,f,r))&&!((a=f.lastIndex)>c&&(dN(s,pN(r,c,i.index)),i.length>1&&i.index<r.length&&FA(cN,s,yx(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&fN(f,"")||dN(s,""):dN(s,pN(r,c)),s.length>o?yx(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:ow(t,this,e,n)}:t,[function(t,n){var o=EE(this),i=null==t?void 0:dw(t,e);return i?ow(i,t,o,n):ow(r,bC(o),t,n)},function(e,o){var i=nw(this),a=bC(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=$O(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(sN?"g":"y"),f=new s(sN?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===qA(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=sN?0:h;var g,y=qA(f,sN?pN(a,h):a);if(null===y||(g=lN(dS(f.lastIndex+(sN?h:0)),a.length))===p)h=jA(a,h,l);else{if(dN(v,pN(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(dN(v,y[m]),v.length===d)return v;h=p=g}}return dN(v,pN(a,p)),v}]}),!!jE((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),sN);var vN=function(e){return Object.prototype.toString.call(e)};eh&&(Mp.fn.css=eh),ah&&(Mp.fn.append=ah),zp&&(Mp.fn.addClass=zp),Hp&&(Mp.fn.removeClass=Hp),Up&&(Mp.fn.hasClass=Up),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Vp&&(Mp.fn.removeAttr=Vp),Jp&&(Mp.fn.hide=Jp),Qp&&(Mp.fn.show=Qp),Zp&&(Mp.fn.offset=Zp),Yp&&(Mp.fn.width=Yp),Xp&&(Mp.fn.height=Xp),sh&&(Mp.fn.parent=sh),lh&&(Mp.fn.parents=lh),ih&&(Mp.fn.is=ih),Gp&&(Mp.fn.dataset=Gp),Wp&&(Mp.fn.val=Wp),oh&&(Mp.fn.text=oh),rh&&(Mp.fn.html=rh),fh&&(Mp.fn.children=fh),dh&&(Mp.fn.remove=dh),ch&&(Mp.fn.find=ch),th&&(Mp.fn.each=th),ph&&(Mp.fn.empty=ph);var gN,yN,mN=/\[object HTML([A-Z][a-z]*)*Element\]/,bN=function(e){return EN(e)&&1===e.nodeType},EN=function(e){return null!=e&&"number"==typeof e.nodeType},wN=function(e){return"[object Selection]"===vN(e)},SN=function(e){return EN(e)&&3===e.nodeType},CN=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},DN=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(EN(r=i)&&8===r.nodeType||bN(i)&&0===i.childNodes.length||bN(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},AN=function(e,t,n){return ux(DN(e,t,n),1)[0]},xN=function e(t){var n,r,o="";if(SN(t)&&t.nodeValue)return t.nodeValue;if(bN(t)){try{for(var i=ax(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function ON(e,t){if(n=e,!mN.test(vN(n))||"true"!==e.dataset.slateVoid)for(var n,r=e.childNodes,o=r.length;o--;){var i=r[o],a=i.nodeType;3==a?t(i,e):1!=a&&9!=a&&11!=a||ON(i,t)}}function TN(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==gN.ELEMENT_NODE?"":t.tagName.toLowerCase()}(yN=gN||(gN={}))[yN.ELEMENT_NODE=1]="ELEMENT_NODE",yN[yN.TEXT_NODE=3]="TEXT_NODE",yN[yN.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",yN[yN.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",yN[yN.COMMENT_NODE=8]="COMMENT_NODE",yN[yN.DOCUMENT_NODE=9]="DOCUMENT_NODE",yN[yN.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",yN[yN.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var NN="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),kN="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var BN="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),IN="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),FN="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),PN="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var RN=!FN&&!IN&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,_N={getWindow:function(e){var t=xO.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=AO.get(t);return n||(n=new cx,AO.set(t,n)),n},setNewKey:function(e){var t=new cx;AO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=EO.get(r);if(null==o){if(Nf.isEditor(r))return n;break}var i=bO.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=_N.toDOMNode(e,e),n=t.getRootNode();return"[object HTMLDocument]"!==vN(n)&&!function(e){return"[object ShadowRoot]"===vN(e)}(n)||null==Reflect.get(n,"getSelection")?t.ownerDocument:n},getParentNode:function(e,t){return EO.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=_N.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[_N.findPath(e,t)[0]];return Rf.get(e,n)},toDOMNode:function(e,t){var n;if(Nf.isEditor(t))n=wO.get(e);else{var r=_N.findKey(e,t);n=CO.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=_N.toDOMNode(e,e);try{r=bN(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&(r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))||!!r.getAttribute("data-slate-string"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=qf.isBackward(t),i=_N.toDOMPoint(e,n),a=qf.isCollapsed(t)?i:_N.toDOMPoint(e,r),u=_N.getWindow(e).document.createRange(),s=ux(o?a:i,2),l=s[0],c=s[1],f=ux(o?i:a,2),d=f[0],p=f[1],h=!!(bN(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(bN(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=ux(Nf.node(e,t.path),1)[0],a=_N.toDOMNode(e,i);Nf.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=ax(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),v=s+(null==h?p:parseInt(h,10));if(t.offset<=v){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(e){n={error:e}}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(t));return o},toSlateNode:function(e,t){var n=bN(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?SO.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=_N.toSlateNode(e,t.target),u=_N.findPath(e,a);if(Nf.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=Nf.point(e,u,{edge:l?"start":"end"}),f=l?Nf.before(e,c):Nf.after(e,c);if(f)return Nf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return _N.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((wN(t)?t.anchorNode:t.startContainer)&&(wN(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=PN&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=_N.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:_N.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return qf.isExpanded(d)&&qf.isForward(d)&&bN(i)&&Nf.void(e,{at:d.focus,mode:"highest"})&&(d=Nf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=ux(o?t:function(e){var t,n=ux(e,2),r=n[0],o=n[1];if(bN(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=ux(DN(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;bN(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=AN(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var v=_N.getWindow(e).document.createRange();v.setStart(c,0),v.setEnd(u,s);var g=v.cloneContents();sx(sx([],ux(Dp(g.querySelectorAll("[data-slate-zero-width]")))),ux(Dp(g.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=g.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||kN&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=_N.toSlateNode(e,c);return{path:_N.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Nf.hasPath(e,n.path)&&Nf.hasPath(e,r.path)},getNodeType:function(e){return Cf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Rf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Nf.nodes(e,{universal:!0});try{for(var i=ax(o),a=i.next();!a.done;a=i.next()){var u=ux(a.value,1)[0];Cf.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=ux(Nf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=ux(Nf.nodes(e,{match:function(e){return ed.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=ux(Nf.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&ux(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Nf.isEnd(e,n.anchor,t)||Nf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=aO.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return lO.get(e)||null},getHoverbar:function(e){return fO.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=_N.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=ax(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=Nf.nodes(e,{match:function(t){return!(!Cf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=ax(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];ON(_N.toDOMNode(e,h),(function(e,t){var n=Mp(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Nf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=ax(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(qf.isExpanded(t))return!1;var n=_N.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=Nf.node(e,t);if(null==n)return!1;var r=ux(n,1)[0].children;return 1===r.length&&""===r[0].text}},LN=1,jN={},MN={};var zN=TS.filter,HN=aA("filter");cC({target:"Array",proto:!0,forced:!HN},{filter:function(e){return zN(this,e,arguments.length>1?arguments[1]:void 0)}});var UN="\t\n\v\f\r \u2028\u2029\ufeff",$N=mE("".replace),VN="["+UN+"]",GN=RegExp("^"+VN+VN+"*"),WN=RegExp(VN+VN+"*$"),qN=function(e){return function(t){var n=bC(EE(t));return 1&e&&(n=$N(n,GN,"")),2&e&&(n=$N(n,WN,"")),n}},KN={start:qN(1),end:qN(2),trim:qN(3)},YN=$w.PROPER,XN=KN.trim;cC({target:"String",proto:!0,forced:function(e){return jE((function(){return!!UN[e]()||"
"!=="
"[e]()||YN&&UN[e].name!==e}))}("trim")},{trim:function(){return XN(this)}});var ZN=[];var JN={};function QN(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function ek(e,t){return Cf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Nf.isVoid(t,e),u="";a||(u=i.map((function(e){return ek(e,t)})).join(""));var s=function(e){return JN[e]||QN}(r),l=s(e,u,t),c="";if(c="string"==typeof l?l:l.html||"",a||ZN.forEach((function(t){return c=t(e,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=_N.getParentsNodes(t,e).some((function(e){return"pre"===_N.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=_N.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return ZN.forEach((function(t){return r=t(e,r)})),r}(e,t)}function tk(e){return"w-e-element-"+e}var nk=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},rk=function(e,t,n){var r=_N.toDOMRange(e,t).getBoundingClientRect(),o=_N.toDOMRange(e,n).getBoundingClientRect();return nk(r,o)&&nk(o,r)},ok=["span","b","strong","i","em","s","strike","u","font","sub","sup"],ik=[];var ak=[];var uk={};var sk=bw.f,lk=ZS.f,ck=Mw.enforce,fk=GE("match"),dk=lE.RegExp,pk=dk.prototype,hk=lE.SyntaxError,vk=mE(EC),gk=mE(pk.exec),yk=mE("".charAt),mk=mE("".replace),bk=mE("".indexOf),Ek=mE("".slice),wk=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Sk=/a/g,Ck=/a/g,Dk=new dk(Sk)!==Sk,Ak=dA.MISSED_STICKY,xk=dA.UNSUPPORTED_Y,Ok=KE&&(!Dk||Ak||hA||gA||jE((function(){return Ck[fk]=!1,dk(Sk)!=Sk||dk(Ck)==Ck||"/a/i"!=dk(Sk,"i")})));if(sC("RegExp",Ok)){for(var Tk=function(e,t){var n,r,o,i,a,u,s=iw(pk,this),l=qC(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===Tk)return e;if((l||iw(pk,e))&&(e=e.source,c&&(t="flags"in d?d.flags:vk(d))),e=void 0===e?"":bC(e),t=void 0===t?"":bC(t),d=e,hA&&"dotAll"in Sk&&(r=!!t&&bk(t,"s")>-1)&&(t=mk(t,/s/g,"")),n=t,Ak&&"sticky"in Sk&&(o=!!t&&bk(t,"y")>-1)&&xk&&(t=mk(t,/y/g,"")),gA&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=yk(e,r)))t+=yk(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:gk(wk,Ek(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||DE(a,c))throw new hk("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=Ix(dk(e,t),s?this:pk,Tk),(r||o||f.length)&&(u=ck(a),r&&(u.dotAll=!0,u.raw=Tk(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=yk(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+yk(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{ww(a,"source",""===d?"(?:)":d)}catch(e){}return a},Nk=function(e){e in Tk||sk(Tk,e,{configurable:!0,get:function(){return dk[e]},set:function(t){dk[e]=t}})},kk=lk(dk),Bk=0;kk.length>Bk;)Nk(kk[Bk++]);pk.constructor=Tk,Tk.prototype=pk,Vw(lE,"RegExp",Tk)}zO("RegExp");var Ik=new RegExp(String.fromCharCode(160),"g");function Fk(e){return e.replace(Ik," ")}function Pk(e,t){var n=e.length;if(n){var r=e[n-1];if(ed.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function Rk(e,t,n){return{type:"paragraph",children:[{text:Mp(e).text().replace(/\s+/gm," ")}]}}function _k(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==gN.ELEMENT_NODE)if(e.nodeType!==gN.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=Fk(r),Pk(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(Pk(n,"\n")||n.push({text:"\n"}));var o=jk(Mp(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in uk)if(e[0].matches(t))return uk[t];return Rk}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){Nf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),ak.forEach((function(n){r=n(e[0],r,t)})))})),o}function Lk(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=Fk(n)};return ak.forEach((function(n){r=n(e[0],r,t)})),r}function jk(e,t){ik.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Mp(r(e[0])))}));var n=TN(e);if("span"===n){if(e.attr("data-w-e-type"))return _k(e,t);if(e[0].childNodes.length>1){var r=e[0].childNodes;return Array.from(r).map((function(n){return Mp(e[0]).empty(),Mp(e[0]).append(Mp(n)),Lk(Mp(e[0]),t)}))}return Lk(e,t)}return"code"===n?"pre"===TN(e.parent())?_k(e,t):Lk(e,t):ok.includes(n)?Lk(e,t):_k(e,t)}function Mk(e,t,n){var r=Mp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function zk(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=Mp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=jk(Mp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var Hk=bw.f,Uk=Ax.fastKey,$k=Mw.set,Vk=Mw.getterFor,Gk={getConstructor:function(e,t,n,r){var o=e((function(e,o){Bx(e,i),$k(e,{type:t,index:HC(null),first:void 0,last:void 0,size:0}),KE||(e.size=0),null!=o&&Nx(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Vk(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=Uk(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),KE?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=Uk(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return hx(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,KE?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),KE?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=oS(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),hx(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),KE&&Hk(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Vk(t),i=Vk(r);GD(e,t,(function(e,t){$k(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),zO(t)}};Fx("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Gk);var Wk=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function qk(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):md.insertNodes(e,t,{mode:"highest"})}var Kk=function(e){var t=e;return t.setFragmentData=function(e){var n=t.selection;if(n){var r=ux(qf.edges(n),2),o=r[0],i=r[1],a=Nf.void(t,{at:o.path}),u=Nf.void(t,{at:i.path});if(!qf.isCollapsed(n)||a){var s=_N.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=ux(u,1)[0],d=s.cloneRange(),p=_N.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),SN(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var v=t.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",xN(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var n,r,o=e.getData("application/x-slate-fragment");if(o){var i=decodeURIComponent(window.atob(o)),a=JSON.parse(i);t.insertFragment(a)}else{var u=e.getData("text/plain"),s=e.getData("text/html");if(s)t.dangerouslyInsertHtml(s);else{var l=_N.getLeftLengthOfMaxLength(t);if(u){var c=u.split(/\r\n|\r|\n/),f=!1;try{for(var d=ax(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&l>0&&md.splitNodes(t,{always:!0}),t.insertText(h),f=!0}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}}}},t},Yk=function(e){return null!=e},Xk={object:!0,function:!0,undefined:!0},Zk=/^\s*class[\s{/}]/,Jk=Function.prototype.toString,Qk=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!Yk(e)&&hasOwnProperty.call(Xk,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!Zk.test(Jk.call(e))},eB=function(e){return null!=e},tB=Object.keys,nB=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return tB(eB(e)?Object(e):e)},rB=function(e){if(!eB(e))throw new TypeError("Cannot use null or undefined");return e},oB=Math.max,iB=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=oB(arguments.length,2);for(e=Object(rB(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)nB(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},aB=Array.prototype.forEach,uB=Object.create,sB=function(e,t){var n;for(n in e)t[n]=e[n]},lB=function(e){var t=uB(null);return aB.call(arguments,(function(e){eB(e)&&sB(Object(e),t)})),t},cB="razdwatrzy",fB=String.prototype.indexOf,dB="function"==typeof cB.contains&&!0===cB.contains("dwa")&&!1===cB.contains("foo")?String.prototype.contains:function(e){return fB.call(this,e,arguments[1])>-1},pB=iE((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],Yk(e)?(n=dB.call(e,"c"),r=dB.call(e,"e"),o=dB.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?iB(lB(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],Yk(t)?Qk(t)?Yk(n)?Qk(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,Yk(e)?(r=dB.call(e,"c"),o=dB.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?iB(lB(i),a):a}})),hB=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},vB=iE((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return hB(t),h.call(this,"__ee__")?n=this.__ee__:(n=v.value=f(null),d(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return hB(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(hB(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:pB(n),once:pB(r),off:pB(o),emit:pB(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function gB(e){var t=NO.get(e);return null==t&&(t=vB(),NO.set(e,t)),t}var yB=new WeakMap;function mB(e,t){var n=yB.get(e);null==n&&(n=new Set,yB.set(e,n)),n.add(t)}function bB(e){return yB.get(e)||new Set}function EB(e){yB.set(e,new Set)}function wB(e){var t=_N.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function SB(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=wB(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=_N.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function CB(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Cf.isElement(t)&&e.isVoid(t),i=Cf.isElement(t)&&e.isInline(t),a=DO.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(FO.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=wB(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,E={},w=s-g,S=l-y;if("bar"===n)return E.left=S+"px",w>40?E.bottom=b-w+5+"px":E.top=w+c+5+"px",E;if("modal"===n)return o?i?S>(m-f)/2?E.right=m-S+5+"px":E.left=S+f+5+"px":E.left="20px":E.left=S+"px",o?((v=w)<0&&(v=0),E.top=v+"px"):w>(b-c)/2?E.bottom=b-w+5+"px":((v=w+c)<0&&(v=0),E.top=v+5+"px"),E;throw new Error("type '"+n+"' is invalid")}function DB(e,t){hN((function(){var n=wB(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=h+f-a)>0){var E=t.css("left"),w=parseInt(E.toString())-r;w<0&&(w=0),t.css("left",w+"px")}if(v.indexOf("right")>=0&&c<0){var S=t.css("right"),C=parseInt(S.toString())-Math.abs(c);t.css("right",C+"px")}}}))}var AB=aA("slice"),xB=GE("species"),OB=lE.Array,TB=Math.max;cC({target:"Array",proto:!0,forced:!AB},{slice:function(e,t){var n,r,o,i=jS(this),a=pS(i),u=$S(e,a),s=$S(void 0===t?a:t,a);if(hS(i)&&(n=i.constructor,(SS(n)&&(n===OB||hS(n.prototype))||YE(n)&&null===(n=n[xB]))&&(n=void 0),n===OB||void 0===n))return VO(i,u,s);for(r=new(void 0===n?OB:n)(TB(s-u,0)),o=0;u<s;u++,o++)u in i&&uD(r,o,i[u]);return r.length=o,r}});var NB=zS.f,kB=mE("".startsWith),BB=mE("".slice),IB=Math.min,FB=ZC("startsWith"),PB=!FB&&!!function(){var e=NB(String.prototype,"startsWith");return e&&!e.writable}();cC({target:"String",proto:!0,forced:!PB&&!FB},{startsWith:function(e){var t=bC(EE(this));YC(e);var n=dS(IB(arguments.length>1?arguments[1]:void 0,t.length)),r=bC(e);return kB?kB(t,r,n):BB(t,n,n+r.length)===r}});var RB=Object.assign,_B=Object.defineProperty,LB=mE([].concat),jB=!RB||jE((function(){if(KE&&1!==RB({b:1},RB(_B({},"a",{enumerable:!0,get:function(){_B(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=RB({},e)[n]||fC(RB({},t)).join("")!=r}))?function(e,t){for(var n=SE(e),r=arguments.length,o=1,i=JS.f,a=LS.f;r>o;)for(var u,s=uS(arguments[o++]),l=i?LB(fC(s),i(s)):fC(s),c=l.length,f=0;c>f;)u=l[f++],KE&&!ow(a,s,u)||(n[u]=s[u]);return n}:RB;cC({target:"Object",stat:!0,forced:Object.assign!==jB},{assign:jB});var MB=["props","attrs","style","dataset","on","hook"];function zB(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!MB.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Ag(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&zB(e)}))}var HB=[];var UB={};function $B(e,t,n){return Fv(n.isInline(e)?"span":"div",null,t)}function VB(e,t){return void 0===t&&(t=!1),Fv("span",{"data-slate-string":!0},t?e+"\n":e)}function GB(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Fv("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Fv("br",null):null)}function WB(e,t,n,r){return bO.set(e,t),EO.set(e,n),Cf.isElement(e)?function(e,t){var n,r=_N.findKey(t,e),o=t.isInline(e),i=Nf.isVoid(t,e),a=tk(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=function(e){return UB[e]||$B}(s);n=i?null:c.map((function(n,r){return WB(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=ux(Rf.texts(e),1),v=ux(h[0],1)[0],g=Fv(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},WB(v,0,e,t));d=Fv(p,{style:{position:"relative"}},d,g),bO.set(v,0),EO.set(v,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return HB.forEach((function(r){n=r(e,t)})),n}(e,d)),hN((function(){var t=CN(a);null!=t&&(CO.set(r,t),DO.set(e,t),SO.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=_N.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=_N.findPath(n,e),a=o([e,i]),u=ed.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=_N.findPath(o,n),u=Mf.parent(a);if(Nf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?GB(Rf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Nf.string(o,u)?""===i?GB():t&&"\n"===i.slice(-1)?VB(i,!0):VB(i):GB(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return HB.forEach((function(t){n=t(e,n)})),n}(r,i),Fv("span",{"data-slate-leaf":!0},i)})),l=function(e){return"w-e-text-"+e}(r.id),c=Fv("span",{"data-slate-node":"text",id:l,key:r.id},s);return hN((function(){var t=CN(l);null!=t&&(CO.set(r,t),DO.set(e,t),SO.set(t,e))})),c}(e,n,r)}function qB(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),pv("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=WB(e,n,t,t);return zB(r),r}));var c=gO.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return Mp('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=fv([yv,xv,Bv,Ev,Dv,vv]))(n,s),gO.set(e,!1),yO.set(e,p)}else{var d=mO.get(e),p=yO.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=CN(o))){var h;if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var v=(h=n)&&h.ownerDocument&&h.ownerDocument.defaultView||null;v&&xO.set(t,v)}wO.set(t,n),DO.set(t,n),SO.set(n,t),mO.set(e,s)}}function KB(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function YB(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function XB(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return YB(n.overflowY,t)||YB(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function ZB(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function JB(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!KB(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;KB(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&XB(f)&&!XB(document.documentElement)||null!=f&&XB(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,E=g.right,w=g.bottom,S=g.left,C="start"===o||"nearest"===o?b:"end"===o?w:b+y/2,D="center"===i?S+m/2:"end"===i?E:S,A=[],x=0;x<c.length;x++){var O=c[x],T=O.getBoundingClientRect(),N=T.height,k=T.width,B=T.top,I=T.right,F=T.bottom,P=T.left;if("if-needed"===r&&b>=0&&S>=0&&w<=p&&E<=d&&b>=B&&w<=F&&S>=P&&E<=I)return A;var R=getComputedStyle(O),_=parseInt(R.borderLeftWidth,10),L=parseInt(R.borderTopWidth,10),j=parseInt(R.borderRightWidth,10),M=parseInt(R.borderBottomWidth,10),z=0,H=0,U="offsetWidth"in O?O.offsetWidth-O.clientWidth-_-j:0,$="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?C:"end"===o?C-p:"nearest"===o?ZB(v,v+p,p,L,M,v+C,v+C+y,y):C-p/2,H="start"===i?D:"center"===i?D-d/2:"end"===i?D-d:ZB(h,h+d,d,_,j,h+D,h+D+m,m),z=Math.max(0,z+v),H=Math.max(0,H+h);else{z="start"===o?C-B-L:"end"===o?C-F+M+$:"nearest"===o?ZB(B,F,N,L,M+$,C,C+y,y):C-(B+N/2)+$/2,H="start"===i?D-P-_:"center"===i?D-(P+k/2)+U/2:"end"===i?D-I+j+U:ZB(P,I,k,_,j+U,D,D+m,m);var V=O.scrollLeft,G=O.scrollTop;C+=G-(z=Math.max(0,Math.min(G+z,O.scrollHeight-N+$))),D+=V-(H=Math.max(0,Math.min(V+H,O.scrollWidth-k+U)))}A.push({el:O,top:z,left:H})}return A}function QB(e){return e===Object(e)&&0!==Object.keys(e).length}function eI(e,t){return EN(t)&&_N.hasDOMNode(e,t,{editable:!0})}function tI(e,t){if(e.getConfig().readOnly)return!1;var n=nI(e,t)&&_N.toSlateNode(e,t);return Nf.isVoid(e,n)}function nI(e,t){return EN(t)&&_N.hasDOMNode(e,t)}function rI(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=_N.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=wO.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=_N.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&qf.equals(l,r)){var c=!0;if(qf.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||_N.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&_N.toDOMRange(t,r);if(v){qf.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(QB(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:JB(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:QB(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))})(JB(e,r),r.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&kN&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=_N.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var oI=new WeakMap,iI=new WeakMap,aI={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"},uI={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"},sI={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},lI=function(e){var t=aI[e],n=uI[e],r=sI[e],o=t&&Rg(t),i=n&&Rg(n),a=r&&Rg(r);return function(e){return!(!o||!o(e))||!!(NN&&i&&i(e))||!(NN||!a||!a(e))}},cI={isBold:lI("bold"),isCompose:lI("compose"),isMoveBackward:lI("moveBackward"),isMoveForward:lI("moveForward"),isDeleteBackward:lI("deleteBackward"),isDeleteForward:lI("deleteForward"),isDeleteLineBackward:lI("deleteLineBackward"),isDeleteLineForward:lI("deleteLineForward"),isDeleteWordBackward:lI("deleteWordBackward"),isDeleteWordForward:lI("deleteWordForward"),isExtendBackward:lI("extendBackward"),isExtendForward:lI("extendForward"),isExtendLineBackward:lI("extendLineBackward"),isExtendLineForward:lI("extendLineForward"),isItalic:lI("italic"),isMoveLineBackward:lI("moveLineBackward"),isMoveLineForward:lI("moveLineForward"),isMoveWordBackward:lI("moveWordBackward"),isMoveWordForward:lI("moveWordForward"),isRedo:lI("redo"),isSplitBlock:lI("splitBlock"),isTransposeCharacter:lI("transposeCharacter"),isUndo:lI("undo"),isTab:lI("tab"),isSelectAll:lI("selectAll")};function fI(e){e.preventDefault()}var dI={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(RN&&!o&&eI(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=ux(r.getTargetRanges(),1)[0];if(s){var l=_N.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&qf.equals(i,l)||md.select(n,l)}}if(i&&qf.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Nf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Nf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Nf.deleteForward(n);break;case"deleteContentBackward":Nf.deleteBackward(n);break;case"deleteEntireSoftLine":Nf.deleteBackward(n,{unit:"line"}),Nf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Nf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Nf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Nf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Nf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Nf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Nf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Nf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!kO.get(n))break;"[object DataTransfer]"===vN(u)?n.insertData(u):"string"==typeof u&&Nf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&eI(n,r.target)){var a=_N.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===_N.toDOMNode(n,n)||bN(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&EN(u)&&_N.hasDOMNode(n,u)){var s=_N.toSlateNode(n,u);if(Cf.isElement(s)&&!n.isVoid(s))return}if(BN){var l=a.getSelection();null==l||l.removeAllRanges()}OO.delete(n)}}}},focus:function(e,t,n){var r=_N.toDOMNode(n,n),o=_N.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,kN&&e.target!==r?r.focus():OO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&nI(n,e.target)&&EN(e.target)){var r=_N.toSlateNode(n,e.target),o=_N.findPath(n,r);if(Nf.hasPath(n,o)&&Rf.get(n,o)===r){var i=Nf.start(n,o),a=Nf.end(n,o),u=Nf.void(n,{at:i}),s=Nf.void(n,{at:a});if(u&&s&&Mf.equals(u[1],s[1])){var l=Nf.range(n,i);md.select(n,l)}}}},compositionstart:function(e,t,n){if(eI(n,e.target)){var r=n.selection;if(r&&qf.isExpanded(r)&&(Nf.deleteFragment(n),Promise.resolve().then((function(){rI(t,n,!0)}))),r&&(qf.isExpanded(r)||qf.isCollapsed(r))){var o=_N.toDOMRange(n,r).startContainer,i=o.textContent||"";oI.set(n,i),iI.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(eI(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(PN||kN)&&_N.cleanExposedTexNodeInSelectionBlock(n);for(var i=qf.isBackward(o)?o.focus:o.anchor,a=ux(Nf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=ux(Nf.node(n,i.path.slice(0,u+1)),1)[0];if(Cf.isElement(s)&&((BN||kN)&&"link"===s.type||"code"===s.type)){_N.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=_N.getLeftLengthOfMaxLength(n);c<l.length?(_N.toDOMRange(n,o).startContainer.textContent=oI.get(n)||"",c>0&&Nf.insertText(n,l.slice(0,c)),t.changeViewState()):Nf.insertText(n,l)}else{var f=_N.findDocumentOrShadowRoot(n).getSelection();f&&function(e,t){if(qf.isCollapsed(t)){var n=t.anchor,r=t.focus;if(2===n.path.length&&2===r.path.length&&(0===n.offset||0===r.path.offset)){var o=Nf.node(e,n.path),i=0===n.offset?n.path:r.path,a=[i[0],i[1]-1];if(0===i[1])return!1;var u=Nf.node(e,a);if(ed.isText(u[0])&&ed.isText(o[0]))return!0}}}(n,o)&&(n.selection=_N.toSlateRange(n,f,{exactMatch:!1,suppressThrow:!1})),Nf.insertText(n,l)}BN||setTimeout((function(){var e=n.selection;if(null!=e){var t=iI.get(n);null!=t&&_N.toDOMRange(n,e).startContainer!==t&&(t.textContent=oI.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){eI(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&eI(n,r.target)){if(function(e,t){var n=lO.get(e),r=n&&n.getMenus(),o=fO.get(e),i=o&&o.getMenus(),a=ix(ix({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Pg(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),cI.isTab(r))return fI(r),void n.handleTab();if(cI.isRedo(r))return fI(r),void("function"==typeof n.redo&&n.redo());if(cI.isUndo(r))return fI(r),void("function"==typeof n.undo&&n.undo());if(cI.isMoveLineBackward(r))return fI(r),void md.move(n,{unit:"line",reverse:!0});if(cI.isMoveLineForward(r))return fI(r),void md.move(n,{unit:"line"});if(cI.isExtendLineBackward(r))return fI(r),void md.move(n,{unit:"line",edge:"focus",reverse:!0});if(cI.isExtendLineForward(r))return fI(r),void md.move(n,{unit:"line",edge:"focus"});if(cI.isMoveBackward(r))return fI(r),void(o&&qf.isCollapsed(o)?md.move(n,{reverse:!0}):md.collapse(n,{edge:"start"}));if(cI.isMoveForward(r))return fI(r),void(o&&qf.isCollapsed(o)?md.move(n):md.collapse(n,{edge:"end"}));if(cI.isMoveWordBackward(r))return fI(r),o&&qf.isExpanded(o)&&md.collapse(n,{edge:"focus"}),void md.move(n,{unit:"word",reverse:!0});if(cI.isMoveWordForward(r))return fI(r),o&&qf.isExpanded(o)&&md.collapse(n,{edge:"focus"}),void md.move(n,{unit:"word"});if(cI.isSelectAll(r))return fI(r),void n.selectAll();if(RN){if((PN||BN)&&o&&(cI.isDeleteBackward(r)||cI.isDeleteForward(r))&&qf.isCollapsed(o)){var i=Rf.parent(n,o.anchor.path);if(Cf.isElement(i)&&Nf.isVoid(n,i)&&Nf.isInline(n,i))return r.preventDefault(),void md.delete(n,{unit:"block"})}}else{if(cI.isBold(r)||cI.isItalic(r)||cI.isTransposeCharacter(r))return void fI(r);if(cI.isSplitBlock(r))return fI(r),void Nf.insertBreak(n);if(cI.isDeleteBackward(r))return fI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"backward"}):Nf.deleteBackward(n));if(cI.isDeleteForward(r))return fI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"forward"}):Nf.deleteForward(n));if(cI.isDeleteLineBackward(r))return fI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"backward"}):Nf.deleteBackward(n,{unit:"line"}));if(cI.isDeleteLineForward(r))return fI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"forward"}):Nf.deleteForward(n,{unit:"line"}));if(cI.isDeleteWordBackward(r))return fI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"backward"}):Nf.deleteBackward(n,{unit:"word"}));if(cI.isDeleteWordForward(r))return fI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"forward"}):Nf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!RN&&!n.getConfig().readOnly&&eI(n,e.target)){e.preventDefault();var r=e.key;Nf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(eI(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&eI(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(qf.isExpanded(o))Nf.deleteFragment(n);else{var a=Rf.parent(n,o.anchor.path);Nf.isVoid(n,a)&&md.delete(n)}}},paste:function(e,t,n){kO.set(n,!0);var r=e;if(!n.getConfig().readOnly&&eI(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void kO.set(n,!1);if(!RN||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(nI(n,e.target)){var r=_N.toSlateNode(n,e.target);Nf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(nI(n,r.target)&&!n.getConfig().readOnly){var o=_N.toSlateNode(n,r.target),i=_N.findPath(n,o);if(Nf.isVoid(n,o)||Nf.void(n,{at:i,voids:!0})){var a=Nf.range(n,i);md.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&nI(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&nI(n,r.target)&&null!=o&&!(RN&&BN&&o.files.length>0)){r.preventDefault();var i=n.selection,a=_N.findEventRange(n,r);md.select(n,a),t.isDraggingInternally&&(i&&md.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},pI=1,hI=function(){function e(e){var t=this;this.id=pI++,this.$textArea=null,this.$progressBar=Mp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Mp('<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=ev((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=_N.findDocumentOrShadowRoot(t),a=i.activeElement,u=_N.toDOMNode(t,t),s=i.getSelection();if(a!==u)return OO.delete(t),void md.deselect(t);if(e.latestElement=a,OO.set(t,!0),!s)return md.deselect(t);var l=s.anchorNode,c=s.focusNode,f=eI(t,l)||tI(t,l),d=eI(t,c)||tI(t,c);if(f&&d){var p=_N.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});md.select(t,p)}}}(t,e)}),100);var n=Mp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Mp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Mp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,hN((function(){var e=t.editorInstance,o=_N.getWindow(e);o.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){o.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var i=e.getConfig(),a=i.onChange,u=i.scroll;a&&e.on("change",(function(){return a(e)})),u||(n.css("position","relative"),r.addClass("no-scroll")),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=uO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Lh(dI,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",ev((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-_N.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;qB(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=Mp('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),hN((function(){rI(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function vI(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&vI(t)}function gI(){return Mp('<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 yI(){return Mp('<div class="w-e-bar-divider"></div>')}function mI(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=NN?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}_A("match",(function(e,t,n){return[function(t){var n=EE(this),r=null==t?void 0:dw(t,e);return r?ow(r,t,n):new RegExp(t)[e](bC(n))},function(e){var r=nw(this),o=bC(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return qA(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=qA(r,o));){var c=bC(u[0]);s[l]=c,""===c&&(r.lastIndex=jA(o,dS(r.lastIndex),a)),l++}return 0===l?null:s}]}));var bI=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Mp('<div class="w-e-bar-item"></div>'),this.$button=Mp('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=Mp(c);vI(d),f.append(d)}else f.text(a);mI(f,c,a,s,n),n&&c&&f.append(Mp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),hN((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),FI(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=FI(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=FI(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=FI(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),EI=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return ox(t,e),t.prototype.onButtonClick=function(){},t}(bI),wI=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=pO.get(e);null==t&&(t=new Set,pO.set(e,t)),t.add(this),hO.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=hO.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=hO.get(this);e&&e.emit("modalOrPanelHide")}},e}(),SI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Mp('<div class="w-e-drop-panel"></div>'),n}return ox(t,e),t.prototype.genSelfElem=function(){return null},t}(wI),CI=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=gI();o.$button.append(i)}return o}return ox(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=FI(this);if(null==this.dropPanel){var n=new SI(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(bI),DI=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Mp('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return ox(t,e),t.prototype.genSelfElem=function(){var e=this,t=Mp('<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>'),n=hO.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(wI);function AI(e,t,n){var r=Mp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Mp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function xI(e,t,n){var r=Mp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Mp('<textarea type="text" id="'+t+'" placeholder="'+(n||"")+'"></textarea>');return r.append(o),[r[0],o[0]]}function OI(e,t){var n=Mp('<div class="button-container"></div>'),r=Mp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var TI=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Mp("body"),o.modal=null,o.menu=n,o}return ox(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=FI(this),t=this.menu.getModalPositionNode(e);return Cf.isElement(t)?CB(e,t,"modal"):SB(e)},t.prototype.handleModal=function(){var e=FI(this),t=this.menu;if(null==this.modal){var n=new DI(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=FI(this),r=this.menu;if(null!=r.getModalContentElem){var o=_N.getTextarea(n),i=_N.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||DB(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(bI),NI=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Mp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return ox(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Mp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Mp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Mp('<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>');a.append(u),a.addClass("selected")}a.append(Mp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(wI),kI=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Mp('<div class="w-e-bar-item"></div>'),this.$button=Mp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),mI(f,s,i,c,n),this.$elem.append(f),this.menu=t,hN((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),FI(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=FI(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new NI(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Mp(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=FI(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=FI(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=gI();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=FI(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),BI=function(){function e(e){this.$elem=Mp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Mp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Mp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Mp(n);vI(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=gI();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Mp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),II=new WeakMap;function FI(e){var t=dO.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function PI(e,t,n){void 0===n&&(n=!1);var r=II.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new CI(e,t,n):a?new TI(e,t,n):new EI(e,t,n)}if("select"===o&&(r=new kI(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return II.set(t,r),r}function RI(e,t){var n=e.selection;return null!=n&&!qf.isCollapsed(n)&&!_N.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!ed.isText(t)}var _I=function(){function e(){var e=this;this.$elem=Mp('<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=Zg((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&Cf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),hN((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),_N.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.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},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;hN((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=yI();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=MN[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=t.getMenuConfig(e);i&&void 0!==i.iconSvg&&(r.iconSvg=i.iconSvg);var a=PI(e,r);this.hoverbarItems.push(a),dO.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Cf.isElement(e)){var r=CB(t,e,"bar");return n.css(r),void DB(t,n)}if(ed.isText(e))return r=SB(t),n.css(r),void DB(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return _N.checkNodeType(t,o)},c=ux(Nf.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),f=c[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=cO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=RI),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=_N.findPath(null,e),r=_N.findPath(null,t);return Mf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function LI(e,t,n,r){if(bO.set(e,t),EO.set(e,n),Cf.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return LI(t,n,e,r)})),Nf.isVoid(r,e)){var i=ux(Rf.texts(e),1),a=ux(i[0],1)[0];bO.set(a,0),EO.set(a,e)}}}function jI(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];yC.withoutSaving(t,(()=>{Nf.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];yC.withoutSaving(t,(()=>{Nf.withoutNormalizing(t,(()=>{var e=r.map(jf.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),l=yC.isSaving(t),c=yC.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Mf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Mf.equals(e.path,t.path)))(e,u)||s)),a&&c)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=_N.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=_N.getLeftLengthOfMaxLength(t);n<=0||n<Rf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength){if(e.length>0){var n=e[0];if(_N.getLeftLengthOfMaxLength(t)<Rf.string(n).length)return;o([n]);for(var r=1;r<e.length;r++)t.insertNode(e[r])}}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=_N.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===gN.TEXT_NODE?e+(t.textContent||""):n===gN.ELEMENT_NODE?Wk.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=gB(t);if(r.on(e,n),"destroyed"===e&&mB(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),mB(t,o)}},t.once=function(e,n){gB(t).once(e,n)},t.off=function(e,n){gB(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=gB(t);o.emit.apply(o,sx([e],ux(n))),"destroyed"===e&&(bB(t).forEach((function(e){return o.off("destroyed",e)})),EB(t))},t}(function(e){var t=e;return t.select=function(e){md.select(t,e)},t.deselect=function(){var n=t.selection,r=_N.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&md.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||md.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=TO.get(t);null!=e&&(t.focus(),md.select(t,e))},t.getSelectionPosition=function(){return SB(t)},t.getNodePosition=function(e){return CB(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=ux(qf.edges(e),2),r=n[0],o=n[1],i=ux(Nf.edges(t,[]),2),a=i[0],u=i[1];return!(!$f.equals(r,a)||!$f.equals(o,u))},t.selectAll=function(){var e=Nf.start(t,[]),n=Nf.end(t,[]);md.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=ax(Nf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=ux(p.value,2),v=h[0],g=h[1],y=_N.findKey(t,v);f.push([g,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=ax(Nf.levels(t,{at:Mf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var E=ux(b.value,2);v=E[0],g=E[1],y=_N.findKey(t,v),f.push([g,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var w=ax(Nf.levels(t,{at:Mf.common(Mf.parent(e.path),Mf.parent(e.newPath))})),S=w.next();!S.done;S=w.next()){var C=ux(S.value,2);v=C[0],g=C[1],y=_N.findKey(t,v),f.push([g,y])}}catch(e){u={error:e}}finally{try{S&&!S.done&&(s=w.return)&&s.call(w)}finally{if(u)throw u.error}}}o(e);try{for(var D=ax(f),A=D.next();!A.done;A=D.next()){var x=ux(A.value,2);g=x[0],y=x[1],v=ux(Nf.node(t,g),1)[0],AO.set(v,y)}}catch(e){l={error:e}}finally{try{A&&!A.done&&(c=D.return)&&c.call(D)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&qf.isCollapsed(e.selection)){var r=Nf.above(e,{match:function(t){return Nf.isBlock(e,t)},at:e.selection});if(r){var o=ux(r,2)[1],a=Nf.range(e,o,e.selection.anchor),u=function(e,t){var n=Nf.range(e,qf.end(t)),r=Array.from(Nf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(rk(e,Nf.range(e,r[o]),n))return Nf.range(e,r[o],n);if(r.length<2)return Nf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)rk(e,Nf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Nf.range(e,r[i],n)}(t,a);qf.isCollapsed(u)||md.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&TO.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return ek(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Rf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Nf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Nf.nodes(t,{at:[],universal:!0});try{for(var u=ax(a),s=u.next();!s.done;s=u.next()){var l=ux(s.value,1)[0];if(Cf.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=tk(_N.findKey(t,l).id);i.push(ix(ix({},l),{id:c}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Cf.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(ed.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){md.delete(t,{at:{anchor:Nf.start(t,[]),focus:Nf.end(t,[])}}),0===t.children.length&&md.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return _N.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===gN.TEXT_NODE||t===gN.ELEMENT_NODE&&!Wk.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;_N.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e,n){var r=e.nodeType,i=e.nodeName,a=e.textContent,s=void 0===a?"":a;if(r!==gN.TEXT_NODE)if("BR"!==i){var l=e,c=!1;if(ok.includes(i.toLowerCase()))c=!0;else for(var f in uk)if(l.matches(f)){c=!0;break}if(c){var d=jk(Mp(l),t);return Array.isArray(d)?(d.forEach((function(e){return qk(t,e)})),u++):(qk(t,d),u++),void(_N.isSelectedVoidNode(t)&&t.move(1))}var p=window.getComputedStyle(l).display;if(!_N.isSelectedEmptyParagraph(t)&&p.indexOf("inline")<0){if(n>=1){var h=o[n-1];"matches"in h&&h.matches("ul:not([data-w-e-type]),ol:not([data-w-e-type])")&&t.insertBreak()}t.insertBreak()}t.dangerouslyInsertHtml(l.innerHTML,!0)}else t.insertText("\n");else{if(!s||!s.trim())return;t.insertNode({text:s})}})),u&&a&&_N.isEmptyPath(t,a)&&md.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=zk(t,null==e?"":e);if(md.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(Nf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in MN)e.push(t);return e},t.getConfig=function(){var e=vO.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=Kk(Gc());return t.id="wangEditor-"+LN++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(_N.toDOMNode(t,t).focus({preventScroll:!0}),OO.set(t,!0),e){var n=Nf.end(t,[]);md.select(t,n)}else{var r=TO.get(t);r?md.select(t,r):md.select(t,Nf.start(t,[]))}},t.isFocused=function(){return!!OO.get(t)},t.blur=function(){_N.toDOMNode(t,t).blur(),md.deselect(t),OO.set(t,!1)},t.updateView=function(){_N.getTextarea(t).changeViewState();var e=_N.getToolbar(t);e&&e.changeToolbarState();var n=_N.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=_N.getTextarea(t);e.destroy(),aO.delete(t),uO.delete(e);var n=_N.getToolbar(t);n&&(n.destroy(),lO.delete(t),sO.delete(n));var r=_N.getHoverbar(t);r&&(r.destroy(),fO.delete(t),cO.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Mp("#"+e);if(0!==r.length){var o=r[0];if(!_N.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=_N.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||_N.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=pO.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return _N.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=_N.getToolbar(t);n&&(e=n.$box);var r=_N.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=_N.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return _N.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return Mk(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=Jg(jN),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Lh(t,(function(e,t){n[t]=ix(ix({},e),o[t]||{})})),delete e.MENU_CONF,ix({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);vO.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=zk(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),_N.normalizeContent(l),n){var p=new hI(n);aO.set(l,p),uO.set(p,l),p.changeViewState(),hN((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(d).length>0&&(h=new _I,cO.set(h,l),fO.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return LI(e,t,l,l)}));var v=c.onCreated,g=c.onDestroyed;return v&&l.on("created",(function(){return v(l)})),g&&l.on("destroyed",(function(){return g(l)})),hN((function(){return l.emit("created")})),l}var MI=aA("splice"),zI=lE.TypeError,HI=Math.max,UI=Math.min;cC({target:"Array",proto:!0,forced:!MI},{splice:function(e,t){var n,r,o,i,a,u,s=SE(this),l=pS(s),c=$S(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=UI(HI(cS(t),0),l-c)),l+n-r>9007199254740991)throw zI("Maximum allowed length exceeded");for(o=AS(s,r),i=0;i<r;i++)(a=c+i)in s&&uD(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 $I=function(){function e(e,t){var n=this;this.$toolbar=Mp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Zg((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Mp(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),hN((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=Jg(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=yI();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new BI(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof BI,o=this.menus,i=o[e];if(null==i){var a=MN[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=n.getMenuConfig(e);u&&void 0!==u.iconSvg&&(i.iconSvg=u.iconSvg);var s=PI(e,i,r);this.toolbarItems.push(s),dO.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=sO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}();var VI=$w.EXISTS,GI=bw.f,WI=Function.prototype,qI=mE(WI.toString),KI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,YI=mE(KI.exec);function XI(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,v=e.withCredentials,g=void 0!==v&&v,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,E=void 0===b?function(e){return e}:b,w=e.onSuccess,S=void 0===w?function(e,t){}:w,C=e.onError,D=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n)}:C,A=e.onProgress,x=void 0===A?function(e){}:A;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=ux(e.split("#"),2),r=n[0],o=n[1],i=[];Lh(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(O,c));var T=new Im({onBeforeUpload:E,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(rE,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return T.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{S(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}T.removeFile(e.id)})),T.on("progress",(function(e){e<1||x(e)})),T.on("upload-error",(function(e,t,n){try{D(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}T.removeFile(e.id)})),T.on("restriction-failed",(function(e,t){try{D(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}T.removeFile(e.id)})),T}function ZI(e){return ZI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZI(e)}function JI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){JI(e,t,n[t])}))}return e}function eF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nF(e,t,n){return t&&tF(e.prototype,t),n&&tF(e,n),e}function rF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oF(e,t){if(t&&("object"===ZI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rF(e)}function iF(e){return iF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iF(e)}function aF(e,t){return aF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},aF(e,t)}function uF(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&aF(e,t)}KE&&!VI&&GI(WI,"name",{configurable:!0,get:function(){try{return YI(KI,qI(this))[1]}catch(e){return""}}});var sF={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},lF=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};eF(this,e),this.init(t,n)}return nF(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||sF,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,QI({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),cF=function(){function e(){eF(this,e),this.observers={}}return nF(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function fF(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function dF(e){return null==e?"":""+e}function pF(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function hF(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function vF(e,t,n){var r=hF(e,t,Object);r.obj[r.k]=n}function gF(e,t){var n=hF(e,t),r=n.obj,o=n.k;if(r)return r[o]}function yF(e,t,n){var r=gF(e,n);return void 0!==r?r:gF(t,n)}function mF(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):mF(e[r],t[r],n):e[r]=t[r]);return e}function bF(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var EF={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function wF(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return EF[e]})):e}var SF="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function CF(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?CF(s,l,n):void 0}o=o[r[i]]}return o}}var DF=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return eF(this,t),n=oF(this,iF(t).call(this)),SF&&cF.call(rF(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return uF(t,cF),nF(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=gF(this.data,a);return u||!i||"string"!=typeof n?u:CF(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),vF(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=gF(this.data,a)||{};r?mF(u,n,o):u=QI({},u,n),vF(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?QI({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),AF={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},xF={},OF=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return eF(this,t),n=oF(this,iF(t).call(this)),SF&&cF.call(rF(n)),pF(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,rF(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=lF.create("translator"),n}return uF(t,cF),nF(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==ZI(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,v=p&&p.usedKey||u,g=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(E&&h&&w&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.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(v,h,QI({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var S="[object Array]"===y,C=S?[]:{},D=S?g:v;for(var A in h)if(Object.prototype.hasOwnProperty.call(h,A)){var x="".concat(D).concat(i).concat(A);C[A]=this.translate(x,QI({},n,{joinArrays:!1,ns:s})),C[A]===x&&(C[A]=h[A])}h=C}}else if(E&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var O=!1,T=!1,N=void 0!==n.count&&"string"!=typeof n.count,k=t.hasDefaultValue(n),B=N?this.pluralResolver.getSuffix(c,n.count):"",I=n["defaultValue".concat(B)]||n.defaultValue;!this.isValidLookup(h)&&k&&(O=!0,h=I),this.isValidLookup(h)||(T=!0,h=u);var F=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,P=F&&T?void 0:h,R=k&&I!==h&&this.options.updateMissing;if(T||O||R){if(this.logger.log(R?"updateKey":"missingKey",c,l,u,R?I:h),i){var _=this.resolve(u,QI({},n,{keySeparator:!1}));_&&_.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&j&&j[0])for(var M=0;M<j.length;M++)L.push(j[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,R?r:P,R,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,R?r:P,R,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||I)}))})):z(L,u,I))}h=this.extendTranslation(h,e,n,p,r),T&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(T||O)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(QI({},n,{interpolation:QI({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=QI({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=AF.handle(d,e,t,this.options&&this.options.postProcessPassResolved?QI({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!xF["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(xF["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" 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!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function TF(e){return e.charAt(0).toUpperCase()+e.slice(1)}var NF=function(){function e(t){eF(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=lF.create("languageUtils")}return nF(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=TF(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=TF(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=TF(n[2].toLowerCase()))),n.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("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),kF=[{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}],BF={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function IF(){var e={};return kF.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:BF[t.fc]}}))})),e}var FF=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};eF(this,e),this.languageUtils=t,this.options=n,this.logger=lF.create("pluralResolver"),this.rules=IF()}return nF(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),PF=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eF(this,e),this.logger=lF.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return nF(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:wF,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?bF(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?bF(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?bF(t.nestingPrefix):t.nestingPrefixEscaped||bF("$t("),this.nestingSuffix=t.nestingSuffix?bF(t.nestingSuffix):t.nestingSuffixEscaped||bF(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.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 t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=yF(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,QI({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(yF(t,s,a),l,n,QI({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=dF(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=QI({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=QI({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=dF(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,QI({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),RF=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return eF(this,t),o=oF(this,iF(t).call(this)),SF&&cF.call(rF(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=lF.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return uF(t,cF),nF(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=hF(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=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."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" 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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,QI({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function _F(){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(e){var t={};if("object"===ZI(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===ZI(e[2])||"object"===ZI(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function LF(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function jF(){}var MF=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(eF(this,t),e=oF(this,iF(t).call(this)),SF&&cF.call(rF(e)),e.options=LF(n),e.services={},e.logger=lF,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),oF(e,rF(e));setTimeout((function(){e.init(n,r)}),0)}return e}return uF(t,cF),nF(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.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=QI({},_F(),this.options,LF(t)),this.format=this.options.interpolation.format,n||(n=jF),!this.options.isClone){this.modules.logger?lF.init(r(this.modules.logger),this.options):lF.init(null,this.options);var o=new NF(this.options);this.store=new DF(this.options.resources,this.options);var i=this.services;i.logger=lF,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new FF(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new PF(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new RF(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new OF(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=fF(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jF,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=fF();return e||(e=this.languages),t||(t=this.options.ns),n||(n=jF),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&AF.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=fF();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==ZI(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=QI({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?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 r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=fF();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=fF();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["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(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jF,o=QI({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=QI({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new OF(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),zF=new MF,HF="translation";function UF(e,t){zF.addResourceBundle(e,HF,t,!0,!0)}function $F(e){zF.changeLanguage(e)}function VF(e){return zF.getResourceBundle(e,HF)}zF.init({lng:"zh-CN",resources:{}});var GF=zF.t.bind(zF);UF("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),UF("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var WF=ea?{}.toString:function(){return"[object "+oa(this)+"]"};ea||wi(Object.prototype,"toString",WF,{unsafe:!0});var qF=Array.isArray||function(e){return"Array"==Ur(e)},KF=function(){},YF=[],XF=Jr("Reflect","construct"),ZF=/^\s*(?:class|function)\b/,JF=Mr(ZF.exec),QF=!ZF.exec(KF),eP=function(e){if(!Yr(e))return!1;try{return XF(KF,YF,e),!0}catch(e){return!1}},tP=!XF||xr((function(){var e;return eP(eP.call)||!eP(Object)||!eP((function(){e=!0}))||e}))?function(e){if(!Yr(e))return!1;switch(oa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return QF||!!JF(ZF,ri(e))}:eP,nP=Fo("species"),rP=Ar.Array,oP=function(e,t){return new(function(e){var t;return qF(e)&&(t=e.constructor,(tP(t)&&(t===rP||qF(t.prototype))||Xr(t)&&null===(t=t[nP]))&&(t=void 0)),void 0===t?rP:t}(e))(0===t?0:t)},iP=Mr([].push),aP=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=So(s),v=Gr(h),g=yu(l,c),y=ki(v),m=0,b=f||oP,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:iP(E,d)}else switch(e){case 4:return!1;case 7:iP(E,d)}return i?-1:r||o?o:E}},uP={forEach:aP(0),map:aP(1),filter:aP(2),some:aP(3),every:aP(4),find:aP(5),findIndex:aP(6),filterReject:aP(7)}.forEach,sP=function(e,t){var n=[][e];return!!n&&xr((function(){n.call(null,t||function(){throw 1},1)}))}("forEach"),lP=sP?[].forEach:function(e){return uP(this,e,arguments.length>1?arguments[1]:void 0)},cP=function(e){if(e&&e.forEach!==lP)try{Jo(e,"forEach",lP)}catch(t){e.forEach=lP}};for(var fP in fs)fs[fP]&&cP(Ar[fP]&&Ar[fP].prototype);cP(hs),UF("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",editSize:"Edit size",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link",ok:"Ok",width:"Width",height:"Height"},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"}}),UF("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",editSize:"修改尺寸",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接",ok:"确定",width:"宽度",height:"高度"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var dP={type:"paragraph",renderElem:function(e,t,n){return Fv("p",null,t)}},pP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function hP(e){var t={exports:{}};return e(t,t.exports),t.exports}var vP,gP,yP=function(e){return e&&e.Math==Math&&e},mP=yP("object"==typeof globalThis&&globalThis)||yP("object"==typeof window&&window)||yP("object"==typeof self&&self)||yP("object"==typeof pP&&pP)||function(){return this}()||Function("return this")(),bP=function(e){try{return!!e()}catch(e){return!0}},EP=!bP((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),wP=Function.prototype.call,SP=wP.bind?wP.bind(wP):function(){return wP.apply(wP,arguments)},CP={}.propertyIsEnumerable,DP=Object.getOwnPropertyDescriptor,AP=DP&&!CP.call({1:2},1)?function(e){var t=DP(this,e);return!!t&&t.enumerable}:CP,xP={f:AP},OP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},TP=Function.prototype,NP=TP.bind,kP=TP.call,BP=NP&&NP.bind(kP),IP=NP?function(e){return e&&BP(kP,e)}:function(e){return e&&function(){return kP.apply(e,arguments)}},FP=IP({}.toString),PP=IP("".slice),RP=function(e){return PP(FP(e),8,-1)},_P=mP.Object,LP=IP("".split),jP=bP((function(){return!_P("z").propertyIsEnumerable(0)}))?function(e){return"String"==RP(e)?LP(e,""):_P(e)}:_P,MP=mP.TypeError,zP=function(e){if(null==e)throw MP("Can't call method on "+e);return e},HP=function(e){return jP(zP(e))},UP=function(e){return"function"==typeof e},$P=function(e){return"object"==typeof e?null!==e:UP(e)},VP=function(e){return UP(e)?e:void 0},GP=function(e,t){return arguments.length<2?VP(mP[e]):mP[e]&&mP[e][t]},WP=IP({}.isPrototypeOf),qP=GP("navigator","userAgent")||"",KP=mP.process,YP=mP.Deno,XP=KP&&KP.versions||YP&&YP.version,ZP=XP&&XP.v8;ZP&&(gP=(vP=ZP.split("."))[0]>0&&vP[0]<4?1:+(vP[0]+vP[1])),!gP&&qP&&(!(vP=qP.match(/Edge\/(\d+)/))||vP[1]>=74)&&(vP=qP.match(/Chrome\/(\d+)/))&&(gP=+vP[1]);var JP=gP,QP=!!Object.getOwnPropertySymbols&&!bP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&JP&&JP<41})),eR=QP&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tR=mP.Object,nR=eR?function(e){return"symbol"==typeof e}:function(e){var t=GP("Symbol");return UP(t)&&WP(t.prototype,tR(e))},rR=mP.String,oR=function(e){try{return rR(e)}catch(e){return"Object"}},iR=mP.TypeError,aR=function(e){if(UP(e))return e;throw iR(oR(e)+" is not a function")},uR=function(e,t){var n=e[t];return null==n?void 0:aR(n)},sR=mP.TypeError,lR=Object.defineProperty,cR=function(e,t){try{lR(mP,e,{value:t,configurable:!0,writable:!0})}catch(n){mP[e]=t}return t},fR=mP["__core-js_shared__"]||cR("__core-js_shared__",{}),dR=hP((function(e){(e.exports=function(e,t){return fR[e]||(fR[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),pR=mP.Object,hR=function(e){return pR(zP(e))},vR=IP({}.hasOwnProperty),gR=Object.hasOwn||function(e,t){return vR(hR(e),t)},yR=0,mR=Math.random(),bR=IP(1..toString),ER=function(e){return"Symbol("+(void 0===e?"":e)+")_"+bR(++yR+mR,36)},wR=dR("wks"),SR=mP.Symbol,CR=SR&&SR.for,DR=eR?SR:SR&&SR.withoutSetter||ER,AR=function(e){if(!gR(wR,e)||!QP&&"string"!=typeof wR[e]){var t="Symbol."+e;QP&&gR(SR,e)?wR[e]=SR[e]:wR[e]=eR&&CR?CR(t):DR(t)}return wR[e]},xR=mP.TypeError,OR=AR("toPrimitive"),TR=function(e){var t=function(e,t){if(!$P(e)||nR(e))return e;var n,r=uR(e,OR);if(r){if(void 0===t&&(t="default"),n=SP(r,e,t),!$P(n)||nR(n))return n;throw xR("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&UP(n=e.toString)&&!$P(r=SP(n,e)))return r;if(UP(n=e.valueOf)&&!$P(r=SP(n,e)))return r;if("string"!==t&&UP(n=e.toString)&&!$P(r=SP(n,e)))return r;throw sR("Can't convert object to primitive value")}(e,t)}(e,"string");return nR(t)?t:t+""},NR=mP.document,kR=$P(NR)&&$P(NR.createElement),BR=function(e){return kR?NR.createElement(e):{}},IR=!EP&&!bP((function(){return 7!=Object.defineProperty(BR("div"),"a",{get:function(){return 7}}).a})),FR=Object.getOwnPropertyDescriptor,PR={f:EP?FR:function(e,t){if(e=HP(e),t=TR(t),IR)try{return FR(e,t)}catch(e){}if(gR(e,t))return OP(!SP(xP.f,e,t),e[t])}},RR=mP.String,_R=mP.TypeError,LR=function(e){if($P(e))return e;throw _R(RR(e)+" is not an object")},jR=mP.TypeError,MR=Object.defineProperty,zR={f:EP?MR:function(e,t,n){if(LR(e),t=TR(t),LR(n),IR)try{return MR(e,t,n)}catch(e){}if("get"in n||"set"in n)throw jR("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},HR=EP?function(e,t,n){return zR.f(e,t,OP(1,n))}:function(e,t,n){return e[t]=n,e},UR=IP(Function.toString);UP(fR.inspectSource)||(fR.inspectSource=function(e){return UR(e)});var $R,VR,GR,WR=fR.inspectSource,qR=mP.WeakMap,KR=UP(qR)&&/native code/.test(WR(qR)),YR=dR("keys"),XR=function(e){return YR[e]||(YR[e]=ER(e))},ZR={},JR=mP.TypeError,QR=mP.WeakMap;if(KR||fR.state){var e_=fR.state||(fR.state=new QR),t_=IP(e_.get),n_=IP(e_.has),r_=IP(e_.set);$R=function(e,t){if(n_(e_,e))throw new JR("Object already initialized");return t.facade=e,r_(e_,e,t),t},VR=function(e){return t_(e_,e)||{}},GR=function(e){return n_(e_,e)}}else{var o_=XR("state");ZR[o_]=!0,$R=function(e,t){if(gR(e,o_))throw new JR("Object already initialized");return t.facade=e,HR(e,o_,t),t},VR=function(e){return gR(e,o_)?e[o_]:{}},GR=function(e){return gR(e,o_)}}var i_={set:$R,get:VR,has:GR,enforce:function(e){return GR(e)?VR(e):$R(e,{})},getterFor:function(e){return function(t){var n;if(!$P(t)||(n=VR(t)).type!==e)throw JR("Incompatible receiver, "+e+" required");return n}}},a_=Function.prototype,u_=EP&&Object.getOwnPropertyDescriptor,s_=gR(a_,"name"),l_={EXISTS:s_,PROPER:s_&&"something"===function(){}.name,CONFIGURABLE:s_&&(!EP||EP&&u_(a_,"name").configurable)},c_=hP((function(e){var t=l_.CONFIGURABLE,n=i_.get,r=i_.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;UP(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!gR(i,"name")||t&&i.name!==f)&&HR(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==mP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:HR(e,n,i)):l?e[n]=i:cR(n,i)})(Function.prototype,"toString",(function(){return UP(this)&&n(this).source||WR(this)}))})),f_=Math.ceil,d_=Math.floor,p_=function(e){var t=+e;return t!=t||0===t?0:(t>0?d_:f_)(t)},h_=Math.max,v_=Math.min,g_=function(e,t){var n=p_(e);return n<0?h_(n+t,0):v_(n,t)},y_=Math.min,m_=function(e){return e>0?y_(p_(e),9007199254740991):0},b_=function(e){return m_(e.length)},E_=function(e){return function(t,n,r){var o,i=HP(t),a=b_(i),u=g_(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},w_={includes:E_(!0),indexOf:E_(!1)},S_=w_.indexOf,C_=IP([].push),D_=function(e,t){var n,r=HP(e),o=0,i=[];for(n in r)!gR(ZR,n)&&gR(r,n)&&C_(i,n);for(;t.length>o;)gR(r,n=t[o++])&&(~S_(i,n)||C_(i,n));return i},A_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],x_=A_.concat("length","prototype"),O_={f:Object.getOwnPropertyNames||function(e){return D_(e,x_)}},T_={f:Object.getOwnPropertySymbols},N_=IP([].concat),k_=GP("Reflect","ownKeys")||function(e){var t=O_.f(LR(e)),n=T_.f;return n?N_(t,n(e)):t},B_=function(e,t){for(var n=k_(t),r=zR.f,o=PR.f,i=0;i<n.length;i++){var a=n[i];gR(e,a)||r(e,a,o(t,a))}},I_=/#|\.prototype\./,F_=function(e,t){var n=R_[P_(e)];return n==L_||n!=__&&(UP(t)?bP(t):!!t)},P_=F_.normalize=function(e){return String(e).replace(I_,".").toLowerCase()},R_=F_.data={},__=F_.NATIVE="N",L_=F_.POLYFILL="P",j_=F_,M_=PR.f,z_=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?mP:l?mP[u]||cR(u,{}):(mP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=M_(n,r))&&a.value:n[r],!j_(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;B_(i,o)}(e.sham||o&&o.sham)&&HR(i,"sham",!0),c_(n,r,i,e)}},H_=IP(IP.bind),U_=Array.isArray||function(e){return"Array"==RP(e)},$_={};$_[AR("toStringTag")]="z";var V_="[object z]"===String($_),G_=AR("toStringTag"),W_=mP.Object,q_="Arguments"==RP(function(){return arguments}()),K_=V_?RP:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=W_(e),G_))?n:q_?RP(t):"Object"==(r=RP(t))&&UP(t.callee)?"Arguments":r},Y_=function(){},X_=[],Z_=GP("Reflect","construct"),J_=/^\s*(?:class|function)\b/,Q_=IP(J_.exec),eL=!J_.exec(Y_),tL=function(e){if(!UP(e))return!1;try{return Z_(Y_,X_,e),!0}catch(e){return!1}},nL=!Z_||bP((function(){var e;return tL(tL.call)||!tL(Object)||!tL((function(){e=!0}))||e}))?function(e){if(!UP(e))return!1;switch(K_(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return eL||!!Q_(J_,WR(e))}:tL,rL=AR("species"),oL=mP.Array,iL=function(e,t){return new(function(e){var t;return U_(e)&&(t=e.constructor,(nL(t)&&(t===oL||U_(t.prototype))||$P(t)&&null===(t=t[rL]))&&(t=void 0)),void 0===t?oL:t}(e))(0===t?0:t)},aL=IP([].push),uL=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=hR(s),v=jP(h),g=function(e,t){return aR(e),void 0===t?e:H_?H_(e,t):function(){return e.apply(t,arguments)}}(l,c),y=b_(v),m=0,b=f||iL,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:aL(E,d)}else switch(e){case 4:return!1;case 7:aL(E,d)}return i?-1:r||o?o:E}},sL={forEach:uL(0),map:uL(1),filter:uL(2),some:uL(3),every:uL(4),find:uL(5),findIndex:uL(6),filterReject:uL(7)},lL=AR("species"),cL=function(e){return JP>=51||!bP((function(){var t=[];return(t.constructor={})[lL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},fL=sL.filter;z_({target:"Array",proto:!0,forced:!cL("filter")},{filter:function(e){return fL(this,e,arguments.length>1?arguments[1]:void 0)}});var dL=V_?{}.toString:function(){return"[object "+K_(this)+"]"};V_||c_(Object.prototype,"toString",dL,{unsafe:!0});var pL,hL=mP.String,vL=function(e){if("Symbol"===K_(e))throw TypeError("Cannot convert a Symbol value to a string");return hL(e)},gL=function(){var e=LR(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},yL=mP.RegExp,mL=bP((function(){var e=yL("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),bL=mL||bP((function(){return!yL("a","y").sticky})),EL={BROKEN_CARET:mL||bP((function(){var e=yL("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:bL,UNSUPPORTED_Y:mL},wL=Object.keys||function(e){return D_(e,A_)},SL=EP?Object.defineProperties:function(e,t){LR(e);for(var n,r=HP(t),o=wL(t),i=o.length,a=0;i>a;)zR.f(e,n=o[a++],r[n]);return e},CL=GP("document","documentElement"),DL=XR("IE_PROTO"),AL=function(){},xL=function(e){return"<script>"+e+"<\/script>"},OL=function(e){e.write(xL("")),e.close();var t=e.parentWindow.Object;return e=null,t},TL=function(){try{pL=new ActiveXObject("htmlfile")}catch(e){}var e,t;TL="undefined"!=typeof document?document.domain&&pL?OL(pL):((t=BR("iframe")).style.display="none",CL.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(xL("document.F=Object")),e.close(),e.F):OL(pL);for(var n=A_.length;n--;)delete TL.prototype[A_[n]];return TL()};ZR[DL]=!0;var NL,kL,BL=Object.create||function(e,t){var n;return null!==e?(AL.prototype=LR(e),n=new AL,AL.prototype=null,n[DL]=e):n=TL(),void 0===t?n:SL(n,t)},IL=mP.RegExp,FL=bP((function(){var e=IL(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),PL=mP.RegExp,RL=bP((function(){var e=PL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),_L=i_.get,LL=dR("native-string-replace",String.prototype.replace),jL=RegExp.prototype.exec,ML=jL,zL=IP("".charAt),HL=IP("".indexOf),UL=IP("".replace),$L=IP("".slice),VL=(kL=/b*/g,SP(jL,NL=/a/,"a"),SP(jL,kL,"a"),0!==NL.lastIndex||0!==kL.lastIndex),GL=EL.BROKEN_CARET,WL=void 0!==/()??/.exec("")[1];(VL||WL||GL||FL||RL)&&(ML=function(e){var t,n,r,o,i,a,u,s=this,l=_L(s),c=vL(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=SP(ML,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=GL&&s.sticky,h=SP(gL,s),v=s.source,g=0,y=c;if(p&&(h=UL(h,"y",""),-1===HL(h,"g")&&(h+="g"),y=$L(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==zL(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),WL&&(n=new RegExp("^"+v+"$(?!\\s)",h)),VL&&(r=s.lastIndex),o=SP(jL,p?n:s,y),p?o?(o.input=$L(o.input,g),o[0]=$L(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:VL&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),WL&&o&&o.length>1&&SP(LL,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=BL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var qL=ML;z_({target:"RegExp",proto:!0,forced:/./.exec!==qL},{exec:qL});var KL=Function.prototype,YL=KL.apply,XL=KL.bind,ZL=KL.call,JL="object"==typeof Reflect&&Reflect.apply||(XL?ZL.bind(YL):function(){return ZL.apply(YL,arguments)}),QL=AR("species"),ej=RegExp.prototype,tj=function(e,t,n,r){var o=AR(e),i=!bP((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!bP((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[QL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=IP(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=IP(e),s=t.exec;return s===qL||s===ej.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));c_(String.prototype,e,s[0]),c_(ej,o,s[1])}r&&HR(ej[o],"sham",!0)},nj=IP("".charAt),rj=IP("".charCodeAt),oj=IP("".slice),ij=function(e){return function(t,n){var r,o,i=vL(zP(t)),a=p_(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=rj(i,a))<55296||r>56319||a+1===u||(o=rj(i,a+1))<56320||o>57343?e?nj(i,a):r:e?oj(i,a,a+2):o-56320+(r-55296<<10)+65536}},aj=(ij(!1),ij(!0)),uj=function(e,t,n){return t+(n?aj(e,t).length:1)},sj=Math.floor,lj=IP("".charAt),cj=IP("".replace),fj=IP("".slice),dj=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,pj=/\$([$&'`]|\d{1,2})/g,hj=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=pj;return void 0!==o&&(o=hR(o),s=dj),cj(i,s,(function(i,s){var l;switch(lj(s,0)){case"$":return"$";case"&":return e;case"`":return fj(t,0,n);case"'":return fj(t,a);case"<":l=o[fj(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=sj(c/10);return 0===f?i:f<=u?void 0===r[f-1]?lj(s,1):r[f-1]+lj(s,1):i}l=r[c-1]}return void 0===l?"":l}))},vj=mP.TypeError,gj=function(e,t){var n=e.exec;if(UP(n)){var r=SP(n,e,t);return null!==r&&LR(r),r}if("RegExp"===RP(e))return SP(qL,e,t);throw vj("RegExp#exec called on incompatible receiver")},yj=AR("replace"),mj=Math.max,bj=Math.min,Ej=IP([].concat),wj=IP([].push),Sj=IP("".indexOf),Cj=IP("".slice),Dj="$0"==="a".replace(/./,"$0"),Aj=!!/./[yj]&&""===/./[yj]("a","$0");tj("replace",(function(e,t,n){var r=Aj?"$":"$0";return[function(e,n){var r=zP(this),o=null==e?void 0:uR(e,yj);return o?SP(o,e,r,n):SP(t,vL(r),e,n)},function(e,o){var i=LR(this),a=vL(e);if("string"==typeof o&&-1===Sj(o,r)&&-1===Sj(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=UP(o);s||(o=vL(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=gj(i,a);if(null===d)break;if(wj(f,d),!l)break;""===vL(d[0])&&(i.lastIndex=uj(a,m_(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=vL((d=f[g])[0]),m=mj(bj(p_(d.index),a.length),0),b=[],E=1;E<d.length;E++)wj(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=Ej([y],b,m,a);void 0!==w&&wj(S,w);var C=vL(JL(o,void 0,S))}else C=hj(y,a,m,b,w,o);m>=v&&(h+=Cj(a,v,m)+C,v=m+y.length)}return h+Cj(a,v)}]}),!!bP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Dj||Aj);var xj=AR("unscopables"),Oj=Array.prototype;null==Oj[xj]&&zR.f(Oj,xj,{configurable:!0,value:BL(null)});var Tj=function(e){Oj[xj][e]=!0},Nj=sL.find,kj=!0;"find"in[]&&Array(1).find((function(){kj=!1})),z_({target:"Array",proto:!0,forced:kj},{find:function(e){return Nj(this,e,arguments.length>1?arguments[1]:void 0)}}),Tj("find");var Bj=AR("match"),Ij=function(e){var t;return $P(e)&&(void 0!==(t=e[Bj])?!!t:"RegExp"==RP(e))},Fj=mP.TypeError,Pj=AR("species"),Rj=function(e,t,n){var r=TR(t);r in e?zR.f(e,r,OP(0,n)):e[r]=n},_j=mP.Array,Lj=Math.max,jj=function(e,t,n){for(var r=b_(e),o=g_(t,r),i=g_(void 0===n?r:n,r),a=_j(Lj(i-o,0)),u=0;o<i;o++,u++)Rj(a,u,e[o]);return a.length=u,a},Mj=EL.UNSUPPORTED_Y,zj=Math.min,Hj=[].push,Uj=IP(/./.exec),$j=IP(Hj),Vj=IP("".slice);tj("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=vL(zP(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!Ij(e))return SP(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=SP(qL,f,r))&&!((a=f.lastIndex)>c&&($j(s,Vj(r,c,i.index)),i.length>1&&i.index<r.length&&JL(Hj,s,jj(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&Uj(f,"")||$j(s,""):$j(s,Vj(r,c)),s.length>o?jj(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:SP(t,this,e,n)}:t,[function(t,n){var o=zP(this),i=null==t?void 0:uR(t,e);return i?SP(i,t,o,n):SP(r,vL(o),t,n)},function(e,o){var i=LR(this),a=vL(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=LR(e).constructor;return void 0===r||null==(n=LR(r)[Pj])?t:function(e){if(nL(e))return e;throw Fj(oR(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Mj?"g":"y"),f=new s(Mj?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===gj(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Mj?0:h;var g,y=gj(f,Mj?Vj(a,h):a);if(null===y||(g=zj(m_(f.lastIndex+(Mj?h:0)),a.length))===p)h=uj(a,h,l);else{if($j(v,Vj(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if($j(v,y[m]),v.length===d)return v;h=p=g}}return $j(v,Vj(a,p)),v}]}),!!bP((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Mj);var Gj="\t\n\v\f\r \u2028\u2029\ufeff",Wj=IP("".replace),qj="["+Gj+"]",Kj=RegExp("^"+qj+qj+"*"),Yj=RegExp(qj+qj+"*$"),Xj=function(e){return function(t){var n=vL(zP(t));return 1&e&&(n=Wj(n,Kj,"")),2&e&&(n=Wj(n,Yj,"")),n}},Zj={start:Xj(1),end:Xj(2),trim:Xj(3)},Jj=l_.PROPER,Qj=Zj.trim;function eM(e){return 0===Mp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function tM(e){return 0===e.length?"":e[0].outerHTML}function nM(e){return e.length?e[0].tagName.toLowerCase():""}function rM(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}z_({target:"String",proto:!0,forced:("trim",bP((function(){return!!Gj.trim()||"
"!=="
".trim()||Jj&&"trim"!==Gj.trim.name})))},{trim:function(){return Qj(this)}}),z_({global:!0},{globalThis:mP}),eh&&(Mp.fn.css=eh),ah&&(Mp.fn.append=ah),uh&&(Mp.fn.prepend=uh),zp&&(Mp.fn.addClass=zp),Hp&&(Mp.fn.removeClass=Hp),Up&&(Mp.fn.hasClass=Up),qp&&(Mp.fn.on=qp),Kp&&(Mp.fn.off=Kp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Vp&&(Mp.fn.removeAttr=Vp),Jp&&(Mp.fn.hide=Jp),Qp&&(Mp.fn.show=Qp),lh&&(Mp.fn.parents=lh),Gp&&(Mp.fn.dataset=Gp),Wp&&(Mp.fn.val=Wp),oh&&(Mp.fn.text=oh),rh&&(Mp.fn.html=rh),fh&&(Mp.fn.children=fh),dh&&(Mp.fn.remove=dh),ch&&(Mp.fn.find=ch),Yp&&(Mp.fn.width=Yp),Xp&&(Mp.fn.height=Xp),nh&&(Mp.fn.filter=nh),ph&&(Mp.fn.empty=ph);var oM={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},iM=function(e,t){return iM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},iM(e,t)};function aM(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}iM(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var uM=function(){return uM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},uM.apply(this,arguments)};function sM(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function lM(e,t){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)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function cM(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function fM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function dM(e){var t=fM(Nf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Cf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Rf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!ed.isText(o[0])&&(md.setNodes(e,{type:"paragraph"}),!0)}"function"==typeof SuppressedError&&SuppressedError;var pM={renderElems:[dP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[oM],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){dM(r)||t(e)},r.deleteForward=function(e){dM(r)||n(e)},r}},hM=/"/g,vM=IP("".replace),gM=function(e,t,n,r){var o=vL(zP(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+vM(vL(r),hM,""")+'"'),i+">"+o+"</"+t+">"},yM=function(e){return bP((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function mM(e,t){var n=t,r=e,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 bM(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}z_({target:"String",proto:!0,forced:yM("bold")},{bold:function(){return gM(this,"b","","")}}),z_({target:"String",proto:!0,forced:yM("italics")},{italics:function(){return gM(this,"i","","")}}),z_({target:"String",proto:!0,forced:yM("sub")},{sub:function(){return gM(this,"sub","","")}}),z_({target:"String",proto:!0,forced:yM("sup")},{sup:function(){return gM(this,"sup","","")}});var EM={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},wM=BR("span").classList,SM=wM&&wM.constructor&&wM.constructor.prototype,CM=SM===Object.prototype?void 0:SM,DM=function(e,t){var n=[][e];return!!n&&bP((function(){n.call(null,t||function(){throw 1},1)}))},AM=sL.forEach,xM=DM("forEach")?[].forEach:function(e){return AM(this,e,arguments.length>1?arguments[1]:void 0)},OM=function(e){if(e&&e.forEach!==xM)try{HR(e,"forEach",xM)}catch(t){e.forEach=xM}};for(var TM in EM)EM[TM]&&OM(mP[TM]&&mP[TM].prototype);function NM(e,t){return null==e.selection||!!fM(Nf.nodes(e,{match:function(t){return"pre"===_N.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0]}function kM(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Nf.removeMark(e,t)}))}OM(CM),z_({target:"Object",stat:!0,forced:bP((function(){wL(1)}))},{keys:function(e){return wL(hR(e))}});var BM=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Nf.marks(e);return n?n[t]:!!fM(Nf.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return NM(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),IM='<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>',FM='<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>',PM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',RM='<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>',_M='<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>',LM='<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>',jM='<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>',MM='<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>',zM='<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>',HM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',UM='<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>',$M='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',VM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',GM='<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>',WM='<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>',qM='<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>',KM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',YM='<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>',XM='<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>',ZM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=GF("textStyle.bold"),t.iconSvg=IM,t.hotkey="mod+b",t}return aM(t,e),t}(BM),JM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=GF("textStyle.code"),t.iconSvg=_M,t.hotkey="mod+e",t}return aM(t,e),t}(BM),QM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=GF("textStyle.italic"),t.iconSvg=PM,t.hotkey="mod+i",t}return aM(t,e),t}(BM),ez=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=GF("textStyle.through"),t.iconSvg=RM,t.hotkey="mod+shift+x",t}return aM(t,e),t}(BM),tz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=GF("textStyle.underline"),t.iconSvg=FM,t.hotkey="mod+u",t}return aM(t,e),t}(BM),nz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=GF("textStyle.sub"),t.iconSvg=XM,t.hotkey="",t}return aM(t,e),t}(BM),rz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=GF("textStyle.sup"),t.iconSvg=YM,t.hotkey="",t}return aM(t,e),t}(BM),oz=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return NM(e)},e.prototype.exec=function(e,t){var n,r,o=Nf.nodes(e,{match:function(e){return ed.isText(e)},universal:!0});try{for(var i=cM(o),a=i.next();!a.done;a=i.next())kM(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),iz={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=Fv("strong",null,c)),a&&(c=Fv("code",null,c)),o&&(c=Fv("em",null,c)),i&&(c=Fv("u",null,c)),u&&(c=Fv("s",null,c)),s&&(c=Fv("sub",null,c)),l&&(c=Fv("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new ZM}},{key:"underline",factory:function(){return new tz}},{key:"italic",factory:function(){return new QM}},{key:"through",factory:function(){return new ez}},{key:"code",factory:function(){return new JM}},{key:"sub",factory:function(){return new nz}},{key:"sup",factory:function(){return new rz}},{key:"clearStyle",factory:function(){return new oz}}],styleToHtml:function(e,t){if(!ed.isText(e))return t;if(eM(t))return mM(e,t);var n=Mp(t);if("br"===nM(n))return mM(e,"<br>");var r=n.html();return r=mM(e,r),n.html(r),tM(n)},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!ed.isText(t))return t;var o=t;return bM(r,"b,strong")&&(o.bold=!0),bM(r,"i,em")&&(o.italic=!0),bM(r,"u")&&(o.underline=!0),bM(r,"s,strike")&&(o.through=!0),bM(r,"sub")&&(o.sub=!0),bM(r,"sup")&&(o.sup=!0),bM(r,"code")&&(o.code=!0),o}};function az(e){return function(t,n,r){return Fv("h"+e,null,n)}}var uz={type:"header1",renderElem:az(1)},sz={type:"header2",renderElem:az(2)},lz={type:"header3",renderElem:az(3)},cz={type:"header4",renderElem:az(4)},fz={type:"header5",renderElem:az(5)},dz=l_.PROPER,pz=RegExp.prototype,hz=pz.toString,vz=IP(gL),gz=bP((function(){return"/a/b"!=hz.call({source:"a",flags:"b"})})),yz=dz&&"toString"!=hz.name;(gz||yz)&&c_(RegExp.prototype,"toString",(function(){var e=LR(this),t=vL(e.source),n=e.flags;return"/"+t+"/"+vL(void 0===n&&WP(pz,e)&&!("flags"in pz)?vz(e):n)}),{unsafe:!0});var mz,bz=mP.TypeError,Ez=function(e){if(Ij(e))throw bz("The method doesn't accept regular expressions");return e},wz=AR("match"),Sz=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[wz]=!1,"/./"[e](t)}catch(e){}}return!1},Cz=PR.f,Dz=IP("".startsWith),Az=IP("".slice),xz=Math.min,Oz=Sz("startsWith");function Tz(e){var t=fM(Nf.nodes(e,{match:function(e){return _N.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=fM(n,1)[0];return _N.getNodeType(r)}function Nz(e){return null==e.selection||!fM(Nf.nodes(e,{match:function(e){var t=_N.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function kz(e,t){t&&md.setNodes(e,{type:t})}z_({target:"String",proto:!0,forced:!(!Oz&&(mz=Cz(String.prototype,"startsWith"),mz&&!mz.writable)||Oz)},{startsWith:function(e){var t=vL(zP(this));Ez(e);var n=m_(xz(arguments.length>1?arguments[1]:void 0,t.length)),r=vL(e);return Dz?Dz(t,r,n):Az(t,n,n+r.length)===r}});var Bz=function(){function e(){this.title=GF("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 e.prototype.getOptions=function(e){var t=[{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:GF("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return Tz(e)},e.prototype.isDisabled=function(e){return Nz(e)},e.prototype.exec=function(e,t){kz(e,t.toString())},e}(),Iz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return Tz(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return Nz(e)},e.prototype.exec=function(e,t){var n=this.type;kz(e,t===n?"paragraph":n)},e}(),Fz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return aM(t,e),t}(Iz),Pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return aM(t,e),t}(Iz),Rz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return aM(t,e),t}(Iz),_z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return aM(t,e),t}(Iz),Lz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return aM(t,e),t}(Iz),jz={key:"headerSelect",factory:function(){return new Bz}},Mz={key:"header1",factory:function(){return new Fz}},zz={key:"header2",factory:function(){return new Pz}},Hz={key:"header3",factory:function(){return new Rz}},Uz={key:"header4",factory:function(){return new _z}},$z={key:"header5",factory:function(){return new Lz}};function Vz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Gz(e){return function(t,n,r){var o=Mp(t);return 0===(n=n.filter((function(e){return!!ed.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var Wz={renderElems:[uz,sz,lz,cz,fz],elemsToHtml:[{type:"header1",elemToHtml:Vz(1)},{type:"header2",elemToHtml:Vz(2)},{type:"header3",elemToHtml:Vz(3)},{type:"header4",elemToHtml:Vz(4)},{type:"header5",elemToHtml:Vz(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Gz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Gz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Gz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Gz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Gz(5)}],menus:[jz,Mz,zz,Hz,Uz,$z],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=fM(Nf.nodes(n,{match:function(e){return _N.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&_N.isSelectionAtLineEnd(e,r[1])?md.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},qz=Object.assign,Kz=Object.defineProperty,Yz=IP([].concat),Xz=!qz||bP((function(){if(EP&&1!==qz({b:1},qz(Kz({},"a",{enumerable:!0,get:function(){Kz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=qz({},e)[n]||wL(qz({},t)).join("")!=r}))?function(e,t){for(var n=hR(e),r=arguments.length,o=1,i=T_.f,a=xP.f;r>o;)for(var u,s=jP(arguments[o++]),l=i?Yz(wL(s),i(s)):wL(s),c=l.length,f=0;c>f;)u=l[f++],EP&&!SP(a,s,u)||(n[u]=s[u]);return n}:qz;function Zz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}z_({target:"Object",stat:!0,forced:Object.assign!==Xz},{assign:Xz});var Jz={selector:"font",preParseHtml:function(e){var t=Mp(e);if("font"!==nM(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},Qz=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=Nf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!fM(Nf.nodes(e,{match:function(t){return"pre"===_N.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Mp('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=Mp(r).attr("data-value");"0"===o?Nf.removeMark(e,t):Nf.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=Mp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Mp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=GF("color.default")),"bgColor"===t&&(a=GF("color.clear"));var u=Mp('\n <li data-value="0" class="clear">\n <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>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),eH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=GF("color.color"),t.iconSvg=MM,t.mark="color",t}return aM(t,e),t}(Qz),tH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=GF("color.bgColor"),t.iconSvg=zM,t.mark="bgColor",t}return aM(t,e),t}(Qz),nH=["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)"],rH={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Zz(i,{color:r}),o&&Zz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!ed.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((eM(t)||"span"!==nM(n=Mp(t)))&&(n=Mp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),tM(n)):t},preParseHtml:[Jz],parseStyleHtml:function(e,t,n){var r=Mp(e);if(!ed.isText(t))return t;var o=t,i=rM(r,"color");i&&(o.color=i);var a=rM(r,"background-color");return a||(a=rM(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new eH},config:{colors:nH}},{key:"bgColor",factory:function(){return new tH},config:{colors:nH}}]},oH=/^(?:\w+:)?\/\/(\S+)$/,iH=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,aH=/^[^\s\.]+\.\S{2,}$/,uH=w_.includes;z_({target:"Array",proto:!0},{includes:function(e){return uH(this,e,arguments.length>1?arguments[1]:void 0)}}),Tj("includes");var sH=IP([].slice),lH=cL("slice"),cH=AR("species"),fH=mP.Array,dH=Math.max;function pH(e){return void 0===e&&(e="r"),e+"-"+jh()}function hH(e){return e.replace(/</g,"<").replace(/>/g,">")}function vH(e,t,n,r){return sM(this,void 0,void 0,(function(){var o,i;return lM(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function gH(e,t,n){return sM(this,void 0,void 0,(function(){var r;return lM(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function yH(e){return null==e.selection||!!_N.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function mH(e,t){return{type:"link",url:hH(e),children:t?[{text:t}]:[]}}function bH(e,t,n){return sM(this,void 0,void 0,(function(){var r,o,i,a,u;return lM(this,(function(s){switch(s.label){case 0:return n?(t||(t=n),e.restoreSelection(),yH(e)?[2]:[4,vH("insertLink",e,t,n)]):[2];case 1:return s.sent()?[4,gH("insertLink",e,n)]:[2];case 2:if(r=s.sent(),null==(o=e.selection))return[2];if(qf.isCollapsed(o)){if((a=_N.getLeftLengthOfMaxLength(e))<=0)return[2];e.insertText(" "),a<t.length+1&&(t=t.slice(0,a-1)),u=mH(r,t),md.insertNodes(e,u),e.insertFragment([{text:" "}])}else if((i=Nf.string(e,o))!==t){if((a=_N.getLeftLengthOfMaxLength(e))<=0)return[2];a<i.length-t.length&&(t=t.slice(0,a)),e.deleteFragment(),u=mH(r,t),md.insertNodes(e,u)}else u=mH(r),md.wrapNodes(e,u,{split:!0}),md.collapse(e,{edge:"end"});return[2]}}))}))}z_({target:"Array",proto:!0,forced:!lH},{slice:function(e,t){var n,r,o,i=HP(this),a=b_(i),u=g_(e,a),s=g_(void 0===t?a:t,a);if(U_(i)&&(n=i.constructor,(nL(n)&&(n===fH||U_(n.prototype))||$P(n)&&null===(n=n[cH]))&&(n=void 0),n===fH||void 0===n))return sH(i,u,s);for(r=new(void 0===n?fH:n)(dH(s-u,0)),o=0;u<s;u++,o++)u in i&&Rj(r,o,i[u]);return r.length=o,r}});var EH={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Fv("a",{href:o,target:void 0===i?"_blank":i},t)}},wH={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function SH(){return pH("w-e-insert-link")}var CH=function(){function e(){this.title=GF("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=SH(),this.urlInputId=SH(),this.buttonId=SH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return yH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=fM(AI(GF("link.text"),r),2),u=a[0],s=Mp(a[1]),l=fM(AI(GF("link.url"),o),2),c=l[0],f=Mp(l[1]),d=fM(OI(i,GF("common.ok")),1)[0];if(null==this.$content){var p=Mp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();bH(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||qf.isCollapsed(t))s.val("");else{var v=Nf.string(e,t);s.val(v)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function DH(){return pH("w-e-update-link")}var AH=function(){function e(){this.title=GF("link.edit"),this.iconSvg=LM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=DH(),this.buttonId=DH()}return e.prototype.getSelectedLinkElem=function(e){var t=_N.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return _N.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=fM(AI(GF("link.url"),t),2),o=r[0],i=Mp(r[1]),a=fM(OI(n,GF("common.ok")),1)[0];if(null==this.$content){var u=Mp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=_N.getSelectedNodeByType(e,"link"),o=r?Rf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){sM(this,void 0,void 0,(function(){var r,o;return lM(this,(function(i){switch(i.label){case 0:return n?[4,vH("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,gH("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:hH(r)},md.setNodes(e,o,{match:function(e){return _N.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),xH=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==_N.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||md.unwrapNodes(e,{match:function(e){return _N.checkNodeType(e,"link")}})},e}(),OH=function(){function e(){this.title=GF("link.view"),this.iconSvg=jM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=_N.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),TH={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},NH={renderElems:[EH],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[wH],menus:[{key:"insertLink",factory:function(){return new CH},config:TH},{key:"editLink",factory:function(){return new AH},config:TH},{key:"unLink",factory:function(){return new xH}},{key:"viewLink",factory:function(){return new OH}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(oH);if(!t)return!1;var n=t[1];return!(!n||!iH.test(n)&&!aH.test(n))}(t)){if(/<img[^>]+>/.test(e.getData("text/html")))n(e);else if(!yH(o)){var r=o.selection;if(null!=r){var i=Nf.string(o,r);bH(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=fM(e,2),n=t[0],i=t[1];return"link"!==_N.getNodeType(n)?r([n,i]):""===Rf.string(n)?md.removeNodes(o,{at:i}):r([n,i])},o}},kH=IP(1..valueOf),BH=mP.RangeError,IH=mP.RangeError,FH=mP.String,PH=Math.floor,RH=IP((function(e){var t=vL(zP(this)),n="",r=p_(e);if(r<0||r==1/0)throw BH("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),_H=IP("".slice),LH=IP(1..toFixed),jH=function(e,t,n){return 0===t?n:t%2==1?jH(e,t-1,n*e):jH(e*e,t/2,n)},MH=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=PH(o/1e7)},zH=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=PH(r/t),r=r%t*1e7},HH=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=FH(e[t]);n=""===n?r:n+RH("0",7-r.length)+r}return n};function UH(e,t){return"w-e-image-container-"+_N.findKey(e,t).id}z_({target:"Number",proto:!0,forced:bP((function(){return"0.000"!==LH(8e-5,3)||"1"!==LH(.9,0)||"1.25"!==LH(1.255,2)||"1000000000000000128"!==LH(0xde0b6b3a7640080,0)}))||!bP((function(){LH({})}))},{toFixed:function(e){var t,n,r,o,i=kH(this),a=p_(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw IH("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return FH(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*jH(2,69,1))-69)<0?i*jH(2,-t,1):i/jH(2,t,1),n*=4503599627370496,(t=52-t)>0){for(MH(u,0,n),r=a;r>=7;)MH(u,1e7,0),r-=7;for(MH(u,jH(10,r,1),0),r=t-1;r>=23;)zH(u,1<<23),r-=23;zH(u,1<<r),MH(u,1,1),zH(u,2),l=HH(u)}else MH(u,0,n),MH(u,1<<-t,0),l=HH(u)+RH("0",a);return a>0?s+((o=l.length)<=a?"0."+RH("0",a-o)+l:_H(l,0,o-a)+"."+_H(l,o-a)):s+l}});var $H={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,v=_N.isNodeSelected(n,e),g={maxWidth:"100%"};d&&(g.width="100%"),h&&(g.height="100%");var y=Fv("img",{style:g,src:o,alt:a,"data-href":s}),m=n.isDisabled();return v&&!m?function(e,t,n,r){var o=Mp("body"),i=UH(e,t),a=r.width;r.height;var u=0,s=0,l=0,c=0,f=!1,d=null;function p(t,n){d=function(){var e=Mp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),u=t,c=n;var r=d.find("img");if(0===r.length)throw new Error("Cannot find image elem");s=r.width(),l=r.height(),o.on("mousemove",h),o.on("mouseup",v);var a=_N.getHoverbar(e);a&&a.hideAndClean()}var h=ev((function(e){e.preventDefault();var t=e.clientX,n=s+(f?u-t:t-u);n>c-6||null!=d&&(n<=15||l*(n/s)<=15||d.css("width",n+"px"))}),100);function v(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i={style:uM(uM({},t.style),{width:r+"px"})};md.setNodes(e,i,{at:_N.findPath(e,t)}),o.off("mouseup",v)}}var g={};return a&&(g.width=a),Fv("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(n){var r=Mp(n.target);if(r.hasClass("w-e-image-dragger")){n.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(f=!0);var o=_N.getParentNode(e,t);if(null!=o){var i=_N.toDOMNode(e,o),a=i.getBoundingClientRect(),u=window.getComputedStyle(i),s=parseFloat(u.paddingLeft),l=parseFloat(u.paddingRight),c=parseFloat(u.borderLeftWidth),d=parseFloat(u.borderRightWidth);p(n.clientX,a.width-s-l-c-d)}}}}},n,Fv("div",{className:"w-e-image-dragger left-top"}),Fv("div",{className:"w-e-image-dragger right-top"}),Fv("div",{className:"w-e-image-dragger left-bottom"}),Fv("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i={};return o&&(i.width=o),Fv("div",{id:UH(e,t),style:i,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},VH={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:rM(r,"width"),height:rM(r,"height")},width:r.attr("width")||"",height:r.attr("height")||"",children:[{text:""}]}}};function GH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),sM(this,void 0,void 0,(function(){var i,a;return lM(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function WH(e,t,n){return sM(this,void 0,void 0,(function(){var r;return lM(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function qH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),sM(this,void 0,void 0,(function(){var o,i,a;return lM(this,(function(u){switch(u.label){case 0:return[4,GH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,WH("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:hH(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),_N.getSelectedNodeByType(e,"image")&&e.move(1),KH(e)||(md.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function KH(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!fM(Nf.nodes(e,{match:function(t){var n=_N.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Nf.isVoid(e,t)},universal:!0}),1)[0]}function YH(){return pH("w-e-insert-image")}var XH=function(){function e(){this.title=GF("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=YH(),this.altInputId=YH(),this.hrefInputId=YH(),this.buttonId=YH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return KH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=fM(AI(GF("image.src"),r),2),s=u[0],l=Mp(u[1]),c=fM(AI(GF("image.desc"),o),2),f=c[0],d=Mp(c[1]),p=fM(AI(GF("image.link"),i),2),h=p[0],v=Mp(p[1]),g=fM(OI(a,GF("common.ok")),1)[0];if(null==this.$content){var y=Mp("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(g),l.val(""),d.val(""),v.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||qH(e,t,n,r))},e}(),ZH=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==_N.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||md.removeNodes(e,{match:function(e){return _N.checkNodeType(e,"image")}})},e}();function JH(){return pH("w-e-edit-image")}var QH=function(){function e(){this.title=GF("image.edit"),this.iconSvg=LM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=JH(),this.altInputId=JH(),this.hrefInputId=JH(),this.buttonId=JH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return _N.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==_N.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=fM(AI(GF("image.src"),r),2),l=s[0],c=Mp(s[1]),f=fM(AI(GF("image.desc"),o),2),d=f[0],p=Mp(f[1]),h=fM(AI(GF("image.link"),i),2),v=h[0],g=Mp(h[1]),y=fM(OI(a,GF("common.ok")),1)[0];if(null==this.$content){var m=Mp("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(v),b.append(y);var E=u,w=E.src,S=E.alt,C=void 0===S?"":S,D=E.href,A=void 0===D?"":D;return c.val(w),p.val(C),g.val(A),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),sM(this,void 0,void 0,(function(){var i,a,u,s,l,c;return lM(this,(function(f){switch(f.label){case 0:return[4,GH("editImage",e,t,n,r)];case 1:return f.sent()?[4,WH("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=_N.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:uM(uM({},void 0===u?{}:u),o)},md.setNodes(e,s,{match:function(e){return _N.checkNodeType(e,"image")}}),l=_N.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),eU=function(){function e(){this.title=GF("image.viewLink"),this.iconSvg=jM,this.tag="button"}return e.prototype.getValue=function(e){var t=_N.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),tU=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return _N.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=_N.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:uM(uM({},void 0===o?{}:o),{width:this.value,height:""})};md.setNodes(e,i,{match:function(e){return _N.checkNodeType(e,"image")}})}}},e}(),nU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return aM(t,e),t}(tU),rU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return aM(t,e),t}(tU),oU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return aM(t,e),t}(tU);function iU(){return pH("w-e-insert-image")}var aU=function(){function e(){this.title=GF("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=iU(),this.heightInputId=iU(),this.buttonId=iU()}return e.prototype.getSelectedImageNode=function(e){return _N.getSelectedNodeByType(e,"image")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedImageNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=fM(AI(GF("image.width"),n,"auto"),2),a=i[0],u=Mp(i[1]),s=fM(AI(GF("image.height"),r,"auto"),2),l=s[0],c=Mp(s[1]),f=fM(OI(o,GF("image.ok")),1)[0];if(null==this.$content){var d=Mp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},s=function(e){return/^\d+(\.\d+)?px$/.test(e)},l="auto",c="auto";a(o)?l=o:u(o)?l=parseInt(o)+"px":s(o)&&(l=o),a(i)?c=i:u(i)?c=parseInt(i)+"px":s(i)&&(c=i);var f=h.style,p=void 0===f?{}:f;e.restoreSelection();var v=uM(uM({},p),{style:{width:l,height:c}});md.setNodes(e,v,{match:function(e){return _N.checkNodeType(e,"image")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedImageNode(e);if(null==h)return p[0];var v=h.style,g=void 0===v?{}:v,y=g.width,m=void 0===y?"auto":y,b=g.height,E=void 0===b?"auto":b;return u.val(m),c.val(E),setTimeout((function(){u.focus()})),p[0]},e}(),uU={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},sU={renderElems:[$H],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.width,l=void 0===s?"":s,c=n.height,f=void 0===c?"":c,d=n.style,p=void 0===d?{}:d,h=p.width,v=void 0===h?"":h,g=p.height,y=void 0===g?"":g,m="";return v&&(m+="width: "+v+";"),y&&(m+="height: "+y+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" width="'+l+'" height="'+f+'" style="'+m+'"/>'}}],parseElemsHtml:[VH],menus:[{key:"insertImage",factory:function(){return new XH},config:uU},{key:"deleteImage",factory:function(){return new ZH}},{key:"editImage",factory:function(){return new QH},config:uU},{key:"viewImageLink",factory:function(){return new eU}},{key:"imageWidth30",factory:function(){return new nU}},{key:"imageWidth50",factory:function(){return new rU}},{key:"imageWidth100",factory:function(){return new oU}},{key:"editorImageSizeMenu",factory:function(){return new aU}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},lU={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Fv("div",{style:{margin:"5px 0"}},Fv("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Fv("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=_N.findPath(n,e),o={checked:t.target.checked};md.setNodes(n,o,{at:r})}}})),Fv("span",null,t));return o}},cU=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!_N.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!_N.getSelectedElems(e).some((function(t){if(Nf.isVoid(e,t)&&Nf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);md.setNodes(e,{type:n?"paragraph":"todo"})},e}(),fU={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Mp(e);0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},dU={renderElems:[lU],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Mp(e).find("li"),n=Mp('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[fU],menus:[{key:"todo",factory:function(){return new cU}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&qf.isCollapsed(r)){var o=_N.getSelectedNodeByType(e,"todo");if(o&&0===Rf.string(o).length)return void md.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},pU={type:"blockquote",renderElem:function(e,t,n){return Fv("blockquote",null,t)}},hU={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},vU=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!_N.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!fM(Nf.nodes(e,{match:function(e){var t=_N.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";md.setNodes(e,{type:n},{mode:"highest"})}},e}();function gU(e){e.deleteBackward("character"),md.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}var yU={renderElems:[pU],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[hU],menus:[{key:"blockquote",factory:function(){return new vU}}],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=fM(Nf.nodes(e,{match:function(e){return _N.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0];if(_N.getParentNode(e,a)){var u=_N.findPath(e,a),s=Nf.end(e,u);if($f.equals(s,o.focus)){var l=Rf.string(a);if(l&&"\n"===l.slice(-1))return void gU(r)}n("\n")}else gU(r)},r}},mU=function(){function e(){this.title=GF("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 e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!fM(Nf.nodes(e,{match:function(t){return"pre"===_N.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Mp('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Mp(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=Mp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),bU={menus:[{key:"emotion",factory:function(){return new mU},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},EU={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},wU={selector:"font",preParseHtml:function(e){var t=Mp(e);if("font"!==nM(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",EU[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},SU=IP("".indexOf);z_({target:"String",proto:!0,forced:!Sz("includes")},{includes:function(e){return!!~SU(vL(zP(this)),vL(Ez(e)),arguments.length>1?arguments[1]:void 0)}});var CU,DU,AU=function(e){return e&&e.Math==Math&&e},xU=AU("object"==typeof globalThis&&globalThis)||AU("object"==typeof window&&window)||AU("object"==typeof self&&self)||AU("object"==typeof pP&&pP)||function(){return this}()||Function("return this")(),OU=Function.prototype,TU=OU.apply,NU=OU.bind,kU=OU.call,BU="object"==typeof Reflect&&Reflect.apply||(NU?kU.bind(TU):function(){return kU.apply(TU,arguments)}),IU=Function.prototype,FU=IU.bind,PU=IU.call,RU=FU&&FU.bind(PU),_U=FU?function(e){return e&&RU(PU,e)}:function(e){return e&&function(){return PU.apply(e,arguments)}},LU=function(e){return"function"==typeof e},jU=function(e){try{return!!e()}catch(e){return!0}},MU=!jU((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),zU=Function.prototype.call,HU=zU.bind?zU.bind(zU):function(){return zU.apply(zU,arguments)},UU={}.propertyIsEnumerable,$U=Object.getOwnPropertyDescriptor,VU=$U&&!UU.call({1:2},1)?function(e){var t=$U(this,e);return!!t&&t.enumerable}:UU,GU={f:VU},WU=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qU=_U({}.toString),KU=_U("".slice),YU=function(e){return KU(qU(e),8,-1)},XU=xU.Object,ZU=_U("".split),JU=jU((function(){return!XU("z").propertyIsEnumerable(0)}))?function(e){return"String"==YU(e)?ZU(e,""):XU(e)}:XU,QU=xU.TypeError,e$=function(e){if(null==e)throw QU("Can't call method on "+e);return e},t$=function(e){return JU(e$(e))},n$=function(e){return"object"==typeof e?null!==e:LU(e)},r$={},o$=function(e){return LU(e)?e:void 0},i$=function(e,t){return arguments.length<2?o$(r$[e])||o$(xU[e]):r$[e]&&r$[e][t]||xU[e]&&xU[e][t]},a$=_U({}.isPrototypeOf),u$=i$("navigator","userAgent")||"",s$=xU.process,l$=xU.Deno,c$=s$&&s$.versions||l$&&l$.version,f$=c$&&c$.v8;f$&&(DU=(CU=f$.split("."))[0]>0&&CU[0]<4?1:+(CU[0]+CU[1])),!DU&&u$&&(!(CU=u$.match(/Edge\/(\d+)/))||CU[1]>=74)&&(CU=u$.match(/Chrome\/(\d+)/))&&(DU=+CU[1]);var d$=DU,p$=!!Object.getOwnPropertySymbols&&!jU((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&d$&&d$<41})),h$=p$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,v$=xU.Object,g$=h$?function(e){return"symbol"==typeof e}:function(e){var t=i$("Symbol");return LU(t)&&a$(t.prototype,v$(e))},y$=xU.String,m$=xU.TypeError,b$=function(e){if(LU(e))return e;throw m$(function(e){try{return y$(e)}catch(e){return"Object"}}(e)+" is not a function")},E$=xU.TypeError,w$=Object.defineProperty,S$=xU["__core-js_shared__"]||function(e,t){try{w$(xU,e,{value:t,configurable:!0,writable:!0})}catch(n){xU[e]=t}return t}("__core-js_shared__",{}),C$=hP((function(e){(e.exports=function(e,t){return S$[e]||(S$[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),D$=xU.Object,A$=function(e){return D$(e$(e))},x$=_U({}.hasOwnProperty),O$=Object.hasOwn||function(e,t){return x$(A$(e),t)},T$=0,N$=Math.random(),k$=_U(1..toString),B$=function(e){return"Symbol("+(void 0===e?"":e)+")_"+k$(++T$+N$,36)},I$=C$("wks"),F$=xU.Symbol,P$=F$&&F$.for,R$=h$?F$:F$&&F$.withoutSetter||B$,_$=function(e){if(!O$(I$,e)||!p$&&"string"!=typeof I$[e]){var t="Symbol."+e;p$&&O$(F$,e)?I$[e]=F$[e]:I$[e]=h$&&P$?P$(t):R$(t)}return I$[e]},L$=xU.TypeError,j$=_$("toPrimitive"),M$=function(e){var t=function(e,t){if(!n$(e)||g$(e))return e;var n,r,o=null==(n=e[j$])?void 0:b$(n);if(o){if(void 0===t&&(t="default"),r=HU(o,e,t),!n$(r)||g$(r))return r;throw L$("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&LU(n=e.toString)&&!n$(r=HU(n,e)))return r;if(LU(n=e.valueOf)&&!n$(r=HU(n,e)))return r;if("string"!==t&&LU(n=e.toString)&&!n$(r=HU(n,e)))return r;throw E$("Can't convert object to primitive value")}(e,t)}(e,"string");return g$(t)?t:t+""},z$=xU.document,H$=n$(z$)&&n$(z$.createElement),U$=function(e){return H$?z$.createElement(e):{}},$$=!MU&&!jU((function(){return 7!=Object.defineProperty(U$("div"),"a",{get:function(){return 7}}).a})),V$=Object.getOwnPropertyDescriptor,G$={f:MU?V$:function(e,t){if(e=t$(e),t=M$(t),$$)try{return V$(e,t)}catch(e){}if(O$(e,t))return WU(!HU(GU.f,e,t),e[t])}},W$=/#|\.prototype\./,q$=function(e,t){var n=Y$[K$(e)];return n==Z$||n!=X$&&(LU(t)?jU(t):!!t)},K$=q$.normalize=function(e){return String(e).replace(W$,".").toLowerCase()},Y$=q$.data={},X$=q$.NATIVE="N",Z$=q$.POLYFILL="P",J$=q$,Q$=_U(_U.bind),eV=function(e,t){return b$(e),void 0===t?e:Q$?Q$(e,t):function(){return e.apply(t,arguments)}},tV=xU.String,nV=xU.TypeError,rV=function(e){if(n$(e))return e;throw nV(tV(e)+" is not an object")},oV=xU.TypeError,iV=Object.defineProperty,aV={f:MU?iV:function(e,t,n){if(rV(e),t=M$(t),rV(n),$$)try{return iV(e,t,n)}catch(e){}if("get"in n||"set"in n)throw oV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},uV=MU?function(e,t,n){return aV.f(e,t,WU(1,n))}:function(e,t,n){return e[t]=n,e},sV=G$.f,lV=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return BU(e,this,arguments)};return t.prototype=e.prototype,t},cV=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?xU:d?xU[c]:(xU[c]||{}).prototype,v=f?r$:r$[c]||uV(r$,c,{})[c],g=v.prototype;for(o in t)n=!J$(f?o:c+(d?".":"#")+o,e.forced)&&h&&O$(h,o),a=v[o],n&&(u=e.noTargetGet?(l=sV(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?eV(i,xU):e.wrap&&n?lV(i):p&&LU(i)?_U(i):i,(e.sham||i&&i.sham||a&&a.sham)&&uV(s,"sham",!0),uV(v,o,s),p&&(O$(r$,r=c+"Prototype")||uV(r$,r,{}),uV(r$[r],o,i),e.real&&g&&!g[o]&&uV(g,o,i)))},fV=Array.isArray||function(e){return"Array"==YU(e)},dV=Math.ceil,pV=Math.floor,hV=function(e){var t=+e;return t!=t||0===t?0:(t>0?pV:dV)(t)},vV=Math.min,gV=function(e){return(t=e.length)>0?vV(hV(t),9007199254740991):0;var t},yV=function(e,t,n){var r=M$(t);r in e?aV.f(e,r,WU(0,n)):e[r]=n},mV={};mV[_$("toStringTag")]="z";var bV="[object z]"===String(mV),EV=_$("toStringTag"),wV=xU.Object,SV="Arguments"==YU(function(){return arguments}()),CV=bV?YU:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=wV(e),EV))?n:SV?YU(t):"Object"==(r=YU(t))&&LU(t.callee)?"Arguments":r},DV=_U(Function.toString);LU(S$.inspectSource)||(S$.inspectSource=function(e){return DV(e)});var AV=S$.inspectSource,xV=function(){},OV=[],TV=i$("Reflect","construct"),NV=/^\s*(?:class|function)\b/,kV=_U(NV.exec),BV=!NV.exec(xV),IV=function(e){if(!LU(e))return!1;try{return TV(xV,OV,e),!0}catch(e){return!1}},FV=!TV||jU((function(){var e;return IV(IV.call)||!IV(Object)||!IV((function(){e=!0}))||e}))?function(e){if(!LU(e))return!1;switch(CV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return BV||!!kV(NV,AV(e))}:IV,PV=_$("species"),RV=xU.Array,_V=function(e,t){return new(function(e){var t;return fV(e)&&(t=e.constructor,(FV(t)&&(t===RV||fV(t.prototype))||n$(t)&&null===(t=t[PV]))&&(t=void 0)),void 0===t?RV:t}(e))(0===t?0:t)},LV=_$("species"),jV=_$("isConcatSpreadable"),MV=xU.TypeError,zV=d$>=51||!jU((function(){var e=[];return e[jV]=!1,e.concat()[0]!==e})),HV=d$>=51||!jU((function(){var e=[];return(e.constructor={})[LV]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),UV=function(e){if(!n$(e))return!1;var t=e[jV];return void 0!==t?!!t:fV(e)};cV({target:"Array",proto:!0,forced:!zV||!HV},{concat:function(e){var t,n,r,o,i,a=A$(this),u=_V(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(UV(i=-1===t?a:arguments[t])){if(s+(o=gV(i))>9007199254740991)throw MV("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&yV(u,s,i[n])}else{if(s>=9007199254740991)throw MV("Maximum allowed index exceeded");yV(u,s++,i)}return u.length=s,u}});var $V,VV=xU.String,GV=function(e){if("Symbol"===CV(e))throw TypeError("Cannot convert a Symbol value to a string");return VV(e)},WV=Math.max,qV=Math.min,KV=function(e,t){var n=hV(e);return n<0?WV(n+t,0):qV(n,t)},YV=function(e){return function(t,n,r){var o,i=t$(t),a=gV(i),u=KV(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},XV={includes:YV(!0),indexOf:YV(!1)},ZV={},JV=XV.indexOf,QV=_U([].push),eG=function(e,t){var n,r=t$(e),o=0,i=[];for(n in r)!O$(ZV,n)&&O$(r,n)&&QV(i,n);for(;t.length>o;)O$(r,n=t[o++])&&(~JV(i,n)||QV(i,n));return i},tG=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nG=Object.keys||function(e){return eG(e,tG)},rG=MU?Object.defineProperties:function(e,t){rV(e);for(var n,r=t$(t),o=nG(t),i=o.length,a=0;i>a;)aV.f(e,n=o[a++],r[n]);return e},oG=i$("document","documentElement"),iG=C$("keys"),aG=function(e){return iG[e]||(iG[e]=B$(e))},uG=aG("IE_PROTO"),sG=function(){},lG=function(e){return"<script>"+e+"<\/script>"},cG=function(e){e.write(lG("")),e.close();var t=e.parentWindow.Object;return e=null,t},fG=function(){try{$V=new ActiveXObject("htmlfile")}catch(e){}var e,t;fG="undefined"!=typeof document?document.domain&&$V?cG($V):((t=U$("iframe")).style.display="none",oG.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(lG("document.F=Object")),e.close(),e.F):cG($V);for(var n=tG.length;n--;)delete fG.prototype[tG[n]];return fG()};ZV[uG]=!0;var dG,pG,hG,vG=Object.create||function(e,t){var n;return null!==e?(sG.prototype=rV(e),n=new sG,sG.prototype=null,n[uG]=e):n=fG(),void 0===t?n:rG(n,t)},gG=tG.concat("length","prototype"),yG={f:Object.getOwnPropertyNames||function(e){return eG(e,gG)}},mG=xU.Array,bG=Math.max,EG=yG.f,wG="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],SG={f:function(e){return wG&&"Window"==YU(e)?function(e){try{return EG(e)}catch(e){return function(e,t,n){for(var r=gV(e),o=KV(void 0,r),i=KV(r,r),a=mG(bG(i-o,0)),u=0;o<i;o++,u++)yV(a,u,e[o]);return a.length=u,a}(wG)}}(e):EG(t$(e))}},CG={f:Object.getOwnPropertySymbols},DG=_U([].slice),AG=function(e,t,n,r){r&&r.enumerable?e[t]=n:uV(e,t,n)},xG={f:_$},OG=aV.f,TG=function(e){var t=r$.Symbol||(r$.Symbol={});O$(t,e)||OG(t,e,{value:xG.f(e)})},NG=bV?{}.toString:function(){return"[object "+CV(this)+"]"},kG=aV.f,BG=_$("toStringTag"),IG=function(e,t,n,r){if(e){var o=n?e:e.prototype;O$(o,BG)||kG(o,BG,{configurable:!0,value:t}),r&&!bV&&uV(o,"toString",NG)}},FG=xU.WeakMap,PG=LU(FG)&&/native code/.test(AV(FG)),RG=xU.TypeError,_G=xU.WeakMap;if(PG||S$.state){var LG=S$.state||(S$.state=new _G),jG=_U(LG.get),MG=_U(LG.has),zG=_U(LG.set);dG=function(e,t){if(MG(LG,e))throw new RG("Object already initialized");return t.facade=e,zG(LG,e,t),t},pG=function(e){return jG(LG,e)||{}},hG=function(e){return MG(LG,e)}}else{var HG=aG("state");ZV[HG]=!0,dG=function(e,t){if(O$(e,HG))throw new RG("Object already initialized");return t.facade=e,uV(e,HG,t),t},pG=function(e){return O$(e,HG)?e[HG]:{}},hG=function(e){return O$(e,HG)}}var UG={set:dG,get:pG,has:hG,enforce:function(e){return hG(e)?pG(e):dG(e,{})},getterFor:function(e){return function(t){var n;if(!n$(t)||(n=pG(t)).type!==e)throw RG("Incompatible receiver, "+e+" required");return n}}},$G=_U([].push),VG=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=A$(s),v=JU(h),g=eV(l,c),y=gV(v),m=0,b=f||_V,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:$G(E,d)}else switch(e){case 4:return!1;case 7:$G(E,d)}return i?-1:r||o?o:E}},GG=[VG(0),VG(1),VG(2),VG(3),VG(4),VG(5),VG(6),VG(7)][0],WG=aG("hidden"),qG=_$("toPrimitive"),KG=UG.set,YG=UG.getterFor("Symbol"),XG=Object.prototype,ZG=xU.Symbol,JG=ZG&&ZG.prototype,QG=xU.TypeError,eW=xU.QObject,tW=i$("JSON","stringify"),nW=G$.f,rW=aV.f,oW=SG.f,iW=GU.f,aW=_U([].push),uW=C$("symbols"),sW=C$("op-symbols"),lW=C$("string-to-symbol-registry"),cW=C$("symbol-to-string-registry"),fW=C$("wks"),dW=!eW||!eW.prototype||!eW.prototype.findChild,pW=MU&&jU((function(){return 7!=vG(rW({},"a",{get:function(){return rW(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=nW(XG,t);r&&delete XG[t],rW(e,t,n),r&&e!==XG&&rW(XG,t,r)}:rW,hW=function(e,t){var n=uW[e]=vG(JG);return KG(n,{type:"Symbol",tag:e,description:t}),MU||(n.description=t),n},vW=function(e,t,n){e===XG&&vW(sW,t,n),rV(e);var r=M$(t);return rV(n),O$(uW,r)?(n.enumerable?(O$(e,WG)&&e[WG][r]&&(e[WG][r]=!1),n=vG(n,{enumerable:WU(0,!1)})):(O$(e,WG)||rW(e,WG,WU(1,{})),e[WG][r]=!0),pW(e,r,n)):rW(e,r,n)},gW=function(e,t){rV(e);var n=t$(t),r=nG(n).concat(EW(n));return GG(r,(function(t){MU&&!HU(yW,n,t)||vW(e,t,n[t])})),e},yW=function(e){var t=M$(e),n=HU(iW,this,t);return!(this===XG&&O$(uW,t)&&!O$(sW,t))&&(!(n||!O$(this,t)||!O$(uW,t)||O$(this,WG)&&this[WG][t])||n)},mW=function(e,t){var n=t$(e),r=M$(t);if(n!==XG||!O$(uW,r)||O$(sW,r)){var o=nW(n,r);return!o||!O$(uW,r)||O$(n,WG)&&n[WG][r]||(o.enumerable=!0),o}},bW=function(e){var t=oW(t$(e)),n=[];return GG(t,(function(e){O$(uW,e)||O$(ZV,e)||aW(n,e)})),n},EW=function(e){var t=e===XG,n=oW(t?sW:t$(e)),r=[];return GG(n,(function(e){!O$(uW,e)||t&&!O$(XG,e)||aW(r,uW[e])})),r};if(p$||(JG=(ZG=function(){if(a$(JG,this))throw QG("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?GV(arguments[0]):void 0,t=B$(e),n=function(e){this===XG&&HU(n,sW,e),O$(this,WG)&&O$(this[WG],t)&&(this[WG][t]=!1),pW(this,t,WU(1,e))};return MU&&dW&&pW(XG,t,{configurable:!0,set:n}),hW(t,e)}).prototype,AG(JG,"toString",(function(){return YG(this).tag})),AG(ZG,"withoutSetter",(function(e){return hW(B$(e),e)})),GU.f=yW,aV.f=vW,G$.f=mW,yG.f=SG.f=bW,CG.f=EW,xG.f=function(e){return hW(_$(e),e)},MU&&rW(JG,"description",{configurable:!0,get:function(){return YG(this).description}})),cV({global:!0,wrap:!0,forced:!p$,sham:!p$},{Symbol:ZG}),GG(nG(fW),(function(e){TG(e)})),cV({target:"Symbol",stat:!0,forced:!p$},{for:function(e){var t=GV(e);if(O$(lW,t))return lW[t];var n=ZG(t);return lW[t]=n,cW[n]=t,n},keyFor:function(e){if(!g$(e))throw QG(e+" is not a symbol");if(O$(cW,e))return cW[e]},useSetter:function(){dW=!0},useSimple:function(){dW=!1}}),cV({target:"Object",stat:!0,forced:!p$,sham:!MU},{create:function(e,t){return void 0===t?vG(e):gW(vG(e),t)},defineProperty:vW,defineProperties:gW,getOwnPropertyDescriptor:mW}),cV({target:"Object",stat:!0,forced:!p$},{getOwnPropertyNames:bW,getOwnPropertySymbols:EW}),cV({target:"Object",stat:!0,forced:jU((function(){CG.f(1)}))},{getOwnPropertySymbols:function(e){return CG.f(A$(e))}}),tW){var wW=!p$||jU((function(){var e=ZG();return"[null]"!=tW([e])||"{}"!=tW({a:e})||"{}"!=tW(Object(e))}));cV({target:"JSON",stat:!0,forced:wW},{stringify:function(e,t,n){var r=DG(arguments),o=t;if((n$(t)||void 0!==e)&&!g$(e))return fV(t)||(t=function(e,t){if(LU(o)&&(t=HU(o,this,e,t)),!g$(t))return t}),r[1]=t,BU(tW,null,r)}})}if(!JG[qG]){var SW=JG.valueOf;AG(JG,qG,(function(e){return HU(SW,this)}))}IG(ZG,"Symbol"),ZV[WG]=!0,TG("asyncIterator"),TG("hasInstance"),TG("isConcatSpreadable"),TG("iterator"),TG("match"),TG("matchAll"),TG("replace"),TG("search"),TG("species"),TG("split"),TG("toPrimitive"),TG("toStringTag"),TG("unscopables"),IG(xU.JSON,"JSON",!0);var CW,DW,AW,xW=r$.Symbol,OW={},TW=Function.prototype,NW=MU&&Object.getOwnPropertyDescriptor,kW=O$(TW,"name"),BW={EXISTS:kW,PROPER:kW&&"something"===function(){}.name,CONFIGURABLE:kW&&(!MU||MU&&NW(TW,"name").configurable)},IW=!jU((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),FW=aG("IE_PROTO"),PW=xU.Object,RW=PW.prototype,_W=IW?PW.getPrototypeOf:function(e){var t=A$(e);if(O$(t,FW))return t[FW];var n=t.constructor;return LU(n)&&t instanceof n?n.prototype:t instanceof PW?RW:null},LW=_$("iterator"),jW=!1;[].keys&&("next"in(AW=[].keys())?(DW=_W(_W(AW)))!==Object.prototype&&(CW=DW):jW=!0);var MW=null==CW||jU((function(){var e={};return CW[LW].call(e)!==e}));CW=MW?{}:vG(CW),LU(CW[LW])||AG(CW,LW,(function(){return this}));var zW={IteratorPrototype:CW,BUGGY_SAFARI_ITERATORS:jW},HW=zW.IteratorPrototype,UW=function(){return this};xU.String,xU.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{_U(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch(e){}}();var $W=BW.PROPER,VW=zW.BUGGY_SAFARI_ITERATORS,GW=_$("iterator"),WW=function(){return this},qW=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=vG(HW,{next:WU(1,n)}),IG(e,o,!1,!0),OW[o]=UW}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!VW&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[GW]||p["@@iterator"]||o&&p[o],v=!VW&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=_W(g.call(new e)))!==Object.prototype&&u.next&&(IG(u,f,!0,!0),OW[f]=WW),$W&&"values"==o&&h&&"values"!==h.name&&(d=!0,v=function(){return HU(h,this)}),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(VW||d||!(l in p))&&AG(p,l,s[l]);else cV({target:t,proto:!0,forced:VW||d},s);return a&&p[GW]!==v&&AG(p,GW,v,{name:o}),OW[t]=v,s},KW=UG.set,YW=UG.getterFor("Array Iterator");qW(Array,"Array",(function(e,t){KW(this,{type:"Array Iterator",target:t$(e),index:0,kind:t})}),(function(){var e=YW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),OW.Arguments=OW.Array;var XW=_$("toStringTag");for(var ZW 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 JW=xU[ZW],QW=JW&&JW.prototype;QW&&CV(QW)!==XW&&uV(QW,XW,ZW),OW[ZW]=OW.Array}var eq=xW;TG("asyncDispose"),TG("dispose"),TG("matcher"),TG("metadata"),TG("observable"),TG("patternMatch"),TG("replaceAll");var tq=eq,nq=_U("".charAt),rq=_U("".charCodeAt),oq=_U("".slice),iq=function(e){return function(t,n){var r,o,i=GV(e$(t)),a=hV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=rq(i,a))<55296||r>56319||a+1===u||(o=rq(i,a+1))<56320||o>57343?e?nq(i,a):r:e?oq(i,a,a+2):o-56320+(r-55296<<10)+65536}},aq=(iq(!1),iq(!0)),uq=UG.set,sq=UG.getterFor("String Iterator");qW(String,"String",(function(e){uq(this,{type:"String Iterator",string:GV(e),index:0})}),(function(){var e,t=sq(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=aq(n,r),t.index+=e.length,{value:e,done:!1})}));var lq=xG.f("iterator"),cq=hP((function(e){function t(n){return"function"==typeof tq&&"symbol"==typeof lq?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof tq&&e.constructor===tq&&e!==tq.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),fq=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(cq),dq=l_.EXISTS,pq=zR.f,hq=Function.prototype,vq=IP(hq.toString),gq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,yq=IP(gq.exec);EP&&!dq&&pq(hq,"name",{configurable:!0,get:function(){try{return yq(gq,vq(this))[1]}catch(e){return""}}});var mq=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=Nf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!fM(Nf.nodes(e,{match:function(t){return"pre"===_N.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),bq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=GF("fontSize.title"),t.iconSvg=HM,t.mark="fontSize",t}return aM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:GF("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===fq(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(mq),Eq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=GF("fontFamily.title"),t.iconSvg=UM,t.mark="fontFamily",t.selectPanelWidth=150,t}return aM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:GF("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===fq(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(mq),wq={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Zz(i,{fontSize:r}),o&&Zz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!ed.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((eM(t)||"span"!==nM(n=Mp(t)))&&(n=Mp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),tM(n)):t},preParseHtml:[wU],parseStyleHtml:function(e,t,n){var r=Mp(e);if(!ed.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=rM(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=rM(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new bq},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 Eq},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Sq={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Mp(e),n=rM(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},Cq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=fM(Nf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":fM(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=fM(Nf.nodes(e,{match:function(e){var t=_N.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),Dq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=GF("indent.decrease"),t.iconSvg=$M,t}return aM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){md.setNodes(e,{indent:null},{match:function(e){return Cf.isElement(e)}})},t}(Cq),Aq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=GF("indent.increase"),t.iconSvg=VM,t.DEFAULT_INDENT_VALUE="2em",t}return aM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.getIndentValue=function(e){var t=this.getMatchNode(e);if(!t)return this.DEFAULT_INDENT_VALUE;var n=t.children.filter(ed.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var r=n.fontSize,o=parseInt(n.fontSize);return""+2*o+r.replace(""+o,"")},t.prototype.exec=function(e,t){var n=this.getIndentValue(e);md.setNodes(e,{indent:n},{match:function(e){return Cf.isElement(e)},mode:"highest"})},t}(Cq),xq={renderStyle:function(e,t){if(!Cf.isElement(e))return t;var n=e.indent,r=t;return n&&Zz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Cf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Mp(t);return r.css("text-indent",n),tM(r)},preParseHtml:[Sq],parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;var o=t,i=rM(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Aq}},{key:"delIndent",factory:function(){return new Dq}}]},Oq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=fM(Nf.nodes(e,{match:function(e){var t=_N.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!_N.getSelectedElems(e).some((function(t){var n=t.type;return!(!Nf.isVoid(e,t)||!Nf.isBlock(e,t)||"video"===n)||!!["pre","code"].includes(n)||void 0}))},e}(),Tq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=GF("justify.left"),t.iconSvg=GM,t}return aM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"left"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Oq),Nq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=GF("justify.right"),t.iconSvg=WM,t}return aM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"right"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Oq),kq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=GF("justify.center"),t.iconSvg=qM,t}return aM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"center"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Oq),Bq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=GF("justify.justify"),t.iconSvg=KM,t}return aM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"justify"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Oq),Iq={renderStyle:function(e,t){if(!Cf.isElement(e))return t;var n=e.textAlign,r=t;return n&&Zz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Cf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Mp(t);return r.css("text-align",n),tM(r)},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;var o=t,i=rM(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Tq}},{key:"justifyRight",factory:function(){return new Nq}},{key:"justifyCenter",factory:function(){return new kq}},{key:"justifyJustify",factory:function(){return new Bq}}]},Fq=function(){function e(){this.title=GF("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 e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:GF("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=fM(Nf.nodes(e,{match:function(e){var t=_N.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Cf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){md.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),Pq={renderStyle:function(e,t){if(!Cf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Zz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Cf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Mp(t);return r.css("line-height",n),tM(r)},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=rM(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Fq},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Rq=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),_q=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),Lq={menus:[{key:"redo",factory:function(){return new Rq}},{key:"undo",factory:function(){return new _q}}]},jq={type:"divider",renderElem:function(e,t,n){return pv("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:_N.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[pv("hr")])}},Mq=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!_N.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=_N.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){_N.isSelectedEmptyParagraph(e)&&md.removeNodes(e,{mode:"highest"}),md.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),zq={renderElems:[jq],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Mq}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=fM(e,2),o=t[0],i=t[1];if("divider"!==_N.getNodeType(o))return n([o,i]);_N.isLastNode(r,o)&&md.insertNodes(r,_N.genEmptyParagraph(),{at:[i[0]+1]})},r}},Hq=sL.map;z_({target:"Array",proto:!0,forced:!cL("map")},{map:function(e){return Hq(this,e,arguments.length>1?arguments[1]:void 0)}});var Uq=IP([].join),$q=jP!=Object,Vq=DM("join",",");z_({target:"Array",proto:!0,forced:$q||!Vq},{join:function(e){return Uq(HP(this),void 0===e?",":e)}});var Gq=function(){function e(){this.title=GF("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 e.prototype.getSelectCodeElem=function(e){var t=_N.getSelectedNodeByType(e,"code");if(null==t)return null;var n=_N.getParentNode(e,t);return null==n||"pre"!==_N.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=_N.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=_N.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Rf.string(t);md.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));md.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Nf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=cM(i),u=a.next();!u.done;u=a.next()){var s=fM(u.value,1)[0];s&&o.push(Rf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}md.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};md.insertNodes(e,l,{mode:"highest"})},e}(),Wq={key:"codeBlock",factory:function(){return new Gq}};z_({target:"String",proto:!0,forced:yM("anchor")},{anchor:function(e){return gM(this,"a","name",e)}}),tj("match",(function(e,t,n){return[function(t){var n=zP(this),r=null==t?void 0:uR(t,e);return r?SP(r,t,n):new RegExp(t)[e](vL(n))},function(e){var r=LR(this),o=vL(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return gj(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=gj(r,o));){var c=vL(u[0]);s[l]=c,""===c&&(r.lastIndex=uj(o,m_(r.lastIndex),a)),l++}return 0===l?null:s}]}));var qq={type:"pre",renderElem:function(e,t,n){return Fv("pre",null,t)}},Kq={type:"code",renderElem:function(e,t,n){return Fv("code",null,t)}},Yq={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return"code"===_N.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===_N.getNodeType(e)}))}}},Xq={menus:[Wq],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=_N.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Rf.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=fM(e,2),r=t[0],i=t[1],a=_N.getNodeType(r);return"code"===a&&i.length<=1&&md.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(_N.isLastNode(o,r)&&md.insertNodes(o,_N.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==_N.getNodeType(r.children[0])&&(md.unwrapNodes(o),md.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=_N.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Nf.insertText(o,t)}else r(e)},o},renderElems:[qq,Kq],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Mp(e);if("code"!==nM(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Mp(e)[0].textContent||""}]}}},Yq]},Zq=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),Jq={menus:[{key:"fullScreen",factory:function(){return new Zq}}]},Qq=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!qf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];md.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Nf.start(e,r))}},e}(),eK=[iz,rH,wq,xq,Iq,Pq,sU,zq,bU,NH,Xq,yU,Wz,pM,dU,Lq,Jq,{menus:[{key:"enter",factory:function(){return new Qq}}]}];UF("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),UF("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var tK="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function nK(e){var t={exports:{}};return e(t,t.exports),t.exports}var rK,oK,iK=function(e){return e&&e.Math==Math&&e},aK=iK("object"==typeof globalThis&&globalThis)||iK("object"==typeof window&&window)||iK("object"==typeof self&&self)||iK("object"==typeof tK&&tK)||function(){return this}()||Function("return this")(),uK=Function.prototype,sK=uK.bind,lK=uK.call,cK=sK&&sK.bind(lK),fK=sK?function(e){return e&&cK(lK,e)}:function(e){return e&&function(){return lK.apply(e,arguments)}},dK=function(e){try{return!!e()}catch(e){return!0}},pK=fK({}.toString),hK=fK("".slice),vK=function(e){return hK(pK(e),8,-1)},gK=aK.Object,yK=fK("".split),mK=dK((function(){return!gK("z").propertyIsEnumerable(0)}))?function(e){return"String"==vK(e)?yK(e,""):gK(e)}:gK,bK=aK.TypeError,EK=function(e){if(null==e)throw bK("Can't call method on "+e);return e},wK=function(e){return mK(EK(e))},SK=Object.defineProperty,CK=function(e,t){try{SK(aK,e,{value:t,configurable:!0,writable:!0})}catch(n){aK[e]=t}return t},DK=aK["__core-js_shared__"]||CK("__core-js_shared__",{}),AK=nK((function(e){(e.exports=function(e,t){return DK[e]||(DK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),xK=aK.Object,OK=function(e){return xK(EK(e))},TK=fK({}.hasOwnProperty),NK=Object.hasOwn||function(e,t){return TK(OK(e),t)},kK=0,BK=Math.random(),IK=fK(1..toString),FK=function(e){return"Symbol("+(void 0===e?"":e)+")_"+IK(++kK+BK,36)},PK=function(e){return"function"==typeof e},RK=function(e){return PK(e)?e:void 0},_K=function(e,t){return arguments.length<2?RK(aK[e]):aK[e]&&aK[e][t]},LK=_K("navigator","userAgent")||"",jK=aK.process,MK=aK.Deno,zK=jK&&jK.versions||MK&&MK.version,HK=zK&&zK.v8;HK&&(oK=(rK=HK.split("."))[0]>0&&rK[0]<4?1:+(rK[0]+rK[1])),!oK&&LK&&(!(rK=LK.match(/Edge\/(\d+)/))||rK[1]>=74)&&(rK=LK.match(/Chrome\/(\d+)/))&&(oK=+rK[1]);var UK,$K=oK,VK=!!Object.getOwnPropertySymbols&&!dK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$K&&$K<41})),GK=VK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,WK=AK("wks"),qK=aK.Symbol,KK=qK&&qK.for,YK=GK?qK:qK&&qK.withoutSetter||FK,XK=function(e){if(!NK(WK,e)||!VK&&"string"!=typeof WK[e]){var t="Symbol."+e;VK&&NK(qK,e)?WK[e]=qK[e]:WK[e]=GK&&KK?KK(t):YK(t)}return WK[e]},ZK=function(e){return"object"==typeof e?null!==e:PK(e)},JK=aK.String,QK=aK.TypeError,eY=function(e){if(ZK(e))return e;throw QK(JK(e)+" is not an object")},tY=!dK((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),nY=aK.document,rY=ZK(nY)&&ZK(nY.createElement),oY=function(e){return rY?nY.createElement(e):{}},iY=!tY&&!dK((function(){return 7!=Object.defineProperty(oY("div"),"a",{get:function(){return 7}}).a})),aY=Function.prototype.call,uY=aY.bind?aY.bind(aY):function(){return aY.apply(aY,arguments)},sY=fK({}.isPrototypeOf),lY=aK.Object,cY=GK?function(e){return"symbol"==typeof e}:function(e){var t=_K("Symbol");return PK(t)&&sY(t.prototype,lY(e))},fY=aK.String,dY=function(e){try{return fY(e)}catch(e){return"Object"}},pY=aK.TypeError,hY=function(e){if(PK(e))return e;throw pY(dY(e)+" is not a function")},vY=function(e,t){var n=e[t];return null==n?void 0:hY(n)},gY=aK.TypeError,yY=aK.TypeError,mY=XK("toPrimitive"),bY=function(e){var t=function(e,t){if(!ZK(e)||cY(e))return e;var n,r=vY(e,mY);if(r){if(void 0===t&&(t="default"),n=uY(r,e,t),!ZK(n)||cY(n))return n;throw yY("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&PK(n=e.toString)&&!ZK(r=uY(n,e)))return r;if(PK(n=e.valueOf)&&!ZK(r=uY(n,e)))return r;if("string"!==t&&PK(n=e.toString)&&!ZK(r=uY(n,e)))return r;throw gY("Can't convert object to primitive value")}(e,t)}(e,"string");return cY(t)?t:t+""},EY=aK.TypeError,wY=Object.defineProperty,SY={f:tY?wY:function(e,t,n){if(eY(e),t=bY(t),eY(n),iY)try{return wY(e,t,n)}catch(e){}if("get"in n||"set"in n)throw EY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},CY=Math.ceil,DY=Math.floor,AY=function(e){var t=+e;return t!=t||0===t?0:(t>0?DY:CY)(t)},xY=Math.max,OY=Math.min,TY=function(e,t){var n=AY(e);return n<0?xY(n+t,0):OY(n,t)},NY=Math.min,kY=function(e){return e>0?NY(AY(e),9007199254740991):0},BY=function(e){return kY(e.length)},IY=function(e){return function(t,n,r){var o,i=wK(t),a=BY(i),u=TY(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},FY={includes:IY(!0),indexOf:IY(!1)},PY={},RY=FY.indexOf,_Y=fK([].push),LY=function(e,t){var n,r=wK(e),o=0,i=[];for(n in r)!NK(PY,n)&&NK(r,n)&&_Y(i,n);for(;t.length>o;)NK(r,n=t[o++])&&(~RY(i,n)||_Y(i,n));return i},jY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],MY=Object.keys||function(e){return LY(e,jY)},zY=tY?Object.defineProperties:function(e,t){eY(e);for(var n,r=wK(t),o=MY(t),i=o.length,a=0;i>a;)SY.f(e,n=o[a++],r[n]);return e},HY=_K("document","documentElement"),UY=AK("keys"),$Y=function(e){return UY[e]||(UY[e]=FK(e))},VY=$Y("IE_PROTO"),GY=function(){},WY=function(e){return"<script>"+e+"<\/script>"},qY=function(e){e.write(WY("")),e.close();var t=e.parentWindow.Object;return e=null,t},KY=function(){try{UK=new ActiveXObject("htmlfile")}catch(e){}var e,t;KY="undefined"!=typeof document?document.domain&&UK?qY(UK):((t=oY("iframe")).style.display="none",HY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(WY("document.F=Object")),e.close(),e.F):qY(UK);for(var n=jY.length;n--;)delete KY.prototype[jY[n]];return KY()};PY[VY]=!0;var YY=Object.create||function(e,t){var n;return null!==e?(GY.prototype=eY(e),n=new GY,GY.prototype=null,n[VY]=e):n=KY(),void 0===t?n:zY(n,t)},XY=XK("unscopables"),ZY=Array.prototype;null==ZY[XY]&&SY.f(ZY,XY,{configurable:!0,value:YY(null)});var JY=function(e){ZY[XY][e]=!0},QY={},eX=fK(Function.toString);PK(DK.inspectSource)||(DK.inspectSource=function(e){return eX(e)});var tX,nX,rX,oX=DK.inspectSource,iX=aK.WeakMap,aX=PK(iX)&&/native code/.test(oX(iX)),uX=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},sX=tY?function(e,t,n){return SY.f(e,t,uX(1,n))}:function(e,t,n){return e[t]=n,e},lX=aK.TypeError,cX=aK.WeakMap;if(aX||DK.state){var fX=DK.state||(DK.state=new cX),dX=fK(fX.get),pX=fK(fX.has),hX=fK(fX.set);tX=function(e,t){if(pX(fX,e))throw new lX("Object already initialized");return t.facade=e,hX(fX,e,t),t},nX=function(e){return dX(fX,e)||{}},rX=function(e){return pX(fX,e)}}else{var vX=$Y("state");PY[vX]=!0,tX=function(e,t){if(NK(e,vX))throw new lX("Object already initialized");return t.facade=e,sX(e,vX,t),t},nX=function(e){return NK(e,vX)?e[vX]:{}},rX=function(e){return NK(e,vX)}}var gX,yX,mX,bX={set:tX,get:nX,has:rX,enforce:function(e){return rX(e)?nX(e):tX(e,{})},getterFor:function(e){return function(t){var n;if(!ZK(t)||(n=nX(t)).type!==e)throw lX("Incompatible receiver, "+e+" required");return n}}},EX={}.propertyIsEnumerable,wX=Object.getOwnPropertyDescriptor,SX={f:wX&&!EX.call({1:2},1)?function(e){var t=wX(this,e);return!!t&&t.enumerable}:EX},CX=Object.getOwnPropertyDescriptor,DX={f:tY?CX:function(e,t){if(e=wK(e),t=bY(t),iY)try{return CX(e,t)}catch(e){}if(NK(e,t))return uX(!uY(SX.f,e,t),e[t])}},AX=Function.prototype,xX=tY&&Object.getOwnPropertyDescriptor,OX=NK(AX,"name"),TX={EXISTS:OX,PROPER:OX&&"something"===function(){}.name,CONFIGURABLE:OX&&(!tY||tY&&xX(AX,"name").configurable)},NX=nK((function(e){var t=TX.CONFIGURABLE,n=bX.get,r=bX.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;PK(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!NK(i,"name")||t&&i.name!==f)&&sX(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==aK?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:sX(e,n,i)):l?e[n]=i:CK(n,i)})(Function.prototype,"toString",(function(){return PK(this)&&n(this).source||oX(this)}))})),kX=jY.concat("length","prototype"),BX={f:Object.getOwnPropertyNames||function(e){return LY(e,kX)}},IX={f:Object.getOwnPropertySymbols},FX=fK([].concat),PX=_K("Reflect","ownKeys")||function(e){var t=BX.f(eY(e)),n=IX.f;return n?FX(t,n(e)):t},RX=function(e,t){for(var n=PX(t),r=SY.f,o=DX.f,i=0;i<n.length;i++){var a=n[i];NK(e,a)||r(e,a,o(t,a))}},_X=/#|\.prototype\./,LX=function(e,t){var n=MX[jX(e)];return n==HX||n!=zX&&(PK(t)?dK(t):!!t)},jX=LX.normalize=function(e){return String(e).replace(_X,".").toLowerCase()},MX=LX.data={},zX=LX.NATIVE="N",HX=LX.POLYFILL="P",UX=LX,$X=DX.f,VX=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?aK:l?aK[u]||CK(u,{}):(aK[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=$X(n,r))&&a.value:n[r],!UX(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;RX(i,o)}(e.sham||o&&o.sham)&&sX(i,"sham",!0),NX(n,r,i,e)}},GX=!dK((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),WX=$Y("IE_PROTO"),qX=aK.Object,KX=qX.prototype,YX=GX?qX.getPrototypeOf:function(e){var t=OK(e);if(NK(t,WX))return t[WX];var n=t.constructor;return PK(n)&&t instanceof n?n.prototype:t instanceof qX?KX:null},XX=XK("iterator"),ZX=!1;[].keys&&("next"in(mX=[].keys())?(yX=YX(YX(mX)))!==Object.prototype&&(gX=yX):ZX=!0);var JX=null==gX||dK((function(){var e={};return gX[XX].call(e)!==e}));JX&&(gX={}),PK(gX[XX])||NX(gX,XX,(function(){return this}));var QX={IteratorPrototype:gX,BUGGY_SAFARI_ITERATORS:ZX},eZ=SY.f,tZ=XK("toStringTag"),nZ=function(e,t,n){e&&!NK(e=n?e:e.prototype,tZ)&&eZ(e,tZ,{configurable:!0,value:t})},rZ=QX.IteratorPrototype,oZ=function(){return this},iZ=aK.String,aZ=aK.TypeError,uZ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=fK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return eY(n),function(e){if("object"==typeof e||PK(e))return e;throw aZ("Can't set "+iZ(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),sZ=TX.PROPER,lZ=TX.CONFIGURABLE,cZ=QX.IteratorPrototype,fZ=QX.BUGGY_SAFARI_ITERATORS,dZ=XK("iterator"),pZ=function(){return this},hZ=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=YY(rZ,{next:uX(1,n)}),nZ(e,o,!1),QY[o]=oZ}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!fZ&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[dZ]||p["@@iterator"]||o&&p[o],v=!fZ&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=YX(g.call(new e)))!==Object.prototype&&u.next&&(YX(u)!==cZ&&(uZ?uZ(u,cZ):PK(u[dZ])||NX(u,dZ,pZ)),nZ(u,f,!0)),sZ&&"values"==o&&h&&"values"!==h.name&&(lZ?sX(p,"name","values"):(d=!0,v=function(){return uY(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(fZ||d||!(l in p))&&NX(p,l,s[l]);else VX({target:t,proto:!0,forced:fZ||d},s);return p[dZ]!==v&&NX(p,dZ,v,{name:o}),QY[t]=v,s},vZ=bX.set,gZ=bX.getterFor("Array Iterator"),yZ=hZ(Array,"Array",(function(e,t){vZ(this,{type:"Array Iterator",target:wK(e),index:0,kind:t})}),(function(){var e=gZ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");QY.Arguments=QY.Array,JY("keys"),JY("values"),JY("entries");var mZ={};mZ[XK("toStringTag")]="z";var bZ="[object z]"===String(mZ),EZ=XK("toStringTag"),wZ=aK.Object,SZ="Arguments"==vK(function(){return arguments}()),CZ=bZ?vK:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=wZ(e),EZ))?n:SZ?vK(t):"Object"==(r=vK(t))&&PK(t.callee)?"Arguments":r},DZ=bZ?{}.toString:function(){return"[object "+CZ(this)+"]"};bZ||NX(Object.prototype,"toString",DZ,{unsafe:!0});var AZ=aK.String,xZ=function(e){if("Symbol"===CZ(e))throw TypeError("Cannot convert a Symbol value to a string");return AZ(e)},OZ=fK("".charAt),TZ=fK("".charCodeAt),NZ=fK("".slice),kZ=function(e){return function(t,n){var r,o,i=xZ(EK(t)),a=AY(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=TZ(i,a))<55296||r>56319||a+1===u||(o=TZ(i,a+1))<56320||o>57343?e?OZ(i,a):r:e?NZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},BZ={codeAt:kZ(!1),charAt:kZ(!0)},IZ=BZ.charAt,FZ=bX.set,PZ=bX.getterFor("String Iterator");hZ(String,"String",(function(e){FZ(this,{type:"String Iterator",string:xZ(e),index:0})}),(function(){var e,t=PZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=IZ(n,r),t.index+=e.length,{value:e,done:!1})}));var RZ=function(e,t,n){for(var r in t)NX(e,r,t[r],n);return e},_Z=aK.Array,LZ=Math.max,jZ=BX.f,MZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zZ={f:function(e){return MZ&&"Window"==vK(e)?function(e){try{return jZ(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=BY(e),s=TY(void 0,u),l=TY(u,u),c=_Z(LZ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=bY(o))in r?SY.f(r,a,uX(0,i)):r[a]=i;return c.length=f,c}(MZ)}}(e):jZ(wK(e))}},HZ=dK((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),UZ=Object.isExtensible,$Z=dK((function(){UZ(1)}))||HZ?function(e){return!!ZK(e)&&(!HZ||"ArrayBuffer"!=vK(e))&&(!UZ||UZ(e))}:UZ,VZ=!dK((function(){return Object.isExtensible(Object.preventExtensions({}))})),GZ=nK((function(e){var t=SY.f,n=!1,r=FK("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=BX.f,t=fK([].splice),o={};o[r]=1,e(o).length&&(BX.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},VX({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:zZ.f}))},fastKey:function(e,t){if(!ZK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!NK(e,r)){if(!$Z(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!NK(e,r)){if(!$Z(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return VZ&&n&&$Z(e)&&!NK(e,r)&&i(e),e}};PY[r]=!0})),WZ=fK(fK.bind),qZ=function(e,t){return hY(e),void 0===t?e:WZ?WZ(e,t):function(){return e.apply(t,arguments)}},KZ=XK("iterator"),YZ=Array.prototype,XZ=XK("iterator"),ZZ=function(e){if(null!=e)return vY(e,XZ)||vY(e,"@@iterator")||QY[CZ(e)]},JZ=aK.TypeError,QZ=function(e,t,n){var r,o;eY(e);try{if(!(r=vY(e,"return"))){if("throw"===t)throw n;return n}r=uY(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return eY(r),n},eJ=aK.TypeError,tJ=function(e,t){this.stopped=e,this.result=t},nJ=tJ.prototype,rJ=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=qZ(t,f),g=function(e){return r&&QZ(r,"normal",e),new tJ(!0,e)},y=function(e){return d?(eY(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=ZZ(e)))throw eJ(dY(e)+" is not iterable");if(void 0!==(c=o)&&(QY.Array===c||YZ[KZ]===c)){for(i=0,a=BY(e);a>i;i++)if((u=y(e[i]))&&sY(nJ,u))return u;return new tJ(!1)}r=function(e,t){var n=arguments.length<2?ZZ(e):t;if(hY(n))return eY(uY(n,e));throw JZ(dY(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=uY(s,r)).done;){try{u=y(l.value)}catch(e){QZ(r,"throw",e)}if("object"==typeof u&&u&&sY(nJ,u))return u}return new tJ(!1)},oJ=aK.TypeError,iJ=function(e,t){if(sY(t,e))return e;throw oJ("Incorrect invocation")},aJ=XK("iterator"),uJ=!1;try{var sJ=0,lJ={next:function(){return{done:!!sJ++}},return:function(){uJ=!0}};lJ[aJ]=function(){return this},Array.from(lJ,(function(){throw 2}))}catch(Ml){}var cJ=Array.isArray||function(e){return"Array"==vK(e)},fJ=function(){},dJ=[],pJ=_K("Reflect","construct"),hJ=/^\s*(?:class|function)\b/,vJ=fK(hJ.exec),gJ=!hJ.exec(fJ),yJ=function(e){if(!PK(e))return!1;try{return pJ(fJ,dJ,e),!0}catch(e){return!1}},mJ=!pJ||dK((function(){var e;return yJ(yJ.call)||!yJ(Object)||!yJ((function(){e=!0}))||e}))?function(e){if(!PK(e))return!1;switch(CZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return gJ||!!vJ(hJ,oX(e))}:yJ,bJ=XK("species"),EJ=aK.Array,wJ=function(e,t){return new(function(e){var t;return cJ(e)&&(t=e.constructor,(mJ(t)&&(t===EJ||cJ(t.prototype))||ZK(t)&&null===(t=t[bJ]))&&(t=void 0)),void 0===t?EJ:t}(e))(0===t?0:t)},SJ=fK([].push),CJ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=OK(s),v=mK(h),g=qZ(l,c),y=BY(v),m=0,b=f||wJ,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:SJ(E,d)}else switch(e){case 4:return!1;case 7:SJ(E,d)}return i?-1:r||o?o:E}},DJ={forEach:CJ(0),map:CJ(1),filter:CJ(2),some:CJ(3),every:CJ(4),find:CJ(5),findIndex:CJ(6),filterReject:CJ(7)},AJ=GZ.getWeakData,xJ=bX.set,OJ=bX.getterFor,TJ=DJ.find,NJ=DJ.findIndex,kJ=fK([].splice),BJ=0,IJ=function(e){return e.frozen||(e.frozen=new FJ)},FJ=function(){this.entries=[]},PJ=function(e,t){return TJ(e.entries,(function(e){return e[0]===t}))};FJ.prototype={get:function(e){var t=PJ(this,e);if(t)return t[1]},has:function(e){return!!PJ(this,e)},set:function(e,t){var n=PJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=NJ(this.entries,(function(t){return t[0]===e}));return~t&&kJ(this.entries,t,1),!!~t}};var RJ,_J={getConstructor:function(e,t,n,r){var o=e((function(e,o){iJ(e,i),xJ(e,{type:t,id:BJ++,frozen:void 0}),null!=o&&rJ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=OJ(t),u=function(e,t,n){var r=a(e),o=AJ(eY(t),!0);return!0===o?IJ(r).set(t,n):o[r.id]=n,e};return RZ(i,{delete:function(e){var t=a(this);if(!ZK(e))return!1;var n=AJ(e);return!0===n?IJ(t).delete(e):n&&NK(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!ZK(e))return!1;var n=AJ(e);return!0===n?IJ(t).has(e):n&&NK(n,t.id)}}),RZ(i,n?{get:function(e){var t=a(this);if(ZK(e)){var n=AJ(e);return!0===n?IJ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},LJ=bX.enforce,jJ=!aK.ActiveXObject&&"ActiveXObject"in aK,MJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},zJ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=aK[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=fK(u[e]);NX(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!ZK(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!ZK(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!ZK(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(UX(e,!PK(a)||!(o||u.forEach&&!dK((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),GZ.enable();else if(UX(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=dK((function(){f.has(1)})),h=function(e,t){if(!uJ)return!1;var n=!1;try{var r={};r[aJ]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),v=!o&&dK((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){iJ(e,u);var n=function(e,t,n){var r,o;return uZ&&PK(r=t.constructor)&&r!==n&&ZK(o=r.prototype)&&o!==n.prototype&&uZ(e,o),e}(new a,e,s);return null!=t&&rJ(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,VX({global:!0,forced:s!=a},l),nZ(s,e),o||n.setStrong(s,e,r),s}("WeakMap",MJ,_J);if(aX&&jJ){RJ=_J.getConstructor(MJ,"WeakMap",!0),GZ.enable();var HJ=zJ.prototype,UJ=fK(HJ.delete),$J=fK(HJ.has),VJ=fK(HJ.get),GJ=fK(HJ.set);RZ(HJ,{delete:function(e){if(ZK(e)&&!$Z(e)){var t=LJ(this);return t.frozen||(t.frozen=new RJ),UJ(this,e)||t.frozen.delete(e)}return UJ(this,e)},has:function(e){if(ZK(e)&&!$Z(e)){var t=LJ(this);return t.frozen||(t.frozen=new RJ),$J(this,e)||t.frozen.has(e)}return $J(this,e)},get:function(e){if(ZK(e)&&!$Z(e)){var t=LJ(this);return t.frozen||(t.frozen=new RJ),$J(this,e)?VJ(this,e):t.frozen.get(e)}return VJ(this,e)},set:function(e,t){if(ZK(e)&&!$Z(e)){var n=LJ(this);n.frozen||(n.frozen=new RJ),$J(this,e)?GJ(this,e,t):n.frozen.set(e,t)}else GJ(this,e,t);return this}})}var WJ={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},qJ=oY("span").classList,KJ=qJ&&qJ.constructor&&qJ.constructor.prototype,YJ=KJ===Object.prototype?void 0:KJ,XJ=XK("iterator"),ZJ=XK("toStringTag"),JJ=yZ.values,QJ=function(e,t){if(e){if(e[XJ]!==JJ)try{sX(e,XJ,JJ)}catch(t){e[XJ]=JJ}if(e[ZJ]||sX(e,ZJ,t),WJ[t])for(var n in yZ)if(e[n]!==yZ[n])try{sX(e,n,yZ[n])}catch(t){e[n]=yZ[n]}}};for(var eQ in WJ)QJ(aK[eQ]&&aK[eQ].prototype,eQ);QJ(YJ,"DOMTokenList");var tQ=new WeakMap,nQ={type:"list-item",renderElem:function(e,t,n){tQ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var l=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a,s=1,l=t,c=_N.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Mf.previous(c),d=Nf.node(e,f);if(null==d)break;var p=d[0],h=p.level,v=void 0===h?0:h,g=p.type,y=p.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e);s=l+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var c=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];ed.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return Fv("div",{style:u},Fv("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Fv("span",null,t))}},rQ=function(e,t){return rQ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},rQ(e,t)};function oQ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}rQ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function iQ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function aQ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function uQ(e,t,n){for(var r=t.type,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["type"]),i=void 0!==n?n:o.level||0,a=_N.findPath(e,t),u=a;;){if(0===u.length||0===a[a.length-1])return null;u=Mf.previous(u);var s=Nf.node(e,u);if(!s)return null;var l=aQ(s,1)[0],c=l.level,f=void 0===c?0:c;if(_N.getNodeType(l)!==r)return null;if(f===i)return l}}function sQ(e,t,n){var r=uQ(e,t,n);return!!r&&r.ordered===t.ordered}function lQ(e){return Nf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===_N.findPath(e,t).length}})}"function"==typeof SuppressedError&&SuppressedError;var cQ=FY.includes;VX({target:"Array",proto:!0},{includes:function(e){return cQ(this,e,arguments.length>1?arguments[1]:void 0)}}),JY("includes");var fQ,dQ,pQ=function(){var e=eY(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},hQ=aK.RegExp,vQ=dK((function(){var e=hQ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),gQ=vQ||dK((function(){return!hQ("a","y").sticky})),yQ={BROKEN_CARET:vQ||dK((function(){var e=hQ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:gQ,UNSUPPORTED_Y:vQ},mQ=aK.RegExp,bQ=dK((function(){var e=mQ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),EQ=aK.RegExp,wQ=dK((function(){var e=EQ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),SQ=bX.get,CQ=AK("native-string-replace",String.prototype.replace),DQ=RegExp.prototype.exec,AQ=DQ,xQ=fK("".charAt),OQ=fK("".indexOf),TQ=fK("".replace),NQ=fK("".slice),kQ=(dQ=/b*/g,uY(DQ,fQ=/a/,"a"),uY(DQ,dQ,"a"),0!==fQ.lastIndex||0!==dQ.lastIndex),BQ=yQ.BROKEN_CARET,IQ=void 0!==/()??/.exec("")[1];(kQ||IQ||BQ||bQ||wQ)&&(AQ=function(e){var t,n,r,o,i,a,u,s=this,l=SQ(s),c=xZ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=uY(AQ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=BQ&&s.sticky,h=uY(pQ,s),v=s.source,g=0,y=c;if(p&&(h=TQ(h,"y",""),-1===OQ(h,"g")&&(h+="g"),y=NQ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==xQ(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),IQ&&(n=new RegExp("^"+v+"$(?!\\s)",h)),kQ&&(r=s.lastIndex),o=uY(DQ,p?n:s,y),p?o?(o.input=NQ(o.input,g),o[0]=NQ(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:kQ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),IQ&&o&&o.length>1&&uY(CQ,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=YY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var FQ=AQ;VX({target:"RegExp",proto:!0,forced:/./.exec!==FQ},{exec:FQ});var PQ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return _N.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!_N.getSelectedElems(e).some((function(t){if(Nf.isVoid(e,t)&&Nf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?md.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):md.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),RQ='<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>',_Q='<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>',LQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=GF("listModule.unOrderedList"),t.iconSvg=RQ,t}return oQ(t,e),t}(PQ),jQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=GF("listModule.orderedList"),t.iconSvg=_Q,t}return oQ(t,e),t}(PQ),MQ={key:"bulletedList",factory:function(){return new LQ}},zQ={key:"numberedList",factory:function(){return new jQ}},HQ=[],UQ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=tQ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=_N.findPath(t,e);if(0===s[0])return u+1;var l=Mf.previous(s),c=Nf.node(t,l);if(!c)return 0;var f=aQ(c,1)[0];if(_N.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?sQ(t,e)?0:1:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",HQ.push(i);var s=function(e){var t=tQ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=_N.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Mf.next(s),c=Nf.node(t,l);if(!c)return 0;var f=aQ(c,1)[0];if(_N.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?sQ(t,f)?u-g:u-g+1:g>u?0:g===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+HQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},$Q=XK("species"),VQ=DJ.filter,GQ=("filter",$K>=51||!dK((function(){var e=[];return(e.constructor={})[$Q]=function(){return{foo:1}},1!==e.filter(Boolean).foo})));VX({target:"Array",proto:!0,forced:!GQ},{filter:function(e){return VQ(this,e,arguments.length>1?arguments[1]:void 0)}});var WQ=Function.prototype,qQ=WQ.apply,KQ=WQ.bind,YQ=WQ.call,XQ="object"==typeof Reflect&&Reflect.apply||(KQ?YQ.bind(qQ):function(){return YQ.apply(qQ,arguments)}),ZQ=(XK("species"),RegExp.prototype),JQ=BZ.charAt,QQ=function(e,t,n){return t+(n?JQ(e,t).length:1)},e0=Math.floor,t0=fK("".charAt),n0=fK("".replace),r0=fK("".slice),o0=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,i0=/\$([$&'`]|\d{1,2})/g,a0=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=i0;return void 0!==o&&(o=OK(o),s=o0),n0(i,s,(function(i,s){var l;switch(t0(s,0)){case"$":return"$";case"&":return e;case"`":return r0(t,0,n);case"'":return r0(t,a);case"<":l=o[r0(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=e0(c/10);return 0===f?i:f<=u?void 0===r[f-1]?t0(s,1):r[f-1]+t0(s,1):i}l=r[c-1]}return void 0===l?"":l}))},u0=aK.TypeError,s0=function(e,t){var n=e.exec;if(PK(n)){var r=uY(n,e,t);return null!==r&&eY(r),r}if("RegExp"===vK(e))return uY(FQ,e,t);throw u0("RegExp#exec called on incompatible receiver")},l0=XK("replace"),c0=Math.max,f0=Math.min,d0=fK([].concat),p0=fK([].push),h0=fK("".indexOf),v0=fK("".slice),g0="$0"==="a".replace(/./,"$0"),y0=!!/./[l0]&&""===/./[l0]("a","$0");!function(e,t,n,r){var o=XK(e),i=!dK((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!dK((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=fK(/./[o]),s=function(e,t,n){var r=y0?"$":"$0";return[function(e,n){var r=EK(this),o=null==e?void 0:vY(e,l0);return o?uY(o,e,r,n):uY(t,xZ(r),e,n)},function(e,o){var i=eY(this),a=xZ(e);if("string"==typeof o&&-1===h0(o,r)&&-1===h0(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=PK(o);s||(o=xZ(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=s0(i,a);if(null===d)break;if(p0(f,d),!l)break;""===xZ(d[0])&&(i.lastIndex=QQ(a,kY(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=xZ((d=f[g])[0]),m=c0(f0(AY(d.index),a.length),0),b=[],E=1;E<d.length;E++)p0(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=d0([y],b,m,a);void 0!==w&&p0(S,w);var C=xZ(XQ(o,void 0,S))}else C=a0(y,a,m,b,w,o);m>=v&&(h+=v0(a,v,m)+C,v=m+y.length)}return h+v0(a,v)}]}(0,""[e],(function(e,t,n,r,o){var a=fK(e),s=t.exec;return s===FQ||s===ZQ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));NX(String.prototype,e,s[0]),NX(ZQ,o,s[1])}}("replace",0,!!dK((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!g0||y0);var m0=aK.TypeError,b0=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&qZ(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&cJ(s))l=BY(s),c=b0(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw m0("Exceed the acceptable array length");e[c]=s}c++}f++}return c},E0=b0;function w0(e){return e.length?e[0].tagName.toLowerCase():""}VX({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=OK(this),n=BY(t),r=wJ(t,0);return r.length=E0(r,t,t,n,0,void 0===e?1:AY(e)),r}}),JY("flat"),VX({global:!0},{globalThis:aK}),ah&&(Mp.fn.append=ah),$p&&(Mp.fn.attr=$p),sh&&(Mp.fn.parent=sh);var S0={renderElems:[nQ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e.insertBreak,i=e;return i.insertBreak=function(){var t=aQ(Nf.nodes(e,{match:function(e){return _N.checkNodeType(e,"list-item")},universal:!0}),1)[0];return t?""!==t[0].children[0].text?o():void md.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0}):o()},i.deleteBackward=function(n){var r=i.selection;if(null!=r)if(qf.isExpanded(r))t(n);else{var o=_N.getSelectedNodeByType(i,"list-item");if(null!=o)if(0!==r.focus.offset)t(n);else{var a=o,u=a.level,s=void 0===u?0:u,l=a.ordered,c=void 0!==l&&l;if(s>0){var f=uQ(e,o,s-1);f&&f.ordered!==c?md.setNodes(i,{level:s-1,ordered:!c}):md.setNodes(i,{level:s-1})}else md.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(n)}else t(n)},i.handleTab=function(){var e,t,r,o,a=i.selection;if(null!=a){if(qf.isCollapsed(a)){var u=_N.getSelectedNodeByType(i,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void md.setNodes(i,{level:l+1})}}if(qf.isExpanded(a)){var c=0,f=!1;try{for(var d=iQ(lQ(i)),p=d.next();!p.done;p=d.next()){var h=aQ(p.value,1)[0];"list-item"===_N.getNodeType(h)?c++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var v=iQ(lQ(i)),g=v.next();!g.done;g=v.next()){var y=aQ(g.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,md.setNodes(i,{level:l+1},{at:m})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}}else n()}else n()},i.normalizeNode=function(e){var t=aQ(e,2),n=t[0],o=t[1],a=_N.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||md.unwrapNodes(i,{at:o}),r([n,o])},i},menus:[MQ,zQ],elemsToHtml:[UQ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===w0(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=w0(n);"ul"===r||"ol"===r;)r=w0(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]};UF("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",mergeCell:"merge cell",splitCell:"split cell"}}),UF("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格"}});var C0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D0(e){var t={exports:{}};return e(t,t.exports),t.exports}var A0,x0,O0=function(e){return e&&e.Math==Math&&e},T0=O0("object"==typeof globalThis&&globalThis)||O0("object"==typeof window&&window)||O0("object"==typeof self&&self)||O0("object"==typeof C0&&C0)||function(){return this}()||Function("return this")(),N0=function(e){try{return!!e()}catch(e){return!0}},k0=!N0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),B0=Function.prototype.call,I0=B0.bind?B0.bind(B0):function(){return B0.apply(B0,arguments)},F0={}.propertyIsEnumerable,P0=Object.getOwnPropertyDescriptor,R0={f:P0&&!F0.call({1:2},1)?function(e){var t=P0(this,e);return!!t&&t.enumerable}:F0},_0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},L0=Function.prototype,j0=L0.bind,M0=L0.call,z0=j0&&j0.bind(M0),H0=j0?function(e){return e&&z0(M0,e)}:function(e){return e&&function(){return M0.apply(e,arguments)}},U0=H0({}.toString),$0=H0("".slice),V0=function(e){return $0(U0(e),8,-1)},G0=T0.Object,W0=H0("".split),q0=N0((function(){return!G0("z").propertyIsEnumerable(0)}))?function(e){return"String"==V0(e)?W0(e,""):G0(e)}:G0,K0=T0.TypeError,Y0=function(e){if(null==e)throw K0("Can't call method on "+e);return e},X0=function(e){return q0(Y0(e))},Z0=function(e){return"function"==typeof e},J0=function(e){return"object"==typeof e?null!==e:Z0(e)},Q0=function(e){return Z0(e)?e:void 0},e1=function(e,t){return arguments.length<2?Q0(T0[e]):T0[e]&&T0[e][t]},t1=H0({}.isPrototypeOf),n1=e1("navigator","userAgent")||"",r1=T0.process,o1=T0.Deno,i1=r1&&r1.versions||o1&&o1.version,a1=i1&&i1.v8;a1&&(x0=(A0=a1.split("."))[0]>0&&A0[0]<4?1:+(A0[0]+A0[1])),!x0&&n1&&(!(A0=n1.match(/Edge\/(\d+)/))||A0[1]>=74)&&(A0=n1.match(/Chrome\/(\d+)/))&&(x0=+A0[1]);var u1=x0,s1=!!Object.getOwnPropertySymbols&&!N0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&u1&&u1<41})),l1=s1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,c1=T0.Object,f1=l1?function(e){return"symbol"==typeof e}:function(e){var t=e1("Symbol");return Z0(t)&&t1(t.prototype,c1(e))},d1=T0.String,p1=function(e){try{return d1(e)}catch(e){return"Object"}},h1=T0.TypeError,v1=function(e){if(Z0(e))return e;throw h1(p1(e)+" is not a function")},g1=function(e,t){var n=e[t];return null==n?void 0:v1(n)},y1=T0.TypeError,m1=Object.defineProperty,b1=function(e,t){try{m1(T0,e,{value:t,configurable:!0,writable:!0})}catch(n){T0[e]=t}return t},E1=T0["__core-js_shared__"]||b1("__core-js_shared__",{}),w1=D0((function(e){(e.exports=function(e,t){return E1[e]||(E1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),S1=T0.Object,C1=function(e){return S1(Y0(e))},D1=H0({}.hasOwnProperty),A1=Object.hasOwn||function(e,t){return D1(C1(e),t)},x1=0,O1=Math.random(),T1=H0(1..toString),N1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+T1(++x1+O1,36)},k1=w1("wks"),B1=T0.Symbol,I1=B1&&B1.for,F1=l1?B1:B1&&B1.withoutSetter||N1,P1=function(e){if(!A1(k1,e)||!s1&&"string"!=typeof k1[e]){var t="Symbol."+e;s1&&A1(B1,e)?k1[e]=B1[e]:k1[e]=l1&&I1?I1(t):F1(t)}return k1[e]},R1=T0.TypeError,_1=P1("toPrimitive"),L1=function(e){var t=function(e,t){if(!J0(e)||f1(e))return e;var n,r=g1(e,_1);if(r){if(void 0===t&&(t="default"),n=I0(r,e,t),!J0(n)||f1(n))return n;throw R1("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Z0(n=e.toString)&&!J0(r=I0(n,e)))return r;if(Z0(n=e.valueOf)&&!J0(r=I0(n,e)))return r;if("string"!==t&&Z0(n=e.toString)&&!J0(r=I0(n,e)))return r;throw y1("Can't convert object to primitive value")}(e,t)}(e,"string");return f1(t)?t:t+""},j1=T0.document,M1=J0(j1)&&J0(j1.createElement),z1=function(e){return M1?j1.createElement(e):{}},H1=!k0&&!N0((function(){return 7!=Object.defineProperty(z1("div"),"a",{get:function(){return 7}}).a})),U1=Object.getOwnPropertyDescriptor,$1={f:k0?U1:function(e,t){if(e=X0(e),t=L1(t),H1)try{return U1(e,t)}catch(e){}if(A1(e,t))return _0(!I0(R0.f,e,t),e[t])}},V1=T0.String,G1=T0.TypeError,W1=function(e){if(J0(e))return e;throw G1(V1(e)+" is not an object")},q1=T0.TypeError,K1=Object.defineProperty,Y1={f:k0?K1:function(e,t,n){if(W1(e),t=L1(t),W1(n),H1)try{return K1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw q1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},X1=k0?function(e,t,n){return Y1.f(e,t,_0(1,n))}:function(e,t,n){return e[t]=n,e},Z1=H0(Function.toString);Z0(E1.inspectSource)||(E1.inspectSource=function(e){return Z1(e)});var J1,Q1,e2,t2=E1.inspectSource,n2=T0.WeakMap,r2=Z0(n2)&&/native code/.test(t2(n2)),o2=w1("keys"),i2=function(e){return o2[e]||(o2[e]=N1(e))},a2={},u2=T0.TypeError,s2=T0.WeakMap;if(r2||E1.state){var l2=E1.state||(E1.state=new s2),c2=H0(l2.get),f2=H0(l2.has),d2=H0(l2.set);J1=function(e,t){if(f2(l2,e))throw new u2("Object already initialized");return t.facade=e,d2(l2,e,t),t},Q1=function(e){return c2(l2,e)||{}},e2=function(e){return f2(l2,e)}}else{var p2=i2("state");a2[p2]=!0,J1=function(e,t){if(A1(e,p2))throw new u2("Object already initialized");return t.facade=e,X1(e,p2,t),t},Q1=function(e){return A1(e,p2)?e[p2]:{}},e2=function(e){return A1(e,p2)}}var h2={set:J1,get:Q1,has:e2,enforce:function(e){return e2(e)?Q1(e):J1(e,{})},getterFor:function(e){return function(t){var n;if(!J0(t)||(n=Q1(t)).type!==e)throw u2("Incompatible receiver, "+e+" required");return n}}},v2=Function.prototype,g2=k0&&Object.getOwnPropertyDescriptor,y2=A1(v2,"name"),m2={EXISTS:y2,PROPER:y2&&"something"===function(){}.name,CONFIGURABLE:y2&&(!k0||k0&&g2(v2,"name").configurable)},b2=D0((function(e){var t=m2.CONFIGURABLE,n=h2.get,r=h2.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Z0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!A1(i,"name")||t&&i.name!==f)&&X1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==T0?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:X1(e,n,i)):l?e[n]=i:b1(n,i)})(Function.prototype,"toString",(function(){return Z0(this)&&n(this).source||t2(this)}))})),E2=Math.ceil,w2=Math.floor,S2=function(e){var t=+e;return t!=t||0===t?0:(t>0?w2:E2)(t)},C2=Math.max,D2=Math.min,A2=function(e,t){var n=S2(e);return n<0?C2(n+t,0):D2(n,t)},x2=Math.min,O2=function(e){return e>0?x2(S2(e),9007199254740991):0},T2=function(e){return O2(e.length)},N2=function(e){return function(t,n,r){var o,i=X0(t),a=T2(i),u=A2(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},k2={includes:N2(!0),indexOf:N2(!1)},B2=k2.indexOf,I2=H0([].push),F2=function(e,t){var n,r=X0(e),o=0,i=[];for(n in r)!A1(a2,n)&&A1(r,n)&&I2(i,n);for(;t.length>o;)A1(r,n=t[o++])&&(~B2(i,n)||I2(i,n));return i},P2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],R2=P2.concat("length","prototype"),_2={f:Object.getOwnPropertyNames||function(e){return F2(e,R2)}},L2={f:Object.getOwnPropertySymbols},j2=H0([].concat),M2=e1("Reflect","ownKeys")||function(e){var t=_2.f(W1(e)),n=L2.f;return n?j2(t,n(e)):t},z2=function(e,t){for(var n=M2(t),r=Y1.f,o=$1.f,i=0;i<n.length;i++){var a=n[i];A1(e,a)||r(e,a,o(t,a))}},H2=/#|\.prototype\./,U2=function(e,t){var n=V2[$2(e)];return n==W2||n!=G2&&(Z0(t)?N0(t):!!t)},$2=U2.normalize=function(e){return String(e).replace(H2,".").toLowerCase()},V2=U2.data={},G2=U2.NATIVE="N",W2=U2.POLYFILL="P",q2=U2,K2=$1.f,Y2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?T0:l?T0[u]||b1(u,{}):(T0[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=K2(n,r))&&a.value:n[r],!q2(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;z2(i,o)}(e.sham||o&&o.sham)&&X1(i,"sham",!0),b2(n,r,i,e)}},X2={};X2[P1("toStringTag")]="z";var Z2="[object z]"===String(X2),J2=P1("toStringTag"),Q2=T0.Object,e4="Arguments"==V0(function(){return arguments}()),t4=Z2?V0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Q2(e),J2))?n:e4?V0(t):"Object"==(r=V0(t))&&Z0(t.callee)?"Arguments":r},n4=T0.String,r4=function(e){if("Symbol"===t4(e))throw TypeError("Cannot convert a Symbol value to a string");return n4(e)},o4=/"/g,i4=H0("".replace);Y2({target:"String",proto:!0,forced:("anchor",N0((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return"a","name",t=e,n=r4(Y0(this)),r="<a",(r+=' name="'+i4(r4(t),o4,""")+'"')+">"+n+"</a>";var t,n,r}});var a4,u4=function(){var e=W1(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},s4=T0.RegExp,l4=N0((function(){var e=s4("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),c4=l4||N0((function(){return!s4("a","y").sticky})),f4={BROKEN_CARET:l4||N0((function(){var e=s4("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:c4,UNSUPPORTED_Y:l4},d4=Object.keys||function(e){return F2(e,P2)},p4=k0?Object.defineProperties:function(e,t){W1(e);for(var n,r=X0(t),o=d4(t),i=o.length,a=0;i>a;)Y1.f(e,n=o[a++],r[n]);return e},h4=e1("document","documentElement"),v4=i2("IE_PROTO"),g4=function(){},y4=function(e){return"<script>"+e+"<\/script>"},m4=function(e){e.write(y4("")),e.close();var t=e.parentWindow.Object;return e=null,t},b4=function(){try{a4=new ActiveXObject("htmlfile")}catch(e){}var e,t;b4="undefined"!=typeof document?document.domain&&a4?m4(a4):((t=z1("iframe")).style.display="none",h4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(y4("document.F=Object")),e.close(),e.F):m4(a4);for(var n=P2.length;n--;)delete b4.prototype[P2[n]];return b4()};a2[v4]=!0;var E4,w4,S4=Object.create||function(e,t){var n;return null!==e?(g4.prototype=W1(e),n=new g4,g4.prototype=null,n[v4]=e):n=b4(),void 0===t?n:p4(n,t)},C4=T0.RegExp,D4=N0((function(){var e=C4(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),A4=T0.RegExp,x4=N0((function(){var e=A4("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),O4=h2.get,T4=w1("native-string-replace",String.prototype.replace),N4=RegExp.prototype.exec,k4=N4,B4=H0("".charAt),I4=H0("".indexOf),F4=H0("".replace),P4=H0("".slice),R4=(w4=/b*/g,I0(N4,E4=/a/,"a"),I0(N4,w4,"a"),0!==E4.lastIndex||0!==w4.lastIndex),_4=f4.BROKEN_CARET,L4=void 0!==/()??/.exec("")[1];(R4||L4||_4||D4||x4)&&(k4=function(e){var t,n,r,o,i,a,u,s=this,l=O4(s),c=r4(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=I0(k4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=_4&&s.sticky,h=I0(u4,s),v=s.source,g=0,y=c;if(p&&(h=F4(h,"y",""),-1===I4(h,"g")&&(h+="g"),y=P4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==B4(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),L4&&(n=new RegExp("^"+v+"$(?!\\s)",h)),R4&&(r=s.lastIndex),o=I0(N4,p?n:s,y),p?o?(o.input=P4(o.input,g),o[0]=P4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:R4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),L4&&o&&o.length>1&&I0(T4,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=S4(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var j4=k4;Y2({target:"RegExp",proto:!0,forced:/./.exec!==j4},{exec:j4});var M4=Array.isArray||function(e){return"Array"==V0(e)},z4=function(){},H4=[],U4=e1("Reflect","construct"),$4=/^\s*(?:class|function)\b/,V4=H0($4.exec),G4=!$4.exec(z4),W4=function(e){if(!Z0(e))return!1;try{return U4(z4,H4,e),!0}catch(e){return!1}},q4=!U4||N0((function(){var e;return W4(W4.call)||!W4(Object)||!W4((function(){e=!0}))||e}))?function(e){if(!Z0(e))return!1;switch(t4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return G4||!!V4($4,t2(e))}:W4,K4=function(e,t,n){var r=L1(t);r in e?Y1.f(e,r,_0(0,n)):e[r]=n},Y4=P1("species"),X4=function(e){return u1>=51||!N0((function(){var t=[];return(t.constructor={})[Y4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Z4=H0([].slice),J4=X4("slice"),Q4=P1("species"),e6=T0.Array,t6=Math.max;Y2({target:"Array",proto:!0,forced:!J4},{slice:function(e,t){var n,r,o,i=X0(this),a=T2(i),u=A2(e,a),s=A2(void 0===t?a:t,a);if(M4(i)&&(n=i.constructor,(q4(n)&&(n===e6||M4(n.prototype))||J0(n)&&null===(n=n[Q4]))&&(n=void 0),n===e6||void 0===n))return Z4(i,u,s);for(r=new(void 0===n?e6:n)(t6(s-u,0)),o=0;u<s;u++,o++)u in i&&K4(r,o,i[u]);return r.length=o,r}});var n6=function(){return n6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n6.apply(this,arguments)};function r6(e,t){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)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function o6(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i6(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function a6(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var u6=P1("unscopables"),s6=Array.prototype;null==s6[u6]&&Y1.f(s6,u6,{configurable:!0,value:S4(null)});var l6,c6,f6,d6=function(e){s6[u6][e]=!0},p6={},h6=!N0((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),v6=i2("IE_PROTO"),g6=T0.Object,y6=g6.prototype,m6=h6?g6.getPrototypeOf:function(e){var t=C1(e);if(A1(t,v6))return t[v6];var n=t.constructor;return Z0(n)&&t instanceof n?n.prototype:t instanceof g6?y6:null},b6=P1("iterator"),E6=!1;[].keys&&("next"in(f6=[].keys())?(c6=m6(m6(f6)))!==Object.prototype&&(l6=c6):E6=!0);var w6=null==l6||N0((function(){var e={};return l6[b6].call(e)!==e}));w6&&(l6={}),Z0(l6[b6])||b2(l6,b6,(function(){return this}));var S6={IteratorPrototype:l6,BUGGY_SAFARI_ITERATORS:E6},C6=Y1.f,D6=P1("toStringTag"),A6=function(e,t,n){e&&!A1(e=n?e:e.prototype,D6)&&C6(e,D6,{configurable:!0,value:t})},x6=S6.IteratorPrototype,O6=function(){return this},T6=T0.String,N6=T0.TypeError,k6=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=H0(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return W1(n),function(e){if("object"==typeof e||Z0(e))return e;throw N6("Can't set "+T6(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),B6=m2.PROPER,I6=m2.CONFIGURABLE,F6=S6.IteratorPrototype,P6=S6.BUGGY_SAFARI_ITERATORS,R6=P1("iterator"),_6=function(){return this},L6=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=S4(x6,{next:_0(1,n)}),A6(e,o,!1),p6[o]=O6}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!P6&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[R6]||p["@@iterator"]||o&&p[o],v=!P6&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=m6(g.call(new e)))!==Object.prototype&&u.next&&(m6(u)!==F6&&(k6?k6(u,F6):Z0(u[R6])||b2(u,R6,_6)),A6(u,f,!0)),B6&&"values"==o&&h&&"values"!==h.name&&(I6?X1(p,"name","values"):(d=!0,v=function(){return I0(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(P6||d||!(l in p))&&b2(p,l,s[l]);else Y2({target:t,proto:!0,forced:P6||d},s);return p[R6]!==v&&b2(p,R6,v,{name:o}),p6[t]=v,s},j6=h2.set,M6=h2.getterFor("Array Iterator"),z6=L6(Array,"Array",(function(e,t){j6(this,{type:"Array Iterator",target:X0(e),index:0,kind:t})}),(function(){var e=M6(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");p6.Arguments=p6.Array,d6("keys"),d6("values"),d6("entries");var H6=Z2?{}.toString:function(){return"[object "+t4(this)+"]"};Z2||b2(Object.prototype,"toString",H6,{unsafe:!0});var U6=H0("".charAt),$6=H0("".charCodeAt),V6=H0("".slice),G6=function(e){return function(t,n){var r,o,i=r4(Y0(t)),a=S2(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=$6(i,a))<55296||r>56319||a+1===u||(o=$6(i,a+1))<56320||o>57343?e?U6(i,a):r:e?V6(i,a,a+2):o-56320+(r-55296<<10)+65536}},W6={codeAt:G6(!1),charAt:G6(!0)},q6=W6.charAt,K6=h2.set,Y6=h2.getterFor("String Iterator");L6(String,"String",(function(e){K6(this,{type:"String Iterator",string:r4(e),index:0})}),(function(){var e,t=Y6(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=q6(n,r),t.index+=e.length,{value:e,done:!1})}));var X6=T0.Array,Z6=Math.max,J6=function(e,t,n){for(var r=T2(e),o=A2(t,r),i=A2(void 0===n?r:n,r),a=X6(Z6(i-o,0)),u=0;o<i;o++,u++)K4(a,u,e[o]);return a.length=u,a},Q6=_2.f,e3="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],t3={f:function(e){return e3&&"Window"==V0(e)?function(e){try{return Q6(e)}catch(e){return J6(e3)}}(e):Q6(X0(e))}},n3=N0((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),r3=Object.isExtensible,o3=N0((function(){r3(1)}))||n3?function(e){return!!J0(e)&&(!n3||"ArrayBuffer"!=V0(e))&&(!r3||r3(e))}:r3,i3=!N0((function(){return Object.isExtensible(Object.preventExtensions({}))})),a3=D0((function(e){var t=Y1.f,n=!1,r=N1("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=_2.f,t=H0([].splice),o={};o[r]=1,e(o).length&&(_2.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Y2({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:t3.f}))},fastKey:function(e,t){if(!J0(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!A1(e,r)){if(!o3(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!A1(e,r)){if(!o3(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return i3&&n&&o3(e)&&!A1(e,r)&&i(e),e}};a2[r]=!0})),u3=H0(H0.bind),s3=function(e,t){return v1(e),void 0===t?e:u3?u3(e,t):function(){return e.apply(t,arguments)}},l3=P1("iterator"),c3=Array.prototype,f3=P1("iterator"),d3=function(e){if(null!=e)return g1(e,f3)||g1(e,"@@iterator")||p6[t4(e)]},p3=T0.TypeError,h3=function(e,t,n){var r,o;W1(e);try{if(!(r=g1(e,"return"))){if("throw"===t)throw n;return n}r=I0(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return W1(r),n},v3=T0.TypeError,g3=function(e,t){this.stopped=e,this.result=t},y3=g3.prototype,m3=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=s3(t,f),g=function(e){return r&&h3(r,"normal",e),new g3(!0,e)},y=function(e){return d?(W1(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=d3(e)))throw v3(p1(e)+" is not iterable");if(void 0!==(c=o)&&(p6.Array===c||c3[l3]===c)){for(i=0,a=T2(e);a>i;i++)if((u=y(e[i]))&&t1(y3,u))return u;return new g3(!1)}r=function(e,t){var n=arguments.length<2?d3(e):t;if(v1(n))return W1(I0(n,e));throw p3(p1(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=I0(s,r)).done;){try{u=y(l.value)}catch(e){h3(r,"throw",e)}if("object"==typeof u&&u&&t1(y3,u))return u}return new g3(!1)},b3=T0.TypeError,E3=function(e,t){if(t1(t,e))return e;throw b3("Incorrect invocation")},w3=P1("iterator"),S3=!1;try{var C3=0,D3={next:function(){return{done:!!C3++}},return:function(){S3=!0}};D3[w3]=function(){return this},Array.from(D3,(function(){throw 2}))}catch(Ml){}var A3=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=T0[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=H0(u[e]);b2(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!J0(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!J0(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!J0(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(q2(e,!Z0(a)||!(o||u.forEach&&!N0((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),a3.enable();else if(q2(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=N0((function(){f.has(1)})),h=function(e,t){if(!S3)return!1;var n=!1;try{var r={};r[w3]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),v=!o&&N0((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){E3(e,u);var n=function(e,t,n){var r,o;return k6&&Z0(r=t.constructor)&&r!==n&&J0(o=r.prototype)&&o!==n.prototype&&k6(e,o),e}(new a,e,s);return null!=t&&m3(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Y2({global:!0,forced:s!=a},l),A6(s,e),o||n.setStrong(s,e,r),s},x3=function(e,t,n){for(var r in t)b2(e,r,t[r],n);return e},O3=P1("species"),T3=T0.Array,N3=function(e,t){return new(function(e){var t;return M4(e)&&(t=e.constructor,(q4(t)&&(t===T3||M4(t.prototype))||J0(t)&&null===(t=t[O3]))&&(t=void 0)),void 0===t?T3:t}(e))(0===t?0:t)},k3=H0([].push),B3=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=C1(s),v=q0(h),g=s3(l,c),y=T2(v),m=0,b=f||N3,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:k3(E,d)}else switch(e){case 4:return!1;case 7:k3(E,d)}return i?-1:r||o?o:E}},I3={forEach:B3(0),map:B3(1),filter:B3(2),some:B3(3),every:B3(4),find:B3(5),findIndex:B3(6),filterReject:B3(7)},F3=a3.getWeakData,P3=h2.set,R3=h2.getterFor,_3=I3.find,L3=I3.findIndex,j3=H0([].splice),M3=0,z3=function(e){return e.frozen||(e.frozen=new H3)},H3=function(){this.entries=[]},U3=function(e,t){return _3(e.entries,(function(e){return e[0]===t}))};H3.prototype={get:function(e){var t=U3(this,e);if(t)return t[1]},has:function(e){return!!U3(this,e)},set:function(e,t){var n=U3(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=L3(this.entries,(function(t){return t[0]===e}));return~t&&j3(this.entries,t,1),!!~t}};var $3={getConstructor:function(e,t,n,r){var o=e((function(e,o){E3(e,i),P3(e,{type:t,id:M3++,frozen:void 0}),null!=o&&m3(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=R3(t),u=function(e,t,n){var r=a(e),o=F3(W1(t),!0);return!0===o?z3(r).set(t,n):o[r.id]=n,e};return x3(i,{delete:function(e){var t=a(this);if(!J0(e))return!1;var n=F3(e);return!0===n?z3(t).delete(e):n&&A1(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!J0(e))return!1;var n=F3(e);return!0===n?z3(t).has(e):n&&A1(n,t.id)}}),x3(i,n?{get:function(e){var t=a(this);if(J0(e)){var n=F3(e);return!0===n?z3(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}};A3("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),$3);var V3={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},G3=z1("span").classList,W3=G3&&G3.constructor&&G3.constructor.prototype,q3=W3===Object.prototype?void 0:W3,K3=P1("iterator"),Y3=P1("toStringTag"),X3=z6.values,Z3=function(e,t){if(e){if(e[K3]!==X3)try{X1(e,K3,X3)}catch(t){e[K3]=X3}if(e[Y3]||X1(e,Y3,t),V3[t])for(var n in z6)if(e[n]!==z6[n])try{X1(e,n,z6[n])}catch(t){e[n]=z6[n]}}};for(var J3 in V3)Z3(T0[J3]&&T0[J3].prototype,J3);Z3(q3,"DOMTokenList");var Q3,e5=h2.enforce,t5=!T0.ActiveXObject&&"ActiveXObject"in T0,n5=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r5=A3("WeakMap",n5,$3);if(r2&&t5){Q3=$3.getConstructor(n5,"WeakMap",!0),a3.enable();var o5=r5.prototype,i5=H0(o5.delete),a5=H0(o5.has),u5=H0(o5.get),s5=H0(o5.set);x3(o5,{delete:function(e){if(J0(e)&&!o3(e)){var t=e5(this);return t.frozen||(t.frozen=new Q3),i5(this,e)||t.frozen.delete(e)}return i5(this,e)},has:function(e){if(J0(e)&&!o3(e)){var t=e5(this);return t.frozen||(t.frozen=new Q3),a5(this,e)||t.frozen.has(e)}return a5(this,e)},get:function(e){if(J0(e)&&!o3(e)){var t=e5(this);return t.frozen||(t.frozen=new Q3),a5(this,e)?u5(this,e):t.frozen.get(e)}return u5(this,e)},set:function(e,t){if(J0(e)&&!o3(e)){var n=e5(this);n.frozen||(n.frozen=new Q3),a5(this,e)?s5(this,e,t):n.frozen.set(e,t)}else s5(this,e,t);return this}})}var l5=new WeakMap,c5=new WeakMap,f5=I3.map,d5=X4("map");Y2({target:"Array",proto:!0,forced:!d5},{map:function(e){return f5(this,e,arguments.length>1?arguments[1]:void 0)}});var p5=k2.includes;Y2({target:"Array",proto:!0},{includes:function(e){return p5(this,e,arguments.length>1?arguments[1]:void 0)}}),d6("includes");var h5=P1("match"),v5=function(e){var t;return J0(e)&&(void 0!==(t=e[h5])?!!t:"RegExp"==V0(e))},g5=T0.TypeError,y5=function(e){if(v5(e))throw g5("The method doesn't accept regular expressions");return e},m5=P1("match"),b5=H0("".indexOf);Y2({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[m5]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~b5(r4(Y0(this)),r4(y5(e)),arguments.length>1?arguments[1]:void 0)}});var E5={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function w5(e){return!Nf.isEditor(e)&&Cf.isElement(e)&&"type"in e}function S5(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=E5,o=t.map((function(e){var t;return null===(t=null==r?void 0:r.blocks)||void 0===t?void 0:t[e]}));return function(e){return w5(e)&&o.includes(e.type)}}function C5(e,t){for(var n=i6(t,2),r=n[0],o=n[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=i6(Rf.common(e,r,o),2),s=u[0],l=u[1];return!!S5.apply(void 0,a6([e],i6(i)))(s,l)||!!Nf.above(e,{match:S5.apply(void 0,a6([e],i6(i))),at:l})}function D5(e,t){var n,r;void 0===t&&(t={});var o=[];try{for(var i=o6(function(e,t){var n,r,o,i,a,u,s,l,c,f,d,p,h,v,g,y,m,b;return void 0===t&&(t={}),r6(this,(function(E){switch(E.label){case 0:if(n=i6(Nf.nodes(e,{match:S5(e,"table"),at:t.at}),1),!(r=n[0]))return[2,[]];o=i6(r,2),i=o[1],E.label=1;case 1:E.trys.push([1,6,7,8]),a=o6(Nf.nodes(e,{match:S5(e,"table"),at:i})),u=a.next(),E.label=2;case 2:if(u.done)return[3,5];s=i6(u.value,2),l=s[1],c=[];try{for(m=void 0,f=o6(Nf.nodes(e,{match:S5(e,"tr"),at:l})),d=f.next();!d.done;d=f.next())p=i6(d.value,2),h=p[1],c.push(a6([],i6(Nf.nodes(e,{match:S5(e,"th","td"),at:h}))))}catch(e){m={error:e}}finally{try{d&&!d.done&&(b=f.return)&&b.call(f)}finally{if(m)throw m.error}}return[4,c];case 3:E.sent(),E.label=4;case 4:return u=a.next(),[3,2];case 5:return[3,8];case 6:return v=E.sent(),g={error:v},[3,8];case 7:try{u&&!u.done&&(y=a.return)&&y.call(a)}finally{if(g)throw g.error}return[7];case 8:return[2]}}))}(e,{at:t.at})),a=i.next();!a.done;a=i.next()){for(var u=a.value,s=[],l=0;l<u.length;l++){s[l]||(s[l]=[]);for(var c=0;c<u[l].length;c++)for(var f=i6(u[l][c],1)[0],d=f.rowSpan,p=void 0===d?1:d,h=f.colSpan,v=void 0===h?1:h,g=0;g<v+0;g++)for(var y=0;y<p;y++)s[l+y]||(s[l+y]=[]),s[l+y][c+g]||(s[l+y][c+g]=[u[l+y][c+g],{rtl:g-0+1,ltr:v-g+0,ttb:y+1,btt:p-y}])}o.push.apply(o,a6([],i6(s)))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var A5=function(){function e(e,t){this.x=e,this.y=t}return e.valueOf=function(e,t){return new this(e,t)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}(),x5={isInTable:function(e,t){return void 0===t&&(t={}),!!i6(Nf.nodes(e,{match:S5(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,n,r,o,i,a,u,s;return r6(this,(function(l){switch(l.label){case 0:t=l5.get(e),n=0,l.label=1;case 1:if(!(t&&n<t.length))return[3,4];for(r=[],o=0;o<t[n].length;o++)i=i6(t[n][o],2),a=i[0],u=i[1],s=u.ltr,1===u.ttb&&r.push(a),o+=s-1;return[4,r];case 2:l.sent(),l.label=3;case 3:return n++,[3,1];case 4:return[2]}}))},unselect:function(e){var t;c5.delete(e),l5.delete(e),null===(t=document.getSelection())||void 0===t||t.removeAllRanges()},isSelected:function(e,t){var n=c5.get(e);return!!n&&n.has(t)}};function O5(e){var t=e.selection;if(null==t)return!1;var n=i6(Nf.nodes(e,{match:function(e){return _N.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=i6(n,2)[1],o=Nf.start(e,r);if($f.equals(t.anchor,o))return!0}return!1}var T5=I3.find,N5=!0;"find"in[]&&Array(1).find((function(){N5=!1})),Y2({target:"Array",proto:!0,forced:N5},{find:function(e){return T5(this,e,arguments.length>1?arguments[1]:void 0)}}),d6("find");var k5=Function.prototype,B5=k5.apply,I5=k5.bind,F5=k5.call,P5="object"==typeof Reflect&&Reflect.apply||(I5?F5.bind(B5):function(){return F5.apply(B5,arguments)}),R5=P1("species"),_5=RegExp.prototype,L5=function(e,t,n,r){var o=P1(e),i=!N0((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!N0((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[R5]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=H0(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=H0(e),s=t.exec;return s===j4||s===_5.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));b2(String.prototype,e,s[0]),b2(_5,o,s[1])}r&&X1(_5[o],"sham",!0)},j5=T0.TypeError,M5=P1("species"),z5=W6.charAt,H5=function(e,t,n){return t+(n?z5(e,t).length:1)},U5=T0.TypeError,$5=function(e,t){var n=e.exec;if(Z0(n)){var r=I0(n,e,t);return null!==r&&W1(r),r}if("RegExp"===V0(e))return I0(j4,e,t);throw U5("RegExp#exec called on incompatible receiver")},V5=f4.UNSUPPORTED_Y,G5=Math.min,W5=[].push,q5=H0(/./.exec),K5=H0(W5),Y5=H0("".slice);L5("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=r4(Y0(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!v5(e))return I0(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=I0(j4,f,r))&&!((a=f.lastIndex)>c&&(K5(s,Y5(r,c,i.index)),i.length>1&&i.index<r.length&&P5(W5,s,J6(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&q5(f,"")||K5(s,""):K5(s,Y5(r,c)),s.length>o?J6(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:I0(t,this,e,n)}:t,[function(t,n){var o=Y0(this),i=null==t?void 0:g1(t,e);return i?I0(i,t,o,n):I0(r,r4(o),t,n)},function(e,o){var i=W1(this),a=r4(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=W1(e).constructor;return void 0===r||null==(n=W1(r)[M5])?t:function(e){if(q4(e))return e;throw j5(p1(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(V5?"g":"y"),f=new s(V5?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===$5(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=V5?0:h;var g,y=$5(f,V5?Y5(a,h):a);if(null===y||(g=G5(O2(f.lastIndex+(V5?h:0)),a.length))===p)h=H5(a,h,l);else{if(K5(v,Y5(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(K5(v,y[m]),v.length===d)return v;h=p=g}}return K5(v,Y5(a,p)),v}]}),!!N0((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),V5);var X5="\t\n\v\f\r \u2028\u2029\ufeff",Z5=H0("".replace),J5="["+X5+"]",Q5=RegExp("^"+J5+J5+"*"),e8=RegExp(J5+J5+"*$"),t8=function(e){return function(t){var n=r4(Y0(t));return 1&e&&(n=Z5(n,Q5,"")),2&e&&(n=Z5(n,e8,"")),n}},n8={start:t8(1),end:t8(2),trim:t8(3)},r8=m2.PROPER,o8=n8.trim;function i8(e){return e.length?e[0].tagName.toLowerCase():""}function a8(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}Y2({target:"String",proto:!0,forced:function(e){return N0((function(){return!!X5[e]()||"
"!=="
"[e]()||r8&&X5[e].name!==e}))}("trim")},{trim:function(){return o8(this)}}),Y2({global:!0},{globalThis:T0}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Wp&&(Mp.fn.val=Wp),rh&&(Mp.fn.html=rh),Gp&&(Mp.fn.dataset=Gp),zp&&(Mp.fn.addClass=zp),Hp&&(Mp.fn.removeClass=Hp),fh&&(Mp.fn.children=fh),th&&(Mp.fn.each=th),ch&&(Mp.fn.find=ch);var u8=null,s8=!1,l8=!1,c8=0,f8=0,d8=null,p8=Mp(window);p8.on("mousedown",(function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))s8=!0;else if("DIV"==t.tagName&&t.closest(".column-resizer-item")){if(null==d8)return;var n=i6(Nf.nodes(d8,{match:S5(d8,"table")}),1),r=i6(n[0],1)[0],o=r.width,i=void 0===o?"auto":o,a=r.columnWidths,u=void 0===a?[]:a,s=r.resizingIndex,l=void 0===s?-1:s;if("100%"==i)return;l8=!0;var c=e.clientX;c8=c,f8=u[l],document.body.style.cursor="col-resize",e.preventDefault()}p8.on("mousemove",h8),p8.on("mouseup",v8)}));var h8=ev((function(e){if(l8&&null!=d8){e.preventDefault();var t=e.clientX,n=f8+(t-c8);(n=Math.floor(100*n)/100)<30&&(n=30);var r=i6(Nf.nodes(d8,{match:S5(d8,"table")}),1),o=i6(r[0],1)[0],i=o.columnWidths,a=void 0===i?[]:i,u=o.resizingIndex,s=void 0===u?-1:u,l=o.scrollWidth,c=void 0===l?0:l,f=a.reduce((function(e,t){return e+t}),0),d=f-a[s];f>c&&d+n>c&&(n=c-d+.5);var p=a6([],i6(a)).map((function(e){return Math.floor(e)}));p[s]=n,md.setNodes(d8,{columnWidths:p},{mode:"highest"})}}),100);function v8(e){s8=!1,l8=!1,d8=null,document.body.style.cursor="",p8.off("mousemove",h8),p8.off("mouseup",v8)}function g8(e,t){"mouseenter"===t.type?md.setNodes(e,{isResizing:!0},{mode:"highest"}):md.setNodes(e,{isResizing:!1},{mode:"highest"})}function y8(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function m8(e){return y8(e).every((function(e){return!!e.isHeader}))}var b8={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(qf.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=_N.findPath(e,t),a=Nf.start(e,i),u=Nf.end(e,i),s=$f.compare(r,u)<=0&&$f.compare(r,a)>=0,l=$f.compare(o,u)<=0&&$f.compare(o,a)>=0;return!!(s&&l&&Mf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e,i=o.width,a=void 0===i?"auto":i,u=o.height,s=o.columnWidths,l=void 0===s?[]:s,c=o.scrollWidth,f=void 0===c?0:c,d=o.isHoverCellBorder,p=o.resizingIndex,h=o.isResizing,v=_N.isNodeSelected(n,e),g=i6(x5.selection(n),1)[0],y=function(e){var t,n,r=[],o=e.reduce((function(e,t){return e+t}),0);try{for(var i=o6(e),a=i.next();!a.done;a=i.next()){var u=a.value;r.push(u/o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(l),m=Fv("div",{className:"table-container","data-selected":v,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){t.target.closest('[data-block-type="table-cell"]')&&x5.unselect(n);var r=_N.findPath(n,e),o=Nf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Fv("table",{width:a,contentEditable:r,className:"table "+(g?"table-selection-none":""),style:{width:"100%"==a?"":l.reduce((function(e,t){return e+t}),0)+"px"},on:{mousemove:Zg((function(t){return function(e,t,n){if(!e.isDisabled()&&!s8&&!l8){var r=t,o=r.width,i=void 0===o?"auto":o,a=r.columnWidths,u=void 0===a?[]:a,s=r.isHoverCellBorder,l=r.resizingIndex;if("100%"!=i){var c=n.clientX,f=n.target;if(f instanceof HTMLElement&&c>(h=f.getBoundingClientRect()).x+5&&c<h.x+h.width-5)return void(s&&md.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(f instanceof HTMLElement){var d=f.closest(".table");if(d)for(var p=n.clientX,h=d.getBoundingClientRect(),v=function(e){var t,n,r=[],o=0;try{for(var i=o6(e),a=i.next();!a.done;a=i.next())o+=a.value,r.push(o)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(u),g=0;g<v.length;g++)if(p-h.x>=v[g]-5&&p-h.x<v[g]+5){if(l==g)return;return void md.setNodes(e,{isHoverCellBorder:!0,resizingIndex:g},{mode:"highest"})}}1==s&&md.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}}(n,e,t)}),25)}},Fv("colgroup",{contentEditable:!1},l.map((function(e){return Fv("col",{width:e})}))),Fv("tbody",null,t)),Fv("div",{className:"column-resizer",contenteditable:"false"},l.map((function(e,t){var r=e;return"100%"==a&&(r=y[t]*f),Fv("div",{className:"column-resizer-item",style:{minWidth:r+"px"}},Fv("div",{className:"resizer-line-hotzone "+(d&&t==p?"visible ":"")+(h&&t==p?"highlight":""),style:{height:u+"px"},on:{mouseenter:function(e){return g8(n,e)},mouseleave:function(e){return g8(n,e)},mousedown:function(e){return function(e,t){l8||(d8=e)}(n)}}},Fv("div",{className:"resizer-line"})))})))),b=pv("div",{hook:{insert:function(e){var t=e.elm;return function(e,t){if(t instanceof HTMLElement){var n=t.querySelector("table");n&&(u8=new ResizeObserver((function(t){var n=i6(t,1)[0].contentRect;md.setNodes(e,{scrollWidth:n.width,height:n.height},{mode:"highest"})}))).observe(n)}}(n,t)},destroy:function(){u8&&(null==u8||u8.disconnect(),u8=null)}}},m);return b}},E8={type:"table-row",renderElem:function(e,t,n){return Fv("tr",null,t)}},w8={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=_N.getParentNode(e,t);if(null==n)return!1;var r=_N.getParentNode(e,n);return null!=r&&y8(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader,c=void 0!==l&&l,f=o.hidden,d=void 0!==f&&f;return Fv(r&&c?"th":"td",{colSpan:a,rowSpan:s,"data-block-type":"table-cell",className:x5.isSelected(n,e)?"w-e-selected":"",style:{display:d?"none":""}},t)}},S8={selector:"table",preParseHtml:function(e){var t=Mp(e);if("table"!==i8(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},C8=I3.filter,D8=X4("filter");Y2({target:"Array",proto:!0,forced:!D8},{filter:function(e){return C8(this,e,arguments.length>1?arguments[1]:void 0)}});var A8=Math.floor,x8=H0("".charAt),O8=H0("".replace),T8=H0("".slice),N8=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,k8=/\$([$&'`]|\d{1,2})/g,B8=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=k8;return void 0!==o&&(o=C1(o),s=N8),O8(i,s,(function(i,s){var l;switch(x8(s,0)){case"$":return"$";case"&":return e;case"`":return T8(t,0,n);case"'":return T8(t,a);case"<":l=o[T8(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=A8(c/10);return 0===f?i:f<=u?void 0===r[f-1]?x8(s,1):r[f-1]+x8(s,1):i}l=r[c-1]}return void 0===l?"":l}))},I8=P1("replace"),F8=Math.max,P8=Math.min,R8=H0([].concat),_8=H0([].push),L8=H0("".indexOf),j8=H0("".slice),M8="$0"==="a".replace(/./,"$0"),z8=!!/./[I8]&&""===/./[I8]("a","$0");L5("replace",(function(e,t,n){var r=z8?"$":"$0";return[function(e,n){var r=Y0(this),o=null==e?void 0:g1(e,I8);return o?I0(o,e,r,n):I0(t,r4(r),e,n)},function(e,o){var i=W1(this),a=r4(e);if("string"==typeof o&&-1===L8(o,r)&&-1===L8(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Z0(o);s||(o=r4(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=$5(i,a);if(null===d)break;if(_8(f,d),!l)break;""===r4(d[0])&&(i.lastIndex=H5(a,O2(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=r4((d=f[g])[0]),m=F8(P8(S2(d.index),a.length),0),b=[],E=1;E<d.length;E++)_8(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=R8([y],b,m,a);void 0!==w&&_8(S,w);var C=r4(P5(o,void 0,S))}else C=B8(y,a,m,b,w,o);m>=v&&(h+=j8(a,v,m)+C,v=m+y.length)}return h+j8(a,v)}]}),!!N0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!M8||z8),Y2({target:"Array",proto:!0},{fill:function(e){for(var t=C1(this),n=T2(t),r=arguments.length,o=A2(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:A2(i,n);a>o;)t[o++]=e;return t}}),d6("fill");var H8={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a="none"===a8(r,"display"),u=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===i8(r),colSpan:o,rowSpan:i,width:u,children:t,hidden:a}}},U8={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===_N.getNodeType(e)}))}}},$8={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r,o=Mp(e),i="auto";"100%"===a8(o,"width")&&(i="100%"),"100%"===o.attr("width")&&(i="100%");var a={type:"table",width:i,children:t.filter((function(e){return"table-row"===_N.getNodeType(e)}))},u=null===(r=o.find("tr")[0])||void 0===r?void 0:r.children.length;return u>0&&(a.columnWidths=Array(u).fill(180)),a}},V8=m2.PROPER,G8=RegExp.prototype,W8=G8.toString,q8=H0(u4),K8=N0((function(){return"/a/b"!=W8.call({source:"a",flags:"b"})})),Y8=V8&&"toString"!=W8.name;(K8||Y8)&&b2(RegExp.prototype,"toString",(function(){var e=W1(this),t=r4(e.source),n=e.flags;return"/"+t+"/"+r4(void 0===n&&t1(G8,e)&&!("flags"in G8)?q8(e):n)}),{unsafe:!0});var X8=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!_N.getSelectedElems(e).some((function(t){var n=_N.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Mp('<div class="w-e-panel-content-table"></div>'),r=Mp("<span>0 × 0</span>"),o=Mp("<table></table>"),i=0;i<10;i++){for(var a=Mp("<tr></tr>"),u=0;u<10;u++){var s=Mp("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=Mp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){Mp(e).children().each((function(e){var t=Mp(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Mp(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){_N.isSelectedEmptyParagraph(e)&&md.removeNodes(e,{mode:"highest"}),0===e.children.length&&md.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"});var i=function(e,t){for(var n=[],r=Array(t).fill(60),o=0;o<e;o++){for(var i=[],a=0;a<t;a++){var u={type:"table-cell",children:[{text:""}]};0===o&&(u.isHeader=!0),i.push(u)}n.push({type:"table-row",children:i})}return{type:"table",width:"auto",children:n,columnWidths:r}}(r,o);md.insertNodes(e,i,{mode:"highest"})}},e}(),Z8=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==_N.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||md.removeNodes(e,{mode:"highest"})},e}(),J8=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==_N.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=i6(Nf.nodes(e,{match:function(e){return _N.checkNodeType(e,"table-cell")},universal:!0}),1),r=i6(n[0],2),o=r[0],i=r[1],a=_N.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){var s=D5(e),l=0;e:for(var c=0;c<s.length;c++)for(var f=0;f<s[c].length;f++){var d=i6(s[c][f],1),p=i6(d[0],2)[1];if(Mf.equals(i,p)){l=c;break e}}Nf.withoutNormalizing(e,(function(){for(var t=l+1,n=t>=0&&t<s.length,r=[],o=0;n&&o<s[l].length;o++){var a=i6(s[l][o],2)[1],c=a.ttb,f=a.btt;if(c>1||f>1){if(1==f)continue;var d=i6(s[l-(c-1)][o],1),p=i6(d[0],2),h=p[0],v=p[1],g=h.rowSpan||1;r.push(o),h.hidden||md.setNodes(e,{rowSpan:g+1},{at:v})}}for(var y={type:"table-row",children:[]},m=0;m<u;m++){var b={type:"table-cell",hidden:r.includes(m),children:[{text:""}]};y.children.push(b)}var E=Mf.parent(i),w=Mf.next(E);md.insertNodes(e,y,{at:w})}))}}},e}(),Q8=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==_N.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=i6(Nf.nodes(e,{match:function(e){return _N.checkNodeType(e,"table-row")},universal:!0}),1),r=i6(n[0],2),o=r[0],i=r[1],a=_N.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)md.removeNodes(e,{mode:"highest"});else{var u=i6(Nf.nodes(e,{match:function(e){return _N.checkNodeType(e,"table-cell")},universal:!0}),1),s=i6(u[0],2)[1],l=D5(e),c=0;e:for(var f=0;f<l.length;f++)for(var d=0;d<l[f].length;d++){var p=i6(l[f][d],1),h=i6(p[0],2)[1];if(Mf.equals(s,h)){c=f;break e}}Nf.withoutNormalizing(e,(function(){for(var t,n,r=0;r<l[c].length;r++){var o=i6(l[c][r],2),a=i6(o[0],1)[0].hidden,u=o[1],s=u.ttb,f=u.btt;if(s>1||f>1){var d=i6(l[c-(s-1)][r],1),p=i6(d[0],2),h=p[0],v=h.rowSpan,g=void 0===v?1:v,y=h.colSpan,m=void 0===y?1:y,b=p[1];if(a)md.setNodes(e,{rowSpan:Math.max(g-1,1),colSpan:m},{at:b});else{var E=i6(l[c+1][r],1),w=i6(E[0],2)[1];md.setNodes(e,{rowSpan:g-1,colSpan:m,hidden:!1},{at:w});try{for(var S=(t=void 0,o6(Rf.children(e,b,{reverse:!0}))),C=S.next();!C.done;C=S.next()){var D=i6(C.value,2)[1];md.moveNodes(e,{to:a6(a6([],i6(w)),[0]),at:D})}}catch(e){t={error:e}}finally{try{C&&!C.done&&(n=S.return)&&n.call(S)}finally{if(t)throw t.error}}}}}md.removeNodes(e,{at:i})}))}}},e}(),e7=X4("splice"),t7=T0.TypeError,n7=Math.max,r7=Math.min;Y2({target:"Array",proto:!0,forced:!e7},{splice:function(e,t){var n,r,o,i,a,u,s=C1(this),l=T2(s),c=A2(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=r7(n7(S2(t),0),l-c)),l+n-r>9007199254740991)throw t7("Maximum allowed length exceeded");for(o=N3(s,r),i=0;i<r;i++)(a=c+i)in s&&K4(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 o7=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==_N.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=i6(Nf.nodes(e,{match:function(e){return _N.checkNodeType(e,"table-cell")},universal:!0}),1),r=i6(n[0],2),o=r[0],i=r[1],a=_N.getParentNode(e,o);if(null!=a){var u=_N.getParentNode(e,a);if(null!=u){var s=D5(e),l=0;e:for(var c=0;c<s.length;c++)for(var f=0;f<s[c].length;f++){var d=i6(s[c][f],1),p=i6(d[0],2)[1];if(Mf.equals(i,p)){l=f;break e}}Nf.withoutNormalizing(e,(function(){for(var t=[],n=0;n<s.length;n++){var r=i6(s[n][l],2)[1],o=r.ltr,i=r.rtl;if(o>1||i>1){if(1==i)continue;var a=i6(s[n][l-(i-1)],1),c=i6(a[0],2),f=c[0],d=c[1],p=f.colSpan||1;t.push(n),f.hidden||md.setNodes(e,{colSpan:p+1},{at:d})}}for(n=0;n<s.length;n++){var h={type:"table-cell",hidden:t.includes(n),children:[{text:""}]};0===n&&m8(u)&&(h.isHeader=!0);var v=i6(s[n][l],1),g=i6(v[0],2)[1];md.insertNodes(e,h,{at:g})}var y=i6(Nf.nodes(e,{match:function(e){return _N.checkNodeType(e,"table")},universal:!0}),1)[0];if(y){var m=i6(y,2),b=m[0],E=m[1],w=b.columnWidths,S=a6([],i6(void 0===w?[]:w));S.splice(l,0,60),md.setNodes(e,{columnWidths:S},{at:E})}}))}}}},e}(),i7=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==_N.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=i6(Nf.nodes(e,{match:function(e){return _N.checkNodeType(e,"table-cell")},universal:!0}),1),r=i6(n[0],2),o=r[0],i=r[1],a=_N.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)md.removeNodes(e,{mode:"highest"});else if(null!=_N.getParentNode(e,a)){var s=D5(e),l=0;e:for(var c=0;c<s.length;c++)for(var f=0;f<s[c].length;f++){var d=i6(s[c][f],1),p=i6(d[0],2)[1];if(Mf.equals(i,p)){l=f;break e}}Nf.withoutNormalizing(e,(function(){for(var t,n,r=0;r<s.length;r++){var o=i6(s[r][l],2),i=i6(o[0],1)[0].hidden,a=o[1],u=a.rtl,c=a.ltr;if(u>1||c>1){var f=i6(s[r][l-(u-1)],1),d=i6(f[0],2),p=d[0],h=p.rowSpan,v=void 0===h?1:h,g=p.colSpan,y=void 0===g?1:g,m=d[1];if(i)md.setNodes(e,{rowSpan:v,colSpan:Math.max(y-1,1)},{at:m});else{var b=i6(s[r][l+1],1),E=i6(b[0],2)[1];md.setNodes(e,{rowSpan:v,colSpan:y-1,hidden:!1},{at:E});try{for(var w=(t=void 0,o6(Rf.children(e,m,{reverse:!0}))),S=w.next();!S.done;S=w.next()){var C=i6(S.value,2)[1];md.moveNodes(e,{to:a6(a6([],i6(E)),[0]),at:C})}}catch(e){t={error:e}}finally{try{S&&!S.done&&(n=w.return)&&n.call(w)}finally{if(t)throw t.error}}}}}for(r=0;r<s.length;r++){var D=i6(s[r][l],1);m=i6(D[0],2)[1],md.removeNodes(e,{at:m})}var A=i6(Nf.nodes(e,{match:function(e){return _N.checkNodeType(e,"table")},universal:!0}),1)[0];if(A){var x=i6(A,2),O=x[0],T=x[1],N=O.columnWidths,k=a6([],i6(void 0===N?[]:N));k.splice(l,1),md.setNodes(e,{columnWidths:k},{at:T})}}))}}},e}(),a7=I3.forEach,u7=function(e,t){var n=[].forEach;return!!n&&N0((function(){n.call(null,(function(){throw 1}),1)}))}(),s7=u7?[].forEach:function(e){return a7(this,e,arguments.length>1?arguments[1]:void 0)},l7=function(e){if(e&&e.forEach!==s7)try{X1(e,"forEach",s7)}catch(t){e.forEach=s7}};for(var c7 in V3)V3[c7]&&l7(T0[c7]&&T0[c7].prototype);l7(q3);var f7=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){var t=_N.getSelectedNodeByType(e,"table");return null!=t&&m8(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==_N.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=_N.getSelectedNodeByType(e,"table");null!=r&&y8(r).forEach((function(t){return md.setNodes(e,{isHeader:n},{at:_N.findPath(e,t)})}))}},e}(),d7=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){var t=_N.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==_N.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};md.setNodes(e,n,{mode:"highest"})}},e}(),p7=function(){function e(){this.title=GF("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return!this.canMerge(e)},e.prototype.exec=function(e,t){this.isDisabled(e)||(this.merge(e),x5.unselect(e))},e.prototype.canMerge=function(e){var t=l5.get(e);if(!t||!t.length)return!1;var n=i6(t[t.length-1][t[t.length-1].length-1],1),r=i6(n[0],2)[1],o=i6(t[0][0],1);return!!C5(e,[i6(o[0],2)[1],r],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=l5.get(e);if(t&&t.length){var n=i6(t[0][0],1),r=i6(n[0],2)[1],o=i6(Rf.children(e,r,{reverse:!0}),1),i=i6(o[0],2)[1];D5(e,{at:r}),Nf.withoutNormalizing(e,(function(){for(var n,o,a=0,u=0,s=t.length-1;s>=0;s--,a++){u=0;for(var l=t[s].length-1;l>=0;l--,u++){var c=i6(t[s][l],2),f=i6(c[0],2)[1],d=c[1].ttb;if(!(Mf.equals(r,f)||d>1)){try{for(var p=(n=void 0,o6(Rf.children(e,f,{reverse:!0}))),h=p.next();!h.done;h=p.next()){var v=i6(h.value,2)[1];md.moveNodes(e,{to:Mf.next(i),at:v})}}catch(e){n={error:e}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}var g=i6(Nf.nodes(e,{match:S5(e,"tr"),at:f}),1),y=i6(g[0],2)[1];i6(Rf.children(e,y),2)[1]&&md.setNodes(e,{hidden:!0},{at:f})}}}md.setNodes(e,{rowSpan:a,colSpan:u},{at:r})}))}}},e}(),h7=function(){function e(){this.title=GF("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=i6(Nf.nodes(e,{match:S5(e,"td")}),1),n=i6(t[0],1)[0],r=n.rowSpan,o=void 0===r?1:r,i=n.colSpan;return!(o>1||(void 0===i?1:i)>1)},e.prototype.exec=function(e,t){this.isDisabled(e)||this.split(e)},e.prototype.split=function(e,t){void 0===t&&(t={});var n=i6(Nf.nodes(e,{match:S5(e,"table","th","td"),at:t.at}),2),r=n[0],o=n[1];if(r&&o){var i=l5.get(e)||[],a=D5(e,{at:t.at});Nf.withoutNormalizing(e,(function(){for(var n=a.length-1;n>=0;n--)for(var r=a[n].length-1;r>=0;r--){var u=i6(a[n][r],2),s=i6(u[0],2)[1],l=u[1],c=l.ltr,f=l.rtl,d=l.btt,p=l.ttb;if(f>1)r-=f-2;else if(!(p>1||1===d&&1===c)){var h=!!t.all;if(i.length)e:for(var v=0;!t.all&&v<i.length;v++)for(var g=0;g<i[v].length;g++){var y=i6(i[v][g],1),m=i6(y[0],2)[1];if(Mf.equals(m,s)){h=!0;break e}}else m=i6(o,2)[1],Mf.equals(m,s)&&(h=!0);if(h){var b=i6(Nf.nodes(e,{match:S5(e,"table"),at:s}),1);i6(b[0],1)[0];e:for(var E=1;E<d;E++)for(v=r;v>=0;v--){var w=i6(a[n+E][v],2);if(i6(w[0],2)[1],1!=w[1].ttb){for(var S=0;S<c;S++){var C=i6(a[n+E][v+S],1),D=i6(C[0],2)[1];md.unsetNodes(e,["hidden","colSpan","rowSpan"],{at:D})}continue e}}for(S=1;S<c;S++){var A=i6(a[n][r+S],1);D=i6(A[0],2)[1],md.unsetNodes(e,["hidden","colSpan","rowSpan"],{at:D})}md.setNodes(e,{rowSpan:1,colSpan:1},{at:s})}}}}))}},e}(),v7={renderElems:[b8,E8,w8],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';table-layout: fixed;"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=void 0===l?"auto":l,f=n.hidden,d=s?"th":"td";return"<"+d+' colSpan="'+o+'" rowSpan="'+a+'" width="'+c+'" style="'+(void 0!==f&&f?"display:none":"")+'">'+t+"</"+d+">"}}],preParseHtml:[S8],parseElemsHtml:[H8,U8,$8],menus:[{key:"insertTable",factory:function(){return new X8}},{key:"deleteTable",factory:function(){return new Z8}},{key:"insertTableRow",factory:function(){return new J8}},{key:"deleteTableRow",factory:function(){return new Q8}},{key:"insertTableCol",factory:function(){return new o7}},{key:"deleteTableCol",factory:function(){return new i7}},{key:"tableHeader",factory:function(){return new f7}},{key:"tableFullWidth",factory:function(){return new d7}},{key:"mergeTableCell",factory:function(){return new p7}},{key:"splitTableCell",factory:function(){return new h7}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==_N.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!O5(s)){var t=s.selection;if(t){var r=Nf.before(s,t);if(r){var o=function(e,t){var n,r,o=Nf.nodes(e,{at:t,match:function(e){return"table"===_N.getNodeType(e)}}),i=!1;try{for(var a=o6(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}(s,r);if(o&&_N.isSelectedEmptyParagraph(s))return}}n(e)}},s.handleTab=function(){var t;if(_N.getSelectedNodeByType(s,"table")){var n=Nf.above(e);_N.checkNodeType(n[0],"table-cell")&&md.select(e,n[1]);var r=Nf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Nf.above(e,{at:r[1]}))&&void 0!==t?t:r),md.select(e,r[1]);else{var o=s.children||[],i=o.length;if(_N.checkNodeType(o[i-1],"table")){var u=_N.genEmptyParagraph();md.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){O5(s)||r(e)},s.normalizeNode=function(e){var t=i6(e,2),n=t[0],r=t[1];if("table"!==_N.getNodeType(n))return o([n,r]);if(_N.isLastNode(s,n)){var i=_N.genEmptyParagraph();md.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=_N.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Nf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=_N.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Mf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Rf.string(t).length){var o=_N.findPath(s,t),i={anchor:Nf.start(s,o),focus:Nf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},function(e){var t=e.apply;e.apply=function(n){if(!jf.isSelectionOperation(n)||!n.newProperties)return t(n);var r=n6(n6({},e.selection),n.newProperties);if(!qf.isRange(r))return x5.unselect(e),t(n);var o=i6(Nf.nodes(e,{match:S5(e,"th","td"),at:qf.start(r)}),1)[0],i=i6(Nf.nodes(e,{match:S5(e,"th","td"),at:qf.end(r)}),1)[0];if(!o||!i)return t(n);var a=i6(o,2)[1],u=i6(i,2)[1];if(Mf.equals(a,u)||!C5(e,[a,u],"table"))return x5.unselect(e),t(n);var s=D5(e,{at:a}),l=A5.valueOf(0,0),c=A5.valueOf(0,0);e:for(var f=0;f<s.length;f++)for(var d=0;d<s[f].length;d++){var p=i6(s[f][d],1),h=i6(p[0],2)[1];if(Mf.equals(a,h)&&(l.x=f,l.y=d),Mf.equals(u,h)){c.x=f,c.y=d;break e}}for(var v=A5.valueOf(Math.min(l.x,c.x),Math.min(l.y,c.y)),g=A5.valueOf(Math.max(l.x,c.x),Math.max(l.y,c.y));;){var y=A5.valueOf(v.x,v.y),m=A5.valueOf(g.x,g.y);for(f=y.x;f<=m.x;f++)for(d=y.y;d<=m.y;d++){var b=i6(s[f][d],2)[1],E=b.rtl,w=b.ltr,S=b.btt,C=b.ttb;y.x=Math.min(y.x,f-(C-1)),y.y=Math.min(y.y,d-(E-1)),m.x=Math.max(m.x,f+(S-1)),m.y=Math.max(m.y,d+(w-1))}if(A5.equals(v,y)&&A5.equals(g,m))break;v=y,g=m}var D=[],A=new WeakSet;for(f=v.x;f<=g.x;f++){var x=[];for(d=v.y;d<=g.y;d++){var O=i6(s[f][d],1),T=i6(O[0],1)[0];A.add(T),x.push(s[f][d])}D.push(x)}l5.set(e,D),c5.set(e,A),t(n)}}(s),s}};UF("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",edit:"Edit video",width:"Width",height:"Height"}}),UF("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var g7=function(){return g7=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g7.apply(this,arguments)};function y7(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function m7(e,t){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)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function b7(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function E7(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var w7="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function S7(e){var t={exports:{}};return e(t,t.exports),t.exports}var C7,D7,A7=function(e){return e&&e.Math==Math&&e},x7=A7("object"==typeof globalThis&&globalThis)||A7("object"==typeof window&&window)||A7("object"==typeof self&&self)||A7("object"==typeof w7&&w7)||function(){return this}()||Function("return this")(),O7=function(e){try{return!!e()}catch(e){return!0}},T7=!O7((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),N7=Function.prototype.call,k7=N7.bind?N7.bind(N7):function(){return N7.apply(N7,arguments)},B7={}.propertyIsEnumerable,I7=Object.getOwnPropertyDescriptor,F7={f:I7&&!B7.call({1:2},1)?function(e){var t=I7(this,e);return!!t&&t.enumerable}:B7},P7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},R7=Function.prototype,_7=R7.bind,L7=R7.call,j7=_7&&_7.bind(L7),M7=_7?function(e){return e&&j7(L7,e)}:function(e){return e&&function(){return L7.apply(e,arguments)}},z7=M7({}.toString),H7=M7("".slice),U7=function(e){return H7(z7(e),8,-1)},$7=x7.Object,V7=M7("".split),G7=O7((function(){return!$7("z").propertyIsEnumerable(0)}))?function(e){return"String"==U7(e)?V7(e,""):$7(e)}:$7,W7=x7.TypeError,q7=function(e){if(null==e)throw W7("Can't call method on "+e);return e},K7=function(e){return G7(q7(e))},Y7=function(e){return"function"==typeof e},X7=function(e){return"object"==typeof e?null!==e:Y7(e)},Z7=function(e){return Y7(e)?e:void 0},J7=function(e,t){return arguments.length<2?Z7(x7[e]):x7[e]&&x7[e][t]},Q7=M7({}.isPrototypeOf),e9=J7("navigator","userAgent")||"",t9=x7.process,n9=x7.Deno,r9=t9&&t9.versions||n9&&n9.version,o9=r9&&r9.v8;o9&&(D7=(C7=o9.split("."))[0]>0&&C7[0]<4?1:+(C7[0]+C7[1])),!D7&&e9&&(!(C7=e9.match(/Edge\/(\d+)/))||C7[1]>=74)&&(C7=e9.match(/Chrome\/(\d+)/))&&(D7=+C7[1]);var i9=D7,a9=!!Object.getOwnPropertySymbols&&!O7((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i9&&i9<41})),u9=a9&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,s9=x7.Object,l9=u9?function(e){return"symbol"==typeof e}:function(e){var t=J7("Symbol");return Y7(t)&&Q7(t.prototype,s9(e))},c9=x7.String,f9=function(e){try{return c9(e)}catch(e){return"Object"}},d9=x7.TypeError,p9=function(e){if(Y7(e))return e;throw d9(f9(e)+" is not a function")},h9=function(e,t){var n=e[t];return null==n?void 0:p9(n)},v9=x7.TypeError,g9=Object.defineProperty,y9=function(e,t){try{g9(x7,e,{value:t,configurable:!0,writable:!0})}catch(n){x7[e]=t}return t},m9=x7["__core-js_shared__"]||y9("__core-js_shared__",{}),b9=S7((function(e){(e.exports=function(e,t){return m9[e]||(m9[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),E9=x7.Object,w9=function(e){return E9(q7(e))},S9=M7({}.hasOwnProperty),C9=Object.hasOwn||function(e,t){return S9(w9(e),t)},D9=0,A9=Math.random(),x9=M7(1..toString),O9=function(e){return"Symbol("+(void 0===e?"":e)+")_"+x9(++D9+A9,36)},T9=b9("wks"),N9=x7.Symbol,k9=N9&&N9.for,B9=u9?N9:N9&&N9.withoutSetter||O9,I9=function(e){if(!C9(T9,e)||!a9&&"string"!=typeof T9[e]){var t="Symbol."+e;a9&&C9(N9,e)?T9[e]=N9[e]:T9[e]=u9&&k9?k9(t):B9(t)}return T9[e]},F9=x7.TypeError,P9=I9("toPrimitive"),R9=function(e){var t=function(e,t){if(!X7(e)||l9(e))return e;var n,r=h9(e,P9);if(r){if(void 0===t&&(t="default"),n=k7(r,e,t),!X7(n)||l9(n))return n;throw F9("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Y7(n=e.toString)&&!X7(r=k7(n,e)))return r;if(Y7(n=e.valueOf)&&!X7(r=k7(n,e)))return r;if("string"!==t&&Y7(n=e.toString)&&!X7(r=k7(n,e)))return r;throw v9("Can't convert object to primitive value")}(e,t)}(e,"string");return l9(t)?t:t+""},_9=x7.document,L9=X7(_9)&&X7(_9.createElement),j9=function(e){return L9?_9.createElement(e):{}},M9=!T7&&!O7((function(){return 7!=Object.defineProperty(j9("div"),"a",{get:function(){return 7}}).a})),z9=Object.getOwnPropertyDescriptor,H9={f:T7?z9:function(e,t){if(e=K7(e),t=R9(t),M9)try{return z9(e,t)}catch(e){}if(C9(e,t))return P7(!k7(F7.f,e,t),e[t])}},U9=x7.String,$9=x7.TypeError,V9=function(e){if(X7(e))return e;throw $9(U9(e)+" is not an object")},G9=x7.TypeError,W9=Object.defineProperty,q9={f:T7?W9:function(e,t,n){if(V9(e),t=R9(t),V9(n),M9)try{return W9(e,t,n)}catch(e){}if("get"in n||"set"in n)throw G9("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},K9=T7?function(e,t,n){return q9.f(e,t,P7(1,n))}:function(e,t,n){return e[t]=n,e},Y9=M7(Function.toString);Y7(m9.inspectSource)||(m9.inspectSource=function(e){return Y9(e)});var X9,Z9,J9,Q9=m9.inspectSource,eee=x7.WeakMap,tee=Y7(eee)&&/native code/.test(Q9(eee)),nee=b9("keys"),ree=function(e){return nee[e]||(nee[e]=O9(e))},oee={},iee=x7.TypeError,aee=x7.WeakMap;if(tee||m9.state){var uee=m9.state||(m9.state=new aee),see=M7(uee.get),lee=M7(uee.has),cee=M7(uee.set);X9=function(e,t){if(lee(uee,e))throw new iee("Object already initialized");return t.facade=e,cee(uee,e,t),t},Z9=function(e){return see(uee,e)||{}},J9=function(e){return lee(uee,e)}}else{var fee=ree("state");oee[fee]=!0,X9=function(e,t){if(C9(e,fee))throw new iee("Object already initialized");return t.facade=e,K9(e,fee,t),t},Z9=function(e){return C9(e,fee)?e[fee]:{}},J9=function(e){return C9(e,fee)}}var dee={set:X9,get:Z9,has:J9,enforce:function(e){return J9(e)?Z9(e):X9(e,{})},getterFor:function(e){return function(t){var n;if(!X7(t)||(n=Z9(t)).type!==e)throw iee("Incompatible receiver, "+e+" required");return n}}},pee=Function.prototype,hee=T7&&Object.getOwnPropertyDescriptor,vee=C9(pee,"name"),gee={EXISTS:vee,PROPER:vee&&"something"===function(){}.name,CONFIGURABLE:vee&&(!T7||T7&&hee(pee,"name").configurable)},yee=S7((function(e){var t=gee.CONFIGURABLE,n=dee.get,r=dee.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Y7(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!C9(i,"name")||t&&i.name!==f)&&K9(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==x7?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:K9(e,n,i)):l?e[n]=i:y9(n,i)})(Function.prototype,"toString",(function(){return Y7(this)&&n(this).source||Q9(this)}))})),mee=Math.ceil,bee=Math.floor,Eee=function(e){var t=+e;return t!=t||0===t?0:(t>0?bee:mee)(t)},wee=Math.max,See=Math.min,Cee=function(e,t){var n=Eee(e);return n<0?wee(n+t,0):See(n,t)},Dee=Math.min,Aee=function(e){return e>0?Dee(Eee(e),9007199254740991):0},xee=function(e){return Aee(e.length)},Oee=function(e){return function(t,n,r){var o,i=K7(t),a=xee(i),u=Cee(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Tee={includes:Oee(!0),indexOf:Oee(!1)},Nee=Tee.indexOf,kee=M7([].push),Bee=function(e,t){var n,r=K7(e),o=0,i=[];for(n in r)!C9(oee,n)&&C9(r,n)&&kee(i,n);for(;t.length>o;)C9(r,n=t[o++])&&(~Nee(i,n)||kee(i,n));return i},Iee=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fee=Iee.concat("length","prototype"),Pee={f:Object.getOwnPropertyNames||function(e){return Bee(e,Fee)}},Ree={f:Object.getOwnPropertySymbols},_ee=M7([].concat),Lee=J7("Reflect","ownKeys")||function(e){var t=Pee.f(V9(e)),n=Ree.f;return n?_ee(t,n(e)):t},jee=function(e,t){for(var n=Lee(t),r=q9.f,o=H9.f,i=0;i<n.length;i++){var a=n[i];C9(e,a)||r(e,a,o(t,a))}},Mee=/#|\.prototype\./,zee=function(e,t){var n=Uee[Hee(e)];return n==Vee||n!=$ee&&(Y7(t)?O7(t):!!t)},Hee=zee.normalize=function(e){return String(e).replace(Mee,".").toLowerCase()},Uee=zee.data={},$ee=zee.NATIVE="N",Vee=zee.POLYFILL="P",Gee=zee,Wee=H9.f,qee=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?x7:l?x7[u]||y9(u,{}):(x7[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Wee(n,r))&&a.value:n[r],!Gee(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jee(i,o)}(e.sham||o&&o.sham)&&K9(i,"sham",!0),yee(n,r,i,e)}},Kee={};Kee[I9("toStringTag")]="z";var Yee="[object z]"===String(Kee),Xee=I9("toStringTag"),Zee=x7.Object,Jee="Arguments"==U7(function(){return arguments}()),Qee=Yee?U7:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Zee(e),Xee))?n:Jee?U7(t):"Object"==(r=U7(t))&&Y7(t.callee)?"Arguments":r},ete=x7.String,tte=function(e){if("Symbol"===Qee(e))throw TypeError("Cannot convert a Symbol value to a string");return ete(e)},nte="\t\n\v\f\r \u2028\u2029\ufeff",rte=M7("".replace),ote="["+nte+"]",ite=RegExp("^"+ote+ote+"*"),ate=RegExp(ote+ote+"*$"),ute=function(e){return function(t){var n=tte(q7(t));return 1&e&&(n=rte(n,ite,"")),2&e&&(n=rte(n,ate,"")),n}},ste={start:ute(1),end:ute(2),trim:ute(3)},lte=gee.PROPER,cte=ste.trim;function fte(e){return e.length?e[0].tagName.toLowerCase():""}function dte(e,t,n,r){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=Mp(e),i=r.width,a=void 0===i?"":i,u=r.height,s=void 0===u?"":u,l="";return a&&(l+="width: "+a+";"),s&&(l+="height: "+s+";"),o.attr("width",t),o.attr("height",n),o.attr("style",l),o[0].outerHTML}qee({target:"String",proto:!0,forced:("trim",O7((function(){return!!nte.trim()||"
"!=="
".trim()||lte&&"trim"!==nte.trim.name})))},{trim:function(){return cte(this)}}),qee({global:!0},{globalThis:x7}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Wp&&(Mp.fn.val=Wp),rh&&(Mp.fn.html=rh),sh&&(Mp.fn.parent=sh),Up&&(Mp.fn.hasClass=Up),ph&&(Mp.fn.empty=ph);var pte,hte={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.key,c=void 0===l?"":l,f=o.width,d=void 0===f?"auto":f,p=o.height,h=void 0===p?"auto":p,v=o.style,g=void 0===v?{}:v,y=o.textAlign,m=void 0===y?"center":y,b=_N.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){r=Fv("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m},innerHTML:dte(a,d,h,g)})}else{var E=Fv("video",{key:c,poster:s,controls:!0,style:g},Fv("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==d&&(E.data.width=d),"auto"!==h&&(E.data.height=h),r=Fv("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m}},E)}return pv("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},vte={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f=n.style,d=void 0===f?{}:f,p=n.textAlign,h='<div data-w-e-type="video" data-w-e-is-void style="text-align: '+(void 0===p?"center":p)+';">\n';if(0===o.trim().indexOf("<iframe "))h+=dte(o,s,c,d);else{var v=d.width,g=void 0===v?"":v,y=d.height,m=void 0===y?"":y,b="";g&&(b+="width: "+g+";"),m&&(b+="height: "+m+";"),h+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'" style="'+b+'"><source src="'+o+'" type="video/mp4"/></video>'}return h+"\n</div>"}},gte=Object.keys||function(e){return Bee(e,Iee)},yte=T7?Object.defineProperties:function(e,t){V9(e);for(var n,r=K7(t),o=gte(t),i=o.length,a=0;i>a;)q9.f(e,n=o[a++],r[n]);return e},mte=J7("document","documentElement"),bte=ree("IE_PROTO"),Ete=function(){},wte=function(e){return"<script>"+e+"<\/script>"},Ste=function(e){e.write(wte("")),e.close();var t=e.parentWindow.Object;return e=null,t},Cte=function(){try{pte=new ActiveXObject("htmlfile")}catch(e){}var e,t;Cte="undefined"!=typeof document?document.domain&&pte?Ste(pte):((t=j9("iframe")).style.display="none",mte.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wte("document.F=Object")),e.close(),e.F):Ste(pte);for(var n=Iee.length;n--;)delete Cte.prototype[Iee[n]];return Cte()};oee[bte]=!0;var Dte=Object.create||function(e,t){var n;return null!==e?(Ete.prototype=V9(e),n=new Ete,Ete.prototype=null,n[bte]=e):n=Cte(),void 0===t?n:yte(n,t)},Ate=I9("unscopables"),xte=Array.prototype;null==xte[Ate]&&q9.f(xte,Ate,{configurable:!0,value:Dte(null)});var Ote=function(e){xte[Ate][e]=!0},Tte=Tee.includes;qee({target:"Array",proto:!0},{includes:function(e){return Tte(this,e,arguments.length>1?arguments[1]:void 0)}}),Ote("includes");var Nte={selector:"iframe,video,p",preParseHtml:function(e){var t=Mp(e),n=t;if("p"===fte(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Mp(o))}}var a=fte(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Mp('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return u.append(n),u[0]}},kte=M7(M7.bind),Bte=function(e,t){return p9(e),void 0===t?e:kte?kte(e,t):function(){return e.apply(t,arguments)}},Ite=Array.isArray||function(e){return"Array"==U7(e)},Fte=function(){},Pte=[],Rte=J7("Reflect","construct"),_te=/^\s*(?:class|function)\b/,Lte=M7(_te.exec),jte=!_te.exec(Fte),Mte=function(e){if(!Y7(e))return!1;try{return Rte(Fte,Pte,e),!0}catch(e){return!1}},zte=!Rte||O7((function(){var e;return Mte(Mte.call)||!Mte(Object)||!Mte((function(){e=!0}))||e}))?function(e){if(!Y7(e))return!1;switch(Qee(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jte||!!Lte(_te,Q9(e))}:Mte,Hte=I9("species"),Ute=x7.Array,$te=function(e,t){return new(function(e){var t;return Ite(e)&&(t=e.constructor,(zte(t)&&(t===Ute||Ite(t.prototype))||X7(t)&&null===(t=t[Hte]))&&(t=void 0)),void 0===t?Ute:t}(e))(0===t?0:t)},Vte=M7([].push),Gte=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=w9(s),v=G7(h),g=Bte(l,c),y=xee(v),m=0,b=f||$te,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Vte(E,d)}else switch(e){case 4:return!1;case 7:Vte(E,d)}return i?-1:r||o?o:E}},Wte={forEach:Gte(0),map:Gte(1),filter:Gte(2),some:Gte(3),every:Gte(4),find:Gte(5),findIndex:Gte(6),filterReject:Gte(7)},qte=Wte.find,Kte=!0;"find"in[]&&Array(1).find((function(){Kte=!1})),qee({target:"Array",proto:!0,forced:Kte},{find:function(e){return qte(this,e,arguments.length>1?arguments[1]:void 0)}}),Ote("find");var Yte=Yee?{}.toString:function(){return"[object "+Qee(this)+"]"};Yee||yee(Object.prototype,"toString",Yte,{unsafe:!0});var Xte,Zte,Jte=function(){var e=V9(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Qte=x7.RegExp,ene=O7((function(){var e=Qte("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),tne=ene||O7((function(){return!Qte("a","y").sticky})),nne={BROKEN_CARET:ene||O7((function(){var e=Qte("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:tne,UNSUPPORTED_Y:ene},rne=x7.RegExp,one=O7((function(){var e=rne(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ine=x7.RegExp,ane=O7((function(){var e=ine("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),une=dee.get,sne=b9("native-string-replace",String.prototype.replace),lne=RegExp.prototype.exec,cne=lne,fne=M7("".charAt),dne=M7("".indexOf),pne=M7("".replace),hne=M7("".slice),vne=(Zte=/b*/g,k7(lne,Xte=/a/,"a"),k7(lne,Zte,"a"),0!==Xte.lastIndex||0!==Zte.lastIndex),gne=nne.BROKEN_CARET,yne=void 0!==/()??/.exec("")[1];(vne||yne||gne||one||ane)&&(cne=function(e){var t,n,r,o,i,a,u,s=this,l=une(s),c=tte(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=k7(cne,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=gne&&s.sticky,h=k7(Jte,s),v=s.source,g=0,y=c;if(p&&(h=pne(h,"y",""),-1===dne(h,"g")&&(h+="g"),y=hne(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==fne(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),yne&&(n=new RegExp("^"+v+"$(?!\\s)",h)),vne&&(r=s.lastIndex),o=k7(lne,p?n:s,y),p?o?(o.input=hne(o.input,g),o[0]=hne(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:vne&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),yne&&o&&o.length>1&&k7(sne,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Dte(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var mne=cne;qee({target:"RegExp",proto:!0,forced:/./.exec!==mne},{exec:mne});var bne=Function.prototype,Ene=bne.apply,wne=bne.bind,Sne=bne.call,Cne="object"==typeof Reflect&&Reflect.apply||(wne?Sne.bind(Ene):function(){return Sne.apply(Ene,arguments)}),Dne=I9("species"),Ane=RegExp.prototype,xne=function(e,t,n,r){var o=I9(e),i=!O7((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!O7((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Dne]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=M7(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=M7(e),s=t.exec;return s===mne||s===Ane.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));yee(String.prototype,e,s[0]),yee(Ane,o,s[1])}r&&K9(Ane[o],"sham",!0)},One=M7("".charAt),Tne=M7("".charCodeAt),Nne=M7("".slice),kne=function(e){return function(t,n){var r,o,i=tte(q7(t)),a=Eee(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Tne(i,a))<55296||r>56319||a+1===u||(o=Tne(i,a+1))<56320||o>57343?e?One(i,a):r:e?Nne(i,a,a+2):o-56320+(r-55296<<10)+65536}},Bne={codeAt:kne(!1),charAt:kne(!0)},Ine=Bne.charAt,Fne=function(e,t,n){return t+(n?Ine(e,t).length:1)},Pne=Math.floor,Rne=M7("".charAt),_ne=M7("".replace),Lne=M7("".slice),jne=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Mne=/\$([$&'`]|\d{1,2})/g,zne=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Mne;return void 0!==o&&(o=w9(o),s=jne),_ne(i,s,(function(i,s){var l;switch(Rne(s,0)){case"$":return"$";case"&":return e;case"`":return Lne(t,0,n);case"'":return Lne(t,a);case"<":l=o[Lne(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=Pne(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Rne(s,1):r[f-1]+Rne(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Hne=x7.TypeError,Une=function(e,t){var n=e.exec;if(Y7(n)){var r=k7(n,e,t);return null!==r&&V9(r),r}if("RegExp"===U7(e))return k7(mne,e,t);throw Hne("RegExp#exec called on incompatible receiver")},$ne=I9("replace"),Vne=Math.max,Gne=Math.min,Wne=M7([].concat),qne=M7([].push),Kne=M7("".indexOf),Yne=M7("".slice),Xne="$0"==="a".replace(/./,"$0"),Zne=!!/./[$ne]&&""===/./[$ne]("a","$0");xne("replace",(function(e,t,n){var r=Zne?"$":"$0";return[function(e,n){var r=q7(this),o=null==e?void 0:h9(e,$ne);return o?k7(o,e,r,n):k7(t,tte(r),e,n)},function(e,o){var i=V9(this),a=tte(e);if("string"==typeof o&&-1===Kne(o,r)&&-1===Kne(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Y7(o);s||(o=tte(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Une(i,a);if(null===d)break;if(qne(f,d),!l)break;""===tte(d[0])&&(i.lastIndex=Fne(a,Aee(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=tte((d=f[g])[0]),m=Vne(Gne(Eee(d.index),a.length),0),b=[],E=1;E<d.length;E++)qne(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=Wne([y],b,m,a);void 0!==w&&qne(S,w);var C=tte(Cne(o,void 0,S))}else C=zne(y,a,m,b,w,o);m>=v&&(h+=Yne(a,v,m)+C,v=m+y.length)}return h+Yne(a,v)}]}),!!O7((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Xne||Zne);var Jne=I9("match"),Qne=x7.TypeError,ere=I9("species"),tre=function(e,t){var n,r=V9(e).constructor;return void 0===r||null==(n=V9(r)[ere])?t:function(e){if(zte(e))return e;throw Qne(f9(e)+" is not a constructor")}(n)},nre=function(e,t,n){var r=R9(t);r in e?q9.f(e,r,P7(0,n)):e[r]=n},rre=x7.Array,ore=Math.max,ire=function(e,t,n){for(var r=xee(e),o=Cee(t,r),i=Cee(void 0===n?r:n,r),a=rre(ore(i-o,0)),u=0;o<i;o++,u++)nre(a,u,e[o]);return a.length=u,a},are=nne.UNSUPPORTED_Y,ure=Math.min,sre=[].push,lre=M7(/./.exec),cre=M7(sre),fre=M7("".slice);xne("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=tte(q7(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!X7(r=e)||!(void 0!==(o=r[Jne])?o:"RegExp"==U7(r)))return k7(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=k7(mne,p,i))&&!((s=p.lastIndex)>d&&(cre(c,fre(i,d,u.index)),u.length>1&&u.index<i.length&&Cne(sre,c,ire(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&lre(p,"")||cre(c,""):cre(c,fre(i,d)),c.length>a?ire(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:k7(t,this,e,n)}:t,[function(t,n){var o=q7(this),i=null==t?void 0:h9(t,e);return i?k7(i,t,o,n):k7(r,tte(o),t,n)},function(e,o){var i=V9(this),a=tte(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=tre(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(are?"g":"y"),f=new s(are?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Une(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=are?0:h;var g,y=Une(f,are?fre(a,h):a);if(null===y||(g=ure(Aee(f.lastIndex+(are?h:0)),a.length))===p)h=Fne(a,h,l);else{if(cre(v,fre(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(cre(v,y[m]),v.length===d)return v;h=p=g}}return cre(v,fre(a,p)),v}]}),!!O7((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),are);var dre={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},pre=j9("span").classList,hre=pre&&pre.constructor&&pre.constructor.prototype,vre=hre===Object.prototype?void 0:hre,gre=function(e,t){var n=[][e];return!!n&&O7((function(){n.call(null,t||function(){throw 1},1)}))},yre=Wte.forEach,mre=gre("forEach")?[].forEach:function(e){return yre(this,e,arguments.length>1?arguments[1]:void 0)},bre=function(e){if(e&&e.forEach!==mre)try{K9(e,"forEach",mre)}catch(t){e.forEach=mre}};for(var Ere in dre)dre[Ere]&&bre(x7[Ere]&&x7[Ere].prototype);function wre(e){return void 0===e&&(e="r"),e+"-"+jh()}function Sre(e){var t={};return e.trim().split(";").forEach((function(e){if(e){var n=b7(e.split(":"),2),r=n[0],o=n[1];r&&o&&(t[r.trim()]=o.trim())}})),t}function Cre(e,t,n,r,o){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:e,poster:t,width:n,height:r,style:o,children:[{text:""}]}}bre(vre);var Dre={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Mp(e),o="",i="",a="auto",u="auto",s={},l=r.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",u=l.attr("height")||"auto",s=Sre(s=l.attr("style")||""),Cre(o=l[0].outerHTML,i,a,u,s);var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",u=c.attr("height")||"auto",Cre(o,i=c.attr("poster")||"",a,u,s=Sre(s=c.attr("style")||""))}},Are=x7.Promise,xre=function(e,t,n){for(var r in t)yee(e,r,t[r],n);return e},Ore=x7.String,Tre=x7.TypeError,Nre=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=M7(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return V9(n),function(e){if("object"==typeof e||Y7(e))return e;throw Tre("Can't set "+Ore(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),kre=q9.f,Bre=I9("toStringTag"),Ire=function(e,t,n){e&&!C9(e=n?e:e.prototype,Bre)&&kre(e,Bre,{configurable:!0,value:t})},Fre=I9("species"),Pre=x7.TypeError,Rre=function(e,t){if(Q7(t,e))return e;throw Pre("Incorrect invocation")},_re={},Lre=I9("iterator"),jre=Array.prototype,Mre=I9("iterator"),zre=function(e){if(null!=e)return h9(e,Mre)||h9(e,"@@iterator")||_re[Qee(e)]},Hre=x7.TypeError,Ure=function(e,t,n){var r,o;V9(e);try{if(!(r=h9(e,"return"))){if("throw"===t)throw n;return n}r=k7(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return V9(r),n},$re=x7.TypeError,Vre=function(e,t){this.stopped=e,this.result=t},Gre=Vre.prototype,Wre=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Bte(t,f),g=function(e){return r&&Ure(r,"normal",e),new Vre(!0,e)},y=function(e){return d?(V9(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=zre(e)))throw $re(f9(e)+" is not iterable");if(void 0!==(c=o)&&(_re.Array===c||jre[Lre]===c)){for(i=0,a=xee(e);a>i;i++)if((u=y(e[i]))&&Q7(Gre,u))return u;return new Vre(!1)}r=function(e,t){var n=arguments.length<2?zre(e):t;if(p9(n))return V9(k7(n,e));throw Hre(f9(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=k7(s,r)).done;){try{u=y(l.value)}catch(e){Ure(r,"throw",e)}if("object"==typeof u&&u&&Q7(Gre,u))return u}return new Vre(!1)},qre=I9("iterator"),Kre=!1;try{var Yre=0,Xre={next:function(){return{done:!!Yre++}},return:function(){Kre=!0}};Xre[qre]=function(){return this},Array.from(Xre,(function(){throw 2}))}catch(Ml){}var Zre,Jre,Qre,eoe,toe=function(e,t){if(!t&&!Kre)return!1;var n=!1;try{var r={};r[qre]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},noe=M7([].slice),roe=/(?:ipad|iphone|ipod).*applewebkit/i.test(e9),ooe="process"==U7(x7.process),ioe=x7.setImmediate,aoe=x7.clearImmediate,uoe=x7.process,soe=x7.Dispatch,loe=x7.Function,coe=x7.MessageChannel,foe=x7.String,doe=0,poe={};try{Zre=x7.location}catch(Ml){}var hoe=function(e){if(C9(poe,e)){var t=poe[e];delete poe[e],t()}},voe=function(e){return function(){hoe(e)}},goe=function(e){hoe(e.data)},yoe=function(e){x7.postMessage(foe(e),Zre.protocol+"//"+Zre.host)};ioe&&aoe||(ioe=function(e){var t=noe(arguments,1);return poe[++doe]=function(){Cne(Y7(e)?e:loe(e),void 0,t)},Jre(doe),doe},aoe=function(e){delete poe[e]},ooe?Jre=function(e){uoe.nextTick(voe(e))}:soe&&soe.now?Jre=function(e){soe.now(voe(e))}:coe&&!roe?(eoe=(Qre=new coe).port2,Qre.port1.onmessage=goe,Jre=Bte(eoe.postMessage,eoe)):x7.addEventListener&&Y7(x7.postMessage)&&!x7.importScripts&&Zre&&"file:"!==Zre.protocol&&!O7(yoe)?(Jre=yoe,x7.addEventListener("message",goe,!1)):Jre="onreadystatechange"in j9("script")?function(e){mte.appendChild(j9("script")).onreadystatechange=function(){mte.removeChild(this),hoe(e)}}:function(e){setTimeout(voe(e),0)});var moe,boe,Eoe,woe,Soe,Coe,Doe,Aoe,xoe={set:ioe,clear:aoe},Ooe=/ipad|iphone|ipod/i.test(e9)&&void 0!==x7.Pebble,Toe=/web0s(?!.*chrome)/i.test(e9),Noe=H9.f,koe=xoe.set,Boe=x7.MutationObserver||x7.WebKitMutationObserver,Ioe=x7.document,Foe=x7.process,Poe=x7.Promise,Roe=Noe(x7,"queueMicrotask"),_oe=Roe&&Roe.value;_oe||(moe=function(){var e,t;for(ooe&&(e=Foe.domain)&&e.exit();boe;){t=boe.fn,boe=boe.next;try{t()}catch(e){throw boe?woe():Eoe=void 0,e}}Eoe=void 0,e&&e.enter()},roe||ooe||Toe||!Boe||!Ioe?!Ooe&&Poe&&Poe.resolve?((Doe=Poe.resolve(void 0)).constructor=Poe,Aoe=Bte(Doe.then,Doe),woe=function(){Aoe(moe)}):ooe?woe=function(){Foe.nextTick(moe)}:(koe=Bte(koe,x7),woe=function(){koe(moe)}):(Soe=!0,Coe=Ioe.createTextNode(""),new Boe(moe).observe(Coe,{characterData:!0}),woe=function(){Coe.data=Soe=!Soe}));var Loe,joe,Moe,zoe,Hoe=_oe||function(e){var t={fn:e,next:void 0};Eoe&&(Eoe.next=t),boe||(boe=t,woe()),Eoe=t},Uoe=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=p9(t),this.reject=p9(n)},$oe={f:function(e){return new Uoe(e)}},Voe=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Goe="object"==typeof window,Woe=xoe.set,qoe=I9("species"),Koe="Promise",Yoe=dee.getterFor(Koe),Xoe=dee.set,Zoe=dee.getterFor(Koe),Joe=Are&&Are.prototype,Qoe=Are,eie=Joe,tie=x7.TypeError,nie=x7.document,rie=x7.process,oie=$oe.f,iie=oie,aie=!!(nie&&nie.createEvent&&x7.dispatchEvent),uie=Y7(x7.PromiseRejectionEvent),sie=!1,lie=Gee(Koe,(function(){var e=Q9(Qoe),t=e!==String(Qoe);if(!t&&66===i9)return!0;if(i9>=51&&/native code/.test(e))return!1;var n=new Qoe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[qoe]=r,!(sie=n.then((function(){}))instanceof r)||!t&&Goe&&!uie})),cie=lie||!toe((function(e){Qoe.all(e).catch((function(){}))})),fie=function(e){var t;return!(!X7(e)||!Y7(t=e.then))&&t},die=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Hoe((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&gie(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(tie("Promise-chain cycle")):(u=fie(a))?k7(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&hie(e)}))}},pie=function(e,t,n){var r,o;aie?((r=nie.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),x7.dispatchEvent(r)):r={promise:t,reason:n},!uie&&(o=x7["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=x7.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},hie=function(e){k7(Woe,x7,(function(){var t,n=e.facade,r=e.value;if(vie(e)&&(t=Voe((function(){ooe?rie.emit("unhandledRejection",r,n):pie("unhandledrejection",n,r)})),e.rejection=ooe||vie(e)?2:1,t.error))throw t.value}))},vie=function(e){return 1!==e.rejection&&!e.parent},gie=function(e){k7(Woe,x7,(function(){var t=e.facade;ooe?rie.emit("rejectionHandled",t):pie("rejectionhandled",t,e.value)}))},yie=function(e,t,n){return function(r){e(t,r,n)}},mie=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,die(e,!0))},bie=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw tie("Promise can't be resolved itself");var r=fie(t);r?Hoe((function(){var n={done:!1};try{k7(r,t,yie(bie,n,e),yie(mie,n,e))}catch(t){mie(n,t,e)}})):(e.value=t,e.state=1,die(e,!1))}catch(t){mie({done:!1},t,e)}}};if(lie&&(eie=(Qoe=function(e){Rre(this,eie),p9(e),k7(Loe,this);var t=Yoe(this);try{e(yie(bie,t),yie(mie,t))}catch(e){mie(t,e)}}).prototype,(Loe=function(e){Xoe(this,{type:Koe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=xre(eie,{then:function(e,t){var n=Zoe(this),r=n.reactions,o=oie(tre(this,Qoe));return o.ok=!Y7(e)||e,o.fail=Y7(t)&&t,o.domain=ooe?rie.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&die(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),joe=function(){var e=new Loe,t=Yoe(e);this.promise=e,this.resolve=yie(bie,t),this.reject=yie(mie,t)},$oe.f=oie=function(e){return e===Qoe||e===Moe?new joe(e):iie(e)},Y7(Are)&&Joe!==Object.prototype)){zoe=Joe.then,sie||(yee(Joe,"then",(function(e,t){var n=this;return new Qoe((function(e,t){k7(zoe,n,e,t)})).then(e,t)}),{unsafe:!0}),yee(Joe,"catch",eie.catch,{unsafe:!0}));try{delete Joe.constructor}catch(Ml){}Nre&&Nre(Joe,eie)}function Eie(e,t,n,r,o){return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o=""),y7(this,void 0,void 0,(function(){var i,a,u,s,l,c,f;return m7(this,(function(d){switch(d.label){case 0:return t?(e.restoreSelection(),i=e.getMenuConfig("insertVideo"),a=i.onInsertedVideo,u=i.checkVideo,s=i.parseVideoSrc,[4,u(t,n)]):[2];case 1:return"string"==typeof(l=d.sent())?(e.alert(l,"error"),[2]):null==l?[2]:[4,s(t)];case 2:return 0!==(c=d.sent()).trim().indexOf("<iframe ")&&(c=c.replace(/</g,"<").replace(/>/g,">")),f={type:"video",src:c,poster:n,children:[{text:""}],style:{width:r,height:o}},Promise.resolve().then((function(){_N.isSelectedEmptyParagraph(e)&&md.removeNodes(e,{mode:"highest"}),md.insertNodes(e,f)})),a(f),[2]}}))}))}function wie(){return wre("w-e-insert-video")}qee({global:!0,wrap:!0,forced:lie},{Promise:Qoe}),Ire(Qoe,Koe,!1),function(e){var t=J7("Promise"),n=q9.f;T7&&t&&!t[Fre]&&n(t,Fre,{configurable:!0,get:function(){return this}})}(),Moe=J7(Koe),qee({target:Koe,stat:!0,forced:lie},{reject:function(e){var t=oie(this);return k7(t.reject,void 0,e),t.promise}}),qee({target:Koe,stat:!0,forced:lie},{resolve:function(e){return function(e,t){if(V9(e),X7(t)&&t.constructor===e)return t;var n=$oe.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),qee({target:Koe,stat:!0,forced:cie},{all:function(e){var t=this,n=oie(t),r=n.resolve,o=n.reject,i=Voe((function(){var n=p9(t.resolve),i=[],a=0,u=1;Wre(e,(function(e){var s=a++,l=!1;u++,k7(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=oie(t),r=n.reject,o=Voe((function(){var o=p9(t.resolve);Wre(e,(function(e){k7(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Sie=function(){function e(){this.title=GF("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=wie(),this.posterInputId=wie(),this.buttonId=wie()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!_N.getSelectedElems(e).some((function(t){var n=_N.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=b7(AI(GF("videoModule.videoSrc"),r,GF("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=b7(AI(GF("videoModule.videoPoster"),o,GF("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Mp(s),p=Mp(f),h=b7(OI(i,GF("videoModule.ok")),1)[0];if(null==this.$content){var v=Mp("<div></div>");v.on("click","#"+i,(function(n){return y7(t,void 0,void 0,(function(){var t,i;return m7(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,Eie(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=v}var g=this.$content;return g.empty(),g.append(u),g.append(c),g.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),g[0]},e}(),Cie=M7([].join),Die=G7!=Object,Aie=gre("join",",");qee({target:"Array",proto:!0,forced:Die||!Aie},{join:function(e){return Cie(K7(this),void 0===e?",":e)}});var xie,Oie,Tie,Nie=!O7((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),kie=ree("IE_PROTO"),Bie=x7.Object,Iie=Bie.prototype,Fie=Nie?Bie.getPrototypeOf:function(e){var t=w9(e);if(C9(t,kie))return t[kie];var n=t.constructor;return Y7(n)&&t instanceof n?n.prototype:t instanceof Bie?Iie:null},Pie=I9("iterator"),Rie=!1;[].keys&&("next"in(Tie=[].keys())?(Oie=Fie(Fie(Tie)))!==Object.prototype&&(xie=Oie):Rie=!0);var _ie=null==xie||O7((function(){var e={};return xie[Pie].call(e)!==e}));_ie&&(xie={}),Y7(xie[Pie])||yee(xie,Pie,(function(){return this}));var Lie={IteratorPrototype:xie,BUGGY_SAFARI_ITERATORS:Rie},jie=Lie.IteratorPrototype,Mie=function(){return this},zie=gee.PROPER,Hie=gee.CONFIGURABLE,Uie=Lie.IteratorPrototype,$ie=Lie.BUGGY_SAFARI_ITERATORS,Vie=I9("iterator"),Gie=function(){return this},Wie=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Dte(jie,{next:P7(1,n)}),Ire(e,o,!1),_re[o]=Mie}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!$ie&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Vie]||p["@@iterator"]||o&&p[o],v=!$ie&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=Fie(g.call(new e)))!==Object.prototype&&u.next&&(Fie(u)!==Uie&&(Nre?Nre(u,Uie):Y7(u[Vie])||yee(u,Vie,Gie)),Ire(u,f,!0)),zie&&"values"==o&&h&&"values"!==h.name&&(Hie?K9(p,"name","values"):(d=!0,v=function(){return k7(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)($ie||d||!(l in p))&&yee(p,l,s[l]);else qee({target:t,proto:!0,forced:$ie||d},s);return p[Vie]!==v&&yee(p,Vie,v,{name:o}),_re[t]=v,s},qie=dee.set,Kie=dee.getterFor("Array Iterator"),Yie=Wie(Array,"Array",(function(e,t){qie(this,{type:"Array Iterator",target:K7(e),index:0,kind:t})}),(function(){var e=Kie(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");_re.Arguments=_re.Array,Ote("keys"),Ote("values"),Ote("entries");var Xie=Bne.charAt,Zie=dee.set,Jie=dee.getterFor("String Iterator");Wie(String,"String",(function(e){Zie(this,{type:"String Iterator",string:tte(e),index:0})}),(function(){var e,t=Jie(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Xie(n,r),t.index+=e.length,{value:e,done:!1})}));var Qie=Pee.f,eae="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tae={f:function(e){return eae&&"Window"==U7(e)?function(e){try{return Qie(e)}catch(e){return ire(eae)}}(e):Qie(K7(e))}},nae=O7((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),rae=Object.isExtensible,oae=O7((function(){rae(1)}))||nae?function(e){return!!X7(e)&&(!nae||"ArrayBuffer"!=U7(e))&&(!rae||rae(e))}:rae,iae=!O7((function(){return Object.isExtensible(Object.preventExtensions({}))})),aae=S7((function(e){var t=q9.f,n=!1,r=O9("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Pee.f,t=M7([].splice),o={};o[r]=1,e(o).length&&(Pee.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},qee({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:tae.f}))},fastKey:function(e,t){if(!X7(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!C9(e,r)){if(!oae(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!C9(e,r)){if(!oae(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return iae&&n&&oae(e)&&!C9(e,r)&&i(e),e}};oee[r]=!0})),uae=aae.getWeakData,sae=dee.set,lae=dee.getterFor,cae=Wte.find,fae=Wte.findIndex,dae=M7([].splice),pae=0,hae=function(e){return e.frozen||(e.frozen=new vae)},vae=function(){this.entries=[]},gae=function(e,t){return cae(e.entries,(function(e){return e[0]===t}))};vae.prototype={get:function(e){var t=gae(this,e);if(t)return t[1]},has:function(e){return!!gae(this,e)},set:function(e,t){var n=gae(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=fae(this.entries,(function(t){return t[0]===e}));return~t&&dae(this.entries,t,1),!!~t}};var yae,mae={getConstructor:function(e,t,n,r){var o=e((function(e,o){Rre(e,i),sae(e,{type:t,id:pae++,frozen:void 0}),null!=o&&Wre(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=lae(t),u=function(e,t,n){var r=a(e),o=uae(V9(t),!0);return!0===o?hae(r).set(t,n):o[r.id]=n,e};return xre(i,{delete:function(e){var t=a(this);if(!X7(e))return!1;var n=uae(e);return!0===n?hae(t).delete(e):n&&C9(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!X7(e))return!1;var n=uae(e);return!0===n?hae(t).has(e):n&&C9(n,t.id)}}),xre(i,n?{get:function(e){var t=a(this);if(X7(e)){var n=uae(e);return!0===n?hae(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},bae=dee.enforce,Eae=!x7.ActiveXObject&&"ActiveXObject"in x7,wae=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Sae=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=x7[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=M7(u[e]);yee(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!X7(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!X7(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!X7(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Gee(e,!Y7(a)||!(o||u.forEach&&!O7((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),aae.enable();else if(Gee(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=O7((function(){f.has(1)})),h=toe((function(e){new a(e)})),v=!o&&O7((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Rre(e,u);var n=function(e,t,n){var r,o;return Nre&&Y7(r=t.constructor)&&r!==n&&X7(o=r.prototype)&&o!==n.prototype&&Nre(e,o),e}(new a,e,s);return null!=t&&Wre(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,qee({global:!0,forced:s!=a},l),Ire(s,e),o||n.setStrong(s,e,r),s}("WeakMap",wae,mae);if(tee&&Eae){yae=mae.getConstructor(wae,"WeakMap",!0),aae.enable();var Cae=Sae.prototype,Dae=M7(Cae.delete),Aae=M7(Cae.has),xae=M7(Cae.get),Oae=M7(Cae.set);xre(Cae,{delete:function(e){if(X7(e)&&!oae(e)){var t=bae(this);return t.frozen||(t.frozen=new yae),Dae(this,e)||t.frozen.delete(e)}return Dae(this,e)},has:function(e){if(X7(e)&&!oae(e)){var t=bae(this);return t.frozen||(t.frozen=new yae),Aae(this,e)||t.frozen.has(e)}return Aae(this,e)},get:function(e){if(X7(e)&&!oae(e)){var t=bae(this);return t.frozen||(t.frozen=new yae),Aae(this,e)?xae(this,e):t.frozen.get(e)}return xae(this,e)},set:function(e,t){if(X7(e)&&!oae(e)){var n=bae(this);n.frozen||(n.frozen=new yae),Aae(this,e)?Oae(this,e,t):n.frozen.set(e,t)}else Oae(this,e,t);return this}})}var Tae=I9("iterator"),Nae=I9("toStringTag"),kae=Yie.values,Bae=function(e,t){if(e){if(e[Tae]!==kae)try{K9(e,Tae,kae)}catch(t){e[Tae]=kae}if(e[Nae]||K9(e,Nae,t),dre[t])for(var n in Yie)if(e[n]!==Yie[n])try{K9(e,n,Yie[n])}catch(t){e[n]=Yie[n]}}};for(var Iae in dre)Bae(x7[Iae]&&x7[Iae].prototype,Iae);Bae(vre,"DOMTokenList");var Fae=gee.EXISTS,Pae=q9.f,Rae=Function.prototype,_ae=M7(Rae.toString),Lae=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,jae=M7(Lae.exec);T7&&!Fae&&Pae(Rae,"name",{configurable:!0,get:function(){try{return jae(Lae,_ae(this))[1]}catch(e){return""}}});var Mae=I9("species"),zae=i9>=51||!O7((function(){var e=[];return(e.constructor={})[Mae]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Hae=I9("species"),Uae=x7.Array,$ae=Math.max;function Vae(e){return e.getMenuConfig("uploadVideo")}qee({target:"Array",proto:!0,forced:!zae},{slice:function(e,t){var n,r,o,i=K7(this),a=xee(i),u=Cee(e,a),s=Cee(void 0===t?a:t,a);if(Ite(i)&&(n=i.constructor,(zte(n)&&(n===Uae||Ite(n.prototype))||X7(n)&&null===(n=n[Hae]))&&(n=void 0),n===Uae||void 0===n))return noe(i,u,s);for(r=new(void 0===n?Uae:n)($ae(s-u,0)),o=0;u<s;u++,o++)u in i&&nre(r,o,i[u]);return r.length=o,r}});var Gae=new WeakMap;function Wae(e,t){return y7(this,void 0,void 0,(function(){var n,r,o,i;return m7(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Gae.get(e);if(null!=t)return t;var n=Vae(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=XI(g7(g7({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Eie(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;Eie(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Gae.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var qae=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return Eie(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Mp("body"),s=Mp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;y7(this,void 0,void 0,(function(){var o,i,a,u,s,l;return m7(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Vae(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=E7(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return Eie(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Wae(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!_N.getSelectedElems(e).some((function(t){var n=_N.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}();function Kae(){return wre("w-e-insert-video")}var Yae=function(){function e(){this.title=GF("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Kae(),this.heightInputId=Kae(),this.buttonId=Kae()}return e.prototype.getSelectedVideoNode=function(e){return _N.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=b7(AI(GF("videoModule.width"),n,"auto"),2),a=i[0],u=Mp(i[1]),s=b7(AI(GF("videoModule.height"),r,"auto"),2),l=s[0],c=Mp(s[1]),f=b7(OI(o,GF("videoModule.ok")),1)[0];if(null==this.$content){var d=Mp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},s="auto",l="auto";a(o)?s=o:u(o)&&(s=parseInt(o)+"px"),a(i)?l=i:u(i)&&(l=parseInt(i)+"px");var c=h.style,f=void 0===c?{}:c;e.restoreSelection();var p={style:g7(g7({},f),{width:s,height:l})};md.setNodes(e,p,{match:function(e){return _N.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var v=h.style,g=void 0===v?{}:v,y=g.width,m=void 0===y?"":y,b=g.height,E=void 0===b?"":b;return u.val(m),c.val(E),setTimeout((function(){u.focus()})),p[0]},e}();function Xae(){return wre("w-e-edit-video")}var Zae=function(){function e(){this.title=GF("videoModule.edit"),this.iconSvg='<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>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Xae(),this.posterInputId=Xae(),this.buttonId=Xae()}return e.prototype.getSelectedVideoNode=function(e){return _N.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=b7(AI(GF("videoModule.videoSrc"),r,GF("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=b7(AI(GF("videoModule.videoPoster"),o,GF("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Mp(s),p=Mp(f),h=b7(OI(i,GF("videoModule.ok")),1)[0];if(null==this.$content){var v=Mp("<div></div>");v.on("click","#"+i,(function(n){return y7(t,void 0,void 0,(function(){var t,i,a,u;return m7(this,(function(s){return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),a=wre("video-"),u={src:t,poster:i,key:a},e.restoreSelection(),md.setNodes(e,u,{match:function(e){return _N.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]}))}))})),this.$content=v}var g=this.$content;g.empty(),g.append(u),g.append(c),g.append(h);var y=this.getSelectedVideoNode(e);if(null==y)return g[0];var m=y.src,b=void 0===m?"":m,E=y.poster,w=void 0===E?"":E;return d.val(b),p.val(w),setTimeout((function(){d.focus()})),g[0]},e}(),Jae={renderElems:[hte],elemsToHtml:[vte],preParseHtml:[Nte],parseElemsHtml:[Dre],menus:[{key:"insertVideo",factory:function(){return new Sie},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new qae},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new Yae}},{key:"editVideoSrc",factory:function(){return new Zae}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=b7(e,2),o=t[0],i=t[1];return"video"===_N.getNodeType(o)&&_N.isLastNode(r,o)&&md.insertNodes(r,_N.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};UF("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),UF("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Qae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function eue(e){var t={exports:{}};return e(t,t.exports),t.exports}var tue,nue,rue=function(e){return e&&e.Math==Math&&e},oue=rue("object"==typeof globalThis&&globalThis)||rue("object"==typeof window&&window)||rue("object"==typeof self&&self)||rue("object"==typeof Qae&&Qae)||function(){return this}()||Function("return this")(),iue=function(e){try{return!!e()}catch(e){return!0}},aue=!iue((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),uue=Function.prototype.call,sue=uue.bind?uue.bind(uue):function(){return uue.apply(uue,arguments)},lue={}.propertyIsEnumerable,cue=Object.getOwnPropertyDescriptor,fue={f:cue&&!lue.call({1:2},1)?function(e){var t=cue(this,e);return!!t&&t.enumerable}:lue},due=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pue=Function.prototype,hue=pue.bind,vue=pue.call,gue=hue&&hue.bind(vue),yue=hue?function(e){return e&&gue(vue,e)}:function(e){return e&&function(){return vue.apply(e,arguments)}},mue=yue({}.toString),bue=yue("".slice),Eue=function(e){return bue(mue(e),8,-1)},wue=oue.Object,Sue=yue("".split),Cue=iue((function(){return!wue("z").propertyIsEnumerable(0)}))?function(e){return"String"==Eue(e)?Sue(e,""):wue(e)}:wue,Due=oue.TypeError,Aue=function(e){if(null==e)throw Due("Can't call method on "+e);return e},xue=function(e){return Cue(Aue(e))},Oue=function(e){return"function"==typeof e},Tue=function(e){return"object"==typeof e?null!==e:Oue(e)},Nue=function(e){return Oue(e)?e:void 0},kue=function(e,t){return arguments.length<2?Nue(oue[e]):oue[e]&&oue[e][t]},Bue=yue({}.isPrototypeOf),Iue=kue("navigator","userAgent")||"",Fue=oue.process,Pue=oue.Deno,Rue=Fue&&Fue.versions||Pue&&Pue.version,_ue=Rue&&Rue.v8;_ue&&(nue=(tue=_ue.split("."))[0]>0&&tue[0]<4?1:+(tue[0]+tue[1])),!nue&&Iue&&(!(tue=Iue.match(/Edge\/(\d+)/))||tue[1]>=74)&&(tue=Iue.match(/Chrome\/(\d+)/))&&(nue=+tue[1]);var Lue=nue,jue=!!Object.getOwnPropertySymbols&&!iue((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Lue&&Lue<41})),Mue=jue&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zue=oue.Object,Hue=Mue?function(e){return"symbol"==typeof e}:function(e){var t=kue("Symbol");return Oue(t)&&Bue(t.prototype,zue(e))},Uue=oue.String,$ue=function(e){try{return Uue(e)}catch(e){return"Object"}},Vue=oue.TypeError,Gue=function(e){if(Oue(e))return e;throw Vue($ue(e)+" is not a function")},Wue=function(e,t){var n=e[t];return null==n?void 0:Gue(n)},que=oue.TypeError,Kue=Object.defineProperty,Yue=function(e,t){try{Kue(oue,e,{value:t,configurable:!0,writable:!0})}catch(n){oue[e]=t}return t},Xue=oue["__core-js_shared__"]||Yue("__core-js_shared__",{}),Zue=eue((function(e){(e.exports=function(e,t){return Xue[e]||(Xue[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Jue=oue.Object,Que=function(e){return Jue(Aue(e))},ese=yue({}.hasOwnProperty),tse=Object.hasOwn||function(e,t){return ese(Que(e),t)},nse=0,rse=Math.random(),ose=yue(1..toString),ise=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ose(++nse+rse,36)},ase=Zue("wks"),use=oue.Symbol,sse=use&&use.for,lse=Mue?use:use&&use.withoutSetter||ise,cse=function(e){if(!tse(ase,e)||!jue&&"string"!=typeof ase[e]){var t="Symbol."+e;jue&&tse(use,e)?ase[e]=use[e]:ase[e]=Mue&&sse?sse(t):lse(t)}return ase[e]},fse=oue.TypeError,dse=cse("toPrimitive"),pse=function(e){var t=function(e,t){if(!Tue(e)||Hue(e))return e;var n,r=Wue(e,dse);if(r){if(void 0===t&&(t="default"),n=sue(r,e,t),!Tue(n)||Hue(n))return n;throw fse("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Oue(n=e.toString)&&!Tue(r=sue(n,e)))return r;if(Oue(n=e.valueOf)&&!Tue(r=sue(n,e)))return r;if("string"!==t&&Oue(n=e.toString)&&!Tue(r=sue(n,e)))return r;throw que("Can't convert object to primitive value")}(e,t)}(e,"string");return Hue(t)?t:t+""},hse=oue.document,vse=Tue(hse)&&Tue(hse.createElement),gse=function(e){return vse?hse.createElement(e):{}},yse=!aue&&!iue((function(){return 7!=Object.defineProperty(gse("div"),"a",{get:function(){return 7}}).a})),mse=Object.getOwnPropertyDescriptor,bse={f:aue?mse:function(e,t){if(e=xue(e),t=pse(t),yse)try{return mse(e,t)}catch(e){}if(tse(e,t))return due(!sue(fue.f,e,t),e[t])}},Ese=oue.String,wse=oue.TypeError,Sse=function(e){if(Tue(e))return e;throw wse(Ese(e)+" is not an object")},Cse=oue.TypeError,Dse=Object.defineProperty,Ase={f:aue?Dse:function(e,t,n){if(Sse(e),t=pse(t),Sse(n),yse)try{return Dse(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Cse("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},xse=aue?function(e,t,n){return Ase.f(e,t,due(1,n))}:function(e,t,n){return e[t]=n,e},Ose=yue(Function.toString);Oue(Xue.inspectSource)||(Xue.inspectSource=function(e){return Ose(e)});var Tse,Nse,kse,Bse=Xue.inspectSource,Ise=oue.WeakMap,Fse=Oue(Ise)&&/native code/.test(Bse(Ise)),Pse=Zue("keys"),Rse=function(e){return Pse[e]||(Pse[e]=ise(e))},_se={},Lse=oue.TypeError,jse=oue.WeakMap;if(Fse||Xue.state){var Mse=Xue.state||(Xue.state=new jse),zse=yue(Mse.get),Hse=yue(Mse.has),Use=yue(Mse.set);Tse=function(e,t){if(Hse(Mse,e))throw new Lse("Object already initialized");return t.facade=e,Use(Mse,e,t),t},Nse=function(e){return zse(Mse,e)||{}},kse=function(e){return Hse(Mse,e)}}else{var $se=Rse("state");_se[$se]=!0,Tse=function(e,t){if(tse(e,$se))throw new Lse("Object already initialized");return t.facade=e,xse(e,$se,t),t},Nse=function(e){return tse(e,$se)?e[$se]:{}},kse=function(e){return tse(e,$se)}}var Vse={set:Tse,get:Nse,has:kse,enforce:function(e){return kse(e)?Nse(e):Tse(e,{})},getterFor:function(e){return function(t){var n;if(!Tue(t)||(n=Nse(t)).type!==e)throw Lse("Incompatible receiver, "+e+" required");return n}}},Gse=Function.prototype,Wse=aue&&Object.getOwnPropertyDescriptor,qse=tse(Gse,"name"),Kse={EXISTS:qse,PROPER:qse&&"something"===function(){}.name,CONFIGURABLE:qse&&(!aue||aue&&Wse(Gse,"name").configurable)},Yse=eue((function(e){var t=Kse.CONFIGURABLE,n=Vse.get,r=Vse.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Oue(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!tse(i,"name")||t&&i.name!==f)&&xse(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==oue?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:xse(e,n,i)):l?e[n]=i:Yue(n,i)})(Function.prototype,"toString",(function(){return Oue(this)&&n(this).source||Bse(this)}))})),Xse=Math.ceil,Zse=Math.floor,Jse=function(e){var t=+e;return t!=t||0===t?0:(t>0?Zse:Xse)(t)},Qse=Math.max,ele=Math.min,tle=function(e,t){var n=Jse(e);return n<0?Qse(n+t,0):ele(n,t)},nle=Math.min,rle=function(e){return e>0?nle(Jse(e),9007199254740991):0},ole=function(e){return rle(e.length)},ile=function(e){return function(t,n,r){var o,i=xue(t),a=ole(i),u=tle(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},ale=(ile(!0),ile(!1)),ule=yue([].push),sle=function(e,t){var n,r=xue(e),o=0,i=[];for(n in r)!tse(_se,n)&&tse(r,n)&&ule(i,n);for(;t.length>o;)tse(r,n=t[o++])&&(~ale(i,n)||ule(i,n));return i},lle=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cle=lle.concat("length","prototype"),fle={f:Object.getOwnPropertyNames||function(e){return sle(e,cle)}},dle={f:Object.getOwnPropertySymbols},ple=yue([].concat),hle=kue("Reflect","ownKeys")||function(e){var t=fle.f(Sse(e)),n=dle.f;return n?ple(t,n(e)):t},vle=function(e,t){for(var n=hle(t),r=Ase.f,o=bse.f,i=0;i<n.length;i++){var a=n[i];tse(e,a)||r(e,a,o(t,a))}},gle=/#|\.prototype\./,yle=function(e,t){var n=ble[mle(e)];return n==wle||n!=Ele&&(Oue(t)?iue(t):!!t)},mle=yle.normalize=function(e){return String(e).replace(gle,".").toLowerCase()},ble=yle.data={},Ele=yle.NATIVE="N",wle=yle.POLYFILL="P",Sle=yle,Cle=bse.f,Dle=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?oue:l?oue[u]||Yue(u,{}):(oue[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Cle(n,r))&&a.value:n[r],!Sle(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;vle(i,o)}(e.sham||o&&o.sham)&&xse(i,"sham",!0),Yse(n,r,i,e)}},Ale=Array.isArray||function(e){return"Array"==Eue(e)},xle={};xle[cse("toStringTag")]="z";var Ole="[object z]"===String(xle),Tle=cse("toStringTag"),Nle=oue.Object,kle="Arguments"==Eue(function(){return arguments}()),Ble=Ole?Eue:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Nle(e),Tle))?n:kle?Eue(t):"Object"==(r=Eue(t))&&Oue(t.callee)?"Arguments":r},Ile=function(){},Fle=[],Ple=kue("Reflect","construct"),Rle=/^\s*(?:class|function)\b/,_le=yue(Rle.exec),Lle=!Rle.exec(Ile),jle=function(e){if(!Oue(e))return!1;try{return Ple(Ile,Fle,e),!0}catch(e){return!1}},Mle=!Ple||iue((function(){var e;return jle(jle.call)||!jle(Object)||!jle((function(){e=!0}))||e}))?function(e){if(!Oue(e))return!1;switch(Ble(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lle||!!_le(Rle,Bse(e))}:jle,zle=function(e,t,n){var r=pse(t);r in e?Ase.f(e,r,due(0,n)):e[r]=n},Hle=cse("species"),Ule=yue([].slice),$le=("slice",Lue>=51||!iue((function(){var e=[];return(e.constructor={})[Hle]=function(){return{foo:1}},1!==e.slice(Boolean).foo}))),Vle=cse("species"),Gle=oue.Array,Wle=Math.max;Dle({target:"Array",proto:!0,forced:!$le},{slice:function(e,t){var n,r,o,i=xue(this),a=ole(i),u=tle(e,a),s=tle(void 0===t?a:t,a);if(Ale(i)&&(n=i.constructor,(Mle(n)&&(n===Gle||Ale(n.prototype))||Tue(n)&&null===(n=n[Vle]))&&(n=void 0),n===Gle||void 0===n))return Ule(i,u,s);for(r=new(void 0===n?Gle:n)(Wle(s-u,0)),o=0;u<s;u++,o++)u in i&&zle(r,o,i[u]);return r.length=o,r}});var qle=Ole?{}.toString:function(){return"[object "+Ble(this)+"]"};Ole||Yse(Object.prototype,"toString",qle,{unsafe:!0});var Kle,Yle=oue.String,Xle=function(e){if("Symbol"===Ble(e))throw TypeError("Cannot convert a Symbol value to a string");return Yle(e)},Zle=function(){var e=Sse(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Jle=oue.RegExp,Qle=iue((function(){var e=Jle("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ece=Qle||iue((function(){return!Jle("a","y").sticky})),tce={BROKEN_CARET:Qle||iue((function(){var e=Jle("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ece,UNSUPPORTED_Y:Qle},nce=Object.keys||function(e){return sle(e,lle)},rce=aue?Object.defineProperties:function(e,t){Sse(e);for(var n,r=xue(t),o=nce(t),i=o.length,a=0;i>a;)Ase.f(e,n=o[a++],r[n]);return e},oce=kue("document","documentElement"),ice=Rse("IE_PROTO"),ace=function(){},uce=function(e){return"<script>"+e+"<\/script>"},sce=function(e){e.write(uce("")),e.close();var t=e.parentWindow.Object;return e=null,t},lce=function(){try{Kle=new ActiveXObject("htmlfile")}catch(e){}var e,t;lce="undefined"!=typeof document?document.domain&&Kle?sce(Kle):((t=gse("iframe")).style.display="none",oce.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(uce("document.F=Object")),e.close(),e.F):sce(Kle);for(var n=lle.length;n--;)delete lce.prototype[lle[n]];return lce()};_se[ice]=!0;var cce,fce,dce=Object.create||function(e,t){var n;return null!==e?(ace.prototype=Sse(e),n=new ace,ace.prototype=null,n[ice]=e):n=lce(),void 0===t?n:rce(n,t)},pce=oue.RegExp,hce=iue((function(){var e=pce(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),vce=oue.RegExp,gce=iue((function(){var e=vce("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),yce=Vse.get,mce=Zue("native-string-replace",String.prototype.replace),bce=RegExp.prototype.exec,Ece=bce,wce=yue("".charAt),Sce=yue("".indexOf),Cce=yue("".replace),Dce=yue("".slice),Ace=(fce=/b*/g,sue(bce,cce=/a/,"a"),sue(bce,fce,"a"),0!==cce.lastIndex||0!==fce.lastIndex),xce=tce.BROKEN_CARET,Oce=void 0!==/()??/.exec("")[1];(Ace||Oce||xce||hce||gce)&&(Ece=function(e){var t,n,r,o,i,a,u,s=this,l=yce(s),c=Xle(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=sue(Ece,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xce&&s.sticky,h=sue(Zle,s),v=s.source,g=0,y=c;if(p&&(h=Cce(h,"y",""),-1===Sce(h,"g")&&(h+="g"),y=Dce(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==wce(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Oce&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Ace&&(r=s.lastIndex),o=sue(bce,p?n:s,y),p?o?(o.input=Dce(o.input,g),o[0]=Dce(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ace&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Oce&&o&&o.length>1&&sue(mce,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=dce(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Tce=Ece;Dle({target:"RegExp",proto:!0,forced:/./.exec!==Tce},{exec:Tce});var Nce=Function.prototype,kce=Nce.apply,Bce=Nce.bind,Ice=Nce.call,Fce="object"==typeof Reflect&&Reflect.apply||(Bce?Ice.bind(kce):function(){return Ice.apply(kce,arguments)}),Pce=cse("species"),Rce=RegExp.prototype,_ce=cse("match"),Lce=oue.TypeError,jce=cse("species"),Mce=function(e,t){var n,r=Sse(e).constructor;return void 0===r||null==(n=Sse(r)[jce])?t:function(e){if(Mle(e))return e;throw Lce($ue(e)+" is not a constructor")}(n)},zce=yue("".charAt),Hce=yue("".charCodeAt),Uce=yue("".slice),$ce=function(e){return function(t,n){var r,o,i=Xle(Aue(t)),a=Jse(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Hce(i,a))<55296||r>56319||a+1===u||(o=Hce(i,a+1))<56320||o>57343?e?zce(i,a):r:e?Uce(i,a,a+2):o-56320+(r-55296<<10)+65536}},Vce={codeAt:$ce(!1),charAt:$ce(!0)},Gce=Vce.charAt,Wce=function(e,t,n){return t+(n?Gce(e,t).length:1)},qce=oue.Array,Kce=Math.max,Yce=function(e,t,n){for(var r=ole(e),o=tle(t,r),i=tle(void 0===n?r:n,r),a=qce(Kce(i-o,0)),u=0;o<i;o++,u++)zle(a,u,e[o]);return a.length=u,a},Xce=oue.TypeError,Zce=function(e,t){var n=e.exec;if(Oue(n)){var r=sue(n,e,t);return null!==r&&Sse(r),r}if("RegExp"===Eue(e))return sue(Tce,e,t);throw Xce("RegExp#exec called on incompatible receiver")},Jce=tce.UNSUPPORTED_Y,Qce=Math.min,efe=[].push,tfe=yue(/./.exec),nfe=yue(efe),rfe=yue("".slice);!function(e,t,n,r){var o=cse(e),i=!iue((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!iue((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Pce]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=yue(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Xle(Aue(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Tue(r=e)||!(void 0!==(o=r[_ce])?o:"RegExp"==Eue(r)))return sue(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=sue(Tce,p,i))&&!((s=p.lastIndex)>d&&(nfe(c,rfe(i,d,u.index)),u.length>1&&u.index<i.length&&Fce(efe,c,Yce(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&tfe(p,"")||nfe(c,""):nfe(c,rfe(i,d)),c.length>a?Yce(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:sue(t,this,e,n)}:t,[function(t,n){var o=Aue(this),i=null==t?void 0:Wue(t,e);return i?sue(i,t,o,n):sue(r,Xle(o),t,n)},function(e,o){var i=Sse(this),a=Xle(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Mce(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Jce?"g":"y"),f=new s(Jce?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Zce(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Jce?0:h;var g,y=Zce(f,Jce?rfe(a,h):a);if(null===y||(g=Qce(rle(f.lastIndex+(Jce?h:0)),a.length))===p)h=Wce(a,h,l);else{if(nfe(v,rfe(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(nfe(v,y[m]),v.length===d)return v;h=p=g}}return nfe(v,rfe(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=yue(e),s=t.exec;return s===Tce||s===Rce.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Yse(String.prototype,e,s[0]),Yse(Rce,o,s[1])}r&&xse(Rce[o],"sham",!0)}("split",0,!!iue((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Jce);var ofe=function(){return ofe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ofe.apply(this,arguments)};function ife(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function afe(e,t){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)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function ufe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var sfe=cse("unscopables"),lfe=Array.prototype;null==lfe[sfe]&&Ase.f(lfe,sfe,{configurable:!0,value:dce(null)});var cfe,ffe,dfe,pfe=function(e){lfe[sfe][e]=!0},hfe={},vfe=!iue((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),gfe=Rse("IE_PROTO"),yfe=oue.Object,mfe=yfe.prototype,bfe=vfe?yfe.getPrototypeOf:function(e){var t=Que(e);if(tse(t,gfe))return t[gfe];var n=t.constructor;return Oue(n)&&t instanceof n?n.prototype:t instanceof yfe?mfe:null},Efe=cse("iterator"),wfe=!1;[].keys&&("next"in(dfe=[].keys())?(ffe=bfe(bfe(dfe)))!==Object.prototype&&(cfe=ffe):wfe=!0);var Sfe=null==cfe||iue((function(){var e={};return cfe[Efe].call(e)!==e}));Sfe&&(cfe={}),Oue(cfe[Efe])||Yse(cfe,Efe,(function(){return this}));var Cfe={IteratorPrototype:cfe,BUGGY_SAFARI_ITERATORS:wfe},Dfe=Ase.f,Afe=cse("toStringTag"),xfe=function(e,t,n){e&&!tse(e=n?e:e.prototype,Afe)&&Dfe(e,Afe,{configurable:!0,value:t})},Ofe=Cfe.IteratorPrototype,Tfe=function(){return this},Nfe=oue.String,kfe=oue.TypeError,Bfe=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=yue(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Sse(n),function(e){if("object"==typeof e||Oue(e))return e;throw kfe("Can't set "+Nfe(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ife=Kse.PROPER,Ffe=Kse.CONFIGURABLE,Pfe=Cfe.IteratorPrototype,Rfe=Cfe.BUGGY_SAFARI_ITERATORS,_fe=cse("iterator"),Lfe=function(){return this},jfe=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=dce(Ofe,{next:due(1,n)}),xfe(e,o,!1),hfe[o]=Tfe}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!Rfe&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[_fe]||p["@@iterator"]||o&&p[o],v=!Rfe&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=bfe(g.call(new e)))!==Object.prototype&&u.next&&(bfe(u)!==Pfe&&(Bfe?Bfe(u,Pfe):Oue(u[_fe])||Yse(u,_fe,Lfe)),xfe(u,f,!0)),Ife&&"values"==o&&h&&"values"!==h.name&&(Ffe?xse(p,"name","values"):(d=!0,v=function(){return sue(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(Rfe||d||!(l in p))&&Yse(p,l,s[l]);else Dle({target:t,proto:!0,forced:Rfe||d},s);return p[_fe]!==v&&Yse(p,_fe,v,{name:o}),hfe[t]=v,s},Mfe=Vse.set,zfe=Vse.getterFor("Array Iterator"),Hfe=jfe(Array,"Array",(function(e,t){Mfe(this,{type:"Array Iterator",target:xue(e),index:0,kind:t})}),(function(){var e=zfe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");hfe.Arguments=hfe.Array,pfe("keys"),pfe("values"),pfe("entries");var Ufe=Vce.charAt,$fe=Vse.set,Vfe=Vse.getterFor("String Iterator");jfe(String,"String",(function(e){$fe(this,{type:"String Iterator",string:Xle(e),index:0})}),(function(){var e,t=Vfe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ufe(n,r),t.index+=e.length,{value:e,done:!1})}));var Gfe=function(e,t,n){for(var r in t)Yse(e,r,t[r],n);return e},Wfe=fle.f,qfe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kfe={f:function(e){return qfe&&"Window"==Eue(e)?function(e){try{return Wfe(e)}catch(e){return Yce(qfe)}}(e):Wfe(xue(e))}},Yfe=iue((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Xfe=Object.isExtensible,Zfe=iue((function(){Xfe(1)}))||Yfe?function(e){return!!Tue(e)&&(!Yfe||"ArrayBuffer"!=Eue(e))&&(!Xfe||Xfe(e))}:Xfe,Jfe=!iue((function(){return Object.isExtensible(Object.preventExtensions({}))})),Qfe=eue((function(e){var t=Ase.f,n=!1,r=ise("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=fle.f,t=yue([].splice),o={};o[r]=1,e(o).length&&(fle.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Dle({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Kfe.f}))},fastKey:function(e,t){if(!Tue(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!tse(e,r)){if(!Zfe(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!tse(e,r)){if(!Zfe(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Jfe&&n&&Zfe(e)&&!tse(e,r)&&i(e),e}};_se[r]=!0})),ede=yue(yue.bind),tde=function(e,t){return Gue(e),void 0===t?e:ede?ede(e,t):function(){return e.apply(t,arguments)}},nde=cse("iterator"),rde=Array.prototype,ode=cse("iterator"),ide=function(e){if(null!=e)return Wue(e,ode)||Wue(e,"@@iterator")||hfe[Ble(e)]},ade=oue.TypeError,ude=function(e,t,n){var r,o;Sse(e);try{if(!(r=Wue(e,"return"))){if("throw"===t)throw n;return n}r=sue(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Sse(r),n},sde=oue.TypeError,lde=function(e,t){this.stopped=e,this.result=t},cde=lde.prototype,fde=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=tde(t,f),g=function(e){return r&&ude(r,"normal",e),new lde(!0,e)},y=function(e){return d?(Sse(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=ide(e)))throw sde($ue(e)+" is not iterable");if(void 0!==(c=o)&&(hfe.Array===c||rde[nde]===c)){for(i=0,a=ole(e);a>i;i++)if((u=y(e[i]))&&Bue(cde,u))return u;return new lde(!1)}r=function(e,t){var n=arguments.length<2?ide(e):t;if(Gue(n))return Sse(sue(n,e));throw ade($ue(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=sue(s,r)).done;){try{u=y(l.value)}catch(e){ude(r,"throw",e)}if("object"==typeof u&&u&&Bue(cde,u))return u}return new lde(!1)},dde=oue.TypeError,pde=function(e,t){if(Bue(t,e))return e;throw dde("Incorrect invocation")},hde=cse("iterator"),vde=!1;try{var gde=0,yde={next:function(){return{done:!!gde++}},return:function(){vde=!0}};yde[hde]=function(){return this},Array.from(yde,(function(){throw 2}))}catch(Ml){}var mde=function(e,t){if(!t&&!vde)return!1;var n=!1;try{var r={};r[hde]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},bde=cse("species"),Ede=oue.Array,wde=function(e,t){return new(function(e){var t;return Ale(e)&&(t=e.constructor,(Mle(t)&&(t===Ede||Ale(t.prototype))||Tue(t)&&null===(t=t[bde]))&&(t=void 0)),void 0===t?Ede:t}(e))(0===t?0:t)},Sde=yue([].push),Cde=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Que(s),v=Cue(h),g=tde(l,c),y=ole(v),m=0,b=f||wde,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Sde(E,d)}else switch(e){case 4:return!1;case 7:Sde(E,d)}return i?-1:r||o?o:E}},Dde={forEach:Cde(0),map:Cde(1),filter:Cde(2),some:Cde(3),every:Cde(4),find:Cde(5),findIndex:Cde(6),filterReject:Cde(7)},Ade=Qfe.getWeakData,xde=Vse.set,Ode=Vse.getterFor,Tde=Dde.find,Nde=Dde.findIndex,kde=yue([].splice),Bde=0,Ide=function(e){return e.frozen||(e.frozen=new Fde)},Fde=function(){this.entries=[]},Pde=function(e,t){return Tde(e.entries,(function(e){return e[0]===t}))};Fde.prototype={get:function(e){var t=Pde(this,e);if(t)return t[1]},has:function(e){return!!Pde(this,e)},set:function(e,t){var n=Pde(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Nde(this.entries,(function(t){return t[0]===e}));return~t&&kde(this.entries,t,1),!!~t}};var Rde,_de={getConstructor:function(e,t,n,r){var o=e((function(e,o){pde(e,i),xde(e,{type:t,id:Bde++,frozen:void 0}),null!=o&&fde(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Ode(t),u=function(e,t,n){var r=a(e),o=Ade(Sse(t),!0);return!0===o?Ide(r).set(t,n):o[r.id]=n,e};return Gfe(i,{delete:function(e){var t=a(this);if(!Tue(e))return!1;var n=Ade(e);return!0===n?Ide(t).delete(e):n&&tse(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Tue(e))return!1;var n=Ade(e);return!0===n?Ide(t).has(e):n&&tse(n,t.id)}}),Gfe(i,n?{get:function(e){var t=a(this);if(Tue(e)){var n=Ade(e);return!0===n?Ide(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Lde=Vse.enforce,jde=!oue.ActiveXObject&&"ActiveXObject"in oue,Mde=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},zde=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=oue[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=yue(u[e]);Yse(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Tue(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Tue(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Tue(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Sle(e,!Oue(a)||!(o||u.forEach&&!iue((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Qfe.enable();else if(Sle(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=iue((function(){f.has(1)})),h=mde((function(e){new a(e)})),v=!o&&iue((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){pde(e,u);var n=function(e,t,n){var r,o;return Bfe&&Oue(r=t.constructor)&&r!==n&&Tue(o=r.prototype)&&o!==n.prototype&&Bfe(e,o),e}(new a,e,s);return null!=t&&fde(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Dle({global:!0,forced:s!=a},l),xfe(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Mde,_de);if(Fse&&jde){Rde=_de.getConstructor(Mde,"WeakMap",!0),Qfe.enable();var Hde=zde.prototype,Ude=yue(Hde.delete),$de=yue(Hde.has),Vde=yue(Hde.get),Gde=yue(Hde.set);Gfe(Hde,{delete:function(e){if(Tue(e)&&!Zfe(e)){var t=Lde(this);return t.frozen||(t.frozen=new Rde),Ude(this,e)||t.frozen.delete(e)}return Ude(this,e)},has:function(e){if(Tue(e)&&!Zfe(e)){var t=Lde(this);return t.frozen||(t.frozen=new Rde),$de(this,e)||t.frozen.has(e)}return $de(this,e)},get:function(e){if(Tue(e)&&!Zfe(e)){var t=Lde(this);return t.frozen||(t.frozen=new Rde),$de(this,e)?Vde(this,e):t.frozen.get(e)}return Vde(this,e)},set:function(e,t){if(Tue(e)&&!Zfe(e)){var n=Lde(this);n.frozen||(n.frozen=new Rde),$de(this,e)?Gde(this,e,t):n.frozen.set(e,t)}else Gde(this,e,t);return this}})}var Wde={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},qde=gse("span").classList,Kde=qde&&qde.constructor&&qde.constructor.prototype,Yde=Kde===Object.prototype?void 0:Kde,Xde=cse("iterator"),Zde=cse("toStringTag"),Jde=Hfe.values,Qde=function(e,t){if(e){if(e[Xde]!==Jde)try{xse(e,Xde,Jde)}catch(t){e[Xde]=Jde}if(e[Zde]||xse(e,Zde,t),Wde[t])for(var n in Hfe)if(e[n]!==Hfe[n])try{xse(e,n,Hfe[n])}catch(t){e[n]=Hfe[n]}}};for(var epe in Wde)Qde(oue[epe]&&oue[epe].prototype,epe);Qde(Yde,"DOMTokenList");var tpe=function(e,t){var n=[][e];return!!n&&iue((function(){n.call(null,t||function(){throw 1},1)}))},npe=Dde.forEach,rpe=tpe("forEach")?[].forEach:function(e){return npe(this,e,arguments.length>1?arguments[1]:void 0)},ope=function(e){if(e&&e.forEach!==rpe)try{xse(e,"forEach",rpe)}catch(t){e.forEach=rpe}};for(var ipe in Wde)Wde[ipe]&&ope(oue[ipe]&&oue[ipe].prototype);ope(Yde);var ape,upe,spe,lpe,cpe=oue.Promise,fpe=cse("species"),dpe=/(?:ipad|iphone|ipod).*applewebkit/i.test(Iue),ppe="process"==Eue(oue.process),hpe=oue.setImmediate,vpe=oue.clearImmediate,gpe=oue.process,ype=oue.Dispatch,mpe=oue.Function,bpe=oue.MessageChannel,Epe=oue.String,wpe=0,Spe={};try{ape=oue.location}catch(Ml){}var Cpe=function(e){if(tse(Spe,e)){var t=Spe[e];delete Spe[e],t()}},Dpe=function(e){return function(){Cpe(e)}},Ape=function(e){Cpe(e.data)},xpe=function(e){oue.postMessage(Epe(e),ape.protocol+"//"+ape.host)};hpe&&vpe||(hpe=function(e){var t=Ule(arguments,1);return Spe[++wpe]=function(){Fce(Oue(e)?e:mpe(e),void 0,t)},upe(wpe),wpe},vpe=function(e){delete Spe[e]},ppe?upe=function(e){gpe.nextTick(Dpe(e))}:ype&&ype.now?upe=function(e){ype.now(Dpe(e))}:bpe&&!dpe?(lpe=(spe=new bpe).port2,spe.port1.onmessage=Ape,upe=tde(lpe.postMessage,lpe)):oue.addEventListener&&Oue(oue.postMessage)&&!oue.importScripts&&ape&&"file:"!==ape.protocol&&!iue(xpe)?(upe=xpe,oue.addEventListener("message",Ape,!1)):upe="onreadystatechange"in gse("script")?function(e){oce.appendChild(gse("script")).onreadystatechange=function(){oce.removeChild(this),Cpe(e)}}:function(e){setTimeout(Dpe(e),0)});var Ope,Tpe,Npe,kpe,Bpe,Ipe,Fpe,Ppe,Rpe={set:hpe,clear:vpe},_pe=/ipad|iphone|ipod/i.test(Iue)&&void 0!==oue.Pebble,Lpe=/web0s(?!.*chrome)/i.test(Iue),jpe=bse.f,Mpe=Rpe.set,zpe=oue.MutationObserver||oue.WebKitMutationObserver,Hpe=oue.document,Upe=oue.process,$pe=oue.Promise,Vpe=jpe(oue,"queueMicrotask"),Gpe=Vpe&&Vpe.value;Gpe||(Ope=function(){var e,t;for(ppe&&(e=Upe.domain)&&e.exit();Tpe;){t=Tpe.fn,Tpe=Tpe.next;try{t()}catch(e){throw Tpe?kpe():Npe=void 0,e}}Npe=void 0,e&&e.enter()},dpe||ppe||Lpe||!zpe||!Hpe?!_pe&&$pe&&$pe.resolve?((Fpe=$pe.resolve(void 0)).constructor=$pe,Ppe=tde(Fpe.then,Fpe),kpe=function(){Ppe(Ope)}):ppe?kpe=function(){Upe.nextTick(Ope)}:(Mpe=tde(Mpe,oue),kpe=function(){Mpe(Ope)}):(Bpe=!0,Ipe=Hpe.createTextNode(""),new zpe(Ope).observe(Ipe,{characterData:!0}),kpe=function(){Ipe.data=Bpe=!Bpe}));var Wpe,qpe,Kpe,Ype,Xpe=Gpe||function(e){var t={fn:e,next:void 0};Npe&&(Npe.next=t),Tpe||(Tpe=t,kpe()),Npe=t},Zpe=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Gue(t),this.reject=Gue(n)},Jpe={f:function(e){return new Zpe(e)}},Qpe=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},ehe="object"==typeof window,the=Rpe.set,nhe=cse("species"),rhe="Promise",ohe=Vse.getterFor(rhe),ihe=Vse.set,ahe=Vse.getterFor(rhe),uhe=cpe&&cpe.prototype,she=cpe,lhe=uhe,che=oue.TypeError,fhe=oue.document,dhe=oue.process,phe=Jpe.f,hhe=phe,vhe=!!(fhe&&fhe.createEvent&&oue.dispatchEvent),ghe=Oue(oue.PromiseRejectionEvent),yhe=!1,mhe=Sle(rhe,(function(){var e=Bse(she),t=e!==String(she);if(!t&&66===Lue)return!0;if(Lue>=51&&/native code/.test(e))return!1;var n=new she((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[nhe]=r,!(yhe=n.then((function(){}))instanceof r)||!t&&ehe&&!ghe})),bhe=mhe||!mde((function(e){she.all(e).catch((function(){}))})),Ehe=function(e){var t;return!(!Tue(e)||!Oue(t=e.then))&&t},whe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Xpe((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Ahe(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(che("Promise-chain cycle")):(u=Ehe(a))?sue(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Che(e)}))}},She=function(e,t,n){var r,o;vhe?((r=fhe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),oue.dispatchEvent(r)):r={promise:t,reason:n},!ghe&&(o=oue["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=oue.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Che=function(e){sue(the,oue,(function(){var t,n=e.facade,r=e.value;if(Dhe(e)&&(t=Qpe((function(){ppe?dhe.emit("unhandledRejection",r,n):She("unhandledrejection",n,r)})),e.rejection=ppe||Dhe(e)?2:1,t.error))throw t.value}))},Dhe=function(e){return 1!==e.rejection&&!e.parent},Ahe=function(e){sue(the,oue,(function(){var t=e.facade;ppe?dhe.emit("rejectionHandled",t):She("rejectionhandled",t,e.value)}))},xhe=function(e,t,n){return function(r){e(t,r,n)}},Ohe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,whe(e,!0))},The=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw che("Promise can't be resolved itself");var r=Ehe(t);r?Xpe((function(){var n={done:!1};try{sue(r,t,xhe(The,n,e),xhe(Ohe,n,e))}catch(t){Ohe(n,t,e)}})):(e.value=t,e.state=1,whe(e,!1))}catch(t){Ohe({done:!1},t,e)}}};if(mhe&&(lhe=(she=function(e){pde(this,lhe),Gue(e),sue(Wpe,this);var t=ohe(this);try{e(xhe(The,t),xhe(Ohe,t))}catch(e){Ohe(t,e)}}).prototype,(Wpe=function(e){ihe(this,{type:rhe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Gfe(lhe,{then:function(e,t){var n=ahe(this),r=n.reactions,o=phe(Mce(this,she));return o.ok=!Oue(e)||e,o.fail=Oue(t)&&t,o.domain=ppe?dhe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&whe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),qpe=function(){var e=new Wpe,t=ohe(e);this.promise=e,this.resolve=xhe(The,t),this.reject=xhe(Ohe,t)},Jpe.f=phe=function(e){return e===she||e===Kpe?new qpe(e):hhe(e)},Oue(cpe)&&uhe!==Object.prototype)){Ype=uhe.then,yhe||(Yse(uhe,"then",(function(e,t){var n=this;return new she((function(e,t){sue(Ype,n,e,t)})).then(e,t)}),{unsafe:!0}),Yse(uhe,"catch",lhe.catch,{unsafe:!0}));try{delete uhe.constructor}catch(Ml){}Bfe&&Bfe(uhe,lhe)}Dle({global:!0,wrap:!0,forced:mhe},{Promise:she}),xfe(she,rhe,!1),function(e){var t=kue("Promise"),n=Ase.f;aue&&t&&!t[fpe]&&n(t,fpe,{configurable:!0,get:function(){return this}})}(),Kpe=kue(rhe),Dle({target:rhe,stat:!0,forced:mhe},{reject:function(e){var t=phe(this);return sue(t.reject,void 0,e),t.promise}}),Dle({target:rhe,stat:!0,forced:mhe},{resolve:function(e){return function(e,t){if(Sse(e),Tue(t)&&t.constructor===e)return t;var n=Jpe.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Dle({target:rhe,stat:!0,forced:bhe},{all:function(e){var t=this,n=phe(t),r=n.resolve,o=n.reject,i=Qpe((function(){var n=Gue(t.resolve),i=[],a=0,u=1;fde(e,(function(e){var s=a++,l=!1;u++,sue(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=phe(t),r=n.reject,o=Qpe((function(){var o=Gue(t.resolve);fde(e,(function(e){sue(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Nhe=Kse.PROPER,khe=RegExp.prototype,Bhe=khe.toString,Ihe=yue(Zle),Fhe=iue((function(){return"/a/b"!=Bhe.call({source:"a",flags:"b"})})),Phe=Nhe&&"toString"!=Bhe.name;(Fhe||Phe)&&Yse(RegExp.prototype,"toString",(function(){var e=Sse(this),t=Xle(e.source),n=e.flags;return"/"+t+"/"+Xle(void 0===n&&Bue(khe,e)&&!("flags"in khe)?Ihe(e):n)}),{unsafe:!0});var Rhe=Kse.EXISTS,_he=Ase.f,Lhe=Function.prototype,jhe=yue(Lhe.toString),Mhe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zhe=yue(Mhe.exec);aue&&!Rhe&&_he(Lhe,"name",{configurable:!0,get:function(){try{return zhe(Mhe,jhe(this))[1]}catch(e){return""}}});var Hhe=new WeakMap;function Uhe(e){return e.getMenuConfig("uploadImage")}function $he(e,t){return ife(this,void 0,void 0,(function(){return afe(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;qH(e,i,t.name,a),n("ok")}}}))]}))}))}function Vhe(e,t){return ife(this,void 0,void 0,(function(){var n,r,o,i;return afe(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Hhe.get(e);if(null!=t)return t;var n=Uhe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=XI(ofe(ofe({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return qH(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;qH(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;qH(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Hhe.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Ghe(e,t){var n,r;return ife(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return afe(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Uhe(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=ufe(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,$he(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return qH(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Vhe(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.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 Whe=yue([].join),qhe=Cue!=Object,Khe=tpe("join",",");Dle({target:"Array",proto:!0,forced:qhe||!Khe},{join:function(e){return Whe(xue(this),void 0===e?",":e)}}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),dh&&(Mp.fn.remove=dh),Wp&&(Mp.fn.val=Wp),gh&&(Mp.fn.click=gh),Jp&&(Mp.fn.hide=Jp);var Yhe=function(){function e(){this.title=GF("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return KH(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return qH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Mp("body"),s=Mp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Ghe(e,t)}))}},e}(),Xhe={menus:[{key:"uploadImage",factory:function(){return new Yhe},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(KH(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?Ghe(e,o):t(r)}},n}};UF("en",{highLightModule:{selectLang:"Language"}}),UF("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Zhe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Jhe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Qhe,eve,tve=function(e){return e&&e.Math==Math&&e},nve=tve("object"==typeof globalThis&&globalThis)||tve("object"==typeof window&&window)||tve("object"==typeof self&&self)||tve("object"==typeof Zhe&&Zhe)||function(){return this}()||Function("return this")(),rve=Object.defineProperty,ove=function(e,t){try{rve(nve,e,{value:t,configurable:!0,writable:!0})}catch(n){nve[e]=t}return t},ive=nve["__core-js_shared__"]||ove("__core-js_shared__",{}),ave=Jhe((function(e){(e.exports=function(e,t){return ive[e]||(ive[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),uve=Function.prototype,sve=uve.bind,lve=uve.call,cve=sve&&sve.bind(lve),fve=sve?function(e){return e&&cve(lve,e)}:function(e){return e&&function(){return lve.apply(e,arguments)}},dve=nve.TypeError,pve=function(e){if(null==e)throw dve("Can't call method on "+e);return e},hve=nve.Object,vve=function(e){return hve(pve(e))},gve=fve({}.hasOwnProperty),yve=Object.hasOwn||function(e,t){return gve(vve(e),t)},mve=0,bve=Math.random(),Eve=fve(1..toString),wve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Eve(++mve+bve,36)},Sve=function(e){return"function"==typeof e},Cve=function(e){return Sve(e)?e:void 0},Dve=function(e,t){return arguments.length<2?Cve(nve[e]):nve[e]&&nve[e][t]},Ave=Dve("navigator","userAgent")||"",xve=nve.process,Ove=nve.Deno,Tve=xve&&xve.versions||Ove&&Ove.version,Nve=Tve&&Tve.v8;Nve&&(eve=(Qhe=Nve.split("."))[0]>0&&Qhe[0]<4?1:+(Qhe[0]+Qhe[1])),!eve&&Ave&&(!(Qhe=Ave.match(/Edge\/(\d+)/))||Qhe[1]>=74)&&(Qhe=Ave.match(/Chrome\/(\d+)/))&&(eve=+Qhe[1]);var kve=eve,Bve=function(e){try{return!!e()}catch(e){return!0}},Ive=!!Object.getOwnPropertySymbols&&!Bve((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&kve&&kve<41})),Fve=Ive&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Pve=ave("wks"),Rve=nve.Symbol,_ve=Rve&&Rve.for,Lve=Fve?Rve:Rve&&Rve.withoutSetter||wve,jve=function(e){if(!yve(Pve,e)||!Ive&&"string"!=typeof Pve[e]){var t="Symbol."+e;Ive&&yve(Rve,e)?Pve[e]=Rve[e]:Pve[e]=Fve&&_ve?_ve(t):Lve(t)}return Pve[e]},Mve={};Mve[jve("toStringTag")]="z";var zve="[object z]"===String(Mve),Hve=!Bve((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Uve=function(e){return"object"==typeof e?null!==e:Sve(e)},$ve=nve.document,Vve=Uve($ve)&&Uve($ve.createElement),Gve=function(e){return Vve?$ve.createElement(e):{}},Wve=!Hve&&!Bve((function(){return 7!=Object.defineProperty(Gve("div"),"a",{get:function(){return 7}}).a})),qve=nve.String,Kve=nve.TypeError,Yve=function(e){if(Uve(e))return e;throw Kve(qve(e)+" is not an object")},Xve=Function.prototype.call,Zve=Xve.bind?Xve.bind(Xve):function(){return Xve.apply(Xve,arguments)},Jve=fve({}.isPrototypeOf),Qve=nve.Object,ege=Fve?function(e){return"symbol"==typeof e}:function(e){var t=Dve("Symbol");return Sve(t)&&Jve(t.prototype,Qve(e))},tge=nve.String,nge=function(e){try{return tge(e)}catch(e){return"Object"}},rge=nve.TypeError,oge=function(e){if(Sve(e))return e;throw rge(nge(e)+" is not a function")},ige=function(e,t){var n=e[t];return null==n?void 0:oge(n)},age=nve.TypeError,uge=nve.TypeError,sge=jve("toPrimitive"),lge=function(e){var t=function(e,t){if(!Uve(e)||ege(e))return e;var n,r=ige(e,sge);if(r){if(void 0===t&&(t="default"),n=Zve(r,e,t),!Uve(n)||ege(n))return n;throw uge("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Sve(n=e.toString)&&!Uve(r=Zve(n,e)))return r;if(Sve(n=e.valueOf)&&!Uve(r=Zve(n,e)))return r;if("string"!==t&&Sve(n=e.toString)&&!Uve(r=Zve(n,e)))return r;throw age("Can't convert object to primitive value")}(e,t)}(e,"string");return ege(t)?t:t+""},cge=nve.TypeError,fge=Object.defineProperty,dge={f:Hve?fge:function(e,t,n){if(Yve(e),t=lge(t),Yve(n),Wve)try{return fge(e,t,n)}catch(e){}if("get"in n||"set"in n)throw cge("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},pge=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hge=Hve?function(e,t,n){return dge.f(e,t,pge(1,n))}:function(e,t,n){return e[t]=n,e},vge=fve(Function.toString);Sve(ive.inspectSource)||(ive.inspectSource=function(e){return vge(e)});var gge,yge,mge,bge=ive.inspectSource,Ege=nve.WeakMap,wge=Sve(Ege)&&/native code/.test(bge(Ege)),Sge=ave("keys"),Cge=function(e){return Sge[e]||(Sge[e]=wve(e))},Dge={},Age=nve.TypeError,xge=nve.WeakMap;if(wge||ive.state){var Oge=ive.state||(ive.state=new xge),Tge=fve(Oge.get),Nge=fve(Oge.has),kge=fve(Oge.set);gge=function(e,t){if(Nge(Oge,e))throw new Age("Object already initialized");return t.facade=e,kge(Oge,e,t),t},yge=function(e){return Tge(Oge,e)||{}},mge=function(e){return Nge(Oge,e)}}else{var Bge=Cge("state");Dge[Bge]=!0,gge=function(e,t){if(yve(e,Bge))throw new Age("Object already initialized");return t.facade=e,hge(e,Bge,t),t},yge=function(e){return yve(e,Bge)?e[Bge]:{}},mge=function(e){return yve(e,Bge)}}var Ige={set:gge,get:yge,has:mge,enforce:function(e){return mge(e)?yge(e):gge(e,{})},getterFor:function(e){return function(t){var n;if(!Uve(t)||(n=yge(t)).type!==e)throw Age("Incompatible receiver, "+e+" required");return n}}},Fge=Function.prototype,Pge=Hve&&Object.getOwnPropertyDescriptor,Rge=yve(Fge,"name"),_ge={EXISTS:Rge,PROPER:Rge&&"something"===function(){}.name,CONFIGURABLE:Rge&&(!Hve||Hve&&Pge(Fge,"name").configurable)},Lge=Jhe((function(e){var t=_ge.CONFIGURABLE,n=Ige.get,r=Ige.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Sve(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!yve(i,"name")||t&&i.name!==f)&&hge(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==nve?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:hge(e,n,i)):l?e[n]=i:ove(n,i)})(Function.prototype,"toString",(function(){return Sve(this)&&n(this).source||bge(this)}))})),jge=fve({}.toString),Mge=fve("".slice),zge=function(e){return Mge(jge(e),8,-1)},Hge=jve("toStringTag"),Uge=nve.Object,$ge="Arguments"==zge(function(){return arguments}()),Vge=zve?zge:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Uge(e),Hge))?n:$ge?zge(t):"Object"==(r=zge(t))&&Sve(t.callee)?"Arguments":r},Gge=zve?{}.toString:function(){return"[object "+Vge(this)+"]"};zve||Lge(Object.prototype,"toString",Gge,{unsafe:!0});var Wge,qge={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},Kge=Gve("span").classList,Yge=Kge&&Kge.constructor&&Kge.constructor.prototype,Xge=Yge===Object.prototype?void 0:Yge,Zge=fve(fve.bind),Jge=nve.Object,Qge=fve("".split),eye=Bve((function(){return!Jge("z").propertyIsEnumerable(0)}))?function(e){return"String"==zge(e)?Qge(e,""):Jge(e)}:Jge,tye=Math.ceil,nye=Math.floor,rye=function(e){var t=+e;return t!=t||0===t?0:(t>0?nye:tye)(t)},oye=Math.min,iye=function(e){return e>0?oye(rye(e),9007199254740991):0},aye=function(e){return iye(e.length)},uye=Array.isArray||function(e){return"Array"==zge(e)},sye=function(){},lye=[],cye=Dve("Reflect","construct"),fye=/^\s*(?:class|function)\b/,dye=fve(fye.exec),pye=!fye.exec(sye),hye=function(e){if(!Sve(e))return!1;try{return cye(sye,lye,e),!0}catch(e){return!1}},vye=!cye||Bve((function(){var e;return hye(hye.call)||!hye(Object)||!hye((function(){e=!0}))||e}))?function(e){if(!Sve(e))return!1;switch(Vge(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pye||!!dye(fye,bge(e))}:hye,gye=jve("species"),yye=nve.Array,mye=function(e,t){return new(function(e){var t;return uye(e)&&(t=e.constructor,(vye(t)&&(t===yye||uye(t.prototype))||Uve(t)&&null===(t=t[gye]))&&(t=void 0)),void 0===t?yye:t}(e))(0===t?0:t)},bye=fve([].push),Eye=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=vve(s),v=eye(h),g=function(e,t){return oge(e),void 0===t?e:Zge?Zge(e,t):function(){return e.apply(t,arguments)}}(l,c),y=aye(v),m=0,b=f||mye,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:bye(E,d)}else switch(e){case 4:return!1;case 7:bye(E,d)}return i?-1:r||o?o:E}},wye=[Eye(0),Eye(1),Eye(2),Eye(3),Eye(4),Eye(5),Eye(6),Eye(7)][0],Sye=(Wge=[].forEach)&&Bve((function(){Wge.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return wye(this,e,arguments.length>1?arguments[1]:void 0)},Cye=function(e){if(e&&e.forEach!==Sye)try{hge(e,"forEach",Sye)}catch(t){e.forEach=Sye}};for(var Dye in qge)qge[Dye]&&Cye(nve[Dye]&&nve[Dye].prototype);Cye(Xge);var Aye={}.propertyIsEnumerable,xye=Object.getOwnPropertyDescriptor,Oye={f:xye&&!Aye.call({1:2},1)?function(e){var t=xye(this,e);return!!t&&t.enumerable}:Aye},Tye=function(e){return eye(pve(e))},Nye=Object.getOwnPropertyDescriptor,kye={f:Hve?Nye:function(e,t){if(e=Tye(e),t=lge(t),Wve)try{return Nye(e,t)}catch(e){}if(yve(e,t))return pge(!Zve(Oye.f,e,t),e[t])}},Bye=Math.max,Iye=Math.min,Fye=function(e,t){var n=rye(e);return n<0?Bye(n+t,0):Iye(n,t)},Pye=function(e){return function(t,n,r){var o,i=Tye(t),a=aye(i),u=Fye(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Rye=(Pye(!0),Pye(!1)),_ye=fve([].push),Lye=function(e,t){var n,r=Tye(e),o=0,i=[];for(n in r)!yve(Dge,n)&&yve(r,n)&&_ye(i,n);for(;t.length>o;)yve(r,n=t[o++])&&(~Rye(i,n)||_ye(i,n));return i},jye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mye=jye.concat("length","prototype"),zye={f:Object.getOwnPropertyNames||function(e){return Lye(e,Mye)}},Hye={f:Object.getOwnPropertySymbols},Uye=fve([].concat),$ye=Dve("Reflect","ownKeys")||function(e){var t=zye.f(Yve(e)),n=Hye.f;return n?Uye(t,n(e)):t},Vye=function(e,t){for(var n=$ye(t),r=dge.f,o=kye.f,i=0;i<n.length;i++){var a=n[i];yve(e,a)||r(e,a,o(t,a))}},Gye=/#|\.prototype\./,Wye=function(e,t){var n=Kye[qye(e)];return n==Xye||n!=Yye&&(Sve(t)?Bve(t):!!t)},qye=Wye.normalize=function(e){return String(e).replace(Gye,".").toLowerCase()},Kye=Wye.data={},Yye=Wye.NATIVE="N",Xye=Wye.POLYFILL="P",Zye=Wye,Jye=kye.f,Qye=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?nve:l?nve[u]||ove(u,{}):(nve[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Jye(n,r))&&a.value:n[r],!Zye(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Vye(i,o)}(e.sham||o&&o.sham)&&hge(i,"sham",!0),Lge(n,r,i,e)}},eme=Object.keys||function(e){return Lye(e,jye)},tme=Object.assign,nme=Object.defineProperty,rme=fve([].concat),ome=!tme||Bve((function(){if(Hve&&1!==tme({b:1},tme(nme({},"a",{enumerable:!0,get:function(){nme(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=tme({},e)[n]||eme(tme({},t)).join("")!=r}))?function(e,t){for(var n=vve(e),r=arguments.length,o=1,i=Hye.f,a=Oye.f;r>o;)for(var u,s=eye(arguments[o++]),l=i?rme(eme(s),i(s)):eme(s),c=l.length,f=0;c>f;)u=l[f++],Hve&&!Zve(a,s,u)||(n[u]=s[u]);return n}:tme;Qye({target:"Object",stat:!0,forced:Object.assign!==ome},{assign:ome});var ime=Jhe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var v=p[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var E=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,E+"g")}for(var w=v.pattern||v,S=r.next,C=s;S!==t.tail&&!(f&&C>=f.reach);C+=S.value.length,S=S.next){var D=S.value;if(t.length>e.length)return;if(!(D instanceof i)){var A,x=1;if(m){if(!(A=a(w,C,e,y)))break;var O=A.index,T=A.index+A[0].length,N=C;for(N+=S.value.length;O>=N;)N+=(S=S.next).value.length;if(C=N-=S.value.length,S.value instanceof i)continue;for(var k=S;k!==t.tail&&(N<T||"string"==typeof k.value);k=k.next)x++,N+=k.value.length;x--,D=e.slice(C,N),A.index-=C}else if(!(A=a(w,0,D,y)))continue;O=A.index;var B=A[0],I=D.slice(0,O),F=D.slice(O+B.length),P=C+D.length;f&&P>f.reach&&(f.reach=P);var R=S.prev;if(I&&(R=l(t,R,I),C+=I.length),c(t,R,x),S=l(t,R,new i(d,g?o.tokenize(B,g):B,b,B)),F&&l(t,S,F),x>1){var _={cause:d+","+h,reach:P};u(e,t,n,S.prev,C,_),f&&_.reach>f.reach&&(f.reach=_.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
24
|
+
*/function dD(e){return"[object Object]"===Object.prototype.toString.call(e)}lD({target:"Object",stat:!0,forced:fD},{keys:function(e){return cD(ww(e))}});var pD={isHistory(e){return!1!==dD(t=e)&&(void 0===(n=t.constructor)||!1!==dD(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||ed.isOperationList(e.redos[0]))&&(0===e.undos.length||ed.isOperationList(e.undos[0]));var t,n,r}},hD=new WeakMap,vD=new WeakMap,gD={isHistoryEditor:e=>pD.isHistory(e.history)&&Gf.isEditor(e),isMerging:e=>vD.get(e),isSaving:e=>hD.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=gD.isMerging(e);vD.set(e,!1),t(),vD.set(e,n)},withoutSaving(e,t){var n=gD.isSaving(e);hD.set(e,!1),t(),hD.set(e,n)}},yD=(e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!td.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!td.equals(e.path,t.path)),mD=(e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties,bD=(e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type),ED=e=>"set_selection"!==e.type,wD=uw.String,SD=function(e){if("Symbol"===XS(e))throw TypeError("Cannot convert a Symbol value to a string");return wD(e)},CD=function(){var e=eS(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},DD=US.PROPER,AD="toString",xD=RegExp.prototype,OD=xD[AD],TD=yw(CD),kD=Lw((function(){return"/a/b"!=OD.call({source:"a",flags:"b"})})),ND=DD&&OD.name!=AD;(kD||ND)&&$S(RegExp.prototype,AD,(function(){var e=eS(this),t=SD(e.source),n=e.flags;return"/"+t+"/"+SD(void 0===n&&rS(xD,e)&&!("flags"in xD)?TD(e):n)}),{unsafe:!0});var BD=!Lw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ID=TS("IE_PROTO"),FD=uw.Object,PD=FD.prototype,RD=BD?FD.getPrototypeOf:function(e){var t=ww(e);if(Cw(t,ID))return t[ID];var n=t.constructor;return Tw(n)&&t instanceof n?n.prototype:t instanceof FD?PD:null};lD({target:"Reflect",stat:!0},{get:function e(t,n){var r,o,i=arguments.length<3?t:arguments[2];return eS(t)===i?t[n]:(r=MC.f(t,n))?function(e){return void 0!==e&&(Cw(e,"value")||Cw(e,"writable"))}(r)?r.value:void 0===r.get?void 0:nS(r.get,i):qw(o=RD(t))?e(o,n,i):void 0}});var LD,_D=Ww?Object.defineProperties:function(e,t){eS(e);for(var n,r=_C(t),o=cD(t),i=o.length,a=0;i>a;)yS.f(e,n=o[a++],r[n]);return e},jD=kw("document","documentElement"),MD="prototype",zD="script",HD=TS("IE_PROTO"),UD=function(){},$D=function(e){return"<"+zD+">"+e+"</"+zD+">"},VD=function(e){e.write($D("")),e.close();var t=e.parentWindow.Object;return e=null,t},GD=function(){try{LD=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;GD="undefined"!=typeof document?document.domain&&LD?VD(LD):(t=Xw("iframe"),n="java"+zD+":",t.style.display="none",jD.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write($D("document.F=Object")),e.close(),e.F):VD(LD);for(var r=KC.length;r--;)delete GD[MD][KC[r]];return GD()};kS[HD]=!0;var WD=Object.create||function(e,t){var n;return null!==e?(UD[MD]=eS(e),n=new UD,UD[MD]=null,n[HD]=e):n=GD(),void 0===t?n:_D(n,t)},qD=$w("unscopables"),KD=Array.prototype;null==KD[qD]&&yS.f(KD,qD,{configurable:!0,value:WD(null)});var YD=function(e){KD[qD][e]=!0},XD=VC.includes;lD({target:"Array",proto:!0},{includes:function(e){return XD(this,e,arguments.length>1?arguments[1]:void 0)}}),YD("includes");var ZD=$w("match"),JD=function(e){var t;return qw(e)&&(void 0!==(t=e[ZD])?!!t:"RegExp"==WS(e))},QD=uw.TypeError,eA=function(e){if(JD(e))throw QD("The method doesn't accept regular expressions");return e},tA=$w("match"),nA=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[tA]=!1,"/./"[e](t)}catch(e){}}return!1},rA=yw("".indexOf);lD({target:"String",proto:!0,forced:!nA("includes")},{includes:function(e){return!!~rA(SD(bw(this)),SD(eA(e)),arguments.length>1?arguments[1]:void 0)}});var oA=/"/g,iA=yw("".replace);lD({target:"String",proto:!0,forced:Lw((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=SD(bw(this)),r="<a",(r+=' name="'+iA(SD(t),oA,""")+'"')+">"+n+"</a>";var t,n,r}});var aA=function(e,t,n){var r,o;eS(e);try{if(!(r=cS(e,"return"))){if("throw"===t)throw n;return n}r=nS(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return eS(r),n},uA=function(e,t,n,r){try{return r?t(eS(n)[0],n[1]):t(n)}catch(t){aA(e,"throw",t)}},sA={},lA=$w("iterator"),cA=Array.prototype,fA=function(e){return void 0!==e&&(sA.Array===e||cA[lA]===e)},dA=function(e,t,n){var r=hS(t);r in e?yS.f(e,r,mS(0,n)):e[r]=n},pA=$w("iterator"),hA=function(e){if(null!=e)return cS(e,pA)||cS(e,"@@iterator")||sA[XS(e)]},vA=uw.TypeError,gA=function(e,t){var n=arguments.length<2?hA(e):t;if(lS(n))return eS(nS(n,e));throw vA(uS(e)+" is not iterable")},yA=uw.Array,mA=$w("iterator"),bA=!1;try{var EA=0,wA={next:function(){return{done:!!EA++}},return:function(){bA=!0}};wA[mA]=function(){return this},Array.from(wA,(function(){throw 2}))}catch(BN){}var SA=function(e,t){if(!t&&!bA)return!1;var n=!1;try{var r={};r[mA]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},CA=!SA((function(e){Array.from(e)}));lD({target:"Array",stat:!0,forced:CA},{from:function(e){var t=ww(e),n=wC(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=rC(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=hA(t),p=0;if(!d||this==yA&&fA(d))for(a=dC(t),u=n?new this(a):yA(a);a>p;p++)f=i?o(t[p],p):t[p],dA(u,p,f);else for(c=(l=gA(t,d)).next,u=n?new this:[];!(s=nS(c,l)).done;p++)f=i?uA(l,o,[s.value,p],!0):s.value,dA(u,p,f);return u.length=p,u}});var DA,AA,xA,OA=yw("".charAt),TA=yw("".charCodeAt),kA=yw("".slice),NA=function(e){return function(t,n){var r,o,i=SD(bw(t)),a=lC(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=TA(i,a))<55296||r>56319||a+1===u||(o=TA(i,a+1))<56320||o>57343?e?OA(i,a):r:e?kA(i,a,a+2):o-56320+(r-55296<<10)+65536}},BA={codeAt:NA(!1),charAt:NA(!0)},IA=$w("iterator"),FA=!1;[].keys&&("next"in(xA=[].keys())?(AA=RD(RD(xA)))!==Object.prototype&&(DA=AA):FA=!0);var PA=null==DA||Lw((function(){var e={};return DA[IA].call(e)!==e}));PA&&(DA={}),Tw(DA[IA])||$S(DA,IA,(function(){return this}));var RA={IteratorPrototype:DA,BUGGY_SAFARI_ITERATORS:FA},LA=yS.f,_A=$w("toStringTag"),jA=function(e,t,n){e&&!Cw(e=n?e:e.prototype,_A)&&LA(e,_A,{configurable:!0,value:t})},MA=RA.IteratorPrototype,zA=function(){return this},HA=uw.String,UA=uw.TypeError,$A=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=yw(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return eS(n),function(e){if("object"==typeof e||Tw(e))return e;throw UA("Can't set "+HA(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),VA=US.PROPER,GA=US.CONFIGURABLE,WA=RA.IteratorPrototype,qA=RA.BUGGY_SAFARI_ITERATORS,KA=$w("iterator"),YA="keys",XA="values",ZA="entries",JA=function(){return this},QA=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=WD(MA,{next:mS(1,n)}),jA(e,r,!1),sA[r]=zA}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!qA&&e in p)return p[e];switch(e){case YA:case XA:case ZA:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[KA]||p["@@iterator"]||o&&p[o],v=!qA&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=RD(g.call(new e)))!==Object.prototype&&u.next&&(RD(u)!==WA&&($A?$A(u,WA):Tw(u[KA])||$S(u,KA,JA)),jA(u,f,!0)),VA&&o==XA&&h&&h.name!==XA&&(GA?bS(p,"name",XA):(d=!0,v=function(){return nS(h,this)})),o)if(s={values:c(XA),keys:i?v:c(YA),entries:c(ZA)},a)for(l in s)(qA||d||!(l in p))&&$S(p,l,s[l]);else lD({target:t,proto:!0,forced:qA||d},s);return p[KA]!==v&&$S(p,KA,v,{name:o}),sA[t]=v,s},ex=BA.charAt,tx="String Iterator",nx=jS.set,rx=jS.getterFor(tx);QA(String,"String",(function(e){nx(this,{type:tx,string:SD(e),index:0})}),(function(){var e,t=rx(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ex(n,r),t.index+=e.length,{value:e,done:!1})}));var ox,ix=MC.f,ax=yw("".endsWith),ux=yw("".slice),sx=Math.min,lx=nA("endsWith"),cx=!(lx||(ox=ix(String.prototype,"endsWith"),!ox||ox.writable));lD({target:"String",proto:!0,forced:!cx&&!lx},{endsWith:function(e){var t=SD(bw(this));eA(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:sx(fC(n),r),i=SD(e);return ax?ax(t,i,o):ux(t,o-i.length,o)===i}});var fx=yw([].join),dx=aC!=Object,px=TC("join",",");lD({target:"Array",proto:!0,forced:dx||!px},{join:function(e){return fx(_C(this),void 0===e?",":e)}});var hx=$w("species"),vx=function(e){return Rw>=51||!Lw((function(){var t=[];return(t.constructor={})[hx]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},gx=OC.map,yx=vx("map");lD({target:"Array",proto:!0,forced:!yx},{map:function(e){return gx(this,e,arguments.length>1?arguments[1]:void 0)}});var mx=uw.RegExp,bx=Lw((function(){var e=mx("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ex=bx||Lw((function(){return!mx("a","y").sticky})),wx={BROKEN_CARET:bx||Lw((function(){var e=mx("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Ex,UNSUPPORTED_Y:bx},Sx=uw.RegExp,Cx=Lw((function(){var e=Sx(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Dx=uw.RegExp,Ax=Lw((function(){var e=Dx("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),xx=jS.get,Ox=dw("native-string-replace",String.prototype.replace),Tx=RegExp.prototype.exec,kx=Tx,Nx=yw("".charAt),Bx=yw("".indexOf),Ix=yw("".replace),Fx=yw("".slice),Px=function(){var e=/a/,t=/b*/g;return nS(Tx,e,"a"),nS(Tx,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Rx=wx.BROKEN_CARET,Lx=void 0!==/()??/.exec("")[1];(Px||Lx||Rx||Cx||Ax)&&(kx=function(e){var t,n,r,o,i,a,u,s=this,l=xx(s),c=SD(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=nS(kx,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Rx&&s.sticky,h=nS(CD,s),v=s.source,g=0,y=c;if(p&&(h=Ix(h,"y",""),-1===Bx(h,"g")&&(h+="g"),y=Fx(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Nx(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Lx&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Px&&(r=s.lastIndex),o=nS(Tx,p?n:s,y),p?o?(o.input=Fx(o.input,g),o[0]=Fx(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Px&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Lx&&o&&o.length>1&&nS(Ox,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=WD(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var _x=kx;lD({target:"RegExp",proto:!0,forced:/./.exec!==_x},{exec:_x});var jx=Function.prototype,Mx=jx.apply,zx=jx.bind,Hx=jx.call,Ux="object"==typeof Reflect&&Reflect.apply||(zx?Hx.bind(Mx):function(){return Hx.apply(Mx,arguments)}),$x=$w("species"),Vx=RegExp.prototype,Gx=function(e,t,n,r){var o=$w(e),i=!Lw((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Lw((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[$x]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=yw(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=yw(e),s=t.exec;return s===_x||s===Vx.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));$S(String.prototype,e,s[0]),$S(Vx,o,s[1])}r&&bS(Vx[o],"sham",!0)},Wx=BA.charAt,qx=function(e,t,n){return t+(n?Wx(e,t).length:1)},Kx=Math.floor,Yx=yw("".charAt),Xx=yw("".replace),Zx=yw("".slice),Jx=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Qx=/\$([$&'`]|\d{1,2})/g,eO=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Qx;return void 0!==o&&(o=ww(o),s=Jx),Xx(i,s,(function(i,s){var l;switch(Yx(s,0)){case"$":return"$";case"&":return e;case"`":return Zx(t,0,n);case"'":return Zx(t,a);case"<":l=o[Zx(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=Kx(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Yx(s,1):r[f-1]+Yx(s,1):i}l=r[c-1]}return void 0===l?"":l}))},tO=uw.TypeError,nO=function(e,t){var n=e.exec;if(Tw(n)){var r=nS(n,e,t);return null!==r&&eS(r),r}if("RegExp"===WS(e))return nS(_x,e,t);throw tO("RegExp#exec called on incompatible receiver")},rO=$w("replace"),oO=Math.max,iO=Math.min,aO=yw([].concat),uO=yw([].push),sO=yw("".indexOf),lO=yw("".slice),cO="$0"==="a".replace(/./,"$0"),fO=!!/./[rO]&&""===/./[rO]("a","$0");Gx("replace",(function(e,t,n){var r=fO?"$":"$0";return[function(e,n){var r=bw(this),o=null==e?void 0:cS(e,rO);return o?nS(o,e,r,n):nS(t,SD(r),e,n)},function(e,o){var i=eS(this),a=SD(e);if("string"==typeof o&&-1===sO(o,r)&&-1===sO(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Tw(o);s||(o=SD(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=nO(i,a);if(null===d)break;if(uO(f,d),!l)break;""===SD(d[0])&&(i.lastIndex=qx(a,fC(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=SD((d=f[g])[0]),m=oO(iO(lC(d.index),a.length),0),b=[],E=1;E<d.length;E++)uO(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=aO([y],b,m,a);void 0!==w&&uO(S,w);var C=SD(Ux(o,void 0,S))}else C=eO(y,a,m,b,w,o);m>=v&&(h+=lO(a,v,m)+C,v=m+y.length)}return h+lO(a,v)}]}),!!Lw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!cO||fO);var dO=function(e,t){return dO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},dO(e,t)};function pO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}dO(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var hO=function(){return hO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hO.apply(this,arguments)};function vO(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gO(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function yO(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var mO=0,bO=function(){this.id=""+mO++},EO="Array Iterator",wO=jS.set,SO=jS.getterFor(EO),CO=QA(Array,"Array",(function(e,t){wO(this,{type:EO,target:_C(e),index:0,kind:t})}),(function(){var e=SO(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");sA.Arguments=sA.Array,YD("keys"),YD("values"),YD("entries");var DO=function(e,t,n){for(var r in t)$S(e,r,t[r],n);return e},AO=uw.Array,xO=Math.max,OO=function(e,t,n){for(var r=dC(e),o=UC(t,r),i=UC(void 0===n?r:n,r),a=AO(xO(i-o,0)),u=0;o<i;o++,u++)dA(a,u,e[o]);return a.length=u,a},TO=XC.f,kO="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],NO={f:function(e){return kO&&"Window"==WS(e)?function(e){try{return TO(e)}catch(e){return OO(kO)}}(e):TO(_C(e))}},BO=Lw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),IO=Object.isExtensible,FO=Lw((function(){IO(1)}))||BO?function(e){return!!qw(e)&&(!BO||"ArrayBuffer"!=WS(e))&&(!IO||IO(e))}:IO,PO=!Lw((function(){return Object.isExtensible(Object.preventExtensions({}))})),RO=rw((function(e){var t=yS.f,n=!1,r=Ow("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=XC.f,t=yw([].splice),o={};o[r]=1,e(o).length&&(XC.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},lD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:NO.f}))},fastKey:function(e,t){if(!qw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Cw(e,r)){if(!FO(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Cw(e,r)){if(!FO(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return PO&&n&&FO(e)&&!Cw(e,r)&&i(e),e}};kS[r]=!0})),LO=uw.TypeError,_O=function(e,t){this.stopped=e,this.result=t},jO=_O.prototype,MO=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=rC(t,c),v=function(e){return r&&aA(r,"normal",e),new _O(!0,e)},g=function(e){return f?(eS(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=hA(e)))throw LO(uS(e)+" is not iterable");if(fA(o)){for(i=0,a=dC(e);a>i;i++)if((u=g(e[i]))&&rS(jO,u))return u;return new _O(!1)}r=gA(e,o)}for(s=r.next;!(l=nS(s,r)).done;){try{u=g(l.value)}catch(e){aA(r,"throw",e)}if("object"==typeof u&&u&&rS(jO,u))return u}return new _O(!1)},zO=uw.TypeError,HO=function(e,t){if(rS(t,e))return e;throw zO("Incorrect invocation")},UO=function(e,t,n){var r,o;return $A&&Tw(r=t.constructor)&&r!==n&&qw(o=r.prototype)&&o!==n.prototype&&$A(e,o),e},$O=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=uw[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=yw(u[e]);$S(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!qw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!qw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!qw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(uD(e,!Tw(a)||!(o||u.forEach&&!Lw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),RO.enable();else if(uD(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Lw((function(){f.has(1)})),h=SA((function(e){new a(e)})),v=!o&&Lw((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){HO(e,u);var n=UO(new a,e,s);return null!=t&&MO(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,lD({global:!0,forced:s!=a},l),jA(s,e),o||n.setStrong(s,e,r),s},VO=RO.getWeakData,GO=jS.set,WO=jS.getterFor,qO=OC.find,KO=OC.findIndex,YO=yw([].splice),XO=0,ZO=function(e){return e.frozen||(e.frozen=new JO)},JO=function(){this.entries=[]},QO=function(e,t){return qO(e.entries,(function(e){return e[0]===t}))};JO.prototype={get:function(e){var t=QO(this,e);if(t)return t[1]},has:function(e){return!!QO(this,e)},set:function(e,t){var n=QO(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=KO(this.entries,(function(t){return t[0]===e}));return~t&&YO(this.entries,t,1),!!~t}};var eT,tT={getConstructor:function(e,t,n,r){var o=e((function(e,o){HO(e,i),GO(e,{type:t,id:XO++,frozen:void 0}),null!=o&&MO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=WO(t),u=function(e,t,n){var r=a(e),o=VO(eS(t),!0);return!0===o?ZO(r).set(t,n):o[r.id]=n,e};return DO(i,{delete:function(e){var t=a(this);if(!qw(e))return!1;var n=VO(e);return!0===n?ZO(t).delete(e):n&&Cw(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!qw(e))return!1;var n=VO(e);return!0===n?ZO(t).has(e):n&&Cw(n,t.id)}}),DO(i,n?{get:function(e){var t=a(this);if(qw(e)){var n=VO(e);return!0===n?ZO(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},nT=jS.enforce,rT=!uw.ActiveXObject&&"ActiveXObject"in uw,oT=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},iT=$O("WeakMap",oT,tT);if(xS&&rT){eT=tT.getConstructor(oT,"WeakMap",!0),RO.enable();var aT=iT.prototype,uT=yw(aT.delete),sT=yw(aT.has),lT=yw(aT.get),cT=yw(aT.set);DO(aT,{delete:function(e){if(qw(e)&&!FO(e)){var t=nT(this);return t.frozen||(t.frozen=new eT),uT(this,e)||t.frozen.delete(e)}return uT(this,e)},has:function(e){if(qw(e)&&!FO(e)){var t=nT(this);return t.frozen||(t.frozen=new eT),sT(this,e)||t.frozen.has(e)}return sT(this,e)},get:function(e){if(qw(e)&&!FO(e)){var t=nT(this);return t.frozen||(t.frozen=new eT),sT(this,e)?lT(this,e):t.frozen.get(e)}return lT(this,e)},set:function(e,t){if(qw(e)&&!FO(e)){var n=nT(this);n.frozen||(n.frozen=new eT),sT(this,e)?cT(this,e,t):n.frozen.set(e,t)}else cT(this,e,t);return this}})}var fT=$w("iterator"),dT=$w("toStringTag"),pT=CO.values,hT=function(e,t){if(e){if(e[fT]!==pT)try{bS(e,fT,pT)}catch(t){e[fT]=pT}if(e[dT]||bS(e,dT,t),JS[t])for(var n in CO)if(e[n]!==CO[n])try{bS(e,n,CO[n])}catch(t){e[n]=CO[n]}}};for(var vT in JS)hT(uw[vT]&&uw[vT].prototype,vT);hT(tC,"DOMTokenList");var gT=new WeakMap,yT=new WeakMap,mT=new WeakMap,bT=new WeakMap,ET=new WeakMap,wT=new WeakMap,ST=new WeakMap,CT=new WeakMap,DT=new WeakMap,AT=new WeakMap,xT=new WeakMap,OT=new WeakMap,TT=new WeakMap,kT=new WeakMap,NT=new WeakMap,BT=new WeakMap,IT=new WeakMap,FT=new WeakMap,PT=new WeakMap,RT=new WeakMap,LT=new WeakMap,_T=new WeakMap,jT=new WeakMap,MT=new WeakMap,zT=new WeakMap,HT=OC.find,UT="find",$T=!0;UT in[]&&Array(1)[UT]((function(){$T=!1})),lD({target:"Array",proto:!0,forced:$T},{find:function(e){return HT(this,e,arguments.length>1?arguments[1]:void 0)}}),YD(UT),lD({global:!0},{globalThis:uw});const VT=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];var GT,WT,qT,KT,YT=uw.Promise,XT=$w("species"),ZT=function(e){var t=kw(e),n=yS.f;Ww&&t&&!t[XT]&&n(t,XT,{configurable:!0,get:function(){return this}})},JT=uw.TypeError,QT=$w("species"),ek=function(e,t){var n,r=eS(e).constructor;return void 0===r||null==(n=eS(r)[QT])?t:function(e){if(wC(e))return e;throw JT(uS(e)+" is not a constructor")}(n)},tk=yw([].slice),nk=/(?:ipad|iphone|ipod).*applewebkit/i.test(Nw),rk="process"==WS(uw.process),ok=uw.setImmediate,ik=uw.clearImmediate,ak=uw.process,uk=uw.Dispatch,sk=uw.Function,lk=uw.MessageChannel,ck=uw.String,fk=0,dk={},pk="onreadystatechange";try{GT=uw.location}catch(BN){}var hk=function(e){if(Cw(dk,e)){var t=dk[e];delete dk[e],t()}},vk=function(e){return function(){hk(e)}},gk=function(e){hk(e.data)},yk=function(e){uw.postMessage(ck(e),GT.protocol+"//"+GT.host)};ok&&ik||(ok=function(e){var t=tk(arguments,1);return dk[++fk]=function(){Ux(Tw(e)?e:sk(e),void 0,t)},WT(fk),fk},ik=function(e){delete dk[e]},rk?WT=function(e){ak.nextTick(vk(e))}:uk&&uk.now?WT=function(e){uk.now(vk(e))}:lk&&!nk?(KT=(qT=new lk).port2,qT.port1.onmessage=gk,WT=rC(KT.postMessage,KT)):uw.addEventListener&&Tw(uw.postMessage)&&!uw.importScripts&>&&"file:"!==GT.protocol&&!Lw(yk)?(WT=yk,uw.addEventListener("message",gk,!1)):WT=pk in Xw("script")?function(e){jD.appendChild(Xw("script"))[pk]=function(){jD.removeChild(this),hk(e)}}:function(e){setTimeout(vk(e),0)});var mk,bk,Ek,wk,Sk,Ck,Dk,Ak,xk={set:ok,clear:ik},Ok=/ipad|iphone|ipod/i.test(Nw)&&void 0!==uw.Pebble,Tk=/web0s(?!.*chrome)/i.test(Nw),kk=MC.f,Nk=xk.set,Bk=uw.MutationObserver||uw.WebKitMutationObserver,Ik=uw.document,Fk=uw.process,Pk=uw.Promise,Rk=kk(uw,"queueMicrotask"),Lk=Rk&&Rk.value;Lk||(mk=function(){var e,t;for(rk&&(e=Fk.domain)&&e.exit();bk;){t=bk.fn,bk=bk.next;try{t()}catch(e){throw bk?wk():Ek=void 0,e}}Ek=void 0,e&&e.enter()},nk||rk||Tk||!Bk||!Ik?!Ok&&Pk&&Pk.resolve?((Dk=Pk.resolve(void 0)).constructor=Pk,Ak=rC(Dk.then,Dk),wk=function(){Ak(mk)}):rk?wk=function(){Fk.nextTick(mk)}:(Nk=rC(Nk,uw),wk=function(){Nk(mk)}):(Sk=!0,Ck=Ik.createTextNode(""),new Bk(mk).observe(Ck,{characterData:!0}),wk=function(){Ck.data=Sk=!Sk}));var _k,jk,Mk,zk,Hk=Lk||function(e){var t={fn:e,next:void 0};Ek&&(Ek.next=t),bk||(bk=t,wk()),Ek=t},Uk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=lS(t),this.reject=lS(n)},$k={f:function(e){return new Uk(e)}},Vk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Gk="object"==typeof window,Wk=xk.set,qk=$w("species"),Kk="Promise",Yk=jS.getterFor(Kk),Xk=jS.set,Zk=jS.getterFor(Kk),Jk=YT&&YT.prototype,Qk=YT,eN=Jk,tN=uw.TypeError,nN=uw.document,rN=uw.process,oN=$k.f,iN=oN,aN=!!(nN&&nN.createEvent&&uw.dispatchEvent),uN=Tw(uw.PromiseRejectionEvent),sN="unhandledrejection",lN=!1,cN=uD(Kk,(function(){var e=DS(Qk),t=e!==String(Qk);if(!t&&66===Rw)return!0;if(Rw>=51&&/native code/.test(e))return!1;var n=new Qk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[qk]=r,!(lN=n.then((function(){}))instanceof r)||!t&&Gk&&!uN})),fN=cN||!SA((function(e){Qk.all(e).catch((function(){}))})),dN=function(e){var t;return!(!qw(e)||!Tw(t=e.then))&&t},pN=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Hk((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&yN(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(tN("Promise-chain cycle")):(u=dN(a))?nS(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&vN(e)}))}},hN=function(e,t,n){var r,o;aN?((r=nN.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),uw.dispatchEvent(r)):r={promise:t,reason:n},!uN&&(o=uw["on"+e])?o(r):e===sN&&function(e,t){var n=uw.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},vN=function(e){nS(Wk,uw,(function(){var t,n=e.facade,r=e.value;if(gN(e)&&(t=Vk((function(){rk?rN.emit("unhandledRejection",r,n):hN(sN,n,r)})),e.rejection=rk||gN(e)?2:1,t.error))throw t.value}))},gN=function(e){return 1!==e.rejection&&!e.parent},yN=function(e){nS(Wk,uw,(function(){var t=e.facade;rk?rN.emit("rejectionHandled",t):hN("rejectionhandled",t,e.value)}))},mN=function(e,t,n){return function(r){e(t,r,n)}},bN=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,pN(e,!0))},EN=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw tN("Promise can't be resolved itself");var r=dN(t);r?Hk((function(){var n={done:!1};try{nS(r,t,mN(EN,n,e),mN(bN,n,e))}catch(t){bN(n,t,e)}})):(e.value=t,e.state=1,pN(e,!1))}catch(t){bN({done:!1},t,e)}}};if(cN&&(eN=(Qk=function(e){HO(this,eN),lS(e),nS(_k,this);var t=Yk(this);try{e(mN(EN,t),mN(bN,t))}catch(e){bN(t,e)}}).prototype,(_k=function(e){Xk(this,{type:Kk,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=DO(eN,{then:function(e,t){var n=Zk(this),r=n.reactions,o=oN(ek(this,Qk));return o.ok=!Tw(e)||e,o.fail=Tw(t)&&t,o.domain=rk?rN.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&pN(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),jk=function(){var e=new _k,t=Yk(e);this.promise=e,this.resolve=mN(EN,t),this.reject=mN(bN,t)},$k.f=oN=function(e){return e===Qk||e===Mk?new jk(e):iN(e)},Tw(YT)&&Jk!==Object.prototype)){zk=Jk.then,lN||($S(Jk,"then",(function(e,t){var n=this;return new Qk((function(e,t){nS(zk,n,e,t)})).then(e,t)}),{unsafe:!0}),$S(Jk,"catch",eN.catch,{unsafe:!0}));try{delete Jk.constructor}catch(BN){}$A&&$A(Jk,eN)}lD({global:!0,wrap:!0,forced:cN},{Promise:Qk}),jA(Qk,Kk,!1),ZT(Kk),Mk=kw(Kk),lD({target:Kk,stat:!0,forced:cN},{reject:function(e){var t=oN(this);return nS(t.reject,void 0,e),t.promise}}),lD({target:Kk,stat:!0,forced:cN},{resolve:function(e){return function(e,t){if(eS(e),qw(t)&&t.constructor===e)return t;var n=$k.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),lD({target:Kk,stat:!0,forced:fN},{all:function(e){var t=this,n=oN(t),r=n.resolve,o=n.reject,i=Vk((function(){var n=lS(t.resolve),i=[],a=0,u=1;MO(e,(function(e){var s=a++,l=!1;u++,nS(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=oN(t),r=n.reject,o=Vk((function(){var o=lS(t.resolve);MO(e,(function(e){nS(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var wN=wx.UNSUPPORTED_Y,SN=4294967295,CN=Math.min,DN=[].push,AN=yw(/./.exec),xN=yw(DN),ON=yw("".slice);function TN(e){Promise.resolve().then(e)}Gx("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=SD(bw(this)),o=void 0===n?SN:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!JD(e))return nS(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=nS(_x,f,r))&&!((a=f.lastIndex)>c&&(xN(s,ON(r,c,i.index)),i.length>1&&i.index<r.length&&Ux(DN,s,OO(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&AN(f,"")||xN(s,""):xN(s,ON(r,c)),s.length>o?OO(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:nS(t,this,e,n)}:t,[function(t,n){var o=bw(this),i=null==t?void 0:cS(t,e);return i?nS(i,t,o,n):nS(r,SD(o),t,n)},function(e,o){var i=eS(this),a=SD(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=ek(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(wN?"g":"y"),f=new s(wN?"^(?:"+i.source+")":i,c),d=void 0===o?SN:o>>>0;if(0===d)return[];if(0===a.length)return null===nO(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=wN?0:h;var g,y=nO(f,wN?ON(a,h):a);if(null===y||(g=CN(fC(f.lastIndex+(wN?h:0)),a.length))===p)h=qx(a,h,l);else{if(xN(v,ON(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(xN(v,y[m]),v.length===d)return v;h=p=g}}return xN(v,ON(a,p)),v}]}),!!Lw((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),wN);var kN=function(e){return Object.prototype.toString.call(e)};Nh&&(hh.fn.css=Nh),Lh&&(hh.fn.append=Lh),vh&&(hh.fn.addClass=vh),gh&&(hh.fn.removeClass=gh),yh&&(hh.fn.hasClass=yh),Ch&&(hh.fn.on=Ch),qh&&(hh.fn.focus=qh),mh&&(hh.fn.attr=mh),bh&&(hh.fn.removeAttr=bh),Th&&(hh.fn.hide=Th),kh&&(hh.fn.show=kh),Oh&&(hh.fn.offset=Oh),Ah&&(hh.fn.width=Ah),xh&&(hh.fn.height=xh),jh&&(hh.fn.parent=jh),Mh&&(hh.fn.parents=Mh),Rh&&(hh.fn.is=Rh),wh&&(hh.fn.dataset=wh),Sh&&(hh.fn.val=Sh),Ph&&(hh.fn.text=Ph),Fh&&(hh.fn.html=Fh),Hh&&(hh.fn.children=Hh),Uh&&(hh.fn.remove=Uh),zh&&(hh.fn.find=zh),Bh&&(hh.fn.each=Bh),$h&&(hh.fn.empty=$h);var NN,BN,IN=/\[object HTML([A-Z][a-z]*)*Element\]/,FN=function(e){return PN(e)&&1===e.nodeType},PN=function(e){return null!=e&&"number"==typeof e.nodeType},RN=function(e){return"[object Selection]"===kN(e)},LN=function(e){return PN(e)&&3===e.nodeType},_N=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},jN=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(PN(r=i)&&8===r.nodeType||FN(i)&&0===i.childNodes.length||FN(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},MN=function(e,t,n){return gO(jN(e,t,n),1)[0]},zN=function e(t){var n,r,o="";if(LN(t)&&t.nodeValue)return t.nodeValue;if(FN(t)){try{for(var i=vO(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function HN(e,t){if(n=e,!IN.test(kN(n))||"true"!==e.dataset.slateVoid)for(var n,r=e.childNodes,o=r.length;o--;){var i=r[o],a=i.nodeType;3==a?t(i,e):1!=a&&9!=a&&11!=a||HN(i,t)}}function UN(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==NN.ELEMENT_NODE?"":t.tagName.toLowerCase()}(BN=NN||(NN={}))[BN.ELEMENT_NODE=1]="ELEMENT_NODE",BN[BN.TEXT_NODE=3]="TEXT_NODE",BN[BN.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",BN[BN.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",BN[BN.COMMENT_NODE=8]="COMMENT_NODE",BN[BN.DOCUMENT_NODE=9]="DOCUMENT_NODE",BN[BN.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",BN[BN.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var $N="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),VN="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var GN="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),WN="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),qN="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),KN="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var YN=!qN&&!WN&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,XN={getWindow:function(e){var t=LT.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=RT.get(t);return n||(n=new bO,RT.set(t,n)),n},setNewKey:function(e){var t=new bO;RT.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=NT.get(r);if(null==o){if(Gf.isEditor(r))return n;break}var i=kT.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=XN.toDOMNode(e,e),n=t.getRootNode();return"[object HTMLDocument]"!==kN(n)&&!function(e){return"[object ShadowRoot]"===kN(e)}(n)||null==Reflect.get(n,"getSelection")?t.ownerDocument:n},getParentNode:function(e,t){return NT.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=XN.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[XN.findPath(e,t)[0]];return Zf.get(e,n)},toDOMNode:function(e,t){var n;if(Gf.isEditor(t))n=BT.get(e);else{var r=XN.findKey(e,t);n=FT.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=XN.toDOMNode(e,e);try{r=FN(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&(r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))||!!r.getAttribute("data-slate-string"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=ld.isBackward(t),i=XN.toDOMPoint(e,n),a=ld.isCollapsed(t)?i:XN.toDOMPoint(e,r),u=XN.getWindow(e).document.createRange(),s=gO(o?a:i,2),l=s[0],c=s[1],f=gO(o?i:a,2),d=f[0],p=f[1],h=!!(FN(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(FN(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=gO(Gf.node(e,t.path),1)[0],a=XN.toDOMNode(e,i);Gf.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=vO(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),v=s+(null==h?p:parseInt(h,10));if(t.offset<=v){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(e){n={error:e}}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(t));return o},toSlateNode:function(e,t){var n=FN(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?IT.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=XN.toSlateNode(e,t.target),u=XN.findPath(e,a);if(Gf.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=Gf.point(e,u,{edge:l?"start":"end"}),f=l?Gf.before(e,c):Gf.after(e,c);if(f)return Gf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return XN.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((RN(t)?t.anchorNode:t.startContainer)&&(RN(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=KN&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=XN.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:XN.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return ld.isExpanded(d)&&ld.isForward(d)&&FN(i)&&Gf.void(e,{at:d.focus,mode:"highest"})&&(d=Gf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=gO(o?t:function(e){var t,n=gO(e,2),r=n[0],o=n[1];if(FN(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=gO(jN(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;FN(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=MN(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var v=XN.getWindow(e).document.createRange();v.setStart(c,0),v.setEnd(u,s);var g=v.cloneContents();yO(yO([],gO(eh(g.querySelectorAll("[data-slate-zero-width]")))),gO(eh(g.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=g.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||VN&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=XN.toSlateNode(e,c);return{path:XN.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Gf.hasPath(e,n.path)&&Gf.hasPath(e,r.path)},getNodeType:function(e){return Mf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Zf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Gf.nodes(e,{universal:!0});try{for(var i=vO(o),a=i.next();!a.done;a=i.next()){var u=gO(a.value,1)[0];Mf.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=gO(Gf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=gO(Gf.nodes(e,{match:function(e){return gd.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=gO(Gf.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&gO(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Gf.isEnd(e,n.anchor,t)||Gf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=gT.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return bT.get(e)||null},getHoverbar:function(e){return wT.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=XN.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=vO(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=Gf.nodes(e,{match:function(t){return!(!Mf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=vO(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];HN(XN.toDOMNode(e,h),(function(e,t){var n=hh(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Gf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=vO(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(ld.isExpanded(t))return!1;var n=XN.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=Gf.node(e,t);if(null==n)return!1;var r=gO(n,1)[0].children;return 1===r.length&&""===r[0].text}},ZN=1,JN={},QN={};var eB=OC.filter,tB=vx("filter");lD({target:"Array",proto:!0,forced:!tB},{filter:function(e){return eB(this,e,arguments.length>1?arguments[1]:void 0)}});var nB="\t\n\v\f\r \u2028\u2029\ufeff",rB=yw("".replace),oB="["+nB+"]",iB=RegExp("^"+oB+oB+"*"),aB=RegExp(oB+oB+"*$"),uB=function(e){return function(t){var n=SD(bw(t));return 1&e&&(n=rB(n,iB,"")),2&e&&(n=rB(n,aB,"")),n}},sB={start:uB(1),end:uB(2),trim:uB(3)},lB=US.PROPER,cB=sB.trim;lD({target:"String",proto:!0,forced:function(e){return Lw((function(){return!!nB[e]()||"
"!=="
"[e]()||lB&&nB[e].name!==e}))}("trim")},{trim:function(){return cB(this)}});var fB=[];var dB={};function pB(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function hB(e,t){return Mf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Gf.isVoid(t,e),u="";a||(u=i.map((function(e){return hB(e,t)})).join(""));var s=function(e){return dB[e]||pB}(r),l=s(e,u,t),c="";if(c="string"==typeof l?l:l.html||"",a||fB.forEach((function(t){return c=t(e,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=XN.getParentsNodes(t,e).some((function(e){return"pre"===XN.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=XN.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return fB.forEach((function(t){return r=t(e,r)})),r}(e,t)}function vB(e){return"w-e-element-"+e}var gB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},yB=function(e,t,n){var r=XN.toDOMRange(e,t).getBoundingClientRect(),o=XN.toDOMRange(e,n).getBoundingClientRect();return gB(r,o)&&gB(o,r)},mB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],bB=[];var EB=[];var wB={};var SB=yS.f,CB=XC.f,DB=jS.enforce,AB=$w("match"),xB=uw.RegExp,OB=xB.prototype,TB=uw.SyntaxError,kB=yw(CD),NB=yw(OB.exec),BB=yw("".charAt),IB=yw("".replace),FB=yw("".indexOf),PB=yw("".slice),RB=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,LB=/a/g,_B=/a/g,jB=new xB(LB)!==LB,MB=wx.MISSED_STICKY,zB=wx.UNSUPPORTED_Y,HB=Ww&&(!jB||MB||Cx||Ax||Lw((function(){return _B[AB]=!1,xB(LB)!=LB||xB(_B)==_B||"/a/i"!=xB(LB,"i")})));if(uD("RegExp",HB)){for(var UB=function(e,t){var n,r,o,i,a,u,s=rS(OB,this),l=JD(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===UB)return e;if((l||rS(OB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:kB(d))),e=void 0===e?"":SD(e),t=void 0===t?"":SD(t),d=e,Cx&&"dotAll"in LB&&(r=!!t&&FB(t,"s")>-1)&&(t=IB(t,/s/g,"")),n=t,MB&&"sticky"in LB&&(o=!!t&&FB(t,"y")>-1)&&zB&&(t=IB(t,/y/g,"")),Ax&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=BB(e,r)))t+=BB(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:NB(RB,PB(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||Cw(a,c))throw new TB("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=UO(xB(e,t),s?this:OB,UB),(r||o||f.length)&&(u=DB(a),r&&(u.dotAll=!0,u.raw=UB(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=BB(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+BB(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{bS(a,"source",""===d?"(?:)":d)}catch(e){}return a},$B=function(e){e in UB||SB(UB,e,{configurable:!0,get:function(){return xB[e]},set:function(t){xB[e]=t}})},VB=CB(xB),GB=0;VB.length>GB;)$B(VB[GB++]);OB.constructor=UB,UB.prototype=OB,$S(uw,"RegExp",UB)}ZT("RegExp");var WB=new RegExp(String.fromCharCode(160),"g");function qB(e){return e.replace(WB," ")}function KB(e,t){var n=e.length;if(n){var r=e[n-1];if(gd.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function YB(e,t,n){return{type:"paragraph",children:[{text:hh(e).text().replace(/\s+/gm," ")}]}}function XB(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==NN.ELEMENT_NODE)if(e.nodeType!==NN.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=qB(r),KB(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(KB(n,"\n")||n.push({text:"\n"}));var o=JB(hh(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in wB)if(e[0].matches(t))return wB[t];return YB}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){Gf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),EB.forEach((function(n){r=n(e[0],r,t)})))})),o}function ZB(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=qB(n)};return EB.forEach((function(n){r=n(e[0],r,t)})),r}function JB(e,t){bB.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=hh(r(e[0])))}));var n=UN(e);if("span"===n){if(e.attr("data-w-e-type"))return XB(e,t);if(e[0].childNodes.length>1){var r=e[0].childNodes;return Array.from(r).map((function(n){return hh(e[0]).empty(),hh(e[0]).append(hh(n)),ZB(hh(e[0]),t)}))}return ZB(e,t)}return"code"===n?"pre"===UN(e.parent())?XB(e,t):ZB(e,t):mB.includes(n)?ZB(e,t):XB(e,t)}function QB(e,t,n){var r=hh(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function eI(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=hh("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=JB(hh(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var tI=yS.f,nI=RO.fastKey,rI=jS.set,oI=jS.getterFor,iI={getConstructor:function(e,t,n,r){var o=e((function(e,o){HO(e,i),rI(e,{type:t,index:WD(null),first:void 0,last:void 0,size:0}),Ww||(e.size=0),null!=o&&MO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=oI(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=nI(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Ww?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=nI(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return DO(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Ww?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),Ww?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=rC(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),DO(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),Ww&&tI(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=oI(t),i=oI(r);QA(e,t,(function(e,t){rI(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),ZT(t)}};$O("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),iI);var aI=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function uI(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):Pd.insertNodes(e,t,{mode:"highest"})}var sI=function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=vO(Gf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=gO(p.value,2),v=h[0],g=h[1],y=XN.findKey(t,v);f.push([g,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=vO(Gf.levels(t,{at:td.parent(e.path)})),b=m.next();!b.done;b=m.next()){var E=gO(b.value,2);v=E[0],g=E[1],y=XN.findKey(t,v),f.push([g,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var w=vO(Gf.levels(t,{at:td.common(td.parent(e.path),td.parent(e.newPath))})),S=w.next();!S.done;S=w.next()){var C=gO(S.value,2);v=C[0],g=C[1],y=XN.findKey(t,v),f.push([g,y])}}catch(e){u={error:e}}finally{try{S&&!S.done&&(s=w.return)&&s.call(w)}finally{if(u)throw u.error}}}o(e);try{for(var D=vO(f),A=D.next();!A.done;A=D.next()){var x=gO(A.value,2);g=x[0],y=x[1],v=gO(Gf.node(t,g),1)[0],RT.set(v,y)}}catch(e){l={error:e}}finally{try{A&&!A.done&&(c=D.return)&&c.call(D)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&ld.isCollapsed(e.selection)){var r=Gf.above(e,{match:function(t){return Gf.isBlock(e,t)},at:e.selection});if(r){var o=gO(r,2)[1],a=Gf.range(e,o,e.selection.anchor),u=function(e,t){var n=Gf.range(e,ld.end(t)),r=Array.from(Gf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(yB(e,Gf.range(e,r[o]),n))return Gf.range(e,r[o],n);if(r.length<2)return Gf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)yB(e,Gf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Gf.range(e,r[i],n)}(t,a);ld.isCollapsed(u)||Pd.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&jT.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return hB(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Zf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Gf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Gf.nodes(t,{at:[],universal:!0});try{for(var u=vO(a),s=u.next();!s.done;s=u.next()){var l=gO(s.value,1)[0];if(Mf.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=vB(XN.findKey(t,l).id);i.push(hO(hO({},l),{id:c}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Mf.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(gd.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Pd.delete(t,{at:{anchor:Gf.start(t,[]),focus:Gf.end(t,[])}}),0===t.children.length&&Pd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return XN.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===NN.TEXT_NODE||t===NN.ELEMENT_NODE&&!aI.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;XN.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e,n){var r=e.nodeType,i=e.nodeName,a=e.textContent,s=void 0===a?"":a;if(r!==NN.TEXT_NODE)if("BR"!==i){var l=e,c=!1;if(mB.includes(i.toLowerCase()))c=!0;else for(var f in wB)if(l.matches(f)){c=!0;break}if(c){var d=JB(hh(l),t);return Array.isArray(d)?(d.forEach((function(e){return uI(t,e)})),u++):(uI(t,d),u++),void(XN.isSelectedVoidNode(t)&&t.move(1))}var p=window.getComputedStyle(l).display;if(!XN.isSelectedEmptyParagraph(t)&&p.indexOf("inline")<0){if(n>=1){var h=o[n-1];"matches"in h&&h.matches("ul:not([data-w-e-type]),ol:not([data-w-e-type])")&&t.insertBreak()}t.insertBreak()}t.dangerouslyInsertHtml(l.innerHTML,!0)}else t.insertText("\n");else{if(!s||!s.trim())return;t.insertNode({text:s})}})),u&&a&&XN.isEmptyPath(t,a)&&Pd.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=eI(t,null==e?"":e);if(Pd.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(Gf.start(t,[]))}},t},lI=function(e){var t=e;return t.setFragmentData=function(e){var n=t.selection;if(n){var r=gO(ld.edges(n),2),o=r[0],i=r[1],a=Gf.void(t,{at:o.path}),u=Gf.void(t,{at:i.path});if(!ld.isCollapsed(n)||a){var s=XN.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=gO(u,1)[0],d=s.cloneRange(),p=XN.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),LN(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var v=t.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",zN(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var n,r,o=e.getData("application/x-slate-fragment");if(o){var i=decodeURIComponent(window.atob(o)),a=JSON.parse(i);t.insertFragment(a)}else{var u=e.getData("text/plain"),s=e.getData("text/html");if(s)t.dangerouslyInsertHtml(s);else{var l=XN.getLeftLengthOfMaxLength(t);if(u){var c=u.split(/\r\n|\r|\n/),f=!1;try{for(var d=vO(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&l>0&&Pd.splitNodes(t,{always:!0}),t.insertText(h),f=!0}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}}}},t},cI=function(e){return null!=e},fI={object:!0,function:!0,undefined:!0},dI=/^\s*class[\s{/}]/,pI=Function.prototype.toString,hI=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!cI(e)&&hasOwnProperty.call(fI,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!dI.test(pI.call(e))},vI=function(e){return null!=e},gI=Object.keys,yI=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return gI(vI(e)?Object(e):e)},mI=Math.max,bI=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=mI(arguments.length,2);for(e=Object(function(e){if(!vI(e))throw new TypeError("Cannot use null or undefined");return e}(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)yI(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},EI=Array.prototype.forEach,wI=Object.create,SI=function(e){var t=wI(null);return EI.call(arguments,(function(e){vI(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)})),t},CI="razdwatrzy",DI=String.prototype.indexOf,AI="function"==typeof CI.contains&&!0===CI.contains("dwa")&&!1===CI.contains("foo")?String.prototype.contains:function(e){return DI.call(this,e,arguments[1])>-1},xI=rw((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],cI(e)?(n=AI.call(e,"c"),r=AI.call(e,"e"),o=AI.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?bI(SI(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],cI(t)?hI(t)?cI(n)?hI(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,cI(e)?(r=AI.call(e,"c"),o=AI.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?bI(SI(i),a):a}})),OI=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},TI=rw((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return OI(t),h.call(this,"__ee__")?n=this.__ee__:(n=v.value=f(null),d(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return OI(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(OI(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:xI(n),once:xI(r),off:xI(o),emit:xI(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function kI(e){var t=MT.get(e);return null==t&&(t=TI(),MT.set(e,t)),t}var NI=new WeakMap;function BI(e,t){var n=NI.get(e);null==n&&(n=new Set,NI.set(e,n)),n.add(t)}var II=function(e){var t=e;return t.on=function(e,n){var r=kI(t);if(r.on(e,n),"destroyed"===e&&BI(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),BI(t,o)}},t.once=function(e,n){kI(t).once(e,n)},t.off=function(e,n){kI(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=kI(t);if(o.emit.apply(o,yO([e],gO(n))),"destroyed"===e){var i=function(e){return NI.get(e)||new Set}(t);i.forEach((function(e){return o.off("destroyed",e)})),function(e){NI.set(e,new Set)}(t)}},t};function FI(e){var t=XN.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function PI(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=FI(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=XN.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function RI(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Mf.isElement(t)&&e.isVoid(t),i=Mf.isElement(t)&&e.isInline(t),a=PT.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(VT.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=FI(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,E={},w=s-g,S=l-y;if("bar"===n)return E.left=S+"px",w>40?E.bottom=b-w+5+"px":E.top=w+c+5+"px",E;if("modal"===n)return o?i?S>(m-f)/2?E.right=m-S+5+"px":E.left=S+f+5+"px":E.left="20px":E.left=S+"px",o?((v=w)<0&&(v=0),E.top=v+"px"):w>(b-c)/2?E.bottom=b-w+5+"px":((v=w+c)<0&&(v=0),E.top=v+5+"px"),E;throw new Error("type '"+n+"' is invalid")}function LI(e,t){TN((function(){var n=FI(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=h+f-a)>0){var E=t.css("left"),w=parseInt(E.toString())-r;w<0&&(w=0),t.css("left",w+"px")}if(v.indexOf("right")>=0&&c<0){var S=t.css("right"),C=parseInt(S.toString())-Math.abs(c);t.css("right",C+"px")}}}))}var _I=vx("slice"),jI=$w("species"),MI=uw.Array,zI=Math.max;lD({target:"Array",proto:!0,forced:!_I},{slice:function(e,t){var n,r,o,i=_C(this),a=dC(i),u=UC(e,a),s=UC(void 0===t?a:t,a);if(pC(i)&&(n=i.constructor,(wC(n)&&(n===MI||pC(n.prototype))||qw(n)&&null===(n=n[jI]))&&(n=void 0),n===MI||void 0===n))return tk(i,u,s);for(r=new(void 0===n?MI:n)(zI(s-u,0)),o=0;u<s;u++,o++)u in i&&dA(r,o,i[u]);return r.length=o,r}});var HI=MC.f,UI=yw("".startsWith),$I=yw("".slice),VI=Math.min,GI=nA("startsWith"),WI=!GI&&!!function(){var e=HI(String.prototype,"startsWith");return e&&!e.writable}();lD({target:"String",proto:!0,forced:!WI&&!GI},{startsWith:function(e){var t=SD(bw(this));eA(e);var n=fC(VI(arguments.length>1?arguments[1]:void 0,t.length)),r=SD(e);return UI?UI(t,r,n):$I(t,n,n+r.length)===r}});var qI=Object.assign,KI=Object.defineProperty,YI=yw([].concat),XI=!qI||Lw((function(){if(Ww&&1!==qI({b:1},qI(KI({},"a",{enumerable:!0,get:function(){KI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=qI({},e)[n]||cD(qI({},t)).join("")!=r}))?function(e,t){for(var n=ww(e),r=arguments.length,o=1,i=ZC.f,a=LC.f;r>o;)for(var u,s=aC(arguments[o++]),l=i?YI(cD(s),i(s)):cD(s),c=l.length,f=0;c>f;)u=l[f++],Ww&&!nS(a,s,u)||(n[u]=s[u]);return n}:qI;lD({target:"Object",stat:!0,forced:Object.assign!==XI},{assign:XI});var ZI=["props","attrs","style","dataset","on","hook"];function JI(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!ZI.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Sy(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&JI(e)}))}var QI=[];var eF={};function tF(e,t,n){return gg(n.isInline(e)?"span":"div",null,t)}function nF(e,t){return void 0===t&&(t=!1),gg("span",{"data-slate-string":!0},t?e+"\n":e)}function rF(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),gg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?gg("br",null):null)}function oF(e,t,n,r){return kT.set(e,t),NT.set(e,n),Mf.isElement(e)?function(e,t){var n,r=XN.findKey(t,e),o=t.isInline(e),i=Gf.isVoid(t,e),a=vB(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=function(e){return eF[e]||tF}(s);n=i?null:c.map((function(n,r){return oF(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=gO(Zf.texts(e),1),v=gO(h[0],1)[0],g=gg(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},oF(v,0,e,t));d=gg(p,{style:{position:"relative"}},d,g),kT.set(v,0),NT.set(v,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return QI.forEach((function(r){n=r(e,t)})),n}(e,d)),TN((function(){var t=_N(a);null!=t&&(FT.set(r,t),PT.set(e,t),IT.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=XN.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=XN.findPath(n,e),a=o([e,i]),u=gd.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=XN.findPath(o,n),u=td.parent(a);if(Gf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?rF(Zf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Gf.string(o,u)?""===i?rF():t&&"\n"===i.slice(-1)?nF(i,!0):nF(i):rF(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return QI.forEach((function(t){n=t(e,n)})),n}(r,i),gg("span",{"data-slate-leaf":!0},i)})),l=function(e){return"w-e-text-"+e}(r.id),c=gg("span",{"data-slate-node":"text",id:l,key:r.id},s);return TN((function(){var t=_N(l);null!=t&&(FT.set(r,t),PT.set(e,t),IT.set(t,e))})),c}(e,n,r)}function iF(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),Yv("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=oF(e,n,t,t);return JI(r),r}));var c=xT.get(e);if(null==c&&(c=!0),c){var f=function(e){return hh('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=qv([Qv,sg,hg,ng,ag,Zv]))(n,s),xT.set(e,!1),OT.set(e,p)}else{var d=TT.get(e),p=OT.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=_N(o))){var h;if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var v=(h=n)&&h.ownerDocument&&h.ownerDocument.defaultView||null;v&<.set(t,v)}BT.set(t,n),PT.set(t,n),IT.set(n,t),TT.set(e,s)}}function aF(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function uF(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function sF(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return uF(n.overflowY,t)||uF(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function lF(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}var cF=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!aF(e))throw new TypeError("Invalid target");for(var l,c,f=document.scrollingElement||document.documentElement,d=[],p=e;aF(p)&&s(p);){if((p=null==(c=(l=p).parentElement)?l.getRootNode().host||null:c)===f){d.push(p);break}null!=p&&p===document.body&&sF(p)&&!sF(document.documentElement)||null!=p&&sF(p,u)&&d.push(p)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),b=m.height,E=m.width,w=m.top,S=m.right,C=m.bottom,D=m.left,A="start"===o||"nearest"===o?w:"end"===o?C:w+b/2,x="center"===i?D+E/2:"end"===i?S:D,O=[],T=0;T<d.length;T++){var k=d[T],N=k.getBoundingClientRect(),B=N.height,I=N.width,F=N.top,P=N.right,R=N.bottom,L=N.left;if("if-needed"===r&&w>=0&&D>=0&&C<=v&&S<=h&&w>=F&&C<=R&&D>=L&&S<=P)return O;var _=getComputedStyle(k),j=parseInt(_.borderLeftWidth,10),M=parseInt(_.borderTopWidth,10),z=parseInt(_.borderRightWidth,10),H=parseInt(_.borderBottomWidth,10),U=0,$=0,V="offsetWidth"in k?k.offsetWidth-k.clientWidth-j-z:0,G="offsetHeight"in k?k.offsetHeight-k.clientHeight-M-H:0,W="offsetWidth"in k?0===k.offsetWidth?0:I/k.offsetWidth:0,q="offsetHeight"in k?0===k.offsetHeight?0:B/k.offsetHeight:0;if(f===k)U="start"===o?A:"end"===o?A-v:"nearest"===o?lF(y,y+v,v,M,H,y+A,y+A+b,b):A-v/2,$="start"===i?x:"center"===i?x-h/2:"end"===i?x-h:lF(g,g+h,h,j,z,g+x,g+x+E,E),U=Math.max(0,U+y),$=Math.max(0,$+g);else{U="start"===o?A-F-M:"end"===o?A-R+H+G:"nearest"===o?lF(F,R,B,M,H+G,A,A+b,b):A-(F+B/2)+G/2,$="start"===i?x-L-j:"center"===i?x-(L+I/2)+V/2:"end"===i?x-P+z+V:lF(L,P,I,j,z+V,x,x+E,E);var K=k.scrollLeft,Y=k.scrollTop;A+=Y-(U=Math.max(0,Math.min(Y+U/q,k.scrollHeight-B/q+G))),x+=K-($=Math.max(0,Math.min(K+$/W,k.scrollWidth-I/W+V)))}O.push({el:k,top:U,left:$})}return O};function fF(e){return e===Object(e)&&0!==Object.keys(e).length}function dF(e,t){return PN(t)&&XN.hasDOMNode(e,t,{editable:!0})}function pF(e,t){if(e.getConfig().readOnly)return!1;var n=hF(e,t)&&XN.toSlateNode(e,t);return Gf.isVoid(e,n)}function hF(e,t){return PN(t)&&XN.hasDOMNode(e,t)}function vF(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=XN.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=BT.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=XN.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&ld.equals(l,r)){var c=!0;if(ld.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||XN.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&XN.toDOMRange(t,r);if(v){ld.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(fF(t)&&"function"==typeof t.behavior)return t.behavior(n?cF(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:fF(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))})(cF(e,r),r.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&VN&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=XN.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var gF=new WeakMap,yF=new WeakMap,mF={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"},bF={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"},EF={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},wF=function(e){var t=mF[e],n=bF[e],r=EF[e],o=t&&Iy(t),i=n&&Iy(n),a=r&&Iy(r);return function(e){return!(!o||!o(e))||!!($N&&i&&i(e))||!($N||!a||!a(e))}},SF={isBold:wF("bold"),isCompose:wF("compose"),isMoveBackward:wF("moveBackward"),isMoveForward:wF("moveForward"),isDeleteBackward:wF("deleteBackward"),isDeleteForward:wF("deleteForward"),isDeleteLineBackward:wF("deleteLineBackward"),isDeleteLineForward:wF("deleteLineForward"),isDeleteWordBackward:wF("deleteWordBackward"),isDeleteWordForward:wF("deleteWordForward"),isExtendBackward:wF("extendBackward"),isExtendForward:wF("extendForward"),isExtendLineBackward:wF("extendLineBackward"),isExtendLineForward:wF("extendLineForward"),isItalic:wF("italic"),isMoveLineBackward:wF("moveLineBackward"),isMoveLineForward:wF("moveLineForward"),isMoveWordBackward:wF("moveWordBackward"),isMoveWordForward:wF("moveWordForward"),isRedo:wF("redo"),isSplitBlock:wF("splitBlock"),isTransposeCharacter:wF("transposeCharacter"),isUndo:wF("undo"),isTab:wF("tab"),isSelectAll:wF("selectAll")};function CF(e){e.preventDefault()}var DF={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(YN&&!o&&dF(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=gO(r.getTargetRanges(),1)[0];if(s){var l=XN.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&ld.equals(i,l)||Pd.select(n,l)}}if(i&&ld.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Gf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Gf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Gf.deleteForward(n);break;case"deleteContentBackward":Gf.deleteBackward(n);break;case"deleteEntireSoftLine":Gf.deleteBackward(n,{unit:"line"}),Gf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Gf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Gf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Gf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Gf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Gf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Gf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Gf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!zT.get(n))break;"[object DataTransfer]"===kN(u)?n.insertData(u):"string"==typeof u&&Gf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&dF(n,r.target)){var a=XN.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===XN.toDOMNode(n,n)||FN(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&PN(u)&&XN.hasDOMNode(n,u)){var s=XN.toSlateNode(n,u);if(Mf.isElement(s)&&!n.isVoid(s))return}if(GN){var l=a.getSelection();null==l||l.removeAllRanges()}_T.delete(n)}}}},focus:function(e,t,n){var r=XN.toDOMNode(n,n),o=XN.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,VN&&e.target!==r?r.focus():_T.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&hF(n,e.target)&&PN(e.target)){var r=XN.toSlateNode(n,e.target),o=XN.findPath(n,r);if(Gf.hasPath(n,o)&&Zf.get(n,o)===r){var i=Gf.start(n,o),a=Gf.end(n,o),u=Gf.void(n,{at:i}),s=Gf.void(n,{at:a});if(u&&s&&td.equals(u[1],s[1])){var l=Gf.range(n,i);Pd.select(n,l)}}}},compositionstart:function(e,t,n){if(dF(n,e.target)){var r=n.selection;if(r&&ld.isExpanded(r)&&(Gf.deleteFragment(n),Promise.resolve().then((function(){vF(t,n,!0)}))),r&&(ld.isExpanded(r)||ld.isCollapsed(r))){var o=XN.toDOMRange(n,r).startContainer,i=o.textContent||"";gF.set(n,i),yF.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(dF(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(KN||VN)&&XN.cleanExposedTexNodeInSelectionBlock(n);for(var i=ld.isBackward(o)?o.focus:o.anchor,a=gO(Gf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=gO(Gf.node(n,i.path.slice(0,u+1)),1)[0];if(Mf.isElement(s)&&((GN||VN)&&"link"===s.type||"code"===s.type)){XN.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=XN.getLeftLengthOfMaxLength(n);c<l.length?(XN.toDOMRange(n,o).startContainer.textContent=gF.get(n)||"",c>0&&Gf.insertText(n,l.slice(0,c)),t.changeViewState()):Gf.insertText(n,l)}else{var f=XN.findDocumentOrShadowRoot(n).getSelection();f&&function(e,t){if(ld.isCollapsed(t)){var n=t.anchor,r=t.focus;if(2===n.path.length&&2===r.path.length&&(0===n.offset||0===r.path.offset)){var o=Gf.node(e,n.path),i=0===n.offset?n.path:r.path,a=[i[0],i[1]-1];if(0===i[1])return!1;var u=Gf.node(e,a);if(gd.isText(u[0])&&gd.isText(o[0]))return!0}}}(n,o)&&(n.selection=XN.toSlateRange(n,f,{exactMatch:!1,suppressThrow:!1})),Gf.insertText(n,l)}GN||setTimeout((function(){var e=n.selection;if(null!=e){var t=yF.get(n);null!=t&&XN.toDOMRange(n,e).startContainer!==t&&(t.textContent=gF.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){dF(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&dF(n,r.target)){if(function(e,t){var n=bT.get(e),r=n&&n.getMenus(),o=wT.get(e),i=o&&o.getMenus(),a=hO(hO({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&By(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),SF.isTab(r))return CF(r),void n.handleTab();if(SF.isRedo(r))return CF(r),void("function"==typeof n.redo&&n.redo());if(SF.isUndo(r))return CF(r),void("function"==typeof n.undo&&n.undo());if(SF.isMoveLineBackward(r))return CF(r),void Pd.move(n,{unit:"line",reverse:!0});if(SF.isMoveLineForward(r))return CF(r),void Pd.move(n,{unit:"line"});if(SF.isExtendLineBackward(r))return CF(r),void Pd.move(n,{unit:"line",edge:"focus",reverse:!0});if(SF.isExtendLineForward(r))return CF(r),void Pd.move(n,{unit:"line",edge:"focus"});if(SF.isMoveBackward(r))return CF(r),void(o&&ld.isCollapsed(o)?Pd.move(n,{reverse:!0}):Pd.collapse(n,{edge:"start"}));if(SF.isMoveForward(r))return CF(r),void(o&&ld.isCollapsed(o)?Pd.move(n):Pd.collapse(n,{edge:"end"}));if(SF.isMoveWordBackward(r))return CF(r),o&&ld.isExpanded(o)&&Pd.collapse(n,{edge:"focus"}),void Pd.move(n,{unit:"word",reverse:!0});if(SF.isMoveWordForward(r))return CF(r),o&&ld.isExpanded(o)&&Pd.collapse(n,{edge:"focus"}),void Pd.move(n,{unit:"word"});if(SF.isSelectAll(r))return CF(r),void n.selectAll();if(YN){if((KN||GN)&&o&&(SF.isDeleteBackward(r)||SF.isDeleteForward(r))&&ld.isCollapsed(o)){var i=Zf.parent(n,o.anchor.path);if(Mf.isElement(i)&&Gf.isVoid(n,i)&&Gf.isInline(n,i))return r.preventDefault(),void Pd.delete(n,{unit:"block"})}}else{if(SF.isBold(r)||SF.isItalic(r)||SF.isTransposeCharacter(r))return void CF(r);if(SF.isSplitBlock(r))return CF(r),void Gf.insertBreak(n);if(SF.isDeleteBackward(r))return CF(r),void(o&&ld.isExpanded(o)?Gf.deleteFragment(n,{direction:"backward"}):Gf.deleteBackward(n));if(SF.isDeleteForward(r))return CF(r),void(o&&ld.isExpanded(o)?Gf.deleteFragment(n,{direction:"forward"}):Gf.deleteForward(n));if(SF.isDeleteLineBackward(r))return CF(r),void(o&&ld.isExpanded(o)?Gf.deleteFragment(n,{direction:"backward"}):Gf.deleteBackward(n,{unit:"line"}));if(SF.isDeleteLineForward(r))return CF(r),void(o&&ld.isExpanded(o)?Gf.deleteFragment(n,{direction:"forward"}):Gf.deleteForward(n,{unit:"line"}));if(SF.isDeleteWordBackward(r))return CF(r),void(o&&ld.isExpanded(o)?Gf.deleteFragment(n,{direction:"backward"}):Gf.deleteBackward(n,{unit:"word"}));if(SF.isDeleteWordForward(r))return CF(r),void(o&&ld.isExpanded(o)?Gf.deleteFragment(n,{direction:"forward"}):Gf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!YN&&!n.getConfig().readOnly&&dF(n,e.target)){e.preventDefault();var r=e.key;Gf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(dF(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&dF(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(ld.isExpanded(o))Gf.deleteFragment(n);else{var a=Zf.parent(n,o.anchor.path);Gf.isVoid(n,a)&&Pd.delete(n)}}},paste:function(e,t,n){zT.set(n,!0);var r=e;if(!n.getConfig().readOnly&&dF(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void zT.set(n,!1);if(!YN||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(hF(n,e.target)){var r=XN.toSlateNode(n,e.target);Gf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(hF(n,r.target)&&!n.getConfig().readOnly){var o=XN.toSlateNode(n,r.target),i=XN.findPath(n,o);if(Gf.isVoid(n,o)||Gf.void(n,{at:i,voids:!0})){var a=Gf.range(n,i);Pd.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&hF(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&hF(n,r.target)&&null!=o&&!(YN&&GN&&o.files.length>0)){r.preventDefault();var i=n.selection,a=XN.findEventRange(n,r);Pd.select(n,a),t.isDraggingInternally&&(i&&Pd.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},AF=1,xF=function(){function e(e){var t=this;this.id=AF++,this.$textArea=null,this.$progressBar=hh('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=hh('<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=Lv((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=XN.findDocumentOrShadowRoot(t),a=i.activeElement,u=XN.toDOMNode(t,t),s=i.getSelection();if(a!==u)return _T.delete(t),void Pd.deselect(t);if(e.latestElement=a,_T.set(t,!0),!s)return Pd.deselect(t);var l=s.anchorNode,c=s.focusNode,f=dF(t,l)||pF(t,l),d=dF(t,c)||pF(t,c);if(f&&d){var p=XN.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});Pd.select(t,p)}}}(t,e)}),100);var n=hh(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=hh('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=hh('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,TN((function(){var e=t.editorInstance,o=XN.getWindow(e);o.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){o.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var i=e.getConfig(),a=i.onChange,u=i.scroll;a&&e.on("change",(function(){return a(e)})),u||(n.css("position","relative"),r.addClass("no-scroll")),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=yT.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(gv(DF,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Lv((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-XN.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;iF(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=hh('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),TN((function(){vF(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function OF(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&OF(t)}function TF(){return hh('<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 kF(){return hh('<div class="w-e-bar-divider"></div>')}function NF(e,t,n,r,o){if(void 0===r&&(r=""),void 0===o&&(o=!1),t){if(r){var i=$N?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}Gx("match",(function(e,t,n){return[function(t){var n=bw(this),r=null==t?void 0:cS(t,e);return r?nS(r,t,n):new RegExp(t)[e](SD(n))},function(e){var r=eS(this),o=SD(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return nO(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=nO(r,o));){var c=SD(u[0]);s[l]=c,""===c&&(r.lastIndex=qx(o,fC(r.lastIndex),a)),l++}return 0===l?null:s}]}));var BF=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=hh('<div class="w-e-bar-item"></div>'),this.$button=hh('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=hh(c);OF(d),f.append(d)}else f.text(a);NF(f,c,a,s,n),n&&c&&f.append(hh('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),TN((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),GF(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=GF(this),t=this.menu,n=t.getValue(e);this.setIcon(),this.setTooltip(),t.exec(e,n)},e.prototype.setActive=function(){var e=GF(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=GF(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r)},e.prototype.setIcon=function(){var e=GF(this),t=this.$button;if(this.menu.getIcon){var n=this.menu.getIcon(e);if(n){t.find("svg").remove();var r=hh(n);OF(r),t.append(r)}}},e.prototype.setTooltip=function(){var e=GF(this),t=this.$button;if(this.menu.getTitle){var n=this.menu.getTitle(e),r=this.menu.iconSvg;n&&r&&NF(t,r,n)}},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),IF=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return pO(t,e),t.prototype.onButtonClick=function(){},t}(BF),FF=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=CT.get(e);null==t&&(t=new Set,CT.set(e,t)),t.add(this),DT.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=DT.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=DT.get(this);e&&e.emit("modalOrPanelHide")}},e}(),PF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=hh('<div class="w-e-drop-panel"></div>'),n}return pO(t,e),t.prototype.genSelfElem=function(){return null},t}(FF),RF=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=TF();o.$button.append(i)}return o}return pO(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=GF(this);if(null==this.dropPanel){var n=new PF(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(BF),LF=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=hh('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return pO(t,e),t.prototype.genSelfElem=function(){var e=this,t=hh('<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>'),n=DT.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(FF);function _F(e,t,n){var r=hh('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=hh('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function jF(e,t,n){var r=hh('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=hh('<textarea type="text" id="'+t+'" placeholder="'+(n||"")+'"></textarea>');return r.append(o),[r[0],o[0]]}function MF(e,t){var n=hh('<div class="button-container"></div>'),r=hh('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var zF=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=hh("body"),o.modal=null,o.menu=n,o}return pO(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=GF(this),t=this.menu.getModalPositionNode(e);return Mf.isElement(t)?RI(e,t,"modal"):PI(e)},t.prototype.handleModal=function(){var e=GF(this),t=this.menu;if(null==this.modal){var n=new LF(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=GF(this),r=this.menu;if(null!=r.getModalContentElem){var o=XN.getTextarea(n),i=XN.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||LI(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(BF),HF=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=hh('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return pO(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=hh("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=hh('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=hh('<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>');a.append(u),a.addClass("selected")}a.append(hh('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(FF),UF=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=hh('<div class="w-e-bar-item"></div>'),this.$button=hh('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),NF(f,s,i,c,n),this.$elem.append(f),this.menu=t,TN((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),GF(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=GF(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new HF(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=hh(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=GF(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=GF(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=TF();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=GF(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),$F=function(){function e(e){this.$elem=hh('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=hh('<div class="w-e-bar-item-menus-container"></div>'),this.$button=hh('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=hh(n);OF(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=TF();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){hh(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),VF=new WeakMap;function GF(e){var t=ST.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function WF(e,t,n){void 0===n&&(n=!1);var r=VF.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new RF(e,t,n):a?new zF(e,t,n):new IF(e,t,n)}if("select"===o&&(r=new UF(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return VF.set(t,r),r}function qF(e,t){var n=e.selection;return null!=n&&!ld.isCollapsed(n)&&!XN.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!gd.isText(t)}var KF=function(){function e(){var e=this;this.$elem=hh('<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=Xy((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&Mf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),TN((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),XN.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.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},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;TN((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=kF();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=QN[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=t.getMenuConfig(e);i&&void 0!==i.iconSvg&&(r.iconSvg=i.iconSvg);var a=WF(e,r);this.hoverbarItems.push(a),ST.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Mf.isElement(e)){var r=RI(t,e,"bar");return n.css(r),void LI(t,n)}if(gd.isText(e))return r=PI(t),n.css(r),void LI(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return XN.checkNodeType(t,o)},c=gO(Gf.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),f=c[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=ET.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=qF),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=XN.findPath(null,e),r=XN.findPath(null,t);return td.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function YF(e,t,n,r){if(kT.set(e,t),NT.set(e,n),Mf.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return YF(t,n,e,r)})),Gf.isVoid(r,e)){var i=gO(Zf.texts(e),1),a=gO(i[0],1)[0];kT.set(a,0),NT.set(a,e)}}}function XF(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];gD.withoutSaving(t,(()=>{Gf.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];gD.withoutSaving(t,(()=>{Gf.withoutNormalizing(t,(()=>{var e=r.map(ed.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=bD(e,u),l=gD.isSaving(t),c=gD.isMerging(t);if(null==l&&(l=mD(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||yD(e,u)||s)),a&&c)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();ED(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=XN.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=XN.getLeftLengthOfMaxLength(t);n<=0||n<Zf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength){if(e.length>0){var n=e[0];if(XN.getLeftLengthOfMaxLength(t)<Zf.string(n).length)return;o([n]);for(var r=1;r<e.length;r++)t.insertNode(e[r])}}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=XN.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===NN.TEXT_NODE?e+(t.textContent||""):n===NN.ELEMENT_NODE?aI.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(II(function(e){var t=e;return t.select=function(e){Pd.select(t,e)},t.deselect=function(){var n=t.selection,r=XN.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Pd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Pd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=jT.get(t);null!=e&&(t.focus(),Pd.select(t,e))},t.getSelectionPosition=function(){return PI(t)},t.getNodePosition=function(e){return RI(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=gO(ld.edges(e),2),r=n[0],o=n[1],i=gO(Gf.edges(t,[]),2),a=i[0],u=i[1];return!(!id.equals(r,a)||!id.equals(o,u))},t.selectAll=function(){var e=Gf.start(t,[]),n=Gf.end(t,[]);Pd.select(t,{anchor:e,focus:n})},t}(sI(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in QN)e.push(t);return e},t.getConfig=function(){var e=AT.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(){var e=lI(sf());return e.id="wangEditor-"+ZN++,e.isDestroyed=!1,e.isFullScreen=!1,e.focus=function(t){if(XN.toDOMNode(e,e).focus({preventScroll:!0}),_T.set(e,!0),t){var n=Gf.end(e,[]);Pd.select(e,n)}else{var r=jT.get(e);r?Pd.select(e,r):Pd.select(e,Gf.start(e,[]))}},e.isFocused=function(){return!!_T.get(e)},e.blur=function(){XN.toDOMNode(e,e).blur(),Pd.deselect(e),_T.set(e,!1)},e.updateView=function(){XN.getTextarea(e).changeViewState();var t=XN.getToolbar(e);t&&t.changeToolbarState();var n=XN.getHoverbar(e);n&&n.changeHoverbarState()},e.destroy=function(){if(!e.isDestroyed){var t=XN.getTextarea(e);t.destroy(),gT.delete(e),yT.delete(t);var n=XN.getToolbar(e);n&&(n.destroy(),bT.delete(e),mT.delete(n));var r=XN.getHoverbar(e);r&&(r.destroy(),wT.delete(e),ET.delete(r)),e.isDestroyed=!0,e.emit("destroyed")}},e.scrollToElem=function(t){if(!e.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=hh("#"+t);if(0!==r.length){var o=r[0];if(!XN.hasDOMNode(e,o))return n="Element (found by id is '"+t+"') is not in editor DOM",n+="\n 通过 id '"+t+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=XN.getTextarea(e),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},e.showProgressBar=function(t){t<1||XN.getTextarea(e).changeProgress(t)},e.hidePanelOrModal=function(){var t=CT.get(e);null!=t&&t.forEach((function(e){return e.hide()}))},e.enable=function(){e.getConfig().readOnly=!1,e.updateView()},e.disable=function(){e.getConfig().readOnly=!0,e.updateView()},e.isDisabled=function(){return e.getConfig().readOnly},e.toDOMNode=function(t){return XN.toDOMNode(e,t)},e.fullScreen=function(){if(!e.isFullScreen){var t=null,n=XN.getToolbar(e);n&&(t=n.$box);var r=XN.getTextarea(e).$box.parent();if(t&&t.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),e.isFullScreen=!0,e.emit("fullScreen")}},e.unFullScreen=function(){if(e.isFullScreen){var t=XN.getTextarea(e).$box.parent();setTimeout((function(){t.removeClass("w-e-full-screen-container"),e.isFullScreen=!1,e.emit("unFullScreen")}),200)}},e.getEditableContainer=function(){return XN.getTextarea(e).$textAreaContainer[0]},e}()))))));if(n&&function(e,t){return QB(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=Zy(JN),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return gv(t,(function(e,t){n[t]=hO(hO({},e),o[t]||{})})),delete e.MENU_CONF,hO({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);AT.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=eI(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),XN.normalizeContent(l),n){var p=new xF(n);gT.set(l,p),yT.set(p,l),p.changeViewState(),TN((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(d).length>0&&(h=new KF,ET.set(h,l),wT.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return YF(e,t,l,l)}));var v=c.onCreated,g=c.onDestroyed;return v&&l.on("created",(function(){return v(l)})),g&&l.on("destroyed",(function(){return g(l)})),TN((function(){return l.emit("created")})),l}var ZF=vx("splice"),JF=uw.TypeError,QF=Math.max,eP=Math.min;lD({target:"Array",proto:!0,forced:!ZF},{splice:function(e,t){var n,r,o,i,a,u,s=ww(this),l=dC(s),c=UC(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=eP(QF(lC(t),0),l-c)),l+n-r>9007199254740991)throw JF("Maximum allowed length exceeded");for(o=DC(s,r),i=0;i<r;i++)(a=c+i)in s&&dA(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 tP=function(){function e(e,t){var n=this;this.$toolbar=hh('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Xy((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=hh(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),TN((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=Zy(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=kF();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new $F(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof $F,o=this.menus,i=o[e];if(null==i){var a=QN[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=n.getMenuConfig(e);u&&void 0!==u.iconSvg&&(i.iconSvg=u.iconSvg);var s=WF(e,i,r);this.toolbarItems.push(s),ST.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=mT.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}();var nP=US.EXISTS,rP=yS.f,oP=Function.prototype,iP=yw(oP.toString),aP=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,uP=yw(aP.exec);function sP(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,v=e.withCredentials,g=void 0!==v&&v,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,E=void 0===b?function(e){return e}:b,w=e.onSuccess,S=void 0===w?function(e,t){}:w,C=e.onError,D=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n)}:C,A=e.onProgress,x=void 0===A?function(e){}:A;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=gO(e.split("#"),2),r=n[0],o=n[1],i=[];gv(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(O,c));var T=new Bb({onBeforeUpload:E,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(tw,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return T.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{S(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}T.removeFile(e.id)})),T.on("progress",(function(e){e<1||x(e)})),T.on("upload-error",(function(e,t,n){try{D(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}T.removeFile(e.id)})),T.on("restriction-failed",(function(e,t){try{D(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}T.removeFile(e.id)})),T}function lP(e){return lP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lP(e)}function cP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){cP(e,t,n[t])}))}return e}function dP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hP(e,t,n){return t&&pP(e.prototype,t),n&&pP(e,n),e}function vP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gP(e,t){if(t&&("object"===lP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vP(e)}function yP(e){return yP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yP(e)}function mP(e,t){return mP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mP(e,t)}function bP(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mP(e,t)}Ww&&!nP&&rP(oP,"name",{configurable:!0,get:function(){try{return uP(aP,iP(this))[1]}catch(e){return""}}});var EP={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},wP=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dP(this,e),this.init(t,n)}return hP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||EP,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,fP({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),SP=function(){function e(){dP(this,e),this.observers={}}return hP(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function CP(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function DP(e){return null==e?"":""+e}function AP(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function xP(e,t,n){var r=AP(e,t,Object);r.obj[r.k]=n}function OP(e,t){var n=AP(e,t),r=n.obj,o=n.k;if(r)return r[o]}function TP(e,t,n){var r=OP(e,n);return void 0!==r?r:OP(t,n)}function kP(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):kP(e[r],t[r],n):e[r]=t[r]);return e}function NP(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var BP={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function IP(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return BP[e]})):e}var FP="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function PP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?PP(s,l,n):void 0}o=o[r[i]]}return o}}var RP=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return dP(this,e),n=gP(this,yP(e).call(this)),FP&&SP.call(vP(n)),n.data=t||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return bP(e,SP),hP(e,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=OP(this.data,a);return u||!i||"string"!=typeof n?u:PP(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),xP(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=OP(this.data,a)||{};r?kP(u,n,o):u=fP({},u,n),xP(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?fP({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),e}(),LP={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},_P={},jP=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return dP(this,e),n=gP(this,yP(e).call(this)),FP&&SP.call(vP(n)),function(e,t,n){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(e){t[e]&&(n[e]=t[e])}))}(0,t,vP(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=wP.create("translator"),n}return bP(e,SP),hP(e,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(t,n,r){var o=this;if("object"!==lP(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(t,n),h=p&&p.res,v=p&&p.usedKey||u,g=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&"string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.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(v,h,fP({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===y,w=E?[]:{},S=E?g:v;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var D="".concat(S).concat(i).concat(C);w[C]=this.translate(D,fP({},n,{joinArrays:!1,ns:s})),w[C]===D&&(w[C]=h[C])}h=w}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,t,n,r));else{var A=!1,x=!1,O=void 0!==n.count&&"string"!=typeof n.count,T=e.hasDefaultValue(n),k=O?this.pluralResolver.getSuffix(c,n.count):"",N=n["defaultValue".concat(k)]||n.defaultValue;!this.isValidLookup(h)&&T&&(A=!0,h=N),this.isValidLookup(h)||(x=!0,h=u);var B=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:h,I=T&&N!==h&&this.options.updateMissing;if(x||A||I){if(this.logger.log(I?"updateKey":"missingKey",c,l,u,I?N:h),i){var F=this.resolve(u,fP({},n,{keySeparator:!1}));F&&F.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 P=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var L=0;L<R.length;L++)P.push(R[L]);else"all"===this.options.saveMissingTo?P=this.languageUtils.toResolveHierarchy(n.lng||this.language):P.push(n.lng||this.language);var _=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,I?r:B,I,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,I?r:B,I,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?P.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){_([e],u+t,n["defaultValue".concat(t)]||N)}))})):_(P,u,N))}h=this.extendTranslation(h,t,n,p,r),x&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(x||A)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(fP({},n,{interpolation:fP({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=fP({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=LP.handle(d,e,t,this.options&&this.options.postProcessPassResolved?fP({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!_P["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(_P["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" 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!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),e}();function MP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var zP=function(){function e(t){dP(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=wP.create("languageUtils")}return hP(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=MP(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=MP(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=MP(n[2].toLowerCase()))),n.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("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),HP=[{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}],UP={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},$P=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dP(this,e),this.languageUtils=t,this.options=r,this.logger=wP.create("pluralResolver"),this.rules=(n={},HP.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:UP[e.fc]}}))})),n)}return hP(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),VP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};dP(this,e),this.logger=wP.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return hP(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:IP,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?NP(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?NP(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?NP(t.nestingPrefix):t.nestingPrefixEscaped||NP("$t("),this.nestingSuffix=t.nestingSuffix?NP(t.nestingSuffix):t.nestingSuffixEscaped||NP(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.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 t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=TP(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,fP({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(TP(t,s,a),l,n,fP({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=DP(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=fP({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=fP({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=DP(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,fP({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),GP=function(){function e(t,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return dP(this,e),o=gP(this,yP(e).call(this)),FP&&SP.call(vP(o)),o.backend=t,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=wP.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return bP(e,SP),hP(e,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n){var r=AP(e,t,Object),o=r.obj,i=r.k;o[i]=o[i]||[],o[i].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=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."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" 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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,fP({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),e}();function WP(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function qP(){}var KP=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(dP(this,e),t=gP(this,yP(e).call(this)),FP&&SP.call(vP(t)),t.options=WP(n),t.services={},t.logger=wP,t.modules={external:[]},r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),gP(t,vP(t));setTimeout((function(){t.init(n,r)}),0)}return t}return bP(e,SP),hP(e,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.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=fP({},{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(e){var t={};if("object"===lP(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===lP(e[2])||"object"===lP(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,WP(t)),this.format=this.options.interpolation.format,n||(n=qP),!this.options.isClone){this.modules.logger?wP.init(r(this.modules.logger),this.options):wP.init(null,this.options);var o=new zP(this.options);this.store=new RP(this.options.resources,this.options);var i=this.services;i.logger=wP,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new $P(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new VP(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new GP(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new jP(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=CP(),s=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qP,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=CP();return e||(e=this.languages),t||(t=this.options.ns),n||(n=qP),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&LP.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=CP();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==lP(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=fP({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?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 r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=CP();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=CP();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["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(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qP,o=fP({},this.options,n,{isClone:!0}),i=new e(o);return["store","services","language"].forEach((function(e){i[e]=t[e]})),i.services=fP({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new jP(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),YP=new KP,XP="translation";function ZP(e,t){YP.addResourceBundle(e,XP,t,!0,!0)}function JP(e){YP.changeLanguage(e)}function QP(e){return YP.getResourceBundle(e,XP)}YP.init({lng:"zh-CN",resources:{}});var eR=YP.t.bind(YP);ZP("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),ZP("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var tR=ua?{}.toString:function(){return"[object "+fa(this)+"]"};ua||Ti(Object.prototype,"toString",tR,{unsafe:!0});var nR=Array.isArray||function(e){return"Array"==Kr(e)},rR=function(){},oR=[],iR=ro("Reflect","construct"),aR=/^\s*(?:class|function)\b/,uR=Gr(aR.exec),sR=!aR.exec(rR),lR=function(e){if(!to(e))return!1;try{return iR(rR,oR,e),!0}catch(e){return!1}},cR=!iR||Ir((function(){var e;return lR(lR.call)||!lR(Object)||!lR((function(){e=!0}))||e}))?function(e){if(!to(e))return!1;switch(fa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return sR||!!uR(aR,li(e))}:lR,fR=Mo("species"),dR=Br.Array,pR=function(e,t){return new(function(e){var t;return nR(e)&&(t=e.constructor,(cR(t)&&(t===dR||nR(t.prototype))||no(t)&&null===(t=t[fR]))&&(t=void 0)),void 0===t?dR:t}(e))(0===t?0:t)},hR=Gr([].push),vR=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=To(s),v=Zr(h),g=Au(l,c),y=_i(v),m=0,b=f||pR,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:hR(E,d)}else switch(e){case 4:return!1;case 7:hR(E,d)}return i?-1:r||o?o:E}},gR={forEach:vR(0),map:vR(1),filter:vR(2),some:vR(3),every:vR(4),find:vR(5),findIndex:vR(6),filterReject:vR(7)}.forEach,yR=function(e,t){var n=[][e];return!!n&&Ir((function(){n.call(null,t||function(){throw 1},1)}))}("forEach"),mR=yR?[].forEach:function(e){return gR(this,e,arguments.length>1?arguments[1]:void 0)},bR=function(e){if(e&&e.forEach!==mR)try{oi(e,"forEach",mR)}catch(t){e.forEach=mR}};for(var ER in Cs)Cs[ER]&&bR(Br[ER]&&Br[ER].prototype);bR(xs),ZP("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",cancelTitle:"Cancel full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",editSize:"Edit size",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link",ok:"Ok",width:"Width",height:"Height"},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"}}),ZP("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏",cancelTitle:"取消全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",editSize:"修改尺寸",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接",ok:"确定",width:"宽度",height:"高度"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var wR={type:"paragraph",renderElem:function(e,t,n){return gg("p",null,t)}},SR="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function CR(e){var t={exports:{}};return e(t,t.exports),t.exports}var DR,AR,xR=function(e){return e&&e.Math==Math&&e},OR=xR("object"==typeof globalThis&&globalThis)||xR("object"==typeof window&&window)||xR("object"==typeof self&&self)||xR("object"==typeof SR&&SR)||function(){return this}()||Function("return this")(),TR=function(e){try{return!!e()}catch(e){return!0}},kR=!TR((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),NR=Function.prototype.call,BR=NR.bind?NR.bind(NR):function(){return NR.apply(NR,arguments)},IR={}.propertyIsEnumerable,FR=Object.getOwnPropertyDescriptor,PR=FR&&!IR.call({1:2},1)?function(e){var t=FR(this,e);return!!t&&t.enumerable}:IR,RR={f:PR},LR=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_R=Function.prototype,jR=_R.bind,MR=_R.call,zR=jR&&jR.bind(MR),HR=jR?function(e){return e&&zR(MR,e)}:function(e){return e&&function(){return MR.apply(e,arguments)}},UR=HR({}.toString),$R=HR("".slice),VR=function(e){return $R(UR(e),8,-1)},GR=OR.Object,WR=HR("".split),qR=TR((function(){return!GR("z").propertyIsEnumerable(0)}))?function(e){return"String"==VR(e)?WR(e,""):GR(e)}:GR,KR=OR.TypeError,YR=function(e){if(null==e)throw KR("Can't call method on "+e);return e},XR=function(e){return qR(YR(e))},ZR=function(e){return"function"==typeof e},JR=function(e){return"object"==typeof e?null!==e:ZR(e)},QR=function(e,t){return arguments.length<2?(n=OR[e],ZR(n)?n:void 0):OR[e]&&OR[e][t];var n},eL=HR({}.isPrototypeOf),tL=QR("navigator","userAgent")||"",nL=OR.process,rL=OR.Deno,oL=nL&&nL.versions||rL&&rL.version,iL=oL&&oL.v8;iL&&(AR=(DR=iL.split("."))[0]>0&&DR[0]<4?1:+(DR[0]+DR[1])),!AR&&tL&&(!(DR=tL.match(/Edge\/(\d+)/))||DR[1]>=74)&&(DR=tL.match(/Chrome\/(\d+)/))&&(AR=+DR[1]);var aL=AR,uL=!!Object.getOwnPropertySymbols&&!TR((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aL&&aL<41})),sL=uL&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lL=OR.Object,cL=sL?function(e){return"symbol"==typeof e}:function(e){var t=QR("Symbol");return ZR(t)&&eL(t.prototype,lL(e))},fL=OR.String,dL=function(e){try{return fL(e)}catch(e){return"Object"}},pL=OR.TypeError,hL=function(e){if(ZR(e))return e;throw pL(dL(e)+" is not a function")},vL=function(e,t){var n=e[t];return null==n?void 0:hL(n)},gL=OR.TypeError,yL=Object.defineProperty,mL=function(e,t){try{yL(OR,e,{value:t,configurable:!0,writable:!0})}catch(n){OR[e]=t}return t},bL="__core-js_shared__",EL=OR[bL]||mL(bL,{}),wL=CR((function(e){(e.exports=function(e,t){return EL[e]||(EL[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),SL=OR.Object,CL=function(e){return SL(YR(e))},DL=HR({}.hasOwnProperty),AL=Object.hasOwn||function(e,t){return DL(CL(e),t)},xL=0,OL=Math.random(),TL=HR(1..toString),kL=function(e){return"Symbol("+(void 0===e?"":e)+")_"+TL(++xL+OL,36)},NL=wL("wks"),BL=OR.Symbol,IL=BL&&BL.for,FL=sL?BL:BL&&BL.withoutSetter||kL,PL=function(e){if(!AL(NL,e)||!uL&&"string"!=typeof NL[e]){var t="Symbol."+e;uL&&AL(BL,e)?NL[e]=BL[e]:NL[e]=sL&&IL?IL(t):FL(t)}return NL[e]},RL=OR.TypeError,LL=PL("toPrimitive"),_L=function(e){var t=function(e,t){if(!JR(e)||cL(e))return e;var n,r=vL(e,LL);if(r){if(void 0===t&&(t="default"),n=BR(r,e,t),!JR(n)||cL(n))return n;throw RL("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ZR(n=e.toString)&&!JR(r=BR(n,e)))return r;if(ZR(n=e.valueOf)&&!JR(r=BR(n,e)))return r;if("string"!==t&&ZR(n=e.toString)&&!JR(r=BR(n,e)))return r;throw gL("Can't convert object to primitive value")}(e,t)}(e,"string");return cL(t)?t:t+""},jL=OR.document,ML=JR(jL)&&JR(jL.createElement),zL=function(e){return ML?jL.createElement(e):{}},HL=!kR&&!TR((function(){return 7!=Object.defineProperty(zL("div"),"a",{get:function(){return 7}}).a})),UL=Object.getOwnPropertyDescriptor,$L={f:kR?UL:function(e,t){if(e=XR(e),t=_L(t),HL)try{return UL(e,t)}catch(e){}if(AL(e,t))return LR(!BR(RR.f,e,t),e[t])}},VL=OR.String,GL=OR.TypeError,WL=function(e){if(JR(e))return e;throw GL(VL(e)+" is not an object")},qL=OR.TypeError,KL=Object.defineProperty,YL={f:kR?KL:function(e,t,n){if(WL(e),t=_L(t),WL(n),HL)try{return KL(e,t,n)}catch(e){}if("get"in n||"set"in n)throw qL("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},XL=kR?function(e,t,n){return YL.f(e,t,LR(1,n))}:function(e,t,n){return e[t]=n,e},ZL=HR(Function.toString);ZR(EL.inspectSource)||(EL.inspectSource=function(e){return ZL(e)});var JL,QL,e_,t_=EL.inspectSource,n_=OR.WeakMap,r_=ZR(n_)&&/native code/.test(t_(n_)),o_=wL("keys"),i_=function(e){return o_[e]||(o_[e]=kL(e))},a_={},u_="Object already initialized",s_=OR.TypeError,l_=OR.WeakMap;if(r_||EL.state){var c_=EL.state||(EL.state=new l_),f_=HR(c_.get),d_=HR(c_.has),p_=HR(c_.set);JL=function(e,t){if(d_(c_,e))throw new s_(u_);return t.facade=e,p_(c_,e,t),t},QL=function(e){return f_(c_,e)||{}},e_=function(e){return d_(c_,e)}}else{var h_=i_("state");a_[h_]=!0,JL=function(e,t){if(AL(e,h_))throw new s_(u_);return t.facade=e,XL(e,h_,t),t},QL=function(e){return AL(e,h_)?e[h_]:{}},e_=function(e){return AL(e,h_)}}var v_={set:JL,get:QL,has:e_,enforce:function(e){return e_(e)?QL(e):JL(e,{})},getterFor:function(e){return function(t){var n;if(!JR(t)||(n=QL(t)).type!==e)throw s_("Incompatible receiver, "+e+" required");return n}}},g_=Function.prototype,y_=kR&&Object.getOwnPropertyDescriptor,m_=AL(g_,"name"),b_={EXISTS:m_,PROPER:m_&&"something"===function(){}.name,CONFIGURABLE:m_&&(!kR||kR&&y_(g_,"name").configurable)},E_=CR((function(e){var t=b_.CONFIGURABLE,n=v_.get,r=v_.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;ZR(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!AL(i,"name")||t&&i.name!==f)&&XL(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==OR?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:XL(e,n,i)):l?e[n]=i:mL(n,i)})(Function.prototype,"toString",(function(){return ZR(this)&&n(this).source||t_(this)}))})),w_=Math.ceil,S_=Math.floor,C_=function(e){var t=+e;return t!=t||0===t?0:(t>0?S_:w_)(t)},D_=Math.max,A_=Math.min,x_=function(e,t){var n=C_(e);return n<0?D_(n+t,0):A_(n,t)},O_=Math.min,T_=function(e){return e>0?O_(C_(e),9007199254740991):0},k_=function(e){return T_(e.length)},N_=function(e){return function(t,n,r){var o,i=XR(t),a=k_(i),u=x_(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},B_={includes:N_(!0),indexOf:N_(!1)},I_=B_.indexOf,F_=HR([].push),P_=function(e,t){var n,r=XR(e),o=0,i=[];for(n in r)!AL(a_,n)&&AL(r,n)&&F_(i,n);for(;t.length>o;)AL(r,n=t[o++])&&(~I_(i,n)||F_(i,n));return i},R_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],L_=R_.concat("length","prototype"),__={f:Object.getOwnPropertyNames||function(e){return P_(e,L_)}},j_={f:Object.getOwnPropertySymbols},M_=HR([].concat),z_=QR("Reflect","ownKeys")||function(e){var t=__.f(WL(e)),n=j_.f;return n?M_(t,n(e)):t},H_=function(e,t){for(var n=z_(t),r=YL.f,o=$L.f,i=0;i<n.length;i++){var a=n[i];AL(e,a)||r(e,a,o(t,a))}},U_=/#|\.prototype\./,$_=function(e,t){var n=G_[V_(e)];return n==q_||n!=W_&&(ZR(t)?TR(t):!!t)},V_=$_.normalize=function(e){return String(e).replace(U_,".").toLowerCase()},G_=$_.data={},W_=$_.NATIVE="N",q_=$_.POLYFILL="P",K_=$_,Y_=$L.f,X_=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?OR:l?OR[u]||mL(u,{}):(OR[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Y_(n,r))&&a.value:n[r],!K_(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;H_(i,o)}(e.sham||o&&o.sham)&&XL(i,"sham",!0),E_(n,r,i,e)}},Z_=HR(HR.bind),J_=Array.isArray||function(e){return"Array"==VR(e)},Q_={};Q_[PL("toStringTag")]="z";var ej="[object z]"===String(Q_),tj=PL("toStringTag"),nj=OR.Object,rj="Arguments"==VR(function(){return arguments}()),oj=ej?VR:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=nj(e),tj))?n:rj?VR(t):"Object"==(r=VR(t))&&ZR(t.callee)?"Arguments":r},ij=function(){},aj=[],uj=QR("Reflect","construct"),sj=/^\s*(?:class|function)\b/,lj=HR(sj.exec),cj=!sj.exec(ij),fj=function(e){if(!ZR(e))return!1;try{return uj(ij,aj,e),!0}catch(e){return!1}},dj=!uj||TR((function(){var e;return fj(fj.call)||!fj(Object)||!fj((function(){e=!0}))||e}))?function(e){if(!ZR(e))return!1;switch(oj(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cj||!!lj(sj,t_(e))}:fj,pj=PL("species"),hj=OR.Array,vj=function(e,t){return new(function(e){var t;return J_(e)&&(t=e.constructor,(dj(t)&&(t===hj||J_(t.prototype))||JR(t)&&null===(t=t[pj]))&&(t=void 0)),void 0===t?hj:t}(e))(0===t?0:t)},gj=HR([].push),yj=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=CL(s),v=qR(h),g=function(e,t){return hL(e),void 0===t?e:Z_?Z_(e,t):function(){return e.apply(t,arguments)}}(l,c),y=k_(v),m=0,b=f||vj,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:gj(E,d)}else switch(e){case 4:return!1;case 7:gj(E,d)}return i?-1:r||o?o:E}},mj={forEach:yj(0),map:yj(1),filter:yj(2),some:yj(3),every:yj(4),find:yj(5),findIndex:yj(6),filterReject:yj(7)},bj=PL("species"),Ej=function(e){return aL>=51||!TR((function(){var t=[];return(t.constructor={})[bj]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},wj=mj.filter;X_({target:"Array",proto:!0,forced:!Ej("filter")},{filter:function(e){return wj(this,e,arguments.length>1?arguments[1]:void 0)}});var Sj=ej?{}.toString:function(){return"[object "+oj(this)+"]"};ej||E_(Object.prototype,"toString",Sj,{unsafe:!0});var Cj,Dj=OR.String,Aj=function(e){if("Symbol"===oj(e))throw TypeError("Cannot convert a Symbol value to a string");return Dj(e)},xj=function(){var e=WL(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Oj=OR.RegExp,Tj=TR((function(){var e=Oj("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),kj=Tj||TR((function(){return!Oj("a","y").sticky})),Nj={BROKEN_CARET:Tj||TR((function(){var e=Oj("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:kj,UNSUPPORTED_Y:Tj},Bj=Object.keys||function(e){return P_(e,R_)},Ij=kR?Object.defineProperties:function(e,t){WL(e);for(var n,r=XR(t),o=Bj(t),i=o.length,a=0;i>a;)YL.f(e,n=o[a++],r[n]);return e},Fj=QR("document","documentElement"),Pj="prototype",Rj="script",Lj=i_("IE_PROTO"),_j=function(){},jj=function(e){return"<"+Rj+">"+e+"</"+Rj+">"},Mj=function(e){e.write(jj("")),e.close();var t=e.parentWindow.Object;return e=null,t},zj=function(){try{Cj=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;zj="undefined"!=typeof document?document.domain&&Cj?Mj(Cj):(t=zL("iframe"),n="java"+Rj+":",t.style.display="none",Fj.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(jj("document.F=Object")),e.close(),e.F):Mj(Cj);for(var r=R_.length;r--;)delete zj[Pj][R_[r]];return zj()};a_[Lj]=!0;var Hj,Uj,$j=Object.create||function(e,t){var n;return null!==e?(_j[Pj]=WL(e),n=new _j,_j[Pj]=null,n[Lj]=e):n=zj(),void 0===t?n:Ij(n,t)},Vj=OR.RegExp,Gj=TR((function(){var e=Vj(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Wj=OR.RegExp,qj=TR((function(){var e=Wj("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Kj=v_.get,Yj=wL("native-string-replace",String.prototype.replace),Xj=RegExp.prototype.exec,Zj=Xj,Jj=HR("".charAt),Qj=HR("".indexOf),eM=HR("".replace),tM=HR("".slice),nM=(Uj=/b*/g,BR(Xj,Hj=/a/,"a"),BR(Xj,Uj,"a"),0!==Hj.lastIndex||0!==Uj.lastIndex),rM=Nj.BROKEN_CARET,oM=void 0!==/()??/.exec("")[1];(nM||oM||rM||Gj||qj)&&(Zj=function(e){var t,n,r,o,i,a,u,s=this,l=Kj(s),c=Aj(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=BR(Zj,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=rM&&s.sticky,h=BR(xj,s),v=s.source,g=0,y=c;if(p&&(h=eM(h,"y",""),-1===Qj(h,"g")&&(h+="g"),y=tM(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Jj(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),oM&&(n=new RegExp("^"+v+"$(?!\\s)",h)),nM&&(r=s.lastIndex),o=BR(Xj,p?n:s,y),p?o?(o.input=tM(o.input,g),o[0]=tM(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:nM&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),oM&&o&&o.length>1&&BR(Yj,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=$j(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var iM=Zj;X_({target:"RegExp",proto:!0,forced:/./.exec!==iM},{exec:iM});var aM=Function.prototype,uM=aM.apply,sM=aM.bind,lM=aM.call,cM="object"==typeof Reflect&&Reflect.apply||(sM?lM.bind(uM):function(){return lM.apply(uM,arguments)}),fM=PL("species"),dM=RegExp.prototype,pM=function(e,t,n,r){var o=PL(e),i=!TR((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!TR((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[fM]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=HR(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=HR(e),s=t.exec;return s===iM||s===dM.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));E_(String.prototype,e,s[0]),E_(dM,o,s[1])}r&&XL(dM[o],"sham",!0)},hM=HR("".charAt),vM=HR("".charCodeAt),gM=HR("".slice),yM=function(e){return function(t,n){var r,o,i=Aj(YR(t)),a=C_(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=vM(i,a))<55296||r>56319||a+1===u||(o=vM(i,a+1))<56320||o>57343?e?hM(i,a):r:e?gM(i,a,a+2):o-56320+(r-55296<<10)+65536}},mM=(yM(!1),yM(!0)),bM=function(e,t,n){return t+(n?mM(e,t).length:1)},EM=Math.floor,wM=HR("".charAt),SM=HR("".replace),CM=HR("".slice),DM=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,AM=/\$([$&'`]|\d{1,2})/g,xM=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=AM;return void 0!==o&&(o=CL(o),s=DM),SM(i,s,(function(i,s){var l;switch(wM(s,0)){case"$":return"$";case"&":return e;case"`":return CM(t,0,n);case"'":return CM(t,a);case"<":l=o[CM(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=EM(c/10);return 0===f?i:f<=u?void 0===r[f-1]?wM(s,1):r[f-1]+wM(s,1):i}l=r[c-1]}return void 0===l?"":l}))},OM=OR.TypeError,TM=function(e,t){var n=e.exec;if(ZR(n)){var r=BR(n,e,t);return null!==r&&WL(r),r}if("RegExp"===VR(e))return BR(iM,e,t);throw OM("RegExp#exec called on incompatible receiver")},kM=PL("replace"),NM=Math.max,BM=Math.min,IM=HR([].concat),FM=HR([].push),PM=HR("".indexOf),RM=HR("".slice),LM="$0"==="a".replace(/./,"$0"),_M=!!/./[kM]&&""===/./[kM]("a","$0");pM("replace",(function(e,t,n){var r=_M?"$":"$0";return[function(e,n){var r=YR(this),o=null==e?void 0:vL(e,kM);return o?BR(o,e,r,n):BR(t,Aj(r),e,n)},function(e,o){var i=WL(this),a=Aj(e);if("string"==typeof o&&-1===PM(o,r)&&-1===PM(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=ZR(o);s||(o=Aj(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=TM(i,a);if(null===d)break;if(FM(f,d),!l)break;""===Aj(d[0])&&(i.lastIndex=bM(a,T_(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=Aj((d=f[g])[0]),m=NM(BM(C_(d.index),a.length),0),b=[],E=1;E<d.length;E++)FM(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=IM([y],b,m,a);void 0!==w&&FM(S,w);var C=Aj(cM(o,void 0,S))}else C=xM(y,a,m,b,w,o);m>=v&&(h+=RM(a,v,m)+C,v=m+y.length)}return h+RM(a,v)}]}),!!TR((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!LM||_M);var jM=PL("unscopables"),MM=Array.prototype;null==MM[jM]&&YL.f(MM,jM,{configurable:!0,value:$j(null)});var zM=function(e){MM[jM][e]=!0},HM=mj.find,UM="find",$M=!0;UM in[]&&Array(1)[UM]((function(){$M=!1})),X_({target:"Array",proto:!0,forced:$M},{find:function(e){return HM(this,e,arguments.length>1?arguments[1]:void 0)}}),zM(UM);var VM=PL("match"),GM=function(e){var t;return JR(e)&&(void 0!==(t=e[VM])?!!t:"RegExp"==VR(e))},WM=OR.TypeError,qM=PL("species"),KM=function(e,t,n){var r=_L(t);r in e?YL.f(e,r,LR(0,n)):e[r]=n},YM=OR.Array,XM=Math.max,ZM=function(e,t,n){for(var r=k_(e),o=x_(t,r),i=x_(void 0===n?r:n,r),a=YM(XM(i-o,0)),u=0;o<i;o++,u++)KM(a,u,e[o]);return a.length=u,a},JM=Nj.UNSUPPORTED_Y,QM=4294967295,ez=Math.min,tz=[].push,nz=HR(/./.exec),rz=HR(tz),oz=HR("".slice);pM("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=Aj(YR(this)),o=void 0===n?QM:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!GM(e))return BR(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=BR(iM,f,r))&&!((a=f.lastIndex)>c&&(rz(s,oz(r,c,i.index)),i.length>1&&i.index<r.length&&cM(tz,s,ZM(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&nz(f,"")||rz(s,""):rz(s,oz(r,c)),s.length>o?ZM(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:BR(t,this,e,n)}:t,[function(t,n){var o=YR(this),i=null==t?void 0:vL(t,e);return i?BR(i,t,o,n):BR(r,Aj(o),t,n)},function(e,o){var i=WL(this),a=Aj(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=WL(e).constructor;return void 0===r||null==(n=WL(r)[qM])?t:function(e){if(dj(e))return e;throw WM(dL(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(JM?"g":"y"),f=new s(JM?"^(?:"+i.source+")":i,c),d=void 0===o?QM:o>>>0;if(0===d)return[];if(0===a.length)return null===TM(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=JM?0:h;var g,y=TM(f,JM?oz(a,h):a);if(null===y||(g=ez(T_(f.lastIndex+(JM?h:0)),a.length))===p)h=bM(a,h,l);else{if(rz(v,oz(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(rz(v,y[m]),v.length===d)return v;h=p=g}}return rz(v,oz(a,p)),v}]}),!!TR((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),JM);var iz,az="\t\n\v\f\r \u2028\u2029\ufeff",uz=HR("".replace),sz="["+az+"]",lz=RegExp("^"+sz+sz+"*"),cz=RegExp(sz+sz+"*$"),fz=function(e){return function(t){var n=Aj(YR(t));return 1&e&&(n=uz(n,lz,"")),2&e&&(n=uz(n,cz,"")),n}},dz={start:fz(1),end:fz(2),trim:fz(3)},pz=b_.PROPER,hz=dz.trim;function vz(e){return 0===hh("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function gz(e){return 0===e.length?"":e[0].outerHTML}function yz(e){return e.length?e[0].tagName.toLowerCase():""}function mz(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}X_({target:"String",proto:!0,forced:(iz="trim",TR((function(){return!!az[iz]()||"
"!=="
"[iz]()||pz&&az[iz].name!==iz})))},{trim:function(){return hz(this)}}),X_({global:!0},{globalThis:OR}),Nh&&(hh.fn.css=Nh),Lh&&(hh.fn.append=Lh),_h&&(hh.fn.prepend=_h),vh&&(hh.fn.addClass=vh),gh&&(hh.fn.removeClass=gh),yh&&(hh.fn.hasClass=yh),Ch&&(hh.fn.on=Ch),Dh&&(hh.fn.off=Dh),qh&&(hh.fn.focus=qh),mh&&(hh.fn.attr=mh),bh&&(hh.fn.removeAttr=bh),Th&&(hh.fn.hide=Th),kh&&(hh.fn.show=kh),Mh&&(hh.fn.parents=Mh),wh&&(hh.fn.dataset=wh),Sh&&(hh.fn.val=Sh),Ph&&(hh.fn.text=Ph),Fh&&(hh.fn.html=Fh),Hh&&(hh.fn.children=Hh),Uh&&(hh.fn.remove=Uh),zh&&(hh.fn.find=zh),Ah&&(hh.fn.width=Ah),xh&&(hh.fn.height=xh),Ih&&(hh.fn.filter=Ih),$h&&(hh.fn.empty=$h);var bz={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hh(e);return 0===(t=t.filter((function(e){return!!gd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},Ez=function(e,t){return Ez=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ez(e,t)};function wz(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ez(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Sz=function(){return Sz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sz.apply(this,arguments)};function Cz(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function Dz(e,t){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)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function Az(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xz(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Oz(e){var t=xz(Gf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Mf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Zf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!gd.isText(o[0])&&(Pd.setNodes(e,{type:"paragraph"}),!0)}"function"==typeof SuppressedError&&SuppressedError;var Tz={renderElems:[wR],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[bz],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){Oz(r)||t(e)},r.deleteForward=function(e){Oz(r)||n(e)},r}},kz=/"/g,Nz=HR("".replace),Bz=function(e,t,n,r){var o=Aj(YR(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+Nz(Aj(r),kz,""")+'"'),i+">"+o+"</"+t+">"},Iz=function(e){return TR((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function Fz(e,t){var n=t,r=e,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 Pz(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}X_({target:"String",proto:!0,forced:Iz("bold")},{bold:function(){return Bz(this,"b","","")}}),X_({target:"String",proto:!0,forced:Iz("italics")},{italics:function(){return Bz(this,"i","","")}}),X_({target:"String",proto:!0,forced:Iz("sub")},{sub:function(){return Bz(this,"sub","","")}}),X_({target:"String",proto:!0,forced:Iz("sup")},{sup:function(){return Bz(this,"sup","","")}});var Rz={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},Lz=zL("span").classList,_z=Lz&&Lz.constructor&&Lz.constructor.prototype,jz=_z===Object.prototype?void 0:_z,Mz=function(e,t){var n=[][e];return!!n&&TR((function(){n.call(null,t||function(){throw 1},1)}))},zz=mj.forEach,Hz=Mz("forEach")?[].forEach:function(e){return zz(this,e,arguments.length>1?arguments[1]:void 0)},Uz=function(e){if(e&&e.forEach!==Hz)try{XL(e,"forEach",Hz)}catch(t){e.forEach=Hz}};for(var $z in Rz)Rz[$z]&&Uz(OR[$z]&&OR[$z].prototype);function Vz(e,t){return null==e.selection||!!xz(Gf.nodes(e,{match:function(t){return"pre"===XN.getNodeType(t)||!!Gf.isVoid(e,t)},universal:!0}),1)[0]}function Gz(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Gf.removeMark(e,t)}))}Uz(jz),X_({target:"Object",stat:!0,forced:TR((function(){Bj(1)}))},{keys:function(e){return Bj(CL(e))}});var Wz=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Gf.marks(e);return n?n[t]:!!xz(Gf.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return Vz(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),qz='<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>',Kz='<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>',Yz='<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>',Xz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=eR("textStyle.bold"),t.iconSvg='<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>',t.hotkey="mod+b",t}return wz(t,e),t}(Wz),Zz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=eR("textStyle.code"),t.iconSvg='<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>',t.hotkey="mod+e",t}return wz(t,e),t}(Wz),Jz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=eR("textStyle.italic"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',t.hotkey="mod+i",t}return wz(t,e),t}(Wz),Qz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=eR("textStyle.through"),t.iconSvg='<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>',t.hotkey="mod+shift+x",t}return wz(t,e),t}(Wz),eH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=eR("textStyle.underline"),t.iconSvg='<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>',t.hotkey="mod+u",t}return wz(t,e),t}(Wz),tH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=eR("textStyle.sub"),t.iconSvg='<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>',t.hotkey="",t}return wz(t,e),t}(Wz),nH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=eR("textStyle.sup"),t.iconSvg='<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>',t.hotkey="",t}return wz(t,e),t}(Wz),rH=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return Vz(e)},e.prototype.exec=function(e,t){var n,r,o=Gf.nodes(e,{match:function(e){return gd.isText(e)},universal:!0});try{for(var i=Az(o),a=i.next();!a.done;a=i.next())Gz(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),oH={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=gg("strong",null,c)),a&&(c=gg("code",null,c)),o&&(c=gg("em",null,c)),i&&(c=gg("u",null,c)),u&&(c=gg("s",null,c)),s&&(c=gg("sub",null,c)),l&&(c=gg("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Xz}},{key:"underline",factory:function(){return new eH}},{key:"italic",factory:function(){return new Jz}},{key:"through",factory:function(){return new Qz}},{key:"code",factory:function(){return new Zz}},{key:"sub",factory:function(){return new tH}},{key:"sup",factory:function(){return new nH}},{key:"clearStyle",factory:function(){return new rH}}],styleToHtml:function(e,t){if(!gd.isText(e))return t;if(vz(t))return Fz(e,t);var n=hh(t);if("br"===yz(n))return Fz(e,"<br>");var r=n.html();return r=Fz(e,r),n.html(r),gz(n)},parseStyleHtml:function(e,t,n){var r=hh(e);if(!gd.isText(t))return t;var o=t;return Pz(r,"b,strong")&&(o.bold=!0),Pz(r,"i,em")&&(o.italic=!0),Pz(r,"u")&&(o.underline=!0),Pz(r,"s,strike")&&(o.through=!0),Pz(r,"sub")&&(o.sub=!0),Pz(r,"sup")&&(o.sup=!0),Pz(r,"code")&&(o.code=!0),o}};function iH(e){return function(t,n,r){return gg("h"+e,null,n)}}var aH={type:"header1",renderElem:iH(1)},uH={type:"header2",renderElem:iH(2)},sH={type:"header3",renderElem:iH(3)},lH={type:"header4",renderElem:iH(4)},cH={type:"header5",renderElem:iH(5)},fH=b_.PROPER,dH="toString",pH=RegExp.prototype,hH=pH[dH],vH=HR(xj),gH=TR((function(){return"/a/b"!=hH.call({source:"a",flags:"b"})})),yH=fH&&hH.name!=dH;(gH||yH)&&E_(RegExp.prototype,dH,(function(){var e=WL(this),t=Aj(e.source),n=e.flags;return"/"+t+"/"+Aj(void 0===n&&eL(pH,e)&&!("flags"in pH)?vH(e):n)}),{unsafe:!0});var mH,bH=OR.TypeError,EH=function(e){if(GM(e))throw bH("The method doesn't accept regular expressions");return e},wH=PL("match"),SH=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[wH]=!1,"/./"[e](t)}catch(e){}}return!1},CH=$L.f,DH=HR("".startsWith),AH=HR("".slice),xH=Math.min,OH=SH("startsWith");function TH(e){var t=xz(Gf.nodes(e,{match:function(e){return XN.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=xz(n,1)[0];return XN.getNodeType(r)}function kH(e){return null==e.selection||!xz(Gf.nodes(e,{match:function(e){var t=XN.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function NH(e,t){t&&Pd.setNodes(e,{type:t})}X_({target:"String",proto:!0,forced:!(!OH&&(mH=CH(String.prototype,"startsWith"),mH&&!mH.writable)||OH)},{startsWith:function(e){var t=Aj(YR(this));EH(e);var n=T_(xH(arguments.length>1?arguments[1]:void 0,t.length)),r=Aj(e);return DH?DH(t,r,n):AH(t,n,n+r.length)===r}});var BH=function(){function e(){this.title=eR("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 e.prototype.getOptions=function(e){var t=[{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:eR("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return TH(e)},e.prototype.isDisabled=function(e){return kH(e)},e.prototype.exec=function(e,t){NH(e,t.toString())},e}(),IH=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return TH(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return kH(e)},e.prototype.exec=function(e,t){var n=this.type;NH(e,t===n?"paragraph":n)},e}(),FH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return wz(t,e),t}(IH),PH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return wz(t,e),t}(IH),RH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return wz(t,e),t}(IH),LH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return wz(t,e),t}(IH),_H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return wz(t,e),t}(IH),jH={key:"headerSelect",factory:function(){return new BH}},MH={key:"header1",factory:function(){return new FH}},zH={key:"header2",factory:function(){return new PH}},HH={key:"header3",factory:function(){return new RH}},UH={key:"header4",factory:function(){return new LH}},$H={key:"header5",factory:function(){return new _H}};function VH(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function GH(e){return function(t,n,r){var o=hh(t);return 0===(n=n.filter((function(e){return!!gd.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var WH={renderElems:[aH,uH,sH,lH,cH],elemsToHtml:[{type:"header1",elemToHtml:VH(1)},{type:"header2",elemToHtml:VH(2)},{type:"header3",elemToHtml:VH(3)},{type:"header4",elemToHtml:VH(4)},{type:"header5",elemToHtml:VH(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:GH(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:GH(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:GH(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:GH(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:GH(5)}],menus:[jH,MH,zH,HH,UH,$H],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=xz(Gf.nodes(n,{match:function(e){return XN.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&XN.isSelectionAtLineEnd(e,r[1])?Pd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},qH=Object.assign,KH=Object.defineProperty,YH=HR([].concat),XH=!qH||TR((function(){if(kR&&1!==qH({b:1},qH(KH({},"a",{enumerable:!0,get:function(){KH(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=qH({},e)[n]||Bj(qH({},t)).join("")!=r}))?function(e,t){for(var n=CL(e),r=arguments.length,o=1,i=j_.f,a=RR.f;r>o;)for(var u,s=qR(arguments[o++]),l=i?YH(Bj(s),i(s)):Bj(s),c=l.length,f=0;c>f;)u=l[f++],kR&&!BR(a,s,u)||(n[u]=s[u]);return n}:qH;function ZH(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}X_({target:"Object",stat:!0,forced:Object.assign!==XH},{assign:XH});var JH={selector:"font",preParseHtml:function(e){var t=hh(e);if("font"!==yz(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},QH=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=Gf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!xz(Gf.nodes(e,{match:function(t){return"pre"===XN.getNodeType(t)||!!Gf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=hh('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=hh(r).attr("data-value");"0"===o?Gf.removeMark(e,t):Gf.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=hh('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=hh('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=eR("color.default")),"bgColor"===t&&(a=eR("color.clear"));var u=hh('\n <li data-value="0" class="clear">\n <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>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),eU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=eR("color.color"),t.iconSvg='<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>',t.mark="color",t}return wz(t,e),t}(QH),tU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=eR("color.bgColor"),t.iconSvg='<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>',t.mark="bgColor",t}return wz(t,e),t}(QH),nU=["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)"],rU={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&ZH(i,{color:r}),o&&ZH(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!gd.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((vz(t)||"span"!==yz(n=hh(t)))&&(n=hh("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),gz(n)):t},preParseHtml:[JH],parseStyleHtml:function(e,t,n){var r=hh(e);if(!gd.isText(t))return t;var o=t,i=mz(r,"color");i&&(o.color=i);var a=mz(r,"background-color");return a||(a=mz(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new eU},config:{colors:nU}},{key:"bgColor",factory:function(){return new tU},config:{colors:nU}}]},oU=/^(?:\w+:)?\/\/(\S+)$/,iU=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,aU=/^[^\s\.]+\.\S{2,}$/,uU=B_.includes;X_({target:"Array",proto:!0},{includes:function(e){return uU(this,e,arguments.length>1?arguments[1]:void 0)}}),zM("includes");var sU=HR([].slice),lU=Ej("slice"),cU=PL("species"),fU=OR.Array,dU=Math.max;function pU(e){return void 0===e&&(e="r"),e+"-"+yv()}function hU(e){return e.replace(/</g,"<").replace(/>/g,">")}function vU(e,t,n,r){return Cz(this,void 0,void 0,(function(){var o,i;return Dz(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function gU(e,t,n){return Cz(this,void 0,void 0,(function(){var r;return Dz(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function yU(e){return null==e.selection||!!XN.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function mU(e,t){return{type:"link",url:hU(e),children:t?[{text:t}]:[]}}function bU(e,t,n){return Cz(this,void 0,void 0,(function(){var r,o,i,a,u;return Dz(this,(function(s){switch(s.label){case 0:return n?(t||(t=n),e.restoreSelection(),yU(e)?[2]:[4,vU("insertLink",e,t,n)]):[2];case 1:return s.sent()?[4,gU("insertLink",e,n)]:[2];case 2:if(r=s.sent(),null==(o=e.selection))return[2];if(ld.isCollapsed(o)){if((a=XN.getLeftLengthOfMaxLength(e))<=0)return[2];e.insertText(" "),a<t.length+1&&(t=t.slice(0,a-1)),u=mU(r,t),Pd.insertNodes(e,u),e.insertFragment([{text:" "}])}else if((i=Gf.string(e,o))!==t){if((a=XN.getLeftLengthOfMaxLength(e))<=0)return[2];a<i.length-t.length&&(t=t.slice(0,a)),e.deleteFragment(),u=mU(r,t),Pd.insertNodes(e,u)}else u=mU(r),Pd.wrapNodes(e,u,{split:!0}),Pd.collapse(e,{edge:"end"});return[2]}}))}))}X_({target:"Array",proto:!0,forced:!lU},{slice:function(e,t){var n,r,o,i=XR(this),a=k_(i),u=x_(e,a),s=x_(void 0===t?a:t,a);if(J_(i)&&(n=i.constructor,(dj(n)&&(n===fU||J_(n.prototype))||JR(n)&&null===(n=n[cU]))&&(n=void 0),n===fU||void 0===n))return sU(i,u,s);for(r=new(void 0===n?fU:n)(dU(s-u,0)),o=0;u<s;u++,o++)u in i&&KM(r,o,i[u]);return r.length=o,r}});var EU={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return gg("a",{href:o,target:void 0===i?"_blank":i},t)}},wU={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hh(e);return 0===(t=t.filter((function(e){return!!gd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function SU(){return pU("w-e-insert-link")}var CU=function(){function e(){this.title=eR("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=SU(),this.urlInputId=SU(),this.buttonId=SU()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return yU(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=xz(_F(eR("link.text"),r),2),u=a[0],s=hh(a[1]),l=xz(_F(eR("link.url"),o),2),c=l[0],f=hh(l[1]),d=xz(MF(i,eR("common.ok")),1)[0];if(null==this.$content){var p=hh("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();bU(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||ld.isCollapsed(t))s.val("");else{var v=Gf.string(e,t);s.val(v)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function DU(){return pU("w-e-update-link")}var AU=function(){function e(){this.title=eR("link.edit"),this.iconSvg=qz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=DU(),this.buttonId=DU()}return e.prototype.getSelectedLinkElem=function(e){var t=XN.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return XN.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=xz(_F(eR("link.url"),t),2),o=r[0],i=hh(r[1]),a=xz(MF(n,eR("common.ok")),1)[0];if(null==this.$content){var u=hh("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=XN.getSelectedNodeByType(e,"link"),o=r?Zf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){Cz(this,void 0,void 0,(function(){var r,o;return Dz(this,(function(i){switch(i.label){case 0:return n?[4,vU("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,gU("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:hU(r)},Pd.setNodes(e,o,{match:function(e){return XN.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),xU=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==XN.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Pd.unwrapNodes(e,{match:function(e){return XN.checkNodeType(e,"link")}})},e}(),OU=function(){function e(){this.title=eR("link.view"),this.iconSvg=Kz,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=XN.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),TU={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},kU={renderElems:[EU],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[wU],menus:[{key:"insertLink",factory:function(){return new CU},config:TU},{key:"editLink",factory:function(){return new AU},config:TU},{key:"unLink",factory:function(){return new xU}},{key:"viewLink",factory:function(){return new OU}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(oU);if(!t)return!1;var n=t[1];return!(!n||!iU.test(n)&&!aU.test(n))}(t)){if(/<img[^>]+>/.test(e.getData("text/html")))n(e);else if(!yU(o)){var r=o.selection;if(null!=r){var i=Gf.string(o,r);bU(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=xz(e,2),n=t[0],i=t[1];return"link"!==XN.getNodeType(n)?r([n,i]):""===Zf.string(n)?Pd.removeNodes(o,{at:i}):r([n,i])},o}},NU=HR(1..valueOf),BU=OR.RangeError,IU=OR.RangeError,FU=OR.String,PU=Math.floor,RU=HR((function(e){var t=Aj(YR(this)),n="",r=C_(e);if(r<0||r==1/0)throw BU("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),LU=HR("".slice),_U=HR(1..toFixed),jU=function(e,t,n){return 0===t?n:t%2==1?jU(e,t-1,n*e):jU(e*e,t/2,n)},MU=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=PU(o/1e7)},zU=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=PU(r/t),r=r%t*1e7},HU=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=FU(e[t]);n=""===n?r:n+RU("0",7-r.length)+r}return n};function UU(e,t){return"w-e-image-container-"+XN.findKey(e,t).id}X_({target:"Number",proto:!0,forced:TR((function(){return"0.000"!==_U(8e-5,3)||"1"!==_U(.9,0)||"1.25"!==_U(1.255,2)||"1000000000000000128"!==_U(0xde0b6b3a7640080,0)}))||!TR((function(){_U({})}))},{toFixed:function(e){var t,n,r,o,i=NU(this),a=C_(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw IU("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return FU(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*jU(2,69,1))-69)<0?i*jU(2,-t,1):i/jU(2,t,1),n*=4503599627370496,(t=52-t)>0){for(MU(u,0,n),r=a;r>=7;)MU(u,1e7,0),r-=7;for(MU(u,jU(10,r,1),0),r=t-1;r>=23;)zU(u,1<<23),r-=23;zU(u,1<<r),MU(u,1,1),zU(u,2),l=HU(u)}else MU(u,0,n),MU(u,1<<-t,0),l=HU(u)+RU("0",a);return a>0?s+((o=l.length)<=a?"0."+RU("0",a-o)+l:LU(l,0,o-a)+"."+LU(l,o-a)):s+l}});var $U={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,v=XN.isNodeSelected(n,e),g={maxWidth:"100%"};d&&(g.width="100%"),h&&(g.height="100%");var y=gg("img",{style:g,src:o,alt:a,"data-href":s}),m=n.isDisabled();return v&&!m?function(e,t,n,r){var o=hh("body"),i=UU(e,t),a=r.width;r.height;var u=0,s=0,l=0,c=0,f=!1,d=null;function p(t,n){d=function(){var e=hh("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),u=t,c=n;var r=d.find("img");if(0===r.length)throw new Error("Cannot find image elem");s=r.width(),l=r.height(),o.on("mousemove",h),o.on("mouseup",v);var a=XN.getHoverbar(e);a&&a.hideAndClean()}var h=Lv((function(e){e.preventDefault();var t=e.clientX,n=s+(f?u-t:t-u);n>c-6||null!=d&&(n<=15||l*(n/s)<=15||d.css("width",n+"px"))}),100);function v(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i={style:Sz(Sz({},t.style),{width:r+"px"})};Pd.setNodes(e,i,{at:XN.findPath(e,t)}),o.off("mouseup",v)}}var g={};return a&&(g.width=a),gg("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(n){var r=hh(n.target);if(r.hasClass("w-e-image-dragger")){n.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(f=!0);var o=XN.getParentNode(e,t);if(null!=o){var i=XN.toDOMNode(e,o),a=i.getBoundingClientRect(),u=window.getComputedStyle(i),s=parseFloat(u.paddingLeft),l=parseFloat(u.paddingRight),c=parseFloat(u.borderLeftWidth),d=parseFloat(u.borderRightWidth);p(n.clientX,a.width-s-l-c-d)}}}}},n,gg("div",{className:"w-e-image-dragger left-top"}),gg("div",{className:"w-e-image-dragger right-top"}),gg("div",{className:"w-e-image-dragger left-bottom"}),gg("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i={};return o&&(i.width=o),gg("div",{id:UU(e,t),style:i,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},VU={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hh(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:mz(r,"width"),height:mz(r,"height")},width:r.attr("width")||"",height:r.attr("height")||"",children:[{text:""}]}}};function GU(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),Cz(this,void 0,void 0,(function(){var i,a;return Dz(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function WU(e,t,n){return Cz(this,void 0,void 0,(function(){var r;return Dz(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function qU(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),Cz(this,void 0,void 0,(function(){var o,i,a;return Dz(this,(function(u){switch(u.label){case 0:return[4,GU("insertImage",e,t,n,r)];case 1:return u.sent()?[4,WU("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:hU(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),XN.getSelectedNodeByType(e,"image")&&e.move(1),KU(e)||(Pd.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function KU(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||!!xz(Gf.nodes(e,{match:function(t){var n=XN.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Gf.isVoid(e,t)},universal:!0}),1)[0]}function YU(){return pU("w-e-insert-image")}var XU=function(){function e(){this.title=eR("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=YU(),this.altInputId=YU(),this.hrefInputId=YU(),this.buttonId=YU()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return KU(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=xz(_F(eR("image.src"),r),2),s=u[0],l=hh(u[1]),c=xz(_F(eR("image.desc"),o),2),f=c[0],d=hh(c[1]),p=xz(_F(eR("image.link"),i),2),h=p[0],v=hh(p[1]),g=xz(MF(a,eR("common.ok")),1)[0];if(null==this.$content){var y=hh("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(g),l.val(""),d.val(""),v.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||qU(e,t,n,r))},e}(),ZU=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==XN.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Pd.removeNodes(e,{match:function(e){return XN.checkNodeType(e,"image")}})},e}();function JU(){return pU("w-e-edit-image")}var QU=function(){function e(){this.title=eR("image.edit"),this.iconSvg=qz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=JU(),this.altInputId=JU(),this.hrefInputId=JU(),this.buttonId=JU()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return XN.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||null==XN.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=xz(_F(eR("image.src"),r),2),l=s[0],c=hh(s[1]),f=xz(_F(eR("image.desc"),o),2),d=f[0],p=hh(f[1]),h=xz(_F(eR("image.link"),i),2),v=h[0],g=hh(h[1]),y=xz(MF(a,eR("common.ok")),1)[0];if(null==this.$content){var m=hh("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(v),b.append(y);var E=u,w=E.src,S=E.alt,C=void 0===S?"":S,D=E.href,A=void 0===D?"":D;return c.val(w),p.val(C),g.val(A),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),Cz(this,void 0,void 0,(function(){var i,a,u,s,l,c;return Dz(this,(function(f){switch(f.label){case 0:return[4,GU("editImage",e,t,n,r)];case 1:return f.sent()?[4,WU("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=XN.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:Sz(Sz({},void 0===u?{}:u),o)},Pd.setNodes(e,s,{match:function(e){return XN.checkNodeType(e,"image")}}),l=XN.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),e$=function(){function e(){this.title=eR("image.viewLink"),this.iconSvg=Kz,this.tag="button"}return e.prototype.getValue=function(e){var t=XN.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),t$=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return XN.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=XN.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:Sz(Sz({},void 0===o?{}:o),{width:this.value,height:""})};Pd.setNodes(e,i,{match:function(e){return XN.checkNodeType(e,"image")}})}}},e}(),n$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return wz(t,e),t}(t$),r$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return wz(t,e),t}(t$),o$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return wz(t,e),t}(t$);function i$(){return pU("w-e-insert-image")}var a$=function(){function e(){this.title=eR("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=i$(),this.heightInputId=i$(),this.buttonId=i$()}return e.prototype.getSelectedImageNode=function(e){return XN.getSelectedNodeByType(e,"image")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedImageNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=xz(_F(eR("image.width"),n,"auto"),2),a=i[0],u=hh(i[1]),s=xz(_F(eR("image.height"),r,"auto"),2),l=s[0],c=hh(s[1]),f=xz(MF(o,eR("image.ok")),1)[0];if(null==this.$content){var d=hh("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},s=function(e){return/^\d+(\.\d+)?px$/.test(e)},l="auto",c="auto";a(o)?l=o:u(o)?l=parseInt(o)+"px":s(o)&&(l=o),a(i)?c=i:u(i)?c=parseInt(i)+"px":s(i)&&(c=i);var f=h.style,p=void 0===f?{}:f;e.restoreSelection();var v=Sz(Sz({},p),{style:{width:l,height:c}});Pd.setNodes(e,v,{match:function(e){return XN.checkNodeType(e,"image")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedImageNode(e);if(null==h)return p[0];var v=h.style,g=void 0===v?{}:v,y=g.width,m=void 0===y?"auto":y,b=g.height,E=void 0===b?"auto":b;return u.val(m),c.val(E),setTimeout((function(){u.focus()})),p[0]},e}(),u$={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},s$={renderElems:[$U],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.width,l=void 0===s?"":s,c=n.height,f=void 0===c?"":c,d=n.style,p=void 0===d?{}:d,h=p.width,v=void 0===h?"":h,g=p.height,y=void 0===g?"":g,m="";return v&&(m+="width: "+v+";"),y&&(m+="height: "+y+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" width="'+l+'" height="'+f+'" style="'+m+'"/>'}}],parseElemsHtml:[VU],menus:[{key:"insertImage",factory:function(){return new XU},config:u$},{key:"deleteImage",factory:function(){return new ZU}},{key:"editImage",factory:function(){return new QU},config:u$},{key:"viewImageLink",factory:function(){return new e$}},{key:"imageWidth30",factory:function(){return new n$}},{key:"imageWidth50",factory:function(){return new r$}},{key:"imageWidth100",factory:function(){return new o$}},{key:"editorImageSizeMenu",factory:function(){return new a$}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},l$={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=gg("div",{style:{margin:"5px 0"}},gg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},gg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=XN.findPath(n,e),o={checked:t.target.checked};Pd.setNodes(n,o,{at:r})}}})),gg("span",null,t));return o}},c$=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!XN.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!XN.getSelectedElems(e).some((function(t){if(Gf.isVoid(e,t)&&Gf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);Pd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),f$={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=hh(e);0===(t=t.filter((function(e){return!!gd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},d$={renderElems:[l$],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=hh(e).find("li"),n=hh('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[f$],menus:[{key:"todo",factory:function(){return new c$}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&ld.isCollapsed(r)){var o=XN.getSelectedNodeByType(e,"todo");if(o&&0===Zf.string(o).length)return void Pd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},p$={type:"blockquote",renderElem:function(e,t,n){return gg("blockquote",null,t)}},h$={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hh(e);return 0===(t=t.filter((function(e){return!!gd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},v$=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!XN.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!xz(Gf.nodes(e,{match:function(e){var t=XN.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";Pd.setNodes(e,{type:n},{mode:"highest"})}},e}();function g$(e){e.deleteBackward("character"),Pd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}var y$={renderElems:[p$],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[h$],menus:[{key:"blockquote",factory:function(){return new v$}}],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=xz(Gf.nodes(e,{match:function(e){return XN.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0];if(XN.getParentNode(e,a)){var u=XN.findPath(e,a),s=Gf.end(e,u);if(id.equals(s,o.focus)){var l=Zf.string(a);if(l&&"\n"===l.slice(-1))return void g$(r)}n("\n")}else g$(r)},r}},m$=function(){function e(){this.title=eR("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 e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!xz(Gf.nodes(e,{match:function(t){return"pre"===XN.getNodeType(t)||!!Gf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=hh('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=hh(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=hh("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),b$={menus:[{key:"emotion",factory:function(){return new m$},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},E$={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},w$={selector:"font",preParseHtml:function(e){var t=hh(e);if("font"!==yz(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",E$[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},S$=HR("".indexOf);X_({target:"String",proto:!0,forced:!SH("includes")},{includes:function(e){return!!~S$(Aj(YR(this)),Aj(EH(e)),arguments.length>1?arguments[1]:void 0)}});var C$,D$,A$=function(e){return e&&e.Math==Math&&e},x$=A$("object"==typeof globalThis&&globalThis)||A$("object"==typeof window&&window)||A$("object"==typeof self&&self)||A$("object"==typeof SR&&SR)||function(){return this}()||Function("return this")(),O$=Function.prototype,T$=O$.apply,k$=O$.bind,N$=O$.call,B$="object"==typeof Reflect&&Reflect.apply||(k$?N$.bind(T$):function(){return N$.apply(T$,arguments)}),I$=Function.prototype,F$=I$.bind,P$=I$.call,R$=F$&&F$.bind(P$),L$=F$?function(e){return e&&R$(P$,e)}:function(e){return e&&function(){return P$.apply(e,arguments)}},_$=function(e){return"function"==typeof e},j$=function(e){try{return!!e()}catch(e){return!0}},M$=!j$((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),z$=Function.prototype.call,H$=z$.bind?z$.bind(z$):function(){return z$.apply(z$,arguments)},U$={}.propertyIsEnumerable,$$=Object.getOwnPropertyDescriptor,V$=$$&&!U$.call({1:2},1)?function(e){var t=$$(this,e);return!!t&&t.enumerable}:U$,G$={f:V$},W$=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},q$=L$({}.toString),K$=L$("".slice),Y$=function(e){return K$(q$(e),8,-1)},X$=x$.Object,Z$=L$("".split),J$=j$((function(){return!X$("z").propertyIsEnumerable(0)}))?function(e){return"String"==Y$(e)?Z$(e,""):X$(e)}:X$,Q$=x$.TypeError,eV=function(e){if(null==e)throw Q$("Can't call method on "+e);return e},tV=function(e){return J$(eV(e))},nV=function(e){return"object"==typeof e?null!==e:_$(e)},rV={},oV=function(e){return _$(e)?e:void 0},iV=function(e,t){return arguments.length<2?oV(rV[e])||oV(x$[e]):rV[e]&&rV[e][t]||x$[e]&&x$[e][t]},aV=L$({}.isPrototypeOf),uV=iV("navigator","userAgent")||"",sV=x$.process,lV=x$.Deno,cV=sV&&sV.versions||lV&&lV.version,fV=cV&&cV.v8;fV&&(D$=(C$=fV.split("."))[0]>0&&C$[0]<4?1:+(C$[0]+C$[1])),!D$&&uV&&(!(C$=uV.match(/Edge\/(\d+)/))||C$[1]>=74)&&(C$=uV.match(/Chrome\/(\d+)/))&&(D$=+C$[1]);var dV=D$,pV=!!Object.getOwnPropertySymbols&&!j$((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dV&&dV<41})),hV=pV&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vV=x$.Object,gV=hV?function(e){return"symbol"==typeof e}:function(e){var t=iV("Symbol");return _$(t)&&aV(t.prototype,vV(e))},yV=x$.String,mV=x$.TypeError,bV=function(e){if(_$(e))return e;throw mV(function(e){try{return yV(e)}catch(e){return"Object"}}(e)+" is not a function")},EV=x$.TypeError,wV=Object.defineProperty,SV="__core-js_shared__",CV=x$[SV]||function(e,t){try{wV(x$,e,{value:t,configurable:!0,writable:!0})}catch(n){x$[e]=t}return t}(SV,{}),DV=CR((function(e){(e.exports=function(e,t){return CV[e]||(CV[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),AV=x$.Object,xV=function(e){return AV(eV(e))},OV=L$({}.hasOwnProperty),TV=Object.hasOwn||function(e,t){return OV(xV(e),t)},kV=0,NV=Math.random(),BV=L$(1..toString),IV=function(e){return"Symbol("+(void 0===e?"":e)+")_"+BV(++kV+NV,36)},FV=DV("wks"),PV=x$.Symbol,RV=PV&&PV.for,LV=hV?PV:PV&&PV.withoutSetter||IV,_V=function(e){if(!TV(FV,e)||!pV&&"string"!=typeof FV[e]){var t="Symbol."+e;pV&&TV(PV,e)?FV[e]=PV[e]:FV[e]=hV&&RV?RV(t):LV(t)}return FV[e]},jV=x$.TypeError,MV=_V("toPrimitive"),zV=function(e){var t=function(e,t){if(!nV(e)||gV(e))return e;var n,r,o=null==(n=e[MV])?void 0:bV(n);if(o){if(void 0===t&&(t="default"),r=H$(o,e,t),!nV(r)||gV(r))return r;throw jV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&_$(n=e.toString)&&!nV(r=H$(n,e)))return r;if(_$(n=e.valueOf)&&!nV(r=H$(n,e)))return r;if("string"!==t&&_$(n=e.toString)&&!nV(r=H$(n,e)))return r;throw EV("Can't convert object to primitive value")}(e,t)}(e,"string");return gV(t)?t:t+""},HV=x$.document,UV=nV(HV)&&nV(HV.createElement),$V=function(e){return UV?HV.createElement(e):{}},VV=!M$&&!j$((function(){return 7!=Object.defineProperty($V("div"),"a",{get:function(){return 7}}).a})),GV=Object.getOwnPropertyDescriptor,WV={f:M$?GV:function(e,t){if(e=tV(e),t=zV(t),VV)try{return GV(e,t)}catch(e){}if(TV(e,t))return W$(!H$(G$.f,e,t),e[t])}},qV=/#|\.prototype\./,KV=function(e,t){var n=XV[YV(e)];return n==JV||n!=ZV&&(_$(t)?j$(t):!!t)},YV=KV.normalize=function(e){return String(e).replace(qV,".").toLowerCase()},XV=KV.data={},ZV=KV.NATIVE="N",JV=KV.POLYFILL="P",QV=KV,eG=L$(L$.bind),tG=function(e,t){return bV(e),void 0===t?e:eG?eG(e,t):function(){return e.apply(t,arguments)}},nG=x$.String,rG=x$.TypeError,oG=function(e){if(nV(e))return e;throw rG(nG(e)+" is not an object")},iG=x$.TypeError,aG=Object.defineProperty,uG={f:M$?aG:function(e,t,n){if(oG(e),t=zV(t),oG(n),VV)try{return aG(e,t,n)}catch(e){}if("get"in n||"set"in n)throw iG("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},sG=M$?function(e,t,n){return uG.f(e,t,W$(1,n))}:function(e,t,n){return e[t]=n,e},lG=WV.f,cG=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return B$(e,this,arguments)};return t.prototype=e.prototype,t},fG=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?x$:d?x$[c]:(x$[c]||{}).prototype,v=f?rV:rV[c]||sG(rV,c,{})[c],g=v.prototype;for(o in t)n=!QV(f?o:c+(d?".":"#")+o,e.forced)&&h&&TV(h,o),a=v[o],n&&(u=e.noTargetGet?(l=lG(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?tG(i,x$):e.wrap&&n?cG(i):p&&_$(i)?L$(i):i,(e.sham||i&&i.sham||a&&a.sham)&&sG(s,"sham",!0),sG(v,o,s),p&&(TV(rV,r=c+"Prototype")||sG(rV,r,{}),sG(rV[r],o,i),e.real&&g&&!g[o]&&sG(g,o,i)))},dG=Array.isArray||function(e){return"Array"==Y$(e)},pG=Math.ceil,hG=Math.floor,vG=function(e){var t=+e;return t!=t||0===t?0:(t>0?hG:pG)(t)},gG=Math.min,yG=function(e){return(t=e.length)>0?gG(vG(t),9007199254740991):0;var t},mG=function(e,t,n){var r=zV(t);r in e?uG.f(e,r,W$(0,n)):e[r]=n},bG={};bG[_V("toStringTag")]="z";var EG="[object z]"===String(bG),wG=_V("toStringTag"),SG=x$.Object,CG="Arguments"==Y$(function(){return arguments}()),DG=EG?Y$:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=SG(e),wG))?n:CG?Y$(t):"Object"==(r=Y$(t))&&_$(t.callee)?"Arguments":r},AG=L$(Function.toString);_$(CV.inspectSource)||(CV.inspectSource=function(e){return AG(e)});var xG=CV.inspectSource,OG=function(){},TG=[],kG=iV("Reflect","construct"),NG=/^\s*(?:class|function)\b/,BG=L$(NG.exec),IG=!NG.exec(OG),FG=function(e){if(!_$(e))return!1;try{return kG(OG,TG,e),!0}catch(e){return!1}},PG=!kG||j$((function(){var e;return FG(FG.call)||!FG(Object)||!FG((function(){e=!0}))||e}))?function(e){if(!_$(e))return!1;switch(DG(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return IG||!!BG(NG,xG(e))}:FG,RG=_V("species"),LG=x$.Array,_G=function(e,t){return new(function(e){var t;return dG(e)&&(t=e.constructor,(PG(t)&&(t===LG||dG(t.prototype))||nV(t)&&null===(t=t[RG]))&&(t=void 0)),void 0===t?LG:t}(e))(0===t?0:t)},jG=_V("species"),MG=_V("isConcatSpreadable"),zG=9007199254740991,HG="Maximum allowed index exceeded",UG=x$.TypeError,$G=dV>=51||!j$((function(){var e=[];return e[MG]=!1,e.concat()[0]!==e})),VG=dV>=51||!j$((function(){var e=[];return(e.constructor={})[jG]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),GG=function(e){if(!nV(e))return!1;var t=e[MG];return void 0!==t?!!t:dG(e)};fG({target:"Array",proto:!0,forced:!$G||!VG},{concat:function(e){var t,n,r,o,i,a=xV(this),u=_G(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(GG(i=-1===t?a:arguments[t])){if(s+(o=yG(i))>zG)throw UG(HG);for(n=0;n<o;n++,s++)n in i&&mG(u,s,i[n])}else{if(s>=zG)throw UG(HG);mG(u,s++,i)}return u.length=s,u}});var WG,qG=x$.String,KG=function(e){if("Symbol"===DG(e))throw TypeError("Cannot convert a Symbol value to a string");return qG(e)},YG=Math.max,XG=Math.min,ZG=function(e,t){var n=vG(e);return n<0?YG(n+t,0):XG(n,t)},JG=function(e){return function(t,n,r){var o,i=tV(t),a=yG(i),u=ZG(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},QG={includes:JG(!0),indexOf:JG(!1)},eW={},tW=QG.indexOf,nW=L$([].push),rW=function(e,t){var n,r=tV(e),o=0,i=[];for(n in r)!TV(eW,n)&&TV(r,n)&&nW(i,n);for(;t.length>o;)TV(r,n=t[o++])&&(~tW(i,n)||nW(i,n));return i},oW=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iW=Object.keys||function(e){return rW(e,oW)},aW=M$?Object.defineProperties:function(e,t){oG(e);for(var n,r=tV(t),o=iW(t),i=o.length,a=0;i>a;)uG.f(e,n=o[a++],r[n]);return e},uW=iV("document","documentElement"),sW=DV("keys"),lW=function(e){return sW[e]||(sW[e]=IV(e))},cW="prototype",fW="script",dW=lW("IE_PROTO"),pW=function(){},hW=function(e){return"<"+fW+">"+e+"</"+fW+">"},vW=function(e){e.write(hW("")),e.close();var t=e.parentWindow.Object;return e=null,t},gW=function(){try{WG=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;gW="undefined"!=typeof document?document.domain&&WG?vW(WG):(t=$V("iframe"),n="java"+fW+":",t.style.display="none",uW.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(hW("document.F=Object")),e.close(),e.F):vW(WG);for(var r=oW.length;r--;)delete gW[cW][oW[r]];return gW()};eW[dW]=!0;var yW,mW,bW,EW=Object.create||function(e,t){var n;return null!==e?(pW[cW]=oG(e),n=new pW,pW[cW]=null,n[dW]=e):n=gW(),void 0===t?n:aW(n,t)},wW=oW.concat("length","prototype"),SW={f:Object.getOwnPropertyNames||function(e){return rW(e,wW)}},CW=x$.Array,DW=Math.max,AW=SW.f,xW="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],OW={f:function(e){return xW&&"Window"==Y$(e)?function(e){try{return AW(e)}catch(e){return function(e){for(var t=yG(e),n=ZG(void 0,t),r=ZG(t,t),o=CW(DW(r-n,0)),i=0;n<r;n++,i++)mG(o,i,e[n]);return o.length=i,o}(xW)}}(e):AW(tV(e))}},TW={f:Object.getOwnPropertySymbols},kW=L$([].slice),NW=function(e,t,n,r){r&&r.enumerable?e[t]=n:sG(e,t,n)},BW={f:_V},IW=uG.f,FW=function(e){var t=rV.Symbol||(rV.Symbol={});TV(t,e)||IW(t,e,{value:BW.f(e)})},PW=EG?{}.toString:function(){return"[object "+DG(this)+"]"},RW=uG.f,LW=_V("toStringTag"),_W=function(e,t,n,r){if(e){var o=n?e:e.prototype;TV(o,LW)||RW(o,LW,{configurable:!0,value:t}),r&&!EG&&sG(o,"toString",PW)}},jW=x$.WeakMap,MW=_$(jW)&&/native code/.test(xG(jW)),zW="Object already initialized",HW=x$.TypeError,UW=x$.WeakMap;if(MW||CV.state){var $W=CV.state||(CV.state=new UW),VW=L$($W.get),GW=L$($W.has),WW=L$($W.set);yW=function(e,t){if(GW($W,e))throw new HW(zW);return t.facade=e,WW($W,e,t),t},mW=function(e){return VW($W,e)||{}},bW=function(e){return GW($W,e)}}else{var qW=lW("state");eW[qW]=!0,yW=function(e,t){if(TV(e,qW))throw new HW(zW);return t.facade=e,sG(e,qW,t),t},mW=function(e){return TV(e,qW)?e[qW]:{}},bW=function(e){return TV(e,qW)}}var KW={set:yW,get:mW,has:bW,enforce:function(e){return bW(e)?mW(e):yW(e,{})},getterFor:function(e){return function(t){var n;if(!nV(t)||(n=mW(t)).type!==e)throw HW("Incompatible receiver, "+e+" required");return n}}},YW=L$([].push),XW=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=xV(s),v=J$(h),g=tG(l,c),y=yG(v),m=0,b=f||_G,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:YW(E,d)}else switch(e){case 4:return!1;case 7:YW(E,d)}return i?-1:r||o?o:E}},ZW=[XW(0),XW(1),XW(2),XW(3),XW(4),XW(5),XW(6),XW(7)][0],JW=lW("hidden"),QW="Symbol",eq="prototype",tq=_V("toPrimitive"),nq=KW.set,rq=KW.getterFor(QW),oq=Object[eq],iq=x$.Symbol,aq=iq&&iq[eq],uq=x$.TypeError,sq=x$.QObject,lq=iV("JSON","stringify"),cq=WV.f,fq=uG.f,dq=OW.f,pq=G$.f,hq=L$([].push),vq=DV("symbols"),gq=DV("op-symbols"),yq=DV("string-to-symbol-registry"),mq=DV("symbol-to-string-registry"),bq=DV("wks"),Eq=!sq||!sq[eq]||!sq[eq].findChild,wq=M$&&j$((function(){return 7!=EW(fq({},"a",{get:function(){return fq(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=cq(oq,t);r&&delete oq[t],fq(e,t,n),r&&e!==oq&&fq(oq,t,r)}:fq,Sq=function(e,t){var n=vq[e]=EW(aq);return nq(n,{type:QW,tag:e,description:t}),M$||(n.description=t),n},Cq=function(e,t,n){e===oq&&Cq(gq,t,n),oG(e);var r=zV(t);return oG(n),TV(vq,r)?(n.enumerable?(TV(e,JW)&&e[JW][r]&&(e[JW][r]=!1),n=EW(n,{enumerable:W$(0,!1)})):(TV(e,JW)||fq(e,JW,W$(1,{})),e[JW][r]=!0),wq(e,r,n)):fq(e,r,n)},Dq=function(e,t){oG(e);var n=tV(t),r=iW(n).concat(Tq(n));return ZW(r,(function(t){M$&&!H$(Aq,n,t)||Cq(e,t,n[t])})),e},Aq=function(e){var t=zV(e),n=H$(pq,this,t);return!(this===oq&&TV(vq,t)&&!TV(gq,t))&&(!(n||!TV(this,t)||!TV(vq,t)||TV(this,JW)&&this[JW][t])||n)},xq=function(e,t){var n=tV(e),r=zV(t);if(n!==oq||!TV(vq,r)||TV(gq,r)){var o=cq(n,r);return!o||!TV(vq,r)||TV(n,JW)&&n[JW][r]||(o.enumerable=!0),o}},Oq=function(e){var t=dq(tV(e)),n=[];return ZW(t,(function(e){TV(vq,e)||TV(eW,e)||hq(n,e)})),n},Tq=function(e){var t=e===oq,n=dq(t?gq:tV(e)),r=[];return ZW(n,(function(e){!TV(vq,e)||t&&!TV(oq,e)||hq(r,vq[e])})),r};if(pV||(aq=(iq=function(){if(aV(aq,this))throw uq("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?KG(arguments[0]):void 0,t=IV(e),n=function(e){this===oq&&H$(n,gq,e),TV(this,JW)&&TV(this[JW],t)&&(this[JW][t]=!1),wq(this,t,W$(1,e))};return M$&&Eq&&wq(oq,t,{configurable:!0,set:n}),Sq(t,e)})[eq],NW(aq,"toString",(function(){return rq(this).tag})),NW(iq,"withoutSetter",(function(e){return Sq(IV(e),e)})),G$.f=Aq,uG.f=Cq,WV.f=xq,SW.f=OW.f=Oq,TW.f=Tq,BW.f=function(e){return Sq(_V(e),e)},M$&&fq(aq,"description",{configurable:!0,get:function(){return rq(this).description}})),fG({global:!0,wrap:!0,forced:!pV,sham:!pV},{Symbol:iq}),ZW(iW(bq),(function(e){FW(e)})),fG({target:QW,stat:!0,forced:!pV},{for:function(e){var t=KG(e);if(TV(yq,t))return yq[t];var n=iq(t);return yq[t]=n,mq[n]=t,n},keyFor:function(e){if(!gV(e))throw uq(e+" is not a symbol");if(TV(mq,e))return mq[e]},useSetter:function(){Eq=!0},useSimple:function(){Eq=!1}}),fG({target:"Object",stat:!0,forced:!pV,sham:!M$},{create:function(e,t){return void 0===t?EW(e):Dq(EW(e),t)},defineProperty:Cq,defineProperties:Dq,getOwnPropertyDescriptor:xq}),fG({target:"Object",stat:!0,forced:!pV},{getOwnPropertyNames:Oq,getOwnPropertySymbols:Tq}),fG({target:"Object",stat:!0,forced:j$((function(){TW.f(1)}))},{getOwnPropertySymbols:function(e){return TW.f(xV(e))}}),lq){var kq=!pV||j$((function(){var e=iq();return"[null]"!=lq([e])||"{}"!=lq({a:e})||"{}"!=lq(Object(e))}));fG({target:"JSON",stat:!0,forced:kq},{stringify:function(e,t,n){var r=kW(arguments),o=t;if((nV(t)||void 0!==e)&&!gV(e))return dG(t)||(t=function(e,t){if(_$(o)&&(t=H$(o,this,e,t)),!gV(t))return t}),r[1]=t,B$(lq,null,r)}})}if(!aq[tq]){var Nq=aq.valueOf;NW(aq,tq,(function(e){return H$(Nq,this)}))}_W(iq,QW),eW[JW]=!0,FW("asyncIterator"),FW("hasInstance"),FW("isConcatSpreadable"),FW("iterator"),FW("match"),FW("matchAll"),FW("replace"),FW("search"),FW("species"),FW("split"),FW("toPrimitive"),FW("toStringTag"),FW("unscopables"),_W(x$.JSON,"JSON",!0);var Bq,Iq,Fq,Pq=rV.Symbol,Rq={},Lq=Function.prototype,_q=M$&&Object.getOwnPropertyDescriptor,jq=TV(Lq,"name"),Mq={EXISTS:jq,PROPER:jq&&"something"===function(){}.name,CONFIGURABLE:jq&&(!M$||M$&&_q(Lq,"name").configurable)},zq=!j$((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Hq=lW("IE_PROTO"),Uq=x$.Object,$q=Uq.prototype,Vq=zq?Uq.getPrototypeOf:function(e){var t=xV(e);if(TV(t,Hq))return t[Hq];var n=t.constructor;return _$(n)&&t instanceof n?n.prototype:t instanceof Uq?$q:null},Gq=_V("iterator"),Wq=!1;[].keys&&("next"in(Fq=[].keys())?(Iq=Vq(Vq(Fq)))!==Object.prototype&&(Bq=Iq):Wq=!0);var qq=null==Bq||j$((function(){var e={};return Bq[Gq].call(e)!==e}));Bq=qq?{}:EW(Bq),_$(Bq[Gq])||NW(Bq,Gq,(function(){return this}));var Kq={IteratorPrototype:Bq,BUGGY_SAFARI_ITERATORS:Wq},Yq=Kq.IteratorPrototype,Xq=function(){return this};x$.String,x$.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{L$(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch(e){}}();var Zq=Mq.PROPER,Jq=Kq.BUGGY_SAFARI_ITERATORS,Qq=_V("iterator"),eK="keys",tK="values",nK="entries",rK=function(){return this},oK=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=EW(Yq,{next:W$(1,n)}),_W(e,r,!1,!0),Rq[r]=Xq}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!Jq&&e in p)return p[e];switch(e){case eK:case tK:case nK:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Qq]||p["@@iterator"]||o&&p[o],v=!Jq&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=Vq(g.call(new e)))!==Object.prototype&&u.next&&(_W(u,f,!0,!0),Rq[f]=rK),Zq&&o==tK&&h&&h.name!==tK&&(d=!0,v=function(){return H$(h,this)}),o)if(s={values:c(tK),keys:i?v:c(eK),entries:c(nK)},a)for(l in s)(Jq||d||!(l in p))&&NW(p,l,s[l]);else fG({target:t,proto:!0,forced:Jq||d},s);return a&&p[Qq]!==v&&NW(p,Qq,v,{name:o}),Rq[t]=v,s},iK="Array Iterator",aK=KW.set,uK=KW.getterFor(iK);oK(Array,"Array",(function(e,t){aK(this,{type:iK,target:tV(e),index:0,kind:t})}),(function(){var e=uK(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Rq.Arguments=Rq.Array;var sK=_V("toStringTag");for(var lK 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 cK=x$[lK],fK=cK&&cK.prototype;fK&&DG(fK)!==sK&&sG(fK,sK,lK),Rq[lK]=Rq.Array}var dK=Pq;FW("asyncDispose"),FW("dispose"),FW("matcher"),FW("metadata"),FW("observable"),FW("patternMatch"),FW("replaceAll");var pK=dK,hK=L$("".charAt),vK=L$("".charCodeAt),gK=L$("".slice),yK=function(e){return function(t,n){var r,o,i=KG(eV(t)),a=vG(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=vK(i,a))<55296||r>56319||a+1===u||(o=vK(i,a+1))<56320||o>57343?e?hK(i,a):r:e?gK(i,a,a+2):o-56320+(r-55296<<10)+65536}},mK=(yK(!1),yK(!0)),bK="String Iterator",EK=KW.set,wK=KW.getterFor(bK);oK(String,"String",(function(e){EK(this,{type:bK,string:KG(e),index:0})}),(function(){var e,t=wK(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=mK(n,r),t.index+=e.length,{value:e,done:!1})}));var SK=BW.f("iterator"),CK=CR((function(e){function t(n){return"function"==typeof pK&&"symbol"==typeof SK?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof pK&&e.constructor===pK&&e!==pK.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),DK=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(CK),AK=b_.EXISTS,xK=YL.f,OK=Function.prototype,TK=HR(OK.toString),kK=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,NK=HR(kK.exec);kR&&!AK&&xK(OK,"name",{configurable:!0,get:function(){try{return NK(kK,TK(this))[1]}catch(e){return""}}});var BK=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=Gf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!xz(Gf.nodes(e,{match:function(t){return"pre"===XN.getNodeType(t)||!!Gf.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),IK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=eR("fontSize.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',t.mark="fontSize",t}return wz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:eR("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===DK(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(BK),FK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=eR("fontFamily.title"),t.iconSvg='<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>',t.mark="fontFamily",t.selectPanelWidth=150,t}return wz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:eR("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===DK(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(BK),PK={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&ZH(i,{fontSize:r}),o&&ZH(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!gd.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((vz(t)||"span"!==yz(n=hh(t)))&&(n=hh("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),gz(n)):t},preParseHtml:[w$],parseStyleHtml:function(e,t,n){var r=hh(e);if(!gd.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=mz(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=mz(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new IK},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 FK},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},RK={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=hh(e),n=mz(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},LK=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=xz(Gf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":xz(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=xz(Gf.nodes(e,{match:function(e){var t=XN.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),_K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=eR("indent.decrease"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',t}return wz(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Pd.setNodes(e,{indent:null},{match:function(e){return Mf.isElement(e)}})},t}(LK),jK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=eR("indent.increase"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',t.DEFAULT_INDENT_VALUE="2em",t}return wz(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.getIndentValue=function(e){var t=this.getMatchNode(e);if(!t)return this.DEFAULT_INDENT_VALUE;var n=t.children.filter(gd.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var r=n.fontSize,o=parseInt(n.fontSize);return""+2*o+r.replace(""+o,"")},t.prototype.exec=function(e,t){var n=this.getIndentValue(e);Pd.setNodes(e,{indent:n},{match:function(e){return Mf.isElement(e)},mode:"highest"})},t}(LK),MK={renderStyle:function(e,t){if(!Mf.isElement(e))return t;var n=e.indent,r=t;return n&&ZH(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Mf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=hh(t);return r.css("text-indent",n),gz(r)},preParseHtml:[RK],parseStyleHtml:function(e,t,n){var r=hh(e);if(!Mf.isElement(t))return t;var o=t,i=mz(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new jK}},{key:"delIndent",factory:function(){return new _K}}]},zK=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=xz(Gf.nodes(e,{match:function(e){var t=XN.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!XN.getSelectedElems(e).some((function(t){var n=t.type;return!(!Gf.isVoid(e,t)||!Gf.isBlock(e,t)||"video"===n)||!!["pre","code"].includes(n)||void 0}))},e}(),HK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=eR("justify.left"),t.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>',t}return wz(t,e),t.prototype.exec=function(e,t){Pd.setNodes(e,{textAlign:"left"},{match:function(t){return Mf.isElement(t)&&!e.isInline(t)}})},t}(zK),UK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=eR("justify.right"),t.iconSvg='<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>',t}return wz(t,e),t.prototype.exec=function(e,t){Pd.setNodes(e,{textAlign:"right"},{match:function(t){return Mf.isElement(t)&&!e.isInline(t)}})},t}(zK),$K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=eR("justify.center"),t.iconSvg='<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>',t}return wz(t,e),t.prototype.exec=function(e,t){Pd.setNodes(e,{textAlign:"center"},{match:function(t){return Mf.isElement(t)&&!e.isInline(t)}})},t}(zK),VK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=eR("justify.justify"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',t}return wz(t,e),t.prototype.exec=function(e,t){Pd.setNodes(e,{textAlign:"justify"},{match:function(t){return Mf.isElement(t)&&!e.isInline(t)}})},t}(zK),GK={renderStyle:function(e,t){if(!Mf.isElement(e))return t;var n=e.textAlign,r=t;return n&&ZH(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Mf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=hh(t);return r.css("text-align",n),gz(r)},parseStyleHtml:function(e,t,n){var r=hh(e);if(!Mf.isElement(t))return t;var o=t,i=mz(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new HK}},{key:"justifyRight",factory:function(){return new UK}},{key:"justifyCenter",factory:function(){return new $K}},{key:"justifyJustify",factory:function(){return new VK}}]},WK=function(){function e(){this.title=eR("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 e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:eR("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=xz(Gf.nodes(e,{match:function(e){var t=XN.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Mf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Pd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),qK={renderStyle:function(e,t){if(!Mf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&ZH(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Mf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=hh(t);return r.css("line-height",n),gz(r)},parseStyleHtml:function(e,t,n){var r=hh(e);if(!Mf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=mz(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new WK},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},KK=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),YK=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),XK={menus:[{key:"redo",factory:function(){return new KK}},{key:"undo",factory:function(){return new YK}}]},ZK={type:"divider",renderElem:function(e,t,n){return Yv("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:XN.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Yv("hr")])}},JK=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!XN.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=XN.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){XN.isSelectedEmptyParagraph(e)&&Pd.removeNodes(e,{mode:"highest"}),Pd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),QK={renderElems:[ZK],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new JK}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=xz(e,2),o=t[0],i=t[1];if("divider"!==XN.getNodeType(o))return n([o,i]);XN.isLastNode(r,o)&&Pd.insertNodes(r,XN.genEmptyParagraph(),{at:[i[0]+1]})},r}},eY=mj.map;X_({target:"Array",proto:!0,forced:!Ej("map")},{map:function(e){return eY(this,e,arguments.length>1?arguments[1]:void 0)}});var tY=HR([].join),nY=qR!=Object,rY=Mz("join",",");X_({target:"Array",proto:!0,forced:nY||!rY},{join:function(e){return tY(XR(this),void 0===e?",":e)}});var oY=function(){function e(){this.title=eR("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 e.prototype.getSelectCodeElem=function(e){var t=XN.getSelectedNodeByType(e,"code");if(null==t)return null;var n=XN.getParentNode(e,t);return null==n||"pre"!==XN.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=XN.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=XN.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Zf.string(t);Pd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));Pd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Gf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=Az(i),u=a.next();!u.done;u=a.next()){var s=xz(u.value,1)[0];s&&o.push(Zf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Pd.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Pd.insertNodes(e,l,{mode:"highest"})},e}(),iY={key:"codeBlock",factory:function(){return new oY}};X_({target:"String",proto:!0,forced:Iz("anchor")},{anchor:function(e){return Bz(this,"a","name",e)}}),pM("match",(function(e,t,n){return[function(t){var n=YR(this),r=null==t?void 0:vL(t,e);return r?BR(r,t,n):new RegExp(t)[e](Aj(n))},function(e){var r=WL(this),o=Aj(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return TM(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=TM(r,o));){var c=Aj(u[0]);s[l]=c,""===c&&(r.lastIndex=bM(o,T_(r.lastIndex),a)),l++}return 0===l?null:s}]}));var aY={type:"pre",renderElem:function(e,t,n){return gg("pre",null,t)}},uY={type:"code",renderElem:function(e,t,n){return gg("code",null,t)}},sY={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hh(e);return 0===(t=t.filter((function(e){return"code"===XN.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===XN.getNodeType(e)}))}}},lY={menus:[iY],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=XN.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Zf.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=xz(e,2),r=t[0],i=t[1],a=XN.getNodeType(r);return"code"===a&&i.length<=1&&Pd.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(XN.isLastNode(o,r)&&Pd.insertNodes(o,XN.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==XN.getNodeType(r.children[0])&&(Pd.unwrapNodes(o),Pd.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=XN.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Gf.insertText(o,t)}else r(e)},o},renderElems:[aY,uY],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=hh(e);if("code"!==yz(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:hh(e)[0].textContent||""}]}}},sY]},cY=function(){function e(){this.title=eR("fullScreen.title"),this.iconSvg=Yz,this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.getIcon=function(e){return e.isFullScreen?Yz:'<svg t="1723361745825" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8705" width="200" height="200"><path d="M703.926857 362.642286a42.642286 42.642286 0 0 1-42.642286-42.642286V128a42.642286 42.642286 0 1 1 85.357715 0v149.357714h149.357714c21.211429 0 38.765714 15.433143 42.057143 35.693715l0.585143 6.948571a42.642286 42.642286 0 0 1-42.642286 42.642286H703.926857zM703.926857 938.642286a42.642286 42.642286 0 0 1-42.642286-42.642286V704c0-23.552 19.090286-42.642286 42.642286-42.642286h192.073143a42.642286 42.642286 0 1 1 0 85.284572l-149.357714 0.073143v149.284571c0 21.211429-15.506286 38.765714-35.84 42.130286l-6.875429 0.512zM319.853714 938.642286a42.642286 42.642286 0 0 1-42.642285-42.642286v-149.284571H127.853714a42.642286 42.642286 0 0 1-42.130285-35.84l-0.585143-6.875429c0-23.552 19.163429-42.642286 42.715428-42.642286h192c23.552 0 42.715429 19.017143 42.715429 42.642286v192a42.642286 42.642286 0 0 1-42.715429 42.642286zM127.853714 362.642286a42.642286 42.642286 0 1 1 0-85.284572H277.211429V128c0-21.211429 15.433143-38.765714 35.766857-42.130286l6.875428-0.512c23.552 0 42.715429 19.017143 42.715429 42.642286v192a42.642286 42.642286 0 0 1-42.715429 42.642286H127.853714z" fill="#333333" p-id="8706"></path></svg>'},e.prototype.getTitle=function(e){return e.isFullScreen?eR("fullScreen.title"):eR("fullScreen.cancelTitle")},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),fY={menus:[{key:"fullScreen",factory:function(){return new cY}}]},dY=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!ld.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Pd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Gf.start(e,r))}},e}(),pY=[oH,rU,PK,MK,GK,qK,s$,QK,b$,kU,lY,y$,WH,Tz,d$,XK,fY,{menus:[{key:"enter",factory:function(){return new dY}}]}];ZP("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),ZP("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var hY="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function vY(e){var t={exports:{}};return e(t,t.exports),t.exports}var gY,yY,mY=function(e){return e&&e.Math==Math&&e},bY=mY("object"==typeof globalThis&&globalThis)||mY("object"==typeof window&&window)||mY("object"==typeof self&&self)||mY("object"==typeof hY&&hY)||function(){return this}()||Function("return this")(),EY=Function.prototype,wY=EY.bind,SY=EY.call,CY=wY&&wY.bind(SY),DY=wY?function(e){return e&&CY(SY,e)}:function(e){return e&&function(){return SY.apply(e,arguments)}},AY=function(e){try{return!!e()}catch(e){return!0}},xY=DY({}.toString),OY=DY("".slice),TY=function(e){return OY(xY(e),8,-1)},kY=bY.Object,NY=DY("".split),BY=AY((function(){return!kY("z").propertyIsEnumerable(0)}))?function(e){return"String"==TY(e)?NY(e,""):kY(e)}:kY,IY=bY.TypeError,FY=function(e){if(null==e)throw IY("Can't call method on "+e);return e},PY=function(e){return BY(FY(e))},RY=Object.defineProperty,LY=function(e,t){try{RY(bY,e,{value:t,configurable:!0,writable:!0})}catch(n){bY[e]=t}return t},_Y="__core-js_shared__",jY=bY[_Y]||LY(_Y,{}),MY=vY((function(e){(e.exports=function(e,t){return jY[e]||(jY[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),zY=bY.Object,HY=function(e){return zY(FY(e))},UY=DY({}.hasOwnProperty),$Y=Object.hasOwn||function(e,t){return UY(HY(e),t)},VY=0,GY=Math.random(),WY=DY(1..toString),qY=function(e){return"Symbol("+(void 0===e?"":e)+")_"+WY(++VY+GY,36)},KY=function(e){return"function"==typeof e},YY=function(e,t){return arguments.length<2?(n=bY[e],KY(n)?n:void 0):bY[e]&&bY[e][t];var n},XY=YY("navigator","userAgent")||"",ZY=bY.process,JY=bY.Deno,QY=ZY&&ZY.versions||JY&&JY.version,eX=QY&&QY.v8;eX&&(yY=(gY=eX.split("."))[0]>0&&gY[0]<4?1:+(gY[0]+gY[1])),!yY&&XY&&(!(gY=XY.match(/Edge\/(\d+)/))||gY[1]>=74)&&(gY=XY.match(/Chrome\/(\d+)/))&&(yY=+gY[1]);var tX,nX=yY,rX=!!Object.getOwnPropertySymbols&&!AY((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&nX&&nX<41})),oX=rX&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,iX=MY("wks"),aX=bY.Symbol,uX=aX&&aX.for,sX=oX?aX:aX&&aX.withoutSetter||qY,lX=function(e){if(!$Y(iX,e)||!rX&&"string"!=typeof iX[e]){var t="Symbol."+e;rX&&$Y(aX,e)?iX[e]=aX[e]:iX[e]=oX&&uX?uX(t):sX(t)}return iX[e]},cX=function(e){return"object"==typeof e?null!==e:KY(e)},fX=bY.String,dX=bY.TypeError,pX=function(e){if(cX(e))return e;throw dX(fX(e)+" is not an object")},hX=!AY((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),vX=bY.document,gX=cX(vX)&&cX(vX.createElement),yX=function(e){return gX?vX.createElement(e):{}},mX=!hX&&!AY((function(){return 7!=Object.defineProperty(yX("div"),"a",{get:function(){return 7}}).a})),bX=Function.prototype.call,EX=bX.bind?bX.bind(bX):function(){return bX.apply(bX,arguments)},wX=DY({}.isPrototypeOf),SX=bY.Object,CX=oX?function(e){return"symbol"==typeof e}:function(e){var t=YY("Symbol");return KY(t)&&wX(t.prototype,SX(e))},DX=bY.String,AX=function(e){try{return DX(e)}catch(e){return"Object"}},xX=bY.TypeError,OX=function(e){if(KY(e))return e;throw xX(AX(e)+" is not a function")},TX=function(e,t){var n=e[t];return null==n?void 0:OX(n)},kX=bY.TypeError,NX=bY.TypeError,BX=lX("toPrimitive"),IX=function(e){var t=function(e,t){if(!cX(e)||CX(e))return e;var n,r=TX(e,BX);if(r){if(void 0===t&&(t="default"),n=EX(r,e,t),!cX(n)||CX(n))return n;throw NX("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&KY(n=e.toString)&&!cX(r=EX(n,e)))return r;if(KY(n=e.valueOf)&&!cX(r=EX(n,e)))return r;if("string"!==t&&KY(n=e.toString)&&!cX(r=EX(n,e)))return r;throw kX("Can't convert object to primitive value")}(e,t)}(e,"string");return CX(t)?t:t+""},FX=bY.TypeError,PX=Object.defineProperty,RX={f:hX?PX:function(e,t,n){if(pX(e),t=IX(t),pX(n),mX)try{return PX(e,t,n)}catch(e){}if("get"in n||"set"in n)throw FX("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},LX=Math.ceil,_X=Math.floor,jX=function(e){var t=+e;return t!=t||0===t?0:(t>0?_X:LX)(t)},MX=Math.max,zX=Math.min,HX=function(e,t){var n=jX(e);return n<0?MX(n+t,0):zX(n,t)},UX=Math.min,$X=function(e){return e>0?UX(jX(e),9007199254740991):0},VX=function(e){return $X(e.length)},GX=function(e){return function(t,n,r){var o,i=PY(t),a=VX(i),u=HX(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},WX={includes:GX(!0),indexOf:GX(!1)},qX={},KX=WX.indexOf,YX=DY([].push),XX=function(e,t){var n,r=PY(e),o=0,i=[];for(n in r)!$Y(qX,n)&&$Y(r,n)&&YX(i,n);for(;t.length>o;)$Y(r,n=t[o++])&&(~KX(i,n)||YX(i,n));return i},ZX=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],JX=Object.keys||function(e){return XX(e,ZX)},QX=hX?Object.defineProperties:function(e,t){pX(e);for(var n,r=PY(t),o=JX(t),i=o.length,a=0;i>a;)RX.f(e,n=o[a++],r[n]);return e},eZ=YY("document","documentElement"),tZ=MY("keys"),nZ=function(e){return tZ[e]||(tZ[e]=qY(e))},rZ="prototype",oZ="script",iZ=nZ("IE_PROTO"),aZ=function(){},uZ=function(e){return"<"+oZ+">"+e+"</"+oZ+">"},sZ=function(e){e.write(uZ("")),e.close();var t=e.parentWindow.Object;return e=null,t},lZ=function(){try{tX=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;lZ="undefined"!=typeof document?document.domain&&tX?sZ(tX):(t=yX("iframe"),n="java"+oZ+":",t.style.display="none",eZ.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(uZ("document.F=Object")),e.close(),e.F):sZ(tX);for(var r=ZX.length;r--;)delete lZ[rZ][ZX[r]];return lZ()};qX[iZ]=!0;var cZ=Object.create||function(e,t){var n;return null!==e?(aZ[rZ]=pX(e),n=new aZ,aZ[rZ]=null,n[iZ]=e):n=lZ(),void 0===t?n:QX(n,t)},fZ=lX("unscopables"),dZ=Array.prototype;null==dZ[fZ]&&RX.f(dZ,fZ,{configurable:!0,value:cZ(null)});var pZ=function(e){dZ[fZ][e]=!0},hZ={},vZ=DY(Function.toString);KY(jY.inspectSource)||(jY.inspectSource=function(e){return vZ(e)});var gZ,yZ,mZ,bZ=jY.inspectSource,EZ=bY.WeakMap,wZ=KY(EZ)&&/native code/.test(bZ(EZ)),SZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},CZ=hX?function(e,t,n){return RX.f(e,t,SZ(1,n))}:function(e,t,n){return e[t]=n,e},DZ="Object already initialized",AZ=bY.TypeError,xZ=bY.WeakMap;if(wZ||jY.state){var OZ=jY.state||(jY.state=new xZ),TZ=DY(OZ.get),kZ=DY(OZ.has),NZ=DY(OZ.set);gZ=function(e,t){if(kZ(OZ,e))throw new AZ(DZ);return t.facade=e,NZ(OZ,e,t),t},yZ=function(e){return TZ(OZ,e)||{}},mZ=function(e){return kZ(OZ,e)}}else{var BZ=nZ("state");qX[BZ]=!0,gZ=function(e,t){if($Y(e,BZ))throw new AZ(DZ);return t.facade=e,CZ(e,BZ,t),t},yZ=function(e){return $Y(e,BZ)?e[BZ]:{}},mZ=function(e){return $Y(e,BZ)}}var IZ,FZ,PZ,RZ={set:gZ,get:yZ,has:mZ,enforce:function(e){return mZ(e)?yZ(e):gZ(e,{})},getterFor:function(e){return function(t){var n;if(!cX(t)||(n=yZ(t)).type!==e)throw AZ("Incompatible receiver, "+e+" required");return n}}},LZ={}.propertyIsEnumerable,_Z=Object.getOwnPropertyDescriptor,jZ={f:_Z&&!LZ.call({1:2},1)?function(e){var t=_Z(this,e);return!!t&&t.enumerable}:LZ},MZ=Object.getOwnPropertyDescriptor,zZ={f:hX?MZ:function(e,t){if(e=PY(e),t=IX(t),mX)try{return MZ(e,t)}catch(e){}if($Y(e,t))return SZ(!EX(jZ.f,e,t),e[t])}},HZ=Function.prototype,UZ=hX&&Object.getOwnPropertyDescriptor,$Z=$Y(HZ,"name"),VZ={EXISTS:$Z,PROPER:$Z&&"something"===function(){}.name,CONFIGURABLE:$Z&&(!hX||hX&&UZ(HZ,"name").configurable)},GZ=vY((function(e){var t=VZ.CONFIGURABLE,n=RZ.get,r=RZ.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;KY(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$Y(i,"name")||t&&i.name!==f)&&CZ(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==bY?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:CZ(e,n,i)):l?e[n]=i:LY(n,i)})(Function.prototype,"toString",(function(){return KY(this)&&n(this).source||bZ(this)}))})),WZ=ZX.concat("length","prototype"),qZ={f:Object.getOwnPropertyNames||function(e){return XX(e,WZ)}},KZ={f:Object.getOwnPropertySymbols},YZ=DY([].concat),XZ=YY("Reflect","ownKeys")||function(e){var t=qZ.f(pX(e)),n=KZ.f;return n?YZ(t,n(e)):t},ZZ=function(e,t){for(var n=XZ(t),r=RX.f,o=zZ.f,i=0;i<n.length;i++){var a=n[i];$Y(e,a)||r(e,a,o(t,a))}},JZ=/#|\.prototype\./,QZ=function(e,t){var n=tJ[eJ(e)];return n==rJ||n!=nJ&&(KY(t)?AY(t):!!t)},eJ=QZ.normalize=function(e){return String(e).replace(JZ,".").toLowerCase()},tJ=QZ.data={},nJ=QZ.NATIVE="N",rJ=QZ.POLYFILL="P",oJ=QZ,iJ=zZ.f,aJ=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?bY:l?bY[u]||LY(u,{}):(bY[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=iJ(n,r))&&a.value:n[r],!oJ(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ZZ(i,o)}(e.sham||o&&o.sham)&&CZ(i,"sham",!0),GZ(n,r,i,e)}},uJ=!AY((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),sJ=nZ("IE_PROTO"),lJ=bY.Object,cJ=lJ.prototype,fJ=uJ?lJ.getPrototypeOf:function(e){var t=HY(e);if($Y(t,sJ))return t[sJ];var n=t.constructor;return KY(n)&&t instanceof n?n.prototype:t instanceof lJ?cJ:null},dJ=lX("iterator"),pJ=!1;[].keys&&("next"in(PZ=[].keys())?(FZ=fJ(fJ(PZ)))!==Object.prototype&&(IZ=FZ):pJ=!0);var hJ=null==IZ||AY((function(){var e={};return IZ[dJ].call(e)!==e}));hJ&&(IZ={}),KY(IZ[dJ])||GZ(IZ,dJ,(function(){return this}));var vJ={IteratorPrototype:IZ,BUGGY_SAFARI_ITERATORS:pJ},gJ=RX.f,yJ=lX("toStringTag"),mJ=function(e,t,n){e&&!$Y(e=n?e:e.prototype,yJ)&&gJ(e,yJ,{configurable:!0,value:t})},bJ=vJ.IteratorPrototype,EJ=function(){return this},wJ=bY.String,SJ=bY.TypeError,CJ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=DY(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return pX(n),function(e){if("object"==typeof e||KY(e))return e;throw SJ("Can't set "+wJ(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),DJ=VZ.PROPER,AJ=VZ.CONFIGURABLE,xJ=vJ.IteratorPrototype,OJ=vJ.BUGGY_SAFARI_ITERATORS,TJ=lX("iterator"),kJ="keys",NJ="values",BJ="entries",IJ=function(){return this},FJ=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=cZ(bJ,{next:SZ(1,n)}),mJ(e,r,!1),hZ[r]=EJ}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!OJ&&e in p)return p[e];switch(e){case kJ:case NJ:case BJ:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[TJ]||p["@@iterator"]||o&&p[o],v=!OJ&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=fJ(g.call(new e)))!==Object.prototype&&u.next&&(fJ(u)!==xJ&&(CJ?CJ(u,xJ):KY(u[TJ])||GZ(u,TJ,IJ)),mJ(u,f,!0)),DJ&&o==NJ&&h&&h.name!==NJ&&(AJ?CZ(p,"name",NJ):(d=!0,v=function(){return EX(h,this)})),o)if(s={values:c(NJ),keys:i?v:c(kJ),entries:c(BJ)},a)for(l in s)(OJ||d||!(l in p))&&GZ(p,l,s[l]);else aJ({target:t,proto:!0,forced:OJ||d},s);return p[TJ]!==v&&GZ(p,TJ,v,{name:o}),hZ[t]=v,s},PJ="Array Iterator",RJ=RZ.set,LJ=RZ.getterFor(PJ),_J=FJ(Array,"Array",(function(e,t){RJ(this,{type:PJ,target:PY(e),index:0,kind:t})}),(function(){var e=LJ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");hZ.Arguments=hZ.Array,pZ("keys"),pZ("values"),pZ("entries");var jJ={};jJ[lX("toStringTag")]="z";var MJ="[object z]"===String(jJ),zJ=lX("toStringTag"),HJ=bY.Object,UJ="Arguments"==TY(function(){return arguments}()),$J=MJ?TY:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=HJ(e),zJ))?n:UJ?TY(t):"Object"==(r=TY(t))&&KY(t.callee)?"Arguments":r},VJ=MJ?{}.toString:function(){return"[object "+$J(this)+"]"};MJ||GZ(Object.prototype,"toString",VJ,{unsafe:!0});var GJ=bY.String,WJ=function(e){if("Symbol"===$J(e))throw TypeError("Cannot convert a Symbol value to a string");return GJ(e)},qJ=DY("".charAt),KJ=DY("".charCodeAt),YJ=DY("".slice),XJ=function(e){return function(t,n){var r,o,i=WJ(FY(t)),a=jX(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=KJ(i,a))<55296||r>56319||a+1===u||(o=KJ(i,a+1))<56320||o>57343?e?qJ(i,a):r:e?YJ(i,a,a+2):o-56320+(r-55296<<10)+65536}},ZJ={codeAt:XJ(!1),charAt:XJ(!0)},JJ=ZJ.charAt,QJ="String Iterator",eQ=RZ.set,tQ=RZ.getterFor(QJ);FJ(String,"String",(function(e){eQ(this,{type:QJ,string:WJ(e),index:0})}),(function(){var e,t=tQ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=JJ(n,r),t.index+=e.length,{value:e,done:!1})}));var nQ=function(e,t,n){for(var r in t)GZ(e,r,t[r],n);return e},rQ=bY.Array,oQ=Math.max,iQ=qZ.f,aQ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],uQ={f:function(e){return aQ&&"Window"==TY(e)?function(e){try{return iQ(e)}catch(e){return function(e){for(var t,n,r,o,i=VX(e),a=HX(void 0,i),u=HX(i,i),s=rQ(oQ(u-a,0)),l=0;a<u;a++,l++)t=s,n=l,r=e[a],(o=IX(n))in t?RX.f(t,o,SZ(0,r)):t[o]=r;return s.length=l,s}(aQ)}}(e):iQ(PY(e))}},sQ=AY((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),lQ=Object.isExtensible,cQ=AY((function(){lQ(1)}))||sQ?function(e){return!!cX(e)&&(!sQ||"ArrayBuffer"!=TY(e))&&(!lQ||lQ(e))}:lQ,fQ=!AY((function(){return Object.isExtensible(Object.preventExtensions({}))})),dQ=vY((function(e){var t=RX.f,n=!1,r=qY("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=qZ.f,t=DY([].splice),o={};o[r]=1,e(o).length&&(qZ.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},aJ({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:uQ.f}))},fastKey:function(e,t){if(!cX(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!$Y(e,r)){if(!cQ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!$Y(e,r)){if(!cQ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return fQ&&n&&cQ(e)&&!$Y(e,r)&&i(e),e}};qX[r]=!0})),pQ=DY(DY.bind),hQ=function(e,t){return OX(e),void 0===t?e:pQ?pQ(e,t):function(){return e.apply(t,arguments)}},vQ=lX("iterator"),gQ=Array.prototype,yQ=lX("iterator"),mQ=function(e){if(null!=e)return TX(e,yQ)||TX(e,"@@iterator")||hZ[$J(e)]},bQ=bY.TypeError,EQ=function(e,t,n){var r,o;pX(e);try{if(!(r=TX(e,"return"))){if("throw"===t)throw n;return n}r=EX(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return pX(r),n},wQ=bY.TypeError,SQ=function(e,t){this.stopped=e,this.result=t},CQ=SQ.prototype,DQ=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=hQ(t,f),g=function(e){return r&&EQ(r,"normal",e),new SQ(!0,e)},y=function(e){return d?(pX(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=mQ(e)))throw wQ(AX(e)+" is not iterable");if(void 0!==(c=o)&&(hZ.Array===c||gQ[vQ]===c)){for(i=0,a=VX(e);a>i;i++)if((u=y(e[i]))&&wX(CQ,u))return u;return new SQ(!1)}r=function(e,t){var n=arguments.length<2?mQ(e):t;if(OX(n))return pX(EX(n,e));throw bQ(AX(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=EX(s,r)).done;){try{u=y(l.value)}catch(e){EQ(r,"throw",e)}if("object"==typeof u&&u&&wX(CQ,u))return u}return new SQ(!1)},AQ=bY.TypeError,xQ=function(e,t){if(wX(t,e))return e;throw AQ("Incorrect invocation")},OQ=lX("iterator"),TQ=!1;try{var kQ=0,NQ={next:function(){return{done:!!kQ++}},return:function(){TQ=!0}};NQ[OQ]=function(){return this},Array.from(NQ,(function(){throw 2}))}catch(tc){}var BQ=Array.isArray||function(e){return"Array"==TY(e)},IQ=function(){},FQ=[],PQ=YY("Reflect","construct"),RQ=/^\s*(?:class|function)\b/,LQ=DY(RQ.exec),_Q=!RQ.exec(IQ),jQ=function(e){if(!KY(e))return!1;try{return PQ(IQ,FQ,e),!0}catch(e){return!1}},MQ=!PQ||AY((function(){var e;return jQ(jQ.call)||!jQ(Object)||!jQ((function(){e=!0}))||e}))?function(e){if(!KY(e))return!1;switch($J(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _Q||!!LQ(RQ,bZ(e))}:jQ,zQ=lX("species"),HQ=bY.Array,UQ=function(e,t){return new(function(e){var t;return BQ(e)&&(t=e.constructor,(MQ(t)&&(t===HQ||BQ(t.prototype))||cX(t)&&null===(t=t[zQ]))&&(t=void 0)),void 0===t?HQ:t}(e))(0===t?0:t)},$Q=DY([].push),VQ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=HY(s),v=BY(h),g=hQ(l,c),y=VX(v),m=0,b=f||UQ,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:$Q(E,d)}else switch(e){case 4:return!1;case 7:$Q(E,d)}return i?-1:r||o?o:E}},GQ={forEach:VQ(0),map:VQ(1),filter:VQ(2),some:VQ(3),every:VQ(4),find:VQ(5),findIndex:VQ(6),filterReject:VQ(7)},WQ=dQ.getWeakData,qQ=RZ.set,KQ=RZ.getterFor,YQ=GQ.find,XQ=GQ.findIndex,ZQ=DY([].splice),JQ=0,QQ=function(e){return e.frozen||(e.frozen=new e0)},e0=function(){this.entries=[]},t0=function(e,t){return YQ(e.entries,(function(e){return e[0]===t}))};e0.prototype={get:function(e){var t=t0(this,e);if(t)return t[1]},has:function(e){return!!t0(this,e)},set:function(e,t){var n=t0(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=XQ(this.entries,(function(t){return t[0]===e}));return~t&&ZQ(this.entries,t,1),!!~t}};var n0,r0={getConstructor:function(e,t,n,r){var o=e((function(e,o){xQ(e,i),qQ(e,{type:t,id:JQ++,frozen:void 0}),null!=o&&DQ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=KQ(t),u=function(e,t,n){var r=a(e),o=WQ(pX(t),!0);return!0===o?QQ(r).set(t,n):o[r.id]=n,e};return nQ(i,{delete:function(e){var t=a(this);if(!cX(e))return!1;var n=WQ(e);return!0===n?QQ(t).delete(e):n&&$Y(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!cX(e))return!1;var n=WQ(e);return!0===n?QQ(t).has(e):n&&$Y(n,t.id)}}),nQ(i,n?{get:function(e){var t=a(this);if(cX(e)){var n=WQ(e);return!0===n?QQ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},o0=RZ.enforce,i0=!bY.ActiveXObject&&"ActiveXObject"in bY,a0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},u0=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=bY[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=DY(u[e]);GZ(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!cX(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!cX(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!cX(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(oJ(e,!KY(a)||!(o||u.forEach&&!AY((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),dQ.enable();else if(oJ(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=AY((function(){f.has(1)})),h=function(){if(!TQ)return!1;var e=!1;try{var t={};t[OQ]=function(){return{next:function(){return{done:e=!0}}}},function(e){new a(e)}(t)}catch(e){}return e}(),v=!o&&AY((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){xQ(e,u);var n=function(e,t,n){var r,o;return CJ&&KY(r=t.constructor)&&r!==n&&cX(o=r.prototype)&&o!==n.prototype&&CJ(e,o),e}(new a,e,s);return null!=t&&DQ(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,aJ({global:!0,forced:s!=a},l),mJ(s,e),o||n.setStrong(s,e,r),s}("WeakMap",a0,r0);if(wZ&&i0){n0=r0.getConstructor(a0,"WeakMap",!0),dQ.enable();var s0=u0.prototype,l0=DY(s0.delete),c0=DY(s0.has),f0=DY(s0.get),d0=DY(s0.set);nQ(s0,{delete:function(e){if(cX(e)&&!cQ(e)){var t=o0(this);return t.frozen||(t.frozen=new n0),l0(this,e)||t.frozen.delete(e)}return l0(this,e)},has:function(e){if(cX(e)&&!cQ(e)){var t=o0(this);return t.frozen||(t.frozen=new n0),c0(this,e)||t.frozen.has(e)}return c0(this,e)},get:function(e){if(cX(e)&&!cQ(e)){var t=o0(this);return t.frozen||(t.frozen=new n0),c0(this,e)?f0(this,e):t.frozen.get(e)}return f0(this,e)},set:function(e,t){if(cX(e)&&!cQ(e)){var n=o0(this);n.frozen||(n.frozen=new n0),c0(this,e)?d0(this,e,t):n.frozen.set(e,t)}else d0(this,e,t);return this}})}var p0={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},h0=yX("span").classList,v0=h0&&h0.constructor&&h0.constructor.prototype,g0=v0===Object.prototype?void 0:v0,y0=lX("iterator"),m0=lX("toStringTag"),b0=_J.values,E0=function(e,t){if(e){if(e[y0]!==b0)try{CZ(e,y0,b0)}catch(t){e[y0]=b0}if(e[m0]||CZ(e,m0,t),p0[t])for(var n in _J)if(e[n]!==_J[n])try{CZ(e,n,_J[n])}catch(t){e[n]=_J[n]}}};for(var w0 in p0)E0(bY[w0]&&bY[w0].prototype,w0);E0(g0,"DOMTokenList");var S0=new WeakMap,C0={type:"list-item",renderElem:function(e,t,n){S0.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var l=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a,s=1,l=t,c=XN.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=td.previous(c),d=Gf.node(e,f);if(null==d)break;var p=d[0],h=p.level,v=void 0===h?0:h,g=p.type,y=p.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e);s=l+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var c=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];gd.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return gg("div",{style:u},gg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),gg("span",null,t))}},D0=function(e,t){return D0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},D0(e,t)};function A0(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}D0(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function x0(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O0(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function T0(e,t,n){for(var r=t.type,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["type"]),i=void 0!==n?n:o.level||0,a=XN.findPath(e,t),u=a;;){if(0===u.length||0===a[a.length-1])return null;u=td.previous(u);var s=Gf.node(e,u);if(!s)return null;var l=O0(s,1)[0],c=l.level,f=void 0===c?0:c;if(XN.getNodeType(l)!==r)return null;if(f===i)return l}}function k0(e,t,n){var r=T0(e,t,n);return!!r&&r.ordered===t.ordered}function N0(e){return Gf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===XN.findPath(e,t).length}})}"function"==typeof SuppressedError&&SuppressedError;var B0=WX.includes;aJ({target:"Array",proto:!0},{includes:function(e){return B0(this,e,arguments.length>1?arguments[1]:void 0)}}),pZ("includes");var I0,F0,P0=function(){var e=pX(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},R0=bY.RegExp,L0=AY((function(){var e=R0("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),_0=L0||AY((function(){return!R0("a","y").sticky})),j0={BROKEN_CARET:L0||AY((function(){var e=R0("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:_0,UNSUPPORTED_Y:L0},M0=bY.RegExp,z0=AY((function(){var e=M0(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),H0=bY.RegExp,U0=AY((function(){var e=H0("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),$0=RZ.get,V0=MY("native-string-replace",String.prototype.replace),G0=RegExp.prototype.exec,W0=G0,q0=DY("".charAt),K0=DY("".indexOf),Y0=DY("".replace),X0=DY("".slice),Z0=(F0=/b*/g,EX(G0,I0=/a/,"a"),EX(G0,F0,"a"),0!==I0.lastIndex||0!==F0.lastIndex),J0=j0.BROKEN_CARET,Q0=void 0!==/()??/.exec("")[1];(Z0||Q0||J0||z0||U0)&&(W0=function(e){var t,n,r,o,i,a,u,s=this,l=$0(s),c=WJ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=EX(W0,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=J0&&s.sticky,h=EX(P0,s),v=s.source,g=0,y=c;if(p&&(h=Y0(h,"y",""),-1===K0(h,"g")&&(h+="g"),y=X0(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==q0(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Q0&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Z0&&(r=s.lastIndex),o=EX(G0,p?n:s,y),p?o?(o.input=X0(o.input,g),o[0]=X0(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Z0&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Q0&&o&&o.length>1&&EX(V0,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=cZ(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var e1=W0;aJ({target:"RegExp",proto:!0,forced:/./.exec!==e1},{exec:e1});var t1=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return XN.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!XN.getSelectedElems(e).some((function(t){if(Gf.isVoid(e,t)&&Gf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?Pd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):Pd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),n1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=eR("listModule.unOrderedList"),t.iconSvg='<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>',t}return A0(t,e),t}(t1),r1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=eR("listModule.orderedList"),t.iconSvg='<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>',t}return A0(t,e),t}(t1),o1={key:"bulletedList",factory:function(){return new n1}},i1={key:"numberedList",factory:function(){return new r1}},a1=[],u1={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=S0.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=XN.findPath(t,e);if(0===s[0])return u+1;var l=td.previous(s),c=Gf.node(t,l);if(!c)return 0;var f=O0(c,1)[0];if(XN.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?k0(t,e)?0:1:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",a1.push(i);var s=function(e){var t=S0.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=XN.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=td.next(s),c=Gf.node(t,l);if(!c)return 0;var f=O0(c,1)[0];if(XN.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?k0(t,f)?u-g:u-g+1:g>u?0:g===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+a1.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},s1=lX("species"),l1=GQ.filter,c1=nX>=51||!AY((function(){var e=[];return(e.constructor={})[s1]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));aJ({target:"Array",proto:!0,forced:!c1},{filter:function(e){return l1(this,e,arguments.length>1?arguments[1]:void 0)}});var f1=Function.prototype,d1=f1.apply,p1=f1.bind,h1=f1.call,v1="object"==typeof Reflect&&Reflect.apply||(p1?h1.bind(d1):function(){return h1.apply(d1,arguments)}),g1=(lX("species"),RegExp.prototype),y1=ZJ.charAt,m1=function(e,t,n){return t+(n?y1(e,t).length:1)},b1=Math.floor,E1=DY("".charAt),w1=DY("".replace),S1=DY("".slice),C1=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,D1=/\$([$&'`]|\d{1,2})/g,A1=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=D1;return void 0!==o&&(o=HY(o),s=C1),w1(i,s,(function(i,s){var l;switch(E1(s,0)){case"$":return"$";case"&":return e;case"`":return S1(t,0,n);case"'":return S1(t,a);case"<":l=o[S1(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=b1(c/10);return 0===f?i:f<=u?void 0===r[f-1]?E1(s,1):r[f-1]+E1(s,1):i}l=r[c-1]}return void 0===l?"":l}))},x1=bY.TypeError,O1=function(e,t){var n=e.exec;if(KY(n)){var r=EX(n,e,t);return null!==r&&pX(r),r}if("RegExp"===TY(e))return EX(e1,e,t);throw x1("RegExp#exec called on incompatible receiver")},T1=lX("replace"),k1=Math.max,N1=Math.min,B1=DY([].concat),I1=DY([].push),F1=DY("".indexOf),P1=DY("".slice),R1="$0"==="a".replace(/./,"$0"),L1=!!/./[T1]&&""===/./[T1]("a","$0");!function(e,t,n){var r=lX(e),o=!AY((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),i=o&&!AY((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e}));if(!o||!i||n){var a=DY(/./[r]),u=function(e,t,n){var r=L1?"$":"$0";return[function(e,n){var r=FY(this),o=null==e?void 0:TX(e,T1);return o?EX(o,e,r,n):EX(t,WJ(r),e,n)},function(e,o){var i=pX(this),a=WJ(e);if("string"==typeof o&&-1===F1(o,r)&&-1===F1(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=KY(o);s||(o=WJ(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=O1(i,a);if(null===d)break;if(I1(f,d),!l)break;""===WJ(d[0])&&(i.lastIndex=m1(a,$X(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=WJ((d=f[g])[0]),m=k1(N1(jX(d.index),a.length),0),b=[],E=1;E<d.length;E++)I1(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=B1([y],b,m,a);void 0!==w&&I1(S,w);var C=WJ(v1(o,void 0,S))}else C=A1(y,a,m,b,w,o);m>=v&&(h+=P1(a,v,m)+C,v=m+y.length)}return h+P1(a,v)}]}(0,""[e],(function(e,t,n,r,i){var u=DY(e),s=t.exec;return s===e1||s===g1.exec?o&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}}));GZ(String.prototype,e,u[0]),GZ(g1,r,u[1])}}("replace",0,!!AY((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!R1||L1);var _1=bY.TypeError,j1=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&hQ(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&BQ(s))l=VX(s),c=j1(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw _1("Exceed the acceptable array length");e[c]=s}c++}f++}return c},M1=j1;function z1(e){return e.length?e[0].tagName.toLowerCase():""}aJ({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=HY(this),n=VX(t),r=UQ(t,0);return r.length=M1(r,t,t,n,0,void 0===e?1:jX(e)),r}}),pZ("flat"),aJ({global:!0},{globalThis:bY}),Lh&&(hh.fn.append=Lh),mh&&(hh.fn.attr=mh),jh&&(hh.fn.parent=jh);var H1={renderElems:[C0],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e.insertBreak,i=e;return i.insertBreak=function(){var t=O0(Gf.nodes(e,{match:function(e){return XN.checkNodeType(e,"list-item")},universal:!0}),1)[0];return t?""!==t[0].children[0].text?o():void Pd.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0}):o()},i.deleteBackward=function(n){var r=i.selection;if(null!=r)if(ld.isExpanded(r))t(n);else{var o=XN.getSelectedNodeByType(i,"list-item");if(null!=o)if(0!==r.focus.offset)t(n);else{var a=o,u=a.level,s=void 0===u?0:u,l=a.ordered,c=void 0!==l&&l;if(s>0){var f=T0(e,o,s-1);f&&f.ordered!==c?Pd.setNodes(i,{level:s-1,ordered:!c}):Pd.setNodes(i,{level:s-1})}else Pd.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(n)}else t(n)},i.handleTab=function(){var e,t,r,o,a=i.selection;if(null!=a){if(ld.isCollapsed(a)){var u=XN.getSelectedNodeByType(i,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void Pd.setNodes(i,{level:l+1})}}if(ld.isExpanded(a)){var c=0,f=!1;try{for(var d=x0(N0(i)),p=d.next();!p.done;p=d.next()){var h=O0(p.value,1)[0];"list-item"===XN.getNodeType(h)?c++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var v=x0(N0(i)),g=v.next();!g.done;g=v.next()){var y=O0(g.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,Pd.setNodes(i,{level:l+1},{at:m})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}}else n()}else n()},i.normalizeNode=function(e){var t=O0(e,2),n=t[0],o=t[1],a=XN.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||Pd.unwrapNodes(i,{at:o}),r([n,o])},i},menus:[o1,i1],elemsToHtml:[u1],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hh(e);0===(t=t.filter((function(e){return!!gd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===z1(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=z1(n);"ul"===r||"ol"===r;)r=z1(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]};ZP("en",{tableModule:{modal:{border:"Border",borderWidth:"Width",bgColor:"Back color",align:"Text Align",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),ZP("zh-CN",{tableModule:{modal:{border:"边框",borderWidth:"宽度",bgColor:"背景色",align:"对齐方式",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var U1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function $1(e){var t={exports:{}};return e(t,t.exports),t.exports}var V1,G1,W1=function(e){return e&&e.Math==Math&&e},q1=W1("object"==typeof globalThis&&globalThis)||W1("object"==typeof window&&window)||W1("object"==typeof self&&self)||W1("object"==typeof U1&&U1)||function(){return this}()||Function("return this")(),K1=function(e){try{return!!e()}catch(e){return!0}},Y1=!K1((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),X1=Function.prototype.call,Z1=X1.bind?X1.bind(X1):function(){return X1.apply(X1,arguments)},J1={}.propertyIsEnumerable,Q1=Object.getOwnPropertyDescriptor,e2={f:Q1&&!J1.call({1:2},1)?function(e){var t=Q1(this,e);return!!t&&t.enumerable}:J1},t2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},n2=Function.prototype,r2=n2.bind,o2=n2.call,i2=r2&&r2.bind(o2),a2=r2?function(e){return e&&i2(o2,e)}:function(e){return e&&function(){return o2.apply(e,arguments)}},u2=a2({}.toString),s2=a2("".slice),l2=function(e){return s2(u2(e),8,-1)},c2=q1.Object,f2=a2("".split),d2=K1((function(){return!c2("z").propertyIsEnumerable(0)}))?function(e){return"String"==l2(e)?f2(e,""):c2(e)}:c2,p2=q1.TypeError,h2=function(e){if(null==e)throw p2("Can't call method on "+e);return e},v2=function(e){return d2(h2(e))},g2=function(e){return"function"==typeof e},y2=function(e){return"object"==typeof e?null!==e:g2(e)},m2=function(e,t){return arguments.length<2?(n=q1[e],g2(n)?n:void 0):q1[e]&&q1[e][t];var n},b2=a2({}.isPrototypeOf),E2=m2("navigator","userAgent")||"",w2=q1.process,S2=q1.Deno,C2=w2&&w2.versions||S2&&S2.version,D2=C2&&C2.v8;D2&&(G1=(V1=D2.split("."))[0]>0&&V1[0]<4?1:+(V1[0]+V1[1])),!G1&&E2&&(!(V1=E2.match(/Edge\/(\d+)/))||V1[1]>=74)&&(V1=E2.match(/Chrome\/(\d+)/))&&(G1=+V1[1]);var A2=G1,x2=!!Object.getOwnPropertySymbols&&!K1((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&A2&&A2<41})),O2=x2&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,T2=q1.Object,k2=O2?function(e){return"symbol"==typeof e}:function(e){var t=m2("Symbol");return g2(t)&&b2(t.prototype,T2(e))},N2=q1.String,B2=function(e){try{return N2(e)}catch(e){return"Object"}},I2=q1.TypeError,F2=function(e){if(g2(e))return e;throw I2(B2(e)+" is not a function")},P2=function(e,t){var n=e[t];return null==n?void 0:F2(n)},R2=q1.TypeError,L2=Object.defineProperty,_2=function(e,t){try{L2(q1,e,{value:t,configurable:!0,writable:!0})}catch(n){q1[e]=t}return t},j2="__core-js_shared__",M2=q1[j2]||_2(j2,{}),z2=$1((function(e){(e.exports=function(e,t){return M2[e]||(M2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),H2=q1.Object,U2=function(e){return H2(h2(e))},$2=a2({}.hasOwnProperty),V2=Object.hasOwn||function(e,t){return $2(U2(e),t)},G2=0,W2=Math.random(),q2=a2(1..toString),K2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+q2(++G2+W2,36)},Y2=z2("wks"),X2=q1.Symbol,Z2=X2&&X2.for,J2=O2?X2:X2&&X2.withoutSetter||K2,Q2=function(e){if(!V2(Y2,e)||!x2&&"string"!=typeof Y2[e]){var t="Symbol."+e;x2&&V2(X2,e)?Y2[e]=X2[e]:Y2[e]=O2&&Z2?Z2(t):J2(t)}return Y2[e]},e4=q1.TypeError,t4=Q2("toPrimitive"),n4=function(e){var t=function(e,t){if(!y2(e)||k2(e))return e;var n,r=P2(e,t4);if(r){if(void 0===t&&(t="default"),n=Z1(r,e,t),!y2(n)||k2(n))return n;throw e4("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&g2(n=e.toString)&&!y2(r=Z1(n,e)))return r;if(g2(n=e.valueOf)&&!y2(r=Z1(n,e)))return r;if("string"!==t&&g2(n=e.toString)&&!y2(r=Z1(n,e)))return r;throw R2("Can't convert object to primitive value")}(e,t)}(e,"string");return k2(t)?t:t+""},r4=q1.document,o4=y2(r4)&&y2(r4.createElement),i4=function(e){return o4?r4.createElement(e):{}},a4=!Y1&&!K1((function(){return 7!=Object.defineProperty(i4("div"),"a",{get:function(){return 7}}).a})),u4=Object.getOwnPropertyDescriptor,s4={f:Y1?u4:function(e,t){if(e=v2(e),t=n4(t),a4)try{return u4(e,t)}catch(e){}if(V2(e,t))return t2(!Z1(e2.f,e,t),e[t])}},l4=q1.String,c4=q1.TypeError,f4=function(e){if(y2(e))return e;throw c4(l4(e)+" is not an object")},d4=q1.TypeError,p4=Object.defineProperty,h4={f:Y1?p4:function(e,t,n){if(f4(e),t=n4(t),f4(n),a4)try{return p4(e,t,n)}catch(e){}if("get"in n||"set"in n)throw d4("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},v4=Y1?function(e,t,n){return h4.f(e,t,t2(1,n))}:function(e,t,n){return e[t]=n,e},g4=a2(Function.toString);g2(M2.inspectSource)||(M2.inspectSource=function(e){return g4(e)});var y4,m4,b4,E4=M2.inspectSource,w4=q1.WeakMap,S4=g2(w4)&&/native code/.test(E4(w4)),C4=z2("keys"),D4=function(e){return C4[e]||(C4[e]=K2(e))},A4={},x4="Object already initialized",O4=q1.TypeError,T4=q1.WeakMap;if(S4||M2.state){var k4=M2.state||(M2.state=new T4),N4=a2(k4.get),B4=a2(k4.has),I4=a2(k4.set);y4=function(e,t){if(B4(k4,e))throw new O4(x4);return t.facade=e,I4(k4,e,t),t},m4=function(e){return N4(k4,e)||{}},b4=function(e){return B4(k4,e)}}else{var F4=D4("state");A4[F4]=!0,y4=function(e,t){if(V2(e,F4))throw new O4(x4);return t.facade=e,v4(e,F4,t),t},m4=function(e){return V2(e,F4)?e[F4]:{}},b4=function(e){return V2(e,F4)}}var P4={set:y4,get:m4,has:b4,enforce:function(e){return b4(e)?m4(e):y4(e,{})},getterFor:function(e){return function(t){var n;if(!y2(t)||(n=m4(t)).type!==e)throw O4("Incompatible receiver, "+e+" required");return n}}},R4=Function.prototype,L4=Y1&&Object.getOwnPropertyDescriptor,_4=V2(R4,"name"),j4={EXISTS:_4,PROPER:_4&&"something"===function(){}.name,CONFIGURABLE:_4&&(!Y1||Y1&&L4(R4,"name").configurable)},M4=$1((function(e){var t=j4.CONFIGURABLE,n=P4.get,r=P4.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;g2(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!V2(i,"name")||t&&i.name!==f)&&v4(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==q1?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:v4(e,n,i)):l?e[n]=i:_2(n,i)})(Function.prototype,"toString",(function(){return g2(this)&&n(this).source||E4(this)}))})),z4=Math.ceil,H4=Math.floor,U4=function(e){var t=+e;return t!=t||0===t?0:(t>0?H4:z4)(t)},$4=Math.max,V4=Math.min,G4=function(e,t){var n=U4(e);return n<0?$4(n+t,0):V4(n,t)},W4=Math.min,q4=function(e){return e>0?W4(U4(e),9007199254740991):0},K4=function(e){return q4(e.length)},Y4=function(e){return function(t,n,r){var o,i=v2(t),a=K4(i),u=G4(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},X4={includes:Y4(!0),indexOf:Y4(!1)},Z4=X4.indexOf,J4=a2([].push),Q4=function(e,t){var n,r=v2(e),o=0,i=[];for(n in r)!V2(A4,n)&&V2(r,n)&&J4(i,n);for(;t.length>o;)V2(r,n=t[o++])&&(~Z4(i,n)||J4(i,n));return i},e6=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],t6=e6.concat("length","prototype"),n6={f:Object.getOwnPropertyNames||function(e){return Q4(e,t6)}},r6={f:Object.getOwnPropertySymbols},o6=a2([].concat),i6=m2("Reflect","ownKeys")||function(e){var t=n6.f(f4(e)),n=r6.f;return n?o6(t,n(e)):t},a6=function(e,t){for(var n=i6(t),r=h4.f,o=s4.f,i=0;i<n.length;i++){var a=n[i];V2(e,a)||r(e,a,o(t,a))}},u6=/#|\.prototype\./,s6=function(e,t){var n=c6[l6(e)];return n==d6||n!=f6&&(g2(t)?K1(t):!!t)},l6=s6.normalize=function(e){return String(e).replace(u6,".").toLowerCase()},c6=s6.data={},f6=s6.NATIVE="N",d6=s6.POLYFILL="P",p6=s6,h6=s4.f,v6=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?q1:l?q1[u]||_2(u,{}):(q1[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=h6(n,r))&&a.value:n[r],!p6(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;a6(i,o)}(e.sham||o&&o.sham)&&v4(i,"sham",!0),M4(n,r,i,e)}},g6={};g6[Q2("toStringTag")]="z";var y6="[object z]"===String(g6),m6=Q2("toStringTag"),b6=q1.Object,E6="Arguments"==l2(function(){return arguments}()),w6=y6?l2:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=b6(e),m6))?n:E6?l2(t):"Object"==(r=l2(t))&&g2(t.callee)?"Arguments":r},S6=q1.String,C6=function(e){if("Symbol"===w6(e))throw TypeError("Cannot convert a Symbol value to a string");return S6(e)},D6=/"/g,A6=a2("".replace);v6({target:"String",proto:!0,forced:K1((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=C6(h2(this)),r="<a",(r+=' name="'+A6(C6(t),D6,""")+'"')+">"+n+"</a>";var t,n,r}});var x6,O6=function(){var e=f4(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},T6=q1.RegExp,k6=K1((function(){var e=T6("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),N6=k6||K1((function(){return!T6("a","y").sticky})),B6={BROKEN_CARET:k6||K1((function(){var e=T6("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:N6,UNSUPPORTED_Y:k6},I6=Object.keys||function(e){return Q4(e,e6)},F6=Y1?Object.defineProperties:function(e,t){f4(e);for(var n,r=v2(t),o=I6(t),i=o.length,a=0;i>a;)h4.f(e,n=o[a++],r[n]);return e},P6=m2("document","documentElement"),R6="prototype",L6="script",_6=D4("IE_PROTO"),j6=function(){},M6=function(e){return"<"+L6+">"+e+"</"+L6+">"},z6=function(e){e.write(M6("")),e.close();var t=e.parentWindow.Object;return e=null,t},H6=function(){try{x6=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;H6="undefined"!=typeof document?document.domain&&x6?z6(x6):(t=i4("iframe"),n="java"+L6+":",t.style.display="none",P6.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(M6("document.F=Object")),e.close(),e.F):z6(x6);for(var r=e6.length;r--;)delete H6[R6][e6[r]];return H6()};A4[_6]=!0;var U6,$6,V6=Object.create||function(e,t){var n;return null!==e?(j6[R6]=f4(e),n=new j6,j6[R6]=null,n[_6]=e):n=H6(),void 0===t?n:F6(n,t)},G6=q1.RegExp,W6=K1((function(){var e=G6(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),q6=q1.RegExp,K6=K1((function(){var e=q6("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Y6=P4.get,X6=z2("native-string-replace",String.prototype.replace),Z6=RegExp.prototype.exec,J6=Z6,Q6=a2("".charAt),e3=a2("".indexOf),t3=a2("".replace),n3=a2("".slice),r3=($6=/b*/g,Z1(Z6,U6=/a/,"a"),Z1(Z6,$6,"a"),0!==U6.lastIndex||0!==$6.lastIndex),o3=B6.BROKEN_CARET,i3=void 0!==/()??/.exec("")[1];(r3||i3||o3||W6||K6)&&(J6=function(e){var t,n,r,o,i,a,u,s=this,l=Y6(s),c=C6(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Z1(J6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=o3&&s.sticky,h=Z1(O6,s),v=s.source,g=0,y=c;if(p&&(h=t3(h,"y",""),-1===e3(h,"g")&&(h+="g"),y=n3(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Q6(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),i3&&(n=new RegExp("^"+v+"$(?!\\s)",h)),r3&&(r=s.lastIndex),o=Z1(Z6,p?n:s,y),p?o?(o.input=n3(o.input,g),o[0]=n3(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:r3&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),i3&&o&&o.length>1&&Z1(X6,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=V6(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var a3=J6;v6({target:"RegExp",proto:!0,forced:/./.exec!==a3},{exec:a3});var u3=Array.isArray||function(e){return"Array"==l2(e)},s3=function(){},l3=[],c3=m2("Reflect","construct"),f3=/^\s*(?:class|function)\b/,d3=a2(f3.exec),p3=!f3.exec(s3),h3=function(e){if(!g2(e))return!1;try{return c3(s3,l3,e),!0}catch(e){return!1}},v3=!c3||K1((function(){var e;return h3(h3.call)||!h3(Object)||!h3((function(){e=!0}))||e}))?function(e){if(!g2(e))return!1;switch(w6(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p3||!!d3(f3,E4(e))}:h3,g3=function(e,t,n){var r=n4(t);r in e?h4.f(e,r,t2(0,n)):e[r]=n},y3=Q2("species"),m3=function(e){return A2>=51||!K1((function(){var t=[];return(t.constructor={})[y3]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},b3=a2([].slice),E3=m3("slice"),w3=Q2("species"),S3=q1.Array,C3=Math.max;v6({target:"Array",proto:!0,forced:!E3},{slice:function(e,t){var n,r,o,i=v2(this),a=K4(i),u=G4(e,a),s=G4(void 0===t?a:t,a);if(u3(i)&&(n=i.constructor,(v3(n)&&(n===S3||u3(n.prototype))||y2(n)&&null===(n=n[w3]))&&(n=void 0),n===S3||void 0===n))return b3(i,u,s);for(r=new(void 0===n?S3:n)(C3(s-u,0)),o=0;u<s;u++,o++)u in i&&g3(r,o,i[u]);return r.length=o,r}});var D3=function(e,t){return D3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},D3(e,t)},A3=function(){return A3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},A3.apply(this,arguments)};function x3(e,t){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)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function O3(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function T3(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function k3(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var N3=Q2("unscopables"),B3=Array.prototype;null==B3[N3]&&h4.f(B3,N3,{configurable:!0,value:V6(null)});var I3,F3,P3,R3=function(e){B3[N3][e]=!0},L3={},_3=!K1((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),j3=D4("IE_PROTO"),M3=q1.Object,z3=M3.prototype,H3=_3?M3.getPrototypeOf:function(e){var t=U2(e);if(V2(t,j3))return t[j3];var n=t.constructor;return g2(n)&&t instanceof n?n.prototype:t instanceof M3?z3:null},U3=Q2("iterator"),$3=!1;[].keys&&("next"in(P3=[].keys())?(F3=H3(H3(P3)))!==Object.prototype&&(I3=F3):$3=!0);var V3=null==I3||K1((function(){var e={};return I3[U3].call(e)!==e}));V3&&(I3={}),g2(I3[U3])||M4(I3,U3,(function(){return this}));var G3={IteratorPrototype:I3,BUGGY_SAFARI_ITERATORS:$3},W3=h4.f,q3=Q2("toStringTag"),K3=function(e,t,n){e&&!V2(e=n?e:e.prototype,q3)&&W3(e,q3,{configurable:!0,value:t})},Y3=G3.IteratorPrototype,X3=function(){return this},Z3=q1.String,J3=q1.TypeError,Q3=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=a2(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return f4(n),function(e){if("object"==typeof e||g2(e))return e;throw J3("Can't set "+Z3(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),e5=j4.PROPER,t5=j4.CONFIGURABLE,n5=G3.IteratorPrototype,r5=G3.BUGGY_SAFARI_ITERATORS,o5=Q2("iterator"),i5="keys",a5="values",u5="entries",s5=function(){return this},l5=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=V6(Y3,{next:t2(1,n)}),K3(e,r,!1),L3[r]=X3}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!r5&&e in p)return p[e];switch(e){case i5:case a5:case u5:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[o5]||p["@@iterator"]||o&&p[o],v=!r5&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=H3(g.call(new e)))!==Object.prototype&&u.next&&(H3(u)!==n5&&(Q3?Q3(u,n5):g2(u[o5])||M4(u,o5,s5)),K3(u,f,!0)),e5&&o==a5&&h&&h.name!==a5&&(t5?v4(p,"name",a5):(d=!0,v=function(){return Z1(h,this)})),o)if(s={values:c(a5),keys:i?v:c(i5),entries:c(u5)},a)for(l in s)(r5||d||!(l in p))&&M4(p,l,s[l]);else v6({target:t,proto:!0,forced:r5||d},s);return p[o5]!==v&&M4(p,o5,v,{name:o}),L3[t]=v,s},c5="Array Iterator",f5=P4.set,d5=P4.getterFor(c5),p5=l5(Array,"Array",(function(e,t){f5(this,{type:c5,target:v2(e),index:0,kind:t})}),(function(){var e=d5(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");L3.Arguments=L3.Array,R3("keys"),R3("values"),R3("entries");var h5=y6?{}.toString:function(){return"[object "+w6(this)+"]"};y6||M4(Object.prototype,"toString",h5,{unsafe:!0});var v5=a2("".charAt),g5=a2("".charCodeAt),y5=a2("".slice),m5=function(e){return function(t,n){var r,o,i=C6(h2(t)),a=U4(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=g5(i,a))<55296||r>56319||a+1===u||(o=g5(i,a+1))<56320||o>57343?e?v5(i,a):r:e?y5(i,a,a+2):o-56320+(r-55296<<10)+65536}},b5={codeAt:m5(!1),charAt:m5(!0)},E5=b5.charAt,w5="String Iterator",S5=P4.set,C5=P4.getterFor(w5);l5(String,"String",(function(e){S5(this,{type:w5,string:C6(e),index:0})}),(function(){var e,t=C5(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=E5(n,r),t.index+=e.length,{value:e,done:!1})}));var D5=q1.Array,A5=Math.max,x5=function(e,t,n){for(var r=K4(e),o=G4(t,r),i=G4(void 0===n?r:n,r),a=D5(A5(i-o,0)),u=0;o<i;o++,u++)g3(a,u,e[o]);return a.length=u,a},O5=n6.f,T5="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],k5={f:function(e){return T5&&"Window"==l2(e)?function(e){try{return O5(e)}catch(e){return x5(T5)}}(e):O5(v2(e))}},N5=K1((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),B5=Object.isExtensible,I5=K1((function(){B5(1)}))||N5?function(e){return!!y2(e)&&(!N5||"ArrayBuffer"!=l2(e))&&(!B5||B5(e))}:B5,F5=!K1((function(){return Object.isExtensible(Object.preventExtensions({}))})),P5=$1((function(e){var t=h4.f,n=!1,r=K2("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=n6.f,t=a2([].splice),o={};o[r]=1,e(o).length&&(n6.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},v6({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:k5.f}))},fastKey:function(e,t){if(!y2(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!V2(e,r)){if(!I5(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!V2(e,r)){if(!I5(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return F5&&n&&I5(e)&&!V2(e,r)&&i(e),e}};A4[r]=!0})),R5=a2(a2.bind),L5=function(e,t){return F2(e),void 0===t?e:R5?R5(e,t):function(){return e.apply(t,arguments)}},_5=Q2("iterator"),j5=Array.prototype,M5=function(e){return void 0!==e&&(L3.Array===e||j5[_5]===e)},z5=Q2("iterator"),H5=function(e){if(null!=e)return P2(e,z5)||P2(e,"@@iterator")||L3[w6(e)]},U5=q1.TypeError,$5=function(e,t){var n=arguments.length<2?H5(e):t;if(F2(n))return f4(Z1(n,e));throw U5(B2(e)+" is not iterable")},V5=function(e,t,n){var r,o;f4(e);try{if(!(r=P2(e,"return"))){if("throw"===t)throw n;return n}r=Z1(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return f4(r),n},G5=q1.TypeError,W5=function(e,t){this.stopped=e,this.result=t},q5=W5.prototype,K5=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=L5(t,c),v=function(e){return r&&V5(r,"normal",e),new W5(!0,e)},g=function(e){return f?(f4(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=H5(e)))throw G5(B2(e)+" is not iterable");if(M5(o)){for(i=0,a=K4(e);a>i;i++)if((u=g(e[i]))&&b2(q5,u))return u;return new W5(!1)}r=$5(e,o)}for(s=r.next;!(l=Z1(s,r)).done;){try{u=g(l.value)}catch(e){V5(r,"throw",e)}if("object"==typeof u&&u&&b2(q5,u))return u}return new W5(!1)},Y5=q1.TypeError,X5=function(e,t){if(b2(t,e))return e;throw Y5("Incorrect invocation")},Z5=Q2("iterator"),J5=!1;try{var Q5=0,e8={next:function(){return{done:!!Q5++}},return:function(){J5=!0}};e8[Z5]=function(){return this},Array.from(e8,(function(){throw 2}))}catch(BN){}var t8=function(e,t){if(!t&&!J5)return!1;var n=!1;try{var r={};r[Z5]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},n8=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=q1[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=a2(u[e]);M4(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!y2(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!y2(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!y2(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(p6(e,!g2(a)||!(o||u.forEach&&!K1((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),P5.enable();else if(p6(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=K1((function(){f.has(1)})),h=t8((function(e){new a(e)})),v=!o&&K1((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){X5(e,u);var n=function(e,t,n){var r,o;return Q3&&g2(r=t.constructor)&&r!==n&&y2(o=r.prototype)&&o!==n.prototype&&Q3(e,o),e}(new a,e,s);return null!=t&&K5(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,v6({global:!0,forced:s!=a},l),K3(s,e),o||n.setStrong(s,e,r),s},r8=function(e,t,n){for(var r in t)M4(e,r,t[r],n);return e},o8=Q2("species"),i8=q1.Array,a8=function(e,t){return new(function(e){var t;return u3(e)&&(t=e.constructor,(v3(t)&&(t===i8||u3(t.prototype))||y2(t)&&null===(t=t[o8]))&&(t=void 0)),void 0===t?i8:t}(e))(0===t?0:t)},u8=a2([].push),s8=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=U2(s),v=d2(h),g=L5(l,c),y=K4(v),m=0,b=f||a8,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:u8(E,d)}else switch(e){case 4:return!1;case 7:u8(E,d)}return i?-1:r||o?o:E}},l8={forEach:s8(0),map:s8(1),filter:s8(2),some:s8(3),every:s8(4),find:s8(5),findIndex:s8(6),filterReject:s8(7)},c8=P5.getWeakData,f8=P4.set,d8=P4.getterFor,p8=l8.find,h8=l8.findIndex,v8=a2([].splice),g8=0,y8=function(e){return e.frozen||(e.frozen=new m8)},m8=function(){this.entries=[]},b8=function(e,t){return p8(e.entries,(function(e){return e[0]===t}))};m8.prototype={get:function(e){var t=b8(this,e);if(t)return t[1]},has:function(e){return!!b8(this,e)},set:function(e,t){var n=b8(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=h8(this.entries,(function(t){return t[0]===e}));return~t&&v8(this.entries,t,1),!!~t}};var E8={getConstructor:function(e,t,n,r){var o=e((function(e,o){X5(e,i),f8(e,{type:t,id:g8++,frozen:void 0}),null!=o&&K5(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=d8(t),u=function(e,t,n){var r=a(e),o=c8(f4(t),!0);return!0===o?y8(r).set(t,n):o[r.id]=n,e};return r8(i,{delete:function(e){var t=a(this);if(!y2(e))return!1;var n=c8(e);return!0===n?y8(t).delete(e):n&&V2(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!y2(e))return!1;var n=c8(e);return!0===n?y8(t).has(e):n&&V2(n,t.id)}}),r8(i,n?{get:function(e){var t=a(this);if(y2(e)){var n=c8(e);return!0===n?y8(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}};n8("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),E8);var w8={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},S8=i4("span").classList,C8=S8&&S8.constructor&&S8.constructor.prototype,D8=C8===Object.prototype?void 0:C8,A8=Q2("iterator"),x8=Q2("toStringTag"),O8=p5.values,T8=function(e,t){if(e){if(e[A8]!==O8)try{v4(e,A8,O8)}catch(t){e[A8]=O8}if(e[x8]||v4(e,x8,t),w8[t])for(var n in p5)if(e[n]!==p5[n])try{v4(e,n,p5[n])}catch(t){e[n]=p5[n]}}};for(var k8 in w8)T8(q1[k8]&&q1[k8].prototype,k8);T8(D8,"DOMTokenList");var N8,B8=P4.enforce,I8=!q1.ActiveXObject&&"ActiveXObject"in q1,F8=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},P8=n8("WeakMap",F8,E8);if(S4&&I8){N8=E8.getConstructor(F8,"WeakMap",!0),P5.enable();var R8=P8.prototype,L8=a2(R8.delete),_8=a2(R8.has),j8=a2(R8.get),M8=a2(R8.set);r8(R8,{delete:function(e){if(y2(e)&&!I5(e)){var t=B8(this);return t.frozen||(t.frozen=new N8),L8(this,e)||t.frozen.delete(e)}return L8(this,e)},has:function(e){if(y2(e)&&!I5(e)){var t=B8(this);return t.frozen||(t.frozen=new N8),_8(this,e)||t.frozen.has(e)}return _8(this,e)},get:function(e){if(y2(e)&&!I5(e)){var t=B8(this);return t.frozen||(t.frozen=new N8),_8(this,e)?j8(this,e):t.frozen.get(e)}return j8(this,e)},set:function(e,t){if(y2(e)&&!I5(e)){var n=B8(this);n.frozen||(n.frozen=new N8),_8(this,e)?M8(this,e,t):n.frozen.set(e,t)}else M8(this,e,t);return this}})}var z8=new WeakMap,H8=new WeakMap,U8=l8.map,$8=m3("map");v6({target:"Array",proto:!0,forced:!$8},{map:function(e){return U8(this,e,arguments.length>1?arguments[1]:void 0)}});var V8=X4.includes;v6({target:"Array",proto:!0},{includes:function(e){return V8(this,e,arguments.length>1?arguments[1]:void 0)}}),R3("includes");var G8=Q2("match"),W8=function(e){var t;return y2(e)&&(void 0!==(t=e[G8])?!!t:"RegExp"==l2(e))},q8=q1.TypeError,K8=Q2("match"),Y8=a2("".indexOf);v6({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[K8]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~Y8(C6(h2(this)),C6(function(e){if(W8(e))throw q8("The method doesn't accept regular expressions");return e}(e)),arguments.length>1?arguments[1]:void 0)}});var X8={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function Z8(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=X8,o=t.map((function(e){var t;return null===(t=null==r?void 0:r.blocks)||void 0===t?void 0:t[e]}));return function(e){return function(e){return!Gf.isEditor(e)&&Mf.isElement(e)&&"type"in e}(e)&&o.includes(e.type)}}function J8(e,t){for(var n=T3(t,2),r=n[0],o=n[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=T3(Zf.common(e,r,o),2),s=u[0],l=u[1];return!!Z8.apply(void 0,k3([e],T3(i)))(s,l)||!!Gf.above(e,{match:Z8.apply(void 0,k3([e],T3(i))),at:l})}function Q8(e,t){var n,r;void 0===t&&(t={});var o=[];try{for(var i=O3(function(e,t){var n,r,o,i,a,u,s,l,c,f,d,p,h,v,g,y,m,b;return void 0===t&&(t={}),x3(this,(function(E){switch(E.label){case 0:if(n=T3(Gf.nodes(e,{match:Z8(e,"table"),at:t.at}),1),!(r=n[0]))return[2,[]];o=T3(r,2),i=o[1],E.label=1;case 1:E.trys.push([1,6,7,8]),a=O3(Gf.nodes(e,{match:Z8(e,"table"),at:i})),u=a.next(),E.label=2;case 2:if(u.done)return[3,5];s=T3(u.value,2),l=s[1],c=[];try{for(m=void 0,f=O3(Gf.nodes(e,{match:Z8(e,"tr"),at:l})),d=f.next();!d.done;d=f.next())p=T3(d.value,2),h=p[1],c.push(k3([],T3(Gf.nodes(e,{match:Z8(e,"th","td"),at:h}))))}catch(e){m={error:e}}finally{try{d&&!d.done&&(b=f.return)&&b.call(f)}finally{if(m)throw m.error}}return[4,c];case 3:E.sent(),E.label=4;case 4:return u=a.next(),[3,2];case 5:return[3,8];case 6:return v=E.sent(),g={error:v},[3,8];case 7:try{u&&!u.done&&(y=a.return)&&y.call(a)}finally{if(g)throw g.error}return[7];case 8:return[2]}}))}(e,{at:t.at})),a=i.next();!a.done;a=i.next()){for(var u=a.value,s=[],l=0;l<u.length;l++){s[l]||(s[l]=[]);for(var c=0;c<u[l].length;c++)for(var f=T3(u[l][c],1)[0],d=f.rowSpan,p=void 0===d?1:d,h=f.colSpan,v=void 0===h?1:h,g=0;g<v+0;g++)for(var y=0;y<p;y++)s[l+y]||(s[l+y]=[]),s[l+y][c+g]||(s[l+y][c+g]=[u[l+y][c+g],{rtl:g-0+1,ltr:v-g+0,ttb:y+1,btt:p-y}])}o.push.apply(o,k3([],T3(s)))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var e7=function(){function e(e,t){this.x=e,this.y=t}return e.valueOf=function(e,t){return new this(e,t)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}(),t7={isInTable:function(e,t){return void 0===t&&(t={}),!!T3(Gf.nodes(e,{match:Z8(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,n,r,o,i,a,u,s;return x3(this,(function(l){switch(l.label){case 0:t=z8.get(e),n=0,l.label=1;case 1:if(!(t&&n<t.length))return[3,4];for(r=[],o=0;o<t[n].length;o++)i=T3(t[n][o],2),a=i[0],u=i[1],s=u.ltr,1===u.ttb&&r.push(a),o+=s-1;return[4,r];case 2:l.sent(),l.label=3;case 3:return n++,[3,1];case 4:return[2]}}))},unselect:function(e){H8.delete(e),z8.delete(e)},isSelected:function(e,t){var n=H8.get(e);return!!n&&n.has(t)}};function n7(e){var t=e.selection;if(null==t)return!1;var n=T3(Gf.nodes(e,{match:function(e){return XN.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=T3(n,2)[1],o=Gf.start(e,r);if(id.equals(t.anchor,o))return!0}return!1}var r7=l8.find,o7="find",i7=!0;o7 in[]&&Array(1)[o7]((function(){i7=!1})),v6({target:"Array",proto:!0,forced:i7},{find:function(e){return r7(this,e,arguments.length>1?arguments[1]:void 0)}}),R3(o7);var a7=Function.prototype,u7=a7.apply,s7=a7.bind,l7=a7.call,c7="object"==typeof Reflect&&Reflect.apply||(s7?l7.bind(u7):function(){return l7.apply(u7,arguments)}),f7=Q2("species"),d7=RegExp.prototype,p7=function(e,t,n,r){var o=Q2(e),i=!K1((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!K1((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[f7]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=a2(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=a2(e),s=t.exec;return s===a3||s===d7.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));M4(String.prototype,e,s[0]),M4(d7,o,s[1])}r&&v4(d7[o],"sham",!0)},h7=q1.TypeError,v7=Q2("species"),g7=b5.charAt,y7=function(e,t,n){return t+(n?g7(e,t).length:1)},m7=q1.TypeError,b7=function(e,t){var n=e.exec;if(g2(n)){var r=Z1(n,e,t);return null!==r&&f4(r),r}if("RegExp"===l2(e))return Z1(a3,e,t);throw m7("RegExp#exec called on incompatible receiver")},E7=B6.UNSUPPORTED_Y,w7=4294967295,S7=Math.min,C7=[].push,D7=a2(/./.exec),A7=a2(C7),x7=a2("".slice);p7("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=C6(h2(this)),o=void 0===n?w7:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!W8(e))return Z1(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=Z1(a3,f,r))&&!((a=f.lastIndex)>c&&(A7(s,x7(r,c,i.index)),i.length>1&&i.index<r.length&&c7(C7,s,x5(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&D7(f,"")||A7(s,""):A7(s,x7(r,c)),s.length>o?x5(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Z1(t,this,e,n)}:t,[function(t,n){var o=h2(this),i=null==t?void 0:P2(t,e);return i?Z1(i,t,o,n):Z1(r,C6(o),t,n)},function(e,o){var i=f4(this),a=C6(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=f4(e).constructor;return void 0===r||null==(n=f4(r)[v7])?t:function(e){if(v3(e))return e;throw h7(B2(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(E7?"g":"y"),f=new s(E7?"^(?:"+i.source+")":i,c),d=void 0===o?w7:o>>>0;if(0===d)return[];if(0===a.length)return null===b7(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=E7?0:h;var g,y=b7(f,E7?x7(a,h):a);if(null===y||(g=S7(q4(f.lastIndex+(E7?h:0)),a.length))===p)h=y7(a,h,l);else{if(A7(v,x7(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(A7(v,y[m]),v.length===d)return v;h=p=g}}return A7(v,x7(a,p)),v}]}),!!K1((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),E7);var O7="\t\n\v\f\r \u2028\u2029\ufeff",T7=a2("".replace),k7="["+O7+"]",N7=RegExp("^"+k7+k7+"*"),B7=RegExp(k7+k7+"*$"),I7=function(e){return function(t){var n=C6(h2(t));return 1&e&&(n=T7(n,N7,"")),2&e&&(n=T7(n,B7,"")),n}},F7={start:I7(1),end:I7(2),trim:I7(3)},P7=j4.PROPER,R7=F7.trim;function L7(e){return e.length?e[0].tagName.toLowerCase():""}function _7(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}v6({target:"String",proto:!0,forced:function(e){return K1((function(){return!!O7[e]()||"
"!=="
"[e]()||P7&&O7[e].name!==e}))}("trim")},{trim:function(){return R7(this)}}),v6({global:!0},{globalThis:q1}),Lh&&(hh.fn.append=Lh),Ch&&(hh.fn.on=Ch),qh&&(hh.fn.focus=qh),mh&&(hh.fn.attr=mh),Sh&&(hh.fn.val=Sh),Fh&&(hh.fn.html=Fh),wh&&(hh.fn.dataset=wh),vh&&(hh.fn.addClass=vh),gh&&(hh.fn.removeClass=gh),Hh&&(hh.fn.children=Hh),Bh&&(hh.fn.each=Bh),zh&&(hh.fn.find=zh),Eh&&(hh.fn.data=Eh),Th&&(hh.fn.hide=Th),kh&&(hh.fn.show=kh);var j7=null,M7=!1,z7=!1,H7=0,U7=0,$7=null,V7=hh(window);V7.on("mousedown",(function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))M7=!0;else if("DIV"==t.tagName&&t.closest(".column-resizer-item")){if(null==$7)return;var n=T3(Gf.nodes($7,{match:Z8($7,"table")}),1),r=T3(n[0],1)[0],o=r.width,i=void 0===o?"auto":o,a=r.columnWidths,u=void 0===a?[]:a,s=r.resizingIndex,l=void 0===s?-1:s;if("100%"==i)return;z7=!0;var c=e.clientX;H7=c,U7=u[l],document.body.style.cursor="col-resize",e.preventDefault()}V7.on("mousemove",G7),V7.on("mouseup",W7)}));var G7=Lv((function(e){if(z7&&null!=$7){e.preventDefault();var t=e.clientX,n=U7+(t-H7);(n=Math.floor(100*n)/100)<30&&(n=30);var r=T3(Gf.nodes($7,{match:Z8($7,"table")}),1),o=T3(r[0],1)[0],i=o.columnWidths,a=void 0===i?[]:i,u=o.resizingIndex,s=void 0===u?-1:u,l=o.scrollWidth,c=void 0===l?0:l,f=a.reduce((function(e,t){return e+t}),0),d=f-a[s];f>c&&d+n>c&&(n=c-d+.5);var p=k3([],T3(a)).map((function(e){return Math.floor(e)}));p[s]=n,Pd.setNodes($7,{columnWidths:p},{mode:"highest"})}}),100);function W7(e){M7=!1,z7=!1,$7=null,document.body.style.cursor="",V7.off("mousemove",G7),V7.off("mouseup",W7)}function q7(e,t){"mouseenter"===t.type?Pd.setNodes(e,{isResizing:!0},{mode:"highest"}):Pd.setNodes(e,{isResizing:!1},{mode:"highest"})}function K7(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function Y7(e){return K7(e).every((function(e){return!!e.isHeader}))}var X7={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(ld.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=XN.findPath(e,t),a=Gf.start(e,i),u=Gf.end(e,i),s=id.compare(r,u)<=0&&id.compare(r,a)>=0,l=id.compare(o,u)<=0&&id.compare(o,a)>=0;return!!(s&&l&&td.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e,i=o.width,a=void 0===i?"auto":i,u=o.height,s=o.columnWidths,l=void 0===s?[]:s,c=o.scrollWidth,f=void 0===c?0:c,d=o.isHoverCellBorder,p=o.resizingIndex,h=o.isResizing,v=XN.isNodeSelected(n,e),g=T3(t7.selection(n),1)[0],y=function(e){var t,n,r=[],o=e.reduce((function(e,t){return e+t}),0);try{for(var i=O3(e),a=i.next();!a.done;a=i.next()){var u=a.value;r.push(u/o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(l),m=gg("div",{className:"table-container","data-selected":v,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){t.target.closest('[data-block-type="table-cell"]')&&t7.unselect(n);var r=XN.findPath(n,e),o=Gf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},gg("table",{width:a,contentEditable:r,className:"table "+(g?"table-selection-none":""),style:{width:"100%"==a?"":l.reduce((function(e,t){return e+t}),0)+"px"},on:{mousemove:Xy((function(t){return function(e,t,n){if(!e.isDisabled()&&!M7&&!z7){var r=t,o=r.width,i=void 0===o?"auto":o,a=r.columnWidths,u=void 0===a?[]:a,s=r.isHoverCellBorder,l=r.resizingIndex;if("100%"!=i){var c=n.clientX,f=n.target;if(f instanceof HTMLElement&&c>(h=f.getBoundingClientRect()).x+5&&c<h.x+h.width-5)return void(s&&Pd.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(f instanceof HTMLElement){var d=f.closest(".table");if(d)for(var p=n.clientX,h=d.getBoundingClientRect(),v=function(e){var t,n,r=[],o=0;try{for(var i=O3(e),a=i.next();!a.done;a=i.next())o+=a.value,r.push(o)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(u),g=0;g<v.length;g++)if(p-h.x>=v[g]-5&&p-h.x<v[g]+5){if(l==g)return;return void Pd.setNodes(e,{isHoverCellBorder:!0,resizingIndex:g},{mode:"highest"})}}1==s&&Pd.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}}(n,e,t)}),25)}},gg("colgroup",{contentEditable:!1},l.map((function(e){return gg("col",{width:e})}))),gg("tbody",null,t)),gg("div",{className:"column-resizer",contenteditable:"false"},l.map((function(e,t){var r=e;return"100%"==a&&(r=y[t]*f),gg("div",{className:"column-resizer-item",style:{minWidth:r+"px"}},gg("div",{className:"resizer-line-hotzone "+(d&&t==p?"visible ":"")+(h&&t==p?"highlight":""),style:{height:u+"px"},on:{mouseenter:function(e){return q7(n,e)},mouseleave:function(e){return q7(n,e)},mousedown:function(e){return function(e){z7||($7=e)}(n)}}},gg("div",{className:"resizer-line"})))})))),b=Yv("div",{hook:{insert:function(e){var t=e.elm;return function(e,t){if(t instanceof HTMLElement){var n=t.querySelector("table");n&&(j7=new ResizeObserver((function(t){var n=T3(t,1)[0].contentRect;Pd.setNodes(e,{scrollWidth:n.width,height:n.height},{mode:"highest"})}))).observe(n)}}(n,t)},destroy:function(){j7&&(null==j7||j7.disconnect(),j7=null)}}},m);return b}},Z7={type:"table-row",renderElem:function(e,t,n){return gg("tr",null,t)}},J7={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=XN.getParentNode(e,t);if(null==n)return!1;var r=XN.getParentNode(e,n);return null!=r&&K7(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader,c=void 0!==l&&l,f=o.hidden,d=void 0!==f&&f;return gg(r&&c?"th":"td",{colSpan:a,rowSpan:s,"data-block-type":"table-cell",className:t7.isSelected(n,e)?"w-e-selected":"",style:{display:d?"none":""}},t)}},Q7=function(e,t){var n=[][e];return!!n&&K1((function(){n.call(null,t||function(){throw 1},1)}))},e9=a2([].join),t9=d2!=Object,n9=Q7("join",",");v6({target:"Array",proto:!0,forced:t9||!n9},{join:function(e){return e9(v2(this),void 0===e?",":e)}});var r9={selector:"table",preParseHtml:function(e){var t=hh(e);if("table"!==L7(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},o9=Object.assign,i9=Object.defineProperty,a9=a2([].concat),u9=!o9||K1((function(){if(Y1&&1!==o9({b:1},o9(i9({},"a",{enumerable:!0,get:function(){i9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=o9({},e)[n]||I6(o9({},t)).join("")!=r}))?function(e,t){for(var n=U2(e),r=arguments.length,o=1,i=r6.f,a=e2.f;r>o;)for(var u,s=d2(arguments[o++]),l=i?a9(I6(s),i(s)):I6(s),c=l.length,f=0;c>f;)u=l[f++],Y1&&!Z1(a,s,u)||(n[u]=s[u]);return n}:o9;function s9(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}v6({target:"Object",stat:!0,forced:Object.assign!==u9},{assign:u9});var l9=Math.floor,c9=a2("".charAt),f9=a2("".replace),d9=a2("".slice),p9=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,h9=/\$([$&'`]|\d{1,2})/g,v9=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=h9;return void 0!==o&&(o=U2(o),s=p9),f9(i,s,(function(i,s){var l;switch(c9(s,0)){case"$":return"$";case"&":return e;case"`":return d9(t,0,n);case"'":return d9(t,a);case"<":l=o[d9(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=l9(c/10);return 0===f?i:f<=u?void 0===r[f-1]?c9(s,1):r[f-1]+c9(s,1):i}l=r[c-1]}return void 0===l?"":l}))},g9=Q2("replace"),y9=Math.max,m9=Math.min,b9=a2([].concat),E9=a2([].push),w9=a2("".indexOf),S9=a2("".slice),C9="$0"==="a".replace(/./,"$0"),D9=!!/./[g9]&&""===/./[g9]("a","$0");p7("replace",(function(e,t,n){var r=D9?"$":"$0";return[function(e,n){var r=h2(this),o=null==e?void 0:P2(e,g9);return o?Z1(o,e,r,n):Z1(t,C6(r),e,n)},function(e,o){var i=f4(this),a=C6(e);if("string"==typeof o&&-1===w9(o,r)&&-1===w9(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=g2(o);s||(o=C6(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=b7(i,a);if(null===d)break;if(E9(f,d),!l)break;""===C6(d[0])&&(i.lastIndex=y7(a,q4(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=C6((d=f[g])[0]),m=y9(m9(U4(d.index),a.length),0),b=[],E=1;E<d.length;E++)E9(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=b9([y],b,m,a);void 0!==w&&E9(S,w);var C=C6(c7(o,void 0,S))}else C=v9(y,a,m,b,w,o);m>=v&&(h+=S9(a,v,m)+C,v=m+y.length)}return h+S9(a,v)}]}),!!K1((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C9||D9);var A9=l8.filter,x9=m3("filter");v6({target:"Array",proto:!0,forced:!x9},{filter:function(e){return A9(this,e,arguments.length>1?arguments[1]:void 0)}});var O9=function(e,t,n,r){try{return r?t(f4(n)[0],n[1]):t(n)}catch(t){V5(e,"throw",t)}},T9=q1.Array,k9=!t8((function(e){Array.from(e)}));v6({target:"Array",stat:!0,forced:k9},{from:function(e){var t=U2(e),n=v3(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=L5(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=H5(t),p=0;if(!d||this==T9&&M5(d))for(a=K4(t),u=n?new this(a):T9(a);a>p;p++)f=i?o(t[p],p):t[p],g3(u,p,f);else for(c=(l=$5(t,d)).next,u=n?new this:[];!(s=Z1(c,l)).done;p++)f=i?O9(l,o,[s.value,p],!0):s.value,g3(u,p,f);return u.length=p,u}}),v6({target:"Array",proto:!0},{fill:function(e){for(var t=U2(this),n=K4(t),r=arguments.length,o=G4(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:G4(i,n);a>o;)t[o++]=e;return t}}),R3("fill");var N9={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=hh(e);0===(t=t.filter((function(e){return!!gd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a="none"===_7(r,"display"),u=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===L7(r),colSpan:o,rowSpan:i,width:u,children:t,hidden:a}}},B9={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===XN.getNodeType(e)}))}}},I9={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r,o,i=hh(e),a="auto";"100%"===_7(i,"width")&&(a="100%"),"100%"===i.attr("width")&&(a="100%");var u={type:"table",width:a,height:parseInt(_7(i,"height")||"0"),children:t.filter((function(e){return"table-row"===XN.getNodeType(e)}))},s=null===(r=i.find("tr")[0])||void 0===r?void 0:r.children.length,l=(null===(o=i.find("colgroup")[0])||void 0===o?void 0:o.children)||null;return l?u.columnWidths=Array.from(l).map((function(e){return parseInt(e.getAttribute("width"))})):s>0&&(u.columnWidths=Array(s).fill(180)),u}},F9=j4.PROPER,P9="toString",R9=RegExp.prototype,L9=R9[P9],_9=a2(O6),j9=K1((function(){return"/a/b"!=L9.call({source:"a",flags:"b"})})),M9=F9&&L9.name!=P9;(j9||M9)&&M4(RegExp.prototype,P9,(function(){var e=f4(this),t=C6(e.source),n=e.flags;return"/"+t+"/"+C6(void 0===n&&b2(R9,e)&&!("flags"in R9)?_9(e):n)}),{unsafe:!0});var z9='<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>',H9=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||!!XN.getSelectedElems(e).some((function(t){var n=XN.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=hh('<div class="w-e-panel-content-table"></div>'),r=hh("<span>0 × 0</span>"),o=hh("<table></table>"),i=0;i<10;i++){for(var a=hh("<tr></tr>"),u=0;u<10;u++){var s=hh("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=hh(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){hh(e).children().each((function(e){var t=hh(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=hh(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){XN.isSelectedEmptyParagraph(e)&&Pd.removeNodes(e,{mode:"highest"}),0===e.children.length&&Pd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"});var i=function(e,t,n){for(var r=[],o=e.getMenuConfig("insertTable").minWidth,i=void 0===o?60:o,a=Array(n).fill(parseInt(i)||60),u=0;u<t;u++){for(var s=[],l=0;l<n;l++){var c={type:"table-cell",children:[{text:""}]};0===u&&(c.isHeader=!0),s.push(c)}r.push({type:"table-row",children:s})}return{type:"table",width:"auto",children:r,columnWidths:a}}(e,r,o);Pd.insertNodes(e,i,{mode:"highest"})}},e}(),U9=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==XN.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Pd.removeNodes(e,{mode:"highest"})},e}(),$9=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||null==XN.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=T3(Gf.nodes(e,{match:function(e){return XN.checkNodeType(e,"table-cell")},universal:!0}),1),r=T3(n[0],2),o=r[0],i=r[1],a=XN.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){var s=Q8(e),l=0;e:for(var c=0;c<s.length;c++)for(var f=0;f<s[c].length;f++){var d=T3(s[c][f],1),p=T3(d[0],2)[1];if(td.equals(i,p)){l=c;break e}}Gf.withoutNormalizing(e,(function(){for(var t=l+1,n=t>=0&&t<s.length,r=[],o=0;n&&o<s[l].length;o++){var a=T3(s[l][o],2)[1],c=a.ttb,f=a.btt;if(c>1||f>1){if(1==f)continue;var d=T3(s[l-(c-1)][o],1),p=T3(d[0],2),h=p[0],v=p[1],g=h.rowSpan||1;r.push(o),h.hidden||Pd.setNodes(e,{rowSpan:g+1},{at:v})}}for(var y={type:"table-row",children:[]},m=0;m<u;m++){var b={type:"table-cell",hidden:r.includes(m),children:[{text:""}]};y.children.push(b)}var E=td.parent(i),w=td.next(E);Pd.insertNodes(e,y,{at:w})}))}}},e}(),V9=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||null==XN.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=T3(Gf.nodes(e,{match:function(e){return XN.checkNodeType(e,"table-row")},universal:!0}),1),r=T3(n[0],2),o=r[0],i=r[1],a=XN.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)Pd.removeNodes(e,{mode:"highest"});else{var u=T3(Gf.nodes(e,{match:function(e){return XN.checkNodeType(e,"table-cell")},universal:!0}),1),s=T3(u[0],2)[1],l=Q8(e),c=0;e:for(var f=0;f<l.length;f++)for(var d=0;d<l[f].length;d++){var p=T3(l[f][d],1),h=T3(p[0],2)[1];if(td.equals(s,h)){c=f;break e}}Gf.withoutNormalizing(e,(function(){for(var t,n,r=0;r<l[c].length;r++){var o=T3(l[c][r],2),a=T3(o[0],1)[0].hidden,u=o[1],s=u.ttb,f=u.btt;if(s>1||f>1){var d=T3(l[c-(s-1)][r],1),p=T3(d[0],2),h=p[0],v=h.rowSpan,g=void 0===v?1:v,y=h.colSpan,m=void 0===y?1:y,b=p[1];if(a)Pd.setNodes(e,{rowSpan:Math.max(g-1,1),colSpan:m},{at:b});else{var E=T3(l[c+1][r],1),w=T3(E[0],2)[1];Pd.setNodes(e,{rowSpan:g-1,colSpan:m,hidden:!1},{at:w});try{for(var S=(t=void 0,O3(Zf.children(e,b,{reverse:!0}))),C=S.next();!C.done;C=S.next()){var D=T3(C.value,2)[1];Pd.moveNodes(e,{to:k3(k3([],T3(w)),[0]),at:D})}}catch(e){t={error:e}}finally{try{C&&!C.done&&(n=S.return)&&n.call(S)}finally{if(t)throw t.error}}}}}Pd.removeNodes(e,{at:i})}))}}},e}(),G9=m3("splice"),W9=q1.TypeError,q9=Math.max,K9=Math.min;v6({target:"Array",proto:!0,forced:!G9},{splice:function(e,t){var n,r,o,i,a,u,s=U2(this),l=K4(s),c=G4(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=K9(q9(U4(t),0),l-c)),l+n-r>9007199254740991)throw W9("Maximum allowed length exceeded");for(o=a8(s,r),i=0;i<r;i++)(a=c+i)in s&&g3(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 Y9=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||null==XN.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=T3(Gf.nodes(e,{match:function(e){return XN.checkNodeType(e,"table-cell")},universal:!0}),1),r=T3(n[0],2),o=r[0],i=r[1],a=XN.getParentNode(e,o);if(null!=a){var u=XN.getParentNode(e,a);if(null!=u){var s=Q8(e),l=0;e:for(var c=0;c<s.length;c++)for(var f=0;f<s[c].length;f++){var d=T3(s[c][f],1),p=T3(d[0],2)[1];if(td.equals(i,p)){l=f;break e}}Gf.withoutNormalizing(e,(function(){for(var t=[],n=0;n<s.length;n++){var r=T3(s[n][l],2)[1],o=r.ltr,i=r.rtl;if(o>1||i>1){if(1==i)continue;var a=T3(s[n][l-(i-1)],1),c=T3(a[0],2),f=c[0],d=c[1],p=f.colSpan||1;t.push(n),f.hidden||Pd.setNodes(e,{colSpan:p+1},{at:d})}}for(n=0;n<s.length;n++){var h={type:"table-cell",hidden:t.includes(n),children:[{text:""}]};0===n&&Y7(u)&&(h.isHeader=!0);var v=T3(s[n][l],1),g=T3(v[0],2)[1];Pd.insertNodes(e,h,{at:g})}var y=T3(Gf.nodes(e,{match:function(e){return XN.checkNodeType(e,"table")},universal:!0}),1)[0];if(y){var m=T3(y,2),b=m[0],E=m[1],w=b.columnWidths,S=k3([],T3(void 0===w?[]:w)),C=e.getMenuConfig("insertTable").minWidth,D=void 0===C?60:C;S.splice(l,0,parseInt(D)||60),Pd.setNodes(e,{columnWidths:S},{at:E})}}))}}}},e}(),X9=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||null==XN.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=T3(Gf.nodes(e,{match:function(e){return XN.checkNodeType(e,"table-cell")},universal:!0}),1),r=T3(n[0],2),o=r[0],i=r[1],a=XN.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)Pd.removeNodes(e,{mode:"highest"});else if(null!=XN.getParentNode(e,a)){var s=Q8(e),l=0;e:for(var c=0;c<s.length;c++)for(var f=0;f<s[c].length;f++){var d=T3(s[c][f],1),p=T3(d[0],2)[1];if(td.equals(i,p)){l=f;break e}}Gf.withoutNormalizing(e,(function(){for(var t,n,r=0;r<s.length;r++){var o=T3(s[r][l],2),i=T3(o[0],1)[0].hidden,a=o[1],u=a.rtl,c=a.ltr;if(u>1||c>1){var f=T3(s[r][l-(u-1)],1),d=T3(f[0],2),p=d[0],h=p.rowSpan,v=void 0===h?1:h,g=p.colSpan,y=void 0===g?1:g,m=d[1];if(i)Pd.setNodes(e,{rowSpan:v,colSpan:Math.max(y-1,1)},{at:m});else{var b=T3(s[r][l+1],1),E=T3(b[0],2)[1];Pd.setNodes(e,{rowSpan:v,colSpan:y-1,hidden:!1},{at:E});try{for(var w=(t=void 0,O3(Zf.children(e,m,{reverse:!0}))),S=w.next();!S.done;S=w.next()){var C=T3(S.value,2)[1];Pd.moveNodes(e,{to:k3(k3([],T3(E)),[0]),at:C})}}catch(e){t={error:e}}finally{try{S&&!S.done&&(n=w.return)&&n.call(w)}finally{if(t)throw t.error}}}}}for(r=0;r<s.length;r++){var D=T3(s[r][l],1);m=T3(D[0],2)[1],Pd.removeNodes(e,{at:m})}var A=T3(Gf.nodes(e,{match:function(e){return XN.checkNodeType(e,"table")},universal:!0}),1)[0];if(A){var x=T3(A,2),O=x[0],T=x[1],k=O.columnWidths,N=k3([],T3(void 0===k?[]:k));N.splice(l,1),Pd.setNodes(e,{columnWidths:N},{at:T})}}))}}},e}(),Z9=l8.forEach,J9=Q7("forEach")?[].forEach:function(e){return Z9(this,e,arguments.length>1?arguments[1]:void 0)},Q9=function(e){if(e&&e.forEach!==J9)try{v4(e,"forEach",J9)}catch(t){e.forEach=J9}};for(var eee in w8)w8[eee]&&Q9(q1[eee]&&q1[eee].prototype);Q9(D8);var tee=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){var t=XN.getSelectedNodeByType(e,"table");return null!=t&&Y7(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||null==XN.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=XN.getSelectedNodeByType(e,"table");null!=r&&K7(r).forEach((function(t){return Pd.setNodes(e,{isHeader:n},{at:XN.findPath(e,t)})}))}},e}(),nee=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){var t=XN.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||null==XN.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Pd.setNodes(e,n,{mode:"highest"})}},e}(),ree=function(){function e(){this.title=eR("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return!this.canMerge(e)},e.prototype.exec=function(e,t){this.isDisabled(e)||(this.merge(e),t7.unselect(e))},e.prototype.canMerge=function(e){var t=z8.get(e);if(!t||!t.length)return!1;var n=T3(t[t.length-1][t[t.length-1].length-1],1),r=T3(n[0],2)[1],o=T3(t[0][0],1);return!!J8(e,[T3(o[0],2)[1],r],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=z8.get(e);if(t&&t.length){var n=T3(t[0][0],1),r=T3(n[0],2)[1],o=T3(Zf.children(e,r,{reverse:!0}),1),i=T3(o[0],2)[1];Q8(e,{at:r}),Gf.withoutNormalizing(e,(function(){for(var n,o,a=0,u=0,s=t.length-1;s>=0;s--,a++){u=0;for(var l=t[s].length-1;l>=0;l--,u++){var c=T3(t[s][l],2),f=T3(c[0],2)[1],d=c[1].ttb;if(!(td.equals(r,f)||d>1)){try{for(var p=(n=void 0,O3(Zf.children(e,f,{reverse:!0}))),h=p.next();!h.done;h=p.next()){var v=T3(h.value,2)[1];Pd.moveNodes(e,{to:td.next(i),at:v})}}catch(e){n={error:e}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}var g=T3(Gf.nodes(e,{match:Z8(e,"tr"),at:f}),1),y=T3(g[0],2)[1];T3(Zf.children(e,y),2)[1]&&Pd.setNodes(e,{hidden:!0},{at:f})}}}Pd.setNodes(e,{rowSpan:a,colSpan:u},{at:r})}))}}},e}(),oee=function(){function e(){this.title=eR("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=T3(Gf.nodes(e,{match:Z8(e,"td")}),1),n=T3(t[0],1)[0],r=n.rowSpan,o=void 0===r?1:r,i=n.colSpan;return!(o>1||(void 0===i?1:i)>1)},e.prototype.exec=function(e,t){this.isDisabled(e)||this.split(e)},e.prototype.split=function(e,t){void 0===t&&(t={});var n=T3(Gf.nodes(e,{match:Z8(e,"table","th","td"),at:t.at}),2),r=n[0],o=n[1];if(r&&o){var i=z8.get(e)||[],a=Q8(e,{at:t.at});Gf.withoutNormalizing(e,(function(){for(var n=a.length-1;n>=0;n--)for(var r=a[n].length-1;r>=0;r--){var u=T3(a[n][r],2),s=T3(u[0],2)[1],l=u[1],c=l.ltr,f=l.rtl,d=l.btt,p=l.ttb;if(f>1)r-=f-2;else if(!(p>1||1===d&&1===c)){var h=!!t.all;if(i.length)e:for(var v=0;!t.all&&v<i.length;v++)for(var g=0;g<i[v].length;g++){var y=T3(i[v][g],1),m=T3(y[0],2)[1];if(td.equals(m,s)){h=!0;break e}}else m=T3(o,2)[1],td.equals(m,s)&&(h=!0);if(h){var b=T3(Gf.nodes(e,{match:Z8(e,"table"),at:s}),1);T3(b[0],1)[0];e:for(var E=1;E<d;E++)for(v=r;v>=0;v--){var w=T3(a[n+E][v],2);if(T3(w[0],2)[1],1!=w[1].ttb){for(var S=0;S<c;S++){var C=T3(a[n+E][v+S],1),D=T3(C[0],2)[1];Pd.unsetNodes(e,["hidden","colSpan","rowSpan"],{at:D})}continue e}}for(S=1;S<c;S++){var A=T3(a[n][r+S],1);D=T3(A[0],2)[1],Pd.unsetNodes(e,["hidden","colSpan","rowSpan"],{at:D})}Pd.setNodes(e,{rowSpan:1,colSpan:1},{at:s})}}}}))}},e}(),iee=function(){function e(){this.title=eR("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.borderStyle=[{value:"none",label:eR("tableModule.borderStyle.none")},{value:"solid",label:eR("tableModule.borderStyle.solid")},{value:"dotted",label:eR("tableModule.borderStyle.dotted")},{value:"dashed",label:eR("tableModule.borderStyle.dashed")},{value:"double",label:eR("tableModule.borderStyle.double")},{value:"groove",label:eR("tableModule.borderStyle.groove")},{value:"ridge",label:eR("tableModule.borderStyle.ridge")},{value:"inset",label:eR("tableModule.borderStyle.inset")},{value:"outset",label:eR("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:eR("justify.left"),svg:'<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>'},{value:"center",label:eR("justify.center"),svg:'<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>'},{value:"right",label:eR("justify.right"),svg:'<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>'},{value:"justify",label:eR("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}]}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||null==XN.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){},e.prototype.getModalContentNode=function(e){return T3(Gf.nodes(e,{match:Z8(e,"table")}),1)[0]},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this.getModalContentNode(e);if(!n)return null;var r=T3(n,2),o=r[0],i=r[1],a=hh('<div>\n <label class="babel-container">\n <span>'+eR("tableModule.modal.border")+'</span>\n <span class="babel-container-border">\n <select name="borderStyle">\n '+this.borderStyle.map((function(e){return'<option value="'+e.value+'">'+e.label+"</option>"})).join("")+'\n </select>\n <span class="color-group" data-mark="color">\n <span class="color-group-block"></span>\n <input name="borderColor" type="hidden">\n </span>\n <input name="borderWidth" type="number" placeholder="'+eR("tableModule.modal.borderWidth")+'">\n </span>\n </label>\n <div class="babel-container">\n <span>'+eR("tableModule.modal.bgColor")+'</span>\n <span class="babel-container-background">\n <span class="color-group" data-mark="bgColor">\n <span class="color-group-block"></span>\n <input name="backgroundColor" type="hidden">\n </span>\n </span>\n </div>\n <label class="babel-container">\n <span>'+eR("tableModule.modal.align")+'</span>\n <span class="babel-container-align">\n <select name="textAlign">\n '+this.textAlignOptions.map((function(e){return'<option value="'+e.value+'">'+e.label+"</option>"})).join("")+'\n </select>\n </span>\n </label>\n <div class="button-container">\n <button type="button">'+eR("tableModule.modal.ok")+"</button>\n </div>\n </div>");a.find("[name]").each((function(e){hh(e).val(o[hh(e).attr("name")])}));var u=function(e,t){t?hh(".color-group-block",e).css("background-color",t).empty():hh(".color-group-block",e).css("background-color","").html(z9)};return a.find(".color-group").each((function(n){var r=hh('[type="hidden"]',n).val()||"";u(n,r);var o=hh(n);o.on("click",(function(){a.find(".color-group .w-e-drop-panel").hide();var i=o.data("panel");i?i.show():(i=t.getPanelContentElem(e,{mark:o.data("mark"),selectedColor:r,callback:function(e){hh('[type="hidden"]',n).val(e||""),u(n,e),i.hide()}}),o.append(i),o.data("panel",i))}))})),a.find("button").on("click",(function(){var t=Array.from(a.find("[name]")).reduce((function(e,t){return e[hh(t).attr("name")]=hh(t).val(),e}),{});Pd.setNodes(e,t,{at:i}),setTimeout((function(){e.focus()}))})),a[0]},e.prototype.getPanelContentElem=function(e,t){var n=t.mark,r=t.selectedColor,o=t.callback,i=hh('<ul class="w-e-panel-content-color"></ul>');i.on("click","li",(function(e){var t=e.target;if(t){e.preventDefault(),e.stopPropagation();var n=hh(t).attr("data-value");o(n)}}));var a=e.getMenuConfig(n).colors;(void 0===a?[]:a).forEach((function(e){var t=hh('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=hh('<li data-value="'+e+'"></li>');r===e&&n.addClass("active"),n.append(t),i.append(n)}));var u="";"color"===n&&(u=eR("tableModule.color.default")),"bgColor"===n&&(u=eR("tableModule.color.clear"));var s=hh('\n <li data-value="" class="clear">\n '+z9+"\n "+u+"\n </li>\n ");i.prepend(s);var l=hh('<div class="w-e-drop-panel"></div>');return l.append(i),l},e}(),aee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=eR("tableModule.cellProperty"),t.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',t.tag="button",t.showModal=!0,t.modalWidth=300,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}D3(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.getModalContentNode=function(e){return T3(Gf.nodes(e,{match:Z8(e,"td")}),1)[0]},t}(iee),uee={renderStyle:function(e,t){var n,r;if(!Mf.isElement(e))return t;var o=e,i=o.backgroundColor,a=o.borderWidth,u=o.borderStyle,s=o.borderColor,l=o.textAlign,c={};i&&(c.backgroundColor=i),a&&(c.borderWidth=a+"px"),u&&(c.borderStyle=u),s&&(c.borderColor=s),l&&(c.textAlign=l);var f=t;return"table"===e.type?s9(null===(r=(null===(n=f.children)||void 0===n?void 0:n[0]).children)||void 0===r?void 0:r[0],c):s9(f,c),f},styleToHtml:function(e,t){if("table"!==e.type&&"table-cell"!==e.type)return t;var n=e.backgroundColor,r=e.borderWidth,o=e.borderStyle,i=e.borderColor,a=e.textAlign;if(!(n||r||o||i||a))return t;var u=hh(t);return n&&u.css("background-color",n),r&&u.css("border-width",r+"px"),o&&u.css("border-style",o),i&&u.css("border-color",i),a&&u.css("text-align",a),function(e){return 0===e.length?"":e[0].outerHTML}(u)},parseStyleHtml:function(e,t,n){var r;if("TABLE"!==e.tagName&&"TD"!==e.tagName)return t;var o=hh(e),i=t,a=_7(o,"background-color");a||(a=_7(o,"background")),a&&(i.backgroundColor=a);var u=T3(null===(r=_7(o,"border"))||void 0===r?void 0:r.split(" "),3),s=u[0],l=u[1],c=u[2];(s=_7(o,"border-width")||s)&&(i.borderWidth=s.replace(/[^\d]/g,"")),(l=_7(o,"border-style")||l)&&(i.borderStyle=l),(c=_7(o,"border-color")||c)&&(i.borderColor=c);var f=_7(o,"text-align");return(f=_7(o,"text-align")||f)&&(i.textAlign=f),t},renderElems:[X7,Z7,J7],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e,r=n.width,o=void 0===r?"auto":r,i=n.columnWidths,a=n.height,u=void 0===a?"auto":a,s=null==i?void 0:i.map((function(e){return"<col width="+e+"></col>"})).join("");return'<table style="width: '+o+";table-layout: fixed;height:"+u+'">'+(s?'<colgroup contentEditable="false">'+s+"</colgroup>":"")+"<tbody>"+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=void 0===l?"auto":l,f=n.hidden,d=s?"th":"td";return"<"+d+' colSpan="'+o+'" rowSpan="'+a+'" width="'+c+'" style="'+(void 0!==f&&f?"display:none":"")+'">'+t+"</"+d+">"}}],preParseHtml:[r9],parseElemsHtml:[N9,B9,I9],menus:[{key:"insertTable",factory:function(){return new H9}},{key:"deleteTable",factory:function(){return new U9}},{key:"insertTableRow",factory:function(){return new $9}},{key:"deleteTableRow",factory:function(){return new V9}},{key:"insertTableCol",factory:function(){return new Y9}},{key:"deleteTableCol",factory:function(){return new X9}},{key:"tableHeader",factory:function(){return new tee}},{key:"tableFullWidth",factory:function(){return new nee}},{key:"mergeTableCell",factory:function(){return new ree}},{key:"splitTableCell",factory:function(){return new oee}},{key:"setTableProperty",factory:function(){return new iee}},{key:"setTableCellProperty",factory:function(){return new aee}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==XN.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!n7(s)){var t=s.selection;if(t){var r=Gf.before(s,t);if(r){var o=function(e,t){var n,r,o=Gf.nodes(e,{at:t,match:function(e){return"table"===XN.getNodeType(e)}}),i=!1;try{for(var a=O3(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}(s,r);if(o&&XN.isSelectedEmptyParagraph(s))return}}n(e)}},s.handleTab=function(){var t;if(XN.getSelectedNodeByType(s,"table")){var n=Gf.above(e);XN.checkNodeType(n[0],"table-cell")&&Pd.select(e,n[1]);var r=Gf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Gf.above(e,{at:r[1]}))&&void 0!==t?t:r),Pd.select(e,r[1]);else{var o=s.children||[],i=o.length;if(XN.checkNodeType(o[i-1],"table")){var u=XN.genEmptyParagraph();Pd.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){n7(s)||r(e)},s.normalizeNode=function(e){var t=T3(e,2),n=t[0],r=t[1];if("table"!==XN.getNodeType(n))return o([n,r]);if(XN.isLastNode(s,n)){var i=XN.genEmptyParagraph();Pd.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=XN.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Gf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=XN.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(td.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Zf.string(t).length){var o=XN.findPath(s,t),i={anchor:Gf.start(s,o),focus:Gf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},function(e){var t=e.apply;e.apply=function(n){if(!ed.isSelectionOperation(n)||!n.newProperties)return t(n);var r=A3(A3({},e.selection),n.newProperties);if(!ld.isRange(r))return t7.unselect(e),t(n);var o=T3(Gf.nodes(e,{match:Z8(e,"th","td"),at:ld.start(r)}),1)[0],i=T3(Gf.nodes(e,{match:Z8(e,"th","td"),at:ld.end(r)}),1)[0];if(!o||!i)return t7.unselect(e),t(n);var a=T3(o,2)[1],u=T3(i,2)[1];if(td.equals(a,u)||!J8(e,[a,u],"table"))return t7.unselect(e),t(n);var s=Q8(e,{at:a}),l=e7.valueOf(0,0),c=e7.valueOf(0,0);e:for(var f=0;f<s.length;f++)for(var d=0;d<s[f].length;d++){var p=T3(s[f][d],1),h=T3(p[0],2)[1];if(td.equals(a,h)&&(l.x=f,l.y=d),td.equals(u,h)){c.x=f,c.y=d;break e}}for(var v=e7.valueOf(Math.min(l.x,c.x),Math.min(l.y,c.y)),g=e7.valueOf(Math.max(l.x,c.x),Math.max(l.y,c.y));;){var y=e7.valueOf(v.x,v.y),m=e7.valueOf(g.x,g.y);for(f=y.x;f<=m.x;f++)for(d=y.y;d<=m.y;d++){var b=T3(s[f][d],2)[1],E=b.rtl,w=b.ltr,S=b.btt,C=b.ttb;y.x=Math.min(y.x,f-(C-1)),y.y=Math.min(y.y,d-(E-1)),m.x=Math.max(m.x,f+(S-1)),m.y=Math.max(m.y,d+(w-1))}if(e7.equals(v,y)&&e7.equals(g,m))break;v=y,g=m}var D=[],A=new WeakSet;for(f=v.x;f<=g.x;f++){var x=[];for(d=v.y;d<=g.y;d++){var O=T3(s[f][d],1),T=T3(O[0],1)[0];A.add(T),x.push(s[f][d])}D.push(x)}z8.set(e,D),H8.set(e,A),t(n)}}(s),s}};ZP("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",edit:"Edit video",width:"Width",height:"Height"}}),ZP("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var see=function(){return see=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},see.apply(this,arguments)};function lee(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function cee(e,t){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)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function fee(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function dee(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var pee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function hee(e){var t={exports:{}};return e(t,t.exports),t.exports}var vee,gee,yee=function(e){return e&&e.Math==Math&&e},mee=yee("object"==typeof globalThis&&globalThis)||yee("object"==typeof window&&window)||yee("object"==typeof self&&self)||yee("object"==typeof pee&&pee)||function(){return this}()||Function("return this")(),bee=function(e){try{return!!e()}catch(e){return!0}},Eee=!bee((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),wee=Function.prototype.call,See=wee.bind?wee.bind(wee):function(){return wee.apply(wee,arguments)},Cee={}.propertyIsEnumerable,Dee=Object.getOwnPropertyDescriptor,Aee={f:Dee&&!Cee.call({1:2},1)?function(e){var t=Dee(this,e);return!!t&&t.enumerable}:Cee},xee=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Oee=Function.prototype,Tee=Oee.bind,kee=Oee.call,Nee=Tee&&Tee.bind(kee),Bee=Tee?function(e){return e&&Nee(kee,e)}:function(e){return e&&function(){return kee.apply(e,arguments)}},Iee=Bee({}.toString),Fee=Bee("".slice),Pee=function(e){return Fee(Iee(e),8,-1)},Ree=mee.Object,Lee=Bee("".split),_ee=bee((function(){return!Ree("z").propertyIsEnumerable(0)}))?function(e){return"String"==Pee(e)?Lee(e,""):Ree(e)}:Ree,jee=mee.TypeError,Mee=function(e){if(null==e)throw jee("Can't call method on "+e);return e},zee=function(e){return _ee(Mee(e))},Hee=function(e){return"function"==typeof e},Uee=function(e){return"object"==typeof e?null!==e:Hee(e)},$ee=function(e,t){return arguments.length<2?(n=mee[e],Hee(n)?n:void 0):mee[e]&&mee[e][t];var n},Vee=Bee({}.isPrototypeOf),Gee=$ee("navigator","userAgent")||"",Wee=mee.process,qee=mee.Deno,Kee=Wee&&Wee.versions||qee&&qee.version,Yee=Kee&&Kee.v8;Yee&&(gee=(vee=Yee.split("."))[0]>0&&vee[0]<4?1:+(vee[0]+vee[1])),!gee&&Gee&&(!(vee=Gee.match(/Edge\/(\d+)/))||vee[1]>=74)&&(vee=Gee.match(/Chrome\/(\d+)/))&&(gee=+vee[1]);var Xee=gee,Zee=!!Object.getOwnPropertySymbols&&!bee((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Xee&&Xee<41})),Jee=Zee&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Qee=mee.Object,ete=Jee?function(e){return"symbol"==typeof e}:function(e){var t=$ee("Symbol");return Hee(t)&&Vee(t.prototype,Qee(e))},tte=mee.String,nte=function(e){try{return tte(e)}catch(e){return"Object"}},rte=mee.TypeError,ote=function(e){if(Hee(e))return e;throw rte(nte(e)+" is not a function")},ite=function(e,t){var n=e[t];return null==n?void 0:ote(n)},ate=mee.TypeError,ute=Object.defineProperty,ste=function(e,t){try{ute(mee,e,{value:t,configurable:!0,writable:!0})}catch(n){mee[e]=t}return t},lte="__core-js_shared__",cte=mee[lte]||ste(lte,{}),fte=hee((function(e){(e.exports=function(e,t){return cte[e]||(cte[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),dte=mee.Object,pte=function(e){return dte(Mee(e))},hte=Bee({}.hasOwnProperty),vte=Object.hasOwn||function(e,t){return hte(pte(e),t)},gte=0,yte=Math.random(),mte=Bee(1..toString),bte=function(e){return"Symbol("+(void 0===e?"":e)+")_"+mte(++gte+yte,36)},Ete=fte("wks"),wte=mee.Symbol,Ste=wte&&wte.for,Cte=Jee?wte:wte&&wte.withoutSetter||bte,Dte=function(e){if(!vte(Ete,e)||!Zee&&"string"!=typeof Ete[e]){var t="Symbol."+e;Zee&&vte(wte,e)?Ete[e]=wte[e]:Ete[e]=Jee&&Ste?Ste(t):Cte(t)}return Ete[e]},Ate=mee.TypeError,xte=Dte("toPrimitive"),Ote=function(e){var t=function(e,t){if(!Uee(e)||ete(e))return e;var n,r=ite(e,xte);if(r){if(void 0===t&&(t="default"),n=See(r,e,t),!Uee(n)||ete(n))return n;throw Ate("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Hee(n=e.toString)&&!Uee(r=See(n,e)))return r;if(Hee(n=e.valueOf)&&!Uee(r=See(n,e)))return r;if("string"!==t&&Hee(n=e.toString)&&!Uee(r=See(n,e)))return r;throw ate("Can't convert object to primitive value")}(e,t)}(e,"string");return ete(t)?t:t+""},Tte=mee.document,kte=Uee(Tte)&&Uee(Tte.createElement),Nte=function(e){return kte?Tte.createElement(e):{}},Bte=!Eee&&!bee((function(){return 7!=Object.defineProperty(Nte("div"),"a",{get:function(){return 7}}).a})),Ite=Object.getOwnPropertyDescriptor,Fte={f:Eee?Ite:function(e,t){if(e=zee(e),t=Ote(t),Bte)try{return Ite(e,t)}catch(e){}if(vte(e,t))return xee(!See(Aee.f,e,t),e[t])}},Pte=mee.String,Rte=mee.TypeError,Lte=function(e){if(Uee(e))return e;throw Rte(Pte(e)+" is not an object")},_te=mee.TypeError,jte=Object.defineProperty,Mte={f:Eee?jte:function(e,t,n){if(Lte(e),t=Ote(t),Lte(n),Bte)try{return jte(e,t,n)}catch(e){}if("get"in n||"set"in n)throw _te("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},zte=Eee?function(e,t,n){return Mte.f(e,t,xee(1,n))}:function(e,t,n){return e[t]=n,e},Hte=Bee(Function.toString);Hee(cte.inspectSource)||(cte.inspectSource=function(e){return Hte(e)});var Ute,$te,Vte,Gte=cte.inspectSource,Wte=mee.WeakMap,qte=Hee(Wte)&&/native code/.test(Gte(Wte)),Kte=fte("keys"),Yte=function(e){return Kte[e]||(Kte[e]=bte(e))},Xte={},Zte="Object already initialized",Jte=mee.TypeError,Qte=mee.WeakMap;if(qte||cte.state){var ene=cte.state||(cte.state=new Qte),tne=Bee(ene.get),nne=Bee(ene.has),rne=Bee(ene.set);Ute=function(e,t){if(nne(ene,e))throw new Jte(Zte);return t.facade=e,rne(ene,e,t),t},$te=function(e){return tne(ene,e)||{}},Vte=function(e){return nne(ene,e)}}else{var one=Yte("state");Xte[one]=!0,Ute=function(e,t){if(vte(e,one))throw new Jte(Zte);return t.facade=e,zte(e,one,t),t},$te=function(e){return vte(e,one)?e[one]:{}},Vte=function(e){return vte(e,one)}}var ine={set:Ute,get:$te,has:Vte,enforce:function(e){return Vte(e)?$te(e):Ute(e,{})},getterFor:function(e){return function(t){var n;if(!Uee(t)||(n=$te(t)).type!==e)throw Jte("Incompatible receiver, "+e+" required");return n}}},ane=Function.prototype,une=Eee&&Object.getOwnPropertyDescriptor,sne=vte(ane,"name"),lne={EXISTS:sne,PROPER:sne&&"something"===function(){}.name,CONFIGURABLE:sne&&(!Eee||Eee&&une(ane,"name").configurable)},cne=hee((function(e){var t=lne.CONFIGURABLE,n=ine.get,r=ine.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Hee(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vte(i,"name")||t&&i.name!==f)&&zte(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==mee?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:zte(e,n,i)):l?e[n]=i:ste(n,i)})(Function.prototype,"toString",(function(){return Hee(this)&&n(this).source||Gte(this)}))})),fne=Math.ceil,dne=Math.floor,pne=function(e){var t=+e;return t!=t||0===t?0:(t>0?dne:fne)(t)},hne=Math.max,vne=Math.min,gne=function(e,t){var n=pne(e);return n<0?hne(n+t,0):vne(n,t)},yne=Math.min,mne=function(e){return e>0?yne(pne(e),9007199254740991):0},bne=function(e){return mne(e.length)},Ene=function(e){return function(t,n,r){var o,i=zee(t),a=bne(i),u=gne(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},wne={includes:Ene(!0),indexOf:Ene(!1)},Sne=wne.indexOf,Cne=Bee([].push),Dne=function(e,t){var n,r=zee(e),o=0,i=[];for(n in r)!vte(Xte,n)&&vte(r,n)&&Cne(i,n);for(;t.length>o;)vte(r,n=t[o++])&&(~Sne(i,n)||Cne(i,n));return i},Ane=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xne=Ane.concat("length","prototype"),One={f:Object.getOwnPropertyNames||function(e){return Dne(e,xne)}},Tne={f:Object.getOwnPropertySymbols},kne=Bee([].concat),Nne=$ee("Reflect","ownKeys")||function(e){var t=One.f(Lte(e)),n=Tne.f;return n?kne(t,n(e)):t},Bne=function(e,t){for(var n=Nne(t),r=Mte.f,o=Fte.f,i=0;i<n.length;i++){var a=n[i];vte(e,a)||r(e,a,o(t,a))}},Ine=/#|\.prototype\./,Fne=function(e,t){var n=Rne[Pne(e)];return n==_ne||n!=Lne&&(Hee(t)?bee(t):!!t)},Pne=Fne.normalize=function(e){return String(e).replace(Ine,".").toLowerCase()},Rne=Fne.data={},Lne=Fne.NATIVE="N",_ne=Fne.POLYFILL="P",jne=Fne,Mne=Fte.f,zne=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?mee:l?mee[u]||ste(u,{}):(mee[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Mne(n,r))&&a.value:n[r],!jne(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Bne(i,o)}(e.sham||o&&o.sham)&&zte(i,"sham",!0),cne(n,r,i,e)}},Hne={};Hne[Dte("toStringTag")]="z";var Une,$ne="[object z]"===String(Hne),Vne=Dte("toStringTag"),Gne=mee.Object,Wne="Arguments"==Pee(function(){return arguments}()),qne=$ne?Pee:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Gne(e),Vne))?n:Wne?Pee(t):"Object"==(r=Pee(t))&&Hee(t.callee)?"Arguments":r},Kne=mee.String,Yne=function(e){if("Symbol"===qne(e))throw TypeError("Cannot convert a Symbol value to a string");return Kne(e)},Xne="\t\n\v\f\r \u2028\u2029\ufeff",Zne=Bee("".replace),Jne="["+Xne+"]",Qne=RegExp("^"+Jne+Jne+"*"),ere=RegExp(Jne+Jne+"*$"),tre=function(e){return function(t){var n=Yne(Mee(t));return 1&e&&(n=Zne(n,Qne,"")),2&e&&(n=Zne(n,ere,"")),n}},nre={start:tre(1),end:tre(2),trim:tre(3)},rre=lne.PROPER,ore=nre.trim;function ire(e){return e.length?e[0].tagName.toLowerCase():""}function are(e,t,n,r){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=hh(e),i=r.width,a=void 0===i?"":i,u=r.height,s=void 0===u?"":u,l="";return a&&(l+="width: "+a+";"),s&&(l+="height: "+s+";"),o.attr("width",t),o.attr("height",n),o.attr("style",l),o[0].outerHTML}zne({target:"String",proto:!0,forced:(Une="trim",bee((function(){return!!Xne[Une]()||"
"!=="
"[Une]()||rre&&Xne[Une].name!==Une})))},{trim:function(){return ore(this)}}),zne({global:!0},{globalThis:mee}),Lh&&(hh.fn.append=Lh),Ch&&(hh.fn.on=Ch),qh&&(hh.fn.focus=qh),mh&&(hh.fn.attr=mh),Sh&&(hh.fn.val=Sh),Fh&&(hh.fn.html=Fh),jh&&(hh.fn.parent=jh),yh&&(hh.fn.hasClass=yh),$h&&(hh.fn.empty=$h);var ure,sre={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.key,c=void 0===l?"":l,f=o.width,d=void 0===f?"auto":f,p=o.height,h=void 0===p?"auto":p,v=o.style,g=void 0===v?{}:v,y=o.textAlign,m=void 0===y?"center":y,b=XN.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){r=gg("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m},innerHTML:are(a,d,h,g)})}else{var E=gg("video",{key:c,poster:s,controls:!0,style:g},gg("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==d&&(E.data.width=d),"auto"!==h&&(E.data.height=h),r=gg("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m}},E)}return Yv("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},lre={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f=n.style,d=void 0===f?{}:f,p=n.textAlign,h='<div data-w-e-type="video" data-w-e-is-void style="text-align: '+(void 0===p?"center":p)+';">\n';if(0===o.trim().indexOf("<iframe "))h+=are(o,s,c,d);else{var v=d.width,g=void 0===v?"":v,y=d.height,m=void 0===y?"":y,b="";g&&(b+="width: "+g+";"),m&&(b+="height: "+m+";"),h+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'" style="'+b+'"><source src="'+o+'" type="video/mp4"/></video>'}return h+"\n</div>"}},cre=Object.keys||function(e){return Dne(e,Ane)},fre=Eee?Object.defineProperties:function(e,t){Lte(e);for(var n,r=zee(t),o=cre(t),i=o.length,a=0;i>a;)Mte.f(e,n=o[a++],r[n]);return e},dre=$ee("document","documentElement"),pre="prototype",hre="script",vre=Yte("IE_PROTO"),gre=function(){},yre=function(e){return"<"+hre+">"+e+"</"+hre+">"},mre=function(e){e.write(yre("")),e.close();var t=e.parentWindow.Object;return e=null,t},bre=function(){try{ure=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;bre="undefined"!=typeof document?document.domain&&ure?mre(ure):(t=Nte("iframe"),n="java"+hre+":",t.style.display="none",dre.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(yre("document.F=Object")),e.close(),e.F):mre(ure);for(var r=Ane.length;r--;)delete bre[pre][Ane[r]];return bre()};Xte[vre]=!0;var Ere=Object.create||function(e,t){var n;return null!==e?(gre[pre]=Lte(e),n=new gre,gre[pre]=null,n[vre]=e):n=bre(),void 0===t?n:fre(n,t)},wre=Dte("unscopables"),Sre=Array.prototype;null==Sre[wre]&&Mte.f(Sre,wre,{configurable:!0,value:Ere(null)});var Cre=function(e){Sre[wre][e]=!0},Dre=wne.includes;zne({target:"Array",proto:!0},{includes:function(e){return Dre(this,e,arguments.length>1?arguments[1]:void 0)}}),Cre("includes");var Are={selector:"iframe,video,p",preParseHtml:function(e){var t=hh(e),n=t;if("p"===ire(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=hh(o))}}var a=ire(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=hh('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return u.append(n),u[0]}},xre=Bee(Bee.bind),Ore=function(e,t){return ote(e),void 0===t?e:xre?xre(e,t):function(){return e.apply(t,arguments)}},Tre=Array.isArray||function(e){return"Array"==Pee(e)},kre=function(){},Nre=[],Bre=$ee("Reflect","construct"),Ire=/^\s*(?:class|function)\b/,Fre=Bee(Ire.exec),Pre=!Ire.exec(kre),Rre=function(e){if(!Hee(e))return!1;try{return Bre(kre,Nre,e),!0}catch(e){return!1}},Lre=!Bre||bee((function(){var e;return Rre(Rre.call)||!Rre(Object)||!Rre((function(){e=!0}))||e}))?function(e){if(!Hee(e))return!1;switch(qne(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Pre||!!Fre(Ire,Gte(e))}:Rre,_re=Dte("species"),jre=mee.Array,Mre=function(e,t){return new(function(e){var t;return Tre(e)&&(t=e.constructor,(Lre(t)&&(t===jre||Tre(t.prototype))||Uee(t)&&null===(t=t[_re]))&&(t=void 0)),void 0===t?jre:t}(e))(0===t?0:t)},zre=Bee([].push),Hre=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=pte(s),v=_ee(h),g=Ore(l,c),y=bne(v),m=0,b=f||Mre,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:zre(E,d)}else switch(e){case 4:return!1;case 7:zre(E,d)}return i?-1:r||o?o:E}},Ure={forEach:Hre(0),map:Hre(1),filter:Hre(2),some:Hre(3),every:Hre(4),find:Hre(5),findIndex:Hre(6),filterReject:Hre(7)},$re=Ure.find,Vre="find",Gre=!0;Vre in[]&&Array(1)[Vre]((function(){Gre=!1})),zne({target:"Array",proto:!0,forced:Gre},{find:function(e){return $re(this,e,arguments.length>1?arguments[1]:void 0)}}),Cre(Vre);var Wre=$ne?{}.toString:function(){return"[object "+qne(this)+"]"};$ne||cne(Object.prototype,"toString",Wre,{unsafe:!0});var qre,Kre,Yre=function(){var e=Lte(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Xre=mee.RegExp,Zre=bee((function(){var e=Xre("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Jre=Zre||bee((function(){return!Xre("a","y").sticky})),Qre={BROKEN_CARET:Zre||bee((function(){var e=Xre("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Jre,UNSUPPORTED_Y:Zre},eoe=mee.RegExp,toe=bee((function(){var e=eoe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),noe=mee.RegExp,roe=bee((function(){var e=noe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ooe=ine.get,ioe=fte("native-string-replace",String.prototype.replace),aoe=RegExp.prototype.exec,uoe=aoe,soe=Bee("".charAt),loe=Bee("".indexOf),coe=Bee("".replace),foe=Bee("".slice),doe=(Kre=/b*/g,See(aoe,qre=/a/,"a"),See(aoe,Kre,"a"),0!==qre.lastIndex||0!==Kre.lastIndex),poe=Qre.BROKEN_CARET,hoe=void 0!==/()??/.exec("")[1];(doe||hoe||poe||toe||roe)&&(uoe=function(e){var t,n,r,o,i,a,u,s=this,l=ooe(s),c=Yne(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=See(uoe,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=poe&&s.sticky,h=See(Yre,s),v=s.source,g=0,y=c;if(p&&(h=coe(h,"y",""),-1===loe(h,"g")&&(h+="g"),y=foe(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==soe(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),hoe&&(n=new RegExp("^"+v+"$(?!\\s)",h)),doe&&(r=s.lastIndex),o=See(aoe,p?n:s,y),p?o?(o.input=foe(o.input,g),o[0]=foe(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:doe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),hoe&&o&&o.length>1&&See(ioe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Ere(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var voe=uoe;zne({target:"RegExp",proto:!0,forced:/./.exec!==voe},{exec:voe});var goe=Function.prototype,yoe=goe.apply,moe=goe.bind,boe=goe.call,Eoe="object"==typeof Reflect&&Reflect.apply||(moe?boe.bind(yoe):function(){return boe.apply(yoe,arguments)}),woe=Dte("species"),Soe=RegExp.prototype,Coe=function(e,t,n,r){var o=Dte(e),i=!bee((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!bee((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[woe]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Bee(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Bee(e),s=t.exec;return s===voe||s===Soe.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));cne(String.prototype,e,s[0]),cne(Soe,o,s[1])}r&&zte(Soe[o],"sham",!0)},Doe=Bee("".charAt),Aoe=Bee("".charCodeAt),xoe=Bee("".slice),Ooe=function(e){return function(t,n){var r,o,i=Yne(Mee(t)),a=pne(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Aoe(i,a))<55296||r>56319||a+1===u||(o=Aoe(i,a+1))<56320||o>57343?e?Doe(i,a):r:e?xoe(i,a,a+2):o-56320+(r-55296<<10)+65536}},Toe={codeAt:Ooe(!1),charAt:Ooe(!0)},koe=Toe.charAt,Noe=function(e,t,n){return t+(n?koe(e,t).length:1)},Boe=Math.floor,Ioe=Bee("".charAt),Foe=Bee("".replace),Poe=Bee("".slice),Roe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Loe=/\$([$&'`]|\d{1,2})/g,_oe=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Loe;return void 0!==o&&(o=pte(o),s=Roe),Foe(i,s,(function(i,s){var l;switch(Ioe(s,0)){case"$":return"$";case"&":return e;case"`":return Poe(t,0,n);case"'":return Poe(t,a);case"<":l=o[Poe(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=Boe(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Ioe(s,1):r[f-1]+Ioe(s,1):i}l=r[c-1]}return void 0===l?"":l}))},joe=mee.TypeError,Moe=function(e,t){var n=e.exec;if(Hee(n)){var r=See(n,e,t);return null!==r&&Lte(r),r}if("RegExp"===Pee(e))return See(voe,e,t);throw joe("RegExp#exec called on incompatible receiver")},zoe=Dte("replace"),Hoe=Math.max,Uoe=Math.min,$oe=Bee([].concat),Voe=Bee([].push),Goe=Bee("".indexOf),Woe=Bee("".slice),qoe="$0"==="a".replace(/./,"$0"),Koe=!!/./[zoe]&&""===/./[zoe]("a","$0");Coe("replace",(function(e,t,n){var r=Koe?"$":"$0";return[function(e,n){var r=Mee(this),o=null==e?void 0:ite(e,zoe);return o?See(o,e,r,n):See(t,Yne(r),e,n)},function(e,o){var i=Lte(this),a=Yne(e);if("string"==typeof o&&-1===Goe(o,r)&&-1===Goe(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Hee(o);s||(o=Yne(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Moe(i,a);if(null===d)break;if(Voe(f,d),!l)break;""===Yne(d[0])&&(i.lastIndex=Noe(a,mne(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=Yne((d=f[g])[0]),m=Hoe(Uoe(pne(d.index),a.length),0),b=[],E=1;E<d.length;E++)Voe(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=$oe([y],b,m,a);void 0!==w&&Voe(S,w);var C=Yne(Eoe(o,void 0,S))}else C=_oe(y,a,m,b,w,o);m>=v&&(h+=Woe(a,v,m)+C,v=m+y.length)}return h+Woe(a,v)}]}),!!bee((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!qoe||Koe);var Yoe=Dte("match"),Xoe=mee.TypeError,Zoe=Dte("species"),Joe=function(e,t){var n,r=Lte(e).constructor;return void 0===r||null==(n=Lte(r)[Zoe])?t:function(e){if(Lre(e))return e;throw Xoe(nte(e)+" is not a constructor")}(n)},Qoe=function(e,t,n){var r=Ote(t);r in e?Mte.f(e,r,xee(0,n)):e[r]=n},eie=mee.Array,tie=Math.max,nie=function(e,t,n){for(var r=bne(e),o=gne(t,r),i=gne(void 0===n?r:n,r),a=eie(tie(i-o,0)),u=0;o<i;o++,u++)Qoe(a,u,e[o]);return a.length=u,a},rie=Qre.UNSUPPORTED_Y,oie=4294967295,iie=Math.min,aie=[].push,uie=Bee(/./.exec),sie=Bee(aie),lie=Bee("".slice);Coe("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Yne(Mee(this)),a=void 0===n?oie:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Uee(r=e)||!(void 0!==(o=r[Yoe])?o:"RegExp"==Pee(r)))return See(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=See(voe,p,i))&&!((s=p.lastIndex)>d&&(sie(c,lie(i,d,u.index)),u.length>1&&u.index<i.length&&Eoe(aie,c,nie(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&uie(p,"")||sie(c,""):sie(c,lie(i,d)),c.length>a?nie(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:See(t,this,e,n)}:t,[function(t,n){var o=Mee(this),i=null==t?void 0:ite(t,e);return i?See(i,t,o,n):See(r,Yne(o),t,n)},function(e,o){var i=Lte(this),a=Yne(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Joe(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(rie?"g":"y"),f=new s(rie?"^(?:"+i.source+")":i,c),d=void 0===o?oie:o>>>0;if(0===d)return[];if(0===a.length)return null===Moe(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=rie?0:h;var g,y=Moe(f,rie?lie(a,h):a);if(null===y||(g=iie(mne(f.lastIndex+(rie?h:0)),a.length))===p)h=Noe(a,h,l);else{if(sie(v,lie(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(sie(v,y[m]),v.length===d)return v;h=p=g}}return sie(v,lie(a,p)),v}]}),!!bee((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),rie);var cie={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},fie=Nte("span").classList,die=fie&&fie.constructor&&fie.constructor.prototype,pie=die===Object.prototype?void 0:die,hie=function(e,t){var n=[][e];return!!n&&bee((function(){n.call(null,t||function(){throw 1},1)}))},vie=Ure.forEach,gie=hie("forEach")?[].forEach:function(e){return vie(this,e,arguments.length>1?arguments[1]:void 0)},yie=function(e){if(e&&e.forEach!==gie)try{zte(e,"forEach",gie)}catch(t){e.forEach=gie}};for(var mie in cie)cie[mie]&&yie(mee[mie]&&mee[mie].prototype);function bie(e){return void 0===e&&(e="r"),e+"-"+yv()}function Eie(e){var t={};return e.trim().split(";").forEach((function(e){if(e){var n=fee(e.split(":"),2),r=n[0],o=n[1];r&&o&&(t[r.trim()]=o.trim())}})),t}function wie(e,t,n,r,o){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:e,poster:t,width:n,height:r,style:o,children:[{text:""}]}}yie(pie);var Sie={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=hh(e),o="",i="",a="auto",u="auto",s={},l=r.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",u=l.attr("height")||"auto",s=Eie(s=l.attr("style")||""),wie(o=l[0].outerHTML,i,a,u,s);var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",u=c.attr("height")||"auto",wie(o,i=c.attr("poster")||"",a,u,s=Eie(s=c.attr("style")||""))}},Cie=mee.Promise,Die=function(e,t,n){for(var r in t)cne(e,r,t[r],n);return e},Aie=mee.String,xie=mee.TypeError,Oie=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Bee(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Lte(n),function(e){if("object"==typeof e||Hee(e))return e;throw xie("Can't set "+Aie(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Tie=Mte.f,kie=Dte("toStringTag"),Nie=function(e,t,n){e&&!vte(e=n?e:e.prototype,kie)&&Tie(e,kie,{configurable:!0,value:t})},Bie=Dte("species"),Iie=mee.TypeError,Fie=function(e,t){if(Vee(t,e))return e;throw Iie("Incorrect invocation")},Pie={},Rie=Dte("iterator"),Lie=Array.prototype,_ie=Dte("iterator"),jie=function(e){if(null!=e)return ite(e,_ie)||ite(e,"@@iterator")||Pie[qne(e)]},Mie=mee.TypeError,zie=function(e,t,n){var r,o;Lte(e);try{if(!(r=ite(e,"return"))){if("throw"===t)throw n;return n}r=See(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Lte(r),n},Hie=mee.TypeError,Uie=function(e,t){this.stopped=e,this.result=t},$ie=Uie.prototype,Vie=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Ore(t,f),g=function(e){return r&&zie(r,"normal",e),new Uie(!0,e)},y=function(e){return d?(Lte(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=jie(e)))throw Hie(nte(e)+" is not iterable");if(void 0!==(c=o)&&(Pie.Array===c||Lie[Rie]===c)){for(i=0,a=bne(e);a>i;i++)if((u=y(e[i]))&&Vee($ie,u))return u;return new Uie(!1)}r=function(e,t){var n=arguments.length<2?jie(e):t;if(ote(n))return Lte(See(n,e));throw Mie(nte(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=See(s,r)).done;){try{u=y(l.value)}catch(e){zie(r,"throw",e)}if("object"==typeof u&&u&&Vee($ie,u))return u}return new Uie(!1)},Gie=Dte("iterator"),Wie=!1;try{var qie=0,Kie={next:function(){return{done:!!qie++}},return:function(){Wie=!0}};Kie[Gie]=function(){return this},Array.from(Kie,(function(){throw 2}))}catch(tc){}var Yie,Xie,Zie,Jie,Qie=function(e,t){if(!t&&!Wie)return!1;var n=!1;try{var r={};r[Gie]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},eae=Bee([].slice),tae=/(?:ipad|iphone|ipod).*applewebkit/i.test(Gee),nae="process"==Pee(mee.process),rae=mee.setImmediate,oae=mee.clearImmediate,iae=mee.process,aae=mee.Dispatch,uae=mee.Function,sae=mee.MessageChannel,lae=mee.String,cae=0,fae={},dae="onreadystatechange";try{Yie=mee.location}catch(tc){}var pae=function(e){if(vte(fae,e)){var t=fae[e];delete fae[e],t()}},hae=function(e){return function(){pae(e)}},vae=function(e){pae(e.data)},gae=function(e){mee.postMessage(lae(e),Yie.protocol+"//"+Yie.host)};rae&&oae||(rae=function(e){var t=eae(arguments,1);return fae[++cae]=function(){Eoe(Hee(e)?e:uae(e),void 0,t)},Xie(cae),cae},oae=function(e){delete fae[e]},nae?Xie=function(e){iae.nextTick(hae(e))}:aae&&aae.now?Xie=function(e){aae.now(hae(e))}:sae&&!tae?(Jie=(Zie=new sae).port2,Zie.port1.onmessage=vae,Xie=Ore(Jie.postMessage,Jie)):mee.addEventListener&&Hee(mee.postMessage)&&!mee.importScripts&&Yie&&"file:"!==Yie.protocol&&!bee(gae)?(Xie=gae,mee.addEventListener("message",vae,!1)):Xie=dae in Nte("script")?function(e){dre.appendChild(Nte("script"))[dae]=function(){dre.removeChild(this),pae(e)}}:function(e){setTimeout(hae(e),0)});var yae,mae,bae,Eae,wae,Sae,Cae,Dae,Aae={set:rae,clear:oae},xae=/ipad|iphone|ipod/i.test(Gee)&&void 0!==mee.Pebble,Oae=/web0s(?!.*chrome)/i.test(Gee),Tae=Fte.f,kae=Aae.set,Nae=mee.MutationObserver||mee.WebKitMutationObserver,Bae=mee.document,Iae=mee.process,Fae=mee.Promise,Pae=Tae(mee,"queueMicrotask"),Rae=Pae&&Pae.value;Rae||(yae=function(){var e,t;for(nae&&(e=Iae.domain)&&e.exit();mae;){t=mae.fn,mae=mae.next;try{t()}catch(e){throw mae?Eae():bae=void 0,e}}bae=void 0,e&&e.enter()},tae||nae||Oae||!Nae||!Bae?!xae&&Fae&&Fae.resolve?((Cae=Fae.resolve(void 0)).constructor=Fae,Dae=Ore(Cae.then,Cae),Eae=function(){Dae(yae)}):nae?Eae=function(){Iae.nextTick(yae)}:(kae=Ore(kae,mee),Eae=function(){kae(yae)}):(wae=!0,Sae=Bae.createTextNode(""),new Nae(yae).observe(Sae,{characterData:!0}),Eae=function(){Sae.data=wae=!wae}));var Lae,_ae,jae,Mae,zae=Rae||function(e){var t={fn:e,next:void 0};bae&&(bae.next=t),mae||(mae=t,Eae()),bae=t},Hae=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=ote(t),this.reject=ote(n)},Uae={f:function(e){return new Hae(e)}},$ae=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Vae="object"==typeof window,Gae=Aae.set,Wae=Dte("species"),qae="Promise",Kae=ine.getterFor(qae),Yae=ine.set,Xae=ine.getterFor(qae),Zae=Cie&&Cie.prototype,Jae=Cie,Qae=Zae,eue=mee.TypeError,tue=mee.document,nue=mee.process,rue=Uae.f,oue=rue,iue=!!(tue&&tue.createEvent&&mee.dispatchEvent),aue=Hee(mee.PromiseRejectionEvent),uue="unhandledrejection",sue=!1,lue=jne(qae,(function(){var e=Gte(Jae),t=e!==String(Jae);if(!t&&66===Xee)return!0;if(Xee>=51&&/native code/.test(e))return!1;var n=new Jae((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Wae]=r,!(sue=n.then((function(){}))instanceof r)||!t&&Vae&&!aue})),cue=lue||!Qie((function(e){Jae.all(e).catch((function(){}))})),fue=function(e){var t;return!(!Uee(e)||!Hee(t=e.then))&&t},due=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;zae((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&gue(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(eue("Promise-chain cycle")):(u=fue(a))?See(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&hue(e)}))}},pue=function(e,t,n){var r,o;iue?((r=tue.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),mee.dispatchEvent(r)):r={promise:t,reason:n},!aue&&(o=mee["on"+e])?o(r):e===uue&&function(e,t){var n=mee.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},hue=function(e){See(Gae,mee,(function(){var t,n=e.facade,r=e.value;if(vue(e)&&(t=$ae((function(){nae?nue.emit("unhandledRejection",r,n):pue(uue,n,r)})),e.rejection=nae||vue(e)?2:1,t.error))throw t.value}))},vue=function(e){return 1!==e.rejection&&!e.parent},gue=function(e){See(Gae,mee,(function(){var t=e.facade;nae?nue.emit("rejectionHandled",t):pue("rejectionhandled",t,e.value)}))},yue=function(e,t,n){return function(r){e(t,r,n)}},mue=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,due(e,!0))},bue=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw eue("Promise can't be resolved itself");var r=fue(t);r?zae((function(){var n={done:!1};try{See(r,t,yue(bue,n,e),yue(mue,n,e))}catch(t){mue(n,t,e)}})):(e.value=t,e.state=1,due(e,!1))}catch(t){mue({done:!1},t,e)}}};if(lue&&(Qae=(Jae=function(e){Fie(this,Qae),ote(e),See(Lae,this);var t=Kae(this);try{e(yue(bue,t),yue(mue,t))}catch(e){mue(t,e)}}).prototype,(Lae=function(e){Yae(this,{type:qae,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Die(Qae,{then:function(e,t){var n=Xae(this),r=n.reactions,o=rue(Joe(this,Jae));return o.ok=!Hee(e)||e,o.fail=Hee(t)&&t,o.domain=nae?nue.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&due(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),_ae=function(){var e=new Lae,t=Kae(e);this.promise=e,this.resolve=yue(bue,t),this.reject=yue(mue,t)},Uae.f=rue=function(e){return e===Jae||e===jae?new _ae(e):oue(e)},Hee(Cie)&&Zae!==Object.prototype)){Mae=Zae.then,sue||(cne(Zae,"then",(function(e,t){var n=this;return new Jae((function(e,t){See(Mae,n,e,t)})).then(e,t)}),{unsafe:!0}),cne(Zae,"catch",Qae.catch,{unsafe:!0}));try{delete Zae.constructor}catch(tc){}Oie&&Oie(Zae,Qae)}function Eue(e,t,n,r,o){return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o=""),lee(this,void 0,void 0,(function(){var i,a,u,s,l,c,f;return cee(this,(function(d){switch(d.label){case 0:return t?(e.restoreSelection(),i=e.getMenuConfig("insertVideo"),a=i.onInsertedVideo,u=i.checkVideo,s=i.parseVideoSrc,[4,u(t,n)]):[2];case 1:return"string"==typeof(l=d.sent())?(e.alert(l,"error"),[2]):null==l?[2]:[4,s(t)];case 2:return 0!==(c=d.sent()).trim().indexOf("<iframe ")&&(c=c.replace(/</g,"<").replace(/>/g,">")),f={type:"video",src:c,poster:n,children:[{text:""}],style:{width:r,height:o}},Promise.resolve().then((function(){XN.isSelectedEmptyParagraph(e)&&Pd.removeNodes(e,{mode:"highest"}),Pd.insertNodes(e,f)})),a(f),[2]}}))}))}function wue(){return bie("w-e-insert-video")}zne({global:!0,wrap:!0,forced:lue},{Promise:Jae}),Nie(Jae,qae,!1),function(){var e=$ee(qae),t=Mte.f;Eee&&e&&!e[Bie]&&t(e,Bie,{configurable:!0,get:function(){return this}})}(),jae=$ee(qae),zne({target:qae,stat:!0,forced:lue},{reject:function(e){var t=rue(this);return See(t.reject,void 0,e),t.promise}}),zne({target:qae,stat:!0,forced:lue},{resolve:function(e){return function(e,t){if(Lte(e),Uee(t)&&t.constructor===e)return t;var n=Uae.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),zne({target:qae,stat:!0,forced:cue},{all:function(e){var t=this,n=rue(t),r=n.resolve,o=n.reject,i=$ae((function(){var n=ote(t.resolve),i=[],a=0,u=1;Vie(e,(function(e){var s=a++,l=!1;u++,See(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=rue(t),r=n.reject,o=$ae((function(){var o=ote(t.resolve);Vie(e,(function(e){See(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Sue=function(){function e(){this.title=eR("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=wue(),this.posterInputId=wue(),this.buttonId=wue()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||!!XN.getSelectedElems(e).some((function(t){var n=XN.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=fee(_F(eR("videoModule.videoSrc"),r,eR("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=fee(_F(eR("videoModule.videoPoster"),o,eR("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=hh(s),p=hh(f),h=fee(MF(i,eR("videoModule.ok")),1)[0];if(null==this.$content){var v=hh("<div></div>");v.on("click","#"+i,(function(n){return lee(t,void 0,void 0,(function(){var t,i;return cee(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,Eue(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=v}var g=this.$content;return g.empty(),g.append(u),g.append(c),g.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),g[0]},e}(),Cue=Bee([].join),Due=_ee!=Object,Aue=hie("join",",");zne({target:"Array",proto:!0,forced:Due||!Aue},{join:function(e){return Cue(zee(this),void 0===e?",":e)}});var xue,Oue,Tue,kue=!bee((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Nue=Yte("IE_PROTO"),Bue=mee.Object,Iue=Bue.prototype,Fue=kue?Bue.getPrototypeOf:function(e){var t=pte(e);if(vte(t,Nue))return t[Nue];var n=t.constructor;return Hee(n)&&t instanceof n?n.prototype:t instanceof Bue?Iue:null},Pue=Dte("iterator"),Rue=!1;[].keys&&("next"in(Tue=[].keys())?(Oue=Fue(Fue(Tue)))!==Object.prototype&&(xue=Oue):Rue=!0);var Lue=null==xue||bee((function(){var e={};return xue[Pue].call(e)!==e}));Lue&&(xue={}),Hee(xue[Pue])||cne(xue,Pue,(function(){return this}));var _ue={IteratorPrototype:xue,BUGGY_SAFARI_ITERATORS:Rue},jue=_ue.IteratorPrototype,Mue=function(){return this},zue=lne.PROPER,Hue=lne.CONFIGURABLE,Uue=_ue.IteratorPrototype,$ue=_ue.BUGGY_SAFARI_ITERATORS,Vue=Dte("iterator"),Gue="keys",Wue="values",que="entries",Kue=function(){return this},Yue=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Ere(jue,{next:xee(1,n)}),Nie(e,r,!1),Pie[r]=Mue}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!$ue&&e in p)return p[e];switch(e){case Gue:case Wue:case que:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Vue]||p["@@iterator"]||o&&p[o],v=!$ue&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=Fue(g.call(new e)))!==Object.prototype&&u.next&&(Fue(u)!==Uue&&(Oie?Oie(u,Uue):Hee(u[Vue])||cne(u,Vue,Kue)),Nie(u,f,!0)),zue&&o==Wue&&h&&h.name!==Wue&&(Hue?zte(p,"name",Wue):(d=!0,v=function(){return See(h,this)})),o)if(s={values:c(Wue),keys:i?v:c(Gue),entries:c(que)},a)for(l in s)($ue||d||!(l in p))&&cne(p,l,s[l]);else zne({target:t,proto:!0,forced:$ue||d},s);return p[Vue]!==v&&cne(p,Vue,v,{name:o}),Pie[t]=v,s},Xue="Array Iterator",Zue=ine.set,Jue=ine.getterFor(Xue),Que=Yue(Array,"Array",(function(e,t){Zue(this,{type:Xue,target:zee(e),index:0,kind:t})}),(function(){var e=Jue(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Pie.Arguments=Pie.Array,Cre("keys"),Cre("values"),Cre("entries");var ese=Toe.charAt,tse="String Iterator",nse=ine.set,rse=ine.getterFor(tse);Yue(String,"String",(function(e){nse(this,{type:tse,string:Yne(e),index:0})}),(function(){var e,t=rse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ese(n,r),t.index+=e.length,{value:e,done:!1})}));var ose=One.f,ise="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ase={f:function(e){return ise&&"Window"==Pee(e)?function(e){try{return ose(e)}catch(e){return nie(ise)}}(e):ose(zee(e))}},use=bee((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),sse=Object.isExtensible,lse=bee((function(){sse(1)}))||use?function(e){return!!Uee(e)&&(!use||"ArrayBuffer"!=Pee(e))&&(!sse||sse(e))}:sse,cse=!bee((function(){return Object.isExtensible(Object.preventExtensions({}))})),fse=hee((function(e){var t=Mte.f,n=!1,r=bte("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=One.f,t=Bee([].splice),o={};o[r]=1,e(o).length&&(One.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},zne({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ase.f}))},fastKey:function(e,t){if(!Uee(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!vte(e,r)){if(!lse(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!vte(e,r)){if(!lse(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return cse&&n&&lse(e)&&!vte(e,r)&&i(e),e}};Xte[r]=!0})),dse=fse.getWeakData,pse=ine.set,hse=ine.getterFor,vse=Ure.find,gse=Ure.findIndex,yse=Bee([].splice),mse=0,bse=function(e){return e.frozen||(e.frozen=new Ese)},Ese=function(){this.entries=[]},wse=function(e,t){return vse(e.entries,(function(e){return e[0]===t}))};Ese.prototype={get:function(e){var t=wse(this,e);if(t)return t[1]},has:function(e){return!!wse(this,e)},set:function(e,t){var n=wse(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=gse(this.entries,(function(t){return t[0]===e}));return~t&&yse(this.entries,t,1),!!~t}};var Sse,Cse={getConstructor:function(e,t,n,r){var o=e((function(e,o){Fie(e,i),pse(e,{type:t,id:mse++,frozen:void 0}),null!=o&&Vie(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=hse(t),u=function(e,t,n){var r=a(e),o=dse(Lte(t),!0);return!0===o?bse(r).set(t,n):o[r.id]=n,e};return Die(i,{delete:function(e){var t=a(this);if(!Uee(e))return!1;var n=dse(e);return!0===n?bse(t).delete(e):n&&vte(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Uee(e))return!1;var n=dse(e);return!0===n?bse(t).has(e):n&&vte(n,t.id)}}),Die(i,n?{get:function(e){var t=a(this);if(Uee(e)){var n=dse(e);return!0===n?bse(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Dse=ine.enforce,Ase=!mee.ActiveXObject&&"ActiveXObject"in mee,xse=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ose=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=mee[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Bee(u[e]);cne(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Uee(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Uee(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Uee(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(jne(e,!Hee(a)||!(o||u.forEach&&!bee((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),fse.enable();else if(jne(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=bee((function(){f.has(1)})),h=Qie((function(e){new a(e)})),v=!o&&bee((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Fie(e,u);var n=function(e,t,n){var r,o;return Oie&&Hee(r=t.constructor)&&r!==n&&Uee(o=r.prototype)&&o!==n.prototype&&Oie(e,o),e}(new a,e,s);return null!=t&&Vie(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,zne({global:!0,forced:s!=a},l),Nie(s,e),o||n.setStrong(s,e,r),s}("WeakMap",xse,Cse);if(qte&&Ase){Sse=Cse.getConstructor(xse,"WeakMap",!0),fse.enable();var Tse=Ose.prototype,kse=Bee(Tse.delete),Nse=Bee(Tse.has),Bse=Bee(Tse.get),Ise=Bee(Tse.set);Die(Tse,{delete:function(e){if(Uee(e)&&!lse(e)){var t=Dse(this);return t.frozen||(t.frozen=new Sse),kse(this,e)||t.frozen.delete(e)}return kse(this,e)},has:function(e){if(Uee(e)&&!lse(e)){var t=Dse(this);return t.frozen||(t.frozen=new Sse),Nse(this,e)||t.frozen.has(e)}return Nse(this,e)},get:function(e){if(Uee(e)&&!lse(e)){var t=Dse(this);return t.frozen||(t.frozen=new Sse),Nse(this,e)?Bse(this,e):t.frozen.get(e)}return Bse(this,e)},set:function(e,t){if(Uee(e)&&!lse(e)){var n=Dse(this);n.frozen||(n.frozen=new Sse),Nse(this,e)?Ise(this,e,t):n.frozen.set(e,t)}else Ise(this,e,t);return this}})}var Fse=Dte("iterator"),Pse=Dte("toStringTag"),Rse=Que.values,Lse=function(e,t){if(e){if(e[Fse]!==Rse)try{zte(e,Fse,Rse)}catch(t){e[Fse]=Rse}if(e[Pse]||zte(e,Pse,t),cie[t])for(var n in Que)if(e[n]!==Que[n])try{zte(e,n,Que[n])}catch(t){e[n]=Que[n]}}};for(var _se in cie)Lse(mee[_se]&&mee[_se].prototype,_se);Lse(pie,"DOMTokenList");var jse=lne.EXISTS,Mse=Mte.f,zse=Function.prototype,Hse=Bee(zse.toString),Use=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,$se=Bee(Use.exec);Eee&&!jse&&Mse(zse,"name",{configurable:!0,get:function(){try{return $se(Use,Hse(this))[1]}catch(e){return""}}});var Vse=Dte("species"),Gse=Xee>=51||!bee((function(){var e=[];return(e.constructor={})[Vse]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Wse=Dte("species"),qse=mee.Array,Kse=Math.max;function Yse(e){return e.getMenuConfig("uploadVideo")}zne({target:"Array",proto:!0,forced:!Gse},{slice:function(e,t){var n,r,o,i=zee(this),a=bne(i),u=gne(e,a),s=gne(void 0===t?a:t,a);if(Tre(i)&&(n=i.constructor,(Lre(n)&&(n===qse||Tre(n.prototype))||Uee(n)&&null===(n=n[Wse]))&&(n=void 0),n===qse||void 0===n))return eae(i,u,s);for(r=new(void 0===n?qse:n)(Kse(s-u,0)),o=0;u<s;u++,o++)u in i&&Qoe(r,o,i[u]);return r.length=o,r}});var Xse=new WeakMap;function Zse(e,t){return lee(this,void 0,void 0,(function(){var n,r,o,i;return cee(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Xse.get(e);if(null!=t)return t;var n=Yse(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=sP(see(see({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Eue(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;Eue(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Xse.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var Jse=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return Eue(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=hh("body"),s=hh('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;lee(this,void 0,void 0,(function(){var o,i,a,u,s,l;return cee(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Yse(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=dee(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return Eue(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Zse(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!ld.isCollapsed(t)||!!XN.getSelectedElems(e).some((function(t){var n=XN.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}();function Qse(){return bie("w-e-insert-video")}var ele=function(){function e(){this.title=eR("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Qse(),this.heightInputId=Qse(),this.buttonId=Qse()}return e.prototype.getSelectedVideoNode=function(e){return XN.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=fee(_F(eR("videoModule.width"),n,"auto"),2),a=i[0],u=hh(i[1]),s=fee(_F(eR("videoModule.height"),r,"auto"),2),l=s[0],c=hh(s[1]),f=fee(MF(o,eR("videoModule.ok")),1)[0];if(null==this.$content){var d=hh("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},s="auto",l="auto";a(o)?s=o:u(o)&&(s=parseInt(o)+"px"),a(i)?l=i:u(i)&&(l=parseInt(i)+"px");var c=h.style,f=void 0===c?{}:c;e.restoreSelection();var p={style:see(see({},f),{width:s,height:l})};Pd.setNodes(e,p,{match:function(e){return XN.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var v=h.style,g=void 0===v?{}:v,y=g.width,m=void 0===y?"":y,b=g.height,E=void 0===b?"":b;return u.val(m),c.val(E),setTimeout((function(){u.focus()})),p[0]},e}();function tle(){return bie("w-e-edit-video")}var nle=function(){function e(){this.title=eR("videoModule.edit"),this.iconSvg='<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>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=tle(),this.posterInputId=tle(),this.buttonId=tle()}return e.prototype.getSelectedVideoNode=function(e){return XN.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=fee(_F(eR("videoModule.videoSrc"),r,eR("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=fee(_F(eR("videoModule.videoPoster"),o,eR("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=hh(s),p=hh(f),h=fee(MF(i,eR("videoModule.ok")),1)[0];if(null==this.$content){var v=hh("<div></div>");v.on("click","#"+i,(function(n){return lee(t,void 0,void 0,(function(){var t,i,a,u;return cee(this,(function(s){return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),a=bie("video-"),u={src:t,poster:i,key:a},e.restoreSelection(),Pd.setNodes(e,u,{match:function(e){return XN.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]}))}))})),this.$content=v}var g=this.$content;g.empty(),g.append(u),g.append(c),g.append(h);var y=this.getSelectedVideoNode(e);if(null==y)return g[0];var m=y.src,b=void 0===m?"":m,E=y.poster,w=void 0===E?"":E;return d.val(b),p.val(w),setTimeout((function(){d.focus()})),g[0]},e}(),rle={renderElems:[sre],elemsToHtml:[lre],preParseHtml:[Are],parseElemsHtml:[Sie],menus:[{key:"insertVideo",factory:function(){return new Sue},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Jse},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new ele}},{key:"editVideoSrc",factory:function(){return new nle}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=fee(e,2),o=t[0],i=t[1];return"video"===XN.getNodeType(o)&&XN.isLastNode(r,o)&&Pd.insertNodes(r,XN.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};ZP("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),ZP("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var ole="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ile(e){var t={exports:{}};return e(t,t.exports),t.exports}var ale,ule,sle=function(e){return e&&e.Math==Math&&e},lle=sle("object"==typeof globalThis&&globalThis)||sle("object"==typeof window&&window)||sle("object"==typeof self&&self)||sle("object"==typeof ole&&ole)||function(){return this}()||Function("return this")(),cle=function(e){try{return!!e()}catch(e){return!0}},fle=!cle((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),dle=Function.prototype.call,ple=dle.bind?dle.bind(dle):function(){return dle.apply(dle,arguments)},hle={}.propertyIsEnumerable,vle=Object.getOwnPropertyDescriptor,gle={f:vle&&!hle.call({1:2},1)?function(e){var t=vle(this,e);return!!t&&t.enumerable}:hle},yle=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mle=Function.prototype,ble=mle.bind,Ele=mle.call,wle=ble&&ble.bind(Ele),Sle=ble?function(e){return e&&wle(Ele,e)}:function(e){return e&&function(){return Ele.apply(e,arguments)}},Cle=Sle({}.toString),Dle=Sle("".slice),Ale=function(e){return Dle(Cle(e),8,-1)},xle=lle.Object,Ole=Sle("".split),Tle=cle((function(){return!xle("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ale(e)?Ole(e,""):xle(e)}:xle,kle=lle.TypeError,Nle=function(e){if(null==e)throw kle("Can't call method on "+e);return e},Ble=function(e){return Tle(Nle(e))},Ile=function(e){return"function"==typeof e},Fle=function(e){return"object"==typeof e?null!==e:Ile(e)},Ple=function(e,t){return arguments.length<2?(n=lle[e],Ile(n)?n:void 0):lle[e]&&lle[e][t];var n},Rle=Sle({}.isPrototypeOf),Lle=Ple("navigator","userAgent")||"",_le=lle.process,jle=lle.Deno,Mle=_le&&_le.versions||jle&&jle.version,zle=Mle&&Mle.v8;zle&&(ule=(ale=zle.split("."))[0]>0&&ale[0]<4?1:+(ale[0]+ale[1])),!ule&&Lle&&(!(ale=Lle.match(/Edge\/(\d+)/))||ale[1]>=74)&&(ale=Lle.match(/Chrome\/(\d+)/))&&(ule=+ale[1]);var Hle=ule,Ule=!!Object.getOwnPropertySymbols&&!cle((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hle&&Hle<41})),$le=Ule&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Vle=lle.Object,Gle=$le?function(e){return"symbol"==typeof e}:function(e){var t=Ple("Symbol");return Ile(t)&&Rle(t.prototype,Vle(e))},Wle=lle.String,qle=function(e){try{return Wle(e)}catch(e){return"Object"}},Kle=lle.TypeError,Yle=function(e){if(Ile(e))return e;throw Kle(qle(e)+" is not a function")},Xle=function(e,t){var n=e[t];return null==n?void 0:Yle(n)},Zle=lle.TypeError,Jle=Object.defineProperty,Qle=function(e,t){try{Jle(lle,e,{value:t,configurable:!0,writable:!0})}catch(n){lle[e]=t}return t},ece="__core-js_shared__",tce=lle[ece]||Qle(ece,{}),nce=ile((function(e){(e.exports=function(e,t){return tce[e]||(tce[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),rce=lle.Object,oce=function(e){return rce(Nle(e))},ice=Sle({}.hasOwnProperty),ace=Object.hasOwn||function(e,t){return ice(oce(e),t)},uce=0,sce=Math.random(),lce=Sle(1..toString),cce=function(e){return"Symbol("+(void 0===e?"":e)+")_"+lce(++uce+sce,36)},fce=nce("wks"),dce=lle.Symbol,pce=dce&&dce.for,hce=$le?dce:dce&&dce.withoutSetter||cce,vce=function(e){if(!ace(fce,e)||!Ule&&"string"!=typeof fce[e]){var t="Symbol."+e;Ule&&ace(dce,e)?fce[e]=dce[e]:fce[e]=$le&&pce?pce(t):hce(t)}return fce[e]},gce=lle.TypeError,yce=vce("toPrimitive"),mce=function(e){var t=function(e,t){if(!Fle(e)||Gle(e))return e;var n,r=Xle(e,yce);if(r){if(void 0===t&&(t="default"),n=ple(r,e,t),!Fle(n)||Gle(n))return n;throw gce("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Ile(n=e.toString)&&!Fle(r=ple(n,e)))return r;if(Ile(n=e.valueOf)&&!Fle(r=ple(n,e)))return r;if("string"!==t&&Ile(n=e.toString)&&!Fle(r=ple(n,e)))return r;throw Zle("Can't convert object to primitive value")}(e,t)}(e,"string");return Gle(t)?t:t+""},bce=lle.document,Ece=Fle(bce)&&Fle(bce.createElement),wce=function(e){return Ece?bce.createElement(e):{}},Sce=!fle&&!cle((function(){return 7!=Object.defineProperty(wce("div"),"a",{get:function(){return 7}}).a})),Cce=Object.getOwnPropertyDescriptor,Dce={f:fle?Cce:function(e,t){if(e=Ble(e),t=mce(t),Sce)try{return Cce(e,t)}catch(e){}if(ace(e,t))return yle(!ple(gle.f,e,t),e[t])}},Ace=lle.String,xce=lle.TypeError,Oce=function(e){if(Fle(e))return e;throw xce(Ace(e)+" is not an object")},Tce=lle.TypeError,kce=Object.defineProperty,Nce={f:fle?kce:function(e,t,n){if(Oce(e),t=mce(t),Oce(n),Sce)try{return kce(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Tce("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Bce=fle?function(e,t,n){return Nce.f(e,t,yle(1,n))}:function(e,t,n){return e[t]=n,e},Ice=Sle(Function.toString);Ile(tce.inspectSource)||(tce.inspectSource=function(e){return Ice(e)});var Fce,Pce,Rce,Lce=tce.inspectSource,_ce=lle.WeakMap,jce=Ile(_ce)&&/native code/.test(Lce(_ce)),Mce=nce("keys"),zce=function(e){return Mce[e]||(Mce[e]=cce(e))},Hce={},Uce="Object already initialized",$ce=lle.TypeError,Vce=lle.WeakMap;if(jce||tce.state){var Gce=tce.state||(tce.state=new Vce),Wce=Sle(Gce.get),qce=Sle(Gce.has),Kce=Sle(Gce.set);Fce=function(e,t){if(qce(Gce,e))throw new $ce(Uce);return t.facade=e,Kce(Gce,e,t),t},Pce=function(e){return Wce(Gce,e)||{}},Rce=function(e){return qce(Gce,e)}}else{var Yce=zce("state");Hce[Yce]=!0,Fce=function(e,t){if(ace(e,Yce))throw new $ce(Uce);return t.facade=e,Bce(e,Yce,t),t},Pce=function(e){return ace(e,Yce)?e[Yce]:{}},Rce=function(e){return ace(e,Yce)}}var Xce={set:Fce,get:Pce,has:Rce,enforce:function(e){return Rce(e)?Pce(e):Fce(e,{})},getterFor:function(e){return function(t){var n;if(!Fle(t)||(n=Pce(t)).type!==e)throw $ce("Incompatible receiver, "+e+" required");return n}}},Zce=Function.prototype,Jce=fle&&Object.getOwnPropertyDescriptor,Qce=ace(Zce,"name"),efe={EXISTS:Qce,PROPER:Qce&&"something"===function(){}.name,CONFIGURABLE:Qce&&(!fle||fle&&Jce(Zce,"name").configurable)},tfe=ile((function(e){var t=efe.CONFIGURABLE,n=Xce.get,r=Xce.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Ile(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ace(i,"name")||t&&i.name!==f)&&Bce(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==lle?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Bce(e,n,i)):l?e[n]=i:Qle(n,i)})(Function.prototype,"toString",(function(){return Ile(this)&&n(this).source||Lce(this)}))})),nfe=Math.ceil,rfe=Math.floor,ofe=function(e){var t=+e;return t!=t||0===t?0:(t>0?rfe:nfe)(t)},ife=Math.max,afe=Math.min,ufe=function(e,t){var n=ofe(e);return n<0?ife(n+t,0):afe(n,t)},sfe=Math.min,lfe=function(e){return e>0?sfe(ofe(e),9007199254740991):0},cfe=function(e){return lfe(e.length)},ffe=function(e){return function(t,n,r){var o,i=Ble(t),a=cfe(i),u=ufe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},dfe=(ffe(!0),ffe(!1)),pfe=Sle([].push),hfe=function(e,t){var n,r=Ble(e),o=0,i=[];for(n in r)!ace(Hce,n)&&ace(r,n)&&pfe(i,n);for(;t.length>o;)ace(r,n=t[o++])&&(~dfe(i,n)||pfe(i,n));return i},vfe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gfe=vfe.concat("length","prototype"),yfe={f:Object.getOwnPropertyNames||function(e){return hfe(e,gfe)}},mfe={f:Object.getOwnPropertySymbols},bfe=Sle([].concat),Efe=Ple("Reflect","ownKeys")||function(e){var t=yfe.f(Oce(e)),n=mfe.f;return n?bfe(t,n(e)):t},wfe=function(e,t){for(var n=Efe(t),r=Nce.f,o=Dce.f,i=0;i<n.length;i++){var a=n[i];ace(e,a)||r(e,a,o(t,a))}},Sfe=/#|\.prototype\./,Cfe=function(e,t){var n=Afe[Dfe(e)];return n==Ofe||n!=xfe&&(Ile(t)?cle(t):!!t)},Dfe=Cfe.normalize=function(e){return String(e).replace(Sfe,".").toLowerCase()},Afe=Cfe.data={},xfe=Cfe.NATIVE="N",Ofe=Cfe.POLYFILL="P",Tfe=Cfe,kfe=Dce.f,Nfe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?lle:l?lle[u]||Qle(u,{}):(lle[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=kfe(n,r))&&a.value:n[r],!Tfe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;wfe(i,o)}(e.sham||o&&o.sham)&&Bce(i,"sham",!0),tfe(n,r,i,e)}},Bfe=Array.isArray||function(e){return"Array"==Ale(e)},Ife={};Ife[vce("toStringTag")]="z";var Ffe="[object z]"===String(Ife),Pfe=vce("toStringTag"),Rfe=lle.Object,Lfe="Arguments"==Ale(function(){return arguments}()),_fe=Ffe?Ale:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Rfe(e),Pfe))?n:Lfe?Ale(t):"Object"==(r=Ale(t))&&Ile(t.callee)?"Arguments":r},jfe=function(){},Mfe=[],zfe=Ple("Reflect","construct"),Hfe=/^\s*(?:class|function)\b/,Ufe=Sle(Hfe.exec),$fe=!Hfe.exec(jfe),Vfe=function(e){if(!Ile(e))return!1;try{return zfe(jfe,Mfe,e),!0}catch(e){return!1}},Gfe=!zfe||cle((function(){var e;return Vfe(Vfe.call)||!Vfe(Object)||!Vfe((function(){e=!0}))||e}))?function(e){if(!Ile(e))return!1;switch(_fe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $fe||!!Ufe(Hfe,Lce(e))}:Vfe,Wfe=function(e,t,n){var r=mce(t);r in e?Nce.f(e,r,yle(0,n)):e[r]=n},qfe=vce("species"),Kfe=Sle([].slice),Yfe=Hle>=51||!cle((function(){var e=[];return(e.constructor={})[qfe]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Xfe=vce("species"),Zfe=lle.Array,Jfe=Math.max;Nfe({target:"Array",proto:!0,forced:!Yfe},{slice:function(e,t){var n,r,o,i=Ble(this),a=cfe(i),u=ufe(e,a),s=ufe(void 0===t?a:t,a);if(Bfe(i)&&(n=i.constructor,(Gfe(n)&&(n===Zfe||Bfe(n.prototype))||Fle(n)&&null===(n=n[Xfe]))&&(n=void 0),n===Zfe||void 0===n))return Kfe(i,u,s);for(r=new(void 0===n?Zfe:n)(Jfe(s-u,0)),o=0;u<s;u++,o++)u in i&&Wfe(r,o,i[u]);return r.length=o,r}});var Qfe=Ffe?{}.toString:function(){return"[object "+_fe(this)+"]"};Ffe||tfe(Object.prototype,"toString",Qfe,{unsafe:!0});var ede,tde=lle.String,nde=function(e){if("Symbol"===_fe(e))throw TypeError("Cannot convert a Symbol value to a string");return tde(e)},rde=function(){var e=Oce(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ode=lle.RegExp,ide=cle((function(){var e=ode("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ade=ide||cle((function(){return!ode("a","y").sticky})),ude={BROKEN_CARET:ide||cle((function(){var e=ode("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ade,UNSUPPORTED_Y:ide},sde=Object.keys||function(e){return hfe(e,vfe)},lde=fle?Object.defineProperties:function(e,t){Oce(e);for(var n,r=Ble(t),o=sde(t),i=o.length,a=0;i>a;)Nce.f(e,n=o[a++],r[n]);return e},cde=Ple("document","documentElement"),fde="prototype",dde="script",pde=zce("IE_PROTO"),hde=function(){},vde=function(e){return"<"+dde+">"+e+"</"+dde+">"},gde=function(e){e.write(vde("")),e.close();var t=e.parentWindow.Object;return e=null,t},yde=function(){try{ede=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;yde="undefined"!=typeof document?document.domain&&ede?gde(ede):(t=wce("iframe"),n="java"+dde+":",t.style.display="none",cde.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(vde("document.F=Object")),e.close(),e.F):gde(ede);for(var r=vfe.length;r--;)delete yde[fde][vfe[r]];return yde()};Hce[pde]=!0;var mde,bde,Ede=Object.create||function(e,t){var n;return null!==e?(hde[fde]=Oce(e),n=new hde,hde[fde]=null,n[pde]=e):n=yde(),void 0===t?n:lde(n,t)},wde=lle.RegExp,Sde=cle((function(){var e=wde(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Cde=lle.RegExp,Dde=cle((function(){var e=Cde("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ade=Xce.get,xde=nce("native-string-replace",String.prototype.replace),Ode=RegExp.prototype.exec,Tde=Ode,kde=Sle("".charAt),Nde=Sle("".indexOf),Bde=Sle("".replace),Ide=Sle("".slice),Fde=(bde=/b*/g,ple(Ode,mde=/a/,"a"),ple(Ode,bde,"a"),0!==mde.lastIndex||0!==bde.lastIndex),Pde=ude.BROKEN_CARET,Rde=void 0!==/()??/.exec("")[1];(Fde||Rde||Pde||Sde||Dde)&&(Tde=function(e){var t,n,r,o,i,a,u,s=this,l=Ade(s),c=nde(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ple(Tde,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Pde&&s.sticky,h=ple(rde,s),v=s.source,g=0,y=c;if(p&&(h=Bde(h,"y",""),-1===Nde(h,"g")&&(h+="g"),y=Ide(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==kde(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Rde&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Fde&&(r=s.lastIndex),o=ple(Ode,p?n:s,y),p?o?(o.input=Ide(o.input,g),o[0]=Ide(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Fde&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Rde&&o&&o.length>1&&ple(xde,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Ede(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Lde=Tde;Nfe({target:"RegExp",proto:!0,forced:/./.exec!==Lde},{exec:Lde});var _de=Function.prototype,jde=_de.apply,Mde=_de.bind,zde=_de.call,Hde="object"==typeof Reflect&&Reflect.apply||(Mde?zde.bind(jde):function(){return zde.apply(jde,arguments)}),Ude=vce("species"),$de=RegExp.prototype,Vde=vce("match"),Gde=lle.TypeError,Wde=vce("species"),qde=function(e,t){var n,r=Oce(e).constructor;return void 0===r||null==(n=Oce(r)[Wde])?t:function(e){if(Gfe(e))return e;throw Gde(qle(e)+" is not a constructor")}(n)},Kde=Sle("".charAt),Yde=Sle("".charCodeAt),Xde=Sle("".slice),Zde=function(e){return function(t,n){var r,o,i=nde(Nle(t)),a=ofe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Yde(i,a))<55296||r>56319||a+1===u||(o=Yde(i,a+1))<56320||o>57343?e?Kde(i,a):r:e?Xde(i,a,a+2):o-56320+(r-55296<<10)+65536}},Jde={codeAt:Zde(!1),charAt:Zde(!0)},Qde=Jde.charAt,epe=function(e,t,n){return t+(n?Qde(e,t).length:1)},tpe=lle.Array,npe=Math.max,rpe=function(e,t,n){for(var r=cfe(e),o=ufe(t,r),i=ufe(void 0===n?r:n,r),a=tpe(npe(i-o,0)),u=0;o<i;o++,u++)Wfe(a,u,e[o]);return a.length=u,a},ope=lle.TypeError,ipe=function(e,t){var n=e.exec;if(Ile(n)){var r=ple(n,e,t);return null!==r&&Oce(r),r}if("RegExp"===Ale(e))return ple(Lde,e,t);throw ope("RegExp#exec called on incompatible receiver")},ape=ude.UNSUPPORTED_Y,upe=4294967295,spe=Math.min,lpe=[].push,cpe=Sle(/./.exec),fpe=Sle(lpe),dpe=Sle("".slice);!function(e,t,n,r){var o=vce(e),i=!cle((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!cle((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Ude]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=Sle(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=nde(Nle(this)),a=void 0===n?upe:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Fle(r=e)||!(void 0!==(o=r[Vde])?o:"RegExp"==Ale(r)))return ple(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=ple(Lde,p,i))&&!((s=p.lastIndex)>d&&(fpe(c,dpe(i,d,u.index)),u.length>1&&u.index<i.length&&Hde(lpe,c,rpe(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&cpe(p,"")||fpe(c,""):fpe(c,dpe(i,d)),c.length>a?rpe(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:ple(t,this,e,n)}:t,[function(t,n){var o=Nle(this),i=null==t?void 0:Xle(t,e);return i?ple(i,t,o,n):ple(r,nde(o),t,n)},function(e,o){var i=Oce(this),a=nde(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=qde(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(ape?"g":"y"),f=new s(ape?"^(?:"+i.source+")":i,c),d=void 0===o?upe:o>>>0;if(0===d)return[];if(0===a.length)return null===ipe(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=ape?0:h;var g,y=ipe(f,ape?dpe(a,h):a);if(null===y||(g=spe(lfe(f.lastIndex+(ape?h:0)),a.length))===p)h=epe(a,h,l);else{if(fpe(v,dpe(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(fpe(v,y[m]),v.length===d)return v;h=p=g}}return fpe(v,dpe(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=Sle(e),s=t.exec;return s===Lde||s===$de.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));tfe(String.prototype,e,s[0]),tfe($de,o,s[1])}r&&Bce($de[o],"sham",!0)}("split",0,!!cle((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),ape);var ppe=function(){return ppe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ppe.apply(this,arguments)};function hpe(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function vpe(e,t){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)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function gpe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var ype=vce("unscopables"),mpe=Array.prototype;null==mpe[ype]&&Nce.f(mpe,ype,{configurable:!0,value:Ede(null)});var bpe,Epe,wpe,Spe=function(e){mpe[ype][e]=!0},Cpe={},Dpe=!cle((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ape=zce("IE_PROTO"),xpe=lle.Object,Ope=xpe.prototype,Tpe=Dpe?xpe.getPrototypeOf:function(e){var t=oce(e);if(ace(t,Ape))return t[Ape];var n=t.constructor;return Ile(n)&&t instanceof n?n.prototype:t instanceof xpe?Ope:null},kpe=vce("iterator"),Npe=!1;[].keys&&("next"in(wpe=[].keys())?(Epe=Tpe(Tpe(wpe)))!==Object.prototype&&(bpe=Epe):Npe=!0);var Bpe=null==bpe||cle((function(){var e={};return bpe[kpe].call(e)!==e}));Bpe&&(bpe={}),Ile(bpe[kpe])||tfe(bpe,kpe,(function(){return this}));var Ipe={IteratorPrototype:bpe,BUGGY_SAFARI_ITERATORS:Npe},Fpe=Nce.f,Ppe=vce("toStringTag"),Rpe=function(e,t,n){e&&!ace(e=n?e:e.prototype,Ppe)&&Fpe(e,Ppe,{configurable:!0,value:t})},Lpe=Ipe.IteratorPrototype,_pe=function(){return this},jpe=lle.String,Mpe=lle.TypeError,zpe=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Sle(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Oce(n),function(e){if("object"==typeof e||Ile(e))return e;throw Mpe("Can't set "+jpe(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Hpe=efe.PROPER,Upe=efe.CONFIGURABLE,$pe=Ipe.IteratorPrototype,Vpe=Ipe.BUGGY_SAFARI_ITERATORS,Gpe=vce("iterator"),Wpe="keys",qpe="values",Kpe="entries",Ype=function(){return this},Xpe=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Ede(Lpe,{next:yle(1,n)}),Rpe(e,r,!1),Cpe[r]=_pe}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!Vpe&&e in p)return p[e];switch(e){case Wpe:case qpe:case Kpe:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Gpe]||p["@@iterator"]||o&&p[o],v=!Vpe&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=Tpe(g.call(new e)))!==Object.prototype&&u.next&&(Tpe(u)!==$pe&&(zpe?zpe(u,$pe):Ile(u[Gpe])||tfe(u,Gpe,Ype)),Rpe(u,f,!0)),Hpe&&o==qpe&&h&&h.name!==qpe&&(Upe?Bce(p,"name",qpe):(d=!0,v=function(){return ple(h,this)})),o)if(s={values:c(qpe),keys:i?v:c(Wpe),entries:c(Kpe)},a)for(l in s)(Vpe||d||!(l in p))&&tfe(p,l,s[l]);else Nfe({target:t,proto:!0,forced:Vpe||d},s);return p[Gpe]!==v&&tfe(p,Gpe,v,{name:o}),Cpe[t]=v,s},Zpe="Array Iterator",Jpe=Xce.set,Qpe=Xce.getterFor(Zpe),ehe=Xpe(Array,"Array",(function(e,t){Jpe(this,{type:Zpe,target:Ble(e),index:0,kind:t})}),(function(){var e=Qpe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Cpe.Arguments=Cpe.Array,Spe("keys"),Spe("values"),Spe("entries");var the=Jde.charAt,nhe="String Iterator",rhe=Xce.set,ohe=Xce.getterFor(nhe);Xpe(String,"String",(function(e){rhe(this,{type:nhe,string:nde(e),index:0})}),(function(){var e,t=ohe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=the(n,r),t.index+=e.length,{value:e,done:!1})}));var ihe=function(e,t,n){for(var r in t)tfe(e,r,t[r],n);return e},ahe=yfe.f,uhe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],she={f:function(e){return uhe&&"Window"==Ale(e)?function(e){try{return ahe(e)}catch(e){return rpe(uhe)}}(e):ahe(Ble(e))}},lhe=cle((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),che=Object.isExtensible,fhe=cle((function(){che(1)}))||lhe?function(e){return!!Fle(e)&&(!lhe||"ArrayBuffer"!=Ale(e))&&(!che||che(e))}:che,dhe=!cle((function(){return Object.isExtensible(Object.preventExtensions({}))})),phe=ile((function(e){var t=Nce.f,n=!1,r=cce("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=yfe.f,t=Sle([].splice),o={};o[r]=1,e(o).length&&(yfe.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Nfe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:she.f}))},fastKey:function(e,t){if(!Fle(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ace(e,r)){if(!fhe(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!ace(e,r)){if(!fhe(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return dhe&&n&&fhe(e)&&!ace(e,r)&&i(e),e}};Hce[r]=!0})),hhe=Sle(Sle.bind),vhe=function(e,t){return Yle(e),void 0===t?e:hhe?hhe(e,t):function(){return e.apply(t,arguments)}},ghe=vce("iterator"),yhe=Array.prototype,mhe=vce("iterator"),bhe=function(e){if(null!=e)return Xle(e,mhe)||Xle(e,"@@iterator")||Cpe[_fe(e)]},Ehe=lle.TypeError,whe=function(e,t,n){var r,o;Oce(e);try{if(!(r=Xle(e,"return"))){if("throw"===t)throw n;return n}r=ple(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Oce(r),n},She=lle.TypeError,Che=function(e,t){this.stopped=e,this.result=t},Dhe=Che.prototype,Ahe=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=vhe(t,f),g=function(e){return r&&whe(r,"normal",e),new Che(!0,e)},y=function(e){return d?(Oce(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=bhe(e)))throw She(qle(e)+" is not iterable");if(void 0!==(c=o)&&(Cpe.Array===c||yhe[ghe]===c)){for(i=0,a=cfe(e);a>i;i++)if((u=y(e[i]))&&Rle(Dhe,u))return u;return new Che(!1)}r=function(e,t){var n=arguments.length<2?bhe(e):t;if(Yle(n))return Oce(ple(n,e));throw Ehe(qle(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=ple(s,r)).done;){try{u=y(l.value)}catch(e){whe(r,"throw",e)}if("object"==typeof u&&u&&Rle(Dhe,u))return u}return new Che(!1)},xhe=lle.TypeError,Ohe=function(e,t){if(Rle(t,e))return e;throw xhe("Incorrect invocation")},The=vce("iterator"),khe=!1;try{var Nhe=0,Bhe={next:function(){return{done:!!Nhe++}},return:function(){khe=!0}};Bhe[The]=function(){return this},Array.from(Bhe,(function(){throw 2}))}catch(tc){}var Ihe=function(e,t){if(!t&&!khe)return!1;var n=!1;try{var r={};r[The]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Fhe=vce("species"),Phe=lle.Array,Rhe=function(e,t){return new(function(e){var t;return Bfe(e)&&(t=e.constructor,(Gfe(t)&&(t===Phe||Bfe(t.prototype))||Fle(t)&&null===(t=t[Fhe]))&&(t=void 0)),void 0===t?Phe:t}(e))(0===t?0:t)},Lhe=Sle([].push),_he=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=oce(s),v=Tle(h),g=vhe(l,c),y=cfe(v),m=0,b=f||Rhe,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Lhe(E,d)}else switch(e){case 4:return!1;case 7:Lhe(E,d)}return i?-1:r||o?o:E}},jhe={forEach:_he(0),map:_he(1),filter:_he(2),some:_he(3),every:_he(4),find:_he(5),findIndex:_he(6),filterReject:_he(7)},Mhe=phe.getWeakData,zhe=Xce.set,Hhe=Xce.getterFor,Uhe=jhe.find,$he=jhe.findIndex,Vhe=Sle([].splice),Ghe=0,Whe=function(e){return e.frozen||(e.frozen=new qhe)},qhe=function(){this.entries=[]},Khe=function(e,t){return Uhe(e.entries,(function(e){return e[0]===t}))};qhe.prototype={get:function(e){var t=Khe(this,e);if(t)return t[1]},has:function(e){return!!Khe(this,e)},set:function(e,t){var n=Khe(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=$he(this.entries,(function(t){return t[0]===e}));return~t&&Vhe(this.entries,t,1),!!~t}};var Yhe,Xhe={getConstructor:function(e,t,n,r){var o=e((function(e,o){Ohe(e,i),zhe(e,{type:t,id:Ghe++,frozen:void 0}),null!=o&&Ahe(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Hhe(t),u=function(e,t,n){var r=a(e),o=Mhe(Oce(t),!0);return!0===o?Whe(r).set(t,n):o[r.id]=n,e};return ihe(i,{delete:function(e){var t=a(this);if(!Fle(e))return!1;var n=Mhe(e);return!0===n?Whe(t).delete(e):n&&ace(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Fle(e))return!1;var n=Mhe(e);return!0===n?Whe(t).has(e):n&&ace(n,t.id)}}),ihe(i,n?{get:function(e){var t=a(this);if(Fle(e)){var n=Mhe(e);return!0===n?Whe(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Zhe=Xce.enforce,Jhe=!lle.ActiveXObject&&"ActiveXObject"in lle,Qhe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},eve=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=lle[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Sle(u[e]);tfe(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Fle(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Fle(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Fle(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Tfe(e,!Ile(a)||!(o||u.forEach&&!cle((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),phe.enable();else if(Tfe(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=cle((function(){f.has(1)})),h=Ihe((function(e){new a(e)})),v=!o&&cle((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Ohe(e,u);var n=function(e,t,n){var r,o;return zpe&&Ile(r=t.constructor)&&r!==n&&Fle(o=r.prototype)&&o!==n.prototype&&zpe(e,o),e}(new a,e,s);return null!=t&&Ahe(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Nfe({global:!0,forced:s!=a},l),Rpe(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Qhe,Xhe);if(jce&&Jhe){Yhe=Xhe.getConstructor(Qhe,"WeakMap",!0),phe.enable();var tve=eve.prototype,nve=Sle(tve.delete),rve=Sle(tve.has),ove=Sle(tve.get),ive=Sle(tve.set);ihe(tve,{delete:function(e){if(Fle(e)&&!fhe(e)){var t=Zhe(this);return t.frozen||(t.frozen=new Yhe),nve(this,e)||t.frozen.delete(e)}return nve(this,e)},has:function(e){if(Fle(e)&&!fhe(e)){var t=Zhe(this);return t.frozen||(t.frozen=new Yhe),rve(this,e)||t.frozen.has(e)}return rve(this,e)},get:function(e){if(Fle(e)&&!fhe(e)){var t=Zhe(this);return t.frozen||(t.frozen=new Yhe),rve(this,e)?ove(this,e):t.frozen.get(e)}return ove(this,e)},set:function(e,t){if(Fle(e)&&!fhe(e)){var n=Zhe(this);n.frozen||(n.frozen=new Yhe),rve(this,e)?ive(this,e,t):n.frozen.set(e,t)}else ive(this,e,t);return this}})}var ave={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},uve=wce("span").classList,sve=uve&&uve.constructor&&uve.constructor.prototype,lve=sve===Object.prototype?void 0:sve,cve=vce("iterator"),fve=vce("toStringTag"),dve=ehe.values,pve=function(e,t){if(e){if(e[cve]!==dve)try{Bce(e,cve,dve)}catch(t){e[cve]=dve}if(e[fve]||Bce(e,fve,t),ave[t])for(var n in ehe)if(e[n]!==ehe[n])try{Bce(e,n,ehe[n])}catch(t){e[n]=ehe[n]}}};for(var hve in ave)pve(lle[hve]&&lle[hve].prototype,hve);pve(lve,"DOMTokenList");var vve=function(e,t){var n=[][e];return!!n&&cle((function(){n.call(null,t||function(){throw 1},1)}))},gve=jhe.forEach,yve=vve("forEach")?[].forEach:function(e){return gve(this,e,arguments.length>1?arguments[1]:void 0)},mve=function(e){if(e&&e.forEach!==yve)try{Bce(e,"forEach",yve)}catch(t){e.forEach=yve}};for(var bve in ave)ave[bve]&&mve(lle[bve]&&lle[bve].prototype);mve(lve);var Eve,wve,Sve,Cve,Dve=lle.Promise,Ave=vce("species"),xve=/(?:ipad|iphone|ipod).*applewebkit/i.test(Lle),Ove="process"==Ale(lle.process),Tve=lle.setImmediate,kve=lle.clearImmediate,Nve=lle.process,Bve=lle.Dispatch,Ive=lle.Function,Fve=lle.MessageChannel,Pve=lle.String,Rve=0,Lve={},_ve="onreadystatechange";try{Eve=lle.location}catch(tc){}var jve=function(e){if(ace(Lve,e)){var t=Lve[e];delete Lve[e],t()}},Mve=function(e){return function(){jve(e)}},zve=function(e){jve(e.data)},Hve=function(e){lle.postMessage(Pve(e),Eve.protocol+"//"+Eve.host)};Tve&&kve||(Tve=function(e){var t=Kfe(arguments,1);return Lve[++Rve]=function(){Hde(Ile(e)?e:Ive(e),void 0,t)},wve(Rve),Rve},kve=function(e){delete Lve[e]},Ove?wve=function(e){Nve.nextTick(Mve(e))}:Bve&&Bve.now?wve=function(e){Bve.now(Mve(e))}:Fve&&!xve?(Cve=(Sve=new Fve).port2,Sve.port1.onmessage=zve,wve=vhe(Cve.postMessage,Cve)):lle.addEventListener&&Ile(lle.postMessage)&&!lle.importScripts&&Eve&&"file:"!==Eve.protocol&&!cle(Hve)?(wve=Hve,lle.addEventListener("message",zve,!1)):wve=_ve in wce("script")?function(e){cde.appendChild(wce("script"))[_ve]=function(){cde.removeChild(this),jve(e)}}:function(e){setTimeout(Mve(e),0)});var Uve,$ve,Vve,Gve,Wve,qve,Kve,Yve,Xve={set:Tve,clear:kve},Zve=/ipad|iphone|ipod/i.test(Lle)&&void 0!==lle.Pebble,Jve=/web0s(?!.*chrome)/i.test(Lle),Qve=Dce.f,ege=Xve.set,tge=lle.MutationObserver||lle.WebKitMutationObserver,nge=lle.document,rge=lle.process,oge=lle.Promise,ige=Qve(lle,"queueMicrotask"),age=ige&&ige.value;age||(Uve=function(){var e,t;for(Ove&&(e=rge.domain)&&e.exit();$ve;){t=$ve.fn,$ve=$ve.next;try{t()}catch(e){throw $ve?Gve():Vve=void 0,e}}Vve=void 0,e&&e.enter()},xve||Ove||Jve||!tge||!nge?!Zve&&oge&&oge.resolve?((Kve=oge.resolve(void 0)).constructor=oge,Yve=vhe(Kve.then,Kve),Gve=function(){Yve(Uve)}):Ove?Gve=function(){rge.nextTick(Uve)}:(ege=vhe(ege,lle),Gve=function(){ege(Uve)}):(Wve=!0,qve=nge.createTextNode(""),new tge(Uve).observe(qve,{characterData:!0}),Gve=function(){qve.data=Wve=!Wve}));var uge,sge,lge,cge,fge=age||function(e){var t={fn:e,next:void 0};Vve&&(Vve.next=t),$ve||($ve=t,Gve()),Vve=t},dge=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Yle(t),this.reject=Yle(n)},pge={f:function(e){return new dge(e)}},hge=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},vge="object"==typeof window,gge=Xve.set,yge=vce("species"),mge="Promise",bge=Xce.getterFor(mge),Ege=Xce.set,wge=Xce.getterFor(mge),Sge=Dve&&Dve.prototype,Cge=Dve,Dge=Sge,Age=lle.TypeError,xge=lle.document,Oge=lle.process,Tge=pge.f,kge=Tge,Nge=!!(xge&&xge.createEvent&&lle.dispatchEvent),Bge=Ile(lle.PromiseRejectionEvent),Ige="unhandledrejection",Fge=!1,Pge=Tfe(mge,(function(){var e=Lce(Cge),t=e!==String(Cge);if(!t&&66===Hle)return!0;if(Hle>=51&&/native code/.test(e))return!1;var n=new Cge((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[yge]=r,!(Fge=n.then((function(){}))instanceof r)||!t&&vge&&!Bge})),Rge=Pge||!Ihe((function(e){Cge.all(e).catch((function(){}))})),Lge=function(e){var t;return!(!Fle(e)||!Ile(t=e.then))&&t},_ge=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;fge((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Hge(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Age("Promise-chain cycle")):(u=Lge(a))?ple(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Mge(e)}))}},jge=function(e,t,n){var r,o;Nge?((r=xge.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),lle.dispatchEvent(r)):r={promise:t,reason:n},!Bge&&(o=lle["on"+e])?o(r):e===Ige&&function(e,t){var n=lle.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Mge=function(e){ple(gge,lle,(function(){var t,n=e.facade,r=e.value;if(zge(e)&&(t=hge((function(){Ove?Oge.emit("unhandledRejection",r,n):jge(Ige,n,r)})),e.rejection=Ove||zge(e)?2:1,t.error))throw t.value}))},zge=function(e){return 1!==e.rejection&&!e.parent},Hge=function(e){ple(gge,lle,(function(){var t=e.facade;Ove?Oge.emit("rejectionHandled",t):jge("rejectionhandled",t,e.value)}))},Uge=function(e,t,n){return function(r){e(t,r,n)}},$ge=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,_ge(e,!0))},Vge=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Age("Promise can't be resolved itself");var r=Lge(t);r?fge((function(){var n={done:!1};try{ple(r,t,Uge(Vge,n,e),Uge($ge,n,e))}catch(t){$ge(n,t,e)}})):(e.value=t,e.state=1,_ge(e,!1))}catch(t){$ge({done:!1},t,e)}}};if(Pge&&(Dge=(Cge=function(e){Ohe(this,Dge),Yle(e),ple(uge,this);var t=bge(this);try{e(Uge(Vge,t),Uge($ge,t))}catch(e){$ge(t,e)}}).prototype,(uge=function(e){Ege(this,{type:mge,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ihe(Dge,{then:function(e,t){var n=wge(this),r=n.reactions,o=Tge(qde(this,Cge));return o.ok=!Ile(e)||e,o.fail=Ile(t)&&t,o.domain=Ove?Oge.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&_ge(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),sge=function(){var e=new uge,t=bge(e);this.promise=e,this.resolve=Uge(Vge,t),this.reject=Uge($ge,t)},pge.f=Tge=function(e){return e===Cge||e===lge?new sge(e):kge(e)},Ile(Dve)&&Sge!==Object.prototype)){cge=Sge.then,Fge||(tfe(Sge,"then",(function(e,t){var n=this;return new Cge((function(e,t){ple(cge,n,e,t)})).then(e,t)}),{unsafe:!0}),tfe(Sge,"catch",Dge.catch,{unsafe:!0}));try{delete Sge.constructor}catch(tc){}zpe&&zpe(Sge,Dge)}Nfe({global:!0,wrap:!0,forced:Pge},{Promise:Cge}),Rpe(Cge,mge,!1),function(){var e=Ple(mge),t=Nce.f;fle&&e&&!e[Ave]&&t(e,Ave,{configurable:!0,get:function(){return this}})}(),lge=Ple(mge),Nfe({target:mge,stat:!0,forced:Pge},{reject:function(e){var t=Tge(this);return ple(t.reject,void 0,e),t.promise}}),Nfe({target:mge,stat:!0,forced:Pge},{resolve:function(e){return function(e,t){if(Oce(e),Fle(t)&&t.constructor===e)return t;var n=pge.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Nfe({target:mge,stat:!0,forced:Rge},{all:function(e){var t=this,n=Tge(t),r=n.resolve,o=n.reject,i=hge((function(){var n=Yle(t.resolve),i=[],a=0,u=1;Ahe(e,(function(e){var s=a++,l=!1;u++,ple(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Tge(t),r=n.reject,o=hge((function(){var o=Yle(t.resolve);Ahe(e,(function(e){ple(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Gge=efe.PROPER,Wge="toString",qge=RegExp.prototype,Kge=qge[Wge],Yge=Sle(rde),Xge=cle((function(){return"/a/b"!=Kge.call({source:"a",flags:"b"})})),Zge=Gge&&Kge.name!=Wge;(Xge||Zge)&&tfe(RegExp.prototype,Wge,(function(){var e=Oce(this),t=nde(e.source),n=e.flags;return"/"+t+"/"+nde(void 0===n&&Rle(qge,e)&&!("flags"in qge)?Yge(e):n)}),{unsafe:!0});var Jge=efe.EXISTS,Qge=Nce.f,eye=Function.prototype,tye=Sle(eye.toString),nye=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,rye=Sle(nye.exec);fle&&!Jge&&Qge(eye,"name",{configurable:!0,get:function(){try{return rye(nye,tye(this))[1]}catch(e){return""}}});var oye=new WeakMap;function iye(e){return e.getMenuConfig("uploadImage")}function aye(e,t){return hpe(this,void 0,void 0,(function(){return vpe(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;qU(e,i,t.name,a),n("ok")}}}))]}))}))}function uye(e,t){return hpe(this,void 0,void 0,(function(){var n,r,o,i;return vpe(this,(function(a){switch(a.label){case 0:return n=function(e){var t=oye.get(e);if(null!=t)return t;var n=iye(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=sP(ppe(ppe({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return qU(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;qU(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;qU(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),oye.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function sye(e,t){var n,r;return hpe(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return vpe(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=iye(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=gpe(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,aye(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return qU(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,uye(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.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 lye=Sle([].join),cye=Tle!=Object,fye=vve("join",",");Nfe({target:"Array",proto:!0,forced:cye||!fye},{join:function(e){return lye(Ble(this),void 0===e?",":e)}}),Lh&&(hh.fn.append=Lh),Ch&&(hh.fn.on=Ch),Uh&&(hh.fn.remove=Uh),Sh&&(hh.fn.val=Sh),Wh&&(hh.fn.click=Wh),Th&&(hh.fn.hide=Th);var dye=function(){function e(){this.title=eR("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 e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return KU(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return qU(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=hh("body"),s=hh('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;sye(e,t)}))}},e}(),pye={menus:[{key:"uploadImage",factory:function(){return new dye},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(KU(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?sye(e,o):t(r)}},n}};ZP("en",{highLightModule:{selectLang:"Language"}}),ZP("zh-CN",{highLightModule:{selectLang:"选择语言"}});var hye="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function vye(e){var t={exports:{}};return e(t,t.exports),t.exports}var gye,yye,mye=function(e){return e&&e.Math==Math&&e},bye=mye("object"==typeof globalThis&&globalThis)||mye("object"==typeof window&&window)||mye("object"==typeof self&&self)||mye("object"==typeof hye&&hye)||function(){return this}()||Function("return this")(),Eye=Object.defineProperty,wye=function(e,t){try{Eye(bye,e,{value:t,configurable:!0,writable:!0})}catch(n){bye[e]=t}return t},Sye="__core-js_shared__",Cye=bye[Sye]||wye(Sye,{}),Dye=vye((function(e){(e.exports=function(e,t){return Cye[e]||(Cye[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Aye=Function.prototype,xye=Aye.bind,Oye=Aye.call,Tye=xye&&xye.bind(Oye),kye=xye?function(e){return e&&Tye(Oye,e)}:function(e){return e&&function(){return Oye.apply(e,arguments)}},Nye=bye.TypeError,Bye=function(e){if(null==e)throw Nye("Can't call method on "+e);return e},Iye=bye.Object,Fye=function(e){return Iye(Bye(e))},Pye=kye({}.hasOwnProperty),Rye=Object.hasOwn||function(e,t){return Pye(Fye(e),t)},Lye=0,_ye=Math.random(),jye=kye(1..toString),Mye=function(e){return"Symbol("+(void 0===e?"":e)+")_"+jye(++Lye+_ye,36)},zye=function(e){return"function"==typeof e},Hye=function(e,t){return arguments.length<2?(n=bye[e],zye(n)?n:void 0):bye[e]&&bye[e][t];var n},Uye=Hye("navigator","userAgent")||"",$ye=bye.process,Vye=bye.Deno,Gye=$ye&&$ye.versions||Vye&&Vye.version,Wye=Gye&&Gye.v8;Wye&&(yye=(gye=Wye.split("."))[0]>0&&gye[0]<4?1:+(gye[0]+gye[1])),!yye&&Uye&&(!(gye=Uye.match(/Edge\/(\d+)/))||gye[1]>=74)&&(gye=Uye.match(/Chrome\/(\d+)/))&&(yye=+gye[1]);var qye=yye,Kye=function(e){try{return!!e()}catch(e){return!0}},Yye=!!Object.getOwnPropertySymbols&&!Kye((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qye&&qye<41})),Xye=Yye&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Zye=Dye("wks"),Jye=bye.Symbol,Qye=Jye&&Jye.for,eme=Xye?Jye:Jye&&Jye.withoutSetter||Mye,tme=function(e){if(!Rye(Zye,e)||!Yye&&"string"!=typeof Zye[e]){var t="Symbol."+e;Yye&&Rye(Jye,e)?Zye[e]=Jye[e]:Zye[e]=Xye&&Qye?Qye(t):eme(t)}return Zye[e]},nme={};nme[tme("toStringTag")]="z";var rme="[object z]"===String(nme),ome=!Kye((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ime=function(e){return"object"==typeof e?null!==e:zye(e)},ame=bye.document,ume=ime(ame)&&ime(ame.createElement),sme=function(e){return ume?ame.createElement(e):{}},lme=!ome&&!Kye((function(){return 7!=Object.defineProperty(sme("div"),"a",{get:function(){return 7}}).a})),cme=bye.String,fme=bye.TypeError,dme=function(e){if(ime(e))return e;throw fme(cme(e)+" is not an object")},pme=Function.prototype.call,hme=pme.bind?pme.bind(pme):function(){return pme.apply(pme,arguments)},vme=kye({}.isPrototypeOf),gme=bye.Object,yme=Xye?function(e){return"symbol"==typeof e}:function(e){var t=Hye("Symbol");return zye(t)&&vme(t.prototype,gme(e))},mme=bye.String,bme=function(e){try{return mme(e)}catch(e){return"Object"}},Eme=bye.TypeError,wme=function(e){if(zye(e))return e;throw Eme(bme(e)+" is not a function")},Sme=function(e,t){var n=e[t];return null==n?void 0:wme(n)},Cme=bye.TypeError,Dme=bye.TypeError,Ame=tme("toPrimitive"),xme=function(e){var t=function(e,t){if(!ime(e)||yme(e))return e;var n,r=Sme(e,Ame);if(r){if(void 0===t&&(t="default"),n=hme(r,e,t),!ime(n)||yme(n))return n;throw Dme("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&zye(n=e.toString)&&!ime(r=hme(n,e)))return r;if(zye(n=e.valueOf)&&!ime(r=hme(n,e)))return r;if("string"!==t&&zye(n=e.toString)&&!ime(r=hme(n,e)))return r;throw Cme("Can't convert object to primitive value")}(e,t)}(e,"string");return yme(t)?t:t+""},Ome=bye.TypeError,Tme=Object.defineProperty,kme={f:ome?Tme:function(e,t,n){if(dme(e),t=xme(t),dme(n),lme)try{return Tme(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ome("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Nme=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Bme=ome?function(e,t,n){return kme.f(e,t,Nme(1,n))}:function(e,t,n){return e[t]=n,e},Ime=kye(Function.toString);zye(Cye.inspectSource)||(Cye.inspectSource=function(e){return Ime(e)});var Fme,Pme,Rme,Lme=Cye.inspectSource,_me=bye.WeakMap,jme=zye(_me)&&/native code/.test(Lme(_me)),Mme=Dye("keys"),zme=function(e){return Mme[e]||(Mme[e]=Mye(e))},Hme={},Ume="Object already initialized",$me=bye.TypeError,Vme=bye.WeakMap;if(jme||Cye.state){var Gme=Cye.state||(Cye.state=new Vme),Wme=kye(Gme.get),qme=kye(Gme.has),Kme=kye(Gme.set);Fme=function(e,t){if(qme(Gme,e))throw new $me(Ume);return t.facade=e,Kme(Gme,e,t),t},Pme=function(e){return Wme(Gme,e)||{}},Rme=function(e){return qme(Gme,e)}}else{var Yme=zme("state");Hme[Yme]=!0,Fme=function(e,t){if(Rye(e,Yme))throw new $me(Ume);return t.facade=e,Bme(e,Yme,t),t},Pme=function(e){return Rye(e,Yme)?e[Yme]:{}},Rme=function(e){return Rye(e,Yme)}}var Xme={set:Fme,get:Pme,has:Rme,enforce:function(e){return Rme(e)?Pme(e):Fme(e,{})},getterFor:function(e){return function(t){var n;if(!ime(t)||(n=Pme(t)).type!==e)throw $me("Incompatible receiver, "+e+" required");return n}}},Zme=Function.prototype,Jme=ome&&Object.getOwnPropertyDescriptor,Qme=Rye(Zme,"name"),ebe={EXISTS:Qme,PROPER:Qme&&"something"===function(){}.name,CONFIGURABLE:Qme&&(!ome||ome&&Jme(Zme,"name").configurable)},tbe=vye((function(e){var t=ebe.CONFIGURABLE,n=Xme.get,r=Xme.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;zye(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Rye(i,"name")||t&&i.name!==f)&&Bme(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==bye?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Bme(e,n,i)):l?e[n]=i:wye(n,i)})(Function.prototype,"toString",(function(){return zye(this)&&n(this).source||Lme(this)}))})),nbe=kye({}.toString),rbe=kye("".slice),obe=function(e){return rbe(nbe(e),8,-1)},ibe=tme("toStringTag"),abe=bye.Object,ube="Arguments"==obe(function(){return arguments}()),sbe=rme?obe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=abe(e),ibe))?n:ube?obe(t):"Object"==(r=obe(t))&&zye(t.callee)?"Arguments":r},lbe=rme?{}.toString:function(){return"[object "+sbe(this)+"]"};rme||tbe(Object.prototype,"toString",lbe,{unsafe:!0});var cbe,fbe={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},dbe=sme("span").classList,pbe=dbe&&dbe.constructor&&dbe.constructor.prototype,hbe=pbe===Object.prototype?void 0:pbe,vbe=kye(kye.bind),gbe=bye.Object,ybe=kye("".split),mbe=Kye((function(){return!gbe("z").propertyIsEnumerable(0)}))?function(e){return"String"==obe(e)?ybe(e,""):gbe(e)}:gbe,bbe=Math.ceil,Ebe=Math.floor,wbe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ebe:bbe)(t)},Sbe=Math.min,Cbe=function(e){return e>0?Sbe(wbe(e),9007199254740991):0},Dbe=function(e){return Cbe(e.length)},Abe=Array.isArray||function(e){return"Array"==obe(e)},xbe=function(){},Obe=[],Tbe=Hye("Reflect","construct"),kbe=/^\s*(?:class|function)\b/,Nbe=kye(kbe.exec),Bbe=!kbe.exec(xbe),Ibe=function(e){if(!zye(e))return!1;try{return Tbe(xbe,Obe,e),!0}catch(e){return!1}},Fbe=!Tbe||Kye((function(){var e;return Ibe(Ibe.call)||!Ibe(Object)||!Ibe((function(){e=!0}))||e}))?function(e){if(!zye(e))return!1;switch(sbe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bbe||!!Nbe(kbe,Lme(e))}:Ibe,Pbe=tme("species"),Rbe=bye.Array,Lbe=function(e,t){return new(function(e){var t;return Abe(e)&&(t=e.constructor,(Fbe(t)&&(t===Rbe||Abe(t.prototype))||ime(t)&&null===(t=t[Pbe]))&&(t=void 0)),void 0===t?Rbe:t}(e))(0===t?0:t)},_be=kye([].push),jbe=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Fye(s),v=mbe(h),g=function(e,t){return wme(e),void 0===t?e:vbe?vbe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Dbe(v),m=0,b=f||Lbe,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:_be(E,d)}else switch(e){case 4:return!1;case 7:_be(E,d)}return i?-1:r||o?o:E}},Mbe=[jbe(0),jbe(1),jbe(2),jbe(3),jbe(4),jbe(5),jbe(6),jbe(7)][0],zbe=(cbe=[].forEach)&&Kye((function(){cbe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Mbe(this,e,arguments.length>1?arguments[1]:void 0)},Hbe=function(e){if(e&&e.forEach!==zbe)try{Bme(e,"forEach",zbe)}catch(t){e.forEach=zbe}};for(var Ube in fbe)fbe[Ube]&&Hbe(bye[Ube]&&bye[Ube].prototype);Hbe(hbe);var $be={}.propertyIsEnumerable,Vbe=Object.getOwnPropertyDescriptor,Gbe={f:Vbe&&!$be.call({1:2},1)?function(e){var t=Vbe(this,e);return!!t&&t.enumerable}:$be},Wbe=function(e){return mbe(Bye(e))},qbe=Object.getOwnPropertyDescriptor,Kbe={f:ome?qbe:function(e,t){if(e=Wbe(e),t=xme(t),lme)try{return qbe(e,t)}catch(e){}if(Rye(e,t))return Nme(!hme(Gbe.f,e,t),e[t])}},Ybe=Math.max,Xbe=Math.min,Zbe=function(e,t){var n=wbe(e);return n<0?Ybe(n+t,0):Xbe(n,t)},Jbe=function(e){return function(t,n,r){var o,i=Wbe(t),a=Dbe(i),u=Zbe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Qbe=(Jbe(!0),Jbe(!1)),eEe=kye([].push),tEe=function(e,t){var n,r=Wbe(e),o=0,i=[];for(n in r)!Rye(Hme,n)&&Rye(r,n)&&eEe(i,n);for(;t.length>o;)Rye(r,n=t[o++])&&(~Qbe(i,n)||eEe(i,n));return i},nEe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rEe=nEe.concat("length","prototype"),oEe={f:Object.getOwnPropertyNames||function(e){return tEe(e,rEe)}},iEe={f:Object.getOwnPropertySymbols},aEe=kye([].concat),uEe=Hye("Reflect","ownKeys")||function(e){var t=oEe.f(dme(e)),n=iEe.f;return n?aEe(t,n(e)):t},sEe=function(e,t){for(var n=uEe(t),r=kme.f,o=Kbe.f,i=0;i<n.length;i++){var a=n[i];Rye(e,a)||r(e,a,o(t,a))}},lEe=/#|\.prototype\./,cEe=function(e,t){var n=dEe[fEe(e)];return n==hEe||n!=pEe&&(zye(t)?Kye(t):!!t)},fEe=cEe.normalize=function(e){return String(e).replace(lEe,".").toLowerCase()},dEe=cEe.data={},pEe=cEe.NATIVE="N",hEe=cEe.POLYFILL="P",vEe=cEe,gEe=Kbe.f,yEe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?bye:l?bye[u]||wye(u,{}):(bye[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=gEe(n,r))&&a.value:n[r],!vEe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;sEe(i,o)}(e.sham||o&&o.sham)&&Bme(i,"sham",!0),tbe(n,r,i,e)}},mEe=Object.keys||function(e){return tEe(e,nEe)},bEe=Object.assign,EEe=Object.defineProperty,wEe=kye([].concat),SEe=!bEe||Kye((function(){if(ome&&1!==bEe({b:1},bEe(EEe({},"a",{enumerable:!0,get:function(){EEe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=bEe({},e)[n]||mEe(bEe({},t)).join("")!=r}))?function(e,t){for(var n=Fye(e),r=arguments.length,o=1,i=iEe.f,a=Gbe.f;r>o;)for(var u,s=mbe(arguments[o++]),l=i?wEe(mEe(s),i(s)):mEe(s),c=l.length,f=0;c>f;)u=l[f++],ome&&!hme(a,s,u)||(n[u]=s[u]);return n}:bEe;yEe({target:"Object",stat:!0,forced:Object.assign!==SEe},{assign:SEe});var CEe=vye((function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),a=o.languages[i];o.util.setLanguage(t,i);var u=t.parentElement;u&&"pre"===u.nodeName.toLowerCase()&&o.util.setLanguage(u,i);var s={element:t,language:i,grammar:a,code:t.textContent};function l(e){s.highlightedCode=e,o.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,o.hooks.run("after-highlight",s),o.hooks.run("complete",s),r&&r.call(s.element)}if(o.hooks.run("before-sanity-check",s),(u=s.element.parentElement)&&"pre"===u.nodeName.toLowerCase()&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!s.code)return o.hooks.run("complete",s),void(r&&r.call(s.element));if(o.hooks.run("before-highlight",s),s.grammar)if(n&&e.Worker){var c=new Worker(o.filename);c.onmessage=function(e){l(e.data)},c.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else l(o.highlight(s.code,s.grammar,s.language));else l(o.util.encode(s.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var v=p[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var E=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,E+"g")}for(var w=v.pattern||v,S=r.next,C=s;S!==t.tail&&!(f&&C>=f.reach);C+=S.value.length,S=S.next){var D=S.value;if(t.length>e.length)return;if(!(D instanceof i)){var A,x=1;if(m){if(!(A=a(w,C,e,y))||A.index>=e.length)break;var O=A.index,T=A.index+A[0].length,k=C;for(k+=S.value.length;O>=k;)k+=(S=S.next).value.length;if(C=k-=S.value.length,S.value instanceof i)continue;for(var N=S;N!==t.tail&&(k<T||"string"==typeof N.value);N=N.next)x++,k+=N.value.length;x--,D=e.slice(C,k),A.index-=C}else if(!(A=a(w,0,D,y)))continue;O=A.index;var B=A[0],I=D.slice(0,O),F=D.slice(O+B.length),P=C+D.length;f&&P>f.reach&&(f.reach=P);var R=S.prev;if(I&&(R=l(t,R,I),C+=I.length),c(t,R,x),S=l(t,R,new i(d,g?o.tokenize(B,g):B,b,B)),F&&l(t,S,F),x>1){var L={cause:d+","+h,reach:P};u(e,t,n,S.prev,C,L),f&&L.reach>f.reach&&(f.reach=L.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
25
25
|
/**
|
|
26
26
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
27
27
|
*
|
|
@@ -29,5 +29,5 @@ var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?windo
|
|
|
29
29
|
* @author Lea Verou <https://lea.verou.me>
|
|
30
30
|
* @namespace
|
|
31
31
|
* @public
|
|
32
|
-
*/e.exports&&(e.exports=t),void 0!==Zhe&&(Zhe.Prism=t),t.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]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.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\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.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:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.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}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.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:t.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:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.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:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.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:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.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")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.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/}),e.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 e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.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:t}}}}),e.languages.ts=e.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(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[t,"language-"+t],inside:Prism.languages[t]},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(e){var t=/\/\*[\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=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,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:e.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}}];e.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:t,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"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"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://,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(e){var t=/\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:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.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}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.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:t,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 t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\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 t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.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:t,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/}),e.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}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.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(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),E=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,m]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:RegExp(D),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,S]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,d,v]),inside:C}],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:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,v,S,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),greedy:!0,inside:C},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 O=A+"|"+D,T=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),N=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),k=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,B=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,N]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[k,B]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[k]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[N]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var I=/:[^}\r\n]+/.source,F=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,I]),R=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),_=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,I]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,I]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:L(P,F)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[_]),lookbehind:!0,greedy:!0,inside:L(_,R)}]})}(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(e){e.languages.ruby=e.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 t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.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:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],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:e.languages.ruby}}}),e.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)/}),e.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:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{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:t}},{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:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.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]*"+/(?:![ \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(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\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("\\$"+t),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("(\\{)"+t),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})/};e.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;|&]|[<>]\\()"+t),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("\\$?"+t),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=e.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]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}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;e.languages.markdown=e.languages.extend("markup",{}),e.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:e.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:e.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:e.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(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.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(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}})),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/m,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var ame=["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 ume(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+ume(t)}),0)}var sme,lme=nve.String,cme=function(e){if("Symbol"===Vge(e))throw TypeError("Cannot convert a Symbol value to a string");return lme(e)},fme=function(){var e=Yve(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},dme=nve.RegExp,pme=Bve((function(){var e=dme("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),hme=pme||Bve((function(){return!dme("a","y").sticky})),vme={BROKEN_CARET:pme||Bve((function(){var e=dme("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:hme,UNSUPPORTED_Y:pme},gme=Hve?Object.defineProperties:function(e,t){Yve(e);for(var n,r=Tye(t),o=eme(t),i=o.length,a=0;i>a;)dge.f(e,n=o[a++],r[n]);return e},yme=Dve("document","documentElement"),mme=Cge("IE_PROTO"),bme=function(){},Eme=function(e){return"<script>"+e+"<\/script>"},wme=function(e){e.write(Eme("")),e.close();var t=e.parentWindow.Object;return e=null,t},Sme=function(){try{sme=new ActiveXObject("htmlfile")}catch(e){}var e,t;Sme="undefined"!=typeof document?document.domain&&sme?wme(sme):((t=Gve("iframe")).style.display="none",yme.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Eme("document.F=Object")),e.close(),e.F):wme(sme);for(var n=jye.length;n--;)delete Sme.prototype[jye[n]];return Sme()};Dge[mme]=!0;var Cme,Dme,Ame=Object.create||function(e,t){var n;return null!==e?(bme.prototype=Yve(e),n=new bme,bme.prototype=null,n[mme]=e):n=Sme(),void 0===t?n:gme(n,t)},xme=nve.RegExp,Ome=Bve((function(){var e=xme(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Tme=nve.RegExp,Nme=Bve((function(){var e=Tme("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),kme=Ige.get,Bme=ave("native-string-replace",String.prototype.replace),Ime=RegExp.prototype.exec,Fme=Ime,Pme=fve("".charAt),Rme=fve("".indexOf),_me=fve("".replace),Lme=fve("".slice),jme=(Dme=/b*/g,Zve(Ime,Cme=/a/,"a"),Zve(Ime,Dme,"a"),0!==Cme.lastIndex||0!==Dme.lastIndex),Mme=vme.BROKEN_CARET,zme=void 0!==/()??/.exec("")[1];(jme||zme||Mme||Ome||Nme)&&(Fme=function(e){var t,n,r,o,i,a,u,s=this,l=kme(s),c=cme(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Zve(Fme,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Mme&&s.sticky,h=Zve(fme,s),v=s.source,g=0,y=c;if(p&&(h=_me(h,"y",""),-1===Rme(h,"g")&&(h+="g"),y=Lme(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Pme(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),zme&&(n=new RegExp("^"+v+"$(?!\\s)",h)),jme&&(r=s.lastIndex),o=Zve(Ime,p?n:s,y),p?o?(o.input=Lme(o.input,g),o[0]=Lme(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:jme&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),zme&&o&&o.length>1&&Zve(Bme,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Ame(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Hme=Fme;Qye({target:"RegExp",proto:!0,forced:/./.exec!==Hme},{exec:Hme});var Ume=Function.prototype,$me=Ume.apply,Vme=Ume.bind,Gme=Ume.call,Wme="object"==typeof Reflect&&Reflect.apply||(Vme?Gme.bind($me):function(){return Gme.apply($me,arguments)}),qme=jve("species"),Kme=RegExp.prototype,Yme=jve("match"),Xme=nve.TypeError,Zme=jve("species"),Jme=fve("".charAt),Qme=fve("".charCodeAt),ebe=fve("".slice),tbe=function(e){return function(t,n){var r,o,i=cme(pve(t)),a=rye(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Qme(i,a))<55296||r>56319||a+1===u||(o=Qme(i,a+1))<56320||o>57343?e?Jme(i,a):r:e?ebe(i,a,a+2):o-56320+(r-55296<<10)+65536}},nbe=(tbe(!1),tbe(!0)),rbe=function(e,t,n){return t+(n?nbe(e,t).length:1)},obe=nve.Array,ibe=Math.max,abe=function(e,t,n){for(var r,o,i,a,u=aye(e),s=Fye(t,u),l=Fye(void 0===n?u:n,u),c=obe(ibe(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=lge(o))in r?dge.f(r,a,pge(0,i)):r[a]=i;return c.length=f,c},ube=nve.TypeError,sbe=function(e,t){var n=e.exec;if(Sve(n)){var r=Zve(n,e,t);return null!==r&&Yve(r),r}if("RegExp"===zge(e))return Zve(Hme,e,t);throw ube("RegExp#exec called on incompatible receiver")},lbe=vme.UNSUPPORTED_Y,cbe=Math.min,fbe=[].push,dbe=fve(/./.exec),pbe=fve(fbe),hbe=fve("".slice);!function(e,t,n,r){var o=jve(e),i=!Bve((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Bve((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[qme]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=fve(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=cme(pve(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Uve(r=e)||!(void 0!==(o=r[Yme])?o:"RegExp"==zge(r)))return Zve(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Zve(Hme,p,i))&&!((s=p.lastIndex)>d&&(pbe(c,hbe(i,d,u.index)),u.length>1&&u.index<i.length&&Wme(fbe,c,abe(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&dbe(p,"")||pbe(c,""):pbe(c,hbe(i,d)),c.length>a?abe(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Zve(t,this,e,n)}:t,[function(t,n){var o=pve(this),i=null==t?void 0:ige(t,e);return i?Zve(i,t,o,n):Zve(r,cme(o),t,n)},function(e,o){var i=Yve(this),a=cme(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=Yve(e).constructor;return void 0===r||null==(n=Yve(r)[Zme])?t:function(e){if(vye(e))return e;throw Xme(nge(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(lbe?"g":"y"),f=new s(lbe?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===sbe(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=lbe?0:h;var g,y=sbe(f,lbe?hbe(a,h):a);if(null===y||(g=cbe(iye(f.lastIndex+(lbe?h:0)),a.length))===p)h=rbe(a,h,l);else{if(pbe(v,hbe(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(pbe(v,y[m]),v.length===d)return v;h=p=g}}return pbe(v,hbe(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=fve(e),s=t.exec;return s===Hme||s===Kme.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Lge(String.prototype,e,s[0]),Lge(Kme,o,s[1])}r&&hge(Kme[o],"sham",!0)}("split",0,!!Bve((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),lbe),Qye({global:!0},{globalThis:nve}),$p&&(Mp.fn.attr=$p);var vbe=_ge.PROPER,gbe=RegExp.prototype,ybe=gbe.toString,mbe=fve(fme),bbe=Bve((function(){return"/a/b"!=ybe.call({source:"a",flags:"b"})})),Ebe=vbe&&"toString"!=ybe.name;(bbe||Ebe)&&Lge(RegExp.prototype,"toString",(function(){var e=Yve(this),t=cme(e.source),n=e.flags;return"/"+t+"/"+cme(void 0===n&&Jve(gbe,e)&&!("flags"in gbe)?mbe(e):n)}),{unsafe:!0});var wbe=function(){function e(){this.title=GF("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 e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!Cf.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};md.setNodes(e,n,{match:function(e){return _N.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=_N.getSelectedNodeByType(e,"code");if(null==t)return null;var n=_N.getParentNode(e,t);return Cf.isElement(n)?"pre"!==n.type?null:t:null},e}(),Sbe={renderStyle:function(e,t){var n=e,r=t,o="";return ame.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;if("code"!==_N.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new wbe},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"},{text:"ABAP",value:"abap"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Cbe=/"/g,Dbe=fve("".replace);Qye({target:"String",proto:!0,forced:Bve((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return"a","name",t=e,n=cme(pve(this)),r="<a",(r+=' name="'+Dbe(cme(t),Cbe,""")+'"')+">"+n+"</a>";var t,n,r}}),"function"==typeof SuppressedError&&SuppressedError;var Abe=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!ed.isText(e))return null;var t=_N.getParentNode(null,e);if(t&&"code"===_N.getNodeType(t)){var n=_N.getParentNode(null,t);if(n&&"pre"===_N.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=ime.languages[t];return n?ime.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var v=h.value,g=d+ume(v);"string"!=typeof v&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},xbe=function(){return xbe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xbe.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Obe=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=xbe(xbe({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=xbe(xbe({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=xbe(xbe({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=xbe(xbe({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=ix(ix({},o),t||{});if(null!=MN[n])throw new Error("Duplicated key '"+n+"' in menu items");MN[n]=r,function(e,t){null!=t&&(jN[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;UB[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){HB.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;JN[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){ZN.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){ik.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;uk[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){ak.push(e)}(e)},e.registerModule=function(e){Tbe(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function Tbe(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return Obe.registerMenu(e)})),n&&n.forEach((function(e){return Obe.registerRenderElem(e)})),r&&Obe.registerRenderStyle(r),o&&o.forEach((function(e){return Obe.registerElemToHtml(e)})),i&&Obe.registerStyleToHtml(i),a&&a.forEach((function(e){return Obe.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Obe.registerParseElemHtml(e)})),s&&Obe.registerParseStyleHtml(s),l&&Obe.registerPlugin(l)}eK.forEach((function(e){return Tbe(e)})),Tbe(S0),Tbe(v7),Tbe(Jae),Tbe(Xhe),Tbe(Sbe);var Nbe='<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>';var kbe={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize","editVideoSrc"]}};var Bbe={hoverbarKeys:xbe(xbe({},kbe),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Obe.setEditorConfig(xbe(xbe({},Bbe),{decorate:Abe}));var Ibe={hoverbarKeys:kbe};Obe.setSimpleEditorConfig(xbe(xbe({},Ibe),{decorate:Abe}));var Fbe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:GF("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:GF("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:GF("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:GF("editor.image"),iconSvg:Nbe,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:GF("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"]};Obe.setToolbarConfig(Fbe);var Pbe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:GF("editor.image"),iconSvg:Nbe,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Rbe(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?Obe.simpleEditorConfig:Obe.editorConfig,c=xbe(xbe({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return jI({selector:n,config:xbe(xbe(xbe({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Obe.plugins})}function _be(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?Obe.simpleToolbarConfig:Obe.toolbarConfig,s=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return Mk(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=ix({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new $I(n,i);return sO.set(a,e),lO.set(e,a),a}(n,{selector:t,config:xbe(xbe({},u),o)});return s}Obe.setSimpleToolbarConfig(Pbe);var Lbe={};export{Obe as Boot,_N as DomEditor,Nf as SlateEditor,Cf as SlateElement,kf as SlateLocation,Rf as SlateNode,Mf as SlatePath,$f as SlatePoint,qf as SlateRange,ed as SlateText,md as SlateTransforms,$I as Toolbar,Rbe as createEditor,_be as createToolbar,XI as createUploader,Lbe as default,OI as genModalButtonElems,AI as genModalInputElems,xI as genModalTextareaElems,UF as i18nAddResources,$F as i18nChangeLanguage,VF as i18nGetResources,GF as t};
|
|
32
|
+
*/e.exports&&(e.exports=t),void 0!==hye&&(hye.Prism=t),t.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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),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\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.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|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,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:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.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:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.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:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.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:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.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")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i="pre[data-src]:not(["+n+'="'+o+'"]):not(['+n+'="'+r+'"])';t.hooks.add("before-highlightall",(function(e){e.selector+=", "+i})),t.hooks.add("before-sanity-check",(function(a){var u=a.element;if(u.matches(i)){a.code="",u.setAttribute(n,r);var s=u.appendChild(document.createElement("CODE"));s.textContent="Loading…";var l=u.getAttribute("data-src"),c=a.language;if("none"===c){var f=(/\.(\w+)$/.exec(l)||[,"none"])[1];c=e[f]||f}t.util.setLanguage(s,c),t.util.setLanguage(u,c);var d=t.plugins.autoloader;d&&d.loadLanguages(c),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(l,(function(e){u.setAttribute(n,o);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(u.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),a=r[0],l=null==r[1]?i.length:r[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),l<0&&(l+=i.length),l=Math.max(0,Math.min(l,i.length)),e=i.slice(a,l).join("\n"),u.hasAttribute("data-start")||u.setAttribute("data-start",String(a+1))}s.textContent=e,t.highlightElement(s)}),(function(e){u.setAttribute(n,"failed"),s.textContent=e}))}})),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.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(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.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:t}}}}),e.languages.ts=e.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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},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(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[t,"language-"+t],inside:Prism.languages[t]},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:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,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(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\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=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,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(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/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(?: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|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\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:e.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}}];e.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:t,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"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,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(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|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",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),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],char:Prism.languages.c.char,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}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\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+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|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(?:False|None|True)\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?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\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(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|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=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+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:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.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},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.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:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],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 t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_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|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.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:t,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(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\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}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.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(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),E=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,m]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,S]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,d,v]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,v,S,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),greedy:!0,inside:C},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 O=A+"|"+D,T=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),k=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),N=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,B=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,k]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[N,B]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[N]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[k]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var I=/:[^}\r\n]+/.source,F=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,I]),R=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,I]);function _(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,I]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:_(P,F)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:_(L,R)}],char:{pattern:RegExp(D),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism),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)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\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)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,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},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},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(?:COL|_INSERT)?|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(?:ING|S)?|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(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.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]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\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|isolated|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(?:false|true)\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(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\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("\\$"+t),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("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.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+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,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("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|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|docker|docker-compose|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|java|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|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|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|sysctl|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|vcpkg|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;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\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=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","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]]=e.languages.bash[o[a]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}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;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.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:e.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:e.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(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.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:/[\[\](){},;]|\.+|:+/},function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|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:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(Prism),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var DEe=["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 AEe(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+AEe(t)}),0)}var xEe,OEe=bye.String,TEe=function(e){if("Symbol"===sbe(e))throw TypeError("Cannot convert a Symbol value to a string");return OEe(e)},kEe=function(){var e=dme(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},NEe=bye.RegExp,BEe=Kye((function(){var e=NEe("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),IEe=BEe||Kye((function(){return!NEe("a","y").sticky})),FEe={BROKEN_CARET:BEe||Kye((function(){var e=NEe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:IEe,UNSUPPORTED_Y:BEe},PEe=ome?Object.defineProperties:function(e,t){dme(e);for(var n,r=Wbe(t),o=mEe(t),i=o.length,a=0;i>a;)kme.f(e,n=o[a++],r[n]);return e},REe=Hye("document","documentElement"),LEe="prototype",_Ee="script",jEe=zme("IE_PROTO"),MEe=function(){},zEe=function(e){return"<"+_Ee+">"+e+"</"+_Ee+">"},HEe=function(e){e.write(zEe("")),e.close();var t=e.parentWindow.Object;return e=null,t},UEe=function(){try{xEe=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;UEe="undefined"!=typeof document?document.domain&&xEe?HEe(xEe):(t=sme("iframe"),n="java"+_Ee+":",t.style.display="none",REe.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(zEe("document.F=Object")),e.close(),e.F):HEe(xEe);for(var r=nEe.length;r--;)delete UEe[LEe][nEe[r]];return UEe()};Hme[jEe]=!0;var $Ee,VEe,GEe=Object.create||function(e,t){var n;return null!==e?(MEe[LEe]=dme(e),n=new MEe,MEe[LEe]=null,n[jEe]=e):n=UEe(),void 0===t?n:PEe(n,t)},WEe=bye.RegExp,qEe=Kye((function(){var e=WEe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),KEe=bye.RegExp,YEe=Kye((function(){var e=KEe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),XEe=Xme.get,ZEe=Dye("native-string-replace",String.prototype.replace),JEe=RegExp.prototype.exec,QEe=JEe,ewe=kye("".charAt),twe=kye("".indexOf),nwe=kye("".replace),rwe=kye("".slice),owe=(VEe=/b*/g,hme(JEe,$Ee=/a/,"a"),hme(JEe,VEe,"a"),0!==$Ee.lastIndex||0!==VEe.lastIndex),iwe=FEe.BROKEN_CARET,awe=void 0!==/()??/.exec("")[1];(owe||awe||iwe||qEe||YEe)&&(QEe=function(e){var t,n,r,o,i,a,u,s=this,l=XEe(s),c=TEe(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=hme(QEe,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=iwe&&s.sticky,h=hme(kEe,s),v=s.source,g=0,y=c;if(p&&(h=nwe(h,"y",""),-1===twe(h,"g")&&(h+="g"),y=rwe(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==ewe(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),awe&&(n=new RegExp("^"+v+"$(?!\\s)",h)),owe&&(r=s.lastIndex),o=hme(JEe,p?n:s,y),p?o?(o.input=rwe(o.input,g),o[0]=rwe(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:owe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),awe&&o&&o.length>1&&hme(ZEe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=GEe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var uwe=QEe;yEe({target:"RegExp",proto:!0,forced:/./.exec!==uwe},{exec:uwe});var swe=Function.prototype,lwe=swe.apply,cwe=swe.bind,fwe=swe.call,dwe="object"==typeof Reflect&&Reflect.apply||(cwe?fwe.bind(lwe):function(){return fwe.apply(lwe,arguments)}),pwe=tme("species"),hwe=RegExp.prototype,vwe=tme("match"),gwe=bye.TypeError,ywe=tme("species"),mwe=kye("".charAt),bwe=kye("".charCodeAt),Ewe=kye("".slice),wwe=function(e){return function(t,n){var r,o,i=TEe(Bye(t)),a=wbe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=bwe(i,a))<55296||r>56319||a+1===u||(o=bwe(i,a+1))<56320||o>57343?e?mwe(i,a):r:e?Ewe(i,a,a+2):o-56320+(r-55296<<10)+65536}},Swe=(wwe(!1),wwe(!0)),Cwe=function(e,t,n){return t+(n?Swe(e,t).length:1)},Dwe=bye.Array,Awe=Math.max,xwe=function(e,t,n){for(var r,o,i,a,u=Dbe(e),s=Zbe(t,u),l=Zbe(void 0===n?u:n,u),c=Dwe(Awe(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=xme(o))in r?kme.f(r,a,Nme(0,i)):r[a]=i;return c.length=f,c},Owe=bye.TypeError,Twe=function(e,t){var n=e.exec;if(zye(n)){var r=hme(n,e,t);return null!==r&&dme(r),r}if("RegExp"===obe(e))return hme(uwe,e,t);throw Owe("RegExp#exec called on incompatible receiver")},kwe=FEe.UNSUPPORTED_Y,Nwe=4294967295,Bwe=Math.min,Iwe=[].push,Fwe=kye(/./.exec),Pwe=kye(Iwe),Rwe=kye("".slice);!function(e,t,n,r){var o=tme(e),i=!Kye((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Kye((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[pwe]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=kye(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=TEe(Bye(this)),a=void 0===n?Nwe:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!ime(r=e)||!(void 0!==(o=r[vwe])?o:"RegExp"==obe(r)))return hme(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=hme(uwe,p,i))&&!((s=p.lastIndex)>d&&(Pwe(c,Rwe(i,d,u.index)),u.length>1&&u.index<i.length&&dwe(Iwe,c,xwe(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Fwe(p,"")||Pwe(c,""):Pwe(c,Rwe(i,d)),c.length>a?xwe(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:hme(t,this,e,n)}:t,[function(t,n){var o=Bye(this),i=null==t?void 0:Sme(t,e);return i?hme(i,t,o,n):hme(r,TEe(o),t,n)},function(e,o){var i=dme(this),a=TEe(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=dme(e).constructor;return void 0===r||null==(n=dme(r)[ywe])?t:function(e){if(Fbe(e))return e;throw gwe(bme(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(kwe?"g":"y"),f=new s(kwe?"^(?:"+i.source+")":i,c),d=void 0===o?Nwe:o>>>0;if(0===d)return[];if(0===a.length)return null===Twe(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=kwe?0:h;var g,y=Twe(f,kwe?Rwe(a,h):a);if(null===y||(g=Bwe(Cbe(f.lastIndex+(kwe?h:0)),a.length))===p)h=Cwe(a,h,l);else{if(Pwe(v,Rwe(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Pwe(v,y[m]),v.length===d)return v;h=p=g}}return Pwe(v,Rwe(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=kye(e),s=t.exec;return s===uwe||s===hwe.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));tbe(String.prototype,e,s[0]),tbe(hwe,o,s[1])}r&&Bme(hwe[o],"sham",!0)}("split",0,!!Kye((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),kwe),yEe({global:!0},{globalThis:bye}),mh&&(hh.fn.attr=mh);var Lwe=ebe.PROPER,_we="toString",jwe=RegExp.prototype,Mwe=jwe[_we],zwe=kye(kEe),Hwe=Kye((function(){return"/a/b"!=Mwe.call({source:"a",flags:"b"})})),Uwe=Lwe&&Mwe.name!=_we;(Hwe||Uwe)&&tbe(RegExp.prototype,_we,(function(){var e=dme(this),t=TEe(e.source),n=e.flags;return"/"+t+"/"+TEe(void 0===n&&vme(jwe,e)&&!("flags"in jwe)?zwe(e):n)}),{unsafe:!0});var $we=function(){function e(){this.title=eR("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 e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!Mf.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};Pd.setNodes(e,n,{match:function(e){return XN.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=XN.getSelectedNodeByType(e,"code");if(null==t)return null;var n=XN.getParentNode(e,t);return Mf.isElement(n)?"pre"!==n.type?null:t:null},e}(),Vwe={renderStyle:function(e,t){var n=e,r=t,o="";return DEe.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=hh(e);if(!Mf.isElement(t))return t;if("code"!==XN.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new $we},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"},{text:"ABAP",value:"abap"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Gwe=/"/g,Wwe=kye("".replace);yEe({target:"String",proto:!0,forced:Kye((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=TEe(Bye(this)),r="<a",(r+=' name="'+Wwe(TEe(t),Gwe,""")+'"')+">"+n+"</a>";var t,n,r}}),"function"==typeof SuppressedError&&SuppressedError;var qwe=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!gd.isText(e))return null;var t=XN.getParentNode(null,e);if(t&&"code"===XN.getNodeType(t)){var n=XN.getParentNode(null,t);if(n&&"pre"===XN.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=CEe.languages[t];return n?CEe.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var v=h.value,g=d+AEe(v);"string"!=typeof v&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},Kwe=function(){return Kwe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kwe.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Ywe=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Kwe(Kwe({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Kwe(Kwe({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Kwe(Kwe({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Kwe(Kwe({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=hO(hO({},o),t||{});if(null!=QN[n])throw new Error("Duplicated key '"+n+"' in menu items");QN[n]=r,function(e,t){null!=t&&(JN[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;eF[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){QI.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;dB[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){fB.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){bB.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;wB[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){EB.push(e)}(e)},e.registerModule=function(e){Xwe(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function Xwe(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return Ywe.registerMenu(e)})),n&&n.forEach((function(e){return Ywe.registerRenderElem(e)})),r&&Ywe.registerRenderStyle(r),o&&o.forEach((function(e){return Ywe.registerElemToHtml(e)})),i&&Ywe.registerStyleToHtml(i),a&&a.forEach((function(e){return Ywe.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Ywe.registerParseElemHtml(e)})),s&&Ywe.registerParseStyleHtml(s),l&&Ywe.registerPlugin(l)}pY.forEach((function(e){return Xwe(e)})),Xwe(H1),Xwe(uee),Xwe(rle),Xwe(pye),Xwe(Vwe);var Zwe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Jwe='<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>',Qwe='<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>',eSe='<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>',tSe='<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>';var nSe={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell","setTableProperty","setTableCellProperty"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize","editVideoSrc"]}};var rSe={hoverbarKeys:Kwe(Kwe({},nSe),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Ywe.setEditorConfig(Kwe(Kwe({},rSe),{decorate:qwe}));var oSe={hoverbarKeys:nSe};Ywe.setSimpleEditorConfig(Kwe(Kwe({},oSe),{decorate:qwe}));var iSe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:eR("editor.more"),iconSvg:eSe,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:eR("editor.justify"),iconSvg:Jwe,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:eR("editor.indent"),iconSvg:Zwe,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:eR("editor.image"),iconSvg:Qwe,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:eR("editor.video"),iconSvg:tSe,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};Ywe.setToolbarConfig(iSe);var aSe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:eR("editor.image"),iconSvg:Qwe,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function uSe(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?Ywe.simpleEditorConfig:Ywe.editorConfig,c=Kwe(Kwe({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return XF({selector:n,config:Kwe(Kwe(Kwe({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Ywe.plugins})}function sSe(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?Ywe.simpleToolbarConfig:Ywe.toolbarConfig,s=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return QB(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=hO({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new tP(n,i);return mT.set(a,e),bT.set(e,a),a}(n,{selector:t,config:Kwe(Kwe({},u),o)});return s}Ywe.setSimpleToolbarConfig(aSe);var lSe={};export{Ywe as Boot,XN as DomEditor,Gf as SlateEditor,Mf as SlateElement,Wf as SlateLocation,Zf as SlateNode,td as SlatePath,id as SlatePoint,ld as SlateRange,gd as SlateText,Pd as SlateTransforms,tP as Toolbar,uSe as createEditor,sSe as createToolbar,sP as createUploader,lSe as default,MF as genModalButtonElems,_F as genModalInputElems,jF as genModalTextareaElems,ZP as i18nAddResources,JP as i18nChangeLanguage,QP as i18nGetResources,eR as t};
|
|
33
33
|
//# sourceMappingURL=index.esm.js.map
|