@wazobiatech/wazui 1.1.12 → 1.1.13
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/{PictureBlot-CgjgDpDe.js → PictureBlot-DDtIFhFl.js} +2 -2
- package/dist/{PictureBlot-CgjgDpDe.js.map → PictureBlot-DDtIFhFl.js.map} +1 -1
- package/dist/{PictureBlot-B8dtH4i_.cjs → PictureBlot-RfYit5dS.cjs} +2 -2
- package/dist/{PictureBlot-B8dtH4i_.cjs.map → PictureBlot-RfYit5dS.cjs.map} +1 -1
- package/dist/VideoBlot-BwW94w7k.cjs +2 -0
- package/dist/VideoBlot-BwW94w7k.cjs.map +1 -0
- package/dist/VideoBlot-D4kQOTJm.js +197 -0
- package/dist/VideoBlot-D4kQOTJm.js.map +1 -0
- package/dist/components/wazui/WazUiWysiwygInput/blots/VideoBlot.d.ts.map +1 -1
- package/dist/{index-CvG8-aj_.js → index-C0jdCrq9.js} +2 -2
- package/dist/index-C0jdCrq9.js.map +4 -0
- package/dist/{index-sRXq2mte.cjs → index-X3QO--ek.cjs} +3 -3
- package/dist/index-X3QO--ek.cjs.map +4 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{quill-DGi1aMLj.js → quill-B_VHr5gs.js} +2 -2
- package/dist/{quill-DGi1aMLj.js.map → quill-B_VHr5gs.js.map} +1 -1
- package/dist/{quill-YRx7HL-V.cjs → quill-DgdjRl2f.cjs} +2 -2
- package/dist/{quill-YRx7HL-V.cjs.map → quill-DgdjRl2f.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/VideoBlot-D0Ab-WGf.cjs +0 -2
- package/dist/VideoBlot-D0Ab-WGf.cjs.map +0 -1
- package/dist/VideoBlot-DxUouq38.js +0 -201
- package/dist/VideoBlot-DxUouq38.js.map +0 -1
- package/dist/index-CvG8-aj_.js.map +0 -4
- package/dist/index-sRXq2mte.cjs.map +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";var Do=Object.defineProperty;var Po=(r,t,e)=>t in r?Do(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var q=(r,t,e)=>Po(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Xt=require("./index-sRXq2mte.cjs");var ql=typeof global=="object"&&global&&global.Object===Object&&global,$o=typeof self=="object"&&self&&self.Object===Object&&self,ee=ql||$o||Function("return this")(),ye=ee.Symbol,Cl=Object.prototype,Uo=Cl.hasOwnProperty,Fo=Cl.toString,Ln=ye?ye.toStringTag:void 0;function Ho(r){var t=Uo.call(r,Ln),e=r[Ln];try{r[Ln]=void 0;var n=!0}catch{}var s=Fo.call(r);return n&&(t?r[Ln]=e:delete r[Ln]),s}var zo=Object.prototype,Go=zo.toString;function Ko(r){return Go.call(r)}var Vo="[object Null]",Wo="[object Undefined]",Si=ye?ye.toStringTag:void 0;function cn(r){return r==null?r===void 0?Wo:Vo:Si&&Si in Object(r)?Ho(r):Ko(r)}function oe(r){return r!=null&&typeof r=="object"}var Oe=Array.isArray;function Ee(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function Il(r){return r}var Zo="[object AsyncFunction]",Xo="[object Function]",Yo="[object GeneratorFunction]",Qo="[object Proxy]";function oi(r){if(!Ee(r))return!1;var t=cn(r);return t==Xo||t==Yo||t==Zo||t==Qo}var Ts=ee["__core-js_shared__"],_i=(function(){var r=/[^.]+$/.exec(Ts&&Ts.keys&&Ts.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function Jo(r){return!!_i&&_i in r}var ta=Function.prototype,ea=ta.toString;function Ce(r){if(r!=null){try{return ea.call(r)}catch{}try{return r+""}catch{}}return""}var na=/[\\^$.*+?()[\]{}|]/g,ra=/^\[object .+?Constructor\]$/,sa=Function.prototype,ia=Object.prototype,la=sa.toString,oa=ia.hasOwnProperty,aa=RegExp("^"+la.call(oa).replace(na,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ca(r){if(!Ee(r)||Jo(r))return!1;var t=oi(r)?aa:ra;return t.test(Ce(r))}function ua(r,t){return r==null?void 0:r[t]}function Ie(r,t){var e=ua(r,t);return ca(e)?e:void 0}var Ds=Ie(ee,"WeakMap"),Oi=Object.create,ha=(function(){function r(){}return function(t){if(!Ee(t))return{};if(Oi)return Oi(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})();function fa(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 da(r,t){var e=-1,n=r.length;for(t||(t=Array(n));++e<n;)t[e]=r[e];return t}var ga=800,pa=16,ma=Date.now;function ba(r){var t=0,e=0;return function(){var n=ma(),s=pa-(n-e);if(e=n,s>0){if(++t>=ga)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}function ya(r){return function(){return r}}var xr=(function(){try{var r=Ie(Object,"defineProperty");return r({},"",{}),r}catch{}})(),va=xr?function(r,t){return xr(r,"toString",{configurable:!0,enumerable:!1,value:ya(t),writable:!0})}:Il,Ea=ba(va);function Aa(r,t){for(var e=-1,n=r==null?0:r.length;++e<n&&t(r[e],e,r)!==!1;);return r}var Na=9007199254740991,wa=/^(?:0|[1-9]\d*)$/;function Rl(r,t){var e=typeof r;return t=t??Na,!!t&&(e=="number"||e!="symbol"&&wa.test(r))&&r>-1&&r%1==0&&r<t}function ai(r,t,e){t=="__proto__"&&xr?xr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}function Fn(r,t){return r===t||r!==r&&t!==t}var Ta=Object.prototype,xa=Ta.hasOwnProperty;function kl(r,t,e){var n=r[t];(!(xa.call(r,t)&&Fn(n,e))||e===void 0&&!(t in r))&&ai(r,t,e)}function La(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?ai(e,a,u):kl(e,a,u)}return e}var qi=Math.max;function Sa(r,t,e){return t=qi(t===void 0?r.length-1:t,0),function(){for(var n=arguments,s=-1,i=qi(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),fa(r,this,a)}}function _a(r,t){return Ea(Sa(r,t,Il),r+"")}var Oa=9007199254740991;function Bl(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Oa}function Or(r){return r!=null&&Bl(r.length)&&!oi(r)}function qa(r,t,e){if(!Ee(e))return!1;var n=typeof t;return(n=="number"?Or(e)&&Rl(t,e.length):n=="string"&&t in e)?Fn(e[t],r):!1}function Ca(r){return _a(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&&qa(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 Ia=Object.prototype;function ci(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Ia;return r===e}function Ra(r,t){for(var e=-1,n=Array(r);++e<r;)n[e]=t(e);return n}var ka="[object Arguments]";function Ci(r){return oe(r)&&cn(r)==ka}var Ml=Object.prototype,Ba=Ml.hasOwnProperty,Ma=Ml.propertyIsEnumerable,Ps=Ci((function(){return arguments})())?Ci:function(r){return oe(r)&&Ba.call(r,"callee")&&!Ma.call(r,"callee")};function ja(){return!1}var jl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ii=jl&&typeof module=="object"&&module&&!module.nodeType&&module,Da=Ii&&Ii.exports===jl,Ri=Da?ee.Buffer:void 0,Pa=Ri?Ri.isBuffer:void 0,Bn=Pa||ja,$a="[object Arguments]",Ua="[object Array]",Fa="[object Boolean]",Ha="[object Date]",za="[object Error]",Ga="[object Function]",Ka="[object Map]",Va="[object Number]",Wa="[object Object]",Za="[object RegExp]",Xa="[object Set]",Ya="[object String]",Qa="[object WeakMap]",Ja="[object ArrayBuffer]",tc="[object DataView]",ec="[object Float32Array]",nc="[object Float64Array]",rc="[object Int8Array]",sc="[object Int16Array]",ic="[object Int32Array]",lc="[object Uint8Array]",oc="[object Uint8ClampedArray]",ac="[object Uint16Array]",cc="[object Uint32Array]",lt={};lt[ec]=lt[nc]=lt[rc]=lt[sc]=lt[ic]=lt[lc]=lt[oc]=lt[ac]=lt[cc]=!0;lt[$a]=lt[Ua]=lt[Ja]=lt[Fa]=lt[tc]=lt[Ha]=lt[za]=lt[Ga]=lt[Ka]=lt[Va]=lt[Wa]=lt[Za]=lt[Xa]=lt[Ya]=lt[Qa]=!1;function uc(r){return oe(r)&&Bl(r.length)&&!!lt[cn(r)]}function ui(r){return function(t){return r(t)}}var Dl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cn=Dl&&typeof module=="object"&&module&&!module.nodeType&&module,hc=Cn&&Cn.exports===Dl,xs=hc&&ql.process,rn=(function(){try{var r=Cn&&Cn.require&&Cn.require("util").types;return r||xs&&xs.binding&&xs.binding("util")}catch{}})(),ki=rn&&rn.isTypedArray,hi=ki?ui(ki):uc,fc=Object.prototype,dc=fc.hasOwnProperty;function Pl(r,t){var e=Oe(r),n=!e&&Ps(r),s=!e&&!n&&Bn(r),i=!e&&!n&&!s&&hi(r),o=e||n||s||i,a=o?Ra(r.length,String):[],u=a.length;for(var h in r)(t||dc.call(r,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Rl(h,u)))&&a.push(h);return a}function $l(r,t){return function(e){return r(t(e))}}var gc=$l(Object.keys,Object),pc=Object.prototype,mc=pc.hasOwnProperty;function bc(r){if(!ci(r))return gc(r);var t=[];for(var e in Object(r))mc.call(r,e)&&e!="constructor"&&t.push(e);return t}function yc(r){return Or(r)?Pl(r):bc(r)}function vc(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var Ec=Object.prototype,Ac=Ec.hasOwnProperty;function Nc(r){if(!Ee(r))return vc(r);var t=ci(r),e=[];for(var n in r)n=="constructor"&&(t||!Ac.call(r,n))||e.push(n);return e}function Ul(r){return Or(r)?Pl(r,!0):Nc(r)}var Mn=Ie(Object,"create");function wc(){this.__data__=Mn?Mn(null):{},this.size=0}function Tc(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var xc="__lodash_hash_undefined__",Lc=Object.prototype,Sc=Lc.hasOwnProperty;function _c(r){var t=this.__data__;if(Mn){var e=t[r];return e===xc?void 0:e}return Sc.call(t,r)?t[r]:void 0}var Oc=Object.prototype,qc=Oc.hasOwnProperty;function Cc(r){var t=this.__data__;return Mn?t[r]!==void 0:qc.call(t,r)}var Ic="__lodash_hash_undefined__";function Rc(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=Mn&&t===void 0?Ic:t,this}function qe(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])}}qe.prototype.clear=wc;qe.prototype.delete=Tc;qe.prototype.get=_c;qe.prototype.has=Cc;qe.prototype.set=Rc;function kc(){this.__data__=[],this.size=0}function qr(r,t){for(var e=r.length;e--;)if(Fn(r[e][0],t))return e;return-1}var Bc=Array.prototype,Mc=Bc.splice;function jc(r){var t=this.__data__,e=qr(t,r);if(e<0)return!1;var n=t.length-1;return e==n?t.pop():Mc.call(t,e,1),--this.size,!0}function Dc(r){var t=this.__data__,e=qr(t,r);return e<0?void 0:t[e][1]}function Pc(r){return qr(this.__data__,r)>-1}function $c(r,t){var e=this.__data__,n=qr(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this}function ue(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])}}ue.prototype.clear=kc;ue.prototype.delete=jc;ue.prototype.get=Dc;ue.prototype.has=Pc;ue.prototype.set=$c;var jn=Ie(ee,"Map");function Uc(){this.size=0,this.__data__={hash:new qe,map:new(jn||ue),string:new qe}}function Fc(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function Cr(r,t){var e=r.__data__;return Fc(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Hc(r){var t=Cr(this,r).delete(r);return this.size-=t?1:0,t}function zc(r){return Cr(this,r).get(r)}function Gc(r){return Cr(this,r).has(r)}function Kc(r,t){var e=Cr(this,r),n=e.size;return e.set(r,t),this.size+=e.size==n?0:1,this}function Re(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])}}Re.prototype.clear=Uc;Re.prototype.delete=Hc;Re.prototype.get=zc;Re.prototype.has=Gc;Re.prototype.set=Kc;function Vc(r,t){for(var e=-1,n=t.length,s=r.length;++e<n;)r[s+e]=t[e];return r}var Fl=$l(Object.getPrototypeOf,Object),Wc="[object Object]",Zc=Function.prototype,Xc=Object.prototype,Hl=Zc.toString,Yc=Xc.hasOwnProperty,Qc=Hl.call(Object);function Jc(r){if(!oe(r)||cn(r)!=Wc)return!1;var t=Fl(r);if(t===null)return!0;var e=Yc.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Hl.call(e)==Qc}function tu(){this.__data__=new ue,this.size=0}function eu(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}function nu(r){return this.__data__.get(r)}function ru(r){return this.__data__.has(r)}var su=200;function iu(r,t){var e=this.__data__;if(e instanceof ue){var n=e.__data__;if(!jn||n.length<su-1)return n.push([r,t]),this.size=++e.size,this;e=this.__data__=new Re(n)}return e.set(r,t),this.size=e.size,this}function Yt(r){var t=this.__data__=new ue(r);this.size=t.size}Yt.prototype.clear=tu;Yt.prototype.delete=eu;Yt.prototype.get=nu;Yt.prototype.has=ru;Yt.prototype.set=iu;var zl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bi=zl&&typeof module=="object"&&module&&!module.nodeType&&module,lu=Bi&&Bi.exports===zl,Mi=lu?ee.Buffer:void 0,ji=Mi?Mi.allocUnsafe:void 0;function Gl(r,t){if(t)return r.slice();var e=r.length,n=ji?ji(e):new r.constructor(e);return r.copy(n),n}function ou(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 au(){return[]}var cu=Object.prototype,uu=cu.propertyIsEnumerable,Di=Object.getOwnPropertySymbols,hu=Di?function(r){return r==null?[]:(r=Object(r),ou(Di(r),function(t){return uu.call(r,t)}))}:au;function fu(r,t,e){var n=t(r);return Oe(r)?n:Vc(n,e(r))}function $s(r){return fu(r,yc,hu)}var Us=Ie(ee,"DataView"),Fs=Ie(ee,"Promise"),Hs=Ie(ee,"Set"),Pi="[object Map]",du="[object Object]",$i="[object Promise]",Ui="[object Set]",Fi="[object WeakMap]",Hi="[object DataView]",gu=Ce(Us),pu=Ce(jn),mu=Ce(Fs),bu=Ce(Hs),yu=Ce(Ds),Pt=cn;(Us&&Pt(new Us(new ArrayBuffer(1)))!=Hi||jn&&Pt(new jn)!=Pi||Fs&&Pt(Fs.resolve())!=$i||Hs&&Pt(new Hs)!=Ui||Ds&&Pt(new Ds)!=Fi)&&(Pt=function(r){var t=cn(r),e=t==du?r.constructor:void 0,n=e?Ce(e):"";if(n)switch(n){case gu:return Hi;case pu:return Pi;case mu:return $i;case bu:return Ui;case yu:return Fi}return t});var vu=Object.prototype,Eu=vu.hasOwnProperty;function Au(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&Eu.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var Lr=ee.Uint8Array;function fi(r){var t=new r.constructor(r.byteLength);return new Lr(t).set(new Lr(r)),t}function Nu(r,t){var e=fi(r.buffer);return new r.constructor(e,r.byteOffset,r.byteLength)}var wu=/\w*$/;function Tu(r){var t=new r.constructor(r.source,wu.exec(r));return t.lastIndex=r.lastIndex,t}var zi=ye?ye.prototype:void 0,Gi=zi?zi.valueOf:void 0;function xu(r){return Gi?Object(Gi.call(r)):{}}function Kl(r,t){var e=t?fi(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var Lu="[object Boolean]",Su="[object Date]",_u="[object Map]",Ou="[object Number]",qu="[object RegExp]",Cu="[object Set]",Iu="[object String]",Ru="[object Symbol]",ku="[object ArrayBuffer]",Bu="[object DataView]",Mu="[object Float32Array]",ju="[object Float64Array]",Du="[object Int8Array]",Pu="[object Int16Array]",$u="[object Int32Array]",Uu="[object Uint8Array]",Fu="[object Uint8ClampedArray]",Hu="[object Uint16Array]",zu="[object Uint32Array]";function Gu(r,t,e){var n=r.constructor;switch(t){case ku:return fi(r);case Lu:case Su:return new n(+r);case Bu:return Nu(r);case Mu:case ju:case Du:case Pu:case $u:case Uu:case Fu:case Hu:case zu:return Kl(r,e);case _u:return new n;case Ou:case Iu:return new n(r);case qu:return Tu(r);case Cu:return new n;case Ru:return xu(r)}}function Vl(r){return typeof r.constructor=="function"&&!ci(r)?ha(Fl(r)):{}}var Ku="[object Map]";function Vu(r){return oe(r)&&Pt(r)==Ku}var Ki=rn&&rn.isMap,Wu=Ki?ui(Ki):Vu,Zu="[object Set]";function Xu(r){return oe(r)&&Pt(r)==Zu}var Vi=rn&&rn.isSet,Yu=Vi?ui(Vi):Xu,Qu=1,Wl="[object Arguments]",Ju="[object Array]",th="[object Boolean]",eh="[object Date]",nh="[object Error]",Zl="[object Function]",rh="[object GeneratorFunction]",sh="[object Map]",ih="[object Number]",Xl="[object Object]",lh="[object RegExp]",oh="[object Set]",ah="[object String]",ch="[object Symbol]",uh="[object WeakMap]",hh="[object ArrayBuffer]",fh="[object DataView]",dh="[object Float32Array]",gh="[object Float64Array]",ph="[object Int8Array]",mh="[object Int16Array]",bh="[object Int32Array]",yh="[object Uint8Array]",vh="[object Uint8ClampedArray]",Eh="[object Uint16Array]",Ah="[object Uint32Array]",st={};st[Wl]=st[Ju]=st[hh]=st[fh]=st[th]=st[eh]=st[dh]=st[gh]=st[ph]=st[mh]=st[bh]=st[sh]=st[ih]=st[Xl]=st[lh]=st[oh]=st[ah]=st[ch]=st[yh]=st[vh]=st[Eh]=st[Ah]=!0;st[nh]=st[Zl]=st[uh]=!1;function Nr(r,t,e,n,s,i){var o,a=t&Qu;if(o!==void 0)return o;if(!Ee(r))return r;var u=Oe(r);if(u)o=Au(r);else{var h=Pt(r),p=h==Zl||h==rh;if(Bn(r))return Gl(r,a);if(h==Xl||h==Wl||p&&!s)o=p?{}:Vl(r);else{if(!st[h])return s?r:{};o=Gu(r,h,a)}}i||(i=new Yt);var v=i.get(r);if(v)return v;i.set(r,o),Yu(r)?r.forEach(function(y){o.add(Nr(y,t,e,y,r,i))}):Wu(r)&&r.forEach(function(y,A){o.set(A,Nr(y,t,e,A,r,i))});var f=$s,m=u?void 0:f(r);return Aa(m||r,function(y,A){m&&(A=y,y=r[A]),kl(o,A,Nr(y,t,e,A,r,i))}),o}var Nh=1,wh=4;function tn(r){return Nr(r,Nh|wh)}var Th="__lodash_hash_undefined__";function xh(r){return this.__data__.set(r,Th),this}function Lh(r){return this.__data__.has(r)}function Sr(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new Re;++t<e;)this.add(r[t])}Sr.prototype.add=Sr.prototype.push=xh;Sr.prototype.has=Lh;function Sh(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 _h(r,t){return r.has(t)}var Oh=1,qh=2;function Yl(r,t,e,n,s,i){var o=e&Oh,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&qh?new Sr: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(!Sh(t,function(x,C){if(!_h(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 Ch(r){var t=-1,e=Array(r.size);return r.forEach(function(n,s){e[++t]=[s,n]}),e}function Ih(r){var t=-1,e=Array(r.size);return r.forEach(function(n){e[++t]=n}),e}var Rh=1,kh=2,Bh="[object Boolean]",Mh="[object Date]",jh="[object Error]",Dh="[object Map]",Ph="[object Number]",$h="[object RegExp]",Uh="[object Set]",Fh="[object String]",Hh="[object Symbol]",zh="[object ArrayBuffer]",Gh="[object DataView]",Wi=ye?ye.prototype:void 0,Ls=Wi?Wi.valueOf:void 0;function Kh(r,t,e,n,s,i,o){switch(e){case Gh: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 Lr(r),new Lr(t)));case Bh:case Mh:case Ph:return Fn(+r,+t);case jh:return r.name==t.name&&r.message==t.message;case $h:case Fh:return r==t+"";case Dh:var a=Ch;case Uh:var u=n&Rh;if(a||(a=Ih),r.size!=t.size&&!u)return!1;var h=o.get(r);if(h)return h==t;n|=kh,o.set(r,t);var p=Yl(a(r),a(t),n,s,i,o);return o.delete(r),p;case Hh:if(Ls)return Ls.call(r)==Ls.call(t)}return!1}var Vh=1,Wh=Object.prototype,Zh=Wh.hasOwnProperty;function Xh(r,t,e,n,s,i){var o=e&Vh,a=$s(r),u=a.length,h=$s(t),p=h.length;if(u!=p&&!o)return!1;for(var v=u;v--;){var f=a[v];if(!(o?f in t:Zh.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 Yh=1,Zi="[object Arguments]",Xi="[object Array]",fr="[object Object]",Qh=Object.prototype,Yi=Qh.hasOwnProperty;function Jh(r,t,e,n,s,i){var o=Oe(r),a=Oe(t),u=o?Xi:Pt(r),h=a?Xi:Pt(t);u=u==Zi?fr:u,h=h==Zi?fr:h;var p=u==fr,v=h==fr,f=u==h;if(f&&Bn(r)){if(!Bn(t))return!1;o=!0,p=!1}if(f&&!p)return i||(i=new Yt),o||hi(r)?Yl(r,t,e,n,s,i):Kh(r,t,u,e,n,s,i);if(!(e&Yh)){var m=p&&Yi.call(r,"__wrapped__"),y=v&&Yi.call(t,"__wrapped__");if(m||y){var A=m?r.value():r,w=y?t.value():t;return i||(i=new Yt),s(A,w,e,n,i)}}return f?(i||(i=new Yt),Xh(r,t,e,n,s,i)):!1}function Ql(r,t,e,n,s){return r===t?!0:r==null||t==null||!oe(r)&&!oe(t)?r!==r&&t!==t:Jh(r,t,e,n,Ql,s)}function tf(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 ef=tf();function zs(r,t,e){(e!==void 0&&!Fn(r[t],e)||e===void 0&&!(t in r))&&ai(r,t,e)}function nf(r){return oe(r)&&Or(r)}function Gs(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}function rf(r){return La(r,Ul(r))}function sf(r,t,e,n,s,i,o){var a=Gs(r,e),u=Gs(t,e),h=o.get(u);if(h){zs(r,e,h);return}var p=i?i(a,u,e+"",r,t,o):void 0,v=p===void 0;if(v){var f=Oe(u),m=!f&&Bn(u),y=!f&&!m&&hi(u);p=u,f||m||y?Oe(a)?p=a:nf(a)?p=da(a):m?(v=!1,p=Gl(u,!0)):y?(v=!1,p=Kl(u,!0)):p=[]:Jc(u)||Ps(u)?(p=a,Ps(a)?p=rf(a):(!Ee(a)||oi(a))&&(p=Vl(u))):v=!1}v&&(o.set(u,p),s(p,u,n,i,o),o.delete(u)),zs(r,e,p)}function Jl(r,t,e,n,s){r!==t&&ef(t,function(i,o){if(s||(s=new Yt),Ee(i))sf(r,t,o,e,Jl,n,s);else{var a=n?n(Gs(r,o),i,o+"",r,t,s):void 0;a===void 0&&(a=i),zs(r,o,a)}},Ul)}function di(r,t){return Ql(r,t)}var be=Ca(function(r,t,e){Jl(r,t,e)}),j=(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))(j||{});class Jt{constructor(t,e,n={}){this.attrName=t,this.keyName=e;const s=j.TYPE&j.ATTRIBUTE;this.scope=n.scope!=null?n.scope&j.LEVEL|s:j.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 en extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const to=class Ks{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 en(`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 Ks.blots.set(a.domNode,a),a}find(t,e=!1){return Ks.find(t,e)}query(t,e=j.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&j.LEVEL&j.BLOCK?n=this.types.block:t&j.LEVEL&j.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&j.LEVEL&n.scope&&e&j.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 en("Invalid definition");if(n&&e.blotName==="abstract")throw new en("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})}};to.blots=new WeakMap;let sn=to;function Qi(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class lf extends Jt{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){Qi(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(Qi(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const Ht=lf;function Ss(r){const t=r.split("-"),e=t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return t[0]+e}class of extends Jt{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[Ss(this.keyName)]=e,!0):!1}remove(t){t.style[Ss(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[Ss(this.keyName)];return this.canAdd(t,e)?e:""}}const Ae=of;class af{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=sn.find(this.domNode);if(t==null)return;const e=Jt.keys(this.domNode),n=Ht.keys(this.domNode),s=Ae.keys(this.domNode);e.concat(n).concat(s).forEach(i=>{const o=t.scroll.query(i,j.ATTRIBUTE);o instanceof Jt&&(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 Ir=af,eo=class{constructor(t,e){this.scroll=t,this.domNode=e,sn.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new en("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),sn.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,j.BLOT)!=null&&s)i.wrap(n,s);else if(this.scroll.query(n,j.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 en(`Cannot wrap ${t}`);return n.appendChild(this),n}};eo.blotName="abstract";let no=eo;const ro=class extends no{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}}};ro.scope=j.INLINE_BLOT;let cf=ro;const Et=cf;class uf{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 Ji(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const n=t.create(j.INLINE);return Array.from(r.childNodes).forEach(s=>{n.domNode.appendChild(s)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const so=class ge extends no{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,ge.uiClass&&this.uiNode.classList.add(ge.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new uf,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=Ji(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof en)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 ge?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 ge&&(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===j.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof ge?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 ge?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 ge&&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=Ji(i,this.scroll);(a.next!==o||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,o||void 0))}),this.enforceAllowedChildren()}};so.uiClass="";let hf=so;const Ut=hf;function ff(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 We=class Ze extends Ut{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Ze.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 Ir(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(n=>{n instanceof Ze||(n=n.wrap(Ze.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(t,j.INLINE);if(n==null)return;n instanceof Jt?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,j.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 Ze&&n.prev===this&&ff(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 Ze&&this.attributes.move(n),n}};We.allowedChildren=[We,Et],We.blotName="inline",We.scope=j.INLINE_BLOT,We.tagName="SPAN";let df=We;const gi=df,Xe=class Vs extends Ut{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Vs.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 Ir(this.domNode)}format(t,e){const n=this.scroll.query(t,j.BLOCK);n!=null&&(n instanceof Jt?this.attributes.attribute(n,e):t===this.statics.blotName&&!e?this.replaceWith(Vs.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,j.BLOCK)!=null?this.format(n,s):super.formatAt(t,e,n,s)}insertAt(t,e,n){if(n==null||this.scroll.query(e,j.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()}};Xe.blotName="block",Xe.scope=j.BLOCK_BLOT,Xe.tagName="P",Xe.allowedChildren=[gi,Xe,Et];let gf=Xe;const Dn=gf,Ws=class extends Ut{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())}};Ws.blotName="container",Ws.scope=j.BLOCK_BLOT;let pf=Ws;const Rr=pf;class mf 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 St=mf,bf={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},yf=100,Ye=class extends Ut{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,bf),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=j.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 Ut&&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>=yf)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 Ut&&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)}};Ye.blotName="scroll",Ye.defaultChild=Dn,Ye.allowedChildren=[Dn,Rr],Ye.scope=j.BLOCK_BLOT,Ye.tagName="DIV";let vf=Ye;const pi=vf,Zs=class io 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 io&&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}};Zs.blotName="text",Zs.scope=j.INLINE_BLOT;let Ef=Zs;const _r=Ef,lo=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Jt,AttributorStore:Ir,BlockBlot:Dn,ClassAttributor:Ht,ContainerBlot:Rr,EmbedBlot:St,InlineBlot:gi,LeafBlot:Et,ParentBlot:Ut,Registry:sn,Scope:j,ScrollBlot:pi,StyleAttributor:Ae,TextBlot:_r},Symbol.toStringTag,{value:"Module"}));var dr={exports:{}},_s,tl;function Af(){if(tl)return _s;tl=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=kt(g,L,b);if(T)return T}var _=a(g,L),B=g.substring(0,_);g=g.substring(_),L=L.substring(_),_=h(g,L);var D=g.substring(g.length-_);g=g.substring(0,g.length-_),L=L.substring(0,L.length-_);var I=s(g,L);return B&&I.unshift([e,B]),D&&I.push([e,D]),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 B=_[0],D=_[1],I=_[2],G=_[3],F=_[4],V=n(B,I),W=n(D,G);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,B=new Array(_),D=new Array(_),I=0;I<_;I++)B[I]=-1,D[I]=-1;B[T+1]=0,D[T+1]=0;for(var G=b-O,F=G%2!==0,V=0,W=0,$=0,it=0,ot=0;ot<S;ot++){for(var K=-ot+V;K<=ot-W;K+=2){var Q=T+K,Y;K===-ot||K!==ot&&B[Q-1]<B[Q+1]?Y=B[Q+1]:Y=B[Q-1]+1;for(var J=Y-K;Y<b&&J<O&&g.charAt(Y)===L.charAt(J);)Y++,J++;if(B[Q]=Y,Y>b)W+=2;else if(J>O)V+=2;else if(F){var et=T+G-K;if(et>=0&&et<_&&D[et]!==-1){var nt=b-D[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&&D[et-1]<D[et+1]?nt=D[et+1]:nt=D[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(D[et]=nt,nt>b)it+=2;else if(mt>O)$+=2;else if(!F){var Q=T+G-ct;if(Q>=0&&Q<_&&B[Q]!==-1){var Y=B[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),B=L.substring(O),D=n(S,T),I=n(_,B);return D.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 B=g.substring(S-_),D=L.indexOf(B);if(D==-1)return T;_+=D,(D==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)),K=-1,Q="",Y,J,et,nt;(K=$.indexOf(ot,K+1))!==-1;){var ct=a(W.substring(it),$.substring(K)),mt=h(W.substring(0,it),$.substring(0,K));Q.length<mt+ct&&(Q=$.substring(K-mt,K)+$.substring(K,K+ct),Y=W.substring(0,it-mt),J=W.substring(it+ct),et=$.substring(0,K-mt),nt=$.substring(K+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)),B;if(!T&&!_)return null;_?T?B=T[4].length>_[4].length?T:_:B=_:B=T;var D,I,G,F;g.length>L.length?(D=B[0],I=B[1],G=B[2],F=B[3]):(G=B[0],F=B[1],D=B[2],I=B[3]);var V=B[4];return[D,I,G,F,V]}function v(g){for(var L=!1,b=[],O=0,S=null,T=0,_=0,B=0,D=0,I=0;T<g.length;)g[T][0]==e?(b[O++]=T,_=D,B=I,D=0,I=0,S=g[T][1]):(g[T][0]==t?D+=g[T][1].length:I+=g[T][1].length,S&&S.length<=Math.max(_,B)&&S.length<=Math.max(D,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,B=0,D=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 G=g[T-1][1],F=g[T][1],V=u(G,F),W=u(F,G);V>=W?(V>=G.length/2||V>=F.length/2)&&(g.splice(T,0,[e,F.substring(0,V)]),g[T-1][1]=G.substring(0,G.length-V),g[T+1][1]=F.substring(V),T++):(W>=G.length/2||W>=F.length/2)&&(g.splice(T,0,[e,G.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]=G.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),K=it.match(f),Q=ot.match(f),Y=K&&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:K&&!Y&&J?3:Y||J?2:K||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 B=S.substring(S.length-_);O=O.substring(0,O.length-_),S=B+S.substring(0,S.length-_),T=B+T}for(var D=O,I=S,G=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,D=O,I=S,G=T)}g[b-1][1]!=D&&(D?g[b-1][1]=D:(g.splice(b-1,1),b--),g[b][1]=I,G?g[b+1][1]=G:(g.splice(b+1,1),b--))}b++}}function C(g,L){g.push([e,""]);for(var b=0,O=0,S=0,T="",_="",B;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 D=b-S-O-1;if(L){if(D>=0&&rt(g[D][1])){var I=g[D][1].slice(-1);if(g[D][1]=g[D][1].slice(0,-1),T=I+T,_=I+_,!g[D][1]){g.splice(D,1),b--;var G=D-1;g[G]&&g[G][0]===t&&(S++,_=g[G][1]+_,G--),g[G]&&g[G][0]===r&&(O++,T=g[G][1]+T,G--),D=G}}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&&(B=a(_,T),B!==0&&(D>=0?g[D][1]+=_.substring(0,B):(g.splice(0,0,[e,_.substring(0,B)]),b++),_=_.substring(B),T=T.substring(B)),B=h(_,T),B!==0&&(g[b][1]=_.substring(_.length-B)+g[b][1],_=_.substring(0,_.length-B),T=T.substring(0,T.length-B)));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 kt(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 B=O.index,D=g.slice(0,B),I=g.slice(B),G=S?S.index:null;t:{var F=B+_-T;if(G!==null&&G!==F||F<0||F>_)break t;var V=L.slice(0,F),W=L.slice(F);if(W!==I)break t;var $=Math.min(B,F),it=D.slice(0,$),ot=V.slice(0,$);if(it!==ot)break t;var K=D.slice($),Q=V.slice($);return ft(it,K,Q,I)}t:{if(G!==null&&G!==B)break t;var Y=B,V=L.slice(0,Y),W=L.slice(Y);if(V!==D)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 K=I.slice(0,I.length-J),Q=W.slice(0,W.length-J);return ft(D,K,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 K=g.slice($,T-J),Q=L.slice($,_-J);return ft(it,K,Q,et)}return null}function Lt(g,L,b,O){return n(g,L,b,O,!0)}return Lt.INSERT=t,Lt.DELETE=r,Lt.EQUAL=e,_s=Lt,_s}var _n={exports:{}};_n.exports;var el;function oo(){return el||(el=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]",kt="[object Int8Array]",Lt="[object Int16Array]",g="[object Int32Array]",L="[object Uint8Array]",b="[object Uint8ClampedArray]",O="[object Uint16Array]",S="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,B=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,I={};I[i]=I[o]=I[U]=I[rt]=I[a]=I[u]=I[at]=I[ft]=I[kt]=I[Lt]=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 G=typeof Xt.commonjsGlobal=="object"&&Xt.commonjsGlobal&&Xt.commonjsGlobal.Object===Object&&Xt.commonjsGlobal,F=typeof self=="object"&&self&&self.Object===Object&&self,V=G||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 K(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 un(l,c){return function(d){return l(c(d))}}function Vn(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var jr=Array.prototype,Dr=Function.prototype,je=Object.prototype,hn=V["__core-js_shared__"],Wn=(function(){var l=/[^.]+$/.exec(hn&&hn.keys&&hn.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Zn=Dr.toString,Gt=je.hasOwnProperty,De=je.toString,Pr=RegExp("^"+Zn.call(Gt).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=it?V.Buffer:void 0,Pe=V.Symbol,fn=V.Uint8Array,_t=un(Object.getPrototypeOf,Object),Xn=Object.create,Yn=je.propertyIsEnumerable,$r=jr.splice,dn=Object.getOwnPropertySymbols,$e=Ne?Ne.isBuffer:void 0,Qn=un(Object.keys,Object),Ue=Mt(V,"DataView"),we=Mt(V,"Map"),Bt=Mt(V,"Promise"),Fe=Mt(V,"Set"),gn=Mt(V,"WeakMap"),Te=Mt(Object,"create"),pn=Nt(Ue),xe=Nt(we),mn=Nt(Bt),bn=Nt(Fe),yn=Nt(gn),fe=Pe?Pe.prototype:void 0,Jn=fe?fe.valueOf:void 0;function ne(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 Ur(){this.__data__=Te?Te(null):{}}function Fr(l){return this.has(l)&&delete this.__data__[l]}function Hr(l){var c=this.__data__;if(Te){var d=c[l];return d===n?void 0:d}return Gt.call(c,l)?c[l]:void 0}function tr(l){var c=this.__data__;return Te?c[l]!==void 0:Gt.call(c,l)}function vn(l,c){var d=this.__data__;return d[l]=Te&&c===void 0?n:c,this}ne.prototype.clear=Ur,ne.prototype.delete=Fr,ne.prototype.get=Hr,ne.prototype.has=tr,ne.prototype.set=vn;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 zr(){this.__data__=[]}function Gr(l){var c=this.__data__,d=ze(c,l);if(d<0)return!1;var E=c.length-1;return d==E?c.pop():$r.call(c,d,1),!0}function Kr(l){var c=this.__data__,d=ze(c,l);return d<0?void 0:c[d][1]}function Vr(l){return ze(this.__data__,l)>-1}function Wr(l,c){var d=this.__data__,E=ze(d,l);return E<0?d.push([l,c]):d[E][1]=c,this}dt.prototype.clear=zr,dt.prototype.delete=Gr,dt.prototype.get=Kr,dt.prototype.has=Vr,dt.prototype.set=Wr;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 Zr(){this.__data__={hash:new ne,map:new(we||dt),string:new ne}}function Xr(l){return Se(this,l).delete(l)}function Yr(l){return Se(this,l).get(l)}function Qr(l){return Se(this,l).has(l)}function Jr(l,c){return Se(this,l).set(l,c),this}bt.prototype.clear=Zr,bt.prototype.delete=Xr,bt.prototype.get=Yr,bt.prototype.has=Qr,bt.prototype.set=Jr;function Tt(l){this.__data__=new dt(l)}function ts(){this.__data__=new dt}function es(l){return this.__data__.delete(l)}function ns(l){return this.__data__.get(l)}function rs(l){return this.__data__.has(l)}function ss(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}Tt.prototype.clear=ts,Tt.prototype.delete=es,Tt.prototype.get=ns,Tt.prototype.has=rs,Tt.prototype.set=ss;function He(l,c){var d=wn(l)||Ke(l)?et(l.length,String):[],E=d.length,H=!!E;for(var P in l)Gt.call(l,P)&&!(H&&(P=="length"||ys(P,E)))&&d.push(P);return d}function er(l,c,d){var E=l[c];(!(Gt.call(l,c)&&lr(E,d))||d===void 0&&!(c in l))&&(l[c]=d)}function ze(l,c){for(var d=l.length;d--;)if(lr(l[d][0],c))return d;return-1}function Kt(l,c){return l&&Nn(c,xn(c),l)}function En(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=wn(l);if(ut){if(Z=ms(l),!c)return ds(l,Z)}else{var tt=se(l),yt=tt==p||tt==v;if(or(l))return Ge(l,c);if(tt==y||tt==i||yt&&!P){if(ct(l))return P?l:{};if(Z=Vt(yt?{}:l),!c)return gs(l,Kt(Z,l))}else{if(!I[tt])return P?l:{};Z=bs(l,tt,En,c)}}X||(X=new Tt);var xt=X.get(l);if(xt)return xt;if(X.set(l,Z),!ut)var ht=d?ps(l):xn(l);return Q(ht||l,function(vt,gt){ht&&(gt=vt,vt=l[gt]),er(Z,gt,En(vt,c,d,E,gt,l,X))}),Z}function is(l){return Wt(l)?Xn(l):{}}function ls(l,c,d){var E=c(l);return wn(l)?E:Y(E,d(l))}function os(l){return De.call(l)}function as(l){if(!Wt(l)||Es(l))return!1;var c=Tn(l)||ct(l)?Pr:B;return c.test(Nt(l))}function cs(l){if(!sr(l))return Qn(l);var c=[];for(var d in Object(l))Gt.call(l,d)&&d!="constructor"&&c.push(d);return c}function Ge(l,c){if(c)return l.slice();var d=new l.constructor(l.length);return l.copy(d),d}function An(l){var c=new l.constructor(l.byteLength);return new fn(c).set(new fn(l)),c}function Le(l,c){var d=c?An(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.byteLength)}function nr(l,c,d){var E=c?d(mt(l),!0):mt(l);return J(E,ot,new l.constructor)}function rr(l){var c=new l.constructor(l.source,_.exec(l));return c.lastIndex=l.lastIndex,c}function us(l,c,d){var E=c?d(Vn(l),!0):Vn(l);return J(E,K,new l.constructor)}function hs(l){return Jn?Object(Jn.call(l)):{}}function fs(l,c){var d=c?An(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.length)}function ds(l,c){var d=-1,E=l.length;for(c||(c=Array(E));++d<E;)c[d]=l[d];return c}function Nn(l,c,d,E){d||(d={});for(var H=-1,P=c.length;++H<P;){var X=c[H],Z=void 0;er(d,X,Z===void 0?l[X]:Z)}return d}function gs(l,c){return Nn(l,re(l),c)}function ps(l){return ls(l,xn,re)}function Se(l,c){var d=l.__data__;return vs(c)?d[typeof c=="string"?"string":"hash"]:d.map}function Mt(l,c){var d=nt(l,c);return as(d)?d:void 0}var re=dn?un(dn,Object):Ns,se=os;(Ue&&se(new Ue(new ArrayBuffer(1)))!=rt||we&&se(new we)!=f||Bt&&se(Bt.resolve())!=A||Fe&&se(new Fe)!=x||gn&&se(new gn)!=z)&&(se=function(l){var c=De.call(l),d=c==y?l.constructor:void 0,E=d?Nt(d):void 0;if(E)switch(E){case pn:return rt;case xe:return f;case mn:return A;case bn:return x;case yn:return z}return c});function ms(l){var c=l.length,d=l.constructor(c);return c&&typeof l[0]=="string"&&Gt.call(l,"index")&&(d.index=l.index,d.input=l.input),d}function Vt(l){return typeof l.constructor=="function"&&!sr(l)?is(_t(l)):{}}function bs(l,c,d,E){var H=l.constructor;switch(c){case U:return An(l);case a:case u:return new H(+l);case rt:return Le(l,E);case at:case ft:case kt:case Lt:case g:case L:case b:case O:case S:return fs(l,E);case f:return nr(l,E,d);case m:case C:return new H(l);case w:return rr(l);case x:return us(l,E,d);case M:return hs(l)}}function ys(l,c){return c=c??s,!!c&&(typeof l=="number"||D.test(l))&&l>-1&&l%1==0&&l<c}function vs(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function Es(l){return!!Wn&&Wn in l}function sr(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||je;return l===d}function Nt(l){if(l!=null){try{return Zn.call(l)}catch{}try{return l+""}catch{}}return""}function ir(l){return En(l,!0,!0)}function lr(l,c){return l===c||l!==l&&c!==c}function Ke(l){return As(l)&&Gt.call(l,"callee")&&(!Yn.call(l,"callee")||De.call(l)==i)}var wn=Array.isArray;function Ve(l){return l!=null&&ar(l.length)&&!Tn(l)}function As(l){return cr(l)&&Ve(l)}var or=$e||ws;function Tn(l){var c=Wt(l)?De.call(l):"";return c==p||c==v}function ar(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 cr(l){return!!l&&typeof l=="object"}function xn(l){return Ve(l)?He(l):cs(l)}function Ns(){return[]}function ws(){return!1}r.exports=ir})(_n,_n.exports)),_n.exports}var On={exports:{}};On.exports;var nl;function ao(){return nl||(nl=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]",kt="[object Undefined]",Lt="[object WeakMap]",g="[object ArrayBuffer]",L="[object DataView]",b="[object Float32Array]",O="[object Float64Array]",S="[object Int8Array]",T="[object Int16Array]",_="[object Int32Array]",B="[object Uint8Array]",D="[object Uint8ClampedArray]",I="[object Uint16Array]",G="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,$={};$[b]=$[O]=$[S]=$[T]=$[_]=$[B]=$[D]=$[I]=$[G]=!0,$[a]=$[u]=$[g]=$[p]=$[L]=$[v]=$[f]=$[m]=$[A]=$[w]=$[C]=$[U]=$[rt]=$[at]=$[Lt]=!1;var it=typeof Xt.commonjsGlobal=="object"&&Xt.commonjsGlobal&&Xt.commonjsGlobal.Object===Object&&Xt.commonjsGlobal,ot=typeof self=="object"&&self&&self.Object===Object&&self,K=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 un(l,c){for(var d=-1,E=c.length,H=l.length;++d<E;)l[H+d]=c[d];return l}function Vn(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 jr(l,c){for(var d=-1,E=Array(l);++d<l;)E[d]=c(d);return E}function Dr(l){return function(c){return l(c)}}function je(l,c){return l.has(c)}function hn(l,c){return l==null?void 0:l[c]}function Wn(l){var c=-1,d=Array(l.size);return l.forEach(function(E,H){d[++c]=[H,E]}),d}function Zn(l,c){return function(d){return l(c(d))}}function Gt(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var De=Array.prototype,Pr=Function.prototype,Ne=Object.prototype,Pe=K["__core-js_shared__"],fn=Pr.toString,_t=Ne.hasOwnProperty,Xn=(function(){var l=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Yn=Ne.toString,$r=RegExp("^"+fn.call(_t).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dn=J?K.Buffer:void 0,$e=K.Symbol,Qn=K.Uint8Array,Ue=Ne.propertyIsEnumerable,we=De.splice,Bt=$e?$e.toStringTag:void 0,Fe=Object.getOwnPropertySymbols,gn=dn?dn.isBuffer:void 0,Te=Zn(Object.keys,Object),pn=re(K,"DataView"),xe=re(K,"Map"),mn=re(K,"Promise"),bn=re(K,"Set"),yn=re(K,"WeakMap"),fe=re(Object,"create"),Jn=Nt(pn),ne=Nt(xe),Ur=Nt(mn),Fr=Nt(bn),Hr=Nt(yn),tr=$e?$e.prototype:void 0,vn=tr?tr.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 zr(){this.__data__=fe?fe(null):{},this.size=0}function Gr(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}function Kr(l){var c=this.__data__;if(fe){var d=c[l];return d===n?void 0:d}return _t.call(c,l)?c[l]:void 0}function Vr(l){var c=this.__data__;return fe?c[l]!==void 0:_t.call(c,l)}function Wr(l,c){var d=this.__data__;return this.size+=this.has(l)?0:1,d[l]=fe&&c===void 0?n:c,this}dt.prototype.clear=zr,dt.prototype.delete=Gr,dt.prototype.get=Kr,dt.prototype.has=Vr,dt.prototype.set=Wr;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 Zr(){this.__data__=[],this.size=0}function Xr(l){var c=this.__data__,d=Ge(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 Yr(l){var c=this.__data__,d=Ge(c,l);return d<0?void 0:c[d][1]}function Qr(l){return Ge(this.__data__,l)>-1}function Jr(l,c){var d=this.__data__,E=Ge(d,l);return E<0?(++this.size,d.push([l,c])):d[E][1]=c,this}bt.prototype.clear=Zr,bt.prototype.delete=Xr,bt.prototype.get=Yr,bt.prototype.has=Qr,bt.prototype.set=Jr;function Tt(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 ts(){this.size=0,this.__data__={hash:new dt,map:new(xe||bt),string:new dt}}function es(l){var c=Mt(this,l).delete(l);return this.size-=c?1:0,c}function ns(l){return Mt(this,l).get(l)}function rs(l){return Mt(this,l).has(l)}function ss(l,c){var d=Mt(this,l),E=d.size;return d.set(l,c),this.size+=d.size==E?0:1,this}Tt.prototype.clear=ts,Tt.prototype.delete=es,Tt.prototype.get=ns,Tt.prototype.has=rs,Tt.prototype.set=ss;function He(l){var c=-1,d=l==null?0:l.length;for(this.__data__=new Tt;++c<d;)this.add(l[c])}function er(l){return this.__data__.set(l,n),this}function ze(l){return this.__data__.has(l)}He.prototype.add=He.prototype.push=er,He.prototype.has=ze;function Kt(l){var c=this.__data__=new bt(l);this.size=c.size}function En(){this.__data__=new bt,this.size=0}function is(l){var c=this.__data__,d=c.delete(l);return this.size=c.size,d}function ls(l){return this.__data__.get(l)}function os(l){return this.__data__.has(l)}function as(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 Tt(E)}return d.set(l,c),this.size=d.size,this}Kt.prototype.clear=En,Kt.prototype.delete=is,Kt.prototype.get=ls,Kt.prototype.has=os,Kt.prototype.set=as;function cs(l,c){var d=Ke(l),E=!d&&lr(l),H=!d&&!E&&Ve(l),P=!d&&!E&&!H&&cr(l),X=d||E||H||P,Z=X?jr(l.length,String):[],ut=Z.length;for(var tt in l)_t.call(l,tt)&&!(X&&(tt=="length"||H&&(tt=="offset"||tt=="parent")||P&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||bs(tt,ut)))&&Z.push(tt);return Z}function Ge(l,c){for(var d=l.length;d--;)if(ir(l[d][0],c))return d;return-1}function An(l,c,d){var E=c(l);return Ke(l)?E:un(E,d(l))}function Le(l){return l==null?l===void 0?kt:x:Bt&&Bt in Object(l)?se(l):sr(l)}function nr(l){return Wt(l)&&Le(l)==a}function rr(l,c,d,E,H){return l===c?!0:l==null||c==null||!Wt(l)&&!Wt(c)?l!==l&&c!==c:us(l,c,d,E,rr,H)}function us(l,c,d,E,H,P){var X=Ke(l),Z=Ke(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,xt=tt==C,ht=ut==tt;if(ht&&Ve(l)){if(!Ve(c))return!1;X=!0,yt=!1}if(ht&&!yt)return P||(P=new Kt),X||cr(l)?Nn(l,c,d,E,H,P):gs(l,c,ut,d,E,H,P);if(!(d&s)){var vt=yt&&_t.call(l,"__wrapped__"),gt=xt&&_t.call(c,"__wrapped__");if(vt||gt){var de=vt?l.value():l,ie=gt?c.value():c;return P||(P=new Kt),H(de,ie,d,E,P)}}return ht?(P||(P=new Kt),ps(l,c,d,E,H,P)):!1}function hs(l){if(!ar(l)||vs(l))return!1;var c=or(l)?$r:V;return c.test(Nt(l))}function fs(l){return Wt(l)&&Tn(l.length)&&!!$[Le(l)]}function ds(l){if(!Es(l))return Te(l);var c=[];for(var d in Object(l))_t.call(l,d)&&d!="constructor"&&c.push(d);return c}function Nn(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,xt=!0,ht=d&i?new He:void 0;for(P.set(l,c),P.set(c,l);++yt<Z;){var vt=l[yt],gt=c[yt];if(E)var de=X?E(gt,vt,yt,c,l,P):E(vt,gt,yt,l,c,P);if(de!==void 0){if(de)continue;xt=!1;break}if(ht){if(!Vn(c,function(ie,_e){if(!je(ht,_e)&&(vt===ie||H(vt,ie,d,E,P)))return ht.push(_e)})){xt=!1;break}}else if(!(vt===gt||H(vt,gt,d,E,P))){xt=!1;break}}return P.delete(l),P.delete(c),xt}function gs(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 Qn(l),new Qn(c)));case p:case v:case w:return ir(+l,+c);case f:return l.name==c.name&&l.message==c.message;case U:case at:return l==c+"";case A:var Z=Wn;case rt:var ut=E&s;if(Z||(Z=Gt),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=Nn(Z(l),Z(c),E,H,P,X);return X.delete(l),yt;case ft:if(vn)return vn.call(l)==vn.call(c)}return!1}function ps(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 xt=ut;xt--;){var ht=Z[xt];if(!(X?ht in c:_t.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 de=X;++xt<ut;){ht=Z[xt];var ie=l[ht],_e=c[ht];if(E)var Li=X?E(_e,ie,ht,c,l,P):E(ie,_e,ht,l,c,P);if(!(Li===void 0?ie===_e||H(ie,_e,d,E,P):Li)){gt=!1;break}de||(de=ht=="constructor")}if(gt&&!de){var ur=l.constructor,hr=c.constructor;ur!=hr&&"constructor"in l&&"constructor"in c&&!(typeof ur=="function"&&ur instanceof ur&&typeof hr=="function"&&hr instanceof hr)&&(gt=!1)}return P.delete(l),P.delete(c),gt}function Se(l){return An(l,xn,ms)}function Mt(l,c){var d=l.__data__;return ys(c)?d[typeof c=="string"?"string":"hash"]:d.map}function re(l,c){var d=hn(l,c);return hs(d)?d:void 0}function se(l){var c=_t.call(l,Bt),d=l[Bt];try{l[Bt]=void 0;var E=!0}catch{}var H=Yn.call(l);return E&&(c?l[Bt]=d:delete l[Bt]),H}var ms=Fe?function(l){return l==null?[]:(l=Object(l),mt(Fe(l),function(c){return Ue.call(l,c)}))}:Ns,Vt=Le;(pn&&Vt(new pn(new ArrayBuffer(1)))!=L||xe&&Vt(new xe)!=A||mn&&Vt(mn.resolve())!=M||bn&&Vt(new bn)!=rt||yn&&Vt(new yn)!=Lt)&&(Vt=function(l){var c=Le(l),d=c==C?l.constructor:void 0,E=d?Nt(d):"";if(E)switch(E){case Jn:return L;case ne:return A;case Ur:return M;case Fr:return rt;case Hr:return Lt}return c});function bs(l,c){return c=c??o,!!c&&(typeof l=="number"||W.test(l))&&l>-1&&l%1==0&&l<c}function ys(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function vs(l){return!!Xn&&Xn in l}function Es(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||Ne;return l===d}function sr(l){return Yn.call(l)}function Nt(l){if(l!=null){try{return fn.call(l)}catch{}try{return l+""}catch{}}return""}function ir(l,c){return l===c||l!==l&&c!==c}var lr=nr((function(){return arguments})())?nr:function(l){return Wt(l)&&_t.call(l,"callee")&&!Ue.call(l,"callee")},Ke=Array.isArray;function wn(l){return l!=null&&Tn(l.length)&&!or(l)}var Ve=gn||ws;function As(l,c){return rr(l,c)}function or(l){if(!ar(l))return!1;var c=Le(l);return c==m||c==y||c==h||c==z}function Tn(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=o}function ar(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}function Wt(l){return l!=null&&typeof l=="object"}var cr=ct?Dr(ct):fs;function xn(l){return wn(l)?cs(l):ds(l)}function Ns(){return[]}function ws(){return!1}r.exports=As})(On,On.exports)),On.exports}var gr={},rl;function Nf(){if(rl)return gr;rl=1,Object.defineProperty(gr,"__esModule",{value:!0});const r=oo(),t=ao();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={})),gr.default=e,gr}var pr={},sl;function co(){if(sl)return pr;sl=1,Object.defineProperty(pr,"__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={})),pr.default=r,pr}var mr={},il;function wf(){if(il)return mr;il=1,Object.defineProperty(mr,"__esModule",{value:!0});const r=co();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 mr.default=t,mr}var ll;function Tf(){return ll||(ll=1,(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const e=Af(),n=oo(),s=ao(),i=Nf();t.AttributeMap=i.default;const o=co();t.Op=o.default;const a=wf();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,kt,Lt]=h(M[at],z.retain),g=p.getHandler(ft);U[at]={[ft]:g.compose(kt,Lt,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
|
+
"use client";"use strict";var Do=Object.defineProperty;var Po=(r,t,e)=>t in r?Do(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var q=(r,t,e)=>Po(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Xt=require("./index-X3QO--ek.cjs");var ql=typeof global=="object"&&global&&global.Object===Object&&global,$o=typeof self=="object"&&self&&self.Object===Object&&self,ee=ql||$o||Function("return this")(),ye=ee.Symbol,Cl=Object.prototype,Uo=Cl.hasOwnProperty,Fo=Cl.toString,Ln=ye?ye.toStringTag:void 0;function Ho(r){var t=Uo.call(r,Ln),e=r[Ln];try{r[Ln]=void 0;var n=!0}catch{}var s=Fo.call(r);return n&&(t?r[Ln]=e:delete r[Ln]),s}var zo=Object.prototype,Go=zo.toString;function Ko(r){return Go.call(r)}var Vo="[object Null]",Wo="[object Undefined]",Si=ye?ye.toStringTag:void 0;function cn(r){return r==null?r===void 0?Wo:Vo:Si&&Si in Object(r)?Ho(r):Ko(r)}function oe(r){return r!=null&&typeof r=="object"}var Oe=Array.isArray;function Ee(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function Il(r){return r}var Zo="[object AsyncFunction]",Xo="[object Function]",Yo="[object GeneratorFunction]",Qo="[object Proxy]";function oi(r){if(!Ee(r))return!1;var t=cn(r);return t==Xo||t==Yo||t==Zo||t==Qo}var Ts=ee["__core-js_shared__"],_i=(function(){var r=/[^.]+$/.exec(Ts&&Ts.keys&&Ts.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function Jo(r){return!!_i&&_i in r}var ta=Function.prototype,ea=ta.toString;function Ce(r){if(r!=null){try{return ea.call(r)}catch{}try{return r+""}catch{}}return""}var na=/[\\^$.*+?()[\]{}|]/g,ra=/^\[object .+?Constructor\]$/,sa=Function.prototype,ia=Object.prototype,la=sa.toString,oa=ia.hasOwnProperty,aa=RegExp("^"+la.call(oa).replace(na,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ca(r){if(!Ee(r)||Jo(r))return!1;var t=oi(r)?aa:ra;return t.test(Ce(r))}function ua(r,t){return r==null?void 0:r[t]}function Ie(r,t){var e=ua(r,t);return ca(e)?e:void 0}var Ds=Ie(ee,"WeakMap"),Oi=Object.create,ha=(function(){function r(){}return function(t){if(!Ee(t))return{};if(Oi)return Oi(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})();function fa(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 da(r,t){var e=-1,n=r.length;for(t||(t=Array(n));++e<n;)t[e]=r[e];return t}var ga=800,pa=16,ma=Date.now;function ba(r){var t=0,e=0;return function(){var n=ma(),s=pa-(n-e);if(e=n,s>0){if(++t>=ga)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}function ya(r){return function(){return r}}var xr=(function(){try{var r=Ie(Object,"defineProperty");return r({},"",{}),r}catch{}})(),va=xr?function(r,t){return xr(r,"toString",{configurable:!0,enumerable:!1,value:ya(t),writable:!0})}:Il,Ea=ba(va);function Aa(r,t){for(var e=-1,n=r==null?0:r.length;++e<n&&t(r[e],e,r)!==!1;);return r}var Na=9007199254740991,wa=/^(?:0|[1-9]\d*)$/;function Rl(r,t){var e=typeof r;return t=t??Na,!!t&&(e=="number"||e!="symbol"&&wa.test(r))&&r>-1&&r%1==0&&r<t}function ai(r,t,e){t=="__proto__"&&xr?xr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}function Fn(r,t){return r===t||r!==r&&t!==t}var Ta=Object.prototype,xa=Ta.hasOwnProperty;function kl(r,t,e){var n=r[t];(!(xa.call(r,t)&&Fn(n,e))||e===void 0&&!(t in r))&&ai(r,t,e)}function La(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?ai(e,a,u):kl(e,a,u)}return e}var qi=Math.max;function Sa(r,t,e){return t=qi(t===void 0?r.length-1:t,0),function(){for(var n=arguments,s=-1,i=qi(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),fa(r,this,a)}}function _a(r,t){return Ea(Sa(r,t,Il),r+"")}var Oa=9007199254740991;function Bl(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Oa}function Or(r){return r!=null&&Bl(r.length)&&!oi(r)}function qa(r,t,e){if(!Ee(e))return!1;var n=typeof t;return(n=="number"?Or(e)&&Rl(t,e.length):n=="string"&&t in e)?Fn(e[t],r):!1}function Ca(r){return _a(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&&qa(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 Ia=Object.prototype;function ci(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Ia;return r===e}function Ra(r,t){for(var e=-1,n=Array(r);++e<r;)n[e]=t(e);return n}var ka="[object Arguments]";function Ci(r){return oe(r)&&cn(r)==ka}var Ml=Object.prototype,Ba=Ml.hasOwnProperty,Ma=Ml.propertyIsEnumerable,Ps=Ci((function(){return arguments})())?Ci:function(r){return oe(r)&&Ba.call(r,"callee")&&!Ma.call(r,"callee")};function ja(){return!1}var jl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ii=jl&&typeof module=="object"&&module&&!module.nodeType&&module,Da=Ii&&Ii.exports===jl,Ri=Da?ee.Buffer:void 0,Pa=Ri?Ri.isBuffer:void 0,Bn=Pa||ja,$a="[object Arguments]",Ua="[object Array]",Fa="[object Boolean]",Ha="[object Date]",za="[object Error]",Ga="[object Function]",Ka="[object Map]",Va="[object Number]",Wa="[object Object]",Za="[object RegExp]",Xa="[object Set]",Ya="[object String]",Qa="[object WeakMap]",Ja="[object ArrayBuffer]",tc="[object DataView]",ec="[object Float32Array]",nc="[object Float64Array]",rc="[object Int8Array]",sc="[object Int16Array]",ic="[object Int32Array]",lc="[object Uint8Array]",oc="[object Uint8ClampedArray]",ac="[object Uint16Array]",cc="[object Uint32Array]",lt={};lt[ec]=lt[nc]=lt[rc]=lt[sc]=lt[ic]=lt[lc]=lt[oc]=lt[ac]=lt[cc]=!0;lt[$a]=lt[Ua]=lt[Ja]=lt[Fa]=lt[tc]=lt[Ha]=lt[za]=lt[Ga]=lt[Ka]=lt[Va]=lt[Wa]=lt[Za]=lt[Xa]=lt[Ya]=lt[Qa]=!1;function uc(r){return oe(r)&&Bl(r.length)&&!!lt[cn(r)]}function ui(r){return function(t){return r(t)}}var Dl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cn=Dl&&typeof module=="object"&&module&&!module.nodeType&&module,hc=Cn&&Cn.exports===Dl,xs=hc&&ql.process,rn=(function(){try{var r=Cn&&Cn.require&&Cn.require("util").types;return r||xs&&xs.binding&&xs.binding("util")}catch{}})(),ki=rn&&rn.isTypedArray,hi=ki?ui(ki):uc,fc=Object.prototype,dc=fc.hasOwnProperty;function Pl(r,t){var e=Oe(r),n=!e&&Ps(r),s=!e&&!n&&Bn(r),i=!e&&!n&&!s&&hi(r),o=e||n||s||i,a=o?Ra(r.length,String):[],u=a.length;for(var h in r)(t||dc.call(r,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Rl(h,u)))&&a.push(h);return a}function $l(r,t){return function(e){return r(t(e))}}var gc=$l(Object.keys,Object),pc=Object.prototype,mc=pc.hasOwnProperty;function bc(r){if(!ci(r))return gc(r);var t=[];for(var e in Object(r))mc.call(r,e)&&e!="constructor"&&t.push(e);return t}function yc(r){return Or(r)?Pl(r):bc(r)}function vc(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var Ec=Object.prototype,Ac=Ec.hasOwnProperty;function Nc(r){if(!Ee(r))return vc(r);var t=ci(r),e=[];for(var n in r)n=="constructor"&&(t||!Ac.call(r,n))||e.push(n);return e}function Ul(r){return Or(r)?Pl(r,!0):Nc(r)}var Mn=Ie(Object,"create");function wc(){this.__data__=Mn?Mn(null):{},this.size=0}function Tc(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var xc="__lodash_hash_undefined__",Lc=Object.prototype,Sc=Lc.hasOwnProperty;function _c(r){var t=this.__data__;if(Mn){var e=t[r];return e===xc?void 0:e}return Sc.call(t,r)?t[r]:void 0}var Oc=Object.prototype,qc=Oc.hasOwnProperty;function Cc(r){var t=this.__data__;return Mn?t[r]!==void 0:qc.call(t,r)}var Ic="__lodash_hash_undefined__";function Rc(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=Mn&&t===void 0?Ic:t,this}function qe(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])}}qe.prototype.clear=wc;qe.prototype.delete=Tc;qe.prototype.get=_c;qe.prototype.has=Cc;qe.prototype.set=Rc;function kc(){this.__data__=[],this.size=0}function qr(r,t){for(var e=r.length;e--;)if(Fn(r[e][0],t))return e;return-1}var Bc=Array.prototype,Mc=Bc.splice;function jc(r){var t=this.__data__,e=qr(t,r);if(e<0)return!1;var n=t.length-1;return e==n?t.pop():Mc.call(t,e,1),--this.size,!0}function Dc(r){var t=this.__data__,e=qr(t,r);return e<0?void 0:t[e][1]}function Pc(r){return qr(this.__data__,r)>-1}function $c(r,t){var e=this.__data__,n=qr(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this}function ue(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])}}ue.prototype.clear=kc;ue.prototype.delete=jc;ue.prototype.get=Dc;ue.prototype.has=Pc;ue.prototype.set=$c;var jn=Ie(ee,"Map");function Uc(){this.size=0,this.__data__={hash:new qe,map:new(jn||ue),string:new qe}}function Fc(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function Cr(r,t){var e=r.__data__;return Fc(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Hc(r){var t=Cr(this,r).delete(r);return this.size-=t?1:0,t}function zc(r){return Cr(this,r).get(r)}function Gc(r){return Cr(this,r).has(r)}function Kc(r,t){var e=Cr(this,r),n=e.size;return e.set(r,t),this.size+=e.size==n?0:1,this}function Re(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])}}Re.prototype.clear=Uc;Re.prototype.delete=Hc;Re.prototype.get=zc;Re.prototype.has=Gc;Re.prototype.set=Kc;function Vc(r,t){for(var e=-1,n=t.length,s=r.length;++e<n;)r[s+e]=t[e];return r}var Fl=$l(Object.getPrototypeOf,Object),Wc="[object Object]",Zc=Function.prototype,Xc=Object.prototype,Hl=Zc.toString,Yc=Xc.hasOwnProperty,Qc=Hl.call(Object);function Jc(r){if(!oe(r)||cn(r)!=Wc)return!1;var t=Fl(r);if(t===null)return!0;var e=Yc.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Hl.call(e)==Qc}function tu(){this.__data__=new ue,this.size=0}function eu(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}function nu(r){return this.__data__.get(r)}function ru(r){return this.__data__.has(r)}var su=200;function iu(r,t){var e=this.__data__;if(e instanceof ue){var n=e.__data__;if(!jn||n.length<su-1)return n.push([r,t]),this.size=++e.size,this;e=this.__data__=new Re(n)}return e.set(r,t),this.size=e.size,this}function Yt(r){var t=this.__data__=new ue(r);this.size=t.size}Yt.prototype.clear=tu;Yt.prototype.delete=eu;Yt.prototype.get=nu;Yt.prototype.has=ru;Yt.prototype.set=iu;var zl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bi=zl&&typeof module=="object"&&module&&!module.nodeType&&module,lu=Bi&&Bi.exports===zl,Mi=lu?ee.Buffer:void 0,ji=Mi?Mi.allocUnsafe:void 0;function Gl(r,t){if(t)return r.slice();var e=r.length,n=ji?ji(e):new r.constructor(e);return r.copy(n),n}function ou(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 au(){return[]}var cu=Object.prototype,uu=cu.propertyIsEnumerable,Di=Object.getOwnPropertySymbols,hu=Di?function(r){return r==null?[]:(r=Object(r),ou(Di(r),function(t){return uu.call(r,t)}))}:au;function fu(r,t,e){var n=t(r);return Oe(r)?n:Vc(n,e(r))}function $s(r){return fu(r,yc,hu)}var Us=Ie(ee,"DataView"),Fs=Ie(ee,"Promise"),Hs=Ie(ee,"Set"),Pi="[object Map]",du="[object Object]",$i="[object Promise]",Ui="[object Set]",Fi="[object WeakMap]",Hi="[object DataView]",gu=Ce(Us),pu=Ce(jn),mu=Ce(Fs),bu=Ce(Hs),yu=Ce(Ds),Pt=cn;(Us&&Pt(new Us(new ArrayBuffer(1)))!=Hi||jn&&Pt(new jn)!=Pi||Fs&&Pt(Fs.resolve())!=$i||Hs&&Pt(new Hs)!=Ui||Ds&&Pt(new Ds)!=Fi)&&(Pt=function(r){var t=cn(r),e=t==du?r.constructor:void 0,n=e?Ce(e):"";if(n)switch(n){case gu:return Hi;case pu:return Pi;case mu:return $i;case bu:return Ui;case yu:return Fi}return t});var vu=Object.prototype,Eu=vu.hasOwnProperty;function Au(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&Eu.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var Lr=ee.Uint8Array;function fi(r){var t=new r.constructor(r.byteLength);return new Lr(t).set(new Lr(r)),t}function Nu(r,t){var e=fi(r.buffer);return new r.constructor(e,r.byteOffset,r.byteLength)}var wu=/\w*$/;function Tu(r){var t=new r.constructor(r.source,wu.exec(r));return t.lastIndex=r.lastIndex,t}var zi=ye?ye.prototype:void 0,Gi=zi?zi.valueOf:void 0;function xu(r){return Gi?Object(Gi.call(r)):{}}function Kl(r,t){var e=t?fi(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var Lu="[object Boolean]",Su="[object Date]",_u="[object Map]",Ou="[object Number]",qu="[object RegExp]",Cu="[object Set]",Iu="[object String]",Ru="[object Symbol]",ku="[object ArrayBuffer]",Bu="[object DataView]",Mu="[object Float32Array]",ju="[object Float64Array]",Du="[object Int8Array]",Pu="[object Int16Array]",$u="[object Int32Array]",Uu="[object Uint8Array]",Fu="[object Uint8ClampedArray]",Hu="[object Uint16Array]",zu="[object Uint32Array]";function Gu(r,t,e){var n=r.constructor;switch(t){case ku:return fi(r);case Lu:case Su:return new n(+r);case Bu:return Nu(r);case Mu:case ju:case Du:case Pu:case $u:case Uu:case Fu:case Hu:case zu:return Kl(r,e);case _u:return new n;case Ou:case Iu:return new n(r);case qu:return Tu(r);case Cu:return new n;case Ru:return xu(r)}}function Vl(r){return typeof r.constructor=="function"&&!ci(r)?ha(Fl(r)):{}}var Ku="[object Map]";function Vu(r){return oe(r)&&Pt(r)==Ku}var Ki=rn&&rn.isMap,Wu=Ki?ui(Ki):Vu,Zu="[object Set]";function Xu(r){return oe(r)&&Pt(r)==Zu}var Vi=rn&&rn.isSet,Yu=Vi?ui(Vi):Xu,Qu=1,Wl="[object Arguments]",Ju="[object Array]",th="[object Boolean]",eh="[object Date]",nh="[object Error]",Zl="[object Function]",rh="[object GeneratorFunction]",sh="[object Map]",ih="[object Number]",Xl="[object Object]",lh="[object RegExp]",oh="[object Set]",ah="[object String]",ch="[object Symbol]",uh="[object WeakMap]",hh="[object ArrayBuffer]",fh="[object DataView]",dh="[object Float32Array]",gh="[object Float64Array]",ph="[object Int8Array]",mh="[object Int16Array]",bh="[object Int32Array]",yh="[object Uint8Array]",vh="[object Uint8ClampedArray]",Eh="[object Uint16Array]",Ah="[object Uint32Array]",st={};st[Wl]=st[Ju]=st[hh]=st[fh]=st[th]=st[eh]=st[dh]=st[gh]=st[ph]=st[mh]=st[bh]=st[sh]=st[ih]=st[Xl]=st[lh]=st[oh]=st[ah]=st[ch]=st[yh]=st[vh]=st[Eh]=st[Ah]=!0;st[nh]=st[Zl]=st[uh]=!1;function Nr(r,t,e,n,s,i){var o,a=t&Qu;if(o!==void 0)return o;if(!Ee(r))return r;var u=Oe(r);if(u)o=Au(r);else{var h=Pt(r),p=h==Zl||h==rh;if(Bn(r))return Gl(r,a);if(h==Xl||h==Wl||p&&!s)o=p?{}:Vl(r);else{if(!st[h])return s?r:{};o=Gu(r,h,a)}}i||(i=new Yt);var v=i.get(r);if(v)return v;i.set(r,o),Yu(r)?r.forEach(function(y){o.add(Nr(y,t,e,y,r,i))}):Wu(r)&&r.forEach(function(y,A){o.set(A,Nr(y,t,e,A,r,i))});var f=$s,m=u?void 0:f(r);return Aa(m||r,function(y,A){m&&(A=y,y=r[A]),kl(o,A,Nr(y,t,e,A,r,i))}),o}var Nh=1,wh=4;function tn(r){return Nr(r,Nh|wh)}var Th="__lodash_hash_undefined__";function xh(r){return this.__data__.set(r,Th),this}function Lh(r){return this.__data__.has(r)}function Sr(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new Re;++t<e;)this.add(r[t])}Sr.prototype.add=Sr.prototype.push=xh;Sr.prototype.has=Lh;function Sh(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 _h(r,t){return r.has(t)}var Oh=1,qh=2;function Yl(r,t,e,n,s,i){var o=e&Oh,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&qh?new Sr: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(!Sh(t,function(x,C){if(!_h(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 Ch(r){var t=-1,e=Array(r.size);return r.forEach(function(n,s){e[++t]=[s,n]}),e}function Ih(r){var t=-1,e=Array(r.size);return r.forEach(function(n){e[++t]=n}),e}var Rh=1,kh=2,Bh="[object Boolean]",Mh="[object Date]",jh="[object Error]",Dh="[object Map]",Ph="[object Number]",$h="[object RegExp]",Uh="[object Set]",Fh="[object String]",Hh="[object Symbol]",zh="[object ArrayBuffer]",Gh="[object DataView]",Wi=ye?ye.prototype:void 0,Ls=Wi?Wi.valueOf:void 0;function Kh(r,t,e,n,s,i,o){switch(e){case Gh: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 Lr(r),new Lr(t)));case Bh:case Mh:case Ph:return Fn(+r,+t);case jh:return r.name==t.name&&r.message==t.message;case $h:case Fh:return r==t+"";case Dh:var a=Ch;case Uh:var u=n&Rh;if(a||(a=Ih),r.size!=t.size&&!u)return!1;var h=o.get(r);if(h)return h==t;n|=kh,o.set(r,t);var p=Yl(a(r),a(t),n,s,i,o);return o.delete(r),p;case Hh:if(Ls)return Ls.call(r)==Ls.call(t)}return!1}var Vh=1,Wh=Object.prototype,Zh=Wh.hasOwnProperty;function Xh(r,t,e,n,s,i){var o=e&Vh,a=$s(r),u=a.length,h=$s(t),p=h.length;if(u!=p&&!o)return!1;for(var v=u;v--;){var f=a[v];if(!(o?f in t:Zh.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 Yh=1,Zi="[object Arguments]",Xi="[object Array]",fr="[object Object]",Qh=Object.prototype,Yi=Qh.hasOwnProperty;function Jh(r,t,e,n,s,i){var o=Oe(r),a=Oe(t),u=o?Xi:Pt(r),h=a?Xi:Pt(t);u=u==Zi?fr:u,h=h==Zi?fr:h;var p=u==fr,v=h==fr,f=u==h;if(f&&Bn(r)){if(!Bn(t))return!1;o=!0,p=!1}if(f&&!p)return i||(i=new Yt),o||hi(r)?Yl(r,t,e,n,s,i):Kh(r,t,u,e,n,s,i);if(!(e&Yh)){var m=p&&Yi.call(r,"__wrapped__"),y=v&&Yi.call(t,"__wrapped__");if(m||y){var A=m?r.value():r,w=y?t.value():t;return i||(i=new Yt),s(A,w,e,n,i)}}return f?(i||(i=new Yt),Xh(r,t,e,n,s,i)):!1}function Ql(r,t,e,n,s){return r===t?!0:r==null||t==null||!oe(r)&&!oe(t)?r!==r&&t!==t:Jh(r,t,e,n,Ql,s)}function tf(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 ef=tf();function zs(r,t,e){(e!==void 0&&!Fn(r[t],e)||e===void 0&&!(t in r))&&ai(r,t,e)}function nf(r){return oe(r)&&Or(r)}function Gs(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}function rf(r){return La(r,Ul(r))}function sf(r,t,e,n,s,i,o){var a=Gs(r,e),u=Gs(t,e),h=o.get(u);if(h){zs(r,e,h);return}var p=i?i(a,u,e+"",r,t,o):void 0,v=p===void 0;if(v){var f=Oe(u),m=!f&&Bn(u),y=!f&&!m&&hi(u);p=u,f||m||y?Oe(a)?p=a:nf(a)?p=da(a):m?(v=!1,p=Gl(u,!0)):y?(v=!1,p=Kl(u,!0)):p=[]:Jc(u)||Ps(u)?(p=a,Ps(a)?p=rf(a):(!Ee(a)||oi(a))&&(p=Vl(u))):v=!1}v&&(o.set(u,p),s(p,u,n,i,o),o.delete(u)),zs(r,e,p)}function Jl(r,t,e,n,s){r!==t&&ef(t,function(i,o){if(s||(s=new Yt),Ee(i))sf(r,t,o,e,Jl,n,s);else{var a=n?n(Gs(r,o),i,o+"",r,t,s):void 0;a===void 0&&(a=i),zs(r,o,a)}},Ul)}function di(r,t){return Ql(r,t)}var be=Ca(function(r,t,e){Jl(r,t,e)}),j=(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))(j||{});class Jt{constructor(t,e,n={}){this.attrName=t,this.keyName=e;const s=j.TYPE&j.ATTRIBUTE;this.scope=n.scope!=null?n.scope&j.LEVEL|s:j.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 en extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const to=class Ks{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 en(`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 Ks.blots.set(a.domNode,a),a}find(t,e=!1){return Ks.find(t,e)}query(t,e=j.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&j.LEVEL&j.BLOCK?n=this.types.block:t&j.LEVEL&j.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&j.LEVEL&n.scope&&e&j.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 en("Invalid definition");if(n&&e.blotName==="abstract")throw new en("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})}};to.blots=new WeakMap;let sn=to;function Qi(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class lf extends Jt{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){Qi(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(Qi(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const Ht=lf;function Ss(r){const t=r.split("-"),e=t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return t[0]+e}class of extends Jt{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[Ss(this.keyName)]=e,!0):!1}remove(t){t.style[Ss(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[Ss(this.keyName)];return this.canAdd(t,e)?e:""}}const Ae=of;class af{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=sn.find(this.domNode);if(t==null)return;const e=Jt.keys(this.domNode),n=Ht.keys(this.domNode),s=Ae.keys(this.domNode);e.concat(n).concat(s).forEach(i=>{const o=t.scroll.query(i,j.ATTRIBUTE);o instanceof Jt&&(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 Ir=af,eo=class{constructor(t,e){this.scroll=t,this.domNode=e,sn.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new en("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),sn.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,j.BLOT)!=null&&s)i.wrap(n,s);else if(this.scroll.query(n,j.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 en(`Cannot wrap ${t}`);return n.appendChild(this),n}};eo.blotName="abstract";let no=eo;const ro=class extends no{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}}};ro.scope=j.INLINE_BLOT;let cf=ro;const Et=cf;class uf{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 Ji(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const n=t.create(j.INLINE);return Array.from(r.childNodes).forEach(s=>{n.domNode.appendChild(s)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const so=class ge extends no{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,ge.uiClass&&this.uiNode.classList.add(ge.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new uf,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=Ji(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof en)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 ge?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 ge&&(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===j.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof ge?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 ge?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 ge&&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=Ji(i,this.scroll);(a.next!==o||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,o||void 0))}),this.enforceAllowedChildren()}};so.uiClass="";let hf=so;const Ut=hf;function ff(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 We=class Ze extends Ut{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Ze.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 Ir(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(n=>{n instanceof Ze||(n=n.wrap(Ze.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(t,j.INLINE);if(n==null)return;n instanceof Jt?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,j.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 Ze&&n.prev===this&&ff(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 Ze&&this.attributes.move(n),n}};We.allowedChildren=[We,Et],We.blotName="inline",We.scope=j.INLINE_BLOT,We.tagName="SPAN";let df=We;const gi=df,Xe=class Vs extends Ut{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Vs.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 Ir(this.domNode)}format(t,e){const n=this.scroll.query(t,j.BLOCK);n!=null&&(n instanceof Jt?this.attributes.attribute(n,e):t===this.statics.blotName&&!e?this.replaceWith(Vs.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,j.BLOCK)!=null?this.format(n,s):super.formatAt(t,e,n,s)}insertAt(t,e,n){if(n==null||this.scroll.query(e,j.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()}};Xe.blotName="block",Xe.scope=j.BLOCK_BLOT,Xe.tagName="P",Xe.allowedChildren=[gi,Xe,Et];let gf=Xe;const Dn=gf,Ws=class extends Ut{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())}};Ws.blotName="container",Ws.scope=j.BLOCK_BLOT;let pf=Ws;const Rr=pf;class mf 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 St=mf,bf={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},yf=100,Ye=class extends Ut{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,bf),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=j.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 Ut&&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>=yf)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 Ut&&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)}};Ye.blotName="scroll",Ye.defaultChild=Dn,Ye.allowedChildren=[Dn,Rr],Ye.scope=j.BLOCK_BLOT,Ye.tagName="DIV";let vf=Ye;const pi=vf,Zs=class io 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 io&&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}};Zs.blotName="text",Zs.scope=j.INLINE_BLOT;let Ef=Zs;const _r=Ef,lo=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Jt,AttributorStore:Ir,BlockBlot:Dn,ClassAttributor:Ht,ContainerBlot:Rr,EmbedBlot:St,InlineBlot:gi,LeafBlot:Et,ParentBlot:Ut,Registry:sn,Scope:j,ScrollBlot:pi,StyleAttributor:Ae,TextBlot:_r},Symbol.toStringTag,{value:"Module"}));var dr={exports:{}},_s,tl;function Af(){if(tl)return _s;tl=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=kt(g,L,b);if(T)return T}var _=a(g,L),B=g.substring(0,_);g=g.substring(_),L=L.substring(_),_=h(g,L);var D=g.substring(g.length-_);g=g.substring(0,g.length-_),L=L.substring(0,L.length-_);var I=s(g,L);return B&&I.unshift([e,B]),D&&I.push([e,D]),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 B=_[0],D=_[1],I=_[2],G=_[3],F=_[4],V=n(B,I),W=n(D,G);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,B=new Array(_),D=new Array(_),I=0;I<_;I++)B[I]=-1,D[I]=-1;B[T+1]=0,D[T+1]=0;for(var G=b-O,F=G%2!==0,V=0,W=0,$=0,it=0,ot=0;ot<S;ot++){for(var K=-ot+V;K<=ot-W;K+=2){var Q=T+K,Y;K===-ot||K!==ot&&B[Q-1]<B[Q+1]?Y=B[Q+1]:Y=B[Q-1]+1;for(var J=Y-K;Y<b&&J<O&&g.charAt(Y)===L.charAt(J);)Y++,J++;if(B[Q]=Y,Y>b)W+=2;else if(J>O)V+=2;else if(F){var et=T+G-K;if(et>=0&&et<_&&D[et]!==-1){var nt=b-D[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&&D[et-1]<D[et+1]?nt=D[et+1]:nt=D[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(D[et]=nt,nt>b)it+=2;else if(mt>O)$+=2;else if(!F){var Q=T+G-ct;if(Q>=0&&Q<_&&B[Q]!==-1){var Y=B[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),B=L.substring(O),D=n(S,T),I=n(_,B);return D.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 B=g.substring(S-_),D=L.indexOf(B);if(D==-1)return T;_+=D,(D==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)),K=-1,Q="",Y,J,et,nt;(K=$.indexOf(ot,K+1))!==-1;){var ct=a(W.substring(it),$.substring(K)),mt=h(W.substring(0,it),$.substring(0,K));Q.length<mt+ct&&(Q=$.substring(K-mt,K)+$.substring(K,K+ct),Y=W.substring(0,it-mt),J=W.substring(it+ct),et=$.substring(0,K-mt),nt=$.substring(K+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)),B;if(!T&&!_)return null;_?T?B=T[4].length>_[4].length?T:_:B=_:B=T;var D,I,G,F;g.length>L.length?(D=B[0],I=B[1],G=B[2],F=B[3]):(G=B[0],F=B[1],D=B[2],I=B[3]);var V=B[4];return[D,I,G,F,V]}function v(g){for(var L=!1,b=[],O=0,S=null,T=0,_=0,B=0,D=0,I=0;T<g.length;)g[T][0]==e?(b[O++]=T,_=D,B=I,D=0,I=0,S=g[T][1]):(g[T][0]==t?D+=g[T][1].length:I+=g[T][1].length,S&&S.length<=Math.max(_,B)&&S.length<=Math.max(D,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,B=0,D=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 G=g[T-1][1],F=g[T][1],V=u(G,F),W=u(F,G);V>=W?(V>=G.length/2||V>=F.length/2)&&(g.splice(T,0,[e,F.substring(0,V)]),g[T-1][1]=G.substring(0,G.length-V),g[T+1][1]=F.substring(V),T++):(W>=G.length/2||W>=F.length/2)&&(g.splice(T,0,[e,G.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]=G.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),K=it.match(f),Q=ot.match(f),Y=K&&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:K&&!Y&&J?3:Y||J?2:K||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 B=S.substring(S.length-_);O=O.substring(0,O.length-_),S=B+S.substring(0,S.length-_),T=B+T}for(var D=O,I=S,G=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,D=O,I=S,G=T)}g[b-1][1]!=D&&(D?g[b-1][1]=D:(g.splice(b-1,1),b--),g[b][1]=I,G?g[b+1][1]=G:(g.splice(b+1,1),b--))}b++}}function C(g,L){g.push([e,""]);for(var b=0,O=0,S=0,T="",_="",B;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 D=b-S-O-1;if(L){if(D>=0&&rt(g[D][1])){var I=g[D][1].slice(-1);if(g[D][1]=g[D][1].slice(0,-1),T=I+T,_=I+_,!g[D][1]){g.splice(D,1),b--;var G=D-1;g[G]&&g[G][0]===t&&(S++,_=g[G][1]+_,G--),g[G]&&g[G][0]===r&&(O++,T=g[G][1]+T,G--),D=G}}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&&(B=a(_,T),B!==0&&(D>=0?g[D][1]+=_.substring(0,B):(g.splice(0,0,[e,_.substring(0,B)]),b++),_=_.substring(B),T=T.substring(B)),B=h(_,T),B!==0&&(g[b][1]=_.substring(_.length-B)+g[b][1],_=_.substring(0,_.length-B),T=T.substring(0,T.length-B)));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 kt(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 B=O.index,D=g.slice(0,B),I=g.slice(B),G=S?S.index:null;t:{var F=B+_-T;if(G!==null&&G!==F||F<0||F>_)break t;var V=L.slice(0,F),W=L.slice(F);if(W!==I)break t;var $=Math.min(B,F),it=D.slice(0,$),ot=V.slice(0,$);if(it!==ot)break t;var K=D.slice($),Q=V.slice($);return ft(it,K,Q,I)}t:{if(G!==null&&G!==B)break t;var Y=B,V=L.slice(0,Y),W=L.slice(Y);if(V!==D)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 K=I.slice(0,I.length-J),Q=W.slice(0,W.length-J);return ft(D,K,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 K=g.slice($,T-J),Q=L.slice($,_-J);return ft(it,K,Q,et)}return null}function Lt(g,L,b,O){return n(g,L,b,O,!0)}return Lt.INSERT=t,Lt.DELETE=r,Lt.EQUAL=e,_s=Lt,_s}var _n={exports:{}};_n.exports;var el;function oo(){return el||(el=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]",kt="[object Int8Array]",Lt="[object Int16Array]",g="[object Int32Array]",L="[object Uint8Array]",b="[object Uint8ClampedArray]",O="[object Uint16Array]",S="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,B=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,I={};I[i]=I[o]=I[U]=I[rt]=I[a]=I[u]=I[at]=I[ft]=I[kt]=I[Lt]=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 G=typeof Xt.commonjsGlobal=="object"&&Xt.commonjsGlobal&&Xt.commonjsGlobal.Object===Object&&Xt.commonjsGlobal,F=typeof self=="object"&&self&&self.Object===Object&&self,V=G||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 K(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 un(l,c){return function(d){return l(c(d))}}function Vn(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var jr=Array.prototype,Dr=Function.prototype,je=Object.prototype,hn=V["__core-js_shared__"],Wn=(function(){var l=/[^.]+$/.exec(hn&&hn.keys&&hn.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Zn=Dr.toString,Gt=je.hasOwnProperty,De=je.toString,Pr=RegExp("^"+Zn.call(Gt).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=it?V.Buffer:void 0,Pe=V.Symbol,fn=V.Uint8Array,_t=un(Object.getPrototypeOf,Object),Xn=Object.create,Yn=je.propertyIsEnumerable,$r=jr.splice,dn=Object.getOwnPropertySymbols,$e=Ne?Ne.isBuffer:void 0,Qn=un(Object.keys,Object),Ue=Mt(V,"DataView"),we=Mt(V,"Map"),Bt=Mt(V,"Promise"),Fe=Mt(V,"Set"),gn=Mt(V,"WeakMap"),Te=Mt(Object,"create"),pn=Nt(Ue),xe=Nt(we),mn=Nt(Bt),bn=Nt(Fe),yn=Nt(gn),fe=Pe?Pe.prototype:void 0,Jn=fe?fe.valueOf:void 0;function ne(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 Ur(){this.__data__=Te?Te(null):{}}function Fr(l){return this.has(l)&&delete this.__data__[l]}function Hr(l){var c=this.__data__;if(Te){var d=c[l];return d===n?void 0:d}return Gt.call(c,l)?c[l]:void 0}function tr(l){var c=this.__data__;return Te?c[l]!==void 0:Gt.call(c,l)}function vn(l,c){var d=this.__data__;return d[l]=Te&&c===void 0?n:c,this}ne.prototype.clear=Ur,ne.prototype.delete=Fr,ne.prototype.get=Hr,ne.prototype.has=tr,ne.prototype.set=vn;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 zr(){this.__data__=[]}function Gr(l){var c=this.__data__,d=ze(c,l);if(d<0)return!1;var E=c.length-1;return d==E?c.pop():$r.call(c,d,1),!0}function Kr(l){var c=this.__data__,d=ze(c,l);return d<0?void 0:c[d][1]}function Vr(l){return ze(this.__data__,l)>-1}function Wr(l,c){var d=this.__data__,E=ze(d,l);return E<0?d.push([l,c]):d[E][1]=c,this}dt.prototype.clear=zr,dt.prototype.delete=Gr,dt.prototype.get=Kr,dt.prototype.has=Vr,dt.prototype.set=Wr;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 Zr(){this.__data__={hash:new ne,map:new(we||dt),string:new ne}}function Xr(l){return Se(this,l).delete(l)}function Yr(l){return Se(this,l).get(l)}function Qr(l){return Se(this,l).has(l)}function Jr(l,c){return Se(this,l).set(l,c),this}bt.prototype.clear=Zr,bt.prototype.delete=Xr,bt.prototype.get=Yr,bt.prototype.has=Qr,bt.prototype.set=Jr;function Tt(l){this.__data__=new dt(l)}function ts(){this.__data__=new dt}function es(l){return this.__data__.delete(l)}function ns(l){return this.__data__.get(l)}function rs(l){return this.__data__.has(l)}function ss(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}Tt.prototype.clear=ts,Tt.prototype.delete=es,Tt.prototype.get=ns,Tt.prototype.has=rs,Tt.prototype.set=ss;function He(l,c){var d=wn(l)||Ke(l)?et(l.length,String):[],E=d.length,H=!!E;for(var P in l)Gt.call(l,P)&&!(H&&(P=="length"||ys(P,E)))&&d.push(P);return d}function er(l,c,d){var E=l[c];(!(Gt.call(l,c)&&lr(E,d))||d===void 0&&!(c in l))&&(l[c]=d)}function ze(l,c){for(var d=l.length;d--;)if(lr(l[d][0],c))return d;return-1}function Kt(l,c){return l&&Nn(c,xn(c),l)}function En(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=wn(l);if(ut){if(Z=ms(l),!c)return ds(l,Z)}else{var tt=se(l),yt=tt==p||tt==v;if(or(l))return Ge(l,c);if(tt==y||tt==i||yt&&!P){if(ct(l))return P?l:{};if(Z=Vt(yt?{}:l),!c)return gs(l,Kt(Z,l))}else{if(!I[tt])return P?l:{};Z=bs(l,tt,En,c)}}X||(X=new Tt);var xt=X.get(l);if(xt)return xt;if(X.set(l,Z),!ut)var ht=d?ps(l):xn(l);return Q(ht||l,function(vt,gt){ht&&(gt=vt,vt=l[gt]),er(Z,gt,En(vt,c,d,E,gt,l,X))}),Z}function is(l){return Wt(l)?Xn(l):{}}function ls(l,c,d){var E=c(l);return wn(l)?E:Y(E,d(l))}function os(l){return De.call(l)}function as(l){if(!Wt(l)||Es(l))return!1;var c=Tn(l)||ct(l)?Pr:B;return c.test(Nt(l))}function cs(l){if(!sr(l))return Qn(l);var c=[];for(var d in Object(l))Gt.call(l,d)&&d!="constructor"&&c.push(d);return c}function Ge(l,c){if(c)return l.slice();var d=new l.constructor(l.length);return l.copy(d),d}function An(l){var c=new l.constructor(l.byteLength);return new fn(c).set(new fn(l)),c}function Le(l,c){var d=c?An(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.byteLength)}function nr(l,c,d){var E=c?d(mt(l),!0):mt(l);return J(E,ot,new l.constructor)}function rr(l){var c=new l.constructor(l.source,_.exec(l));return c.lastIndex=l.lastIndex,c}function us(l,c,d){var E=c?d(Vn(l),!0):Vn(l);return J(E,K,new l.constructor)}function hs(l){return Jn?Object(Jn.call(l)):{}}function fs(l,c){var d=c?An(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.length)}function ds(l,c){var d=-1,E=l.length;for(c||(c=Array(E));++d<E;)c[d]=l[d];return c}function Nn(l,c,d,E){d||(d={});for(var H=-1,P=c.length;++H<P;){var X=c[H],Z=void 0;er(d,X,Z===void 0?l[X]:Z)}return d}function gs(l,c){return Nn(l,re(l),c)}function ps(l){return ls(l,xn,re)}function Se(l,c){var d=l.__data__;return vs(c)?d[typeof c=="string"?"string":"hash"]:d.map}function Mt(l,c){var d=nt(l,c);return as(d)?d:void 0}var re=dn?un(dn,Object):Ns,se=os;(Ue&&se(new Ue(new ArrayBuffer(1)))!=rt||we&&se(new we)!=f||Bt&&se(Bt.resolve())!=A||Fe&&se(new Fe)!=x||gn&&se(new gn)!=z)&&(se=function(l){var c=De.call(l),d=c==y?l.constructor:void 0,E=d?Nt(d):void 0;if(E)switch(E){case pn:return rt;case xe:return f;case mn:return A;case bn:return x;case yn:return z}return c});function ms(l){var c=l.length,d=l.constructor(c);return c&&typeof l[0]=="string"&&Gt.call(l,"index")&&(d.index=l.index,d.input=l.input),d}function Vt(l){return typeof l.constructor=="function"&&!sr(l)?is(_t(l)):{}}function bs(l,c,d,E){var H=l.constructor;switch(c){case U:return An(l);case a:case u:return new H(+l);case rt:return Le(l,E);case at:case ft:case kt:case Lt:case g:case L:case b:case O:case S:return fs(l,E);case f:return nr(l,E,d);case m:case C:return new H(l);case w:return rr(l);case x:return us(l,E,d);case M:return hs(l)}}function ys(l,c){return c=c??s,!!c&&(typeof l=="number"||D.test(l))&&l>-1&&l%1==0&&l<c}function vs(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function Es(l){return!!Wn&&Wn in l}function sr(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||je;return l===d}function Nt(l){if(l!=null){try{return Zn.call(l)}catch{}try{return l+""}catch{}}return""}function ir(l){return En(l,!0,!0)}function lr(l,c){return l===c||l!==l&&c!==c}function Ke(l){return As(l)&&Gt.call(l,"callee")&&(!Yn.call(l,"callee")||De.call(l)==i)}var wn=Array.isArray;function Ve(l){return l!=null&&ar(l.length)&&!Tn(l)}function As(l){return cr(l)&&Ve(l)}var or=$e||ws;function Tn(l){var c=Wt(l)?De.call(l):"";return c==p||c==v}function ar(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 cr(l){return!!l&&typeof l=="object"}function xn(l){return Ve(l)?He(l):cs(l)}function Ns(){return[]}function ws(){return!1}r.exports=ir})(_n,_n.exports)),_n.exports}var On={exports:{}};On.exports;var nl;function ao(){return nl||(nl=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]",kt="[object Undefined]",Lt="[object WeakMap]",g="[object ArrayBuffer]",L="[object DataView]",b="[object Float32Array]",O="[object Float64Array]",S="[object Int8Array]",T="[object Int16Array]",_="[object Int32Array]",B="[object Uint8Array]",D="[object Uint8ClampedArray]",I="[object Uint16Array]",G="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,$={};$[b]=$[O]=$[S]=$[T]=$[_]=$[B]=$[D]=$[I]=$[G]=!0,$[a]=$[u]=$[g]=$[p]=$[L]=$[v]=$[f]=$[m]=$[A]=$[w]=$[C]=$[U]=$[rt]=$[at]=$[Lt]=!1;var it=typeof Xt.commonjsGlobal=="object"&&Xt.commonjsGlobal&&Xt.commonjsGlobal.Object===Object&&Xt.commonjsGlobal,ot=typeof self=="object"&&self&&self.Object===Object&&self,K=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 un(l,c){for(var d=-1,E=c.length,H=l.length;++d<E;)l[H+d]=c[d];return l}function Vn(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 jr(l,c){for(var d=-1,E=Array(l);++d<l;)E[d]=c(d);return E}function Dr(l){return function(c){return l(c)}}function je(l,c){return l.has(c)}function hn(l,c){return l==null?void 0:l[c]}function Wn(l){var c=-1,d=Array(l.size);return l.forEach(function(E,H){d[++c]=[H,E]}),d}function Zn(l,c){return function(d){return l(c(d))}}function Gt(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var De=Array.prototype,Pr=Function.prototype,Ne=Object.prototype,Pe=K["__core-js_shared__"],fn=Pr.toString,_t=Ne.hasOwnProperty,Xn=(function(){var l=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Yn=Ne.toString,$r=RegExp("^"+fn.call(_t).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dn=J?K.Buffer:void 0,$e=K.Symbol,Qn=K.Uint8Array,Ue=Ne.propertyIsEnumerable,we=De.splice,Bt=$e?$e.toStringTag:void 0,Fe=Object.getOwnPropertySymbols,gn=dn?dn.isBuffer:void 0,Te=Zn(Object.keys,Object),pn=re(K,"DataView"),xe=re(K,"Map"),mn=re(K,"Promise"),bn=re(K,"Set"),yn=re(K,"WeakMap"),fe=re(Object,"create"),Jn=Nt(pn),ne=Nt(xe),Ur=Nt(mn),Fr=Nt(bn),Hr=Nt(yn),tr=$e?$e.prototype:void 0,vn=tr?tr.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 zr(){this.__data__=fe?fe(null):{},this.size=0}function Gr(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}function Kr(l){var c=this.__data__;if(fe){var d=c[l];return d===n?void 0:d}return _t.call(c,l)?c[l]:void 0}function Vr(l){var c=this.__data__;return fe?c[l]!==void 0:_t.call(c,l)}function Wr(l,c){var d=this.__data__;return this.size+=this.has(l)?0:1,d[l]=fe&&c===void 0?n:c,this}dt.prototype.clear=zr,dt.prototype.delete=Gr,dt.prototype.get=Kr,dt.prototype.has=Vr,dt.prototype.set=Wr;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 Zr(){this.__data__=[],this.size=0}function Xr(l){var c=this.__data__,d=Ge(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 Yr(l){var c=this.__data__,d=Ge(c,l);return d<0?void 0:c[d][1]}function Qr(l){return Ge(this.__data__,l)>-1}function Jr(l,c){var d=this.__data__,E=Ge(d,l);return E<0?(++this.size,d.push([l,c])):d[E][1]=c,this}bt.prototype.clear=Zr,bt.prototype.delete=Xr,bt.prototype.get=Yr,bt.prototype.has=Qr,bt.prototype.set=Jr;function Tt(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 ts(){this.size=0,this.__data__={hash:new dt,map:new(xe||bt),string:new dt}}function es(l){var c=Mt(this,l).delete(l);return this.size-=c?1:0,c}function ns(l){return Mt(this,l).get(l)}function rs(l){return Mt(this,l).has(l)}function ss(l,c){var d=Mt(this,l),E=d.size;return d.set(l,c),this.size+=d.size==E?0:1,this}Tt.prototype.clear=ts,Tt.prototype.delete=es,Tt.prototype.get=ns,Tt.prototype.has=rs,Tt.prototype.set=ss;function He(l){var c=-1,d=l==null?0:l.length;for(this.__data__=new Tt;++c<d;)this.add(l[c])}function er(l){return this.__data__.set(l,n),this}function ze(l){return this.__data__.has(l)}He.prototype.add=He.prototype.push=er,He.prototype.has=ze;function Kt(l){var c=this.__data__=new bt(l);this.size=c.size}function En(){this.__data__=new bt,this.size=0}function is(l){var c=this.__data__,d=c.delete(l);return this.size=c.size,d}function ls(l){return this.__data__.get(l)}function os(l){return this.__data__.has(l)}function as(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 Tt(E)}return d.set(l,c),this.size=d.size,this}Kt.prototype.clear=En,Kt.prototype.delete=is,Kt.prototype.get=ls,Kt.prototype.has=os,Kt.prototype.set=as;function cs(l,c){var d=Ke(l),E=!d&&lr(l),H=!d&&!E&&Ve(l),P=!d&&!E&&!H&&cr(l),X=d||E||H||P,Z=X?jr(l.length,String):[],ut=Z.length;for(var tt in l)_t.call(l,tt)&&!(X&&(tt=="length"||H&&(tt=="offset"||tt=="parent")||P&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||bs(tt,ut)))&&Z.push(tt);return Z}function Ge(l,c){for(var d=l.length;d--;)if(ir(l[d][0],c))return d;return-1}function An(l,c,d){var E=c(l);return Ke(l)?E:un(E,d(l))}function Le(l){return l==null?l===void 0?kt:x:Bt&&Bt in Object(l)?se(l):sr(l)}function nr(l){return Wt(l)&&Le(l)==a}function rr(l,c,d,E,H){return l===c?!0:l==null||c==null||!Wt(l)&&!Wt(c)?l!==l&&c!==c:us(l,c,d,E,rr,H)}function us(l,c,d,E,H,P){var X=Ke(l),Z=Ke(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,xt=tt==C,ht=ut==tt;if(ht&&Ve(l)){if(!Ve(c))return!1;X=!0,yt=!1}if(ht&&!yt)return P||(P=new Kt),X||cr(l)?Nn(l,c,d,E,H,P):gs(l,c,ut,d,E,H,P);if(!(d&s)){var vt=yt&&_t.call(l,"__wrapped__"),gt=xt&&_t.call(c,"__wrapped__");if(vt||gt){var de=vt?l.value():l,ie=gt?c.value():c;return P||(P=new Kt),H(de,ie,d,E,P)}}return ht?(P||(P=new Kt),ps(l,c,d,E,H,P)):!1}function hs(l){if(!ar(l)||vs(l))return!1;var c=or(l)?$r:V;return c.test(Nt(l))}function fs(l){return Wt(l)&&Tn(l.length)&&!!$[Le(l)]}function ds(l){if(!Es(l))return Te(l);var c=[];for(var d in Object(l))_t.call(l,d)&&d!="constructor"&&c.push(d);return c}function Nn(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,xt=!0,ht=d&i?new He:void 0;for(P.set(l,c),P.set(c,l);++yt<Z;){var vt=l[yt],gt=c[yt];if(E)var de=X?E(gt,vt,yt,c,l,P):E(vt,gt,yt,l,c,P);if(de!==void 0){if(de)continue;xt=!1;break}if(ht){if(!Vn(c,function(ie,_e){if(!je(ht,_e)&&(vt===ie||H(vt,ie,d,E,P)))return ht.push(_e)})){xt=!1;break}}else if(!(vt===gt||H(vt,gt,d,E,P))){xt=!1;break}}return P.delete(l),P.delete(c),xt}function gs(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 Qn(l),new Qn(c)));case p:case v:case w:return ir(+l,+c);case f:return l.name==c.name&&l.message==c.message;case U:case at:return l==c+"";case A:var Z=Wn;case rt:var ut=E&s;if(Z||(Z=Gt),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=Nn(Z(l),Z(c),E,H,P,X);return X.delete(l),yt;case ft:if(vn)return vn.call(l)==vn.call(c)}return!1}function ps(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 xt=ut;xt--;){var ht=Z[xt];if(!(X?ht in c:_t.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 de=X;++xt<ut;){ht=Z[xt];var ie=l[ht],_e=c[ht];if(E)var Li=X?E(_e,ie,ht,c,l,P):E(ie,_e,ht,l,c,P);if(!(Li===void 0?ie===_e||H(ie,_e,d,E,P):Li)){gt=!1;break}de||(de=ht=="constructor")}if(gt&&!de){var ur=l.constructor,hr=c.constructor;ur!=hr&&"constructor"in l&&"constructor"in c&&!(typeof ur=="function"&&ur instanceof ur&&typeof hr=="function"&&hr instanceof hr)&&(gt=!1)}return P.delete(l),P.delete(c),gt}function Se(l){return An(l,xn,ms)}function Mt(l,c){var d=l.__data__;return ys(c)?d[typeof c=="string"?"string":"hash"]:d.map}function re(l,c){var d=hn(l,c);return hs(d)?d:void 0}function se(l){var c=_t.call(l,Bt),d=l[Bt];try{l[Bt]=void 0;var E=!0}catch{}var H=Yn.call(l);return E&&(c?l[Bt]=d:delete l[Bt]),H}var ms=Fe?function(l){return l==null?[]:(l=Object(l),mt(Fe(l),function(c){return Ue.call(l,c)}))}:Ns,Vt=Le;(pn&&Vt(new pn(new ArrayBuffer(1)))!=L||xe&&Vt(new xe)!=A||mn&&Vt(mn.resolve())!=M||bn&&Vt(new bn)!=rt||yn&&Vt(new yn)!=Lt)&&(Vt=function(l){var c=Le(l),d=c==C?l.constructor:void 0,E=d?Nt(d):"";if(E)switch(E){case Jn:return L;case ne:return A;case Ur:return M;case Fr:return rt;case Hr:return Lt}return c});function bs(l,c){return c=c??o,!!c&&(typeof l=="number"||W.test(l))&&l>-1&&l%1==0&&l<c}function ys(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function vs(l){return!!Xn&&Xn in l}function Es(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||Ne;return l===d}function sr(l){return Yn.call(l)}function Nt(l){if(l!=null){try{return fn.call(l)}catch{}try{return l+""}catch{}}return""}function ir(l,c){return l===c||l!==l&&c!==c}var lr=nr((function(){return arguments})())?nr:function(l){return Wt(l)&&_t.call(l,"callee")&&!Ue.call(l,"callee")},Ke=Array.isArray;function wn(l){return l!=null&&Tn(l.length)&&!or(l)}var Ve=gn||ws;function As(l,c){return rr(l,c)}function or(l){if(!ar(l))return!1;var c=Le(l);return c==m||c==y||c==h||c==z}function Tn(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=o}function ar(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}function Wt(l){return l!=null&&typeof l=="object"}var cr=ct?Dr(ct):fs;function xn(l){return wn(l)?cs(l):ds(l)}function Ns(){return[]}function ws(){return!1}r.exports=As})(On,On.exports)),On.exports}var gr={},rl;function Nf(){if(rl)return gr;rl=1,Object.defineProperty(gr,"__esModule",{value:!0});const r=oo(),t=ao();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={})),gr.default=e,gr}var pr={},sl;function co(){if(sl)return pr;sl=1,Object.defineProperty(pr,"__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={})),pr.default=r,pr}var mr={},il;function wf(){if(il)return mr;il=1,Object.defineProperty(mr,"__esModule",{value:!0});const r=co();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 mr.default=t,mr}var ll;function Tf(){return ll||(ll=1,(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const e=Af(),n=oo(),s=ao(),i=Nf();t.AttributeMap=i.default;const o=co();t.Op=o.default;const a=wf();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,kt,Lt]=h(M[at],z.retain),g=p.getHandler(ft);U[at]={[ft]:g.compose(kt,Lt,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 kt=p.getHandler(ft);kt&&(at={[ft]:kt.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})(dr,dr.exports)),dr.exports}var wt=Tf();const k=Xt.getDefaultExportFromCjs(wt);class zt extends St{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}zt.blotName="break";zt.tagName="BR";let Ft=class extends _r{};const xf={"&":"&","<":"<",">":">",'"':""","'":"'"};function kr(r){return r.replace(/[&<>"']/g,t=>xf[t])}const Zt=class Zt extends gi{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,j.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,zt,St,Ft]),q(Zt,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let te=Zt;const ol=1;class pt extends Dn{constructor(){super(...arguments);q(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=uo(this)),this.cache.delta}deleteAt(e,n){super.deleteAt(e,n),this.cache={}}formatAt(e,n,s,i){n<=0||(this.scroll.query(s,j.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 zt&&s.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+ol),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()-ol)){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=zt;pt.allowedChildren=[zt,te,St,Ft];class It extends St{attach(){super.attach(),this.attributes=new Ir(this.domNode)}delta(){return new k().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const n=this.scroll.query(t,j.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)}}It.scope=j.BLOCK_BLOT;function uo(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(),qt(n,{},t)),new k).insert(`
|
|
@@ -47,4 +47,4 @@ ${kr(this.code(t,e))}
|
|
|
47
47
|
`).reduce((o,a,u)=>(u!==0&&o.insert(`
|
|
48
48
|
`,{[At.blotName]:e}),o.insert(a)),i)],new WeakMap)}}Oo.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const kn=class kn extends pt{static create(t){const e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",Ti()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===kn.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};q(kn,"blotName","table"),q(kn,"tagName","TD");let $t=kn;class ce extends ke{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),e=this.children.tail.formats(),n=this.next.children.head.formats(),s=this.next.children.tail.formats();return t.table===e.table&&t.table===n.table&&t.table===s.table}return!1}optimize(t){super.optimize(t),this.children.forEach(e=>{if(e.next==null)return;const n=e.formats(),s=e.next.formats();if(n.table!==s.table){const i=this.splitAfter(e);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}q(ce,"blotName","table-row"),q(ce,"tagName","TR");class Qt extends ke{}q(Qt,"blotName","table-body"),q(Qt,"tagName","TBODY");class an extends ke{balanceCells(){const t=this.descendants(ce),e=t.reduce((n,s)=>Math.max(s.children.length,n),0);t.forEach(n=>{new Array(e-n.children.length).fill(0).forEach(()=>{let s;n.children.head!=null&&(s=$t.formats(n.children.head.domNode));const i=this.scroll.create($t.blotName,s);n.appendChild(i),i.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){const[e]=this.descendant(Qt);e==null||e.children.head==null||e.children.forEach(n=>{const s=n.children.at(t);s!=null&&s.remove()})}insertColumn(t){const[e]=this.descendant(Qt);e==null||e.children.head==null||e.children.forEach(n=>{const s=n.children.at(t),i=$t.formats(n.children.head.domNode),o=this.scroll.create($t.blotName,i);n.insertBefore(o,s)})}insertRow(t){const[e]=this.descendant(Qt);if(e==null||e.children.head==null)return;const n=Ti(),s=this.scroll.create(ce.blotName);e.children.head.children.forEach(()=>{const o=this.scroll.create($t.blotName,n);s.appendChild(o)});const i=e.children.at(t);e.insertBefore(s,i)}rows(){const t=this.children.head;return t==null?[]:t.children.map(e=>e)}}q(an,"blotName","table-container"),q(an,"tagName","TABLE");an.allowedChildren=[Qt];Qt.requiredContainer=an;Qt.allowedChildren=[ce];ce.requiredContainer=Qt;ce.allowedChildren=[$t];$t.requiredContainer=ce;function Ti(){return`row-${Math.random().toString(36).slice(2,6)}`}class jd extends Rt{static register(){N.register($t),N.register(ce),N.register(Qt),N.register(an)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(an).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();e!=null&&(t.deleteColumn(e.cellOffset()),this.quill.update(N.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(N.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const e=t.offset();t.remove(),this.quill.update(N.sources.USER),this.quill.setSelection(e,N.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[e,n]=this.quill.getLine(t.index);if(e==null||e.statics.blotName!==$t.blotName)return[null,null,null,-1];const s=e.parent;return[s.parent.parent,s,e,n]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[n,s,i]=this.getTable(e);if(i==null)return;const o=i.cellOffset();n.insertColumn(o+t),this.quill.update(N.sources.USER);let a=s.rowOffset();t===0&&(a+=1),this.quill.setSelection(e.index+a,e.length,N.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[n,s,i]=this.getTable(e);if(i==null)return;const o=s.rowOffset();n.insertRow(o+t),this.quill.update(N.sources.USER),t>0?this.quill.setSelection(e,N.sources.SILENT):this.quill.setSelection(e.index+s.children.length,e.length,N.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const n=this.quill.getSelection();if(n==null)return;const s=new Array(t).fill(0).reduce(i=>{const o=new Array(e).fill(`
|
|
49
49
|
`).join("");return i.insert(o,{table:Ti()})},new k().retain(n.index));this.quill.updateContents(s,N.sources.USER),this.quill.setSelection(n.index,N.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(N.events.SCROLL_OPTIMIZE,t=>{t.some(e=>["TD","TR","TBODY","TABLE"].includes(e.target.tagName)?(this.quill.once(N.events.TEXT_CHANGE,(n,s,i)=>{i===N.sources.USER&&this.balanceTables()}),!0):!1)})}}const xl=he("quill:toolbar");class xi extends Rt{constructor(t,e){var n,s;if(super(t,e),Array.isArray(this.options.container)){const i=document.createElement("div");i.setAttribute("role","toolbar"),Dd(i,this.options.container),(s=(n=t.container)==null?void 0:n.parentNode)==null||s.insertBefore(i,t.container),this.container=i}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){xl.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(i=>{var a;const o=(a=this.options.handlers)==null?void 0:a[i];o&&this.addHandler(i,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(i=>{this.attach(i)}),this.quill.on(N.events.EDITOR_CHANGE,()=>{const[i]=this.quill.selection.getRange();this.update(i)})}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(s=>s.indexOf("ql-")===0);if(!e)return;if(e=e.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[e]==null&&this.quill.scroll.query(e)==null){xl.warn("ignoring attaching to nonexistent format",e,t);return}const n=t.tagName==="SELECT"?"change":"click";t.addEventListener(n,s=>{let i;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const a=t.options[t.selectedIndex];a.hasAttribute("selected")?i=!1:i=a.value||!1}else t.classList.contains("ql-active")?i=!1:i=t.value||!t.hasAttribute("value"),s.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[e]!=null)this.handlers[e].call(this,i);else if(this.quill.scroll.query(e).prototype instanceof St){if(i=prompt(`Enter ${e}`),!i)return;this.quill.updateContents(new k().retain(o.index).delete(o.length).insert({[e]:i}),N.sources.USER)}else this.quill.format(e,i,N.sources.USER);this.update(o)}),this.controls.push([e,t])}update(t){const e=t==null?{}:this.quill.getFormat(t);this.controls.forEach(n=>{const[s,i]=n;if(i.tagName==="SELECT"){let o=null;if(t==null)o=null;else if(e[s]==null)o=i.querySelector("option[selected]");else if(!Array.isArray(e[s])){let a=e[s];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),o=i.querySelector(`option[value="${a}"]`)}o==null?(i.value="",i.selectedIndex=-1):o.selected=!0}else if(t==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const o=e[s],a=o===i.getAttribute("value")||o!=null&&o.toString()===i.getAttribute("value")||o==null&&!i.getAttribute("value");i.classList.toggle("ql-active",a),i.setAttribute("aria-pressed",a.toString())}else{const o=e[s]!=null;i.classList.toggle("ql-active",o),i.setAttribute("aria-pressed",o.toString())}})}}xi.DEFAULTS={};function Ll(r,t,e){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${t}`),n.setAttribute("aria-pressed","false"),e!=null?(n.value=e,n.setAttribute("aria-label",`${t}: ${e}`)):n.setAttribute("aria-label",t),r.appendChild(n)}function Dd(r,t){Array.isArray(t[0])||(t=[t]),t.forEach(e=>{const n=document.createElement("span");n.classList.add("ql-formats"),e.forEach(s=>{if(typeof s=="string")Ll(n,s);else{const i=Object.keys(s)[0],o=s[i];Array.isArray(o)?Pd(n,i,o):Ll(n,i,o)}}),r.appendChild(n)})}function Pd(r,t,e){const n=document.createElement("select");n.classList.add(`ql-${t}`),e.forEach(s=>{const i=document.createElement("option");s!==!1?i.setAttribute("value",String(s)):i.setAttribute("selected","selected"),n.appendChild(i)}),r.appendChild(n)}xi.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(r!=null)if(r.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(e=>{this.quill.scroll.query(e,j.INLINE)!=null&&this.quill.format(e,!1,N.sources.USER)})}else this.quill.removeFormat(r.index,r.length,N.sources.USER)},direction(r){const{align:t}=this.quill.getFormat();r==="rtl"&&t==null?this.quill.format("align","right",N.sources.USER):!r&&t==="right"&&this.quill.format("align",!1,N.sources.USER),this.quill.format("direction",r,N.sources.USER)},indent(r){const t=this.quill.getSelection(),e=this.quill.getFormat(t),n=parseInt(e.indent||0,10);if(r==="+1"||r==="-1"){let s=r==="+1"?1:-1;e.direction==="rtl"&&(s*=-1),this.quill.format("indent",n+s,N.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,N.sources.USER)},list(r){const t=this.quill.getSelection(),e=this.quill.getFormat(t);r==="check"?e.list==="checked"||e.list==="unchecked"?this.quill.format("list",!1,N.sources.USER):this.quill.format("list","unchecked",N.sources.USER):this.quill.format("list",r,N.sources.USER)}}};const $d='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Ud='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Fd='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Hd='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',zd='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Gd='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',Kd='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',Vd='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',Sl='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Wd='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',Zd='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',Xd='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',Yd='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',Qd='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',Jd='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',tg='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',eg='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',ng='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',rg='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',sg='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',ig='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',lg='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',og='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',ag='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',cg='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',ug='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',hg='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',fg='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',dg='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',gg='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',pg='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',mg='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',bg='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',Un={align:{"":$d,center:Ud,right:Fd,justify:Hd},background:zd,blockquote:Gd,bold:Kd,clean:Vd,code:Sl,"code-block":Sl,color:Wd,direction:{"":Zd,rtl:Xd},formula:Yd,header:{1:Qd,2:Jd,3:tg,4:eg,5:ng,6:rg},italic:sg,image:ig,indent:{"+1":lg,"-1":og},link:ag,list:{bullet:cg,check:ug,ordered:hg},script:{sub:fg,super:dg},strike:gg,table:pg,underline:mg,video:bg},yg='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let _l=0;function Ol(r,t){r.setAttribute(t,`${r.getAttribute(t)!=="true"}`)}class Mr{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Ol(this.label,"aria-expanded"),Ol(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item");const n=t.getAttribute("value");return n&&e.setAttribute("data-value",n),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",()=>{this.selectItem(e,!0)}),e.addEventListener("keydown",s=>{switch(s.key){case"Enter":this.selectItem(e,!0),s.preventDefault();break;case"Escape":this.escape(),s.preventDefault();break}}),e}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=yg,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${_l}`,_l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(e=>{const n=this.buildItem(e);t.appendChild(n),e.selected===!0&&this.selectItem(n)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=this.container.querySelector(".ql-selected");t!==n&&(n!=null&&n.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const n=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(n)}else this.selectItem(null);const e=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}class qo extends Mr{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(n=>{n.classList.add("ql-primary")})}buildItem(t){const e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);const n=this.label.querySelector(".ql-color-label"),s=t&&t.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=s:n.style.fill=s)}}class Co extends Mr{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(n=>{n.innerHTML=e[n.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const n=t||this.defaultItem;if(n!=null){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}const vg=r=>{const{overflowY:t}=getComputedStyle(r,null);return t!=="visible"&&t!=="clip"};class Io{constructor(t,e){this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,vg(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const s=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let o=0;if(i.right>s.right&&(o=s.right-i.right,this.root.style.left=`${e+o}px`),i.left<s.left&&(o=s.left-i.left,this.root.style.left=`${e+o}px`),i.bottom>s.bottom){const a=i.bottom-i.top,u=t.bottom-t.top+a;this.root.style.top=`${n-u}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Eg=[!1,"center","right","justify"],Ag=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Ng=[!1,"serif","monospace"],wg=["1","2","3",!1],Tg=["small",!1,"large","huge"];class Kn extends on{constructor(t,e){super(t,e);const n=s=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(s.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(s.target)||i.close()})};t.emitter.listenDOM("click",document.body,n)}addModule(t){const e=super.addModule(t);return t==="toolbar"&&this.extendToolbar(e),e}buildButtons(t,e){Array.from(t).forEach(n=>{(n.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),e[i]!=null))if(i==="direction")n.innerHTML=e[i][""]+e[i].rtl;else if(typeof e[i]=="string")n.innerHTML=e[i];else{const o=n.value||"";o!=null&&e[i][o]&&(n.innerHTML=e[i][o])}})})}buildPickers(t,e){this.pickers=Array.from(t).map(s=>{if(s.classList.contains("ql-align")&&(s.querySelector("option")==null&&Sn(s,Eg),typeof e.align=="object"))return new Co(s,e.align);if(s.classList.contains("ql-background")||s.classList.contains("ql-color")){const i=s.classList.contains("ql-background")?"background":"color";return s.querySelector("option")==null&&Sn(s,Ag,i==="background"?"#ffffff":"#000000"),new qo(s,e[i])}return s.querySelector("option")==null&&(s.classList.contains("ql-font")?Sn(s,Ng):s.classList.contains("ql-header")?Sn(s,wg):s.classList.contains("ql-size")&&Sn(s,Tg)),new Mr(s)});const n=()=>{this.pickers.forEach(s=>{s.update()})};this.quill.on(R.events.EDITOR_CHANGE,n)}}Kn.DEFAULTS=be({},on.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");r==null&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Ro extends Io{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;e!=null?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);n!=null&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,R.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,R.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=xg(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(e!=null){const n=e.index+e.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),t,R.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",R.sources.USER),this.quill.setSelection(n+2,R.sources.USER)}break}}this.textbox.value="",this.hide()}}function xg(r){let t=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:r}function Sn(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(n=>{const s=document.createElement("option");n===e?s.setAttribute("selected","selected"):s.setAttribute("value",String(n)),r.appendChild(s)})}const Lg=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class ko extends Ro{constructor(t,e){super(t,e),this.quill.on(R.events.EDITOR_CHANGE,(n,s,i,o)=>{if(n===R.events.SELECTION_CHANGE)if(s!=null&&s.length>0&&o===R.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(s.index,s.length);if(a.length===1){const u=this.quill.getBounds(s);u!=null&&this.position(u)}else{const u=a[a.length-1],h=this.quill.getIndex(u),p=Math.min(u.length()-1,s.index+s.length-h),v=this.quill.getBounds(new ve(h,p));v!=null&&this.position(v)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(R.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const e=this.quill.getBounds(t);e!=null&&this.position(e)}},1)})}cancel(){this.show()}position(t){const e=super.position(t),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",e!==0&&(n.style.marginLeft=`${-1*e-n.offsetWidth/2}px`),e}}q(ko,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class Bo extends Kn{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=Lg),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new ko(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),Un),this.buildPickers(t.container.querySelectorAll("select"),Un))}}Bo.DEFAULTS=be({},Kn.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,N.sources.USER)}}}}});const Sg=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Mo extends Ro{constructor(){super(...arguments);q(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,R.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(R.events.SELECTION_CHANGE,(e,n,s)=>{if(e!=null){if(e.length===0&&s===R.sources.USER){const[i,o]=this.quill.scroll.descendant(me,e.index);if(i!=null){this.linkRange=new ve(e.index-o,i.length());const a=me.formats(i.domNode);this.preview.textContent=a,this.preview.setAttribute("href",a),this.show();const u=this.quill.getBounds(this.linkRange);u!=null&&this.position(u);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}q(Mo,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class jo extends Kn{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=Sg),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),Un),this.buildPickers(t.container.querySelectorAll("select"),Un),this.tooltip=new Mo(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,n)=>{t.handlers.link.call(t,!n.format.link)}))}}jo.DEFAULTS=be({},Kn.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const t=this.quill.getSelection();if(t==null||t.length===0)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&e.indexOf("mailto:")!==0&&(e=`mailto:${e}`);const{tooltip:n}=this.quill.theme;n.edit("link",e)}else this.quill.format("link",!1,N.sources.USER)}}}}});N.register({"attributors/attribute/direction":mo,"attributors/class/align":fo,"attributors/class/background":Gf,"attributors/class/color":zf,"attributors/class/direction":bo,"attributors/class/font":Eo,"attributors/class/size":No,"attributors/style/align":go,"attributors/style/background":vi,"attributors/style/color":yi,"attributors/style/direction":yo,"attributors/style/font":Ao,"attributors/style/size":wo},!0);N.register({"formats/align":fo,"formats/direction":bo,"formats/indent":Bd,"formats/background":vi,"formats/color":yi,"formats/font":Eo,"formats/size":No,"formats/blockquote":ti,"formats/code-block":At,"formats/header":ei,"formats/list":Gn,"formats/bold":$n,"formats/code":Ei,"formats/italic":ni,"formats/link":me,"formats/script":ri,"formats/strike":si,"formats/underline":ii,"formats/formula":wr,"formats/image":li,"formats/video":Tr,"modules/syntax":Oo,"modules/table":jd,"modules/toolbar":xi,"themes/bubble":Bo,"themes/snow":jo,"ui/icons":Un,"ui/picker":Mr,"ui/icon-picker":Co,"ui/color-picker":qo,"ui/tooltip":Io},!0);exports.AttributeMap=wt.AttributeMap;exports.Delta=k;exports.Module=Rt;exports.Op=wt.Op;exports.OpIterator=wt.OpIterator;exports.Parchment=lo;exports.Range=ve;exports.default=N;
|
|
50
|
-
//# sourceMappingURL=quill-
|
|
50
|
+
//# sourceMappingURL=quill-DgdjRl2f.cjs.map
|