@ctqeditor/editor-for-vue 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +20 -0
- package/dist/components/Editor.vue.d.ts +9 -0
- package/dist/components/Toolbar.vue.d.ts +5 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.esm.js +163 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +163 -0
- package/dist/index.js.map +1 -0
- package/package.json +89 -0
package/dist/index.js
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WangEditorForVue={},e.Vue)}(this,(function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t),o=function(){return o=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},o.apply(this,arguments)},i=function(e){try{return!!e()}catch(e){return!0}},a=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=Function.prototype,s=u.call,c=a&&u.bind.bind(s,s),l=a?c:function(e){return function(){return s.apply(e,arguments)}},f=l({}.toString),d=l("".slice),p=function(e){return d(f(e),8,-1)},h=Object,v=l("".split),g=i((function(){return!h("z").propertyIsEnumerable(0)}))?function(e){return"String"===p(e)?v(e,""):h(e)}:h,y=function(e){return null==e},m=TypeError,b=function(e){if(y(e))throw new m("Can't call method on "+e);return e},w=function(e){return g(b(e))},E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
|
2
|
+
/*! *****************************************************************************
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
15
|
+
***************************************************************************** */function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function C(e){var t={exports:{}};return e(t,t.exports),t.exports}var D,x,O=function(e){return e&&e.Math===Math&&e},A=O("object"==typeof globalThis&&globalThis)||O("object"==typeof window&&window)||O("object"==typeof self&&self)||O("object"==typeof E&&E)||O("object"==typeof E&&E)||function(){return this}()||Function("return this")(),k=Object.defineProperty,B=function(e,t){try{k(A,e,{value:t,configurable:!0,writable:!0})}catch(n){A[e]=t}return t},F=C((function(e){var t="__core-js_shared__",n=e.exports=A[t]||B(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),T=function(e,t){return F[e]||(F[e]=t||{})},P=Object,_=function(e){return P(b(e))},j=l({}.hasOwnProperty),N=Object.hasOwn||function(e,t){return j(_(e),t)},I=0,R=Math.random(),L=l(1..toString),M=function(e){return"Symbol("+(void 0===e?"":e)+")_"+L(++I+R,36)},z=A.navigator,$=z&&z.userAgent,H=$?String($):"",U=A.process,V=A.Deno,W=U&&U.versions||V&&V.version,q=W&&W.v8;q&&(x=(D=q.split("."))[0]>0&&D[0]<4?1:+(D[0]+D[1])),!x&&H&&(!(D=H.match(/Edge\/(\d+)/))||D[1]>=74)&&(D=H.match(/Chrome\/(\d+)/))&&(x=+D[1]);var G,K=x,Y=A.String,X=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!Y(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&K&&K<41})),Z=X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=A.Symbol,Q=T("wks"),ee=Z?J.for||J:J&&J.withoutSetter||M,te=function(e){return N(Q,e)||(Q[e]=X&&N(J,e)?J[e]:ee("Symbol."+e)),Q[e]},ne="object"==typeof document&&document.all,re=void 0===ne&&void 0!==ne?function(e){return"function"==typeof e||e===ne}:function(e){return"function"==typeof e},oe=function(e){return"object"==typeof e?null!==e:re(e)},ie=String,ae=TypeError,ue=function(e){if(oe(e))return e;throw new ae(ie(e)+" is not an object")},se=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),ce=se&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),le=A.document,fe=oe(le)&&oe(le.createElement),de=function(e){return fe?le.createElement(e):{}},pe=!se&&!i((function(){return 7!==Object.defineProperty(de("div"),"a",{get:function(){return 7}}).a})),he=Function.prototype.call,ve=a?he.bind(he):function(){return he.apply(he,arguments)},ge=function(e,t){return arguments.length<2?(n=A[e],re(n)?n:void 0):A[e]&&A[e][t];var n},ye=l({}.isPrototypeOf),me=Object,be=Z?function(e){return"symbol"==typeof e}:function(e){var t=ge("Symbol");return re(t)&&ye(t.prototype,me(e))},we=String,Ee=function(e){try{return we(e)}catch(e){return"Object"}},Se=TypeError,Ce=function(e){if(re(e))return e;throw new Se(Ee(e)+" is not a function")},De=function(e,t){var n=e[t];return y(n)?void 0:Ce(n)},xe=TypeError,Oe=TypeError,Ae=te("toPrimitive"),ke=function(e){var t=function(e,t){if(!oe(e)||be(e))return e;var n,r=De(e,Ae);if(r){if(void 0===t&&(t="default"),n=ve(r,e,t),!oe(n)||be(n))return n;throw new Oe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&re(n=e.toString)&&!oe(r=ve(n,e)))return r;if(re(n=e.valueOf)&&!oe(r=ve(n,e)))return r;if("string"!==t&&re(n=e.toString)&&!oe(r=ve(n,e)))return r;throw new xe("Can't convert object to primitive value")}(e,t)}(e,"string");return be(t)?t:t+""},Be=TypeError,Fe=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,Pe="enumerable",_e="configurable",je="writable",Ne=se?ce?function(e,t,n){if(ue(e),t=ke(t),ue(n),"function"==typeof e&&"prototype"===t&&"value"in n&&je in n&&!n[je]){var r=Te(e,t);r&&r[je]&&(e[t]=n.value,n={configurable:_e in n?n[_e]:r[_e],enumerable:Pe in n?n[Pe]:r[Pe],writable:!1})}return Fe(e,t,n)}:Fe:function(e,t,n){if(ue(e),t=ke(t),ue(n),pe)try{return Fe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Be("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ie={f:Ne},Re=Math.ceil,Le=Math.floor,Me=Math.trunc||function(e){var t=+e;return(t>0?Le:Re)(t)},ze=function(e){var t=+e;return t!=t||0===t?0:Me(t)},$e=Math.max,He=Math.min,Ue=Math.min,Ve=function(e){var t=ze(e);return t>0?Ue(t,9007199254740991):0},We=function(e){return Ve(e.length)},qe=function(e){return function(t,n,r){var o=w(t),i=We(o);if(0===i)return!e&&-1;var a,u=function(e,t){var n=ze(e);return n<0?$e(n+t,0):He(n,t)}(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},Ge={includes:qe(!0),indexOf:qe(!1)},Ke={},Ye=Ge.indexOf,Xe=l([].push),Ze=function(e,t){var n,r=w(e),o=0,i=[];for(n in r)!N(Ke,n)&&N(r,n)&&Xe(i,n);for(;t.length>o;)N(r,n=t[o++])&&(~Ye(i,n)||Xe(i,n));return i},Je=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qe=Object.keys||function(e){return Ze(e,Je)},et=se&&!ce?Object.defineProperties:function(e,t){ue(e);for(var n,r=w(t),o=Qe(t),i=o.length,a=0;i>a;)Ie.f(e,n=o[a++],r[n]);return e},tt={f:et},nt=ge("document","documentElement"),rt=T("keys"),ot=function(e){return rt[e]||(rt[e]=M(e))},it="prototype",at="script",ut=ot("IE_PROTO"),st=function(){},ct=function(e){return"<script>"+e+"</"+at+">"},lt=function(e){e.write(ct("")),e.close();var t=e.parentWindow.Object;return e=null,t},ft=function(){try{G=new ActiveXObject("htmlfile")}catch(e){}var e,t;ft="undefined"!=typeof document?document.domain&&G?lt(G):("javascript:",(t=de("iframe")).style.display="none",nt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ct("document.F=Object")),e.close(),e.F):lt(G);for(var n=Je.length;n--;)delete ft[it][Je[n]];return ft()};Ke[ut]=!0;var dt=Object.create||function(e,t){var n;return null!==e?(st[it]=ue(e),n=new st,st[it]=null,n[ut]=e):n=ft(),void 0===t?n:tt.f(n,t)},pt=Ie.f,ht=te("unscopables"),vt=Array.prototype;void 0===vt[ht]&&pt(vt,ht,{configurable:!0,value:dt(null)});var gt,yt,mt,bt=function(e){vt[ht][e]=!0},wt={},Et=A.WeakMap,St=re(Et)&&/native code/.test(String(Et)),Ct=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Dt=se?function(e,t,n){return Ie.f(e,t,Ct(1,n))}:function(e,t,n){return e[t]=n,e},xt="Object already initialized",Ot=A.TypeError,At=A.WeakMap;if(St||F.state){var kt=F.state||(F.state=new At);kt.get=kt.get,kt.has=kt.has,kt.set=kt.set,gt=function(e,t){if(kt.has(e))throw new Ot(xt);return t.facade=e,kt.set(e,t),t},yt=function(e){return kt.get(e)||{}},mt=function(e){return kt.has(e)}}else{var Bt=ot("state");Ke[Bt]=!0,gt=function(e,t){if(N(e,Bt))throw new Ot(xt);return t.facade=e,Dt(e,Bt,t),t},yt=function(e){return N(e,Bt)?e[Bt]:{}},mt=function(e){return N(e,Bt)}}var Ft={set:gt,get:yt,has:mt,enforce:function(e){return mt(e)?yt(e):gt(e,{})},getterFor:function(e){return function(t){var n;if(!oe(t)||(n=yt(t)).type!==e)throw new Ot("Incompatible receiver, "+e+" required");return n}}},Tt={}.propertyIsEnumerable,Pt=Object.getOwnPropertyDescriptor,_t=Pt&&!Tt.call({1:2},1)?function(e){var t=Pt(this,e);return!!t&&t.enumerable}:Tt,jt={f:_t},Nt=Object.getOwnPropertyDescriptor,It=se?Nt:function(e,t){if(e=w(e),t=ke(t),pe)try{return Nt(e,t)}catch(e){}if(N(e,t))return Ct(!ve(jt.f,e,t),e[t])},Rt={f:It},Lt=Function.prototype,Mt=se&&Object.getOwnPropertyDescriptor,zt=N(Lt,"name"),$t={EXISTS:zt,PROPER:zt&&"something"===function(){}.name,CONFIGURABLE:zt&&(!se||se&&Mt(Lt,"name").configurable)},Ht=l(Function.toString);re(F.inspectSource)||(F.inspectSource=function(e){return Ht(e)});var Ut,Vt,Wt,qt=F.inspectSource,Gt=C((function(e){var t=$t.CONFIGURABLE,n=Ft.enforce,r=Ft.get,o=String,a=Object.defineProperty,u=l("".slice),s=l("".replace),c=l([].join),f=se&&!i((function(){return 8!==a((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=e.exports=function(e,r,i){"Symbol("===u(o(r),0,7)&&(r="["+s(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!N(e,"name")||t&&e.name!==r)&&(se?a(e,"name",{value:r,configurable:!0}):e.name=r),f&&i&&N(i,"arity")&&e.length!==i.arity&&a(e,"length",{value:i.arity});try{i&&N(i,"constructor")&&i.constructor?se&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=n(e);return N(l,"source")||(l.source=c(d,"string"==typeof r?r:"")),e};Function.prototype.toString=p((function(){return re(this)&&r(this).source||qt(this)}),"toString")})),Kt=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(re(n)&&Gt(n,i,r),r.global)o?e[t]=n:B(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Ie.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Yt=Je.concat("length","prototype"),Xt=Object.getOwnPropertyNames||function(e){return Ze(e,Yt)},Zt={f:Xt},Jt={f:Object.getOwnPropertySymbols},Qt=l([].concat),en=ge("Reflect","ownKeys")||function(e){var t=Zt.f(ue(e)),n=Jt.f;return n?Qt(t,n(e)):t},tn=function(e,t,n){for(var r=en(t),o=Ie.f,i=Rt.f,a=0;a<r.length;a++){var u=r[a];N(e,u)||n&&N(n,u)||o(e,u,i(t,u))}},nn=/#|\.prototype\./,rn=function(e,t){var n=an[on(e)];return n===sn||n!==un&&(re(t)?i(t):!!t)},on=rn.normalize=function(e){return String(e).replace(nn,".").toLowerCase()},an=rn.data={},un=rn.NATIVE="N",sn=rn.POLYFILL="P",cn=rn,ln=Rt.f,fn=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?A:c?A[u]||B(u,{}):A[u]&&A[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=ln(n,r))&&a.value:n[r],!cn(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;tn(i,o)}(e.sham||o&&o.sham)&&Dt(i,"sham",!0),Kt(n,r,i,e)}},dn=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),pn=ot("IE_PROTO"),hn=Object,vn=hn.prototype,gn=dn?hn.getPrototypeOf:function(e){var t=_(e);if(N(t,pn))return t[pn];var n=t.constructor;return re(n)&&t instanceof n?n.prototype:t instanceof hn?vn:null},yn=te("iterator"),mn=!1;[].keys&&("next"in(Wt=[].keys())?(Vt=gn(gn(Wt)))!==Object.prototype&&(Ut=Vt):mn=!0),(!oe(Ut)||i((function(){var e={};return Ut[yn].call(e)!==e})))&&(Ut={}),re(Ut[yn])||Kt(Ut,yn,(function(){return this}));var bn={IteratorPrototype:Ut,BUGGY_SAFARI_ITERATORS:mn},wn=Ie.f,En=te("toStringTag"),Sn=function(e,t,n){e&&!n&&(e=e.prototype),e&&!N(e,En)&&wn(e,En,{configurable:!0,value:t})},Cn=bn.IteratorPrototype,Dn=function(){return this},xn=String,On=TypeError,An=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e,t,n){try{return l(Ce(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return b(n),function(e){if(function(e){return oe(e)||null===e}(e))return e;throw new On("Can't set "+xn(e)+" as a prototype")}(r),oe(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),kn=$t.PROPER,Bn=$t.CONFIGURABLE,Fn=bn.IteratorPrototype,Tn=bn.BUGGY_SAFARI_ITERATORS,Pn=te("iterator"),_n="keys",jn="values",Nn="entries",In=function(){return this},Rn=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=dt(Cn,{next:Ct(1,n)}),Sn(e,o,!1),wt[o]=Dn}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!Tn&&e&&e in p)return p[e];switch(e){case _n:case jn:case Nn:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Pn]||p["@@iterator"]||o&&p[o],v=!Tn&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=gn(g.call(new e)))!==Object.prototype&&u.next&&(gn(u)!==Fn&&(An?An(u,Fn):re(u[Pn])||Kt(u,Pn,In)),Sn(u,f,!0)),kn&&o===jn&&h&&h.name!==jn&&(Bn?Dt(p,"name",jn):(d=!0,v=function(){return ve(h,this)})),o)if(s={values:l(jn),keys:i?v:l(_n),entries:l(Nn)},a)for(c in s)(Tn||d||!(c in p))&&Kt(p,c,s[c]);else fn({target:t,proto:!0,forced:Tn||d},s);return p[Pn]!==v&&Kt(p,Pn,v,{name:o}),wt[t]=v,s},Ln=function(e,t){return{value:e,done:t}},Mn=Ie.f,zn="Array Iterator",$n=Ft.set,Hn=Ft.getterFor(zn),Un=Rn(Array,"Array",(function(e,t){$n(this,{type:zn,target:w(e),index:0,kind:t})}),(function(){var e=Hn(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Ln(void 0,!0);switch(e.kind){case"keys":return Ln(n,!1);case"values":return Ln(t[n],!1)}return Ln([n,t[n]],!1)}),"values"),Vn=wt.Arguments=wt.Array;if(bt("keys"),bt("values"),bt("entries"),se&&"values"!==Vn.name)try{Mn(Vn,"name",{value:"values"})}catch(i){}var Wn={};Wn[te("toStringTag")]="z";var qn="[object z]"===String(Wn),Gn=te("toStringTag"),Kn=Object,Yn="Arguments"===p(function(){return arguments}()),Xn=qn?p: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=Kn(e),Gn))?n:Yn?p(t):"Object"===(r=p(t))&&re(t.callee)?"Arguments":r},Zn=qn?{}.toString:function(){return"[object "+Xn(this)+"]"};qn||Kt(Object.prototype,"toString",Zn,{unsafe:!0});var Jn,Qn,er=String,tr=function(e){if("Symbol"===Xn(e))throw new TypeError("Cannot convert a Symbol value to a string");return er(e)},nr=function(){var e=ue(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},rr=A.RegExp,or=i((function(){var e=rr("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),ir=or||i((function(){return!rr("a","y").sticky})),ar=or||i((function(){var e=rr("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),ur={BROKEN_CARET:ar,MISSED_STICKY:ir,UNSUPPORTED_Y:or},sr=A.RegExp,cr=i((function(){var e=sr(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),lr=A.RegExp,fr=i((function(){var e=lr("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),dr=Ft.get,pr=T("native-string-replace",String.prototype.replace),hr=RegExp.prototype.exec,vr=hr,gr=l("".charAt),yr=l("".indexOf),mr=l("".replace),br=l("".slice),wr=(Qn=/b*/g,ve(hr,Jn=/a/,"a"),ve(hr,Qn,"a"),0!==Jn.lastIndex||0!==Qn.lastIndex),Er=ur.BROKEN_CARET,Sr=void 0!==/()??/.exec("")[1];(wr||Sr||Er||cr||fr)&&(vr=function(e){var t,n,r,o,i,a,u,s=this,c=dr(s),l=tr(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=ve(vr,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=Er&&s.sticky,h=ve(nr,s),v=s.source,g=0,y=l;if(p&&(h=mr(h,"y",""),-1===yr(h,"g")&&(h+="g"),y=br(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==gr(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Sr&&(n=new RegExp("^"+v+"$(?!\\s)",h)),wr&&(r=s.lastIndex),o=ve(hr,p?n:s,y),p?o?(o.input=br(o.input,g),o[0]=br(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:wr&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Sr&&o&&o.length>1&&ve(pr,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=dt(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Cr=vr;fn({target:"RegExp",proto:!0,forced:/./.exec!==Cr},{exec:Cr});var Dr=l("".charAt),xr=l("".charCodeAt),Or=l("".slice),Ar=function(e){return function(t,n){var r,o,i=tr(b(t)),a=ze(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=xr(i,a))<55296||r>56319||a+1===u||(o=xr(i,a+1))<56320||o>57343?e?Dr(i,a):r:e?Or(i,a,a+2):o-56320+(r-55296<<10)+65536}},kr={codeAt:Ar(!1),charAt:Ar(!0)},Br=kr.charAt,Fr="String Iterator",Tr=Ft.set,Pr=Ft.getterFor(Fr);Rn(String,"String",(function(e){Tr(this,{type:Fr,string:tr(e),index:0})}),(function(){var e,t=Pr(this),n=t.string,r=t.index;return r>=n.length?Ln(void 0,!0):(e=Br(n,r),t.index+=e.length,Ln(e,!1))}));te("species");var _r=RegExp.prototype,jr=kr.charAt,Nr=function(e,t,n){return t+(n?jr(e,t).length:1)},Ir=TypeError,Rr=function(e,t){var n=e.exec;if(re(n)){var r=ve(n,e,t);return null!==r&&ue(r),r}if("RegExp"===p(e))return ve(Cr,e,t);throw new Ir("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=te(e),a=!i((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),u=a&&!i((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!a||!u){var s=/./[o],c=function(e,t,n){return[function(t){var n=b(this),r=y(t)?void 0:De(t,e);return r?ve(r,t,n):new RegExp(t)[e](tr(n))},function(e){var r=ue(this),o=tr(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Rr(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=Rr(r,o));){var l=tr(u[0]);s[c]=l,""===l&&(r.lastIndex=Nr(o,Ve(r.lastIndex),a)),c++}return 0===c?null:s}]}(o,""[e],(function(e,t,n,r,o){var i=t.exec;return i===Cr||i===_r.exec?a&&!o?{done:!0,value:ve(s,t,n,r)}:{done:!0,value:ve(e,n,t,r)}:{done:!1}}));Kt(String.prototype,e,c[0]),Kt(_r,o,c[1])}}("match");var Lr=Error,Mr=l("".replace),zr=String(new Lr("zxcasd").stack),$r=/\n\s*at [^:]*:[^\n]*/,Hr=$r.test(zr),Ur=!i((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ct(1,7)),7!==e.stack)})),Vr=Error.captureStackTrace,Wr=function(e,t,n,r){Ur&&(Vr?Vr(e,t):Dt(e,"stack",function(e,t){if(Hr&&"string"==typeof e&&!Lr.prepareStackTrace)for(;t--;)e=Mr(e,$r,"");return e}(n,r)))},qr=function(e){if("Function"===p(e))return l(e)},Gr=qr(qr.bind),Kr=function(e,t){return Ce(e),void 0===t?e:a?Gr(e,t):function(){return e.apply(t,arguments)}},Yr=te("iterator"),Xr=Array.prototype,Zr=te("iterator"),Jr=function(e){if(!y(e))return De(e,Zr)||De(e,"@@iterator")||wt[Xn(e)]},Qr=TypeError,eo=function(e,t,n){var r,o;ue(e);try{if(!(r=De(e,"return"))){if("throw"===t)throw n;return n}r=ve(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return ue(r),n},to=TypeError,no=function(e,t){this.stopped=e,this.result=t},ro=no.prototype,oo=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Kr(t,l),g=function(e){return r&&eo(r,"normal",e),new no(!0,e)},y=function(e){return f?(ue(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(d)r=e.iterator;else if(p)r=e;else{if(!(o=Jr(e)))throw new to(Ee(e)+" is not iterable");if(function(e){return void 0!==e&&(wt.Array===e||Xr[Yr]===e)}(o)){for(i=0,a=We(e);a>i;i++)if((u=y(e[i]))&&ye(ro,u))return u;return new no(!1)}r=function(e,t){var n=arguments.length<2?Jr(e):t;if(Ce(n))return ue(ve(n,e));throw new Qr(Ee(e)+" is not iterable")}(e,o)}for(s=d?e.next:r.next;!(c=ve(s,r)).done;){try{u=y(c.value)}catch(e){eo(r,"throw",e)}if("object"==typeof u&&u&&ye(ro,u))return u}return new no(!1)},io=te("toStringTag"),ao=Error,uo=[].push,so=function(e,t){var n,r=ye(co,this);An?n=An(new ao,r?gn(this):co):(n=r?this:dt(co),Dt(n,io,"Error")),void 0!==t&&Dt(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:tr(e)}(t)),Wr(n,so,n.stack,1),arguments.length>2&&function(e,t){oe(t)&&"cause"in t&&Dt(e,"cause",t.cause)}(n,arguments[2]);var o=[];return oo(e,uo,{that:o}),Dt(n,"errors",o),n};An?An(so,ao):tn(so,ao,{name:!0});var co=so.prototype=dt(ao.prototype,{constructor:Ct(1,so),message:Ct(1,""),name:Ct(1,"AggregateError")});fn({global:!0,constructor:!0,arity:2},{AggregateError:so}),fn({global:!0,forced:A.globalThis!==A},{globalThis:A});var lo,fo={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},po=de("span").classList,ho=po&&po.constructor&&po.constructor.prototype,vo=ho===Object.prototype?void 0:ho,go=te("iterator"),yo=Un.values,mo=function(e,t){if(e){if(e[go]!==yo)try{Dt(e,go,yo)}catch(t){e[go]=yo}if(Sn(e,t,!0),fo[t])for(var n in Un)if(e[n]!==Un[n])try{Dt(e,n,Un[n])}catch(t){e[n]=Un[n]}}};for(var bo in fo)mo(A[bo]&&A[bo].prototype,bo);function wo(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Eo(){"undefined"==typeof AggregateError&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}mo(vo,"DOMTokenList"),"undefined"==typeof global?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),wo(),Eo()):global&&(null===(lo=global.navigator)||void 0===lo?void 0:lo.userAgent.match("QQBrowser"))&&(wo(),Eo());var So,Co,Do=function(e){return e&&e.Math===Math&&e},xo=Do("object"==typeof globalThis&&globalThis)||Do("object"==typeof window&&window)||Do("object"==typeof self&&self)||Do("object"==typeof E&&E)||Do("object"==typeof E&&E)||function(){return this}()||Function("return this")(),Oo=function(e){try{return!!e()}catch(e){return!0}},Ao=!Oo((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ko=Ao,Bo=Function.prototype,Fo=Bo.apply,To=Bo.call,Po="object"==typeof Reflect&&Reflect.apply||(ko?To.bind(Fo):function(){return To.apply(Fo,arguments)}),_o=Function.prototype,jo=_o.call,No=ko&&_o.bind.bind(jo,jo),Io=ko?No:function(e){return function(){return jo.apply(e,arguments)}},Ro=Io,Lo=Ro({}.toString),Mo=Ro("".slice),zo=function(e){return Mo(Lo(e),8,-1)},$o="object"==typeof document&&document.all,Ho=void 0===$o&&void 0!==$o?function(e){return"function"==typeof e||e===$o}:function(e){return"function"==typeof e},Uo=!Oo((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Vo=Function.prototype.call,Wo=ko?Vo.bind(Vo):function(){return Vo.apply(Vo,arguments)},qo={}.propertyIsEnumerable,Go=Object.getOwnPropertyDescriptor,Ko=Go&&!qo.call({1:2},1)?function(e){var t=Go(this,e);return!!t&&t.enumerable}:qo,Yo={f:Ko},Xo=Object,Zo=Ro("".split),Jo=Oo((function(){return!Xo("z").propertyIsEnumerable(0)}))?function(e){return"String"===zo(e)?Zo(e,""):Xo(e)}:Xo,Qo=function(e){return null==e},ei=TypeError,ti=Jo,ni=function(e){if(Qo(e))throw new ei("Can't call method on "+e);return e},ri=Ho,oi={},ii=xo,ai=function(e){return ri(e)?e:void 0},ui=Ro({}.isPrototypeOf),si=ii.navigator,ci=si&&si.userAgent,li=ci?String(ci):"",fi=ii.process,di=ii.Deno,pi=fi&&fi.versions||di&&di.version,hi=pi&&pi.v8;hi&&(Co=(So=hi.split("."))[0]>0&&So[0]<4?1:+(So[0]+So[1])),!Co&&li&&(!(So=li.match(/Edge\/(\d+)/))||So[1]>=74)&&(So=li.match(/Chrome\/(\d+)/))&&(Co=+So[1]);var vi=Co,gi=ii.String,yi=!!Object.getOwnPropertySymbols&&!Oo((function(){var e=Symbol("symbol detection");return!gi(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vi&&vi<41})),mi=yi,bi=mi&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wi=function(e,t){return arguments.length<2?ai(oi[e])||ai(ii[e]):oi[e]&&oi[e][t]||ii[e]&&ii[e][t]},Ei=ui,Si=bi,Ci=Object,Di=Si?function(e){return"symbol"==typeof e}:function(e){var t=wi("Symbol");return ri(t)&&Ei(t.prototype,Ci(e))},xi=String,Oi=function(e){try{return xi(e)}catch(e){return"Object"}},Ai=TypeError,ki=function(e){if(ri(e))return e;throw new Ai(Oi(e)+" is not a function")},Bi=Wo,Fi=function(e){return"object"==typeof e?null!==e:ri(e)},Ti=TypeError,Pi=Object.defineProperty,_i=C((function(e){var t="__core-js_shared__",n=e.exports=ii[t]||function(e,t){try{Pi(ii,e,{value:t,configurable:!0,writable:!0})}catch(n){ii[e]=t}return t}(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),ji=_i,Ni=Object,Ii=function(e){return Ni(ni(e))},Ri=Ro({}.hasOwnProperty),Li=Object.hasOwn||function(e,t){return Ri(Ii(e),t)},Mi=0,zi=Math.random(),$i=Ro(1..toString),Hi=function(e,t){return ji[e]||(ji[e]=t||{})},Ui=Li,Vi=function(e){return"Symbol("+(void 0===e?"":e)+")_"+$i(++Mi+zi,36)},Wi=ii.Symbol,qi=Hi("wks"),Gi=Si?Wi.for||Wi:Wi&&Wi.withoutSetter||Vi,Ki=Di,Yi=function(e){return Ui(qi,e)||(qi[e]=mi&&Ui(Wi,e)?Wi[e]:Gi("Symbol."+e)),qi[e]},Xi=TypeError,Zi=Yi("toPrimitive"),Ji=function(e,t){if(!Fi(e)||Ki(e))return e;var n,r=function(e,t){var n=e[t];return Qo(n)?void 0:ki(n)}(e,Zi);if(r){if(void 0===t&&(t="default"),n=Bi(r,e,t),!Fi(n)||Ki(n))return n;throw new Xi("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ri(n=e.toString)&&!Fi(r=Bi(n,e)))return r;if(ri(n=e.valueOf)&&!Fi(r=Bi(n,e)))return r;if("string"!==t&&ri(n=e.toString)&&!Fi(r=Bi(n,e)))return r;throw new Ti("Can't convert object to primitive value")}(e,t)},Qi=ii.document,ea=Fi(Qi)&&Fi(Qi.createElement),ta=Uo,na=function(e){return ea?Qi.createElement(e):{}},ra=!ta&&!Oo((function(){return 7!==Object.defineProperty(na("div"),"a",{get:function(){return 7}}).a})),oa=Yo,ia=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},aa=function(e){return ti(ni(e))},ua=function(e){var t=Ji(e,"string");return Ki(t)?t:t+""},sa=ra,ca=Object.getOwnPropertyDescriptor,la=ta?ca:function(e,t){if(e=aa(e),t=ua(t),sa)try{return ca(e,t)}catch(e){}if(Ui(e,t))return ia(!Bi(oa.f,e,t),e[t])},fa={f:la},da=/#|\.prototype\./,pa=function(e,t){var n=va[ha(e)];return n===ya||n!==ga&&(ri(t)?Oo(t):!!t)},ha=pa.normalize=function(e){return String(e).replace(da,".").toLowerCase()},va=pa.data={},ga=pa.NATIVE="N",ya=pa.POLYFILL="P",ma=pa,ba=function(e){if("Function"===zo(e))return Ro(e)},wa=ba(ba.bind),Ea=ta&&Oo((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Sa=String,Ca=TypeError,Da=Ea,xa=function(e){if(Fi(e))return e;throw new Ca(Sa(e)+" is not an object")},Oa=TypeError,Aa=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,Ba="enumerable",Fa="configurable",Ta="writable",Pa=ta?Da?function(e,t,n){if(xa(e),t=ua(t),xa(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ta in n&&!n[Ta]){var r=ka(e,t);r&&r[Ta]&&(e[t]=n.value,n={configurable:Fa in n?n[Fa]:r[Fa],enumerable:Ba in n?n[Ba]:r[Ba],writable:!1})}return Aa(e,t,n)}:Aa:function(e,t,n){if(xa(e),t=ua(t),xa(n),sa)try{return Aa(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Oa("Accessors not supported");return"value"in n&&(e[t]=n.value),e},_a={f:Pa},ja=ta?function(e,t,n){return _a.f(e,t,ia(1,n))}:function(e,t,n){return e[t]=n,e},Na=Po,Ia=fa,Ra=ma,La=function(e,t){return ki(e),void 0===t?e:ko?wa(e,t):function(){return e.apply(t,arguments)}},Ma=ja,za=Ia.f,$a=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 Na(e,this,arguments)};return t.prototype=e.prototype,t},Ha=Array.isArray||function(e){return"Array"===zo(e)},Ua=Math.ceil,Va=Math.floor,Wa=Math.trunc||function(e){var t=+e;return(t>0?Va:Ua)(t)},qa=Wa,Ga=function(e){var t=+e;return t!=t||0===t?0:qa(t)},Ka=Math.min,Ya=TypeError,Xa={};Xa[Yi("toStringTag")]="z";var Za="[object z]"===String(Xa),Ja=Yi("toStringTag"),Qa=Object,eu="Arguments"===zo(function(){return arguments}()),tu=Za?zo: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=Qa(e),Ja))?n:eu?zo(t):"Object"===(r=zo(t))&&ri(t.callee)?"Arguments":r},nu=Ro(Function.toString);ri(ji.inspectSource)||(ji.inspectSource=function(e){return nu(e)});var ru=ji.inspectSource,ou=tu,iu=ru,au=function(){},uu=wi("Reflect","construct"),su=/^\s*(?:class|function)\b/,cu=Ro(su.exec),lu=!su.test(au),fu=function(e){if(!ri(e))return!1;try{return uu(au,[],e),!0}catch(e){return!1}},du=function(e){if(!ri(e))return!1;switch(ou(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return lu||!!cu(su,iu(e))}catch(e){return!0}};du.sham=!0;var pu=!uu||Oo((function(){var e;return fu(fu.call)||!fu(Object)||!fu((function(){e=!0}))||e}))?du:fu,hu=Ha,vu=pu,gu=Yi("species"),yu=Array,mu=Yi("species"),bu=function(e,t){var n,r,o,i,a,u,s,c,l,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?ii:p?ii[f]:ii[f]&&ii[f].prototype,g=d?oi:oi[f]||Ma(oi,f,{})[f],y=g.prototype;for(i in t)r=!(n=Ra(d?i:f+(p?".":"#")+i,e.forced))&&v&&Ui(v,i),u=g[i],r&&(s=e.dontCallGetSet?(l=za(v,i))&&l.value:v[i]),a=r&&s?s:t[i],(n||h||typeof u!=typeof a)&&(c=e.bind&&r?La(a,ii):e.wrap&&r?$a(a):h&&ri(a)?ba(a):a,(e.sham||a&&a.sham||u&&u.sham)&&Ma(c,"sham",!0),Ma(g,i,c),h&&(Ui(oi,o=f+"Prototype")||Ma(oi,o,{}),Ma(oi[o],i,a),e.real&&y&&(n||!y[i])&&Ma(y,i,a)))},wu=function(e){return function(e){var t=Ga(e);return t>0?Ka(t,9007199254740991):0}(e.length)},Eu=function(e){if(e>9007199254740991)throw Ya("Maximum allowed index exceeded");return e},Su=function(e,t,n){ta?_a.f(e,t,ia(0,n)):e[t]=n},Cu=function(e,t){return new(function(e){var t;return hu(e)&&(t=e.constructor,(vu(t)&&(t===yu||hu(t.prototype))||Fi(t)&&null===(t=t[gu]))&&(t=void 0)),void 0===t?yu:t}(e))(0===t?0:t)},Du=Yi("isConcatSpreadable"),xu=vi>=51||!Oo((function(){var e=[];return e[Du]=!1,e.concat()[0]!==e})),Ou=function(e){if(!Fi(e))return!1;var t=e[Du];return void 0!==t?!!t:hu(e)},Au=!xu||!function(e){return vi>=51||!Oo((function(){var t=[];return(t.constructor={})[mu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("concat");bu({target:"Array",proto:!0,arity:1,forced:Au},{concat:function(e){var t,n,r,o,i,a=Ii(this),u=Cu(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Ou(i=-1===t?a:arguments[t]))for(o=wu(i),Eu(s+o),n=0;n<o;n++,s++)n in i&&Su(u,s,i[n]);else Eu(s+1),Su(u,s++,i);return u.length=s,u}});var ku,Bu=String,Fu=Math.max,Tu=Math.min,Pu=function(e){return function(t,n,r){var o=aa(t),i=wu(o);if(0===i)return!e&&-1;var a,u=function(e,t){var n=Ga(e);return n<0?Fu(n+t,0):Tu(n,t)}(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},_u={includes:Pu(!0),indexOf:Pu(!1)},ju={},Nu=_u.indexOf,Iu=Ro([].push),Ru=function(e,t){var n,r=aa(e),o=0,i=[];for(n in r)!Ui(ju,n)&&Ui(r,n)&&Iu(i,n);for(;t.length>o;)Ui(r,n=t[o++])&&(~Nu(i,n)||Iu(i,n));return i},Lu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mu=Object.keys||function(e){return Ru(e,Lu)},zu=Mu,$u=ta&&!Da?Object.defineProperties:function(e,t){xa(e);for(var n,r=aa(t),o=zu(t),i=o.length,a=0;i>a;)_a.f(e,n=o[a++],r[n]);return e},Hu={f:$u},Uu=wi("document","documentElement"),Vu=Hi("keys"),Wu=Hu,qu=Uu,Gu=function(e){return Vu[e]||(Vu[e]=Vi(e))},Ku="prototype",Yu="script",Xu=Gu("IE_PROTO"),Zu=function(){},Ju=function(e){return"<script>"+e+"</"+Yu+">"},Qu=function(e){e.write(Ju("")),e.close();var t=e.parentWindow.Object;return e=null,t},es=function(){try{ku=new ActiveXObject("htmlfile")}catch(e){}var e,t;es="undefined"!=typeof document?document.domain&&ku?Qu(ku):("javascript:",(t=na("iframe")).style.display="none",qu.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ju("document.F=Object")),e.close(),e.F):Qu(ku);for(var n=Lu.length;n--;)delete es[Ku][Lu[n]];return es()};ju[Xu]=!0;var ts,ns,rs,os=Object.create||function(e,t){var n;return null!==e?(Zu[Ku]=xa(e),n=new Zu,Zu[Ku]=null,n[Xu]=e):n=es(),void 0===t?n:Wu.f(n,t)},is=Lu.concat("length","prototype"),as=Object.getOwnPropertyNames||function(e){return Ru(e,is)},us={f:as},ss=Ro([].slice),cs=us.f,ls="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fs={f:function(e){return ls&&"Window"===zo(e)?function(e){try{return cs(e)}catch(e){return ss(ls)}}(e):cs(aa(e))}},ds={f:Object.getOwnPropertySymbols},ps={f:Yi},hs=_a.f,vs=function(e,t,n,r){return r&&r.enumerable?e[t]=n:Ma(e,t,n),e},gs=Za?{}.toString:function(){return"[object "+ou(this)+"]"},ys=_a.f,ms=Yi("toStringTag"),bs=ii.WeakMap,ws=ri(bs)&&/native code/.test(String(bs)),Es="Object already initialized",Ss=ii.TypeError,Cs=ii.WeakMap;if(ws||ji.state){var Ds=ji.state||(ji.state=new Cs);Ds.get=Ds.get,Ds.has=Ds.has,Ds.set=Ds.set,ts=function(e,t){if(Ds.has(e))throw new Ss(Es);return t.facade=e,Ds.set(e,t),t},ns=function(e){return Ds.get(e)||{}},rs=function(e){return Ds.has(e)}}else{var xs=Gu("state");ju[xs]=!0,ts=function(e,t){if(Ui(e,xs))throw new Ss(Es);return t.facade=e,Ma(e,xs,t),t},ns=function(e){return Ui(e,xs)?e[xs]:{}},rs=function(e){return Ui(e,xs)}}var Os={set:ts,get:ns,has:rs,enforce:function(e){return rs(e)?ns(e):ts(e,{})},getterFor:function(e){return function(t){var n;if(!Fi(t)||(n=ns(t)).type!==e)throw new Ss("Incompatible receiver, "+e+" required");return n}}},As=Ro([].push),ks=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,c,l,f){for(var d,p,h=Ii(s),v=ti(h),g=wu(v),y=La(c,l),m=0,b=f||Cu,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:As(w,d)}else switch(e){case 4:return!1;case 7:As(w,d)}return i?-1:r||o?o:w}},Bs={forEach:ks(0),map:ks(1),filter:ks(2),some:ks(3),every:ks(4),find:ks(5),findIndex:ks(6),filterReject:ks(7)},Fs=function(e){if("Symbol"===ou(e))throw new TypeError("Cannot convert a Symbol value to a string");return Bu(e)},Ts=os,Ps=fs,_s=ds,js=function(e){var t=oi.Symbol||(oi.Symbol={});Ui(t,e)||hs(t,e,{value:ps.f(e)})},Ns=function(){var e=wi("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Yi("toPrimitive");t&&!t[r]&&vs(t,r,(function(e){return Bi(n,this)}),{arity:1})},Is=function(e,t,n,r){var o=n?e:e&&e.prototype;o&&(Ui(o,ms)||ys(o,ms,{configurable:!0,value:t}),r&&!Za&&Ma(o,"toString",gs))},Rs=Os,Ls=Bs.forEach,Ms=Gu("hidden"),zs="Symbol",$s="prototype",Hs=Rs.set,Us=Rs.getterFor(zs),Vs=Object[$s],Ws=ii.Symbol,qs=Ws&&Ws[$s],Gs=ii.RangeError,Ks=ii.TypeError,Ys=ii.QObject,Xs=Ia.f,Zs=_a.f,Js=Ps.f,Qs=oa.f,ec=Ro([].push),tc=Hi("symbols"),nc=Hi("op-symbols"),rc=Hi("wks"),oc=!Ys||!Ys[$s]||!Ys[$s].findChild,ic=function(e,t,n){var r=Xs(Vs,t);r&&delete Vs[t],Zs(e,t,n),r&&e!==Vs&&Zs(Vs,t,r)},ac=ta&&Oo((function(){return 7!==Ts(Zs({},"a",{get:function(){return Zs(this,"a",{value:7}).a}})).a}))?ic:Zs,uc=function(e,t){var n=tc[e]=Ts(qs);return Hs(n,{type:zs,tag:e,description:t}),ta||(n.description=t),n},sc=function(e,t,n){e===Vs&&sc(nc,t,n),xa(e);var r=ua(t);return xa(n),Ui(tc,r)?(n.enumerable?(Ui(e,Ms)&&e[Ms][r]&&(e[Ms][r]=!1),n=Ts(n,{enumerable:ia(0,!1)})):(Ui(e,Ms)||Zs(e,Ms,ia(1,Ts(null))),e[Ms][r]=!0),ac(e,r,n)):Zs(e,r,n)},cc=function(e,t){xa(e);var n=aa(t),r=zu(n).concat(pc(n));return Ls(r,(function(t){ta&&!Bi(lc,n,t)||sc(e,t,n[t])})),e},lc=function(e){var t=ua(e),n=Bi(Qs,this,t);return!(this===Vs&&Ui(tc,t)&&!Ui(nc,t))&&(!(n||!Ui(this,t)||!Ui(tc,t)||Ui(this,Ms)&&this[Ms][t])||n)},fc=function(e,t){var n=aa(e),r=ua(t);if(n!==Vs||!Ui(tc,r)||Ui(nc,r)){var o=Xs(n,r);return!o||!Ui(tc,r)||Ui(n,Ms)&&n[Ms][r]||(o.enumerable=!0),o}},dc=function(e){var t=Js(aa(e)),n=[];return Ls(t,(function(e){Ui(tc,e)||Ui(ju,e)||ec(n,e)})),n},pc=function(e){var t=e===Vs,n=Js(t?nc:aa(e)),r=[];return Ls(n,(function(e){!Ui(tc,e)||t&&!Ui(Vs,e)||ec(r,tc[e])})),r};mi||(qs=(Ws=function(){if(Ei(qs,this))throw new Ks("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Fs(arguments[0]):void 0,t=Vi(e),n=function(e){var r=void 0===this?ii:this;r===Vs&&Bi(n,nc,e),Ui(r,Ms)&&Ui(r[Ms],t)&&(r[Ms][t]=!1);var o=ia(1,e);try{ac(r,t,o)}catch(e){if(!(e instanceof Gs))throw e;ic(r,t,o)}};return ta&&oc&&ac(Vs,t,{configurable:!0,set:n}),uc(t,e)})[$s],vs(qs,"toString",(function(){return Us(this).tag})),vs(Ws,"withoutSetter",(function(e){return uc(Vi(e),e)})),oa.f=lc,_a.f=sc,Wu.f=cc,Ia.f=fc,us.f=Ps.f=dc,_s.f=pc,ps.f=function(e){return uc(Yi(e),e)},ta&&function(e,t,n){_a.f(e,t,n)}(qs,"description",{configurable:!0,get:function(){return Us(this).description}})),bu({global:!0,constructor:!0,wrap:!0,forced:!mi,sham:!mi},{Symbol:Ws}),Ls(zu(rc),(function(e){js(e)})),bu({target:zs,stat:!0,forced:!mi},{useSetter:function(){oc=!0},useSimple:function(){oc=!1}}),bu({target:"Object",stat:!0,forced:!mi,sham:!ta},{create:function(e,t){return void 0===t?Ts(e):cc(Ts(e),t)},defineProperty:sc,defineProperties:cc,getOwnPropertyDescriptor:fc}),bu({target:"Object",stat:!0,forced:!mi},{getOwnPropertyNames:dc}),Ns(),Is(Ws,zs),ju[Ms]=!0;var hc=mi&&!!Symbol.for&&!!Symbol.keyFor,vc=Hi("string-to-symbol-registry"),gc=Hi("symbol-to-string-registry");bu({target:"Symbol",stat:!0,forced:!hc},{for:function(e){var t=Fs(e);if(Ui(vc,t))return vc[t];var n=wi("Symbol")(t);return vc[t]=n,gc[n]=t,n}});var yc=Hi("symbol-to-string-registry");bu({target:"Symbol",stat:!0,forced:!hc},{keyFor:function(e){if(!Ki(e))throw new TypeError(Oi(e)+" is not a symbol");if(Ui(yc,e))return yc[e]}});var mc=Ro([].push),bc=function(e){if(ri(e))return e;if(hu(e)){for(var t=e.length,n=[],r=0;r<t;r++){var o=e[r];"string"==typeof o?mc(n,o):"number"!=typeof o&&"Number"!==zo(o)&&"String"!==zo(o)||mc(n,Fs(o))}var i=n.length,a=!0;return function(e,t){if(a)return a=!1,t;if(hu(this))return t;for(var r=0;r<i;r++)if(n[r]===e)return t}}},wc=String,Ec=wi("JSON","stringify"),Sc=Ro(/./.exec),Cc=Ro("".charAt),Dc=Ro("".charCodeAt),xc=Ro("".replace),Oc=Ro(1..toString),Ac=/[\uD800-\uDFFF]/g,kc=/^[\uD800-\uDBFF]$/,Bc=/^[\uDC00-\uDFFF]$/,Fc=!mi||Oo((function(){var e=wi("Symbol")("stringify detection");return"[null]"!==Ec([e])||"{}"!==Ec({a:e})||"{}"!==Ec(Object(e))})),Tc=Oo((function(){return'"\\udf06\\ud834"'!==Ec("\udf06\ud834")||'"\\udead"'!==Ec("\udead")})),Pc=function(e,t){var n=ss(arguments),r=bc(t);if(ri(r)||void 0!==e&&!Ki(e))return n[1]=function(e,t){if(ri(r)&&(t=Bi(r,this,wc(e),t)),!Ki(t))return t},Na(Ec,null,n)},_c=function(e,t,n){var r=Cc(n,t-1),o=Cc(n,t+1);return Sc(kc,e)&&!Sc(Bc,o)||Sc(Bc,e)&&!Sc(kc,r)?"\\u"+Oc(Dc(e,0),16):e};Ec&&bu({target:"JSON",stat:!0,arity:3,forced:Fc||Tc},{stringify:function(e,t,n){var r=ss(arguments),o=Na(Fc?Pc:Ec,null,r);return Tc&&"string"==typeof o?xc(o,Ac,_c):o}});var jc=!mi||Oo((function(){_s.f(1)}));bu({target:"Object",stat:!0,forced:jc},{getOwnPropertySymbols:function(e){var t=_s.f;return t?t(Ii(e)):[]}}),js("asyncIterator"),js("hasInstance"),js("isConcatSpreadable"),js("iterator"),js("match"),js("matchAll"),js("replace"),js("search"),js("species"),js("split"),js("toPrimitive"),Ns(),js("toStringTag"),Is(wi("Symbol"),"Symbol"),js("unscopables"),Is(ii.JSON,"JSON",!0);var Nc,Ic,Rc,Lc=oi.Symbol,Mc=Function.prototype,zc=ta&&Object.getOwnPropertyDescriptor,$c=Ui(Mc,"name"),Hc={EXISTS:$c,PROPER:$c&&"something"===function(){}.name,CONFIGURABLE:$c&&(!ta||ta&&zc(Mc,"name").configurable)},Uc=!Oo((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Vc=Uc,Wc=Gu("IE_PROTO"),qc=Object,Gc=qc.prototype,Kc=Vc?qc.getPrototypeOf:function(e){var t=Ii(e);if(Ui(t,Wc))return t[Wc];var n=t.constructor;return ri(n)&&t instanceof n?n.prototype:t instanceof qc?Gc:null},Yc=Kc,Xc=Yi("iterator"),Zc=!1;[].keys&&("next"in(Rc=[].keys())?(Ic=Yc(Yc(Rc)))!==Object.prototype&&(Nc=Ic):Zc=!0);var Jc=!Fi(Nc)||Oo((function(){var e={};return Nc[Xc].call(e)!==e}));Nc=Jc?{}:Ts(Nc),ri(Nc[Xc])||vs(Nc,Xc,(function(){return this}));var Qc={IteratorPrototype:Nc,BUGGY_SAFARI_ITERATORS:Zc},el={},tl=Qc.IteratorPrototype,nl=function(){return this},rl=(Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{(function(e,t,n){try{return Ro(ki(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}})(Object.prototype,"__proto__","set")(e,[]),e instanceof Array}catch(e){}}(),function(e,t,n,r){var o=t+" Iterator";return e.prototype=Ts(tl,{next:ia(+!r,n)}),Is(e,o,!1,!0),el[o]=nl,e}),ol=Hc.PROPER,il=Qc.BUGGY_SAFARI_ITERATORS,al=Yi("iterator"),ul="keys",sl="values",cl="entries",ll=function(){return this},fl=function(e,t,n,r,o,i,a){rl(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!il&&e&&e in p)return p[e];switch(e){case ul:case sl:case cl:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[al]||p["@@iterator"]||o&&p[o],v=!il&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=Yc(g.call(new e)))!==Object.prototype&&u.next&&(Is(u,f,!0,!0),el[f]=ll),ol&&o===sl&&h&&h.name!==sl&&(d=!0,v=function(){return Bi(h,this)}),o)if(s={values:l(sl),keys:i?v:l(ul),entries:l(cl)},a)for(c in s)(il||d||!(c in p))&&vs(p,c,s[c]);else bu({target:t,proto:!0,forced:il||d},s);return a&&p[al]!==v&&vs(p,al,v,{name:o}),el[t]=v,s},dl=function(e,t){return{value:e,done:t}},pl=(_a.f,"Array Iterator"),hl=Rs.set,vl=Rs.getterFor(pl);fl(Array,"Array",(function(e,t){hl(this,{type:pl,target:aa(e),index:0,kind:t})}),(function(){var e=vl(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,dl(void 0,!0);switch(e.kind){case"keys":return dl(n,!1);case"values":return dl(t[n],!1)}return dl([n,t[n]],!1)}),"values"),el.Arguments=el.Array;for(var gl 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})Is(ii[gl],gl),el[gl]=el.Array;var yl=Lc,ml=_a.f,bl=Yi("metadata"),wl=Function.prototype;void 0===wl[bl]&&ml(wl,bl,{value:null}),js("asyncDispose"),js("dispose"),js("metadata");var El=yl,Sl=wi("Symbol"),Cl=Sl.keyFor,Dl=Ro(Sl.prototype.valueOf),xl=Sl.isRegisteredSymbol||function(e){try{return void 0!==Cl(Dl(e))}catch(e){return!1}};bu({target:"Symbol",stat:!0},{isRegisteredSymbol:xl});for(var Ol=wi("Symbol"),Al=Ol.isWellKnownSymbol,kl=wi("Object","getOwnPropertyNames"),Bl=Ro(Ol.prototype.valueOf),Fl=Hi("wks"),Tl=0,Pl=kl(Ol),_l=Pl.length;Tl<_l;Tl++)try{var jl=Pl[Tl];Ki(Ol[jl])&&Yi(jl)}catch(i){}var Nl=function(e){if(Al&&Al(e))return!0;try{for(var t=Bl(e),n=0,r=kl(Fl),o=r.length;n<o;n++)if(Fl[r[n]]==t)return!0}catch(e){}return!1};bu({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Nl}),js("customMatcher"),js("observable"),bu({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:xl}),bu({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Nl}),js("matcher"),js("metadataKey"),js("patternMatch"),js("replaceAll");var Il=El,Rl=Ro("".charAt),Ll=Ro("".charCodeAt),Ml=Ro("".slice),zl=function(e){return function(t,n){var r,o,i=Fs(ni(t)),a=Ga(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ll(i,a))<55296||r>56319||a+1===u||(o=Ll(i,a+1))<56320||o>57343?e?Rl(i,a):r:e?Ml(i,a,a+2):o-56320+(r-55296<<10)+65536}},$l=(zl(!1),zl(!0)),Hl="String Iterator",Ul=Rs.set,Vl=Rs.getterFor(Hl);fl(String,"String",(function(e){Ul(this,{type:Hl,string:Fs(e),index:0})}),(function(){var e,t=Vl(this),n=t.string,r=t.index;return r>=n.length?dl(void 0,!0):(e=$l(n,r),t.index+=e.length,dl(e,!1))}));var Wl=ps.f("iterator"),ql=Il,Gl=Wl,Kl=C((function(e){function t(n){return e.exports=t="function"==typeof ql&&"symbol"==typeof Gl?function(e){return typeof e}:function(e){return e&&"function"==typeof ql&&e.constructor===ql&&e!==ql.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),Yl=S(Kl),Xl=Rt.f,Zl=!se||i((function(){Xl(1)}));if(fn({target:"Object",stat:!0,forced:Zl,sham:!se},{getOwnPropertyDescriptor:function(e,t){return Xl(w(e),t)}}),"object"===("undefined"==typeof global?"undefined":Yl(global))){var Jl=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Jl.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[]})}
|
16
|
+
/*!
|
17
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
18
|
+
*
|
19
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
20
|
+
* Released under the MIT License.
|
21
|
+
*/function Ql(e){return"[object Object]"===Object.prototype.toString.call(e)}function ef(e){var t,n;return!1!==Ql(e)&&(void 0===(t=e.constructor)||!1!==Ql(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function tf(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 nf(e){return!!e&&!!e[$f]}function rf(e){var t;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)===Hf}(e)||Array.isArray(e)||!!e[zf]||!!(null===(t=e.constructor)||void 0===t?void 0:t[zf])||cf(e)||lf(e))}function of(e,t,n){void 0===n&&(n=!1),0===af(e)?(n?Object.keys:Uf)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function af(e){var t=e[$f];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:cf(e)?2:lf(e)?3:0}function uf(e,t){return 2===af(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function sf(e,t,n){var r=af(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function cf(e){return If&&e instanceof Map}function lf(e){return Rf&&e instanceof Set}function ff(e){return e.o||e.t}function df(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Vf(e);delete t[$f];for(var n=Uf(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 pf(e,t){return void 0===t&&(t=!1),vf(e)||nf(e)||!rf(e)||(af(e)>1&&(e.set=e.add=e.clear=e.delete=hf),Object.freeze(e),t&&of(e,(function(e,t){return pf(t,!0)}),!0)),e}function hf(){tf(2)}function vf(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function gf(e){var t=Wf[e];return t||tf(18,e),t}function yf(){return jf}function mf(e,t){t&&(gf("Patches"),e.u=[],e.s=[],e.v=t)}function bf(e){wf(e),e.p.forEach(Sf),e.p=null}function wf(e){e===jf&&(jf=e.l)}function Ef(e){return jf={p:[],l:jf,h:e,m:!0,_:0}}function Sf(e){var t=e[$f];0===t.i||1===t.i?t.j():t.g=!0}function Cf(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||gf("ES5").S(t,e,r),r?(n[$f].P&&(bf(t),tf(4)),rf(e)&&(e=Df(t,e),t.l||Of(t,e)),t.u&&gf("Patches").M(n[$f].t,e,t.u,t.s)):e=Df(t,n,[]),bf(t),t.u&&t.v(t.u,t.s),e!==Mf?e:void 0}function Df(e,t,n){if(vf(t))return t;var r=t[$f];if(!r)return of(t,(function(o,i){return xf(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Of(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=df(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),of(i,(function(t,i){return xf(e,r,o,t,i,n,a)})),Of(e,o,!1),n&&e.u&&gf("Patches").N(r,n,e.u,e.s)}return r.o}function xf(e,t,n,r,o,i,a){if(nf(o)){var u=Df(e,o,i&&t&&3!==t.i&&!uf(t.R,r)?i.concat(r):void 0);if(sf(n,r,u),!nf(u))return;e.m=!1}else a&&n.add(o);if(rf(o)&&!vf(o)){if(!e.h.D&&e._<1)return;Df(e,o),t&&t.A.l||Of(e,o)}}function Of(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&pf(t,n)}function Af(e,t){var n=e[$f];return(n?ff(n):e)[t]}function kf(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 Bf(e){e.P||(e.P=!0,e.l&&Bf(e.l))}function Ff(e){e.o||(e.o=df(e.t))}function Tf(e,t,n){var r=cf(t)?gf("MapSet").F(t,n):lf(t)?gf("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:yf(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=qf;n&&(o=[r],i=Gf);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):gf("ES5").J(t,n);return(n?n.A:yf()).p.push(r),r}function Pf(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return df(e)}var _f,jf,Nf="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),If="undefined"!=typeof Map,Rf="undefined"!=typeof Set,Lf="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Mf=Nf?Symbol.for("immer-nothing"):((_f={})["immer-nothing"]=!0,_f),zf=Nf?Symbol.for("immer-draftable"):"__$immer_draftable",$f=Nf?Symbol.for("immer-state"):"__$immer_state",Hf=""+Object.prototype.constructor,Uf="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Vf=Object.getOwnPropertyDescriptors||function(e){var t={};return Uf(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Wf={},qf={get:function(e,t){if(t===$f)return e;var n=ff(e);if(!uf(n,t))return function(e,t,n){var r,o=kf(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||!rf(r)?r:r===Af(e.t,t)?(Ff(e),e.o[t]=Tf(e.A.h,r,e)):r},has:function(e,t){return t in ff(e)},ownKeys:function(e){return Reflect.ownKeys(ff(e))},set:function(e,t,n){var r=kf(ff(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Af(ff(e),t),i=null==o?void 0:o[$f];if(i&&i.t===n)return e.o[t]=n,e.R[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||uf(e.t,t)))return!0;Ff(e),Bf(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Af(e.t,t)||t in e.t?(e.R[t]=!1,Ff(e),Bf(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ff(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(){tf(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){tf(12)}},Gf={};of(qf,(function(e,t){Gf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Gf.deleteProperty=function(e,t){return Gf.set.call(this,e,t,void 0)},Gf.set=function(e,t,n){return qf.set.call(this,e[0],t,n,e[0])};var Kf=function(){function e(e){var t=this;this.O=Lf,this.D=!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&&tf(6),void 0!==r&&"function"!=typeof r&&tf(7),rf(e)){var u=Ef(t),s=Tf(t,e,void 0),c=!0;try{a=n(s),c=!1}finally{c?bf(u):wf(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return mf(u,r),Cf(e,u)}),(function(e){throw bf(u),e})):(mf(u,r),Cf(a,u))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===Mf&&(a=void 0),t.D&&pf(a,!0),r){var l=[],f=[];gf("Patches").M(e,a,l,f),r(l,f)}return a}tf(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return 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))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,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){rf(e)||tf(8),nf(e)&&(e=function(e){return nf(e)||tf(22,e),function e(t){if(!rf(t))return t;var n,r=t[$f],o=af(t);if(r){if(!r.P&&(r.i<4||!gf("ES5").K(r)))return r.t;r.I=!0,n=Pf(t,o),r.I=!1}else n=Pf(t,o);return of(n,(function(t,o){r&&function(e,t){return 2===af(e)?e.get(t):e[t]}(r.t,t)===o||sf(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=Ef(this),n=Tf(this,e,void 0);return n[$f].C=!0,wf(t),n},t.finishDraft=function(e,t){var n=(e&&e[$f]).A;return mf(n,t),Cf(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Lf&&tf(20),this.O=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=gf("Patches").$;return nf(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Yf=new Kf,Xf=Yf.produce;Yf.produceWithPatches.bind(Yf),Yf.setAutoFreeze.bind(Yf),Yf.setUseProxies.bind(Yf),Yf.applyPatches.bind(Yf);var Zf=Yf.createDraft.bind(Yf),Jf=Yf.finishDraft.bind(Yf);function Qf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ed=new WeakMap,td=new WeakMap,nd=new WeakMap,rd=new WeakMap,od=new WeakMap,id=new WeakMap,ad=new WeakMap;function ud(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 sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ud(Object(n),!0).forEach((function(t){Qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ud(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cd=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return ep.levels(t);case"insert_node":var{node:n,path:r}=e,o=ep.levels(r),i=vp.isText(n)?[]:Array.from(Xd.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...ep.ancestors(a),ep.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(ep.equals(u,s))return[];var c=[],l=[];for(var f of ep.ancestors(u)){var d=ep.transform(f,e);c.push(d)}for(var p of ep.ancestors(s)){var h=ep.transform(p,e);l.push(h)}var v=l[l.length-1],g=s[s.length-1],y=v.concat(g);return[...c,...l,y];case"remove_node":var{path:m}=e;return[...ep.ancestors(m)];case"split_node":var{path:b}=e;return[...ep.levels(b),ep.next(b)];default:return[]}};function ld(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 fd,dd=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?md(e):e,o=fd.None,i=fd.None,a=0,u=null;for(var s of r){var c=s.codePointAt(0);if(!c)break;var l=Fd(s,c);if([o,i]=n?[i,l]:[l,o],Td(o,fd.ZWJ)&&Td(i,fd.ExtPict)&&!Nd(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Td(o,fd.RI)&&Td(i,fd.RI)&&!(u=null!==u?!u:!!n||Rd(e.substring(0,e.length-a))))break;if(o!==fd.None&&i!==fd.None&&_d(o,i))break;a+=s.length}return a||1},pd=/\s/,hd=/[\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]/,vd=/['\u2018\u2019]/,gd=(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)]},yd=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(pd.test(t))return!1;if(vd.test(t)){var o=dd(n,r),[i,a]=gd(n,o,r);if(e(i,a,r))return!0}return!hd.test(t)},md=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(wd(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(bd(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},bd=e=>e>=55296&&e<=56319,wd=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"}(fd||(fd={}));var Ed=/^(?:[\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])$/,Sd=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Cd=/^(?:[\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])$/,Dd=/^[\u1100-\u115F\uA960-\uA97C]$/,xd=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Od=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Ad=/^[\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]$/,kd=/^[\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]$/,Bd=/^(?:[\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])$/,Fd=(e,t)=>{var n=fd.Any;return-1!==e.search(Ed)&&(n|=fd.Extend),8205===t&&(n|=fd.ZWJ),t>=127462&&t<=127487&&(n|=fd.RI),-1!==e.search(Sd)&&(n|=fd.Prepend),-1!==e.search(Cd)&&(n|=fd.SpacingMark),-1!==e.search(Dd)&&(n|=fd.L),-1!==e.search(xd)&&(n|=fd.V),-1!==e.search(Od)&&(n|=fd.T),-1!==e.search(Ad)&&(n|=fd.LV),-1!==e.search(kd)&&(n|=fd.LVT),-1!==e.search(Bd)&&(n|=fd.ExtPict),n};function Td(e,t){return!!(e&t)}var Pd=[[fd.L,fd.L|fd.V|fd.LV|fd.LVT],[fd.LV|fd.V,fd.V|fd.T],[fd.LVT|fd.T,fd.T],[fd.Any,fd.Extend|fd.ZWJ],[fd.Any,fd.SpacingMark],[fd.Prepend,fd.Any],[fd.ZWJ,fd.ExtPict],[fd.RI,fd.RI]];function _d(e,t){return-1===Pd.findIndex((n=>Td(e,n[0])&&Td(t,n[1])))}var jd=/(?:[\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$/,Nd=e=>-1!==e.search(jd),Id=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Rd=e=>{var t=e.match(Id);return null!==t&&t[0].length/2%2==1},Ld=e=>ef(e)&&Xd.isNodeList(e.children)&&!Wd.isEditor(e),Md={isAncestor:e=>ef(e)&&Xd.isNodeList(e.children),isElement:Ld,isElementList:e=>Array.isArray(e)&&e.every((e=>Md.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 Ld(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},zd=["text"],$d=["text"];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 Ud(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){Qf(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 Vd=new WeakMap,Wd={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=Wd.path(e,o),u="lowest"===r;for(var[s,c]of Wd.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!vp.isText(s)&&!ep.equals(a,c))return[s,c]}},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:Wd.point(e,t,{edge:"end"}),focus:Wd.end(e,[])},{distance:i=1}=r,a=0;for(var u of Wd.positions(e,Ud(Ud({},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:Wd.start(e,[]),focus:Wd.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Wd.positions(e,Ud(Ud({},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)=>[Wd.start(e,t),Wd.end(e,t)],end:(e,t)=>Wd.point(e,t,{edge:"end"}),first(e,t){var n=Wd.path(e,t,{edge:"start"});return Wd.node(e,n)},fragment(e,t){var n=Wd.range(e,t);return Xd.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Wd.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>vp.isText(t)||Wd.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>vp.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)=>Md.isElement(t)&&!e.isInline(t),isEditor(e){if(!ef(e))return!1;var t=Vd.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||ef(e.marks))&&(null===e.selection||sp.isRange(e.selection))&&Xd.isNodeList(e.children)&&Qd.isOperationList(e.operations);return Vd.set(e,n),n},isEnd(e,t,n){var r=Wd.end(e,n);return op.equals(t,r)},isEdge:(e,t,n)=>Wd.isStart(e,t,n)||Wd.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&vp.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Md.isElement(t)&&e.isInline(t),isNormalizing(e){var t=rd.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Wd.start(e,n);return op.equals(t,r)},isVoid:(e,t)=>Md.isElement(t)&&e.isVoid(t),last(e,t){var n=Wd.path(e,t,{edge:"end"});return Wd.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Wd.path(e,t,n);return[Xd.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=Wd.path(e,n);for(var[s,c]of Xd.levels(e,u))if(i(s,c)&&(a.push([s,c]),!o&&Wd.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(sp.isExpanded(n)){var[r]=Wd.nodes(e,{match:vp.isText});if(r){var[o]=r;return ld(o,zd)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Wd.leaf(e,a);if(0===i.offset){var s=Wd.previous(e,{at:a,match:vp.isText}),c=Wd.above(e,{match:t=>Wd.isBlock(e,t)});if(s&&c){var[l,f]=s,[,d]=c;ep.isAncestor(d,f)&&(u=l)}}return ld(u,$d)},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=Wd.after(e,i,{voids:r});if(a){var[,u]=Wd.last(e,[]),s=[a.path,u];if(ep.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(ep.isPath(i)){var[c]=Wd.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[l]=Wd.nodes(e,{at:s,match:o,mode:n,voids:r});return l}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Wd.path(e,t,n);return[Xd.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,c;if(qd.isSpan(n))s=n[0],c=n[1];else{var l=Wd.path(e,n,{edge:"start"}),f=Wd.path(e,n,{edge:"end"});s=i?f:l,c=i?l:f}var d,p=Xd.nodes(e,{reverse:i,from:s,to:c,pass:t=>{var[n]=t;return!a&&Wd.isVoid(e,n)}}),h=[];for(var[v,g]of p){var y=d&&0===ep.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&&vp.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=>ed.get(e)||[],o=e=>{var t=r(e).pop(),n=t.join(",");return(e=>td.get(e)||new Set)(e).delete(n),t};if(Wd.isNormalizing(e)){if(n){var i=Array.from(Xd.nodes(e),(e=>{var[,t]=e;return t})),a=new Set(i.map((e=>e.join(","))));ed.set(e,i),td.set(e,a)}0!==r(e).length&&Wd.withoutNormalizing(e,(()=>{for(var t of r(e))if(Xd.has(e,t)){var n=Wd.node(e,t),[i,a]=n;Md.isElement(i)&&0===i.children.length&&e.normalizeNode(n)}for(var u=42*r(e).length,s=0;0!==r(e).length;){if(s>u)throw new Error("\n Could not completely normalize the editor after ".concat(u," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var c=o(e);if(Xd.has(e,c)){var l=Wd.node(e,c);e.normalizeNode(l)}s++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Wd.path(e,t,n),o=ep.parent(r);return Wd.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(ep.isPath(t))if("start"===o){var[,i]=Xd.first(e,t);t=i}else if("end"===o){var[,a]=Xd.last(e,t);t=a}return sp.isRange(t)&&(t="start"===o?sp.start(t):"end"===o?sp.end(t):ep.common(t.anchor.path,t.focus.path)),op.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Xd.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 Wd.pathRefs(e).delete(o),o.current=null,t}};return Wd.pathRefs(e).add(o),o},pathRefs(e){var t=od.get(e);return t||(t=new Set,od.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(ep.isPath(t)){var o;if("end"===r){var[,i]=Xd.last(e,t);o=i}else{var[,a]=Xd.first(e,t);o=a}var u=Xd.get(e,o);if(!vp.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(sp.isRange(t)){var[s,c]=sp.edges(t);return"start"===r?s:c}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 Wd.pointRefs(e).delete(o),o.current=null,t}};return Wd.pointRefs(e).add(o),o},pointRefs(e){var t=id.get(e);return t||(t=new Set,id.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=Wd.range(e,n),[u,s]=sp.edges(a),c=o?s:u,l=!1,f="",d=0,p=0,h=0;for(var[v,g]of Wd.nodes(e,{at:n,reverse:o,voids:i})){if(Md.isElement(v)){if(!i&&e.isVoid(v)){yield Wd.start(e,g);continue}if(e.isInline(v))continue;if(Wd.hasInlines(e,v)){var y=ep.isAncestor(g,s.path)?s:Wd.end(e,g),m=ep.isAncestor(g,u.path)?u:Wd.start(e,g);f=Wd.string(e,{anchor:m,focus:y},{voids:i}),l=!0}}if(vp.isText(v)){var b=ep.equals(g,c.path);for(b?(p=o?c.offset:v.text.length-c.offset,h=c.offset):(p=v.text.length,h=o?p:0),(b||l||"offset"===r)&&(yield{path:g,offset:h},l=!1);;){if(0===d){if(""===f)break;d=w(f,r,o),f=gd(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 w(e,t,n){return"character"===t?dd(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=dd(e,t),[i,a]=gd(e,o,t);if(yd(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=Wd.before(e,i,{voids:r});if(a){var[,u]=Wd.first(e,[]),s=[a.path,u];if(ep.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(ep.isPath(i)){var[c]=Wd.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[l]=Wd.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return l}}},range:(e,t,n)=>sp.isRange(t)&&!n?t:{anchor:Wd.start(e,t),focus:Wd.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 Wd.rangeRefs(e).delete(o),o.current=null,t}};return Wd.rangeRefs(e).add(o),o},rangeRefs(e){var t=ad.get(e);return t||(t=new Set,ad.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){rd.set(e,t)},start:(e,t)=>Wd.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Wd.range(e,t),[i,a]=sp.edges(o),u="";for(var[s,c]of Wd.nodes(e,{at:o,match:vp.isText,voids:r})){var l=s.text;ep.equals(c,a.path)&&(l=l.slice(0,a.offset)),ep.equals(c,i.path)&&(l=l.slice(i.offset)),u+=l}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=sp.edges(t);if(0!==o.offset||0!==i.offset||sp.isCollapsed(t))return t;var a=Wd.above(e,{at:i,match:t=>Wd.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Wd.start(e,o),focus:i},c=!0;for(var[l,f]of Wd.nodes(e,{at:s,match:vp.isText,reverse:!0,voids:r}))if(c)c=!1;else if(""!==l.text||ep.isBefore(f,u)){i={path:f,offset:l.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Wd.above(e,Ud(Ud({},t),{},{match:t=>Wd.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Wd.isNormalizing(e);Wd.setNormalizing(e,!1);try{t()}finally{Wd.setNormalizing(e,n)}Wd.normalize(e)}},qd={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(ep.isPath)},Gd=["children"],Kd=["text"],Yd=new WeakMap,Xd={ancestor(e,t){var n=Xd.get(e,t);if(vp.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 ep.ancestors(t,n)){var o=[Xd.ancestor(e,r),r];yield o}},child(e,t){if(vp.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=Xd.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Xd.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=ep.common(t,n);return[Xd.get(e,r),r]},descendant(e,t){var n=Xd.get(e,t);if(Wd.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 Xd.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 Xd.nodes(e,t))Md.isElement(n)&&(yield[n,r])},extractProps:e=>Md.isAncestor(e)?ld(e,Gd):ld(e,Kd),first(e,t){for(var n=t.slice(),r=Xd.get(e,n);r&&!vp.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(vp.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Xf({children:e.children},(e=>{var[n,r]=sp.edges(t),o=Xd.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!sp.includes(t,n)}});for(var[,i]of o){if(!sp.includes(t,i)){var a=Xd.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(ep.equals(i,r.path)){var s=Xd.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(ep.equals(i,n.path)){var c=Xd.leaf(e,i);c.text=c.text.slice(n.offset)}}Wd.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(vp.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(vp.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>vp.isText(e)||Md.isElement(e)||Wd.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Yd.get(e);if(void 0!==t)return t;var n=e.every((e=>Xd.isNode(e)));return Yd.set(e,n),n},last(e,t){for(var n=t.slice(),r=Xd.get(e,n);r&&!vp.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=Xd.get(e,t);if(!vp.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 ep.levels(t,n)){var o=Xd.get(e,r);yield[o,r]}},matches:(e,t)=>Md.isElement(e)&&Md.isElementProps(t)&&Md.matches(e,t)||vp.isText(e)&&vp.isTextProps(t)&&vp.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?ep.isBefore(u,i):ep.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||vp.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var c=ep.next(u);if(Xd.has(e,c)){u=c,s=Xd.get(e,u);continue}}r&&0!==u[u.length-1]?(u=ep.previous(u),s=Xd.get(e,u)):(u=ep.parent(u),s=Xd.get(e,u),a.add(s))}else{a.add(s);var l=r?s.children.length-1:0;ep.isAncestor(u,o)&&(l=o[u.length]),u=u.concat(l),s=Xd.get(e,u)}},parent(e,t){var n=ep.parent(t),r=Xd.get(e,n);if(vp.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=>vp.isText(e)?e.text:e.children.map(Xd.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Xd.nodes(e,t))vp.isText(n)&&(yield[n,r])}};function Zd(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 Jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zd(Object(n),!0).forEach((function(t){Qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qd={isNodeOperation:e=>Qd.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!ef(e))return!1;switch(e.type){case"insert_node":case"remove_node":return ep.isPath(e.path)&&Xd.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&ep.isPath(e.path);case"merge_node":return"number"==typeof e.position&&ep.isPath(e.path)&&ef(e.properties);case"move_node":return ep.isPath(e.path)&&ep.isPath(e.newPath);case"set_node":return ep.isPath(e.path)&&ef(e.properties)&&ef(e.newProperties);case"set_selection":return null===e.properties&&sp.isRange(e.newProperties)||null===e.newProperties&&sp.isRange(e.properties)||ef(e.properties)&&ef(e.newProperties);case"split_node":return ep.isPath(e.path)&&"number"==typeof e.position&&ef(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Qd.isOperation(e))),isSelectionOperation:e=>Qd.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Qd.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Jd(Jd({},e),{},{type:"remove_node"});case"insert_text":return Jd(Jd({},e),{},{type:"remove_text"});case"merge_node":return Jd(Jd({},e),{},{type:"split_node",path:ep.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(ep.equals(t,n))return e;if(ep.isSibling(n,t))return Jd(Jd({},e),{},{path:t,newPath:n});var r=ep.transform(n,e),o=ep.transform(ep.next(n),e);return Jd(Jd({},e),{},{path:r,newPath:o});case"remove_node":return Jd(Jd({},e),{},{type:"insert_node"});case"remove_text":return Jd(Jd({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Jd(Jd({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Jd(Jd({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Jd(Jd({},e),{},{type:"merge_node",path:ep.next(e.path)})}}},ep={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=ep.levels(e,t);return 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 ep.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return ep.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 ep.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===ep.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===ep.compare(e,t),isBefore:(e,t)=>-1===ep.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===ep.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===ep.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===ep.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===ep.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]&&ep.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)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!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(!ep.isAncestor(t,e)&&!ep.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 Xf(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;(ep.equals(i,r)||ep.endsBefore(i,r)||ep.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(ep.equals(a,r)||ep.isAncestor(a,r))return null;ep.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;ep.equals(u,r)||ep.endsBefore(u,r)?r[u.length-1]-=1:ep.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:c,position:l}=t;if(ep.equals(c,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else ep.endsBefore(c,r)?r[c.length-1]+=1:ep.isAncestor(c,r)&&e[c.length]>=l&&(r[c.length-1]+=1,r[c.length]-=l);break;case"move_node":var{path:f,newPath:d}=t;if(ep.equals(f,d))return;if(ep.isAncestor(f,r)||ep.equals(f,r)){var p=d.slice();return ep.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}ep.isSibling(f,d)&&(ep.isAncestor(d,r)||ep.equals(d,r))?ep.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:ep.endsBefore(d,r)||ep.equals(d,r)||ep.isAncestor(d,r)?(ep.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):ep.endsBefore(f,r)&&(ep.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},tp={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=ep.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function np(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 rp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?np(Object(n),!0).forEach((function(t){Qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var op={compare(e,t){var n=ep.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===op.compare(e,t),isBefore:(e,t)=>-1===op.compare(e,t),equals:(e,t)=>e.offset===t.offset&&ep.equals(e.path,t.path),isPoint:e=>ef(e)&&"number"==typeof e.offset&&ep.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Xf(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=ep.transform(o,t,n);break;case"insert_text":ep.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":ep.equals(t.path,o)&&(e.offset+=t.position),e.path=ep.transform(o,t,n);break;case"remove_text":ep.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(ep.equals(t.path,o)||ep.isAncestor(t.path,o))return null;e.path=ep.transform(o,t,n);break;case"split_node":if(ep.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=ep.transform(o,t,rp(rp({},n),{},{affinity:"forward"})))}else e.path=ep.transform(o,t,n)}}))}},ip={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=op.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},ap=["anchor","focus"];function up(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 sp={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return sp.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=sp.edges(e);return t},equals:(e,t)=>op.equals(e.anchor,t.anchor)&&op.equals(e.focus,t.focus),includes(e,t){if(sp.isRange(t)){if(sp.includes(e,t.anchor)||sp.includes(e,t.focus))return!0;var[n,r]=sp.edges(e),[o,i]=sp.edges(t);return op.isBefore(n,o)&&op.isAfter(r,i)}var[a,u]=sp.edges(e),s=!1,c=!1;return op.isPoint(t)?(s=op.compare(t,a)>=0,c=op.compare(t,u)<=0):(s=ep.compare(t,a.path)>=0,c=ep.compare(t,u.path)<=0),s&&c},intersection(e,t){var n=ld(e,ap),[r,o]=sp.edges(e),[i,a]=sp.edges(t),u=op.isBefore(r,i)?i:r,s=op.isBefore(o,a)?o:a;return op.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?up(Object(n),!0).forEach((function(t){Qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):up(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 op.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return op.equals(t,n)},isExpanded:e=>!sp.isCollapsed(e),isForward:e=>!sp.isBackward(e),isRange:e=>ef(e)&&op.isPoint(e.anchor)&&op.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=sp.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Xf(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=sp.isCollapsed(e);sp.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?sp.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=op.transform(e.anchor,t,{affinity:r}),s=op.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},cp={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=sp.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},lp=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(ef(r)&&ef(o)){if(!lp(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},fp=["text"],dp=["anchor","focus"];function pp(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 hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pp(Object(n),!0).forEach((function(t){Qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vp={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return ld(e,fp)}return lp(r?o(e):e,r?o(t):t)},isText:e=>ef(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>vp.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=[hp({},e)];for(var r of t){var o=ld(r,dp),[i,a]=sp.edges(r),u=[],s=0;for(var c of n){var{length:l}=c.text,f=s;if(s+=l,i.offset<=f&&a.offset>=s)Object.assign(c,o),u.push(c);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(c);else{var d=c,p=void 0,h=void 0;if(a.offset<s){var v=a.offset-f;h=hp(hp({},d),{},{text:d.text.slice(v)}),d=hp(hp({},d),{},{text:d.text.slice(0,v)})}if(i.offset>f){var g=i.offset-f;p=hp(hp({},d),{},{text:d.text.slice(0,g)}),d=hp(hp({},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 gp(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 yp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gp(Object(n),!0).forEach((function(t){Qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mp={transform(e,t){e.children=Zf(e.children);var n=e.selection&&Zf(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Xd.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 sp.points(t))t[s]=op.transform(u,n);break;case"insert_text":var{path:c,offset:l,text:f}=n;if(0===f.length)break;var d=Xd.leaf(e,c),p=d.text.slice(0,l),h=d.text.slice(l);if(d.text=p+f+h,t)for(var[v,g]of sp.points(t))t[g]=op.transform(v,n);break;case"merge_node":var{path:y}=n,m=Xd.get(e,y),b=ep.previous(y),w=Xd.get(e,b),E=Xd.parent(e,y),S=y[y.length-1];if(vp.isText(m)&&vp.isText(w))w.text+=m.text;else{if(vp.isText(m)||vp.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(E.children.splice(S,1),t)for(var[C,D]of sp.points(t))t[D]=op.transform(C,n);break;case"move_node":var{path:x,newPath:O}=n;if(ep.isAncestor(x,O))throw new Error("Cannot move a path [".concat(x,"] to new path [").concat(O,"] because the destination is inside itself."));var A=Xd.get(e,x),k=Xd.parent(e,x),B=x[x.length-1];k.children.splice(B,1);var F=ep.transform(x,n),T=Xd.get(e,ep.parent(F)),P=F[F.length-1];if(T.children.splice(P,0,A),t)for(var[_,j]of sp.points(t))t[j]=op.transform(_,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(Xd.parent(e,N).children.splice(I,1),t)for(var[R,L]of sp.points(t)){var M=op.transform(R,n);if(null!=t&&null!=M)t[L]=M;else{var z=void 0,$=void 0;for(var[H,U]of Xd.texts(e)){if(-1!==ep.compare(U,N)){$=[H,U];break}z=[H,U]}var V=!1;z&&$&&(V=ep.equals($[1],N)?!ep.hasPrevious($[1]):ep.common(z[1],N).length<ep.common($[1],N).length),z&&!V?(R.path=z[1],R.offset=z[0].text.length):$?(R.path=$[1],R.offset=0):t=null}}break;case"remove_text":var{path:W,offset:q,text:G}=n;if(0===G.length)break;var K=Xd.leaf(e,W),Y=K.text.slice(0,q),X=K.text.slice(q+G.length);if(K.text=Y+X,t)for(var[Z,J]of sp.points(t))t[J]=op.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=Xd.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(!sp.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=yp({},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:ce,position:le,properties:fe}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var de,pe=Xd.get(e,ce),he=Xd.parent(e,ce),ve=ce[ce.length-1];if(vp.isText(pe)){var ge=pe.text.slice(0,le),ye=pe.text.slice(le);pe.text=ge,de=yp(yp({},fe),{},{text:ye})}else{var me=pe.children.slice(0,le),be=pe.children.slice(le);pe.children=me,de=yp(yp({},fe),{},{children:be})}if(he.children.splice(ve+1,0,de),t)for(var[we,Ee]of sp.points(t))t[Ee]=op.transform(we,n)}return t})(e,n,t)}finally{e.children=Jf(e.children),e.selection=n?nf(n)?Jf(n):n:null}}},bp=["text"],wp=["children"];function Ep(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 Sp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ep(Object(n),!0).forEach((function(t){Qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ep(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cp={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Wd.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Xd.isNode(t)&&(t=[t]),0!==t.length){var[c]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Wd.end(e,[]):[0],s=!0),null==s&&(s=!1),sp.isRange(a))if(r||(a=Wd.unhangRange(e,a)),sp.isCollapsed(a))a=a.anchor;else{var[,l]=sp.edges(a),f=Wd.pointRef(e,l);_p.delete(e,{at:a}),a=f.unref()}if(op.isPoint(a)){null==u&&(u=vp.isText(c)?e=>vp.isText(e):e.isInline(c)?t=>vp.isText(t)||Wd.isInline(e,t):t=>Wd.isBlock(e,t));var[d]=Wd.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Wd.pathRef(e,p),v=Wd.isEnd(e,a,p);_p.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=h.unref();a=v?ep.next(g):g}var y=ep.parent(a),m=a[a.length-1];if(o||!Wd.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=ep.next(a)}if(a=ep.previous(a),s){var E=Wd.end(e,a);E&&_p.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wd.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=ep.isPath(n)?Op(e,n):t=>Wd.isBlock(e,t)),n){var a=Wd.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Wd.pathRef(e,n)}));for(var s of u){var c=s.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var l=Wd.node(e,ep.parent(c)),[f,d]=l,p=c[c.length-1],{length:h}=f.children;if(1===h){var v=ep.next(d);_p.moveNodes(e,{at:c,to:v,voids:o}),_p.removeNodes(e,{at:d,voids:o})}else if(0===p)_p.moveNodes(e,{at:c,to:d,voids:o});else if(p===h-1){var g=ep.next(d);_p.moveNodes(e,{at:c,to:g,voids:o})}else{var y=ep.next(c),m=ep.next(d);_p.splitNodes(e,{at:y,voids:o}),_p.moveNodes(e,{at:c,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wd.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(ep.isPath(r)){var[u]=Wd.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Wd.isBlock(e,t);if(!o&&sp.isRange(r)&&(r=Wd.unhangRange(e,r)),sp.isRange(r))if(sp.isCollapsed(r))r=r.anchor;else{var[,s]=sp.edges(r),c=Wd.pointRef(e,s);_p.delete(e,{at:r}),r=c.unref(),null==t.at&&_p.select(e,r)}var[l]=Wd.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Wd.previous(e,{at:r,match:n,voids:i,mode:a});if(l&&f){var[d,p]=l,[h,v]=f;if(0!==p.length&&0!==v.length){var g,y,m=ep.next(v),b=ep.common(p,v),w=ep.isSibling(p,v),E=Array.from(Wd.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),S=Wd.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&Dp(e,t)}),C=S&&Wd.pathRef(e,S[1]);if(vp.isText(d)&&vp.isText(h)){var D=ld(d,bp);y=h.text.length,g=D}else{if(!Md.isElement(d)||!Md.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=ld(d,wp),y=h.children.length,g=D}w||_p.moveNodes(e,{at:p,to:m,voids:i}),C&&_p.removeNodes(e,{at:C.current,voids:i}),Md.isElement(h)&&Wd.isEmpty(e,h)||vp.isText(h)&&""===h.text&&0!==v[v.length-1]?_p.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){Wd.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=ep.isPath(r)?Op(e,r):t=>Wd.isBlock(e,t));var u=Wd.pathRef(e,n),s=Wd.nodes(e,{at:r,match:a,mode:o,voids:i}),c=Array.from(s,(t=>{var[,n]=t;return Wd.pathRef(e,n)}));for(var l of c){var f=l.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&ep.isSibling(d,f)&&ep.isAfter(d,f)&&(u.current=ep.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wd.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=ep.isPath(i)?Op(e,i):t=>Wd.isBlock(e,t)),!n&&sp.isRange(i)&&(i=Wd.unhangRange(e,i));var u=Wd.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Wd.pathRef(e,n)}));for(var c of s){var l=c.unref();if(l){var[f]=Wd.node(e,l);e.apply({type:"remove_node",path:l,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Wd.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=ep.isPath(o)?Op(e,o):t=>Wd.isBlock(e,t)),!i&&sp.isRange(o)&&(o=Wd.unhangRange(e,o)),u&&sp.isRange(o)){if(sp.isCollapsed(o)&&Wd.leaf(e,o.anchor)[0].text.length>0)return;var c=Wd.rangeRef(e,o,{affinity:"inward"}),[l,f]=sp.edges(o),d="lowest"===a?"lowest":"highest",p=Wd.isEnd(e,f,f.path);_p.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Wd.isStart(e,l,l.path);_p.splitNodes(e,{at:l,match:r,mode:d,voids:s,always:!h}),o=c.unref(),null==n.at&&_p.select(e,o)}for(var[v,g]of Wd.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==g.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==v[w]&&(b=!0,v.hasOwnProperty(w)&&(y[w]=v[w]),null!=t[w]&&(m[w]=t[w]));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]:{};Wd.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=>Wd.isBlock(e,t)),sp.isRange(i)&&(i=xp(e,i)),ep.isPath(i)){var s=i,c=Wd.point(e,s),[l]=Wd.parent(e,s);o=e=>e===l,a=c.path.length-s.length+1,i=c,u=!0}if(i){var f=Wd.pointRef(e,i,{affinity:"backward"}),[d]=Wd.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Wd.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,v]=p;if(Md.isElement(h)&&e.isInline(h)){var g=Wd.after(e,v);if(!g){var y=ep.next(v);_p.insertNodes(e,{text:""},{at:y,voids:r}),g=Wd.point(e,y)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var m=Wd.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),S=0===a?i.offset:i.path[b]+0;for(var[C,D]of Wd.levels(e,{at:E,reverse:!0,voids:r})){var x=!1;if(D.length<w.length||0===D.length||!r&&Wd.isVoid(e,C))break;var O=f.current,A=Wd.isEnd(e,O,D);if(u||!f||!Wd.isEdge(e,O,D)){x=!0;var k=Xd.extractProps(C);e.apply({type:"split_node",path:D,position:S,properties:k})}S=D[D.length-1]+(x||A?1:0)}if(null==t.at){var B=m.current||Wd.end(e,[]);_p.select(e,B)}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;_p.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wd.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=ep.isPath(i)?Op(e,i):t=>Wd.isBlock(e,t)),ep.isPath(i)&&(i=Wd.range(e,i));var u=sp.isRange(i)?Wd.rangeRef(e,i):null,s=Wd.nodes(e,{at:i,match:a,mode:n,voids:o}),c=Array.from(s,(t=>{var[,n]=t;return Wd.pathRef(e,n)})).reverse(),l=function(t){var n=t.unref(),[i]=Wd.node(e,n),a=Wd.range(e,n);r&&u&&(a=sp.intersection(u.current,a)),_p.liftNodes(e,{at:a,match:e=>Md.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of c)l(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Wd.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=ep.isPath(u)?Op(e,u):e.isInline(t)?t=>Wd.isInline(e,t)||vp.isText(t):t=>Wd.isBlock(e,t)),o&&sp.isRange(u)){var[s,c]=sp.edges(u),l=Wd.rangeRef(e,u,{affinity:"inward"});_p.splitNodes(e,{at:c,match:a,voids:i}),_p.splitNodes(e,{at:s,match:a,voids:i}),u=l.unref(),null==n.at&&_p.select(e,u)}var f=Array.from(Wd.nodes(e,{at:u,match:e.isInline(t)?t=>Wd.isBlock(e,t):e=>Wd.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=sp.isRange(u)?sp.intersection(u,Wd.range(e,d)):u;if(p){var h=Array.from(Wd.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=ep.equals(o,a)?ep.parent(o):ep.common(o,a),s=Wd.range(e,o,a),c=Wd.node(e,u),[l]=c,f=u.length+1,d=ep.next(a.slice(0,f)),p=Sp(Sp({},t),{},{children:[]});_p.insertNodes(e,p,{at:d,voids:i}),_p.moveNodes(e,{at:s,match:e=>Md.isAncestor(l)&&l.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===v)continue}}}}}))}},Dp=(e,t)=>{if(Md.isElement(t)){var n=t;return!!Wd.isVoid(e,t)||1===n.children.length&&Dp(e,n.children[0])}return!Wd.isEditor(t)},xp=(e,t)=>{if(sp.isCollapsed(t))return t.anchor;var[,n]=sp.edges(t),r=Wd.pointRef(e,n);return _p.delete(e,{at:t}),r.unref()},Op=(e,t)=>{var[n]=Wd.node(e,t);return e=>e===n};function Ap(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 kp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(n),!0).forEach((function(t){Qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bp={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)_p.select(e,r.anchor);else if("focus"===n)_p.select(e,r.focus);else if("start"===n){var[o]=sp.edges(r);_p.select(e,o)}else if("end"===n){var[,i]=sp.edges(r);_p.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=sp.isBackward(n)?"focus":"anchor"),"end"===a&&(a=sp.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,c={distance:r,unit:o},l={};if(null==a||"anchor"===a){var f=i?Wd.before(e,u,c):Wd.after(e,u,c);f&&(l.anchor=f)}if(null==a||"focus"===a){var d=i?Wd.before(e,s,c):Wd.after(e,s,c);d&&(l.focus=d)}_p.setSelection(e,l)}},select(e,t){var{selection:n}=e;if(t=Wd.range(e,t),n)_p.setSelection(e,t);else{if(!sp.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=sp.isBackward(r)?"focus":"anchor"),"end"===o&&(o=sp.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;_p.setSelection(e,{["anchor"===o?"anchor":"focus"]:kp(kp({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!op.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!op.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})}}},Fp={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wd.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(sp.isRange(a)&&sp.isCollapsed(a)&&(a=a.anchor),op.isPoint(a)){var s=Wd.void(e,{at:a,mode:"highest"});if(!i&&s){var[,c]=s;a=c}else{var l={unit:r,distance:o};a={anchor:a,focus:n?Wd.before(e,a,l)||Wd.start(e,[]):Wd.after(e,a,l)||Wd.end(e,[])},u=!0}}if(ep.isPath(a))_p.removeNodes(e,{at:a,voids:i});else if(!sp.isCollapsed(a)){if(!u){var[,f]=sp.edges(a),d=Wd.end(e,[]);op.equals(f,d)||(a=Wd.unhangRange(e,a,{voids:i}))}var[p,h]=sp.edges(a),v=Wd.above(e,{match:t=>Wd.isBlock(e,t),at:p,voids:i}),g=Wd.above(e,{match:t=>Wd.isBlock(e,t),at:h,voids:i}),y=v&&g&&!ep.equals(v[1],g[1]),m=ep.equals(p.path,h.path),b=i?null:Wd.void(e,{at:p,mode:"highest"}),w=i?null:Wd.void(e,{at:h,mode:"highest"});if(b){var E=Wd.before(e,p);E&&v&&ep.isAncestor(v[1],E.path)&&(p=E)}if(w){var S=Wd.after(e,h);S&&g&&ep.isAncestor(g[1],S.path)&&(h=S)}var C,D=[];for(var x of Wd.nodes(e,{at:a,voids:i})){var[O,A]=x;C&&0===ep.compare(A,C)||(!i&&Wd.isVoid(e,O)||!ep.isCommon(A,p.path)&&!ep.isCommon(A,h.path))&&(D.push(x),C=A)}var k=Array.from(D,(t=>{var[,n]=t;return Wd.pathRef(e,n)})),B=Wd.pointRef(e,p),F=Wd.pointRef(e,h);if(!m&&!b){var T=B.current,[P]=Wd.leaf(e,T),{path:_}=T,{offset:j}=p,N=P.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:_,offset:j,text:N})}for(var I of k){var R=I.unref();_p.removeNodes(e,{at:R,voids:i})}if(!w){var L=F.current,[M]=Wd.leaf(e,L),{path:z}=L,$=m?p.offset:0,H=M.text.slice($,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:$,text:H})}!m&&y&&F.current&&B.current&&_p.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var U=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&U&&_p.select(e,U)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Wd.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(sp.isRange(i))if(r||(i=Wd.unhangRange(e,i)),sp.isCollapsed(i))i=i.anchor;else{var[,a]=sp.edges(i);if(!o&&Wd.void(e,{at:a}))return;var u=Wd.pointRef(e,a);_p.delete(e,{at:i}),i=u.unref()}else ep.isPath(i)&&(i=Wd.start(e,i));if(o||!Wd.void(e,{at:i})){var s=Wd.above(e,{at:i,match:t=>Wd.isInline(e,t),mode:"highest",voids:o});if(s){var[,c]=s;Wd.isEnd(e,i,c)?i=Wd.after(e,c):Wd.isStart(e,i,c)&&(i=Wd.before(e,c))}var l=Wd.above(e,{match:t=>Wd.isBlock(e,t),at:i,voids:o}),[,f]=l,d=Wd.isStart(e,i,f),p=Wd.isEnd(e,i,f),h=d&&p,v=!d||d&&p,g=!p,[,y]=Xd.first({children:t},[]),[,m]=Xd.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(v&&ep.isAncestor(r,y)&&Md.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||g&&ep.isAncestor(r,m)&&Md.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of Xd.nodes({children:t},{pass:w}))w(E)&&b.push(E);var S=[],C=[],D=[],x=!0,O=!1;for(var[A]of b)Md.isElement(A)&&!e.isInline(A)?(x=!1,O=!0,C.push(A)):x?S.push(A):D.push(A);var[k]=Wd.nodes(e,{at:i,match:t=>vp.isText(t)||Wd.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=Wd.isStart(e,i,B),T=Wd.isEnd(e,i,B),P=Wd.pathRef(e,p?ep.next(f):f),_=Wd.pathRef(e,T?ep.next(B):B),j=Wd.pathRef(e,f);_p.splitNodes(e,{at:i,match:t=>O?Wd.isBlock(e,t):vp.isText(t)||Wd.isInline(e,t),mode:O?"lowest":"highest",voids:o});var N=Wd.pathRef(e,!F||F&&T?ep.next(B):B);if(_p.insertNodes(e,S,{at:N.current,match:t=>vp.isText(t)||Wd.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&_p.delete(e,{at:j.unref(),voids:o}),_p.insertNodes(e,C,{at:P.current,match:t=>Wd.isBlock(e,t),mode:"lowest",voids:o}),_p.insertNodes(e,D,{at:_.current,match:t=>vp.isText(t)||Wd.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=D.length>0?ep.previous(_.current):C.length>0?ep.previous(P.current):ep.previous(N.current);var R=Wd.end(e,I);_p.select(e,R)}N.unref(),P.unref(),_.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Wd.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(ep.isPath(o)&&(o=Wd.range(e,o)),sp.isRange(o))if(sp.isCollapsed(o))o=o.anchor;else{var i=sp.end(o);if(!r&&Wd.void(e,{at:i}))return;var a=sp.start(o),u=Wd.pointRef(e,a);_p.delete(e,{at:o,voids:r}),o=u.unref(),_p.setSelection(e,{anchor:o,focus:o})}if(r||!Wd.void(e,{at:o})){var{path:s,offset:c}=o;t.length>0&&e.apply({type:"insert_text",path:s,offset:c,text:t})}}}))}};function Tp(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 Pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tp(Object(n),!0).forEach((function(t){Qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _p=Pp(Pp(Pp(Pp({},mp),Cp),Bp),Fp),jp=9007199254740991,Np="[object Map]",Ip="[object Promise]",Rp="[object Set]",Lp="[object WeakMap]",Mp="[object DataView]",zp=/^\[object .+?Constructor\]$/,$p=/^(?:0|[1-9]\d*)$/,Hp="\\ud800-\\udfff",Up="\\u0300-\\u036f\\ufe20-\\ufe23",Vp="\\u20d0-\\u20f0",Wp="\\ufe0e\\ufe0f",qp="["+Hp+"]",Gp="["+Up+Vp+"]",Kp="\\ud83c[\\udffb-\\udfff]",Yp="[^"+Hp+"]",Xp="(?:\\ud83c[\\udde6-\\uddff]){2}",Zp="[\\ud800-\\udbff][\\udc00-\\udfff]",Jp="\\u200d",Qp="(?:"+Gp+"|"+Kp+")?",eh="["+Wp+"]?",th=eh+Qp+"(?:\\u200d(?:"+[Yp,Xp,Zp].join("|")+")"+eh+Qp+")*",nh="(?:"+[Yp+Gp+"?",Gp,Xp,Zp,qp].join("|")+")",rh=RegExp(Kp+"(?="+Kp+")|"+nh+th,"g"),oh=RegExp("["+Jp+Hp+Up+Vp+Wp+"]"),ih="object"==typeof E&&E&&E.Object===Object&&E,ah="object"==typeof self&&self&&self.Object===Object&&self,uh=ih||ah||Function("return this")();function sh(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ch(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var lh,fh,dh=Function.prototype,ph=Object.prototype,hh=uh["__core-js_shared__"],vh=function(){var e=/[^.]+$/.exec(hh&&hh.keys&&hh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gh=dh.toString,yh=ph.hasOwnProperty,mh=ph.toString,bh=RegExp("^"+gh.call(yh).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wh=uh.Symbol,Eh=wh?wh.iterator:void 0,Sh=ph.propertyIsEnumerable,Ch=(lh=Object.keys,fh=Object,function(e){return lh(fh(e))}),Dh=jh(uh,"DataView"),xh=jh(uh,"Map"),Oh=jh(uh,"Promise"),Ah=jh(uh,"Set"),kh=jh(uh,"WeakMap"),Bh=Rh(Dh),Fh=Rh(xh),Th=Rh(Oh),Ph=Rh(Ah),_h=Rh(kh);function jh(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!$h(e)||function(e){return!!vh&&vh in e}(e))return!1;var t=zh(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?bh:zp;return t.test(Rh(e))}(n)?n:void 0}var Nh=function(e){return mh.call(e)};function Ih(e,t){return!!(t=null==t?jp:t)&&("number"==typeof e||$p.test(e))&&e>-1&&e%1==0&&e<t}function Rh(e){if(null!=e){try{return gh.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Dh&&Nh(new Dh(new ArrayBuffer(1)))!=Mp||xh&&Nh(new xh)!=Np||Oh&&Nh(Oh.resolve())!=Ip||Ah&&Nh(new Ah)!=Rp||kh&&Nh(new kh)!=Lp)&&(Nh=function(e){var t=mh.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?Rh(n):void 0;if(r)switch(r){case Bh:return Mp;case Fh:return Np;case Th:return Ip;case Ph:return Rp;case _h:return Lp}return t});var Lh=Array.isArray;function Mh(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=jp}(e.length)&&!zh(e)}function zh(e){var t=$h(e)?mh.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function $h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Hh(e){return!!e&&"object"==typeof e}function Uh(e){return e?function(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]);return o}(t,(function(t){return e[t]}))}(e,function(e){return Mh(e)?function(e,t){var n=Lh(e)||function(e){return function(e){return Hh(e)&&Mh(e)}(e)&&yh.call(e,"callee")&&(!Sh.call(e,"callee")||"[object Arguments]"==mh.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&&!yh.call(e,i)||o&&("length"==i||Ih(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||ph))return Ch(e);var t,n,r=[];for(var o in Object(e))yh.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}(e)):[]}var Vh=function(e){if(!e)return[];if(Mh(e))return function(e){return"string"==typeof e||!Lh(e)&&Hh(e)&&"[object String]"==mh.call(e)}(e)?function(e){return function(e){return oh.test(e)}(e)?function(e){return e.match(rh)||[]}(e):function(e){return e.split("")}(e)}(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(Eh&&e[Eh])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Eh]());var t=Nh(e);return(t==Np?sh:t==Rp?ch:Uh)(e)};function Wh(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function qh(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Wh(t[n])&&Wh(e[n])&&Object.keys(t[n]).length>0&&qh(e[n],t[n])}))}var Gh={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 Kh(){var e="undefined"!=typeof document?document:{};return qh(e,Gh),e}var Yh={document:Gh,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 Xh(){var e="undefined"!=typeof window?window:{};return qh(e,Yh),e}function Zh(e){return Zh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zh(e)}function Jh(e,t){return Jh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jh(e,t)}function Qh(e,t,n){return Qh=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&&Jh(o,n.prototype),o},Qh.apply(null,arguments)}function ev(e){var t="function"==typeof Map?new Map:void 0;return ev=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 Qh(e,arguments,Zh(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Jh(n,e)},ev(e)}var tv=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),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}(ev(Array));function nv(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,nv(e)):t.push(e)})),t}function rv(e,t){return Array.prototype.filter.call(e,t)}function ov(e,t){var n=Xh(),r=Kh(),o=[];if(!t&&e instanceof tv)return e;if(!e)return new tv(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 tv)return e;o=e}return new tv(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 iv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=nv(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function av(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=nv(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function uv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=nv(t.map((function(e){return e.split(" ")})));return rv(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function sv(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 cv(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function lv(){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 fv(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 dv(){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),ov(t).is(o))i.apply(t,n);else for(var r=ov(t).parents(),a=0;a<r.length;a+=1)ov(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 c,l=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(c=0;c<l.length;c+=1){var p=l[c];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(c=0;c<l.length;c+=1){var h=l[c];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 pv(){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 c=u[s],l=0;l<this.length;l+=1){var f=this[l],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[c]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[c]),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(c,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(c,h.proxyListener,a),d.splice(p,1))}}return this}function hv(){var e=Xh();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function vv(){var e=Xh();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function gv(){if(this.length>0){var e=Xh(),t=Kh(),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 yv(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function mv(){for(var e=Xh(),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 bv(e,t){var n,r=Xh();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 wv(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Ev(e){return ov(rv(this,e))}function Sv(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 Cv(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 Dv(e){var t,n,r=Xh(),o=Kh(),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=ov(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 tv){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function xv(){for(var e,t=Kh(),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 tv)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Ov(e){var t,n,r=Kh();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 tv)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 Av(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?ov(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return ov(t)}function kv(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?ov(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return ov(t)}function Bv(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 ov(t)}function Fv(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&&!ov(r[o]).is(e)||t.push(r[o]);return ov(t)}function Tv(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Pv(){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}ov.fn=tv.prototype;var _v="resize scroll".split(" ");function jv(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)_v.indexOf(e)<0&&(e in this[o]?this[o][e]():ov(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Nv=jv("click"),Iv=jv("focus"),Rv=9007199254740991,Lv=/^(?:0|[1-9]\d*)$/;function Mv(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var zv=Object.prototype,$v=zv.hasOwnProperty,Hv=zv.toString,Uv=zv.propertyIsEnumerable,Vv=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var Wv,qv=(Wv=function(e,t){return e&&Gv(e,t,Zv)},function(e,t){if(null==e)return e;if(!Xv(e))return Wv(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),Gv=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e};function Kv(e,t){return!!(t=null==t?Rv:t)&&("number"==typeof e||Lv.test(e))&&e>-1&&e%1==0&&e<t}var Yv=Array.isArray;function Xv(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Rv}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?Hv.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function Zv(e){return Xv(e)?function(e,t){var n=Yv(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Xv(e)}(e)&&$v.call(e,"callee")&&(!Uv.call(e,"callee")||"[object Arguments]"==Hv.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&&!$v.call(e,i)||o&&("length"==i||Kv(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||zv))return Vv(e);var t,n,r=[];for(var o in Object(e))$v.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function Jv(e){return e}var Qv=function(e,t){return(Yv(e)?Mv:qv)(e,"function"==typeof t?t:Jv)};let eg=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");var tg="Expected a function",ng=/^\s+|\s+$/g,rg=/^[-+]0x[0-9a-f]+$/i,og=/^0b[01]+$/i,ig=/^0o[0-7]+$/i,ag=parseInt,ug="object"==typeof E&&E&&E.Object===Object&&E,sg="object"==typeof self&&self&&self.Object===Object&&self,cg=ug||sg||Function("return this")(),lg=Object.prototype.toString,fg=Math.max,dg=Math.min,pg=function(){return cg.Date.now()};function hg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function vg(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==lg.call(e)}(e))return NaN;if(hg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ng,"");var n=og.test(e);return n||ig.test(e)?ag(e.slice(2),n?2:8):rg.test(e)?NaN:+e}var gg=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(tg);return hg(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,u,s,c=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError(tg);function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function v(){var e=pg();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?dg(n,i-(e-c)):n}(e))}function g(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=pg(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(v,t),l?p(e):a}(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=vg(t)||0,hg(n)&&(l=!!n.leading,i=(f="maxWait"in n)?fg(vg(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g(pg())},y}(e,t,{leading:r,maxWait:t,trailing:o})};function yg(e){if(mg(e)){for(;e&&mg(e);)e=bg(e).parent;return null!=e?e:null}return e.parentNode}function mg(e){return 11===e.nodeType}function bg(e,t){var n,r,o;const i=e;return null!==(n=i.parent)&&void 0!==n||(i.parent=null!=t?t:null),null!==(r=i.firstChildNode)&&void 0!==r||(i.firstChildNode=e.firstChild),null!==(o=i.lastChildNode)&&void 0!==o||(i.lastChildNode=e.lastChild),i}const wg={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)},createDocumentFragment:function(){return bg(document.createDocumentFragment())},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){if(mg(e)){let t=e;for(;t&&mg(t);)t=bg(t).parent;e=null!=t?t:e}mg(t)&&(t=bg(t,e)),n&&mg(n)&&(n=bg(n).firstChildNode),e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){mg(t)&&(t=bg(t,e)),e.appendChild(t)},parentNode:yg,nextSibling:function(e){var t;if(mg(e)){const n=bg(e),r=yg(n);if(r&&n.lastChildNode){const e=Array.from(r.childNodes),o=e.indexOf(n.lastChildNode);return null!==(t=e[o+1])&&void 0!==t?t:null}return null}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},isDocumentFragment:mg};function Eg(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 Sg=Array.isArray;function Cg(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Dg(e){return void 0===e}function xg(e){return void 0!==e}const Og=Eg("",{},[],void 0,void 0);function Ag(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),a=e.sel===t.sel,u=!(!e.sel&&e.sel===t.sel)||typeof e.text==typeof t.text;return a&&o&&i&&u}function kg(){throw new Error("The document fragment is not supported on this platform.")}function Bg(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 Fg=["create","update","remove","destroy","pre","post"];function Tg(e,t,n){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},o=void 0!==t?t:wg;for(const t of Fg)for(const n of e){const e=n[t];void 0!==e&&r[t].push(e)}function i(e,t){return function(){if(0==--t){const t=o.parentNode(e);null!==t&&o.removeChild(t,e)}}}function a(e,t){var i,u,s,c;let l,f=e.data;if(void 0!==f){const t=null===(i=f.hook)||void 0===i?void 0:i.init;xg(t)&&(t(e),f=e.data)}const d=e.children,p=e.sel;if("!"===p)Dg(e.text)&&(e.text=""),e.elm=o.createComment(e.text);else if(""===p)e.elm=o.createTextNode(e.text);else if(void 0!==p){const n=p.indexOf("#"),i=p.indexOf(".",n),s=n>0?n:p.length,c=i>0?i:p.length,h=-1!==n||-1!==i?p.slice(0,Math.min(s,c)):p,v=e.elm=xg(f)&&xg(l=f.ns)?o.createElementNS(l,h,f):o.createElement(h,f);for(s<c&&v.setAttribute("id",p.slice(s+1,c)),i>0&&v.setAttribute("class",p.slice(c+1).replace(/\./g," ")),l=0;l<r.create.length;++l)r.create[l](Og,e);if(!Cg(e.text)||Sg(d)&&0!==d.length||o.appendChild(v,o.createTextNode(e.text)),Sg(d))for(l=0;l<d.length;++l){const e=d[l];null!=e&&o.appendChild(v,a(e,t))}const g=e.data.hook;xg(g)&&(null===(u=g.create)||void 0===u||u.call(g,Og,e),g.insert&&t.push(e))}else if((null===(s=null==n?void 0:n.experimental)||void 0===s?void 0:s.fragments)&&e.children){for(e.elm=(null!==(c=o.createDocumentFragment)&&void 0!==c?c:kg)(),l=0;l<r.create.length;++l)r.create[l](Og,e);for(l=0;l<e.children.length;++l){const n=e.children[l];null!=n&&o.appendChild(e.elm,a(n,t))}}else e.elm=o.createTextNode(e.text);return e.elm}function u(e,t,n,r,i,u){for(;r<=i;++r){const i=n[r];null!=i&&o.insertBefore(e,a(i,u),t)}}function s(e){var t,n;const o=e.data;if(void 0!==o){null===(n=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===n||n.call(t,e);for(let t=0;t<r.destroy.length;++t)r.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 c(e,t,n,a){for(var u,l;n<=a;++n){let a,f;const d=t[n];if(null!=d)if(xg(d.sel)){s(d),a=r.remove.length+1,f=i(d.elm,a);for(let e=0;e<r.remove.length;++e)r.remove[e](d,f);const e=null===(l=null===(u=null==d?void 0:d.data)||void 0===u?void 0:u.hook)||void 0===l?void 0:l.remove;xg(e)?e(d,f):f()}else d.children?(s(d),c(e,d.children,0,d.children.length-1)):o.removeChild(e,d.elm)}}function l(e,t,n){var i,s,f,d,p,h,v,g;const y=null===(i=t.data)||void 0===i?void 0:i.hook;null===(s=null==y?void 0:y.prepatch)||void 0===s||s.call(y,e,t);const m=t.elm=e.elm;if(e===t)return;if(void 0!==t.data||xg(t.text)&&t.text!==e.text){null!==(f=t.data)&&void 0!==f||(t.data={}),null!==(d=e.data)&&void 0!==d||(e.data={});for(let n=0;n<r.update.length;++n)r.update[n](e,t);null===(v=null===(h=null===(p=t.data)||void 0===p?void 0:p.hook)||void 0===h?void 0:h.update)||void 0===v||v.call(h,e,t)}const b=e.children,w=t.children;Dg(t.text)?xg(b)&&xg(w)?b!==w&&function(e,t,n,r){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],w=n[m];for(;p<=v&&h<=m;)null==g?g=t[++p]:null==y?y=t[--v]:null==b?b=n[++h]:null==w?w=n[--m]:Ag(g,b)?(l(g,b,r),g=t[++p],b=n[++h]):Ag(y,w)?(l(y,w,r),y=t[--v],w=n[--m]):Ag(g,w)?(l(g,w,r),o.insertBefore(e,g.elm,o.nextSibling(y.elm)),g=t[++p],w=n[--m]):Ag(y,b)?(l(y,b,r),o.insertBefore(e,y.elm,g.elm),y=t[--v],b=n[++h]):(void 0===i&&(i=Bg(t,p,v)),s=i[b.key],Dg(s)?(o.insertBefore(e,a(b,r),g.elm),b=n[++h]):Dg(i[w.key])?(o.insertBefore(e,a(w,r),o.nextSibling(y.elm)),w=n[--m]):(f=t[s],f.sel!==b.sel?o.insertBefore(e,a(b,r),g.elm):(l(f,b,r),t[s]=void 0,o.insertBefore(e,f.elm,g.elm)),b=n[++h]));h<=m&&(d=null==n[m+1]?null:n[m+1].elm,u(e,d,n,h,m,r)),p<=v&&c(e,t,p,v)}(m,b,w,n):xg(w)?(xg(e.text)&&o.setTextContent(m,""),u(m,null,w,0,w.length-1,n)):xg(b)?c(m,b,0,b.length-1):xg(e.text)&&o.setTextContent(m,""):e.text!==t.text&&(xg(b)&&c(m,b,0,b.length-1),o.setTextContent(m,t.text)),null===(g=null==y?void 0:y.postpatch)||void 0===g||g.call(y,e,t)}return function(e,t){let n,i,u;const s=[];for(n=0;n<r.pre.length;++n)r.pre[n]();for(function(e,t){return e.isElement(t)}(o,e)?e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),r=n?"."+n.split(" ").join("."):"";return Eg(o.tagName(e).toLowerCase()+t+r,{},[],void 0,e)}(e):function(e,t){return e.isDocumentFragment(t)}(o,e)&&(e=function(e){return Eg(void 0,{},[],void 0,e)}(e)),Ag(e,t)?l(e,t,s):(i=e.elm,u=o.parentNode(i),a(t,s),null!==u&&(o.insertBefore(u,t.elm,o.nextSibling(i)),c(u,[e],0,0))),n=0;n<s.length;++n)s[n].data.hook.insert(s[n]);for(n=0;n<r.post.length;++n)r.post[n]();return t}}function Pg(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];if("string"==typeof n)continue;const r=n.data;void 0!==r&&Pg(r,n.children,n.sel)}}function _g(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Sg(n)?r=n:Cg(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(Sg(t)?r=t:Cg(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Cg(r[i])&&(r[i]=Eg(void 0,void 0,void 0,r[i],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Pg(a,r,e),Eg(e,a,r,o,void 0)}function jg(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)?109===n.charCodeAt(1)?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,e):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 Ng={create:jg,update:jg};function Ig(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 Rg={create:Ig,update:Ig},Lg=/[A-Z]/g;function Mg(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)r in i||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(Lg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Lg,"-$&").toLowerCase(),i[r]))}const zg={create:Mg,update:Mg};function $g(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++)$g(e[r],t,n)}function Hg(e,t){const n=e.type,r=t.data.on;r&&r[n]&&$g(r[n],t,e)}function Ug(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){Hg(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 Vg={create:Ug,update:Ug,destroy:Ug};function Wg(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 qg={create:Wg,update:Wg},Gg="function"==typeof(null===window||void 0===window?void 0:window.requestAnimationFrame)?window.requestAnimationFrame.bind(window):setTimeout;let Kg=!1;function Yg(e,t,n){!function(e){Gg((function(){Gg(e)}))}((function(){e[t]=n}))}function Xg(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)r in a||("-"===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]||Yg(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Zg={pre:function(){Kg=!1},create:Xg,update:Xg,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;Kg||(e.elm.offsetLeft,Kg=!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 c=getComputedStyle(o)["transition-property"].split(", ");for(;i<c.length;++i)-1!==s.indexOf(c[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function Jg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Jg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(Eg(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Qg(e,t,...n){const r=Jg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?_g(e,t,r[0].text):_g(e,t,r)}var ey,ty=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ny=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ry="\\ud800-\\udfff",oy="\\u0300-\\u036f\\ufe20-\\ufe23",iy="\\u20d0-\\u20f0",ay="\\u2700-\\u27bf",uy="a-z\\xdf-\\xf6\\xf8-\\xff",sy="A-Z\\xc0-\\xd6\\xd8-\\xde",cy="\\ufe0e\\ufe0f",ly="\\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",fy="["+ry+"]",dy="["+ly+"]",py="["+oy+iy+"]",hy="\\d+",vy="["+ay+"]",gy="["+uy+"]",yy="[^"+ry+ly+hy+ay+uy+sy+"]",my="\\ud83c[\\udffb-\\udfff]",by="[^"+ry+"]",wy="(?:\\ud83c[\\udde6-\\uddff]){2}",Ey="[\\ud800-\\udbff][\\udc00-\\udfff]",Sy="["+sy+"]",Cy="\\u200d",Dy="(?:"+gy+"|"+yy+")",xy="(?:"+Sy+"|"+yy+")",Oy="(?:['’](?:d|ll|m|re|s|t|ve))?",Ay="(?:['’](?:D|LL|M|RE|S|T|VE))?",ky="(?:"+py+"|"+my+")?",By="["+cy+"]?",Fy=By+ky+"(?:\\u200d(?:"+[by,wy,Ey].join("|")+")"+By+ky+")*",Ty="(?:"+[vy,wy,Ey].join("|")+")"+Fy,Py="(?:"+[by+py+"?",py,wy,Ey,fy].join("|")+")",_y=RegExp("['’]","g"),jy=RegExp(py,"g"),Ny=RegExp(my+"(?="+my+")|"+Py+Fy,"g"),Iy=RegExp([Sy+"?"+gy+"+"+Oy+"(?="+[dy,Sy,"$"].join("|")+")",xy+"+"+Ay+"(?="+[dy,Sy+Dy,"$"].join("|")+")",Sy+"?"+Dy+"+"+Oy,Sy+"+"+Ay,hy,Ty].join("|"),"g"),Ry=RegExp("["+Cy+ry+oy+iy+cy+"]"),Ly=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,My="object"==typeof E&&E&&E.Object===Object&&E,zy="object"==typeof self&&self&&self.Object===Object&&self,$y=My||zy||Function("return this")(),Hy=(ey={"À":"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==ey?void 0:ey[e]});function Uy(e){return Ry.test(e)}var Vy=Object.prototype.toString,Wy=$y.Symbol,qy=Wy?Wy.prototype:void 0,Gy=qy?qy.toString:void 0;function Ky(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Vy.call(e)}(e))return Gy?Gy.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}for(var Yy,Xy=(Yy=function(e,t,n){return t=t.toLowerCase(),e+(n?Zy(Ky(t).toLowerCase()):t)},function(e){return function(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=Ky(e),void 0===(t=t)?function(e){return Ly.test(e)}(e)?function(e){return e.match(Iy)||[]}(e):function(e){return e.match(ty)||[]}(e):e.match(t)||[]}(function(e){return(e=Ky(e))&&e.replace(ny,Hy).replace(jy,"")}(e).replace(_y,"")),Yy,"")}),Zy=("toUpperCase",function(e){var t=Uy(e=Ky(e))?function(e){return Uy(e)?function(e){return e.match(Ny)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(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)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r}),Jy=Xy,Qy="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),em={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},tm={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Qy?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},nm={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},rm=1;rm<20;rm++)nm["f"+rm]=111+rm;function om(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 em)r[em[a]]=!1;var u=!0,s=!1,c=void 0;try{for(var l,f=o[Symbol.iterator]();!(u=(l=f.next()).done);u=!0){var d=l.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=am(d),v=em[h];if(d.length>1&&!v&&!tm[d]&&!nm[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&v||(n?r.key=h:r.which=im(d)),v&&(r[v]=!p||null)}}catch(e){s=!0,c=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw c}}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 im(e){return e=am(e),nm[e]||e.toUpperCase().charCodeAt(0)}function am(e){return e=e.toLowerCase(),tm[e]||e}var um=om,sm=function(e,t){return om(e,{byKey:!0},t)},cm=/^\s+|\s+$/g,lm=/^[-+]0x[0-9a-f]+$/i,fm=/^0b[01]+$/i,dm=/^0o[0-7]+$/i,pm=parseInt,hm="object"==typeof E&&E&&E.Object===Object&&E,vm="object"==typeof self&&self&&self.Object===Object&&self,gm=hm||vm||Function("return this")(),ym=Object.prototype.toString,mm=Math.max,bm=Math.min,wm=function(){return gm.Date.now()};function Em(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Sm(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==ym.call(e)}(e))return NaN;if(Em(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Em(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(cm,"");var n=fm.test(e);return n||dm.test(e)?pm(e.slice(2),n?2:8):lm.test(e)?NaN:+e}var Cm=function(e,t,n){var r,o,i,a,u,s,c=0,l=!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,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function v(){var e=wm();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?bm(n,i-(e-c)):n}(e))}function g(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=wm(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(v,t),l?p(e):a}(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Sm(t)||0,Em(n)&&(l=!!n.leading,i=(f="maxWait"in n)?mm(Sm(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g(wm())},y},Dm=C((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",c="[object Map]",l="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",v="[object String]",g="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",D="[object Int16Array]",x="[object Int32Array]",O="[object Uint8Array]",A="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",F=/\w*$/,T=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,_={};_[o]=_["[object Array]"]=_[m]=_[b]=_[i]=_[a]=_[w]=_[S]=_[C]=_[D]=_[x]=_[c]=_[l]=_[f]=_[p]=_[h]=_[v]=_[g]=_[O]=_[A]=_[k]=_[B]=!0,_["[object Error]"]=_[u]=_[y]=!1;var j="object"==typeof E&&E&&E.Object===Object&&E,N="object"==typeof self&&self&&self.Object===Object&&self,I=j||N||Function("return this")(),R=t&&!t.nodeType&&t,L=R&&e&&!e.nodeType&&e,M=L&&L.exports===R;function z(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function H(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 U(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 W(e,t){return function(n){return e(t(n))}}function q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var G=Array.prototype,K=Function.prototype,Y=Object.prototype,X=I["__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?I.Buffer:void 0,re=I.Symbol,oe=I.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=G.splice,ce=Object.getOwnPropertySymbols,le=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Ne(I,"DataView"),pe=Ne(I,"Map"),he=Ne(I,"Promise"),ve=Ne(I,"Set"),ge=Ne(I,"WeakMap"),ye=Ne(Object,"create"),me=ze(de),be=ze(pe),we=ze(he),Ee=ze(ve),Se=ze(ge),Ce=re?re.prototype:void 0,De=Ce?Ce.valueOf:void 0;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 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 ke(e){this.__data__=new Oe(e)}function Be(e,t,n){var r=e[t];Q.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Fe(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Te(e,t,n,r,d,y,E){var T;if(r&&(T=y?r(e,d,y,E):r(e)),void 0!==T)return T;if(!qe(e))return e;var P=He(e);if(P){if(T=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var j=Re(e),N=j==u||j==s;if(Ve(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(j==f||j==o||N&&!y){if(U(e))return y?e:{};if(T=function(e){return"function"!=typeof e.constructor||Me(e)?{}:qe(t=ie(e))?ae(t):{};var t}(N?{}:e),!t)return function(e,t){return _e(e,Ie(e),t)}(e,function(e,t){return e&&_e(t,Ge(t),e)}(T,e))}else{if(!_[j])return y?e:{};T=function(e,t,n,r){var o=e.constructor;switch(t){case m:return Pe(e);case i:case a:return new o(+e);case b: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 x:case O:case A:case k:case B: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 H(t?n(V(e),!0):V(e),z,new e.constructor)}(e,r,n);case l:case v:return new o(e);case p:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return H(t?n(q(e),!0):q(e),$,new e.constructor)}(e,r,n);case g:return function(e){return De?Object(De.call(e)):{}}(e)}}(e,j,Te,t)}}E||(E=new ke);var I=E.get(e);if(I)return I;if(E.set(e,T),!P)var R=n?function(e){return function(e,t,n){var r=t(e);return He(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,Ge,Ie)}(e):Ge(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n););}(R||e,(function(o,i){R&&(o=e[i=o]),Be(T,i,Te(o,t,n,r,i,e,E))})),T}function Pe(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function _e(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;Be(n,a,void 0===u?e[a]:u)}return n}function je(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 Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!qe(e)||function(e){return!!Z&&Z in e}(e))&&(We(e)||U(e)?te:T).test(ze(e))}(n)?n:void 0}xe.prototype.clear=function(){this.__data__=ye?ye(null):{}},xe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},xe.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},xe.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},xe.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),0))},Oe.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Fe(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new xe,map:new(pe||Oe),string:new xe}},Ae.prototype.delete=function(e){return je(this,e).delete(e)},Ae.prototype.get=function(e){return je(this,e).get(e)},Ae.prototype.has=function(e){return je(this,e).has(e)},Ae.prototype.set=function(e,t){return je(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new Oe},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var Ie=ce?W(ce,Object):function(){return[]},Re=function(e){return ee.call(e)};function Le(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function ze(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&&Re(new de(new ArrayBuffer(1)))!=b||pe&&Re(new pe)!=c||he&&Re(he.resolve())!=d||ve&&Re(new ve)!=h||ge&&Re(new ge)!=y)&&(Re=function(e){var t=ee.call(e),n=t==f?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case me:return b;case be:return c;case we:return d;case Ee:return h;case Se:return y}return t});var He=Array.isArray;function Ue(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!We(e)}var Ve=le||function(){return!1};function We(e){var t=qe(e)?ee.call(e):"";return t==u||t==s}function qe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return Ue(e)?function(e,t){var n=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ue(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==o)}(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,i=!!r;for(var a in e)!t&&!Q.call(e,a)||i&&("length"==a||Le(a,r))||n.push(a);return n}(e):function(e){if(!Me(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}));function xm(e){return e<10?`0${e}`:e.toString()}var Om=function(){const e=new Date;return`${xm(e.getHours())}:${xm(e.getMinutes())}:${xm(e.getSeconds())}`},Am=C((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.justErrorsLogger=t.debugLogger=void 0;const n={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] [${Om()}]`,...t)}};t.justErrorsLogger=n;const r={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Om()}]`,...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] [${Om()}]`,...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] [${Om()}]`,...t)}};t.debugLogger=r})),km={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",o=n;for(;o--;)r+=e[Math.random()*e.length|0];return r}},Bm=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 Fm(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Fm.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 Tm=/[\/\+\.]/,Pm=C((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultOptions=t.RestrictionError=t.Restricter=void 0,t.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class n extends Error{constructor(){super(...arguments),this.isRestriction=!0}}t.RestrictionError=n,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}}),t.Restricter=class{constructor(e,t){this.i18n=t,this.getOpts=()=>{const t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){const{maxFileSize:r,minFileSize:o,maxTotalFileSize:i,maxNumberOfFiles:a,allowedFileTypes:u}=this.getOpts().restrictions;if(a){if(t.filter((e=>!e.isGhost)).length+1>a)throw new n(`${this.i18n("youCanOnlyUploadX",{smart_count:a})}`)}if(u&&!u.some((t=>t.includes("/")?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new Fm(e,n);return void 0!==t?r.match(t):r}(t,e,Tm);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()))){const e=u.join(", ");throw new n(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(i&&null!=e.size){if(t.reduce(((e,t)=>e+t.size),e.size)>i)throw new n(this.i18n("exceedsSize",{size:Bm(i),file:e.name}))}if(r&&null!=e.size&&e.size>r)throw new n(this.i18n("exceedsSize",{size:Bm(r),file:e.name}));if(o&&null!=e.size&&e.size<o)throw new n(this.i18n("inferiorSize",{size:Bm(o)}))}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(Object.keys(e).length<t)throw new n(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new n(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:r}=this.getOpts().restrictions,o=Object.prototype.hasOwnProperty,i=[];for(const t of r)o.call(e.meta,t)&&""!==e.meta[t]||i.push(t);return{missingFields:i,error:t}}}})),_m=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function jm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nm=0;function Im(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}
|
22
|
+
/**
|
23
|
+
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
24
|
+
* and replaces it with values from options `{smart_count: 5}`
|
25
|
+
*
|
26
|
+
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
27
|
+
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
28
|
+
*
|
29
|
+
* @param {string} phrase that needs interpolation, with placeholders
|
30
|
+
* @param {object} options with values that will be used to replace placeholders
|
31
|
+
* @returns {any[]} interpolated
|
32
|
+
*/function Rm(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=Im(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var Lm=function(e){return"__private_"+Nm+++"_"+e}("apply");function Mm(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 zm=class{constructor(e){Object.defineProperty(this,Lm,{value:Mm}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(jm(this,Lm)[Lm],this):jm(this,Lm)[Lm](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!_m(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 Rm(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 Rm(n,t)}},$m=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(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;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){for(var r=0,o=t.length;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},Hm=0;var Um=function(e){return"__private_"+Hm+++"_"+e}("publish");class Vm{constructor(){Object.defineProperty(this,Um,{value:Wm}),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,Um)[Um](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Wm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Vm.VERSION="2.1.1";var qm=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)}},Gm={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",dicom:"application/dicom",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 Km(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var Ym=function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!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},Xm={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",search:"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}"}}},Zm=km;let Jm,Qm;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 tb=0;function nb(e){return"__private_"+tb+++"_"+e}var rb=nb("plugins"),ob=nb("restricter"),ib=nb("storeUnsubscribe"),ab=nb("emitter"),ub=nb("preProcessors"),sb=nb("uploaders"),cb=nb("postProcessors"),lb=nb("informAndEmit"),fb=nb("checkRequiredMetaFieldsOnFile"),db=nb("checkRequiredMetaFields"),pb=nb("assertNewUploadAllowed"),hb=nb("checkAndCreateFileStateObject"),vb=nb("startIfAutoProceed"),gb=nb("addListeners"),yb=nb("updateOnlineStatus"),mb=nb("createUpload"),bb=nb("getUpload"),wb=nb("removeUpload"),Eb=nb("runUpload");Jm=Symbol.for("uppy test: getPlugins"),Qm=Symbol.for("uppy test: createUpload");class Sb{constructor(e){Object.defineProperty(this,Eb,{value:_b}),Object.defineProperty(this,wb,{value:Pb}),Object.defineProperty(this,bb,{value:Tb}),Object.defineProperty(this,mb,{value:Fb}),Object.defineProperty(this,gb,{value:Bb}),Object.defineProperty(this,vb,{value:kb}),Object.defineProperty(this,hb,{value:Ab}),Object.defineProperty(this,pb,{value:Ob}),Object.defineProperty(this,db,{value:xb}),Object.defineProperty(this,fb,{value:Db}),Object.defineProperty(this,lb,{value:Cb}),Object.defineProperty(this,rb,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,ob,{writable:!0,value:void 0}),Object.defineProperty(this,ib,{writable:!0,value:void 0}),Object.defineProperty(this,ab,{writable:!0,value:$m()}),Object.defineProperty(this,ub,{writable:!0,value:new Set}),Object.defineProperty(this,sb,{writable:!0,value:new Set}),Object.defineProperty(this,cb,{writable:!0,value:new Set}),Object.defineProperty(this,yb,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Xm;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:Pm.defaultOptions,meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Vm,logger:Am.justErrorsLogger,infoTimeout:5e3};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=Am.debugLogger),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=gg(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Ym(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),eb(this,ob)[ob]=new Pm.Restricter((()=>this.opts),this.i18n),eb(this,ib)[ib]=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),eb(this,gb)[gb]()}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];eb(this,ab)[ab].emit(e,...n)}on(e,t){return eb(this,ab)[ab].on(e,t),this}once(e,t){return eb(this,ab)[ab].once(e,t),this}off(e,t){return eb(this,ab)[ab].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 zm([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){eb(this,ub)[ub].add(e)}removePreProcessor(e){return eb(this,ub)[ub].delete(e)}addPostProcessor(e){eb(this,cb)[cb].add(e)}removePostProcessor(e){return eb(this,cb)[cb].delete(e)}addUploader(e){eb(this,sb)[sb].add(e)}removeUploader(e){return eb(this,sb)[sb].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)),c=r.filter((e=>e.progress.uploadComplete)),l=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:c,erroredFiles:l,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&c.length===r.length&&0===d.length,isAllErrored:!!n&&l.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{return eb(this,ob)[ob].validate(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){eb(this,pb)[pb](e);const{files:t}=this.getState();let n=eb(this,hb)[hb](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}`),eb(this,vb)[vb](),n.id}addFiles(e){eb(this,pb)[pb]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=eb(this,hb)[hb](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&&eb(this,vb)[vb](),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);if(0===t.length)return void delete i[e];const{capabilities:n}=this.getState();if(t.length!==r[e].fileIDs.length&&!n.individualCancellation)throw new Error("individualCancellation is disabled");i[e]={...r[e],fileIDs:t}}));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 c=Object.keys(a);c.forEach((e=>{this.emit("file-removed",a[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.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;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=eb(this,mb)[mb](t,{forceAllowNewUpload:!0});return eb(this,Eb)[Eb](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){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=eb(this,mb)[mb]([e],{forceAllowNewUpload:!0});return eb(this,Eb)[Eb](t)}reset(){this.cancelAll(...arguments)}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0: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 eb(this,rb)[rb]?eb(this,rb)[rb][n.type].push(n):eb(this,rb)[rb][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(eb(this,rb)[rb])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[Jm](e){return eb(this,rb)[rb][e]}iteratePlugins(e){Object.values(eb(this,rb)[rb]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=eb(this,rb)[rb][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(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),eb(this,ib)[ib](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",eb(this,yb)[yb]),window.removeEventListener("offline",eb(this,yb)[yb]))}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]?eb(this,Eb)[Eb](e):(eb(this,wb)[wb](e),Promise.reject(new Error("Nonexistent upload")))}[Qm](){return eb(this,mb)[mb](...arguments)}addResultData(e,t){if(!eb(this,bb)[bb](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=eb(this,rb)[rb].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((()=>eb(this,ob)[ob].validateMinNumberOfFiles(t))).catch((e=>{throw eb(this,lb)[lb](e),e})).then((()=>{if(!eb(this,db)[db](t))throw new Pm.RestrictionError(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw 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=eb(this,mb)[mb](r);return eb(this,Eb)[Eb](o)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function Cb(e,t){const{message:n,details:r=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:r},"error",this.opts.infoTimeout),this.log(`${n} ${r}`.trim(),"error")}function Db(e){const{missingFields:t,error:n}=eb(this,ob)[ob].getMissingRequiredMetaFields(e);return!(t.length>0&&(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),1))}function xb(e){let t=!0;for(const n of Object.values(e))eb(this,fb)[fb](n)||(t=!1);return t}function Ob(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new Pm.RestrictionError(this.i18n("noMoreFilesAllowed"));throw eb(this,lb)[lb](t,e),t}}function Ab(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=qm(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Gm?Gm[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=qm(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Km(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Km(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 Pm.RestrictionError(this.i18n("noDuplicates",{fileName:r}));throw eb(this,lb)[lb](e,t),e}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let c={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 l=this.opts.onBeforeFileAdded(c,e);if(!1===l){const e=new Pm.RestrictionError("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof l&&null!==l&&(c=l);try{const t=Object.keys(e).map((t=>e[t]));eb(this,ob)[ob].validate(c,t)}catch(e){throw eb(this,lb)[lb](e,c),e}return c}function kb(){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 Bb(){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:null==t?void 0:t.name}),eb(this,lb)[lb](e)}else eb(this,lb)[lb](n)})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{null!=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: ${null==e?void 0:e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:eb(this,cb)[cb].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)=>{null!=e&&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: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0: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)=>{null!=e&&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: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0: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&&eb(this,fb)[fb](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",eb(this,yb)[yb]),window.addEventListener("offline",eb(this,yb)[yb]),setTimeout(eb(this,yb)[yb],3e3))}function Fb(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=(0,Zm.nanoid)();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 Tb(e){const{currentUploads:t}=this.getState();return t[e]}function Pb(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function _b(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...eb(this,ub)[ub],...eb(this,sb)[sb],...eb(this,cb)[cb]];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 eb(this,wb)[wb](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),eb(this,wb)[wb](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Sb.VERSION="2.3.4";var jb=Sb,Nb=C((function(e,t){var n,r,o,i,a,u,s,c,l,f,d,p,h={},v=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function w(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 E(e,u,o,i,null)}function E(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,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(u),u}function S(e){return e.children}function C(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__i+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?D(e):null}function x(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 x(e)}}function O(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!A.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||s)(A)}function A(){var e,t,n,o,i,u,s,l;for(a.sort(c);e=a.shift();)e.__d&&(t=a.length,o=void 0,u=(i=(n=e).__v).__e,s=[],l=[],n.__P&&((o=m({},i)).__v=i.__v+1,r.vnode&&r.vnode(o),N(n.__P,o,i,n.__n,n.__P.namespaceURI,32&i.__u?[u]:null,s,null==u?D(i):u,!!(32&i.__u),l),o.__v=i.__v,o.__.__k[o.__i]=o,I(s,o,l),o.__e!=u&&x(o)),a.length>t&&a.sort(c));A.__r=0}function k(e,t,n,r,o,i,a,u,s,c,l){var f,d,p,g,y,m=r&&r.__k||v,b=t.length;for(n.__d=s,B(n,t,m),s=n.__d,f=0;f<b;f++)null!=(p=n.__k[f])&&(d=-1===p.__i?h:m[p.__i]||h,p.__i=f,N(e,p,d,o,i,a,u,s,c,l),g=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&L(d.ref,null,p),l.push(p.ref,p.__c||g,p)),null==y&&null!=g&&(y=g),65536&p.__u||d.__k===p.__k?s=F(p,s,e):"function"==typeof p.type&&void 0!==p.__d?s=p.__d:g&&(s=g.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=s,n.__e=y}function B(e,t,n){var r,o,i,a,u,s=t.length,c=n.length,l=c,f=0;for(e.__k=[],r=0;r<s;r++)null!=(o=t[r])&&"boolean"!=typeof o&&"function"!=typeof o?(a=r+f,(o=e.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?E(null,o,null,null,null):y(o)?E(S,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?E(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,-1!==(u=o.__i=T(o,n,a,l))&&(l--,(i=n[u])&&(i.__u|=131072)),null==i||null===i.__v?(-1==u&&f--,"function"!=typeof o.type&&(o.__u|=65536)):u!==a&&(u==a-1?f--:u==a+1?f++:(u>a?f--:f++,o.__u|=65536))):o=e.__k[r]=null;if(l)for(r=0;r<c;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=D(i)),M(i,i))}function F(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=F(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=D(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function T(e,t,n,r){var o=e.key,i=e.type,a=n-1,u=n+1,s=t[n];if(null===s||s&&o==s.key&&i===s.type&&!(131072&s.__u))return n;if(("function"!=typeof i||i===S||o)&&r>(null==s||131072&s.__u?0:1))for(;a>=0||u<t.length;){if(a>=0){if((s=t[a])&&!(131072&s.__u)&&o==s.key&&i===s.type)return a;a--}if(u<t.length){if((s=t[u])&&!(131072&s.__u)&&o==s.key&&i===s.type)return u;u++}}return-1}function P(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function _(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||P(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||P(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.t=r.t:(n.t=l,e.addEventListener(t,i?d:f,i)):e.removeEventListener(t,i?d:f,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function j(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.u)t.u=l++;else if(t.u<n.t)return;return r.event&&(t=r.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function N(e,t,n,o,i,a,u,s,c,l){var f,d,p,h,v,g,b,w,E,D,x,O,A,B,F,T,P=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(f=r.__b)&&f(t);e:if("function"==typeof P)try{if(w=t.props,E="prototype"in P&&P.prototype.render,D=(f=P.contextType)&&o[f.__c],x=f?D?D.props.value:f.__:o,n.__c?b=(d=t.__c=n.__c).__=d.__E:(E?t.__c=d=new P(w,x):(t.__c=d=new C(w,x),d.constructor=P,d.render=z),D&&D.sub(d),d.props=w,d.state||(d.state={}),d.context=x,d.__n=o,p=d.__d=!0,d.__h=[],d._sb=[]),E&&null==d.__s&&(d.__s=d.state),E&&null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=m({},d.__s)),m(d.__s,P.getDerivedStateFromProps(w,d.__s))),h=d.props,v=d.state,d.__v=t,p)E&&null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),E&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(E&&null==P.getDerivedStateFromProps&&w!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(w,x),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(w,d.__s,x)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=w,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[],d.__h.length&&u.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(w,d.__s,x),E&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,v,g)}))}if(d.context=x,d.props=w,d.__P=e,d.__e=!1,A=r.__r,B=0,E){for(d.state=d.__s,d.__d=!1,A&&A(t),f=d.render(d.props,d.state,d.context),F=0;F<d._sb.length;F++)d.__h.push(d._sb[F]);d._sb=[]}else do{d.__d=!1,A&&A(t),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++B<25);d.state=d.__s,null!=d.getChildContext&&(o=m(m({},o),d.getChildContext())),E&&!p&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(h,v)),k(e,y(T=null!=f&&f.type===S&&null==f.key?f.props.children:f)?T:[T],t,n,o,i,a,u,s,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&u.push(d),b&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||null!=a){for(t.__u|=c?160:128;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;r.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=R(n.__e,t,n,o,i,a,u,c,l);(f=r.diffed)&&f(t)}function I(e,t,n){t.__d=void 0;for(var o=0;o<n.length;o++)L(n[o],n[++o],n[++o]);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 R(e,t,o,i,a,u,s,c,l){var f,d,p,v,g,m,w,E=o.props,S=t.props,C=t.type;if("svg"===C?a="http://www.w3.org/2000/svg":"math"===C?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=u)for(f=0;f<u.length;f++)if((g=u[f])&&"setAttribute"in g==!!C&&(C?g.localName===C:3===g.nodeType)){e=g,u[f]=null;break}if(null==e){if(null===C)return document.createTextNode(S);e=document.createElementNS(a,C,S.is&&S),c&&(r.__m&&r.__m(t,u),c=!1),u=null}if(null===C)E===S||c&&e.data===S||(e.data=S);else{if(u=u&&n.call(e.childNodes),E=o.props||h,!c&&null!=u)for(E={},f=0;f<e.attributes.length;f++)E[(g=e.attributes[f]).name]=g.value;for(f in E)if(g=E[f],"children"==f);else if("dangerouslySetInnerHTML"==f)p=g;else if(!(f in S)){if("value"==f&&"defaultValue"in S||"checked"==f&&"defaultChecked"in S)continue;_(e,f,null,g,a)}for(f in S)g=S[f],"children"==f?v=g:"dangerouslySetInnerHTML"==f?d=g:"value"==f?m=g:"checked"==f?w=g:c&&"function"!=typeof g||E[f]===g||_(e,f,g,E[f],a);if(d)c||p&&(d.__html===p.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(p&&(e.innerHTML=""),k(e,y(v)?v:[v],t,o,i,"foreignObject"===C?"http://www.w3.org/1999/xhtml":a,u,s,u?u[0]:o.__k&&D(o,0),c,l),null!=u)for(f=u.length;f--;)b(u[f]);c||(f="value","progress"===C&&null==m?e.removeAttribute("value"):void 0!==m&&(m!==e[f]||"progress"===C&&!m||"option"===C&&m!==E[f])&&_(e,f,m,E[f],a),f="checked",void 0!==w&&w!==e[f]&&_(e,f,w,E[f],a))}return e}function L(e,t,n){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==t||(e.__u=e(t))}else e.current=t}catch(e){r.__e(e,n)}}function M(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||L(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]&&M(o[i],t,n||"function"!=typeof e.type);n||b(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function z(e,t,n){return this.constructor(e,n)}function $(e,t,o){var i,a,u,s;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],s=[],N(t,e=(!i&&o||t).__k=w(S,null,[e]),a||h,h,t.namespaceURI,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i,s),I(u,e,s)}n=v.slice,r={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&null==e.constructor},C.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),O(this))},C.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},C.prototype.render=S,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},A.__r=0,l=0,f=j(!1),d=j(!0),p=0,t.Component=C,t.Fragment=S,t.cloneElement=function(e,t,r){var o,i,a,u,s=m({},e.props);for(a in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=void 0===t[a]&&void 0!==u?u[a]:t[a];return arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),E(e.type,s,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,O(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=w,t.createRef=function(){return{current:null}},t.h=w,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||(y(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Ib=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE}(e)?e:null},Rb=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 zm([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 Lb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Mb=0;var zb=function(e){return"__private_"+Mb+++"_"+e}("updateUI");class $b extends Rb{constructor(){super(...arguments),Object.defineProperty(this,zb,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=Ib(e);if(r){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),Lb(this,zb)[zb]=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)&&((0,Nb.render)(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),(0,Nb.render)(this.render(this.uppy.getState()),t),this.el=t,r.appendChild(t),t.dir=this.opts.direction||function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir}(t)||"ltr",this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof $b)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{e instanceof t&&(o=e)}))}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=Lb(this,zb))[zb])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Hb=$b,Ub=C((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Uppy=t.UIPlugin=t.BasePlugin=void 0,Object.defineProperty(t,"debugLogger",{enumerable:!0,get:function(){return Am.debugLogger}}),e.exports=jb,t.UIPlugin=Hb,t.BasePlugin=Rb,t.Uppy=jb;const n=Hb,r=Rb;jb.Uppy=jb,jb.UIPlugin=n,jb.BasePlugin=r,jb.debugLogger=Am.debugLogger})),Vb=S(Ub);class Wb 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 qb=Wb,Gb=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new qb(e)}))};class Kb extends Error{constructor(e,t){void 0===t&&(t={}),super(e),this.cause=t.cause,this.cause&&_m(this.cause,"isNetworkError")&&(this.isNetworkError=this.cause.isNetworkError)}}var Yb=Kb;class Xb extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Zb=Xb;let Jb;function Qb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ew=0;function tw(e){return"__private_"+ew+++"_"+e}async function nw(e){if(401===e.status)throw new Zb;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 rw=tw("companionHeaders"),ow=tw("getPostResponseFunc"),iw=tw("getUrl"),aw=tw("errorHandler");Jb=Symbol.for("uppy test: getCompanionHeaders");class uw{constructor(e,t){Object.defineProperty(this,aw,{value:cw}),Object.defineProperty(this,iw,{value:sw}),Object.defineProperty(this,rw,{writable:!0,value:void 0}),Object.defineProperty(this,ow,{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,Qb(this,rw)[rw]=null==t?void 0:t.companionHeaders}setCompanionHeaders(e){Qb(this,rw)[rw]=e}[Jb](){return Qb(this,rw)[rw]}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){return Promise.resolve({...uw.defaultHeaders,...Qb(this,rw)[rw]})}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(Qb(this,iw)[iw](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=>Gb(Qb(this,iw)[iw](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Qb(this,ow)[ow](t)).then(nw).catch(Qb(this,aw)[aw]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>Gb(Qb(this,iw)[iw](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(Qb(this,ow)[ow](n)).then(nw).catch(Qb(this,aw)[aw](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>Gb(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(Qb(this,ow)[ow](n)).then(nw).catch(Qb(this,aw)[aw](r,e))}}function sw(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function cw(e,t){return n=>{var r;return null!=(r=n)&&r.isAuthError||(n=new Yb(`Could not ${e} ${Qb(this,iw)[iw](t)}`,{cause:n})),Promise.reject(n)}}uw.VERSION="2.2.2",uw.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${uw.VERSION}`};var lw=uw,fw=Object.defineProperty({getItem:function(e){return Promise.resolve(localStorage.getItem(e))},removeItem:function(e){return new Promise((t=>{localStorage.removeItem(e),t()}))},setItem:function(e,t){return new Promise((n=>{localStorage.setItem(e,t),n()}))}},"__esModule",{value:!0}),dw=class extends lw{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),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)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw new Error("Could not load authentication data required for third-party login. Please try again later.")}authUrl(e){void 0===e&&(e={});const t=new URLSearchParams(e);return this.preAuthToken&&t.set("uppyPreAuthToken",this.preAuthToken),`${this.hostname}/${this.id}/connect?${t}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}async fetchPreAuthToken(){if(this.companionKeysParams)try{const e=await this.post(`${this.id}/preauth/`,{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}}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||fw}},pw=class extends lw{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t?`&${t}`:""}`)}};let hw,vw;function gw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var yw=0;function mw(e){return"__private_"+yw+++"_"+e}var bw=mw("queued"),ww=mw("emitter"),Ew=mw("isOpen"),Sw=mw("socket"),Cw=mw("handleMessage");hw=Symbol.for("uppy test: getSocket"),vw=Symbol.for("uppy test: getQueued");var Dw=class{constructor(e){Object.defineProperty(this,bw,{writable:!0,value:[]}),Object.defineProperty(this,ww,{writable:!0,value:$m()}),Object.defineProperty(this,Ew,{writable:!0,value:!1}),Object.defineProperty(this,Sw,{writable:!0,value:void 0}),Object.defineProperty(this,Cw,{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 gw(this,Ew)[Ew]}[hw](){return gw(this,Sw)[Sw]}[vw](){return gw(this,bw)[bw]}open(){gw(this,Sw)[Sw]=new WebSocket(this.opts.target),gw(this,Sw)[Sw].onopen=()=>{for(gw(this,Ew)[Ew]=!0;gw(this,bw)[bw].length>0&&gw(this,Ew)[Ew];){const e=gw(this,bw)[bw].shift();this.send(e.action,e.payload)}},gw(this,Sw)[Sw].onclose=()=>{gw(this,Ew)[Ew]=!1},gw(this,Sw)[Sw].onmessage=gw(this,Cw)[Cw]}close(){var e;null==(e=gw(this,Sw)[Sw])||e.close()}send(e,t){gw(this,Ew)[Ew]?gw(this,Sw)[Sw].send(JSON.stringify({action:e,payload:t})):gw(this,bw)[bw].push({action:e,payload:t})}on(e,t){gw(this,ww)[ww].on(e,t)}emit(e,t){gw(this,ww)[ww].emit(e,t)}once(e,t){gw(this,ww)[ww].once(e,t)}},xw=C((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.SearchProvider=t.RequestClient=t.Provider=void 0,t.RequestClient=lw,t.Provider=dw,t.SearchProvider=pw,t.Socket=Dw})),Ow=C((function(e,t){function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.internalRateLimitedQueue=t.RateLimitedQueue=void 0;var r=0;function o(e){return"__private_"+r+++"_"+e}var i=o("activeRequests"),a=o("queuedHandlers"),u=o("paused"),s=o("pauseTimer"),c=o("downLimit"),l=o("upperLimit"),f=o("rateLimitingTimer"),d=o("call"),p=o("queueNext"),h=o("next"),v=o("queue"),g=o("dequeue"),y=o("resume"),m=o("increaseLimit");function b(e){n(this,i)[i]+=1;let t,r=!1;try{t=e()}catch(e){throw n(this,i)[i]-=1,e}return{abort:()=>{r||(r=!0,n(this,i)[i]-=1,t(),n(this,p)[p]())},done:()=>{r||(r=!0,n(this,i)[i]-=1,n(this,p)[p]())}}}function w(){queueMicrotask((()=>n(this,h)[h]()))}function E(){if(n(this,u)[u]||n(this,i)[i]>=this.limit)return;if(0===n(this,a)[a].length)return;const e=n(this,a)[a].shift(),t=n(this,d)[d](e.fn);e.abort=t.abort,e.done=t.done}function S(e,t){void 0===t&&(t={});const r={fn:e,priority:t.priority||0,abort:()=>{n(this,g)[g](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},o=n(this,a)[a].findIndex((e=>r.priority>e.priority));return-1===o?n(this,a)[a].push(r):n(this,a)[a].splice(o,0,r),r}function C(e){const t=n(this,a)[a].indexOf(e);-1!==t&&n(this,a)[a].splice(t,1)}t.RateLimitedQueue=class{constructor(e){Object.defineProperty(this,g,{value:C}),Object.defineProperty(this,v,{value:S}),Object.defineProperty(this,h,{value:E}),Object.defineProperty(this,p,{value:w}),Object.defineProperty(this,d,{value:b}),Object.defineProperty(this,i,{writable:!0,value:0}),Object.defineProperty(this,a,{writable:!0,value:[]}),Object.defineProperty(this,u,{writable:!0,value:!1}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:1}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,m,{writable:!0,value:()=>{if(n(this,u)[u])n(this,f)[f]=setTimeout(n(this,m)[m],0);else{n(this,c)[c]=this.limit,this.limit=Math.ceil((n(this,l)[l]+n(this,c)[c])/2);for(let e=n(this,c)[c];e<=this.limit;e++)n(this,p)[p]();n(this,l)[l]-n(this,c)[c]>3?n(this,f)[f]=setTimeout(n(this,m)[m],2e3):n(this,c)[c]=Math.floor(n(this,c)[c]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return!n(this,u)[u]&&n(this,i)[i]<this.limit?n(this,d)[d](e):n(this,v)[v](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}}resume(){n(this,u)[u]=!1,clearTimeout(n(this,s)[s]);for(let e=0;e<this.limit;e++)n(this,p)[p]()}pause(e){void 0===e&&(e=null),n(this,u)[u]=!0,clearTimeout(n(this,s)[s]),null!=e&&(n(this,s)[s]=setTimeout(n(this,y)[y],e))}rateLimit(e){clearTimeout(n(this,f)[f]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(n(this,l)[l]=this.limit-1,this.limit=n(this,c)[c],n(this,f)[f]=setTimeout(n(this,m)[m],e))}get isPaused(){return n(this,u)[u]}};const D=Symbol("__queue");t.internalRateLimitedQueue=D})),Aw=gg((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 kw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Bw=0;function Fw(e){return"__private_"+Bw+++"_"+e}var Tw=Fw("emitter"),Pw=Fw("events"),_w=class{constructor(e){Object.defineProperty(this,Tw,{writable:!0,value:void 0}),Object.defineProperty(this,Pw,{writable:!0,value:[]}),kw(this,Tw)[Tw]=e}on(e,t){return kw(this,Pw)[Pw].push([e,t]),kw(this,Tw)[Tw].on(e,t)}remove(){for(const[e,t]of kw(this,Pw)[Pw].splice(0))kw(this,Tw)[Tw].off(e,t)}};function jw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nw=0;function Iw(e){return"__private_"+Nw+++"_"+e}var Rw=Iw("aliveTimer"),Lw=Iw("isDone"),Mw=Iw("onTimedOut"),zw=Iw("timeout"),$w=class{constructor(e,t){Object.defineProperty(this,Rw,{writable:!0,value:void 0}),Object.defineProperty(this,Lw,{writable:!0,value:!1}),Object.defineProperty(this,Mw,{writable:!0,value:void 0}),Object.defineProperty(this,zw,{writable:!0,value:void 0}),jw(this,zw)[zw]=e,jw(this,Mw)[Mw]=t}progress(){jw(this,Lw)[Lw]||jw(this,zw)[zw]>0&&(clearTimeout(jw(this,Rw)[Rw]),jw(this,Rw)[Rw]=setTimeout(jw(this,Mw)[Mw],jw(this,zw)[zw]))}done(){jw(this,Lw)[Lw]||(clearTimeout(jw(this,Rw)[Rw]),jw(this,Rw)[Rw]=null,jw(this,Lw)[Lw]=!0)}},Hw=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Uw={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};function Vw(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})),Hw(e)?(n=new qb(n,e),n):(n.request=e,n)}function Ww(e){return e.data.slice(0,e.data.size,e.meta.type)}class qw extends Rb{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Uw;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 Hw(t)&&(n=new qb(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Ow.internalRateLimitedQueue in this.opts?this.requests=this.opts[Ow.internalRateLimitedQueue]:this.requests=new Ow.RateLimitedQueue(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=Ww(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=Ww(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;let a;this.uploaderEvents[e.id]=new _w(this.uppy);const u=new $w(r.timeout,(()=>{i.abort(),a.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),s=(0,Zm.nanoid)();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${s} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${s} progress: ${t.loaded} / ${t.total}`),u.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(()=>{if(this.uppy.log(`[XHRUpload] ${s} finished`),u.done(),a.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(i.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),o=n[r.responseUrlFieldName],a={status:i.status,body:n,uploadURL:o};return this.uppy.emit("upload-success",e,a),o&&this.uppy.log(`Download ${e.name} from ${o}`),t(e)}const o=r.getResponseData(i.responseText,i),c=Vw(i,r.getResponseError(i.responseText,i)),l={status:i.status,body:o};return this.uppy.emit("upload-error",e,c,l),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${s} errored`),u.done(),a.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=Vw(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),a=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),()=>{u.done(),i.abort()}})),this.onFileRemove(e.id,(()=>{a.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(e=>{let{reason:t}=e;"user"===t&&a.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?xw.Provider:xw.RequestClient)(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 xw.Socket({target:`${a}/api/${i}`,autoOpen:!1});let s;this.uploaderEvents[e.id]=new _w(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(function(t){let{reason:r}=void 0===t?{}:t;"user"===r&&(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=>Aw(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)})),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=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))},c=new $w(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));s(e),n(e)}));u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),c.progress()})),u.upload.addEventListener("progress",(t=>{c.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(c.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,s(o),n(o)})),u.addEventListener("error",(()=>{c.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return s(e),n(e)})),this.uppy.on("cancel-all",(function(e){let{reason:t}=void 0===e?{}:e;"user"===t&&(c.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){var n=this;this.uploaderEvents[e].on("cancel-all",(function(){n.uppy.getFile(e)&&t(...arguments)}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[Ow.internalRateLimitedQueue]||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)}}qw.VERSION="2.1.3";var Gw=qw,Kw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Yw(e){var t={exports:{}};return e(t,t.exports),t.exports}var Xw,Zw,Jw=function(e){return e&&e.Math===Math&&e},Qw=Jw("object"==typeof globalThis&&globalThis)||Jw("object"==typeof window&&window)||Jw("object"==typeof self&&self)||Jw("object"==typeof Kw&&Kw)||Jw("object"==typeof Kw&&Kw)||function(){return this}()||Function("return this")(),eE=function(e){try{return!!e()}catch(e){return!0}},tE=!eE((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),nE=!eE((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),rE=Function.prototype.call,oE=nE?rE.bind(rE):function(){return rE.apply(rE,arguments)},iE={}.propertyIsEnumerable,aE=Object.getOwnPropertyDescriptor,uE=aE&&!iE.call({1:2},1)?function(e){var t=aE(this,e);return!!t&&t.enumerable}:iE,sE={f:uE},cE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lE=Function.prototype,fE=lE.call,dE=nE&&lE.bind.bind(fE,fE),pE=nE?dE:function(e){return function(){return fE.apply(e,arguments)}},hE=pE({}.toString),vE=pE("".slice),gE=function(e){return vE(hE(e),8,-1)},yE=Object,mE=pE("".split),bE=eE((function(){return!yE("z").propertyIsEnumerable(0)}))?function(e){return"String"===gE(e)?mE(e,""):yE(e)}:yE,wE=function(e){return null==e},EE=TypeError,SE=function(e){if(wE(e))throw new EE("Can't call method on "+e);return e},CE=function(e){return bE(SE(e))},DE="object"==typeof document&&document.all,xE=void 0===DE&&void 0!==DE?function(e){return"function"==typeof e||e===DE}:function(e){return"function"==typeof e},OE=function(e){return"object"==typeof e?null!==e:xE(e)},AE=function(e,t){return arguments.length<2?(n=Qw[e],xE(n)?n:void 0):Qw[e]&&Qw[e][t];var n},kE=pE({}.isPrototypeOf),BE=Qw.navigator,FE=BE&&BE.userAgent,TE=FE?String(FE):"",PE=Qw.process,_E=Qw.Deno,jE=PE&&PE.versions||_E&&_E.version,NE=jE&&jE.v8;NE&&(Zw=(Xw=NE.split("."))[0]>0&&Xw[0]<4?1:+(Xw[0]+Xw[1])),!Zw&&TE&&(!(Xw=TE.match(/Edge\/(\d+)/))||Xw[1]>=74)&&(Xw=TE.match(/Chrome\/(\d+)/))&&(Zw=+Xw[1]);var IE=Zw,RE=Qw.String,LE=!!Object.getOwnPropertySymbols&&!eE((function(){var e=Symbol("symbol detection");return!RE(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&IE&&IE<41})),ME=LE&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zE=Object,$E=ME?function(e){return"symbol"==typeof e}:function(e){var t=AE("Symbol");return xE(t)&&kE(t.prototype,zE(e))},HE=String,UE=function(e){try{return HE(e)}catch(e){return"Object"}},VE=TypeError,WE=function(e){if(xE(e))return e;throw new VE(UE(e)+" is not a function")},qE=function(e,t){var n=e[t];return wE(n)?void 0:WE(n)},GE=TypeError,KE=Object.defineProperty,YE=function(e,t){try{KE(Qw,e,{value:t,configurable:!0,writable:!0})}catch(n){Qw[e]=t}return t},XE=Yw((function(e){var t="__core-js_shared__",n=e.exports=Qw[t]||YE(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),ZE=function(e,t){return XE[e]||(XE[e]=t||{})},JE=Object,QE=function(e){return JE(SE(e))},eS=pE({}.hasOwnProperty),tS=Object.hasOwn||function(e,t){return eS(QE(e),t)},nS=0,rS=Math.random(),oS=pE(1..toString),iS=function(e){return"Symbol("+(void 0===e?"":e)+")_"+oS(++nS+rS,36)},aS=Qw.Symbol,uS=ZE("wks"),sS=ME?aS.for||aS:aS&&aS.withoutSetter||iS,cS=function(e){return tS(uS,e)||(uS[e]=LE&&tS(aS,e)?aS[e]:sS("Symbol."+e)),uS[e]},lS=TypeError,fS=cS("toPrimitive"),dS=function(e){var t=function(e,t){if(!OE(e)||$E(e))return e;var n,r=qE(e,fS);if(r){if(void 0===t&&(t="default"),n=oE(r,e,t),!OE(n)||$E(n))return n;throw new lS("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&xE(n=e.toString)&&!OE(r=oE(n,e)))return r;if(xE(n=e.valueOf)&&!OE(r=oE(n,e)))return r;if("string"!==t&&xE(n=e.toString)&&!OE(r=oE(n,e)))return r;throw new GE("Can't convert object to primitive value")}(e,t)}(e,"string");return $E(t)?t:t+""},pS=Qw.document,hS=OE(pS)&&OE(pS.createElement),vS=function(e){return hS?pS.createElement(e):{}},gS=!tE&&!eE((function(){return 7!==Object.defineProperty(vS("div"),"a",{get:function(){return 7}}).a})),yS=Object.getOwnPropertyDescriptor,mS={f:tE?yS:function(e,t){if(e=CE(e),t=dS(t),gS)try{return yS(e,t)}catch(e){}if(tS(e,t))return cE(!oE(sE.f,e,t),e[t])}},bS=tE&&eE((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),wS=String,ES=TypeError,SS=function(e){if(OE(e))return e;throw new ES(wS(e)+" is not an object")},CS=TypeError,DS=Object.defineProperty,xS=Object.getOwnPropertyDescriptor,OS="enumerable",AS="configurable",kS="writable",BS={f:tE?bS?function(e,t,n){if(SS(e),t=dS(t),SS(n),"function"==typeof e&&"prototype"===t&&"value"in n&&kS in n&&!n[kS]){var r=xS(e,t);r&&r[kS]&&(e[t]=n.value,n={configurable:AS in n?n[AS]:r[AS],enumerable:OS in n?n[OS]:r[OS],writable:!1})}return DS(e,t,n)}:DS:function(e,t,n){if(SS(e),t=dS(t),SS(n),gS)try{return DS(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new CS("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},FS=tE?function(e,t,n){return BS.f(e,t,cE(1,n))}:function(e,t,n){return e[t]=n,e},TS=Function.prototype,PS=tE&&Object.getOwnPropertyDescriptor,_S=tS(TS,"name"),jS={EXISTS:_S,PROPER:_S&&"something"===function(){}.name,CONFIGURABLE:_S&&(!tE||tE&&PS(TS,"name").configurable)},NS=pE(Function.toString);xE(XE.inspectSource)||(XE.inspectSource=function(e){return NS(e)});var IS,RS,LS,MS=XE.inspectSource,zS=Qw.WeakMap,$S=xE(zS)&&/native code/.test(String(zS)),HS=ZE("keys"),US=function(e){return HS[e]||(HS[e]=iS(e))},VS={},WS="Object already initialized",qS=Qw.TypeError,GS=Qw.WeakMap;if($S||XE.state){var KS=XE.state||(XE.state=new GS);KS.get=KS.get,KS.has=KS.has,KS.set=KS.set,IS=function(e,t){if(KS.has(e))throw new qS(WS);return t.facade=e,KS.set(e,t),t},RS=function(e){return KS.get(e)||{}},LS=function(e){return KS.has(e)}}else{var YS=US("state");VS[YS]=!0,IS=function(e,t){if(tS(e,YS))throw new qS(WS);return t.facade=e,FS(e,YS,t),t},RS=function(e){return tS(e,YS)?e[YS]:{}},LS=function(e){return tS(e,YS)}}var XS={set:IS,get:RS,has:LS,enforce:function(e){return LS(e)?RS(e):IS(e,{})},getterFor:function(e){return function(t){var n;if(!OE(t)||(n=RS(t)).type!==e)throw new qS("Incompatible receiver, "+e+" required");return n}}},ZS=Yw((function(e){var t=jS.CONFIGURABLE,n=XS.enforce,r=XS.get,o=String,i=Object.defineProperty,a=pE("".slice),u=pE("".replace),s=pE([].join),c=tE&&!eE((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!tS(e,"name")||t&&e.name!==r)&&(tE?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&tS(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&tS(f,"constructor")&&f.constructor?tE&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return tS(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return xE(this)&&r(this).source||MS(this)}),"toString")})),JS=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(xE(n)&&ZS(n,i,r),r.global)o?e[t]=n:YE(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:BS.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},QS=Math.ceil,eC=Math.floor,tC=Math.trunc||function(e){var t=+e;return(t>0?eC:QS)(t)},nC=function(e){var t=+e;return t!=t||0===t?0:tC(t)},rC=Math.max,oC=Math.min,iC=function(e,t){var n=nC(e);return n<0?rC(n+t,0):oC(n,t)},aC=Math.min,uC=function(e){var t=nC(e);return t>0?aC(t,9007199254740991):0},sC=function(e){return uC(e.length)},cC=function(e){return function(t,n,r){var o=CE(t),i=sC(o);if(0===i)return!e&&-1;var a,u=iC(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},lC={includes:cC(!0),indexOf:cC(!1)},fC=lC.indexOf,dC=pE([].push),pC=function(e,t){var n,r=CE(e),o=0,i=[];for(n in r)!tS(VS,n)&&tS(r,n)&&dC(i,n);for(;t.length>o;)tS(r,n=t[o++])&&(~fC(i,n)||dC(i,n));return i},hC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vC=hC.concat("length","prototype"),gC={f:Object.getOwnPropertyNames||function(e){return pC(e,vC)}},yC={f:Object.getOwnPropertySymbols},mC=pE([].concat),bC=AE("Reflect","ownKeys")||function(e){var t=gC.f(SS(e)),n=yC.f;return n?mC(t,n(e)):t},wC=function(e,t,n){for(var r=bC(t),o=BS.f,i=mS.f,a=0;a<r.length;a++){var u=r[a];tS(e,u)||n&&tS(n,u)||o(e,u,i(t,u))}},EC=/#|\.prototype\./,SC=function(e,t){var n=DC[CC(e)];return n===OC||n!==xC&&(xE(t)?eE(t):!!t)},CC=SC.normalize=function(e){return String(e).replace(EC,".").toLowerCase()},DC=SC.data={},xC=SC.NATIVE="N",OC=SC.POLYFILL="P",AC=SC,kC=mS.f,BC=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Qw:c?Qw[u]||YE(u,{}):Qw[u]&&Qw[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=kC(n,r))&&a.value:n[r],!AC(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;wC(i,o)}(e.sham||o&&o.sham)&&FS(i,"sham",!0),JS(n,r,i,e)}},FC=Object.keys||function(e){return pC(e,hC)},TC=eE((function(){FC(1)}));BC({target:"Object",stat:!0,forced:TC},{keys:function(e){return FC(QE(e))}});var PC={};PC[cS("toStringTag")]="z";var _C="[object z]"===String(PC),jC=cS("toStringTag"),NC=Object,IC="Arguments"===gE(function(){return arguments}()),RC=_C?gE: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=NC(e),jC))?n:IC?gE(t):"Object"===(r=gE(t))&&xE(t.callee)?"Arguments":r},LC=_C?{}.toString:function(){return"[object "+RC(this)+"]"};_C||JS(Object.prototype,"toString",LC,{unsafe:!0});var MC={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},zC=vS("span").classList,$C=zC&&zC.constructor&&zC.constructor.prototype,HC=$C===Object.prototype?void 0:$C,UC=function(e){if("Function"===gE(e))return pE(e)},VC=UC(UC.bind),WC=function(e,t){return WE(e),void 0===t?e:nE?VC(e,t):function(){return e.apply(t,arguments)}},qC=Array.isArray||function(e){return"Array"===gE(e)},GC=function(){},KC=AE("Reflect","construct"),YC=/^\s*(?:class|function)\b/,XC=pE(YC.exec),ZC=!YC.test(GC),JC=function(e){if(!xE(e))return!1;try{return KC(GC,[],e),!0}catch(e){return!1}},QC=function(e){if(!xE(e))return!1;switch(RC(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ZC||!!XC(YC,MS(e))}catch(e){return!0}};QC.sham=!0;var eD=!KC||eE((function(){var e;return JC(JC.call)||!JC(Object)||!JC((function(){e=!0}))||e}))?QC:JC,tD=cS("species"),nD=Array,rD=function(e,t){return new(function(e){var t;return qC(e)&&(t=e.constructor,(eD(t)&&(t===nD||qC(t.prototype))||OE(t)&&null===(t=t[tD]))&&(t=void 0)),void 0===t?nD:t}(e))(0===t?0:t)},oD=pE([].push),iD=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,c,l,f){for(var d,p,h=QE(s),v=bE(h),g=sC(v),y=WC(c,l),m=0,b=f||rD,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:oD(w,d)}else switch(e){case 4:return!1;case 7:oD(w,d)}return i?-1:r||o?o:w}},aD={forEach:iD(0),map:iD(1),filter:iD(2),some:iD(3),every:iD(4),find:iD(5),findIndex:iD(6),filterReject:iD(7)},uD=function(e,t){var n=[][e];return!!n&&eE((function(){n.call(null,t||function(){return 1},1)}))},sD=aD.forEach,cD=uD("forEach")?[].forEach:function(e){return sD(this,e,arguments.length>1?arguments[1]:void 0)},lD=function(e){if(e&&e.forEach!==cD)try{FS(e,"forEach",cD)}catch(t){e.forEach=cD}};for(var fD in MC)MC[fD]&&lD(Qw[fD]&&Qw[fD].prototype);
|
33
|
+
/*!
|
34
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
35
|
+
*
|
36
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
37
|
+
* Released under the MIT License.
|
38
|
+
*/function dD(e){return"[object Object]"===Object.prototype.toString.call(e)}lD(HC);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||Qd.isOperationList(e.redos[0]))&&(0===e.undos.length||Qd.isOperationList(e.undos[0]));var t,n,r}},hD=new WeakMap,vD=new WeakMap,gD={isHistoryEditor:e=>pD.isHistory(e.history)&&Wd.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=String,mD=function(e){if("Symbol"===RC(e))throw new TypeError("Cannot convert a Symbol value to a string");return yD(e)},bD=function(){var e=SS(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},wD=RegExp.prototype,ED=function(e){var t=e.flags;return void 0!==t||"flags"in wD||tS(e,"flags")||!kE(wD,e)?t:oE(bD,e)},SD=jS.PROPER,CD="toString",DD=RegExp.prototype,xD=DD[CD],OD=eE((function(){return"/a/b"!==xD.call({source:"a",flags:"b"})})),AD=SD&&xD.name!==CD;(OD||AD)&&JS(DD,CD,(function(){var e=SS(this);return"/"+mD(e.source)+"/"+mD(ED(e))}),{unsafe:!0});var kD=function(e,t,n){var r,o;SS(e);try{if(!(r=qE(e,"return"))){if("throw"===t)throw n;return n}r=oE(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return SS(r),n},BD=function(e,t,n,r){try{return r?t(SS(n)[0],n[1]):t(n)}catch(t){kD(e,"throw",t)}},FD={},TD=cS("iterator"),PD=Array.prototype,_D=function(e){return void 0!==e&&(FD.Array===e||PD[TD]===e)},jD=function(e,t,n){tE?BS.f(e,t,cE(0,n)):e[t]=n},ND=cS("iterator"),ID=function(e){if(!wE(e))return qE(e,ND)||qE(e,"@@iterator")||FD[RC(e)]},RD=TypeError,LD=function(e,t){var n=arguments.length<2?ID(e):t;if(WE(n))return SS(oE(n,e));throw new RD(UE(e)+" is not iterable")},MD=Array,zD=cS("iterator"),$D=!1;try{var HD=0,UD={next:function(){return{done:!!HD++}},return:function(){$D=!0}};UD[zD]=function(){return this},Array.from(UD,(function(){throw 2}))}catch(gB){}var VD=function(e,t){try{if(!t&&!$D)return!1}catch(e){return!1}var n=!1;try{var r={};r[zD]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},WD=!VD((function(e){Array.from(e)}));BC({target:"Array",stat:!0,forced:WD},{from:function(e){var t=QE(e),n=eD(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=WC(o,r>2?arguments[2]:void 0));var a,u,s,c,l,f,d=ID(t),p=0;if(!d||this===MD&&_D(d))for(a=sC(t),u=n?new this(a):MD(a);a>p;p++)f=i?o(t[p],p):t[p],jD(u,p,f);else for(u=n?new this:[],l=(c=LD(t,d)).next;!(s=oE(l,c)).done;p++)f=i?BD(c,o,[s.value,p],!0):s.value,jD(u,p,f);return u.length=p,u}});var qD,GD=tE&&!bS?Object.defineProperties:function(e,t){SS(e);for(var n,r=CE(t),o=FC(t),i=o.length,a=0;i>a;)BS.f(e,n=o[a++],r[n]);return e},KD={f:GD},YD=AE("document","documentElement"),XD="prototype",ZD="script",JD=US("IE_PROTO"),QD=function(){},ex=function(e){return"<script>"+e+"</"+ZD+">"},tx=function(e){e.write(ex("")),e.close();var t=e.parentWindow.Object;return e=null,t},nx=function(){try{qD=new ActiveXObject("htmlfile")}catch(e){}var e,t;nx="undefined"!=typeof document?document.domain&&qD?tx(qD):("javascript:",(t=vS("iframe")).style.display="none",YD.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ex("document.F=Object")),e.close(),e.F):tx(qD);for(var n=hC.length;n--;)delete nx[XD][hC[n]];return nx()};VS[JD]=!0;var rx=Object.create||function(e,t){var n;return null!==e?(QD[XD]=SS(e),n=new QD,QD[XD]=null,n[JD]=e):n=nx(),void 0===t?n:KD.f(n,t)},ox=BS.f,ix=cS("unscopables"),ax=Array.prototype;void 0===ax[ix]&&ox(ax,ix,{configurable:!0,value:rx(null)});var ux=function(e){ax[ix][e]=!0},sx=lC.includes,cx=eE((function(){return!Array(1).includes()}));BC({target:"Array",proto:!0,forced:cx},{includes:function(e){return sx(this,e,arguments.length>1?arguments[1]:void 0)}}),ux("includes");var lx=pE([].join),fx=bE!==Object||!uD("join",",");BC({target:"Array",proto:!0,forced:fx},{join:function(e){return lx(CE(this),void 0===e?",":e)}});var dx=cS("species"),px=function(e){return IE>=51||!eE((function(){var t=[];return(t.constructor={})[dx]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},hx=aD.map,vx=px("map");BC({target:"Array",proto:!0,forced:!vx},{map:function(e){return hx(this,e,arguments.length>1?arguments[1]:void 0)}});var gx=!eE((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),yx=US("IE_PROTO"),mx=Object,bx=mx.prototype,wx=gx?mx.getPrototypeOf:function(e){var t=QE(e);if(tS(t,yx))return t[yx];var n=t.constructor;return xE(n)&&t instanceof n?n.prototype:t instanceof mx?bx:null};BC({target:"Reflect",stat:!0},{get:function e(t,n){var r,o,i=arguments.length<3?t:arguments[2];return SS(t)===i?t[n]:(r=mS.f(t,n))?function(e){return void 0!==e&&(tS(e,"value")||tS(e,"writable"))}(r)?r.value:void 0===r.get?void 0:oE(r.get,i):OE(o=wx(t))?e(o,n,i):void 0}});var Ex=Qw.RegExp,Sx=eE((function(){var e=Ex("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),Cx=Sx||eE((function(){return!Ex("a","y").sticky})),Dx={BROKEN_CARET:Sx||eE((function(){var e=Ex("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:Cx,UNSUPPORTED_Y:Sx},xx=Qw.RegExp,Ox=eE((function(){var e=xx(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Ax=Qw.RegExp,kx=eE((function(){var e=Ax("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Bx=XS.get,Fx=ZE("native-string-replace",String.prototype.replace),Tx=RegExp.prototype.exec,Px=Tx,_x=pE("".charAt),jx=pE("".indexOf),Nx=pE("".replace),Ix=pE("".slice),Rx=function(){var e=/a/,t=/b*/g;return oE(Tx,e,"a"),oE(Tx,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Lx=Dx.BROKEN_CARET,Mx=void 0!==/()??/.exec("")[1];(Rx||Mx||Lx||Ox||kx)&&(Px=function(e){var t,n,r,o,i,a,u,s=this,c=Bx(s),l=mD(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=oE(Px,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=Lx&&s.sticky,h=oE(bD,s),v=s.source,g=0,y=l;if(p&&(h=Nx(h,"y",""),-1===jx(h,"g")&&(h+="g"),y=Ix(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==_x(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Mx&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Rx&&(r=s.lastIndex),o=oE(Tx,p?n:s,y),p?o?(o.input=Ix(o.input,g),o[0]=Ix(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Rx&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Mx&&o&&o.length>1&&oE(Fx,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=rx(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var zx=Px;BC({target:"RegExp",proto:!0,forced:/./.exec!==zx},{exec:zx});var $x,Hx=cS("match"),Ux=function(e){var t;return OE(e)&&(void 0!==(t=e[Hx])?!!t:"RegExp"===gE(e))},Vx=TypeError,Wx=function(e){if(Ux(e))throw new Vx("The method doesn't accept regular expressions");return e},qx=cS("match"),Gx=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[qx]=!1,"/./"[e](t)}catch(e){}}return!1},Kx=mS.f,Yx=UC("".slice),Xx=Math.min,Zx=Gx("endsWith"),Jx=!(Zx||($x=Kx(String.prototype,"endsWith"),!$x||$x.writable));BC({target:"String",proto:!0,forced:!Jx&&!Zx},{endsWith:function(e){var t=mD(SE(this));Wx(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Xx(uC(n),r),i=mD(e);return Yx(t,o-i.length,o)===i}});var Qx=pE("".indexOf);BC({target:"String",proto:!0,forced:!Gx("includes")},{includes:function(e){return!!~Qx(mD(SE(this)),mD(Wx(e)),arguments.length>1?arguments[1]:void 0)}});var eO,tO,nO,rO=pE("".charAt),oO=pE("".charCodeAt),iO=pE("".slice),aO=function(e){return function(t,n){var r,o,i=mD(SE(t)),a=nC(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=oO(i,a))<55296||r>56319||a+1===u||(o=oO(i,a+1))<56320||o>57343?e?rO(i,a):r:e?iO(i,a,a+2):o-56320+(r-55296<<10)+65536}},uO={codeAt:aO(!1),charAt:aO(!0)},sO=cS("iterator"),cO=!1;[].keys&&("next"in(nO=[].keys())?(tO=wx(wx(nO)))!==Object.prototype&&(eO=tO):cO=!0);var lO=!OE(eO)||eE((function(){var e={};return eO[sO].call(e)!==e}));lO&&(eO={}),xE(eO[sO])||JS(eO,sO,(function(){return this}));var fO={IteratorPrototype:eO,BUGGY_SAFARI_ITERATORS:cO},dO=BS.f,pO=cS("toStringTag"),hO=function(e,t,n){e&&!n&&(e=e.prototype),e&&!tS(e,pO)&&dO(e,pO,{configurable:!0,value:t})},vO=fO.IteratorPrototype,gO=function(){return this},yO=String,mO=TypeError,bO=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return pE(WE(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return SE(n),function(e){if(function(e){return OE(e)||null===e}(e))return e;throw new mO("Can't set "+yO(e)+" as a prototype")}(r),OE(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),wO=jS.PROPER,EO=jS.CONFIGURABLE,SO=fO.IteratorPrototype,CO=fO.BUGGY_SAFARI_ITERATORS,DO=cS("iterator"),xO="keys",OO="values",AO="entries",kO=function(){return this},BO=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=rx(vO,{next:cE(1,n)}),hO(e,r,!1),FD[r]=gO}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!CO&&e&&e in p)return p[e];switch(e){case xO:case OO:case AO:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[DO]||p["@@iterator"]||o&&p[o],v=!CO&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=wx(g.call(new e)))!==Object.prototype&&u.next&&(wx(u)!==SO&&(bO?bO(u,SO):xE(u[DO])||JS(u,DO,kO)),hO(u,f,!0)),wO&&o===OO&&h&&h.name!==OO&&(EO?FS(p,"name",OO):(d=!0,v=function(){return oE(h,this)})),o)if(s={values:l(OO),keys:i?v:l(xO),entries:l(AO)},a)for(c in s)(CO||d||!(c in p))&&JS(p,c,s[c]);else BC({target:t,proto:!0,forced:CO||d},s);return p[DO]!==v&&JS(p,DO,v,{name:o}),FD[t]=v,s},FO=function(e,t){return{value:e,done:t}},TO=uO.charAt,PO="String Iterator",_O=XS.set,jO=XS.getterFor(PO);BO(String,"String",(function(e){_O(this,{type:PO,string:mD(e),index:0})}),(function(){var e,t=jO(this),n=t.string,r=t.index;return r>=n.length?FO(void 0,!0):(e=TO(n,r),t.index+=e.length,FO(e,!1))}));var NO=Function.prototype,IO=NO.apply,RO=NO.call,LO="object"==typeof Reflect&&Reflect.apply||(nE?RO.bind(IO):function(){return RO.apply(IO,arguments)}),MO=cS("species"),zO=RegExp.prototype,$O=function(e,t,n,r){var o=cS(e),i=!eE((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!eE((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[MO]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=/./[o],s=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===zx||a===zO.exec?i&&!o?{done:!0,value:oE(u,t,n,r)}:{done:!0,value:oE(e,n,t,r)}:{done:!1}}));JS(String.prototype,e,s[0]),JS(zO,o,s[1])}r&&FS(zO[o],"sham",!0)},HO=uO.charAt,UO=function(e,t,n){return t+(n?HO(e,t).length:1)},VO=Math.floor,WO=pE("".charAt),qO=pE("".replace),GO=pE("".slice),KO=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,YO=/\$([$&'`]|\d{1,2})/g,XO=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=YO;return void 0!==o&&(o=QE(o),s=KO),qO(i,s,(function(i,s){var c;switch(WO(s,0)){case"$":return"$";case"&":return e;case"`":return GO(t,0,n);case"'":return GO(t,a);case"<":c=o[GO(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=VO(l/10);return 0===f?i:f<=u?void 0===r[f-1]?WO(s,1):r[f-1]+WO(s,1):i}c=r[l-1]}return void 0===c?"":c}))},ZO=TypeError,JO=function(e,t){var n=e.exec;if(xE(n)){var r=oE(n,e,t);return null!==r&&SS(r),r}if("RegExp"===gE(e))return oE(zx,e,t);throw new ZO("RegExp#exec called on incompatible receiver")},QO=cS("replace"),eA=Math.max,tA=Math.min,nA=pE([].concat),rA=pE([].push),oA=pE("".indexOf),iA=pE("".slice),aA="$0"==="a".replace(/./,"$0"),uA=!!/./[QO]&&""===/./[QO]("a","$0");$O("replace",(function(e,t,n){var r=uA?"$":"$0";return[function(e,n){var r=SE(this),o=wE(e)?void 0:qE(e,QO);return o?oE(o,e,r,n):oE(t,mD(r),e,n)},function(e,o){var i=SS(this),a=mD(e);if("string"==typeof o&&-1===oA(o,r)&&-1===oA(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=xE(o);s||(o=mD(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=JO(i,a))&&(rA(d,f),l);)""===mD(f[0])&&(i.lastIndex=UO(a,uC(i.lastIndex),c));for(var p,h="",v=0,g=0;g<d.length;g++){for(var y,m=mD((f=d[g])[0]),b=eA(tA(nC(f.index),a.length),0),w=[],E=1;E<f.length;E++)rA(w,void 0===(p=f[E])?p:String(p));var S=f.groups;if(s){var C=nA([m],w,b,a);void 0!==S&&rA(C,S),y=mD(LO(o,void 0,C))}else y=XO(m,a,b,w,S,o);b>=v&&(h+=iA(a,v,b)+y,v=b+m.length)}return h+iA(a,v)}]}),!!eE((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!aA||uA);var sA=/"/g,cA=pE("".replace);BC({target:"String",proto:!0,forced:eE((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=mD(SE(this)),r="<a",(r+=' name="'+cA(mD(t),sA,""")+'"')+">"+n+"</a>";var t,n,r}});
|
39
|
+
/*! *****************************************************************************
|
40
|
+
Copyright (c) Microsoft Corporation.
|
41
|
+
|
42
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
43
|
+
purpose with or without fee is hereby granted.
|
44
|
+
|
45
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
46
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
47
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
48
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
49
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
50
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
51
|
+
PERFORMANCE OF THIS SOFTWARE.
|
52
|
+
***************************************************************************** */
|
53
|
+
var lA=function(e,t){return lA=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])},lA(e,t)};function fA(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}lA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var dA=function(){return dA=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},dA.apply(this,arguments)};function pA(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 hA(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 vA(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var gA=aD.find,yA="find",mA=!0;yA in[]&&Array(1)[yA]((function(){mA=!1})),BC({target:"Array",proto:!0,forced:mA},{find:function(e){return gA(this,e,arguments.length>1?arguments[1]:void 0)}}),ux(yA),BC({global:!0,forced:Qw.globalThis!==Qw},{globalThis:Qw});const bA=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];var wA,EA,SA,CA,DA=function(e){return TE.slice(0,e.length)===e},xA=DA("Bun/")?"BUN":DA("Cloudflare-Workers")?"CLOUDFLARE":DA("Deno/")?"DENO":DA("Node.js/")?"NODE":Qw.Bun&&"string"==typeof Bun.version?"BUN":Qw.Deno&&"object"==typeof Deno.version?"DENO":"process"===gE(Qw.process)?"NODE":Qw.window&&Qw.document?"BROWSER":"REST",OA="NODE"===xA,AA=function(e,t,n){return n.get&&ZS(n.get,t,{getter:!0}),n.set&&ZS(n.set,t,{setter:!0}),BS.f(e,t,n)},kA=cS("species"),BA=function(e){var t=AE(e);tE&&t&&!t[kA]&&AA(t,kA,{configurable:!0,get:function(){return this}})},FA=TypeError,TA=function(e,t){if(kE(t,e))return e;throw new FA("Incorrect invocation")},PA=TypeError,_A=cS("species"),jA=function(e,t){var n,r=SS(e).constructor;return void 0===r||wE(n=SS(r)[_A])?t:function(e){if(eD(e))return e;throw new PA(UE(e)+" is not a constructor")}(n)},NA=pE([].slice),IA=TypeError,RA=/(?:ipad|iphone|ipod).*applewebkit/i.test(TE),LA=Qw.setImmediate,MA=Qw.clearImmediate,zA=Qw.process,$A=Qw.Dispatch,HA=Qw.Function,UA=Qw.MessageChannel,VA=Qw.String,WA=0,qA={},GA="onreadystatechange";eE((function(){wA=Qw.location}));var KA=function(e){if(tS(qA,e)){var t=qA[e];delete qA[e],t()}},YA=function(e){return function(){KA(e)}},XA=function(e){KA(e.data)},ZA=function(e){Qw.postMessage(VA(e),wA.protocol+"//"+wA.host)};LA&&MA||(LA=function(e){!function(e){if(e<1)throw new IA("Not enough arguments")}(arguments.length);var t=xE(e)?e:HA(e),n=NA(arguments,1);return qA[++WA]=function(){LO(t,void 0,n)},EA(WA),WA},MA=function(e){delete qA[e]},OA?EA=function(e){zA.nextTick(YA(e))}:$A&&$A.now?EA=function(e){$A.now(YA(e))}:UA&&!RA?(CA=(SA=new UA).port2,SA.port1.onmessage=XA,EA=WC(CA.postMessage,CA)):Qw.addEventListener&&xE(Qw.postMessage)&&!Qw.importScripts&&wA&&"file:"!==wA.protocol&&!eE(ZA)?(EA=ZA,Qw.addEventListener("message",XA,!1)):EA=GA in vS("script")?function(e){YD.appendChild(vS("script"))[GA]=function(){YD.removeChild(this),KA(e)}}:function(e){setTimeout(YA(e),0)});var JA={set:LA,clear:MA},QA=Object.getOwnPropertyDescriptor,ek=function(){this.head=null,this.tail=null};ek.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var tk,nk,rk,ok,ik,ak=ek,uk=/ipad|iphone|ipod/i.test(TE)&&"undefined"!=typeof Pebble,sk=/web0s(?!.*chrome)/i.test(TE),ck=JA.set,lk=Qw.MutationObserver||Qw.WebKitMutationObserver,fk=Qw.document,dk=Qw.process,pk=Qw.Promise,hk=function(e){if(!tE)return Qw[e];var t=QA(Qw,e);return t&&t.value}("queueMicrotask");if(!hk){var vk=new ak,gk=function(){var e,t;for(OA&&(e=dk.domain)&&e.exit();t=vk.get();)try{t()}catch(e){throw vk.head&&tk(),e}e&&e.enter()};RA||OA||sk||!lk||!fk?!uk&&pk&&pk.resolve?((ok=pk.resolve(void 0)).constructor=pk,ik=WC(ok.then,ok),tk=function(){ik(gk)}):OA?tk=function(){dk.nextTick(gk)}:(ck=WC(ck,Qw),tk=function(){ck(gk)}):(nk=!0,rk=fk.createTextNode(""),new lk(gk).observe(rk,{characterData:!0}),tk=function(){rk.data=nk=!nk}),hk=function(e){vk.head||tk(),vk.add(e)}}var yk=hk,mk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},bk=Qw.Promise;bk&&bk.prototype;var wk,Ek,Sk,Ck=cS("species"),Dk=!1,xk=xE(Qw.PromiseRejectionEvent),Ok=AC("Promise",(function(){var e=MS(bk),t=e!==String(bk);if(!t&&66===IE)return!0;if(!IE||IE<51||!/native code/.test(e)){var n=new bk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Ck]=r,!(Dk=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==xA&&"DENO"!==xA||xk)})),Ak={CONSTRUCTOR:Ok,REJECTION_EVENT:xk,SUBCLASSING:Dk},kk=TypeError,Bk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new kk("Bad Promise constructor");t=e,n=r})),this.resolve=WE(t),this.reject=WE(n)},Fk={f:function(e){return new Bk(e)}},Tk=JA.set,Pk="Promise",_k=Ak.CONSTRUCTOR,jk=Ak.REJECTION_EVENT,Nk=Ak.SUBCLASSING,Ik=XS.getterFor(Pk),Rk=XS.set,Lk=bk&&bk.prototype,Mk=bk,zk=Lk,$k=Qw.TypeError,Hk=Qw.document,Uk=Qw.process,Vk=Fk.f,Wk=Vk,qk=!!(Hk&&Hk.createEvent&&Qw.dispatchEvent),Gk="unhandledrejection",Kk=function(e){var t;return!(!OE(e)||!xE(t=e.then))&&t},Yk=function(e,t){var n,r,o,i=t.value,a=1===t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&eB(t),t.rejection=1),!0===u?n=i:(l&&l.enter(),n=u(i),l&&(l.exit(),o=!0)),n===e.promise?c(new $k("Promise-chain cycle")):(r=Kk(n))?oE(r,n,s,c):s(n)):c(i)}catch(e){l&&!o&&l.exit(),c(e)}},Xk=function(e,t){e.notified||(e.notified=!0,yk((function(){for(var n,r=e.reactions;n=r.get();)Yk(n,e);e.notified=!1,t&&!e.rejection&&Jk(e)})))},Zk=function(e,t,n){var r,o;qk?((r=Hk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Qw.dispatchEvent(r)):r={promise:t,reason:n},!jk&&(o=Qw["on"+e])?o(r):e===Gk&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}("Unhandled promise rejection",n)},Jk=function(e){oE(Tk,Qw,(function(){var t,n=e.facade,r=e.value;if(Qk(e)&&(t=mk((function(){OA?Uk.emit("unhandledRejection",r,n):Zk(Gk,n,r)})),e.rejection=OA||Qk(e)?2:1,t.error))throw t.value}))},Qk=function(e){return 1!==e.rejection&&!e.parent},eB=function(e){oE(Tk,Qw,(function(){var t=e.facade;OA?Uk.emit("rejectionHandled",t):Zk("rejectionhandled",t,e.value)}))},tB=function(e,t,n){return function(r){e(t,r,n)}},nB=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Xk(e,!0))},rB=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new $k("Promise can't be resolved itself");var r=Kk(t);r?yk((function(){var n={done:!1};try{oE(r,t,tB(rB,n,e),tB(nB,n,e))}catch(t){nB(n,t,e)}})):(e.value=t,e.state=1,Xk(e,!1))}catch(t){nB({done:!1},t,e)}}};if(_k&&(zk=(Mk=function(e){TA(this,zk),WE(e),oE(wk,this);var t=Ik(this);try{e(tB(rB,t),tB(nB,t))}catch(e){nB(t,e)}}).prototype,(wk=function(e){Rk(this,{type:Pk,done:!1,notified:!1,parent:!1,reactions:new ak,rejection:!1,state:0,value:null})}).prototype=JS(zk,"then",(function(e,t){var n=Ik(this),r=Vk(jA(this,Mk));return n.parent=!0,r.ok=!xE(e)||e,r.fail=xE(t)&&t,r.domain=OA?Uk.domain:void 0,0===n.state?n.reactions.add(r):yk((function(){Yk(r,n)})),r.promise})),Ek=function(){var e=new wk,t=Ik(e);this.promise=e,this.resolve=tB(rB,t),this.reject=tB(nB,t)},Fk.f=Vk=function(e){return e===Mk||void 0===e?new Ek(e):Wk(e)},xE(bk)&&Lk!==Object.prototype)){Sk=Lk.then,Nk||JS(Lk,"then",(function(e,t){var n=this;return new Mk((function(e,t){oE(Sk,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Lk.constructor}catch(gB){}bO&&bO(Lk,zk)}BC({global:!0,constructor:!0,wrap:!0,forced:_k},{Promise:Mk}),hO(Mk,Pk,!1),BA(Pk);var oB=TypeError,iB=function(e,t){this.stopped=e,this.result=t},aB=iB.prototype,uB=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=WC(t,l),g=function(e){return r&&kD(r,"normal",e),new iB(!0,e)},y=function(e){return f?(SS(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(d)r=e.iterator;else if(p)r=e;else{if(!(o=ID(e)))throw new oB(UE(e)+" is not iterable");if(_D(o)){for(i=0,a=sC(e);a>i;i++)if((u=y(e[i]))&&kE(aB,u))return u;return new iB(!1)}r=LD(e,o)}for(s=d?e.next:r.next;!(c=oE(s,r)).done;){try{u=y(c.value)}catch(e){kD(r,"throw",e)}if("object"==typeof u&&u&&kE(aB,u))return u}return new iB(!1)},sB=Ak.CONSTRUCTOR||!VD((function(e){bk.all(e).then(void 0,(function(){}))}));BC({target:"Promise",stat:!0,forced:sB},{all:function(e){var t=this,n=Fk.f(t),r=n.resolve,o=n.reject,i=mk((function(){var n=WE(t.resolve),i=[],a=0,u=1;uB(e,(function(e){var s=a++,c=!1;u++,oE(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var cB=Ak.CONSTRUCTOR,lB=bk&&bk.prototype;if(BC({target:"Promise",proto:!0,forced:cB,real:!0},{catch:function(e){return this.then(void 0,e)}}),xE(bk)){var fB=AE("Promise").prototype.catch;lB.catch!==fB&&JS(lB,"catch",fB,{unsafe:!0})}BC({target:"Promise",stat:!0,forced:sB},{race:function(e){var t=this,n=Fk.f(t),r=n.reject,o=mk((function(){var o=WE(t.resolve);uB(e,(function(e){oE(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),BC({target:"Promise",stat:!0,forced:Ak.CONSTRUCTOR},{reject:function(e){var t=Fk.f(this);return(0,t.reject)(e),t.promise}});var dB=Ak.CONSTRUCTOR;function pB(e){Promise.resolve().then(e)}AE("Promise"),BC({target:"Promise",stat:!0,forced:dB},{resolve:function(e){return function(e,t){if(SS(e),OE(t)&&t.constructor===e)return t;var n=Fk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}});var hB=function(e){return Object.prototype.toString.call(e)};bv&&(ov.fn.css=bv),xv&&(ov.fn.append=xv),iv&&(ov.fn.addClass=iv),av&&(ov.fn.removeClass=av),uv&&(ov.fn.hasClass=uv),dv&&(ov.fn.on=dv),Iv&&(ov.fn.focus=Iv),sv&&(ov.fn.attr=sv),cv&&(ov.fn.removeAttr=cv),yv&&(ov.fn.hide=yv),mv&&(ov.fn.show=mv),gv&&(ov.fn.offset=gv),hv&&(ov.fn.width=hv),vv&&(ov.fn.height=vv),Av&&(ov.fn.parent=Av),kv&&(ov.fn.parents=kv),Dv&&(ov.fn.is=Dv),lv&&(ov.fn.dataset=lv),fv&&(ov.fn.val=fv),Cv&&(ov.fn.text=Cv),Sv&&(ov.fn.html=Sv),Fv&&(ov.fn.children=Fv),Tv&&(ov.fn.remove=Tv),Bv&&(ov.fn.find=Bv),wv&&(ov.fn.each=wv),Pv&&(ov.fn.empty=Pv);var vB,gB,yB=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},mB=function(e){return bB(e)&&1===e.nodeType},bB=function(e){var t=yB(e);return!!t&&e instanceof t.Node},wB=function(e){var t=e&&e.anchorNode&&yB(e.anchorNode);return!!t&&e instanceof t.Selection},EB=function(e){return bB(e)&&3===e.nodeType},SB=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},CB=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(bB(r=i)&&8===r.nodeType||mB(i)&&0===i.childNodes.length||mB(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]},DB=function(e,t,n){return hA(CB(e,t,n),1)[0]},xB=function(e){var t,n,r="";if(EB(e)&&e.nodeValue)return e.nodeValue;if(mB(e)){try{for(var o=pA(Array.from(e.childNodes)),i=o.next();!i.done;i=o.next()){var a=i.value;r+=xB(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}var u=getComputedStyle(e).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==e.tagName||(r+="\n")}return r};function OB(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||OB(o,t)}}function AB(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==vB.ELEMENT_NODE?"":t.tagName.toLowerCase()}(gB=vB||(vB={}))[gB.ELEMENT_NODE=1]="ELEMENT_NODE",gB[gB.TEXT_NODE=3]="TEXT_NODE",gB[gB.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",gB[gB.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",gB[gB.COMMENT_NODE=8]="COMMENT_NODE",gB[gB.DOCUMENT_NODE=9]="DOCUMENT_NODE",gB[gB.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",gB[gB.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var kB=0,BB=function(){this.id=""+kB++};void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var FB="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),TB="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 PB="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),_B="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),jB="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),NB="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var IB=!jB&&!_B&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,RB=BS.f,LB="Array Iterator",MB=XS.set,zB=XS.getterFor(LB),$B=BO(Array,"Array",(function(e,t){MB(this,{type:LB,target:CE(e),index:0,kind:t})}),(function(){var e=zB(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,FO(void 0,!0);switch(e.kind){case"keys":return FO(n,!1);case"values":return FO(t[n],!1)}return FO([n,t[n]],!1)}),"values"),HB=FD.Arguments=FD.Array;if(ux("keys"),ux("values"),ux("entries"),tE&&"values"!==HB.name)try{RB(HB,"name",{value:"values"})}catch(gB){}var UB=!eE((function(){return Object.isExtensible(Object.preventExtensions({}))})),VB=function(e,t,n){for(var r in t)JS(e,r,t[r],n);return e},WB=gC.f,qB="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],GB={f:function(e){return qB&&"Window"===gE(e)?function(e){try{return WB(e)}catch(e){return NA(qB)}}(e):WB(CE(e))}},KB=eE((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),YB=Object.isExtensible,XB=eE((function(){YB(1)}))||KB?function(e){return!!OE(e)&&(!KB||"ArrayBuffer"!==gE(e))&&(!YB||YB(e))}:YB,ZB=Yw((function(e){var t=BS.f,n=!1,r=iS("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=gC.f,t=pE([].splice),o={};o[r]=1,e(o).length&&(gC.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},BC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:GB.f}))},fastKey:function(e,t){if(!OE(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!tS(e,r)){if(!XB(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!tS(e,r)){if(!XB(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return UB&&n&&XB(e)&&!tS(e,r)&&i(e),e}};VS[r]=!0})),JB=function(e,t,n){var r,o;return bO&&xE(r=t.constructor)&&r!==n&&OE(o=r.prototype)&&o!==n.prototype&&bO(e,o),e},QB=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Qw[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=pE(u[e]);JS(u,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!OE(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!OE(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!OE(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(AC(e,!xE(a)||!(o||u.forEach&&!eE((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),ZB.enable();else if(AC(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!==f,p=eE((function(){f.has(1)})),h=VD((function(e){new a(e)})),v=!o&&eE((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){TA(e,u);var n=JB(new a,e,s);return wE(t)||uB(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,BC({global:!0,constructor:!0,forced:s!==a},c),hO(s,e),o||n.setStrong(s,e,r),s},eF=ZB.getWeakData,tF=XS.set,nF=XS.getterFor,rF=aD.find,oF=aD.findIndex,iF=pE([].splice),aF=0,uF=function(e){return e.frozen||(e.frozen=new sF)},sF=function(){this.entries=[]},cF=function(e,t){return rF(e.entries,(function(e){return e[0]===t}))};sF.prototype={get:function(e){var t=cF(this,e);if(t)return t[1]},has:function(e){return!!cF(this,e)},set:function(e,t){var n=cF(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=oF(this.entries,(function(t){return t[0]===e}));return~t&&iF(this.entries,t,1),!!~t}};var lF,fF={getConstructor:function(e,t,n,r){var o=e((function(e,o){TA(e,i),tF(e,{type:t,id:aF++,frozen:null}),wE(o)||uB(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=nF(t),u=function(e,t,n){var r=a(e),o=eF(SS(t),!0);return!0===o?uF(r).set(t,n):o[r.id]=n,e};return VB(i,{delete:function(e){var t=a(this);if(!OE(e))return!1;var n=eF(e);return!0===n?uF(t).delete(e):n&&tS(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!OE(e))return!1;var n=eF(e);return!0===n?uF(t).has(e):n&&tS(n,t.id)}}),VB(i,n?{get:function(e){var t=a(this);if(OE(e)){var n=eF(e);if(!0===n)return uF(t).get(e);if(n)return n[t.id]}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},dF=XS.enforce,pF=Object,hF=Array.isArray,vF=pF.isExtensible,gF=pF.isFrozen,yF=pF.isSealed,mF=pF.freeze,bF=pF.seal,wF=!Qw.ActiveXObject&&"ActiveXObject"in Qw,EF=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},SF=QB("WeakMap",EF,fF),CF=SF.prototype,DF=pE(CF.set);if($S)if(wF){lF=fF.getConstructor(EF,"WeakMap",!0),ZB.enable();var xF=pE(CF.delete),OF=pE(CF.has),AF=pE(CF.get);VB(CF,{delete:function(e){if(OE(e)&&!vF(e)){var t=dF(this);return t.frozen||(t.frozen=new lF),xF(this,e)||t.frozen.delete(e)}return xF(this,e)},has:function(e){if(OE(e)&&!vF(e)){var t=dF(this);return t.frozen||(t.frozen=new lF),OF(this,e)||t.frozen.has(e)}return OF(this,e)},get:function(e){if(OE(e)&&!vF(e)){var t=dF(this);return t.frozen||(t.frozen=new lF),OF(this,e)?AF(this,e):t.frozen.get(e)}return AF(this,e)},set:function(e,t){if(OE(e)&&!vF(e)){var n=dF(this);n.frozen||(n.frozen=new lF),OF(this,e)?DF(this,e,t):n.frozen.set(e,t)}else DF(this,e,t);return this}})}else UB&&eE((function(){var e=mF([]);return DF(new SF,e,1),!gF(e)}))&&VB(CF,{set:function(e,t){var n;return hF(e)&&(gF(e)?n=mF:yF(e)&&(n=bF)),DF(this,e,t),n&&n(e),this}});var kF=cS("iterator"),BF=$B.values,FF=function(e,t){if(e){if(e[kF]!==BF)try{FS(e,kF,BF)}catch(t){e[kF]=BF}if(hO(e,t,!0),MC[t])for(var n in $B)if(e[n]!==$B[n])try{FS(e,n,$B[n])}catch(t){e[n]=$B[n]}}};for(var TF in MC)FF(Qw[TF]&&Qw[TF].prototype,TF);FF(HC,"DOMTokenList");var PF=new WeakMap,_F=new WeakMap,jF=new WeakMap,NF=new WeakMap,IF=new WeakMap,RF=new WeakMap,LF=new WeakMap,MF=new WeakMap,zF=new WeakMap,$F=new WeakMap,HF=new WeakMap,UF=new WeakMap,VF=new WeakMap,WF=new WeakMap,qF=new WeakMap,GF=new WeakMap,KF=new WeakMap,YF=new WeakMap,XF=new WeakMap,ZF=new WeakMap,JF=new WeakMap,QF=new WeakMap,eT=new WeakMap,tT=new WeakMap,nT=new WeakMap,rT={getWindow:function(e){var t=JF.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=ZF.get(t);return n||(n=new BB,ZF.set(t,n)),n},setNewKey:function(e){var t=new BB;ZF.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=qF.get(r);if(null==o){if(Wd.isEditor(r))return n;break}var i=WF.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=rT.toDOMNode(e,e),n=t.getRootNode();return"[object HTMLDocument]"!==hB(n)&&!function(e){return"[object ShadowRoot]"===hB(e)}(n)||null==Reflect.get(n,"getSelection")?t.ownerDocument:n},getParentNode:function(e,t){return qF.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=rT.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[rT.findPath(e,t)[0]];return Xd.get(e,n)},toDOMNode:function(e,t){var n;if(Wd.isEditor(t))n=GF.get(e);else{var r=rT.findKey(e,t);n=YF.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=rT.toDOMNode(e,e);try{r=mB(t)?t:t.parentElement}catch(e){if(e instanceof Error&&!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=sp.isBackward(t),i=rT.toDOMPoint(e,n),a=sp.isCollapsed(t)?i:rT.toDOMPoint(e,r),u=rT.getWindow(e).document.createRange(),s=hA(o?a:i,2),c=s[0],l=s[1],f=hA(o?i:a,2),d=f[0],p=f[1],h=!!(mB(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),v=!!(mB(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(c,h?1:l),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=hA(Wd.node(e,t.path),1)[0],a=rT.toDOMNode(e,i);Wd.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 c=pA(u),l=c.next();!l.done;l=c.next()){var f=l.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{l&&!l.done&&(r=c.return)&&r.call(c)}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=mB(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?KF.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=rT.toSlateNode(e,t.target),u=rT.findPath(e,a);if(Wd.isVoid(e,a)){var s=o.getBoundingClientRect(),c=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,l=Wd.point(e,u,{edge:c?"start":"end"}),f=c?Wd.before(e,l):Wd.after(e,l);if(f)return Wd.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 rT.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,c=n.suppressThrow;if((wB(t)?t.anchorNode:t.startContainer)&&(wB(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=NB&&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 l=rT.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:c});if(!l)return null;var f=u?l:rT.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:c});if(!f)return null;var d={anchor:l,focus:f};return sp.isExpanded(d)&&sp.isForward(d)&&mB(i)&&Wd.void(e,{at:d.focus,mode:"highest"})&&(d=Wd.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=hA(o?t:function(e){var t,n=hA(e,2),r=n[0],o=n[1];if(mB(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=hA(CB(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;mB(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=DB(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],c=u.parentNode,l=null,f=0;if(c){var d=c.closest('[data-slate-void="true"]'),p=c.closest("[data-slate-leaf]"),h=null,v=rT.getWindow(e);if(p&&v.document.createRange){l=p.closest('[data-slate-node="text"]');var g=v.document.createRange();g.setStart(l,0),g.setEnd(u,s);var y=g.cloneContents();vA(vA([],hA(Vh(y.querySelectorAll("[data-slate-zero-width]")))),hA(Vh(y.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=y.textContent.length,h=l}else d&&((p=d.querySelector("[data-slate-leaf]"))?(l=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&&(c.hasAttribute("data-slate-zero-width")||TB&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&(f-=1)}if(!l){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var m=rT.toSlateNode(e,l);return{path:rT.findPath(e,m),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Wd.hasPath(e,n.path)&&Wd.hasPath(e,r.path)},getNodeType:function(e){return Md.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Xd.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Wd.nodes(e,{universal:!0});try{for(var i=pA(o),a=i.next();!a.done;a=i.next()){var u=hA(a.value,1)[0];Md.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=hA(Wd.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=hA(Wd.nodes(e,{match:function(e){return vp.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=hA(Wd.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&hA(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Wd.isEnd(e,n.anchor,t)||Wd.isEnd(e,n.focus,t))},getTextarea:function(e){var t=PF.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return NF.get(e)||null},getHoverbar:function(e){return RF.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)|(\n\r)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=rT.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=pA(Array.from(a)),s=u.next();!s.done;s=u.next()){var c=s.value;if(!EB(c))break;c.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var l=Wd.nodes(e,{match:function(t){return!(!Md.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=pA(l),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];OB(rT.toDOMNode(e,h),(function(e,t){var n=ov(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=Wd.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=pA(r),a=i.next();!a.done;a=i.next())a.value&&(o+=1)}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(sp.isExpanded(t))return!1;var n=rT.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=Wd.node(e,t);if(null==n)return!1;var r=hA(n,1)[0].children;return 1===r.length&&""===r[0].text}},oT=1,iT={},aT={},uT=aD.filter,sT=px("filter");BC({target:"Array",proto:!0,forced:!sT},{filter:function(e){return uT(this,e,arguments.length>1?arguments[1]:void 0)}});var cT="\t\n\v\f\r \u2028\u2029\ufeff",lT=pE("".replace),fT=RegExp("^["+cT+"]+"),dT=RegExp("(^|[^"+cT+"])["+cT+"]+$"),pT=function(e){return function(t){var n=mD(SE(t));return 1&e&&(n=lT(n,fT,"")),2&e&&(n=lT(n,dT,"$1")),n}},hT={start:pT(1),end:pT(2),trim:pT(3)},vT=jS.PROPER,gT=hT.trim;BC({target:"String",proto:!0,forced:function(e){return eE((function(){return!!cT[e]()||"
"!=="
"[e]()||vT&&cT[e].name!==e}))}("trim")},{trim:function(){return gT(this)}});var yT=[],mT={};function bT(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function wT(e,t){return Md.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Wd.isVoid(t,e),u="";a||(u=i.map((function(e){return wT(e,t)})).join(""));var s=function(e){return mT[e]||bT}(r),c=s(e,u,t),l="";if(l="string"==typeof c?c:c.html||"",a||yT.forEach((function(t){return l=t(e,l)})),"string"==typeof c)return l;var f=c.prefix,d=void 0===f?"":f,p=c.suffix,h=void 0===p?"":p;return d&&(l=d+l),h&&(l+=h),l}(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=rT.getParentsNodes(t,e).some((function(e){return"pre"===rT.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=rT.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return yT.forEach((function(t){return r=t(e,r)})),r}(e,t)}function ET(e){return"w-e-element-"+e}var ST=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},CT=function(e,t,n){var r=rT.toDOMRange(e,t).getBoundingClientRect(),o=rT.toDOMRange(e,n).getBoundingClientRect();return ST(r,o)&&ST(o,r)},DT=["span","b","strong","i","em","s","strike","u","font","sub","sup"],xT=[],OT=[],AT={},kT=BS.f,BT=function(e,t,n){n in e||kT(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},FT=gC.f,TT=XS.enforce,PT=cS("match"),_T=Qw.RegExp,jT=_T.prototype,NT=Qw.SyntaxError,IT=pE(jT.exec),RT=pE("".charAt),LT=pE("".replace),MT=pE("".indexOf),zT=pE("".slice),$T=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,HT=/a/g,UT=/a/g,VT=new _T(HT)!==HT,WT=Dx.MISSED_STICKY,qT=Dx.UNSUPPORTED_Y,GT=tE&&(!VT||WT||Ox||kx||eE((function(){return UT[PT]=!1,_T(HT)!==HT||_T(UT)===UT||"/a/i"!==String(_T(HT,"i"))})));if(AC("RegExp",GT)){for(var KT=function(e,t){var n,r,o,i,a,u,s=kE(jT,this),c=Ux(e),l=void 0===t,f=[],d=e;if(!s&&c&&l&&e.constructor===KT)return e;if((c||kE(jT,e))&&(e=e.source,l&&(t=ED(d))),e=void 0===e?"":mD(e),t=void 0===t?"":mD(t),d=e,Ox&&"dotAll"in HT&&(r=!!t&&MT(t,"s")>-1)&&(t=LT(t,/s/g,"")),n=t,WT&&"sticky"in HT&&(o=!!t&&MT(t,"y")>-1)&&qT&&(t=LT(t,/y/g,"")),kx&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=rx(null),u=!1,s=!1,c=0,l="";r<=n;r++){if("\\"===(t=RT(e,r)))t+=RT(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:if(o+=t,"?:"===zT(e,r+1,r+3))continue;IT($T,zT(e,r+1))&&(r+=2,s=!0),c++;continue;case">"===t&&s:if(""===l||tS(a,l))throw new NT("Invalid capture group name");a[l]=!0,i[i.length]=[l,c],s=!1,l="";continue}s?l+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=JB(_T(e,t),s?this:jT,KT),(r||o||f.length)&&(u=TT(a),r&&(u.dotAll=!0,u.raw=KT(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=RT(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+RT(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{FS(a,"source",""===d?"(?:)":d)}catch(e){}return a},YT=FT(_T),XT=0;YT.length>XT;)BT(KT,_T,YT[XT++]);jT.constructor=KT,KT.prototype=jT,JS(Qw,"RegExp",KT,{constructor:!0})}BA("RegExp");var ZT=new RegExp(String.fromCharCode(160),"g");function JT(e){return e.replace(ZT," ")}function QT(e,t){var n=e.length;if(n){var r=e[n-1];if(vp.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function eP(e,t,n){return{type:"paragraph",children:[{text:ov(e).text().replace(/\s+/gm," ")}]}}function tP(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!==vB.ELEMENT_NODE)if(e.nodeType!==vB.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=JT(r),QT(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(QT(n,"\n")||n.push({text:"\n"}));var o=rP(ov(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 AT)if(e[0].matches(t))return AT[t];return eP}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){Wd.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),OT.forEach((function(n){r=n(e[0],r,t)})))})),o}function nP(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=JT(n)};return OT.forEach((function(n){r=n(e[0],r,t)})),r}function rP(e,t){xT.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=ov(r(e[0])))}));var n=AB(e);return"span"===n?e.attr("data-w-e-type")?tP(e,t):nP(e,t):"code"===n?"pre"===AB(e.parent())?tP(e,t):nP(e,t):DT.includes(n)?nP(e,t):tP(e,t)}var oP=Dx.UNSUPPORTED_Y,iP=Math.min,aP=pE([].push),uP=pE("".slice),sP=!eE((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]})),cP="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;function lP(e,t,n){var r=ov(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function fP(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=ov("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=rP(ov(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}$O("split",(function(e,t,n){var r="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:oE(t,this,e,n)}:t;return[function(t,n){var o=SE(this),i=wE(t)?void 0:qE(t,e);return i?oE(i,t,o,n):oE(r,mD(o),t,n)},function(e,o){var i=SS(this),a=mD(e);if(!cP){var u=n(r,i,a,o,r!==t);if(u.done)return u.value}var s=jA(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(oP?"g":"y"),f=new s(oP?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===JO(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=oP?0:h;var g,y=JO(f,oP?uP(a,h):a);if(null===y||(g=iP(uC(f.lastIndex+(oP?h:0)),a.length))===p)h=UO(a,h,c);else{if(aP(v,uP(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(aP(v,y[m]),v.length===d)return v;h=p=g}}return aP(v,uP(a,p)),v}]}),cP||!sP,oP);var dP=ZB.fastKey,pP=XS.set,hP=XS.getterFor,vP={getConstructor:function(e,t,n,r){var o=e((function(e,o){TA(e,i),pP(e,{type:t,index:rx(null),first:null,last:null,size:0}),tE||(e.size=0),wE(o)||uB(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=hP(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=dP(t,!0),key:t,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=u),r&&(r.next=u),tE?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=dP(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return VB(i,{clear:function(){for(var e=a(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=rx(null),tE?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),tE?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=WC(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)}}),VB(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)}}),tE&&AA(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=hP(t),i=hP(r);BO(e,t,(function(e,t){pP(this,{type:r,target:e,state:o(e),kind:t,last:null})}),(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)?FO("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,FO(void 0,!0))}),n?"entries":"values",!n,!0),BA(t)}};QB("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),vP);var gP=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function yP(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):_p.insertNodes(e,t,{mode:"highest"})}var mP=function(e){return null!=e},bP={object:!0,function:!0,undefined:!0},wP=/^\s*class[\s{/}]/,EP=Function.prototype.toString,SP=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!!mP(e)&&hasOwnProperty.call(bP,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!wP.test(EP.call(e))},CP=function(e){return null!=e},DP=Object.keys,xP=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return DP(CP(e)?Object(e):e)},OP=Math.max,AP=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=OP(arguments.length,2);for(e=Object(function(e){if(!CP(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)xP(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},kP=Array.prototype.forEach,BP=Object.create,FP=function(e){var t=BP(null);return kP.call(arguments,(function(e){CP(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)})),t},TP="razdwatrzy",PP=String.prototype.indexOf,_P="function"==typeof TP.contains&&!0===TP.contains("dwa")&&!1===TP.contains("foo")?String.prototype.contains:function(e){return PP.call(this,e,arguments[1])>-1},jP=Yw((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],mP(e)?(n=_P.call(e,"c"),r=_P.call(e,"e"),o=_P.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?AP(FP(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],mP(t)?SP(t)?mP(n)?SP(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,mP(e)?(r=_P.call(e,"c"),o=_P.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?AP(FP(i),a):a}})),NP=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},IP=Yw((function(e,t){var n,r,o,i,a,u,s,c=Function.prototype.apply,l=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 NP(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 NP(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),c.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(NP(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)c.call(r,this,i)}else switch(arguments.length){case 1:l.call(o,this);break;case 2:l.call(o,this,arguments[1]);break;case 3:l.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];c.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:jP(n),once:jP(r),off:jP(o),emit:jP(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function RP(e){var t=tT.get(e);return null==t&&(t=IP(),tT.set(e,t)),t}var LP=new WeakMap;function MP(e,t){var n=LP.get(e);null==n&&(n=new Set,LP.set(e,n)),n.add(t)}function zP(e){var t=rT.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function $P(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=zP(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=rT.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var c=s.height,l={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;l.right=p+5+"px"}else l.left=d+5+"px";if(f>u/2){var h=u-f;l.bottom=h+5+"px"}else{var v=f+c;v<0&&(v=0),l.top=v+5+"px"}return l}function HP(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Md.isElement(t)&&e.isVoid(t),i=Md.isElement(t)&&e.isInline(t),a=XF.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,c=u.left,l=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(bA.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,l=p.height}}var h=zP(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-g,S=c-y;if("bar"===n)return w.left=S+"px",E>40?w.bottom=b-E+5+"px":w.top=E+l+5+"px",w;if("modal"===n)return o?i?S>(m-f)/2?w.right=m-S+5+"px":w.left=S+f+5+"px":w.left="20px":w.left=S+"px",o?((v=E)<0&&(v=0),w.top=v+"px"):E>(b-l)/2?w.bottom=b-E+5+"px":((v=E+l)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function UP(e,t){pB((function(){var n=zP(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),c=s.top,l=s.left,f=t.width(),d=t.height(),p=c-o,h=l-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&&c<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(c);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(v.indexOf("right")>=0&&l<0){var S=t.css("right"),C=parseInt(S.toString())-Math.abs(l);t.css("right",C+"px")}}}))}var VP=px("slice"),WP=cS("species"),qP=Array,GP=Math.max;BC({target:"Array",proto:!0,forced:!VP},{slice:function(e,t){var n,r,o,i=CE(this),a=sC(i),u=iC(e,a),s=iC(void 0===t?a:t,a);if(qC(i)&&(n=i.constructor,(eD(n)&&(n===qP||qC(n.prototype))||OE(n)&&null===(n=n[WP]))&&(n=void 0),n===qP||void 0===n))return NA(i,u,s);for(r=new(void 0===n?qP:n)(GP(s-u,0)),o=0;u<s;u++,o++)u in i&&jD(r,o,i[u]);return r.length=o,r}});var KP=Object.assign,YP=Object.defineProperty,XP=pE([].concat),ZP=!KP||eE((function(){if(tE&&1!==KP({b:1},KP(YP({},"a",{enumerable:!0,get:function(){YP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==KP({},e)[n]||FC(KP({},t)).join("")!==r}))?function(e,t){for(var n=QE(e),r=arguments.length,o=1,i=yC.f,a=sE.f;r>o;)for(var u,s=bE(arguments[o++]),c=i?XP(FC(s),i(s)):FC(s),l=c.length,f=0;l>f;)u=c[f++],tE&&!oE(a,s,u)||(n[u]=s[u]);return n}:KP;BC({target:"Object",stat:!0,arity:2,forced:Object.assign!==ZP},{assign:ZP});var JP=mS.f,QP=UC("".slice),e_=Math.min,t_=Gx("startsWith"),n_=!t_&&!!function(){var e=JP(String.prototype,"startsWith");return e&&!e.writable}();BC({target:"String",proto:!0,forced:!n_&&!t_},{startsWith:function(e){var t=mD(SE(this));Wx(e);var n=uC(e_(arguments.length>1?arguments[1]:void 0,t.length)),r=mD(e);return QP(t,n,n+r.length)===r}});var r_=["props","attrs","style","dataset","on","hook"];function o_(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(!r_.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Jy(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&&o_(e)}))}var i_=[],a_={};function u_(e,t,n){return Qg(n.isInline(e)?"span":"div",null,t)}function s_(e,t){return void 0===t&&(t=!1),Qg("span",{"data-slate-string":!0},t?e+"\n":e)}function c_(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Qg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Qg("br",null):null)}function l_(e,t,n,r){return WF.set(e,t),qF.set(e,n),Md.isElement(e)?function(e,t){var n,r=rT.findKey(t,e),o=t.isInline(e),i=Wd.isVoid(t,e),a=ET(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,c=e.children,l=void 0===c?[]:c,f=function(e){return a_[e]||u_}(s);n=i?null:l.map((function(n,r){return l_(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=hA(Xd.texts(e),1),v=hA(h[0],1)[0],g=Qg(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},l_(v,0,e,t));d=Qg(p,{style:{position:"relative"}},d,g),WF.set(v,0),qF.set(v,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return i_.forEach((function(r){n=r(e,t)})),n}(e,d)),pB((function(){var t=SB(a);null!=t&&(YF.set(r,t),XF.set(e,t),KF.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=rT.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=rT.findPath(n,e),a=o([e,i]),u=vp.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=rT.findPath(o,n),u=ep.parent(a);if(Wd.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?c_(Xd.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Wd.string(o,u)?""===i?c_():t&&"\n"===i.slice(-1)?s_(i,!0):s_(i):c_(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return i_.forEach((function(t){n=t(e,n)})),n}(r,i),Qg("span",{"data-slate-leaf":!0},i)})),c=function(e){return"w-e-text-"+e}(r.id),l=Qg("span",{"data-slate-node":"text",id:c,key:r.id},s);return pB((function(){var t=SB(c);null!=t&&(YF.set(r,t),XF.set(e,t),KF.set(t,e))})),l}(e,n,r)}function f_(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),_g("div#"+e,{props:{contentEditable:!t}})}(o,a),c=t.children||[];s.children=c.map((function(e,n){var r=l_(e,n,t,t);return o_(r),r}));var l=HF.get(e);if(null==l&&(l=!0),l){var f=function(e){return ov('<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=Tg([Rg,qg,Zg,zg,Vg,Ng]))(n,s),HF.set(e,!1),UF.set(e,p)}else{var d=VF.get(e),p=UF.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=SB(o))){if((l?u:t.isFocused())&&n.focus({preventScroll:!0}),l){var h=yB(n);h&&JF.set(t,h)}GF.set(t,n),XF.set(t,n),KF.set(n,t),VF.set(e,s)}}function d_(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function p_(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function h_(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return p_(n.overflowY,t)||p_(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 v_(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 g_=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(!d_(e))throw new TypeError("Invalid target");for(var c,l,f=document.scrollingElement||document.documentElement,d=[],p=e;d_(p)&&s(p);){if((p=null==(l=(c=p).parentElement)?c.getRootNode().host||null:l)===f){d.push(p);break}null!=p&&p===document.body&&h_(p)&&!h_(document.documentElement)||null!=p&&h_(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,w=m.width,E=m.top,S=m.right,C=m.bottom,D=m.left,x="start"===o||"nearest"===o?E:"end"===o?C:E+b/2,O="center"===i?D+w/2:"end"===i?S:D,A=[],k=0;k<d.length;k++){var B=d[k],F=B.getBoundingClientRect(),T=F.height,P=F.width,_=F.top,j=F.right,N=F.bottom,I=F.left;if("if-needed"===r&&E>=0&&D>=0&&C<=v&&S<=h&&E>=_&&C<=N&&D>=I&&S<=j)return A;var R=getComputedStyle(B),L=parseInt(R.borderLeftWidth,10),M=parseInt(R.borderTopWidth,10),z=parseInt(R.borderRightWidth,10),$=parseInt(R.borderBottomWidth,10),H=0,U=0,V="offsetWidth"in B?B.offsetWidth-B.clientWidth-L-z:0,W="offsetHeight"in B?B.offsetHeight-B.clientHeight-M-$:0,q="offsetWidth"in B?0===B.offsetWidth?0:P/B.offsetWidth:0,G="offsetHeight"in B?0===B.offsetHeight?0:T/B.offsetHeight:0;if(f===B)H="start"===o?x:"end"===o?x-v:"nearest"===o?v_(y,y+v,v,M,$,y+x,y+x+b,b):x-v/2,U="start"===i?O:"center"===i?O-h/2:"end"===i?O-h:v_(g,g+h,h,L,z,g+O,g+O+w,w),H=Math.max(0,H+y),U=Math.max(0,U+g);else{H="start"===o?x-_-M:"end"===o?x-N+$+W:"nearest"===o?v_(_,N,T,M,$+W,x,x+b,b):x-(_+T/2)+W/2,U="start"===i?O-I-L:"center"===i?O-(I+P/2)+V/2:"end"===i?O-j+z+V:v_(I,j,P,L,z+V,O,O+w,w);var K=B.scrollLeft,Y=B.scrollTop;x+=Y-(H=Math.max(0,Math.min(Y+H/G,B.scrollHeight-T/G+W))),O+=K-(U=Math.max(0,Math.min(K+U/q,B.scrollWidth-P/q+V)))}A.push({el:B,top:H,left:U})}return A};function y_(e){return e===Object(e)&&0!==Object.keys(e).length}function m_(e,t){return bB(t)&&rT.hasDOMNode(e,t,{editable:!0})}function b_(e,t){if(e.getConfig().readOnly)return!1;var n=w_(e,t)&&rT.toSlateNode(e,t);return Wd.isVoid(e,n)}function w_(e,t){return bB(t)&&rT.hasDOMNode(e,t)}function E_(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=rT.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=GF.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var c=rT.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(c&&sp.equals(c,r)){var l=!0;if(sp.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")&&(l=!1),(h=p[d-1])&&h.matches("table")&&(l=!1)}}if(l)return}}if(!r||rT.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&rT.toDOMRange(t,r);if(v){sp.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]")&&v.getBoundingClientRect){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(y_(t)&&"function"==typeof t.behavior)return t.behavior(n?g_(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:y_(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)}))}(g_(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&&TB&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=rT.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var S_=new WeakMap,C_=new WeakMap,D_={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"},x_={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"},O_={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},A_=function(e){var t=D_[e],n=x_[e],r=O_[e],o=t&&sm(t),i=n&&sm(n),a=r&&sm(r);return function(e){return!(!o||!o(e))||!!(FB&&i&&i(e))||!(FB||!a||!a(e))}},k_={isBold:A_("bold"),isCompose:A_("compose"),isMoveBackward:A_("moveBackward"),isMoveForward:A_("moveForward"),isDeleteBackward:A_("deleteBackward"),isDeleteForward:A_("deleteForward"),isDeleteLineBackward:A_("deleteLineBackward"),isDeleteLineForward:A_("deleteLineForward"),isDeleteWordBackward:A_("deleteWordBackward"),isDeleteWordForward:A_("deleteWordForward"),isExtendBackward:A_("extendBackward"),isExtendForward:A_("extendForward"),isExtendLineBackward:A_("extendLineBackward"),isExtendLineForward:A_("extendLineForward"),isItalic:A_("italic"),isMoveLineBackward:A_("moveLineBackward"),isMoveLineForward:A_("moveLineForward"),isMoveWordBackward:A_("moveWordBackward"),isMoveWordForward:A_("moveWordForward"),isRedo:A_("redo"),isSplitBlock:A_("splitBlock"),isTransposeCharacter:A_("transposeCharacter"),isUndo:A_("undo"),isTab:A_("tab"),isSelectAll:A_("selectAll")};function B_(e){e.preventDefault()}var F_={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(IB&&!o&&m_(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=hA(r.getTargetRanges(),1)[0];if(s){var c=rT.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&sp.equals(i,c)||_p.select(n,c)}}if(i&&sp.isExpanded(i)&&a.startsWith("delete")){var l=a.endsWith("Backward")?"backward":"forward";Wd.deleteFragment(n,{direction:l})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Wd.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Wd.deleteForward(n);break;case"deleteContentBackward":Wd.deleteBackward(n);break;case"deleteEntireSoftLine":Wd.deleteBackward(n,{unit:"line"}),Wd.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Wd.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Wd.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Wd.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Wd.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Wd.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Wd.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Wd.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!nT.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Wd.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&m_(n,r.target)){var a=rT.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===rT.toDOMNode(n,n)||mB(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&bB(u)&&rT.hasDOMNode(n,u)){var s=rT.toSlateNode(n,u);if(Md.isElement(s)&&!n.isVoid(s))return}if(PB){var c=a.getSelection();null==c||c.removeAllRanges()}QF.delete(n)}}}},focus:function(e,t,n){var r=rT.toDOMNode(n,n),o=rT.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,TB&&e.target!==r?r.focus():QF.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&w_(n,e.target)&&bB(e.target)){var r=rT.toSlateNode(n,e.target),o=rT.findPath(n,r);if(Wd.hasPath(n,o)&&Xd.get(n,o)===r){var i=Wd.start(n,o),a=Wd.end(n,o),u=Wd.void(n,{at:i}),s=Wd.void(n,{at:a});if(u&&s&&ep.equals(u[1],s[1])){var c=Wd.range(n,i);_p.select(n,c)}}}},compositionstart:function(e,t,n){if(m_(n,e.target)){var r=n.selection;if(r&&sp.isExpanded(r)&&(Wd.deleteFragment(n),Promise.resolve().then((function(){E_(t,n,!0)}))),r&&sp.isCollapsed(r)){var o=rT.toDOMRange(n,r).startContainer,i=o.textContent||"";S_.set(n,i),C_.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(m_(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(NB||TB)&&rT.cleanExposedTexNodeInSelectionBlock(n);for(var i=sp.isBackward(o)?o.focus:o.anchor,a=hA(Wd.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=hA(Wd.node(n,i.path.slice(0,u+1)),1)[0];if(Md.isElement(s)&&((PB||TB)&&"link"===s.type||"code"===s.type)){rT.setNewKey(a);break}}var c=r.data;if(c){if(n.getConfig().maxLength){var l=rT.getLeftLengthOfMaxLength(n);l<c.length?(rT.toDOMRange(n,o).startContainer.textContent=S_.get(n)||"",l>0&&Wd.insertText(n,c.slice(0,l)),t.changeViewState()):Wd.insertText(n,c)}else Wd.insertText(n,c);PB||setTimeout((function(){var e=n.selection;if(null!=e){var t=C_.get(n);null!=t&&rT.toDOMRange(n,e).startContainer!==t&&(t.textContent=S_.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){m_(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&m_(n,r.target)){if(function(e,t){var n=NF.get(e),r=n&&n.getMenus(),o=RF.get(e),i=o&&o.getMenus(),a=dA(dA({},r),i);for(var u in a){var s=a[u],c=s.hotkey;if(c&&um(c,t)&&!s.isDisabled(e)){var l=s.getValue(e);s.exec(e,l)}}}(n,r),k_.isTab(r))return B_(r),void n.handleTab();if(k_.isRedo(r))return B_(r),void("function"==typeof n.redo&&n.redo());if(k_.isUndo(r))return B_(r),void("function"==typeof n.undo&&n.undo());if(k_.isMoveLineBackward(r))return B_(r),void _p.move(n,{unit:"line",reverse:!0});if(k_.isMoveLineForward(r))return B_(r),void _p.move(n,{unit:"line"});if(k_.isExtendLineBackward(r))return B_(r),void _p.move(n,{unit:"line",edge:"focus",reverse:!0});if(k_.isExtendLineForward(r))return B_(r),void _p.move(n,{unit:"line",edge:"focus"});if(k_.isMoveBackward(r))return B_(r),void(o&&sp.isCollapsed(o)?_p.move(n,{reverse:!0}):_p.collapse(n,{edge:"start"}));if(k_.isMoveForward(r))return B_(r),void(o&&sp.isCollapsed(o)?_p.move(n):_p.collapse(n,{edge:"end"}));if(k_.isMoveWordBackward(r))return B_(r),o&&sp.isExpanded(o)&&_p.collapse(n,{edge:"focus"}),void _p.move(n,{unit:"word",reverse:!0});if(k_.isMoveWordForward(r))return B_(r),o&&sp.isExpanded(o)&&_p.collapse(n,{edge:"focus"}),void _p.move(n,{unit:"word"});if(k_.isSelectAll(r))return B_(r),void n.selectAll();if(IB){if((NB||PB)&&o&&(k_.isDeleteBackward(r)||k_.isDeleteForward(r))&&sp.isCollapsed(o)){var i=Xd.parent(n,o.anchor.path);if(Md.isElement(i)&&Wd.isVoid(n,i)&&Wd.isInline(n,i))return r.preventDefault(),void _p.delete(n,{unit:"block"})}}else{if(k_.isBold(r)||k_.isItalic(r)||k_.isTransposeCharacter(r))return void B_(r);if(k_.isSplitBlock(r))return B_(r),void Wd.insertBreak(n);if(k_.isDeleteBackward(r))return B_(r),void(o&&sp.isExpanded(o)?Wd.deleteFragment(n,{direction:"backward"}):Wd.deleteBackward(n));if(k_.isDeleteForward(r))return B_(r),void(o&&sp.isExpanded(o)?Wd.deleteFragment(n,{direction:"forward"}):Wd.deleteForward(n));if(k_.isDeleteLineBackward(r))return B_(r),void(o&&sp.isExpanded(o)?Wd.deleteFragment(n,{direction:"backward"}):Wd.deleteBackward(n,{unit:"line"}));if(k_.isDeleteLineForward(r))return B_(r),void(o&&sp.isExpanded(o)?Wd.deleteFragment(n,{direction:"forward"}):Wd.deleteForward(n,{unit:"line"}));if(k_.isDeleteWordBackward(r))return B_(r),void(o&&sp.isExpanded(o)?Wd.deleteFragment(n,{direction:"backward"}):Wd.deleteBackward(n,{unit:"word"}));if(k_.isDeleteWordForward(r))return B_(r),void(o&&sp.isExpanded(o)?Wd.deleteFragment(n,{direction:"forward"}):Wd.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!IB&&!n.getConfig().readOnly&&m_(n,e.target)){e.preventDefault();var r=e.key;Wd.insertText(n,r)}},copy:function(e,t,n){var r=e;if(m_(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&&m_(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(sp.isExpanded(o))Wd.deleteFragment(n);else{var a=Xd.parent(n,o.anchor.path);Wd.isVoid(n,a)&&_p.delete(n)}}},paste:function(e,t,n){nT.set(n,!0);var r=e;if(!n.getConfig().readOnly&&m_(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void nT.set(n,!1);if(!IB||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(w_(n,e.target)){var r=rT.toSlateNode(n,e.target);Wd.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(w_(n,r.target)&&!n.getConfig().readOnly){var o=rT.toSlateNode(n,r.target),i=rT.findPath(n,o);if(Wd.isVoid(n,o)||Wd.void(n,{at:i,voids:!0})){var a=Wd.range(n,i);_p.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&&w_(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&w_(n,r.target)&&null!=o&&!(IB&&PB&&o.files.length>0)){r.preventDefault();var i=n.selection,a=rT.findEventRange(n,r);_p.select(n,a),t.isDraggingInternally&&(i&&_p.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},T_=1,P_=function(){function e(e){var t=this;this.id=T_++,this.$textArea=null,this.$progressBar=ov('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=ov('<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=gg((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=rT.findDocumentOrShadowRoot(t),a=i.activeElement,u=rT.toDOMNode(t,t),s=i.getSelection();if(a!==u)return QF.delete(t),void _p.deselect(t);if(e.latestElement=a,QF.set(t,!0),!s)return _p.deselect(t);var c=s.anchorNode,l=s.focusNode,f=m_(t,c)||b_(t,c),d=m_(t,l)||b_(t,l);if(f&&d){var p=rT.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});_p.select(t,p)}}}(t,e)}),100);var n=ov(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=ov('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=ov('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,pB((function(){var e=t.editorInstance,n=rT.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=_F.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&&(Qv(F_,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",gg((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-rT.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;f_(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=ov('<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),pB((function(){E_(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function __(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&&__(t)}function j_(){return ov('<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 N_(){return ov('<div class="w-e-bar-divider"></div>')}function I_(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=FB?"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")}}}$O("match",(function(e,t,n){return[function(t){var n=SE(this),r=wE(t)?void 0:qE(t,e);return r?oE(r,t,n):new RegExp(t)[e](mD(n))},function(e){var r=SS(this),o=mD(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return JO(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=JO(r,o));){var l=mD(u[0]);s[c]=l,""===l&&(r.lastIndex=UO(o,uC(r.lastIndex),a)),c++}return 0===c?null:s}]}));var R_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=ov('<div class="w-e-bar-item"></div>'),this.$button=ov('<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,c=t.iconSvg,l=void 0===c?"":c,f=this.$button;if(l){var d=ov(l);__(d),f.append(d)}else f.text(a);I_(f,l,a,s,n),n&&l&&f.append(ov('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),pB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),X_(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=X_(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=X_(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=X_(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}(),L_=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return fA(t,e),t.prototype.onButtonClick=function(){},t}(R_),M_=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=MF.get(e);null==t&&(t=new Set,MF.set(e,t)),t.add(this),zF.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=zF.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=zF.get(this);e&&e.emit("modalOrPanelHide")}},e}(),z_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=ov('<div class="w-e-drop-panel"></div>'),n}return fA(t,e),t.prototype.genSelfElem=function(){return null},t}(M_),$_=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=j_();o.$button.append(i)}return o}return fA(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=X_(this);if(null==this.dropPanel){var n=new z_(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}(R_),H_=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=ov('<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 fA(t,e),t.prototype.genSelfElem=function(){var e=this,t=ov('<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=zF.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}(M_);function U_(e,t,n){var r=ov('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=ov('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function V_(e,t){var n=ov('<div class="button-container"></div>'),r=ov('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var W_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=ov("body"),o.modal=null,o.menu=n,o}return fA(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=X_(this),t=this.menu.getModalPositionNode(e);return Md.isElement(t)?HP(e,t,"modal"):$P(e)},t.prototype.handleModal=function(){var e=X_(this),t=this.menu;if(null==this.modal){var n=new H_(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=X_(this),r=this.menu;if(null!=r.getModalContentElem){var o=rT.getTextarea(n),i=rT.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||UP(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(R_),q_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=ov('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return fA(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=ov("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=ov('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=ov('<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(ov('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(M_),G_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=ov('<div class="w-e-bar-item"></div>'),this.$button=ov('<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,c=t.hotkey,l=void 0===c?"":c;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),I_(f,s,i,l,n),this.$elem.append(f),this.menu=t,pB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),X_(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=X_(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new q_(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=ov(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=X_(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=X_(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=j_();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=X_(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}(),K_=function(){function e(e){this.$elem=ov('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=ov('<div class="w-e-bar-item-menus-container"></div>'),this.$button=ov('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=ov(n);__(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=j_();i.append(u),o.append(i);var s=this.$container;o.append(s);var c=this.createObserver();this.observe(c)}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){ov(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),Y_=new WeakMap;function X_(e){var t=LF.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function Z_(e,t,n){void 0===n&&(n=!1);var r=Y_.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new $_(e,t,n):a?new W_(e,t,n):new L_(e,t,n)}if("select"===o&&(r=new G_(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return Y_.set(t,r),r}function J_(e,t){var n=e.selection;return null!=n&&!sp.isCollapsed(n)&&!rT.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!vp.isText(t)}var Q_=function(){function e(){var e=this;this.$elem=ov('<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=Cm((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&&Md.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),pB((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),rT.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;pB((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=N_();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=aT[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=Z_(e,r);this.hoverbarItems.push(i),LF.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Md.isElement(e)){var r=HP(t,e,"bar");return n.css(r),void UP(t,n)}if(vp.isText(e))return r=$P(t),n.css(r),void UP(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,c=a||function(e,t){return rT.checkNodeType(t,o)},l=hA(Wd.nodes(e,{match:function(t){return c(e,t)},universal:!0}),1),f=l[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=IF.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=J_),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=rT.findPath(null,e),r=rT.findPath(null,t);return ep.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function ej(e,t,n,r){if(WF.set(e,t),qF.set(e,n),Md.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return ej(t,n,e,r)})),Wd.isVoid(r,e)){var i=hA(Xd.texts(e),1),a=hA(i[0],1)[0];WF.set(a,0),qF.set(a,e)}}}function tj(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,c=(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,(()=>{Wd.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,(()=>{Wd.withoutNormalizing(t,(()=>{var e=r.map(Qd.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),c=gD.isSaving(t),l=gD.isMerging(t);if(null==c&&(c=(e=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),c){if(null==l&&(l=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||!ep.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!ep.equals(e.path,t.path)))(e,u)||s)),a&&l)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=rT.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=rT.getLeftLengthOfMaxLength(t);n<=0||n<Xd.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(rT.getLeftLengthOfMaxLength(t)<Xd.string(n).length)return;o(e)}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=rT.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===vB.TEXT_NODE?e+(t.textContent||""):n===vB.ELEMENT_NODE?gP.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=RP(t);if(r.on(e,n),"destroyed"===e&&MP(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),MP(t,o)}},t.once=function(e,n){RP(t).once(e,n)},t.off=function(e,n){RP(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=RP(t);if(o.emit.apply(o,vA([e],hA(n))),"destroyed"===e){var i=function(e){return LP.get(e)||new Set}(t);i.forEach((function(e){return o.off("destroyed",e)})),function(e){LP.set(e,new Set)}(t)}},t}(function(e){var t=e;return t.select=function(e){_p.select(t,e)},t.deselect=function(){var n=t.selection,r=rT.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&_p.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||_p.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=eT.get(t);null!=e&&(t.focus(),_p.select(t,e))},t.getSelectionPosition=function(){return $P(t)},t.getNodePosition=function(e){return HP(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=hA(sp.edges(e),2),r=n[0],o=n[1],i=hA(Wd.edges(t,[]),2),a=i[0],u=i[1];return!(!op.equals(r,a)||!op.equals(o,u))},t.selectAll=function(){var e=Wd.start(t,[]),n=Wd.end(t,[]);_p.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,c,l,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=pA(Wd.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=hA(p.value,2),v=h[0],g=h[1],y=rT.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=pA(Wd.levels(t,{at:ep.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=hA(b.value,2);v=w[0],g=w[1],y=rT.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 E=pA(Wd.levels(t,{at:ep.common(ep.parent(e.path),ep.parent(e.newPath))})),S=E.next();!S.done;S=E.next()){var C=hA(S.value,2);v=C[0],g=C[1],y=rT.findKey(t,v),f.push([g,y])}}catch(e){u={error:e}}finally{try{S&&!S.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var D=pA(f),x=D.next();!x.done;x=D.next()){var O=hA(x.value,2);g=O[0],y=O[1],v=hA(Wd.node(t,g),1)[0],ZF.set(v,y)}}catch(e){c={error:e}}finally{try{x&&!x.done&&(l=D.return)&&l.call(D)}finally{if(c)throw c.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&sp.isCollapsed(e.selection)){var r=Wd.above(e,{match:function(t){return Wd.isBlock(e,t)},at:e.selection});if(r){var o=hA(r,2)[1],a=Wd.range(e,o,e.selection.anchor),u=function(e,t){var n=Wd.range(e,sp.end(t)),r=Array.from(Wd.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(CT(e,Wd.range(e,r[o]),n))return Wd.range(e,r[o],n);if(r.length<2)return Wd.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)CT(e,Wd.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Wd.range(e,r[i],n)}(t,a);sp.isCollapsed(u)||_p.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&eT.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 wT(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Xd.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Wd.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Wd.nodes(t,{at:[],universal:!0});try{for(var u=pA(a),s=u.next();!s.done;s=u.next()){var c=hA(s.value,1)[0];if(Md.isElement(c)&&(n?c.type.indexOf(e)>=0:c.type===e)){var l=ET(rT.findKey(t,c).id);i.push(dA(dA({},c),{id:l}))}}}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(Md.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(vp.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){_p.delete(t,{at:{anchor:Wd.start(t,[]),focus:Wd.end(t,[])}}),0===t.children.length&&_p.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return rT.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===vB.TEXT_NODE||t===vB.ELEMENT_NODE&&!gP.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;rT.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==vB.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(DT.includes(r.toLowerCase()))s=!0;else for(var c in AT)if(a.matches(c)){s=!0;break}if(s){var l=rP(ov(a),t);return Array.isArray(l)?(l.forEach((function(e){return yP(t,e)})),u++):(yP(t,l),u++),void(rT.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;rT.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&rT.isEmptyPath(t,a)&&_p.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=fP(t,e);if(_p.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(Wd.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in aT)e.push(t);return e},t.getConfig=function(){var e=$F.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=e;return t.id="wangEditor-"+oT++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(rT.toDOMNode(t,t).focus({preventScroll:!0}),QF.set(t,!0),e){var n=Wd.end(t,[]);_p.select(t,n)}else{var r=eT.get(t);r?_p.select(t,r):_p.select(t,Wd.start(t,[]))}},t.isFocused=function(){return!!QF.get(t)},t.blur=function(){rT.toDOMNode(t,t).blur(),_p.deselect(t),QF.set(t,!1)},t.updateView=function(){rT.getTextarea(t).changeViewState();var e=rT.getToolbar(t);e&&e.changeToolbarState();var n=rT.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=rT.getTextarea(t);e.destroy(),PF.delete(t),_F.delete(e);var n=rT.getToolbar(t);n&&(n.destroy(),NF.delete(t),jF.delete(n));var r=rT.getHoverbar(t);r&&(r.destroy(),RF.delete(t),IF.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=ov("#"+e);if(0!==r.length){var o=r[0];if(!rT.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=rT.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,c=a.offset().top;u[0].scrollBy({top:s-c,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||rT.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=MF.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 rT.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=rT.getToolbar(t);n&&(e=n.$box);var r=rT.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=rT.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return rT.getTextarea(t).$textAreaContainer[0]},t}(function(){var e=(()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Wd.pathRefs(e))tp.transform(n,t);for(var r of Wd.pointRefs(e))ip.transform(r,t);for(var o of Wd.rangeRefs(e))cp.transform(o,t);var i,a,u=ed.get(e)||[],s=td.get(e)||new Set,c=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),i.push(e))}};if(ep.operationCanTransformPath(t))for(var l of(i=[],a=new Set,u))c(ep.transform(l,t));else i=u,a=s;var f=cd(t);for(var d of f)c(d);ed.set(e,i),td.set(e,a),_p.transform(e,t),e.operations.push(t),Wd.normalize(e),"set_selection"===t.type&&(e.marks=null),nd.get(e)||(nd.set(e,!0),Promise.resolve().then((()=>{nd.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(sp.isExpanded(r))_p.setNodes(e,{[t]:n},{match:vp.isText,split:!0});else{var o=sd(sd({},Wd.marks(e)||{}),{},{[t]:n});e.marks=o,nd.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&sp.isCollapsed(n)&&_p.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&sp.isCollapsed(n)&&_p.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&sp.isExpanded(n)&&_p.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Xd.fragment(e,t):[]},insertBreak:()=>{_p.splitNodes(e,{always:!0})},insertFragment:t=>{_p.insertFragment(e,t)},insertNode:t=>{_p.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=sd({text:t},r);_p.insertNodes(e,o)}else _p.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!vp.isText(n))if(Md.isElement(n)&&0===n.children.length)_p.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Wd.isEditor(n)&&Md.isElement(n)&&(e.isInline(n)||0===n.children.length||vp.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Xd.get(e,r);if(!vp.isText(u)){var s=n.children[a],c=u.children[i-1],l=a===n.children.length-1;(vp.isText(s)||Md.isElement(s)&&e.isInline(s))!==o?(_p.removeNodes(e,{at:r.concat(i),voids:!0}),i--):Md.isElement(s)?e.isInline(s)&&(null!=c&&vp.isText(c)?l&&(_p.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(_p.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=c&&vp.isText(c)&&(vp.equals(s,c,{loose:!0})?(_p.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===c.text?(_p.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(_p.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(sp.isExpanded(n))_p.unsetNodes(e,t,{match:vp.isText,split:!0});else{var r=sd({},Wd.marks(e)||{});delete r[t],e.marks=r,nd.get(e)||e.onChange()}}};return e})(),t=e.insertText;return e.insertFragment,e.setFragmentData=function(t){var n=e.selection;if(n){var r=hA(sp.edges(n),2),o=r[0],i=r[1],a=Wd.void(e,{at:o.path}),u=Wd.void(e,{at:i.path});if(!sp.isCollapsed(n)||a){var s=rT.toDOMRange(e,n),c=s.cloneContents(),l=c.childNodes[0];if(c.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(l=e)})),u){var f=hA(u,1)[0],d=s.cloneRange(),p=rT.toDOMNode(e,f);d.setEndAfter(p),c=d.cloneContents()}if(a&&(l=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),EB(l)){var h=l.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(l),c.appendChild(h),l=h}var v=e.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));l.setAttribute("data-slate-fragment",y),t.setData("application/x-slate-fragment",y);var m=c.ownerDocument.createElement("div");return m.appendChild(c),m.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(m),t.setData("text/html",m.innerHTML),t.setData("text/plain",xB(m)),c.ownerDocument.body.removeChild(m),t}}},e.insertData=function(n){var r,o,i=n.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);e.insertFragment(u)}else{var s=n.getData("text/plain"),c=n.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(s){var l=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=pA(l),p=d.next();!p.done;p=d.next()){var h=p.value;f&&_p.splitNodes(e,{always:!0}),t(h),f=!0}}catch(n){r={error:n}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},e}())))))));if(n&&function(e,t){return lP(e,"data-w-e-textarea",t)}(c,n))throw new Error("Repeated create editor by selector '"+n+"'");var l=function(e){void 0===e&&(e={});var t=Dm(iT),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Qv(t,(function(e,t){n[t]=dA(dA({},e),o[t]||{})})),delete e.MENU_CONF,dA({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);$F.set(c,l);var f=l.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){c=e(c)})),null!=a&&(c.children=fP(c,a)),i&&i.length&&(c.children=i),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),rT.normalizeContent(c),n){var p=new P_(n);PF.set(c,p),_F.set(p,c),p.changeViewState(),pB((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 Q_,IF.set(h,c),RF.set(c,h)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return ej(e,t,c,c)}));var v=l.onCreated,g=l.onDestroyed;return v&&c.on("created",(function(){return v(c)})),g&&c.on("destroyed",(function(){return g(c)})),pB((function(){return c.emit("created")})),c}var nj=TypeError,rj=Object.getOwnPropertyDescriptor,oj=tE&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(qC(e)&&!rj(e,"length").writable)throw new nj("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},ij=TypeError,aj=TypeError,uj=function(e,t){if(!delete e[t])throw new aj("Cannot delete property "+UE(t)+" of "+UE(e))},sj=px("splice"),cj=Math.max,lj=Math.min;BC({target:"Array",proto:!0,forced:!sj},{splice:function(e,t){var n,r,o,i,a,u,s=QE(this),c=sC(s),l=iC(e,c),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=lj(cj(nC(t),0),c-l)),function(e){if(e>9007199254740991)throw ij("Maximum allowed index exceeded")}(c+n-r),o=rD(s,r),i=0;i<r;i++)(a=l+i)in s&&jD(o,i,s[a]);if(o.length=r,n<r){for(i=l;i<c-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:uj(s,u);for(i=c;i>c-r+n;i--)uj(s,i-1)}else if(n>r)for(i=c-r;i>l;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:uj(s,u);for(i=0;i<n;i++)s[i+l]=arguments[i+2];return oj(s,c-r+n),o}});var fj=function(){function e(e,t){var n=this;this.$toolbar=ov('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Cm((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=ov(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),pB((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,c=void 0===s?[]:s,l=Dm(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){l.splice(u.index+t,0,e)})));var f=l.filter((function(e){if("string"==typeof e){if(c.includes(e))return!1}else if(c.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=N_();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 K_(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 K_,o=this.menus,i=o[e];if(null==i){var a=aT[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=Z_(e,i,r);this.toolbarItems.push(u),LF.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=jF.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}(),dj=jS.EXISTS,pj=Function.prototype,hj=pE(pj.toString),vj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,gj=pE(vj.exec);function yj(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,c=e.meta,l=void 0===c?{}:c,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,w=void 0===b?function(e){return e}:b,E=e.onSuccess,S=void 0===E?function(e,t){}:E,C=e.onError,D=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n)}:C,x=e.onProgress,O=void 0===x?function(e){}:x;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var A=n;d&&(A=function(e,t){var n=hA(e.split("#"),2),r=n[0],o=n[1],i=[];Qv(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}(A,l));var k=new Vb({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:l}).use(Gw,{endpoint:A,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return k.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)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||O(e)})),k.on("upload-error",(function(e,t,n){try{D(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{D(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k}function mj(e){return mj="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},mj(e)}function bj(e){var t=function(e){if("object"!=mj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mj(t)?t:t+""}function wj(e,t,n){return(t=bj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ej(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){wj(e,t,n[t])}))}return e}function Sj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cj(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,bj(r.key),r)}}function Dj(e,t,n){return t&&Cj(e.prototype,t),n&&Cj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oj(e,t){if(t&&("object"==mj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xj(e)}function Aj(e){return Aj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Aj(e)}function kj(e,t){return kj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kj(e,t)}function Bj(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kj(e,t)}tE&&!dj&&AA(pj,"name",{configurable:!0,get:function(){try{return gj(vj,hj(this))[1]}catch(e){return""}}});var Fj={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)}},Tj=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sj(this,e),this.init(t,n)}return Dj(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||Fj,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,Ej({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),Pj=function(){function e(){Sj(this,e),this.observers={}}return Dj(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 _j(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function jj(e){return null==e?"":""+e}function Nj(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 Ij(e,t,n){var r=Nj(e,t,Object);r.obj[r.k]=n}function Rj(e,t){var n=Nj(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Lj(e,t,n){var r=Rj(e,n);return void 0!==r?r:Rj(t,n)}function Mj(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]):Mj(e[r],t[r],n):e[r]=t[r]);return e}function zj(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var $j={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Hj(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return $j[e]})):e}var Uj="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function Vj(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 c=r.slice(i+a).join(n);return c?Vj(s,c,n):void 0}o=o[r[i]]}return o}}var Wj=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Sj(this,e),n=Oj(this,Aj(e).call(this)),Uj&&Pj.call(xj(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 Bj(e,Pj),Dj(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=Rj(this.data,a);return u||!i||"string"!=typeof n?u:Vj(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),Ij(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=Rj(this.data,a)||{};r?Mj(u,n,o):u=Ej({},u,n),Ij(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?Ej({},{},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}(),qj={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}},Gj={},Kj=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Sj(this,e),n=Oj(this,Aj(e).call(this)),Uj&&Pj.call(xj(n)),function(e,t,n){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(e){t[e]&&(n[e]=t[e])}))}(0,t,xj(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=Tj.create("translator"),n}return Bj(e,Pj),Dj(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"!==mj(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,c=s[s.length-1],l=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return c+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,Ej({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,E=w?[]:{},S=w?g:v;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var D="".concat(S).concat(i).concat(C);E[C]=this.translate(D,Ej({},n,{joinArrays:!1,ns:s})),E[C]===D&&(E[C]=h[C])}h=E}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,t,n,r));else{var x=!1,O=!1,A=void 0!==n.count&&"string"!=typeof n.count,k=e.hasDefaultValue(n),B=A?this.pluralResolver.getSuffix(l,n.count):"",F=n["defaultValue".concat(B)]||n.defaultValue;!this.isValidLookup(h)&&k&&(x=!0,h=F),this.isValidLookup(h)||(O=!0,h=u);var T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:h,P=k&&F!==h&&this.options.updateMissing;if(O||x||P){if(this.logger.log(P?"updateKey":"missingKey",l,c,u,P?F:h),i){var _=this.resolve(u,Ej({},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 j=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var I=0;I<N.length;I++)j.push(N[I]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var R=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,t,P?r:T,P,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,c,t,P?r:T,P,n),o.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?j.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){R([e],u+t,n["defaultValue".concat(t)]||F)}))})):R(j,u,F))}h=this.extendTranslation(h,t,n,p,r),O&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(u)),(O||x)&&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(Ej({},n,{interpolation:Ej({},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 c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=Ej({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),u){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.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=qj.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Ej({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),c=s.key;n=c;var l=s.namespaces;a.options.fallbackNS&&(l=l.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);l.forEach((function(e){a.isValidLookup(t)||(i=e,!Gj["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Gj["".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,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(l+=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 Yj(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Xj=function(){function e(t){Sj(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Tj.create("languageUtils")}return Dj(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]=Yj(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]=Yj(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Yj(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}(),Zj=[{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}],Jj={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)}},Qj=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sj(this,e),this.languageUtils=t,this.options=r,this.logger=Tj.create("pluralResolver"),this.rules=(n={},Zj.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:Jj[e.fc]}}))})),n)}return Dj(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}(),eN=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Sj(this,e),this.logger=Tj.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Dj(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:Hj,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?zj(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?zj(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?zj(t.nestingPrefix):t.nestingPrefixEscaped||zj("$t("),this.nestingSuffix=t.nestingSuffix?zj(t.nestingSuffix):t.nestingSuffixEscaped||zj(")"),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 c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=Lj(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,Ej({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),c=i.join(u.formatSeparator).trim();return u.format(Lj(t,s,a),c,n,Ej({},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 c(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?c(u.escape(e)):c(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(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=jj(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=Ej({},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=Ej({},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=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),s=l,c=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=jj(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,Ej({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),tN=function(){function e(t,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Sj(this,e),o=Oj(this,Aj(e).call(this)),Uj&&Pj.call(xj(o)),o.backend=t,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=Tj.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return Bj(e,Pj),Dj(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=Nj(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,Ej({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),e}();function nN(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 rN(){}var oN=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Sj(this,e),t=Oj(this,Aj(e).call(this)),Uj&&Pj.call(xj(t)),t.options=nN(n),t.services={},t.logger=Tj,t.modules={external:[]},r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),Oj(t,xj(t));setTimeout((function(){t.init(n,r)}),0)}return t}return Bj(e,Pj),Dj(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=Ej({},{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"===mj(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===mj(e[2])||"object"===mj(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,nN(t)),this.format=this.options.interpolation.format,n||(n=rN),!this.options.isClone){this.modules.logger?Tj.init(r(this.modules.logger),this.options):Tj.init(null,this.options);var o=new Xj(this.options);this.store=new Wj(this.options.resources,this.options);var i=this.services;i.logger=Tj,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new Qj(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new eN(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new tN(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 Kj(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=_j(),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]:rN,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=_j();return e||(e=this.languages),t||(t=this.options.ns),n||(n=rN),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&&qj.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=_j();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"!==mj(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=Ej({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var c=r.options.keySeparator||".",l=n?"".concat(n).concat(c).concat(t):t;return r.t(l,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=_j();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=_j();"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]:rN,o=Ej({},this.options,n,{isClone:!0}),i=new e(o);return["store","services","language"].forEach((function(e){i[e]=t[e]})),i.services=Ej({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Kj(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}(),iN=new oN;function aN(e,t){iN.addResourceBundle(e,"translation",t,!0,!0)}iN.init({lng:"zh-CN",resources:{}});var uN=iN.t.bind(iN);aN("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),aN("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var sN=Array.isArray||function(e){return"Array"===p(e)},cN=function(){},lN=ge("Reflect","construct"),fN=/^\s*(?:class|function)\b/,dN=l(fN.exec),pN=!fN.test(cN),hN=function(e){if(!re(e))return!1;try{return lN(cN,[],e),!0}catch(e){return!1}},vN=function(e){if(!re(e))return!1;switch(Xn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pN||!!dN(fN,qt(e))}catch(e){return!0}};vN.sham=!0;var gN,yN=!lN||i((function(){var e;return hN(hN.call)||!hN(Object)||!hN((function(){e=!0}))||e}))?vN:hN,mN=te("species"),bN=Array,wN=function(e,t){return new(function(e){var t;return sN(e)&&(t=e.constructor,(yN(t)&&(t===bN||sN(t.prototype))||oe(t)&&null===(t=t[mN]))&&(t=void 0)),void 0===t?bN:t}(e))(0===t?0:t)},EN=l([].push),SN=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,c,l,f){for(var d,p,h=_(s),v=g(h),y=We(v),m=Kr(c,l),b=0,w=f||wN,E=t?w(s,y):n||a?w(s,0):void 0;y>b;b++)if((u||b in v)&&(p=m(d=v[b],b,h),e))if(t)E[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:EN(E,d)}else switch(e){case 4:return!1;case 7:EN(E,d)}return i?-1:r||o?o:E}},CN=[SN(0),SN(1),SN(2),SN(3),SN(4),SN(5),SN(6),SN(7)][0],DN=(gN=[].forEach)&&i((function(){gN.call(null,(function(){return 1}),1)}))?[].forEach:function(e){return CN(this,e,arguments.length>1?arguments[1]:void 0)},xN=function(e){if(e&&e.forEach!==DN)try{Dt(e,"forEach",DN)}catch(t){e.forEach=DN}};for(var ON in fo)fo[ON]&&xN(A[ON]&&A[ON].prototype);xN(vo),aN("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),aN("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var AN={type:"paragraph",renderElem:function(e,t,n){return Qg("p",null,t)}},kN="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function BN(e){var t={exports:{}};return e(t,t.exports),t.exports}var FN,TN,PN=function(e){return e&&e.Math===Math&&e},_N=PN("object"==typeof globalThis&&globalThis)||PN("object"==typeof window&&window)||PN("object"==typeof self&&self)||PN("object"==typeof kN&&kN)||PN("object"==typeof kN&&kN)||function(){return this}()||Function("return this")(),jN=function(e){try{return!!e()}catch(e){return!0}},NN=!jN((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),IN=!jN((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),RN=Function.prototype.call,LN=IN?RN.bind(RN):function(){return RN.apply(RN,arguments)},MN={}.propertyIsEnumerable,zN=Object.getOwnPropertyDescriptor,$N=zN&&!MN.call({1:2},1)?function(e){var t=zN(this,e);return!!t&&t.enumerable}:MN,HN={f:$N},UN=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},VN=Function.prototype,WN=VN.call,qN=IN&&VN.bind.bind(WN,WN),GN=IN?qN:function(e){return function(){return WN.apply(e,arguments)}},KN=GN({}.toString),YN=GN("".slice),XN=function(e){return YN(KN(e),8,-1)},ZN=Object,JN=GN("".split),QN=jN((function(){return!ZN("z").propertyIsEnumerable(0)}))?function(e){return"String"===XN(e)?JN(e,""):ZN(e)}:ZN,eI=function(e){return null==e},tI=TypeError,nI=function(e){if(eI(e))throw new tI("Can't call method on "+e);return e},rI=function(e){return QN(nI(e))},oI="object"==typeof document&&document.all,iI=void 0===oI&&void 0!==oI?function(e){return"function"==typeof e||e===oI}:function(e){return"function"==typeof e},aI=function(e){return"object"==typeof e?null!==e:iI(e)},uI=function(e,t){return arguments.length<2?(n=_N[e],iI(n)?n:void 0):_N[e]&&_N[e][t];var n},sI=GN({}.isPrototypeOf),cI=_N.navigator,lI=cI&&cI.userAgent,fI=lI?String(lI):"",dI=_N.process,pI=_N.Deno,hI=dI&&dI.versions||pI&&pI.version,vI=hI&&hI.v8;vI&&(TN=(FN=vI.split("."))[0]>0&&FN[0]<4?1:+(FN[0]+FN[1])),!TN&&fI&&(!(FN=fI.match(/Edge\/(\d+)/))||FN[1]>=74)&&(FN=fI.match(/Chrome\/(\d+)/))&&(TN=+FN[1]);var gI=TN,yI=_N.String,mI=!!Object.getOwnPropertySymbols&&!jN((function(){var e=Symbol("symbol detection");return!yI(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gI&&gI<41})),bI=mI&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wI=Object,EI=bI?function(e){return"symbol"==typeof e}:function(e){var t=uI("Symbol");return iI(t)&&sI(t.prototype,wI(e))},SI=String,CI=TypeError,DI=function(e){if(iI(e))return e;throw new CI(function(e){try{return SI(e)}catch(e){return"Object"}}(e)+" is not a function")},xI=function(e,t){var n=e[t];return eI(n)?void 0:DI(n)},OI=TypeError,AI=Object.defineProperty,kI=function(e,t){try{AI(_N,e,{value:t,configurable:!0,writable:!0})}catch(n){_N[e]=t}return t},BI=BN((function(e){var t="__core-js_shared__",n=e.exports=_N[t]||kI(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),FI=function(e,t){return BI[e]||(BI[e]=t||{})},TI=Object,PI=function(e){return TI(nI(e))},_I=GN({}.hasOwnProperty),jI=Object.hasOwn||function(e,t){return _I(PI(e),t)},NI=0,II=Math.random(),RI=GN(1..toString),LI=function(e){return"Symbol("+(void 0===e?"":e)+")_"+RI(++NI+II,36)},MI=_N.Symbol,zI=FI("wks"),$I=bI?MI.for||MI:MI&&MI.withoutSetter||LI,HI=function(e){return jI(zI,e)||(zI[e]=mI&&jI(MI,e)?MI[e]:$I("Symbol."+e)),zI[e]},UI=TypeError,VI=HI("toPrimitive"),WI=function(e){var t=function(e,t){if(!aI(e)||EI(e))return e;var n,r=xI(e,VI);if(r){if(void 0===t&&(t="default"),n=LN(r,e,t),!aI(n)||EI(n))return n;throw new UI("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&iI(n=e.toString)&&!aI(r=LN(n,e)))return r;if(iI(n=e.valueOf)&&!aI(r=LN(n,e)))return r;if("string"!==t&&iI(n=e.toString)&&!aI(r=LN(n,e)))return r;throw new OI("Can't convert object to primitive value")}(e,t)}(e,"string");return EI(t)?t:t+""},qI=_N.document,GI=aI(qI)&&aI(qI.createElement),KI=function(e){return GI?qI.createElement(e):{}},YI=!NN&&!jN((function(){return 7!==Object.defineProperty(KI("div"),"a",{get:function(){return 7}}).a})),XI=Object.getOwnPropertyDescriptor,ZI={f:NN?XI:function(e,t){if(e=rI(e),t=WI(t),YI)try{return XI(e,t)}catch(e){}if(jI(e,t))return UN(!LN(HN.f,e,t),e[t])}},JI=NN&&jN((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),QI=String,eR=TypeError,tR=function(e){if(aI(e))return e;throw new eR(QI(e)+" is not an object")},nR=TypeError,rR=Object.defineProperty,oR=Object.getOwnPropertyDescriptor,iR="enumerable",aR="configurable",uR="writable",sR={f:NN?JI?function(e,t,n){if(tR(e),t=WI(t),tR(n),"function"==typeof e&&"prototype"===t&&"value"in n&&uR in n&&!n[uR]){var r=oR(e,t);r&&r[uR]&&(e[t]=n.value,n={configurable:aR in n?n[aR]:r[aR],enumerable:iR in n?n[iR]:r[iR],writable:!1})}return rR(e,t,n)}:rR:function(e,t,n){if(tR(e),t=WI(t),tR(n),YI)try{return rR(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new nR("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},cR=NN?function(e,t,n){return sR.f(e,t,UN(1,n))}:function(e,t,n){return e[t]=n,e},lR=Function.prototype,fR=NN&&Object.getOwnPropertyDescriptor,dR=jI(lR,"name"),pR={EXISTS:dR,PROPER:dR&&"something"===function(){}.name,CONFIGURABLE:dR&&(!NN||NN&&fR(lR,"name").configurable)},hR=GN(Function.toString);iI(BI.inspectSource)||(BI.inspectSource=function(e){return hR(e)});var vR,gR,yR,mR=BI.inspectSource,bR=_N.WeakMap,wR=iI(bR)&&/native code/.test(String(bR)),ER=FI("keys"),SR=function(e){return ER[e]||(ER[e]=LI(e))},CR={},DR="Object already initialized",xR=_N.TypeError,OR=_N.WeakMap;if(wR||BI.state){var AR=BI.state||(BI.state=new OR);AR.get=AR.get,AR.has=AR.has,AR.set=AR.set,vR=function(e,t){if(AR.has(e))throw new xR(DR);return t.facade=e,AR.set(e,t),t},gR=function(e){return AR.get(e)||{}},yR=function(e){return AR.has(e)}}else{var kR=SR("state");CR[kR]=!0,vR=function(e,t){if(jI(e,kR))throw new xR(DR);return t.facade=e,cR(e,kR,t),t},gR=function(e){return jI(e,kR)?e[kR]:{}},yR=function(e){return jI(e,kR)}}var BR={set:vR,get:gR,has:yR,enforce:function(e){return yR(e)?gR(e):vR(e,{})},getterFor:function(e){return function(t){var n;if(!aI(t)||(n=gR(t)).type!==e)throw new xR("Incompatible receiver, "+e+" required");return n}}},FR=BN((function(e){var t=pR.CONFIGURABLE,n=BR.enforce,r=BR.get,o=String,i=Object.defineProperty,a=GN("".slice),u=GN("".replace),s=GN([].join),c=NN&&!jN((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!jI(e,"name")||t&&e.name!==r)&&(NN?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&jI(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&jI(f,"constructor")&&f.constructor?NN&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return jI(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return iI(this)&&r(this).source||mR(this)}),"toString")})),TR=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(iI(n)&&FR(n,i,r),r.global)o?e[t]=n:kI(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:sR.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},PR=Math.ceil,_R=Math.floor,jR=Math.trunc||function(e){var t=+e;return(t>0?_R:PR)(t)},NR=function(e){var t=+e;return t!=t||0===t?0:jR(t)},IR=Math.max,RR=Math.min,LR=function(e,t){var n=NR(e);return n<0?IR(n+t,0):RR(n,t)},MR=Math.min,zR=function(e){var t=NR(e);return t>0?MR(t,9007199254740991):0},$R=function(e){return zR(e.length)},HR=function(e){return function(t,n,r){var o=rI(t),i=$R(o);if(0===i)return!e&&-1;var a,u=LR(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},UR={includes:HR(!0),indexOf:HR(!1)},VR=UR.indexOf,WR=GN([].push),qR=function(e,t){var n,r=rI(e),o=0,i=[];for(n in r)!jI(CR,n)&&jI(r,n)&&WR(i,n);for(;t.length>o;)jI(r,n=t[o++])&&(~VR(i,n)||WR(i,n));return i},GR=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],KR=GR.concat("length","prototype"),YR={f:Object.getOwnPropertyNames||function(e){return qR(e,KR)}},XR={f:Object.getOwnPropertySymbols},ZR=GN([].concat),JR=uI("Reflect","ownKeys")||function(e){var t=YR.f(tR(e)),n=XR.f;return n?ZR(t,n(e)):t},QR=function(e,t,n){for(var r=JR(t),o=sR.f,i=ZI.f,a=0;a<r.length;a++){var u=r[a];jI(e,u)||n&&jI(n,u)||o(e,u,i(t,u))}},eL=/#|\.prototype\./,tL=function(e,t){var n=rL[nL(e)];return n===iL||n!==oL&&(iI(t)?jN(t):!!t)},nL=tL.normalize=function(e){return String(e).replace(eL,".").toLowerCase()},rL=tL.data={},oL=tL.NATIVE="N",iL=tL.POLYFILL="P",aL=tL,uL=ZI.f,sL=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?_N:c?_N[u]||kI(u,{}):_N[u]&&_N[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=uL(n,r))&&a.value:n[r],!aL(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;QR(i,o)}(e.sham||o&&o.sham)&&cR(i,"sham",!0),TR(n,r,i,e)}},cL=function(e){if("Function"===XN(e))return GN(e)},lL=cL(cL.bind),fL=Array.isArray||function(e){return"Array"===XN(e)},dL={};dL[HI("toStringTag")]="z";var pL="[object z]"===String(dL),hL=HI("toStringTag"),vL=Object,gL="Arguments"===XN(function(){return arguments}()),yL=pL?XN: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=vL(e),hL))?n:gL?XN(t):"Object"===(r=XN(t))&&iI(t.callee)?"Arguments":r},mL=function(){},bL=uI("Reflect","construct"),wL=/^\s*(?:class|function)\b/,EL=GN(wL.exec),SL=!wL.test(mL),CL=function(e){if(!iI(e))return!1;try{return bL(mL,[],e),!0}catch(e){return!1}},DL=function(e){if(!iI(e))return!1;switch(yL(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return SL||!!EL(wL,mR(e))}catch(e){return!0}};DL.sham=!0;var xL=!bL||jN((function(){var e;return CL(CL.call)||!CL(Object)||!CL((function(){e=!0}))||e}))?DL:CL,OL=HI("species"),AL=Array,kL=function(e,t){return new(function(e){var t;return fL(e)&&(t=e.constructor,(xL(t)&&(t===AL||fL(t.prototype))||aI(t)&&null===(t=t[OL]))&&(t=void 0)),void 0===t?AL:t}(e))(0===t?0:t)},BL=GN([].push),FL=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,c,l,f){for(var d,p,h=PI(s),v=QN(h),g=$R(v),y=function(e,t){return DI(e),void 0===t?e:IN?lL(e,t):function(){return e.apply(t,arguments)}}(c,l),m=0,b=f||kL,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:BL(w,d)}else switch(e){case 4:return!1;case 7:BL(w,d)}return i?-1:r||o?o:w}},TL={forEach:FL(0),map:FL(1),filter:FL(2),some:FL(3),every:FL(4),find:FL(5),findIndex:FL(6),filterReject:FL(7)},PL=HI("species"),_L=function(e){return gI>=51||!jN((function(){var t=[];return(t.constructor={})[PL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},jL=TL.filter;sL({target:"Array",proto:!0,forced:!_L("filter")},{filter:function(e){return jL(this,e,arguments.length>1?arguments[1]:void 0)}});var NL=pL?{}.toString:function(){return"[object "+yL(this)+"]"};pL||TR(Object.prototype,"toString",NL,{unsafe:!0});var IL,RL=String,LL=function(e){if("Symbol"===yL(e))throw new TypeError("Cannot convert a Symbol value to a string");return RL(e)},ML=function(){var e=tR(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},zL=_N.RegExp,$L=jN((function(){var e=zL("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),HL=$L||jN((function(){return!zL("a","y").sticky})),UL={BROKEN_CARET:$L||jN((function(){var e=zL("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:HL,UNSUPPORTED_Y:$L},VL=Object.keys||function(e){return qR(e,GR)},WL=NN&&!JI?Object.defineProperties:function(e,t){tR(e);for(var n,r=rI(t),o=VL(t),i=o.length,a=0;i>a;)sR.f(e,n=o[a++],r[n]);return e},qL={f:WL},GL=uI("document","documentElement"),KL="prototype",YL="script",XL=SR("IE_PROTO"),ZL=function(){},JL=function(e){return"<script>"+e+"</"+YL+">"},QL=function(e){e.write(JL("")),e.close();var t=e.parentWindow.Object;return e=null,t},eM=function(){try{IL=new ActiveXObject("htmlfile")}catch(e){}var e,t;eM="undefined"!=typeof document?document.domain&&IL?QL(IL):("javascript:",(t=KI("iframe")).style.display="none",GL.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(JL("document.F=Object")),e.close(),e.F):QL(IL);for(var n=GR.length;n--;)delete eM[KL][GR[n]];return eM()};CR[XL]=!0;var tM,nM,rM=Object.create||function(e,t){var n;return null!==e?(ZL[KL]=tR(e),n=new ZL,ZL[KL]=null,n[XL]=e):n=eM(),void 0===t?n:qL.f(n,t)},oM=_N.RegExp,iM=jN((function(){var e=oM(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),aM=_N.RegExp,uM=jN((function(){var e=aM("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),sM=BR.get,cM=FI("native-string-replace",String.prototype.replace),lM=RegExp.prototype.exec,fM=lM,dM=GN("".charAt),pM=GN("".indexOf),hM=GN("".replace),vM=GN("".slice),gM=(nM=/b*/g,LN(lM,tM=/a/,"a"),LN(lM,nM,"a"),0!==tM.lastIndex||0!==nM.lastIndex),yM=UL.BROKEN_CARET,mM=void 0!==/()??/.exec("")[1];(gM||mM||yM||iM||uM)&&(fM=function(e){var t,n,r,o,i,a,u,s=this,c=sM(s),l=LL(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=LN(fM,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=yM&&s.sticky,h=LN(ML,s),v=s.source,g=0,y=l;if(p&&(h=hM(h,"y",""),-1===pM(h,"g")&&(h+="g"),y=vM(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==dM(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),mM&&(n=new RegExp("^"+v+"$(?!\\s)",h)),gM&&(r=s.lastIndex),o=LN(lM,p?n:s,y),p?o?(o.input=vM(o.input,g),o[0]=vM(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:gM&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),mM&&o&&o.length>1&&LN(cM,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=rM(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var bM=fM;sL({target:"RegExp",proto:!0,forced:/./.exec!==bM},{exec:bM});var wM=Function.prototype,EM=wM.apply,SM=wM.call,CM="object"==typeof Reflect&&Reflect.apply||(IN?SM.bind(EM):function(){return SM.apply(EM,arguments)}),DM=HI("species"),xM=RegExp.prototype,OM=function(e,t,n,r){var o=HI(e),i=!jN((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!jN((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[DM]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=/./[o],s=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===bM||a===xM.exec?i&&!o?{done:!0,value:LN(u,t,n,r)}:{done:!0,value:LN(e,n,t,r)}:{done:!1}}));TR(String.prototype,e,s[0]),TR(xM,o,s[1])}r&&cR(xM[o],"sham",!0)},AM=GN("".charAt),kM=GN("".charCodeAt),BM=GN("".slice),FM=function(e){return function(t,n){var r,o,i=LL(nI(t)),a=NR(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=kM(i,a))<55296||r>56319||a+1===u||(o=kM(i,a+1))<56320||o>57343?e?AM(i,a):r:e?BM(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),TM=function(e,t,n){return t+(n?FM(e,t).length:1)},PM=Math.floor,_M=GN("".charAt),jM=GN("".replace),NM=GN("".slice),IM=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,RM=/\$([$&'`]|\d{1,2})/g,LM=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=RM;return void 0!==o&&(o=PI(o),s=IM),jM(i,s,(function(i,s){var c;switch(_M(s,0)){case"$":return"$";case"&":return e;case"`":return NM(t,0,n);case"'":return NM(t,a);case"<":c=o[NM(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=PM(l/10);return 0===f?i:f<=u?void 0===r[f-1]?_M(s,1):r[f-1]+_M(s,1):i}c=r[l-1]}return void 0===c?"":c}))},MM=TypeError,zM=function(e,t){var n=e.exec;if(iI(n)){var r=LN(n,e,t);return null!==r&&tR(r),r}if("RegExp"===XN(e))return LN(bM,e,t);throw new MM("RegExp#exec called on incompatible receiver")},$M=HI("replace"),HM=Math.max,UM=Math.min,VM=GN([].concat),WM=GN([].push),qM=GN("".indexOf),GM=GN("".slice),KM="$0"==="a".replace(/./,"$0"),YM=!!/./[$M]&&""===/./[$M]("a","$0");OM("replace",(function(e,t,n){var r=YM?"$":"$0";return[function(e,n){var r=nI(this),o=eI(e)?void 0:xI(e,$M);return o?LN(o,e,r,n):LN(t,LL(r),e,n)},function(e,o){var i=tR(this),a=LL(e);if("string"==typeof o&&-1===qM(o,r)&&-1===qM(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=iI(o);s||(o=LL(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=zM(i,a))&&(WM(d,f),l);)""===LL(f[0])&&(i.lastIndex=TM(a,zR(i.lastIndex),c));for(var p,h="",v=0,g=0;g<d.length;g++){for(var y,m=LL((f=d[g])[0]),b=HM(UM(NR(f.index),a.length),0),w=[],E=1;E<f.length;E++)WM(w,void 0===(p=f[E])?p:String(p));var S=f.groups;if(s){var C=VM([m],w,b,a);void 0!==S&&WM(C,S),y=LL(CM(o,void 0,C))}else y=LM(m,a,b,w,S,o);b>=v&&(h+=GM(a,v,b)+y,v=b+m.length)}return h+GM(a,v)}]}),!!jN((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!KM||YM);var XM=sR.f,ZM=HI("unscopables"),JM=Array.prototype;void 0===JM[ZM]&&XM(JM,ZM,{configurable:!0,value:rM(null)});var QM=function(e){JM[ZM][e]=!0},ez=TL.find,tz="find",nz=!0;tz in[]&&Array(1)[tz]((function(){nz=!1})),sL({target:"Array",proto:!0,forced:nz},{find:function(e){return ez(this,e,arguments.length>1?arguments[1]:void 0)}}),QM(tz);var rz,oz="\t\n\v\f\r \u2028\u2029\ufeff",iz=GN("".replace),az=RegExp("^["+oz+"]+"),uz=RegExp("(^|[^"+oz+"])["+oz+"]+$"),sz=function(e){return function(t){var n=LL(nI(t));return 1&e&&(n=iz(n,az,"")),2&e&&(n=iz(n,uz,"$1")),n}},cz={start:sz(1),end:sz(2),trim:sz(3)},lz=pR.PROPER,fz=cz.trim;function dz(e){return 0===ov("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function pz(e){return 0===e.length?"":e[0].outerHTML}function hz(e){return e.length?e[0].tagName.toLowerCase():""}function vz(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}sL({target:"String",proto:!0,forced:(rz="trim",jN((function(){return!!oz[rz]()||"
"!=="
"[rz]()||lz&&oz[rz].name!==rz})))},{trim:function(){return fz(this)}}),sL({global:!0,forced:_N.globalThis!==_N},{globalThis:_N}),bv&&(ov.fn.css=bv),xv&&(ov.fn.append=xv),Ov&&(ov.fn.prepend=Ov),iv&&(ov.fn.addClass=iv),av&&(ov.fn.removeClass=av),uv&&(ov.fn.hasClass=uv),dv&&(ov.fn.on=dv),pv&&(ov.fn.off=pv),Iv&&(ov.fn.focus=Iv),sv&&(ov.fn.attr=sv),cv&&(ov.fn.removeAttr=cv),yv&&(ov.fn.hide=yv),mv&&(ov.fn.show=mv),kv&&(ov.fn.parents=kv),lv&&(ov.fn.dataset=lv),fv&&(ov.fn.val=fv),Cv&&(ov.fn.text=Cv),Sv&&(ov.fn.html=Sv),Fv&&(ov.fn.children=Fv),Tv&&(ov.fn.remove=Tv),Bv&&(ov.fn.find=Bv),hv&&(ov.fn.width=hv),vv&&(ov.fn.height=vv),Ev&&(ov.fn.filter=Ev),Pv&&(ov.fn.empty=Pv);var gz={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ov(e);return 0===(t=t.filter((function(e){return!!vp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},yz=function(e,t){return yz=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])},yz(e,t)
|
54
|
+
/*! *****************************************************************************
|
55
|
+
Copyright (c) Microsoft Corporation.
|
56
|
+
|
57
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
58
|
+
purpose with or without fee is hereby granted.
|
59
|
+
|
60
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
61
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
62
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
63
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
64
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
65
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
66
|
+
PERFORMANCE OF THIS SOFTWARE.
|
67
|
+
***************************************************************************** */};function mz(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}yz(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var bz=function(){return bz=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},bz.apply(this,arguments)};function wz(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 Ez(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(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function Sz(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 Cz(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 Dz(e){var t=Cz(Wd.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Md.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Xd.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!vp.isText(o[0])&&(_p.setNodes(e,{type:"paragraph"}),!0)}var xz={renderElems:[AN],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[gz],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){Dz(r)||t(e)},r.deleteForward=function(e){Dz(r)||n(e)},r}},Oz=/"/g,Az=GN("".replace),kz=function(e,t,n,r){var o=LL(nI(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+Az(LL(r),Oz,""")+'"'),i+">"+o+"</"+t+">"},Bz=function(e){return jN((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 Tz(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}sL({target:"String",proto:!0,forced:Bz("bold")},{bold:function(){return kz(this,"b","","")}}),sL({target:"String",proto:!0,forced:Bz("italics")},{italics:function(){return kz(this,"i","","")}}),sL({target:"String",proto:!0,forced:Bz("sub")},{sub:function(){return kz(this,"sub","","")}}),sL({target:"String",proto:!0,forced:Bz("sup")},{sup:function(){return kz(this,"sup","","")}});var Pz={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},_z=KI("span").classList,jz=_z&&_z.constructor&&_z.constructor.prototype,Nz=jz===Object.prototype?void 0:jz,Iz=function(e,t){var n=[][e];return!!n&&jN((function(){n.call(null,t||function(){return 1},1)}))},Rz=TL.forEach,Lz=Iz("forEach")?[].forEach:function(e){return Rz(this,e,arguments.length>1?arguments[1]:void 0)},Mz=function(e){if(e&&e.forEach!==Lz)try{cR(e,"forEach",Lz)}catch(t){e.forEach=Lz}};for(var zz in Pz)Pz[zz]&&Mz(_N[zz]&&_N[zz].prototype);function $z(e,t){return null==e.selection||!!Cz(Wd.nodes(e,{match:function(t){return"pre"===rT.getNodeType(t)||!!Wd.isVoid(e,t)},universal:!0}),1)[0]}function Hz(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Wd.removeMark(e,t)}))}Mz(Nz),sL({target:"Object",stat:!0,forced:jN((function(){VL(1)}))},{keys:function(e){return VL(PI(e))}});var Uz=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Wd.marks(e);return n?n[t]:!!Cz(Wd.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 $z(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}(),Vz='<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>',Wz='<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>',qz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=uN("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 mz(t,e),t}(Uz),Gz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=uN("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 mz(t,e),t}(Uz),Kz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=uN("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 mz(t,e),t}(Uz),Yz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=uN("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 mz(t,e),t}(Uz),Xz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=uN("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 mz(t,e),t}(Uz),Zz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=uN("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 mz(t,e),t}(Uz),Jz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=uN("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 mz(t,e),t}(Uz),Qz=function(){function e(){this.title=uN("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 $z(e)},e.prototype.exec=function(e,t){var n,r,o=Wd.nodes(e,{match:function(e){return vp.isText(e)},universal:!0});try{for(var i=Sz(o),a=i.next();!a.done;a=i.next())Hz(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}(),e$={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,c=n.sup,l=t;return r&&(l=Qg("strong",null,l)),a&&(l=Qg("code",null,l)),o&&(l=Qg("em",null,l)),i&&(l=Qg("u",null,l)),u&&(l=Qg("s",null,l)),s&&(l=Qg("sub",null,l)),c&&(l=Qg("sup",null,l)),l},menus:[{key:"bold",factory:function(){return new qz}},{key:"underline",factory:function(){return new Xz}},{key:"italic",factory:function(){return new Kz}},{key:"through",factory:function(){return new Yz}},{key:"code",factory:function(){return new Gz}},{key:"sub",factory:function(){return new Zz}},{key:"sup",factory:function(){return new Jz}},{key:"clearStyle",factory:function(){return new Qz}}],styleToHtml:function(e,t){if(!vp.isText(e))return t;if(dz(t))return Fz(e,t);var n=ov(t);if("br"===hz(n))return Fz(e,"<br>");var r=n.html();return r=Fz(e,r),n.html(r),pz(n)},parseStyleHtml:function(e,t,n){var r=ov(e);if(!vp.isText(t))return t;var o=t;return Tz(r,"b,strong")&&(o.bold=!0),Tz(r,"i,em")&&(o.italic=!0),Tz(r,"u")&&(o.underline=!0),Tz(r,"s,strike")&&(o.through=!0),Tz(r,"sub")&&(o.sub=!0),Tz(r,"sup")&&(o.sup=!0),Tz(r,"code")&&(o.code=!0),o}};function t$(e){return function(t,n,r){return Qg("h"+e,null,n)}}var n$={type:"header1",renderElem:t$(1)},r$={type:"header2",renderElem:t$(2)},o$={type:"header3",renderElem:t$(3)},i$={type:"header4",renderElem:t$(4)},a$={type:"header5",renderElem:t$(5)},u$=RegExp.prototype,s$=pR.PROPER,c$="toString",l$=RegExp.prototype,f$=l$[c$],d$=jN((function(){return"/a/b"!==f$.call({source:"a",flags:"b"})})),p$=s$&&f$.name!==c$;(d$||p$)&&TR(l$,c$,(function(){var e=tR(this),t=LL(e.source),n=LL(function(e){var t=e.flags;return void 0!==t||"flags"in u$||jI(e,"flags")||!sI(u$,e)?t:LN(ML,e)}(e));return"/"+t+"/"+n}),{unsafe:!0});var h$,v$=HI("match"),g$=TypeError,y$=function(e){if(function(e){var t;return aI(e)&&(void 0!==(t=e[v$])?!!t:"RegExp"===XN(e))}(e))throw new g$("The method doesn't accept regular expressions");return e},m$=HI("match"),b$=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[m$]=!1,"/./"[e](t)}catch(e){}}return!1},w$=ZI.f,E$=cL("".slice),S$=Math.min,C$=b$("startsWith");function D$(e){var t=Cz(Wd.nodes(e,{match:function(e){return rT.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=Cz(n,1)[0];return rT.getNodeType(r)}function x$(e){return null==e.selection||!Cz(Wd.nodes(e,{match:function(e){var t=rT.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function O$(e,t){t&&_p.setNodes(e,{type:t})}sL({target:"String",proto:!0,forced:!(!C$&&(h$=w$(String.prototype,"startsWith"),h$&&!h$.writable)||C$)},{startsWith:function(e){var t=LL(nI(this));y$(e);var n=zR(S$(arguments.length>1?arguments[1]:void 0,t.length)),r=LL(e);return E$(t,n,n+r.length)===r}});var A$=function(){function e(){this.title=uN("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:uN("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 D$(e)},e.prototype.isDisabled=function(e){return x$(e)},e.prototype.exec=function(e,t){O$(e,t.toString())},e}(),k$=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return D$(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return x$(e)},e.prototype.exec=function(e,t){var n=this.type;O$(e,t===n?"paragraph":n)},e}(),B$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return mz(t,e),t}(k$),F$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return mz(t,e),t}(k$),T$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return mz(t,e),t}(k$),P$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return mz(t,e),t}(k$),_$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return mz(t,e),t}(k$),j$={key:"headerSelect",factory:function(){return new A$}},N$={key:"header1",factory:function(){return new B$}},I$={key:"header2",factory:function(){return new F$}},R$={key:"header3",factory:function(){return new T$}},L$={key:"header4",factory:function(){return new P$}},M$={key:"header5",factory:function(){return new _$}};function z$(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function $$(e){return function(t,n,r){var o=ov(t);return 0===(n=n.filter((function(e){return!!vp.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var H$={renderElems:[n$,r$,o$,i$,a$],elemsToHtml:[{type:"header1",elemToHtml:z$(1)},{type:"header2",elemToHtml:z$(2)},{type:"header3",elemToHtml:z$(3)},{type:"header4",elemToHtml:z$(4)},{type:"header5",elemToHtml:z$(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:$$(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:$$(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:$$(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:$$(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:$$(5)}],menus:[j$,N$,I$,R$,L$,M$],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=Cz(Wd.nodes(n,{match:function(e){return rT.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&rT.isSelectionAtLineEnd(e,r[1])?_p.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},U$=Object.assign,V$=Object.defineProperty,W$=GN([].concat),q$=!U$||jN((function(){if(NN&&1!==U$({b:1},U$(V$({},"a",{enumerable:!0,get:function(){V$(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==U$({},e)[n]||VL(U$({},t)).join("")!==r}))?function(e,t){for(var n=PI(e),r=arguments.length,o=1,i=XR.f,a=HN.f;r>o;)for(var u,s=QN(arguments[o++]),c=i?W$(VL(s),i(s)):VL(s),l=c.length,f=0;l>f;)u=c[f++],NN&&!LN(a,s,u)||(n[u]=s[u]);return n}:U$;function G$(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}sL({target:"Object",stat:!0,arity:2,forced:Object.assign!==q$},{assign:q$});var K$={selector:"font",preParseHtml:function(e){var t=ov(e);if("font"!==hz(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},Y$=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=Wd.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||!!Cz(Wd.nodes(e,{match:function(t){return"pre"===rT.getNodeType(t)||!!Wd.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=ov('<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=ov(r).attr("data-value");"0"===o?Wd.removeMark(e,t):Wd.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=ov('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=ov('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=uN("color.default")),"bgColor"===t&&(a=uN("color.clear"));var u=ov('\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}(),X$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=uN("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 mz(t,e),t}(Y$),Z$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=uN("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 mz(t,e),t}(Y$),J$=["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)"],Q$={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&G$(i,{color:r}),o&&G$(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!vp.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((dz(t)||"span"!==hz(n=ov(t)))&&(n=ov("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),pz(n)):t},preParseHtml:[K$],parseStyleHtml:function(e,t,n){var r=ov(e);if(!vp.isText(t))return t;var o=t,i=vz(r,"color");i&&(o.color=i);var a=vz(r,"background-color");return a||(a=vz(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new X$},config:{colors:J$}},{key:"bgColor",factory:function(){return new Z$},config:{colors:J$}}]},eH=/^(?:\w+:)?\/\/(\S+)$/,tH=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,nH=/^[^\s\.]+\.\S{2,}$/,rH=UR.includes;function oH(e){return void 0===e&&(e="r"),e+"-"+eg()}function iH(e){return e.replace(/</g,"<").replace(/>/g,">")}function aH(e,t,n,r){return wz(this,void 0,void 0,(function(){var o,i;return Ez(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 uH(e,t,n){return wz(this,void 0,void 0,(function(){var r;return Ez(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 sH(e){return null==e.selection||!!rT.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function cH(e,t){return{type:"link",url:iH(e),children:t?[{text:t}]:[]}}function lH(e,t,n){return wz(this,void 0,void 0,(function(){var r,o,i;return Ez(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),sH(e)?[2]:[4,aH("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,uH("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(sp.isCollapsed(o)?(e.insertText(" "),i=cH(r,t),_p.insertNodes(e,i),e.insertFragment([{text:" "}])):Wd.string(e,o)!==t?(e.deleteFragment(),i=cH(r,t),_p.insertNodes(e,i)):(i=cH(r),_p.wrapNodes(e,i,{split:!0}),_p.collapse(e,{edge:"end"}))),[2]}}))}))}sL({target:"Array",proto:!0,forced:jN((function(){return!Array(1).includes()}))},{includes:function(e){return rH(this,e,arguments.length>1?arguments[1]:void 0)}}),QM("includes");var fH={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Qg("a",{href:o,target:void 0===i?"_blank":i},t)}},dH={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ov(e);return 0===(t=t.filter((function(e){return!!vp.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 pH(){return oH("w-e-insert-link")}var hH=function(){function e(){this.title=uN("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=pH(),this.urlInputId=pH(),this.buttonId=pH()}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 sH(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=Cz(U_(uN("link.text"),r),2),u=a[0],s=ov(a[1]),c=Cz(U_(uN("link.url"),o),2),l=c[0],f=ov(c[1]),d=Cz(V_(i,uN("common.ok")),1)[0];if(null==this.$content){var p=ov("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();lH(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(l),h.append(d),null==t||sp.isCollapsed(t))s.val("");else{var v=Wd.string(e,t);s.val(v)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function vH(){return oH("w-e-update-link")}var gH=function(){function e(){this.title=uN("link.edit"),this.iconSvg=Vz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=vH(),this.buttonId=vH()}return e.prototype.getSelectedLinkElem=function(e){var t=rT.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 rT.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=Cz(U_(uN("link.url"),t),2),o=r[0],i=ov(r[1]),a=Cz(V_(n,uN("common.ok")),1)[0];if(null==this.$content){var u=ov("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=rT.getSelectedNodeByType(e,"link"),o=r?Xd.string(r):"",i=u.find("#"+t).val();!function(e,t,n){wz(this,void 0,void 0,(function(){var r,o;return Ez(this,(function(i){switch(i.label){case 0:return n?[4,aH("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,uH("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:iH(r)},_p.setNodes(e,o,{match:function(e){return rT.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 c=this.getValue(e);return i.val(c),setTimeout((function(){i.focus()})),s[0]},e}(),yH=function(){function e(){this.title=uN("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==rT.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||_p.unwrapNodes(e,{match:function(e){return rT.checkNodeType(e,"link")}})},e}(),mH=function(){function e(){this.title=uN("link.view"),this.iconSvg=Wz,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=rT.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}(),bH={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},wH={renderElems:[fH],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:[dH],menus:[{key:"insertLink",factory:function(){return new hH},config:bH},{key:"editLink",factory:function(){return new gH},config:bH},{key:"unLink",factory:function(){return new yH}},{key:"viewLink",factory:function(){return new mH}}],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(eH);if(!t)return!1;var n=t[1];return!(!n||!tH.test(n)&&!nH.test(n))}(t)){if(!sH(o)){var r=o.selection;if(null!=r){var i=Wd.string(o,r);lH(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=Cz(e,2),n=t[0],i=t[1];return"link"!==rT.getNodeType(n)?r([n,i]):""===Xd.string(n)?_p.removeNodes(o,{at:i}):r([n,i])},o}},EH=GN(1..valueOf),SH=RangeError,CH=RangeError,DH=String,xH=Math.floor,OH=GN((function(e){var t=LL(nI(this)),n="",r=NR(e);if(r<0||r===1/0)throw new SH("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),AH=GN("".slice),kH=GN(1..toFixed),BH=function(e,t,n){return 0===t?n:t%2==1?BH(e,t-1,n*e):BH(e*e,t/2,n)},FH=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=xH(o/1e7)},TH=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=xH(r/t),r=r%t*1e7},PH=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=DH(e[t]);n=""===n?r:n+OH("0",7-r.length)+r}return n};function _H(e,t){return"w-e-image-container-"+rT.findKey(e,t).id}sL({target:"Number",proto:!0,forced:jN((function(){return"0.000"!==kH(8e-5,3)||"1"!==kH(.9,0)||"1.25"!==kH(1.255,2)||"1000000000000000128"!==kH(0xde0b6b3a7640080,0)}))||!jN((function(){kH({})}))},{toFixed:function(e){var t,n,r,o,i=EH(this),a=NR(e),u=[0,0,0,0,0,0],s="",c="0";if(a<0||a>20)throw new CH("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return DH(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*BH(2,69,1))-69)<0?i*BH(2,-t,1):i/BH(2,t,1),n*=4503599627370496,(t=52-t)>0){for(FH(u,0,n),r=a;r>=7;)FH(u,1e7,0),r-=7;for(FH(u,BH(10,r,1),0),r=t-1;r>=23;)TH(u,1<<23),r-=23;TH(u,1<<r),FH(u,1,1),TH(u,2),c=PH(u)}else FH(u,0,n),FH(u,1<<-t,0),c=PH(u)+OH("0",a);return a>0?s+((o=c.length)<=a?"0."+OH("0",a-o)+c:AH(c,0,o-a)+"."+AH(c,o-a)):s+c}});var jH={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,c=r.style,l=void 0===c?{}:c,f=l.width,d=void 0===f?"":f,p=l.height,h=void 0===p?"":p,v=rT.isNodeSelected(n,e),g={maxWidth:"100%"};d&&(g.width="100%"),h&&(g.height="100%");var y=Qg("img",{style:g,src:o,alt:a,"data-href":s}),m=n.isDisabled();return v&&!m?function(e,t,n,r){var o=ov("body"),i=_H(e,t),a=r.width,u=r.height,s=0,c=0,l=0,f=0,d=!1,p=null,h=gg((function(e){e.preventDefault();var t=e.clientX,n=c+(d?s-t:t-s),r=l*(n/c);n>f-6||null!=p&&(n<=15||r<=15||(p.css("width",n+"px"),p.css("height",r+"px")))}),100);function v(n){if(o.off("mousemove",h),null!=p){var r=p.width().toFixed(2),i=p.height().toFixed(2),a={style:bz(bz({},t.style),{width:r+"px",height:i+"px"})};_p.setNodes(e,a,{at:rT.findPath(e,t)}),o.off("mouseup",v)}}function g(t,n){p=function(){var e=ov("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t,f=n;var r=p.find("img");if(0===r.length)throw new Error("Cannot find image elem");c=r.width(),l=r.height(),o.on("mousemove",h),o.on("mouseup",v);var a=rT.getHoverbar(e);a&&a.hideAndClean()}var y={};return a&&(y.width=a),u&&(y.height=u),y.boxShadow="0 0 0 1px #B4D5FF",Qg("div",{id:i,style:y,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(n){var r=ov(n.target);if(r.hasClass("w-e-image-dragger")){n.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(d=!0);var o=rT.getParentNode(e,t);if(null!=o){var i=rT.toDOMNode(e,o),a=i.getBoundingClientRect?i.getBoundingClientRect():{width:0},u=window.getComputedStyle(i),s=parseFloat(u.paddingLeft),c=parseFloat(u.paddingRight),l=parseFloat(u.borderLeftWidth),f=parseFloat(u.borderRightWidth);g(n.clientX,a.width-s-c-l-f)}}}}},n,Qg("div",{className:"w-e-image-dragger left-top"}),Qg("div",{className:"w-e-image-dragger right-top"}),Qg("div",{className:"w-e-image-dragger left-bottom"}),Qg("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=r.height,a={};return o&&(a.width=o),i&&(a.height=i),Qg("div",{id:_H(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},NH={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ov(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:vz(r,"width"),height:vz(r,"height")},children:[{text:""}]}}};function IH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),wz(this,void 0,void 0,(function(){var i,a;return Ez(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 RH(e,t,n){return wz(this,void 0,void 0,(function(){var r;return Ez(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 LH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),wz(this,void 0,void 0,(function(){var o,i,a;return Ez(this,(function(u){switch(u.label){case 0:return[4,IH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,RH("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:iH(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),rT.getSelectedNodeByType(e,"image")&&e.move(1),MH(e)||(_p.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function MH(e){var t=e.selection;return null==t||!sp.isCollapsed(t)||!!Cz(Wd.nodes(e,{match:function(t){var n=rT.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Wd.isVoid(e,t)},universal:!0}),1)[0]}function zH(){return oH("w-e-insert-image")}var $H=function(){function e(){this.title=uN("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=zH(),this.altInputId=zH(),this.hrefInputId=zH(),this.buttonId=zH()}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 MH(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=Cz(U_(uN("image.src"),r),2),s=u[0],c=ov(u[1]),l=Cz(U_(uN("image.desc"),o),2),f=l[0],d=ov(l[1]),p=Cz(U_(uN("image.link"),i),2),h=p[0],v=ov(p[1]),g=Cz(V_(a,uN("common.ok")),1)[0];if(null==this.$content){var y=ov("<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),c.val(""),d.val(""),v.val(""),setTimeout((function(){c.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)||LH(e,t,n,r))},e}(),HH=function(){function e(){this.title=uN("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==rT.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||_p.removeNodes(e,{match:function(e){return rT.checkNodeType(e,"image")}})},e}();function UH(){return oH("w-e-edit-image")}var VH=function(){function e(){this.title=uN("image.edit"),this.iconSvg=Vz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=UH(),this.altInputId=UH(),this.hrefInputId=UH(),this.buttonId=UH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return rT.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||!sp.isCollapsed(t)||null==rT.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=Cz(U_(uN("image.src"),r),2),c=s[0],l=ov(s[1]),f=Cz(U_(uN("image.desc"),o),2),d=f[0],p=ov(f[1]),h=Cz(U_(uN("image.link"),i),2),v=h[0],g=ov(h[1]),y=Cz(V_(a,uN("common.ok")),1)[0];if(null==this.$content){var m=ov("<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(c),b.append(d),b.append(v),b.append(y);var w=u,E=w.src,S=w.alt,C=void 0===S?"":S,D=w.href,x=void 0===D?"":D;return l.val(E),p.val(C),g.val(x),setTimeout((function(){l.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={}),wz(this,void 0,void 0,(function(){var i,a,u,s,c,l;return Ez(this,(function(f){switch(f.label){case 0:return[4,IH("editImage",e,t,n,r)];case 1:return f.sent()?[4,RH("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=rT.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:bz(bz({},void 0===u?{}:u),o)},_p.setNodes(e,s,{match:function(e){return rT.checkNodeType(e,"image")}}),c=rT.getSelectedNodeByType(e,"image"),(l=e.getMenuConfig("editImage").onUpdatedImage)&&l(c)),[2]}}))}))}(e,t,n,r,o))},e}(),WH=function(){function e(){this.title=uN("image.viewLink"),this.iconSvg=Wz,this.tag="button"}return e.prototype.getValue=function(e){var t=rT.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}(),qH=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 rT.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=rT.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:bz(bz({},void 0===o?{}:o),{width:this.value,height:""})};_p.setNodes(e,i,{match:function(e){return rT.checkNodeType(e,"image")}})}}},e}(),GH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return mz(t,e),t}(qH),KH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return mz(t,e),t}(qH),YH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return mz(t,e),t}(qH),XH={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},ZH={renderElems:[jH],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.style,c=void 0===s?{}:s,l=c.width,f=void 0===l?"":l,d=c.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[NH],menus:[{key:"insertImage",factory:function(){return new $H},config:XH},{key:"deleteImage",factory:function(){return new HH}},{key:"editImage",factory:function(){return new VH},config:XH},{key:"viewImageLink",factory:function(){return new WH}},{key:"imageWidth30",factory:function(){return new GH}},{key:"imageWidth50",factory:function(){return new KH}},{key:"imageWidth100",factory:function(){return new YH}}],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}},JH={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Qg("div",{style:{margin:"5px 0"}},Qg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Qg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=rT.findPath(n,e),o={checked:t.target.checked};_p.setNodes(n,o,{at:r})}}})),Qg("span",null,t));return o}},QH=function(){function e(){this.title=uN("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!!rT.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!rT.getSelectedElems(e).some((function(t){if(Wd.isVoid(e,t)&&Wd.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);_p.setNodes(e,{type:n?"paragraph":"todo"})},e}(),eU={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=ov(e);0===(t=t.filter((function(e){return!!vp.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}}},tU={renderElems:[JH],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=ov(e).find("li"),n=ov('<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:[eU],menus:[{key:"todo",factory:function(){return new QH}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&sp.isCollapsed(r)){var o=rT.getSelectedNodeByType(e,"todo");if(o&&0===Xd.string(o).length)return void _p.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},nU={type:"blockquote",renderElem:function(e,t,n){return Qg("blockquote",null,t)}},rU={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ov(e);return 0===(t=t.filter((function(e){return!!vp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},oU=function(){function e(){this.title=uN("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!!rT.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!Cz(Wd.nodes(e,{match:function(e){var t=rT.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";_p.setNodes(e,{type:n},{mode:"highest"})}},e}(),iU={key:"blockquote",factory:function(){return new oU}},aU=GN([].slice),uU=_L("slice"),sU=HI("species"),cU=Array,lU=Math.max;sL({target:"Array",proto:!0,forced:!uU},{slice:function(e,t){var n,r,o,i,a,u,s=rI(this),c=$R(s),l=LR(e,c),f=LR(void 0===t?c:t,c);if(fL(s)&&(n=s.constructor,(xL(n)&&(n===cU||fL(n.prototype))||aI(n)&&null===(n=n[sU]))&&(n=void 0),n===cU||void 0===n))return aU(s,l,f);for(r=new(void 0===n?cU:n)(lU(f-l,0)),o=0;l<f;l++,o++)l in s&&(i=r,a=o,u=s[l],NN?sR.f(i,a,UN(0,u)):i[a]=u);return r.length=o,r}});var fU={renderElems:[nU],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[rU],menus:[iU],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=Cz(Wd.nodes(e,{match:function(e){return rT.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=rT.findPath(e,a),s=Wd.end(e,u);if(op.equals(s,o.focus)){var c=Xd.string(a);if(c&&"\n"===c.slice(-1))return e.deleteBackward("character"),void _p.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},dU=function(){function e(){this.title=uN("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||!!Cz(Wd.nodes(e,{match:function(t){return"pre"===rT.getNodeType(t)||!!Wd.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=ov('<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=ov(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=ov("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),pU={menus:[{key:"emotion",factory:function(){return new dU},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},hU={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},vU={selector:"font",preParseHtml:function(e){var t=ov(e);if("font"!==hz(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",hU[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},gU=GN("".indexOf);sL({target:"String",proto:!0,forced:!b$("includes")},{includes:function(e){return!!~gU(LL(nI(this)),LL(y$(e)),arguments.length>1?arguments[1]:void 0)}});var yU,mU,bU=function(e){return e&&e.Math===Math&&e},wU=bU("object"==typeof globalThis&&globalThis)||bU("object"==typeof window&&window)||bU("object"==typeof self&&self)||bU("object"==typeof kN&&kN)||bU("object"==typeof kN&&kN)||function(){return this}()||Function("return this")(),EU=function(e){try{return!!e()}catch(e){return!0}},SU=!EU((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),CU=SU,DU=Function.prototype,xU=DU.apply,OU=DU.call,AU="object"==typeof Reflect&&Reflect.apply||(CU?OU.bind(xU):function(){return OU.apply(xU,arguments)}),kU=Function.prototype,BU=kU.call,FU=CU&&kU.bind.bind(BU,BU),TU=CU?FU:function(e){return function(){return BU.apply(e,arguments)}},PU=TU({}.toString),_U=TU("".slice),jU=function(e){return _U(PU(e),8,-1)},NU="object"==typeof document&&document.all,IU=void 0===NU&&void 0!==NU?function(e){return"function"==typeof e||e===NU}:function(e){return"function"==typeof e},RU=!EU((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),LU=Function.prototype.call,MU=CU?LU.bind(LU):function(){return LU.apply(LU,arguments)},zU={}.propertyIsEnumerable,$U=Object.getOwnPropertyDescriptor,HU=$U&&!zU.call({1:2},1)?function(e){var t=$U(this,e);return!!t&&t.enumerable}:zU,UU={f:HU},VU=Object,WU=TU("".split),qU=EU((function(){return!VU("z").propertyIsEnumerable(0)}))?function(e){return"String"===jU(e)?WU(e,""):VU(e)}:VU,GU=function(e){return null==e},KU=TypeError,YU=qU,XU=function(e){if(GU(e))throw new KU("Can't call method on "+e);return e},ZU=IU,JU={},QU=wU,eV=function(e){return ZU(e)?e:void 0},tV=TU({}.isPrototypeOf),nV=QU.navigator,rV=nV&&nV.userAgent,oV=rV?String(rV):"",iV=QU.process,aV=QU.Deno,uV=iV&&iV.versions||aV&&aV.version,sV=uV&&uV.v8;sV&&(mU=(yU=sV.split("."))[0]>0&&yU[0]<4?1:+(yU[0]+yU[1])),!mU&&oV&&(!(yU=oV.match(/Edge\/(\d+)/))||yU[1]>=74)&&(yU=oV.match(/Chrome\/(\d+)/))&&(mU=+yU[1]);var cV=mU,lV=QU.String,fV=!!Object.getOwnPropertySymbols&&!EU((function(){var e=Symbol("symbol detection");return!lV(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cV&&cV<41})),dV=fV,pV=dV&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,hV=function(e,t){return arguments.length<2?eV(JU[e])||eV(QU[e]):JU[e]&&JU[e][t]||QU[e]&&QU[e][t]},vV=tV,gV=pV,yV=Object,mV=gV?function(e){return"symbol"==typeof e}:function(e){var t=hV("Symbol");return ZU(t)&&vV(t.prototype,yV(e))},bV=String,wV=function(e){try{return bV(e)}catch(e){return"Object"}},EV=TypeError,SV=function(e){if(ZU(e))return e;throw new EV(wV(e)+" is not a function")},CV=MU,DV=function(e){return"object"==typeof e?null!==e:ZU(e)},xV=TypeError,OV=Object.defineProperty,AV=BN((function(e){var t="__core-js_shared__",n=e.exports=QU[t]||function(e,t){try{OV(QU,e,{value:t,configurable:!0,writable:!0})}catch(n){QU[e]=t}return t}(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),kV=AV,BV=Object,FV=function(e){return BV(XU(e))},TV=TU({}.hasOwnProperty),PV=Object.hasOwn||function(e,t){return TV(FV(e),t)},_V=0,jV=Math.random(),NV=TU(1..toString),IV=function(e,t){return kV[e]||(kV[e]=t||{})},RV=PV,LV=function(e){return"Symbol("+(void 0===e?"":e)+")_"+NV(++_V+jV,36)},MV=QU.Symbol,zV=IV("wks"),$V=gV?MV.for||MV:MV&&MV.withoutSetter||LV,HV=mV,UV=function(e){return RV(zV,e)||(zV[e]=dV&&RV(MV,e)?MV[e]:$V("Symbol."+e)),zV[e]},VV=TypeError,WV=UV("toPrimitive"),qV=QU.document,GV=DV(qV)&&DV(qV.createElement),KV=RU,YV=function(e){return GV?qV.createElement(e):{}},XV=!KV&&!EU((function(){return 7!==Object.defineProperty(YV("div"),"a",{get:function(){return 7}}).a})),ZV=UU,JV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},QV=function(e){return YU(XU(e))},eW=function(e){var t=function(e,t){if(!DV(e)||HV(e))return e;var n,r=function(e,t){var n=e[t];return GU(n)?void 0:SV(n)}(e,WV);if(r){if(void 0===t&&(t="default"),n=CV(r,e,t),!DV(n)||HV(n))return n;throw new VV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ZU(n=e.toString)&&!DV(r=CV(n,e)))return r;if(ZU(n=e.valueOf)&&!DV(r=CV(n,e)))return r;if("string"!==t&&ZU(n=e.toString)&&!DV(r=CV(n,e)))return r;throw new xV("Can't convert object to primitive value")}(e,t)}(e,"string");return HV(t)?t:t+""},tW=XV,nW=Object.getOwnPropertyDescriptor,rW={f:KV?nW:function(e,t){if(e=QV(e),t=eW(t),tW)try{return nW(e,t)}catch(e){}if(RV(e,t))return JV(!CV(ZV.f,e,t),e[t])}},oW=/#|\.prototype\./,iW=function(e,t){var n=uW[aW(e)];return n===cW||n!==sW&&(ZU(t)?EU(t):!!t)},aW=iW.normalize=function(e){return String(e).replace(oW,".").toLowerCase()},uW=iW.data={},sW=iW.NATIVE="N",cW=iW.POLYFILL="P",lW=iW,fW=function(e){if("Function"===jU(e))return TU(e)},dW=fW(fW.bind),pW=KV&&EU((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),hW=String,vW=TypeError,gW=pW,yW=function(e){if(DV(e))return e;throw new vW(hW(e)+" is not an object")},mW=TypeError,bW=Object.defineProperty,wW=Object.getOwnPropertyDescriptor,EW="enumerable",SW="configurable",CW="writable",DW={f:KV?gW?function(e,t,n){if(yW(e),t=eW(t),yW(n),"function"==typeof e&&"prototype"===t&&"value"in n&&CW in n&&!n[CW]){var r=wW(e,t);r&&r[CW]&&(e[t]=n.value,n={configurable:SW in n?n[SW]:r[SW],enumerable:EW in n?n[EW]:r[EW],writable:!1})}return bW(e,t,n)}:bW:function(e,t,n){if(yW(e),t=eW(t),yW(n),tW)try{return bW(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new mW("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},xW=AU,OW=rW,AW=lW,kW=function(e,t){return SV(e),void 0===t?e:CU?dW(e,t):function(){return e.apply(t,arguments)}},BW=KV?function(e,t,n){return DW.f(e,t,JV(1,n))}:function(e,t,n){return e[t]=n,e},FW=OW.f,TW=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 xW(e,this,arguments)};return t.prototype=e.prototype,t},PW=Array.isArray||function(e){return"Array"===jU(e)},_W=Math.ceil,jW=Math.floor,NW=Math.trunc||function(e){var t=+e;return(t>0?jW:_W)(t)},IW=function(e){var t=+e;return t!=t||0===t?0:NW(t)},RW=Math.min,LW=TypeError,MW={};MW[UV("toStringTag")]="z";var zW="[object z]"===String(MW),$W=UV("toStringTag"),HW=Object,UW="Arguments"===jU(function(){return arguments}()),VW=zW?jU: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=HW(e),$W))?n:UW?jU(t):"Object"===(r=jU(t))&&ZU(t.callee)?"Arguments":r},WW=TU(Function.toString);ZU(kV.inspectSource)||(kV.inspectSource=function(e){return WW(e)});var qW=kV.inspectSource,GW=VW,KW=qW,YW=function(){},XW=hV("Reflect","construct"),ZW=/^\s*(?:class|function)\b/,JW=TU(ZW.exec),QW=!ZW.test(YW),eq=function(e){if(!ZU(e))return!1;try{return XW(YW,[],e),!0}catch(e){return!1}},tq=function(e){if(!ZU(e))return!1;switch(GW(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return QW||!!JW(ZW,KW(e))}catch(e){return!0}};tq.sham=!0;var nq=!XW||EU((function(){var e;return eq(eq.call)||!eq(Object)||!eq((function(){e=!0}))||e}))?tq:eq,rq=PW,oq=nq,iq=UV("species"),aq=Array,uq=UV("species"),sq=function(e,t){var n,r,o,i,a,u,s,c,l,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?QU:p?QU[f]:QU[f]&&QU[f].prototype,g=d?JU:JU[f]||BW(JU,f,{})[f],y=g.prototype;for(i in t)r=!(n=AW(d?i:f+(p?".":"#")+i,e.forced))&&v&&RV(v,i),u=g[i],r&&(s=e.dontCallGetSet?(l=FW(v,i))&&l.value:v[i]),a=r&&s?s:t[i],(n||h||typeof u!=typeof a)&&(c=e.bind&&r?kW(a,QU):e.wrap&&r?TW(a):h&&ZU(a)?fW(a):a,(e.sham||a&&a.sham||u&&u.sham)&&BW(c,"sham",!0),BW(g,i,c),h&&(RV(JU,o=f+"Prototype")||BW(JU,o,{}),BW(JU[o],i,a),e.real&&y&&(n||!y[i])&&BW(y,i,a)))},cq=function(e){return function(e){var t=IW(e);return t>0?RW(t,9007199254740991):0}(e.length)},lq=function(e){if(e>9007199254740991)throw LW("Maximum allowed index exceeded");return e},fq=function(e,t,n){KV?DW.f(e,t,JV(0,n)):e[t]=n},dq=function(e,t){return new(function(e){var t;return rq(e)&&(t=e.constructor,(oq(t)&&(t===aq||rq(t.prototype))||DV(t)&&null===(t=t[iq]))&&(t=void 0)),void 0===t?aq:t}(e))(0===t?0:t)},pq=UV("isConcatSpreadable"),hq=cV>=51||!EU((function(){var e=[];return e[pq]=!1,e.concat()[0]!==e})),vq=function(e){if(!DV(e))return!1;var t=e[pq];return void 0!==t?!!t:rq(e)},gq=!hq||!(cV>=51||!EU((function(){var e=[];return(e.constructor={})[uq]=function(){return{foo:1}},1!==e.concat(Boolean).foo})));sq({target:"Array",proto:!0,arity:1,forced:gq},{concat:function(e){var t,n,r,o,i,a=FV(this),u=dq(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(vq(i=-1===t?a:arguments[t]))for(o=cq(i),lq(s+o),n=0;n<o;n++,s++)n in i&&fq(u,s,i[n]);else lq(s+1),fq(u,s++,i);return u.length=s,u}});var yq,mq=String,bq=Math.max,wq=Math.min,Eq=function(e){return function(t,n,r){var o=QV(t),i=cq(o);if(0===i)return!e&&-1;var a,u=function(e,t){var n=IW(e);return n<0?bq(n+t,0):wq(n,t)}(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},Sq={includes:Eq(!0),indexOf:Eq(!1)},Cq={},Dq=Sq.indexOf,xq=TU([].push),Oq=function(e,t){var n,r=QV(e),o=0,i=[];for(n in r)!RV(Cq,n)&&RV(r,n)&&xq(i,n);for(;t.length>o;)RV(r,n=t[o++])&&(~Dq(i,n)||xq(i,n));return i},Aq=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kq=Object.keys||function(e){return Oq(e,Aq)},Bq=KV&&!gW?Object.defineProperties:function(e,t){yW(e);for(var n,r=QV(t),o=kq(t),i=o.length,a=0;i>a;)DW.f(e,n=o[a++],r[n]);return e},Fq={f:Bq},Tq=hV("document","documentElement"),Pq=IV("keys"),_q=Fq,jq=Tq,Nq=function(e){return Pq[e]||(Pq[e]=LV(e))},Iq="prototype",Rq="script",Lq=Nq("IE_PROTO"),Mq=function(){},zq=function(e){return"<script>"+e+"</"+Rq+">"},$q=function(e){e.write(zq("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hq=function(){try{yq=new ActiveXObject("htmlfile")}catch(e){}var e,t;Hq="undefined"!=typeof document?document.domain&&yq?$q(yq):("javascript:",(t=YV("iframe")).style.display="none",jq.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zq("document.F=Object")),e.close(),e.F):$q(yq);for(var n=Aq.length;n--;)delete Hq[Iq][Aq[n]];return Hq()};Cq[Lq]=!0;var Uq,Vq,Wq,qq=Object.create||function(e,t){var n;return null!==e?(Mq[Iq]=yW(e),n=new Mq,Mq[Iq]=null,n[Lq]=e):n=Hq(),void 0===t?n:_q.f(n,t)},Gq=Aq.concat("length","prototype"),Kq={f:Object.getOwnPropertyNames||function(e){return Oq(e,Gq)}},Yq=TU([].slice),Xq=Kq.f,Zq="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Jq={f:function(e){return Zq&&"Window"===jU(e)?function(e){try{return Xq(e)}catch(e){return Yq(Zq)}}(e):Xq(QV(e))}},Qq={f:Object.getOwnPropertySymbols},eG={f:UV},tG=DW.f,nG=function(e,t,n,r){return r&&r.enumerable?e[t]=n:BW(e,t,n),e},rG=zW?{}.toString:function(){return"[object "+GW(this)+"]"},oG=DW.f,iG=UV("toStringTag"),aG=QU.WeakMap,uG=ZU(aG)&&/native code/.test(String(aG)),sG="Object already initialized",cG=QU.TypeError,lG=QU.WeakMap;if(uG||kV.state){var fG=kV.state||(kV.state=new lG);fG.get=fG.get,fG.has=fG.has,fG.set=fG.set,Uq=function(e,t){if(fG.has(e))throw new cG(sG);return t.facade=e,fG.set(e,t),t},Vq=function(e){return fG.get(e)||{}},Wq=function(e){return fG.has(e)}}else{var dG=Nq("state");Cq[dG]=!0,Uq=function(e,t){if(RV(e,dG))throw new cG(sG);return t.facade=e,BW(e,dG,t),t},Vq=function(e){return RV(e,dG)?e[dG]:{}},Wq=function(e){return RV(e,dG)}}var pG={set:Uq,get:Vq,has:Wq,enforce:function(e){return Wq(e)?Vq(e):Uq(e,{})},getterFor:function(e){return function(t){var n;if(!DV(t)||(n=Vq(t)).type!==e)throw new cG("Incompatible receiver, "+e+" required");return n}}},hG=TU([].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,c,l,f){for(var d,p,h=FV(s),v=YU(h),g=cq(v),y=kW(c,l),m=0,b=f||dq,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:hG(w,d)}else switch(e){case 4:return!1;case 7:hG(w,d)}return i?-1:r||o?o:w}},gG={forEach:vG(0),map:vG(1),filter:vG(2),some:vG(3),every:vG(4),find:vG(5),findIndex:vG(6),filterReject:vG(7)},yG=function(e){if("Symbol"===GW(e))throw new TypeError("Cannot convert a Symbol value to a string");return mq(e)},mG=qq,bG=Jq,wG=Qq,EG=function(e){var t=JU.Symbol||(JU.Symbol={});RV(t,e)||tG(t,e,{value:eG.f(e)})},SG=function(){var e=hV("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=UV("toPrimitive");t&&!t[r]&&nG(t,r,(function(e){return CV(n,this)}),{arity:1})},CG=function(e,t,n,r){var o=n?e:e&&e.prototype;o&&(RV(o,iG)||oG(o,iG,{configurable:!0,value:t}),r&&!zW&&BW(o,"toString",rG))},DG=pG,xG=gG.forEach,OG=Nq("hidden"),AG="Symbol",kG="prototype",BG=DG.set,FG=DG.getterFor(AG),TG=Object[kG],PG=QU.Symbol,_G=PG&&PG[kG],jG=QU.RangeError,NG=QU.TypeError,IG=QU.QObject,RG=OW.f,LG=DW.f,MG=bG.f,zG=ZV.f,$G=TU([].push),HG=IV("symbols"),UG=IV("op-symbols"),VG=IV("wks"),WG=!IG||!IG[kG]||!IG[kG].findChild,qG=function(e,t,n){var r=RG(TG,t);r&&delete TG[t],LG(e,t,n),r&&e!==TG&&LG(TG,t,r)},GG=KV&&EU((function(){return 7!==mG(LG({},"a",{get:function(){return LG(this,"a",{value:7}).a}})).a}))?qG:LG,KG=function(e,t){var n=HG[e]=mG(_G);return BG(n,{type:AG,tag:e,description:t}),KV||(n.description=t),n},YG=function(e,t,n){e===TG&&YG(UG,t,n),yW(e);var r=eW(t);return yW(n),RV(HG,r)?(n.enumerable?(RV(e,OG)&&e[OG][r]&&(e[OG][r]=!1),n=mG(n,{enumerable:JV(0,!1)})):(RV(e,OG)||LG(e,OG,JV(1,mG(null))),e[OG][r]=!0),GG(e,r,n)):LG(e,r,n)},XG=function(e,t){yW(e);var n=QV(t),r=kq(n).concat(eK(n));return xG(r,(function(t){KV&&!CV(ZG,n,t)||YG(e,t,n[t])})),e},ZG=function(e){var t=eW(e),n=CV(zG,this,t);return!(this===TG&&RV(HG,t)&&!RV(UG,t))&&(!(n||!RV(this,t)||!RV(HG,t)||RV(this,OG)&&this[OG][t])||n)},JG=function(e,t){var n=QV(e),r=eW(t);if(n!==TG||!RV(HG,r)||RV(UG,r)){var o=RG(n,r);return!o||!RV(HG,r)||RV(n,OG)&&n[OG][r]||(o.enumerable=!0),o}},QG=function(e){var t=MG(QV(e)),n=[];return xG(t,(function(e){RV(HG,e)||RV(Cq,e)||$G(n,e)})),n},eK=function(e){var t=e===TG,n=MG(t?UG:QV(e)),r=[];return xG(n,(function(e){!RV(HG,e)||t&&!RV(TG,e)||$G(r,HG[e])})),r};dV||(PG=function(){if(vV(_G,this))throw new NG("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?yG(arguments[0]):void 0,t=LV(e),n=function(e){var r=void 0===this?QU:this;r===TG&&CV(n,UG,e),RV(r,OG)&&RV(r[OG],t)&&(r[OG][t]=!1);var o=JV(1,e);try{GG(r,t,o)}catch(e){if(!(e instanceof jG))throw e;qG(r,t,o)}};return KV&&WG&&GG(TG,t,{configurable:!0,set:n}),KG(t,e)},_G=PG[kG],nG(_G,"toString",(function(){return FG(this).tag})),nG(PG,"withoutSetter",(function(e){return KG(LV(e),e)})),ZV.f=ZG,DW.f=YG,_q.f=XG,OW.f=JG,Kq.f=bG.f=QG,wG.f=eK,eG.f=function(e){return KG(UV(e),e)},KV&&function(e,t,n){DW.f(e,"description",n)}(_G,0,{configurable:!0,get:function(){return FG(this).description}})),sq({global:!0,constructor:!0,wrap:!0,forced:!dV,sham:!dV},{Symbol:PG}),xG(kq(VG),(function(e){EG(e)})),sq({target:AG,stat:!0,forced:!dV},{useSetter:function(){WG=!0},useSimple:function(){WG=!1}}),sq({target:"Object",stat:!0,forced:!dV,sham:!KV},{create:function(e,t){return void 0===t?mG(e):XG(mG(e),t)},defineProperty:YG,defineProperties:XG,getOwnPropertyDescriptor:JG}),sq({target:"Object",stat:!0,forced:!dV},{getOwnPropertyNames:QG}),SG(),CG(PG,AG),Cq[OG]=!0;var tK=dV&&!!Symbol.for&&!!Symbol.keyFor,nK=IV("string-to-symbol-registry"),rK=IV("symbol-to-string-registry");sq({target:"Symbol",stat:!0,forced:!tK},{for:function(e){var t=yG(e);if(RV(nK,t))return nK[t];var n=hV("Symbol")(t);return nK[t]=n,rK[n]=t,n}});var oK=IV("symbol-to-string-registry");sq({target:"Symbol",stat:!0,forced:!tK},{keyFor:function(e){if(!HV(e))throw new TypeError(wV(e)+" is not a symbol");if(RV(oK,e))return oK[e]}});var iK=TU([].push),aK=String,uK=hV("JSON","stringify"),sK=TU(/./.exec),cK=TU("".charAt),lK=TU("".charCodeAt),fK=TU("".replace),dK=TU(1..toString),pK=/[\uD800-\uDFFF]/g,hK=/^[\uD800-\uDBFF]$/,vK=/^[\uDC00-\uDFFF]$/,gK=!dV||EU((function(){var e=hV("Symbol")("stringify detection");return"[null]"!==uK([e])||"{}"!==uK({a:e})||"{}"!==uK(Object(e))})),yK=EU((function(){return'"\\udf06\\ud834"'!==uK("\udf06\ud834")||'"\\udead"'!==uK("\udead")})),mK=function(e,t){var n=Yq(arguments),r=function(e){if(ZU(e))return e;if(rq(e)){for(var t=e.length,n=[],r=0;r<t;r++){var o=e[r];"string"==typeof o?iK(n,o):"number"!=typeof o&&"Number"!==jU(o)&&"String"!==jU(o)||iK(n,yG(o))}var i=n.length,a=!0;return function(e,t){if(a)return a=!1,t;if(rq(this))return t;for(var r=0;r<i;r++)if(n[r]===e)return t}}}(t);if(ZU(r)||void 0!==e&&!HV(e))return n[1]=function(e,t){if(ZU(r)&&(t=CV(r,this,aK(e),t)),!HV(t))return t},xW(uK,null,n)},bK=function(e,t,n){var r=cK(n,t-1),o=cK(n,t+1);return sK(hK,e)&&!sK(vK,o)||sK(vK,e)&&!sK(hK,r)?"\\u"+dK(lK(e,0),16):e};uK&&sq({target:"JSON",stat:!0,arity:3,forced:gK||yK},{stringify:function(e,t,n){var r=Yq(arguments),o=xW(gK?mK:uK,null,r);return yK&&"string"==typeof o?fK(o,pK,bK):o}});var wK=!dV||EU((function(){wG.f(1)}));sq({target:"Object",stat:!0,forced:wK},{getOwnPropertySymbols:function(e){var t=wG.f;return t?t(FV(e)):[]}}),EG("asyncIterator"),EG("hasInstance"),EG("isConcatSpreadable"),EG("iterator"),EG("match"),EG("matchAll"),EG("replace"),EG("search"),EG("species"),EG("split"),EG("toPrimitive"),SG(),EG("toStringTag"),CG(hV("Symbol"),"Symbol"),EG("unscopables"),CG(QU.JSON,"JSON",!0);var EK,SK,CK,DK=JU.Symbol,xK=Function.prototype,OK=KV&&Object.getOwnPropertyDescriptor,AK=RV(xK,"name"),kK={EXISTS:AK,PROPER:AK&&"something"===function(){}.name,CONFIGURABLE:AK&&(!KV||KV&&OK(xK,"name").configurable)},BK=!EU((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),FK=Nq("IE_PROTO"),TK=Object,PK=TK.prototype,_K=BK?TK.getPrototypeOf:function(e){var t=FV(e);if(RV(t,FK))return t[FK];var n=t.constructor;return ZU(n)&&t instanceof n?n.prototype:t instanceof TK?PK:null},jK=UV("iterator"),NK=!1;[].keys&&("next"in(CK=[].keys())?(SK=_K(_K(CK)))!==Object.prototype&&(EK=SK):NK=!0);var IK=!DV(EK)||EU((function(){var e={};return EK[jK].call(e)!==e}));EK=IK?{}:mG(EK),ZU(EK[jK])||nG(EK,jK,(function(){return this}));var RK={IteratorPrototype:EK,BUGGY_SAFARI_ITERATORS:NK},LK=RK.IteratorPrototype,MK=(Object.setPrototypeOf||"__proto__"in{}&&function(){try{!function(e,t,n){try{return TU(SV(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype)({},[])}catch(e){}}(),function(e,t,n,r){var o=t+" Iterator";return e.prototype=mG(LK,{next:JV(+!r,n)}),CG(e,o,!1,!0),e}),zK=kK.PROPER,$K=RK.BUGGY_SAFARI_ITERATORS,HK=UV("iterator"),UK="keys",VK="values",WK="entries",qK=function(e,t,n,r,o,i,a){MK(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!$K&&e&&e in p)return p[e];switch(e){case UK:case VK:case WK:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[HK]||p["@@iterator"]||o&&p[o],v=!$K&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=_K(g.call(new e)))!==Object.prototype&&u.next&&CG(u,f,!0,!0),zK&&o===VK&&h&&h.name!==VK&&(d=!0,v=function(){return CV(h,this)}),o)if(s={values:l(VK),keys:i?v:l(UK),entries:l(WK)},a)for(c in s)($K||d||!(c in p))&&nG(p,c,s[c]);else sq({target:t,proto:!0,forced:$K||d},s);return a&&p[HK]!==v&&nG(p,HK,v,{name:o}),s},GK=function(e,t){return{value:e,done:t}},KK=(DW.f,"Array Iterator"),YK=DG.set,XK=DG.getterFor(KK);for(var ZK in qK(Array,"Array",(function(e,t){YK(this,{type:KK,target:QV(e),index:0,kind:t})}),(function(){var e=XK(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,GK(void 0,!0);switch(e.kind){case"keys":return GK(n,!1);case"values":return GK(t[n],!1)}return GK([n,t[n]],!1)}),"values"),{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})CG(QU[ZK],ZK);var JK=DK,QK=DW.f,eY=UV("metadata"),tY=Function.prototype;void 0===tY[eY]&&QK(tY,eY,{value:null}),EG("asyncDispose"),EG("dispose"),EG("metadata");var nY=JK,rY=hV("Symbol"),oY=rY.keyFor,iY=TU(rY.prototype.valueOf),aY=rY.isRegisteredSymbol||function(e){try{return void 0!==oY(iY(e))}catch(e){return!1}};sq({target:"Symbol",stat:!0},{isRegisteredSymbol:aY});for(var uY=hV("Symbol"),sY=uY.isWellKnownSymbol,cY=hV("Object","getOwnPropertyNames"),lY=TU(uY.prototype.valueOf),fY=IV("wks"),dY=0,pY=cY(uY),hY=pY.length;dY<hY;dY++)try{var vY=pY[dY];HV(uY[vY])&&UV(vY)}catch(rf){}var gY=function(e){if(sY&&sY(e))return!0;try{for(var t=lY(e),n=0,r=cY(fY),o=r.length;n<o;n++)if(fY[r[n]]==t)return!0}catch(e){}return!1};sq({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:gY}),EG("customMatcher"),EG("observable"),sq({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:aY}),sq({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:gY}),EG("matcher"),EG("metadataKey"),EG("patternMatch"),EG("replaceAll");var yY=nY,mY=TU("".charAt),bY=TU("".charCodeAt),wY=TU("".slice),EY=function(e){return function(t,n){var r,o,i=yG(XU(t)),a=IW(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=bY(i,a))<55296||r>56319||a+1===u||(o=bY(i,a+1))<56320||o>57343?e?mY(i,a):r:e?wY(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),SY="String Iterator",CY=DG.set,DY=DG.getterFor(SY);qK(String,"String",(function(e){CY(this,{type:SY,string:yG(e),index:0})}),(function(){var e,t=DY(this),n=t.string,r=t.index;return r>=n.length?GK(void 0,!0):(e=EY(n,r),t.index+=e.length,GK(e,!1))}));var xY=eG.f("iterator"),OY=yY,AY=xY,kY=BN((function(e){function t(n){return e.exports=t="function"==typeof OY&&"symbol"==typeof AY?function(e){return typeof e}:function(e){return e&&"function"==typeof OY&&e.constructor===OY&&e!==OY.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),BY=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(kY),FY=pR.EXISTS,TY=Function.prototype,PY=GN(TY.toString),_Y=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,jY=GN(_Y.exec);NN&&!FY&&function(e,t,n){n.get&&FR(n.get,t,{getter:!0}),n.set&&FR(n.set,t,{setter:!0}),sR.f(e,t,n)}(TY,"name",{configurable:!0,get:function(){try{return jY(_Y,PY(this))[1]}catch(e){return""}}});var NY=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=Wd.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!Cz(Wd.nodes(e,{match:function(t){return"pre"===rT.getNodeType(t)||!!Wd.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}(),IY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=uN("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 mz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:uN("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===BY(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}(NY),RY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=uN("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 mz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:uN("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===BY(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}(NY),LY={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&G$(i,{fontSize:r}),o&&G$(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!vp.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((dz(t)||"span"!==hz(n=ov(t)))&&(n=ov("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),pz(n)):t},preParseHtml:[vU],parseStyleHtml:function(e,t,n){var r=ov(e);if(!vp.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=vz(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var c=n.getMenuConfig("fontFamily").fontFamilyList,l=void 0===c?[]:c,f=vz(r,"font-family").replace(/"/g,""),d=l.find((function(e){return e.value&&e.value===f}))||l.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new IY},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 RY},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},MY={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=ov(e),n=vz(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]}},zY=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=Cz(Wd.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":Cz(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=Cz(Wd.nodes(e,{match:function(e){var t=rT.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),$Y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=uN("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 mz(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){_p.setNodes(e,{indent:null},{match:function(e){return Md.isElement(e)}})},t}(zY),HY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=uN("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 mz(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(vp.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);_p.setNodes(e,{indent:n},{match:function(e){return Md.isElement(e)},mode:"highest"})},t}(zY),UY={renderStyle:function(e,t){if(!Md.isElement(e))return t;var n=e.indent,r=t;return n&&G$(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Md.isElement(e))return t;var n=e.indent;if(!n)return t;var r=ov(t);return r.css("text-indent",n),pz(r)},preParseHtml:[MY],parseStyleHtml:function(e,t,n){var r=ov(e);if(!Md.isElement(t))return t;var o=t,i=vz(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new HY}},{key:"delIndent",factory:function(){return new $Y}}]},VY=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=Cz(Wd.nodes(e,{match:function(e){var t=rT.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||!!rT.getSelectedElems(e).some((function(t){if(Wd.isVoid(e,t)&&Wd.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),WY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=uN("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 mz(t,e),t.prototype.exec=function(e,t){_p.setNodes(e,{textAlign:"left"},{match:function(t){return Md.isElement(t)&&!e.isInline(t)}})},t}(VY),qY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=uN("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 mz(t,e),t.prototype.exec=function(e,t){_p.setNodes(e,{textAlign:"right"},{match:function(t){return Md.isElement(t)&&!e.isInline(t)}})},t}(VY),GY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=uN("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 mz(t,e),t.prototype.exec=function(e,t){_p.setNodes(e,{textAlign:"center"},{match:function(t){return Md.isElement(t)&&!e.isInline(t)}})},t}(VY),KY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=uN("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 mz(t,e),t.prototype.exec=function(e,t){_p.setNodes(e,{textAlign:"justify"},{match:function(t){return Md.isElement(t)&&!e.isInline(t)}})},t}(VY),YY={renderStyle:function(e,t){if(!Md.isElement(e))return t;var n=e.textAlign,r=t;return n&&G$(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Md.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=ov(t);return r.css("text-align",n),pz(r)},parseStyleHtml:function(e,t,n){var r=ov(e);if(!Md.isElement(t))return t;var o=t,i=vz(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new WY}},{key:"justifyRight",factory:function(){return new qY}},{key:"justifyCenter",factory:function(){return new GY}},{key:"justifyJustify",factory:function(){return new KY}}]},XY=function(){function e(){this.title=uN("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:uN("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=Cz(Wd.nodes(e,{match:function(e){var t=rT.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?"":Md.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){_p.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),ZY={renderStyle:function(e,t){if(!Md.isElement(e))return t;var n=e.lineHeight,r=t;return n&&G$(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Md.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=ov(t);return r.css("line-height",n),pz(r)},parseStyleHtml:function(e,t,n){var r=ov(e);if(!Md.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=vz(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new XY},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},JY=function(){function e(){this.title=uN("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}(),QY=function(){function e(){this.title=uN("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}(),eX={menus:[{key:"redo",factory:function(){return new JY}},{key:"undo",factory:function(){return new QY}}]},tX={type:"divider",renderElem:function(e,t,n){return _g("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:rT.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[_g("hr")])}},nX=function(){function e(){this.title=uN("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||!!rT.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=rT.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){_p.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),rX={renderElems:[tX],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 nX}}],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=Cz(e,2),o=t[0],i=t[1];if("divider"!==rT.getNodeType(o))return n([o,i]);rT.isLastNode(r,o)&&_p.insertNodes(r,rT.genEmptyParagraph(),{at:[i[0]+1]})},r}},oX=GN([].join);sL({target:"Array",proto:!0,forced:QN!==Object||!Iz("join",",")},{join:function(e){return oX(rI(this),void 0===e?",":e)}});var iX=TL.map;sL({target:"Array",proto:!0,forced:!_L("map")},{map:function(e){return iX(this,e,arguments.length>1?arguments[1]:void 0)}});var aX=function(){function e(){this.title=uN("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=rT.getSelectedNodeByType(e,"code");if(null==t)return null;var n=rT.getParentNode(e,t);return null==n||"pre"!==rT.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=rT.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=rT.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=Xd.string(t);_p.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));_p.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Wd.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=Sz(i),u=a.next();!u.done;u=a.next()){var s=Cz(u.value,1)[0];s&&o.push(Xd.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}_p.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};_p.insertNodes(e,c,{mode:"highest"})},e}(),uX={key:"codeBlock",factory:function(){return new aX}};OM("match",(function(e,t,n){return[function(t){var n=nI(this),r=eI(t)?void 0:xI(t,e);return r?LN(r,t,n):new RegExp(t)[e](LL(n))},function(e){var r=tR(this),o=LL(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return zM(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=zM(r,o));){var l=LL(u[0]);s[c]=l,""===l&&(r.lastIndex=TM(o,zR(r.lastIndex),a)),c++}return 0===c?null:s}]})),sL({target:"String",proto:!0,forced:Bz("anchor")},{anchor:function(e){return kz(this,"a","name",e)}});var sX={type:"pre",renderElem:function(e,t,n){return Qg("pre",null,t)}},cX={type:"code",renderElem:function(e,t,n){return Qg("code",null,t)}},lX={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ov(e);return 0===(t=t.filter((function(e){return"code"===rT.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===rT.getNodeType(e)}))}}},fX={menus:[uX],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=rT.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Xd.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=Cz(e,2),r=t[0],i=t[1],a=rT.getNodeType(r);return"code"===a&&i.length<=1&&_p.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(rT.isLastNode(o,r)&&_p.insertNodes(o,rT.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==rT.getNodeType(r.children[0])&&(_p.unwrapNodes(o),_p.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=rT.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Wd.insertText(o,t)}else r(e)},o},renderElems:[sX,cX],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=ov(e);if("code"!==hz(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:ov(e)[0].textContent||""}]}}},lX]},dX=function(){function e(){this.title=uN("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}(),pX={menus:[{key:"fullScreen",factory:function(){return new dX}}]},hX=function(){function e(){this.title=uN("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||!!sp.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];_p.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Wd.start(e,r))}},e}(),vX=[e$,Q$,LY,UY,YY,ZY,ZH,rX,pU,wH,fX,fU,H$,xz,tU,eX,pX,{menus:[{key:"enter",factory:function(){return new hX}}]}];aN("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),aN("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var gX=function(e){try{return!!e()}catch(e){return!0}},yX=!gX((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),mX=Function.prototype,bX=mX.call,wX=yX&&mX.bind.bind(bX,bX),EX=yX?wX:function(e){return function(){return bX.apply(e,arguments)}},SX=EX({}.toString),CX=EX("".slice),DX=function(e){return CX(SX(e),8,-1)},xX=Object,OX=EX("".split),AX=gX((function(){return!xX("z").propertyIsEnumerable(0)}))?function(e){return"String"===DX(e)?OX(e,""):xX(e)}:xX,kX=function(e){return null==e},BX=TypeError,FX=function(e){if(kX(e))throw new BX("Can't call method on "+e);return e},TX=function(e){return AX(FX(e))},PX="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _X(e){var t={exports:{}};return e(t,t.exports),t.exports}var jX,NX,IX=function(e){return e&&e.Math===Math&&e},RX=IX("object"==typeof globalThis&&globalThis)||IX("object"==typeof window&&window)||IX("object"==typeof self&&self)||IX("object"==typeof PX&&PX)||IX("object"==typeof PX&&PX)||function(){return this}()||Function("return this")(),LX=Object.defineProperty,MX=function(e,t){try{LX(RX,e,{value:t,configurable:!0,writable:!0})}catch(n){RX[e]=t}return t},zX=_X((function(e){var t="__core-js_shared__",n=e.exports=RX[t]||MX(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),$X=function(e,t){return zX[e]||(zX[e]=t||{})},HX=Object,UX=function(e){return HX(FX(e))},VX=EX({}.hasOwnProperty),WX=Object.hasOwn||function(e,t){return VX(UX(e),t)},qX=0,GX=Math.random(),KX=EX(1..toString),YX=function(e){return"Symbol("+(void 0===e?"":e)+")_"+KX(++qX+GX,36)},XX=RX.navigator,ZX=XX&&XX.userAgent,JX=ZX?String(ZX):"",QX=RX.process,eZ=RX.Deno,tZ=QX&&QX.versions||eZ&&eZ.version,nZ=tZ&&tZ.v8;nZ&&(NX=(jX=nZ.split("."))[0]>0&&jX[0]<4?1:+(jX[0]+jX[1])),!NX&&JX&&(!(jX=JX.match(/Edge\/(\d+)/))||jX[1]>=74)&&(jX=JX.match(/Chrome\/(\d+)/))&&(NX=+jX[1]);var rZ,oZ=NX,iZ=RX.String,aZ=!!Object.getOwnPropertySymbols&&!gX((function(){var e=Symbol("symbol detection");return!iZ(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&oZ&&oZ<41})),uZ=aZ&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,sZ=RX.Symbol,cZ=$X("wks"),lZ=uZ?sZ.for||sZ:sZ&&sZ.withoutSetter||YX,fZ=function(e){return WX(cZ,e)||(cZ[e]=aZ&&WX(sZ,e)?sZ[e]:lZ("Symbol."+e)),cZ[e]},dZ="object"==typeof document&&document.all,pZ=void 0===dZ&&void 0!==dZ?function(e){return"function"==typeof e||e===dZ}:function(e){return"function"==typeof e},hZ=function(e){return"object"==typeof e?null!==e:pZ(e)},vZ=String,gZ=TypeError,yZ=function(e){if(hZ(e))return e;throw new gZ(vZ(e)+" is not an object")},mZ=!gX((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),bZ=mZ&&gX((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),wZ=RX.document,EZ=hZ(wZ)&&hZ(wZ.createElement),SZ=function(e){return EZ?wZ.createElement(e):{}},CZ=!mZ&&!gX((function(){return 7!==Object.defineProperty(SZ("div"),"a",{get:function(){return 7}}).a})),DZ=Function.prototype.call,xZ=yX?DZ.bind(DZ):function(){return DZ.apply(DZ,arguments)},OZ=function(e,t){return arguments.length<2?(n=RX[e],pZ(n)?n:void 0):RX[e]&&RX[e][t];var n},AZ=EX({}.isPrototypeOf),kZ=Object,BZ=uZ?function(e){return"symbol"==typeof e}:function(e){var t=OZ("Symbol");return pZ(t)&&AZ(t.prototype,kZ(e))},FZ=String,TZ=function(e){try{return FZ(e)}catch(e){return"Object"}},PZ=TypeError,_Z=function(e){if(pZ(e))return e;throw new PZ(TZ(e)+" is not a function")},jZ=function(e,t){var n=e[t];return kX(n)?void 0:_Z(n)},NZ=TypeError,IZ=TypeError,RZ=fZ("toPrimitive"),LZ=function(e){var t=function(e,t){if(!hZ(e)||BZ(e))return e;var n,r=jZ(e,RZ);if(r){if(void 0===t&&(t="default"),n=xZ(r,e,t),!hZ(n)||BZ(n))return n;throw new IZ("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&pZ(n=e.toString)&&!hZ(r=xZ(n,e)))return r;if(pZ(n=e.valueOf)&&!hZ(r=xZ(n,e)))return r;if("string"!==t&&pZ(n=e.toString)&&!hZ(r=xZ(n,e)))return r;throw new NZ("Can't convert object to primitive value")}(e,t)}(e,"string");return BZ(t)?t:t+""},MZ=TypeError,zZ=Object.defineProperty,$Z=Object.getOwnPropertyDescriptor,HZ="enumerable",UZ="configurable",VZ="writable",WZ={f:mZ?bZ?function(e,t,n){if(yZ(e),t=LZ(t),yZ(n),"function"==typeof e&&"prototype"===t&&"value"in n&&VZ in n&&!n[VZ]){var r=$Z(e,t);r&&r[VZ]&&(e[t]=n.value,n={configurable:UZ in n?n[UZ]:r[UZ],enumerable:HZ in n?n[HZ]:r[HZ],writable:!1})}return zZ(e,t,n)}:zZ:function(e,t,n){if(yZ(e),t=LZ(t),yZ(n),CZ)try{return zZ(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new MZ("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},qZ=Math.ceil,GZ=Math.floor,KZ=Math.trunc||function(e){var t=+e;return(t>0?GZ:qZ)(t)},YZ=function(e){var t=+e;return t!=t||0===t?0:KZ(t)},XZ=Math.max,ZZ=Math.min,JZ=Math.min,QZ=function(e){var t=YZ(e);return t>0?JZ(t,9007199254740991):0},eJ=function(e){return QZ(e.length)},tJ=function(e){return function(t,n,r){var o=TX(t),i=eJ(o);if(0===i)return!e&&-1;var a,u=function(e,t){var n=YZ(e);return n<0?XZ(n+t,0):ZZ(n,t)}(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},nJ={includes:tJ(!0),indexOf:tJ(!1)},rJ={},oJ=nJ.indexOf,iJ=EX([].push),aJ=function(e,t){var n,r=TX(e),o=0,i=[];for(n in r)!WX(rJ,n)&&WX(r,n)&&iJ(i,n);for(;t.length>o;)WX(r,n=t[o++])&&(~oJ(i,n)||iJ(i,n));return i},uJ=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sJ=Object.keys||function(e){return aJ(e,uJ)},cJ=mZ&&!bZ?Object.defineProperties:function(e,t){yZ(e);for(var n,r=TX(t),o=sJ(t),i=o.length,a=0;i>a;)WZ.f(e,n=o[a++],r[n]);return e},lJ={f:cJ},fJ=OZ("document","documentElement"),dJ=$X("keys"),pJ=function(e){return dJ[e]||(dJ[e]=YX(e))},hJ="prototype",vJ="script",gJ=pJ("IE_PROTO"),yJ=function(){},mJ=function(e){return"<script>"+e+"</"+vJ+">"},bJ=function(e){e.write(mJ("")),e.close();var t=e.parentWindow.Object;return e=null,t},wJ=function(){try{rZ=new ActiveXObject("htmlfile")}catch(e){}var e,t;wJ="undefined"!=typeof document?document.domain&&rZ?bJ(rZ):("javascript:",(t=SZ("iframe")).style.display="none",fJ.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(mJ("document.F=Object")),e.close(),e.F):bJ(rZ);for(var n=uJ.length;n--;)delete wJ[hJ][uJ[n]];return wJ()};rJ[gJ]=!0;var EJ=Object.create||function(e,t){var n;return null!==e?(yJ[hJ]=yZ(e),n=new yJ,yJ[hJ]=null,n[gJ]=e):n=wJ(),void 0===t?n:lJ.f(n,t)},SJ=WZ.f,CJ=fZ("unscopables"),DJ=Array.prototype;void 0===DJ[CJ]&&SJ(DJ,CJ,{configurable:!0,value:EJ(null)});var xJ,OJ,AJ,kJ=function(e){DJ[CJ][e]=!0},BJ={},FJ=RX.WeakMap,TJ=pZ(FJ)&&/native code/.test(String(FJ)),PJ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_J=mZ?function(e,t,n){return WZ.f(e,t,PJ(1,n))}:function(e,t,n){return e[t]=n,e},jJ="Object already initialized",NJ=RX.TypeError,IJ=RX.WeakMap;if(TJ||zX.state){var RJ=zX.state||(zX.state=new IJ);RJ.get=RJ.get,RJ.has=RJ.has,RJ.set=RJ.set,xJ=function(e,t){if(RJ.has(e))throw new NJ(jJ);return t.facade=e,RJ.set(e,t),t},OJ=function(e){return RJ.get(e)||{}},AJ=function(e){return RJ.has(e)}}else{var LJ=pJ("state");rJ[LJ]=!0,xJ=function(e,t){if(WX(e,LJ))throw new NJ(jJ);return t.facade=e,_J(e,LJ,t),t},OJ=function(e){return WX(e,LJ)?e[LJ]:{}},AJ=function(e){return WX(e,LJ)}}var MJ={set:xJ,get:OJ,has:AJ,enforce:function(e){return AJ(e)?OJ(e):xJ(e,{})},getterFor:function(e){return function(t){var n;if(!hZ(t)||(n=OJ(t)).type!==e)throw new NJ("Incompatible receiver, "+e+" required");return n}}},zJ={}.propertyIsEnumerable,$J=Object.getOwnPropertyDescriptor,HJ={f:$J&&!zJ.call({1:2},1)?function(e){var t=$J(this,e);return!!t&&t.enumerable}:zJ},UJ=Object.getOwnPropertyDescriptor,VJ={f:mZ?UJ:function(e,t){if(e=TX(e),t=LZ(t),CZ)try{return UJ(e,t)}catch(e){}if(WX(e,t))return PJ(!xZ(HJ.f,e,t),e[t])}},WJ=Function.prototype,qJ=mZ&&Object.getOwnPropertyDescriptor,GJ=WX(WJ,"name"),KJ={EXISTS:GJ,PROPER:GJ&&"something"===function(){}.name,CONFIGURABLE:GJ&&(!mZ||mZ&&qJ(WJ,"name").configurable)},YJ=EX(Function.toString);pZ(zX.inspectSource)||(zX.inspectSource=function(e){return YJ(e)});var XJ,ZJ,JJ,QJ=zX.inspectSource,eQ=_X((function(e){var t=KJ.CONFIGURABLE,n=MJ.enforce,r=MJ.get,o=String,i=Object.defineProperty,a=EX("".slice),u=EX("".replace),s=EX([].join),c=mZ&&!gX((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!WX(e,"name")||t&&e.name!==r)&&(mZ?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&WX(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&WX(f,"constructor")&&f.constructor?mZ&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return WX(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return pZ(this)&&r(this).source||QJ(this)}),"toString")})),tQ=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(pZ(n)&&eQ(n,i,r),r.global)o?e[t]=n:MX(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:WZ.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},nQ=uJ.concat("length","prototype"),rQ={f:Object.getOwnPropertyNames||function(e){return aJ(e,nQ)}},oQ={f:Object.getOwnPropertySymbols},iQ=EX([].concat),aQ=OZ("Reflect","ownKeys")||function(e){var t=rQ.f(yZ(e)),n=oQ.f;return n?iQ(t,n(e)):t},uQ=function(e,t,n){for(var r=aQ(t),o=WZ.f,i=VJ.f,a=0;a<r.length;a++){var u=r[a];WX(e,u)||n&&WX(n,u)||o(e,u,i(t,u))}},sQ=/#|\.prototype\./,cQ=function(e,t){var n=fQ[lQ(e)];return n===pQ||n!==dQ&&(pZ(t)?gX(t):!!t)},lQ=cQ.normalize=function(e){return String(e).replace(sQ,".").toLowerCase()},fQ=cQ.data={},dQ=cQ.NATIVE="N",pQ=cQ.POLYFILL="P",hQ=cQ,vQ=VJ.f,gQ=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?RX:c?RX[u]||MX(u,{}):RX[u]&&RX[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=vQ(n,r))&&a.value:n[r],!hQ(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;uQ(i,o)}(e.sham||o&&o.sham)&&_J(i,"sham",!0),tQ(n,r,i,e)}},yQ=!gX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),mQ=pJ("IE_PROTO"),bQ=Object,wQ=bQ.prototype,EQ=yQ?bQ.getPrototypeOf:function(e){var t=UX(e);if(WX(t,mQ))return t[mQ];var n=t.constructor;return pZ(n)&&t instanceof n?n.prototype:t instanceof bQ?wQ:null},SQ=fZ("iterator"),CQ=!1;[].keys&&("next"in(JJ=[].keys())?(ZJ=EQ(EQ(JJ)))!==Object.prototype&&(XJ=ZJ):CQ=!0);var DQ=!hZ(XJ)||gX((function(){var e={};return XJ[SQ].call(e)!==e}));DQ&&(XJ={}),pZ(XJ[SQ])||tQ(XJ,SQ,(function(){return this}));var xQ={IteratorPrototype:XJ,BUGGY_SAFARI_ITERATORS:CQ},OQ=WZ.f,AQ=fZ("toStringTag"),kQ=function(e,t,n){e&&!n&&(e=e.prototype),e&&!WX(e,AQ)&&OQ(e,AQ,{configurable:!0,value:t})},BQ=xQ.IteratorPrototype,FQ=function(){return this},TQ=String,PQ=TypeError,_Q=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return EX(_Z(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return FX(n),function(e){if(function(e){return hZ(e)||null===e}(e))return e;throw new PQ("Can't set "+TQ(e)+" as a prototype")}(r),hZ(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),jQ=KJ.PROPER,NQ=KJ.CONFIGURABLE,IQ=xQ.IteratorPrototype,RQ=xQ.BUGGY_SAFARI_ITERATORS,LQ=fZ("iterator"),MQ="keys",zQ="values",$Q="entries",HQ=function(){return this},UQ=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=EJ(BQ,{next:PJ(1,n)}),kQ(e,r,!1),BJ[r]=FQ}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!RQ&&e&&e in p)return p[e];switch(e){case MQ:case zQ:case $Q:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[LQ]||p["@@iterator"]||o&&p[o],v=!RQ&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=EQ(g.call(new e)))!==Object.prototype&&u.next&&(EQ(u)!==IQ&&(_Q?_Q(u,IQ):pZ(u[LQ])||tQ(u,LQ,HQ)),kQ(u,f,!0)),jQ&&o===zQ&&h&&h.name!==zQ&&(NQ?_J(p,"name",zQ):(d=!0,v=function(){return xZ(h,this)})),o)if(s={values:l(zQ),keys:i?v:l(MQ),entries:l($Q)},a)for(c in s)(RQ||d||!(c in p))&&tQ(p,c,s[c]);else gQ({target:t,proto:!0,forced:RQ||d},s);return p[LQ]!==v&&tQ(p,LQ,v,{name:o}),BJ[t]=v,s},VQ=function(e,t){return{value:e,done:t}},WQ=WZ.f,qQ="Array Iterator",GQ=MJ.set,KQ=MJ.getterFor(qQ),YQ=UQ(Array,"Array",(function(e,t){GQ(this,{type:qQ,target:TX(e),index:0,kind:t})}),(function(){var e=KQ(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,VQ(void 0,!0);switch(e.kind){case"keys":return VQ(n,!1);case"values":return VQ(t[n],!1)}return VQ([n,t[n]],!1)}),"values"),XQ=BJ.Arguments=BJ.Array;if(kJ("keys"),kJ("values"),kJ("entries"),mZ&&"values"!==XQ.name)try{WQ(XQ,"name",{value:"values"})}catch(rf){}var ZQ={};ZQ[fZ("toStringTag")]="z";var JQ="[object z]"===String(ZQ),QQ=fZ("toStringTag"),e0=Object,t0="Arguments"===DX(function(){return arguments}()),n0=JQ?DX: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=e0(e),QQ))?n:t0?DX(t):"Object"===(r=DX(t))&&pZ(t.callee)?"Arguments":r},r0=JQ?{}.toString:function(){return"[object "+n0(this)+"]"};JQ||tQ(Object.prototype,"toString",r0,{unsafe:!0});var o0=String,i0=function(e){if("Symbol"===n0(e))throw new TypeError("Cannot convert a Symbol value to a string");return o0(e)},a0=EX("".charAt),u0=EX("".charCodeAt),s0=EX("".slice),c0=function(e){return function(t,n){var r,o,i=i0(FX(t)),a=YZ(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=u0(i,a))<55296||r>56319||a+1===u||(o=u0(i,a+1))<56320||o>57343?e?a0(i,a):r:e?s0(i,a,a+2):o-56320+(r-55296<<10)+65536}},l0={codeAt:c0(!1),charAt:c0(!0)},f0=l0.charAt,d0="String Iterator",p0=MJ.set,h0=MJ.getterFor(d0);UQ(String,"String",(function(e){p0(this,{type:d0,string:i0(e),index:0})}),(function(){var e,t=h0(this),n=t.string,r=t.index;return r>=n.length?VQ(void 0,!0):(e=f0(n,r),t.index+=e.length,VQ(e,!1))}));var v0=!gX((function(){return Object.isExtensible(Object.preventExtensions({}))})),g0=function(e,t,n){for(var r in t)tQ(e,r,t[r],n);return e},y0=EX([].slice),m0=rQ.f,b0="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],w0={f:function(e){return b0&&"Window"===DX(e)?function(e){try{return m0(e)}catch(e){return y0(b0)}}(e):m0(TX(e))}},E0=gX((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),S0=Object.isExtensible,C0=gX((function(){S0(1)}))||E0?function(e){return!!hZ(e)&&(!E0||"ArrayBuffer"!==DX(e))&&(!S0||S0(e))}:S0,D0=_X((function(e){var t=WZ.f,n=!1,r=YX("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=rQ.f,t=EX([].splice),o={};o[r]=1,e(o).length&&(rQ.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},gQ({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:w0.f}))},fastKey:function(e,t){if(!hZ(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!WX(e,r)){if(!C0(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!WX(e,r)){if(!C0(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return v0&&n&&C0(e)&&!WX(e,r)&&i(e),e}};rJ[r]=!0})),x0=function(e){if("Function"===DX(e))return EX(e)},O0=x0(x0.bind),A0=function(e,t){return _Z(e),void 0===t?e:yX?O0(e,t):function(){return e.apply(t,arguments)}},k0=fZ("iterator"),B0=Array.prototype,F0=fZ("iterator"),T0=function(e){if(!kX(e))return jZ(e,F0)||jZ(e,"@@iterator")||BJ[n0(e)]},P0=TypeError,_0=function(e,t,n){var r,o;yZ(e);try{if(!(r=jZ(e,"return"))){if("throw"===t)throw n;return n}r=xZ(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return yZ(r),n},j0=TypeError,N0=function(e,t){this.stopped=e,this.result=t},I0=N0.prototype,R0=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=A0(t,f),y=function(e){return r&&_0(r,"normal",e),new N0(!0,e)},m=function(e){return d?(yZ(e),v?g(e[0],e[1],y):g(e[0],e[1])):v?g(e,y):g(e)};if(p)r=e.iterator;else if(h)r=e;else{if(!(o=T0(e)))throw new j0(TZ(e)+" is not iterable");if(void 0!==(l=o)&&(BJ.Array===l||B0[k0]===l)){for(i=0,a=eJ(e);a>i;i++)if((u=m(e[i]))&&AZ(I0,u))return u;return new N0(!1)}r=function(e,t){var n=arguments.length<2?T0(e):t;if(_Z(n))return yZ(xZ(n,e));throw new P0(TZ(e)+" is not iterable")}(e,o)}for(s=p?e.next:r.next;!(c=xZ(s,r)).done;){try{u=m(c.value)}catch(e){_0(r,"throw",e)}if("object"==typeof u&&u&&AZ(I0,u))return u}return new N0(!1)},L0=TypeError,M0=function(e,t){if(AZ(t,e))return e;throw new L0("Incorrect invocation")},z0=fZ("iterator"),$0=!1;try{var H0=0,U0={next:function(){return{done:!!H0++}},return:function(){$0=!0}};U0[z0]=function(){return this},Array.from(U0,(function(){throw 2}))}catch(rf){}var V0=Array.isArray||function(e){return"Array"===DX(e)},W0=function(){},q0=OZ("Reflect","construct"),G0=/^\s*(?:class|function)\b/,K0=EX(G0.exec),Y0=!G0.test(W0),X0=function(e){if(!pZ(e))return!1;try{return q0(W0,[],e),!0}catch(e){return!1}},Z0=function(e){if(!pZ(e))return!1;switch(n0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Y0||!!K0(G0,QJ(e))}catch(e){return!0}};Z0.sham=!0;var J0=!q0||gX((function(){var e;return X0(X0.call)||!X0(Object)||!X0((function(){e=!0}))||e}))?Z0:X0,Q0=fZ("species"),e1=Array,t1=function(e,t){return new(function(e){var t;return V0(e)&&(t=e.constructor,(J0(t)&&(t===e1||V0(t.prototype))||hZ(t)&&null===(t=t[Q0]))&&(t=void 0)),void 0===t?e1:t}(e))(0===t?0:t)},n1=EX([].push),r1=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,c,l,f){for(var d,p,h=UX(s),v=AX(h),g=eJ(v),y=A0(c,l),m=0,b=f||t1,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:n1(w,d)}else switch(e){case 4:return!1;case 7:n1(w,d)}return i?-1:r||o?o:w}},o1={forEach:r1(0),map:r1(1),filter:r1(2),some:r1(3),every:r1(4),find:r1(5),findIndex:r1(6),filterReject:r1(7)},i1=D0.getWeakData,a1=MJ.set,u1=MJ.getterFor,s1=o1.find,c1=o1.findIndex,l1=EX([].splice),f1=0,d1=function(e){return e.frozen||(e.frozen=new p1)},p1=function(){this.entries=[]},h1=function(e,t){return s1(e.entries,(function(e){return e[0]===t}))};p1.prototype={get:function(e){var t=h1(this,e);if(t)return t[1]},has:function(e){return!!h1(this,e)},set:function(e,t){var n=h1(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=c1(this.entries,(function(t){return t[0]===e}));return~t&&l1(this.entries,t,1),!!~t}};var v1,g1={getConstructor:function(e,t,n,r){var o=e((function(e,o){M0(e,i),a1(e,{type:t,id:f1++,frozen:null}),kX(o)||R0(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=u1(t),u=function(e,t,n){var r=a(e),o=i1(yZ(t),!0);return!0===o?d1(r).set(t,n):o[r.id]=n,e};return g0(i,{delete:function(e){var t=a(this);if(!hZ(e))return!1;var n=i1(e);return!0===n?d1(t).delete(e):n&&WX(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!hZ(e))return!1;var n=i1(e);return!0===n?d1(t).has(e):n&&WX(n,t.id)}}),g0(i,n?{get:function(e){var t=a(this);if(hZ(e)){var n=i1(e);if(!0===n)return d1(t).get(e);if(n)return n[t.id]}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},y1=MJ.enforce,m1=Object,b1=Array.isArray,w1=m1.isExtensible,E1=m1.isFrozen,S1=m1.isSealed,C1=m1.freeze,D1=m1.seal,x1=!RX.ActiveXObject&&"ActiveXObject"in RX,O1=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},A1=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=RX[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=EX(u[e]);tQ(u,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!hZ(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!hZ(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!hZ(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(hQ(e,!pZ(a)||!(o||u.forEach&&!gX((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),D0.enable();else if(hQ(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!==f,p=gX((function(){f.has(1)})),h=function(){try{if(!$0)return!1}catch(e){return!1}var e=!1;try{var t={};t[z0]=function(){return{next:function(){return{done:e=!0}}}},function(e){new a(e)}(t)}catch(e){}return e}(),v=!o&&gX((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){M0(e,u);var n=function(e,t,n){var r,o;return _Q&&pZ(r=t.constructor)&&r!==n&&hZ(o=r.prototype)&&o!==n.prototype&&_Q(e,o),e}(new a,e,s);return kX(t)||R0(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,gQ({global:!0,constructor:!0,forced:s!==a},c),kQ(s,e),o||n.setStrong(s,e,r),s}("WeakMap",O1,g1),k1=A1.prototype,B1=EX(k1.set);if(TJ)if(x1){v1=g1.getConstructor(O1,"WeakMap",!0),D0.enable();var F1=EX(k1.delete),T1=EX(k1.has),P1=EX(k1.get);g0(k1,{delete:function(e){if(hZ(e)&&!w1(e)){var t=y1(this);return t.frozen||(t.frozen=new v1),F1(this,e)||t.frozen.delete(e)}return F1(this,e)},has:function(e){if(hZ(e)&&!w1(e)){var t=y1(this);return t.frozen||(t.frozen=new v1),T1(this,e)||t.frozen.has(e)}return T1(this,e)},get:function(e){if(hZ(e)&&!w1(e)){var t=y1(this);return t.frozen||(t.frozen=new v1),T1(this,e)?P1(this,e):t.frozen.get(e)}return P1(this,e)},set:function(e,t){if(hZ(e)&&!w1(e)){var n=y1(this);n.frozen||(n.frozen=new v1),T1(this,e)?B1(this,e,t):n.frozen.set(e,t)}else B1(this,e,t);return this}})}else v0&&gX((function(){var e=C1([]);return B1(new A1,e,1),!E1(e)}))&&g0(k1,{set:function(e,t){var n;return b1(e)&&(E1(e)?n=C1:S1(e)&&(n=D1)),B1(this,e,t),n&&n(e),this}});var _1={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},j1=SZ("span").classList,N1=j1&&j1.constructor&&j1.constructor.prototype,I1=N1===Object.prototype?void 0:N1,R1=fZ("iterator"),L1=YQ.values,M1=function(e,t){if(e){if(e[R1]!==L1)try{_J(e,R1,L1)}catch(t){e[R1]=L1}if(kQ(e,t,!0),_1[t])for(var n in YQ)if(e[n]!==YQ[n])try{_J(e,n,YQ[n])}catch(t){e[n]=YQ[n]}}};for(var z1 in _1)M1(RX[z1]&&RX[z1].prototype,z1);M1(I1,"DOMTokenList");var $1=new WeakMap,H1={type:"list-item",renderElem:function(e,t,n){$1.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 c=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;if(!u)return-1;var s=1,c=t,l=rT.findPath(e,c);if(0===l[0])return 1;for(;l[0]>0;){var f=ep.previous(l),d=Wd.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++}c=p,l=f}return s}(n,e);s=c+"."}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 l=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];vp.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return Qg("div",{style:u},Qg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:l},"data-w-e-reserve":!0},s),Qg("span",null,t))}},U1=function(e,t){return U1=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])},U1(e,t)
|
68
|
+
/*! *****************************************************************************
|
69
|
+
Copyright (c) Microsoft Corporation.
|
70
|
+
|
71
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
72
|
+
purpose with or without fee is hereby granted.
|
73
|
+
|
74
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
75
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
76
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
77
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
78
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
79
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
80
|
+
PERFORMANCE OF THIS SOFTWARE.
|
81
|
+
***************************************************************************** */};function V1(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}U1(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function W1(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 q1(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 G1(e){return Wd.nodes(e,{at:e.selection||void 0,match:function(t){return 1===rT.findPath(e,t).length}})}var K1=nJ.includes,Y1=gX((function(){return!Array(1).includes()}));gQ({target:"Array",proto:!0,forced:Y1},{includes:function(e){return K1(this,e,arguments.length>1?arguments[1]:void 0)}}),kJ("includes");var X1,Z1,J1=function(){var e=yZ(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Q1=RX.RegExp,e2=gX((function(){var e=Q1("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),t2=e2||gX((function(){return!Q1("a","y").sticky})),n2={BROKEN_CARET:e2||gX((function(){var e=Q1("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:t2,UNSUPPORTED_Y:e2},r2=RX.RegExp,o2=gX((function(){var e=r2(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),i2=RX.RegExp,a2=gX((function(){var e=i2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),u2=MJ.get,s2=$X("native-string-replace",String.prototype.replace),c2=RegExp.prototype.exec,l2=c2,f2=EX("".charAt),d2=EX("".indexOf),p2=EX("".replace),h2=EX("".slice),v2=(Z1=/b*/g,xZ(c2,X1=/a/,"a"),xZ(c2,Z1,"a"),0!==X1.lastIndex||0!==Z1.lastIndex),g2=n2.BROKEN_CARET,y2=void 0!==/()??/.exec("")[1];(v2||y2||g2||o2||a2)&&(l2=function(e){var t,n,r,o,i,a,u,s=this,c=u2(s),l=i0(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=xZ(l2,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=g2&&s.sticky,h=xZ(J1,s),v=s.source,g=0,y=l;if(p&&(h=p2(h,"y",""),-1===d2(h,"g")&&(h+="g"),y=h2(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==f2(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),y2&&(n=new RegExp("^"+v+"$(?!\\s)",h)),v2&&(r=s.lastIndex),o=xZ(c2,p?n:s,y),p?o?(o.input=h2(o.input,g),o[0]=h2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:v2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),y2&&o&&o.length>1&&xZ(s2,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=EJ(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var m2=l2;gQ({target:"RegExp",proto:!0,forced:/./.exec!==m2},{exec:m2});var b2=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return rT.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||!!rT.getSelectedElems(e).some((function(t){if(Wd.isVoid(e,t)&&Wd.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)?_p.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):_p.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),w2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=uN("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 V1(t,e),t}(b2),E2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=uN("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 V1(t,e),t}(b2),S2={key:"bulletedList",factory:function(){return new w2}},C2={key:"numberedList",factory:function(){return new E2}},D2=[],x2={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=$1.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=rT.findPath(t,e);if(0===s[0])return u+1;var c=ep.previous(s),l=Wd.node(t,c);if(!l)return 0;var f=q1(l,1)[0];if(rT.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?0:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",D2.push(i);var s=function(e){var t=$1.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=rT.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var c=ep.next(s),l=Wd.node(t,c);if(!l)return 0;var f=q1(l,1)[0];if(rT.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?0:g===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+D2.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},O2=fZ("species"),A2=o1.filter,k2=oZ>=51||!gX((function(){var e=[];return(e.constructor={})[O2]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));gQ({target:"Array",proto:!0,forced:!k2},{filter:function(e){return A2(this,e,arguments.length>1?arguments[1]:void 0)}});var B2=TypeError,F2=function(e){if(e>9007199254740991)throw B2("Maximum allowed index exceeded");return e},T2=function(e,t,n,r,o,i,a,u){for(var s,c,l=o,f=0,d=!!a&&A0(a,u);f<r;)f in n&&(s=d?d(n[f],f,t):n[f],i>0&&V0(s)?(c=eJ(s),l=T2(e,t,s,c,l,i-1)-1):(F2(l+1),e[l]=s),l++),f++;return l},P2=T2;gQ({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=UX(this),n=eJ(t),r=t1(t,0);return r.length=P2(r,t,t,n,0,void 0===e?1:YZ(e)),r}}),kJ("flat");var _2=Function.prototype,j2=_2.apply,N2=_2.call,I2="object"==typeof Reflect&&Reflect.apply||(yX?N2.bind(j2):function(){return N2.apply(j2,arguments)}),R2=(fZ("species"),RegExp.prototype),L2=l0.charAt,M2=function(e,t,n){return t+(n?L2(e,t).length:1)},z2=Math.floor,$2=EX("".charAt),H2=EX("".replace),U2=EX("".slice),V2=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,W2=/\$([$&'`]|\d{1,2})/g,q2=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=W2;return void 0!==o&&(o=UX(o),s=V2),H2(i,s,(function(i,s){var c;switch($2(s,0)){case"$":return"$";case"&":return e;case"`":return U2(t,0,n);case"'":return U2(t,a);case"<":c=o[U2(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=z2(l/10);return 0===f?i:f<=u?void 0===r[f-1]?$2(s,1):r[f-1]+$2(s,1):i}c=r[l-1]}return void 0===c?"":c}))},G2=TypeError,K2=function(e,t){var n=e.exec;if(pZ(n)){var r=xZ(n,e,t);return null!==r&&yZ(r),r}if("RegExp"===DX(e))return xZ(m2,e,t);throw new G2("RegExp#exec called on incompatible receiver")},Y2=fZ("replace"),X2=Math.max,Z2=Math.min,J2=EX([].concat),Q2=EX([].push),e4=EX("".indexOf),t4=EX("".slice),n4="$0"==="a".replace(/./,"$0"),r4=!!/./[Y2]&&""===/./[Y2]("a","$0");function o4(e){return e.length?e[0].tagName.toLowerCase():""}!function(e,t,n){var r=fZ(e),o=!gX((function(){var t={};return t[r]=function(){return 7},7!==""[e](t)})),i=o&&!gX((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e}));if(!o||!i||n){var a=/./[r],u=function(e,t,n){var r=r4?"$":"$0";return[function(e,n){var r=FX(this),o=kX(e)?void 0:jZ(e,Y2);return o?xZ(o,e,r,n):xZ(t,i0(r),e,n)},function(e,o){var i=yZ(this),a=i0(e);if("string"==typeof o&&-1===e4(o,r)&&-1===e4(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=pZ(o);s||(o=i0(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=K2(i,a))&&(Q2(d,f),l);)""===i0(f[0])&&(i.lastIndex=M2(a,QZ(i.lastIndex),c));for(var p,h="",v=0,g=0;g<d.length;g++){for(var y,m=i0((f=d[g])[0]),b=X2(Z2(YZ(f.index),a.length),0),w=[],E=1;E<f.length;E++)Q2(w,void 0===(p=f[E])?p:String(p));var S=f.groups;if(s){var C=J2([m],w,b,a);void 0!==S&&Q2(C,S),y=i0(I2(o,void 0,C))}else y=q2(m,a,b,w,S,o);b>=v&&(h+=t4(a,v,b)+y,v=b+m.length)}return h+t4(a,v)}]}(0,""[e],(function(e,t,n,r,i){var u=t.exec;return u===m2||u===R2.exec?o&&!i?{done:!0,value:xZ(a,t,n,r)}:{done:!0,value:xZ(e,n,t,r)}:{done:!1}}));tQ(String.prototype,e,u[0]),tQ(R2,r,u[1])}}("replace",0,!!gX((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!n4||r4),gQ({global:!0,forced:RX.globalThis!==RX},{globalThis:RX}),xv&&(ov.fn.append=xv),sv&&(ov.fn.attr=sv),Av&&(ov.fn.parent=Av);var i4={renderElems:[H1],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(sp.isExpanded(n))t(e);else{var r=rT.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?_p.setNodes(o,{level:a-1}):_p.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(sp.isCollapsed(a)){var u=rT.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,c=void 0===s?0:s;return void _p.setNodes(o,{level:c+1})}}if(sp.isExpanded(a)){var l=0,f=!1;try{for(var d=W1(G1(o)),p=d.next();!p.done;p=d.next()){var h=q1(p.value,1)[0];"list-item"===rT.getNodeType(h)?l++: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||l<=1)return void n();try{for(var v=W1(G1(o)),g=v.next();!g.done;g=v.next()){var y=q1(g.value,2),m=(h=y[0],y[1]),b=h.level;c=void 0===b?0:b,_p.setNodes(o,{level:c+1},{at:m})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=q1(e,2),n=t[0],i=t[1],a=rT.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||_p.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[S2,C2],elemsToHtml:[x2],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=ov(e);0===(t=t.filter((function(e){return!!vp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===o4(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=o4(n);"ul"===r||"ol"===r;)r=o4(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]};aN("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",splitCell:"Split cell",mergeCell:"Merge cell"}}),aN("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",splitCell:"拆分单元格",mergeCell:"合并单元格"}});var a4="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u4(e){var t={exports:{}};return e(t,t.exports),t.exports}var s4,c4,l4=function(e){return e&&e.Math===Math&&e},f4=l4("object"==typeof globalThis&&globalThis)||l4("object"==typeof window&&window)||l4("object"==typeof self&&self)||l4("object"==typeof a4&&a4)||l4("object"==typeof a4&&a4)||function(){return this}()||Function("return this")(),d4=function(e){try{return!!e()}catch(e){return!0}},p4=!d4((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),h4=!d4((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),v4=Function.prototype.call,g4=h4?v4.bind(v4):function(){return v4.apply(v4,arguments)},y4={}.propertyIsEnumerable,m4=Object.getOwnPropertyDescriptor,b4={f:m4&&!y4.call({1:2},1)?function(e){var t=m4(this,e);return!!t&&t.enumerable}:y4},w4=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},E4=Function.prototype,S4=E4.call,C4=h4&&E4.bind.bind(S4,S4),D4=h4?C4:function(e){return function(){return S4.apply(e,arguments)}},x4=D4({}.toString),O4=D4("".slice),A4=function(e){return O4(x4(e),8,-1)},k4=Object,B4=D4("".split),F4=d4((function(){return!k4("z").propertyIsEnumerable(0)}))?function(e){return"String"===A4(e)?B4(e,""):k4(e)}:k4,T4=function(e){return null==e},P4=TypeError,_4=function(e){if(T4(e))throw new P4("Can't call method on "+e);return e},j4=function(e){return F4(_4(e))},N4="object"==typeof document&&document.all,I4=void 0===N4&&void 0!==N4?function(e){return"function"==typeof e||e===N4}:function(e){return"function"==typeof e},R4=function(e){return"object"==typeof e?null!==e:I4(e)},L4=function(e,t){return arguments.length<2?(n=f4[e],I4(n)?n:void 0):f4[e]&&f4[e][t];var n},M4=D4({}.isPrototypeOf),z4=f4.navigator,$4=z4&&z4.userAgent,H4=$4?String($4):"",U4=f4.process,V4=f4.Deno,W4=U4&&U4.versions||V4&&V4.version,q4=W4&&W4.v8;q4&&(c4=(s4=q4.split("."))[0]>0&&s4[0]<4?1:+(s4[0]+s4[1])),!c4&&H4&&(!(s4=H4.match(/Edge\/(\d+)/))||s4[1]>=74)&&(s4=H4.match(/Chrome\/(\d+)/))&&(c4=+s4[1]);var G4=c4,K4=f4.String,Y4=!!Object.getOwnPropertySymbols&&!d4((function(){var e=Symbol("symbol detection");return!K4(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&G4&&G4<41})),X4=Y4&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z4=Object,J4=X4?function(e){return"symbol"==typeof e}:function(e){var t=L4("Symbol");return I4(t)&&M4(t.prototype,Z4(e))},Q4=String,e3=function(e){try{return Q4(e)}catch(e){return"Object"}},t3=TypeError,n3=function(e){if(I4(e))return e;throw new t3(e3(e)+" is not a function")},r3=function(e,t){var n=e[t];return T4(n)?void 0:n3(n)},o3=TypeError,i3=Object.defineProperty,a3=function(e,t){try{i3(f4,e,{value:t,configurable:!0,writable:!0})}catch(n){f4[e]=t}return t},u3=u4((function(e){var t="__core-js_shared__",n=e.exports=f4[t]||a3(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),s3=function(e,t){return u3[e]||(u3[e]=t||{})},c3=Object,l3=function(e){return c3(_4(e))},f3=D4({}.hasOwnProperty),d3=Object.hasOwn||function(e,t){return f3(l3(e),t)},p3=0,h3=Math.random(),v3=D4(1..toString),g3=function(e){return"Symbol("+(void 0===e?"":e)+")_"+v3(++p3+h3,36)},y3=f4.Symbol,m3=s3("wks"),b3=X4?y3.for||y3:y3&&y3.withoutSetter||g3,w3=function(e){return d3(m3,e)||(m3[e]=Y4&&d3(y3,e)?y3[e]:b3("Symbol."+e)),m3[e]},E3=TypeError,S3=w3("toPrimitive"),C3=function(e){var t=function(e,t){if(!R4(e)||J4(e))return e;var n,r=r3(e,S3);if(r){if(void 0===t&&(t="default"),n=g4(r,e,t),!R4(n)||J4(n))return n;throw new E3("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&I4(n=e.toString)&&!R4(r=g4(n,e)))return r;if(I4(n=e.valueOf)&&!R4(r=g4(n,e)))return r;if("string"!==t&&I4(n=e.toString)&&!R4(r=g4(n,e)))return r;throw new o3("Can't convert object to primitive value")}(e,t)}(e,"string");return J4(t)?t:t+""},D3=f4.document,x3=R4(D3)&&R4(D3.createElement),O3=function(e){return x3?D3.createElement(e):{}},A3=!p4&&!d4((function(){return 7!==Object.defineProperty(O3("div"),"a",{get:function(){return 7}}).a})),k3=Object.getOwnPropertyDescriptor,B3={f:p4?k3:function(e,t){if(e=j4(e),t=C3(t),A3)try{return k3(e,t)}catch(e){}if(d3(e,t))return w4(!g4(b4.f,e,t),e[t])}},F3=p4&&d4((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),T3=String,P3=TypeError,_3=function(e){if(R4(e))return e;throw new P3(T3(e)+" is not an object")},j3=TypeError,N3=Object.defineProperty,I3=Object.getOwnPropertyDescriptor,R3="enumerable",L3="configurable",M3="writable",z3={f:p4?F3?function(e,t,n){if(_3(e),t=C3(t),_3(n),"function"==typeof e&&"prototype"===t&&"value"in n&&M3 in n&&!n[M3]){var r=I3(e,t);r&&r[M3]&&(e[t]=n.value,n={configurable:L3 in n?n[L3]:r[L3],enumerable:R3 in n?n[R3]:r[R3],writable:!1})}return N3(e,t,n)}:N3:function(e,t,n){if(_3(e),t=C3(t),_3(n),A3)try{return N3(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new j3("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},$3=p4?function(e,t,n){return z3.f(e,t,w4(1,n))}:function(e,t,n){return e[t]=n,e},H3=Function.prototype,U3=p4&&Object.getOwnPropertyDescriptor,V3=d3(H3,"name"),W3={EXISTS:V3,PROPER:V3&&"something"===function(){}.name,CONFIGURABLE:V3&&(!p4||p4&&U3(H3,"name").configurable)},q3=D4(Function.toString);I4(u3.inspectSource)||(u3.inspectSource=function(e){return q3(e)});var G3,K3,Y3,X3=u3.inspectSource,Z3=f4.WeakMap,J3=I4(Z3)&&/native code/.test(String(Z3)),Q3=s3("keys"),e6=function(e){return Q3[e]||(Q3[e]=g3(e))},t6={},n6="Object already initialized",r6=f4.TypeError,o6=f4.WeakMap;if(J3||u3.state){var i6=u3.state||(u3.state=new o6);i6.get=i6.get,i6.has=i6.has,i6.set=i6.set,G3=function(e,t){if(i6.has(e))throw new r6(n6);return t.facade=e,i6.set(e,t),t},K3=function(e){return i6.get(e)||{}},Y3=function(e){return i6.has(e)}}else{var a6=e6("state");t6[a6]=!0,G3=function(e,t){if(d3(e,a6))throw new r6(n6);return t.facade=e,$3(e,a6,t),t},K3=function(e){return d3(e,a6)?e[a6]:{}},Y3=function(e){return d3(e,a6)}}var u6={set:G3,get:K3,has:Y3,enforce:function(e){return Y3(e)?K3(e):G3(e,{})},getterFor:function(e){return function(t){var n;if(!R4(t)||(n=K3(t)).type!==e)throw new r6("Incompatible receiver, "+e+" required");return n}}},s6=u4((function(e){var t=W3.CONFIGURABLE,n=u6.enforce,r=u6.get,o=String,i=Object.defineProperty,a=D4("".slice),u=D4("".replace),s=D4([].join),c=p4&&!d4((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!d3(e,"name")||t&&e.name!==r)&&(p4?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&d3(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&d3(f,"constructor")&&f.constructor?p4&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return d3(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return I4(this)&&r(this).source||X3(this)}),"toString")})),c6=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(I4(n)&&s6(n,i,r),r.global)o?e[t]=n:a3(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:z3.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},l6=Math.ceil,f6=Math.floor,d6=Math.trunc||function(e){var t=+e;return(t>0?f6:l6)(t)},p6=function(e){var t=+e;return t!=t||0===t?0:d6(t)},h6=Math.max,v6=Math.min,g6=function(e,t){var n=p6(e);return n<0?h6(n+t,0):v6(n,t)},y6=Math.min,m6=function(e){var t=p6(e);return t>0?y6(t,9007199254740991):0},b6=function(e){return m6(e.length)},w6=function(e){return function(t,n,r){var o=j4(t),i=b6(o);if(0===i)return!e&&-1;var a,u=g6(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},E6={includes:w6(!0),indexOf:w6(!1)},S6=E6.indexOf,C6=D4([].push),D6=function(e,t){var n,r=j4(e),o=0,i=[];for(n in r)!d3(t6,n)&&d3(r,n)&&C6(i,n);for(;t.length>o;)d3(r,n=t[o++])&&(~S6(i,n)||C6(i,n));return i},x6=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],O6=x6.concat("length","prototype"),A6={f:Object.getOwnPropertyNames||function(e){return D6(e,O6)}},k6={f:Object.getOwnPropertySymbols},B6=D4([].concat),F6=L4("Reflect","ownKeys")||function(e){var t=A6.f(_3(e)),n=k6.f;return n?B6(t,n(e)):t},T6=function(e,t,n){for(var r=F6(t),o=z3.f,i=B3.f,a=0;a<r.length;a++){var u=r[a];d3(e,u)||n&&d3(n,u)||o(e,u,i(t,u))}},P6=/#|\.prototype\./,_6=function(e,t){var n=N6[j6(e)];return n===R6||n!==I6&&(I4(t)?d4(t):!!t)},j6=_6.normalize=function(e){return String(e).replace(P6,".").toLowerCase()},N6=_6.data={},I6=_6.NATIVE="N",R6=_6.POLYFILL="P",L6=_6,M6=B3.f,z6=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?f4:c?f4[u]||a3(u,{}):f4[u]&&f4[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=M6(n,r))&&a.value:n[r],!L6(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;T6(i,o)}(e.sham||o&&o.sham)&&$3(i,"sham",!0),c6(n,r,i,e)}},$6=function(e){if("Function"===A4(e))return D4(e)},H6=$6($6.bind),U6=function(e,t){return n3(e),void 0===t?e:h4?H6(e,t):function(){return e.apply(t,arguments)}},V6=Array.isArray||function(e){return"Array"===A4(e)},W6={};W6[w3("toStringTag")]="z";var q6="[object z]"===String(W6),G6=w3("toStringTag"),K6=Object,Y6="Arguments"===A4(function(){return arguments}()),X6=q6?A4: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=K6(e),G6))?n:Y6?A4(t):"Object"===(r=A4(t))&&I4(t.callee)?"Arguments":r},Z6=function(){},J6=L4("Reflect","construct"),Q6=/^\s*(?:class|function)\b/,e5=D4(Q6.exec),t5=!Q6.test(Z6),n5=function(e){if(!I4(e))return!1;try{return J6(Z6,[],e),!0}catch(e){return!1}},r5=function(e){if(!I4(e))return!1;switch(X6(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return t5||!!e5(Q6,X3(e))}catch(e){return!0}};r5.sham=!0;var o5,i5=!J6||d4((function(){var e;return n5(n5.call)||!n5(Object)||!n5((function(){e=!0}))||e}))?r5:n5,a5=w3("species"),u5=Array,s5=function(e,t){return new(function(e){var t;return V6(e)&&(t=e.constructor,(i5(t)&&(t===u5||V6(t.prototype))||R4(t)&&null===(t=t[a5]))&&(t=void 0)),void 0===t?u5:t}(e))(0===t?0:t)},c5=D4([].push),l5=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,c,l,f){for(var d,p,h=l3(s),v=F4(h),g=b6(v),y=U6(c,l),m=0,b=f||s5,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:c5(w,d)}else switch(e){case 4:return!1;case 7:c5(w,d)}return i?-1:r||o?o:w}},f5={forEach:l5(0),map:l5(1),filter:l5(2),some:l5(3),every:l5(4),find:l5(5),findIndex:l5(6),filterReject:l5(7)},d5=Object.keys||function(e){return D6(e,x6)},p5=p4&&!F3?Object.defineProperties:function(e,t){_3(e);for(var n,r=j4(t),o=d5(t),i=o.length,a=0;i>a;)z3.f(e,n=o[a++],r[n]);return e},h5={f:p5},v5=L4("document","documentElement"),g5="prototype",y5="script",m5=e6("IE_PROTO"),b5=function(){},w5=function(e){return"<script>"+e+"</"+y5+">"},E5=function(e){e.write(w5("")),e.close();var t=e.parentWindow.Object;return e=null,t},S5=function(){try{o5=new ActiveXObject("htmlfile")}catch(e){}var e,t;S5="undefined"!=typeof document?document.domain&&o5?E5(o5):("javascript:",(t=O3("iframe")).style.display="none",v5.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(w5("document.F=Object")),e.close(),e.F):E5(o5);for(var n=x6.length;n--;)delete S5[g5][x6[n]];return S5()};t6[m5]=!0;var C5=Object.create||function(e,t){var n;return null!==e?(b5[g5]=_3(e),n=new b5,b5[g5]=null,n[m5]=e):n=S5(),void 0===t?n:h5.f(n,t)},D5=z3.f,x5=w3("unscopables"),O5=Array.prototype;void 0===O5[x5]&&D5(O5,x5,{configurable:!0,value:C5(null)});var A5=function(e){O5[x5][e]=!0},k5=f5.find,B5="find",F5=!0;B5 in[]&&Array(1)[B5]((function(){F5=!1})),z6({target:"Array",proto:!0,forced:F5},{find:function(e){return k5(this,e,arguments.length>1?arguments[1]:void 0)}}),A5(B5);var T5=function(e,t,n){p4?z3.f(e,t,w4(0,n)):e[t]=n},P5=w3("species"),_5=function(e){return G4>=51||!d4((function(){var t=[];return(t.constructor={})[P5]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},j5=D4([].slice),N5=_5("slice"),I5=w3("species"),R5=Array,L5=Math.max;z6({target:"Array",proto:!0,forced:!N5},{slice:function(e,t){var n,r,o,i=j4(this),a=b6(i),u=g6(e,a),s=g6(void 0===t?a:t,a);if(V6(i)&&(n=i.constructor,(i5(n)&&(n===R5||V6(n.prototype))||R4(n)&&null===(n=n[I5]))&&(n=void 0),n===R5||void 0===n))return j5(i,u,s);for(r=new(void 0===n?R5:n)(L5(s-u,0)),o=0;u<s;u++,o++)u in i&&T5(r,o,i[u]);return r.length=o,r}});var M5=q6?{}.toString:function(){return"[object "+X6(this)+"]"};q6||c6(Object.prototype,"toString",M5,{unsafe:!0});var z5,$5,H5=String,U5=function(e){if("Symbol"===X6(e))throw new TypeError("Cannot convert a Symbol value to a string");return H5(e)},V5=function(){var e=_3(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},W5=f4.RegExp,q5=d4((function(){var e=W5("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),G5=q5||d4((function(){return!W5("a","y").sticky})),K5={BROKEN_CARET:q5||d4((function(){var e=W5("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:G5,UNSUPPORTED_Y:q5},Y5=f4.RegExp,X5=d4((function(){var e=Y5(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Z5=f4.RegExp,J5=d4((function(){var e=Z5("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Q5=u6.get,e8=s3("native-string-replace",String.prototype.replace),t8=RegExp.prototype.exec,n8=t8,r8=D4("".charAt),o8=D4("".indexOf),i8=D4("".replace),a8=D4("".slice),u8=($5=/b*/g,g4(t8,z5=/a/,"a"),g4(t8,$5,"a"),0!==z5.lastIndex||0!==$5.lastIndex),s8=K5.BROKEN_CARET,c8=void 0!==/()??/.exec("")[1];(u8||c8||s8||X5||J5)&&(n8=function(e){var t,n,r,o,i,a,u,s=this,c=Q5(s),l=U5(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=g4(n8,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=s8&&s.sticky,h=g4(V5,s),v=s.source,g=0,y=l;if(p&&(h=i8(h,"y",""),-1===o8(h,"g")&&(h+="g"),y=a8(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==r8(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),c8&&(n=new RegExp("^"+v+"$(?!\\s)",h)),u8&&(r=s.lastIndex),o=g4(t8,p?n:s,y),p?o?(o.input=a8(o.input,g),o[0]=a8(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:u8&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),c8&&o&&o.length>1&&g4(e8,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=C5(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var l8=n8;z6({target:"RegExp",proto:!0,forced:/./.exec!==l8},{exec:l8});var f8=/"/g,d8=D4("".replace);z6({target:"String",proto:!0,forced:d4((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=U5(_4(this)),r="<a",(r+=' name="'+d8(U5(t),f8,""")+'"')+">"+n+"</a>";var t,n,r}});
|
82
|
+
/*! *****************************************************************************
|
83
|
+
Copyright (c) Microsoft Corporation.
|
84
|
+
|
85
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
86
|
+
purpose with or without fee is hereby granted.
|
87
|
+
|
88
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
89
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
90
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
91
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
92
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
93
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
94
|
+
PERFORMANCE OF THIS SOFTWARE.
|
95
|
+
***************************************************************************** */
|
96
|
+
var p8=function(){return p8=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},p8.apply(this,arguments)};function h8(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(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function v8(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 g8(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 y8(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var m8,b8,w8,E8={},S8=!d4((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),C8=e6("IE_PROTO"),D8=Object,x8=D8.prototype,O8=S8?D8.getPrototypeOf:function(e){var t=l3(e);if(d3(t,C8))return t[C8];var n=t.constructor;return I4(n)&&t instanceof n?n.prototype:t instanceof D8?x8:null},A8=w3("iterator"),k8=!1;[].keys&&("next"in(w8=[].keys())?(b8=O8(O8(w8)))!==Object.prototype&&(m8=b8):k8=!0);var B8=!R4(m8)||d4((function(){var e={};return m8[A8].call(e)!==e}));B8&&(m8={}),I4(m8[A8])||c6(m8,A8,(function(){return this}));var F8={IteratorPrototype:m8,BUGGY_SAFARI_ITERATORS:k8},T8=z3.f,P8=w3("toStringTag"),_8=function(e,t,n){e&&!n&&(e=e.prototype),e&&!d3(e,P8)&&T8(e,P8,{configurable:!0,value:t})},j8=F8.IteratorPrototype,N8=function(){return this},I8=String,R8=TypeError,L8=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return D4(n3(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return _4(n),function(e){if(function(e){return R4(e)||null===e}(e))return e;throw new R8("Can't set "+I8(e)+" as a prototype")}(r),R4(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),M8=W3.PROPER,z8=W3.CONFIGURABLE,$8=F8.IteratorPrototype,H8=F8.BUGGY_SAFARI_ITERATORS,U8=w3("iterator"),V8="keys",W8="values",q8="entries",G8=function(){return this},K8=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=C5(j8,{next:w4(1,n)}),_8(e,r,!1),E8[r]=N8}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!H8&&e&&e in p)return p[e];switch(e){case V8:case W8:case q8:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[U8]||p["@@iterator"]||o&&p[o],v=!H8&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=O8(g.call(new e)))!==Object.prototype&&u.next&&(O8(u)!==$8&&(L8?L8(u,$8):I4(u[U8])||c6(u,U8,G8)),_8(u,f,!0)),M8&&o===W8&&h&&h.name!==W8&&(z8?$3(p,"name",W8):(d=!0,v=function(){return g4(h,this)})),o)if(s={values:l(W8),keys:i?v:l(V8),entries:l(q8)},a)for(c in s)(H8||d||!(c in p))&&c6(p,c,s[c]);else z6({target:t,proto:!0,forced:H8||d},s);return p[U8]!==v&&c6(p,U8,v,{name:o}),E8[t]=v,s},Y8=function(e,t){return{value:e,done:t}},X8=z3.f,Z8="Array Iterator",J8=u6.set,Q8=u6.getterFor(Z8),e7=K8(Array,"Array",(function(e,t){J8(this,{type:Z8,target:j4(e),index:0,kind:t})}),(function(){var e=Q8(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Y8(void 0,!0);switch(e.kind){case"keys":return Y8(n,!1);case"values":return Y8(t[n],!1)}return Y8([n,t[n]],!1)}),"values"),t7=E8.Arguments=E8.Array;if(A5("keys"),A5("values"),A5("entries"),p4&&"values"!==t7.name)try{X8(t7,"name",{value:"values"})}catch(rf){}var n7=D4("".charAt),r7=D4("".charCodeAt),o7=D4("".slice),i7=function(e){return function(t,n){var r,o,i=U5(_4(t)),a=p6(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=r7(i,a))<55296||r>56319||a+1===u||(o=r7(i,a+1))<56320||o>57343?e?n7(i,a):r:e?o7(i,a,a+2):o-56320+(r-55296<<10)+65536}},a7={codeAt:i7(!1),charAt:i7(!0)},u7=a7.charAt,s7="String Iterator",c7=u6.set,l7=u6.getterFor(s7);K8(String,"String",(function(e){c7(this,{type:s7,string:U5(e),index:0})}),(function(){var e,t=l7(this),n=t.string,r=t.index;return r>=n.length?Y8(void 0,!0):(e=u7(n,r),t.index+=e.length,Y8(e,!1))}));var f7=A6.f,d7="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p7={f:function(e){return d7&&"Window"===A4(e)?function(e){try{return f7(e)}catch(e){return j5(d7)}}(e):f7(j4(e))}},h7=d4((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),v7=Object.isExtensible,g7=d4((function(){v7(1)}))||h7?function(e){return!!R4(e)&&(!h7||"ArrayBuffer"!==A4(e))&&(!v7||v7(e))}:v7,y7=!d4((function(){return Object.isExtensible(Object.preventExtensions({}))})),m7=u4((function(e){var t=z3.f,n=!1,r=g3("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=A6.f,t=D4([].splice),o={};o[r]=1,e(o).length&&(A6.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},z6({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:p7.f}))},fastKey:function(e,t){if(!R4(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!d3(e,r)){if(!g7(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!d3(e,r)){if(!g7(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return y7&&n&&g7(e)&&!d3(e,r)&&i(e),e}};t6[r]=!0})),b7=w3("iterator"),w7=Array.prototype,E7=function(e){return void 0!==e&&(E8.Array===e||w7[b7]===e)},S7=w3("iterator"),C7=function(e){if(!T4(e))return r3(e,S7)||r3(e,"@@iterator")||E8[X6(e)]},D7=TypeError,x7=function(e,t){var n=arguments.length<2?C7(e):t;if(n3(n))return _3(g4(n,e));throw new D7(e3(e)+" is not iterable")},O7=function(e,t,n){var r,o;_3(e);try{if(!(r=r3(e,"return"))){if("throw"===t)throw n;return n}r=g4(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return _3(r),n},A7=TypeError,k7=function(e,t){this.stopped=e,this.result=t},B7=k7.prototype,F7=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=U6(t,l),g=function(e){return r&&O7(r,"normal",e),new k7(!0,e)},y=function(e){return f?(_3(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(d)r=e.iterator;else if(p)r=e;else{if(!(o=C7(e)))throw new A7(e3(e)+" is not iterable");if(E7(o)){for(i=0,a=b6(e);a>i;i++)if((u=y(e[i]))&&M4(B7,u))return u;return new k7(!1)}r=x7(e,o)}for(s=d?e.next:r.next;!(c=g4(s,r)).done;){try{u=y(c.value)}catch(e){O7(r,"throw",e)}if("object"==typeof u&&u&&M4(B7,u))return u}return new k7(!1)},T7=TypeError,P7=function(e,t){if(M4(t,e))return e;throw new T7("Incorrect invocation")},_7=w3("iterator"),j7=!1;try{var N7=0,I7={next:function(){return{done:!!N7++}},return:function(){j7=!0}};I7[_7]=function(){return this},Array.from(I7,(function(){throw 2}))}catch(rf){}var R7=function(e,t){try{if(!t&&!j7)return!1}catch(e){return!1}var n=!1;try{var r={};r[_7]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},L7=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=f4[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=D4(u[e]);c6(u,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!R4(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!R4(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!R4(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(L6(e,!I4(a)||!(o||u.forEach&&!d4((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),m7.enable();else if(L6(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!==f,p=d4((function(){f.has(1)})),h=R7((function(e){new a(e)})),v=!o&&d4((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){P7(e,u);var n=function(e,t,n){var r,o;return L8&&I4(r=t.constructor)&&r!==n&&R4(o=r.prototype)&&o!==n.prototype&&L8(e,o),e}(new a,e,s);return T4(t)||F7(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,z6({global:!0,constructor:!0,forced:s!==a},c),_8(s,e),o||n.setStrong(s,e,r),s},M7=function(e,t,n){for(var r in t)c6(e,r,t[r],n);return e},z7=m7.getWeakData,$7=u6.set,H7=u6.getterFor,U7=f5.find,V7=f5.findIndex,W7=D4([].splice),q7=0,G7=function(e){return e.frozen||(e.frozen=new K7)},K7=function(){this.entries=[]},Y7=function(e,t){return U7(e.entries,(function(e){return e[0]===t}))};K7.prototype={get:function(e){var t=Y7(this,e);if(t)return t[1]},has:function(e){return!!Y7(this,e)},set:function(e,t){var n=Y7(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=V7(this.entries,(function(t){return t[0]===e}));return~t&&W7(this.entries,t,1),!!~t}};var X7={getConstructor:function(e,t,n,r){var o=e((function(e,o){P7(e,i),$7(e,{type:t,id:q7++,frozen:null}),T4(o)||F7(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=H7(t),u=function(e,t,n){var r=a(e),o=z7(_3(t),!0);return!0===o?G7(r).set(t,n):o[r.id]=n,e};return M7(i,{delete:function(e){var t=a(this);if(!R4(e))return!1;var n=z7(e);return!0===n?G7(t).delete(e):n&&d3(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!R4(e))return!1;var n=z7(e);return!0===n?G7(t).has(e):n&&d3(n,t.id)}}),M7(i,n?{get:function(e){var t=a(this);if(R4(e)){var n=z7(e);if(!0===n)return G7(t).get(e);if(n)return n[t.id]}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}};L7("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),X7);var Z7={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},J7=O3("span").classList,Q7=J7&&J7.constructor&&J7.constructor.prototype,e9=Q7===Object.prototype?void 0:Q7,t9=w3("iterator"),n9=e7.values,r9=function(e,t){if(e){if(e[t9]!==n9)try{$3(e,t9,n9)}catch(t){e[t9]=n9}if(_8(e,t,!0),Z7[t])for(var n in e7)if(e[n]!==e7[n])try{$3(e,n,e7[n])}catch(t){e[n]=e7[n]}}};for(var o9 in Z7)r9(f4[o9]&&f4[o9].prototype,o9);r9(e9,"DOMTokenList");var i9=E6.includes,a9=d4((function(){return!Array(1).includes()}));z6({target:"Array",proto:!0,forced:a9},{includes:function(e){return i9(this,e,arguments.length>1?arguments[1]:void 0)}}),A5("includes");var u9=f5.map,s9=_5("map");z6({target:"Array",proto:!0,forced:!s9},{map:function(e){return u9(this,e,arguments.length>1?arguments[1]:void 0)}});var c9=w3("match"),l9=TypeError,f9=w3("match"),d9=D4("".indexOf);z6({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[f9]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~d9(U5(_4(this)),U5(function(e){if(function(e){var t;return R4(e)&&(void 0!==(t=e[c9])?!!t:"RegExp"===A4(e))}(e))throw new l9("The method doesn't accept regular expressions");return e}(e)),arguments.length>1?arguments[1]:void 0)}});var p9={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function h9(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=p9,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!Wd.isEditor(e)&&Md.isElement(e)&&"type"in e}(e)&&o.includes(e.type)}}function v9(e,t){for(var n=g8(t,2),r=n[0],o=n[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=g8(Xd.common(e,r,o),2),s=u[0],c=u[1];return!!h9.apply(void 0,y8([e],g8(i)))(s,c)||!!Wd.above(e,{match:h9.apply(void 0,y8([e],g8(i))),at:c})}function g9(e,t){var n,r;void 0===t&&(t={});var o=[];try{for(var i=v8(function(e,t){var n,r,o,i,a,u,s,c,l,f,d,p,h,v,g,y,m,b;return void 0===t&&(t={}),h8(this,(function(w){switch(w.label){case 0:if(n=g8(Wd.nodes(e,{match:h9(e,"table"),at:t.at}),1),!(r=n[0]))return[2,[]];o=g8(r,2),i=o[1],w.label=1;case 1:w.trys.push([1,6,7,8]),a=v8(Wd.nodes(e,{match:h9(e,"table"),at:i})),u=a.next(),w.label=2;case 2:if(u.done)return[3,5];s=g8(u.value,2),c=s[1],l=[];try{for(m=void 0,f=v8(Wd.nodes(e,{match:h9(e,"tr"),at:c})),d=f.next();!d.done;d=f.next())p=g8(d.value,2),h=p[1],l.push(y8([],g8(Wd.nodes(e,{match:h9(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,l];case 3:w.sent(),w.label=4;case 4:return u=a.next(),[3,2];case 5:return[3,8];case 6:return v=w.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=[],c=0;c<u.length;c+=1){s[c]||(s[c]=[]);for(var l=0;l<u[c].length;l+=1)for(var f=g8(u[c][l],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+=1)for(var y=0;y<p;y+=1)s[c+y]||(s[c+y]=[]),s[c+y][l+g]||(s[c+y][l+g]=[u[c+y][l+g],{rtl:g-0+1,ltr:v-g+0,ttb:y+1,btt:p-y}])}o.push.apply(o,y8([],g8(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 y9,m9=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}(),b9=u6.enforce,w9=Object,E9=Array.isArray,S9=w9.isExtensible,C9=w9.isFrozen,D9=w9.isSealed,x9=w9.freeze,O9=w9.seal,A9=!f4.ActiveXObject&&"ActiveXObject"in f4,k9=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},B9=L7("WeakMap",k9,X7),F9=B9.prototype,T9=D4(F9.set);if(J3)if(A9){y9=X7.getConstructor(k9,"WeakMap",!0),m7.enable();var P9=D4(F9.delete),_9=D4(F9.has),j9=D4(F9.get);M7(F9,{delete:function(e){if(R4(e)&&!S9(e)){var t=b9(this);return t.frozen||(t.frozen=new y9),P9(this,e)||t.frozen.delete(e)}return P9(this,e)},has:function(e){if(R4(e)&&!S9(e)){var t=b9(this);return t.frozen||(t.frozen=new y9),_9(this,e)||t.frozen.has(e)}return _9(this,e)},get:function(e){if(R4(e)&&!S9(e)){var t=b9(this);return t.frozen||(t.frozen=new y9),_9(this,e)?j9(this,e):t.frozen.get(e)}return j9(this,e)},set:function(e,t){if(R4(e)&&!S9(e)){var n=b9(this);n.frozen||(n.frozen=new y9),_9(this,e)?T9(this,e,t):n.frozen.set(e,t)}else T9(this,e,t);return this}})}else y7&&d4((function(){var e=x9([]);return T9(new B9,e,1),!C9(e)}))&&M7(F9,{set:function(e,t){var n;return E9(e)&&(C9(e)?n=x9:D9(e)&&(n=O9)),T9(this,e,t),n&&n(e),this}});var N9=new WeakMap,I9=new WeakMap,R9={isInTable:function(e,t){return void 0===t&&(t={}),!!g8(Wd.nodes(e,{match:h9(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,n,r,o,i,a,u,s;return h8(this,(function(c){switch(c.label){case 0:t=N9.get(e),n=0,c.label=1;case 1:if(!(t&&n<t.length))return[3,4];for(r=[],o=0;o<t[n].length;o+=1)i=g8(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:c.sent(),c.label=3;case 3:return n+=1,[3,1];case 4:return[2]}}))},unselect:function(e){I9.delete(e),N9.delete(e)},isSelected:function(e,t){var n=I9.get(e);return!!n&&n.has(t)}};function L9(e){var t=e.selection;if(null==t)return!1;var n=g8(Wd.nodes(e,{match:function(e){return rT.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=g8(n,2)[1],o=Wd.start(e,r);if(op.equals(t.anchor,o))return!0}return!1}function M9(e,t){var n=t.offset;if(0===n)return!1;var r=Wd.node(e,t);if(!vp.isText(r[0]))return!1;var o=Xd.string(r[0]);return!(n>=o.length)&&"\n"===o[n-1]&&"\r"===o[n]}function z9(e,t,n){var r=e.selection;if(null==r||"line"===t)return!1;var o=g8(Wd.nodes(e,{match:function(e){return rT.checkNodeType(e,"table-cell")}}),1)[0],i=r.anchor;if("backward"===n&&0===r.anchor.offset&&(i=Wd.before(e,r)),"forward"===n&&Wd.isEnd(e,r.anchor,r.anchor.path)&&(i=Wd.after(e,r)),null==i)return!1;var a=Wd.above(e,{at:i,match:function(e){return rT.checkNodeType(e,"table-cell")}});if(null==a||null==o||!ep.equals(a[1],o[1]))return!1;var u=Wd.node(e,i);if(!vp.isText(u[0])||u[0].text.length<2)return!1;var s="backward"===n?[i.offset-2,i.offset]:[i.offset,i.offset+2],c=Xd.string(u[0]);return"\n\r"===c.slice.apply(c,y8([],g8(s)))?(_p.insertText(e,c.slice(0,s[0])+c.slice(s[1]),{at:{anchor:Wd.start(e,i.path),focus:Wd.end(e,i.path)}}),!0):!!M9(e,i)&&(_p.insertText(e,c.slice(0,r.anchor.offset-1)+c.slice(r.anchor.offset+1),{at:{anchor:Wd.start(e,i.path),focus:Wd.end(e,i.path)}}),!0)}var $9=/^\s+|\s+$/g,H9=/^[-+]0x[0-9a-f]+$/i,U9=/^0b[01]+$/i,V9=/^0o[0-7]+$/i,W9=parseInt,q9="object"==typeof a4&&a4&&a4.Object===Object&&a4,G9="object"==typeof self&&self&&self.Object===Object&&self,K9=q9||G9||Function("return this")(),Y9=Object.prototype.toString,X9=Math.max,Z9=Math.min,J9=function(){return K9.Date.now()};function Q9(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eee(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Y9.call(e)}(e))return NaN;if(Q9(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Q9(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace($9,"");var n=U9.test(e);return n||V9.test(e)?W9(e.slice(2),n?2:8):H9.test(e)?NaN:+e}var tee=function(e,t,n){var r,o,i,a,u,s,c=0,l=!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,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function v(){var e=J9();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Z9(n,i-(e-c)):n}(e))}function g(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=J9(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(v,t),l?p(e):a}(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=eee(t)||0,Q9(n)&&(l=!!n.leading,i=(f="maxWait"in n)?X9(eee(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g(J9())},y},nee=RegExp.prototype,ree=W3.PROPER,oee="toString",iee=RegExp.prototype,aee=iee[oee],uee=d4((function(){return"/a/b"!==aee.call({source:"a",flags:"b"})})),see=ree&&aee.name!==oee;(uee||see)&&c6(iee,oee,(function(){var e=_3(this),t=U5(e.source),n=U5(function(e){var t=e.flags;return void 0!==t||"flags"in nee||d3(e,"flags")||!M4(nee,e)?t:g4(V5,e)}(e));return"/"+t+"/"+n}),{unsafe:!0});var cee="\t\n\v\f\r \u2028\u2029\ufeff",lee=D4("".replace),fee=RegExp("^["+cee+"]+"),dee=RegExp("(^|[^"+cee+"])["+cee+"]+$"),pee=function(e){return function(t){var n=U5(_4(t));return 1&e&&(n=lee(n,fee,"")),2&e&&(n=lee(n,dee,"$1")),n}},hee={start:pee(1),end:pee(2),trim:pee(3)},vee=W3.PROPER,gee=hee.trim;function yee(e){return e.length?e[0].tagName.toLowerCase():""}function mee(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}z6({target:"String",proto:!0,forced:function(e){return d4((function(){return!!cee[e]()||"
"!=="
"[e]()||vee&&cee[e].name!==e}))}("trim")},{trim:function(){return gee(this)}}),z6({global:!0,forced:f4.globalThis!==f4},{globalThis:f4}),xv&&(ov.fn.append=xv),dv&&(ov.fn.on=dv),Iv&&(ov.fn.focus=Iv),sv&&(ov.fn.attr=sv),fv&&(ov.fn.val=fv),Sv&&(ov.fn.html=Sv),lv&&(ov.fn.dataset=lv),iv&&(ov.fn.addClass=iv),av&&(ov.fn.removeClass=av),Fv&&(ov.fn.children=Fv),wv&&(ov.fn.each=wv),Bv&&(ov.fn.find=Bv);var bee=/\[object HTML([A-Z][a-z]*)*Element\]/,wee=function(e){return bee.test(Object.prototype.toString.call(e))};function Eee(e){var t,n,r=[],o=e.reduce((function(e,t){return e+t}),0);try{for(var i=v8(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}var See=null,Cee=!1,Dee=!1,xee=0,Oee=0,Aee=null,kee=ov(window);kee.on("mousedown",(function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))Cee=!0;else if("DIV"===t.tagName&&t.closest(".column-resizer-item")){if(null===Aee)return;var n=g8(Wd.nodes(Aee,{match:h9(Aee,"table")}),1),r=g8(n[0],1)[0],o=r.columnWidths,i=void 0===o?[]:o,a=r.resizingIndex,u=void 0===a?-1:a;Dee=!0;var s=e.clientX;xee=s,Oee=i[u],document.body.style.cursor="col-resize",e.preventDefault()}kee.on("mousemove",Bee),kee.on("mouseup",Fee)}));var Bee=gg((function(e){if(Dee&&null!==Aee){e.preventDefault();var t=e.clientX,n=Oee+(t-xee);(n=Math.floor(100*n)/100)<30&&(n=30);var r=g8(Wd.nodes(Aee,{match:h9(Aee,"table")}),1),o=g8(r[0],1)[0],i=o.columnWidths,a=void 0===i?[]:i,u=o.resizingIndex,s=void 0===u?-1:u,c=a.reduce((function(e,t){return e+t}),0)-a[s],l=document.querySelector(".table-container");if(!(l&&c+n>l.clientWidth)){var f=y8([],g8(a)).map((function(e){return Math.floor(e)}));f[s]=n,_p.setNodes(Aee,{columnWidths:f},{mode:"highest"})}}}),100);function Fee(e){Cee=!1,Dee=!1,Aee=null,document.body.style.cursor="",kee.off("mousemove",Bee),kee.off("mouseup",Fee)}function Tee(e,t){"mouseenter"===t.type?_p.setNodes(e,{isResizing:!0},{mode:"highest"}):_p.setNodes(e,{isResizing:!1},{mode:"highest"})}function Pee(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function _ee(e){return Pee(e).every((function(e){return!!e.isHeader}))}var jee={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(sp.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=rT.findPath(e,t),a=Wd.start(e,i),u=Wd.end(e,i),s=op.compare(r,u)<=0&&op.compare(r,a)>=0,c=op.compare(o,u)<=0&&op.compare(o,a)>=0;return!!(s&&c&&ep.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,c=void 0===s?[]:s,l=o.scrollWidth,f=void 0===l?0:l,d=o.isHoverCellBorder,p=o.resizingIndex,h=o.isResizing,v=rT.isNodeSelected(n,e),g=g8(R9.selection(n),1)[0],y=Eee(c),m=Qg("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"]')&&R9.unselect(n);var r=rT.findPath(n,e),o=Wd.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&"DIV"===t.target.tagName&&n.select(o):n.select(o)}}}},Qg("table",{width:a,contentEditable:r,className:"table "+(g?"table-selection-none":""),style:{width:"100%"===a?a:c.reduce((function(e,t){return e+t}),0)+"px"},on:{mousemove:tee((function(t){return function(e,t,n,r){if(!e.isDisabled()&&!Cee&&!Dee){var o=t,i=o.width,a=void 0===i?"auto":i,u=o.columnWidths,s=void 0===u?[]:u,c=o.isHoverCellBorder,l=o.resizingIndex,f=n.clientX,d=n.target;if(wee(d)&&f>(v=d.getBoundingClientRect()).x+5&&f<v.x+v.width-5)return void(c&&_p.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(wee(d)){var p=d.closest(".table");if(p)for(var h=n.clientX,v=p.getBoundingClientRect(),g=function(e){var t,n,r=[],o=0;try{for(var i=v8(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}("100%"===a?Eee(s).map((function(e){return e*r})):s),y=0;y<g.length;y+=1)if(h-v.x>=g[y]-5&&h-v.x<g[y]+5){if(l===y)return;return void _p.setNodes(e,{isHoverCellBorder:!0,resizingIndex:y},{mode:"highest"})}}!0===c&&_p.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}(n,e,t,f)}),25)}},Qg("colgroup",{contentEditable:!1},c.map((function(e){return Qg("col",{width:e})}))),Qg("tbody",null,t)),Qg("div",{className:"column-resizer",contentEditable:!1},c.map((function(e,t){var r=e;return"100%"===a&&(r=y[t]*f),Qg("div",{className:"column-resizer-item",style:{minWidth:r+"px"}},Qg("div",{className:"resizer-line-hotzone "+(d&&t===p?"visible ":"")+(h&&t===p?"highlight":""),style:{height:u+"px"},on:{mouseenter:function(e){return Tee(n,e)},mouseleave:function(e){return Tee(n,e)},mousedown:function(e){return function(e){Dee||(Aee=e)}(n)}}},Qg("div",{className:"resizer-line"})))})))),b=_g("div",{hook:{insert:function(e){var t=e.elm;return function(e,t){if(wee(t)){var n=t.querySelector("table");n&&(See=new ResizeObserver((function(t){var n=g8(t,1)[0].contentRect;_p.setNodes(e,{scrollWidth:n.width,height:n.height},{mode:"highest"})})),See.observe(n))}}(n,t)},destroy:function(){See&&(null==See||See.disconnect(),See=null)}}},m);return b}},Nee={type:"table-row",renderElem:function(e,t,n){return Qg("tr",null,t)}},Iee={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=rT.getParentNode(e,t);if(null==n)return!1;var r=rT.getParentNode(e,n);return null!=r&&Pee(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,c=o.isHeader,l=void 0!==c&&c,f=o.hidden,d=void 0!==f&&f;return Qg(r&&l?"th":"td",{colSpan:a,rowSpan:s,"data-block-type":"table-cell",className:R9.isSelected(n,e)?"w-e-selected":"",style:{display:d?"none":""}},t)}},Ree=function(e,t){var n=[][e];return!!n&&d4((function(){n.call(null,t||function(){return 1},1)}))},Lee=D4([].join),Mee=F4!==Object||!Ree("join",",");z6({target:"Array",proto:!0,forced:Mee},{join:function(e){return Lee(j4(this),void 0===e?",":e)}});var zee={selector:"table",preParseHtml:function(e){var t=ov(e);if("table"!==yee(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]}},$ee=f5.filter,Hee=_5("filter");z6({target:"Array",proto:!0,forced:!Hee},{filter:function(e){return $ee(this,e,arguments.length>1?arguments[1]:void 0)}});var Uee=function(e,t,n,r){try{return r?t(_3(n)[0],n[1]):t(n)}catch(t){O7(e,"throw",t)}},Vee=Array,Wee=!R7((function(e){Array.from(e)}));z6({target:"Array",stat:!0,forced:Wee},{from:function(e){var t=l3(e),n=i5(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=U6(o,r>2?arguments[2]:void 0));var a,u,s,c,l,f,d=C7(t),p=0;if(!d||this===Vee&&E7(d))for(a=b6(t),u=n?new this(a):Vee(a);a>p;p++)f=i?o(t[p],p):t[p],T5(u,p,f);else for(u=n?new this:[],l=(c=x7(t,d)).next;!(s=g4(l,c)).done;p++)f=i?Uee(c,o,[s.value,p],!0):s.value,T5(u,p,f);return u.length=p,u}});var qee=Function.prototype,Gee=qee.apply,Kee=qee.call,Yee="object"==typeof Reflect&&Reflect.apply||(h4?Kee.bind(Gee):function(){return Kee.apply(Gee,arguments)}),Xee=w3("species"),Zee=RegExp.prototype,Jee=function(e,t,n,r){var o=w3(e),i=!d4((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!d4((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Xee]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=/./[o],s=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===l8||a===Zee.exec?i&&!o?{done:!0,value:g4(u,t,n,r)}:{done:!0,value:g4(e,n,t,r)}:{done:!1}}));c6(String.prototype,e,s[0]),c6(Zee,o,s[1])}r&&$3(Zee[o],"sham",!0)},Qee=a7.charAt,ete=function(e,t,n){return t+(n?Qee(e,t).length:1)},tte=Math.floor,nte=D4("".charAt),rte=D4("".replace),ote=D4("".slice),ite=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ate=/\$([$&'`]|\d{1,2})/g,ute=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=ate;return void 0!==o&&(o=l3(o),s=ite),rte(i,s,(function(i,s){var c;switch(nte(s,0)){case"$":return"$";case"&":return e;case"`":return ote(t,0,n);case"'":return ote(t,a);case"<":c=o[ote(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=tte(l/10);return 0===f?i:f<=u?void 0===r[f-1]?nte(s,1):r[f-1]+nte(s,1):i}c=r[l-1]}return void 0===c?"":c}))},ste=TypeError,cte=function(e,t){var n=e.exec;if(I4(n)){var r=g4(n,e,t);return null!==r&&_3(r),r}if("RegExp"===A4(e))return g4(l8,e,t);throw new ste("RegExp#exec called on incompatible receiver")},lte=w3("replace"),fte=Math.max,dte=Math.min,pte=D4([].concat),hte=D4([].push),vte=D4("".indexOf),gte=D4("".slice),yte="$0"==="a".replace(/./,"$0"),mte=!!/./[lte]&&""===/./[lte]("a","$0");Jee("replace",(function(e,t,n){var r=mte?"$":"$0";return[function(e,n){var r=_4(this),o=T4(e)?void 0:r3(e,lte);return o?g4(o,e,r,n):g4(t,U5(r),e,n)},function(e,o){var i=_3(this),a=U5(e);if("string"==typeof o&&-1===vte(o,r)&&-1===vte(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=I4(o);s||(o=U5(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=cte(i,a))&&(hte(d,f),l);)""===U5(f[0])&&(i.lastIndex=ete(a,m6(i.lastIndex),c));for(var p,h="",v=0,g=0;g<d.length;g++){for(var y,m=U5((f=d[g])[0]),b=fte(dte(p6(f.index),a.length),0),w=[],E=1;E<f.length;E++)hte(w,void 0===(p=f[E])?p:String(p));var S=f.groups;if(s){var C=pte([m],w,b,a);void 0!==S&&hte(C,S),y=U5(Yee(o,void 0,C))}else y=ute(m,a,b,w,S,o);b>=v&&(h+=gte(a,v,b)+y,v=b+m.length)}return h+gte(a,v)}]}),!!d4((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!yte||mte);var bte=f5.forEach,wte=Ree("forEach")?[].forEach:function(e){return bte(this,e,arguments.length>1?arguments[1]:void 0)},Ete=function(e){if(e&&e.forEach!==wte)try{$3(e,"forEach",wte)}catch(t){e.forEach=wte}};for(var Ste in Z7)Z7[Ste]&&Ete(f4[Ste]&&f4[Ste].prototype);Ete(e9);var Cte={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ov(e);0===(t=t.filter((function(e){return"paragraph"===rT.getNodeType(e)||!!vp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1",10),i=parseInt(r.attr("rowSpan")||"1",10),a="none"===mee(r,"display"),u=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===yee(r),colSpan:o,rowSpan:i,width:u,children:t,hidden:a}}},Dte={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){for(var r,o=[],i=0;i<t.length;i+=1){var a=t[i];if("table-cell"===rT.getNodeType(a)){var u=a.colSpan||1;o.push(a);for(var s=1;s<u;s+=1){var c=t[i+s];c&&"table-cell"===rT.getNodeType(c)&&"none"===(null===(r=c.style)||void 0===r?void 0:r.display)||o.push({type:"table-cell",children:[{text:""}],hidden:!0})}}}return{type:"table-row",children:o}}},xte={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r,o,i=ov(e),a="auto";"100%"===mee(i,"width")&&(a="100%"),"100%"===i.attr("width")&&(a="100%");var u={type:"table",width:a,height:parseInt(mee(i,"height")||"0",10),children:t.filter((function(e){return"table-row"===rT.getNodeType(e)}))},s=(null===(r=i.find("tr")[0])||void 0===r?void 0:r.children)||[],c=(null===(o=i.find("colgroup")[0])||void 0===o?void 0:o.children)||null;if(c)u.columnWidths=Array.from(c).map((function(e){return parseInt(e.getAttribute("width"),10)}));else if(s.length>0){var l=[];Array.from(s).forEach((function(e){for(var t=parseInt(ov(e).attr("colSpan")||"1",10),n=parseInt(mee(ov(e),"width")||"180",10),r=0;r<t;r+=1)l.push(n)})),u.columnWidths=l}return u}};z6({target:"Array",proto:!0},{fill:function(e){for(var t=l3(this),n=b6(t),r=arguments.length,o=g6(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:g6(i,n);a>o;)t[o++]=e;return t}}),A5("fill");var Ote=function(){function e(){this.title=uN("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||!sp.isCollapsed(t)||!!rT.getSelectedElems(e).some((function(t){var n=rT.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=ov('<div class="w-e-panel-content-table"></div>'),r=ov("<span>0 × 0</span>"),o=ov("<table></table>"),i=0;i<10;i+=1){for(var a=ov("<tr></tr>"),u=0;u<10;u+=1){var s=ov("<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=ov(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){ov(e).children().each((function(e){var t=ov(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=ov(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)){rT.isSelectedEmptyParagraph(e)&&_p.removeNodes(e,{mode:"highest"}),0===e.children.length&&_p.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"});var i=function(e,t,n){for(var r,o=[],i=e.getMenuConfig("insertTable"),a=i.minWidth,u=void 0===a?60:a,s=i.tableFullWidth,c=i.tableHeader,l=Array(n).fill(parseInt(u,10)||60),f=0;f<t;f+=1){for(var d=[],p=0;p<n;p+=1){var h={type:"table-cell",children:[{text:""}]};0===f&&(h.isHeader=null===(r=null==c?void 0:c.selected)||void 0===r||r),d.push(h)}o.push({type:"table-row",children:d})}return{type:"table",width:(null==s?void 0:s.selected)?"100%":"auto",children:o,columnWidths:l}}(e,r,o);_p.insertNodes(e,i,{mode:"highest"})}},e}(),Ate=function(){function e(){this.title=uN("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==rT.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||_p.removeNodes(e,{mode:"highest"})},e}(),kte=function(){function e(){this.title=uN("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||!sp.isCollapsed(t)||null==rT.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=g8(Wd.nodes(e,{match:function(e){return rT.checkNodeType(e,"table-cell")},universal:!0}),1),r=g8(n[0],2),o=r[0],i=r[1],a=rT.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){var s=g9(e),c=0;e:for(var l=0;l<s.length;l+=1)for(var f=0;f<s[l].length;f+=1){var d=g8(s[l][f],1),p=g8(d[0],2)[1];if(ep.equals(i,p)){c=l;break e}}Wd.withoutNormalizing(e,(function(){for(var t=c+1,n=t>=0&&t<s.length,r=[],o=0;n&&o<s[c].length;o+=1){var a=g8(s[c][o],2)[1],l=a.ttb,f=a.btt;if(l>1||f>1){if(1===f)continue;var d=g8(s[c-(l-1)][o],1),p=g8(d[0],2),h=p[0],v=p[1],g=h.rowSpan||1;r.push(o),h.hidden||_p.setNodes(e,{rowSpan:g+1},{at:v})}}for(var y={type:"table-row",children:[]},m=0;m<u;m+=1){var b={type:"table-cell",hidden:r.includes(m),children:[{text:""}]};y.children.push(b)}var w=ep.parent(i),E=ep.next(w);_p.insertNodes(e,y,{at:E})}))}}},e}(),Bte=function(){function e(){this.title=uN("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||!sp.isCollapsed(t)||null==rT.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=g8(Wd.nodes(e,{match:function(e){return rT.checkNodeType(e,"table-row")},universal:!0}),1),r=g8(n[0],2),o=r[0],i=r[1],a=rT.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)_p.removeNodes(e,{mode:"highest"});else{var u=g8(Wd.nodes(e,{match:function(e){return rT.checkNodeType(e,"table-cell")},universal:!0}),1),s=g8(u[0],2)[1],c=g9(e),l=0;e:for(var f=0;f<c.length;f+=1)for(var d=0;d<c[f].length;d+=1){var p=g8(c[f][d],1),h=g8(p[0],2)[1];if(ep.equals(s,h)){l=f;break e}}Wd.withoutNormalizing(e,(function(){for(var t,n,r=0;r<c[l].length;r+=1){var o=g8(c[l][r],2),a=g8(o[0],1)[0].hidden,u=o[1],s=u.ttb,f=u.btt;if(s>1||f>1){var d=g8(c[l-(s-1)][r],1),p=g8(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)_p.setNodes(e,{rowSpan:Math.max(g-1,1),colSpan:m},{at:b});else{var w=g8(c[l+1][r],1),E=g8(w[0],2)[1];_p.setNodes(e,{rowSpan:g-1,colSpan:m,hidden:!1},{at:E});try{for(var S=(t=void 0,v8(Xd.children(e,b,{reverse:!0}))),C=S.next();!C.done;C=S.next()){var D=g8(C.value,2)[1];_p.moveNodes(e,{to:y8(y8([],g8(E)),[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}}}}}_p.removeNodes(e,{at:i})}))}}},e}(),Fte=TypeError,Tte=Object.getOwnPropertyDescriptor,Pte=p4&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(V6(e)&&!Tte(e,"length").writable)throw new Fte("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},_te=TypeError,jte=TypeError,Nte=function(e,t){if(!delete e[t])throw new jte("Cannot delete property "+e3(t)+" of "+e3(e))},Ite=_5("splice"),Rte=Math.max,Lte=Math.min;z6({target:"Array",proto:!0,forced:!Ite},{splice:function(e,t){var n,r,o,i,a,u,s=l3(this),c=b6(s),l=g6(e,c),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=Lte(Rte(p6(t),0),c-l)),function(e){if(e>9007199254740991)throw _te("Maximum allowed index exceeded")}(c+n-r),o=s5(s,r),i=0;i<r;i++)(a=l+i)in s&&T5(o,i,s[a]);if(o.length=r,n<r){for(i=l;i<c-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:Nte(s,u);for(i=c;i>c-r+n;i--)Nte(s,i-1)}else if(n>r)for(i=c-r;i>l;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:Nte(s,u);for(i=0;i<n;i++)s[i+l]=arguments[i+2];return Pte(s,c-r+n),o}});var Mte=function(){function e(){this.title=uN("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||!sp.isCollapsed(t)||null==rT.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=g8(Wd.nodes(e,{match:function(e){return rT.checkNodeType(e,"table-cell")},universal:!0}),1),r=g8(n[0],2),o=r[0],i=r[1],a=rT.getParentNode(e,o);if(null!=a){var u=rT.getParentNode(e,a);if(null!=u){for(var s=g9(e),c=0,l=0;l<s.length;l+=1)for(var f=0;f<s[l].length;f+=1){var d=g8(s[l][f],1),p=g8(d[0],2)[1];if(ep.equals(i,p)){c=f;break}}Wd.withoutNormalizing(e,(function(){for(var t=[],n=0;n<s.length;n+=1){var r=g8(s[n][c],2)[1],o=r.ltr,i=r.rtl;if(o>1||i>1){if(1===i)continue;var a=g8(s[n][c-(i-1)],1),l=g8(a[0],2),f=l[0],d=l[1],p=f.colSpan||1;t.push(n),f.hidden||_p.setNodes(e,{colSpan:p+1},{at:d})}}for(n=0;n<s.length;n+=1){var h={type:"table-cell",hidden:t.includes(n),children:[{text:""}]};0===n&&_ee(u)&&(h.isHeader=!0);var v=g8(s[n][c],1),g=g8(v[0],2)[1];_p.insertNodes(e,h,{at:g})}var y=g8(Wd.nodes(e,{match:function(e){return rT.checkNodeType(e,"table")},universal:!0}),1)[0];if(y){var m=g8(y,2),b=m[0],w=m[1],E=b.columnWidths,S=y8([],g8(void 0===E?[]:E)),C=e.getMenuConfig("insertTable").minWidth,D=void 0===C?60:C;S.splice(c,0,parseInt(D,10)||60),_p.setNodes(e,{columnWidths:S},{at:w})}}))}}}},e}(),zte=function(){function e(){this.title=uN("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||!sp.isCollapsed(t)||null==rT.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=g8(Wd.nodes(e,{match:function(e){return rT.checkNodeType(e,"table-cell")},universal:!0}),1),r=g8(n[0],2),o=r[0],i=r[1],a=rT.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)_p.removeNodes(e,{mode:"highest"});else if(null!=rT.getParentNode(e,a)){var s=g9(e),c=0;e:for(var l=0;l<s.length;l+=1)for(var f=0;f<s[l].length;f+=1){var d=g8(s[l][f],1),p=g8(d[0],2)[1];if(ep.equals(i,p)){c=f;break e}}Wd.withoutNormalizing(e,(function(){for(var t,n,r=0;r<s.length;r+=1){var o=g8(s[r][c],2),i=g8(o[0],1)[0].hidden,a=o[1],u=a.rtl,l=a.ltr;if(u>1||l>1){var f=g8(s[r][c-(u-1)],1),d=g8(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)_p.setNodes(e,{rowSpan:v,colSpan:Math.max(y-1,1)},{at:m});else{var b=g8(s[r][c+1],1),w=g8(b[0],2)[1];_p.setNodes(e,{rowSpan:v,colSpan:y-1,hidden:!1},{at:w});try{for(var E=(t=void 0,v8(Xd.children(e,m,{reverse:!0}))),S=E.next();!S.done;S=E.next()){var C=g8(S.value,2)[1];_p.moveNodes(e,{to:y8(y8([],g8(w)),[0]),at:C})}}catch(e){t={error:e}}finally{try{S&&!S.done&&(n=E.return)&&n.call(E)}finally{if(t)throw t.error}}}}}for(r=0;r<s.length;r+=1){var D=g8(s[r][c],1);m=g8(D[0],2)[1],_p.removeNodes(e,{at:m})}var x=g8(Wd.nodes(e,{match:function(e){return rT.checkNodeType(e,"table")},universal:!0}),1)[0];if(x){var O=g8(x,2),A=O[0],k=O[1],B=A.columnWidths,F=y8([],g8(void 0===B?[]:B));F.splice(c,1),_p.setNodes(e,{columnWidths:F},{at:k})}}))}}},e}(),$te=function(){function e(){this.title=uN("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=rT.getSelectedNodeByType(e,"table");return null!=t&&_ee(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!sp.isCollapsed(t)||null==rT.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=rT.getSelectedNodeByType(e,"table");null!=r&&Pee(r).forEach((function(t){return _p.setNodes(e,{isHeader:n},{at:rT.findPath(e,t)})}))}},e}(),Hte=function(){function e(){this.title=uN("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=rT.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||!sp.isCollapsed(t)||null==rT.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};_p.setNodes(e,n,{mode:"highest"})}},e}(),Ute=function(){function e(){this.title=uN("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),R9.unselect(e))},e.prototype.canMerge=function(e){var t=N9.get(e);if(!t||!t.length)return!1;var n=g8(t[t.length-1][t[t.length-1].length-1],1),r=g8(n[0],2)[1],o=g8(t[0][0],1);return!!v9(e,[g8(o[0],2)[1],r],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=N9.get(e);if(t&&t.length){var n=g8(t[0][0],1),r=g8(n[0],2)[1],o=g8(Xd.children(e,r,{reverse:!0}),1),i=g8(o[0],2)[1];Wd.withoutNormalizing(e,(function(){for(var n,o,a=0,u=0,s=t.length-1;s>=0;s-=1,a+=1){u=0;for(var c=t[s].length-1;c>=0;c-=1,u+=1){var l=g8(t[s][c],2),f=g8(l[0],2)[1],d=l[1].ttb;if(!(ep.equals(r,f)||d>1)){try{for(var p=(n=void 0,v8(Xd.children(e,f,{reverse:!0}))),h=p.next();!h.done;h=p.next()){var v=g8(h.value,2)[1];_p.moveNodes(e,{to:ep.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=g8(Wd.nodes(e,{match:h9(e,"tr"),at:f}),1),y=g8(g[0],2)[1];g8(Xd.children(e,y),2)[1]&&_p.setNodes(e,{hidden:!0},{at:f})}}}_p.setNodes(e,{rowSpan:a,colSpan:u},{at:r})}))}}},e}(),Vte=TypeError,Wte=w3("species"),qte=K5.UNSUPPORTED_Y,Gte=Math.min,Kte=D4([].push),Yte=D4("".slice),Xte=!d4((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]})),Zte="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;Jee("split",(function(e,t,n){var r="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:g4(t,this,e,n)}:t;return[function(t,n){var o=_4(this),i=T4(t)?void 0:r3(t,e);return i?g4(i,t,o,n):g4(r,U5(o),t,n)},function(e,o){var i=_3(this),a=U5(e);if(!Zte){var u=n(r,i,a,o,r!==t);if(u.done)return u.value}var s=function(e,t){var n,r=_3(e).constructor;return void 0===r||T4(n=_3(r)[Wte])?t:function(e){if(i5(e))return e;throw new Vte(e3(e)+" is not a constructor")}(n)}(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(qte?"g":"y"),f=new s(qte?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===cte(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=qte?0:h;var g,y=cte(f,qte?Yte(a,h):a);if(null===y||(g=Gte(m6(f.lastIndex+(qte?h:0)),a.length))===p)h=ete(a,h,c);else{if(Kte(v,Yte(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Kte(v,y[m]),v.length===d)return v;h=p=g}}return Kte(v,Yte(a,p)),v}]}),Zte||!Xte,qte);var Jte,Qte=function(){function e(){this.title=uN("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=g8(Wd.nodes(e,{match:h9(e,"td")}),1),n=g8(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=g8(Wd.nodes(e,{match:h9(e,"table","th","td"),at:t.at}),2),r=n[0],o=n[1];if(r&&o){var i=N9.get(e)||[],a=g9(e,{at:t.at});Wd.withoutNormalizing(e,(function(){for(var n=a.length-1;n>=0;n-=1)for(var r=a[n].length-1;r>=0;r-=1){var u=g8(a[n][r],2),s=g8(u[0],2)[1],c=u[1],l=c.ltr,f=c.rtl,d=c.btt,p=c.ttb;if(f>1)r-=f-2;else if(!(p>1||1===d&&1===l)){var h=!!t.all;if(i.length)e:for(var v=0;!t.all&&v<i.length;v+=1)for(var g=0;g<i[v].length;g+=1){var y=g8(i[v][g],1),m=g8(y[0],2)[1];if(ep.equals(m,s)){h=!0;break e}}else m=g8(o,2)[1],ep.equals(m,s)&&(h=!0);if(h){e:for(var b=1;b<d;b+=1)for(v=r;v>=0;v-=1)if(1!==g8(a[n+b][v],2)[1].ttb){for(var w=0;w<l;w+=1){var E=g8(a[n+b][v+w],1),S=g8(E[0],2)[1];_p.unsetNodes(e,["hidden","colSpan","rowSpan"],{at:S})}continue e}for(w=1;w<l;w+=1){var C=g8(a[n][r+w],1);S=g8(C[0],2)[1],_p.unsetNodes(e,["hidden","colSpan","rowSpan"],{at:S})}_p.setNodes(e,{rowSpan:1,colSpan:1},{at:s})}}}}))}},e}(),ene={key:"insertTable",factory:function(){return new Ote}},tne={key:"deleteTable",factory:function(){return new Ate}},nne={key:"insertTableRow",factory:function(){return new kte}},rne={key:"deleteTableRow",factory:function(){return new Bte}},one={key:"insertTableCol",factory:function(){return new Mte}},ine={key:"deleteTableCol",factory:function(){return new zte}},ane={key:"tableHeader",factory:function(){return new $te}},une={key:"tableFullWidth",factory:function(){return new Hte}},sne={key:"mergeTableCell",factory:function(){return new Ute}},cne={key:"splitTableCell",factory:function(){return new Qte}},lne=Object.assign,fne=Object.defineProperty,dne=D4([].concat),pne=!lne||d4((function(){if(p4&&1!==lne({b:1},lne(fne({},"a",{enumerable:!0,get:function(){fne(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==lne({},e)[n]||d5(lne({},t)).join("")!==r}))?function(e,t){for(var n=l3(e),r=arguments.length,o=1,i=k6.f,a=b4.f;r>o;)for(var u,s=F4(arguments[o++]),c=i?dne(d5(s),i(s)):d5(s),l=c.length,f=0;l>f;)u=c[f++],p4&&!g4(a,s,u)||(n[u]=s[u]);return n}:lne;function hne(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}z6({target:"Object",stat:!0,arity:2,forced:Object.assign!==pne},{assign:pne});var vne=null===(Jte=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===Jte?void 0:Jte.getPropertyValue("--w-e-textarea-border-color"),gne={renderStyle:function(e,t){var n,r;if(!Md.isElement(e))return t;var o=e,i=o.backgroundColor,a=o.borderWidth,u=o.borderStyle,s=o.borderColor,c=o.textAlign,l={};i&&(l.backgroundColor=i),a&&(l.borderWidth=a+"px"),u&&(l.borderStyle="none"===u?"":u),s&&(l.borderColor=s),c&&(l.textAlign=c);var f=t;return"table"===e.type?hne(null===(r=(null===(n=f.children)||void 0===n?void 0:n[0]).children)||void 0===r?void 0:r[0],l):hne(f,l),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=ov(t);return n&&u.css("background-color",n),r&&u.css("border-width",r+"px"),o&&u.css("border-style","none"===o?"":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){if("TABLE"!==e.tagName&&"TD"!==e.tagName)return t;var r=ov(e),o=t,i=mee(r,"background-color");i||(i=mee(r,"background")),i&&(o.backgroundColor=i);var a=mee(r,"border");a||"TD"!==e.tagName||(a="1px solid "+vne);var u=g8((null==a?void 0:a.split(" "))||[],3),s=u[0],c=u[1],l=u[2];(s=mee(r,"border-width")||s)&&(o.borderWidth=s.replace(/[^\d]/g,"")),(c=mee(r,"border-style")||c)&&(o.borderStyle="none"===c?"":c),(l=mee(r,"border-color")||l)&&(o.borderColor=l);var f=mee(r,"text-align");return(f=mee(r,"text-align")||f)&&(o.textAlign=f),t},renderElems:[jee,Nee,Iee],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,c=n.width,l=void 0===c?"auto":c,f=n.hidden,d=s?"th":"td";return"<"+d+' colSpan="'+o+'" rowSpan="'+a+'" width="'+l+'" style="'+(void 0!==f&&f?"display:none":"")+'">'+t+"</"+d+">"}}],preParseHtml:[zee],parseElemsHtml:[Cte,Dte,xte],menus:[ene,tne,nne,rne,one,ine,ane,une,sne,cne],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.deleteFragment,i=e.normalizeNode,a=e.insertData,u=e.handleTab,s=e.selectAll,c=e;return c.insertBreak=function(){null==rT.getSelectedNodeByType(c,"table")?t():c.insertText("\n\r")},c.deleteBackward=function(e){if(!L9(c)&&!z9(c,e,"backward")){var t=c.selection;if(t){var r=Wd.before(c,t),o=Wd.above(c,{at:t,match:function(e){return rT.checkNodeType(e,"table-cell")}});if(r){var i=function(e,t){return!!y8([],g8(Wd.nodes(e,{at:t,match:function(e){return"table"===rT.getNodeType(e)}}))).find((function(){return!0}))}(c,r);if(!o&&i&&rT.getSelectedNodeByType(c,"paragraph"))return}}n(e)}},c.handleTab=function(){var t;if(rT.getSelectedNodeByType(c,"table")){var n=Wd.above(e);rT.checkNodeType(n[0],"table-cell")&&_p.select(e,n[1]);var r=Wd.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Wd.above(e,{at:r[1]}))&&void 0!==t?t:r),_p.select(e,r[1]);else{var o=c.children||[],i=o.length;if(rT.checkNodeType(o[i-1],"table")){var a=rT.genEmptyParagraph();_p.insertNodes(c,a,{at:[i]}),c.handleTab()}}}else u()},c.deleteForward=function(e){L9(c)||z9(c,e,"forward")||r(e)},c.deleteFragment=function(e){var t=c.selection;if(t){var n,r=!1,i={anchor:t.anchor,focus:t.focus},a=op.isBefore(i.anchor,i.focus);M9(c,t.anchor)&&((n=Wd[a?"before":"after"](c,t.anchor))&&(i.anchor=n),r=!0),M9(c,t.focus)&&((n=Wd[a?"after":"before"](c,t.focus))&&(i.focus=n),r=!0),r&&_p.setSelection(c,i),o(e)}},c.normalizeNode=function(e){var t=g8(e,2),n=t[0],r=t[1];if("table"!==rT.getNodeType(n))return i([n,r]);if(rT.isLastNode(c,n)){var o=rT.genEmptyParagraph();_p.insertNodes(c,o,{at:[r[0]+1]})}},c.insertData=function(e){if(null!=rT.getSelectedNodeByType(c,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?a(e):Wd.insertText(c,t)}else a(e)},c.selectAll=function(){var e=c.selection;if(null!=e){var t=rT.getSelectedNodeByType(c,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(ep.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Xd.string(t).length){var o=rT.findPath(c,t),i={anchor:Wd.start(c,o),focus:Wd.end(c,o)};c.select(i)}else s();else s()}else s()}else s()},function(e){var t=e.apply;e.apply=function(n){if(!Qd.isSelectionOperation(n)||!n.newProperties)return t(n);var r=p8(p8({},e.selection),n.newProperties);if(!sp.isRange(r))return R9.unselect(e),t(n);var o=g8(Wd.nodes(e,{match:h9(e,"th","td"),at:sp.start(r)}),1)[0],i=g8(Wd.nodes(e,{match:h9(e,"th","td"),at:sp.end(r)}),1)[0];if(!o||!i)return R9.unselect(e),t(n);var a=g8(o,2)[1],u=g8(i,2)[1];if(ep.equals(a,u)||!v9(e,[a,u],"table"))return R9.unselect(e),t(n);for(var s=g9(e,{at:a}),c=m9.valueOf(0,0),l=m9.valueOf(0,0),f=0;f<s.length;f+=1)for(var d=0;d<s[f].length;d+=1){var p=g8(s[f][d],1),h=g8(p[0],2)[1];if(ep.equals(a,h)&&(c.x=f,c.y=d),ep.equals(u,h)){l.x=f,l.y=d;break}}for(var v=m9.valueOf(Math.min(c.x,l.x),Math.min(c.y,l.y)),g=m9.valueOf(Math.max(c.x,l.x),Math.max(c.y,l.y));;){var y=m9.valueOf(v.x,v.y),m=m9.valueOf(g.x,g.y);for(f=y.x;f<=m.x;f+=1)for(d=y.y;d<=m.y;d+=1){var b=g8(s[f][d],2)[1],w=b.rtl,E=b.ltr,S=b.btt,C=b.ttb;y.x=Math.min(y.x,f-(C-1)),y.y=Math.min(y.y,d-(w-1)),m.x=Math.max(m.x,f+(S-1)),m.y=Math.max(m.y,d+(E-1))}if(m9.equals(v,y)&&m9.equals(g,m))break;v=y,g=m}var D=[],x=new WeakSet;for(f=v.x;f<=g.x;f+=1){var O=[];for(d=v.y;d<=g.y;d+=1){var A=g8(s[f][d],1),k=g8(A[0],1)[0];x.add(k),O.push(s[f][d])}D.push(O)}N9.set(e,D),I9.set(e,x),t(n)}}(c),c}};aN("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),aN("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
|
97
|
+
/*! *****************************************************************************
|
98
|
+
Copyright (c) Microsoft Corporation.
|
99
|
+
|
100
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
101
|
+
purpose with or without fee is hereby granted.
|
102
|
+
|
103
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
104
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
105
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
106
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
107
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
108
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
109
|
+
PERFORMANCE OF THIS SOFTWARE.
|
110
|
+
***************************************************************************** */
|
111
|
+
var yne=function(){return yne=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},yne.apply(this,arguments)};function mne(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 bne(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(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function wne(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}var Ene="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Sne(e){var t={exports:{}};return e(t,t.exports),t.exports}var Cne,Dne,xne=function(e){return e&&e.Math===Math&&e},One=xne("object"==typeof globalThis&&globalThis)||xne("object"==typeof window&&window)||xne("object"==typeof self&&self)||xne("object"==typeof Ene&&Ene)||xne("object"==typeof Ene&&Ene)||function(){return this}()||Function("return this")(),Ane=function(e){try{return!!e()}catch(e){return!0}},kne=!Ane((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Bne=!Ane((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Fne=Function.prototype.call,Tne=Bne?Fne.bind(Fne):function(){return Fne.apply(Fne,arguments)},Pne={}.propertyIsEnumerable,_ne=Object.getOwnPropertyDescriptor,jne={f:_ne&&!Pne.call({1:2},1)?function(e){var t=_ne(this,e);return!!t&&t.enumerable}:Pne},Nne=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ine=Function.prototype,Rne=Ine.call,Lne=Bne&&Ine.bind.bind(Rne,Rne),Mne=Bne?Lne:function(e){return function(){return Rne.apply(e,arguments)}},zne=Mne({}.toString),$ne=Mne("".slice),Hne=function(e){return $ne(zne(e),8,-1)},Une=Object,Vne=Mne("".split),Wne=Ane((function(){return!Une("z").propertyIsEnumerable(0)}))?function(e){return"String"===Hne(e)?Vne(e,""):Une(e)}:Une,qne=function(e){return null==e},Gne=TypeError,Kne=function(e){if(qne(e))throw new Gne("Can't call method on "+e);return e},Yne=function(e){return Wne(Kne(e))},Xne="object"==typeof document&&document.all,Zne=void 0===Xne&&void 0!==Xne?function(e){return"function"==typeof e||e===Xne}:function(e){return"function"==typeof e},Jne=function(e){return"object"==typeof e?null!==e:Zne(e)},Qne=function(e,t){return arguments.length<2?(n=One[e],Zne(n)?n:void 0):One[e]&&One[e][t];var n},ere=Mne({}.isPrototypeOf),tre=One.navigator,nre=tre&&tre.userAgent,rre=nre?String(nre):"",ore=One.process,ire=One.Deno,are=ore&&ore.versions||ire&&ire.version,ure=are&&are.v8;ure&&(Dne=(Cne=ure.split("."))[0]>0&&Cne[0]<4?1:+(Cne[0]+Cne[1])),!Dne&&rre&&(!(Cne=rre.match(/Edge\/(\d+)/))||Cne[1]>=74)&&(Cne=rre.match(/Chrome\/(\d+)/))&&(Dne=+Cne[1]);var sre=Dne,cre=One.String,lre=!!Object.getOwnPropertySymbols&&!Ane((function(){var e=Symbol("symbol detection");return!cre(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sre&&sre<41})),fre=lre&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,dre=Object,pre=fre?function(e){return"symbol"==typeof e}:function(e){var t=Qne("Symbol");return Zne(t)&&ere(t.prototype,dre(e))},hre=String,vre=function(e){try{return hre(e)}catch(e){return"Object"}},gre=TypeError,yre=function(e){if(Zne(e))return e;throw new gre(vre(e)+" is not a function")},mre=function(e,t){var n=e[t];return qne(n)?void 0:yre(n)},bre=TypeError,wre=Object.defineProperty,Ere=function(e,t){try{wre(One,e,{value:t,configurable:!0,writable:!0})}catch(n){One[e]=t}return t},Sre=Sne((function(e){var t="__core-js_shared__",n=e.exports=One[t]||Ere(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),Cre=function(e,t){return Sre[e]||(Sre[e]=t||{})},Dre=Object,xre=function(e){return Dre(Kne(e))},Ore=Mne({}.hasOwnProperty),Are=Object.hasOwn||function(e,t){return Ore(xre(e),t)},kre=0,Bre=Math.random(),Fre=Mne(1..toString),Tre=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Fre(++kre+Bre,36)},Pre=One.Symbol,_re=Cre("wks"),jre=fre?Pre.for||Pre:Pre&&Pre.withoutSetter||Tre,Nre=function(e){return Are(_re,e)||(_re[e]=lre&&Are(Pre,e)?Pre[e]:jre("Symbol."+e)),_re[e]},Ire=TypeError,Rre=Nre("toPrimitive"),Lre=function(e){var t=function(e,t){if(!Jne(e)||pre(e))return e;var n,r=mre(e,Rre);if(r){if(void 0===t&&(t="default"),n=Tne(r,e,t),!Jne(n)||pre(n))return n;throw new Ire("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Zne(n=e.toString)&&!Jne(r=Tne(n,e)))return r;if(Zne(n=e.valueOf)&&!Jne(r=Tne(n,e)))return r;if("string"!==t&&Zne(n=e.toString)&&!Jne(r=Tne(n,e)))return r;throw new bre("Can't convert object to primitive value")}(e,t)}(e,"string");return pre(t)?t:t+""},Mre=One.document,zre=Jne(Mre)&&Jne(Mre.createElement),$re=function(e){return zre?Mre.createElement(e):{}},Hre=!kne&&!Ane((function(){return 7!==Object.defineProperty($re("div"),"a",{get:function(){return 7}}).a})),Ure=Object.getOwnPropertyDescriptor,Vre={f:kne?Ure:function(e,t){if(e=Yne(e),t=Lre(t),Hre)try{return Ure(e,t)}catch(e){}if(Are(e,t))return Nne(!Tne(jne.f,e,t),e[t])}},Wre=kne&&Ane((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),qre=String,Gre=TypeError,Kre=function(e){if(Jne(e))return e;throw new Gre(qre(e)+" is not an object")},Yre=TypeError,Xre=Object.defineProperty,Zre=Object.getOwnPropertyDescriptor,Jre="enumerable",Qre="configurable",eoe="writable",toe={f:kne?Wre?function(e,t,n){if(Kre(e),t=Lre(t),Kre(n),"function"==typeof e&&"prototype"===t&&"value"in n&&eoe in n&&!n[eoe]){var r=Zre(e,t);r&&r[eoe]&&(e[t]=n.value,n={configurable:Qre in n?n[Qre]:r[Qre],enumerable:Jre in n?n[Jre]:r[Jre],writable:!1})}return Xre(e,t,n)}:Xre:function(e,t,n){if(Kre(e),t=Lre(t),Kre(n),Hre)try{return Xre(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Yre("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},noe=kne?function(e,t,n){return toe.f(e,t,Nne(1,n))}:function(e,t,n){return e[t]=n,e},roe=Function.prototype,ooe=kne&&Object.getOwnPropertyDescriptor,ioe=Are(roe,"name"),aoe={EXISTS:ioe,PROPER:ioe&&"something"===function(){}.name,CONFIGURABLE:ioe&&(!kne||kne&&ooe(roe,"name").configurable)},uoe=Mne(Function.toString);Zne(Sre.inspectSource)||(Sre.inspectSource=function(e){return uoe(e)});var soe,coe,loe,foe=Sre.inspectSource,doe=One.WeakMap,poe=Zne(doe)&&/native code/.test(String(doe)),hoe=Cre("keys"),voe=function(e){return hoe[e]||(hoe[e]=Tre(e))},goe={},yoe="Object already initialized",moe=One.TypeError,boe=One.WeakMap;if(poe||Sre.state){var woe=Sre.state||(Sre.state=new boe);woe.get=woe.get,woe.has=woe.has,woe.set=woe.set,soe=function(e,t){if(woe.has(e))throw new moe(yoe);return t.facade=e,woe.set(e,t),t},coe=function(e){return woe.get(e)||{}},loe=function(e){return woe.has(e)}}else{var Eoe=voe("state");goe[Eoe]=!0,soe=function(e,t){if(Are(e,Eoe))throw new moe(yoe);return t.facade=e,noe(e,Eoe,t),t},coe=function(e){return Are(e,Eoe)?e[Eoe]:{}},loe=function(e){return Are(e,Eoe)}}var Soe={set:soe,get:coe,has:loe,enforce:function(e){return loe(e)?coe(e):soe(e,{})},getterFor:function(e){return function(t){var n;if(!Jne(t)||(n=coe(t)).type!==e)throw new moe("Incompatible receiver, "+e+" required");return n}}},Coe=Sne((function(e){var t=aoe.CONFIGURABLE,n=Soe.enforce,r=Soe.get,o=String,i=Object.defineProperty,a=Mne("".slice),u=Mne("".replace),s=Mne([].join),c=kne&&!Ane((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!Are(e,"name")||t&&e.name!==r)&&(kne?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&Are(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&Are(f,"constructor")&&f.constructor?kne&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return Are(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return Zne(this)&&r(this).source||foe(this)}),"toString")})),Doe=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(Zne(n)&&Coe(n,i,r),r.global)o?e[t]=n:Ere(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:toe.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},xoe=Math.ceil,Ooe=Math.floor,Aoe=Math.trunc||function(e){var t=+e;return(t>0?Ooe:xoe)(t)},koe=function(e){var t=+e;return t!=t||0===t?0:Aoe(t)},Boe=Math.max,Foe=Math.min,Toe=function(e,t){var n=koe(e);return n<0?Boe(n+t,0):Foe(n,t)},Poe=Math.min,_oe=function(e){var t=koe(e);return t>0?Poe(t,9007199254740991):0},joe=function(e){return _oe(e.length)},Noe=function(e){return function(t,n,r){var o=Yne(t),i=joe(o);if(0===i)return!e&&-1;var a,u=Toe(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},Ioe={includes:Noe(!0),indexOf:Noe(!1)},Roe=Ioe.indexOf,Loe=Mne([].push),Moe=function(e,t){var n,r=Yne(e),o=0,i=[];for(n in r)!Are(goe,n)&&Are(r,n)&&Loe(i,n);for(;t.length>o;)Are(r,n=t[o++])&&(~Roe(i,n)||Loe(i,n));return i},zoe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$oe=zoe.concat("length","prototype"),Hoe={f:Object.getOwnPropertyNames||function(e){return Moe(e,$oe)}},Uoe={f:Object.getOwnPropertySymbols},Voe=Mne([].concat),Woe=Qne("Reflect","ownKeys")||function(e){var t=Hoe.f(Kre(e)),n=Uoe.f;return n?Voe(t,n(e)):t},qoe=function(e,t,n){for(var r=Woe(t),o=toe.f,i=Vre.f,a=0;a<r.length;a++){var u=r[a];Are(e,u)||n&&Are(n,u)||o(e,u,i(t,u))}},Goe=/#|\.prototype\./,Koe=function(e,t){var n=Xoe[Yoe(e)];return n===Joe||n!==Zoe&&(Zne(t)?Ane(t):!!t)},Yoe=Koe.normalize=function(e){return String(e).replace(Goe,".").toLowerCase()},Xoe=Koe.data={},Zoe=Koe.NATIVE="N",Joe=Koe.POLYFILL="P",Qoe=Koe,eie=Vre.f,tie=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?One:c?One[u]||Ere(u,{}):One[u]&&One[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=eie(n,r))&&a.value:n[r],!Qoe(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;qoe(i,o)}(e.sham||o&&o.sham)&&noe(i,"sham",!0),Doe(n,r,i,e)}},nie={};nie[Nre("toStringTag")]="z";var rie,oie="[object z]"===String(nie),iie=Nre("toStringTag"),aie=Object,uie="Arguments"===Hne(function(){return arguments}()),sie=oie?Hne: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=aie(e),iie))?n:uie?Hne(t):"Object"===(r=Hne(t))&&Zne(t.callee)?"Arguments":r},cie=String,lie=function(e){if("Symbol"===sie(e))throw new TypeError("Cannot convert a Symbol value to a string");return cie(e)},fie="\t\n\v\f\r \u2028\u2029\ufeff",die=Mne("".replace),pie=RegExp("^["+fie+"]+"),hie=RegExp("(^|[^"+fie+"])["+fie+"]+$"),vie=function(e){return function(t){var n=lie(Kne(t));return 1&e&&(n=die(n,pie,"")),2&e&&(n=die(n,hie,"$1")),n}},gie={start:vie(1),end:vie(2),trim:vie(3)},yie=aoe.PROPER,mie=gie.trim;function bie(e){return e.length?e[0].tagName.toLowerCase():""}function wie(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=ov(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}tie({target:"String",proto:!0,forced:(rie="trim",Ane((function(){return!!fie.trim()||"
"!=="
".trim()||yie&&fie.trim.name!==rie})))},{trim:function(){return mie(this)}}),tie({global:!0,forced:One.globalThis!==One},{globalThis:One}),xv&&(ov.fn.append=xv),dv&&(ov.fn.on=dv),Iv&&(ov.fn.focus=Iv),sv&&(ov.fn.attr=sv),fv&&(ov.fn.val=fv),Sv&&(ov.fn.html=Sv),Av&&(ov.fn.parent=Av),uv&&(ov.fn.hasClass=uv),Pv&&(ov.fn.empty=Pv);var Eie,Sie={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,c=o.width,l=void 0===c?"auto":c,f=o.height,d=void 0===f?"auto":f,p=rT.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=Qg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:wie(a,l,d)});else{var h=Qg("video",{poster:s,controls:!0},Qg("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==l&&(h.data.width=l),"auto"!==d&&(h.data.height=d),r=Qg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return _g("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},Cie={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,c=n.height,l=void 0===c?"auto":c,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=wie(o,s,l):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+l+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},Die=Object.keys||function(e){return Moe(e,zoe)},xie=kne&&!Wre?Object.defineProperties:function(e,t){Kre(e);for(var n,r=Yne(t),o=Die(t),i=o.length,a=0;i>a;)toe.f(e,n=o[a++],r[n]);return e},Oie={f:xie},Aie=Qne("document","documentElement"),kie="prototype",Bie="script",Fie=voe("IE_PROTO"),Tie=function(){},Pie=function(e){return"<script>"+e+"</"+Bie+">"},_ie=function(e){e.write(Pie("")),e.close();var t=e.parentWindow.Object;return e=null,t},jie=function(){try{Eie=new ActiveXObject("htmlfile")}catch(e){}var e,t;jie="undefined"!=typeof document?document.domain&&Eie?_ie(Eie):("javascript:",(t=$re("iframe")).style.display="none",Aie.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Pie("document.F=Object")),e.close(),e.F):_ie(Eie);for(var n=zoe.length;n--;)delete jie[kie][zoe[n]];return jie()};goe[Fie]=!0;var Nie=Object.create||function(e,t){var n;return null!==e?(Tie[kie]=Kre(e),n=new Tie,Tie[kie]=null,n[Fie]=e):n=jie(),void 0===t?n:Oie.f(n,t)},Iie=toe.f,Rie=Nre("unscopables"),Lie=Array.prototype;void 0===Lie[Rie]&&Iie(Lie,Rie,{configurable:!0,value:Nie(null)});var Mie=function(e){Lie[Rie][e]=!0},zie=Ioe.includes,$ie=Ane((function(){return!Array(1).includes()}));tie({target:"Array",proto:!0,forced:$ie},{includes:function(e){return zie(this,e,arguments.length>1?arguments[1]:void 0)}}),Mie("includes");var Hie={selector:"iframe,video,p",preParseHtml:function(e){var t=ov(e),n=t;if("p"===bie(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=ov(o))}}var a=bie(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=ov('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},Uie=function(e){if("Function"===Hne(e))return Mne(e)},Vie=Uie(Uie.bind),Wie=function(e,t){return yre(e),void 0===t?e:Bne?Vie(e,t):function(){return e.apply(t,arguments)}},qie=Array.isArray||function(e){return"Array"===Hne(e)},Gie=function(){},Kie=Qne("Reflect","construct"),Yie=/^\s*(?:class|function)\b/,Xie=Mne(Yie.exec),Zie=!Yie.test(Gie),Jie=function(e){if(!Zne(e))return!1;try{return Kie(Gie,[],e),!0}catch(e){return!1}},Qie=function(e){if(!Zne(e))return!1;switch(sie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Zie||!!Xie(Yie,foe(e))}catch(e){return!0}};Qie.sham=!0;var eae=!Kie||Ane((function(){var e;return Jie(Jie.call)||!Jie(Object)||!Jie((function(){e=!0}))||e}))?Qie:Jie,tae=Nre("species"),nae=Array,rae=function(e,t){return new(function(e){var t;return qie(e)&&(t=e.constructor,(eae(t)&&(t===nae||qie(t.prototype))||Jne(t)&&null===(t=t[tae]))&&(t=void 0)),void 0===t?nae:t}(e))(0===t?0:t)},oae=Mne([].push),iae=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,c,l,f){for(var d,p,h=xre(s),v=Wne(h),g=joe(v),y=Wie(c,l),m=0,b=f||rae,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:oae(w,d)}else switch(e){case 4:return!1;case 7:oae(w,d)}return i?-1:r||o?o:w}},aae={forEach:iae(0),map:iae(1),filter:iae(2),some:iae(3),every:iae(4),find:iae(5),findIndex:iae(6),filterReject:iae(7)},uae=aae.find,sae="find",cae=!0;sae in[]&&Array(1).find((function(){cae=!1})),tie({target:"Array",proto:!0,forced:cae},{find:function(e){return uae(this,e,arguments.length>1?arguments[1]:void 0)}}),Mie(sae);var lae=oie?{}.toString:function(){return"[object "+sie(this)+"]"};function fae(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}oie||Doe(Object.prototype,"toString",lae,{unsafe:!0});var dae,pae,hae={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=ov(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",fae(o=s[0].outerHTML,i,a,u);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",fae(o,i=c.attr("poster")||"",a,u)}},vae=function(){var e=Kre(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},gae=One.RegExp,yae=Ane((function(){var e=gae("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),mae=yae||Ane((function(){return!gae("a","y").sticky})),bae={BROKEN_CARET:yae||Ane((function(){var e=gae("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:mae,UNSUPPORTED_Y:yae},wae=One.RegExp,Eae=Ane((function(){var e=wae(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Sae=One.RegExp,Cae=Ane((function(){var e=Sae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Dae=Soe.get,xae=Cre("native-string-replace",String.prototype.replace),Oae=RegExp.prototype.exec,Aae=Oae,kae=Mne("".charAt),Bae=Mne("".indexOf),Fae=Mne("".replace),Tae=Mne("".slice),Pae=(pae=/b*/g,Tne(Oae,dae=/a/,"a"),Tne(Oae,pae,"a"),0!==dae.lastIndex||0!==pae.lastIndex),_ae=bae.BROKEN_CARET,jae=void 0!==/()??/.exec("")[1];(Pae||jae||_ae||Eae||Cae)&&(Aae=function(e){var t,n,r,o,i,a,u,s=this,c=Dae(s),l=lie(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Tne(Aae,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=_ae&&s.sticky,h=Tne(vae,s),v=s.source,g=0,y=l;if(p&&(h=Fae(h,"y",""),-1===Bae(h,"g")&&(h+="g"),y=Tae(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==kae(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),jae&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Pae&&(r=s.lastIndex),o=Tne(Oae,p?n:s,y),p?o?(o.input=Tae(o.input,g),o[0]=Tae(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Pae&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),jae&&o&&o.length>1&&Tne(xae,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=Nie(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Nae=Aae;tie({target:"RegExp",proto:!0,forced:/./.exec!==Nae},{exec:Nae});var Iae=Function.prototype,Rae=Iae.apply,Lae=Iae.call,Mae="object"==typeof Reflect&&Reflect.apply||(Bne?Lae.bind(Rae):function(){return Lae.apply(Rae,arguments)}),zae=(Nre("species"),RegExp.prototype),$ae=Mne("".charAt),Hae=Mne("".charCodeAt),Uae=Mne("".slice),Vae=function(e){return function(t,n){var r,o,i=lie(Kne(t)),a=koe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Hae(i,a))<55296||r>56319||a+1===u||(o=Hae(i,a+1))<56320||o>57343?e?$ae(i,a):r:e?Uae(i,a,a+2):o-56320+(r-55296<<10)+65536}},Wae={codeAt:Vae(!1),charAt:Vae(!0)},qae=Wae.charAt,Gae=function(e,t,n){return t+(n?qae(e,t).length:1)},Kae=Math.floor,Yae=Mne("".charAt),Xae=Mne("".replace),Zae=Mne("".slice),Jae=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Qae=/\$([$&'`]|\d{1,2})/g,eue=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Qae;return void 0!==o&&(o=xre(o),s=Jae),Xae(i,s,(function(i,s){var c;switch(Yae(s,0)){case"$":return"$";case"&":return e;case"`":return Zae(t,0,n);case"'":return Zae(t,a);case"<":c=o[Zae(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=Kae(l/10);return 0===f?i:f<=u?void 0===r[f-1]?Yae(s,1):r[f-1]+Yae(s,1):i}c=r[l-1]}return void 0===c?"":c}))},tue=TypeError,nue=function(e,t){var n=e.exec;if(Zne(n)){var r=Tne(n,e,t);return null!==r&&Kre(r),r}if("RegExp"===Hne(e))return Tne(Nae,e,t);throw new tue("RegExp#exec called on incompatible receiver")},rue=Nre("replace"),oue=Math.max,iue=Math.min,aue=Mne([].concat),uue=Mne([].push),sue=Mne("".indexOf),cue=Mne("".slice),lue="$0"==="a".replace(/./,"$0"),fue=!!/./[rue]&&""===/./[rue]("a","$0");function due(e){return void 0===e&&(e="r"),e+"-"+eg()}!function(e,t,n){var r=Nre(e),o=!Ane((function(){var t={};return t[r]=function(){return 7},7!==""[e](t)})),i=o&&!Ane((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e}));if(!o||!i||n){var a=/./[r],u=function(e,t,n){var r=fue?"$":"$0";return[function(e,n){var r=Kne(this),o=qne(e)?void 0:mre(e,rue);return o?Tne(o,e,r,n):Tne(t,lie(r),e,n)},function(e,o){var i=Kre(this),a=lie(e);if("string"==typeof o&&-1===sue(o,r)&&-1===sue(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Zne(o);s||(o=lie(o));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=nue(i,a))&&(uue(d,f),l);)""===lie(f[0])&&(i.lastIndex=Gae(a,_oe(i.lastIndex),c));for(var p,h="",v=0,g=0;g<d.length;g++){for(var y,m=lie((f=d[g])[0]),b=oue(iue(koe(f.index),a.length),0),w=[],E=1;E<f.length;E++)uue(w,void 0===(p=f[E])?p:String(p));var S=f.groups;if(s){var C=aue([m],w,b,a);void 0!==S&&uue(C,S),y=lie(Mae(o,void 0,C))}else y=eue(m,a,b,w,S,o);b>=v&&(h+=cue(a,v,b)+y,v=b+m.length)}return h+cue(a,v)}]}(0,""[e],(function(e,t,n,r,i){var u=t.exec;return u===Nae||u===zae.exec?o&&!i?{done:!0,value:Tne(a,t,n,r)}:{done:!0,value:Tne(e,n,t,r)}:{done:!1}}));Doe(String.prototype,e,u[0]),Doe(zae,r,u[1])}}("replace",0,!!Ane((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!lue||fue);var pue,hue,vue,gue,yue=function(e){return rre.slice(0,e.length)===e},mue=yue("Bun/")?"BUN":yue("Cloudflare-Workers")?"CLOUDFLARE":yue("Deno/")?"DENO":yue("Node.js/")?"NODE":One.Bun&&"string"==typeof Bun.version?"BUN":One.Deno&&"object"==typeof Deno.version?"DENO":"process"===Hne(One.process)?"NODE":One.window&&One.document?"BROWSER":"REST",bue="NODE"===mue,wue=String,Eue=TypeError,Sue=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return Mne(yre(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Kne(n),function(e){if(function(e){return Jne(e)||null===e}(e))return e;throw new Eue("Can't set "+wue(e)+" as a prototype")}(r),Jne(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),Cue=toe.f,Due=Nre("toStringTag"),xue=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Are(e,Due)&&Cue(e,Due,{configurable:!0,value:t})},Oue=function(e,t,n){return n.get&&Coe(n.get,t,{getter:!0}),n.set&&Coe(n.set,t,{setter:!0}),toe.f(e,t,n)},Aue=Nre("species"),kue=TypeError,Bue=function(e,t){if(ere(t,e))return e;throw new kue("Incorrect invocation")},Fue=TypeError,Tue=Nre("species"),Pue=Mne([].slice),_ue=TypeError,jue=/(?:ipad|iphone|ipod).*applewebkit/i.test(rre),Nue=One.setImmediate,Iue=One.clearImmediate,Rue=One.process,Lue=One.Dispatch,Mue=One.Function,zue=One.MessageChannel,$ue=One.String,Hue=0,Uue={},Vue="onreadystatechange";Ane((function(){pue=One.location}));var Wue=function(e){if(Are(Uue,e)){var t=Uue[e];delete Uue[e],t()}},que=function(e){return function(){Wue(e)}},Gue=function(e){Wue(e.data)},Kue=function(e){One.postMessage($ue(e),pue.protocol+"//"+pue.host)};Nue&&Iue||(Nue=function(e){!function(e){if(e<1)throw new _ue("Not enough arguments")}(arguments.length);var t=Zne(e)?e:Mue(e),n=Pue(arguments,1);return Uue[++Hue]=function(){Mae(t,void 0,n)},hue(Hue),Hue},Iue=function(e){delete Uue[e]},bue?hue=function(e){Rue.nextTick(que(e))}:Lue&&Lue.now?hue=function(e){Lue.now(que(e))}:zue&&!jue?(gue=(vue=new zue).port2,vue.port1.onmessage=Gue,hue=Wie(gue.postMessage,gue)):One.addEventListener&&Zne(One.postMessage)&&!One.importScripts&&pue&&"file:"!==pue.protocol&&!Ane(Kue)?(hue=Kue,One.addEventListener("message",Gue,!1)):hue=Vue in $re("script")?function(e){Aie.appendChild($re("script"))[Vue]=function(){Aie.removeChild(this),Wue(e)}}:function(e){setTimeout(que(e),0)});var Yue={set:Nue,clear:Iue},Xue=Object.getOwnPropertyDescriptor,Zue=function(){this.head=null,this.tail=null};Zue.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Jue,Que,ese,tse,nse,rse=Zue,ose=/ipad|iphone|ipod/i.test(rre)&&"undefined"!=typeof Pebble,ise=/web0s(?!.*chrome)/i.test(rre),ase=Yue.set,use=One.MutationObserver||One.WebKitMutationObserver,sse=One.document,cse=One.process,lse=One.Promise,fse=function(e){if(!kne)return One[e];var t=Xue(One,e);return t&&t.value}("queueMicrotask");if(!fse){var dse=new rse,pse=function(){var e,t;for(bue&&(e=cse.domain)&&e.exit();t=dse.get();)try{t()}catch(e){throw dse.head&&Jue(),e}e&&e.enter()};jue||bue||ise||!use||!sse?!ose&&lse&&lse.resolve?((tse=lse.resolve(void 0)).constructor=lse,nse=Wie(tse.then,tse),Jue=function(){nse(pse)}):bue?Jue=function(){cse.nextTick(pse)}:(ase=Wie(ase,One),Jue=function(){ase(pse)}):(Que=!0,ese=sse.createTextNode(""),new use(pse).observe(ese,{characterData:!0}),Jue=function(){ese.data=Que=!Que}),fse=function(e){dse.head||Jue(),dse.add(e)}}var hse=fse,vse=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},gse=One.Promise;gse&&gse.prototype;var yse,mse,bse,wse,Ese=Nre("species"),Sse=!1,Cse=Zne(One.PromiseRejectionEvent),Dse=Qoe("Promise",(function(){var e=foe(gse),t=e!==String(gse);if(!t&&66===sre)return!0;if(!sre||sre<51||!/native code/.test(e)){var n=new gse((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Ese]=r,!(Sse=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==mue&&"DENO"!==mue||Cse)})),xse={CONSTRUCTOR:Dse,REJECTION_EVENT:Cse,SUBCLASSING:Sse},Ose=TypeError,Ase=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new Ose("Bad Promise constructor");t=e,n=r})),this.resolve=yre(t),this.reject=yre(n)},kse={f:function(e){return new Ase(e)}},Bse=Yue.set,Fse="Promise",Tse=xse.CONSTRUCTOR,Pse=xse.REJECTION_EVENT,_se=xse.SUBCLASSING,jse=Soe.getterFor(Fse),Nse=Soe.set,Ise=gse&&gse.prototype,Rse=gse,Lse=Ise,Mse=One.TypeError,zse=One.document,$se=One.process,Hse=kse.f,Use=Hse,Vse=!!(zse&&zse.createEvent&&One.dispatchEvent),Wse="unhandledrejection",qse=function(e){var t;return!(!Jne(e)||!Zne(t=e.then))&&t},Gse=function(e,t){var n,r,o,i=t.value,a=1===t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&Jse(t),t.rejection=1),!0===u?n=i:(l&&l.enter(),n=u(i),l&&(l.exit(),o=!0)),n===e.promise?c(new Mse("Promise-chain cycle")):(r=qse(n))?Tne(r,n,s,c):s(n)):c(i)}catch(e){l&&!o&&l.exit(),c(e)}},Kse=function(e,t){e.notified||(e.notified=!0,hse((function(){for(var n,r=e.reactions;n=r.get();)Gse(n,e);e.notified=!1,t&&!e.rejection&&Xse(e)})))},Yse=function(e,t,n){var r,o;Vse?((r=zse.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),One.dispatchEvent(r)):r={promise:t,reason:n},!Pse&&(o=One["on"+e])?o(r):e===Wse&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}("Unhandled promise rejection",n)},Xse=function(e){Tne(Bse,One,(function(){var t,n=e.facade,r=e.value;if(Zse(e)&&(t=vse((function(){bue?$se.emit("unhandledRejection",r,n):Yse(Wse,n,r)})),e.rejection=bue||Zse(e)?2:1,t.error))throw t.value}))},Zse=function(e){return 1!==e.rejection&&!e.parent},Jse=function(e){Tne(Bse,One,(function(){var t=e.facade;bue?$se.emit("rejectionHandled",t):Yse("rejectionhandled",t,e.value)}))},Qse=function(e,t,n){return function(r){e(t,r,n)}},ece=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Kse(e,!0))},tce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new Mse("Promise can't be resolved itself");var r=qse(t);r?hse((function(){var n={done:!1};try{Tne(r,t,Qse(tce,n,e),Qse(ece,n,e))}catch(t){ece(n,t,e)}})):(e.value=t,e.state=1,Kse(e,!1))}catch(t){ece({done:!1},t,e)}}};if(Tse&&(Lse=(Rse=function(e){Bue(this,Lse),yre(e),Tne(yse,this);var t=jse(this);try{e(Qse(tce,t),Qse(ece,t))}catch(e){ece(t,e)}}).prototype,(yse=function(e){Nse(this,{type:Fse,done:!1,notified:!1,parent:!1,reactions:new rse,rejection:!1,state:0,value:null})}).prototype=Doe(Lse,"then",(function(e,t){var n=jse(this),r=Hse(function(e,t){var n,r=Kre(e).constructor;return void 0===r||qne(n=Kre(r)[Tue])?t:function(e){if(eae(e))return e;throw new Fue(vre(e)+" is not a constructor")}(n)}(this,Rse));return n.parent=!0,r.ok=!Zne(e)||e,r.fail=Zne(t)&&t,r.domain=bue?$se.domain:void 0,0===n.state?n.reactions.add(r):hse((function(){Gse(r,n)})),r.promise})),mse=function(){var e=new yse,t=jse(e);this.promise=e,this.resolve=Qse(tce,t),this.reject=Qse(ece,t)},kse.f=Hse=function(e){return e===Rse||void 0===e?new mse(e):Use(e)},Zne(gse)&&Ise!==Object.prototype)){bse=Ise.then,_se||Doe(Ise,"then",(function(e,t){var n=this;return new Rse((function(e,t){Tne(bse,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Ise.constructor}catch(rf){}Sue&&Sue(Ise,Lse)}tie({global:!0,constructor:!0,wrap:!0,forced:Tse},{Promise:Rse}),xue(Rse,Fse,!1),wse=Qne(Fse),kne&&wse&&!wse[Aue]&&Oue(wse,Aue,{configurable:!0,get:function(){return this}});var nce={},rce=Nre("iterator"),oce=Array.prototype,ice=Nre("iterator"),ace=function(e){if(!qne(e))return mre(e,ice)||mre(e,"@@iterator")||nce[sie(e)]},uce=TypeError,sce=function(e,t,n){var r,o;Kre(e);try{if(!(r=mre(e,"return"))){if("throw"===t)throw n;return n}r=Tne(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Kre(r),n},cce=TypeError,lce=function(e,t){this.stopped=e,this.result=t},fce=lce.prototype,dce=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Wie(t,f),y=function(e){return r&&sce(r,"normal",e),new lce(!0,e)},m=function(e){return d?(Kre(e),v?g(e[0],e[1],y):g(e[0],e[1])):v?g(e,y):g(e)};if(p)r=e.iterator;else if(h)r=e;else{if(!(o=ace(e)))throw new cce(vre(e)+" is not iterable");if(void 0!==(l=o)&&(nce.Array===l||oce[rce]===l)){for(i=0,a=joe(e);a>i;i++)if((u=m(e[i]))&&ere(fce,u))return u;return new lce(!1)}r=function(e,t){var n=arguments.length<2?ace(e):t;if(yre(n))return Kre(Tne(n,e));throw new uce(vre(e)+" is not iterable")}(e,o)}for(s=p?e.next:r.next;!(c=Tne(s,r)).done;){try{u=m(c.value)}catch(e){sce(r,"throw",e)}if("object"==typeof u&&u&&ere(fce,u))return u}return new lce(!1)},pce=Nre("iterator"),hce=!1;try{var vce=0,gce={next:function(){return{done:!!vce++}},return:function(){hce=!0}};gce[pce]=function(){return this},Array.from(gce,(function(){throw 2}))}catch(rf){}var yce=function(e,t){try{if(!t&&!hce)return!1}catch(e){return!1}var n=!1;try{var r={};r[pce]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},mce=xse.CONSTRUCTOR||!yce((function(e){gse.all(e).then(void 0,(function(){}))}));tie({target:"Promise",stat:!0,forced:mce},{all:function(e){var t=this,n=kse.f(t),r=n.resolve,o=n.reject,i=vse((function(){var n=yre(t.resolve),i=[],a=0,u=1;dce(e,(function(e){var s=a++,c=!1;u++,Tne(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var bce=xse.CONSTRUCTOR,wce=gse&&gse.prototype;if(tie({target:"Promise",proto:!0,forced:bce,real:!0},{catch:function(e){return this.then(void 0,e)}}),Zne(gse)){var Ece=Qne("Promise").prototype.catch;wce.catch!==Ece&&Doe(wce,"catch",Ece,{unsafe:!0})}tie({target:"Promise",stat:!0,forced:mce},{race:function(e){var t=this,n=kse.f(t),r=n.reject,o=vse((function(){var o=yre(t.resolve);dce(e,(function(e){Tne(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),tie({target:"Promise",stat:!0,forced:xse.CONSTRUCTOR},{reject:function(e){var t=kse.f(this);return(0,t.reject)(e),t.promise}});var Sce=xse.CONSTRUCTOR;function Cce(e,t,n){return void 0===n&&(n=""),mne(this,void 0,void 0,(function(){var r,o,i,a,u,s,c;return bne(this,(function(l){switch(l.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=l.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=l.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"<").replace(/>/g,">")),c={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){_p.insertNodes(e,c)})),o(c),[2]}}))}))}function Dce(){return due("w-e-insert-video")}Qne("Promise"),tie({target:"Promise",stat:!0,forced:Sce},{resolve:function(e){return function(e,t){if(Kre(e),Jne(t)&&t.constructor===e)return t;var n=kse.f(e);return(0,n.resolve)(t),n.promise}(this,e)}});var xce=function(){function e(){this.title=uN("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=Dce(),this.posterInputId=Dce(),this.buttonId=Dce()}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||!sp.isCollapsed(t)||!!rT.getSelectedElems(e).some((function(t){var n=rT.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=wne(U_(uN("videoModule.videoSrc"),r,uN("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],c=wne(U_(uN("videoModule.videoPoster"),o,uN("videoModule.videoPosterPlaceHolder")),2),l=c[0],f=c[1],d=ov(s),p=ov(f),h=wne(V_(i,uN("videoModule.ok")),1)[0];if(null==this.$content){var v=ov("<div></div>");v.on("click","#"+i,(function(n){return mne(t,void 0,void 0,(function(){var t,i;return bne(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,Cce(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(l),g.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),g[0]},e}(),Oce=Mne([].join),Ace=Wne!==Object||!function(){var e=[].join;return!!e&&Ane((function(){e.call(null,",",1)}))}();tie({target:"Array",proto:!0,forced:Ace},{join:function(e){return Oce(Yne(this),void 0===e?",":e)}});var kce,Bce,Fce,Tce=!Ane((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Pce=voe("IE_PROTO"),_ce=Object,jce=_ce.prototype,Nce=Tce?_ce.getPrototypeOf:function(e){var t=xre(e);if(Are(t,Pce))return t[Pce];var n=t.constructor;return Zne(n)&&t instanceof n?n.prototype:t instanceof _ce?jce:null},Ice=Nre("iterator"),Rce=!1;[].keys&&("next"in(Fce=[].keys())?(Bce=Nce(Nce(Fce)))!==Object.prototype&&(kce=Bce):Rce=!0);var Lce=!Jne(kce)||Ane((function(){var e={};return kce[Ice].call(e)!==e}));Lce&&(kce={}),Zne(kce[Ice])||Doe(kce,Ice,(function(){return this}));var Mce={IteratorPrototype:kce,BUGGY_SAFARI_ITERATORS:Rce},zce=Mce.IteratorPrototype,$ce=function(){return this},Hce=aoe.PROPER,Uce=aoe.CONFIGURABLE,Vce=Mce.IteratorPrototype,Wce=Mce.BUGGY_SAFARI_ITERATORS,qce=Nre("iterator"),Gce="keys",Kce="values",Yce="entries",Xce=function(){return this},Zce=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Nie(zce,{next:Nne(1,n)}),xue(e,r,!1),nce[r]=$ce}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!Wce&&e&&e in p)return p[e];switch(e){case Gce:case Kce:case Yce:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[qce]||p["@@iterator"]||o&&p[o],v=!Wce&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=Nce(g.call(new e)))!==Object.prototype&&u.next&&(Nce(u)!==Vce&&(Sue?Sue(u,Vce):Zne(u[qce])||Doe(u,qce,Xce)),xue(u,f,!0)),Hce&&o===Kce&&h&&h.name!==Kce&&(Uce?noe(p,"name",Kce):(d=!0,v=function(){return Tne(h,this)})),o)if(s={values:l(Kce),keys:i?v:l(Gce),entries:l(Yce)},a)for(c in s)(Wce||d||!(c in p))&&Doe(p,c,s[c]);else tie({target:t,proto:!0,forced:Wce||d},s);return p[qce]!==v&&Doe(p,qce,v,{name:o}),nce[t]=v,s},Jce=function(e,t){return{value:e,done:t}},Qce=toe.f,ele="Array Iterator",tle=Soe.set,nle=Soe.getterFor(ele),rle=Zce(Array,"Array",(function(e,t){tle(this,{type:ele,target:Yne(e),index:0,kind:t})}),(function(){var e=nle(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Jce(void 0,!0);switch(e.kind){case"keys":return Jce(n,!1);case"values":return Jce(t[n],!1)}return Jce([n,t[n]],!1)}),"values"),ole=nce.Arguments=nce.Array;if(Mie("keys"),Mie("values"),Mie("entries"),kne&&"values"!==ole.name)try{Qce(ole,"name",{value:"values"})}catch(rf){}var ile=Nre("species"),ale=sre>=51||!Ane((function(){var e=[];return(e.constructor={})[ile]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),ule=Nre("species"),sle=Array,cle=Math.max;tie({target:"Array",proto:!0,forced:!ale},{slice:function(e,t){var n,r,o,i,a,u,s=Yne(this),c=joe(s),l=Toe(e,c),f=Toe(void 0===t?c:t,c);if(qie(s)&&(n=s.constructor,(eae(n)&&(n===sle||qie(n.prototype))||Jne(n)&&null===(n=n[ule]))&&(n=void 0),n===sle||void 0===n))return Pue(s,l,f);for(r=new(void 0===n?sle:n)(cle(f-l,0)),o=0;l<f;l++,o++)l in s&&(i=r,a=o,u=s[l],kne?toe.f(i,a,Nne(0,u)):i[a]=u);return r.length=o,r}});var lle=aoe.EXISTS,fle=Function.prototype,dle=Mne(fle.toString),ple=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,hle=Mne(ple.exec);kne&&!lle&&Oue(fle,"name",{configurable:!0,get:function(){try{return hle(ple,dle(this))[1]}catch(e){return""}}});var vle=Wae.charAt,gle="String Iterator",yle=Soe.set,mle=Soe.getterFor(gle);Zce(String,"String",(function(e){yle(this,{type:gle,string:lie(e),index:0})}),(function(){var e,t=mle(this),n=t.string,r=t.index;return r>=n.length?Jce(void 0,!0):(e=vle(n,r),t.index+=e.length,Jce(e,!1))}));var ble=!Ane((function(){return Object.isExtensible(Object.preventExtensions({}))})),wle=function(e,t,n){for(var r in t)Doe(e,r,t[r],n);return e},Ele=Hoe.f,Sle="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Cle={f:function(e){return Sle&&"Window"===Hne(e)?function(e){try{return Ele(e)}catch(e){return Pue(Sle)}}(e):Ele(Yne(e))}},Dle=Ane((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),xle=Object.isExtensible,Ole=Ane((function(){xle(1)}))||Dle?function(e){return!!Jne(e)&&(!Dle||"ArrayBuffer"!==Hne(e))&&(!xle||xle(e))}:xle,Ale=Sne((function(e){var t=toe.f,n=!1,r=Tre("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=Hoe.f,t=Mne([].splice),o={};o[r]=1,e(o).length&&(Hoe.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},tie({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Cle.f}))},fastKey:function(e,t){if(!Jne(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Are(e,r)){if(!Ole(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Are(e,r)){if(!Ole(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ble&&n&&Ole(e)&&!Are(e,r)&&i(e),e}};goe[r]=!0})),kle=Ale.getWeakData,Ble=Soe.set,Fle=Soe.getterFor,Tle=aae.find,Ple=aae.findIndex,_le=Mne([].splice),jle=0,Nle=function(e){return e.frozen||(e.frozen=new Ile)},Ile=function(){this.entries=[]},Rle=function(e,t){return Tle(e.entries,(function(e){return e[0]===t}))};Ile.prototype={get:function(e){var t=Rle(this,e);if(t)return t[1]},has:function(e){return!!Rle(this,e)},set:function(e,t){var n=Rle(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ple(this.entries,(function(t){return t[0]===e}));return~t&&_le(this.entries,t,1),!!~t}};var Lle,Mle={getConstructor:function(e,t,n,r){var o=e((function(e,o){Bue(e,i),Ble(e,{type:t,id:jle++,frozen:null}),qne(o)||dce(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Fle(t),u=function(e,t,n){var r=a(e),o=kle(Kre(t),!0);return!0===o?Nle(r).set(t,n):o[r.id]=n,e};return wle(i,{delete:function(e){var t=a(this);if(!Jne(e))return!1;var n=kle(e);return!0===n?Nle(t).delete(e):n&&Are(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Jne(e))return!1;var n=kle(e);return!0===n?Nle(t).has(e):n&&Are(n,t.id)}}),wle(i,n?{get:function(e){var t=a(this);if(Jne(e)){var n=kle(e);if(!0===n)return Nle(t).get(e);if(n)return n[t.id]}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},zle=Soe.enforce,$le=Object,Hle=Array.isArray,Ule=$le.isExtensible,Vle=$le.isFrozen,Wle=$le.isSealed,qle=$le.freeze,Gle=$le.seal,Kle=!One.ActiveXObject&&"ActiveXObject"in One,Yle=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Xle=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=One[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=Mne(u[e]);Doe(u,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!Jne(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!Jne(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!Jne(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Qoe(e,!Zne(a)||!(o||u.forEach&&!Ane((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Ale.enable();else if(Qoe(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!==f,p=Ane((function(){f.has(1)})),h=yce((function(e){new a(e)})),v=!o&&Ane((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Bue(e,u);var n=function(e,t,n){var r,o;return Sue&&Zne(r=t.constructor)&&r!==n&&Jne(o=r.prototype)&&o!==n.prototype&&Sue(e,o),e}(new a,e,s);return qne(t)||dce(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,tie({global:!0,constructor:!0,forced:s!==a},c),xue(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Yle,Mle),Zle=Xle.prototype,Jle=Mne(Zle.set);if(poe)if(Kle){Lle=Mle.getConstructor(Yle,"WeakMap",!0),Ale.enable();var Qle=Mne(Zle.delete),efe=Mne(Zle.has),tfe=Mne(Zle.get);wle(Zle,{delete:function(e){if(Jne(e)&&!Ule(e)){var t=zle(this);return t.frozen||(t.frozen=new Lle),Qle(this,e)||t.frozen.delete(e)}return Qle(this,e)},has:function(e){if(Jne(e)&&!Ule(e)){var t=zle(this);return t.frozen||(t.frozen=new Lle),efe(this,e)||t.frozen.has(e)}return efe(this,e)},get:function(e){if(Jne(e)&&!Ule(e)){var t=zle(this);return t.frozen||(t.frozen=new Lle),efe(this,e)?tfe(this,e):t.frozen.get(e)}return tfe(this,e)},set:function(e,t){if(Jne(e)&&!Ule(e)){var n=zle(this);n.frozen||(n.frozen=new Lle),efe(this,e)?Jle(this,e,t):n.frozen.set(e,t)}else Jle(this,e,t);return this}})}else ble&&Ane((function(){var e=qle([]);return Jle(new Xle,e,1),!Vle(e)}))&&wle(Zle,{set:function(e,t){var n;return Hle(e)&&(Vle(e)?n=qle:Wle(e)&&(n=Gle)),Jle(this,e,t),n&&n(e),this}});var nfe={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},rfe=$re("span").classList,ofe=rfe&&rfe.constructor&&rfe.constructor.prototype,ife=ofe===Object.prototype?void 0:ofe,afe=Nre("iterator"),ufe=rle.values,sfe=function(e,t){if(e){if(e[afe]!==ufe)try{noe(e,afe,ufe)}catch(t){e[afe]=ufe}if(xue(e,t,!0),nfe[t])for(var n in rle)if(e[n]!==rle[n])try{noe(e,n,rle[n])}catch(t){e[n]=rle[n]}}};for(var cfe in nfe)sfe(One[cfe]&&One[cfe].prototype,cfe);function lfe(e){return e.getMenuConfig("uploadVideo")}sfe(ife,"DOMTokenList");var ffe=new WeakMap;function dfe(e,t){return mne(this,void 0,void 0,(function(){var n,r,o,i;return bne(this,(function(a){switch(a.label){case 0:return n=function(e){var t=ffe.get(e);if(null!=t)return t;var n=lfe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=yj(yne(yne({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Cce(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){var l=c.url,f=void 0===l?"":l,d=c.poster;Cce(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),ffe.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 pfe=function(){function e(){this.title=uN("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 Cce(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=ov("body"),s=ov('<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;mne(this,void 0,void 0,(function(){var o,i,a,u,s,c;return bne(this,(function(l){switch(l.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=lfe(e).customUpload,l.label=1;case 1:l.trys.push([1,9,10,15]),a=function(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)}))}}}(o),l.label=2;case 2:return[4,a.next()];case 3:return(u=l.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return Cce(e,t,n)}))]:[3,5]);case 4:return l.sent(),[3,7];case 5:return[4,dfe(e,s)];case 6:l.sent(),l.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return c=l.sent(),n={error:c},[3,15];case 10:return l.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:l.sent(),l.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||!sp.isCollapsed(t)||!!rT.getSelectedElems(e).some((function(t){var n=rT.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),hfe=RegExp.prototype,vfe=aoe.PROPER,gfe="toString",yfe=RegExp.prototype,mfe=yfe[gfe],bfe=Ane((function(){return"/a/b"!==mfe.call({source:"a",flags:"b"})})),wfe=vfe&&mfe.name!==gfe;function Efe(){return due("w-e-insert-video")}(bfe||wfe)&&Doe(yfe,gfe,(function(){var e=Kre(this),t=lie(e.source),n=lie(function(e){var t=e.flags;return void 0!==t||"flags"in hfe||Are(e,"flags")||!ere(hfe,e)?t:Tne(vae,e)}(e));return"/"+t+"/"+n}),{unsafe:!0});var Sfe=function(){function e(){this.title=uN("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Efe(),this.heightInputId=Efe(),this.buttonId=Efe()}return e.prototype.getSelectedVideoNode=function(e){return rT.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=wne(U_(uN("videoModule.width"),n,"auto"),2),a=i[0],u=ov(i[1]),s=wne(U_(uN("videoModule.height"),r,"auto"),2),c=s[0],l=ov(s[1]),f=wne(V_(o,uN("videoModule.ok")),1)[0];if(null==this.$content){var d=ov("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",c=u?u.toString():"auto";e.restoreSelection(),_p.setNodes(e,{width:s,height:c},{match:function(e){return rT.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(c),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var v=h.width,g=void 0===v?"auto":v,y=h.height,m=void 0===y?"auto":y;return u.val(g),l.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Cfe={renderElems:[Sie],elemsToHtml:[Cie],preParseHtml:[Hie],parseElemsHtml:[hae],menus:[{key:"insertVideo",factory:function(){return new xce},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new pfe},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 Sfe}}],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=wne(e,2),o=t[0],i=t[1];return"video"===rT.getNodeType(o)&&rT.isLastNode(r,o)&&_p.insertNodes(r,rT.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};aN("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),aN("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Dfe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function xfe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ofe,Afe,kfe=function(e){return e&&e.Math===Math&&e},Bfe=kfe("object"==typeof globalThis&&globalThis)||kfe("object"==typeof window&&window)||kfe("object"==typeof self&&self)||kfe("object"==typeof Dfe&&Dfe)||kfe("object"==typeof Dfe&&Dfe)||function(){return this}()||Function("return this")(),Ffe=function(e){try{return!!e()}catch(e){return!0}},Tfe=!Ffe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Pfe=!Ffe((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),_fe=Function.prototype.call,jfe=Pfe?_fe.bind(_fe):function(){return _fe.apply(_fe,arguments)},Nfe={}.propertyIsEnumerable,Ife=Object.getOwnPropertyDescriptor,Rfe={f:Ife&&!Nfe.call({1:2},1)?function(e){var t=Ife(this,e);return!!t&&t.enumerable}:Nfe},Lfe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Mfe=Function.prototype,zfe=Mfe.call,$fe=Pfe&&Mfe.bind.bind(zfe,zfe),Hfe=Pfe?$fe:function(e){return function(){return zfe.apply(e,arguments)}},Ufe=Hfe({}.toString),Vfe=Hfe("".slice),Wfe=function(e){return Vfe(Ufe(e),8,-1)},qfe=Object,Gfe=Hfe("".split),Kfe=Ffe((function(){return!qfe("z").propertyIsEnumerable(0)}))?function(e){return"String"===Wfe(e)?Gfe(e,""):qfe(e)}:qfe,Yfe=function(e){return null==e},Xfe=TypeError,Zfe=function(e){if(Yfe(e))throw new Xfe("Can't call method on "+e);return e},Jfe=function(e){return Kfe(Zfe(e))},Qfe="object"==typeof document&&document.all,ede=void 0===Qfe&&void 0!==Qfe?function(e){return"function"==typeof e||e===Qfe}:function(e){return"function"==typeof e},tde=function(e){return"object"==typeof e?null!==e:ede(e)},nde=function(e,t){return arguments.length<2?(n=Bfe[e],ede(n)?n:void 0):Bfe[e]&&Bfe[e][t];var n},rde=Hfe({}.isPrototypeOf),ode=Bfe.navigator,ide=ode&&ode.userAgent,ade=ide?String(ide):"",ude=Bfe.process,sde=Bfe.Deno,cde=ude&&ude.versions||sde&&sde.version,lde=cde&&cde.v8;lde&&(Afe=(Ofe=lde.split("."))[0]>0&&Ofe[0]<4?1:+(Ofe[0]+Ofe[1])),!Afe&&ade&&(!(Ofe=ade.match(/Edge\/(\d+)/))||Ofe[1]>=74)&&(Ofe=ade.match(/Chrome\/(\d+)/))&&(Afe=+Ofe[1]);var fde=Afe,dde=Bfe.String,pde=!!Object.getOwnPropertySymbols&&!Ffe((function(){var e=Symbol("symbol detection");return!dde(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fde&&fde<41})),hde=pde&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vde=Object,gde=hde?function(e){return"symbol"==typeof e}:function(e){var t=nde("Symbol");return ede(t)&&rde(t.prototype,vde(e))},yde=String,mde=function(e){try{return yde(e)}catch(e){return"Object"}},bde=TypeError,wde=function(e){if(ede(e))return e;throw new bde(mde(e)+" is not a function")},Ede=function(e,t){var n=e[t];return Yfe(n)?void 0:wde(n)},Sde=TypeError,Cde=Object.defineProperty,Dde=function(e,t){try{Cde(Bfe,e,{value:t,configurable:!0,writable:!0})}catch(n){Bfe[e]=t}return t},xde=xfe((function(e){var t="__core-js_shared__",n=e.exports=Bfe[t]||Dde(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),Ode=function(e,t){return xde[e]||(xde[e]=t||{})},Ade=Object,kde=function(e){return Ade(Zfe(e))},Bde=Hfe({}.hasOwnProperty),Fde=Object.hasOwn||function(e,t){return Bde(kde(e),t)},Tde=0,Pde=Math.random(),_de=Hfe(1..toString),jde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+_de(++Tde+Pde,36)},Nde=Bfe.Symbol,Ide=Ode("wks"),Rde=hde?Nde.for||Nde:Nde&&Nde.withoutSetter||jde,Lde=function(e){return Fde(Ide,e)||(Ide[e]=pde&&Fde(Nde,e)?Nde[e]:Rde("Symbol."+e)),Ide[e]},Mde=TypeError,zde=Lde("toPrimitive"),$de=function(e){var t=function(e,t){if(!tde(e)||gde(e))return e;var n,r=Ede(e,zde);if(r){if(void 0===t&&(t="default"),n=jfe(r,e,t),!tde(n)||gde(n))return n;throw new Mde("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ede(n=e.toString)&&!tde(r=jfe(n,e)))return r;if(ede(n=e.valueOf)&&!tde(r=jfe(n,e)))return r;if("string"!==t&&ede(n=e.toString)&&!tde(r=jfe(n,e)))return r;throw new Sde("Can't convert object to primitive value")}(e,t)}(e,"string");return gde(t)?t:t+""},Hde=Bfe.document,Ude=tde(Hde)&&tde(Hde.createElement),Vde=function(e){return Ude?Hde.createElement(e):{}},Wde=!Tfe&&!Ffe((function(){return 7!==Object.defineProperty(Vde("div"),"a",{get:function(){return 7}}).a})),qde=Object.getOwnPropertyDescriptor,Gde={f:Tfe?qde:function(e,t){if(e=Jfe(e),t=$de(t),Wde)try{return qde(e,t)}catch(e){}if(Fde(e,t))return Lfe(!jfe(Rfe.f,e,t),e[t])}},Kde=Tfe&&Ffe((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Yde=String,Xde=TypeError,Zde=function(e){if(tde(e))return e;throw new Xde(Yde(e)+" is not an object")},Jde=TypeError,Qde=Object.defineProperty,epe=Object.getOwnPropertyDescriptor,tpe="enumerable",npe="configurable",rpe="writable",ope={f:Tfe?Kde?function(e,t,n){if(Zde(e),t=$de(t),Zde(n),"function"==typeof e&&"prototype"===t&&"value"in n&&rpe in n&&!n[rpe]){var r=epe(e,t);r&&r[rpe]&&(e[t]=n.value,n={configurable:npe in n?n[npe]:r[npe],enumerable:tpe in n?n[tpe]:r[tpe],writable:!1})}return Qde(e,t,n)}:Qde:function(e,t,n){if(Zde(e),t=$de(t),Zde(n),Wde)try{return Qde(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Jde("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ipe=Tfe?function(e,t,n){return ope.f(e,t,Lfe(1,n))}:function(e,t,n){return e[t]=n,e},ape=Function.prototype,upe=Tfe&&Object.getOwnPropertyDescriptor,spe=Fde(ape,"name"),cpe={EXISTS:spe,PROPER:spe&&"something"===function(){}.name,CONFIGURABLE:spe&&(!Tfe||Tfe&&upe(ape,"name").configurable)},lpe=Hfe(Function.toString);ede(xde.inspectSource)||(xde.inspectSource=function(e){return lpe(e)});var fpe,dpe,ppe,hpe=xde.inspectSource,vpe=Bfe.WeakMap,gpe=ede(vpe)&&/native code/.test(String(vpe)),ype=Ode("keys"),mpe=function(e){return ype[e]||(ype[e]=jde(e))},bpe={},wpe="Object already initialized",Epe=Bfe.TypeError,Spe=Bfe.WeakMap;if(gpe||xde.state){var Cpe=xde.state||(xde.state=new Spe);Cpe.get=Cpe.get,Cpe.has=Cpe.has,Cpe.set=Cpe.set,fpe=function(e,t){if(Cpe.has(e))throw new Epe(wpe);return t.facade=e,Cpe.set(e,t),t},dpe=function(e){return Cpe.get(e)||{}},ppe=function(e){return Cpe.has(e)}}else{var Dpe=mpe("state");bpe[Dpe]=!0,fpe=function(e,t){if(Fde(e,Dpe))throw new Epe(wpe);return t.facade=e,ipe(e,Dpe,t),t},dpe=function(e){return Fde(e,Dpe)?e[Dpe]:{}},ppe=function(e){return Fde(e,Dpe)}}var xpe={set:fpe,get:dpe,has:ppe,enforce:function(e){return ppe(e)?dpe(e):fpe(e,{})},getterFor:function(e){return function(t){var n;if(!tde(t)||(n=dpe(t)).type!==e)throw new Epe("Incompatible receiver, "+e+" required");return n}}},Ope=xfe((function(e){var t=cpe.CONFIGURABLE,n=xpe.enforce,r=xpe.get,o=String,i=Object.defineProperty,a=Hfe("".slice),u=Hfe("".replace),s=Hfe([].join),c=Tfe&&!Ffe((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!Fde(e,"name")||t&&e.name!==r)&&(Tfe?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&Fde(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&Fde(f,"constructor")&&f.constructor?Tfe&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return Fde(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return ede(this)&&r(this).source||hpe(this)}),"toString")})),Ape=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(ede(n)&&Ope(n,i,r),r.global)o?e[t]=n:Dde(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:ope.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},kpe=Math.ceil,Bpe=Math.floor,Fpe=Math.trunc||function(e){var t=+e;return(t>0?Bpe:kpe)(t)},Tpe=function(e){var t=+e;return t!=t||0===t?0:Fpe(t)},Ppe=Math.max,_pe=Math.min,jpe=function(e,t){var n=Tpe(e);return n<0?Ppe(n+t,0):_pe(n,t)},Npe=Math.min,Ipe=function(e){return t=e.length,(n=Tpe(t))>0?Npe(n,9007199254740991):0;var t,n},Rpe=function(e){return function(t,n,r){var o=Jfe(t),i=Ipe(o);if(0===i)return!e&&-1;var a,u=jpe(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}}(!1),Lpe=Hfe([].push),Mpe=function(e,t){var n,r=Jfe(e),o=0,i=[];for(n in r)!Fde(bpe,n)&&Fde(r,n)&&Lpe(i,n);for(;t.length>o;)Fde(r,n=t[o++])&&(~Rpe(i,n)||Lpe(i,n));return i},zpe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$pe=zpe.concat("length","prototype"),Hpe={f:Object.getOwnPropertyNames||function(e){return Mpe(e,$pe)}},Upe={f:Object.getOwnPropertySymbols},Vpe=Hfe([].concat),Wpe=nde("Reflect","ownKeys")||function(e){var t=Hpe.f(Zde(e)),n=Upe.f;return n?Vpe(t,n(e)):t},qpe=function(e,t,n){for(var r=Wpe(t),o=ope.f,i=Gde.f,a=0;a<r.length;a++){var u=r[a];Fde(e,u)||n&&Fde(n,u)||o(e,u,i(t,u))}},Gpe=/#|\.prototype\./,Kpe=function(e,t){var n=Xpe[Ype(e)];return n===Jpe||n!==Zpe&&(ede(t)?Ffe(t):!!t)},Ype=Kpe.normalize=function(e){return String(e).replace(Gpe,".").toLowerCase()},Xpe=Kpe.data={},Zpe=Kpe.NATIVE="N",Jpe=Kpe.POLYFILL="P",Qpe=Kpe,ehe=Gde.f,the=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Bfe:c?Bfe[u]||Dde(u,{}):Bfe[u]&&Bfe[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=ehe(n,r))&&a.value:n[r],!Qpe(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;qpe(i,o)}(e.sham||o&&o.sham)&&ipe(i,"sham",!0),Ape(n,r,i,e)}},nhe=Array.isArray||function(e){return"Array"===Wfe(e)},rhe={};rhe[Lde("toStringTag")]="z";var ohe="[object z]"===String(rhe),ihe=Lde("toStringTag"),ahe=Object,uhe="Arguments"===Wfe(function(){return arguments}()),she=ohe?Wfe: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=ahe(e),ihe))?n:uhe?Wfe(t):"Object"===(r=Wfe(t))&&ede(t.callee)?"Arguments":r},che=function(){},lhe=nde("Reflect","construct"),fhe=/^\s*(?:class|function)\b/,dhe=Hfe(fhe.exec),phe=!fhe.test(che),hhe=function(e){if(!ede(e))return!1;try{return lhe(che,[],e),!0}catch(e){return!1}},vhe=function(e){if(!ede(e))return!1;switch(she(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return phe||!!dhe(fhe,hpe(e))}catch(e){return!0}};vhe.sham=!0;var ghe=!lhe||Ffe((function(){var e;return hhe(hhe.call)||!hhe(Object)||!hhe((function(){e=!0}))||e}))?vhe:hhe,yhe=Lde("species"),mhe=Hfe([].slice),bhe=fde>=51||!Ffe((function(){var e=[];return(e.constructor={})[yhe]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),whe=Lde("species"),Ehe=Array,She=Math.max;the({target:"Array",proto:!0,forced:!bhe},{slice:function(e,t){var n,r,o,i,a,u,s=Jfe(this),c=Ipe(s),l=jpe(e,c),f=jpe(void 0===t?c:t,c);if(nhe(s)&&(n=s.constructor,(ghe(n)&&(n===Ehe||nhe(n.prototype))||tde(n)&&null===(n=n[whe]))&&(n=void 0),n===Ehe||void 0===n))return mhe(s,l,f);for(r=new(void 0===n?Ehe:n)(She(f-l,0)),o=0;l<f;l++,o++)l in s&&(i=r,a=o,u=s[l],Tfe?ope.f(i,a,Lfe(0,u)):i[a]=u);return r.length=o,r}});var Che=ohe?{}.toString:function(){return"[object "+she(this)+"]"};ohe||Ape(Object.prototype,"toString",Che,{unsafe:!0})
|
112
|
+
/*! *****************************************************************************
|
113
|
+
Copyright (c) Microsoft Corporation.
|
114
|
+
|
115
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
116
|
+
purpose with or without fee is hereby granted.
|
117
|
+
|
118
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
119
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
120
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
121
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
122
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
123
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
124
|
+
PERFORMANCE OF THIS SOFTWARE.
|
125
|
+
***************************************************************************** */;var Dhe=function(){return Dhe=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},Dhe.apply(this,arguments)};function xhe(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 Ohe(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(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var Ahe,khe=Object.keys||function(e){return Mpe(e,zpe)},Bhe=Tfe&&!Kde?Object.defineProperties:function(e,t){Zde(e);for(var n,r=Jfe(t),o=khe(t),i=o.length,a=0;i>a;)ope.f(e,n=o[a++],r[n]);return e},Fhe={f:Bhe},The=nde("document","documentElement"),Phe="prototype",_he="script",jhe=mpe("IE_PROTO"),Nhe=function(){},Ihe=function(e){return"<script>"+e+"</"+_he+">"},Rhe=function(e){e.write(Ihe("")),e.close();var t=e.parentWindow.Object;return e=null,t},Lhe=function(){try{Ahe=new ActiveXObject("htmlfile")}catch(e){}var e,t;Lhe="undefined"!=typeof document?document.domain&&Ahe?Rhe(Ahe):("javascript:",(t=Vde("iframe")).style.display="none",The.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ihe("document.F=Object")),e.close(),e.F):Rhe(Ahe);for(var n=zpe.length;n--;)delete Lhe[Phe][zpe[n]];return Lhe()};bpe[jhe]=!0;var Mhe=Object.create||function(e,t){var n;return null!==e?(Nhe[Phe]=Zde(e),n=new Nhe,Nhe[Phe]=null,n[jhe]=e):n=Lhe(),void 0===t?n:Fhe.f(n,t)},zhe=ope.f,$he=Lde("unscopables"),Hhe=Array.prototype;void 0===Hhe[$he]&&zhe(Hhe,$he,{configurable:!0,value:Mhe(null)});var Uhe,Vhe,Whe,qhe=function(e){Hhe[$he][e]=!0},Ghe={},Khe=!Ffe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Yhe=mpe("IE_PROTO"),Xhe=Object,Zhe=Xhe.prototype,Jhe=Khe?Xhe.getPrototypeOf:function(e){var t=kde(e);if(Fde(t,Yhe))return t[Yhe];var n=t.constructor;return ede(n)&&t instanceof n?n.prototype:t instanceof Xhe?Zhe:null},Qhe=Lde("iterator"),eve=!1;[].keys&&("next"in(Whe=[].keys())?(Vhe=Jhe(Jhe(Whe)))!==Object.prototype&&(Uhe=Vhe):eve=!0);var tve=!tde(Uhe)||Ffe((function(){var e={};return Uhe[Qhe].call(e)!==e}));tve&&(Uhe={}),ede(Uhe[Qhe])||Ape(Uhe,Qhe,(function(){return this}));var nve={IteratorPrototype:Uhe,BUGGY_SAFARI_ITERATORS:eve},rve=ope.f,ove=Lde("toStringTag"),ive=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Fde(e,ove)&&rve(e,ove,{configurable:!0,value:t})},ave=nve.IteratorPrototype,uve=function(){return this},sve=String,cve=TypeError,lve=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e){try{return Hfe(wde(Object.getOwnPropertyDescriptor(e,"__proto__").set))}catch(e){}}(Object.prototype))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Zfe(n),function(e){if(function(e){return tde(e)||null===e}(e))return e;throw new cve("Can't set "+sve(e)+" as a prototype")}(r),tde(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),fve=cpe.PROPER,dve=cpe.CONFIGURABLE,pve=nve.IteratorPrototype,hve=nve.BUGGY_SAFARI_ITERATORS,vve=Lde("iterator"),gve="keys",yve="values",mve="entries",bve=function(){return this},wve=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Mhe(ave,{next:Lfe(1,n)}),ive(e,r,!1),Ghe[r]=uve}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!hve&&e&&e in p)return p[e];switch(e){case gve:case yve:case mve:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[vve]||p["@@iterator"]||o&&p[o],v=!hve&&h||l(o),g="Array"===t&&p.entries||h;if(g&&(u=Jhe(g.call(new e)))!==Object.prototype&&u.next&&(Jhe(u)!==pve&&(lve?lve(u,pve):ede(u[vve])||Ape(u,vve,bve)),ive(u,f,!0)),fve&&o===yve&&h&&h.name!==yve&&(dve?ipe(p,"name",yve):(d=!0,v=function(){return jfe(h,this)})),o)if(s={values:l(yve),keys:i?v:l(gve),entries:l(mve)},a)for(c in s)(hve||d||!(c in p))&&Ape(p,c,s[c]);else the({target:t,proto:!0,forced:hve||d},s);return p[vve]!==v&&Ape(p,vve,v,{name:o}),Ghe[t]=v,s},Eve=function(e,t){return{value:e,done:t}},Sve=ope.f,Cve="Array Iterator",Dve=xpe.set,xve=xpe.getterFor(Cve),Ove=wve(Array,"Array",(function(e,t){Dve(this,{type:Cve,target:Jfe(e),index:0,kind:t})}),(function(){var e=xve(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Eve(void 0,!0);switch(e.kind){case"keys":return Eve(n,!1);case"values":return Eve(t[n],!1)}return Eve([n,t[n]],!1)}),"values"),Ave=Ghe.Arguments=Ghe.Array;if(qhe("keys"),qhe("values"),qhe("entries"),Tfe&&"values"!==Ave.name)try{Sve(Ave,"name",{value:"values"})}catch(rf){}var kve=function(e,t,n){return n.get&&Ope(n.get,t,{getter:!0}),n.set&&Ope(n.set,t,{setter:!0}),ope.f(e,t,n)},Bve=cpe.EXISTS,Fve=Function.prototype,Tve=Hfe(Fve.toString),Pve=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,_ve=Hfe(Pve.exec);Tfe&&!Bve&&kve(Fve,"name",{configurable:!0,get:function(){try{return _ve(Pve,Tve(this))[1]}catch(e){return""}}});var jve,Nve,Ive,Rve,Lve=function(e){return ade.slice(0,e.length)===e},Mve=Lve("Bun/")?"BUN":Lve("Cloudflare-Workers")?"CLOUDFLARE":Lve("Deno/")?"DENO":Lve("Node.js/")?"NODE":Bfe.Bun&&"string"==typeof Bun.version?"BUN":Bfe.Deno&&"object"==typeof Deno.version?"DENO":"process"===Wfe(Bfe.process)?"NODE":Bfe.window&&Bfe.document?"BROWSER":"REST",zve="NODE"===Mve,$ve=Lde("species"),Hve=TypeError,Uve=function(e,t){if(rde(t,e))return e;throw new Hve("Incorrect invocation")},Vve=TypeError,Wve=Lde("species"),qve=Function.prototype,Gve=qve.apply,Kve=qve.call,Yve="object"==typeof Reflect&&Reflect.apply||(Pfe?Kve.bind(Gve):function(){return Kve.apply(Gve,arguments)}),Xve=function(e){if("Function"===Wfe(e))return Hfe(e)},Zve=Xve(Xve.bind),Jve=function(e,t){return wde(e),void 0===t?e:Pfe?Zve(e,t):function(){return e.apply(t,arguments)}},Qve=TypeError,ege=/(?:ipad|iphone|ipod).*applewebkit/i.test(ade),tge=Bfe.setImmediate,nge=Bfe.clearImmediate,rge=Bfe.process,oge=Bfe.Dispatch,ige=Bfe.Function,age=Bfe.MessageChannel,uge=Bfe.String,sge=0,cge={},lge="onreadystatechange";Ffe((function(){jve=Bfe.location}));var fge=function(e){if(Fde(cge,e)){var t=cge[e];delete cge[e],t()}},dge=function(e){return function(){fge(e)}},pge=function(e){fge(e.data)},hge=function(e){Bfe.postMessage(uge(e),jve.protocol+"//"+jve.host)};tge&&nge||(tge=function(e){!function(e){if(e<1)throw new Qve("Not enough arguments")}(arguments.length);var t=ede(e)?e:ige(e),n=mhe(arguments,1);return cge[++sge]=function(){Yve(t,void 0,n)},Nve(sge),sge},nge=function(e){delete cge[e]},zve?Nve=function(e){rge.nextTick(dge(e))}:oge&&oge.now?Nve=function(e){oge.now(dge(e))}:age&&!ege?(Rve=(Ive=new age).port2,Ive.port1.onmessage=pge,Nve=Jve(Rve.postMessage,Rve)):Bfe.addEventListener&&ede(Bfe.postMessage)&&!Bfe.importScripts&&jve&&"file:"!==jve.protocol&&!Ffe(hge)?(Nve=hge,Bfe.addEventListener("message",pge,!1)):Nve=lge in Vde("script")?function(e){The.appendChild(Vde("script"))[lge]=function(){The.removeChild(this),fge(e)}}:function(e){setTimeout(dge(e),0)});var vge={set:tge,clear:nge},gge=Object.getOwnPropertyDescriptor,yge=function(){this.head=null,this.tail=null};yge.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var mge,bge,wge,Ege,Sge,Cge=yge,Dge=/ipad|iphone|ipod/i.test(ade)&&"undefined"!=typeof Pebble,xge=/web0s(?!.*chrome)/i.test(ade),Oge=vge.set,Age=Bfe.MutationObserver||Bfe.WebKitMutationObserver,kge=Bfe.document,Bge=Bfe.process,Fge=Bfe.Promise,Tge=function(e){if(!Tfe)return Bfe[e];var t=gge(Bfe,e);return t&&t.value}("queueMicrotask");if(!Tge){var Pge=new Cge,_ge=function(){var e,t;for(zve&&(e=Bge.domain)&&e.exit();t=Pge.get();)try{t()}catch(e){throw Pge.head&&mge(),e}e&&e.enter()};ege||zve||xge||!Age||!kge?!Dge&&Fge&&Fge.resolve?((Ege=Fge.resolve(void 0)).constructor=Fge,Sge=Jve(Ege.then,Ege),mge=function(){Sge(_ge)}):zve?mge=function(){Bge.nextTick(_ge)}:(Oge=Jve(Oge,Bfe),mge=function(){Oge(_ge)}):(bge=!0,wge=kge.createTextNode(""),new Age(_ge).observe(wge,{characterData:!0}),mge=function(){wge.data=bge=!bge}),Tge=function(e){Pge.head||mge(),Pge.add(e)}}var jge=Tge,Nge=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ige=Bfe.Promise;Ige&&Ige.prototype;var Rge,Lge,Mge,zge,$ge=Lde("species"),Hge=!1,Uge=ede(Bfe.PromiseRejectionEvent),Vge=Qpe("Promise",(function(){var e=hpe(Ige),t=e!==String(Ige);if(!t&&66===fde)return!0;if(!fde||fde<51||!/native code/.test(e)){var n=new Ige((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[$ge]=r,!(Hge=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==Mve&&"DENO"!==Mve||Uge)})),Wge={CONSTRUCTOR:Vge,REJECTION_EVENT:Uge,SUBCLASSING:Hge},qge=TypeError,Gge=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new qge("Bad Promise constructor");t=e,n=r})),this.resolve=wde(t),this.reject=wde(n)},Kge={f:function(e){return new Gge(e)}},Yge=vge.set,Xge="Promise",Zge=Wge.CONSTRUCTOR,Jge=Wge.REJECTION_EVENT,Qge=Wge.SUBCLASSING,eye=xpe.getterFor(Xge),tye=xpe.set,nye=Ige&&Ige.prototype,rye=Ige,oye=nye,iye=Bfe.TypeError,aye=Bfe.document,uye=Bfe.process,sye=Kge.f,cye=sye,lye=!!(aye&&aye.createEvent&&Bfe.dispatchEvent),fye="unhandledrejection",dye=function(e){var t;return!(!tde(e)||!ede(t=e.then))&&t},pye=function(e,t){var n,r,o,i=t.value,a=1===t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&mye(t),t.rejection=1),!0===u?n=i:(l&&l.enter(),n=u(i),l&&(l.exit(),o=!0)),n===e.promise?c(new iye("Promise-chain cycle")):(r=dye(n))?jfe(r,n,s,c):s(n)):c(i)}catch(e){l&&!o&&l.exit(),c(e)}},hye=function(e,t){e.notified||(e.notified=!0,jge((function(){for(var n,r=e.reactions;n=r.get();)pye(n,e);e.notified=!1,t&&!e.rejection&&gye(e)})))},vye=function(e,t,n){var r,o;lye?((r=aye.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Bfe.dispatchEvent(r)):r={promise:t,reason:n},!Jge&&(o=Bfe["on"+e])?o(r):e===fye&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}("Unhandled promise rejection",n)},gye=function(e){jfe(Yge,Bfe,(function(){var t,n=e.facade,r=e.value;if(yye(e)&&(t=Nge((function(){zve?uye.emit("unhandledRejection",r,n):vye(fye,n,r)})),e.rejection=zve||yye(e)?2:1,t.error))throw t.value}))},yye=function(e){return 1!==e.rejection&&!e.parent},mye=function(e){jfe(Yge,Bfe,(function(){var t=e.facade;zve?uye.emit("rejectionHandled",t):vye("rejectionhandled",t,e.value)}))},bye=function(e,t,n){return function(r){e(t,r,n)}},wye=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,hye(e,!0))},Eye=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new iye("Promise can't be resolved itself");var r=dye(t);r?jge((function(){var n={done:!1};try{jfe(r,t,bye(Eye,n,e),bye(wye,n,e))}catch(t){wye(n,t,e)}})):(e.value=t,e.state=1,hye(e,!1))}catch(t){wye({done:!1},t,e)}}};if(Zge&&(oye=(rye=function(e){Uve(this,oye),wde(e),jfe(Rge,this);var t=eye(this);try{e(bye(Eye,t),bye(wye,t))}catch(e){wye(t,e)}}).prototype,(Rge=function(e){tye(this,{type:Xge,done:!1,notified:!1,parent:!1,reactions:new Cge,rejection:!1,state:0,value:null})}).prototype=Ape(oye,"then",(function(e,t){var n=eye(this),r=sye(function(e,t){var n,r=Zde(e).constructor;return void 0===r||Yfe(n=Zde(r)[Wve])?t:function(e){if(ghe(e))return e;throw new Vve(mde(e)+" is not a constructor")}(n)}(this,rye));return n.parent=!0,r.ok=!ede(e)||e,r.fail=ede(t)&&t,r.domain=zve?uye.domain:void 0,0===n.state?n.reactions.add(r):jge((function(){pye(r,n)})),r.promise})),Lge=function(){var e=new Rge,t=eye(e);this.promise=e,this.resolve=bye(Eye,t),this.reject=bye(wye,t)},Kge.f=sye=function(e){return e===rye||void 0===e?new Lge(e):cye(e)},ede(Ige)&&nye!==Object.prototype)){Mge=nye.then,Qge||Ape(nye,"then",(function(e,t){var n=this;return new rye((function(e,t){jfe(Mge,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete nye.constructor}catch(rf){}lve&&lve(nye,oye)}the({global:!0,constructor:!0,wrap:!0,forced:Zge},{Promise:rye}),ive(rye,Xge,!1),zge=nde(Xge),Tfe&&zge&&!zge[$ve]&&kve(zge,$ve,{configurable:!0,get:function(){return this}});var Sye=Lde("iterator"),Cye=Array.prototype,Dye=Lde("iterator"),xye=function(e){if(!Yfe(e))return Ede(e,Dye)||Ede(e,"@@iterator")||Ghe[she(e)]},Oye=TypeError,Aye=function(e,t,n){var r,o;Zde(e);try{if(!(r=Ede(e,"return"))){if("throw"===t)throw n;return n}r=jfe(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Zde(r),n},kye=TypeError,Bye=function(e,t){this.stopped=e,this.result=t},Fye=Bye.prototype,Tye=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Jve(t,f),y=function(e){return r&&Aye(r,"normal",e),new Bye(!0,e)},m=function(e){return d?(Zde(e),v?g(e[0],e[1],y):g(e[0],e[1])):v?g(e,y):g(e)};if(p)r=e.iterator;else if(h)r=e;else{if(!(o=xye(e)))throw new kye(mde(e)+" is not iterable");if(void 0!==(l=o)&&(Ghe.Array===l||Cye[Sye]===l)){for(i=0,a=Ipe(e);a>i;i++)if((u=m(e[i]))&&rde(Fye,u))return u;return new Bye(!1)}r=function(e,t){var n=arguments.length<2?xye(e):t;if(wde(n))return Zde(jfe(n,e));throw new Oye(mde(e)+" is not iterable")}(e,o)}for(s=p?e.next:r.next;!(c=jfe(s,r)).done;){try{u=m(c.value)}catch(e){Aye(r,"throw",e)}if("object"==typeof u&&u&&rde(Fye,u))return u}return new Bye(!1)},Pye=Lde("iterator"),_ye=!1;try{var jye=0,Nye={next:function(){return{done:!!jye++}},return:function(){_ye=!0}};Nye[Pye]=function(){return this},Array.from(Nye,(function(){throw 2}))}catch(rf){}var Iye=function(e,t){try{if(!t&&!_ye)return!1}catch(e){return!1}var n=!1;try{var r={};r[Pye]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Rye=Wge.CONSTRUCTOR||!Iye((function(e){Ige.all(e).then(void 0,(function(){}))}));the({target:"Promise",stat:!0,forced:Rye},{all:function(e){var t=this,n=Kge.f(t),r=n.resolve,o=n.reject,i=Nge((function(){var n=wde(t.resolve),i=[],a=0,u=1;Tye(e,(function(e){var s=a++,c=!1;u++,jfe(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var Lye=Wge.CONSTRUCTOR,Mye=Ige&&Ige.prototype;if(the({target:"Promise",proto:!0,forced:Lye,real:!0},{catch:function(e){return this.then(void 0,e)}}),ede(Ige)){var zye=nde("Promise").prototype.catch;Mye.catch!==zye&&Ape(Mye,"catch",zye,{unsafe:!0})}the({target:"Promise",stat:!0,forced:Rye},{race:function(e){var t=this,n=Kge.f(t),r=n.reject,o=Nge((function(){var o=wde(t.resolve);Tye(e,(function(e){jfe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),the({target:"Promise",stat:!0,forced:Wge.CONSTRUCTOR},{reject:function(e){var t=Kge.f(this);return(0,t.reject)(e),t.promise}});var $ye=Wge.CONSTRUCTOR;nde("Promise"),the({target:"Promise",stat:!0,forced:$ye},{resolve:function(e){return function(e,t){if(Zde(e),tde(t)&&t.constructor===e)return t;var n=Kge.f(e);return(0,n.resolve)(t),n.promise}(this,e)}});var Hye=String,Uye=function(e){if("Symbol"===she(e))throw new TypeError("Cannot convert a Symbol value to a string");return Hye(e)},Vye=function(){var e=Zde(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Wye=RegExp.prototype,qye=cpe.PROPER,Gye="toString",Kye=RegExp.prototype,Yye=Kye[Gye],Xye=Ffe((function(){return"/a/b"!==Yye.call({source:"a",flags:"b"})})),Zye=qye&&Yye.name!==Gye;(Xye||Zye)&&Ape(Kye,Gye,(function(){var e=Zde(this),t=Uye(e.source),n=Uye(function(e){var t=e.flags;return void 0!==t||"flags"in Wye||Fde(e,"flags")||!rde(Wye,e)?t:jfe(Vye,e)}(e));return"/"+t+"/"+n}),{unsafe:!0});var Jye=Hfe("".charAt),Qye=Hfe("".charCodeAt),eme=Hfe("".slice),tme=function(e){return function(t,n){var r,o,i=Uye(Zfe(t)),a=Tpe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Qye(i,a))<55296||r>56319||a+1===u||(o=Qye(i,a+1))<56320||o>57343?e?Jye(i,a):r:e?eme(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),nme="String Iterator",rme=xpe.set,ome=xpe.getterFor(nme);wve(String,"String",(function(e){rme(this,{type:nme,string:Uye(e),index:0})}),(function(){var e,t=ome(this),n=t.string,r=t.index;return r>=n.length?Eve(void 0,!0):(e=tme(n,r),t.index+=e.length,Eve(e,!1))}));var ime=!Ffe((function(){return Object.isExtensible(Object.preventExtensions({}))})),ame=function(e,t,n){for(var r in t)Ape(e,r,t[r],n);return e},ume=Hpe.f,sme="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],cme={f:function(e){return sme&&"Window"===Wfe(e)?function(e){try{return ume(e)}catch(e){return mhe(sme)}}(e):ume(Jfe(e))}},lme=Ffe((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fme=Object.isExtensible,dme=Ffe((function(){fme(1)}))||lme?function(e){return!!tde(e)&&(!lme||"ArrayBuffer"!==Wfe(e))&&(!fme||fme(e))}:fme,pme=xfe((function(e){var t=ope.f,n=!1,r=jde("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=Hpe.f,t=Hfe([].splice),o={};o[r]=1,e(o).length&&(Hpe.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},the({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:cme.f}))},fastKey:function(e,t){if(!tde(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Fde(e,r)){if(!dme(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Fde(e,r)){if(!dme(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ime&&n&&dme(e)&&!Fde(e,r)&&i(e),e}};bpe[r]=!0})),hme=Lde("species"),vme=Array,gme=function(e,t){return new(function(e){var t;return nhe(e)&&(t=e.constructor,(ghe(t)&&(t===vme||nhe(t.prototype))||tde(t)&&null===(t=t[hme]))&&(t=void 0)),void 0===t?vme:t}(e))(0===t?0:t)},yme=Hfe([].push),mme=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,c,l,f){for(var d,p,h=kde(s),v=Kfe(h),g=Ipe(v),y=Jve(c,l),m=0,b=f||gme,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:yme(w,d)}else switch(e){case 4:return!1;case 7:yme(w,d)}return i?-1:r||o?o:w}},bme={forEach:mme(0),map:mme(1),filter:mme(2),some:mme(3),every:mme(4),find:mme(5),findIndex:mme(6),filterReject:mme(7)},wme=pme.getWeakData,Eme=xpe.set,Sme=xpe.getterFor,Cme=bme.find,Dme=bme.findIndex,xme=Hfe([].splice),Ome=0,Ame=function(e){return e.frozen||(e.frozen=new kme)},kme=function(){this.entries=[]},Bme=function(e,t){return Cme(e.entries,(function(e){return e[0]===t}))};kme.prototype={get:function(e){var t=Bme(this,e);if(t)return t[1]},has:function(e){return!!Bme(this,e)},set:function(e,t){var n=Bme(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Dme(this.entries,(function(t){return t[0]===e}));return~t&&xme(this.entries,t,1),!!~t}};var Fme,Tme={getConstructor:function(e,t,n,r){var o=e((function(e,o){Uve(e,i),Eme(e,{type:t,id:Ome++,frozen:null}),Yfe(o)||Tye(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Sme(t),u=function(e,t,n){var r=a(e),o=wme(Zde(t),!0);return!0===o?Ame(r).set(t,n):o[r.id]=n,e};return ame(i,{delete:function(e){var t=a(this);if(!tde(e))return!1;var n=wme(e);return!0===n?Ame(t).delete(e):n&&Fde(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!tde(e))return!1;var n=wme(e);return!0===n?Ame(t).has(e):n&&Fde(n,t.id)}}),ame(i,n?{get:function(e){var t=a(this);if(tde(e)){var n=wme(e);if(!0===n)return Ame(t).get(e);if(n)return n[t.id]}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Pme=xpe.enforce,_me=Object,jme=Array.isArray,Nme=_me.isExtensible,Ime=_me.isFrozen,Rme=_me.isSealed,Lme=_me.freeze,Mme=_me.seal,zme=!Bfe.ActiveXObject&&"ActiveXObject"in Bfe,$me=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Hme=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Bfe[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=Hfe(u[e]);Ape(u,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(o&&!tde(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!tde(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(o&&!tde(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Qpe(e,!ede(a)||!(o||u.forEach&&!Ffe((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),pme.enable();else if(Qpe(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!==f,p=Ffe((function(){f.has(1)})),h=Iye((function(e){new a(e)})),v=!o&&Ffe((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Uve(e,u);var n=function(e,t,n){var r,o;return lve&&ede(r=t.constructor)&&r!==n&&tde(o=r.prototype)&&o!==n.prototype&&lve(e,o),e}(new a,e,s);return Yfe(t)||Tye(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,the({global:!0,constructor:!0,forced:s!==a},c),ive(s,e),o||n.setStrong(s,e,r),s}("WeakMap",$me,Tme),Ume=Hme.prototype,Vme=Hfe(Ume.set);if(gpe)if(zme){Fme=Tme.getConstructor($me,"WeakMap",!0),pme.enable();var Wme=Hfe(Ume.delete),qme=Hfe(Ume.has),Gme=Hfe(Ume.get);ame(Ume,{delete:function(e){if(tde(e)&&!Nme(e)){var t=Pme(this);return t.frozen||(t.frozen=new Fme),Wme(this,e)||t.frozen.delete(e)}return Wme(this,e)},has:function(e){if(tde(e)&&!Nme(e)){var t=Pme(this);return t.frozen||(t.frozen=new Fme),qme(this,e)||t.frozen.has(e)}return qme(this,e)},get:function(e){if(tde(e)&&!Nme(e)){var t=Pme(this);return t.frozen||(t.frozen=new Fme),qme(this,e)?Gme(this,e):t.frozen.get(e)}return Gme(this,e)},set:function(e,t){if(tde(e)&&!Nme(e)){var n=Pme(this);n.frozen||(n.frozen=new Fme),qme(this,e)?Vme(this,e,t):n.frozen.set(e,t)}else Vme(this,e,t);return this}})}else ime&&Ffe((function(){var e=Lme([]);return Vme(new Hme,e,1),!Ime(e)}))&&ame(Ume,{set:function(e,t){var n;return jme(e)&&(Ime(e)?n=Lme:Rme(e)&&(n=Mme)),Vme(this,e,t),n&&n(e),this}});var Kme={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},Yme=Vde("span").classList,Xme=Yme&&Yme.constructor&&Yme.constructor.prototype,Zme=Xme===Object.prototype?void 0:Xme,Jme=function(e,t){var n=[][e];return!!n&&Ffe((function(){n.call(null,t||function(){return 1},1)}))},Qme=bme.forEach,ebe=Jme("forEach")?[].forEach:function(e){return Qme(this,e,arguments.length>1?arguments[1]:void 0)},tbe=function(e){if(e&&e.forEach!==ebe)try{ipe(e,"forEach",ebe)}catch(t){e.forEach=ebe}};for(var nbe in Kme)Kme[nbe]&&tbe(Bfe[nbe]&&Bfe[nbe].prototype);tbe(Zme);var rbe=Lde("iterator"),obe=Ove.values,ibe=function(e,t){if(e){if(e[rbe]!==obe)try{ipe(e,rbe,obe)}catch(t){e[rbe]=obe}if(ive(e,t,!0),Kme[t])for(var n in Ove)if(e[n]!==Ove[n])try{ipe(e,n,Ove[n])}catch(t){e[n]=Ove[n]}}};for(var abe in Kme)ibe(Bfe[abe]&&Bfe[abe].prototype,abe);ibe(Zme,"DOMTokenList");var ube=new WeakMap;function sbe(e){return e.getMenuConfig("uploadImage")}function cbe(e,t){return xhe(this,void 0,void 0,(function(){return Ohe(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;LH(e,i,t.name,a),n("ok")}}}))]}))}))}function lbe(e,t){return xhe(this,void 0,void 0,(function(){var n,r,o,i;return Ohe(this,(function(a){switch(a.label){case 0:return n=function(e){var t=ube.get(e);if(null!=t)return t;var n=sbe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=yj(Dhe(Dhe({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return LH(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){if(Array.isArray(c))c.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;LH(e,r,i,void 0===a?"":a)}));else{var l=c.url,f=void 0===l?"":l,d=c.alt,p=void 0===d?"":d,h=c.href;LH(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),ube.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 fbe(e,t){var n,r;return xhe(this,void 0,void 0,(function(){var o,i,a,u,s,c,l,f,d;return Ohe(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=sbe(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(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)}))}}}(o),p.label=2;case 2:return[4,s.next()];case 3:return(c=p.sent()).done?[3,10]:(l=c.value,f=l.size,u&&f<=u?[4,cbe(e,l)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(l,(function(t,n,r){return LH(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,lbe(e,l)];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]),c&&!c.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 dbe=Hfe([].join),pbe=Kfe!==Object||!Jme("join",",");the({target:"Array",proto:!0,forced:pbe},{join:function(e){return dbe(Jfe(this),void 0===e?",":e)}});var hbe,vbe,gbe=Bfe.RegExp,ybe=Ffe((function(){var e=gbe("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),mbe=ybe||Ffe((function(){return!gbe("a","y").sticky})),bbe={BROKEN_CARET:ybe||Ffe((function(){var e=gbe("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:mbe,UNSUPPORTED_Y:ybe},wbe=Bfe.RegExp,Ebe=Ffe((function(){var e=wbe(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Sbe=Bfe.RegExp,Cbe=Ffe((function(){var e=Sbe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Dbe=xpe.get,xbe=Ode("native-string-replace",String.prototype.replace),Obe=RegExp.prototype.exec,Abe=Obe,kbe=Hfe("".charAt),Bbe=Hfe("".indexOf),Fbe=Hfe("".replace),Tbe=Hfe("".slice),Pbe=(vbe=/b*/g,jfe(Obe,hbe=/a/,"a"),jfe(Obe,vbe,"a"),0!==hbe.lastIndex||0!==vbe.lastIndex),_be=bbe.BROKEN_CARET,jbe=void 0!==/()??/.exec("")[1];(Pbe||jbe||_be||Ebe||Cbe)&&(Abe=function(e){var t,n,r,o,i,a,u,s=this,c=Dbe(s),l=Uye(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=jfe(Abe,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=_be&&s.sticky,h=jfe(Vye,s),v=s.source,g=0,y=l;if(p&&(h=Fbe(h,"y",""),-1===Bbe(h,"g")&&(h+="g"),y=Tbe(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==kbe(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),jbe&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Pbe&&(r=s.lastIndex),o=jfe(Obe,p?n:s,y),p?o?(o.input=Tbe(o.input,g),o[0]=Tbe(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Pbe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),jbe&&o&&o.length>1&&jfe(xbe,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=Mhe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}),the({target:"RegExp",proto:!0,forced:/./.exec!==Abe},{exec:Abe}),xv&&(ov.fn.append=xv),dv&&(ov.fn.on=dv),Tv&&(ov.fn.remove=Tv),fv&&(ov.fn.val=fv),Nv&&(ov.fn.click=Nv),yv&&(ov.fn.hide=yv);var Nbe=function(){function e(){this.title=uN("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 MH(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 LH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=ov("body"),s=ov('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;fbe(e,t)}))}},e}(),Ibe={menus:[{key:"uploadImage",factory:function(){return new Nbe},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(MH(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]}))?fbe(e,o):t(r)}},n}};aN("en",{highLightModule:{selectLang:"Language"}}),aN("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Rbe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Lbe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Mbe,zbe,$be=function(e){return e&&e.Math===Math&&e},Hbe=$be("object"==typeof globalThis&&globalThis)||$be("object"==typeof window&&window)||$be("object"==typeof self&&self)||$be("object"==typeof Rbe&&Rbe)||$be("object"==typeof Rbe&&Rbe)||function(){return this}()||Function("return this")(),Ube=Object.defineProperty,Vbe=function(e,t){try{Ube(Hbe,e,{value:t,configurable:!0,writable:!0})}catch(n){Hbe[e]=t}return t},Wbe=Lbe((function(e){var t="__core-js_shared__",n=e.exports=Hbe[t]||Vbe(t,{});(n.versions||(n.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),qbe=function(e,t){return Wbe[e]||(Wbe[e]=t||{})},Gbe=function(e){try{return!!e()}catch(e){return!0}},Kbe=!Gbe((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Ybe=Function.prototype,Xbe=Ybe.call,Zbe=Kbe&&Ybe.bind.bind(Xbe,Xbe),Jbe=Kbe?Zbe:function(e){return function(){return Xbe.apply(e,arguments)}},Qbe=function(e){return null==e},ewe=TypeError,twe=function(e){if(Qbe(e))throw new ewe("Can't call method on "+e);return e},nwe=Object,rwe=function(e){return nwe(twe(e))},owe=Jbe({}.hasOwnProperty),iwe=Object.hasOwn||function(e,t){return owe(rwe(e),t)},awe=0,uwe=Math.random(),swe=Jbe(1..toString),cwe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+swe(++awe+uwe,36)},lwe=Hbe.navigator,fwe=lwe&&lwe.userAgent,dwe=fwe?String(fwe):"",pwe=Hbe.process,hwe=Hbe.Deno,vwe=pwe&&pwe.versions||hwe&&hwe.version,gwe=vwe&&vwe.v8;gwe&&(zbe=(Mbe=gwe.split("."))[0]>0&&Mbe[0]<4?1:+(Mbe[0]+Mbe[1])),!zbe&&dwe&&(!(Mbe=dwe.match(/Edge\/(\d+)/))||Mbe[1]>=74)&&(Mbe=dwe.match(/Chrome\/(\d+)/))&&(zbe=+Mbe[1]);var ywe=zbe,mwe=Hbe.String,bwe=!!Object.getOwnPropertySymbols&&!Gbe((function(){var e=Symbol("symbol detection");return!mwe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ywe&&ywe<41})),wwe=bwe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ewe=Hbe.Symbol,Swe=qbe("wks"),Cwe=wwe?Ewe.for||Ewe:Ewe&&Ewe.withoutSetter||cwe,Dwe=function(e){return iwe(Swe,e)||(Swe[e]=bwe&&iwe(Ewe,e)?Ewe[e]:Cwe("Symbol."+e)),Swe[e]},xwe={};xwe[Dwe("toStringTag")]="z";var Owe="[object z]"===String(xwe),Awe="object"==typeof document&&document.all,kwe=void 0===Awe&&void 0!==Awe?function(e){return"function"==typeof e||e===Awe}:function(e){return"function"==typeof e},Bwe=!Gbe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Fwe=function(e){return"object"==typeof e?null!==e:kwe(e)},Twe=Hbe.document,Pwe=Fwe(Twe)&&Fwe(Twe.createElement),_we=function(e){return Pwe?Twe.createElement(e):{}},jwe=!Bwe&&!Gbe((function(){return 7!==Object.defineProperty(_we("div"),"a",{get:function(){return 7}}).a})),Nwe=Bwe&&Gbe((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Iwe=String,Rwe=TypeError,Lwe=function(e){if(Fwe(e))return e;throw new Rwe(Iwe(e)+" is not an object")},Mwe=Function.prototype.call,zwe=Kbe?Mwe.bind(Mwe):function(){return Mwe.apply(Mwe,arguments)},$we=function(e,t){return arguments.length<2?(n=Hbe[e],kwe(n)?n:void 0):Hbe[e]&&Hbe[e][t];var n},Hwe=Jbe({}.isPrototypeOf),Uwe=Object,Vwe=wwe?function(e){return"symbol"==typeof e}:function(e){var t=$we("Symbol");return kwe(t)&&Hwe(t.prototype,Uwe(e))},Wwe=String,qwe=TypeError,Gwe=function(e){if(kwe(e))return e;throw new qwe(function(e){try{return Wwe(e)}catch(e){return"Object"}}(e)+" is not a function")},Kwe=TypeError,Ywe=TypeError,Xwe=Dwe("toPrimitive"),Zwe=function(e){var t=function(e,t){if(!Fwe(e)||Vwe(e))return e;var n,r,o=(n=e[Xwe],Qbe(n)?void 0:Gwe(n));if(o){if(void 0===t&&(t="default"),r=zwe(o,e,t),!Fwe(r)||Vwe(r))return r;throw new Ywe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&kwe(n=e.toString)&&!Fwe(r=zwe(n,e)))return r;if(kwe(n=e.valueOf)&&!Fwe(r=zwe(n,e)))return r;if("string"!==t&&kwe(n=e.toString)&&!Fwe(r=zwe(n,e)))return r;throw new Kwe("Can't convert object to primitive value")}(e,t)}(e,"string");return Vwe(t)?t:t+""},Jwe=TypeError,Qwe=Object.defineProperty,eEe=Object.getOwnPropertyDescriptor,tEe="enumerable",nEe="configurable",rEe="writable",oEe={f:Bwe?Nwe?function(e,t,n){if(Lwe(e),t=Zwe(t),Lwe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&rEe in n&&!n[rEe]){var r=eEe(e,t);r&&r[rEe]&&(e[t]=n.value,n={configurable:nEe in n?n[nEe]:r[nEe],enumerable:tEe in n?n[tEe]:r[tEe],writable:!1})}return Qwe(e,t,n)}:Qwe:function(e,t,n){if(Lwe(e),t=Zwe(t),Lwe(n),jwe)try{return Qwe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Jwe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},iEe=Function.prototype,aEe=Bwe&&Object.getOwnPropertyDescriptor,uEe=iwe(iEe,"name"),sEe={EXISTS:uEe,PROPER:uEe&&"something"===function(){}.name,CONFIGURABLE:uEe&&(!Bwe||Bwe&&aEe(iEe,"name").configurable)},cEe=Jbe(Function.toString);kwe(Wbe.inspectSource)||(Wbe.inspectSource=function(e){return cEe(e)});var lEe,fEe,dEe,pEe=Wbe.inspectSource,hEe=Hbe.WeakMap,vEe=kwe(hEe)&&/native code/.test(String(hEe)),gEe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},yEe=Bwe?function(e,t,n){return oEe.f(e,t,gEe(1,n))}:function(e,t,n){return e[t]=n,e},mEe=qbe("keys"),bEe=function(e){return mEe[e]||(mEe[e]=cwe(e))},wEe={},EEe="Object already initialized",SEe=Hbe.TypeError,CEe=Hbe.WeakMap;if(vEe||Wbe.state){var DEe=Wbe.state||(Wbe.state=new CEe);DEe.get=DEe.get,DEe.has=DEe.has,DEe.set=DEe.set,lEe=function(e,t){if(DEe.has(e))throw new SEe(EEe);return t.facade=e,DEe.set(e,t),t},fEe=function(e){return DEe.get(e)||{}},dEe=function(e){return DEe.has(e)}}else{var xEe=bEe("state");wEe[xEe]=!0,lEe=function(e,t){if(iwe(e,xEe))throw new SEe(EEe);return t.facade=e,yEe(e,xEe,t),t},fEe=function(e){return iwe(e,xEe)?e[xEe]:{}},dEe=function(e){return iwe(e,xEe)}}var OEe={set:lEe,get:fEe,has:dEe,enforce:function(e){return dEe(e)?fEe(e):lEe(e,{})},getterFor:function(e){return function(t){var n;if(!Fwe(t)||(n=fEe(t)).type!==e)throw new SEe("Incompatible receiver, "+e+" required");return n}}},AEe=Lbe((function(e){var t=sEe.CONFIGURABLE,n=OEe.enforce,r=OEe.get,o=String,i=Object.defineProperty,a=Jbe("".slice),u=Jbe("".replace),s=Jbe([].join),c=Bwe&&!Gbe((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!iwe(e,"name")||t&&e.name!==r)&&(Bwe?i(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&iwe(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&iwe(f,"constructor")&&f.constructor?Bwe&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return iwe(d,"source")||(d.source=s(l,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return kwe(this)&&r(this).source||pEe(this)}),"toString")})),kEe=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(kwe(n)&&AEe(n,i,r),r.global)o?e[t]=n:Vbe(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:oEe.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},BEe=Jbe({}.toString),FEe=Jbe("".slice),TEe=function(e){return FEe(BEe(e),8,-1)},PEe=Dwe("toStringTag"),_Ee=Object,jEe="Arguments"===TEe(function(){return arguments}()),NEe=Owe?TEe: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=_Ee(e),PEe))?n:jEe?TEe(t):"Object"===(r=TEe(t))&&kwe(t.callee)?"Arguments":r},IEe=Owe?{}.toString:function(){return"[object "+NEe(this)+"]"};Owe||kEe(Object.prototype,"toString",IEe,{unsafe:!0});var REe={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},LEe=_we("span").classList,MEe=LEe&&LEe.constructor&&LEe.constructor.prototype,zEe=MEe===Object.prototype?void 0:MEe,$Ee=function(e){if("Function"===TEe(e))return Jbe(e)},HEe=$Ee($Ee.bind),UEe=Object,VEe=Jbe("".split),WEe=Gbe((function(){return!UEe("z").propertyIsEnumerable(0)}))?function(e){return"String"===TEe(e)?VEe(e,""):UEe(e)}:UEe,qEe=Math.ceil,GEe=Math.floor,KEe=Math.trunc||function(e){var t=+e;return(t>0?GEe:qEe)(t)},YEe=function(e){var t=+e;return t!=t||0===t?0:KEe(t)},XEe=Math.min,ZEe=function(e){return t=e.length,(n=YEe(t))>0?XEe(n,9007199254740991):0;var t,n},JEe=Array.isArray||function(e){return"Array"===TEe(e)},QEe=function(){},eSe=$we("Reflect","construct"),tSe=/^\s*(?:class|function)\b/,nSe=Jbe(tSe.exec),rSe=!tSe.test(QEe),oSe=function(e){if(!kwe(e))return!1;try{return eSe(QEe,[],e),!0}catch(e){return!1}},iSe=function(e){if(!kwe(e))return!1;switch(NEe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return rSe||!!nSe(tSe,pEe(e))}catch(e){return!0}};iSe.sham=!0;var aSe,uSe=!eSe||Gbe((function(){var e;return oSe(oSe.call)||!oSe(Object)||!oSe((function(){e=!0}))||e}))?iSe:oSe,sSe=Dwe("species"),cSe=Array,lSe=function(e,t){return new(function(e){var t;return JEe(e)&&(t=e.constructor,(uSe(t)&&(t===cSe||JEe(t.prototype))||Fwe(t)&&null===(t=t[sSe]))&&(t=void 0)),void 0===t?cSe:t}(e))(0===t?0:t)},fSe=Jbe([].push),dSe=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,c,l,f){for(var d,p,h=rwe(s),v=WEe(h),g=ZEe(v),y=function(e,t){return Gwe(e),void 0===t?e:Kbe?HEe(e,t):function(){return e.apply(t,arguments)}}(c,l),m=0,b=f||lSe,w=t?b(s,g):n||a?b(s,0):void 0;g>m;m++)if((u||m in v)&&(p=y(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:fSe(w,d)}else switch(e){case 4:return!1;case 7:fSe(w,d)}return i?-1:r||o?o:w}},pSe=[dSe(0),dSe(1),dSe(2),dSe(3),dSe(4),dSe(5),dSe(6),dSe(7)][0],hSe=(aSe=[].forEach)&&Gbe((function(){aSe.call(null,(function(){return 1}),1)}))?[].forEach:function(e){return pSe(this,e,arguments.length>1?arguments[1]:void 0)},vSe=function(e){if(e&&e.forEach!==hSe)try{yEe(e,"forEach",hSe)}catch(t){e.forEach=hSe}};for(var gSe in REe)REe[gSe]&&vSe(Hbe[gSe]&&Hbe[gSe].prototype);vSe(zEe);var ySe={}.propertyIsEnumerable,mSe=Object.getOwnPropertyDescriptor,bSe={f:mSe&&!ySe.call({1:2},1)?function(e){var t=mSe(this,e);return!!t&&t.enumerable}:ySe},wSe=function(e){return WEe(twe(e))},ESe=Object.getOwnPropertyDescriptor,SSe={f:Bwe?ESe:function(e,t){if(e=wSe(e),t=Zwe(t),jwe)try{return ESe(e,t)}catch(e){}if(iwe(e,t))return gEe(!zwe(bSe.f,e,t),e[t])}},CSe=Math.max,DSe=Math.min,xSe=function(e){return function(t,n,r){var o=wSe(t),i=ZEe(o);if(0===i)return!e&&-1;var a,u=function(e,t){var n=YEe(e);return n<0?CSe(n+t,0):DSe(n,t)}(r,i);if(e&&n!=n){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}}(!1),OSe=Jbe([].push),ASe=function(e,t){var n,r=wSe(e),o=0,i=[];for(n in r)!iwe(wEe,n)&&iwe(r,n)&&OSe(i,n);for(;t.length>o;)iwe(r,n=t[o++])&&(~xSe(i,n)||OSe(i,n));return i},kSe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],BSe=kSe.concat("length","prototype"),FSe={f:Object.getOwnPropertyNames||function(e){return ASe(e,BSe)}},TSe={f:Object.getOwnPropertySymbols},PSe=Jbe([].concat),_Se=$we("Reflect","ownKeys")||function(e){var t=FSe.f(Lwe(e)),n=TSe.f;return n?PSe(t,n(e)):t},jSe=function(e,t,n){for(var r=_Se(t),o=oEe.f,i=SSe.f,a=0;a<r.length;a++){var u=r[a];iwe(e,u)||n&&iwe(n,u)||o(e,u,i(t,u))}},NSe=/#|\.prototype\./,ISe=function(e,t){var n=LSe[RSe(e)];return n===zSe||n!==MSe&&(kwe(t)?Gbe(t):!!t)},RSe=ISe.normalize=function(e){return String(e).replace(NSe,".").toLowerCase()},LSe=ISe.data={},MSe=ISe.NATIVE="N",zSe=ISe.POLYFILL="P",$Se=ISe,HSe=SSe.f,USe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Hbe:c?Hbe[u]||Vbe(u,{}):Hbe[u]&&Hbe[u].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=HSe(n,r))&&a.value:n[r],!$Se(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jSe(i,o)}(e.sham||o&&o.sham)&&yEe(i,"sham",!0),kEe(n,r,i,e)}},VSe=Object.keys||function(e){return ASe(e,kSe)},WSe=Object.assign,qSe=Object.defineProperty,GSe=Jbe([].concat),KSe=!WSe||Gbe((function(){if(Bwe&&1!==WSe({b:1},WSe(qSe({},"a",{enumerable:!0,get:function(){qSe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==WSe({},e)[n]||VSe(WSe({},t)).join("")!==r}))?function(e,t){for(var n=rwe(e),r=arguments.length,o=1,i=TSe.f,a=bSe.f;r>o;)for(var u,s=WEe(arguments[o++]),c=i?GSe(VSe(s),i(s)):VSe(s),l=c.length,f=0;l>f;)u=c[f++],Bwe&&!zwe(a,s,u)||(n[u]=s[u]);return n}:WSe;USe({target:"Object",stat:!0,arity:2,forced:Object.assign!==KSe},{assign:KSe});var YSe=Lbe((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 c=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===c&&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],c=o.util.type(s);"Object"!==c||i[a(s)]?"Array"!==c||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 c(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 l=new Worker(o.filename);l.onmessage=function(e){c(e.data)},l.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(o.highlight(s.code,s.grammar,s.language));else c(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 c(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 w=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,w+"g")}for(var E=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 x,O=1;if(m){if(!(x=a(E,C,e,y))||x.index>=e.length)break;var A=x.index,k=x.index+x[0].length,B=C;for(B+=S.value.length;A>=B;)B+=(S=S.next).value.length;if(C=B-=S.value.length,S.value instanceof i)continue;for(var F=S;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)O++,B+=F.value.length;O--,D=e.slice(C,B),x.index-=C}else if(!(x=a(E,0,D,y)))continue;A=x.index;var T=x[0],P=D.slice(0,A),_=D.slice(A+T.length),j=C+D.length;f&&j>f.reach&&(f.reach=j);var N=S.prev;if(P&&(N=c(t,N,P),C+=P.length),l(t,N,O),S=c(t,N,new i(d,g?o.tokenize(T,g):T,b,T)),_&&c(t,S,_),O>1){var I={cause:d+","+h,reach:j};u(e,t,n,S.prev,C,I),f&&I.reach>f.reach&&(f.reach=I.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 c(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 l(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:{});
|
126
|
+
/**
|
127
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
128
|
+
*
|
129
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
130
|
+
* @author Lea Verou <https://lea.verou.me>
|
131
|
+
* @namespace
|
132
|
+
* @public
|
133
|
+
*/e.exports&&(e.exports=t),void 0!==Rbe&&(Rbe.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 c=u.getAttribute("data-src"),l=a.language;if("none"===l){var f=(/\.(\w+)$/.exec(c)||[,"none"])[1];l=e[f]||f}t.util.setLanguage(s,l),t.util.setLanguage(u,l);var d=t.plugins.autoloader;d&&d.loadLanguages(l),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)}(c,(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],c=null==r[1]?i.length:r[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(a,c).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:/![sra](?=[:}]$)/,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 c=s(i),l=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]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),C={keyword:l,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,x=/"(?:\\.|[^\\"\r\n])*"/.source,O=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[x]),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,[c,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:l,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,[c,g,v,S,l.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:l,"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 A=x+"|"+D,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[A]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,_=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[_,P]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[A]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,P]);function R(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,P]),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,[j]),lookbehind:!0,greedy:!0,inside:R(j,_)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:R(I,N)}],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],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var l=e.languages[n];if(l)t.content=e.highlight(function(e){return e.replace(a,"").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),l,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);var XSe=["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 ZSe(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+ZSe(t)}),0)}USe({global:!0,forced:Hbe.globalThis!==Hbe},{globalThis:Hbe}),sv&&(ov.fn.attr=sv);var JSe,QSe=String,eCe=function(e){if("Symbol"===NEe(e))throw new TypeError("Cannot convert a Symbol value to a string");return QSe(e)},tCe=function(){var e=Lwe(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},nCe=Hbe.RegExp,rCe=Gbe((function(){var e=nCe("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),oCe=rCe||Gbe((function(){return!nCe("a","y").sticky})),iCe={BROKEN_CARET:rCe||Gbe((function(){var e=nCe("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:oCe,UNSUPPORTED_Y:rCe},aCe=Bwe&&!Nwe?Object.defineProperties:function(e,t){Lwe(e);for(var n,r=wSe(t),o=VSe(t),i=o.length,a=0;i>a;)oEe.f(e,n=o[a++],r[n]);return e},uCe={f:aCe},sCe=$we("document","documentElement"),cCe="prototype",lCe="script",fCe=bEe("IE_PROTO"),dCe=function(){},pCe=function(e){return"<script>"+e+"</"+lCe+">"},hCe=function(e){e.write(pCe("")),e.close();var t=e.parentWindow.Object;return e=null,t},vCe=function(){try{JSe=new ActiveXObject("htmlfile")}catch(e){}var e,t;vCe="undefined"!=typeof document?document.domain&&JSe?hCe(JSe):("javascript:",(t=_we("iframe")).style.display="none",sCe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(pCe("document.F=Object")),e.close(),e.F):hCe(JSe);for(var n=kSe.length;n--;)delete vCe[cCe][kSe[n]];return vCe()};wEe[fCe]=!0;var gCe,yCe,mCe=Object.create||function(e,t){var n;return null!==e?(dCe[cCe]=Lwe(e),n=new dCe,dCe[cCe]=null,n[fCe]=e):n=vCe(),void 0===t?n:uCe.f(n,t)},bCe=Hbe.RegExp,wCe=Gbe((function(){var e=bCe(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),ECe=Hbe.RegExp,SCe=Gbe((function(){var e=ECe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),CCe=OEe.get,DCe=qbe("native-string-replace",String.prototype.replace),xCe=RegExp.prototype.exec,OCe=xCe,ACe=Jbe("".charAt),kCe=Jbe("".indexOf),BCe=Jbe("".replace),FCe=Jbe("".slice),TCe=(yCe=/b*/g,zwe(xCe,gCe=/a/,"a"),zwe(xCe,yCe,"a"),0!==gCe.lastIndex||0!==yCe.lastIndex),PCe=iCe.BROKEN_CARET,_Ce=void 0!==/()??/.exec("")[1];(TCe||_Ce||PCe||wCe||SCe)&&(OCe=function(e){var t,n,r,o,i,a,u,s=this,c=CCe(s),l=eCe(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=zwe(OCe,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=PCe&&s.sticky,h=zwe(tCe,s),v=s.source,g=0,y=l;if(p&&(h=BCe(h,"y",""),-1===kCe(h,"g")&&(h+="g"),y=FCe(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==ACe(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),_Ce&&(n=new RegExp("^"+v+"$(?!\\s)",h)),TCe&&(r=s.lastIndex),o=zwe(xCe,p?n:s,y),p?o?(o.input=FCe(o.input,g),o[0]=FCe(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:TCe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),_Ce&&o&&o.length>1&&zwe(DCe,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=mCe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}),USe({target:"RegExp",proto:!0,forced:/./.exec!==OCe},{exec:OCe});var jCe=RegExp.prototype,NCe=sEe.PROPER,ICe="toString",RCe=RegExp.prototype,LCe=RCe[ICe],MCe=Gbe((function(){return"/a/b"!==LCe.call({source:"a",flags:"b"})})),zCe=NCe&&LCe.name!==ICe;(MCe||zCe)&&kEe(RCe,ICe,(function(){var e=Lwe(this),t=eCe(e.source),n=eCe(function(e){var t=e.flags;return void 0!==t||"flags"in jCe||iwe(e,"flags")||!Hwe(jCe,e)?t:zwe(tCe,e)}(e));return"/"+t+"/"+n}),{unsafe:!0});var $Ce=function(){function e(){this.title=uN("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(!Md.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()};_p.setNodes(e,n,{match:function(e){return rT.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=rT.getSelectedNodeByType(e,"code");if(null==t)return null;var n=rT.getParentNode(e,t);return Md.isElement(n)?"pre"!==n.type?null:t:null},e}(),HCe={renderStyle:function(e,t){var n=e,r=t,o="";return XSe.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=ov(e);if(!Md.isElement(t))return t;if("code"!==rT.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 $Ce},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},UCe=/"/g,VCe=Jbe("".replace);USe({target:"String",proto:!0,forced:Gbe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=eCe(twe(this)),r="<a",(r+=' name="'+VCe(eCe(t),UCe,""")+'"')+">"+n+"</a>";var t,n,r}});var WCe=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(!vp.isText(e))return null;var t=rT.getParentNode(null,e);if(t&&"code"===rT.getNodeType(t)){var n=rT.getParentNode(null,t);if(n&&"pre"===rT.getNodeType(n))return t}return null}(i);if(null==s)return u;var c=s.language,l=void 0===c?"":c;if(!l)return u;var f=function(e,t){if(!t)return[];var n=YSe.languages[t];return n?YSe.tokenize(e.text,n):[]}(i,l),d=0;try{for(var p=
|
134
|
+
/*! *****************************************************************************
|
135
|
+
Copyright (c) Microsoft Corporation.
|
136
|
+
|
137
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
138
|
+
purpose with or without fee is hereby granted.
|
139
|
+
|
140
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
141
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
142
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
143
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
144
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
145
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
146
|
+
PERFORMANCE OF THIS SOFTWARE.
|
147
|
+
***************************************************************************** */
|
148
|
+
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+ZSe(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},qCe=function(){return qCe=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},qCe.apply(this,arguments)},GCe=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=qCe(qCe({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=qCe(qCe({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=qCe(qCe({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=qCe(qCe({},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=dA(dA({},o),t||{});if(null!=aT[n])throw new Error("Duplicated key '"+n+"' in menu items");aT[n]=r,function(e,t){null!=t&&(iT[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;a_[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){i_.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;mT[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){yT.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){xT.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;AT[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){OT.push(e)}(e)},e.registerModule=function(e){KCe(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
|
149
|
+
/*! *****************************************************************************
|
150
|
+
Copyright (c) Microsoft Corporation.
|
151
|
+
|
152
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
153
|
+
purpose with or without fee is hereby granted.
|
154
|
+
|
155
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
156
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
157
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
158
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
159
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
160
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
161
|
+
PERFORMANCE OF THIS SOFTWARE.
|
162
|
+
***************************************************************************** */function KCe(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,c=e.editorPlugin;t&&t.forEach((function(e){return GCe.registerMenu(e)})),n&&n.forEach((function(e){return GCe.registerRenderElem(e)})),r&&GCe.registerRenderStyle(r),o&&o.forEach((function(e){return GCe.registerElemToHtml(e)})),i&&GCe.registerStyleToHtml(i),a&&a.forEach((function(e){return GCe.registerPreParseHtml(e)})),u&&u.forEach((function(e){return GCe.registerParseElemHtml(e)})),s&&GCe.registerParseStyleHtml(s),c&&GCe.registerPlugin(c)}vX.forEach((function(e){return KCe(e)})),KCe(i4),KCe(gne),KCe(Cfe),KCe(Ibe),KCe(HCe);var YCe='<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>',XCe={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},ZCe={hoverbarKeys:qCe(qCe({},XCe),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};GCe.setEditorConfig(qCe(qCe({},ZCe),{decorate:WCe}));var JCe={hoverbarKeys:XCe};GCe.setSimpleEditorConfig(qCe(qCe({},JCe),{decorate:WCe}));var QCe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:uN("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:uN("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:uN("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:uN("editor.image"),iconSvg:YCe,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:uN("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"]};GCe.setToolbarConfig(QCe);var eDe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:uN("editor.image"),iconSvg:YCe,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function tDe(e){var t="请使用 '@".concat(e,"' 事件,不要放在 props 中");return t+="\nPlease use '@".concat(e,"' event instead of props")}GCe.setSimpleToolbarConfig(eDe);var nDe=r.default.extend({render:function(e){return e("div",{ref:"box"})},name:"Editor",data:function(){return{curValue:"",editor:null}},props:["defaultContent","defaultConfig","mode","defaultHtml","value"],mounted:function(){this.create()},watch:{value:function(e){e===this.curValue||this.setHtml(e)}},methods:{setHtml:function(e){var t=this.editor;null!=t&&t.setHtml(e)},create:function(){var e=this;if(null!=this.$refs.box){var t=this.defaultConfig||{},n=JSON.stringify(Array.isArray(this.defaultContent)?this.defaultContent:[]);!function(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,c="simple"===(void 0===s?"default":s)?GCe.simpleEditorConfig:GCe.editorConfig,l=qCe(qCe({},c.hoverbarKeys||{}),u.hoverbarKeys||{});tj({selector:n,config:qCe(qCe(qCe({},c),u),{hoverbarKeys:l}),content:o,html:i,plugins:GCe.plugins})}({selector:this.$refs.box,html:this.defaultHtml||this.value||"",config:o(o({},t),{onCreated:function(n){if(e.editor=Object.seal(n),e.$emit("onCreated",n),t.onCreated){var r=tDe("onCreated");throw new Error(r)}},onChange:function(n){var r=n.getHtml();if(e.curValue=r,e.$emit("input",r),e.$emit("onChange",n),t.onChange){var o=tDe("onChange");throw new Error(o)}},onDestroyed:function(n){if(e.$emit("onDestroyed",n),t.onDestroyed){var r=tDe("onDestroyed");throw new Error(r)}},onMaxLength:function(n){if(e.$emit("onMaxLength",n),t.onMaxLength){var r=tDe("onMaxLength");throw new Error(r)}},onFocus:function(n){if(e.$emit("onFocus",n),t.onFocus){var r=tDe("onFocus");throw new Error(r)}},onBlur:function(n){if(e.$emit("onBlur",n),t.onBlur){var r=tDe("onBlur");throw new Error(r)}},customAlert:function(n,r){if(e.$emit("customAlert",n,r),t.customAlert){var o=tDe("customAlert");throw new Error(o)}},customPaste:function(n,r){if(t.customPaste){var o=tDe("customPaste");throw new Error(o)}var i;return e.$emit("customPaste",n,r,(function(e){i=e})),i}}),content:JSON.parse(n),mode:this.mode||"default"})}}}}),rDe=r.default.extend({name:"Toolbar",render:function(e){return e("div",{ref:"box"})},props:["editor","defaultConfig","mode"],methods:{create:function(e){null!=this.$refs.box&&null!=e&&(rT.getToolbar(e)||function(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?GCe.simpleToolbarConfig:GCe.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 lP(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=dA({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new fj(n,i);return jF.set(a,e),NF.set(e,a),a}(n,{selector:t,config:qCe(qCe({},u),o)})}({editor:e,selector:this.$refs.box,config:this.defaultConfig||{},mode:this.mode||"default"}))}},watch:{editor:{handler:function(e){null!=e&&this.create(e)},immediate:!0}}});e.Editor=nDe,e.Toolbar=rDe,Object.defineProperty(e,"__esModule",{value:!0})}));
|
163
|
+
//# sourceMappingURL=index.js.map
|