@testver/testver 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +36446 -32421
- package/package.json +163 -159
- package/src/ui/static/assets/index-BNXq08Lj.css +7 -0
- package/src/ui/static/assets/{index-DL_XVNNs.js → index-C6AoJ_AR.js} +1 -1
- package/src/ui/static/assets/index-Cr7cD-P1.js +2295 -0
- package/src/ui/static/index.html +2 -2
- package/src/ui/static/assets/index-C11FStSi.js +0 -2269
- package/src/ui/static/assets/index-KHV9xbdD.css +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ho=Object.defineProperty;var zo=(r,t,e)=>t in r?Ho(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var q=(r,t,e)=>zo(r,typeof t!="symbol"?t+"":t,e);import{c as pe,g as Bl,R as Oe,r as qi,j as Ss}from"./index-C11FStSi.js";var Ml=typeof global=="object"&&global&&global.Object===Object&&global,Ko=typeof self=="object"&&self&&self.Object===Object&&self,te=Ml||Ko||Function("return this")(),ve=te.Symbol,Dl=Object.prototype,Go=Dl.hasOwnProperty,Vo=Dl.toString,_n=ve?ve.toStringTag:void 0;function Wo(r){var t=Go.call(r,_n),e=r[_n];try{r[_n]=void 0;var n=!0}catch{}var s=Vo.call(r);return n&&(t?r[_n]=e:delete r[_n]),s}var Zo=Object.prototype,Xo=Zo.toString;function Yo(r){return Xo.call(r)}var Qo="[object Null]",Jo="[object Undefined]",Ci=ve?ve.toStringTag:void 0;function hn(r){return r==null?r===void 0?Jo:Qo:Ci&&Ci in Object(r)?Wo(r):Yo(r)}function le(r){return r!=null&&typeof r=="object"}var qe=Array.isArray;function Ee(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function jl(r){return r}var ta="[object AsyncFunction]",ea="[object Function]",na="[object GeneratorFunction]",ra="[object Proxy]";function hi(r){if(!Ee(r))return!1;var t=hn(r);return t==ea||t==na||t==ta||t==ra}var _s=te["__core-js_shared__"],Ii=(function(){var r=/[^.]+$/.exec(_s&&_s.keys&&_s.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function sa(r){return!!Ii&&Ii in r}var ia=Function.prototype,la=ia.toString;function Re(r){if(r!=null){try{return la.call(r)}catch{}try{return r+""}catch{}}return""}var oa=/[\\^$.*+?()[\]{}|]/g,aa=/^\[object .+?Constructor\]$/,ca=Function.prototype,ua=Object.prototype,ha=ca.toString,fa=ua.hasOwnProperty,da=RegExp("^"+ha.call(fa).replace(oa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ga(r){if(!Ee(r)||sa(r))return!1;var t=hi(r)?da:aa;return t.test(Re(r))}function pa(r,t){return r==null?void 0:r[t]}function ke(r,t){var e=pa(r,t);return ga(e)?e:void 0}var Fs=ke(te,"WeakMap"),Ri=Object.create,ma=(function(){function r(){}return function(t){if(!Ee(t))return{};if(Ri)return Ri(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})();function ba(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}function ya(r,t){var e=-1,n=r.length;for(t||(t=Array(n));++e<n;)t[e]=r[e];return t}var va=800,Ea=16,Aa=Date.now;function Na(r){var t=0,e=0;return function(){var n=Aa(),s=Ea-(n-e);if(e=n,s>0){if(++t>=va)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}function wa(r){return function(){return r}}var Sr=(function(){try{var r=ke(Object,"defineProperty");return r({},"",{}),r}catch{}})(),Ta=Sr?function(r,t){return Sr(r,"toString",{configurable:!0,enumerable:!1,value:wa(t),writable:!0})}:jl,xa=Na(Ta);function La(r,t){for(var e=-1,n=r==null?0:r.length;++e<n&&t(r[e],e,r)!==!1;);return r}var Sa=9007199254740991,_a=/^(?:0|[1-9]\d*)$/;function Pl(r,t){var e=typeof r;return t=t??Sa,!!t&&(e=="number"||e!="symbol"&&_a.test(r))&&r>-1&&r%1==0&&r<t}function fi(r,t,e){t=="__proto__"&&Sr?Sr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}function zn(r,t){return r===t||r!==r&&t!==t}var Oa=Object.prototype,qa=Oa.hasOwnProperty;function $l(r,t,e){var n=r[t];(!(qa.call(r,t)&&zn(n,e))||e===void 0&&!(t in r))&&fi(r,t,e)}function Ca(r,t,e,n){var s=!e;e||(e={});for(var i=-1,o=t.length;++i<o;){var a=t[i],u=void 0;u===void 0&&(u=r[a]),s?fi(e,a,u):$l(e,a,u)}return e}var ki=Math.max;function Ia(r,t,e){return t=ki(t===void 0?r.length-1:t,0),function(){for(var n=arguments,s=-1,i=ki(n.length-t,0),o=Array(i);++s<i;)o[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=e(o),ba(r,this,a)}}function Ra(r,t){return xa(Ia(r,t,jl),r+"")}var ka=9007199254740991;function Ul(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ka}function Cr(r){return r!=null&&Ul(r.length)&&!hi(r)}function Ba(r,t,e){if(!Ee(e))return!1;var n=typeof t;return(n=="number"?Cr(e)&&Pl(t,e.length):n=="string"&&t in e)?zn(e[t],r):!1}function Ma(r){return Ra(function(t,e){var n=-1,s=e.length,i=s>1?e[s-1]:void 0,o=s>2?e[2]:void 0;for(i=r.length>3&&typeof i=="function"?(s--,i):void 0,o&&Ba(e[0],e[1],o)&&(i=s<3?void 0:i,s=1),t=Object(t);++n<s;){var a=e[n];a&&r(t,a,n,i)}return t})}var Da=Object.prototype;function di(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Da;return r===e}function ja(r,t){for(var e=-1,n=Array(r);++e<r;)n[e]=t(e);return n}var Pa="[object Arguments]";function Bi(r){return le(r)&&hn(r)==Pa}var Fl=Object.prototype,$a=Fl.hasOwnProperty,Ua=Fl.propertyIsEnumerable,Hs=Bi((function(){return arguments})())?Bi:function(r){return le(r)&&$a.call(r,"callee")&&!Ua.call(r,"callee")};function Fa(){return!1}var Hl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mi=Hl&&typeof module=="object"&&module&&!module.nodeType&&module,Ha=Mi&&Mi.exports===Hl,Di=Ha?te.Buffer:void 0,za=Di?Di.isBuffer:void 0,Dn=za||Fa,Ka="[object Arguments]",Ga="[object Array]",Va="[object Boolean]",Wa="[object Date]",Za="[object Error]",Xa="[object Function]",Ya="[object Map]",Qa="[object Number]",Ja="[object Object]",tc="[object RegExp]",ec="[object Set]",nc="[object String]",rc="[object WeakMap]",sc="[object ArrayBuffer]",ic="[object DataView]",lc="[object Float32Array]",oc="[object Float64Array]",ac="[object Int8Array]",cc="[object Int16Array]",uc="[object Int32Array]",hc="[object Uint8Array]",fc="[object Uint8ClampedArray]",dc="[object Uint16Array]",gc="[object Uint32Array]",lt={};lt[lc]=lt[oc]=lt[ac]=lt[cc]=lt[uc]=lt[hc]=lt[fc]=lt[dc]=lt[gc]=!0;lt[Ka]=lt[Ga]=lt[sc]=lt[Va]=lt[ic]=lt[Wa]=lt[Za]=lt[Xa]=lt[Ya]=lt[Qa]=lt[Ja]=lt[tc]=lt[ec]=lt[nc]=lt[rc]=!1;function pc(r){return le(r)&&Ul(r.length)&&!!lt[hn(r)]}function gi(r){return function(t){return r(t)}}var zl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rn=zl&&typeof module=="object"&&module&&!module.nodeType&&module,mc=Rn&&Rn.exports===zl,Os=mc&&Ml.process,ln=(function(){try{var r=Rn&&Rn.require&&Rn.require("util").types;return r||Os&&Os.binding&&Os.binding("util")}catch{}})(),ji=ln&&ln.isTypedArray,pi=ji?gi(ji):pc,bc=Object.prototype,yc=bc.hasOwnProperty;function Kl(r,t){var e=qe(r),n=!e&&Hs(r),s=!e&&!n&&Dn(r),i=!e&&!n&&!s&&pi(r),o=e||n||s||i,a=o?ja(r.length,String):[],u=a.length;for(var h in r)(t||yc.call(r,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Pl(h,u)))&&a.push(h);return a}function Gl(r,t){return function(e){return r(t(e))}}var vc=Gl(Object.keys,Object),Ec=Object.prototype,Ac=Ec.hasOwnProperty;function Nc(r){if(!di(r))return vc(r);var t=[];for(var e in Object(r))Ac.call(r,e)&&e!="constructor"&&t.push(e);return t}function wc(r){return Cr(r)?Kl(r):Nc(r)}function Tc(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var xc=Object.prototype,Lc=xc.hasOwnProperty;function Sc(r){if(!Ee(r))return Tc(r);var t=di(r),e=[];for(var n in r)n=="constructor"&&(t||!Lc.call(r,n))||e.push(n);return e}function Vl(r){return Cr(r)?Kl(r,!0):Sc(r)}var jn=ke(Object,"create");function _c(){this.__data__=jn?jn(null):{},this.size=0}function Oc(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var qc="__lodash_hash_undefined__",Cc=Object.prototype,Ic=Cc.hasOwnProperty;function Rc(r){var t=this.__data__;if(jn){var e=t[r];return e===qc?void 0:e}return Ic.call(t,r)?t[r]:void 0}var kc=Object.prototype,Bc=kc.hasOwnProperty;function Mc(r){var t=this.__data__;return jn?t[r]!==void 0:Bc.call(t,r)}var Dc="__lodash_hash_undefined__";function jc(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=jn&&t===void 0?Dc:t,this}function Ce(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Ce.prototype.clear=_c;Ce.prototype.delete=Oc;Ce.prototype.get=Rc;Ce.prototype.has=Mc;Ce.prototype.set=jc;function Pc(){this.__data__=[],this.size=0}function Ir(r,t){for(var e=r.length;e--;)if(zn(r[e][0],t))return e;return-1}var $c=Array.prototype,Uc=$c.splice;function Fc(r){var t=this.__data__,e=Ir(t,r);if(e<0)return!1;var n=t.length-1;return e==n?t.pop():Uc.call(t,e,1),--this.size,!0}function Hc(r){var t=this.__data__,e=Ir(t,r);return e<0?void 0:t[e][1]}function zc(r){return Ir(this.__data__,r)>-1}function Kc(r,t){var e=this.__data__,n=Ir(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this}function ce(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}ce.prototype.clear=Pc;ce.prototype.delete=Fc;ce.prototype.get=Hc;ce.prototype.has=zc;ce.prototype.set=Kc;var Pn=ke(te,"Map");function Gc(){this.size=0,this.__data__={hash:new Ce,map:new(Pn||ce),string:new Ce}}function Vc(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function Rr(r,t){var e=r.__data__;return Vc(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Wc(r){var t=Rr(this,r).delete(r);return this.size-=t?1:0,t}function Zc(r){return Rr(this,r).get(r)}function Xc(r){return Rr(this,r).has(r)}function Yc(r,t){var e=Rr(this,r),n=e.size;return e.set(r,t),this.size+=e.size==n?0:1,this}function Be(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Be.prototype.clear=Gc;Be.prototype.delete=Wc;Be.prototype.get=Zc;Be.prototype.has=Xc;Be.prototype.set=Yc;function Qc(r,t){for(var e=-1,n=t.length,s=r.length;++e<n;)r[s+e]=t[e];return r}var Wl=Gl(Object.getPrototypeOf,Object),Jc="[object Object]",tu=Function.prototype,eu=Object.prototype,Zl=tu.toString,nu=eu.hasOwnProperty,ru=Zl.call(Object);function su(r){if(!le(r)||hn(r)!=Jc)return!1;var t=Wl(r);if(t===null)return!0;var e=nu.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Zl.call(e)==ru}function iu(){this.__data__=new ce,this.size=0}function lu(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}function ou(r){return this.__data__.get(r)}function au(r){return this.__data__.has(r)}var cu=200;function uu(r,t){var e=this.__data__;if(e instanceof ce){var n=e.__data__;if(!Pn||n.length<cu-1)return n.push([r,t]),this.size=++e.size,this;e=this.__data__=new Be(n)}return e.set(r,t),this.size=e.size,this}function Xt(r){var t=this.__data__=new ce(r);this.size=t.size}Xt.prototype.clear=iu;Xt.prototype.delete=lu;Xt.prototype.get=ou;Xt.prototype.has=au;Xt.prototype.set=uu;var Xl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pi=Xl&&typeof module=="object"&&module&&!module.nodeType&&module,hu=Pi&&Pi.exports===Xl,$i=hu?te.Buffer:void 0,Ui=$i?$i.allocUnsafe:void 0;function Yl(r,t){if(t)return r.slice();var e=r.length,n=Ui?Ui(e):new r.constructor(e);return r.copy(n),n}function fu(r,t){for(var e=-1,n=r==null?0:r.length,s=0,i=[];++e<n;){var o=r[e];t(o,e,r)&&(i[s++]=o)}return i}function du(){return[]}var gu=Object.prototype,pu=gu.propertyIsEnumerable,Fi=Object.getOwnPropertySymbols,mu=Fi?function(r){return r==null?[]:(r=Object(r),fu(Fi(r),function(t){return pu.call(r,t)}))}:du;function bu(r,t,e){var n=t(r);return qe(r)?n:Qc(n,e(r))}function zs(r){return bu(r,wc,mu)}var Ks=ke(te,"DataView"),Gs=ke(te,"Promise"),Vs=ke(te,"Set"),Hi="[object Map]",yu="[object Object]",zi="[object Promise]",Ki="[object Set]",Gi="[object WeakMap]",Vi="[object DataView]",vu=Re(Ks),Eu=Re(Pn),Au=Re(Gs),Nu=Re(Vs),wu=Re(Fs),jt=hn;(Ks&&jt(new Ks(new ArrayBuffer(1)))!=Vi||Pn&&jt(new Pn)!=Hi||Gs&&jt(Gs.resolve())!=zi||Vs&&jt(new Vs)!=Ki||Fs&&jt(new Fs)!=Gi)&&(jt=function(r){var t=hn(r),e=t==yu?r.constructor:void 0,n=e?Re(e):"";if(n)switch(n){case vu:return Vi;case Eu:return Hi;case Au:return zi;case Nu:return Ki;case wu:return Gi}return t});var Tu=Object.prototype,xu=Tu.hasOwnProperty;function Lu(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&xu.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var _r=te.Uint8Array;function mi(r){var t=new r.constructor(r.byteLength);return new _r(t).set(new _r(r)),t}function Su(r,t){var e=mi(r.buffer);return new r.constructor(e,r.byteOffset,r.byteLength)}var _u=/\w*$/;function Ou(r){var t=new r.constructor(r.source,_u.exec(r));return t.lastIndex=r.lastIndex,t}var Wi=ve?ve.prototype:void 0,Zi=Wi?Wi.valueOf:void 0;function qu(r){return Zi?Object(Zi.call(r)):{}}function Ql(r,t){var e=t?mi(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var Cu="[object Boolean]",Iu="[object Date]",Ru="[object Map]",ku="[object Number]",Bu="[object RegExp]",Mu="[object Set]",Du="[object String]",ju="[object Symbol]",Pu="[object ArrayBuffer]",$u="[object DataView]",Uu="[object Float32Array]",Fu="[object Float64Array]",Hu="[object Int8Array]",zu="[object Int16Array]",Ku="[object Int32Array]",Gu="[object Uint8Array]",Vu="[object Uint8ClampedArray]",Wu="[object Uint16Array]",Zu="[object Uint32Array]";function Xu(r,t,e){var n=r.constructor;switch(t){case Pu:return mi(r);case Cu:case Iu:return new n(+r);case $u:return Su(r);case Uu:case Fu:case Hu:case zu:case Ku:case Gu:case Vu:case Wu:case Zu:return Ql(r,e);case Ru:return new n;case ku:case Du:return new n(r);case Bu:return Ou(r);case Mu:return new n;case ju:return qu(r)}}function Jl(r){return typeof r.constructor=="function"&&!di(r)?ma(Wl(r)):{}}var Yu="[object Map]";function Qu(r){return le(r)&&jt(r)==Yu}var Xi=ln&&ln.isMap,Ju=Xi?gi(Xi):Qu,th="[object Set]";function eh(r){return le(r)&&jt(r)==th}var Yi=ln&&ln.isSet,nh=Yi?gi(Yi):eh,rh=1,to="[object Arguments]",sh="[object Array]",ih="[object Boolean]",lh="[object Date]",oh="[object Error]",eo="[object Function]",ah="[object GeneratorFunction]",ch="[object Map]",uh="[object Number]",no="[object Object]",hh="[object RegExp]",fh="[object Set]",dh="[object String]",gh="[object Symbol]",ph="[object WeakMap]",mh="[object ArrayBuffer]",bh="[object DataView]",yh="[object Float32Array]",vh="[object Float64Array]",Eh="[object Int8Array]",Ah="[object Int16Array]",Nh="[object Int32Array]",wh="[object Uint8Array]",Th="[object Uint8ClampedArray]",xh="[object Uint16Array]",Lh="[object Uint32Array]",st={};st[to]=st[sh]=st[mh]=st[bh]=st[ih]=st[lh]=st[yh]=st[vh]=st[Eh]=st[Ah]=st[Nh]=st[ch]=st[uh]=st[no]=st[hh]=st[fh]=st[dh]=st[gh]=st[wh]=st[Th]=st[xh]=st[Lh]=!0;st[oh]=st[eo]=st[ph]=!1;function Tr(r,t,e,n,s,i){var o,a=t&rh;if(o!==void 0)return o;if(!Ee(r))return r;var u=qe(r);if(u)o=Lu(r);else{var h=jt(r),p=h==eo||h==ah;if(Dn(r))return Yl(r,a);if(h==no||h==to||p&&!s)o=p?{}:Jl(r);else{if(!st[h])return s?r:{};o=Xu(r,h,a)}}i||(i=new Xt);var v=i.get(r);if(v)return v;i.set(r,o),nh(r)?r.forEach(function(y){o.add(Tr(y,t,e,y,r,i))}):Ju(r)&&r.forEach(function(y,A){o.set(A,Tr(y,t,e,A,r,i))});var f=zs,m=u?void 0:f(r);return La(m||r,function(y,A){m&&(A=y,y=r[A]),$l(o,A,Tr(y,t,e,A,r,i))}),o}var Sh=1,_h=4;function nn(r){return Tr(r,Sh|_h)}var Oh="__lodash_hash_undefined__";function qh(r){return this.__data__.set(r,Oh),this}function Ch(r){return this.__data__.has(r)}function Or(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new Be;++t<e;)this.add(r[t])}Or.prototype.add=Or.prototype.push=qh;Or.prototype.has=Ch;function Ih(r,t){for(var e=-1,n=r==null?0:r.length;++e<n;)if(t(r[e],e,r))return!0;return!1}function Rh(r,t){return r.has(t)}var kh=1,Bh=2;function ro(r,t,e,n,s,i){var o=e&kh,a=r.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var h=i.get(r),p=i.get(t);if(h&&p)return h==t&&p==r;var v=-1,f=!0,m=e&Bh?new Or:void 0;for(i.set(r,t),i.set(t,r);++v<a;){var y=r[v],A=t[v];if(n)var w=o?n(A,y,v,t,r,i):n(y,A,v,r,t,i);if(w!==void 0){if(w)continue;f=!1;break}if(m){if(!Ih(t,function(x,C){if(!Rh(m,C)&&(y===x||s(y,x,e,n,i)))return m.push(C)})){f=!1;break}}else if(!(y===A||s(y,A,e,n,i))){f=!1;break}}return i.delete(r),i.delete(t),f}function Mh(r){var t=-1,e=Array(r.size);return r.forEach(function(n,s){e[++t]=[s,n]}),e}function Dh(r){var t=-1,e=Array(r.size);return r.forEach(function(n){e[++t]=n}),e}var jh=1,Ph=2,$h="[object Boolean]",Uh="[object Date]",Fh="[object Error]",Hh="[object Map]",zh="[object Number]",Kh="[object RegExp]",Gh="[object Set]",Vh="[object String]",Wh="[object Symbol]",Zh="[object ArrayBuffer]",Xh="[object DataView]",Qi=ve?ve.prototype:void 0,qs=Qi?Qi.valueOf:void 0;function Yh(r,t,e,n,s,i,o){switch(e){case Xh:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Zh:return!(r.byteLength!=t.byteLength||!i(new _r(r),new _r(t)));case $h:case Uh:case zh:return zn(+r,+t);case Fh:return r.name==t.name&&r.message==t.message;case Kh:case Vh:return r==t+"";case Hh:var a=Mh;case Gh:var u=n&jh;if(a||(a=Dh),r.size!=t.size&&!u)return!1;var h=o.get(r);if(h)return h==t;n|=Ph,o.set(r,t);var p=ro(a(r),a(t),n,s,i,o);return o.delete(r),p;case Wh:if(qs)return qs.call(r)==qs.call(t)}return!1}var Qh=1,Jh=Object.prototype,tf=Jh.hasOwnProperty;function ef(r,t,e,n,s,i){var o=e&Qh,a=zs(r),u=a.length,h=zs(t),p=h.length;if(u!=p&&!o)return!1;for(var v=u;v--;){var f=a[v];if(!(o?f in t:tf.call(t,f)))return!1}var m=i.get(r),y=i.get(t);if(m&&y)return m==t&&y==r;var A=!0;i.set(r,t),i.set(t,r);for(var w=o;++v<u;){f=a[v];var x=r[f],C=t[f];if(n)var M=o?n(C,x,f,t,r,i):n(x,C,f,r,t,i);if(!(M===void 0?x===C||s(x,C,e,n,i):M)){A=!1;break}w||(w=f=="constructor")}if(A&&!w){var z=r.constructor,U=t.constructor;z!=U&&"constructor"in r&&"constructor"in t&&!(typeof z=="function"&&z instanceof z&&typeof U=="function"&&U instanceof U)&&(A=!1)}return i.delete(r),i.delete(t),A}var nf=1,Ji="[object Arguments]",tl="[object Array]",gr="[object Object]",rf=Object.prototype,el=rf.hasOwnProperty;function sf(r,t,e,n,s,i){var o=qe(r),a=qe(t),u=o?tl:jt(r),h=a?tl:jt(t);u=u==Ji?gr:u,h=h==Ji?gr:h;var p=u==gr,v=h==gr,f=u==h;if(f&&Dn(r)){if(!Dn(t))return!1;o=!0,p=!1}if(f&&!p)return i||(i=new Xt),o||pi(r)?ro(r,t,e,n,s,i):Yh(r,t,u,e,n,s,i);if(!(e&nf)){var m=p&&el.call(r,"__wrapped__"),y=v&&el.call(t,"__wrapped__");if(m||y){var A=m?r.value():r,w=y?t.value():t;return i||(i=new Xt),s(A,w,e,n,i)}}return f?(i||(i=new Xt),ef(r,t,e,n,s,i)):!1}function so(r,t,e,n,s){return r===t?!0:r==null||t==null||!le(r)&&!le(t)?r!==r&&t!==t:sf(r,t,e,n,so,s)}function lf(r){return function(t,e,n){for(var s=-1,i=Object(t),o=n(t),a=o.length;a--;){var u=o[++s];if(e(i[u],u,i)===!1)break}return t}}var of=lf();function Ws(r,t,e){(e!==void 0&&!zn(r[t],e)||e===void 0&&!(t in r))&&fi(r,t,e)}function af(r){return le(r)&&Cr(r)}function Zs(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}function cf(r){return Ca(r,Vl(r))}function uf(r,t,e,n,s,i,o){var a=Zs(r,e),u=Zs(t,e),h=o.get(u);if(h){Ws(r,e,h);return}var p=i?i(a,u,e+"",r,t,o):void 0,v=p===void 0;if(v){var f=qe(u),m=!f&&Dn(u),y=!f&&!m&&pi(u);p=u,f||m||y?qe(a)?p=a:af(a)?p=ya(a):m?(v=!1,p=Yl(u,!0)):y?(v=!1,p=Ql(u,!0)):p=[]:su(u)||Hs(u)?(p=a,Hs(a)?p=cf(a):(!Ee(a)||hi(a))&&(p=Jl(u))):v=!1}v&&(o.set(u,p),s(p,u,n,i,o),o.delete(u)),Ws(r,e,p)}function io(r,t,e,n,s){r!==t&&of(t,function(i,o){if(s||(s=new Xt),Ee(i))uf(r,t,o,e,io,n,s);else{var a=n?n(Zs(r,o),i,o+"",r,t,s):void 0;a===void 0&&(a=i),Ws(r,o,a)}},Vl)}function ge(r,t){return so(r,t)}var ye=Ma(function(r,t,e){io(r,t,e)}),D=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(D||{});class Qt{constructor(t,e,n={}){this.attrName=t,this.keyName=e;const s=D.TYPE&D.ATTRIBUTE;this.scope=n.scope!=null?n.scope&D.LEVEL|s:D.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class rn extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const lo=class Xs{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let n=null;try{n=t.parentNode}catch{return null}return this.find(n,e)}return null}create(t,e,n){const s=this.query(e);if(s==null)throw new rn(`Unable to create ${e} blot`);const i=s,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(n),a=new i(t,o,n);return Xs.blots.set(a.domNode,a),a}find(t,e=!1){return Xs.find(t,e)}query(t,e=D.ANY){let n;return typeof t=="string"?n=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?n=this.types.text:typeof t=="number"?t&D.LEVEL&D.BLOCK?n=this.types.block:t&D.LEVEL&D.INLINE&&(n=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(s=>(n=this.classes[s],!!n)),n=n||this.tags[t.tagName]),n==null?null:"scope"in n&&e&D.LEVEL&n.scope&&e&D.TYPE&n.scope?n:null}register(...t){return t.map(e=>{const n="blotName"in e,s="attrName"in e;if(!n&&!s)throw new rn("Invalid definition");if(n&&e.blotName==="abstract")throw new rn("Cannot register abstract class");const i=n?e.blotName:s?e.attrName:void 0;return this.types[i]=e,s?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):n&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(o=>o.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(o=>{(this.tags[o]==null||e.className==null)&&(this.tags[o]=e)}))),e})}};lo.blots=new WeakMap;let on=lo;function nl(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class hf extends Qt{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){nl(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(nl(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const Ft=hf;function Cs(r){const t=r.split("-"),e=t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return t[0]+e}class ff extends Qt{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[Cs(this.keyName)]=e,!0):!1}remove(t){t.style[Cs(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[Cs(this.keyName)];return this.canAdd(t,e)?e:""}}const Ae=ff;class df{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=on.find(this.domNode);if(t==null)return;const e=Qt.keys(this.domNode),n=Ft.keys(this.domNode),s=Ae.keys(this.domNode);e.concat(n).concat(s).forEach(i=>{const o=t.scroll.query(i,D.ATTRIBUTE);o instanceof Qt&&(this.attributes[o.attrName]=o)})}copy(t){Object.keys(this.attributes).forEach(e=>{const n=this.attributes[e].value(this.domNode);t.format(e,n)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const kr=df,oo=class{constructor(t,e){this.scroll=t,this.domNode=e,on.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new rn("Blot definition missing tagName");let e,n;return Array.isArray(this.tagName)?(typeof t=="string"?(n=t.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof t=="number"&&(n=t),typeof n=="number"?e=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?e=document.createElement(n):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),on.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,n,s){const i=this.isolate(t,e);if(this.scroll.query(n,D.BLOT)!=null&&s)i.wrap(n,s);else if(this.scroll.query(n,D.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(n,s)}}insertAt(t,e,n){const s=n==null?this.scroll.create("text",e):this.scroll.create(e,n),i=this.split(t);this.parent.insertBefore(s,i||void 0)}isolate(t,e){const n=this.split(t);if(n==null)throw new Error("Attempt to isolate at end");return n.split(e),n}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new rn(`Cannot wrap ${t}`);return n.appendChild(this),n}};oo.blotName="abstract";let ao=oo;const co=class extends ao{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};co.scope=D.INLINE_BLOT;let gf=co;const Et=gf;class pf{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let n=e();for(;n&&t>0;)t-=1,n=e();return n}contains(t){const e=this.iterator();let n=e();for(;n;){if(n===t)return!0;n=e()}return!1}indexOf(t){const e=this.iterator();let n=e(),s=0;for(;n;){if(n===t)return s;s+=1,n=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,n=this.head;for(;n!=null;){if(n===t)return e;e+=n.length(),n=n.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const n=this.iterator();let s=n();for(;s;){const i=s.length();if(t<i||e&&t===i&&(s.next==null||s.next.length()!==0))return[s,t];t-=i,s=n()}return[null,0]}forEach(t){const e=this.iterator();let n=e();for(;n;)t(n),n=e()}forEachAt(t,e,n){if(e<=0)return;const[s,i]=this.find(t);let o=t-i;const a=this.iterator(s);let u=a();for(;u&&o<t+e;){const h=u.length();t>o?n(u,t-o,Math.min(e,o+h-t)):n(u,0,Math.min(h,t+e-o)),o+=h,u=a()}}map(t){return this.reduce((e,n)=>(e.push(t(n)),e),[])}reduce(t,e){const n=this.iterator();let s=n();for(;s;)e=t(e,s),s=n();return e}}function rl(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const n=t.create(D.INLINE);return Array.from(r.childNodes).forEach(s=>{n.domNode.appendChild(s)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const uo=class de extends ao{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,de.uiClass&&this.uiNode.classList.add(de.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new pf,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=rl(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof rn)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(n,s,i)=>{n.deleteAt(s,i)})}descendant(t,e=0){const[n,s]=this.children.find(e);return t.blotName==null&&t(n)||t.blotName!=null&&n instanceof t?[n,s]:n instanceof de?n.descendant(t,s):[null,-1]}descendants(t,e=0,n=Number.MAX_VALUE){let s=[],i=n;return this.children.forEachAt(e,n,(o,a,u)=>{(t.blotName==null&&t(o)||t.blotName!=null&&o instanceof t)&&s.push(o),o instanceof de&&(s=s.concat(o.descendants(t,a,i))),i-=u}),s}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(n=>e instanceof n)||(e.statics.scope===D.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof de?e.unwrap():e.remove())})}formatAt(t,e,n,s){this.children.forEachAt(t,e,(i,o,a)=>{i.formatAt(o,a,n,s)})}insertAt(t,e,n){const[s,i]=this.children.find(t);if(s)s.insertAt(i,e,n);else{const o=n==null?this.scroll.create("text",e):this.scroll.create(e,n);this.appendChild(o)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let n=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(n=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(t.domNode,n),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(n=>{t.insertBefore(n,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[n,s]=this.children.find(t,e),i=[[this,t]];return n instanceof de?i.concat(n.path(s,e)):(n!=null&&i.push([n,s]),i)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;return n instanceof de&&this.moveChildren(n),super.replaceWith(n)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(t,this.length(),(s,i,o)=>{const a=s.split(i,e);a!=null&&n.appendChild(a)}),n}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const n=[],s=[];t.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(n.push(...i.addedNodes),s.push(...i.removedNodes))}),s.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(i);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),n.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,o)=>i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let o=null;i.nextSibling!=null&&(o=this.scroll.find(i.nextSibling));const a=rl(i,this.scroll);(a.next!==o||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,o||void 0))}),this.enforceAllowedChildren()}};uo.uiClass="";let mf=uo;const $t=mf;function bf(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(r[e]!==t[e])return!1;return!0}const Xe=class Ye extends $t{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Ye.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new kr(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(n=>{n instanceof Ye||(n=n.wrap(Ye.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(t,D.INLINE);if(n==null)return;n instanceof Qt?this.attributes.attribute(n,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,s){this.formats()[n]!=null||this.scroll.query(n,D.ATTRIBUTE)?this.isolate(t,e).format(n,s):super.formatAt(t,e,n,s)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const n=this.next;n instanceof Ye&&n.prev===this&&bf(e,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(t,e){const n=super.wrap(t,e);return n instanceof Ye&&this.attributes.move(n),n}};Xe.allowedChildren=[Xe,Et],Xe.blotName="inline",Xe.scope=D.INLINE_BLOT,Xe.tagName="SPAN";let yf=Xe;const bi=yf,Qe=class Ys extends $t{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Ys.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new kr(this.domNode)}format(t,e){const n=this.scroll.query(t,D.BLOCK);n!=null&&(n instanceof Qt?this.attributes.attribute(n,e):t===this.statics.blotName&&!e?this.replaceWith(Ys.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,s){this.scroll.query(n,D.BLOCK)!=null?this.format(n,s):super.formatAt(t,e,n,s)}insertAt(t,e,n){if(n==null||this.scroll.query(e,D.INLINE)!=null)super.insertAt(t,e,n);else{const s=this.split(t);if(s!=null){const i=this.scroll.create(e,n);s.parent.insertBefore(i,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Qe.blotName="block",Qe.scope=D.BLOCK_BLOT,Qe.tagName="P",Qe.allowedChildren=[bi,Qe,Et];let vf=Qe;const $n=vf,Qs=class extends $t{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,n,s){super.formatAt(t,e,n,s),this.enforceAllowedChildren()}insertAt(t,e,n){super.insertAt(t,e,n),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Qs.blotName="container",Qs.scope=D.BLOCK_BLOT;let Ef=Qs;const Br=Ef;class Af extends Et{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,n,s){t===0&&e===this.length()?this.format(n,s):super.formatAt(t,e,n,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Lt=Af,Nf={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},wf=100,Je=class extends $t{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,Nf),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const n=this.registry.find(t,e);return n?n.scroll===this?n:e?this.find(n.scroll.domNode.parentNode,!0):null:null}query(t,e=D.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(t,e)}formatAt(t,e,n,s){this.update(),super.formatAt(t,e,n,s)}insertAt(t,e,n){this.update(),super.insertAt(t,e,n)}optimize(t=[],e={}){super.optimize(e);const n=e.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)t.push(s.pop());const i=(u,h=!0)=>{u==null||u===this||u.domNode.parentNode!=null&&(n.has(u.domNode)||n.set(u.domNode,[]),h&&i(u.parent))},o=u=>{n.has(u.domNode)&&(u instanceof $t&&u.children.forEach(o),n.delete(u.domNode),u.optimize(e))};let a=t;for(let u=0;a.length>0;u+=1){if(u>=wf)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(h=>{const p=this.find(h.target,!0);p!=null&&(p.domNode===h.target&&(h.type==="childList"?(i(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(v=>{const f=this.find(v,!1);i(f,!1),f instanceof $t&&f.children.forEach(m=>{i(m,!1)})})):h.type==="attributes"&&i(p.prev)),i(p))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),s=a.slice();s.length>0;)t.push(s.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const n=new WeakMap;t.map(s=>{const i=this.find(s.target,!0);return i==null?null:n.has(i.domNode)?(n.get(i.domNode).push(s),null):(n.set(i.domNode,[s]),i)}).forEach(s=>{s!=null&&s!==this&&n.has(s.domNode)&&s.update(n.get(s.domNode)||[],e)}),e.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),e),this.optimize(t,e)}};Je.blotName="scroll",Je.defaultChild=$n,Je.allowedChildren=[$n,Br],Je.scope=D.BLOCK_BLOT,Je.tagName="DIV";let Tf=Je;const yi=Tf,Js=class ho extends Et{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,n){n==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof ho&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(t,e){t.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Js.blotName="text",Js.scope=D.INLINE_BLOT;let xf=Js;const qr=xf,Lf=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Qt,AttributorStore:kr,BlockBlot:$n,ClassAttributor:Ft,ContainerBlot:Br,EmbedBlot:Lt,InlineBlot:bi,LeafBlot:Et,ParentBlot:$t,Registry:on,Scope:D,ScrollBlot:yi,StyleAttributor:Ae,TextBlot:qr},Symbol.toStringTag,{value:"Module"}));var pr={exports:{}},Is,sl;function Sf(){if(sl)return Is;sl=1;var r=-1,t=1,e=0;function n(g,L,b,O,S){if(g===L)return g?[[e,g]]:[];if(b!=null){var T=Rt(g,L,b);if(T)return T}var _=a(g,L),k=g.substring(0,_);g=g.substring(_),L=L.substring(_),_=h(g,L);var j=g.substring(g.length-_);g=g.substring(0,g.length-_),L=L.substring(0,L.length-_);var I=s(g,L);return k&&I.unshift([e,k]),j&&I.push([e,j]),C(I,S),O&&v(I),I}function s(g,L){var b;if(!g)return[[t,L]];if(!L)return[[r,g]];var O=g.length>L.length?g:L,S=g.length>L.length?L:g,T=O.indexOf(S);if(T!==-1)return b=[[t,O.substring(0,T)],[e,S],[t,O.substring(T+S.length)]],g.length>L.length&&(b[0][0]=b[2][0]=r),b;if(S.length===1)return[[r,g],[t,L]];var _=p(g,L);if(_){var k=_[0],j=_[1],I=_[2],K=_[3],F=_[4],V=n(k,I),W=n(j,K);return V.concat([[e,F]],W)}return i(g,L)}function i(g,L){for(var b=g.length,O=L.length,S=Math.ceil((b+O)/2),T=S,_=2*S,k=new Array(_),j=new Array(_),I=0;I<_;I++)k[I]=-1,j[I]=-1;k[T+1]=0,j[T+1]=0;for(var K=b-O,F=K%2!==0,V=0,W=0,$=0,it=0,ot=0;ot<S;ot++){for(var G=-ot+V;G<=ot-W;G+=2){var Q=T+G,Y;G===-ot||G!==ot&&k[Q-1]<k[Q+1]?Y=k[Q+1]:Y=k[Q-1]+1;for(var J=Y-G;Y<b&&J<O&&g.charAt(Y)===L.charAt(J);)Y++,J++;if(k[Q]=Y,Y>b)W+=2;else if(J>O)V+=2;else if(F){var et=T+K-G;if(et>=0&&et<_&&j[et]!==-1){var nt=b-j[et];if(Y>=nt)return o(g,L,Y,J)}}}for(var ct=-ot+$;ct<=ot-it;ct+=2){var et=T+ct,nt;ct===-ot||ct!==ot&&j[et-1]<j[et+1]?nt=j[et+1]:nt=j[et-1]+1;for(var mt=nt-ct;nt<b&&mt<O&&g.charAt(b-nt-1)===L.charAt(O-mt-1);)nt++,mt++;if(j[et]=nt,nt>b)it+=2;else if(mt>O)$+=2;else if(!F){var Q=T+K-ct;if(Q>=0&&Q<_&&k[Q]!==-1){var Y=k[Q],J=T+Y-Q;if(nt=b-nt,Y>=nt)return o(g,L,Y,J)}}}}return[[r,g],[t,L]]}function o(g,L,b,O){var S=g.substring(0,b),T=L.substring(0,O),_=g.substring(b),k=L.substring(O),j=n(S,T),I=n(_,k);return j.concat(I)}function a(g,L){if(!g||!L||g.charAt(0)!==L.charAt(0))return 0;for(var b=0,O=Math.min(g.length,L.length),S=O,T=0;b<S;)g.substring(T,S)==L.substring(T,S)?(b=S,T=b):O=S,S=Math.floor((O-b)/2+b);return M(g.charCodeAt(S-1))&&S--,S}function u(g,L){var b=g.length,O=L.length;if(b==0||O==0)return 0;b>O?g=g.substring(b-O):b<O&&(L=L.substring(0,b));var S=Math.min(b,O);if(g==L)return S;for(var T=0,_=1;;){var k=g.substring(S-_),j=L.indexOf(k);if(j==-1)return T;_+=j,(j==0||g.substring(S-_)==L.substring(0,_))&&(T=_,_++)}}function h(g,L){if(!g||!L||g.slice(-1)!==L.slice(-1))return 0;for(var b=0,O=Math.min(g.length,L.length),S=O,T=0;b<S;)g.substring(g.length-S,g.length-T)==L.substring(L.length-S,L.length-T)?(b=S,T=b):O=S,S=Math.floor((O-b)/2+b);return z(g.charCodeAt(g.length-S))&&S--,S}function p(g,L){var b=g.length>L.length?g:L,O=g.length>L.length?L:g;if(b.length<4||O.length*2<b.length)return null;function S(W,$,it){for(var ot=W.substring(it,it+Math.floor(W.length/4)),G=-1,Q="",Y,J,et,nt;(G=$.indexOf(ot,G+1))!==-1;){var ct=a(W.substring(it),$.substring(G)),mt=h(W.substring(0,it),$.substring(0,G));Q.length<mt+ct&&(Q=$.substring(G-mt,G)+$.substring(G,G+ct),Y=W.substring(0,it-mt),J=W.substring(it+ct),et=$.substring(0,G-mt),nt=$.substring(G+ct))}return Q.length*2>=W.length?[Y,J,et,nt,Q]:null}var T=S(b,O,Math.ceil(b.length/4)),_=S(b,O,Math.ceil(b.length/2)),k;if(!T&&!_)return null;_?T?k=T[4].length>_[4].length?T:_:k=_:k=T;var j,I,K,F;g.length>L.length?(j=k[0],I=k[1],K=k[2],F=k[3]):(K=k[0],F=k[1],j=k[2],I=k[3]);var V=k[4];return[j,I,K,F,V]}function v(g){for(var L=!1,b=[],O=0,S=null,T=0,_=0,k=0,j=0,I=0;T<g.length;)g[T][0]==e?(b[O++]=T,_=j,k=I,j=0,I=0,S=g[T][1]):(g[T][0]==t?j+=g[T][1].length:I+=g[T][1].length,S&&S.length<=Math.max(_,k)&&S.length<=Math.max(j,I)&&(g.splice(b[O-1],0,[r,S]),g[b[O-1]+1][0]=t,O--,O--,T=O>0?b[O-1]:-1,_=0,k=0,j=0,I=0,S=null,L=!0)),T++;for(L&&C(g),x(g),T=1;T<g.length;){if(g[T-1][0]==r&&g[T][0]==t){var K=g[T-1][1],F=g[T][1],V=u(K,F),W=u(F,K);V>=W?(V>=K.length/2||V>=F.length/2)&&(g.splice(T,0,[e,F.substring(0,V)]),g[T-1][1]=K.substring(0,K.length-V),g[T+1][1]=F.substring(V),T++):(W>=K.length/2||W>=F.length/2)&&(g.splice(T,0,[e,K.substring(0,W)]),g[T-1][0]=t,g[T-1][1]=F.substring(0,F.length-W),g[T+1][0]=r,g[T+1][1]=K.substring(W),T++),T++}T++}}var f=/[^a-zA-Z0-9]/,m=/\s/,y=/[\r\n]/,A=/\n\r?\n$/,w=/^\r?\n\r?\n/;function x(g){function L(W,$){if(!W||!$)return 6;var it=W.charAt(W.length-1),ot=$.charAt(0),G=it.match(f),Q=ot.match(f),Y=G&&it.match(m),J=Q&&ot.match(m),et=Y&&it.match(y),nt=J&&ot.match(y),ct=et&&W.match(A),mt=nt&&$.match(w);return ct||mt?5:et||nt?4:G&&!Y&&J?3:Y||J?2:G||Q?1:0}for(var b=1;b<g.length-1;){if(g[b-1][0]==e&&g[b+1][0]==e){var O=g[b-1][1],S=g[b][1],T=g[b+1][1],_=h(O,S);if(_){var k=S.substring(S.length-_);O=O.substring(0,O.length-_),S=k+S.substring(0,S.length-_),T=k+T}for(var j=O,I=S,K=T,F=L(O,S)+L(S,T);S.charAt(0)===T.charAt(0);){O+=S.charAt(0),S=S.substring(1)+T.charAt(0),T=T.substring(1);var V=L(O,S)+L(S,T);V>=F&&(F=V,j=O,I=S,K=T)}g[b-1][1]!=j&&(j?g[b-1][1]=j:(g.splice(b-1,1),b--),g[b][1]=I,K?g[b+1][1]=K:(g.splice(b+1,1),b--))}b++}}function C(g,L){g.push([e,""]);for(var b=0,O=0,S=0,T="",_="",k;b<g.length;){if(b<g.length-1&&!g[b][1]){g.splice(b,1);continue}switch(g[b][0]){case t:S++,_+=g[b][1],b++;break;case r:O++,T+=g[b][1],b++;break;case e:var j=b-S-O-1;if(L){if(j>=0&&rt(g[j][1])){var I=g[j][1].slice(-1);if(g[j][1]=g[j][1].slice(0,-1),T=I+T,_=I+_,!g[j][1]){g.splice(j,1),b--;var K=j-1;g[K]&&g[K][0]===t&&(S++,_=g[K][1]+_,K--),g[K]&&g[K][0]===r&&(O++,T=g[K][1]+T,K--),j=K}}if(U(g[b][1])){var I=g[b][1].charAt(0);g[b][1]=g[b][1].slice(1),T+=I,_+=I}}if(b<g.length-1&&!g[b][1]){g.splice(b,1);break}if(T.length>0||_.length>0){T.length>0&&_.length>0&&(k=a(_,T),k!==0&&(j>=0?g[j][1]+=_.substring(0,k):(g.splice(0,0,[e,_.substring(0,k)]),b++),_=_.substring(k),T=T.substring(k)),k=h(_,T),k!==0&&(g[b][1]=_.substring(_.length-k)+g[b][1],_=_.substring(0,_.length-k),T=T.substring(0,T.length-k)));var F=S+O;T.length===0&&_.length===0?(g.splice(b-F,F),b=b-F):T.length===0?(g.splice(b-F,F,[t,_]),b=b-F+1):_.length===0?(g.splice(b-F,F,[r,T]),b=b-F+1):(g.splice(b-F,F,[r,T],[t,_]),b=b-F+2)}b!==0&&g[b-1][0]===e?(g[b-1][1]+=g[b][1],g.splice(b,1)):b++,S=0,O=0,T="",_="";break}}g[g.length-1][1]===""&&g.pop();var V=!1;for(b=1;b<g.length-1;)g[b-1][0]===e&&g[b+1][0]===e&&(g[b][1].substring(g[b][1].length-g[b-1][1].length)===g[b-1][1]?(g[b][1]=g[b-1][1]+g[b][1].substring(0,g[b][1].length-g[b-1][1].length),g[b+1][1]=g[b-1][1]+g[b+1][1],g.splice(b-1,1),V=!0):g[b][1].substring(0,g[b+1][1].length)==g[b+1][1]&&(g[b-1][1]+=g[b+1][1],g[b][1]=g[b][1].substring(g[b+1][1].length)+g[b+1][1],g.splice(b+1,1),V=!0)),b++;V&&C(g,L)}function M(g){return g>=55296&&g<=56319}function z(g){return g>=56320&&g<=57343}function U(g){return z(g.charCodeAt(0))}function rt(g){return M(g.charCodeAt(g.length-1))}function at(g){for(var L=[],b=0;b<g.length;b++)g[b][1].length>0&&L.push(g[b]);return L}function ft(g,L,b,O){return rt(g)||U(O)?null:at([[e,g],[r,L],[t,b],[e,O]])}function Rt(g,L,b){var O=typeof b=="number"?{index:b,length:0}:b.oldRange,S=typeof b=="number"?null:b.newRange,T=g.length,_=L.length;if(O.length===0&&(S===null||S.length===0)){var k=O.index,j=g.slice(0,k),I=g.slice(k),K=S?S.index:null;t:{var F=k+_-T;if(K!==null&&K!==F||F<0||F>_)break t;var V=L.slice(0,F),W=L.slice(F);if(W!==I)break t;var $=Math.min(k,F),it=j.slice(0,$),ot=V.slice(0,$);if(it!==ot)break t;var G=j.slice($),Q=V.slice($);return ft(it,G,Q,I)}t:{if(K!==null&&K!==k)break t;var Y=k,V=L.slice(0,Y),W=L.slice(Y);if(V!==j)break t;var J=Math.min(T-Y,_-Y),et=I.slice(I.length-J),nt=W.slice(W.length-J);if(et!==nt)break t;var G=I.slice(0,I.length-J),Q=W.slice(0,W.length-J);return ft(j,G,Q,et)}}if(O.length>0&&S&&S.length===0)t:{var it=g.slice(0,O.index),et=g.slice(O.index+O.length),$=it.length,J=et.length;if(_<$+J)break t;var ot=L.slice(0,$),nt=L.slice(_-J);if(it!==ot||et!==nt)break t;var G=g.slice($,T-J),Q=L.slice($,_-J);return ft(it,G,Q,et)}return null}function xt(g,L,b,O){return n(g,L,b,O,!0)}return xt.INSERT=t,xt.DELETE=r,xt.EQUAL=e,Is=xt,Is}var qn={exports:{}};qn.exports;var il;function fo(){return il||(il=1,(function(r,t){var e=200,n="__lodash_hash_undefined__",s=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Function]",v="[object GeneratorFunction]",f="[object Map]",m="[object Number]",y="[object Object]",A="[object Promise]",w="[object RegExp]",x="[object Set]",C="[object String]",M="[object Symbol]",z="[object WeakMap]",U="[object ArrayBuffer]",rt="[object DataView]",at="[object Float32Array]",ft="[object Float64Array]",Rt="[object Int8Array]",xt="[object Int16Array]",g="[object Int32Array]",L="[object Uint8Array]",b="[object Uint8ClampedArray]",O="[object Uint16Array]",S="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,k=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,I={};I[i]=I[o]=I[U]=I[rt]=I[a]=I[u]=I[at]=I[ft]=I[Rt]=I[xt]=I[g]=I[f]=I[m]=I[y]=I[w]=I[x]=I[C]=I[M]=I[L]=I[b]=I[O]=I[S]=!0,I[h]=I[p]=I[z]=!1;var K=typeof pe=="object"&&pe&&pe.Object===Object&&pe,F=typeof self=="object"&&self&&self.Object===Object&&self,V=K||F||Function("return this")(),W=t&&!t.nodeType&&t,$=W&&!0&&r&&!r.nodeType&&r,it=$&&$.exports===W;function ot(l,c){return l.set(c[0],c[1]),l}function G(l,c){return l.add(c),l}function Q(l,c){for(var d=-1,E=l?l.length:0;++d<E&&c(l[d],d,l)!==!1;);return l}function Y(l,c){for(var d=-1,E=c.length,H=l.length;++d<E;)l[H+d]=c[d];return l}function J(l,c,d,E){for(var H=-1,P=l?l.length:0;++H<P;)d=c(d,l[H],H,l);return d}function et(l,c){for(var d=-1,E=Array(l);++d<l;)E[d]=c(d);return E}function nt(l,c){return l==null?void 0:l[c]}function ct(l){var c=!1;if(l!=null&&typeof l.toString!="function")try{c=!!(l+"")}catch{}return c}function mt(l){var c=-1,d=Array(l.size);return l.forEach(function(E,H){d[++c]=[H,E]}),d}function fn(l,c){return function(d){return l(c(d))}}function Zn(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var $r=Array.prototype,Ur=Function.prototype,Pe=Object.prototype,dn=V["__core-js_shared__"],Xn=(function(){var l=/[^.]+$/.exec(dn&&dn.keys&&dn.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Yn=Ur.toString,Kt=Pe.hasOwnProperty,$e=Pe.toString,Fr=RegExp("^"+Yn.call(Kt).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=it?V.Buffer:void 0,Ue=V.Symbol,gn=V.Uint8Array,St=fn(Object.getPrototypeOf,Object),Qn=Object.create,Jn=Pe.propertyIsEnumerable,Hr=$r.splice,pn=Object.getOwnPropertySymbols,Fe=Ne?Ne.isBuffer:void 0,tr=fn(Object.keys,Object),He=Bt(V,"DataView"),we=Bt(V,"Map"),kt=Bt(V,"Promise"),ze=Bt(V,"Set"),mn=Bt(V,"WeakMap"),Te=Bt(Object,"create"),bn=Nt(He),xe=Nt(we),yn=Nt(kt),vn=Nt(ze),En=Nt(mn),he=Ue?Ue.prototype:void 0,er=he?he.valueOf:void 0;function ee(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function zr(){this.__data__=Te?Te(null):{}}function Kr(l){return this.has(l)&&delete this.__data__[l]}function Gr(l){var c=this.__data__;if(Te){var d=c[l];return d===n?void 0:d}return Kt.call(c,l)?c[l]:void 0}function nr(l){var c=this.__data__;return Te?c[l]!==void 0:Kt.call(c,l)}function An(l,c){var d=this.__data__;return d[l]=Te&&c===void 0?n:c,this}ee.prototype.clear=zr,ee.prototype.delete=Kr,ee.prototype.get=Gr,ee.prototype.has=nr,ee.prototype.set=An;function dt(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Vr(){this.__data__=[]}function Wr(l){var c=this.__data__,d=Ge(c,l);if(d<0)return!1;var E=c.length-1;return d==E?c.pop():Hr.call(c,d,1),!0}function Zr(l){var c=this.__data__,d=Ge(c,l);return d<0?void 0:c[d][1]}function Xr(l){return Ge(this.__data__,l)>-1}function Yr(l,c){var d=this.__data__,E=Ge(d,l);return E<0?d.push([l,c]):d[E][1]=c,this}dt.prototype.clear=Vr,dt.prototype.delete=Wr,dt.prototype.get=Zr,dt.prototype.has=Xr,dt.prototype.set=Yr;function bt(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Qr(){this.__data__={hash:new ee,map:new(we||dt),string:new ee}}function Jr(l){return Se(this,l).delete(l)}function ts(l){return Se(this,l).get(l)}function es(l){return Se(this,l).has(l)}function ns(l,c){return Se(this,l).set(l,c),this}bt.prototype.clear=Qr,bt.prototype.delete=Jr,bt.prototype.get=ts,bt.prototype.has=es,bt.prototype.set=ns;function wt(l){this.__data__=new dt(l)}function rs(){this.__data__=new dt}function ss(l){return this.__data__.delete(l)}function is(l){return this.__data__.get(l)}function ls(l){return this.__data__.has(l)}function os(l,c){var d=this.__data__;if(d instanceof dt){var E=d.__data__;if(!we||E.length<e-1)return E.push([l,c]),this;d=this.__data__=new bt(E)}return d.set(l,c),this}wt.prototype.clear=rs,wt.prototype.delete=ss,wt.prototype.get=is,wt.prototype.has=ls,wt.prototype.set=os;function Ke(l,c){var d=xn(l)||We(l)?et(l.length,String):[],E=d.length,H=!!E;for(var P in l)Kt.call(l,P)&&!(H&&(P=="length"||As(P,E)))&&d.push(P);return d}function rr(l,c,d){var E=l[c];(!(Kt.call(l,c)&&ar(E,d))||d===void 0&&!(c in l))&&(l[c]=d)}function Ge(l,c){for(var d=l.length;d--;)if(ar(l[d][0],c))return d;return-1}function Gt(l,c){return l&&Tn(c,Sn(c),l)}function Nn(l,c,d,E,H,P,X){var Z;if(E&&(Z=P?E(l,H,P,X):E(l)),Z!==void 0)return Z;if(!Wt(l))return l;var ut=xn(l);if(ut){if(Z=vs(l),!c)return ms(l,Z)}else{var tt=re(l),yt=tt==p||tt==v;if(cr(l))return Ve(l,c);if(tt==y||tt==i||yt&&!P){if(ct(l))return P?l:{};if(Z=Vt(yt?{}:l),!c)return bs(l,Gt(Z,l))}else{if(!I[tt])return P?l:{};Z=Es(l,tt,Nn,c)}}X||(X=new wt);var Tt=X.get(l);if(Tt)return Tt;if(X.set(l,Z),!ut)var ht=d?ys(l):Sn(l);return Q(ht||l,function(vt,gt){ht&&(gt=vt,vt=l[gt]),rr(Z,gt,Nn(vt,c,d,E,gt,l,X))}),Z}function as(l){return Wt(l)?Qn(l):{}}function cs(l,c,d){var E=c(l);return xn(l)?E:Y(E,d(l))}function us(l){return $e.call(l)}function hs(l){if(!Wt(l)||ws(l))return!1;var c=Ln(l)||ct(l)?Fr:k;return c.test(Nt(l))}function fs(l){if(!lr(l))return tr(l);var c=[];for(var d in Object(l))Kt.call(l,d)&&d!="constructor"&&c.push(d);return c}function Ve(l,c){if(c)return l.slice();var d=new l.constructor(l.length);return l.copy(d),d}function wn(l){var c=new l.constructor(l.byteLength);return new gn(c).set(new gn(l)),c}function Le(l,c){var d=c?wn(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.byteLength)}function sr(l,c,d){var E=c?d(mt(l),!0):mt(l);return J(E,ot,new l.constructor)}function ir(l){var c=new l.constructor(l.source,_.exec(l));return c.lastIndex=l.lastIndex,c}function ds(l,c,d){var E=c?d(Zn(l),!0):Zn(l);return J(E,G,new l.constructor)}function gs(l){return er?Object(er.call(l)):{}}function ps(l,c){var d=c?wn(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.length)}function ms(l,c){var d=-1,E=l.length;for(c||(c=Array(E));++d<E;)c[d]=l[d];return c}function Tn(l,c,d,E){d||(d={});for(var H=-1,P=c.length;++H<P;){var X=c[H],Z=void 0;rr(d,X,Z===void 0?l[X]:Z)}return d}function bs(l,c){return Tn(l,ne(l),c)}function ys(l){return cs(l,Sn,ne)}function Se(l,c){var d=l.__data__;return Ns(c)?d[typeof c=="string"?"string":"hash"]:d.map}function Bt(l,c){var d=nt(l,c);return hs(d)?d:void 0}var ne=pn?fn(pn,Object):xs,re=us;(He&&re(new He(new ArrayBuffer(1)))!=rt||we&&re(new we)!=f||kt&&re(kt.resolve())!=A||ze&&re(new ze)!=x||mn&&re(new mn)!=z)&&(re=function(l){var c=$e.call(l),d=c==y?l.constructor:void 0,E=d?Nt(d):void 0;if(E)switch(E){case bn:return rt;case xe:return f;case yn:return A;case vn:return x;case En:return z}return c});function vs(l){var c=l.length,d=l.constructor(c);return c&&typeof l[0]=="string"&&Kt.call(l,"index")&&(d.index=l.index,d.input=l.input),d}function Vt(l){return typeof l.constructor=="function"&&!lr(l)?as(St(l)):{}}function Es(l,c,d,E){var H=l.constructor;switch(c){case U:return wn(l);case a:case u:return new H(+l);case rt:return Le(l,E);case at:case ft:case Rt:case xt:case g:case L:case b:case O:case S:return ps(l,E);case f:return sr(l,E,d);case m:case C:return new H(l);case w:return ir(l);case x:return ds(l,E,d);case M:return gs(l)}}function As(l,c){return c=c??s,!!c&&(typeof l=="number"||j.test(l))&&l>-1&&l%1==0&&l<c}function Ns(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function ws(l){return!!Xn&&Xn in l}function lr(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||Pe;return l===d}function Nt(l){if(l!=null){try{return Yn.call(l)}catch{}try{return l+""}catch{}}return""}function or(l){return Nn(l,!0,!0)}function ar(l,c){return l===c||l!==l&&c!==c}function We(l){return Ts(l)&&Kt.call(l,"callee")&&(!Jn.call(l,"callee")||$e.call(l)==i)}var xn=Array.isArray;function Ze(l){return l!=null&&ur(l.length)&&!Ln(l)}function Ts(l){return hr(l)&&Ze(l)}var cr=Fe||Ls;function Ln(l){var c=Wt(l)?$e.call(l):"";return c==p||c==v}function ur(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=s}function Wt(l){var c=typeof l;return!!l&&(c=="object"||c=="function")}function hr(l){return!!l&&typeof l=="object"}function Sn(l){return Ze(l)?Ke(l):fs(l)}function xs(){return[]}function Ls(){return!1}r.exports=or})(qn,qn.exports)),qn.exports}var Cn={exports:{}};Cn.exports;var ll;function go(){return ll||(ll=1,(function(r,t){var e=200,n="__lodash_hash_undefined__",s=1,i=2,o=9007199254740991,a="[object Arguments]",u="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",v="[object Date]",f="[object Error]",m="[object Function]",y="[object GeneratorFunction]",A="[object Map]",w="[object Number]",x="[object Null]",C="[object Object]",M="[object Promise]",z="[object Proxy]",U="[object RegExp]",rt="[object Set]",at="[object String]",ft="[object Symbol]",Rt="[object Undefined]",xt="[object WeakMap]",g="[object ArrayBuffer]",L="[object DataView]",b="[object Float32Array]",O="[object Float64Array]",S="[object Int8Array]",T="[object Int16Array]",_="[object Int32Array]",k="[object Uint8Array]",j="[object Uint8ClampedArray]",I="[object Uint16Array]",K="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,$={};$[b]=$[O]=$[S]=$[T]=$[_]=$[k]=$[j]=$[I]=$[K]=!0,$[a]=$[u]=$[g]=$[p]=$[L]=$[v]=$[f]=$[m]=$[A]=$[w]=$[C]=$[U]=$[rt]=$[at]=$[xt]=!1;var it=typeof pe=="object"&&pe&&pe.Object===Object&&pe,ot=typeof self=="object"&&self&&self.Object===Object&&self,G=it||ot||Function("return this")(),Q=t&&!t.nodeType&&t,Y=Q&&!0&&r&&!r.nodeType&&r,J=Y&&Y.exports===Q,et=J&&it.process,nt=(function(){try{return et&&et.binding&&et.binding("util")}catch{}})(),ct=nt&&nt.isTypedArray;function mt(l,c){for(var d=-1,E=l==null?0:l.length,H=0,P=[];++d<E;){var X=l[d];c(X,d,l)&&(P[H++]=X)}return P}function fn(l,c){for(var d=-1,E=c.length,H=l.length;++d<E;)l[H+d]=c[d];return l}function Zn(l,c){for(var d=-1,E=l==null?0:l.length;++d<E;)if(c(l[d],d,l))return!0;return!1}function $r(l,c){for(var d=-1,E=Array(l);++d<l;)E[d]=c(d);return E}function Ur(l){return function(c){return l(c)}}function Pe(l,c){return l.has(c)}function dn(l,c){return l==null?void 0:l[c]}function Xn(l){var c=-1,d=Array(l.size);return l.forEach(function(E,H){d[++c]=[H,E]}),d}function Yn(l,c){return function(d){return l(c(d))}}function Kt(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var $e=Array.prototype,Fr=Function.prototype,Ne=Object.prototype,Ue=G["__core-js_shared__"],gn=Fr.toString,St=Ne.hasOwnProperty,Qn=(function(){var l=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Jn=Ne.toString,Hr=RegExp("^"+gn.call(St).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pn=J?G.Buffer:void 0,Fe=G.Symbol,tr=G.Uint8Array,He=Ne.propertyIsEnumerable,we=$e.splice,kt=Fe?Fe.toStringTag:void 0,ze=Object.getOwnPropertySymbols,mn=pn?pn.isBuffer:void 0,Te=Yn(Object.keys,Object),bn=ne(G,"DataView"),xe=ne(G,"Map"),yn=ne(G,"Promise"),vn=ne(G,"Set"),En=ne(G,"WeakMap"),he=ne(Object,"create"),er=Nt(bn),ee=Nt(xe),zr=Nt(yn),Kr=Nt(vn),Gr=Nt(En),nr=Fe?Fe.prototype:void 0,An=nr?nr.valueOf:void 0;function dt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Vr(){this.__data__=he?he(null):{},this.size=0}function Wr(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}function Zr(l){var c=this.__data__;if(he){var d=c[l];return d===n?void 0:d}return St.call(c,l)?c[l]:void 0}function Xr(l){var c=this.__data__;return he?c[l]!==void 0:St.call(c,l)}function Yr(l,c){var d=this.__data__;return this.size+=this.has(l)?0:1,d[l]=he&&c===void 0?n:c,this}dt.prototype.clear=Vr,dt.prototype.delete=Wr,dt.prototype.get=Zr,dt.prototype.has=Xr,dt.prototype.set=Yr;function bt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Qr(){this.__data__=[],this.size=0}function Jr(l){var c=this.__data__,d=Ve(c,l);if(d<0)return!1;var E=c.length-1;return d==E?c.pop():we.call(c,d,1),--this.size,!0}function ts(l){var c=this.__data__,d=Ve(c,l);return d<0?void 0:c[d][1]}function es(l){return Ve(this.__data__,l)>-1}function ns(l,c){var d=this.__data__,E=Ve(d,l);return E<0?(++this.size,d.push([l,c])):d[E][1]=c,this}bt.prototype.clear=Qr,bt.prototype.delete=Jr,bt.prototype.get=ts,bt.prototype.has=es,bt.prototype.set=ns;function wt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function rs(){this.size=0,this.__data__={hash:new dt,map:new(xe||bt),string:new dt}}function ss(l){var c=Bt(this,l).delete(l);return this.size-=c?1:0,c}function is(l){return Bt(this,l).get(l)}function ls(l){return Bt(this,l).has(l)}function os(l,c){var d=Bt(this,l),E=d.size;return d.set(l,c),this.size+=d.size==E?0:1,this}wt.prototype.clear=rs,wt.prototype.delete=ss,wt.prototype.get=is,wt.prototype.has=ls,wt.prototype.set=os;function Ke(l){var c=-1,d=l==null?0:l.length;for(this.__data__=new wt;++c<d;)this.add(l[c])}function rr(l){return this.__data__.set(l,n),this}function Ge(l){return this.__data__.has(l)}Ke.prototype.add=Ke.prototype.push=rr,Ke.prototype.has=Ge;function Gt(l){var c=this.__data__=new bt(l);this.size=c.size}function Nn(){this.__data__=new bt,this.size=0}function as(l){var c=this.__data__,d=c.delete(l);return this.size=c.size,d}function cs(l){return this.__data__.get(l)}function us(l){return this.__data__.has(l)}function hs(l,c){var d=this.__data__;if(d instanceof bt){var E=d.__data__;if(!xe||E.length<e-1)return E.push([l,c]),this.size=++d.size,this;d=this.__data__=new wt(E)}return d.set(l,c),this.size=d.size,this}Gt.prototype.clear=Nn,Gt.prototype.delete=as,Gt.prototype.get=cs,Gt.prototype.has=us,Gt.prototype.set=hs;function fs(l,c){var d=We(l),E=!d&&ar(l),H=!d&&!E&&Ze(l),P=!d&&!E&&!H&&hr(l),X=d||E||H||P,Z=X?$r(l.length,String):[],ut=Z.length;for(var tt in l)St.call(l,tt)&&!(X&&(tt=="length"||H&&(tt=="offset"||tt=="parent")||P&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||Es(tt,ut)))&&Z.push(tt);return Z}function Ve(l,c){for(var d=l.length;d--;)if(or(l[d][0],c))return d;return-1}function wn(l,c,d){var E=c(l);return We(l)?E:fn(E,d(l))}function Le(l){return l==null?l===void 0?Rt:x:kt&&kt in Object(l)?re(l):lr(l)}function sr(l){return Wt(l)&&Le(l)==a}function ir(l,c,d,E,H){return l===c?!0:l==null||c==null||!Wt(l)&&!Wt(c)?l!==l&&c!==c:ds(l,c,d,E,ir,H)}function ds(l,c,d,E,H,P){var X=We(l),Z=We(c),ut=X?u:Vt(l),tt=Z?u:Vt(c);ut=ut==a?C:ut,tt=tt==a?C:tt;var yt=ut==C,Tt=tt==C,ht=ut==tt;if(ht&&Ze(l)){if(!Ze(c))return!1;X=!0,yt=!1}if(ht&&!yt)return P||(P=new Gt),X||hr(l)?Tn(l,c,d,E,H,P):bs(l,c,ut,d,E,H,P);if(!(d&s)){var vt=yt&&St.call(l,"__wrapped__"),gt=Tt&&St.call(c,"__wrapped__");if(vt||gt){var fe=vt?l.value():l,se=gt?c.value():c;return P||(P=new Gt),H(fe,se,d,E,P)}}return ht?(P||(P=new Gt),ys(l,c,d,E,H,P)):!1}function gs(l){if(!ur(l)||Ns(l))return!1;var c=cr(l)?Hr:V;return c.test(Nt(l))}function ps(l){return Wt(l)&&Ln(l.length)&&!!$[Le(l)]}function ms(l){if(!ws(l))return Te(l);var c=[];for(var d in Object(l))St.call(l,d)&&d!="constructor"&&c.push(d);return c}function Tn(l,c,d,E,H,P){var X=d&s,Z=l.length,ut=c.length;if(Z!=ut&&!(X&&ut>Z))return!1;var tt=P.get(l);if(tt&&P.get(c))return tt==c;var yt=-1,Tt=!0,ht=d&i?new Ke:void 0;for(P.set(l,c),P.set(c,l);++yt<Z;){var vt=l[yt],gt=c[yt];if(E)var fe=X?E(gt,vt,yt,c,l,P):E(vt,gt,yt,l,c,P);if(fe!==void 0){if(fe)continue;Tt=!1;break}if(ht){if(!Zn(c,function(se,_e){if(!Pe(ht,_e)&&(vt===se||H(vt,se,d,E,P)))return ht.push(_e)})){Tt=!1;break}}else if(!(vt===gt||H(vt,gt,d,E,P))){Tt=!1;break}}return P.delete(l),P.delete(c),Tt}function bs(l,c,d,E,H,P,X){switch(d){case L:if(l.byteLength!=c.byteLength||l.byteOffset!=c.byteOffset)return!1;l=l.buffer,c=c.buffer;case g:return!(l.byteLength!=c.byteLength||!P(new tr(l),new tr(c)));case p:case v:case w:return or(+l,+c);case f:return l.name==c.name&&l.message==c.message;case U:case at:return l==c+"";case A:var Z=Xn;case rt:var ut=E&s;if(Z||(Z=Kt),l.size!=c.size&&!ut)return!1;var tt=X.get(l);if(tt)return tt==c;E|=i,X.set(l,c);var yt=Tn(Z(l),Z(c),E,H,P,X);return X.delete(l),yt;case ft:if(An)return An.call(l)==An.call(c)}return!1}function ys(l,c,d,E,H,P){var X=d&s,Z=Se(l),ut=Z.length,tt=Se(c),yt=tt.length;if(ut!=yt&&!X)return!1;for(var Tt=ut;Tt--;){var ht=Z[Tt];if(!(X?ht in c:St.call(c,ht)))return!1}var vt=P.get(l);if(vt&&P.get(c))return vt==c;var gt=!0;P.set(l,c),P.set(c,l);for(var fe=X;++Tt<ut;){ht=Z[Tt];var se=l[ht],_e=c[ht];if(E)var Oi=X?E(_e,se,ht,c,l,P):E(se,_e,ht,l,c,P);if(!(Oi===void 0?se===_e||H(se,_e,d,E,P):Oi)){gt=!1;break}fe||(fe=ht=="constructor")}if(gt&&!fe){var fr=l.constructor,dr=c.constructor;fr!=dr&&"constructor"in l&&"constructor"in c&&!(typeof fr=="function"&&fr instanceof fr&&typeof dr=="function"&&dr instanceof dr)&&(gt=!1)}return P.delete(l),P.delete(c),gt}function Se(l){return wn(l,Sn,vs)}function Bt(l,c){var d=l.__data__;return As(c)?d[typeof c=="string"?"string":"hash"]:d.map}function ne(l,c){var d=dn(l,c);return gs(d)?d:void 0}function re(l){var c=St.call(l,kt),d=l[kt];try{l[kt]=void 0;var E=!0}catch{}var H=Jn.call(l);return E&&(c?l[kt]=d:delete l[kt]),H}var vs=ze?function(l){return l==null?[]:(l=Object(l),mt(ze(l),function(c){return He.call(l,c)}))}:xs,Vt=Le;(bn&&Vt(new bn(new ArrayBuffer(1)))!=L||xe&&Vt(new xe)!=A||yn&&Vt(yn.resolve())!=M||vn&&Vt(new vn)!=rt||En&&Vt(new En)!=xt)&&(Vt=function(l){var c=Le(l),d=c==C?l.constructor:void 0,E=d?Nt(d):"";if(E)switch(E){case er:return L;case ee:return A;case zr:return M;case Kr:return rt;case Gr:return xt}return c});function Es(l,c){return c=c??o,!!c&&(typeof l=="number"||W.test(l))&&l>-1&&l%1==0&&l<c}function As(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function Ns(l){return!!Qn&&Qn in l}function ws(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||Ne;return l===d}function lr(l){return Jn.call(l)}function Nt(l){if(l!=null){try{return gn.call(l)}catch{}try{return l+""}catch{}}return""}function or(l,c){return l===c||l!==l&&c!==c}var ar=sr((function(){return arguments})())?sr:function(l){return Wt(l)&&St.call(l,"callee")&&!He.call(l,"callee")},We=Array.isArray;function xn(l){return l!=null&&Ln(l.length)&&!cr(l)}var Ze=mn||Ls;function Ts(l,c){return ir(l,c)}function cr(l){if(!ur(l))return!1;var c=Le(l);return c==m||c==y||c==h||c==z}function Ln(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=o}function ur(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}function Wt(l){return l!=null&&typeof l=="object"}var hr=ct?Ur(ct):ps;function Sn(l){return xn(l)?fs(l):ms(l)}function xs(){return[]}function Ls(){return!1}r.exports=Ts})(Cn,Cn.exports)),Cn.exports}var mr={},ol;function _f(){if(ol)return mr;ol=1,Object.defineProperty(mr,"__esModule",{value:!0});const r=fo(),t=go();var e;return(function(n){function s(u={},h={},p=!1){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});let v=r(h);p||(v=Object.keys(v).reduce((f,m)=>(v[m]!=null&&(f[m]=v[m]),f),{}));for(const f in u)u[f]!==void 0&&h[f]===void 0&&(v[f]=u[f]);return Object.keys(v).length>0?v:void 0}n.compose=s;function i(u={},h={}){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});const p=Object.keys(u).concat(Object.keys(h)).reduce((v,f)=>(t(u[f],h[f])||(v[f]=h[f]===void 0?null:h[f]),v),{});return Object.keys(p).length>0?p:void 0}n.diff=i;function o(u={},h={}){u=u||{};const p=Object.keys(h).reduce((v,f)=>(h[f]!==u[f]&&u[f]!==void 0&&(v[f]=h[f]),v),{});return Object.keys(u).reduce((v,f)=>(u[f]!==h[f]&&h[f]===void 0&&(v[f]=null),v),p)}n.invert=o;function a(u,h,p=!1){if(typeof u!="object")return h;if(typeof h!="object")return;if(!p)return h;const v=Object.keys(h).reduce((f,m)=>(u[m]===void 0&&(f[m]=h[m]),f),{});return Object.keys(v).length>0?v:void 0}n.transform=a})(e||(e={})),mr.default=e,mr}var br={},al;function po(){if(al)return br;al=1,Object.defineProperty(br,"__esModule",{value:!0});var r;return(function(t){function e(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}t.length=e})(r||(r={})),br.default=r,br}var yr={},cl;function Of(){if(cl)return yr;cl=1,Object.defineProperty(yr,"__esModule",{value:!0});const r=po();class t{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const s=this.ops[this.index];if(s){const i=this.offset,o=r.default.length(s);if(n>=o-i?(n=o-i,this.index+=1,this.offset=0):this.offset+=n,typeof s.delete=="number")return{delete:n};{const a={};return s.attributes&&(a.attributes=s.attributes),typeof s.retain=="number"?a.retain=n:typeof s.retain=="object"&&s.retain!==null?a.retain=s.retain:typeof s.insert=="string"?a.insert=s.insert.substr(i,n):a.insert=s.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,s=this.index,i=this.next(),o=this.ops.slice(this.index);return this.offset=n,this.index=s,[i].concat(o)}}else return[]}}return yr.default=t,yr}var ul;function qf(){return ul||(ul=1,(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const e=Sf(),n=fo(),s=go(),i=_f();t.AttributeMap=i.default;const o=po();t.Op=o.default;const a=Of();t.OpIterator=a.default;const u="\0",h=(v,f)=>{if(typeof v!="object"||v===null)throw new Error(`cannot retain a ${typeof v}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const m=Object.keys(v)[0];if(!m||m!==Object.keys(f)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(f)[0]}`);return[m,v[m],f[m]]};class p{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,m){this.handlers[f]=m}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const m=this.handlers[f];if(!m)throw new Error(`no handlers for embed type "${f}"`);return m}insert(f,m){const y={};return typeof f=="string"&&f.length===0?this:(y.insert=f,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(y.attributes=m),this.push(y))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,m){if(typeof f=="number"&&f<=0)return this;const y={retain:f};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(y.attributes=m),this.push(y)}push(f){let m=this.ops.length,y=this.ops[m-1];if(f=n(f),typeof y=="object"){if(typeof f.delete=="number"&&typeof y.delete=="number")return this.ops[m-1]={delete:y.delete+f.delete},this;if(typeof y.delete=="number"&&f.insert!=null&&(m-=1,y=this.ops[m-1],typeof y!="object"))return this.ops.unshift(f),this;if(s(f.attributes,y.attributes)){if(typeof f.insert=="string"&&typeof y.insert=="string")return this.ops[m-1]={insert:y.insert+f.insert},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof y.retain=="number")return this.ops[m-1]={retain:y.retain+f.retain},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this}}return m===this.ops.length?this.ops.push(f):this.ops.splice(m,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const m=[],y=[];return this.forEach(A=>{(f(A)?m:y).push(A)}),[m,y]}reduce(f,m){return this.ops.reduce(f,m)}changeLength(){return this.reduce((f,m)=>m.insert?f+o.default.length(m):m.delete?f-m.delete:f,0)}length(){return this.reduce((f,m)=>f+o.default.length(m),0)}slice(f=0,m=1/0){const y=[],A=new a.default(this.ops);let w=0;for(;w<m&&A.hasNext();){let x;w<f?x=A.next(f-w):(x=A.next(m-w),y.push(x)),w+=o.default.length(x)}return new p(y)}compose(f){const m=new a.default(this.ops),y=new a.default(f.ops),A=[],w=y.peek();if(w!=null&&typeof w.retain=="number"&&w.attributes==null){let C=w.retain;for(;m.peekType()==="insert"&&m.peekLength()<=C;)C-=m.peekLength(),A.push(m.next());w.retain-C>0&&y.next(w.retain-C)}const x=new p(A);for(;m.hasNext()||y.hasNext();)if(y.peekType()==="insert")x.push(y.next());else if(m.peekType()==="delete")x.push(m.next());else{const C=Math.min(m.peekLength(),y.peekLength()),M=m.next(C),z=y.next(C);if(z.retain){const U={};if(typeof M.retain=="number")U.retain=typeof z.retain=="number"?C:z.retain;else if(typeof z.retain=="number")M.retain==null?U.insert=M.insert:U.retain=M.retain;else{const at=M.retain==null?"insert":"retain",[ft,Rt,xt]=h(M[at],z.retain),g=p.getHandler(ft);U[at]={[ft]:g.compose(Rt,xt,at==="retain")}}const rt=i.default.compose(M.attributes,z.attributes,typeof M.retain=="number");if(rt&&(U.attributes=rt),x.push(U),!y.hasNext()&&s(x.ops[x.ops.length-1],U)){const at=new p(m.rest());return x.concat(at).chop()}}else typeof z.delete=="number"&&(typeof M.retain=="number"||typeof M.retain=="object"&&M.retain!==null)&&x.push(z)}return x.chop()}concat(f){const m=new p(this.ops.slice());return f.ops.length>0&&(m.push(f.ops[0]),m.ops=m.ops.concat(f.ops.slice(1))),m}diff(f,m){if(this.ops===f.ops)return new p;const y=[this,f].map(M=>M.map(z=>{if(z.insert!=null)return typeof z.insert=="string"?z.insert:u;const U=M===f?"on":"with";throw new Error("diff() called "+U+" non-document")}).join("")),A=new p,w=e(y[0],y[1],m,!0),x=new a.default(this.ops),C=new a.default(f.ops);return w.forEach(M=>{let z=M[1].length;for(;z>0;){let U=0;switch(M[0]){case e.INSERT:U=Math.min(C.peekLength(),z),A.push(C.next(U));break;case e.DELETE:U=Math.min(z,x.peekLength()),x.next(U),A.delete(U);break;case e.EQUAL:U=Math.min(x.peekLength(),C.peekLength(),z);const rt=x.next(U),at=C.next(U);s(rt.insert,at.insert)?A.retain(U,i.default.diff(rt.attributes,at.attributes)):A.push(at).delete(U);break}z-=U}}),A.chop()}eachLine(f,m=`
|
|
1
|
+
var Ho=Object.defineProperty;var zo=(r,t,e)=>t in r?Ho(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var q=(r,t,e)=>zo(r,typeof t!="symbol"?t+"":t,e);import{c as pe,g as Bl,R as Oe,r as qi,j as Ss}from"./index-Cr7cD-P1.js";var Ml=typeof global=="object"&&global&&global.Object===Object&&global,Ko=typeof self=="object"&&self&&self.Object===Object&&self,te=Ml||Ko||Function("return this")(),ve=te.Symbol,Dl=Object.prototype,Go=Dl.hasOwnProperty,Vo=Dl.toString,_n=ve?ve.toStringTag:void 0;function Wo(r){var t=Go.call(r,_n),e=r[_n];try{r[_n]=void 0;var n=!0}catch{}var s=Vo.call(r);return n&&(t?r[_n]=e:delete r[_n]),s}var Zo=Object.prototype,Xo=Zo.toString;function Yo(r){return Xo.call(r)}var Qo="[object Null]",Jo="[object Undefined]",Ci=ve?ve.toStringTag:void 0;function hn(r){return r==null?r===void 0?Jo:Qo:Ci&&Ci in Object(r)?Wo(r):Yo(r)}function le(r){return r!=null&&typeof r=="object"}var qe=Array.isArray;function Ee(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function jl(r){return r}var ta="[object AsyncFunction]",ea="[object Function]",na="[object GeneratorFunction]",ra="[object Proxy]";function hi(r){if(!Ee(r))return!1;var t=hn(r);return t==ea||t==na||t==ta||t==ra}var _s=te["__core-js_shared__"],Ii=(function(){var r=/[^.]+$/.exec(_s&&_s.keys&&_s.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function sa(r){return!!Ii&&Ii in r}var ia=Function.prototype,la=ia.toString;function Re(r){if(r!=null){try{return la.call(r)}catch{}try{return r+""}catch{}}return""}var oa=/[\\^$.*+?()[\]{}|]/g,aa=/^\[object .+?Constructor\]$/,ca=Function.prototype,ua=Object.prototype,ha=ca.toString,fa=ua.hasOwnProperty,da=RegExp("^"+ha.call(fa).replace(oa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ga(r){if(!Ee(r)||sa(r))return!1;var t=hi(r)?da:aa;return t.test(Re(r))}function pa(r,t){return r==null?void 0:r[t]}function ke(r,t){var e=pa(r,t);return ga(e)?e:void 0}var Fs=ke(te,"WeakMap"),Ri=Object.create,ma=(function(){function r(){}return function(t){if(!Ee(t))return{};if(Ri)return Ri(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})();function ba(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}function ya(r,t){var e=-1,n=r.length;for(t||(t=Array(n));++e<n;)t[e]=r[e];return t}var va=800,Ea=16,Aa=Date.now;function Na(r){var t=0,e=0;return function(){var n=Aa(),s=Ea-(n-e);if(e=n,s>0){if(++t>=va)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}function wa(r){return function(){return r}}var Sr=(function(){try{var r=ke(Object,"defineProperty");return r({},"",{}),r}catch{}})(),Ta=Sr?function(r,t){return Sr(r,"toString",{configurable:!0,enumerable:!1,value:wa(t),writable:!0})}:jl,xa=Na(Ta);function La(r,t){for(var e=-1,n=r==null?0:r.length;++e<n&&t(r[e],e,r)!==!1;);return r}var Sa=9007199254740991,_a=/^(?:0|[1-9]\d*)$/;function Pl(r,t){var e=typeof r;return t=t??Sa,!!t&&(e=="number"||e!="symbol"&&_a.test(r))&&r>-1&&r%1==0&&r<t}function fi(r,t,e){t=="__proto__"&&Sr?Sr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}function zn(r,t){return r===t||r!==r&&t!==t}var Oa=Object.prototype,qa=Oa.hasOwnProperty;function $l(r,t,e){var n=r[t];(!(qa.call(r,t)&&zn(n,e))||e===void 0&&!(t in r))&&fi(r,t,e)}function Ca(r,t,e,n){var s=!e;e||(e={});for(var i=-1,o=t.length;++i<o;){var a=t[i],u=void 0;u===void 0&&(u=r[a]),s?fi(e,a,u):$l(e,a,u)}return e}var ki=Math.max;function Ia(r,t,e){return t=ki(t===void 0?r.length-1:t,0),function(){for(var n=arguments,s=-1,i=ki(n.length-t,0),o=Array(i);++s<i;)o[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=e(o),ba(r,this,a)}}function Ra(r,t){return xa(Ia(r,t,jl),r+"")}var ka=9007199254740991;function Ul(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ka}function Cr(r){return r!=null&&Ul(r.length)&&!hi(r)}function Ba(r,t,e){if(!Ee(e))return!1;var n=typeof t;return(n=="number"?Cr(e)&&Pl(t,e.length):n=="string"&&t in e)?zn(e[t],r):!1}function Ma(r){return Ra(function(t,e){var n=-1,s=e.length,i=s>1?e[s-1]:void 0,o=s>2?e[2]:void 0;for(i=r.length>3&&typeof i=="function"?(s--,i):void 0,o&&Ba(e[0],e[1],o)&&(i=s<3?void 0:i,s=1),t=Object(t);++n<s;){var a=e[n];a&&r(t,a,n,i)}return t})}var Da=Object.prototype;function di(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Da;return r===e}function ja(r,t){for(var e=-1,n=Array(r);++e<r;)n[e]=t(e);return n}var Pa="[object Arguments]";function Bi(r){return le(r)&&hn(r)==Pa}var Fl=Object.prototype,$a=Fl.hasOwnProperty,Ua=Fl.propertyIsEnumerable,Hs=Bi((function(){return arguments})())?Bi:function(r){return le(r)&&$a.call(r,"callee")&&!Ua.call(r,"callee")};function Fa(){return!1}var Hl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mi=Hl&&typeof module=="object"&&module&&!module.nodeType&&module,Ha=Mi&&Mi.exports===Hl,Di=Ha?te.Buffer:void 0,za=Di?Di.isBuffer:void 0,Dn=za||Fa,Ka="[object Arguments]",Ga="[object Array]",Va="[object Boolean]",Wa="[object Date]",Za="[object Error]",Xa="[object Function]",Ya="[object Map]",Qa="[object Number]",Ja="[object Object]",tc="[object RegExp]",ec="[object Set]",nc="[object String]",rc="[object WeakMap]",sc="[object ArrayBuffer]",ic="[object DataView]",lc="[object Float32Array]",oc="[object Float64Array]",ac="[object Int8Array]",cc="[object Int16Array]",uc="[object Int32Array]",hc="[object Uint8Array]",fc="[object Uint8ClampedArray]",dc="[object Uint16Array]",gc="[object Uint32Array]",lt={};lt[lc]=lt[oc]=lt[ac]=lt[cc]=lt[uc]=lt[hc]=lt[fc]=lt[dc]=lt[gc]=!0;lt[Ka]=lt[Ga]=lt[sc]=lt[Va]=lt[ic]=lt[Wa]=lt[Za]=lt[Xa]=lt[Ya]=lt[Qa]=lt[Ja]=lt[tc]=lt[ec]=lt[nc]=lt[rc]=!1;function pc(r){return le(r)&&Ul(r.length)&&!!lt[hn(r)]}function gi(r){return function(t){return r(t)}}var zl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rn=zl&&typeof module=="object"&&module&&!module.nodeType&&module,mc=Rn&&Rn.exports===zl,Os=mc&&Ml.process,ln=(function(){try{var r=Rn&&Rn.require&&Rn.require("util").types;return r||Os&&Os.binding&&Os.binding("util")}catch{}})(),ji=ln&&ln.isTypedArray,pi=ji?gi(ji):pc,bc=Object.prototype,yc=bc.hasOwnProperty;function Kl(r,t){var e=qe(r),n=!e&&Hs(r),s=!e&&!n&&Dn(r),i=!e&&!n&&!s&&pi(r),o=e||n||s||i,a=o?ja(r.length,String):[],u=a.length;for(var h in r)(t||yc.call(r,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Pl(h,u)))&&a.push(h);return a}function Gl(r,t){return function(e){return r(t(e))}}var vc=Gl(Object.keys,Object),Ec=Object.prototype,Ac=Ec.hasOwnProperty;function Nc(r){if(!di(r))return vc(r);var t=[];for(var e in Object(r))Ac.call(r,e)&&e!="constructor"&&t.push(e);return t}function wc(r){return Cr(r)?Kl(r):Nc(r)}function Tc(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var xc=Object.prototype,Lc=xc.hasOwnProperty;function Sc(r){if(!Ee(r))return Tc(r);var t=di(r),e=[];for(var n in r)n=="constructor"&&(t||!Lc.call(r,n))||e.push(n);return e}function Vl(r){return Cr(r)?Kl(r,!0):Sc(r)}var jn=ke(Object,"create");function _c(){this.__data__=jn?jn(null):{},this.size=0}function Oc(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var qc="__lodash_hash_undefined__",Cc=Object.prototype,Ic=Cc.hasOwnProperty;function Rc(r){var t=this.__data__;if(jn){var e=t[r];return e===qc?void 0:e}return Ic.call(t,r)?t[r]:void 0}var kc=Object.prototype,Bc=kc.hasOwnProperty;function Mc(r){var t=this.__data__;return jn?t[r]!==void 0:Bc.call(t,r)}var Dc="__lodash_hash_undefined__";function jc(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=jn&&t===void 0?Dc:t,this}function Ce(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Ce.prototype.clear=_c;Ce.prototype.delete=Oc;Ce.prototype.get=Rc;Ce.prototype.has=Mc;Ce.prototype.set=jc;function Pc(){this.__data__=[],this.size=0}function Ir(r,t){for(var e=r.length;e--;)if(zn(r[e][0],t))return e;return-1}var $c=Array.prototype,Uc=$c.splice;function Fc(r){var t=this.__data__,e=Ir(t,r);if(e<0)return!1;var n=t.length-1;return e==n?t.pop():Uc.call(t,e,1),--this.size,!0}function Hc(r){var t=this.__data__,e=Ir(t,r);return e<0?void 0:t[e][1]}function zc(r){return Ir(this.__data__,r)>-1}function Kc(r,t){var e=this.__data__,n=Ir(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this}function ce(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}ce.prototype.clear=Pc;ce.prototype.delete=Fc;ce.prototype.get=Hc;ce.prototype.has=zc;ce.prototype.set=Kc;var Pn=ke(te,"Map");function Gc(){this.size=0,this.__data__={hash:new Ce,map:new(Pn||ce),string:new Ce}}function Vc(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function Rr(r,t){var e=r.__data__;return Vc(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Wc(r){var t=Rr(this,r).delete(r);return this.size-=t?1:0,t}function Zc(r){return Rr(this,r).get(r)}function Xc(r){return Rr(this,r).has(r)}function Yc(r,t){var e=Rr(this,r),n=e.size;return e.set(r,t),this.size+=e.size==n?0:1,this}function Be(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Be.prototype.clear=Gc;Be.prototype.delete=Wc;Be.prototype.get=Zc;Be.prototype.has=Xc;Be.prototype.set=Yc;function Qc(r,t){for(var e=-1,n=t.length,s=r.length;++e<n;)r[s+e]=t[e];return r}var Wl=Gl(Object.getPrototypeOf,Object),Jc="[object Object]",tu=Function.prototype,eu=Object.prototype,Zl=tu.toString,nu=eu.hasOwnProperty,ru=Zl.call(Object);function su(r){if(!le(r)||hn(r)!=Jc)return!1;var t=Wl(r);if(t===null)return!0;var e=nu.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Zl.call(e)==ru}function iu(){this.__data__=new ce,this.size=0}function lu(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}function ou(r){return this.__data__.get(r)}function au(r){return this.__data__.has(r)}var cu=200;function uu(r,t){var e=this.__data__;if(e instanceof ce){var n=e.__data__;if(!Pn||n.length<cu-1)return n.push([r,t]),this.size=++e.size,this;e=this.__data__=new Be(n)}return e.set(r,t),this.size=e.size,this}function Xt(r){var t=this.__data__=new ce(r);this.size=t.size}Xt.prototype.clear=iu;Xt.prototype.delete=lu;Xt.prototype.get=ou;Xt.prototype.has=au;Xt.prototype.set=uu;var Xl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pi=Xl&&typeof module=="object"&&module&&!module.nodeType&&module,hu=Pi&&Pi.exports===Xl,$i=hu?te.Buffer:void 0,Ui=$i?$i.allocUnsafe:void 0;function Yl(r,t){if(t)return r.slice();var e=r.length,n=Ui?Ui(e):new r.constructor(e);return r.copy(n),n}function fu(r,t){for(var e=-1,n=r==null?0:r.length,s=0,i=[];++e<n;){var o=r[e];t(o,e,r)&&(i[s++]=o)}return i}function du(){return[]}var gu=Object.prototype,pu=gu.propertyIsEnumerable,Fi=Object.getOwnPropertySymbols,mu=Fi?function(r){return r==null?[]:(r=Object(r),fu(Fi(r),function(t){return pu.call(r,t)}))}:du;function bu(r,t,e){var n=t(r);return qe(r)?n:Qc(n,e(r))}function zs(r){return bu(r,wc,mu)}var Ks=ke(te,"DataView"),Gs=ke(te,"Promise"),Vs=ke(te,"Set"),Hi="[object Map]",yu="[object Object]",zi="[object Promise]",Ki="[object Set]",Gi="[object WeakMap]",Vi="[object DataView]",vu=Re(Ks),Eu=Re(Pn),Au=Re(Gs),Nu=Re(Vs),wu=Re(Fs),jt=hn;(Ks&&jt(new Ks(new ArrayBuffer(1)))!=Vi||Pn&&jt(new Pn)!=Hi||Gs&&jt(Gs.resolve())!=zi||Vs&&jt(new Vs)!=Ki||Fs&&jt(new Fs)!=Gi)&&(jt=function(r){var t=hn(r),e=t==yu?r.constructor:void 0,n=e?Re(e):"";if(n)switch(n){case vu:return Vi;case Eu:return Hi;case Au:return zi;case Nu:return Ki;case wu:return Gi}return t});var Tu=Object.prototype,xu=Tu.hasOwnProperty;function Lu(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&xu.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var _r=te.Uint8Array;function mi(r){var t=new r.constructor(r.byteLength);return new _r(t).set(new _r(r)),t}function Su(r,t){var e=mi(r.buffer);return new r.constructor(e,r.byteOffset,r.byteLength)}var _u=/\w*$/;function Ou(r){var t=new r.constructor(r.source,_u.exec(r));return t.lastIndex=r.lastIndex,t}var Wi=ve?ve.prototype:void 0,Zi=Wi?Wi.valueOf:void 0;function qu(r){return Zi?Object(Zi.call(r)):{}}function Ql(r,t){var e=t?mi(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var Cu="[object Boolean]",Iu="[object Date]",Ru="[object Map]",ku="[object Number]",Bu="[object RegExp]",Mu="[object Set]",Du="[object String]",ju="[object Symbol]",Pu="[object ArrayBuffer]",$u="[object DataView]",Uu="[object Float32Array]",Fu="[object Float64Array]",Hu="[object Int8Array]",zu="[object Int16Array]",Ku="[object Int32Array]",Gu="[object Uint8Array]",Vu="[object Uint8ClampedArray]",Wu="[object Uint16Array]",Zu="[object Uint32Array]";function Xu(r,t,e){var n=r.constructor;switch(t){case Pu:return mi(r);case Cu:case Iu:return new n(+r);case $u:return Su(r);case Uu:case Fu:case Hu:case zu:case Ku:case Gu:case Vu:case Wu:case Zu:return Ql(r,e);case Ru:return new n;case ku:case Du:return new n(r);case Bu:return Ou(r);case Mu:return new n;case ju:return qu(r)}}function Jl(r){return typeof r.constructor=="function"&&!di(r)?ma(Wl(r)):{}}var Yu="[object Map]";function Qu(r){return le(r)&&jt(r)==Yu}var Xi=ln&&ln.isMap,Ju=Xi?gi(Xi):Qu,th="[object Set]";function eh(r){return le(r)&&jt(r)==th}var Yi=ln&&ln.isSet,nh=Yi?gi(Yi):eh,rh=1,to="[object Arguments]",sh="[object Array]",ih="[object Boolean]",lh="[object Date]",oh="[object Error]",eo="[object Function]",ah="[object GeneratorFunction]",ch="[object Map]",uh="[object Number]",no="[object Object]",hh="[object RegExp]",fh="[object Set]",dh="[object String]",gh="[object Symbol]",ph="[object WeakMap]",mh="[object ArrayBuffer]",bh="[object DataView]",yh="[object Float32Array]",vh="[object Float64Array]",Eh="[object Int8Array]",Ah="[object Int16Array]",Nh="[object Int32Array]",wh="[object Uint8Array]",Th="[object Uint8ClampedArray]",xh="[object Uint16Array]",Lh="[object Uint32Array]",st={};st[to]=st[sh]=st[mh]=st[bh]=st[ih]=st[lh]=st[yh]=st[vh]=st[Eh]=st[Ah]=st[Nh]=st[ch]=st[uh]=st[no]=st[hh]=st[fh]=st[dh]=st[gh]=st[wh]=st[Th]=st[xh]=st[Lh]=!0;st[oh]=st[eo]=st[ph]=!1;function Tr(r,t,e,n,s,i){var o,a=t&rh;if(o!==void 0)return o;if(!Ee(r))return r;var u=qe(r);if(u)o=Lu(r);else{var h=jt(r),p=h==eo||h==ah;if(Dn(r))return Yl(r,a);if(h==no||h==to||p&&!s)o=p?{}:Jl(r);else{if(!st[h])return s?r:{};o=Xu(r,h,a)}}i||(i=new Xt);var v=i.get(r);if(v)return v;i.set(r,o),nh(r)?r.forEach(function(y){o.add(Tr(y,t,e,y,r,i))}):Ju(r)&&r.forEach(function(y,A){o.set(A,Tr(y,t,e,A,r,i))});var f=zs,m=u?void 0:f(r);return La(m||r,function(y,A){m&&(A=y,y=r[A]),$l(o,A,Tr(y,t,e,A,r,i))}),o}var Sh=1,_h=4;function nn(r){return Tr(r,Sh|_h)}var Oh="__lodash_hash_undefined__";function qh(r){return this.__data__.set(r,Oh),this}function Ch(r){return this.__data__.has(r)}function Or(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new Be;++t<e;)this.add(r[t])}Or.prototype.add=Or.prototype.push=qh;Or.prototype.has=Ch;function Ih(r,t){for(var e=-1,n=r==null?0:r.length;++e<n;)if(t(r[e],e,r))return!0;return!1}function Rh(r,t){return r.has(t)}var kh=1,Bh=2;function ro(r,t,e,n,s,i){var o=e&kh,a=r.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var h=i.get(r),p=i.get(t);if(h&&p)return h==t&&p==r;var v=-1,f=!0,m=e&Bh?new Or:void 0;for(i.set(r,t),i.set(t,r);++v<a;){var y=r[v],A=t[v];if(n)var w=o?n(A,y,v,t,r,i):n(y,A,v,r,t,i);if(w!==void 0){if(w)continue;f=!1;break}if(m){if(!Ih(t,function(x,C){if(!Rh(m,C)&&(y===x||s(y,x,e,n,i)))return m.push(C)})){f=!1;break}}else if(!(y===A||s(y,A,e,n,i))){f=!1;break}}return i.delete(r),i.delete(t),f}function Mh(r){var t=-1,e=Array(r.size);return r.forEach(function(n,s){e[++t]=[s,n]}),e}function Dh(r){var t=-1,e=Array(r.size);return r.forEach(function(n){e[++t]=n}),e}var jh=1,Ph=2,$h="[object Boolean]",Uh="[object Date]",Fh="[object Error]",Hh="[object Map]",zh="[object Number]",Kh="[object RegExp]",Gh="[object Set]",Vh="[object String]",Wh="[object Symbol]",Zh="[object ArrayBuffer]",Xh="[object DataView]",Qi=ve?ve.prototype:void 0,qs=Qi?Qi.valueOf:void 0;function Yh(r,t,e,n,s,i,o){switch(e){case Xh:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Zh:return!(r.byteLength!=t.byteLength||!i(new _r(r),new _r(t)));case $h:case Uh:case zh:return zn(+r,+t);case Fh:return r.name==t.name&&r.message==t.message;case Kh:case Vh:return r==t+"";case Hh:var a=Mh;case Gh:var u=n&jh;if(a||(a=Dh),r.size!=t.size&&!u)return!1;var h=o.get(r);if(h)return h==t;n|=Ph,o.set(r,t);var p=ro(a(r),a(t),n,s,i,o);return o.delete(r),p;case Wh:if(qs)return qs.call(r)==qs.call(t)}return!1}var Qh=1,Jh=Object.prototype,tf=Jh.hasOwnProperty;function ef(r,t,e,n,s,i){var o=e&Qh,a=zs(r),u=a.length,h=zs(t),p=h.length;if(u!=p&&!o)return!1;for(var v=u;v--;){var f=a[v];if(!(o?f in t:tf.call(t,f)))return!1}var m=i.get(r),y=i.get(t);if(m&&y)return m==t&&y==r;var A=!0;i.set(r,t),i.set(t,r);for(var w=o;++v<u;){f=a[v];var x=r[f],C=t[f];if(n)var M=o?n(C,x,f,t,r,i):n(x,C,f,r,t,i);if(!(M===void 0?x===C||s(x,C,e,n,i):M)){A=!1;break}w||(w=f=="constructor")}if(A&&!w){var z=r.constructor,U=t.constructor;z!=U&&"constructor"in r&&"constructor"in t&&!(typeof z=="function"&&z instanceof z&&typeof U=="function"&&U instanceof U)&&(A=!1)}return i.delete(r),i.delete(t),A}var nf=1,Ji="[object Arguments]",tl="[object Array]",gr="[object Object]",rf=Object.prototype,el=rf.hasOwnProperty;function sf(r,t,e,n,s,i){var o=qe(r),a=qe(t),u=o?tl:jt(r),h=a?tl:jt(t);u=u==Ji?gr:u,h=h==Ji?gr:h;var p=u==gr,v=h==gr,f=u==h;if(f&&Dn(r)){if(!Dn(t))return!1;o=!0,p=!1}if(f&&!p)return i||(i=new Xt),o||pi(r)?ro(r,t,e,n,s,i):Yh(r,t,u,e,n,s,i);if(!(e&nf)){var m=p&&el.call(r,"__wrapped__"),y=v&&el.call(t,"__wrapped__");if(m||y){var A=m?r.value():r,w=y?t.value():t;return i||(i=new Xt),s(A,w,e,n,i)}}return f?(i||(i=new Xt),ef(r,t,e,n,s,i)):!1}function so(r,t,e,n,s){return r===t?!0:r==null||t==null||!le(r)&&!le(t)?r!==r&&t!==t:sf(r,t,e,n,so,s)}function lf(r){return function(t,e,n){for(var s=-1,i=Object(t),o=n(t),a=o.length;a--;){var u=o[++s];if(e(i[u],u,i)===!1)break}return t}}var of=lf();function Ws(r,t,e){(e!==void 0&&!zn(r[t],e)||e===void 0&&!(t in r))&&fi(r,t,e)}function af(r){return le(r)&&Cr(r)}function Zs(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}function cf(r){return Ca(r,Vl(r))}function uf(r,t,e,n,s,i,o){var a=Zs(r,e),u=Zs(t,e),h=o.get(u);if(h){Ws(r,e,h);return}var p=i?i(a,u,e+"",r,t,o):void 0,v=p===void 0;if(v){var f=qe(u),m=!f&&Dn(u),y=!f&&!m&&pi(u);p=u,f||m||y?qe(a)?p=a:af(a)?p=ya(a):m?(v=!1,p=Yl(u,!0)):y?(v=!1,p=Ql(u,!0)):p=[]:su(u)||Hs(u)?(p=a,Hs(a)?p=cf(a):(!Ee(a)||hi(a))&&(p=Jl(u))):v=!1}v&&(o.set(u,p),s(p,u,n,i,o),o.delete(u)),Ws(r,e,p)}function io(r,t,e,n,s){r!==t&&of(t,function(i,o){if(s||(s=new Xt),Ee(i))uf(r,t,o,e,io,n,s);else{var a=n?n(Zs(r,o),i,o+"",r,t,s):void 0;a===void 0&&(a=i),Ws(r,o,a)}},Vl)}function ge(r,t){return so(r,t)}var ye=Ma(function(r,t,e){io(r,t,e)}),D=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(D||{});class Qt{constructor(t,e,n={}){this.attrName=t,this.keyName=e;const s=D.TYPE&D.ATTRIBUTE;this.scope=n.scope!=null?n.scope&D.LEVEL|s:D.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class rn extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const lo=class Xs{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let n=null;try{n=t.parentNode}catch{return null}return this.find(n,e)}return null}create(t,e,n){const s=this.query(e);if(s==null)throw new rn(`Unable to create ${e} blot`);const i=s,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(n),a=new i(t,o,n);return Xs.blots.set(a.domNode,a),a}find(t,e=!1){return Xs.find(t,e)}query(t,e=D.ANY){let n;return typeof t=="string"?n=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?n=this.types.text:typeof t=="number"?t&D.LEVEL&D.BLOCK?n=this.types.block:t&D.LEVEL&D.INLINE&&(n=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(s=>(n=this.classes[s],!!n)),n=n||this.tags[t.tagName]),n==null?null:"scope"in n&&e&D.LEVEL&n.scope&&e&D.TYPE&n.scope?n:null}register(...t){return t.map(e=>{const n="blotName"in e,s="attrName"in e;if(!n&&!s)throw new rn("Invalid definition");if(n&&e.blotName==="abstract")throw new rn("Cannot register abstract class");const i=n?e.blotName:s?e.attrName:void 0;return this.types[i]=e,s?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):n&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(o=>o.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(o=>{(this.tags[o]==null||e.className==null)&&(this.tags[o]=e)}))),e})}};lo.blots=new WeakMap;let on=lo;function nl(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class hf extends Qt{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){nl(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(nl(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const Ft=hf;function Cs(r){const t=r.split("-"),e=t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return t[0]+e}class ff extends Qt{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[Cs(this.keyName)]=e,!0):!1}remove(t){t.style[Cs(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[Cs(this.keyName)];return this.canAdd(t,e)?e:""}}const Ae=ff;class df{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=on.find(this.domNode);if(t==null)return;const e=Qt.keys(this.domNode),n=Ft.keys(this.domNode),s=Ae.keys(this.domNode);e.concat(n).concat(s).forEach(i=>{const o=t.scroll.query(i,D.ATTRIBUTE);o instanceof Qt&&(this.attributes[o.attrName]=o)})}copy(t){Object.keys(this.attributes).forEach(e=>{const n=this.attributes[e].value(this.domNode);t.format(e,n)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const kr=df,oo=class{constructor(t,e){this.scroll=t,this.domNode=e,on.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new rn("Blot definition missing tagName");let e,n;return Array.isArray(this.tagName)?(typeof t=="string"?(n=t.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof t=="number"&&(n=t),typeof n=="number"?e=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?e=document.createElement(n):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),on.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,n,s){const i=this.isolate(t,e);if(this.scroll.query(n,D.BLOT)!=null&&s)i.wrap(n,s);else if(this.scroll.query(n,D.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(n,s)}}insertAt(t,e,n){const s=n==null?this.scroll.create("text",e):this.scroll.create(e,n),i=this.split(t);this.parent.insertBefore(s,i||void 0)}isolate(t,e){const n=this.split(t);if(n==null)throw new Error("Attempt to isolate at end");return n.split(e),n}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new rn(`Cannot wrap ${t}`);return n.appendChild(this),n}};oo.blotName="abstract";let ao=oo;const co=class extends ao{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};co.scope=D.INLINE_BLOT;let gf=co;const Et=gf;class pf{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let n=e();for(;n&&t>0;)t-=1,n=e();return n}contains(t){const e=this.iterator();let n=e();for(;n;){if(n===t)return!0;n=e()}return!1}indexOf(t){const e=this.iterator();let n=e(),s=0;for(;n;){if(n===t)return s;s+=1,n=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,n=this.head;for(;n!=null;){if(n===t)return e;e+=n.length(),n=n.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const n=this.iterator();let s=n();for(;s;){const i=s.length();if(t<i||e&&t===i&&(s.next==null||s.next.length()!==0))return[s,t];t-=i,s=n()}return[null,0]}forEach(t){const e=this.iterator();let n=e();for(;n;)t(n),n=e()}forEachAt(t,e,n){if(e<=0)return;const[s,i]=this.find(t);let o=t-i;const a=this.iterator(s);let u=a();for(;u&&o<t+e;){const h=u.length();t>o?n(u,t-o,Math.min(e,o+h-t)):n(u,0,Math.min(h,t+e-o)),o+=h,u=a()}}map(t){return this.reduce((e,n)=>(e.push(t(n)),e),[])}reduce(t,e){const n=this.iterator();let s=n();for(;s;)e=t(e,s),s=n();return e}}function rl(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const n=t.create(D.INLINE);return Array.from(r.childNodes).forEach(s=>{n.domNode.appendChild(s)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const uo=class de extends ao{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,de.uiClass&&this.uiNode.classList.add(de.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new pf,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=rl(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof rn)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(n,s,i)=>{n.deleteAt(s,i)})}descendant(t,e=0){const[n,s]=this.children.find(e);return t.blotName==null&&t(n)||t.blotName!=null&&n instanceof t?[n,s]:n instanceof de?n.descendant(t,s):[null,-1]}descendants(t,e=0,n=Number.MAX_VALUE){let s=[],i=n;return this.children.forEachAt(e,n,(o,a,u)=>{(t.blotName==null&&t(o)||t.blotName!=null&&o instanceof t)&&s.push(o),o instanceof de&&(s=s.concat(o.descendants(t,a,i))),i-=u}),s}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(n=>e instanceof n)||(e.statics.scope===D.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof de?e.unwrap():e.remove())})}formatAt(t,e,n,s){this.children.forEachAt(t,e,(i,o,a)=>{i.formatAt(o,a,n,s)})}insertAt(t,e,n){const[s,i]=this.children.find(t);if(s)s.insertAt(i,e,n);else{const o=n==null?this.scroll.create("text",e):this.scroll.create(e,n);this.appendChild(o)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let n=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(n=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(t.domNode,n),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(n=>{t.insertBefore(n,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[n,s]=this.children.find(t,e),i=[[this,t]];return n instanceof de?i.concat(n.path(s,e)):(n!=null&&i.push([n,s]),i)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;return n instanceof de&&this.moveChildren(n),super.replaceWith(n)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(t,this.length(),(s,i,o)=>{const a=s.split(i,e);a!=null&&n.appendChild(a)}),n}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const n=[],s=[];t.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(n.push(...i.addedNodes),s.push(...i.removedNodes))}),s.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(i);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),n.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,o)=>i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let o=null;i.nextSibling!=null&&(o=this.scroll.find(i.nextSibling));const a=rl(i,this.scroll);(a.next!==o||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,o||void 0))}),this.enforceAllowedChildren()}};uo.uiClass="";let mf=uo;const $t=mf;function bf(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(r[e]!==t[e])return!1;return!0}const Xe=class Ye extends $t{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Ye.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new kr(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(n=>{n instanceof Ye||(n=n.wrap(Ye.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(t,D.INLINE);if(n==null)return;n instanceof Qt?this.attributes.attribute(n,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,s){this.formats()[n]!=null||this.scroll.query(n,D.ATTRIBUTE)?this.isolate(t,e).format(n,s):super.formatAt(t,e,n,s)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const n=this.next;n instanceof Ye&&n.prev===this&&bf(e,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(t,e){const n=super.wrap(t,e);return n instanceof Ye&&this.attributes.move(n),n}};Xe.allowedChildren=[Xe,Et],Xe.blotName="inline",Xe.scope=D.INLINE_BLOT,Xe.tagName="SPAN";let yf=Xe;const bi=yf,Qe=class Ys extends $t{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Ys.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new kr(this.domNode)}format(t,e){const n=this.scroll.query(t,D.BLOCK);n!=null&&(n instanceof Qt?this.attributes.attribute(n,e):t===this.statics.blotName&&!e?this.replaceWith(Ys.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,s){this.scroll.query(n,D.BLOCK)!=null?this.format(n,s):super.formatAt(t,e,n,s)}insertAt(t,e,n){if(n==null||this.scroll.query(e,D.INLINE)!=null)super.insertAt(t,e,n);else{const s=this.split(t);if(s!=null){const i=this.scroll.create(e,n);s.parent.insertBefore(i,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Qe.blotName="block",Qe.scope=D.BLOCK_BLOT,Qe.tagName="P",Qe.allowedChildren=[bi,Qe,Et];let vf=Qe;const $n=vf,Qs=class extends $t{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,n,s){super.formatAt(t,e,n,s),this.enforceAllowedChildren()}insertAt(t,e,n){super.insertAt(t,e,n),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Qs.blotName="container",Qs.scope=D.BLOCK_BLOT;let Ef=Qs;const Br=Ef;class Af extends Et{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,n,s){t===0&&e===this.length()?this.format(n,s):super.formatAt(t,e,n,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Lt=Af,Nf={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},wf=100,Je=class extends $t{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,Nf),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const n=this.registry.find(t,e);return n?n.scroll===this?n:e?this.find(n.scroll.domNode.parentNode,!0):null:null}query(t,e=D.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(t,e)}formatAt(t,e,n,s){this.update(),super.formatAt(t,e,n,s)}insertAt(t,e,n){this.update(),super.insertAt(t,e,n)}optimize(t=[],e={}){super.optimize(e);const n=e.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)t.push(s.pop());const i=(u,h=!0)=>{u==null||u===this||u.domNode.parentNode!=null&&(n.has(u.domNode)||n.set(u.domNode,[]),h&&i(u.parent))},o=u=>{n.has(u.domNode)&&(u instanceof $t&&u.children.forEach(o),n.delete(u.domNode),u.optimize(e))};let a=t;for(let u=0;a.length>0;u+=1){if(u>=wf)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(h=>{const p=this.find(h.target,!0);p!=null&&(p.domNode===h.target&&(h.type==="childList"?(i(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(v=>{const f=this.find(v,!1);i(f,!1),f instanceof $t&&f.children.forEach(m=>{i(m,!1)})})):h.type==="attributes"&&i(p.prev)),i(p))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),s=a.slice();s.length>0;)t.push(s.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const n=new WeakMap;t.map(s=>{const i=this.find(s.target,!0);return i==null?null:n.has(i.domNode)?(n.get(i.domNode).push(s),null):(n.set(i.domNode,[s]),i)}).forEach(s=>{s!=null&&s!==this&&n.has(s.domNode)&&s.update(n.get(s.domNode)||[],e)}),e.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),e),this.optimize(t,e)}};Je.blotName="scroll",Je.defaultChild=$n,Je.allowedChildren=[$n,Br],Je.scope=D.BLOCK_BLOT,Je.tagName="DIV";let Tf=Je;const yi=Tf,Js=class ho extends Et{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,n){n==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof ho&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(t,e){t.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Js.blotName="text",Js.scope=D.INLINE_BLOT;let xf=Js;const qr=xf,Lf=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Qt,AttributorStore:kr,BlockBlot:$n,ClassAttributor:Ft,ContainerBlot:Br,EmbedBlot:Lt,InlineBlot:bi,LeafBlot:Et,ParentBlot:$t,Registry:on,Scope:D,ScrollBlot:yi,StyleAttributor:Ae,TextBlot:qr},Symbol.toStringTag,{value:"Module"}));var pr={exports:{}},Is,sl;function Sf(){if(sl)return Is;sl=1;var r=-1,t=1,e=0;function n(g,L,b,O,S){if(g===L)return g?[[e,g]]:[];if(b!=null){var T=Rt(g,L,b);if(T)return T}var _=a(g,L),k=g.substring(0,_);g=g.substring(_),L=L.substring(_),_=h(g,L);var j=g.substring(g.length-_);g=g.substring(0,g.length-_),L=L.substring(0,L.length-_);var I=s(g,L);return k&&I.unshift([e,k]),j&&I.push([e,j]),C(I,S),O&&v(I),I}function s(g,L){var b;if(!g)return[[t,L]];if(!L)return[[r,g]];var O=g.length>L.length?g:L,S=g.length>L.length?L:g,T=O.indexOf(S);if(T!==-1)return b=[[t,O.substring(0,T)],[e,S],[t,O.substring(T+S.length)]],g.length>L.length&&(b[0][0]=b[2][0]=r),b;if(S.length===1)return[[r,g],[t,L]];var _=p(g,L);if(_){var k=_[0],j=_[1],I=_[2],K=_[3],F=_[4],V=n(k,I),W=n(j,K);return V.concat([[e,F]],W)}return i(g,L)}function i(g,L){for(var b=g.length,O=L.length,S=Math.ceil((b+O)/2),T=S,_=2*S,k=new Array(_),j=new Array(_),I=0;I<_;I++)k[I]=-1,j[I]=-1;k[T+1]=0,j[T+1]=0;for(var K=b-O,F=K%2!==0,V=0,W=0,$=0,it=0,ot=0;ot<S;ot++){for(var G=-ot+V;G<=ot-W;G+=2){var Q=T+G,Y;G===-ot||G!==ot&&k[Q-1]<k[Q+1]?Y=k[Q+1]:Y=k[Q-1]+1;for(var J=Y-G;Y<b&&J<O&&g.charAt(Y)===L.charAt(J);)Y++,J++;if(k[Q]=Y,Y>b)W+=2;else if(J>O)V+=2;else if(F){var et=T+K-G;if(et>=0&&et<_&&j[et]!==-1){var nt=b-j[et];if(Y>=nt)return o(g,L,Y,J)}}}for(var ct=-ot+$;ct<=ot-it;ct+=2){var et=T+ct,nt;ct===-ot||ct!==ot&&j[et-1]<j[et+1]?nt=j[et+1]:nt=j[et-1]+1;for(var mt=nt-ct;nt<b&&mt<O&&g.charAt(b-nt-1)===L.charAt(O-mt-1);)nt++,mt++;if(j[et]=nt,nt>b)it+=2;else if(mt>O)$+=2;else if(!F){var Q=T+K-ct;if(Q>=0&&Q<_&&k[Q]!==-1){var Y=k[Q],J=T+Y-Q;if(nt=b-nt,Y>=nt)return o(g,L,Y,J)}}}}return[[r,g],[t,L]]}function o(g,L,b,O){var S=g.substring(0,b),T=L.substring(0,O),_=g.substring(b),k=L.substring(O),j=n(S,T),I=n(_,k);return j.concat(I)}function a(g,L){if(!g||!L||g.charAt(0)!==L.charAt(0))return 0;for(var b=0,O=Math.min(g.length,L.length),S=O,T=0;b<S;)g.substring(T,S)==L.substring(T,S)?(b=S,T=b):O=S,S=Math.floor((O-b)/2+b);return M(g.charCodeAt(S-1))&&S--,S}function u(g,L){var b=g.length,O=L.length;if(b==0||O==0)return 0;b>O?g=g.substring(b-O):b<O&&(L=L.substring(0,b));var S=Math.min(b,O);if(g==L)return S;for(var T=0,_=1;;){var k=g.substring(S-_),j=L.indexOf(k);if(j==-1)return T;_+=j,(j==0||g.substring(S-_)==L.substring(0,_))&&(T=_,_++)}}function h(g,L){if(!g||!L||g.slice(-1)!==L.slice(-1))return 0;for(var b=0,O=Math.min(g.length,L.length),S=O,T=0;b<S;)g.substring(g.length-S,g.length-T)==L.substring(L.length-S,L.length-T)?(b=S,T=b):O=S,S=Math.floor((O-b)/2+b);return z(g.charCodeAt(g.length-S))&&S--,S}function p(g,L){var b=g.length>L.length?g:L,O=g.length>L.length?L:g;if(b.length<4||O.length*2<b.length)return null;function S(W,$,it){for(var ot=W.substring(it,it+Math.floor(W.length/4)),G=-1,Q="",Y,J,et,nt;(G=$.indexOf(ot,G+1))!==-1;){var ct=a(W.substring(it),$.substring(G)),mt=h(W.substring(0,it),$.substring(0,G));Q.length<mt+ct&&(Q=$.substring(G-mt,G)+$.substring(G,G+ct),Y=W.substring(0,it-mt),J=W.substring(it+ct),et=$.substring(0,G-mt),nt=$.substring(G+ct))}return Q.length*2>=W.length?[Y,J,et,nt,Q]:null}var T=S(b,O,Math.ceil(b.length/4)),_=S(b,O,Math.ceil(b.length/2)),k;if(!T&&!_)return null;_?T?k=T[4].length>_[4].length?T:_:k=_:k=T;var j,I,K,F;g.length>L.length?(j=k[0],I=k[1],K=k[2],F=k[3]):(K=k[0],F=k[1],j=k[2],I=k[3]);var V=k[4];return[j,I,K,F,V]}function v(g){for(var L=!1,b=[],O=0,S=null,T=0,_=0,k=0,j=0,I=0;T<g.length;)g[T][0]==e?(b[O++]=T,_=j,k=I,j=0,I=0,S=g[T][1]):(g[T][0]==t?j+=g[T][1].length:I+=g[T][1].length,S&&S.length<=Math.max(_,k)&&S.length<=Math.max(j,I)&&(g.splice(b[O-1],0,[r,S]),g[b[O-1]+1][0]=t,O--,O--,T=O>0?b[O-1]:-1,_=0,k=0,j=0,I=0,S=null,L=!0)),T++;for(L&&C(g),x(g),T=1;T<g.length;){if(g[T-1][0]==r&&g[T][0]==t){var K=g[T-1][1],F=g[T][1],V=u(K,F),W=u(F,K);V>=W?(V>=K.length/2||V>=F.length/2)&&(g.splice(T,0,[e,F.substring(0,V)]),g[T-1][1]=K.substring(0,K.length-V),g[T+1][1]=F.substring(V),T++):(W>=K.length/2||W>=F.length/2)&&(g.splice(T,0,[e,K.substring(0,W)]),g[T-1][0]=t,g[T-1][1]=F.substring(0,F.length-W),g[T+1][0]=r,g[T+1][1]=K.substring(W),T++),T++}T++}}var f=/[^a-zA-Z0-9]/,m=/\s/,y=/[\r\n]/,A=/\n\r?\n$/,w=/^\r?\n\r?\n/;function x(g){function L(W,$){if(!W||!$)return 6;var it=W.charAt(W.length-1),ot=$.charAt(0),G=it.match(f),Q=ot.match(f),Y=G&&it.match(m),J=Q&&ot.match(m),et=Y&&it.match(y),nt=J&&ot.match(y),ct=et&&W.match(A),mt=nt&&$.match(w);return ct||mt?5:et||nt?4:G&&!Y&&J?3:Y||J?2:G||Q?1:0}for(var b=1;b<g.length-1;){if(g[b-1][0]==e&&g[b+1][0]==e){var O=g[b-1][1],S=g[b][1],T=g[b+1][1],_=h(O,S);if(_){var k=S.substring(S.length-_);O=O.substring(0,O.length-_),S=k+S.substring(0,S.length-_),T=k+T}for(var j=O,I=S,K=T,F=L(O,S)+L(S,T);S.charAt(0)===T.charAt(0);){O+=S.charAt(0),S=S.substring(1)+T.charAt(0),T=T.substring(1);var V=L(O,S)+L(S,T);V>=F&&(F=V,j=O,I=S,K=T)}g[b-1][1]!=j&&(j?g[b-1][1]=j:(g.splice(b-1,1),b--),g[b][1]=I,K?g[b+1][1]=K:(g.splice(b+1,1),b--))}b++}}function C(g,L){g.push([e,""]);for(var b=0,O=0,S=0,T="",_="",k;b<g.length;){if(b<g.length-1&&!g[b][1]){g.splice(b,1);continue}switch(g[b][0]){case t:S++,_+=g[b][1],b++;break;case r:O++,T+=g[b][1],b++;break;case e:var j=b-S-O-1;if(L){if(j>=0&&rt(g[j][1])){var I=g[j][1].slice(-1);if(g[j][1]=g[j][1].slice(0,-1),T=I+T,_=I+_,!g[j][1]){g.splice(j,1),b--;var K=j-1;g[K]&&g[K][0]===t&&(S++,_=g[K][1]+_,K--),g[K]&&g[K][0]===r&&(O++,T=g[K][1]+T,K--),j=K}}if(U(g[b][1])){var I=g[b][1].charAt(0);g[b][1]=g[b][1].slice(1),T+=I,_+=I}}if(b<g.length-1&&!g[b][1]){g.splice(b,1);break}if(T.length>0||_.length>0){T.length>0&&_.length>0&&(k=a(_,T),k!==0&&(j>=0?g[j][1]+=_.substring(0,k):(g.splice(0,0,[e,_.substring(0,k)]),b++),_=_.substring(k),T=T.substring(k)),k=h(_,T),k!==0&&(g[b][1]=_.substring(_.length-k)+g[b][1],_=_.substring(0,_.length-k),T=T.substring(0,T.length-k)));var F=S+O;T.length===0&&_.length===0?(g.splice(b-F,F),b=b-F):T.length===0?(g.splice(b-F,F,[t,_]),b=b-F+1):_.length===0?(g.splice(b-F,F,[r,T]),b=b-F+1):(g.splice(b-F,F,[r,T],[t,_]),b=b-F+2)}b!==0&&g[b-1][0]===e?(g[b-1][1]+=g[b][1],g.splice(b,1)):b++,S=0,O=0,T="",_="";break}}g[g.length-1][1]===""&&g.pop();var V=!1;for(b=1;b<g.length-1;)g[b-1][0]===e&&g[b+1][0]===e&&(g[b][1].substring(g[b][1].length-g[b-1][1].length)===g[b-1][1]?(g[b][1]=g[b-1][1]+g[b][1].substring(0,g[b][1].length-g[b-1][1].length),g[b+1][1]=g[b-1][1]+g[b+1][1],g.splice(b-1,1),V=!0):g[b][1].substring(0,g[b+1][1].length)==g[b+1][1]&&(g[b-1][1]+=g[b+1][1],g[b][1]=g[b][1].substring(g[b+1][1].length)+g[b+1][1],g.splice(b+1,1),V=!0)),b++;V&&C(g,L)}function M(g){return g>=55296&&g<=56319}function z(g){return g>=56320&&g<=57343}function U(g){return z(g.charCodeAt(0))}function rt(g){return M(g.charCodeAt(g.length-1))}function at(g){for(var L=[],b=0;b<g.length;b++)g[b][1].length>0&&L.push(g[b]);return L}function ft(g,L,b,O){return rt(g)||U(O)?null:at([[e,g],[r,L],[t,b],[e,O]])}function Rt(g,L,b){var O=typeof b=="number"?{index:b,length:0}:b.oldRange,S=typeof b=="number"?null:b.newRange,T=g.length,_=L.length;if(O.length===0&&(S===null||S.length===0)){var k=O.index,j=g.slice(0,k),I=g.slice(k),K=S?S.index:null;t:{var F=k+_-T;if(K!==null&&K!==F||F<0||F>_)break t;var V=L.slice(0,F),W=L.slice(F);if(W!==I)break t;var $=Math.min(k,F),it=j.slice(0,$),ot=V.slice(0,$);if(it!==ot)break t;var G=j.slice($),Q=V.slice($);return ft(it,G,Q,I)}t:{if(K!==null&&K!==k)break t;var Y=k,V=L.slice(0,Y),W=L.slice(Y);if(V!==j)break t;var J=Math.min(T-Y,_-Y),et=I.slice(I.length-J),nt=W.slice(W.length-J);if(et!==nt)break t;var G=I.slice(0,I.length-J),Q=W.slice(0,W.length-J);return ft(j,G,Q,et)}}if(O.length>0&&S&&S.length===0)t:{var it=g.slice(0,O.index),et=g.slice(O.index+O.length),$=it.length,J=et.length;if(_<$+J)break t;var ot=L.slice(0,$),nt=L.slice(_-J);if(it!==ot||et!==nt)break t;var G=g.slice($,T-J),Q=L.slice($,_-J);return ft(it,G,Q,et)}return null}function xt(g,L,b,O){return n(g,L,b,O,!0)}return xt.INSERT=t,xt.DELETE=r,xt.EQUAL=e,Is=xt,Is}var qn={exports:{}};qn.exports;var il;function fo(){return il||(il=1,(function(r,t){var e=200,n="__lodash_hash_undefined__",s=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Function]",v="[object GeneratorFunction]",f="[object Map]",m="[object Number]",y="[object Object]",A="[object Promise]",w="[object RegExp]",x="[object Set]",C="[object String]",M="[object Symbol]",z="[object WeakMap]",U="[object ArrayBuffer]",rt="[object DataView]",at="[object Float32Array]",ft="[object Float64Array]",Rt="[object Int8Array]",xt="[object Int16Array]",g="[object Int32Array]",L="[object Uint8Array]",b="[object Uint8ClampedArray]",O="[object Uint16Array]",S="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,k=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,I={};I[i]=I[o]=I[U]=I[rt]=I[a]=I[u]=I[at]=I[ft]=I[Rt]=I[xt]=I[g]=I[f]=I[m]=I[y]=I[w]=I[x]=I[C]=I[M]=I[L]=I[b]=I[O]=I[S]=!0,I[h]=I[p]=I[z]=!1;var K=typeof pe=="object"&&pe&&pe.Object===Object&&pe,F=typeof self=="object"&&self&&self.Object===Object&&self,V=K||F||Function("return this")(),W=t&&!t.nodeType&&t,$=W&&!0&&r&&!r.nodeType&&r,it=$&&$.exports===W;function ot(l,c){return l.set(c[0],c[1]),l}function G(l,c){return l.add(c),l}function Q(l,c){for(var d=-1,E=l?l.length:0;++d<E&&c(l[d],d,l)!==!1;);return l}function Y(l,c){for(var d=-1,E=c.length,H=l.length;++d<E;)l[H+d]=c[d];return l}function J(l,c,d,E){for(var H=-1,P=l?l.length:0;++H<P;)d=c(d,l[H],H,l);return d}function et(l,c){for(var d=-1,E=Array(l);++d<l;)E[d]=c(d);return E}function nt(l,c){return l==null?void 0:l[c]}function ct(l){var c=!1;if(l!=null&&typeof l.toString!="function")try{c=!!(l+"")}catch{}return c}function mt(l){var c=-1,d=Array(l.size);return l.forEach(function(E,H){d[++c]=[H,E]}),d}function fn(l,c){return function(d){return l(c(d))}}function Zn(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var $r=Array.prototype,Ur=Function.prototype,Pe=Object.prototype,dn=V["__core-js_shared__"],Xn=(function(){var l=/[^.]+$/.exec(dn&&dn.keys&&dn.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Yn=Ur.toString,Kt=Pe.hasOwnProperty,$e=Pe.toString,Fr=RegExp("^"+Yn.call(Kt).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=it?V.Buffer:void 0,Ue=V.Symbol,gn=V.Uint8Array,St=fn(Object.getPrototypeOf,Object),Qn=Object.create,Jn=Pe.propertyIsEnumerable,Hr=$r.splice,pn=Object.getOwnPropertySymbols,Fe=Ne?Ne.isBuffer:void 0,tr=fn(Object.keys,Object),He=Bt(V,"DataView"),we=Bt(V,"Map"),kt=Bt(V,"Promise"),ze=Bt(V,"Set"),mn=Bt(V,"WeakMap"),Te=Bt(Object,"create"),bn=Nt(He),xe=Nt(we),yn=Nt(kt),vn=Nt(ze),En=Nt(mn),he=Ue?Ue.prototype:void 0,er=he?he.valueOf:void 0;function ee(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function zr(){this.__data__=Te?Te(null):{}}function Kr(l){return this.has(l)&&delete this.__data__[l]}function Gr(l){var c=this.__data__;if(Te){var d=c[l];return d===n?void 0:d}return Kt.call(c,l)?c[l]:void 0}function nr(l){var c=this.__data__;return Te?c[l]!==void 0:Kt.call(c,l)}function An(l,c){var d=this.__data__;return d[l]=Te&&c===void 0?n:c,this}ee.prototype.clear=zr,ee.prototype.delete=Kr,ee.prototype.get=Gr,ee.prototype.has=nr,ee.prototype.set=An;function dt(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Vr(){this.__data__=[]}function Wr(l){var c=this.__data__,d=Ge(c,l);if(d<0)return!1;var E=c.length-1;return d==E?c.pop():Hr.call(c,d,1),!0}function Zr(l){var c=this.__data__,d=Ge(c,l);return d<0?void 0:c[d][1]}function Xr(l){return Ge(this.__data__,l)>-1}function Yr(l,c){var d=this.__data__,E=Ge(d,l);return E<0?d.push([l,c]):d[E][1]=c,this}dt.prototype.clear=Vr,dt.prototype.delete=Wr,dt.prototype.get=Zr,dt.prototype.has=Xr,dt.prototype.set=Yr;function bt(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Qr(){this.__data__={hash:new ee,map:new(we||dt),string:new ee}}function Jr(l){return Se(this,l).delete(l)}function ts(l){return Se(this,l).get(l)}function es(l){return Se(this,l).has(l)}function ns(l,c){return Se(this,l).set(l,c),this}bt.prototype.clear=Qr,bt.prototype.delete=Jr,bt.prototype.get=ts,bt.prototype.has=es,bt.prototype.set=ns;function wt(l){this.__data__=new dt(l)}function rs(){this.__data__=new dt}function ss(l){return this.__data__.delete(l)}function is(l){return this.__data__.get(l)}function ls(l){return this.__data__.has(l)}function os(l,c){var d=this.__data__;if(d instanceof dt){var E=d.__data__;if(!we||E.length<e-1)return E.push([l,c]),this;d=this.__data__=new bt(E)}return d.set(l,c),this}wt.prototype.clear=rs,wt.prototype.delete=ss,wt.prototype.get=is,wt.prototype.has=ls,wt.prototype.set=os;function Ke(l,c){var d=xn(l)||We(l)?et(l.length,String):[],E=d.length,H=!!E;for(var P in l)Kt.call(l,P)&&!(H&&(P=="length"||As(P,E)))&&d.push(P);return d}function rr(l,c,d){var E=l[c];(!(Kt.call(l,c)&&ar(E,d))||d===void 0&&!(c in l))&&(l[c]=d)}function Ge(l,c){for(var d=l.length;d--;)if(ar(l[d][0],c))return d;return-1}function Gt(l,c){return l&&Tn(c,Sn(c),l)}function Nn(l,c,d,E,H,P,X){var Z;if(E&&(Z=P?E(l,H,P,X):E(l)),Z!==void 0)return Z;if(!Wt(l))return l;var ut=xn(l);if(ut){if(Z=vs(l),!c)return ms(l,Z)}else{var tt=re(l),yt=tt==p||tt==v;if(cr(l))return Ve(l,c);if(tt==y||tt==i||yt&&!P){if(ct(l))return P?l:{};if(Z=Vt(yt?{}:l),!c)return bs(l,Gt(Z,l))}else{if(!I[tt])return P?l:{};Z=Es(l,tt,Nn,c)}}X||(X=new wt);var Tt=X.get(l);if(Tt)return Tt;if(X.set(l,Z),!ut)var ht=d?ys(l):Sn(l);return Q(ht||l,function(vt,gt){ht&&(gt=vt,vt=l[gt]),rr(Z,gt,Nn(vt,c,d,E,gt,l,X))}),Z}function as(l){return Wt(l)?Qn(l):{}}function cs(l,c,d){var E=c(l);return xn(l)?E:Y(E,d(l))}function us(l){return $e.call(l)}function hs(l){if(!Wt(l)||ws(l))return!1;var c=Ln(l)||ct(l)?Fr:k;return c.test(Nt(l))}function fs(l){if(!lr(l))return tr(l);var c=[];for(var d in Object(l))Kt.call(l,d)&&d!="constructor"&&c.push(d);return c}function Ve(l,c){if(c)return l.slice();var d=new l.constructor(l.length);return l.copy(d),d}function wn(l){var c=new l.constructor(l.byteLength);return new gn(c).set(new gn(l)),c}function Le(l,c){var d=c?wn(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.byteLength)}function sr(l,c,d){var E=c?d(mt(l),!0):mt(l);return J(E,ot,new l.constructor)}function ir(l){var c=new l.constructor(l.source,_.exec(l));return c.lastIndex=l.lastIndex,c}function ds(l,c,d){var E=c?d(Zn(l),!0):Zn(l);return J(E,G,new l.constructor)}function gs(l){return er?Object(er.call(l)):{}}function ps(l,c){var d=c?wn(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.length)}function ms(l,c){var d=-1,E=l.length;for(c||(c=Array(E));++d<E;)c[d]=l[d];return c}function Tn(l,c,d,E){d||(d={});for(var H=-1,P=c.length;++H<P;){var X=c[H],Z=void 0;rr(d,X,Z===void 0?l[X]:Z)}return d}function bs(l,c){return Tn(l,ne(l),c)}function ys(l){return cs(l,Sn,ne)}function Se(l,c){var d=l.__data__;return Ns(c)?d[typeof c=="string"?"string":"hash"]:d.map}function Bt(l,c){var d=nt(l,c);return hs(d)?d:void 0}var ne=pn?fn(pn,Object):xs,re=us;(He&&re(new He(new ArrayBuffer(1)))!=rt||we&&re(new we)!=f||kt&&re(kt.resolve())!=A||ze&&re(new ze)!=x||mn&&re(new mn)!=z)&&(re=function(l){var c=$e.call(l),d=c==y?l.constructor:void 0,E=d?Nt(d):void 0;if(E)switch(E){case bn:return rt;case xe:return f;case yn:return A;case vn:return x;case En:return z}return c});function vs(l){var c=l.length,d=l.constructor(c);return c&&typeof l[0]=="string"&&Kt.call(l,"index")&&(d.index=l.index,d.input=l.input),d}function Vt(l){return typeof l.constructor=="function"&&!lr(l)?as(St(l)):{}}function Es(l,c,d,E){var H=l.constructor;switch(c){case U:return wn(l);case a:case u:return new H(+l);case rt:return Le(l,E);case at:case ft:case Rt:case xt:case g:case L:case b:case O:case S:return ps(l,E);case f:return sr(l,E,d);case m:case C:return new H(l);case w:return ir(l);case x:return ds(l,E,d);case M:return gs(l)}}function As(l,c){return c=c??s,!!c&&(typeof l=="number"||j.test(l))&&l>-1&&l%1==0&&l<c}function Ns(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function ws(l){return!!Xn&&Xn in l}function lr(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||Pe;return l===d}function Nt(l){if(l!=null){try{return Yn.call(l)}catch{}try{return l+""}catch{}}return""}function or(l){return Nn(l,!0,!0)}function ar(l,c){return l===c||l!==l&&c!==c}function We(l){return Ts(l)&&Kt.call(l,"callee")&&(!Jn.call(l,"callee")||$e.call(l)==i)}var xn=Array.isArray;function Ze(l){return l!=null&&ur(l.length)&&!Ln(l)}function Ts(l){return hr(l)&&Ze(l)}var cr=Fe||Ls;function Ln(l){var c=Wt(l)?$e.call(l):"";return c==p||c==v}function ur(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=s}function Wt(l){var c=typeof l;return!!l&&(c=="object"||c=="function")}function hr(l){return!!l&&typeof l=="object"}function Sn(l){return Ze(l)?Ke(l):fs(l)}function xs(){return[]}function Ls(){return!1}r.exports=or})(qn,qn.exports)),qn.exports}var Cn={exports:{}};Cn.exports;var ll;function go(){return ll||(ll=1,(function(r,t){var e=200,n="__lodash_hash_undefined__",s=1,i=2,o=9007199254740991,a="[object Arguments]",u="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",v="[object Date]",f="[object Error]",m="[object Function]",y="[object GeneratorFunction]",A="[object Map]",w="[object Number]",x="[object Null]",C="[object Object]",M="[object Promise]",z="[object Proxy]",U="[object RegExp]",rt="[object Set]",at="[object String]",ft="[object Symbol]",Rt="[object Undefined]",xt="[object WeakMap]",g="[object ArrayBuffer]",L="[object DataView]",b="[object Float32Array]",O="[object Float64Array]",S="[object Int8Array]",T="[object Int16Array]",_="[object Int32Array]",k="[object Uint8Array]",j="[object Uint8ClampedArray]",I="[object Uint16Array]",K="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,$={};$[b]=$[O]=$[S]=$[T]=$[_]=$[k]=$[j]=$[I]=$[K]=!0,$[a]=$[u]=$[g]=$[p]=$[L]=$[v]=$[f]=$[m]=$[A]=$[w]=$[C]=$[U]=$[rt]=$[at]=$[xt]=!1;var it=typeof pe=="object"&&pe&&pe.Object===Object&&pe,ot=typeof self=="object"&&self&&self.Object===Object&&self,G=it||ot||Function("return this")(),Q=t&&!t.nodeType&&t,Y=Q&&!0&&r&&!r.nodeType&&r,J=Y&&Y.exports===Q,et=J&&it.process,nt=(function(){try{return et&&et.binding&&et.binding("util")}catch{}})(),ct=nt&&nt.isTypedArray;function mt(l,c){for(var d=-1,E=l==null?0:l.length,H=0,P=[];++d<E;){var X=l[d];c(X,d,l)&&(P[H++]=X)}return P}function fn(l,c){for(var d=-1,E=c.length,H=l.length;++d<E;)l[H+d]=c[d];return l}function Zn(l,c){for(var d=-1,E=l==null?0:l.length;++d<E;)if(c(l[d],d,l))return!0;return!1}function $r(l,c){for(var d=-1,E=Array(l);++d<l;)E[d]=c(d);return E}function Ur(l){return function(c){return l(c)}}function Pe(l,c){return l.has(c)}function dn(l,c){return l==null?void 0:l[c]}function Xn(l){var c=-1,d=Array(l.size);return l.forEach(function(E,H){d[++c]=[H,E]}),d}function Yn(l,c){return function(d){return l(c(d))}}function Kt(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var $e=Array.prototype,Fr=Function.prototype,Ne=Object.prototype,Ue=G["__core-js_shared__"],gn=Fr.toString,St=Ne.hasOwnProperty,Qn=(function(){var l=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Jn=Ne.toString,Hr=RegExp("^"+gn.call(St).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pn=J?G.Buffer:void 0,Fe=G.Symbol,tr=G.Uint8Array,He=Ne.propertyIsEnumerable,we=$e.splice,kt=Fe?Fe.toStringTag:void 0,ze=Object.getOwnPropertySymbols,mn=pn?pn.isBuffer:void 0,Te=Yn(Object.keys,Object),bn=ne(G,"DataView"),xe=ne(G,"Map"),yn=ne(G,"Promise"),vn=ne(G,"Set"),En=ne(G,"WeakMap"),he=ne(Object,"create"),er=Nt(bn),ee=Nt(xe),zr=Nt(yn),Kr=Nt(vn),Gr=Nt(En),nr=Fe?Fe.prototype:void 0,An=nr?nr.valueOf:void 0;function dt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Vr(){this.__data__=he?he(null):{},this.size=0}function Wr(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}function Zr(l){var c=this.__data__;if(he){var d=c[l];return d===n?void 0:d}return St.call(c,l)?c[l]:void 0}function Xr(l){var c=this.__data__;return he?c[l]!==void 0:St.call(c,l)}function Yr(l,c){var d=this.__data__;return this.size+=this.has(l)?0:1,d[l]=he&&c===void 0?n:c,this}dt.prototype.clear=Vr,dt.prototype.delete=Wr,dt.prototype.get=Zr,dt.prototype.has=Xr,dt.prototype.set=Yr;function bt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Qr(){this.__data__=[],this.size=0}function Jr(l){var c=this.__data__,d=Ve(c,l);if(d<0)return!1;var E=c.length-1;return d==E?c.pop():we.call(c,d,1),--this.size,!0}function ts(l){var c=this.__data__,d=Ve(c,l);return d<0?void 0:c[d][1]}function es(l){return Ve(this.__data__,l)>-1}function ns(l,c){var d=this.__data__,E=Ve(d,l);return E<0?(++this.size,d.push([l,c])):d[E][1]=c,this}bt.prototype.clear=Qr,bt.prototype.delete=Jr,bt.prototype.get=ts,bt.prototype.has=es,bt.prototype.set=ns;function wt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function rs(){this.size=0,this.__data__={hash:new dt,map:new(xe||bt),string:new dt}}function ss(l){var c=Bt(this,l).delete(l);return this.size-=c?1:0,c}function is(l){return Bt(this,l).get(l)}function ls(l){return Bt(this,l).has(l)}function os(l,c){var d=Bt(this,l),E=d.size;return d.set(l,c),this.size+=d.size==E?0:1,this}wt.prototype.clear=rs,wt.prototype.delete=ss,wt.prototype.get=is,wt.prototype.has=ls,wt.prototype.set=os;function Ke(l){var c=-1,d=l==null?0:l.length;for(this.__data__=new wt;++c<d;)this.add(l[c])}function rr(l){return this.__data__.set(l,n),this}function Ge(l){return this.__data__.has(l)}Ke.prototype.add=Ke.prototype.push=rr,Ke.prototype.has=Ge;function Gt(l){var c=this.__data__=new bt(l);this.size=c.size}function Nn(){this.__data__=new bt,this.size=0}function as(l){var c=this.__data__,d=c.delete(l);return this.size=c.size,d}function cs(l){return this.__data__.get(l)}function us(l){return this.__data__.has(l)}function hs(l,c){var d=this.__data__;if(d instanceof bt){var E=d.__data__;if(!xe||E.length<e-1)return E.push([l,c]),this.size=++d.size,this;d=this.__data__=new wt(E)}return d.set(l,c),this.size=d.size,this}Gt.prototype.clear=Nn,Gt.prototype.delete=as,Gt.prototype.get=cs,Gt.prototype.has=us,Gt.prototype.set=hs;function fs(l,c){var d=We(l),E=!d&&ar(l),H=!d&&!E&&Ze(l),P=!d&&!E&&!H&&hr(l),X=d||E||H||P,Z=X?$r(l.length,String):[],ut=Z.length;for(var tt in l)St.call(l,tt)&&!(X&&(tt=="length"||H&&(tt=="offset"||tt=="parent")||P&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||Es(tt,ut)))&&Z.push(tt);return Z}function Ve(l,c){for(var d=l.length;d--;)if(or(l[d][0],c))return d;return-1}function wn(l,c,d){var E=c(l);return We(l)?E:fn(E,d(l))}function Le(l){return l==null?l===void 0?Rt:x:kt&&kt in Object(l)?re(l):lr(l)}function sr(l){return Wt(l)&&Le(l)==a}function ir(l,c,d,E,H){return l===c?!0:l==null||c==null||!Wt(l)&&!Wt(c)?l!==l&&c!==c:ds(l,c,d,E,ir,H)}function ds(l,c,d,E,H,P){var X=We(l),Z=We(c),ut=X?u:Vt(l),tt=Z?u:Vt(c);ut=ut==a?C:ut,tt=tt==a?C:tt;var yt=ut==C,Tt=tt==C,ht=ut==tt;if(ht&&Ze(l)){if(!Ze(c))return!1;X=!0,yt=!1}if(ht&&!yt)return P||(P=new Gt),X||hr(l)?Tn(l,c,d,E,H,P):bs(l,c,ut,d,E,H,P);if(!(d&s)){var vt=yt&&St.call(l,"__wrapped__"),gt=Tt&&St.call(c,"__wrapped__");if(vt||gt){var fe=vt?l.value():l,se=gt?c.value():c;return P||(P=new Gt),H(fe,se,d,E,P)}}return ht?(P||(P=new Gt),ys(l,c,d,E,H,P)):!1}function gs(l){if(!ur(l)||Ns(l))return!1;var c=cr(l)?Hr:V;return c.test(Nt(l))}function ps(l){return Wt(l)&&Ln(l.length)&&!!$[Le(l)]}function ms(l){if(!ws(l))return Te(l);var c=[];for(var d in Object(l))St.call(l,d)&&d!="constructor"&&c.push(d);return c}function Tn(l,c,d,E,H,P){var X=d&s,Z=l.length,ut=c.length;if(Z!=ut&&!(X&&ut>Z))return!1;var tt=P.get(l);if(tt&&P.get(c))return tt==c;var yt=-1,Tt=!0,ht=d&i?new Ke:void 0;for(P.set(l,c),P.set(c,l);++yt<Z;){var vt=l[yt],gt=c[yt];if(E)var fe=X?E(gt,vt,yt,c,l,P):E(vt,gt,yt,l,c,P);if(fe!==void 0){if(fe)continue;Tt=!1;break}if(ht){if(!Zn(c,function(se,_e){if(!Pe(ht,_e)&&(vt===se||H(vt,se,d,E,P)))return ht.push(_e)})){Tt=!1;break}}else if(!(vt===gt||H(vt,gt,d,E,P))){Tt=!1;break}}return P.delete(l),P.delete(c),Tt}function bs(l,c,d,E,H,P,X){switch(d){case L:if(l.byteLength!=c.byteLength||l.byteOffset!=c.byteOffset)return!1;l=l.buffer,c=c.buffer;case g:return!(l.byteLength!=c.byteLength||!P(new tr(l),new tr(c)));case p:case v:case w:return or(+l,+c);case f:return l.name==c.name&&l.message==c.message;case U:case at:return l==c+"";case A:var Z=Xn;case rt:var ut=E&s;if(Z||(Z=Kt),l.size!=c.size&&!ut)return!1;var tt=X.get(l);if(tt)return tt==c;E|=i,X.set(l,c);var yt=Tn(Z(l),Z(c),E,H,P,X);return X.delete(l),yt;case ft:if(An)return An.call(l)==An.call(c)}return!1}function ys(l,c,d,E,H,P){var X=d&s,Z=Se(l),ut=Z.length,tt=Se(c),yt=tt.length;if(ut!=yt&&!X)return!1;for(var Tt=ut;Tt--;){var ht=Z[Tt];if(!(X?ht in c:St.call(c,ht)))return!1}var vt=P.get(l);if(vt&&P.get(c))return vt==c;var gt=!0;P.set(l,c),P.set(c,l);for(var fe=X;++Tt<ut;){ht=Z[Tt];var se=l[ht],_e=c[ht];if(E)var Oi=X?E(_e,se,ht,c,l,P):E(se,_e,ht,l,c,P);if(!(Oi===void 0?se===_e||H(se,_e,d,E,P):Oi)){gt=!1;break}fe||(fe=ht=="constructor")}if(gt&&!fe){var fr=l.constructor,dr=c.constructor;fr!=dr&&"constructor"in l&&"constructor"in c&&!(typeof fr=="function"&&fr instanceof fr&&typeof dr=="function"&&dr instanceof dr)&&(gt=!1)}return P.delete(l),P.delete(c),gt}function Se(l){return wn(l,Sn,vs)}function Bt(l,c){var d=l.__data__;return As(c)?d[typeof c=="string"?"string":"hash"]:d.map}function ne(l,c){var d=dn(l,c);return gs(d)?d:void 0}function re(l){var c=St.call(l,kt),d=l[kt];try{l[kt]=void 0;var E=!0}catch{}var H=Jn.call(l);return E&&(c?l[kt]=d:delete l[kt]),H}var vs=ze?function(l){return l==null?[]:(l=Object(l),mt(ze(l),function(c){return He.call(l,c)}))}:xs,Vt=Le;(bn&&Vt(new bn(new ArrayBuffer(1)))!=L||xe&&Vt(new xe)!=A||yn&&Vt(yn.resolve())!=M||vn&&Vt(new vn)!=rt||En&&Vt(new En)!=xt)&&(Vt=function(l){var c=Le(l),d=c==C?l.constructor:void 0,E=d?Nt(d):"";if(E)switch(E){case er:return L;case ee:return A;case zr:return M;case Kr:return rt;case Gr:return xt}return c});function Es(l,c){return c=c??o,!!c&&(typeof l=="number"||W.test(l))&&l>-1&&l%1==0&&l<c}function As(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function Ns(l){return!!Qn&&Qn in l}function ws(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||Ne;return l===d}function lr(l){return Jn.call(l)}function Nt(l){if(l!=null){try{return gn.call(l)}catch{}try{return l+""}catch{}}return""}function or(l,c){return l===c||l!==l&&c!==c}var ar=sr((function(){return arguments})())?sr:function(l){return Wt(l)&&St.call(l,"callee")&&!He.call(l,"callee")},We=Array.isArray;function xn(l){return l!=null&&Ln(l.length)&&!cr(l)}var Ze=mn||Ls;function Ts(l,c){return ir(l,c)}function cr(l){if(!ur(l))return!1;var c=Le(l);return c==m||c==y||c==h||c==z}function Ln(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=o}function ur(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}function Wt(l){return l!=null&&typeof l=="object"}var hr=ct?Ur(ct):ps;function Sn(l){return xn(l)?fs(l):ms(l)}function xs(){return[]}function Ls(){return!1}r.exports=Ts})(Cn,Cn.exports)),Cn.exports}var mr={},ol;function _f(){if(ol)return mr;ol=1,Object.defineProperty(mr,"__esModule",{value:!0});const r=fo(),t=go();var e;return(function(n){function s(u={},h={},p=!1){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});let v=r(h);p||(v=Object.keys(v).reduce((f,m)=>(v[m]!=null&&(f[m]=v[m]),f),{}));for(const f in u)u[f]!==void 0&&h[f]===void 0&&(v[f]=u[f]);return Object.keys(v).length>0?v:void 0}n.compose=s;function i(u={},h={}){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});const p=Object.keys(u).concat(Object.keys(h)).reduce((v,f)=>(t(u[f],h[f])||(v[f]=h[f]===void 0?null:h[f]),v),{});return Object.keys(p).length>0?p:void 0}n.diff=i;function o(u={},h={}){u=u||{};const p=Object.keys(h).reduce((v,f)=>(h[f]!==u[f]&&u[f]!==void 0&&(v[f]=h[f]),v),{});return Object.keys(u).reduce((v,f)=>(u[f]!==h[f]&&h[f]===void 0&&(v[f]=null),v),p)}n.invert=o;function a(u,h,p=!1){if(typeof u!="object")return h;if(typeof h!="object")return;if(!p)return h;const v=Object.keys(h).reduce((f,m)=>(u[m]===void 0&&(f[m]=h[m]),f),{});return Object.keys(v).length>0?v:void 0}n.transform=a})(e||(e={})),mr.default=e,mr}var br={},al;function po(){if(al)return br;al=1,Object.defineProperty(br,"__esModule",{value:!0});var r;return(function(t){function e(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}t.length=e})(r||(r={})),br.default=r,br}var yr={},cl;function Of(){if(cl)return yr;cl=1,Object.defineProperty(yr,"__esModule",{value:!0});const r=po();class t{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const s=this.ops[this.index];if(s){const i=this.offset,o=r.default.length(s);if(n>=o-i?(n=o-i,this.index+=1,this.offset=0):this.offset+=n,typeof s.delete=="number")return{delete:n};{const a={};return s.attributes&&(a.attributes=s.attributes),typeof s.retain=="number"?a.retain=n:typeof s.retain=="object"&&s.retain!==null?a.retain=s.retain:typeof s.insert=="string"?a.insert=s.insert.substr(i,n):a.insert=s.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,s=this.index,i=this.next(),o=this.ops.slice(this.index);return this.offset=n,this.index=s,[i].concat(o)}}else return[]}}return yr.default=t,yr}var ul;function qf(){return ul||(ul=1,(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const e=Sf(),n=fo(),s=go(),i=_f();t.AttributeMap=i.default;const o=po();t.Op=o.default;const a=Of();t.OpIterator=a.default;const u="\0",h=(v,f)=>{if(typeof v!="object"||v===null)throw new Error(`cannot retain a ${typeof v}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const m=Object.keys(v)[0];if(!m||m!==Object.keys(f)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(f)[0]}`);return[m,v[m],f[m]]};class p{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,m){this.handlers[f]=m}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const m=this.handlers[f];if(!m)throw new Error(`no handlers for embed type "${f}"`);return m}insert(f,m){const y={};return typeof f=="string"&&f.length===0?this:(y.insert=f,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(y.attributes=m),this.push(y))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,m){if(typeof f=="number"&&f<=0)return this;const y={retain:f};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(y.attributes=m),this.push(y)}push(f){let m=this.ops.length,y=this.ops[m-1];if(f=n(f),typeof y=="object"){if(typeof f.delete=="number"&&typeof y.delete=="number")return this.ops[m-1]={delete:y.delete+f.delete},this;if(typeof y.delete=="number"&&f.insert!=null&&(m-=1,y=this.ops[m-1],typeof y!="object"))return this.ops.unshift(f),this;if(s(f.attributes,y.attributes)){if(typeof f.insert=="string"&&typeof y.insert=="string")return this.ops[m-1]={insert:y.insert+f.insert},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof y.retain=="number")return this.ops[m-1]={retain:y.retain+f.retain},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this}}return m===this.ops.length?this.ops.push(f):this.ops.splice(m,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const m=[],y=[];return this.forEach(A=>{(f(A)?m:y).push(A)}),[m,y]}reduce(f,m){return this.ops.reduce(f,m)}changeLength(){return this.reduce((f,m)=>m.insert?f+o.default.length(m):m.delete?f-m.delete:f,0)}length(){return this.reduce((f,m)=>f+o.default.length(m),0)}slice(f=0,m=1/0){const y=[],A=new a.default(this.ops);let w=0;for(;w<m&&A.hasNext();){let x;w<f?x=A.next(f-w):(x=A.next(m-w),y.push(x)),w+=o.default.length(x)}return new p(y)}compose(f){const m=new a.default(this.ops),y=new a.default(f.ops),A=[],w=y.peek();if(w!=null&&typeof w.retain=="number"&&w.attributes==null){let C=w.retain;for(;m.peekType()==="insert"&&m.peekLength()<=C;)C-=m.peekLength(),A.push(m.next());w.retain-C>0&&y.next(w.retain-C)}const x=new p(A);for(;m.hasNext()||y.hasNext();)if(y.peekType()==="insert")x.push(y.next());else if(m.peekType()==="delete")x.push(m.next());else{const C=Math.min(m.peekLength(),y.peekLength()),M=m.next(C),z=y.next(C);if(z.retain){const U={};if(typeof M.retain=="number")U.retain=typeof z.retain=="number"?C:z.retain;else if(typeof z.retain=="number")M.retain==null?U.insert=M.insert:U.retain=M.retain;else{const at=M.retain==null?"insert":"retain",[ft,Rt,xt]=h(M[at],z.retain),g=p.getHandler(ft);U[at]={[ft]:g.compose(Rt,xt,at==="retain")}}const rt=i.default.compose(M.attributes,z.attributes,typeof M.retain=="number");if(rt&&(U.attributes=rt),x.push(U),!y.hasNext()&&s(x.ops[x.ops.length-1],U)){const at=new p(m.rest());return x.concat(at).chop()}}else typeof z.delete=="number"&&(typeof M.retain=="number"||typeof M.retain=="object"&&M.retain!==null)&&x.push(z)}return x.chop()}concat(f){const m=new p(this.ops.slice());return f.ops.length>0&&(m.push(f.ops[0]),m.ops=m.ops.concat(f.ops.slice(1))),m}diff(f,m){if(this.ops===f.ops)return new p;const y=[this,f].map(M=>M.map(z=>{if(z.insert!=null)return typeof z.insert=="string"?z.insert:u;const U=M===f?"on":"with";throw new Error("diff() called "+U+" non-document")}).join("")),A=new p,w=e(y[0],y[1],m,!0),x=new a.default(this.ops),C=new a.default(f.ops);return w.forEach(M=>{let z=M[1].length;for(;z>0;){let U=0;switch(M[0]){case e.INSERT:U=Math.min(C.peekLength(),z),A.push(C.next(U));break;case e.DELETE:U=Math.min(z,x.peekLength()),x.next(U),A.delete(U);break;case e.EQUAL:U=Math.min(x.peekLength(),C.peekLength(),z);const rt=x.next(U),at=C.next(U);s(rt.insert,at.insert)?A.retain(U,i.default.diff(rt.attributes,at.attributes)):A.push(at).delete(U);break}z-=U}}),A.chop()}eachLine(f,m=`
|
|
2
2
|
`){const y=new a.default(this.ops);let A=new p,w=0;for(;y.hasNext();){if(y.peekType()!=="insert")return;const x=y.peek(),C=o.default.length(x)-y.peekLength(),M=typeof x.insert=="string"?x.insert.indexOf(m,C)-C:-1;if(M<0)A.push(y.next());else if(M>0)A.push(y.next(M));else{if(f(A,y.next(1).attributes||{},w)===!1)return;w+=1,A=new p}}A.length()>0&&f(A,{},w)}invert(f){const m=new p;return this.reduce((y,A)=>{if(A.insert)m.delete(o.default.length(A));else{if(typeof A.retain=="number"&&A.attributes==null)return m.retain(A.retain),y+A.retain;if(A.delete||typeof A.retain=="number"){const w=A.delete||A.retain;return f.slice(y,y+w).forEach(C=>{A.delete?m.push(C):A.retain&&A.attributes&&m.retain(o.default.length(C),i.default.invert(A.attributes,C.attributes))}),y+w}else if(typeof A.retain=="object"&&A.retain!==null){const w=f.slice(y,y+1),x=new a.default(w.ops).next(),[C,M,z]=h(A.retain,x.insert),U=p.getHandler(C);return m.retain({[C]:U.invert(M,z)},i.default.invert(A.attributes,x.attributes)),y+1}}return y},0),m.chop()}transform(f,m=!1){if(m=!!m,typeof f=="number")return this.transformPosition(f,m);const y=f,A=new a.default(this.ops),w=new a.default(y.ops),x=new p;for(;A.hasNext()||w.hasNext();)if(A.peekType()==="insert"&&(m||w.peekType()!=="insert"))x.retain(o.default.length(A.next()));else if(w.peekType()==="insert")x.push(w.next());else{const C=Math.min(A.peekLength(),w.peekLength()),M=A.next(C),z=w.next(C);if(M.delete)continue;if(z.delete)x.push(z);else{const U=M.retain,rt=z.retain;let at=typeof rt=="object"&&rt!==null?rt:C;if(typeof U=="object"&&U!==null&&typeof rt=="object"&&rt!==null){const ft=Object.keys(U)[0];if(ft===Object.keys(rt)[0]){const Rt=p.getHandler(ft);Rt&&(at={[ft]:Rt.transform(U[ft],rt[ft],m)})}}x.retain(at,i.default.transform(M.attributes,z.attributes,m))}}return x.chop()}transformPosition(f,m=!1){m=!!m;const y=new a.default(this.ops);let A=0;for(;y.hasNext()&&A<=f;){const w=y.peekLength(),x=y.peekType();if(y.next(),x==="delete"){f-=Math.min(w,f-A);continue}else x==="insert"&&(A<f||!m)&&(f+=w);A+=w}return f}}p.Op=o.default,p.OpIterator=a.default,p.AttributeMap=i.default,p.handlers={},t.default=p,r.exports=p,r.exports.default=p})(pr,pr.exports)),pr.exports}var It=qf();const B=Bl(It);class Ht extends Lt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Ht.blotName="break";Ht.tagName="BR";let Ut=class extends qr{};const Cf={"&":"&","<":"<",">":">",'"':""","'":"'"};function Mr(r){return r.replace(/[&<>"']/g,t=>Cf[t])}const Zt=class Zt extends bi{static compare(t,e){const n=Zt.order.indexOf(t),s=Zt.order.indexOf(e);return n>=0||s>=0?n-s:t===e?0:t<e?-1:1}formatAt(t,e,n,s){if(Zt.compare(this.statics.blotName,n)<0&&this.scroll.query(n,D.BLOT)){const i=this.isolate(t,e);s&&i.wrap(n,s)}else super.formatAt(t,e,n,s)}optimize(t){if(super.optimize(t),this.parent instanceof Zt&&Zt.compare(this.statics.blotName,this.parent.statics.blotName)>0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}};q(Zt,"allowedChildren",[Zt,Ht,Lt,Ut]),q(Zt,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Jt=Zt;const hl=1;class pt extends $n{constructor(){super(...arguments);q(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=mo(this)),this.cache.delta}deleteAt(e,n){super.deleteAt(e,n),this.cache={}}formatAt(e,n,s,i){n<=0||(this.scroll.query(s,D.BLOCK)?e+n===this.length()&&this.format(s,i):super.formatAt(e,Math.min(n,this.length()-e-1),s,i),this.cache={})}insertAt(e,n,s){if(s!=null){super.insertAt(e,n,s),this.cache={};return}if(n.length===0)return;const i=n.split(`
|
|
3
3
|
`),o=i.shift();o.length>0&&(e<this.length()-1||this.children.tail==null?super.insertAt(Math.min(e,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let a=this;i.reduce((u,h)=>(a=a.split(u,!0),a.insertAt(0,h),h.length),e+o.length)}insertBefore(e,n){const{head:s}=this.children;super.insertBefore(e,n),s instanceof Ht&&s.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+hl),this.cache.length}moveChildren(e,n){super.moveChildren(e,n),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(e===0||e>=this.length()-hl)){const i=this.clone();return e===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}const s=super.split(e,n);return this.cache={},s}}pt.blotName="block";pt.tagName="P";pt.defaultChild=Ht;pt.allowedChildren=[Ht,Jt,Lt,Ut];class Ct extends Lt{attach(){super.attach(),this.attributes=new kr(this.domNode)}delta(){return new B().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const n=this.scroll.query(t,D.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,e)}formatAt(t,e,n,s){this.format(n,s)}insertAt(t,e,n){if(n!=null){super.insertAt(t,e,n);return}const s=e.split(`
|
|
4
4
|
`),i=s.pop(),o=s.map(u=>{const h=this.scroll.create(pt.blotName);return h.insertAt(0,u),h}),a=this.split(t);o.forEach(u=>{this.parent.insertBefore(u,a)}),i&&this.parent.insertBefore(this.scroll.create("text",i),a)}}Ct.scope=D.BLOCK_BLOT;function mo(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(Et).reduce((e,n)=>n.length()===0?e:e.insert(n.value(),Ot(n,{},t)),new B).insert(`
|