You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1952.9e240c4a.async.js 221KB

123456789101112131415161718192021222324252627282930313233343536
  1. (self.webpackChunk=self.webpackChunk||[]).push([[1952],{8214:function(dt,vt,at){"use strict";var ft=at(1413),M=at(45987),O=at(67294),d=at(66758),S=at(36723),_=at(85893),k=["fieldProps","request","params","proFieldProps"],p=function(c,a){var e=c.fieldProps,t=c.request,l=c.params,o=c.proFieldProps,u=(0,M.Z)(c,k),r=(0,O.useContext)(d.Z);return(0,_.jsx)(S.Z,(0,ft.Z)({valueType:"cascader",fieldProps:(0,ft.Z)({getPopupContainer:r.getPopupContainer},e),ref:a,request:t,params:l,filedConfig:{customLightMode:!0},proFieldProps:o},u))};vt.Z=O.forwardRef(p)},40190:function(){"use strict"},18446:function(dt,vt,at){var ft=at(90939);function M(O,d){return ft(O,d)}dt.exports=M},76095:function(dt,vt,at){var ft=at(48764).lW;(function(O,d){dt.exports=d()})(typeof self!="undefined"?self:this,function(){return function(M){var O={};function d(S){if(O[S])return O[S].exports;var _=O[S]={i:S,l:!1,exports:{}};return M[S].call(_.exports,_,_.exports,d),_.l=!0,_.exports}return d.m=M,d.c=O,d.d=function(S,_,k){d.o(S,_)||Object.defineProperty(S,_,{configurable:!1,enumerable:!0,get:k})},d.n=function(S){var _=S&&S.__esModule?function(){return S.default}:function(){return S};return d.d(_,"a",_),_},d.o=function(S,_){return Object.prototype.hasOwnProperty.call(S,_)},d.p="",d(d.s=109)}([function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(17),_=d(18),k=d(19),p=d(45),m=d(46),c=d(47),a=d(48),e=d(49),t=d(12),l=d(32),o=d(33),u=d(31),r=d(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:S.default,Format:_.default,Leaf:k.default,Embed:a.default,Scroll:p.default,Block:c.default,Inline:m.default,Text:e.default,Attributor:{Attribute:t.default,Class:l.default,Style:o.default,Store:u.default}};O.default=i},function(M,O,d){"use strict";var S=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var f in i)i.hasOwnProperty(f)&&(r[f]=i[f])};return function(r,i){u(r,i);function f(){this.constructor=r}r.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();Object.defineProperty(O,"__esModule",{value:!0});var _=function(u){S(r,u);function r(i){var f=this;return i="[Parchment] "+i,f=u.call(this,i)||this,f.message=i,f.name=f.constructor.name,f}return r}(Error);O.ParchmentError=_;var k={},p={},m={},c={};O.DATA_KEY="__blot";var a;(function(u){u[u.TYPE=3]="TYPE",u[u.LEVEL=12]="LEVEL",u[u.ATTRIBUTE=13]="ATTRIBUTE",u[u.BLOT=14]="BLOT",u[u.INLINE=7]="INLINE",u[u.BLOCK=11]="BLOCK",u[u.BLOCK_BLOT=10]="BLOCK_BLOT",u[u.INLINE_BLOT=6]="INLINE_BLOT",u[u.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",u[u.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",u[u.ANY=15]="ANY"})(a=O.Scope||(O.Scope={}));function e(u,r){var i=l(u);if(i==null)throw new _("Unable to create "+u+" blot");var f=i,n=u instanceof Node||u.nodeType===Node.TEXT_NODE?u:f.create(r);return new f(n,r)}O.create=e;function t(u,r){return r===void 0&&(r=!1),u==null?null:u[O.DATA_KEY]!=null?u[O.DATA_KEY].blot:r?t(u.parentNode,r):null}O.find=t;function l(u,r){r===void 0&&(r=a.ANY);var i;if(typeof u=="string")i=c[u]||k[u];else if(u instanceof Text||u.nodeType===Node.TEXT_NODE)i=c.text;else if(typeof u=="number")u&a.LEVEL&a.BLOCK?i=c.block:u&a.LEVEL&a.INLINE&&(i=c.inline);else if(u instanceof HTMLElement){var f=(u.getAttribute("class")||"").split(/\s+/);for(var n in f)if(i=p[f[n]],i)break;i=i||m[u.tagName]}return i==null?null:r&a.LEVEL&i.scope&&r&a.TYPE&i.scope?i:null}O.query=l;function o(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];if(u.length>1)return u.map(function(n){return o(n)});var i=u[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new _("Invalid definition");if(i.blotName==="abstract")throw new _("Cannot register abstract class");if(c[i.blotName||i.attrName]=i,typeof i.keyName=="string")k[i.keyName]=i;else if(i.className!=null&&(p[i.className]=i),i.tagName!=null){Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(n){return n.toUpperCase()}):i.tagName=i.tagName.toUpperCase();var f=Array.isArray(i.tagName)?i.tagName:[i.tagName];f.forEach(function(n){(m[n]==null||i.className==null)&&(m[n]=i)})}return i}O.register=o},function(M,O,d){var S=d(51),_=d(11),k=d(3),p=d(20),m="\0",c=function(a){Array.isArray(a)?this.ops=a:a!=null&&Array.isArray(a.ops)?this.ops=a.ops:this.ops=[]};c.prototype.insert=function(a,e){var t={};return a.length===0?this:(t.insert=a,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},c.prototype.delete=function(a){return a<=0?this:this.push({delete:a})},c.prototype.retain=function(a,e){if(a<=0)return this;var t={retain:a};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},c.prototype.push=function(a){var e=this.ops.length,t=this.ops[e-1];if(a=k(!0,{},a),typeof t=="object"){if(typeof a.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+a.delete},this;if(typeof t.delete=="number"&&a.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(a),this;if(_(a.attributes,t.attributes)){if(typeof a.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+a.insert},typeof a.attributes=="object"&&(this.ops[e-1].attributes=a.attributes),this;if(typeof a.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+a.retain},typeof a.attributes=="object"&&(this.ops[e-1].attributes=a.attributes),this}}return e===this.ops.length?this.ops.push(a):this.ops.splice(e,0,a),this},c.prototype.chop=function(){var a=this.ops[this.ops.length-1];return a&&a.retain&&!a.attributes&&this.ops.pop(),this},c.prototype.filter=function(a){return this.ops.filter(a)},c.prototype.forEach=function(a){this.ops.forEach(a)},c.prototype.map=function(a){return this.ops.map(a)},c.prototype.partition=function(a){var e=[],t=[];return this.forEach(function(l){var o=a(l)?e:t;o.push(l)}),[e,t]},c.prototype.reduce=function(a,e){return this.ops.reduce(a,e)},c.prototype.changeLength=function(){return this.reduce(function(a,e){return e.insert?a+p.length(e):e.delete?a-e.delete:a},0)},c.prototype.length=function(){return this.reduce(function(a,e){return a+p.length(e)},0)},c.prototype.slice=function(a,e){a=a||0,typeof e!="number"&&(e=1/0);for(var t=[],l=p.iterator(this.ops),o=0;o<e&&l.hasNext();){var u;o<a?u=l.next(a-o):(u=l.next(e-o),t.push(u)),o+=p.length(u)}return new c(t)},c.prototype.compose=function(a){var e=p.iterator(this.ops),t=p.iterator(a.ops),l=[],o=t.peek();if(o!=null&&typeof o.retain=="number"&&o.attributes==null){for(var u=o.retain;e.peekType()==="insert"&&e.peekLength()<=u;)u-=e.peekLength(),l.push(e.next());o.retain-u>0&&t.next(o.retain-u)}for(var r=new c(l);e.hasNext()||t.hasNext();)if(t.peekType()==="insert")r.push(t.next());else if(e.peekType()==="delete")r.push(e.next());else{var i=Math.min(e.peekLength(),t.peekLength()),f=e.next(i),n=t.next(i);if(typeof n.retain=="number"){var s={};typeof f.retain=="number"?s.retain=i:s.insert=f.insert;var A=p.attributes.compose(f.attributes,n.attributes,typeof f.retain=="number");if(A&&(s.attributes=A),r.push(s),!t.hasNext()&&_(r.ops[r.ops.length-1],s)){var g=new c(e.rest());return r.concat(g).chop()}}else typeof n.delete=="number"&&typeof f.retain=="number"&&r.push(n)}return r.chop()},c.prototype.concat=function(a){var e=new c(this.ops.slice());return a.ops.length>0&&(e.push(a.ops[0]),e.ops=e.ops.concat(a.ops.slice(1))),e},c.prototype.diff=function(a,e){if(this.ops===a.ops)return new c;var t=[this,a].map(function(i){return i.map(function(f){if(f.insert!=null)return typeof f.insert=="string"?f.insert:m;var n=i===a?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),l=new c,o=S(t[0],t[1],e),u=p.iterator(this.ops),r=p.iterator(a.ops);return o.forEach(function(i){for(var f=i[1].length;f>0;){var n=0;switch(i[0]){case S.INSERT:n=Math.min(r.peekLength(),f),l.push(r.next(n));break;case S.DELETE:n=Math.min(f,u.peekLength()),u.next(n),l.delete(n);break;case S.EQUAL:n=Math.min(u.peekLength(),r.peekLength(),f);var s=u.next(n),A=r.next(n);_(s.insert,A.insert)?l.retain(n,p.attributes.diff(s.attributes,A.attributes)):l.push(A).delete(n);break}f-=n}}),l.chop()},c.prototype.eachLine=function(a,e){e=e||`
  2. `;for(var t=p.iterator(this.ops),l=new c,o=0;t.hasNext();){if(t.peekType()!=="insert")return;var u=t.peek(),r=p.length(u)-t.peekLength(),i=typeof u.insert=="string"?u.insert.indexOf(e,r)-r:-1;if(i<0)l.push(t.next());else if(i>0)l.push(t.next(i));else{if(a(l,t.next(1).attributes||{},o)===!1)return;o+=1,l=new c}}l.length()>0&&a(l,{},o)},c.prototype.transform=function(a,e){if(e=!!e,typeof a=="number")return this.transformPosition(a,e);for(var t=p.iterator(this.ops),l=p.iterator(a.ops),o=new c;t.hasNext()||l.hasNext();)if(t.peekType()==="insert"&&(e||l.peekType()!=="insert"))o.retain(p.length(t.next()));else if(l.peekType()==="insert")o.push(l.next());else{var u=Math.min(t.peekLength(),l.peekLength()),r=t.next(u),i=l.next(u);if(r.delete)continue;i.delete?o.push(i):o.retain(u,p.attributes.transform(r.attributes,i.attributes,e))}return o.chop()},c.prototype.transformPosition=function(a,e){e=!!e;for(var t=p.iterator(this.ops),l=0;t.hasNext()&&l<=a;){var o=t.peekLength(),u=t.peekType();if(t.next(),u==="delete"){a-=Math.min(o,a-l);continue}else u==="insert"&&(l<a||!e)&&(a+=o);l+=o}return a},M.exports=c},function(M,O){"use strict";var d=Object.prototype.hasOwnProperty,S=Object.prototype.toString,_=Object.defineProperty,k=Object.getOwnPropertyDescriptor,p=function(t){return typeof Array.isArray=="function"?Array.isArray(t):S.call(t)==="[object Array]"},m=function(t){if(!t||S.call(t)!=="[object Object]")return!1;var l=d.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&d.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!l&&!o)return!1;var u;for(u in t);return typeof u=="undefined"||d.call(t,u)},c=function(t,l){_&&l.name==="__proto__"?_(t,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):t[l.name]=l.newValue},a=function(t,l){if(l==="__proto__")if(d.call(t,l)){if(k)return k(t,l).value}else return;return t[l]};M.exports=function e(){var t,l,o,u,r,i,f=arguments[0],n=1,s=arguments.length,A=!1;for(typeof f=="boolean"&&(A=f,f=arguments[1]||{},n=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});n<s;++n)if(t=arguments[n],t!=null)for(l in t)o=a(f,l),u=a(t,l),f!==u&&(A&&u&&(m(u)||(r=p(u)))?(r?(r=!1,i=o&&p(o)?o:[]):i=o&&m(o)?o:{},c(f,{name:l,newValue:e(A,i,u)})):typeof u!="undefined"&&c(f,{name:l,newValue:u}));return f}},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BlockEmbed=O.bubbleFormats=void 0;var S=function(){function h(v,w){for(var T=0;T<w.length;T++){var q=w[T];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(v,q.key,q)}}return function(v,w,T){return w&&h(v.prototype,w),T&&h(v,T),v}}(),_=function h(v,w,T){v===null&&(v=Function.prototype);var q=Object.getOwnPropertyDescriptor(v,w);if(q===void 0){var B=Object.getPrototypeOf(v);return B===null?void 0:h(B,w,T)}else{if("value"in q)return q.value;var C=q.get;return C===void 0?void 0:C.call(T)}},k=d(3),p=f(k),m=d(2),c=f(m),a=d(0),e=f(a),t=d(16),l=f(t),o=d(6),u=f(o),r=d(7),i=f(r);function f(h){return h&&h.__esModule?h:{default:h}}function n(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function s(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function A(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var g=1,b=function(h){A(v,h);function v(){return n(this,v),s(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return S(v,[{key:"attach",value:function(){_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,p.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(T,q){var B=e.default.query(T,e.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,q)}},{key:"formatAt",value:function(T,q,B,C){this.format(B,C)}},{key:"insertAt",value:function(T,q,B){if(typeof q=="string"&&q.endsWith(`
  3. `)){var C=e.default.create(N.blotName);this.parent.insertBefore(C,T===0?this:this.next),C.insertAt(0,q.slice(0,-1))}else _(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,T,q,B)}}]),v}(e.default.Embed);b.scope=e.default.Scope.BLOCK_BLOT;var N=function(h){A(v,h);function v(w){n(this,v);var T=s(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,w));return T.cache={},T}return S(v,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(T,q){return q.length()===0?T:T.insert(q.value(),y(q))},new c.default).insert(`
  4. `,y(this))),this.cache.delta}},{key:"deleteAt",value:function(T,q){_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"deleteAt",this).call(this,T,q),this.cache={}}},{key:"formatAt",value:function(T,q,B,C){q<=0||(e.default.query(B,e.default.Scope.BLOCK)?T+q===this.length()&&this.format(B,C):_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,T,Math.min(q,this.length()-T-1),B,C),this.cache={})}},{key:"insertAt",value:function(T,q,B){if(B!=null)return _(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,T,q,B);if(q.length!==0){var C=q.split(`
  5. `),W=C.shift();W.length>0&&(T<this.length()-1||this.children.tail==null?_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,Math.min(T,this.length()-1),W):this.children.tail.insertAt(this.children.tail.length(),W),this.cache={});var j=this;C.reduce(function(R,E){return j=j.split(R,!0),j.insertAt(0,E),E.length},T+W.length)}}},{key:"insertBefore",value:function(T,q){var B=this.children.head;_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,T,q),B instanceof l.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"length",this).call(this)+g),this.cache.length}},{key:"moveChildren",value:function(T,q){_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"moveChildren",this).call(this,T,q),this.cache={}}},{key:"optimize",value:function(T){_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,T),this.cache={}}},{key:"path",value:function(T){return _(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,T,!0)}},{key:"removeChild",value:function(T){_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"removeChild",this).call(this,T),this.cache={}}},{key:"split",value:function(T){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q&&(T===0||T>=this.length()-g)){var B=this.clone();return T===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var C=_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"split",this).call(this,T,q);return this.cache={},C}}}]),v}(e.default.Block);N.blotName="block",N.tagName="P",N.defaultChild="break",N.allowedChildren=[u.default,e.default.Embed,i.default];function y(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h==null||(typeof h.formats=="function"&&(v=(0,p.default)(v,h.formats())),h.parent==null||h.parent.blotName=="scroll"||h.parent.statics.scope!==h.statics.scope)?v:y(h.parent,v)}O.bubbleFormats=y,O.BlockEmbed=b,O.default=N},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void 0;var S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},_=function(){function j(R,E){var P=[],L=!0,F=!1,D=void 0;try{for(var x=R[Symbol.iterator](),I;!(L=(I=x.next()).done)&&(P.push(I.value),!(E&&P.length===E));L=!0);}catch(U){F=!0,D=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw D}}return P}return function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return j(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function j(R,E){for(var P=0;P<E.length;P++){var L=E[P];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,E,P){return E&&j(R.prototype,E),P&&j(R,P),R}}();d(50);var p=d(2),m=y(p),c=d(14),a=y(c),e=d(8),t=y(e),l=d(9),o=y(l),u=d(0),r=y(u),i=d(15),f=y(i),n=d(3),s=y(n),A=d(10),g=y(A),b=d(34),N=y(b);function y(j){return j&&j.__esModule?j:{default:j}}function h(j,R,E){return R in j?Object.defineProperty(j,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):j[R]=E,j}function v(j,R){if(!(j instanceof R))throw new TypeError("Cannot call a class as a function")}var w=(0,g.default)("quill"),T=function(){k(j,null,[{key:"debug",value:function(E){E===!0&&(E="log"),g.default.level(E)}},{key:"find",value:function(E){return E.__quill||r.default.find(E)}},{key:"import",value:function(E){return this.imports[E]==null&&w.error("Cannot import "+E+". Are you sure it was registered?"),this.imports[E]}},{key:"register",value:function(E,P){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof E!="string"){var D=E.attrName||E.blotName;typeof D=="string"?this.register("formats/"+D,E,P):Object.keys(E).forEach(function(x){L.register(x,E[x],P)})}else this.imports[E]!=null&&!F&&w.warn("Overwriting "+E+" with",P),this.imports[E]=P,(E.startsWith("blots/")||E.startsWith("formats/"))&&P.blotName!=="abstract"?r.default.register(P):E.startsWith("modules")&&typeof P.register=="function"&&P.register()}}]);function j(R){var E=this,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(v(this,j),this.options=q(R,P),this.container=this.options.container,this.container==null)return w.error("Invalid Quill container",R);this.options.debug&&j.debug(this.options.debug);var L=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new t.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(t.default.events.EDITOR_CHANGE,function(D){D===t.default.events.TEXT_CHANGE&&E.root.classList.toggle("ql-blank",E.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(D,x){var I=E.selection.lastRange,U=I&&I.length===0?I.index:void 0;B.call(E,function(){return E.editor.update(null,x,U)},D)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+L+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return k(j,[{key:"addContainer",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof E=="string"){var L=E;E=document.createElement("div"),E.classList.add(L)}return this.container.insertBefore(E,P),E}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(E,P,L){var F=this,D=C(E,P,L),x=_(D,4);return E=x[0],P=x[1],L=x[3],B.call(this,function(){return F.editor.deleteText(E,P)},L,E,-1*P)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(E),this.container.classList.toggle("ql-disabled",!E)}},{key:"focus",value:function(){var E=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=E,this.scrollIntoView()}},{key:"format",value:function(E,P){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return B.call(this,function(){var D=L.getSelection(!0),x=new m.default;if(D==null)return x;if(r.default.query(E,r.default.Scope.BLOCK))x=L.editor.formatLine(D.index,D.length,h({},E,P));else{if(D.length===0)return L.selection.format(E,P),x;x=L.editor.formatText(D.index,D.length,h({},E,P))}return L.setSelection(D,t.default.sources.SILENT),x},F)}},{key:"formatLine",value:function(E,P,L,F,D){var x=this,I=void 0,U=C(E,P,L,F,D),H=_(U,4);return E=H[0],P=H[1],I=H[2],D=H[3],B.call(this,function(){return x.editor.formatLine(E,P,I)},D,E,0)}},{key:"formatText",value:function(E,P,L,F,D){var x=this,I=void 0,U=C(E,P,L,F,D),H=_(U,4);return E=H[0],P=H[1],I=H[2],D=H[3],B.call(this,function(){return x.editor.formatText(E,P,I)},D,E,0)}},{key:"getBounds",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=void 0;typeof E=="number"?L=this.selection.getBounds(E,P):L=this.selection.getBounds(E.index,E.length);var F=this.container.getBoundingClientRect();return{bottom:L.bottom-F.top,height:L.height,left:L.left-F.left,right:L.right-F.left,top:L.top-F.top,width:L.width}}},{key:"getContents",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,L=C(E,P),F=_(L,2);return E=F[0],P=F[1],this.editor.getContents(E,P)}},{key:"getFormat",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof E=="number"?this.editor.getFormat(E,P):this.editor.getFormat(E.index,E.length)}},{key:"getIndex",value:function(E){return E.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(E){return this.scroll.leaf(E)}},{key:"getLine",value:function(E){return this.scroll.line(E)}},{key:"getLines",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof E!="number"?this.scroll.lines(E.index,E.length):this.scroll.lines(E,P)}},{key:"getModule",value:function(E){return this.theme.modules[E]}},{key:"getSelection",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return E&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,L=C(E,P),F=_(L,2);return E=F[0],P=F[1],this.editor.getText(E,P)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(E,P,L){var F=this,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:j.sources.API;return B.call(this,function(){return F.editor.insertEmbed(E,P,L)},D,E)}},{key:"insertText",value:function(E,P,L,F,D){var x=this,I=void 0,U=C(E,0,L,F,D),H=_(U,4);return E=H[0],I=H[2],D=H[3],B.call(this,function(){return x.editor.insertText(E,P,I)},D,E,P.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(E,P,L){this.clipboard.dangerouslyPasteHTML(E,P,L)}},{key:"removeFormat",value:function(E,P,L){var F=this,D=C(E,P,L),x=_(D,4);return E=x[0],P=x[1],L=x[3],B.call(this,function(){return F.editor.removeFormat(E,P)},L,E)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(E){var P=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){E=new m.default(E);var F=P.getLength(),D=P.editor.deleteText(0,F),x=P.editor.applyDelta(E),I=x.ops[x.ops.length-1];I!=null&&typeof I.insert=="string"&&I.insert[I.insert.length-1]===`
  6. `&&(P.editor.deleteText(P.getLength()-1,1),x.delete(1));var U=D.compose(x);return U},L)}},{key:"setSelection",value:function(E,P,L){if(E==null)this.selection.setRange(null,P||j.sources.API);else{var F=C(E,P,L),D=_(F,4);E=D[0],P=D[1],L=D[3],this.selection.setRange(new i.Range(E,P),L),L!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,L=new m.default().insert(E);return this.setContents(L,P)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,P=this.scroll.update(E);return this.selection.update(E),P}},{key:"updateContents",value:function(E){var P=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){return E=new m.default(E),P.editor.applyDelta(E,L)},L,!0)}}]),j}();T.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},T.events=t.default.events,T.sources=t.default.sources,T.version="1.3.7",T.imports={delta:m.default,parchment:r.default,"core/module":o.default,"core/theme":N.default};function q(j,R){if(R=(0,s.default)(!0,{container:j,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===T.DEFAULTS.theme)R.theme=N.default;else if(R.theme=T.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var E=(0,s.default)(!0,{},R.theme.DEFAULTS);[E,R].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(D){F.modules[D]===!0&&(F.modules[D]={})})});var P=Object.keys(E.modules).concat(Object.keys(R.modules)),L=P.reduce(function(F,D){var x=T.import("modules/"+D);return x==null?w.error("Cannot load "+D+" module. Are you sure you registered it?"):F[D]=x.DEFAULTS||{},F},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,s.default)(!0,{},T.DEFAULTS,{modules:L},E,R),["bounds","container","scrollingContainer"].forEach(function(F){typeof R[F]=="string"&&(R[F]=document.querySelector(R[F]))}),R.modules=Object.keys(R.modules).reduce(function(F,D){return R.modules[D]&&(F[D]=R.modules[D]),F},{}),R}function B(j,R,E,P){if(this.options.strict&&!this.isEnabled()&&R===t.default.sources.USER)return new m.default;var L=E==null?null:this.getSelection(),F=this.editor.delta,D=j();if(L!=null&&(E===!0&&(E=L.index),P==null?L=W(L,D,R):P!==0&&(L=W(L,E,P,R)),this.setSelection(L,t.default.sources.SILENT)),D.length()>0){var x,I=[t.default.events.TEXT_CHANGE,D,F,R];if((x=this.emitter).emit.apply(x,[t.default.events.EDITOR_CHANGE].concat(I)),R!==t.default.sources.SILENT){var U;(U=this.emitter).emit.apply(U,I)}}return D}function C(j,R,E,P,L){var F={};return typeof j.index=="number"&&typeof j.length=="number"?typeof R!="number"?(L=P,P=E,E=R,R=j.length,j=j.index):(R=j.length,j=j.index):typeof R!="number"&&(L=P,P=E,E=R,R=0),(typeof E=="undefined"?"undefined":S(E))==="object"?(F=E,L=P):typeof E=="string"&&(P!=null?F[E]=P:L=E),L=L||t.default.sources.API,[j,R,F,L]}function W(j,R,E,P){if(j==null)return null;var L=void 0,F=void 0;if(R instanceof m.default){var D=[j.index,j.index+j.length].map(function(H){return R.transformPosition(H,P!==t.default.sources.USER)}),x=_(D,2);L=x[0],F=x[1]}else{var I=[j.index,j.index+j.length].map(function(H){return H<R||H===R&&P===t.default.sources.USER?H:E>=0?H+E:Math.max(R,H+E)}),U=_(I,2);L=U[0],F=U[1]}return new i.Range(L,F-L)}O.expandConfig=q,O.overload=C,O.default=T},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function u(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&u(r.prototype,i),f&&u(r,f),r}}(),_=function u(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:u(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},k=d(7),p=a(k),m=d(0),c=a(m);function a(u){return u&&u.__esModule?u:{default:u}}function e(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function t(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function l(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var o=function(u){l(r,u);function r(){return e(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return S(r,[{key:"formatAt",value:function(f,n,s,A){if(r.compare(this.statics.blotName,s)<0&&c.default.query(s,c.default.Scope.BLOT)){var g=this.isolate(f,n);A&&g.wrap(s,A)}else _(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,n,s,A)}},{key:"optimize",value:function(f){if(_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,f),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(f,n){var s=r.order.indexOf(f),A=r.order.indexOf(n);return s>=0||A>=0?s-A:f===n?0:f<n?-1:1}}]),r}(c.default.Inline);o.allowedChildren=[o,c.default.Embed,p.default],o.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],O.default=o},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(0),_=k(S);function k(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){c(t,e);function t(){return p(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default.Text);O.default=a},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function i(f,n){for(var s=0;s<n.length;s++){var A=n[s];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}return function(f,n,s){return n&&i(f.prototype,n),s&&i(f,s),f}}(),_=function i(f,n,s){f===null&&(f=Function.prototype);var A=Object.getOwnPropertyDescriptor(f,n);if(A===void 0){var g=Object.getPrototypeOf(f);return g===null?void 0:i(g,n,s)}else{if("value"in A)return A.value;var b=A.get;return b===void 0?void 0:b.call(s)}},k=d(54),p=a(k),m=d(10),c=a(m);function a(i){return i&&i.__esModule?i:{default:i}}function e(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}function t(i,f){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:i}function l(i,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);i.prototype=Object.create(f&&f.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(i,f):i.__proto__=f)}var o=(0,c.default)("quill:events"),u=["selectionchange","mousedown","mouseup","click"];u.forEach(function(i){document.addEventListener(i,function(){for(var f=arguments.length,n=Array(f),s=0;s<f;s++)n[s]=arguments[s];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){if(A.__quill&&A.__quill.emitter){var g;(g=A.__quill.emitter).handleDOM.apply(g,n)}})})});var r=function(i){l(f,i);function f(){e(this,f);var n=t(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return n.listeners={},n.on("error",o.error),n}return S(f,[{key:"emit",value:function(){o.log.apply(o,arguments),_(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(s){for(var A=arguments.length,g=Array(A>1?A-1:0),b=1;b<A;b++)g[b-1]=arguments[b];(this.listeners[s.type]||[]).forEach(function(N){var y=N.node,h=N.handler;(s.target===y||y.contains(s.target))&&h.apply(void 0,[s].concat(g))})}},{key:"listenDOM",value:function(s,A,g){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push({node:A,handler:g})}}]),f}(p.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},O.default=r},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});function S(k,p){if(!(k instanceof p))throw new TypeError("Cannot call a class as a function")}var _=function k(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};S(this,k),this.quill=p,this.options=m};_.DEFAULTS={},O.default=_},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=["error","warn","log","info"],_="warn";function k(m){if(S.indexOf(m)<=S.indexOf(_)){for(var c,a=arguments.length,e=Array(a>1?a-1:0),t=1;t<a;t++)e[t-1]=arguments[t];(c=console)[m].apply(c,e)}}function p(m){return S.reduce(function(c,a){return c[a]=k.bind(console,a,m),c},{})}k.level=p.level=function(m){_=m},O.default=p},function(M,O,d){var S=Array.prototype.slice,_=d(52),k=d(53),p=M.exports=function(e,t,l){return l||(l={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?l.strict?e===t:e==t:a(e,t,l)};function m(e){return e==null}function c(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function a(e,t,l){var o,u;if(m(e)||m(t)||e.prototype!==t.prototype)return!1;if(k(e))return k(t)?(e=S.call(e),t=S.call(t),p(e,t,l)):!1;if(c(e)){if(!c(t)||e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}try{var r=_(e),i=_(t)}catch(f){return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),o=r.length-1;o>=0;o--)if(r[o]!=i[o])return!1;for(o=r.length-1;o>=0;o--)if(u=r[o],!p(e[u],t[u],l))return!1;return typeof e==typeof t}},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(1),_=function(){function k(p,m,c){c===void 0&&(c={}),this.attrName=p,this.keyName=m;var a=S.Scope.TYPE&S.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&S.Scope.LEVEL|a:this.scope=S.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return k.keys=function(p){return[].map.call(p.attributes,function(m){return m.name})},k.prototype.add=function(p,m){return this.canAdd(p,m)?(p.setAttribute(this.keyName,m),!0):!1},k.prototype.canAdd=function(p,m){var c=S.query(p,S.Scope.BLOT&(this.scope|S.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof m=="string"?this.whitelist.indexOf(m.replace(/["']/g,""))>-1:this.whitelist.indexOf(m)>-1},k.prototype.remove=function(p){p.removeAttribute(this.keyName)},k.prototype.value=function(p){var m=p.getAttribute(this.keyName);return this.canAdd(p,m)&&m?m:""},k}();O.default=_},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Code=void 0;var S=function(){function b(N,y){var h=[],v=!0,w=!1,T=void 0;try{for(var q=N[Symbol.iterator](),B;!(v=(B=q.next()).done)&&(h.push(B.value),!(y&&h.length===y));v=!0);}catch(C){w=!0,T=C}finally{try{!v&&q.return&&q.return()}finally{if(w)throw T}}return h}return function(N,y){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return b(N,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function b(N,y){for(var h=0;h<y.length;h++){var v=y[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(N,v.key,v)}}return function(N,y,h){return y&&b(N.prototype,y),h&&b(N,h),N}}(),k=function b(N,y,h){N===null&&(N=Function.prototype);var v=Object.getOwnPropertyDescriptor(N,y);if(v===void 0){var w=Object.getPrototypeOf(N);return w===null?void 0:b(w,y,h)}else{if("value"in v)return v.value;var T=v.get;return T===void 0?void 0:T.call(h)}},p=d(2),m=i(p),c=d(0),a=i(c),e=d(4),t=i(e),l=d(6),o=i(l),u=d(7),r=i(u);function i(b){return b&&b.__esModule?b:{default:b}}function f(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}function n(b,N){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:b}function s(b,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);b.prototype=Object.create(N&&N.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(b,N):b.__proto__=N)}var A=function(b){s(N,b);function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return N}(o.default);A.blotName="code",A.tagName="CODE";var g=function(b){s(N,b);function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return _(N,[{key:"delta",value:function(){var h=this,v=this.domNode.textContent;return v.endsWith(`
  7. `)&&(v=v.slice(0,-1)),v.split(`
  8. `).reduce(function(w,T){return w.insert(T).insert(`
  9. `,h.formats())},new m.default)}},{key:"format",value:function(h,v){if(!(h===this.statics.blotName&&v)){var w=this.descendant(r.default,this.length()-1),T=S(w,1),q=T[0];q!=null&&q.deleteAt(q.length()-1,1),k(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,h,v)}}},{key:"formatAt",value:function(h,v,w,T){if(v!==0&&!(a.default.query(w,a.default.Scope.BLOCK)==null||w===this.statics.blotName&&T===this.statics.formats(this.domNode))){var q=this.newlineIndex(h);if(!(q<0||q>=h+v)){var B=this.newlineIndex(h,!0)+1,C=q-B+1,W=this.isolate(B,C),j=W.next;W.format(w,T),j instanceof N&&j.formatAt(0,h-B+v-C,w,T)}}}},{key:"insertAt",value:function(h,v,w){if(w==null){var T=this.descendant(r.default,h),q=S(T,2),B=q[0],C=q[1];B.insertAt(C,v)}}},{key:"length",value:function(){var h=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
  10. `)?h:h+1}},{key:"newlineIndex",value:function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(v)return this.domNode.textContent.slice(0,h).lastIndexOf(`
  11. `);var w=this.domNode.textContent.slice(h).indexOf(`
  12. `);return w>-1?h+w:-1}},{key:"optimize",value:function(h){this.domNode.textContent.endsWith(`
  13. `)||this.appendChild(a.default.create("text",`
  14. `)),k(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,h);var v=this.next;v!=null&&v.prev===this&&v.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===v.statics.formats(v.domNode)&&(v.optimize(h),v.moveChildren(this),v.remove())}},{key:"replace",value:function(h){k(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,h),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(v){var w=a.default.find(v);w==null?v.parentNode.removeChild(v):w instanceof a.default.Embed?w.remove():w.unwrap()})}}],[{key:"create",value:function(h){var v=k(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,h);return v.setAttribute("spellcheck",!1),v}},{key:"formats",value:function(){return!0}}]),N}(t.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",O.Code=A,O.default=g},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},_=function(){function j(R,E){var P=[],L=!0,F=!1,D=void 0;try{for(var x=R[Symbol.iterator](),I;!(L=(I=x.next()).done)&&(P.push(I.value),!(E&&P.length===E));L=!0);}catch(U){F=!0,D=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw D}}return P}return function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return j(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function j(R,E){for(var P=0;P<E.length;P++){var L=E[P];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,E,P){return E&&j(R.prototype,E),P&&j(R,P),R}}(),p=d(2),m=v(p),c=d(20),a=v(c),e=d(0),t=v(e),l=d(13),o=v(l),u=d(24),r=v(u),i=d(4),f=v(i),n=d(16),s=v(n),A=d(21),g=v(A),b=d(11),N=v(b),y=d(3),h=v(y);function v(j){return j&&j.__esModule?j:{default:j}}function w(j,R,E){return R in j?Object.defineProperty(j,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):j[R]=E,j}function T(j,R){if(!(j instanceof R))throw new TypeError("Cannot call a class as a function")}var q=/^[ -~]*$/,B=function(){function j(R){T(this,j),this.scroll=R,this.delta=this.getDelta()}return k(j,[{key:"applyDelta",value:function(E){var P=this,L=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),E=W(E),E.reduce(function(D,x){var I=x.retain||x.delete||x.insert.length||1,U=x.attributes||{};if(x.insert!=null){if(typeof x.insert=="string"){var H=x.insert;H.endsWith(`
  15. `)&&L&&(L=!1,H=H.slice(0,-1)),D>=F&&!H.endsWith(`
  16. `)&&(L=!0),P.scroll.insertAt(D,H);var V=P.scroll.line(D),Y=_(V,2),X=Y[0],Q=Y[1],nt=(0,h.default)({},(0,i.bubbleFormats)(X));if(X instanceof f.default){var rt=X.descendant(t.default.Leaf,Q),ut=_(rt,1),lt=ut[0];nt=(0,h.default)(nt,(0,i.bubbleFormats)(lt))}U=a.default.attributes.diff(nt,U)||{}}else if(S(x.insert)==="object"){var K=Object.keys(x.insert)[0];if(K==null)return D;P.scroll.insertAt(D,K,x.insert[K])}F+=I}return Object.keys(U).forEach(function(z){P.scroll.formatAt(D,I,z,U[z])}),D+I},0),E.reduce(function(D,x){return typeof x.delete=="number"?(P.scroll.deleteAt(D,x.delete),D):D+(x.retain||x.insert.length||1)},0),this.scroll.batchEnd(),this.update(E)}},{key:"deleteText",value:function(E,P){return this.scroll.deleteAt(E,P),this.update(new m.default().retain(E).delete(P))}},{key:"formatLine",value:function(E,P){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(D){if(!(L.scroll.whitelist!=null&&!L.scroll.whitelist[D])){var x=L.scroll.lines(E,Math.max(P,1)),I=P;x.forEach(function(U){var H=U.length();if(!(U instanceof o.default))U.format(D,F[D]);else{var V=E-U.offset(L.scroll),Y=U.newlineIndex(V+I)-V+1;U.formatAt(V,Y,D,F[D])}I-=H})}}),this.scroll.optimize(),this.update(new m.default().retain(E).retain(P,(0,g.default)(F)))}},{key:"formatText",value:function(E,P){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(F).forEach(function(D){L.scroll.formatAt(E,P,D,F[D])}),this.update(new m.default().retain(E).retain(P,(0,g.default)(F)))}},{key:"getContents",value:function(E,P){return this.delta.slice(E,E+P)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(E,P){return E.concat(P.delta())},new m.default)}},{key:"getFormat",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=[],F=[];P===0?this.scroll.path(E).forEach(function(x){var I=_(x,1),U=I[0];U instanceof f.default?L.push(U):U instanceof t.default.Leaf&&F.push(U)}):(L=this.scroll.lines(E,P),F=this.scroll.descendants(t.default.Leaf,E,P));var D=[L,F].map(function(x){if(x.length===0)return{};for(var I=(0,i.bubbleFormats)(x.shift());Object.keys(I).length>0;){var U=x.shift();if(U==null)return I;I=C((0,i.bubbleFormats)(U),I)}return I});return h.default.apply(h.default,D)}},{key:"getText",value:function(E,P){return this.getContents(E,P).filter(function(L){return typeof L.insert=="string"}).map(function(L){return L.insert}).join("")}},{key:"insertEmbed",value:function(E,P,L){return this.scroll.insertAt(E,P,L),this.update(new m.default().retain(E).insert(w({},P,L)))}},{key:"insertText",value:function(E,P){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return P=P.replace(/\r\n/g,`
  17. `).replace(/\r/g,`
  18. `),this.scroll.insertAt(E,P),Object.keys(F).forEach(function(D){L.scroll.formatAt(E,P.length,D,F[D])}),this.update(new m.default().retain(E).insert(P,(0,g.default)(F)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var E=this.scroll.children.head;return E.statics.blotName!==f.default.blotName||E.children.length>1?!1:E.children.head instanceof s.default}},{key:"removeFormat",value:function(E,P){var L=this.getText(E,P),F=this.scroll.line(E+P),D=_(F,2),x=D[0],I=D[1],U=0,H=new m.default;x!=null&&(x instanceof o.default?U=x.newlineIndex(I)-I+1:U=x.length()-I,H=x.delta().slice(I,I+U-1).insert(`
  19. `));var V=this.getContents(E,P+U),Y=V.diff(new m.default().insert(L).concat(H)),X=new m.default().retain(E).concat(Y);return this.applyDelta(X)}},{key:"update",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,F=this.delta;if(P.length===1&&P[0].type==="characterData"&&P[0].target.data.match(q)&&t.default.find(P[0].target)){var D=t.default.find(P[0].target),x=(0,i.bubbleFormats)(D),I=D.offset(this.scroll),U=P[0].oldValue.replace(r.default.CONTENTS,""),H=new m.default().insert(U),V=new m.default().insert(D.value()),Y=new m.default().retain(I).concat(H.diff(V,L));E=Y.reduce(function(X,Q){return Q.insert?X.insert(Q.insert,x):X.push(Q)},new m.default),this.delta=F.compose(E)}else this.delta=this.getDelta(),(!E||!(0,N.default)(F.compose(E),this.delta))&&(E=F.diff(this.delta,L));return E}}]),j}();function C(j,R){return Object.keys(R).reduce(function(E,P){return j[P]==null||(R[P]===j[P]?E[P]=R[P]:Array.isArray(R[P])?R[P].indexOf(j[P])<0&&(E[P]=R[P].concat([j[P]])):E[P]=[R[P],j[P]]),E},{})}function W(j){return j.reduce(function(R,E){if(E.insert===1){var P=(0,g.default)(E.attributes);return delete P.image,R.insert({image:E.attributes.image},P)}if(E.attributes!=null&&(E.attributes.list===!0||E.attributes.bullet===!0)&&(E=(0,g.default)(E),E.attributes.list?E.attributes.list="ordered":(E.attributes.list="bullet",delete E.attributes.bullet)),typeof E.insert=="string"){var L=E.insert.replace(/\r\n/g,`
  20. `).replace(/\r/g,`
  21. `);return R.insert(L,E.attributes)}return R.push(E)},new m.default)}O.default=B},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void 0;var S=function(){function b(N,y){var h=[],v=!0,w=!1,T=void 0;try{for(var q=N[Symbol.iterator](),B;!(v=(B=q.next()).done)&&(h.push(B.value),!(y&&h.length===y));v=!0);}catch(C){w=!0,T=C}finally{try{!v&&q.return&&q.return()}finally{if(w)throw T}}return h}return function(N,y){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return b(N,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function b(N,y){for(var h=0;h<y.length;h++){var v=y[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(N,v.key,v)}}return function(N,y,h){return y&&b(N.prototype,y),h&&b(N,h),N}}(),k=d(0),p=r(k),m=d(21),c=r(m),a=d(11),e=r(a),t=d(8),l=r(t),o=d(10),u=r(o);function r(b){return b&&b.__esModule?b:{default:b}}function i(b){if(Array.isArray(b)){for(var N=0,y=Array(b.length);N<b.length;N++)y[N]=b[N];return y}else return Array.from(b)}function f(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}var n=(0,u.default)("quill:selection"),s=function b(N){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;f(this,b),this.index=N,this.length=y},A=function(){function b(N,y){var h=this;f(this,b),this.emitter=y,this.scroll=N,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=p.default.create("cursor",this),this.lastRange=this.savedRange=new s(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){h.mouseDown||setTimeout(h.update.bind(h,l.default.sources.USER),1)}),this.emitter.on(l.default.events.EDITOR_CHANGE,function(v,w){v===l.default.events.TEXT_CHANGE&&w.length()>0&&h.update(l.default.sources.SILENT)}),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,function(){if(h.hasFocus()){var v=h.getNativeRange();v!=null&&v.start.node!==h.cursor.textNode&&h.emitter.once(l.default.events.SCROLL_UPDATE,function(){try{h.setNativeRange(v.start.node,v.start.offset,v.end.node,v.end.offset)}catch(w){}})}}),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,function(v,w){if(w.range){var T=w.range,q=T.startNode,B=T.startOffset,C=T.endNode,W=T.endOffset;h.setNativeRange(q,B,C,W)}}),this.update(l.default.sources.SILENT)}return _(b,[{key:"handleComposition",value:function(){var y=this;this.root.addEventListener("compositionstart",function(){y.composing=!0}),this.root.addEventListener("compositionend",function(){if(y.composing=!1,y.cursor.parent){var h=y.cursor.restore();if(!h)return;setTimeout(function(){y.setNativeRange(h.startNode,h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var y=this;this.emitter.listenDOM("mousedown",document.body,function(){y.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){y.mouseDown=!1,y.update(l.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(y,h){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[y])){this.scroll.update();var v=this.getNativeRange();if(!(v==null||!v.native.collapsed||p.default.query(y,p.default.Scope.BLOCK))){if(v.start.node!==this.cursor.textNode){var w=p.default.find(v.start.node,!1);if(w==null)return;if(w instanceof p.default.Leaf){var T=w.split(v.start.offset);w.parent.insertBefore(this.cursor,T)}else w.insertBefore(this.cursor,v.start.node);this.cursor.attach()}this.cursor.format(y,h),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(y){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v=this.scroll.length();y=Math.min(y,v-1),h=Math.min(y+h,v-1)-y;var w=void 0,T=this.scroll.leaf(y),q=S(T,2),B=q[0],C=q[1];if(B==null)return null;var W=B.position(C,!0),j=S(W,2);w=j[0],C=j[1];var R=document.createRange();if(h>0){R.setStart(w,C);var E=this.scroll.leaf(y+h),P=S(E,2);if(B=P[0],C=P[1],B==null)return null;var L=B.position(C,!0),F=S(L,2);return w=F[0],C=F[1],R.setEnd(w,C),R.getBoundingClientRect()}else{var D="left",x=void 0;return w instanceof Text?(C<w.data.length?(R.setStart(w,C),R.setEnd(w,C+1)):(R.setStart(w,C-1),R.setEnd(w,C),D="right"),x=R.getBoundingClientRect()):(x=B.domNode.getBoundingClientRect(),C>0&&(D="right")),{bottom:x.top+x.height,height:x.height,left:x[D],right:x[D],top:x.top,width:0}}}},{key:"getNativeRange",value:function(){var y=document.getSelection();if(y==null||y.rangeCount<=0)return null;var h=y.getRangeAt(0);if(h==null)return null;var v=this.normalizeNative(h);return n.info("getNativeRange",v),v}},{key:"getRange",value:function(){var y=this.getNativeRange();if(y==null)return[null,null];var h=this.normalizedToRange(y);return[h,y]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(y){var h=this,v=[[y.start.node,y.start.offset]];y.native.collapsed||v.push([y.end.node,y.end.offset]);var w=v.map(function(B){var C=S(B,2),W=C[0],j=C[1],R=p.default.find(W,!0),E=R.offset(h.scroll);return j===0?E:R instanceof p.default.Container?E+R.length():E+R.index(W,j)}),T=Math.min(Math.max.apply(Math,i(w)),this.scroll.length()-1),q=Math.min.apply(Math,[T].concat(i(w)));return new s(q,T-q)}},{key:"normalizeNative",value:function(y){if(!g(this.root,y.startContainer)||!y.collapsed&&!g(this.root,y.endContainer))return null;var h={start:{node:y.startContainer,offset:y.startOffset},end:{node:y.endContainer,offset:y.endOffset},native:y};return[h.start,h.end].forEach(function(v){for(var w=v.node,T=v.offset;!(w instanceof Text)&&w.childNodes.length>0;)if(w.childNodes.length>T)w=w.childNodes[T],T=0;else if(w.childNodes.length===T)w=w.lastChild,T=w instanceof Text?w.data.length:w.childNodes.length+1;else break;v.node=w,v.offset=T}),h}},{key:"rangeToNative",value:function(y){var h=this,v=y.collapsed?[y.index]:[y.index,y.index+y.length],w=[],T=this.scroll.length();return v.forEach(function(q,B){q=Math.min(T-1,q);var C=void 0,W=h.scroll.leaf(q),j=S(W,2),R=j[0],E=j[1],P=R.position(E,B!==0),L=S(P,2);C=L[0],E=L[1],w.push(C,E)}),w.length<2&&(w=w.concat(w)),w}},{key:"scrollIntoView",value:function(y){var h=this.lastRange;if(h!=null){var v=this.getBounds(h.index,h.length);if(v!=null){var w=this.scroll.length()-1,T=this.scroll.line(Math.min(h.index,w)),q=S(T,1),B=q[0],C=B;if(h.length>0){var W=this.scroll.line(Math.min(h.index+h.length,w)),j=S(W,1);C=j[0]}if(!(B==null||C==null)){var R=y.getBoundingClientRect();v.top<R.top?y.scrollTop-=R.top-v.top:v.bottom>R.bottom&&(y.scrollTop+=v.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(y,h){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",y,h,v,w),!(y!=null&&(this.root.parentNode==null||y.parentNode==null||v.parentNode==null))){var q=document.getSelection();if(q!=null)if(y!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||T||y!==B.startContainer||h!==B.startOffset||v!==B.endContainer||w!==B.endOffset){y.tagName=="BR"&&(h=[].indexOf.call(y.parentNode.childNodes,y),y=y.parentNode),v.tagName=="BR"&&(w=[].indexOf.call(v.parentNode.childNodes,v),v=v.parentNode);var C=document.createRange();C.setStart(y,h),C.setEnd(v,w),q.removeAllRanges(),q.addRange(C)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(y){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof h=="string"&&(v=h,h=!1),n.info("setRange",y),y!=null){var w=this.rangeToNative(y);this.setNativeRange.apply(this,i(w).concat([h]))}else this.setNativeRange(null);this.update(v)}},{key:"update",value:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.default.sources.USER,h=this.lastRange,v=this.getRange(),w=S(v,2),T=w[0],q=w[1];if(this.lastRange=T,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(h,this.lastRange)){var B;!this.composing&&q!=null&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var C=[l.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(h),y];if((B=this.emitter).emit.apply(B,[l.default.events.EDITOR_CHANGE].concat(C)),y!==l.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,C)}}}}]),b}();function g(b,N){try{N.parentNode}catch(y){return!1}return N instanceof Text&&(N=N.parentNode),b.contains(N)}O.Range=s,O.default=A},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function l(o,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,u,r){return u&&l(o.prototype,u),r&&l(o,r),o}}(),_=function l(o,u,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,u);if(i===void 0){var f=Object.getPrototypeOf(o);return f===null?void 0:l(f,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},k=d(0),p=m(k);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function a(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(){return c(this,o),a(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return S(o,[{key:"insertInto",value:function(r,i){r.children.length===0?_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),o}(p.default.Embed);t.blotName="break",t.tagName="BR",O.default=t},function(M,O,d){"use strict";var S=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])};return function(e,t){a(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(O,"__esModule",{value:!0});var _=d(44),k=d(30),p=d(1),m=function(a){S(e,a);function e(t){var l=a.call(this,t)||this;return l.build(),l}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){a.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new _.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(l){try{var o=c(l);t.insertBefore(o,t.children.head||void 0)}catch(u){if(u instanceof p.ParchmentError)return;throw u}})},e.prototype.deleteAt=function(t,l){if(t===0&&l===this.length())return this.remove();this.children.forEachAt(t,l,function(o,u,r){o.deleteAt(u,r)})},e.prototype.descendant=function(t,l){var o=this.children.find(l),u=o[0],r=o[1];return t.blotName==null&&t(u)||t.blotName!=null&&u instanceof t?[u,r]:u instanceof e?u.descendant(t,r):[null,-1]},e.prototype.descendants=function(t,l,o){l===void 0&&(l=0),o===void 0&&(o=Number.MAX_VALUE);var u=[],r=o;return this.children.forEachAt(l,o,function(i,f,n){(t.blotName==null&&t(i)||t.blotName!=null&&i instanceof t)&&u.push(i),i instanceof e&&(u=u.concat(i.descendants(t,f,r))),r-=n}),u},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),a.prototype.detach.call(this)},e.prototype.formatAt=function(t,l,o,u){this.children.forEachAt(t,l,function(r,i,f){r.formatAt(i,f,o,u)})},e.prototype.insertAt=function(t,l,o){var u=this.children.find(t),r=u[0],i=u[1];if(r)r.insertAt(i,l,o);else{var f=o==null?p.create("text",l):p.create(l,o);this.appendChild(f)}},e.prototype.insertBefore=function(t,l){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(o){return t instanceof o}))throw new p.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,l)},e.prototype.length=function(){return this.children.reduce(function(t,l){return t+l.length()},0)},e.prototype.moveChildren=function(t,l){this.children.forEach(function(o){t.insertBefore(o,l)})},e.prototype.optimize=function(t){if(a.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var l=p.create(this.statics.defaultChild);this.appendChild(l),l.optimize(t)}else this.remove()},e.prototype.path=function(t,l){l===void 0&&(l=!1);var o=this.children.find(t,l),u=o[0],r=o[1],i=[[this,t]];return u instanceof e?i.concat(u.path(r,l)):(u!=null&&i.push([u,r]),i)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),a.prototype.replace.call(this,t)},e.prototype.split=function(t,l){if(l===void 0&&(l=!1),!l){if(t===0)return this;if(t===this.length())return this.next}var o=this.clone();return this.parent.insertBefore(o,this.next),this.children.forEachAt(t,this.length(),function(u,r,i){u=u.split(r,l),o.appendChild(u)}),o},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,l){var o=this,u=[],r=[];t.forEach(function(i){i.target===o.domNode&&i.type==="childList"&&(u.push.apply(u,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var f=p.find(i);f!=null&&(f.domNode.parentNode==null||f.domNode.parentNode===o.domNode)&&f.detach()}}),u.filter(function(i){return i.parentNode==o.domNode}).sort(function(i,f){return i===f?0:i.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var f=null;i.nextSibling!=null&&(f=p.find(i.nextSibling));var n=c(i);(n.next!=f||n.next==null)&&(n.parent!=null&&n.parent.removeChild(o),o.insertBefore(n,f||void 0))})},e}(k.default);function c(a){var e=p.find(a);if(e==null)try{e=p.create(a)}catch(t){e=p.create(p.Scope.INLINE),[].slice.call(a.childNodes).forEach(function(l){e.domNode.appendChild(l)}),a.parentNode&&a.parentNode.replaceChild(e.domNode,a),e.attach()}return e}O.default=m},function(M,O,d){"use strict";var S=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])};return function(e,t){a(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(O,"__esModule",{value:!0});var _=d(12),k=d(31),p=d(17),m=d(1),c=function(a){S(e,a);function e(t){var l=a.call(this,t)||this;return l.attributes=new k.default(l.domNode),l}return e.formats=function(t){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()},e.prototype.format=function(t,l){var o=m.query(t);o instanceof _.default?this.attributes.attribute(o,l):l&&o!=null&&(t!==this.statics.blotName||this.formats()[t]!==l)&&this.replaceWith(t,l)},e.prototype.formats=function(){var t=this.attributes.values(),l=this.statics.formats(this.domNode);return l!=null&&(t[this.statics.blotName]=l),t},e.prototype.replaceWith=function(t,l){var o=a.prototype.replaceWith.call(this,t,l);return this.attributes.copy(o),o},e.prototype.update=function(t,l){var o=this;a.prototype.update.call(this,t,l),t.some(function(u){return u.target===o.domNode&&u.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,l){var o=a.prototype.wrap.call(this,t,l);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(p.default);O.default=c},function(M,O,d){"use strict";var S=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return function(c,a){m(c,a);function e(){this.constructor=c}c.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(O,"__esModule",{value:!0});var _=d(30),k=d(1),p=function(m){S(c,m);function c(){return m!==null&&m.apply(this,arguments)||this}return c.value=function(a){return!0},c.prototype.index=function(a,e){return this.domNode===a||this.domNode.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},c.prototype.position=function(a,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return a>0&&(t+=1),[this.parent.domNode,t]},c.prototype.value=function(){var a;return a={},a[this.statics.blotName]=this.statics.value(this.domNode)||!0,a},c.scope=k.Scope.INLINE_BLOT,c}(_.default);O.default=p},function(M,O,d){var S=d(11),_=d(3),k={attributes:{compose:function(m,c,a){typeof m!="object"&&(m={}),typeof c!="object"&&(c={});var e=_(!0,{},c);a||(e=Object.keys(e).reduce(function(l,o){return e[o]!=null&&(l[o]=e[o]),l},{}));for(var t in m)m[t]!==void 0&&c[t]===void 0&&(e[t]=m[t]);return Object.keys(e).length>0?e:void 0},diff:function(m,c){typeof m!="object"&&(m={}),typeof c!="object"&&(c={});var a=Object.keys(m).concat(Object.keys(c)).reduce(function(e,t){return S(m[t],c[t])||(e[t]=c[t]===void 0?null:c[t]),e},{});return Object.keys(a).length>0?a:void 0},transform:function(m,c,a){if(typeof m!="object")return c;if(typeof c=="object"){if(!a)return c;var e=Object.keys(c).reduce(function(t,l){return m[l]===void 0&&(t[l]=c[l]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(m){return new p(m)},length:function(m){return typeof m.delete=="number"?m.delete:typeof m.retain=="number"?m.retain:typeof m.insert=="string"?m.insert.length:1}};function p(m){this.ops=m,this.index=0,this.offset=0}p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(m){m||(m=1/0);var c=this.ops[this.index];if(c){var a=this.offset,e=k.length(c);if(m>=e-a?(m=e-a,this.index+=1,this.offset=0):this.offset+=m,typeof c.delete=="number")return{delete:m};var t={};return c.attributes&&(t.attributes=c.attributes),typeof c.retain=="number"?t.retain=m:typeof c.insert=="string"?t.insert=c.insert.substr(a,m):t.insert=c.insert,t}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?k.length(this.ops[this.index])-this.offset:1/0},p.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},p.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var m=this.offset,c=this.index,a=this.next(),e=this.ops.slice(this.index);return this.offset=m,this.index=c,[a].concat(e)}else return[]},M.exports=k},function(M,O){var d=function(){"use strict";function S(o,u){return u!=null&&o instanceof u}var _;try{_=Map}catch(o){_=function(){}}var k;try{k=Set}catch(o){k=function(){}}var p;try{p=Promise}catch(o){p=function(){}}function m(o,u,r,i,f){typeof u=="object"&&(r=u.depth,i=u.prototype,f=u.includeNonEnumerable,u=u.circular);var n=[],s=[],A=typeof ft!="undefined";typeof u=="undefined"&&(u=!0),typeof r=="undefined"&&(r=1/0);function g(b,N){if(b===null)return null;if(N===0)return b;var y,h;if(typeof b!="object")return b;if(S(b,_))y=new _;else if(S(b,k))y=new k;else if(S(b,p))y=new p(function(R,E){b.then(function(P){R(g(P,N-1))},function(P){E(g(P,N-1))})});else if(m.__isArray(b))y=[];else if(m.__isRegExp(b))y=new RegExp(b.source,l(b)),b.lastIndex&&(y.lastIndex=b.lastIndex);else if(m.__isDate(b))y=new Date(b.getTime());else{if(A&&ft.isBuffer(b))return ft.allocUnsafe?y=ft.allocUnsafe(b.length):y=new ft(b.length),b.copy(y),y;S(b,Error)?y=Object.create(b):typeof i=="undefined"?(h=Object.getPrototypeOf(b),y=Object.create(h)):(y=Object.create(i),h=i)}if(u){var v=n.indexOf(b);if(v!=-1)return s[v];n.push(b),s.push(y)}S(b,_)&&b.forEach(function(R,E){var P=g(E,N-1),L=g(R,N-1);y.set(P,L)}),S(b,k)&&b.forEach(function(R){var E=g(R,N-1);y.add(E)});for(var w in b){var T;h&&(T=Object.getOwnPropertyDescriptor(h,w)),!(T&&T.set==null)&&(y[w]=g(b[w],N-1))}if(Object.getOwnPropertySymbols)for(var q=Object.getOwnPropertySymbols(b),w=0;w<q.length;w++){var B=q[w],C=Object.getOwnPropertyDescriptor(b,B);C&&!C.enumerable&&!f||(y[B]=g(b[B],N-1),C.enumerable||Object.defineProperty(y,B,{enumerable:!1}))}if(f)for(var W=Object.getOwnPropertyNames(b),w=0;w<W.length;w++){var j=W[w],C=Object.getOwnPropertyDescriptor(b,j);C&&C.enumerable||(y[j]=g(b[j],N-1),Object.defineProperty(y,j,{enumerable:!1}))}return y}return g(o,r)}m.clonePrototype=function(u){if(u===null)return null;var r=function(){};return r.prototype=u,new r};function c(o){return Object.prototype.toString.call(o)}m.__objToStr=c;function a(o){return typeof o=="object"&&c(o)==="[object Date]"}m.__isDate=a;function e(o){return typeof o=="object"&&c(o)==="[object Array]"}m.__isArray=e;function t(o){return typeof o=="object"&&c(o)==="[object RegExp]"}m.__isRegExp=t;function l(o){var u="";return o.global&&(u+="g"),o.ignoreCase&&(u+="i"),o.multiline&&(u+="m"),u}return m.__getRegExpFlags=l,m}();typeof M=="object"&&M.exports&&(M.exports=d)},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function y(h,v){var w=[],T=!0,q=!1,B=void 0;try{for(var C=h[Symbol.iterator](),W;!(T=(W=C.next()).done)&&(w.push(W.value),!(v&&w.length===v));T=!0);}catch(j){q=!0,B=j}finally{try{!T&&C.return&&C.return()}finally{if(q)throw B}}return w}return function(h,v){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return y(h,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function y(h,v){for(var w=0;w<v.length;w++){var T=v[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(h,T.key,T)}}return function(h,v,w){return v&&y(h.prototype,v),w&&y(h,w),h}}(),k=function y(h,v,w){h===null&&(h=Function.prototype);var T=Object.getOwnPropertyDescriptor(h,v);if(T===void 0){var q=Object.getPrototypeOf(h);return q===null?void 0:y(q,v,w)}else{if("value"in T)return T.value;var B=T.get;return B===void 0?void 0:B.call(w)}},p=d(0),m=n(p),c=d(8),a=n(c),e=d(4),t=n(e),l=d(16),o=n(l),u=d(13),r=n(u),i=d(25),f=n(i);function n(y){return y&&y.__esModule?y:{default:y}}function s(y,h){if(!(y instanceof h))throw new TypeError("Cannot call a class as a function")}function A(y,h){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:y}function g(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);y.prototype=Object.create(h&&h.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(y,h):y.__proto__=h)}function b(y){return y instanceof t.default||y instanceof e.BlockEmbed}var N=function(y){g(h,y);function h(v,w){s(this,h);var T=A(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,v));return T.emitter=w.emitter,Array.isArray(w.whitelist)&&(T.whitelist=w.whitelist.reduce(function(q,B){return q[B]=!0,q},{})),T.domNode.addEventListener("DOMNodeInserted",function(){}),T.optimize(),T.enable(),T}return _(h,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(w,T){var q=this.line(w),B=S(q,2),C=B[0],W=B[1],j=this.line(w+T),R=S(j,1),E=R[0];if(k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"deleteAt",this).call(this,w,T),E!=null&&C!==E&&W>0){if(C instanceof e.BlockEmbed||E instanceof e.BlockEmbed){this.optimize();return}if(C instanceof r.default){var P=C.newlineIndex(C.length(),!0);if(P>-1&&(C=C.split(P+1),C===E)){this.optimize();return}}else if(E instanceof r.default){var L=E.newlineIndex(0);L>-1&&E.split(L+1)}var F=E.children.head instanceof o.default?null:E.children.head;C.moveChildren(E,F),C.remove()}this.optimize()}},{key:"enable",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",w)}},{key:"formatAt",value:function(w,T,q,B){this.whitelist!=null&&!this.whitelist[q]||(k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,w,T,q,B),this.optimize())}},{key:"insertAt",value:function(w,T,q){if(!(q!=null&&this.whitelist!=null&&!this.whitelist[T])){if(w>=this.length())if(q==null||m.default.query(T,m.default.Scope.BLOCK)==null){var B=m.default.create(this.statics.defaultChild);this.appendChild(B),q==null&&T.endsWith(`
  22. `)&&(T=T.slice(0,-1)),B.insertAt(0,T,q)}else{var C=m.default.create(T,q);this.appendChild(C)}else k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertAt",this).call(this,w,T,q);this.optimize()}}},{key:"insertBefore",value:function(w,T){if(w.statics.scope===m.default.Scope.INLINE_BLOT){var q=m.default.create(this.statics.defaultChild);q.appendChild(w),w=q}k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertBefore",this).call(this,w,T)}},{key:"leaf",value:function(w){return this.path(w).pop()||[null,-1]}},{key:"line",value:function(w){return w===this.length()?this.line(w-1):this.descendant(b,w)}},{key:"lines",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,q=function B(C,W,j){var R=[],E=j;return C.children.forEachAt(W,j,function(P,L,F){b(P)?R.push(P):P instanceof m.default.Container&&(R=R.concat(B(P,L,E))),E-=F}),R};return q(this,w,T)}},{key:"optimize",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,w,T),w.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,w,T))}},{key:"path",value:function(w){return k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"path",this).call(this,w).slice(1)}},{key:"update",value:function(w){if(this.batch!==!0){var T=a.default.sources.USER;typeof w=="string"&&(T=w),Array.isArray(w)||(w=this.observer.takeRecords()),w.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,T,w),k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"update",this).call(this,w.concat([])),w.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,T,w)}}}]),h}(m.default.Scroll);N.blotName="scroll",N.className="ql-editor",N.tagName="DIV",N.defaultChild="block",N.allowedChildren=[t.default,e.BlockEmbed,f.default],O.default=N},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},_=function(){function x(I,U){var H=[],V=!0,Y=!1,X=void 0;try{for(var Q=I[Symbol.iterator](),nt;!(V=(nt=Q.next()).done)&&(H.push(nt.value),!(U&&H.length===U));V=!0);}catch(rt){Y=!0,X=rt}finally{try{!V&&Q.return&&Q.return()}finally{if(Y)throw X}}return H}return function(I,U){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return x(I,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function x(I,U){for(var H=0;H<U.length;H++){var V=U[H];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(I,V.key,V)}}return function(I,U,H){return U&&x(I.prototype,U),H&&x(I,H),I}}(),p=d(21),m=y(p),c=d(11),a=y(c),e=d(3),t=y(e),l=d(2),o=y(l),u=d(20),r=y(u),i=d(0),f=y(i),n=d(5),s=y(n),A=d(10),g=y(A),b=d(9),N=y(b);function y(x){return x&&x.__esModule?x:{default:x}}function h(x,I,U){return I in x?Object.defineProperty(x,I,{value:U,enumerable:!0,configurable:!0,writable:!0}):x[I]=U,x}function v(x,I){if(!(x instanceof I))throw new TypeError("Cannot call a class as a function")}function w(x,I){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:x}function T(x,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);x.prototype=Object.create(I&&I.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(x,I):x.__proto__=I)}var q=(0,g.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(x){T(I,x),k(I,null,[{key:"match",value:function(H,V){return V=D(V),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Y){return!!V[Y]!==H[Y]&&V[Y]!==null})?!1:V.key===(H.which||H.keyCode)}}]);function I(U,H){v(this,I);var V=w(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,U,H));return V.bindings={},Object.keys(V.options.bindings).forEach(function(Y){Y==="list autofill"&&U.scroll.whitelist!=null&&!U.scroll.whitelist.list||V.options.bindings[Y]&&V.addBinding(V.options.bindings[Y])}),V.addBinding({key:I.keys.ENTER,shiftKey:null},P),V.addBinding({key:I.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(V.addBinding({key:I.keys.BACKSPACE},{collapsed:!0},j),V.addBinding({key:I.keys.DELETE},{collapsed:!0},R)):(V.addBinding({key:I.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},j),V.addBinding({key:I.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),V.addBinding({key:I.keys.BACKSPACE},{collapsed:!1},E),V.addBinding({key:I.keys.DELETE},{collapsed:!1},E),V.addBinding({key:I.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},j),V.listen(),V}return k(I,[{key:"addBinding",value:function(H){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},X=D(H);if(X==null||X.key==null)return q.warn("Attempted to add invalid keyboard binding",X);typeof V=="function"&&(V={handler:V}),typeof Y=="function"&&(Y={handler:Y}),X=(0,t.default)(X,V,Y),this.bindings[X.key]=this.bindings[X.key]||[],this.bindings[X.key].push(X)}},{key:"listen",value:function(){var H=this;this.quill.root.addEventListener("keydown",function(V){if(!V.defaultPrevented){var Y=V.which||V.keyCode,X=(H.bindings[Y]||[]).filter(function(ot){return I.match(V,ot)});if(X.length!==0){var Q=H.quill.getSelection();if(!(Q==null||!H.quill.hasFocus())){var nt=H.quill.getLine(Q.index),rt=_(nt,2),ut=rt[0],lt=rt[1],K=H.quill.getLeaf(Q.index),z=_(K,2),$=z[0],G=z[1],Z=Q.length===0?[$,G]:H.quill.getLeaf(Q.index+Q.length),J=_(Z,2),tt=J[0],et=J[1],st=$ instanceof f.default.Text?$.value().slice(0,G):"",ct=tt instanceof f.default.Text?tt.value().slice(et):"",it={collapsed:Q.length===0,empty:Q.length===0&&ut.length()<=1,format:H.quill.getFormat(Q),offset:lt,prefix:st,suffix:ct},pt=X.some(function(ot){if(ot.collapsed!=null&&ot.collapsed!==it.collapsed||ot.empty!=null&&ot.empty!==it.empty||ot.offset!=null&&ot.offset!==it.offset)return!1;if(Array.isArray(ot.format)){if(ot.format.every(function(ht){return it.format[ht]==null}))return!1}else if(S(ot.format)==="object"&&!Object.keys(ot.format).every(function(ht){return ot.format[ht]===!0?it.format[ht]!=null:ot.format[ht]===!1?it.format[ht]==null:(0,a.default)(ot.format[ht],it.format[ht])}))return!1;return ot.prefix!=null&&!ot.prefix.test(it.prefix)||ot.suffix!=null&&!ot.suffix.test(it.suffix)?!1:ot.handler.call(H,Q,it)!==!0});pt&&V.preventDefault()}}}})}}]),I}(N.default);C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(I,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","+1",s.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(I,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","-1",s.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(I,U){U.format.indent!=null?this.quill.format("indent","-1",s.default.sources.USER):U.format.list!=null&&this.quill.format("list",!1,s.default.sources.USER)}},"indent code-block":L(!0),"outdent code-block":L(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(I){this.quill.deleteText(I.index-1,1,s.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(I){this.quill.history.cutoff();var U=new o.default().retain(I.index).delete(I.length).insert(" ");this.quill.updateContents(U,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index+1,s.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(I,U){this.quill.format("list",!1,s.default.sources.USER),U.format.indent&&this.quill.format("indent",!1,s.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(I){var U=this.quill.getLine(I.index),H=_(U,2),V=H[0],Y=H[1],X=(0,t.default)({},V.formats(),{list:"checked"}),Q=new o.default().retain(I.index).insert(`
  23. `,X).retain(V.length()-Y-1).retain(1,{list:"unchecked"});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(I.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(I,U){var H=this.quill.getLine(I.index),V=_(H,2),Y=V[0],X=V[1],Q=new o.default().retain(I.index).insert(`
  24. `,U.format).retain(Y.length()-X-1).retain(1,{header:null});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(I.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(I,U){var H=U.prefix.length,V=this.quill.getLine(I.index),Y=_(V,2),X=Y[0],Q=Y[1];if(Q>H)return!0;var nt=void 0;switch(U.prefix.trim()){case"[]":case"[ ]":nt="unchecked";break;case"[x]":nt="checked";break;case"-":case"*":nt="bullet";break;default:nt="ordered"}this.quill.insertText(I.index," ",s.default.sources.USER),this.quill.history.cutoff();var rt=new o.default().retain(I.index-Q).delete(H+1).retain(X.length()-2-Q).retain(1,{list:nt});this.quill.updateContents(rt,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index-H,s.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(I){var U=this.quill.getLine(I.index),H=_(U,2),V=H[0],Y=H[1],X=new o.default().retain(I.index+V.length()-Y-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(X,s.default.sources.USER)}},"embed left":W(C.keys.LEFT,!1),"embed left shift":W(C.keys.LEFT,!0),"embed right":W(C.keys.RIGHT,!1),"embed right shift":W(C.keys.RIGHT,!0)}};function W(x,I){var U,H=x===C.keys.LEFT?"prefix":"suffix";return U={key:x,shiftKey:I,altKey:null},h(U,H,/^$/),h(U,"handler",function(Y){var X=Y.index;x===C.keys.RIGHT&&(X+=Y.length+1);var Q=this.quill.getLeaf(X),nt=_(Q,1),rt=nt[0];return rt instanceof f.default.Embed?(x===C.keys.LEFT?I?this.quill.setSelection(Y.index-1,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index-1,s.default.sources.USER):I?this.quill.setSelection(Y.index,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index+Y.length+1,s.default.sources.USER),!1):!0}),U}function j(x,I){if(!(x.index===0||this.quill.getLength()<=1)){var U=this.quill.getLine(x.index),H=_(U,1),V=H[0],Y={};if(I.offset===0){var X=this.quill.getLine(x.index-1),Q=_(X,1),nt=Q[0];if(nt!=null&&nt.length()>1){var rt=V.formats(),ut=this.quill.getFormat(x.index-1,1);Y=r.default.attributes.diff(rt,ut)||{}}}var lt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(I.prefix)?2:1;this.quill.deleteText(x.index-lt,lt,s.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(x.index-lt,lt,Y,s.default.sources.USER),this.quill.focus()}}function R(x,I){var U=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(I.suffix)?2:1;if(!(x.index>=this.quill.getLength()-U)){var H={},V=0,Y=this.quill.getLine(x.index),X=_(Y,1),Q=X[0];if(I.offset>=Q.length()-1){var nt=this.quill.getLine(x.index+1),rt=_(nt,1),ut=rt[0];if(ut){var lt=Q.formats(),K=this.quill.getFormat(x.index,1);H=r.default.attributes.diff(lt,K)||{},V=ut.length()}}this.quill.deleteText(x.index,U,s.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(x.index+V-1,U,H,s.default.sources.USER)}}function E(x){var I=this.quill.getLines(x),U={};if(I.length>1){var H=I[0].formats(),V=I[I.length-1].formats();U=r.default.attributes.diff(V,H)||{}}this.quill.deleteText(x,s.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(x.index,1,U,s.default.sources.USER),this.quill.setSelection(x.index,s.default.sources.SILENT),this.quill.focus()}function P(x,I){var U=this;x.length>0&&this.quill.scroll.deleteAt(x.index,x.length);var H=Object.keys(I.format).reduce(function(V,Y){return f.default.query(Y,f.default.Scope.BLOCK)&&!Array.isArray(I.format[Y])&&(V[Y]=I.format[Y]),V},{});this.quill.insertText(x.index,`
  25. `,H,s.default.sources.USER),this.quill.setSelection(x.index+1,s.default.sources.SILENT),this.quill.focus(),Object.keys(I.format).forEach(function(V){H[V]==null&&(Array.isArray(I.format[V])||V!=="link"&&U.quill.format(V,I.format[V],s.default.sources.USER))})}function L(x){return{key:C.keys.TAB,shiftKey:!x,format:{"code-block":!0},handler:function(U){var H=f.default.query("code-block"),V=U.index,Y=U.length,X=this.quill.scroll.descendant(H,V),Q=_(X,2),nt=Q[0],rt=Q[1];if(nt!=null){var ut=this.quill.getIndex(nt),lt=nt.newlineIndex(rt,!0)+1,K=nt.newlineIndex(ut+rt+Y),z=nt.domNode.textContent.slice(lt,K).split(`
  26. `);rt=0,z.forEach(function($,G){x?(nt.insertAt(lt+rt,H.TAB),rt+=H.TAB.length,G===0?V+=H.TAB.length:Y+=H.TAB.length):$.startsWith(H.TAB)&&(nt.deleteAt(lt+rt,H.TAB.length),rt-=H.TAB.length,G===0?V-=H.TAB.length:Y-=H.TAB.length),rt+=$.length+1}),this.quill.update(s.default.sources.USER),this.quill.setSelection(V,Y,s.default.sources.SILENT)}}}}function F(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(U,H){this.quill.format(x,!H.format[x],s.default.sources.USER)}}}function D(x){if(typeof x=="string"||typeof x=="number")return D({key:x});if((typeof x=="undefined"?"undefined":S(x))==="object"&&(x=(0,m.default)(x,!1)),typeof x.key=="string")if(C.keys[x.key.toUpperCase()]!=null)x.key=C.keys[x.key.toUpperCase()];else if(x.key.length===1)x.key=x.key.toUpperCase().charCodeAt(0);else return null;return x.shortKey&&(x[B]=x.shortKey,delete x.shortKey),x}O.default=C,O.SHORTKEY=B},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function r(i,f){var n=[],s=!0,A=!1,g=void 0;try{for(var b=i[Symbol.iterator](),N;!(s=(N=b.next()).done)&&(n.push(N.value),!(f&&n.length===f));s=!0);}catch(y){A=!0,g=y}finally{try{!s&&b.return&&b.return()}finally{if(A)throw g}}return n}return function(i,f){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},k=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),p=d(0),m=e(p),c=d(7),a=e(c);function e(r){return r&&r.__esModule?r:{default:r}}function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function l(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function o(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var u=function(r){o(i,r),k(i,null,[{key:"value",value:function(){}}]);function i(f,n){t(this,i);var s=l(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return s.selection=n,s.textNode=document.createTextNode(i.CONTENTS),s.domNode.appendChild(s.textNode),s._length=0,s}return k(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,s){if(this._length!==0)return _(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,s);for(var A=this,g=0;A!=null&&A.statics.scope!==m.default.Scope.BLOCK_BLOT;)g+=A.offset(A.parent),A=A.parent;A!=null&&(this._length=i.CONTENTS.length,A.optimize(),A.formatAt(g,i.CONTENTS.length,n,s),this._length=0)}},{key:"index",value:function(n,s){return n===this.textNode?0:_(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){_(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,s=this.selection.getNativeRange(),A=void 0,g=void 0,b=void 0;if(s!=null&&s.start.node===n&&s.end.node===n){var N=[n,s.start.offset,s.end.offset];A=N[0],g=N[1],b=N[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var y=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof a.default?(A=this.next.domNode,this.next.insertAt(0,y),this.textNode.data=i.CONTENTS):(this.textNode.data=y,this.parent.insertBefore(m.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),g!=null){var h=[g,b].map(function(w){return Math.max(0,Math.min(A.data.length,w-1))}),v=S(h,2);return g=v[0],b=v[1],{startNode:A,startOffset:g,endNode:A,endOffset:b}}}}},{key:"update",value:function(n,s){var A=this;if(n.some(function(b){return b.type==="characterData"&&b.target===A.textNode})){var g=this.restore();g&&(s.range=g)}}},{key:"value",value:function(){return""}}]),i}(m.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\uFEFF",O.default=u},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(0),_=m(S),k=d(4),p=m(k);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function a(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(){return c(this,o),a(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return o}(_.default.Container);t.allowedChildren=[p.default,k.BlockEmbed,t],O.default=t},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.ColorStyle=O.ColorClass=O.ColorAttributor=void 0;var S=function(){function u(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&u(r.prototype,i),f&&u(r,f),r}}(),_=function u(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:u(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},k=d(0),p=m(k);function m(u){return u&&u.__esModule?u:{default:u}}function c(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function a(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function e(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var t=function(u){e(r,u);function r(){return c(this,r),a(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return S(r,[{key:"value",value:function(f){var n=_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,f);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(s){return("00"+parseInt(s).toString(16)).slice(-2)}).join("")):n}}]),r}(p.default.Attributor.Style),l=new p.default.Attributor.Class("color","ql-color",{scope:p.default.Scope.INLINE}),o=new t("color","color",{scope:p.default.Scope.INLINE});O.ColorAttributor=t,O.ColorClass=l,O.ColorStyle=o},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.sanitize=O.default=void 0;var S=function(){function o(u,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,r,i){return r&&o(u.prototype,r),i&&o(u,i),u}}(),_=function o(u,r,i){u===null&&(u=Function.prototype);var f=Object.getOwnPropertyDescriptor(u,r);if(f===void 0){var n=Object.getPrototypeOf(u);return n===null?void 0:o(n,r,i)}else{if("value"in f)return f.value;var s=f.get;return s===void 0?void 0:s.call(i)}},k=d(6),p=m(k);function m(o){return o&&o.__esModule?o:{default:o}}function c(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}function a(o,u){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:o}function e(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(o,u):o.__proto__=u)}var t=function(o){e(u,o);function u(){return c(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return S(u,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return _(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"format",this).call(this,i,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(i){var f=_(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,i);return i=this.sanitize(i),f.setAttribute("href",i),f.setAttribute("rel","noopener noreferrer"),f.setAttribute("target","_blank"),f}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return l(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),u}(p.default);t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function l(o,u){var r=document.createElement("a");r.href=o;var i=r.href.slice(0,r.href.indexOf(":"));return u.indexOf(i)>-1}O.default=t,O.sanitize=l},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_=function(){function u(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&u(r.prototype,i),f&&u(r,f),r}}(),k=d(23),p=a(k),m=d(107),c=a(m);function a(u){return u&&u.__esModule?u:{default:u}}function e(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}var t=0;function l(u,r){u.setAttribute(r,u.getAttribute(r)!=="true")}var o=function(){function u(r){var i=this;e(this,u),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(f){switch(f.keyCode){case p.default.keys.ENTER:i.togglePicker();break;case p.default.keys.ESCAPE:i.escape(),f.preventDefault();break;default:}}),this.select.addEventListener("change",this.update.bind(this))}return _(u,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),l(this.label,"aria-expanded"),l(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var f=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){f.selectItem(n,!0)}),n.addEventListener("keydown",function(s){switch(s.keyCode){case p.default.keys.ENTER:f.selectItem(n,!0),s.preventDefault();break;case p.default.keys.ESCAPE:f.escape(),s.preventDefault();break;default:}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=c.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,f=document.createElement("span");f.classList.add("ql-picker-options"),f.setAttribute("aria-hidden","true"),f.tabIndex="-1",f.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",f.id),this.options=f,[].slice.call(this.select.options).forEach(function(n){var s=i.buildItem(n);f.appendChild(s),n.selected===!0&&i.selectItem(s)}),this.container.appendChild(f)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(f){i.container.setAttribute(f.name,f.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(i!==n&&(n!=null&&n.classList.remove("ql-selected"),i!=null&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),f))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":S(Event))==="object"){var s=document.createEvent("Event");s.initEvent("change",!0,!0),this.select.dispatchEvent(s)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(f)}else this.selectItem(null);var n=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),u}();O.default=o},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(0),_=q(S),k=d(5),p=q(k),m=d(4),c=q(m),a=d(16),e=q(a),t=d(25),l=q(t),o=d(24),u=q(o),r=d(35),i=q(r),f=d(6),n=q(f),s=d(22),A=q(s),g=d(7),b=q(g),N=d(55),y=q(N),h=d(42),v=q(h),w=d(23),T=q(w);function q(B){return B&&B.__esModule?B:{default:B}}p.default.register({"blots/block":c.default,"blots/block/embed":m.BlockEmbed,"blots/break":e.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":A.default,"blots/text":b.default,"modules/clipboard":y.default,"modules/history":v.default,"modules/keyboard":T.default}),_.default.register(c.default,e.default,u.default,n.default,A.default,b.default),O.default=p.default},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(1),_=function(){function k(p){this.domNode=p,this.domNode[S.DATA_KEY]={blot:this}}return Object.defineProperty(k.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),k.create=function(p){if(this.tagName==null)throw new S.ParchmentError("Blot definition missing tagName");var m;return Array.isArray(this.tagName)?(typeof p=="string"&&(p=p.toUpperCase(),parseInt(p).toString()===p&&(p=parseInt(p))),typeof p=="number"?m=document.createElement(this.tagName[p-1]):this.tagName.indexOf(p)>-1?m=document.createElement(p):m=document.createElement(this.tagName[0])):m=document.createElement(this.tagName),this.className&&m.classList.add(this.className),m},k.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},k.prototype.clone=function(){var p=this.domNode.cloneNode(!1);return S.create(p)},k.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[S.DATA_KEY]},k.prototype.deleteAt=function(p,m){var c=this.isolate(p,m);c.remove()},k.prototype.formatAt=function(p,m,c,a){var e=this.isolate(p,m);if(S.query(c,S.Scope.BLOT)!=null&&a)e.wrap(c,a);else if(S.query(c,S.Scope.ATTRIBUTE)!=null){var t=S.create(this.statics.scope);e.wrap(t),t.format(c,a)}},k.prototype.insertAt=function(p,m,c){var a=c==null?S.create("text",m):S.create(m,c),e=this.split(p);this.parent.insertBefore(a,e)},k.prototype.insertInto=function(p,m){m===void 0&&(m=null),this.parent!=null&&this.parent.children.remove(this);var c=null;p.children.insertBefore(this,m),m!=null&&(c=m.domNode),(this.domNode.parentNode!=p.domNode||this.domNode.nextSibling!=c)&&p.domNode.insertBefore(this.domNode,c),this.parent=p,this.attach()},k.prototype.isolate=function(p,m){var c=this.split(p);return c.split(m),c},k.prototype.length=function(){return 1},k.prototype.offset=function(p){return p===void 0&&(p=this.parent),this.parent==null||this==p?0:this.parent.children.offset(this)+this.parent.offset(p)},k.prototype.optimize=function(p){this.domNode[S.DATA_KEY]!=null&&delete this.domNode[S.DATA_KEY].mutations},k.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},k.prototype.replace=function(p){p.parent!=null&&(p.parent.insertBefore(this,p.next),p.remove())},k.prototype.replaceWith=function(p,m){var c=typeof p=="string"?S.create(p,m):p;return c.replace(this),c},k.prototype.split=function(p,m){return p===0?this:this.next},k.prototype.update=function(p,m){},k.prototype.wrap=function(p,m){var c=typeof p=="string"?S.create(p,m):p;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},k.blotName="abstract",k}();O.default=_},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(12),_=d(32),k=d(33),p=d(1),m=function(){function c(a){this.attributes={},this.domNode=a,this.build()}return c.prototype.attribute=function(a,e){e?a.add(this.domNode,e)&&(a.value(this.domNode)!=null?this.attributes[a.attrName]=a:delete this.attributes[a.attrName]):(a.remove(this.domNode),delete this.attributes[a.attrName])},c.prototype.build=function(){var a=this;this.attributes={};var e=S.default.keys(this.domNode),t=_.default.keys(this.domNode),l=k.default.keys(this.domNode);e.concat(t).concat(l).forEach(function(o){var u=p.query(o,p.Scope.ATTRIBUTE);u instanceof S.default&&(a.attributes[u.attrName]=u)})},c.prototype.copy=function(a){var e=this;Object.keys(this.attributes).forEach(function(t){var l=e.attributes[t].value(e.domNode);a.format(t,l)})},c.prototype.move=function(a){var e=this;this.copy(a),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},c.prototype.values=function(){var a=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=a.attributes[t].value(a.domNode),e},{})},c}();O.default=m},function(M,O,d){"use strict";var S=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return function(c,a){m(c,a);function e(){this.constructor=c}c.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(O,"__esModule",{value:!0});var _=d(12);function k(m,c){var a=m.getAttribute("class")||"";return a.split(/\s+/).filter(function(e){return e.indexOf(c+"-")===0})}var p=function(m){S(c,m);function c(){return m!==null&&m.apply(this,arguments)||this}return c.keys=function(a){return(a.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},c.prototype.add=function(a,e){return this.canAdd(a,e)?(this.remove(a),a.classList.add(this.keyName+"-"+e),!0):!1},c.prototype.remove=function(a){var e=k(a,this.keyName);e.forEach(function(t){a.classList.remove(t)}),a.classList.length===0&&a.removeAttribute("class")},c.prototype.value=function(a){var e=k(a,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(a,t)?t:""},c}(_.default);O.default=p},function(M,O,d){"use strict";var S=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return function(c,a){m(c,a);function e(){this.constructor=c}c.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(O,"__esModule",{value:!0});var _=d(12);function k(m){var c=m.split("-"),a=c.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return c[0]+a}var p=function(m){S(c,m);function c(){return m!==null&&m.apply(this,arguments)||this}return c.keys=function(a){return(a.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},c.prototype.add=function(a,e){return this.canAdd(a,e)?(a.style[k(this.keyName)]=e,!0):!1},c.prototype.remove=function(a){a.style[k(this.keyName)]="",a.getAttribute("style")||a.removeAttribute("style")},c.prototype.value=function(a){var e=a.style[k(this.keyName)];return this.canAdd(a,e)?e:""},c}(_.default);O.default=p},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function p(m,c){for(var a=0;a<c.length;a++){var e=c[a];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(m,e.key,e)}}return function(m,c,a){return c&&p(m.prototype,c),a&&p(m,a),m}}();function _(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}var k=function(){function p(m,c){_(this,p),this.quill=m,this.options=c,this.modules={}}return S(p,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(a){c.modules[a]==null&&c.addModule(a)})}},{key:"addModule",value:function(c){var a=this.quill.constructor.import("modules/"+c);return this.modules[c]=new a(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),p}();k.DEFAULTS={modules:{}},k.themes={default:k},O.default=k},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),_=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},k=d(0),p=a(k),m=d(7),c=a(m);function a(r){return r&&r.__esModule?r:{default:r}}function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function t(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function l(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var o="\uFEFF",u=function(r){l(i,r);function i(f){e(this,i);var n=t(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(s){n.contentNode.appendChild(s)}),n.leftGuard=document.createTextNode(o),n.rightGuard=document.createTextNode(o),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return S(i,[{key:"index",value:function(n,s){return n===this.leftGuard?0:n===this.rightGuard?1:_(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"restore",value:function(n){var s=void 0,A=void 0,g=n.data.split(o).join("");if(n===this.leftGuard)if(this.prev instanceof c.default){var b=this.prev.length();this.prev.insertAt(b,g),s={startNode:this.prev.domNode,startOffset:b+g.length}}else A=document.createTextNode(g),this.parent.insertBefore(p.default.create(A),this),s={startNode:A,startOffset:g.length};else n===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,g),s={startNode:this.next.domNode,startOffset:g.length}):(A=document.createTextNode(g),this.parent.insertBefore(p.default.create(A),this.next),s={startNode:A,startOffset:g.length}));return n.data=o,s}},{key:"update",value:function(n,s){var A=this;n.forEach(function(g){if(g.type==="characterData"&&(g.target===A.leftGuard||g.target===A.rightGuard)){var b=A.restore(g.target);b&&(s.range=b)}})}}]),i}(p.default.Embed);O.default=u},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.AlignStyle=O.AlignClass=O.AlignAttribute=void 0;var S=d(0),_=k(S);function k(e){return e&&e.__esModule?e:{default:e}}var p={scope:_.default.Scope.BLOCK,whitelist:["right","center","justify"]},m=new _.default.Attributor.Attribute("align","align",p),c=new _.default.Attributor.Class("align","ql-align",p),a=new _.default.Attributor.Style("align","text-align",p);O.AlignAttribute=m,O.AlignClass=c,O.AlignStyle=a},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.BackgroundStyle=O.BackgroundClass=void 0;var S=d(0),_=p(S),k=d(26);function p(a){return a&&a.__esModule?a:{default:a}}var m=new _.default.Attributor.Class("background","ql-bg",{scope:_.default.Scope.INLINE}),c=new k.ColorAttributor("background","background-color",{scope:_.default.Scope.INLINE});O.BackgroundClass=m,O.BackgroundStyle=c},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.DirectionStyle=O.DirectionClass=O.DirectionAttribute=void 0;var S=d(0),_=k(S);function k(e){return e&&e.__esModule?e:{default:e}}var p={scope:_.default.Scope.BLOCK,whitelist:["rtl"]},m=new _.default.Attributor.Attribute("direction","dir",p),c=new _.default.Attributor.Class("direction","ql-direction",p),a=new _.default.Attributor.Style("direction","direction",p);O.DirectionAttribute=m,O.DirectionClass=c,O.DirectionStyle=a},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.FontClass=O.FontStyle=void 0;var S=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),_=function r(i,f,n){i===null&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(s===void 0){var A=Object.getPrototypeOf(i);return A===null?void 0:r(A,f,n)}else{if("value"in s)return s.value;var g=s.get;return g===void 0?void 0:g.call(n)}},k=d(0),p=m(k);function m(r){return r&&r.__esModule?r:{default:r}}function c(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function a(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function e(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var t={scope:p.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new p.default.Attributor.Class("font","ql-font",t),o=function(r){e(i,r);function i(){return c(this,i),a(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return S(i,[{key:"value",value:function(n){return _(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(p.default.Attributor.Style),u=new o("font","font-family",t);O.FontStyle=u,O.FontClass=l},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SizeStyle=O.SizeClass=void 0;var S=d(0),_=k(S);function k(c){return c&&c.__esModule?c:{default:c}}var p=new _.default.Attributor.Class("size","ql-size",{scope:_.default.Scope.INLINE,whitelist:["small","large","huge"]}),m=new _.default.Attributor.Style("size","font-size",{scope:_.default.Scope.INLINE,whitelist:["10px","18px","32px"]});O.SizeClass=p,O.SizeStyle=m},function(M,O,d){"use strict";M.exports={align:{"":d(76),center:d(77),right:d(78),justify:d(79)},background:d(80),blockquote:d(81),bold:d(82),clean:d(83),code:d(58),"code-block":d(58),color:d(84),direction:{"":d(85),rtl:d(86)},float:{center:d(87),full:d(88),left:d(89),right:d(90)},formula:d(91),header:{1:d(92),2:d(93)},italic:d(94),image:d(95),indent:{"+1":d(96),"-1":d(97)},link:d(98),list:{ordered:d(99),bullet:d(100),check:d(101)},script:{sub:d(102),super:d(103)},strike:d(104),underline:d(105),video:d(106)}},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.getLastChangeIndex=O.default=void 0;var S=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),_=d(0),k=e(_),p=d(5),m=e(p),c=d(9),a=e(c);function e(f){return f&&f.__esModule?f:{default:f}}function t(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function l(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function o(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var u=function(f){o(n,f);function n(s,A){t(this,n);var g=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,s,A));return g.lastRecorded=0,g.ignoreChange=!1,g.clear(),g.quill.on(m.default.events.EDITOR_CHANGE,function(b,N,y,h){b!==m.default.events.TEXT_CHANGE||g.ignoreChange||(!g.options.userOnly||h===m.default.sources.USER?g.record(N,y):g.transform(N))}),g.quill.keyboard.addBinding({key:"Z",shortKey:!0},g.undo.bind(g)),g.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},g.redo.bind(g)),/Win/i.test(navigator.platform)&&g.quill.keyboard.addBinding({key:"Y",shortKey:!0},g.redo.bind(g)),g}return S(n,[{key:"change",value:function(A,g){if(this.stack[A].length!==0){var b=this.stack[A].pop();this.stack[g].push(b),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(b[A],m.default.sources.USER),this.ignoreChange=!1;var N=i(b[A]);this.quill.setSelection(N)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,g){if(A.ops.length!==0){this.stack.redo=[];var b=this.quill.getContents().diff(g),N=Date.now();if(this.lastRecorded+this.options.delay>N&&this.stack.undo.length>0){var y=this.stack.undo.pop();b=b.compose(y.undo),A=y.redo.compose(A)}else this.lastRecorded=N;this.stack.undo.push({redo:A,undo:b}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(A){this.stack.undo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)}),this.stack.redo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(a.default);u.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(f){var n=f.ops[f.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
  27. `):n.attributes!=null?Object.keys(n.attributes).some(function(s){return k.default.query(s,k.default.Scope.BLOCK)!=null}):!1}function i(f){var n=f.reduce(function(A,g){return A+=g.delete||0,A},0),s=f.length()-n;return r(f)&&(s-=1),s}O.default=u,O.getLastChangeIndex=i},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var S=function(){function P(L,F){for(var D=0;D<F.length;D++){var x=F[D];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(L,x.key,x)}}return function(L,F,D){return F&&P(L.prototype,F),D&&P(L,D),L}}(),_=function P(L,F,D){L===null&&(L=Function.prototype);var x=Object.getOwnPropertyDescriptor(L,F);if(x===void 0){var I=Object.getPrototypeOf(L);return I===null?void 0:P(I,F,D)}else{if("value"in x)return x.value;var U=x.get;return U===void 0?void 0:U.call(D)}},k=d(3),p=N(k),m=d(2),c=N(m),a=d(8),e=N(a),t=d(23),l=N(t),o=d(34),u=N(o),r=d(59),i=N(r),f=d(60),n=N(f),s=d(28),A=N(s),g=d(61),b=N(g);function N(P){return P&&P.__esModule?P:{default:P}}function y(P,L){if(!(P instanceof L))throw new TypeError("Cannot call a class as a function")}function h(P,L){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:P}function v(P,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);P.prototype=Object.create(L&&L.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(P,L):P.__proto__=L)}var w=[!1,"center","right","justify"],T=["#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"],q=[!1,"serif","monospace"],B=["1","2","3",!1],C=["small",!1,"large","huge"],W=function(P){v(L,P);function L(F,D){y(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,D)),I=function U(H){if(!document.body.contains(F.root))return document.body.removeEventListener("click",U);x.tooltip!=null&&!x.tooltip.root.contains(H.target)&&document.activeElement!==x.tooltip.textbox&&!x.quill.hasFocus()&&x.tooltip.hide(),x.pickers!=null&&x.pickers.forEach(function(V){V.container.contains(H.target)||V.close()})};return F.emitter.listenDOM("click",document.body,I),x}return S(L,[{key:"addModule",value:function(D){var x=_(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"addModule",this).call(this,D);return D==="toolbar"&&this.extendToolbar(x),x}},{key:"buildButtons",value:function(D,x){D.forEach(function(I){var U=I.getAttribute("class")||"";U.split(/\s+/).forEach(function(H){if(H.startsWith("ql-")&&(H=H.slice(3),x[H]!=null))if(H==="direction")I.innerHTML=x[H][""]+x[H].rtl;else if(typeof x[H]=="string")I.innerHTML=x[H];else{var V=I.value||"";V!=null&&x[H][V]&&(I.innerHTML=x[H][V])}})})}},{key:"buildPickers",value:function(D,x){var I=this;this.pickers=D.map(function(H){if(H.classList.contains("ql-align"))return H.querySelector("option")==null&&E(H,w),new n.default(H,x.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var V=H.classList.contains("ql-background")?"background":"color";return H.querySelector("option")==null&&E(H,T,V==="background"?"#ffffff":"#000000"),new i.default(H,x[V])}else return H.querySelector("option")==null&&(H.classList.contains("ql-font")?E(H,q):H.classList.contains("ql-header")?E(H,B):H.classList.contains("ql-size")&&E(H,C)),new A.default(H)});var U=function(){I.pickers.forEach(function(V){V.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,U)}}]),L}(u.default);W.DEFAULTS=(0,p.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var L=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var D=new FileReader;D.onload=function(x){var I=L.quill.getSelection(!0);L.quill.updateContents(new c.default().retain(I.index).delete(I.length).insert({image:x.target.result}),e.default.sources.USER),L.quill.setSelection(I.index+1,e.default.sources.SILENT),F.value=""},D.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var j=function(P){v(L,P);function L(F,D){y(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,D));return x.textbox=x.root.querySelector('input[type="text"]'),x.listen(),x}return S(L,[{key:"listen",value:function(){var D=this;this.textbox.addEventListener("keydown",function(x){l.default.match(x,"enter")?(D.save(),x.preventDefault()):l.default.match(x,"escape")&&(D.cancel(),x.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),x!=null?this.textbox.value=x:D!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+D)||""),this.root.setAttribute("data-mode",D)}},{key:"restoreFocus",value:function(){var D=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=D}},{key:"save",value:function(){var D=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var x=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",D,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",D,e.default.sources.USER)),this.quill.root.scrollTop=x;break}case"video":D=R(D);case"formula":{if(!D)break;var I=this.quill.getSelection(!0);if(I!=null){var U=I.index+I.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),D,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(U+1," ",e.default.sources.USER),this.quill.setSelection(U+2,e.default.sources.USER)}break}default:}this.textbox.value="",this.hide()}}]),L}(b.default);function R(P){var L=P.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||P.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return L?(L[1]||"https")+"://www.youtube.com/embed/"+L[2]+"?showinfo=0":(L=P.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(L[1]||"https")+"://player.vimeo.com/video/"+L[2]+"/":P}function E(P,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;L.forEach(function(D){var x=document.createElement("option");D===F?x.setAttribute("selected","selected"):x.setAttribute("value",D),P.appendChild(x)})}O.BaseTooltip=j,O.default=W},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function _(){this.head=this.tail=null,this.length=0}return _.prototype.append=function(){for(var k=[],p=0;p<arguments.length;p++)k[p]=arguments[p];this.insertBefore(k[0],null),k.length>1&&this.append.apply(this,k.slice(1))},_.prototype.contains=function(k){for(var p,m=this.iterator();p=m();)if(p===k)return!0;return!1},_.prototype.insertBefore=function(k,p){k&&(k.next=p,p!=null?(k.prev=p.prev,p.prev!=null&&(p.prev.next=k),p.prev=k,p===this.head&&(this.head=k)):this.tail!=null?(this.tail.next=k,k.prev=this.tail,this.tail=k):(k.prev=null,this.head=this.tail=k),this.length+=1)},_.prototype.offset=function(k){for(var p=0,m=this.head;m!=null;){if(m===k)return p;p+=m.length(),m=m.next}return-1},_.prototype.remove=function(k){this.contains(k)&&(k.prev!=null&&(k.prev.next=k.next),k.next!=null&&(k.next.prev=k.prev),k===this.head&&(this.head=k.next),k===this.tail&&(this.tail=k.prev),this.length-=1)},_.prototype.iterator=function(k){return k===void 0&&(k=this.head),function(){var p=k;return k!=null&&(k=k.next),p}},_.prototype.find=function(k,p){p===void 0&&(p=!1);for(var m,c=this.iterator();m=c();){var a=m.length();if(k<a||p&&k===a&&(m.next==null||m.next.length()!==0))return[m,k];k-=a}return[null,0]},_.prototype.forEach=function(k){for(var p,m=this.iterator();p=m();)k(p)},_.prototype.forEachAt=function(k,p,m){if(!(p<=0))for(var c=this.find(k),a=c[0],e=c[1],t,l=k-e,o=this.iterator(a);(t=o())&&l<k+p;){var u=t.length();k>l?m(t,k-l,Math.min(p,l+u-k)):m(t,0,Math.min(u,k+p-l)),l+=u}},_.prototype.map=function(k){return this.reduce(function(p,m){return p.push(k(m)),p},[])},_.prototype.reduce=function(k,p){for(var m,c=this.iterator();m=c();)p=k(p,m);return p},_}();O.default=S},function(M,O,d){"use strict";var S=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])};return function(e,t){a(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(O,"__esModule",{value:!0});var _=d(17),k=d(1),p={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},m=100,c=function(a){S(e,a);function e(t){var l=a.call(this,t)||this;return l.scroll=l,l.observer=new MutationObserver(function(o){l.update(o)}),l.observer.observe(l.domNode,p),l.attach(),l}return e.prototype.detach=function(){a.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,l){this.update(),t===0&&l===this.length()?this.children.forEach(function(o){o.remove()}):a.prototype.deleteAt.call(this,t,l)},e.prototype.formatAt=function(t,l,o,u){this.update(),a.prototype.formatAt.call(this,t,l,o,u)},e.prototype.insertAt=function(t,l,o){this.update(),a.prototype.insertAt.call(this,t,l,o)},e.prototype.optimize=function(t,l){var o=this;t===void 0&&(t=[]),l===void 0&&(l={}),a.prototype.optimize.call(this,l);for(var u=[].slice.call(this.observer.takeRecords());u.length>0;)t.push(u.pop());for(var r=function(s,A){A===void 0&&(A=!0),!(s==null||s===o)&&s.domNode.parentNode!=null&&(s.domNode[k.DATA_KEY].mutations==null&&(s.domNode[k.DATA_KEY].mutations=[]),A&&r(s.parent))},i=function(s){s.domNode[k.DATA_KEY]==null||s.domNode[k.DATA_KEY].mutations==null||(s instanceof _.default&&s.children.forEach(i),s.optimize(l))},f=t,n=0;f.length>0;n+=1){if(n>=m)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(s){var A=k.find(s.target,!0);A!=null&&(A.domNode===s.target&&(s.type==="childList"?(r(k.find(s.previousSibling,!1)),[].forEach.call(s.addedNodes,function(g){var b=k.find(g,!1);r(b,!1),b instanceof _.default&&b.children.forEach(function(N){r(N,!1)})})):s.type==="attributes"&&r(A.prev)),r(A))}),this.children.forEach(i),f=[].slice.call(this.observer.takeRecords()),u=f.slice();u.length>0;)t.push(u.pop())}},e.prototype.update=function(t,l){var o=this;l===void 0&&(l={}),t=t||this.observer.takeRecords(),t.map(function(u){var r=k.find(u.target,!0);return r==null?null:r.domNode[k.DATA_KEY].mutations==null?(r.domNode[k.DATA_KEY].mutations=[u],r):(r.domNode[k.DATA_KEY].mutations.push(u),null)}).forEach(function(u){u==null||u===o||u.domNode[k.DATA_KEY]==null||u.update(u.domNode[k.DATA_KEY].mutations||[],l)}),this.domNode[k.DATA_KEY].mutations!=null&&a.prototype.update.call(this,this.domNode[k.DATA_KEY].mutations,l),this.optimize(t,l)},e.blotName="scroll",e.defaultChild="block",e.scope=k.Scope.BLOCK_BLOT,e.tagName="DIV",e}(_.default);O.default=c},function(M,O,d){"use strict";var S=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var t in e)e.hasOwnProperty(t)&&(a[t]=e[t])};return function(a,e){c(a,e);function t(){this.constructor=a}a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var _=d(18),k=d(1);function p(c,a){if(Object.keys(c).length!==Object.keys(a).length)return!1;for(var e in c)if(c[e]!==a[e])return!1;return!0}var m=function(c){S(a,c);function a(){return c!==null&&c.apply(this,arguments)||this}return a.formats=function(e){if(e.tagName!==a.tagName)return c.formats.call(this,e)},a.prototype.format=function(e,t){var l=this;e===this.statics.blotName&&!t?(this.children.forEach(function(o){o instanceof _.default||(o=o.wrap(a.blotName,!0)),l.attributes.copy(o)}),this.unwrap()):c.prototype.format.call(this,e,t)},a.prototype.formatAt=function(e,t,l,o){if(this.formats()[l]!=null||k.query(l,k.Scope.ATTRIBUTE)){var u=this.isolate(e,t);u.format(l,o)}else c.prototype.formatAt.call(this,e,t,l,o)},a.prototype.optimize=function(e){c.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var l=this.next;l instanceof a&&l.prev===this&&p(t,l.formats())&&(l.moveChildren(this),l.remove())},a.blotName="inline",a.scope=k.Scope.INLINE_BLOT,a.tagName="SPAN",a}(_.default);O.default=m},function(M,O,d){"use strict";var S=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return function(c,a){m(c,a);function e(){this.constructor=c}c.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(O,"__esModule",{value:!0});var _=d(18),k=d(1),p=function(m){S(c,m);function c(){return m!==null&&m.apply(this,arguments)||this}return c.formats=function(a){var e=k.query(c.blotName).tagName;if(a.tagName!==e)return m.formats.call(this,a)},c.prototype.format=function(a,e){k.query(a,k.Scope.BLOCK)!=null&&(a===this.statics.blotName&&!e?this.replaceWith(c.blotName):m.prototype.format.call(this,a,e))},c.prototype.formatAt=function(a,e,t,l){k.query(t,k.Scope.BLOCK)!=null?this.format(t,l):m.prototype.formatAt.call(this,a,e,t,l)},c.prototype.insertAt=function(a,e,t){if(t==null||k.query(e,k.Scope.INLINE)!=null)m.prototype.insertAt.call(this,a,e,t);else{var l=this.split(a),o=k.create(e,t);l.parent.insertBefore(o,l)}},c.prototype.update=function(a,e){navigator.userAgent.match(/Trident/)?this.build():m.prototype.update.call(this,a,e)},c.blotName="block",c.scope=k.Scope.BLOCK_BLOT,c.tagName="P",c}(_.default);O.default=p},function(M,O,d){"use strict";var S=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,c){m.__proto__=c}||function(m,c){for(var a in c)c.hasOwnProperty(a)&&(m[a]=c[a])};return function(m,c){p(m,c);function a(){this.constructor=m}m.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)}}();Object.defineProperty(O,"__esModule",{value:!0});var _=d(19),k=function(p){S(m,p);function m(){return p!==null&&p.apply(this,arguments)||this}return m.formats=function(c){},m.prototype.format=function(c,a){p.prototype.formatAt.call(this,0,this.length(),c,a)},m.prototype.formatAt=function(c,a,e,t){c===0&&a===this.length()?this.format(e,t):p.prototype.formatAt.call(this,c,a,e,t)},m.prototype.formats=function(){return this.statics.formats(this.domNode)},m}(_.default);O.default=k},function(M,O,d){"use strict";var S=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return function(c,a){m(c,a);function e(){this.constructor=c}c.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(O,"__esModule",{value:!0});var _=d(19),k=d(1),p=function(m){S(c,m);function c(a){var e=m.call(this,a)||this;return e.text=e.statics.value(e.domNode),e}return c.create=function(a){return document.createTextNode(a)},c.value=function(a){var e=a.data;return e.normalize&&(e=e.normalize()),e},c.prototype.deleteAt=function(a,e){this.domNode.data=this.text=this.text.slice(0,a)+this.text.slice(a+e)},c.prototype.index=function(a,e){return this.domNode===a?e:-1},c.prototype.insertAt=function(a,e,t){t==null?(this.text=this.text.slice(0,a)+e+this.text.slice(a),this.domNode.data=this.text):m.prototype.insertAt.call(this,a,e,t)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(a){m.prototype.optimize.call(this,a),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(a,e){return e===void 0&&(e=!1),[this.domNode,a]},c.prototype.split=function(a,e){if(e===void 0&&(e=!1),!e){if(a===0)return this;if(a===this.length())return this.next}var t=k.create(this.domNode.splitText(a));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},c.prototype.update=function(a,e){var t=this;a.some(function(l){return l.type==="characterData"&&l.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=k.Scope.INLINE_BLOT,c}(_.default);O.default=p},function(M,O,d){"use strict";var S=document.createElement("div");if(S.classList.toggle("test-class",!1),S.classList.contains("test-class")){var _=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(k,p){return arguments.length>1&&!this.contains(k)==!p?p:_.call(this,k)}}String.prototype.startsWith||(String.prototype.startsWith=function(k,p){return p=p||0,this.substr(p,k.length)===k}),String.prototype.endsWith||(String.prototype.endsWith=function(k,p){var m=this.toString();(typeof p!="number"||!isFinite(p)||Math.floor(p)!==p||p>m.length)&&(p=m.length),p-=k.length;var c=m.indexOf(k,p);return c!==-1&&c===p}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(p){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof p!="function")throw new TypeError("predicate must be a function");for(var m=Object(this),c=m.length>>>0,a=arguments[1],e,t=0;t<c;t++)if(e=m[t],p.call(a,e,t,m))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(M,O){var d=-1,S=1,_=0;function k(n,s,A){if(n==s)return n?[[_,n]]:[];(A<0||n.length<A)&&(A=null);var g=a(n,s),b=n.substring(0,g);n=n.substring(g),s=s.substring(g),g=e(n,s);var N=n.substring(n.length-g);n=n.substring(0,n.length-g),s=s.substring(0,s.length-g);var y=p(n,s);return b&&y.unshift([_,b]),N&&y.push([_,N]),l(y),A!=null&&(y=r(y,A)),y=i(y),y}function p(n,s){var A;if(!n)return[[S,s]];if(!s)return[[d,n]];var g=n.length>s.length?n:s,b=n.length>s.length?s:n,N=g.indexOf(b);if(N!=-1)return A=[[S,g.substring(0,N)],[_,b],[S,g.substring(N+b.length)]],n.length>s.length&&(A[0][0]=A[2][0]=d),A;if(b.length==1)return[[d,n],[S,s]];var y=t(n,s);if(y){var h=y[0],v=y[1],w=y[2],T=y[3],q=y[4],B=k(h,w),C=k(v,T);return B.concat([[_,q]],C)}return m(n,s)}function m(n,s){for(var A=n.length,g=s.length,b=Math.ceil((A+g)/2),N=b,y=2*b,h=new Array(y),v=new Array(y),w=0;w<y;w++)h[w]=-1,v[w]=-1;h[N+1]=0,v[N+1]=0;for(var T=A-g,q=T%2!=0,B=0,C=0,W=0,j=0,R=0;R<b;R++){for(var E=-R+B;E<=R-C;E+=2){var P=N+E,L;E==-R||E!=R&&h[P-1]<h[P+1]?L=h[P+1]:L=h[P-1]+1;for(var F=L-E;L<A&&F<g&&n.charAt(L)==s.charAt(F);)L++,F++;if(h[P]=L,L>A)C+=2;else if(F>g)B+=2;else if(q){var D=N+T-E;if(D>=0&&D<y&&v[D]!=-1){var x=A-v[D];if(L>=x)return c(n,s,L,F)}}}for(var I=-R+W;I<=R-j;I+=2){var D=N+I,x;I==-R||I!=R&&v[D-1]<v[D+1]?x=v[D+1]:x=v[D-1]+1;for(var U=x-I;x<A&&U<g&&n.charAt(A-x-1)==s.charAt(g-U-1);)x++,U++;if(v[D]=x,x>A)j+=2;else if(U>g)W+=2;else if(!q){var P=N+T-I;if(P>=0&&P<y&&h[P]!=-1){var L=h[P],F=N+L-P;if(x=A-x,L>=x)return c(n,s,L,F)}}}}return[[d,n],[S,s]]}function c(n,s,A,g){var b=n.substring(0,A),N=s.substring(0,g),y=n.substring(A),h=s.substring(g),v=k(b,N),w=k(y,h);return v.concat(w)}function a(n,s){if(!n||!s||n.charAt(0)!=s.charAt(0))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,N=0;A<b;)n.substring(N,b)==s.substring(N,b)?(A=b,N=A):g=b,b=Math.floor((g-A)/2+A);return b}function e(n,s){if(!n||!s||n.charAt(n.length-1)!=s.charAt(s.length-1))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,N=0;A<b;)n.substring(n.length-b,n.length-N)==s.substring(s.length-b,s.length-N)?(A=b,N=A):g=b,b=Math.floor((g-A)/2+A);return b}function t(n,s){var A=n.length>s.length?n:s,g=n.length>s.length?s:n;if(A.length<4||g.length*2<A.length)return null;function b(C,W,j){for(var R=C.substring(j,j+Math.floor(C.length/4)),E=-1,P="",L,F,D,x;(E=W.indexOf(R,E+1))!=-1;){var I=a(C.substring(j),W.substring(E)),U=e(C.substring(0,j),W.substring(0,E));P.length<U+I&&(P=W.substring(E-U,E)+W.substring(E,E+I),L=C.substring(0,j-U),F=C.substring(j+I),D=W.substring(0,E-U),x=W.substring(E+I))}return P.length*2>=C.length?[L,F,D,x,P]:null}var N=b(A,g,Math.ceil(A.length/4)),y=b(A,g,Math.ceil(A.length/2)),h;if(!N&&!y)return null;y?N?h=N[4].length>y[4].length?N:y:h=y:h=N;var v,w,T,q;n.length>s.length?(v=h[0],w=h[1],T=h[2],q=h[3]):(T=h[0],q=h[1],v=h[2],w=h[3]);var B=h[4];return[v,w,T,q,B]}function l(n){n.push([_,""]);for(var s=0,A=0,g=0,b="",N="",y;s<n.length;)switch(n[s][0]){case S:g++,N+=n[s][1],s++;break;case d:A++,b+=n[s][1],s++;break;case _:A+g>1?(A!==0&&g!==0&&(y=a(N,b),y!==0&&(s-A-g>0&&n[s-A-g-1][0]==_?n[s-A-g-1][1]+=N.substring(0,y):(n.splice(0,0,[_,N.substring(0,y)]),s++),N=N.substring(y),b=b.substring(y)),y=e(N,b),y!==0&&(n[s][1]=N.substring(N.length-y)+n[s][1],N=N.substring(0,N.length-y),b=b.substring(0,b.length-y))),A===0?n.splice(s-g,A+g,[S,N]):g===0?n.splice(s-A,A+g,[d,b]):n.splice(s-A-g,A+g,[d,b],[S,N]),s=s-A-g+(A?1:0)+(g?1:0)+1):s!==0&&n[s-1][0]==_?(n[s-1][1]+=n[s][1],n.splice(s,1)):s++,g=0,A=0,b="",N="";break}n[n.length-1][1]===""&&n.pop();var h=!1;for(s=1;s<n.length-1;)n[s-1][0]==_&&n[s+1][0]==_&&(n[s][1].substring(n[s][1].length-n[s-1][1].length)==n[s-1][1]?(n[s][1]=n[s-1][1]+n[s][1].substring(0,n[s][1].length-n[s-1][1].length),n[s+1][1]=n[s-1][1]+n[s+1][1],n.splice(s-1,1),h=!0):n[s][1].substring(0,n[s+1][1].length)==n[s+1][1]&&(n[s-1][1]+=n[s+1][1],n[s][1]=n[s][1].substring(n[s+1][1].length)+n[s+1][1],n.splice(s+1,1),h=!0)),s++;h&&l(n)}var o=k;o.INSERT=S,o.DELETE=d,o.EQUAL=_,M.exports=o;function u(n,s){if(s===0)return[_,n];for(var A=0,g=0;g<n.length;g++){var b=n[g];if(b[0]===d||b[0]===_){var N=A+b[1].length;if(s===N)return[g+1,n];if(s<N){n=n.slice();var y=s-A,h=[b[0],b[1].slice(0,y)],v=[b[0],b[1].slice(y)];return n.splice(g,1,h,v),[g+1,n]}else A=N}}throw new Error("cursor_pos is out of bounds!")}function r(n,s){var A=u(n,s),g=A[1],b=A[0],N=g[b],y=g[b+1];if(N==null)return n;if(N[0]!==_)return n;if(y!=null&&N[1]+y[1]===y[1]+N[1])return g.splice(b,2,y,N),f(g,b,2);if(y!=null&&y[1].indexOf(N[1])===0){g.splice(b,2,[y[0],N[1]],[0,N[1]]);var h=y[1].slice(N[1].length);return h.length>0&&g.splice(b+2,0,[y[0],h]),f(g,b,3)}else return n}function i(n){for(var s=!1,A=function(y){return y.charCodeAt(0)>=56320&&y.charCodeAt(0)<=57343},g=function(y){return y.charCodeAt(y.length-1)>=55296&&y.charCodeAt(y.length-1)<=56319},b=2;b<n.length;b+=1)n[b-2][0]===_&&g(n[b-2][1])&&n[b-1][0]===d&&A(n[b-1][1])&&n[b][0]===S&&A(n[b][1])&&(s=!0,n[b-1][1]=n[b-2][1].slice(-1)+n[b-1][1],n[b][1]=n[b-2][1].slice(-1)+n[b][1],n[b-2][1]=n[b-2][1].slice(0,-1));if(!s)return n;for(var N=[],b=0;b<n.length;b+=1)n[b][1].length>0&&N.push(n[b]);return N}function f(n,s,A){for(var g=s+A-1;g>=0&&g>=s-1;g--)if(g+1<n.length){var b=n[g],N=n[g+1];b[0]===N[1]&&n.splice(g,2,[b[0],b[1]+N[1]])}return n}},function(M,O){O=M.exports=typeof Object.keys=="function"?Object.keys:d,O.shim=d;function d(S){var _=[];for(var k in S)_.push(k);return _}},function(M,O){var d=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";O=M.exports=d?S:_,O.supported=S;function S(k){return Object.prototype.toString.call(k)=="[object Arguments]"}O.unsupported=_;function _(k){return k&&typeof k=="object"&&typeof k.length=="number"&&Object.prototype.hasOwnProperty.call(k,"callee")&&!Object.prototype.propertyIsEnumerable.call(k,"callee")||!1}},function(M,O){"use strict";var d=Object.prototype.hasOwnProperty,S="~";function _(){}Object.create&&(_.prototype=Object.create(null),new _().__proto__||(S=!1));function k(m,c,a){this.fn=m,this.context=c,this.once=a||!1}function p(){this._events=new _,this._eventsCount=0}p.prototype.eventNames=function(){var c=[],a,e;if(this._eventsCount===0)return c;for(e in a=this._events)d.call(a,e)&&c.push(S?e.slice(1):e);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(a)):c},p.prototype.listeners=function(c,a){var e=S?S+c:c,t=this._events[e];if(a)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var l=0,o=t.length,u=new Array(o);l<o;l++)u[l]=t[l].fn;return u},p.prototype.emit=function(c,a,e,t,l,o){var u=S?S+c:c;if(!this._events[u])return!1;var r=this._events[u],i=arguments.length,f,n;if(r.fn){switch(r.once&&this.removeListener(c,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,a),!0;case 3:return r.fn.call(r.context,a,e),!0;case 4:return r.fn.call(r.context,a,e,t),!0;case 5:return r.fn.call(r.context,a,e,t,l),!0;case 6:return r.fn.call(r.context,a,e,t,l,o),!0}for(n=1,f=new Array(i-1);n<i;n++)f[n-1]=arguments[n];r.fn.apply(r.context,f)}else{var s=r.length,A;for(n=0;n<s;n++)switch(r[n].once&&this.removeListener(c,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,a);break;case 3:r[n].fn.call(r[n].context,a,e);break;case 4:r[n].fn.call(r[n].context,a,e,t);break;default:if(!f)for(A=1,f=new Array(i-1);A<i;A++)f[A-1]=arguments[A];r[n].fn.apply(r[n].context,f)}}return!0},p.prototype.on=function(c,a,e){var t=new k(a,e||this),l=S?S+c:c;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],t]:this._events[l].push(t):(this._events[l]=t,this._eventsCount++),this},p.prototype.once=function(c,a,e){var t=new k(a,e||this,!0),l=S?S+c:c;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],t]:this._events[l].push(t):(this._events[l]=t,this._eventsCount++),this},p.prototype.removeListener=function(c,a,e,t){var l=S?S+c:c;if(!this._events[l])return this;if(!a)return--this._eventsCount===0?this._events=new _:delete this._events[l],this;var o=this._events[l];if(o.fn)o.fn===a&&(!t||o.once)&&(!e||o.context===e)&&(--this._eventsCount===0?this._events=new _:delete this._events[l]);else{for(var u=0,r=[],i=o.length;u<i;u++)(o[u].fn!==a||t&&!o[u].once||e&&o[u].context!==e)&&r.push(o[u]);r.length?this._events[l]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new _:delete this._events[l]}return this},p.prototype.removeAllListeners=function(c){var a;return c?(a=S?S+c:c,this._events[a]&&(--this._eventsCount===0?this._events=new _:delete this._events[a])):(this._events=new _,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prototype.setMaxListeners=function(){return this},p.prefixed=S,p.EventEmitter=p,typeof M!="undefined"&&(M.exports=p)},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.matchText=O.matchSpacing=O.matchNewline=O.matchBlot=O.matchAttributor=O.default=void 0;var S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},_=function(){function K(z,$){var G=[],Z=!0,J=!1,tt=void 0;try{for(var et=z[Symbol.iterator](),st;!(Z=(st=et.next()).done)&&(G.push(st.value),!($&&G.length===$));Z=!0);}catch(ct){J=!0,tt=ct}finally{try{!Z&&et.return&&et.return()}finally{if(J)throw tt}}return G}return function(z,$){if(Array.isArray(z))return z;if(Symbol.iterator in Object(z))return K(z,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function K(z,$){for(var G=0;G<$.length;G++){var Z=$[G];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(z,Z.key,Z)}}return function(z,$,G){return $&&K(z.prototype,$),G&&K(z,G),z}}(),p=d(3),m=v(p),c=d(2),a=v(c),e=d(0),t=v(e),l=d(5),o=v(l),u=d(10),r=v(u),i=d(9),f=v(i),n=d(36),s=d(37),A=d(13),g=v(A),b=d(26),N=d(38),y=d(39),h=d(40);function v(K){return K&&K.__esModule?K:{default:K}}function w(K,z,$){return z in K?Object.defineProperty(K,z,{value:$,enumerable:!0,configurable:!0,writable:!0}):K[z]=$,K}function T(K,z){if(!(K instanceof z))throw new TypeError("Cannot call a class as a function")}function q(K,z){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:K}function B(K,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);K.prototype=Object.create(z&&z.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(K,z):K.__proto__=z)}var C=(0,r.default)("quill:clipboard"),W="__ql-matcher",j=[[Node.TEXT_NODE,lt],[Node.TEXT_NODE,nt],["br",Y],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,ut],["li",Q],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",X]],R=[n.AlignAttribute,N.DirectionAttribute].reduce(function(K,z){return K[z.keyName]=z,K},{}),E=[n.AlignStyle,s.BackgroundStyle,b.ColorStyle,N.DirectionStyle,y.FontStyle,h.SizeStyle].reduce(function(K,z){return K[z.keyName]=z,K},{}),P=function(K){B(z,K);function z($,G){T(this,z);var Z=q(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,$,G));return Z.quill.root.addEventListener("paste",Z.onPaste.bind(Z)),Z.container=Z.quill.addContainer("ql-clipboard"),Z.container.setAttribute("contenteditable",!0),Z.container.setAttribute("tabindex",-1),Z.matchers=[],j.concat(Z.options.matchers).forEach(function(J){var tt=_(J,2),et=tt[0],st=tt[1];!G.matchVisual&&st===rt||Z.addMatcher(et,st)}),Z}return k(z,[{key:"addMatcher",value:function(G,Z){this.matchers.push([G,Z])}},{key:"convert",value:function(G){if(typeof G=="string")return this.container.innerHTML=G.replace(/\>\r?\n +\</g,"><"),this.convert();var Z=this.quill.getFormat(this.quill.selection.savedRange.index);if(Z[g.default.blotName]){var J=this.container.innerText;return this.container.innerHTML="",new a.default().insert(J,w({},g.default.blotName,Z[g.default.blotName]))}var tt=this.prepareMatching(),et=_(tt,2),st=et[0],ct=et[1],it=I(this.container,st,ct);return D(it,`
  28. `)&&it.ops[it.ops.length-1].attributes==null&&(it=it.compose(new a.default().retain(it.length()-1).delete(1))),C.log("convert",this.container.innerHTML,it),this.container.innerHTML="",it}},{key:"dangerouslyPasteHTML",value:function(G,Z){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o.default.sources.API;if(typeof G=="string")this.quill.setContents(this.convert(G),Z),this.quill.setSelection(0,o.default.sources.SILENT);else{var tt=this.convert(Z);this.quill.updateContents(new a.default().retain(G).concat(tt),J),this.quill.setSelection(G+tt.length(),o.default.sources.SILENT)}}},{key:"onPaste",value:function(G){var Z=this;if(!(G.defaultPrevented||!this.quill.isEnabled())){var J=this.quill.getSelection(),tt=new a.default().retain(J.index),et=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(o.default.sources.SILENT),setTimeout(function(){tt=tt.concat(Z.convert()).delete(J.length),Z.quill.updateContents(tt,o.default.sources.USER),Z.quill.setSelection(tt.length()-J.length,o.default.sources.SILENT),Z.quill.scrollingContainer.scrollTop=et,Z.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var G=this,Z=[],J=[];return this.matchers.forEach(function(tt){var et=_(tt,2),st=et[0],ct=et[1];switch(st){case Node.TEXT_NODE:J.push(ct);break;case Node.ELEMENT_NODE:Z.push(ct);break;default:[].forEach.call(G.container.querySelectorAll(st),function(it){it[W]=it[W]||[],it[W].push(ct)});break}}),[Z,J]}}]),z}(f.default);P.DEFAULTS={matchers:[],matchVisual:!0};function L(K,z,$){return(typeof z=="undefined"?"undefined":S(z))==="object"?Object.keys(z).reduce(function(G,Z){return L(G,Z,z[Z])},K):K.reduce(function(G,Z){return Z.attributes&&Z.attributes[z]?G.push(Z):G.insert(Z.insert,(0,m.default)({},w({},z,$),Z.attributes))},new a.default)}function F(K){if(K.nodeType!==Node.ELEMENT_NODE)return{};var z="__ql-computed-style";return K[z]||(K[z]=window.getComputedStyle(K))}function D(K,z){for(var $="",G=K.ops.length-1;G>=0&&$.length<z.length;--G){var Z=K.ops[G];if(typeof Z.insert!="string")break;$=Z.insert+$}return $.slice(-1*z.length)===z}function x(K){if(K.childNodes.length===0)return!1;var z=F(K);return["block","list-item"].indexOf(z.display)>-1}function I(K,z,$){return K.nodeType===K.TEXT_NODE?$.reduce(function(G,Z){return Z(K,G)},new a.default):K.nodeType===K.ELEMENT_NODE?[].reduce.call(K.childNodes||[],function(G,Z){var J=I(Z,z,$);return Z.nodeType===K.ELEMENT_NODE&&(J=z.reduce(function(tt,et){return et(Z,tt)},J),J=(Z[W]||[]).reduce(function(tt,et){return et(Z,tt)},J)),G.concat(J)},new a.default):new a.default}function U(K,z,$){return L($,K,!0)}function H(K,z){var $=t.default.Attributor.Attribute.keys(K),G=t.default.Attributor.Class.keys(K),Z=t.default.Attributor.Style.keys(K),J={};return $.concat(G).concat(Z).forEach(function(tt){var et=t.default.query(tt,t.default.Scope.ATTRIBUTE);et!=null&&(J[et.attrName]=et.value(K),J[et.attrName])||(et=R[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(J[et.attrName]=et.value(K)||void 0),et=E[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(et=E[tt],J[et.attrName]=et.value(K)||void 0))}),Object.keys(J).length>0&&(z=L(z,J)),z}function V(K,z){var $=t.default.query(K);if($==null)return z;if($.prototype instanceof t.default.Embed){var G={},Z=$.value(K);Z!=null&&(G[$.blotName]=Z,z=new a.default().insert(G,$.formats(K)))}else typeof $.formats=="function"&&(z=L(z,$.blotName,$.formats(K)));return z}function Y(K,z){return D(z,`
  29. `)||z.insert(`
  30. `),z}function X(){return new a.default}function Q(K,z){var $=t.default.query(K);if($==null||$.blotName!=="list-item"||!D(z,`
  31. `))return z;for(var G=-1,Z=K.parentNode;!Z.classList.contains("ql-clipboard");)(t.default.query(Z)||{}).blotName==="list"&&(G+=1),Z=Z.parentNode;return G<=0?z:z.compose(new a.default().retain(z.length()-1).retain(1,{indent:G}))}function nt(K,z){return D(z,`
  32. `)||(x(K)||z.length()>0&&K.nextSibling&&x(K.nextSibling))&&z.insert(`
  33. `),z}function rt(K,z){if(x(K)&&K.nextElementSibling!=null&&!D(z,`
  34. `)){var $=K.offsetHeight+parseFloat(F(K).marginTop)+parseFloat(F(K).marginBottom);K.nextElementSibling.offsetTop>K.offsetTop+$*1.5&&z.insert(`
  35. `)}return z}function ut(K,z){var $={},G=K.style||{};return G.fontStyle&&F(K).fontStyle==="italic"&&($.italic=!0),G.fontWeight&&(F(K).fontWeight.startsWith("bold")||parseInt(F(K).fontWeight)>=700)&&($.bold=!0),Object.keys($).length>0&&(z=L(z,$)),parseFloat(G.textIndent||0)>0&&(z=new a.default().insert(" ").concat(z)),z}function lt(K,z){var $=K.data;if(K.parentNode.tagName==="O:P")return z.insert($.trim());if($.trim().length===0&&K.parentNode.classList.contains("ql-clipboard"))return z;if(!F(K.parentNode).whiteSpace.startsWith("pre")){var G=function(J,tt){return tt=tt.replace(/[^\u00a0]/g,""),tt.length<1&&J?" ":tt};$=$.replace(/\r\n/g," ").replace(/\n/g," "),$=$.replace(/\s\s+/g,G.bind(G,!0)),(K.previousSibling==null&&x(K.parentNode)||K.previousSibling!=null&&x(K.previousSibling))&&($=$.replace(/^\s+/,G.bind(G,!1))),(K.nextSibling==null&&x(K.parentNode)||K.nextSibling!=null&&x(K.nextSibling))&&($=$.replace(/\s+$/,G.bind(G,!1)))}return z.insert($)}O.default=P,O.matchAttributor=H,O.matchBlot=V,O.matchNewline=nt,O.matchSpacing=rt,O.matchText=lt},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function l(o,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,u,r){return u&&l(o.prototype,u),r&&l(o,r),o}}(),_=function l(o,u,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,u);if(i===void 0){var f=Object.getPrototypeOf(o);return f===null?void 0:l(f,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},k=d(6),p=m(k);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function a(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(){return c(this,o),a(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return S(o,[{key:"optimize",value:function(r){_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return _(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),o}(p.default);t.blotName="bold",t.tagName=["STRONG","B"],O.default=t},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.addControls=O.default=void 0;var S=function(){function h(v,w){var T=[],q=!0,B=!1,C=void 0;try{for(var W=v[Symbol.iterator](),j;!(q=(j=W.next()).done)&&(T.push(j.value),!(w&&T.length===w));q=!0);}catch(R){B=!0,C=R}finally{try{!q&&W.return&&W.return()}finally{if(B)throw C}}return T}return function(v,w){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return h(v,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function h(v,w){for(var T=0;T<w.length;T++){var q=w[T];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(v,q.key,q)}}return function(v,w,T){return w&&h(v.prototype,w),T&&h(v,T),v}}(),k=d(2),p=r(k),m=d(0),c=r(m),a=d(5),e=r(a),t=d(10),l=r(t),o=d(9),u=r(o);function r(h){return h&&h.__esModule?h:{default:h}}function i(h,v,w){return v in h?Object.defineProperty(h,v,{value:w,enumerable:!0,configurable:!0,writable:!0}):h[v]=w,h}function f(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function n(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function s(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var A=(0,l.default)("quill:toolbar"),g=function(h){s(v,h);function v(w,T){f(this,v);var q=n(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,w,T));if(Array.isArray(q.options.container)){var B=document.createElement("div");N(B,q.options.container),w.container.parentNode.insertBefore(B,w.container),q.container=B}else typeof q.options.container=="string"?q.container=document.querySelector(q.options.container):q.container=q.options.container;if(!(q.container instanceof HTMLElement)){var C;return C=A.error("Container required for toolbar",q.options),n(q,C)}return q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(W){q.addHandler(W,q.options.handlers[W])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(W){q.attach(W)}),q.quill.on(e.default.events.EDITOR_CHANGE,function(W,j){W===e.default.events.SELECTION_CHANGE&&q.update(j)}),q.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var W=q.quill.selection.getRange(),j=S(W,1),R=j[0];q.update(R)}),q}return _(v,[{key:"addHandler",value:function(T,q){this.handlers[T]=q}},{key:"attach",value:function(T){var q=this,B=[].find.call(T.classList,function(W){return W.indexOf("ql-")===0});if(B){if(B=B.slice(3),T.tagName==="BUTTON"&&T.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){A.warn("ignoring attaching to disabled format",B,T);return}if(c.default.query(B)==null){A.warn("ignoring attaching to nonexistent format",B,T);return}}var C=T.tagName==="SELECT"?"change":"click";T.addEventListener(C,function(W){var j=void 0;if(T.tagName==="SELECT"){if(T.selectedIndex<0)return;var R=T.options[T.selectedIndex];R.hasAttribute("selected")?j=!1:j=R.value||!1}else T.classList.contains("ql-active")?j=!1:j=T.value||!T.hasAttribute("value"),W.preventDefault();q.quill.focus();var E=q.quill.selection.getRange(),P=S(E,1),L=P[0];if(q.handlers[B]!=null)q.handlers[B].call(q,j);else if(c.default.query(B).prototype instanceof c.default.Embed){if(j=prompt("Enter "+B),!j)return;q.quill.updateContents(new p.default().retain(L.index).delete(L.length).insert(i({},B,j)),e.default.sources.USER)}else q.quill.format(B,j,e.default.sources.USER);q.update(L)}),this.controls.push([B,T])}}},{key:"update",value:function(T){var q=T==null?{}:this.quill.getFormat(T);this.controls.forEach(function(B){var C=S(B,2),W=C[0],j=C[1];if(j.tagName==="SELECT"){var R=void 0;if(T==null)R=null;else if(q[W]==null)R=j.querySelector("option[selected]");else if(!Array.isArray(q[W])){var E=q[W];typeof E=="string"&&(E=E.replace(/\"/g,'\\"')),R=j.querySelector('option[value="'+E+'"]')}R==null?(j.value="",j.selectedIndex=-1):R.selected=!0}else if(T==null)j.classList.remove("ql-active");else if(j.hasAttribute("value")){var P=q[W]===j.getAttribute("value")||q[W]!=null&&q[W].toString()===j.getAttribute("value")||q[W]==null&&!j.getAttribute("value");j.classList.toggle("ql-active",P)}else j.classList.toggle("ql-active",q[W]!=null)})}}]),v}(u.default);g.DEFAULTS={};function b(h,v,w){var T=document.createElement("button");T.setAttribute("type","button"),T.classList.add("ql-"+v),w!=null&&(T.value=w),h.appendChild(T)}function N(h,v){Array.isArray(v[0])||(v=[v]),v.forEach(function(w){var T=document.createElement("span");T.classList.add("ql-formats"),w.forEach(function(q){if(typeof q=="string")b(T,q);else{var B=Object.keys(q)[0],C=q[B];Array.isArray(C)?y(T,B,C):b(T,B,C)}}),h.appendChild(T)})}function y(h,v,w){var T=document.createElement("select");T.classList.add("ql-"+v),w.forEach(function(q){var B=document.createElement("option");q!==!1?B.setAttribute("value",q):B.setAttribute("selected","selected"),T.appendChild(B)}),h.appendChild(T)}g.DEFAULTS={container:null,handlers:{clean:function(){var v=this,w=this.quill.getSelection();if(w!=null)if(w.length==0){var T=this.quill.getFormat();Object.keys(T).forEach(function(q){c.default.query(q,c.default.Scope.INLINE)!=null&&v.quill.format(q,!1)})}else this.quill.removeFormat(w,e.default.sources.USER)},direction:function(v){var w=this.quill.getFormat().align;v==="rtl"&&w==null?this.quill.format("align","right",e.default.sources.USER):!v&&w==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",v,e.default.sources.USER)},indent:function(v){var w=this.quill.getSelection(),T=this.quill.getFormat(w),q=parseInt(T.indent||0);if(v==="+1"||v==="-1"){var B=v==="+1"?1:-1;T.direction==="rtl"&&(B*=-1),this.quill.format("indent",q+B,e.default.sources.USER)}},link:function(v){v===!0&&(v=prompt("Enter link URL:")),this.quill.format("link",v,e.default.sources.USER)},list:function(v){var w=this.quill.getSelection(),T=this.quill.getFormat(w);v==="check"?T.list==="checked"||T.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",v,e.default.sources.USER)}}},O.default=g,O.addControls=N},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function l(o,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,u,r){return u&&l(o.prototype,u),r&&l(o,r),o}}(),_=function l(o,u,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,u);if(i===void 0){var f=Object.getPrototypeOf(o);return f===null?void 0:l(f,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},k=d(28),p=m(k);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function a(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(u,r){c(this,o);var i=a(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,u));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(f){f.classList.add("ql-primary")}),i}return S(o,[{key:"buildItem",value:function(r){var i=_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"selectItem",this).call(this,r,i);var f=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";f&&(f.tagName==="line"?f.style.stroke=n:f.style.fill=n)}}]),o}(p.default);O.default=t},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function l(o,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,u,r){return u&&l(o.prototype,u),r&&l(o,r),o}}(),_=function l(o,u,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,u);if(i===void 0){var f=Object.getPrototypeOf(o);return f===null?void 0:l(f,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},k=d(28),p=m(k);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function a(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(u,r){c(this,o);var i=a(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,u));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(f){f.innerHTML=r[f.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return S(o,[{key:"selectItem",value:function(r,i){_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"selectItem",this).call(this,r,i),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),o}(p.default);O.default=t},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function p(m,c){for(var a=0;a<c.length;a++){var e=c[a];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(m,e.key,e)}}return function(m,c,a){return c&&p(m.prototype,c),a&&p(m,a),m}}();function _(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}var k=function(){function p(m,c){var a=this;_(this,p),this.quill=m,this.boundsContainer=c||document.body,this.root=m.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){a.root.style.marginTop=-1*a.quill.root.scrollTop+"px"}),this.hide()}return S(p,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var a=c.left+c.width/2-this.root.offsetWidth/2,e=c.bottom+this.quill.root.scrollTop;this.root.style.left=a+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect(),o=0;if(l.right>t.right&&(o=t.right-l.right,this.root.style.left=a+o+"px"),l.left<t.left&&(o=t.left-l.left,this.root.style.left=a+o+"px"),l.bottom>t.bottom){var u=l.bottom-l.top,r=c.bottom-c.top+u;this.root.style.top=e-r+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),p}();O.default=k},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function y(h,v){var w=[],T=!0,q=!1,B=void 0;try{for(var C=h[Symbol.iterator](),W;!(T=(W=C.next()).done)&&(w.push(W.value),!(v&&w.length===v));T=!0);}catch(j){q=!0,B=j}finally{try{!T&&C.return&&C.return()}finally{if(q)throw B}}return w}return function(h,v){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return y(h,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function y(h,v,w){h===null&&(h=Function.prototype);var T=Object.getOwnPropertyDescriptor(h,v);if(T===void 0){var q=Object.getPrototypeOf(h);return q===null?void 0:y(q,v,w)}else{if("value"in T)return T.value;var B=T.get;return B===void 0?void 0:B.call(w)}},k=function(){function y(h,v){for(var w=0;w<v.length;w++){var T=v[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(h,T.key,T)}}return function(h,v,w){return v&&y(h.prototype,v),w&&y(h,w),h}}(),p=d(3),m=f(p),c=d(8),a=f(c),e=d(43),t=f(e),l=d(27),o=f(l),u=d(15),r=d(41),i=f(r);function f(y){return y&&y.__esModule?y:{default:y}}function n(y,h){if(!(y instanceof h))throw new TypeError("Cannot call a class as a function")}function s(y,h){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:y}function A(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);y.prototype=Object.create(h&&h.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(y,h):y.__proto__=h)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(y){A(h,y);function h(v,w){n(this,h),w.modules.toolbar!=null&&w.modules.toolbar.container==null&&(w.modules.toolbar.container=g);var T=s(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,v,w));return T.quill.container.classList.add("ql-snow"),T}return k(h,[{key:"extendToolbar",value:function(w){w.container.classList.add("ql-snow"),this.buildButtons([].slice.call(w.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(w.container.querySelectorAll("select")),i.default),this.tooltip=new N(this.quill,this.options.bounds),w.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(T,q){w.handlers.link.call(w,!q.format.link)})}}]),h}(t.default);b.DEFAULTS=(0,m.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(h){if(h){var v=this.quill.getSelection();if(v==null||v.length==0)return;var w=this.quill.getText(v);/^\S+@\S+\.\S+$/.test(w)&&w.indexOf("mailto:")!==0&&(w="mailto:"+w);var T=this.quill.theme.tooltip;T.edit("link",w)}else this.quill.format("link",!1)}}}}});var N=function(y){A(h,y);function h(v,w){n(this,h);var T=s(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,v,w));return T.preview=T.root.querySelector("a.ql-preview"),T}return k(h,[{key:"listen",value:function(){var w=this;_(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(T){w.root.classList.contains("ql-editing")?w.save():w.edit("link",w.preview.textContent),T.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(T){if(w.linkRange!=null){var q=w.linkRange;w.restoreFocus(),w.quill.formatText(q,"link",!1,a.default.sources.USER),delete w.linkRange}T.preventDefault(),w.hide()}),this.quill.on(a.default.events.SELECTION_CHANGE,function(T,q,B){if(T!=null){if(T.length===0&&B===a.default.sources.USER){var C=w.quill.scroll.descendant(o.default,T.index),W=S(C,2),j=W[0],R=W[1];if(j!=null){w.linkRange=new u.Range(T.index-R,j.length());var E=o.default.formats(j.domNode);w.preview.textContent=E,w.preview.setAttribute("href",E),w.show(),w.position(w.quill.getBounds(w.linkRange));return}}else delete w.linkRange;w.hide()}})}},{key:"show",value:function(){_(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),h}(e.BaseTooltip);N.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(""),O.default=b},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(29),_=Z(S),k=d(36),p=d(38),m=d(64),c=d(65),a=Z(c),e=d(66),t=Z(e),l=d(67),o=Z(l),u=d(37),r=d(26),i=d(39),f=d(40),n=d(56),s=Z(n),A=d(68),g=Z(A),b=d(27),N=Z(b),y=d(69),h=Z(y),v=d(70),w=Z(v),T=d(71),q=Z(T),B=d(72),C=Z(B),W=d(73),j=Z(W),R=d(13),E=Z(R),P=d(74),L=Z(P),F=d(75),D=Z(F),x=d(57),I=Z(x),U=d(41),H=Z(U),V=d(28),Y=Z(V),X=d(59),Q=Z(X),nt=d(60),rt=Z(nt),ut=d(61),lt=Z(ut),K=d(108),z=Z(K),$=d(62),G=Z($);function Z(J){return J&&J.__esModule?J:{default:J}}_.default.register({"attributors/attribute/direction":p.DirectionAttribute,"attributors/class/align":k.AlignClass,"attributors/class/background":u.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":p.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":k.AlignStyle,"attributors/style/background":u.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":p.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":f.SizeStyle},!0),_.default.register({"formats/align":k.AlignClass,"formats/direction":p.DirectionClass,"formats/indent":m.IndentClass,"formats/background":u.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":f.SizeClass,"formats/blockquote":a.default,"formats/code-block":E.default,"formats/header":t.default,"formats/list":o.default,"formats/bold":s.default,"formats/code":R.Code,"formats/italic":g.default,"formats/link":N.default,"formats/script":h.default,"formats/strike":w.default,"formats/underline":q.default,"formats/image":C.default,"formats/video":j.default,"formats/list/item":l.ListItem,"modules/formula":L.default,"modules/syntax":D.default,"modules/toolbar":I.default,"themes/bubble":z.default,"themes/snow":G.default,"ui/icons":H.default,"ui/picker":Y.default,"ui/icon-picker":rt.default,"ui/color-picker":Q.default,"ui/tooltip":lt.default},!0),O.default=_.default},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.IndentClass=void 0;var S=function(){function o(u,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,r,i){return r&&o(u.prototype,r),i&&o(u,i),u}}(),_=function o(u,r,i){u===null&&(u=Function.prototype);var f=Object.getOwnPropertyDescriptor(u,r);if(f===void 0){var n=Object.getPrototypeOf(u);return n===null?void 0:o(n,r,i)}else{if("value"in f)return f.value;var s=f.get;return s===void 0?void 0:s.call(i)}},k=d(0),p=m(k);function m(o){return o&&o.__esModule?o:{default:o}}function c(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}function a(o,u){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:o}function e(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(o,u):o.__proto__=u)}var t=function(o){e(u,o);function u(){return c(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return S(u,[{key:"add",value:function(i,f){if(f==="+1"||f==="-1"){var n=this.value(i)||0;f=f==="+1"?n+1:n-1}return f===0?(this.remove(i),!0):_(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"add",this).call(this,i,f)}},{key:"canAdd",value:function(i,f){return _(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,i,f)||_(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,i,parseInt(f))}},{key:"value",value:function(i){return parseInt(_(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"value",this).call(this,i))||void 0}}]),u}(p.default.Attributor.Class),l=new t("indent","ql-indent",{scope:p.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});O.IndentClass=l},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(4),_=k(S);function k(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){c(t,e);function t(){return p(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);a.blotName="blockquote",a.tagName="blockquote",O.default=a},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function t(l,o){for(var u=0;u<o.length;u++){var r=o[u];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,o,u){return o&&t(l.prototype,o),u&&t(l,u),l}}(),_=d(4),k=p(_);function p(t){return t&&t.__esModule?t:{default:t}}function m(t,l){if(!(t instanceof l))throw new TypeError("Cannot call a class as a function")}function c(t,l){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:t}function a(t,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);t.prototype=Object.create(l&&l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(t,l):t.__proto__=l)}var e=function(t){a(l,t);function l(){return m(this,l),c(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return S(l,null,[{key:"formats",value:function(u){return this.tagName.indexOf(u.tagName)+1}}]),l}(k.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],O.default=e},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.ListItem=void 0;var S=function(){function n(s,A){for(var g=0;g<A.length;g++){var b=A[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(s,b.key,b)}}return function(s,A,g){return A&&n(s.prototype,A),g&&n(s,g),s}}(),_=function n(s,A,g){s===null&&(s=Function.prototype);var b=Object.getOwnPropertyDescriptor(s,A);if(b===void 0){var N=Object.getPrototypeOf(s);return N===null?void 0:n(N,A,g)}else{if("value"in b)return b.value;var y=b.get;return y===void 0?void 0:y.call(g)}},k=d(0),p=t(k),m=d(4),c=t(m),a=d(25),e=t(a);function t(n){return n&&n.__esModule?n:{default:n}}function l(n,s,A){return s in n?Object.defineProperty(n,s,{value:A,enumerable:!0,configurable:!0,writable:!0}):n[s]=A,n}function o(n,s){if(!(n instanceof s))throw new TypeError("Cannot call a class as a function")}function u(n,s){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:n}function r(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);n.prototype=Object.create(s&&s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(n,s):n.__proto__=s)}var i=function(n){r(s,n);function s(){return o(this,s),u(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return S(s,[{key:"format",value:function(g,b){g===f.blotName&&!b?this.replaceWith(p.default.create(this.statics.scope)):_(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,g,b)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():_(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(g,b){return this.parent.isolate(this.offset(this.parent),this.length()),g===this.parent.statics.blotName?(this.parent.replaceWith(g,b),this):(this.parent.unwrap(),_(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replaceWith",this).call(this,g,b))}}],[{key:"formats",value:function(g){return g.tagName===this.tagName?void 0:_(s.__proto__||Object.getPrototypeOf(s),"formats",this).call(this,g)}}]),s}(c.default);i.blotName="list-item",i.tagName="LI";var f=function(n){r(s,n),S(s,null,[{key:"create",value:function(g){var b=g==="ordered"?"OL":"UL",N=_(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,b);return(g==="checked"||g==="unchecked")&&N.setAttribute("data-checked",g==="checked"),N}},{key:"formats",value:function(g){if(g.tagName==="OL")return"ordered";if(g.tagName==="UL")return g.hasAttribute("data-checked")?g.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function s(A){o(this,s);var g=u(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,A)),b=function(y){if(y.target.parentNode===A){var h=g.statics.formats(A),v=p.default.find(y.target);h==="checked"?v.format("list","unchecked"):h==="unchecked"&&v.format("list","checked")}};return A.addEventListener("touchstart",b),A.addEventListener("mousedown",b),g}return S(s,[{key:"format",value:function(g,b){this.children.length>0&&this.children.tail.format(g,b)}},{key:"formats",value:function(){return l({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(g,b){if(g instanceof i)_(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertBefore",this).call(this,g,b);else{var N=b==null?this.length():b.offset(this),y=this.split(N);y.parent.insertBefore(g,y)}}},{key:"optimize",value:function(g){_(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,g);var b=this.next;b!=null&&b.prev===this&&b.statics.blotName===this.statics.blotName&&b.domNode.tagName===this.domNode.tagName&&b.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(b.moveChildren(this),b.remove())}},{key:"replace",value:function(g){if(g.statics.blotName!==this.statics.blotName){var b=p.default.create(this.statics.defaultChild);g.moveChildren(b),this.appendChild(b)}_(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replace",this).call(this,g)}}]),s}(e.default);f.blotName="list",f.scope=p.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[i],O.ListItem=i,O.default=f},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(56),_=k(S);function k(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){c(t,e);function t(){return p(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);a.blotName="italic",a.tagName=["EM","I"],O.default=a},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function l(o,u){for(var r=0;r<u.length;r++){var i=u[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,u,r){return u&&l(o.prototype,u),r&&l(o,r),o}}(),_=function l(o,u,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,u);if(i===void 0){var f=Object.getPrototypeOf(o);return f===null?void 0:l(f,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},k=d(6),p=m(k);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function a(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(){return c(this,o),a(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return S(o,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):_(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this,r)}},{key:"formats",value:function(r){if(r.tagName==="SUB")return"sub";if(r.tagName==="SUP")return"super"}}]),o}(p.default);t.blotName="script",t.tagName=["SUB","SUP"],O.default=t},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(6),_=k(S);function k(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){c(t,e);function t(){return p(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);a.blotName="strike",a.tagName="S",O.default=a},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=d(6),_=k(S);function k(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){c(t,e);function t(){return p(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);a.blotName="underline",a.tagName="U",O.default=a},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function u(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&u(r.prototype,i),f&&u(r,f),r}}(),_=function u(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:u(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},k=d(0),p=c(k),m=d(27);function c(u){return u&&u.__esModule?u:{default:u}}function a(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function e(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function t(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var l=["alt","height","width"],o=function(u){t(r,u);function r(){return a(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return S(r,[{key:"format",value:function(f,n){l.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=_(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return typeof f=="string"&&n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return l.reduce(function(n,s){return f.hasAttribute(s)&&(n[s]=f.getAttribute(s)),n},{})}},{key:"match",value:function(f){return/\.(jpe?g|gif|png)$/.test(f)||/^data:image\/.+;base64/.test(f)}},{key:"sanitize",value:function(f){return(0,m.sanitize)(f,["http","https","data"])?f:"//:0"}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(p.default.Embed);o.blotName="image",o.tagName="IMG",O.default=o},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var S=function(){function u(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&u(r.prototype,i),f&&u(r,f),r}}(),_=function u(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var s=Object.getPrototypeOf(r);return s===null?void 0:u(s,i,f)}else{if("value"in n)return n.value;var A=n.get;return A===void 0?void 0:A.call(f)}},k=d(4),p=d(27),m=c(p);function c(u){return u&&u.__esModule?u:{default:u}}function a(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function e(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function t(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var l=["height","width"],o=function(u){t(r,u);function r(){return a(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return S(r,[{key:"format",value:function(f,n){l.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=_(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return l.reduce(function(n,s){return f.hasAttribute(s)&&(n[s]=f.getAttribute(s)),n},{})}},{key:"sanitize",value:function(f){return m.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(k.BlockEmbed);o.blotName="video",o.className="ql-video",o.tagName="IFRAME",O.default=o},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.FormulaBlot=void 0;var S=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),_=function f(n,s,A){n===null&&(n=Function.prototype);var g=Object.getOwnPropertyDescriptor(n,s);if(g===void 0){var b=Object.getPrototypeOf(n);return b===null?void 0:f(b,s,A)}else{if("value"in g)return g.value;var N=g.get;return N===void 0?void 0:N.call(A)}},k=d(35),p=t(k),m=d(5),c=t(m),a=d(9),e=t(a);function t(f){return f&&f.__esModule?f:{default:f}}function l(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function o(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function u(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var r=function(f){u(n,f);function n(){return l(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return S(n,null,[{key:"create",value:function(A){var g=_(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,A);return typeof A=="string"&&(window.katex.render(A,g,{throwOnError:!1,errorColor:"#f00"}),g.setAttribute("data-value",A)),g}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),n}(p.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(f){u(n,f),S(n,null,[{key:"register",value:function(){c.default.register(r,!0)}}]);function n(){l(this,n);var s=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return s}return n}(e.default);O.FormulaBlot=r,O.default=i},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.CodeToken=O.CodeBlock=void 0;var S=function(){function A(g,b){for(var N=0;N<b.length;N++){var y=b[N];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,b,N){return b&&A(g.prototype,b),N&&A(g,N),g}}(),_=function A(g,b,N){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,b);if(y===void 0){var h=Object.getPrototypeOf(g);return h===null?void 0:A(h,b,N)}else{if("value"in y)return y.value;var v=y.get;return v===void 0?void 0:v.call(N)}},k=d(0),p=o(k),m=d(5),c=o(m),a=d(9),e=o(a),t=d(13),l=o(t);function o(A){return A&&A.__esModule?A:{default:A}}function u(A,g){if(!(A instanceof g))throw new TypeError("Cannot call a class as a function")}function r(A,g){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:A}function i(A,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);A.prototype=Object.create(g&&g.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(A,g):A.__proto__=g)}var f=function(A){i(g,A);function g(){return u(this,g),r(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return S(g,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),_(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replaceWith",this).call(this,N)}},{key:"highlight",value:function(N){var y=this.domNode.textContent;this.cachedText!==y&&((y.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=N(y),this.domNode.normalize(),this.attach()),this.cachedText=y)}}]),g}(l.default);f.className="ql-syntax";var n=new p.default.Attributor.Class("token","hljs",{scope:p.default.Scope.INLINE}),s=function(A){i(g,A),S(g,null,[{key:"register",value:function(){c.default.register(n,!0),c.default.register(f,!0)}}]);function g(b,N){u(this,g);var y=r(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,b,N));if(typeof y.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var h=null;return y.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(h),h=setTimeout(function(){y.highlight(),h=null},y.options.interval)}),y.highlight(),y}return S(g,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var y=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(h){h.highlight(N.options.highlight)}),this.quill.update(c.default.sources.SILENT),y!=null&&this.quill.setSelection(y,c.default.sources.SILENT)}}}]),g}(e.default);s.DEFAULTS={highlight:function(){return window.hljs==null?null:function(A){var g=window.hljs.highlightAuto(A);return g.value}}(),interval:1e3},O.CodeBlock=f,O.CodeToken=n,O.default=s},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(M,O){M.exports='<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"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <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"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(M,O){M.exports='<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> <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></path> </svg>'},function(M,O){M.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(M,O){M.exports='<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></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <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></path> </svg>'},function(M,O){M.exports='<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>'},function(M,O){M.exports='<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>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <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> <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></path> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <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> <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> <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></path> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(M,O){M.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(M,O){M.exports='<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>'},function(M,O){M.exports='<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>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <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> <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></path> </svg>'},function(M,O){M.exports='<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></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(M,O){M.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(M,O,d){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BubbleTooltip=void 0;var S=function g(b,N,y){b===null&&(b=Function.prototype);var h=Object.getOwnPropertyDescriptor(b,N);if(h===void 0){var v=Object.getPrototypeOf(b);return v===null?void 0:g(v,N,y)}else{if("value"in h)return h.value;var w=h.get;return w===void 0?void 0:w.call(y)}},_=function(){function g(b,N){for(var y=0;y<N.length;y++){var h=N[y];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(b,h.key,h)}}return function(b,N,y){return N&&g(b.prototype,N),y&&g(b,y),b}}(),k=d(3),p=u(k),m=d(8),c=u(m),a=d(43),e=u(a),t=d(15),l=d(41),o=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function r(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function i(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function f(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],s=function(g){f(b,g);function b(N,y){r(this,b),y.modules.toolbar!=null&&y.modules.toolbar.container==null&&(y.modules.toolbar.container=n);var h=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,N,y));return h.quill.container.classList.add("ql-bubble"),h}return _(b,[{key:"extendToolbar",value:function(y){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(y.container),this.buildButtons([].slice.call(y.container.querySelectorAll("button")),o.default),this.buildPickers([].slice.call(y.container.querySelectorAll("select")),o.default)}}]),b}(e.default);s.DEFAULTS=(0,p.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(b){b?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=function(g){f(b,g);function b(N,y){r(this,b);var h=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,N,y));return h.quill.on(c.default.events.EDITOR_CHANGE,function(v,w,T,q){if(v===c.default.events.SELECTION_CHANGE)if(w!=null&&w.length>0&&q===c.default.sources.USER){h.show(),h.root.style.left="0px",h.root.style.width="",h.root.style.width=h.root.offsetWidth+"px";var B=h.quill.getLines(w.index,w.length);if(B.length===1)h.position(h.quill.getBounds(w));else{var C=B[B.length-1],W=h.quill.getIndex(C),j=Math.min(C.length()-1,w.index+w.length-W),R=h.quill.getBounds(new t.Range(W,j));h.position(R)}}else document.activeElement!==h.textbox&&h.quill.hasFocus()&&h.hide()}),h}return _(b,[{key:"listen",value:function(){var y=this;S(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){y.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!y.root.classList.contains("ql-hidden")){var h=y.quill.getSelection();h!=null&&y.position(y.quill.getBounds(h))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(y){var h=S(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"position",this).call(this,y),v=this.root.querySelector(".ql-tooltip-arrow");if(v.style.marginLeft="",h===0)return h;v.style.marginLeft=-1*h-v.offsetWidth/2+"px"}}]),b}(a.BaseTooltip);A.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(""),O.BubbleTooltip=A,O.default=s},function(M,O,d){M.exports=d(63)}]).default})},71167:function(dt,vt,at){"use strict";var ft=this&&this.__extends||function(){var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var u in o)o.hasOwnProperty(u)&&(l[u]=o[u])},a(e,t)};return function(e,t){a(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}(),M=this&&this.__assign||function(){return M=Object.assign||function(a){for(var e,t=1,l=arguments.length;t<l;t++){e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}return a},M.apply(this,arguments)},O=this&&this.__spreadArrays||function(){for(var a=0,e=0,t=arguments.length;e<t;e++)a+=arguments[e].length;for(var l=Array(a),o=0,e=0;e<t;e++)for(var u=arguments[e],r=0,i=u.length;r<i;r++,o++)l[o]=u[r];return l},d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},S=d(at(67294)),_=d(at(73935)),k=d(at(18446)),p=d(at(76095)),m=function(a){ft(e,a);function e(t){var l=a.call(this,t)||this;l.dirtyProps=["modules","formats","bounds","theme","children"],l.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],l.state={generation:0},l.selection=null,l.onEditorChange=function(u,r,i,f){var n,s,A,g;u==="text-change"?(s=(n=l).onEditorChangeText)===null||s===void 0||s.call(n,l.editor.root.innerHTML,r,f,l.unprivilegedEditor):u==="selection-change"&&((g=(A=l).onEditorChangeSelection)===null||g===void 0||g.call(A,r,f,l.unprivilegedEditor))};var o=l.isControlled()?t.value:t.defaultValue;return l.value=o!=null?o:"",l}return e.prototype.validateProps=function(t){var l;if(S.default.Children.count(t.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(S.default.Children.count(t.children)){var o=S.default.Children.only(t.children);if(((l=o)===null||l===void 0?void 0:l.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&t.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},e.prototype.shouldComponentUpdate=function(t,l){var o=this,u;if(this.validateProps(t),!this.editor||this.state.generation!==l.generation)return!0;if("value"in t){var r=this.getEditorContents(),i=(u=t.value,u!=null?u:"");this.isEqualValue(i,r)||this.setEditorContents(this.editor,i)}return t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,t.readOnly),O(this.cleanProps,this.dirtyProps).some(function(f){return!k.default(t[f],o.props[f])})},e.prototype.shouldComponentRegenerate=function(t){var l=this;return this.dirtyProps.some(function(o){return!k.default(t[o],l.props[o])})},e.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},e.prototype.componentWillUnmount=function(){this.destroyEditor()},e.prototype.componentDidUpdate=function(t,l){var o=this;if(this.editor&&this.shouldComponentRegenerate(t)){var u=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:u,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==l.generation){var i=this.regenerationSnapshot,u=i.delta,f=i.selection;delete this.regenerationSnapshot,this.instantiateEditor();var n=this.editor;n.setContents(u),c(function(){return o.setEditorSelection(n,f)})}},e.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},e.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},e.prototype.isControlled=function(){return"value"in this.props},e.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},e.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},e.prototype.createEditor=function(t,l){var o=new p.default(t,l);return l.tabIndex!=null&&this.setEditorTabIndex(o,l.tabIndex),this.hookEditor(o),o},e.prototype.hookEditor=function(t){this.unprivilegedEditor=this.makeUnprivilegedEditor(t),t.on("editor-change",this.onEditorChange)},e.prototype.unhookEditor=function(t){t.off("editor-change",this.onEditorChange)},e.prototype.getEditorContents=function(){return this.value},e.prototype.getEditorSelection=function(){return this.selection},e.prototype.isDelta=function(t){return t&&t.ops},e.prototype.isEqualValue=function(t,l){return this.isDelta(t)&&this.isDelta(l)?k.default(t.ops,l.ops):k.default(t,l)},e.prototype.setEditorContents=function(t,l){var o=this;this.value=l;var u=this.getEditorSelection();typeof l=="string"?t.setContents(t.clipboard.convert(l)):t.setContents(l),c(function(){return o.setEditorSelection(t,u)})},e.prototype.setEditorSelection=function(t,l){if(this.selection=l,l){var o=t.getLength();l.index=Math.max(0,Math.min(l.index,o-1)),l.length=Math.max(0,Math.min(l.length,o-1-l.index)),t.setSelection(l)}},e.prototype.setEditorTabIndex=function(t,l){var o,u;!((u=(o=t)===null||o===void 0?void 0:o.scroll)===null||u===void 0)&&u.domNode&&(t.scroll.domNode.tabIndex=l)},e.prototype.setEditorReadOnly=function(t,l){l?t.disable():t.enable()},e.prototype.makeUnprivilegedEditor=function(t){var l=t;return{getHTML:function(){return l.root.innerHTML},getLength:l.getLength.bind(l),getText:l.getText.bind(l),getContents:l.getContents.bind(l),getSelection:l.getSelection.bind(l),getBounds:l.getBounds.bind(l)}},e.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var t=_.default.findDOMNode(this.editingArea);if(!t)throw new Error("Cannot find element for editing area");if(t.nodeType===3)throw new Error("Editing area cannot be a text node");return t},e.prototype.renderEditingArea=function(){var t=this,l=this.props,o=l.children,u=l.preserveWhitespace,r=this.state.generation,i={key:r,ref:function(f){t.editingArea=f}};return S.default.Children.count(o)?S.default.cloneElement(S.default.Children.only(o),i):u?S.default.createElement("pre",M({},i)):S.default.createElement("div",M({},i))},e.prototype.render=function(){var t;return S.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(t=this.props.className,t!=null?t:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},e.prototype.onEditorChangeText=function(t,l,o,u){var r,i;if(this.editor){var f=this.isDelta(this.value)?u.getContents():u.getHTML();f!==this.getEditorContents()&&(this.lastDeltaChangeSet=l,this.value=f,(i=(r=this.props).onChange)===null||i===void 0||i.call(r,t,l,o,u))}},e.prototype.onEditorChangeSelection=function(t,l,o){var u,r,i,f,n,s;if(this.editor){var A=this.getEditorSelection(),g=!A&&t,b=A&&!t;k.default(t,A)||(this.selection=t,(r=(u=this.props).onChangeSelection)===null||r===void 0||r.call(u,t,l,o),g?(f=(i=this.props).onFocus)===null||f===void 0||f.call(i,t,l,o):b&&((s=(n=this.props).onBlur)===null||s===void 0||s.call(n,A,l,o)))}},e.prototype.focus=function(){this.editor&&this.editor.focus()},e.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},e.displayName="React Quill",e.Quill=p.default,e.defaultProps={theme:"snow",modules:{},readOnly:!1},e}(S.default.Component);function c(a){Promise.resolve().then(a)}dt.exports=m}}]);