Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

737.dce007d2.async.js 223KB

123456789101112131415161718192021222324252627282930313233343536
  1. (self.webpackChunk=self.webpackChunk||[]).push([[737],{19109:function(dt,vt,it){"use strict";it.d(vt,{i$:function(){return a}});var ut=it(45987),j=it(1413),O=it(23323),p=it(62435),P=it(4499),T=it(86074),k=["children"],g=["children"];function y(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.valuePropName||"value",s=r.trigger||"onChange",n=r.name;return{valuePropName:i,trigger:s,name:n}}function c(r,i){var s=r.value,n=r.onChange;if(!Array.isArray(i)){var f=y(i);return _defineProperty(_defineProperty({},f.valuePropName,s),f.trigger,function(E){n==null||n(E!=null&&E.target?E.target[f.valuePropName]:E)})}return i.reduce(function(E,m){var b=y(m),w=b.name||m;return E[w]=_defineProperty(_defineProperty({},b.valuePropName,s==null?void 0:s[w]),b.trigger,function(d){n==null||n(_objectSpread(_objectSpread({},s),{},_defineProperty({},w,d!=null&&d.target?d.target[b.valuePropName]:d)))}),E},{})}function a(r){var i=r.children,s=(0,ut.Z)(r,k),n=O.Z.Item.useStatus(),f=n.status,E=n.errors,m=n.warnings;return i((0,j.Z)({status:f,errors:E,warnings:m},s))}function e(r){return{value:r.value,onChange:function(s){return r.onChange(s!=null&&s.target?s.target.value:s)}}}function t(r){return _objectSpread(_objectSpread({},e(r)),{},{id:r.id})}function l(r){return function(i){var s=i.children,n=(0,ut.Z)(i,g);return(0,T.jsx)(r,(0,j.Z)((0,j.Z)({},n),{},{children:(0,T.jsx)(a,{children:s})}))}}var o=l(O.Z.Item),u=l(P.Z)},5966:function(dt,vt,it){"use strict";var ut=it(97685),j=it(1413),O=it(45987),p=it(21770),P=it(23323),T=it(55241),k=it(97435),g=it(62435),y=it(16764),c=it(86074),a=["fieldProps","proFieldProps"],e=["fieldProps","proFieldProps"],t="text",l=function(s){var n=s.fieldProps,f=s.proFieldProps,E=(0,O.Z)(s,a);return(0,c.jsx)(y.Z,(0,j.Z)({valueType:t,fieldProps:n,filedConfig:{valueType:t},proFieldProps:f},E))},o=function(s){var n=(0,p.Z)(s.open||!1,{value:s.open,onChange:s.onOpenChange}),f=(0,ut.Z)(n,2),E=f[0],m=f[1];return(0,c.jsx)(P.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(w){var d,h=w.getFieldValue(s.name||[]);return(0,c.jsx)(T.Z,(0,j.Z)((0,j.Z)({getPopupContainer:function(_){return _&&_.parentNode?_.parentNode:_},onOpenChange:function(_){return m(_)},content:(0,c.jsxs)("div",{style:{padding:"4px 0"},children:[(d=s.statusRender)===null||d===void 0?void 0:d.call(s,h),s.strengthText?(0,c.jsx)("div",{style:{marginTop:10},children:(0,c.jsx)("span",{children:s.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},s.popoverProps),{},{open:E,children:s.children}))}})},u=function(s){var n=s.fieldProps,f=s.proFieldProps,E=(0,O.Z)(s,e),m=(0,g.useState)(!1),b=(0,ut.Z)(m,2),w=b[0],d=b[1];return n!=null&&n.statusRender&&E.name?(0,c.jsx)(o,{name:E.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:w,onOpenChange:d,children:(0,c.jsx)("div",{children:(0,c.jsx)(y.Z,(0,j.Z)({valueType:"password",fieldProps:(0,j.Z)((0,j.Z)({},(0,k.Z)(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(v){var _;n==null||(_=n.onBlur)===null||_===void 0||_.call(n,v),d(!1)},onClick:function(v){var _;n==null||(_=n.onClick)===null||_===void 0||_.call(n,v),d(!0)}}),proFieldProps:f,filedConfig:{valueType:t}},E))})}):(0,c.jsx)(y.Z,(0,j.Z)({valueType:"password",fieldProps:n,proFieldProps:f,filedConfig:{valueType:t}},E))},r=l;r.Password=u,r.displayName="ProFormComponent",vt.Z=r},40190:function(){"use strict"},18446:function(dt,vt,it){var ut=it(90939);function j(O,p){return ut(O,p)}dt.exports=j},76095:function(dt,vt,it){var ut=it(48764).lW;(function(O,p){dt.exports=p()})(typeof self!="undefined"?self:this,function(){return function(j){var O={};function p(P){if(O[P])return O[P].exports;var T=O[P]={i:P,l:!1,exports:{}};return j[P].call(T.exports,T,T.exports,p),T.l=!0,T.exports}return p.m=j,p.c=O,p.d=function(P,T,k){p.o(P,T)||Object.defineProperty(P,T,{configurable:!1,enumerable:!0,get:k})},p.n=function(P){var T=P&&P.__esModule?function(){return P.default}:function(){return P};return p.d(T,"a",T),T},p.o=function(P,T){return Object.prototype.hasOwnProperty.call(P,T)},p.p="",p(p.s=109)}([function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(17),T=p(18),k=p(19),g=p(45),y=p(46),c=p(47),a=p(48),e=p(49),t=p(12),l=p(32),o=p(33),u=p(31),r=p(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:P.default,Format:T.default,Leaf:k.default,Embed:a.default,Scroll:g.default,Block:c.default,Inline:y.default,Text:e.default,Attributor:{Attribute:t.default,Class:l.default,Style:o.default,Store:u.default}};O.default=i},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&&(r[s]=i[s])};return function(r,i){u(r,i);function s(){this.constructor=r}r.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=function(u){P(r,u);function r(i){var s=this;return i="[Parchment] "+i,s=u.call(this,i)||this,s.message=i,s.name=s.constructor.name,s}return r}(Error);O.ParchmentError=T;var k={},g={},y={},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 T("Unable to create "+u+" blot");var s=i,n=u instanceof Node||u.nodeType===Node.TEXT_NODE?u:s.create(r);return new s(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 s=(u.getAttribute("class")||"").split(/\s+/);for(var n in s)if(i=g[s[n]],i)break;i=i||y[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 T("Invalid definition");if(i.blotName==="abstract")throw new T("Cannot register abstract class");if(c[i.blotName||i.attrName]=i,typeof i.keyName=="string")k[i.keyName]=i;else if(i.className!=null&&(g[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 s=Array.isArray(i.tagName)?i.tagName:[i.tagName];s.forEach(function(n){(y[n]==null||i.className==null)&&(y[n]=i)})}return i}O.register=o},function(j,O,p){var P=p(51),T=p(11),k=p(3),g=p(20),y="\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(T(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+g.length(e):e.delete?a-e.delete:a},0)},c.prototype.length=function(){return this.reduce(function(a,e){return a+g.length(e)},0)},c.prototype.slice=function(a,e){a=a||0,typeof e!="number"&&(e=1/0);for(var t=[],l=g.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+=g.length(u)}return new c(t)},c.prototype.compose=function(a){var e=g.iterator(this.ops),t=g.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()),s=e.next(i),n=t.next(i);if(typeof n.retain=="number"){var f={};typeof s.retain=="number"?f.retain=i:f.insert=s.insert;var E=g.attributes.compose(s.attributes,n.attributes,typeof s.retain=="number");if(E&&(f.attributes=E),r.push(f),!t.hasNext()&&T(r.ops[r.ops.length-1],f)){var m=new c(e.rest());return r.concat(m).chop()}}else typeof n.delete=="number"&&typeof s.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(s){if(s.insert!=null)return typeof s.insert=="string"?s.insert:y;var n=i===a?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),l=new c,o=P(t[0],t[1],e),u=g.iterator(this.ops),r=g.iterator(a.ops);return o.forEach(function(i){for(var s=i[1].length;s>0;){var n=0;switch(i[0]){case P.INSERT:n=Math.min(r.peekLength(),s),l.push(r.next(n));break;case P.DELETE:n=Math.min(s,u.peekLength()),u.next(n),l.delete(n);break;case P.EQUAL:n=Math.min(u.peekLength(),r.peekLength(),s);var f=u.next(n),E=r.next(n);T(f.insert,E.insert)?l.retain(n,g.attributes.diff(f.attributes,E.attributes)):l.push(E).delete(n);break}s-=n}}),l.chop()},c.prototype.eachLine=function(a,e){e=e||`
  2. `;for(var t=g.iterator(this.ops),l=new c,o=0;t.hasNext();){if(t.peekType()!=="insert")return;var u=t.peek(),r=g.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=g.iterator(this.ops),l=g.iterator(a.ops),o=new c;t.hasNext()||l.hasNext();)if(t.peekType()==="insert"&&(e||l.peekType()!=="insert"))o.retain(g.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,g.attributes.transform(r.attributes,i.attributes,e))}return o.chop()},c.prototype.transformPosition=function(a,e){e=!!e;for(var t=g.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},j.exports=c},function(j,O){"use strict";var p=Object.prototype.hasOwnProperty,P=Object.prototype.toString,T=Object.defineProperty,k=Object.getOwnPropertyDescriptor,g=function(t){return typeof Array.isArray=="function"?Array.isArray(t):P.call(t)==="[object Array]"},y=function(t){if(!t||P.call(t)!=="[object Object]")return!1;var l=p.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&p.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!l&&!o)return!1;var u;for(u in t);return typeof u=="undefined"||p.call(t,u)},c=function(t,l){T&&l.name==="__proto__"?T(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(p.call(t,l)){if(k)return k(t,l).value}else return;return t[l]};j.exports=function e(){var t,l,o,u,r,i,s=arguments[0],n=1,f=arguments.length,E=!1;for(typeof s=="boolean"&&(E=s,s=arguments[1]||{},n=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});n<f;++n)if(t=arguments[n],t!=null)for(l in t)o=a(s,l),u=a(t,l),s!==u&&(E&&u&&(y(u)||(r=g(u)))?(r?(r=!1,i=o&&g(o)?o:[]):i=o&&y(o)?o:{},c(s,{name:l,newValue:e(E,i,u)})):typeof u!="undefined"&&c(s,{name:l,newValue:u}));return s}},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BlockEmbed=O.bubbleFormats=void 0;var P=function(){function h(v,_){for(var N=0;N<_.length;N++){var R=_[N];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(v,R.key,R)}}return function(v,_,N){return _&&h(v.prototype,_),N&&h(v,N),v}}(),T=function h(v,_,N){v===null&&(v=Function.prototype);var R=Object.getOwnPropertyDescriptor(v,_);if(R===void 0){var B=Object.getPrototypeOf(v);return B===null?void 0:h(B,_,N)}else{if("value"in R)return R.value;var C=R.get;return C===void 0?void 0:C.call(N)}},k=p(3),g=s(k),y=p(2),c=s(y),a=p(0),e=s(a),t=p(16),l=s(t),o=p(6),u=s(o),r=p(7),i=s(r);function s(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 f(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 E(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 m=1,b=function(h){E(v,h);function v(){return n(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return P(v,[{key:"attach",value:function(){T(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,g.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(N,R){var B=e.default.query(N,e.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,R)}},{key:"formatAt",value:function(N,R,B,C){this.format(B,C)}},{key:"insertAt",value:function(N,R,B){if(typeof R=="string"&&R.endsWith(`
  3. `)){var C=e.default.create(w.blotName);this.parent.insertBefore(C,N===0?this:this.next),C.insertAt(0,R.slice(0,-1))}else T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,N,R,B)}}]),v}(e.default.Embed);b.scope=e.default.Scope.BLOCK_BLOT;var w=function(h){E(v,h);function v(_){n(this,v);var N=f(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,_));return N.cache={},N}return P(v,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(N,R){return R.length()===0?N:N.insert(R.value(),d(R))},new c.default).insert(`
  4. `,d(this))),this.cache.delta}},{key:"deleteAt",value:function(N,R){T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"deleteAt",this).call(this,N,R),this.cache={}}},{key:"formatAt",value:function(N,R,B,C){R<=0||(e.default.query(B,e.default.Scope.BLOCK)?N+R===this.length()&&this.format(B,C):T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,N,Math.min(R,this.length()-N-1),B,C),this.cache={})}},{key:"insertAt",value:function(N,R,B){if(B!=null)return T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,N,R,B);if(R.length!==0){var C=R.split(`
  5. `),W=C.shift();W.length>0&&(N<this.length()-1||this.children.tail==null?T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,Math.min(N,this.length()-1),W):this.children.tail.insertAt(this.children.tail.length(),W),this.cache={});var M=this;C.reduce(function(q,A){return M=M.split(q,!0),M.insertAt(0,A),A.length},N+W.length)}}},{key:"insertBefore",value:function(N,R){var B=this.children.head;T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,N,R),B instanceof l.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"length",this).call(this)+m),this.cache.length}},{key:"moveChildren",value:function(N,R){T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"moveChildren",this).call(this,N,R),this.cache={}}},{key:"optimize",value:function(N){T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,N),this.cache={}}},{key:"path",value:function(N){return T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,N,!0)}},{key:"removeChild",value:function(N){T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"removeChild",this).call(this,N),this.cache={}}},{key:"split",value:function(N){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(N===0||N>=this.length()-m)){var B=this.clone();return N===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var C=T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"split",this).call(this,N,R);return this.cache={},C}}}]),v}(e.default.Block);w.blotName="block",w.tagName="P",w.defaultChild="break",w.allowedChildren=[u.default,e.default.Embed,i.default];function d(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h==null||(typeof h.formats=="function"&&(v=(0,g.default)(v,h.formats())),h.parent==null||h.parent.blotName=="scroll"||h.parent.statics.scope!==h.statics.scope)?v:d(h.parent,v)}O.bubbleFormats=d,O.BlockEmbed=b,O.default=w},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},T=function(){function M(q,A){var S=[],L=!0,F=!1,D=void 0;try{for(var x=q[Symbol.iterator](),I;!(L=(I=x.next()).done)&&(S.push(I.value),!(A&&S.length===A));L=!0);}catch(U){F=!0,D=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw D}}return S}return function(q,A){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return M(q,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function M(q,A){for(var S=0;S<A.length;S++){var L=A[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(q,L.key,L)}}return function(q,A,S){return A&&M(q.prototype,A),S&&M(q,S),q}}();p(50);var g=p(2),y=d(g),c=p(14),a=d(c),e=p(8),t=d(e),l=p(9),o=d(l),u=p(0),r=d(u),i=p(15),s=d(i),n=p(3),f=d(n),E=p(10),m=d(E),b=p(34),w=d(b);function d(M){return M&&M.__esModule?M:{default:M}}function h(M,q,A){return q in M?Object.defineProperty(M,q,{value:A,enumerable:!0,configurable:!0,writable:!0}):M[q]=A,M}function v(M,q){if(!(M instanceof q))throw new TypeError("Cannot call a class as a function")}var _=(0,m.default)("quill"),N=function(){k(M,null,[{key:"debug",value:function(A){A===!0&&(A="log"),m.default.level(A)}},{key:"find",value:function(A){return A.__quill||r.default.find(A)}},{key:"import",value:function(A){return this.imports[A]==null&&_.error("Cannot import "+A+". Are you sure it was registered?"),this.imports[A]}},{key:"register",value:function(A,S){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof A!="string"){var D=A.attrName||A.blotName;typeof D=="string"?this.register("formats/"+D,A,S):Object.keys(A).forEach(function(x){L.register(x,A[x],S)})}else this.imports[A]!=null&&!F&&_.warn("Overwriting "+A+" with",S),this.imports[A]=S,(A.startsWith("blots/")||A.startsWith("formats/"))&&S.blotName!=="abstract"?r.default.register(S):A.startsWith("modules")&&typeof S.register=="function"&&S.register()}}]);function M(q){var A=this,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(v(this,M),this.options=R(q,S),this.container=this.options.container,this.container==null)return _.error("Invalid Quill container",q);this.options.debug&&M.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 s.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&&A.root.classList.toggle("ql-blank",A.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(D,x){var I=A.selection.lastRange,U=I&&I.length===0?I.index:void 0;B.call(A,function(){return A.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(M,[{key:"addContainer",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof A=="string"){var L=A;A=document.createElement("div"),A.classList.add(L)}return this.container.insertBefore(A,S),A}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(A,S,L){var F=this,D=C(A,S,L),x=T(D,4);return A=x[0],S=x[1],L=x[3],B.call(this,function(){return F.editor.deleteText(A,S)},L,A,-1*S)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(A),this.container.classList.toggle("ql-disabled",!A)}},{key:"focus",value:function(){var A=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=A,this.scrollIntoView()}},{key:"format",value:function(A,S){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 y.default;if(D==null)return x;if(r.default.query(A,r.default.Scope.BLOCK))x=L.editor.formatLine(D.index,D.length,h({},A,S));else{if(D.length===0)return L.selection.format(A,S),x;x=L.editor.formatText(D.index,D.length,h({},A,S))}return L.setSelection(D,t.default.sources.SILENT),x},F)}},{key:"formatLine",value:function(A,S,L,F,D){var x=this,I=void 0,U=C(A,S,L,F,D),H=T(U,4);return A=H[0],S=H[1],I=H[2],D=H[3],B.call(this,function(){return x.editor.formatLine(A,S,I)},D,A,0)}},{key:"formatText",value:function(A,S,L,F,D){var x=this,I=void 0,U=C(A,S,L,F,D),H=T(U,4);return A=H[0],S=H[1],I=H[2],D=H[3],B.call(this,function(){return x.editor.formatText(A,S,I)},D,A,0)}},{key:"getBounds",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=void 0;typeof A=="number"?L=this.selection.getBounds(A,S):L=this.selection.getBounds(A.index,A.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 A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,L=C(A,S),F=T(L,2);return A=F[0],S=F[1],this.editor.getContents(A,S)}},{key:"getFormat",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof A=="number"?this.editor.getFormat(A,S):this.editor.getFormat(A.index,A.length)}},{key:"getIndex",value:function(A){return A.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(A){return this.scroll.leaf(A)}},{key:"getLine",value:function(A){return this.scroll.line(A)}},{key:"getLines",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof A!="number"?this.scroll.lines(A.index,A.length):this.scroll.lines(A,S)}},{key:"getModule",value:function(A){return this.theme.modules[A]}},{key:"getSelection",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return A&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,L=C(A,S),F=T(L,2);return A=F[0],S=F[1],this.editor.getText(A,S)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(A,S,L){var F=this,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M.sources.API;return B.call(this,function(){return F.editor.insertEmbed(A,S,L)},D,A)}},{key:"insertText",value:function(A,S,L,F,D){var x=this,I=void 0,U=C(A,0,L,F,D),H=T(U,4);return A=H[0],I=H[2],D=H[3],B.call(this,function(){return x.editor.insertText(A,S,I)},D,A,S.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(A,S,L){this.clipboard.dangerouslyPasteHTML(A,S,L)}},{key:"removeFormat",value:function(A,S,L){var F=this,D=C(A,S,L),x=T(D,4);return A=x[0],S=x[1],L=x[3],B.call(this,function(){return F.editor.removeFormat(A,S)},L,A)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(A){var S=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){A=new y.default(A);var F=S.getLength(),D=S.editor.deleteText(0,F),x=S.editor.applyDelta(A),I=x.ops[x.ops.length-1];I!=null&&typeof I.insert=="string"&&I.insert[I.insert.length-1]===`
  6. `&&(S.editor.deleteText(S.getLength()-1,1),x.delete(1));var U=D.compose(x);return U},L)}},{key:"setSelection",value:function(A,S,L){if(A==null)this.selection.setRange(null,S||M.sources.API);else{var F=C(A,S,L),D=T(F,4);A=D[0],S=D[1],L=D[3],this.selection.setRange(new i.Range(A,S),L),L!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,L=new y.default().insert(A);return this.setContents(L,S)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,S=this.scroll.update(A);return this.selection.update(A),S}},{key:"updateContents",value:function(A){var S=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){return A=new y.default(A),S.editor.applyDelta(A,L)},L,!0)}}]),M}();N.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},N.events=t.default.events,N.sources=t.default.sources,N.version="1.3.7",N.imports={delta:y.default,parchment:r.default,"core/module":o.default,"core/theme":w.default};function R(M,q){if(q=(0,f.default)(!0,{container:M,modules:{clipboard:!0,keyboard:!0,history:!0}},q),!q.theme||q.theme===N.DEFAULTS.theme)q.theme=w.default;else if(q.theme=N.import("themes/"+q.theme),q.theme==null)throw new Error("Invalid theme "+q.theme+". Did you register it?");var A=(0,f.default)(!0,{},q.theme.DEFAULTS);[A,q].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(D){F.modules[D]===!0&&(F.modules[D]={})})});var S=Object.keys(A.modules).concat(Object.keys(q.modules)),L=S.reduce(function(F,D){var x=N.import("modules/"+D);return x==null?_.error("Cannot load "+D+" module. Are you sure you registered it?"):F[D]=x.DEFAULTS||{},F},{});return q.modules!=null&&q.modules.toolbar&&q.modules.toolbar.constructor!==Object&&(q.modules.toolbar={container:q.modules.toolbar}),q=(0,f.default)(!0,{},N.DEFAULTS,{modules:L},A,q),["bounds","container","scrollingContainer"].forEach(function(F){typeof q[F]=="string"&&(q[F]=document.querySelector(q[F]))}),q.modules=Object.keys(q.modules).reduce(function(F,D){return q.modules[D]&&(F[D]=q.modules[D]),F},{}),q}function B(M,q,A,S){if(this.options.strict&&!this.isEnabled()&&q===t.default.sources.USER)return new y.default;var L=A==null?null:this.getSelection(),F=this.editor.delta,D=M();if(L!=null&&(A===!0&&(A=L.index),S==null?L=W(L,D,q):S!==0&&(L=W(L,A,S,q)),this.setSelection(L,t.default.sources.SILENT)),D.length()>0){var x,I=[t.default.events.TEXT_CHANGE,D,F,q];if((x=this.emitter).emit.apply(x,[t.default.events.EDITOR_CHANGE].concat(I)),q!==t.default.sources.SILENT){var U;(U=this.emitter).emit.apply(U,I)}}return D}function C(M,q,A,S,L){var F={};return typeof M.index=="number"&&typeof M.length=="number"?typeof q!="number"?(L=S,S=A,A=q,q=M.length,M=M.index):(q=M.length,M=M.index):typeof q!="number"&&(L=S,S=A,A=q,q=0),(typeof A=="undefined"?"undefined":P(A))==="object"?(F=A,L=S):typeof A=="string"&&(S!=null?F[A]=S:L=A),L=L||t.default.sources.API,[M,q,F,L]}function W(M,q,A,S){if(M==null)return null;var L=void 0,F=void 0;if(q instanceof y.default){var D=[M.index,M.index+M.length].map(function(H){return q.transformPosition(H,S!==t.default.sources.USER)}),x=T(D,2);L=x[0],F=x[1]}else{var I=[M.index,M.index+M.length].map(function(H){return H<q||H===q&&S===t.default.sources.USER?H:A>=0?H+A:Math.max(q,H+A)}),U=T(I,2);L=U[0],F=U[1]}return new i.Range(L,F-L)}O.expandConfig=R,O.overload=C,O.default=N},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(r,i){for(var s=0;s<i.length;s++){var n=i[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,s){return i&&u(r.prototype,i),s&&u(r,s),r}}(),T=function u(r,i,s){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var f=Object.getPrototypeOf(r);return f===null?void 0:u(f,i,s)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(s)}},k=p(7),g=a(k),y=p(0),c=a(y);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 P(r,[{key:"formatAt",value:function(s,n,f,E){if(r.compare(this.statics.blotName,f)<0&&c.default.query(f,c.default.Scope.BLOT)){var m=this.isolate(s,n);E&&m.wrap(f,E)}else T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,s,n,f,E)}},{key:"optimize",value:function(s){if(T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,s),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(s,n){var f=r.order.indexOf(s),E=r.order.indexOf(n);return f>=0||E>=0?f-E:s===n?0:s<n?-1:1}}]),r}(c.default.Inline);o.allowedChildren=[o,c.default.Embed,g.default],o.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],O.default=o},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),T=k(P);function k(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 g(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(T.default.Text);O.default=a},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function i(s,n){for(var f=0;f<n.length;f++){var E=n[f];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(s,E.key,E)}}return function(s,n,f){return n&&i(s.prototype,n),f&&i(s,f),s}}(),T=function i(s,n,f){s===null&&(s=Function.prototype);var E=Object.getOwnPropertyDescriptor(s,n);if(E===void 0){var m=Object.getPrototypeOf(s);return m===null?void 0:i(m,n,f)}else{if("value"in E)return E.value;var b=E.get;return b===void 0?void 0:b.call(f)}},k=p(54),g=a(k),y=p(10),c=a(y);function a(i){return i&&i.__esModule?i:{default:i}}function e(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function t(i,s){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:i}function l(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(i,s):i.__proto__=s)}var o=(0,c.default)("quill:events"),u=["selectionchange","mousedown","mouseup","click"];u.forEach(function(i){document.addEventListener(i,function(){for(var s=arguments.length,n=Array(s),f=0;f<s;f++)n[f]=arguments[f];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(E){if(E.__quill&&E.__quill.emitter){var m;(m=E.__quill.emitter).handleDOM.apply(m,n)}})})});var r=function(i){l(s,i);function s(){e(this,s);var n=t(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return n.listeners={},n.on("error",o.error),n}return P(s,[{key:"emit",value:function(){o.log.apply(o,arguments),T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(f){for(var E=arguments.length,m=Array(E>1?E-1:0),b=1;b<E;b++)m[b-1]=arguments[b];(this.listeners[f.type]||[]).forEach(function(w){var d=w.node,h=w.handler;(f.target===d||d.contains(f.target))&&h.apply(void 0,[f].concat(m))})}},{key:"listenDOM",value:function(f,E,m){this.listeners[f]||(this.listeners[f]=[]),this.listeners[f].push({node:E,handler:m})}}]),s}(g.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(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});function P(k,g){if(!(k instanceof g))throw new TypeError("Cannot call a class as a function")}var T=function k(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P(this,k),this.quill=g,this.options=y};T.DEFAULTS={},O.default=T},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=["error","warn","log","info"],T="warn";function k(y){if(P.indexOf(y)<=P.indexOf(T)){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)[y].apply(c,e)}}function g(y){return P.reduce(function(c,a){return c[a]=k.bind(console,a,y),c},{})}k.level=g.level=function(y){T=y},O.default=g},function(j,O,p){var P=Array.prototype.slice,T=p(52),k=p(53),g=j.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 y(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(y(e)||y(t)||e.prototype!==t.prototype)return!1;if(k(e))return k(t)?(e=P.call(e),t=P.call(t),g(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=T(e),i=T(t)}catch(s){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],!g(e[u],t[u],l))return!1;return typeof e==typeof t}},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function k(g,y,c){c===void 0&&(c={}),this.attrName=g,this.keyName=y;var a=P.Scope.TYPE&P.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&P.Scope.LEVEL|a:this.scope=P.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return k.keys=function(g){return[].map.call(g.attributes,function(y){return y.name})},k.prototype.add=function(g,y){return this.canAdd(g,y)?(g.setAttribute(this.keyName,y),!0):!1},k.prototype.canAdd=function(g,y){var c=P.query(g,P.Scope.BLOT&(this.scope|P.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof y=="string"?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1},k.prototype.remove=function(g){g.removeAttribute(this.keyName)},k.prototype.value=function(g){var y=g.getAttribute(this.keyName);return this.canAdd(g,y)&&y?y:""},k}();O.default=T},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Code=void 0;var P=function(){function b(w,d){var h=[],v=!0,_=!1,N=void 0;try{for(var R=w[Symbol.iterator](),B;!(v=(B=R.next()).done)&&(h.push(B.value),!(d&&h.length===d));v=!0);}catch(C){_=!0,N=C}finally{try{!v&&R.return&&R.return()}finally{if(_)throw N}}return h}return function(w,d){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return b(w,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function b(w,d){for(var h=0;h<d.length;h++){var v=d[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(w,v.key,v)}}return function(w,d,h){return d&&b(w.prototype,d),h&&b(w,h),w}}(),k=function b(w,d,h){w===null&&(w=Function.prototype);var v=Object.getOwnPropertyDescriptor(w,d);if(v===void 0){var _=Object.getPrototypeOf(w);return _===null?void 0:b(_,d,h)}else{if("value"in v)return v.value;var N=v.get;return N===void 0?void 0:N.call(h)}},g=p(2),y=i(g),c=p(0),a=i(c),e=p(4),t=i(e),l=p(6),o=i(l),u=p(7),r=i(u);function i(b){return b&&b.__esModule?b:{default:b}}function s(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}function n(b,w){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:b}function f(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(b,w):b.__proto__=w)}var E=function(b){f(w,b);function w(){return s(this,w),n(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return w}(o.default);E.blotName="code",E.tagName="CODE";var m=function(b){f(w,b);function w(){return s(this,w),n(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return T(w,[{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(_,N){return _.insert(N).insert(`
  9. `,h.formats())},new y.default)}},{key:"format",value:function(h,v){if(!(h===this.statics.blotName&&v)){var _=this.descendant(r.default,this.length()-1),N=P(_,1),R=N[0];R!=null&&R.deleteAt(R.length()-1,1),k(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,h,v)}}},{key:"formatAt",value:function(h,v,_,N){if(v!==0&&!(a.default.query(_,a.default.Scope.BLOCK)==null||_===this.statics.blotName&&N===this.statics.formats(this.domNode))){var R=this.newlineIndex(h);if(!(R<0||R>=h+v)){var B=this.newlineIndex(h,!0)+1,C=R-B+1,W=this.isolate(B,C),M=W.next;W.format(_,N),M instanceof w&&M.formatAt(0,h-B+v-C,_,N)}}}},{key:"insertAt",value:function(h,v,_){if(_==null){var N=this.descendant(r.default,h),R=P(N,2),B=R[0],C=R[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 _=this.domNode.textContent.slice(h).indexOf(`
  12. `);return _>-1?h+_:-1}},{key:"optimize",value:function(h){this.domNode.textContent.endsWith(`
  13. `)||this.appendChild(a.default.create("text",`
  14. `)),k(w.prototype.__proto__||Object.getPrototypeOf(w.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(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,h),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(v){var _=a.default.find(v);_==null?v.parentNode.removeChild(v):_ instanceof a.default.Embed?_.remove():_.unwrap()})}}],[{key:"create",value:function(h){var v=k(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,h);return v.setAttribute("spellcheck",!1),v}},{key:"formats",value:function(){return!0}}]),w}(t.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",O.Code=E,O.default=m},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},T=function(){function M(q,A){var S=[],L=!0,F=!1,D=void 0;try{for(var x=q[Symbol.iterator](),I;!(L=(I=x.next()).done)&&(S.push(I.value),!(A&&S.length===A));L=!0);}catch(U){F=!0,D=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw D}}return S}return function(q,A){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return M(q,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function M(q,A){for(var S=0;S<A.length;S++){var L=A[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(q,L.key,L)}}return function(q,A,S){return A&&M(q.prototype,A),S&&M(q,S),q}}(),g=p(2),y=v(g),c=p(20),a=v(c),e=p(0),t=v(e),l=p(13),o=v(l),u=p(24),r=v(u),i=p(4),s=v(i),n=p(16),f=v(n),E=p(21),m=v(E),b=p(11),w=v(b),d=p(3),h=v(d);function v(M){return M&&M.__esModule?M:{default:M}}function _(M,q,A){return q in M?Object.defineProperty(M,q,{value:A,enumerable:!0,configurable:!0,writable:!0}):M[q]=A,M}function N(M,q){if(!(M instanceof q))throw new TypeError("Cannot call a class as a function")}var R=/^[ -~]*$/,B=function(){function M(q){N(this,M),this.scroll=q,this.delta=this.getDelta()}return k(M,[{key:"applyDelta",value:function(A){var S=this,L=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),A=W(A),A.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),S.scroll.insertAt(D,H);var Z=S.scroll.line(D),Y=T(Z,2),X=Y[0],Q=Y[1],nt=(0,h.default)({},(0,i.bubbleFormats)(X));if(X instanceof s.default){var rt=X.descendant(t.default.Leaf,Q),st=T(rt,1),at=st[0];nt=(0,h.default)(nt,(0,i.bubbleFormats)(at))}U=a.default.attributes.diff(nt,U)||{}}else if(P(x.insert)==="object"){var K=Object.keys(x.insert)[0];if(K==null)return D;S.scroll.insertAt(D,K,x.insert[K])}F+=I}return Object.keys(U).forEach(function(z){S.scroll.formatAt(D,I,z,U[z])}),D+I},0),A.reduce(function(D,x){return typeof x.delete=="number"?(S.scroll.deleteAt(D,x.delete),D):D+(x.retain||x.insert.length||1)},0),this.scroll.batchEnd(),this.update(A)}},{key:"deleteText",value:function(A,S){return this.scroll.deleteAt(A,S),this.update(new y.default().retain(A).delete(S))}},{key:"formatLine",value:function(A,S){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(A,Math.max(S,1)),I=S;x.forEach(function(U){var H=U.length();if(!(U instanceof o.default))U.format(D,F[D]);else{var Z=A-U.offset(L.scroll),Y=U.newlineIndex(Z+I)-Z+1;U.formatAt(Z,Y,D,F[D])}I-=H})}}),this.scroll.optimize(),this.update(new y.default().retain(A).retain(S,(0,m.default)(F)))}},{key:"formatText",value:function(A,S){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(F).forEach(function(D){L.scroll.formatAt(A,S,D,F[D])}),this.update(new y.default().retain(A).retain(S,(0,m.default)(F)))}},{key:"getContents",value:function(A,S){return this.delta.slice(A,A+S)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(A,S){return A.concat(S.delta())},new y.default)}},{key:"getFormat",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=[],F=[];S===0?this.scroll.path(A).forEach(function(x){var I=T(x,1),U=I[0];U instanceof s.default?L.push(U):U instanceof t.default.Leaf&&F.push(U)}):(L=this.scroll.lines(A,S),F=this.scroll.descendants(t.default.Leaf,A,S));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(A,S){return this.getContents(A,S).filter(function(L){return typeof L.insert=="string"}).map(function(L){return L.insert}).join("")}},{key:"insertEmbed",value:function(A,S,L){return this.scroll.insertAt(A,S,L),this.update(new y.default().retain(A).insert(_({},S,L)))}},{key:"insertText",value:function(A,S){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return S=S.replace(/\r\n/g,`
  17. `).replace(/\r/g,`
  18. `),this.scroll.insertAt(A,S),Object.keys(F).forEach(function(D){L.scroll.formatAt(A,S.length,D,F[D])}),this.update(new y.default().retain(A).insert(S,(0,m.default)(F)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var A=this.scroll.children.head;return A.statics.blotName!==s.default.blotName||A.children.length>1?!1:A.children.head instanceof f.default}},{key:"removeFormat",value:function(A,S){var L=this.getText(A,S),F=this.scroll.line(A+S),D=T(F,2),x=D[0],I=D[1],U=0,H=new y.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 Z=this.getContents(A,S+U),Y=Z.diff(new y.default().insert(L).concat(H)),X=new y.default().retain(A).concat(Y);return this.applyDelta(X)}},{key:"update",value:function(A){var S=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(S.length===1&&S[0].type==="characterData"&&S[0].target.data.match(R)&&t.default.find(S[0].target)){var D=t.default.find(S[0].target),x=(0,i.bubbleFormats)(D),I=D.offset(this.scroll),U=S[0].oldValue.replace(r.default.CONTENTS,""),H=new y.default().insert(U),Z=new y.default().insert(D.value()),Y=new y.default().retain(I).concat(H.diff(Z,L));A=Y.reduce(function(X,Q){return Q.insert?X.insert(Q.insert,x):X.push(Q)},new y.default),this.delta=F.compose(A)}else this.delta=this.getDelta(),(!A||!(0,w.default)(F.compose(A),this.delta))&&(A=F.diff(this.delta,L));return A}}]),M}();function C(M,q){return Object.keys(q).reduce(function(A,S){return M[S]==null||(q[S]===M[S]?A[S]=q[S]:Array.isArray(q[S])?q[S].indexOf(M[S])<0&&(A[S]=q[S].concat([M[S]])):A[S]=[q[S],M[S]]),A},{})}function W(M){return M.reduce(function(q,A){if(A.insert===1){var S=(0,m.default)(A.attributes);return delete S.image,q.insert({image:A.attributes.image},S)}if(A.attributes!=null&&(A.attributes.list===!0||A.attributes.bullet===!0)&&(A=(0,m.default)(A),A.attributes.list?A.attributes.list="ordered":(A.attributes.list="bullet",delete A.attributes.bullet)),typeof A.insert=="string"){var L=A.insert.replace(/\r\n/g,`
  20. `).replace(/\r/g,`
  21. `);return q.insert(L,A.attributes)}return q.push(A)},new y.default)}O.default=B},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void 0;var P=function(){function b(w,d){var h=[],v=!0,_=!1,N=void 0;try{for(var R=w[Symbol.iterator](),B;!(v=(B=R.next()).done)&&(h.push(B.value),!(d&&h.length===d));v=!0);}catch(C){_=!0,N=C}finally{try{!v&&R.return&&R.return()}finally{if(_)throw N}}return h}return function(w,d){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return b(w,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function b(w,d){for(var h=0;h<d.length;h++){var v=d[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(w,v.key,v)}}return function(w,d,h){return d&&b(w.prototype,d),h&&b(w,h),w}}(),k=p(0),g=r(k),y=p(21),c=r(y),a=p(11),e=r(a),t=p(8),l=r(t),o=p(10),u=r(o);function r(b){return b&&b.__esModule?b:{default:b}}function i(b){if(Array.isArray(b)){for(var w=0,d=Array(b.length);w<b.length;w++)d[w]=b[w];return d}else return Array.from(b)}function s(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}var n=(0,u.default)("quill:selection"),f=function b(w){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;s(this,b),this.index=w,this.length=d},E=function(){function b(w,d){var h=this;s(this,b),this.emitter=d,this.scroll=w,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=g.default.create("cursor",this),this.lastRange=this.savedRange=new f(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,_){v===l.default.events.TEXT_CHANGE&&_.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(_){}})}}),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,function(v,_){if(_.range){var N=_.range,R=N.startNode,B=N.startOffset,C=N.endNode,W=N.endOffset;h.setNativeRange(R,B,C,W)}}),this.update(l.default.sources.SILENT)}return T(b,[{key:"handleComposition",value:function(){var d=this;this.root.addEventListener("compositionstart",function(){d.composing=!0}),this.root.addEventListener("compositionend",function(){if(d.composing=!1,d.cursor.parent){var h=d.cursor.restore();if(!h)return;setTimeout(function(){d.setNativeRange(h.startNode,h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var d=this;this.emitter.listenDOM("mousedown",document.body,function(){d.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){d.mouseDown=!1,d.update(l.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(d,h){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[d])){this.scroll.update();var v=this.getNativeRange();if(!(v==null||!v.native.collapsed||g.default.query(d,g.default.Scope.BLOCK))){if(v.start.node!==this.cursor.textNode){var _=g.default.find(v.start.node,!1);if(_==null)return;if(_ instanceof g.default.Leaf){var N=_.split(v.start.offset);_.parent.insertBefore(this.cursor,N)}else _.insertBefore(this.cursor,v.start.node);this.cursor.attach()}this.cursor.format(d,h),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v=this.scroll.length();d=Math.min(d,v-1),h=Math.min(d+h,v-1)-d;var _=void 0,N=this.scroll.leaf(d),R=P(N,2),B=R[0],C=R[1];if(B==null)return null;var W=B.position(C,!0),M=P(W,2);_=M[0],C=M[1];var q=document.createRange();if(h>0){q.setStart(_,C);var A=this.scroll.leaf(d+h),S=P(A,2);if(B=S[0],C=S[1],B==null)return null;var L=B.position(C,!0),F=P(L,2);return _=F[0],C=F[1],q.setEnd(_,C),q.getBoundingClientRect()}else{var D="left",x=void 0;return _ instanceof Text?(C<_.data.length?(q.setStart(_,C),q.setEnd(_,C+1)):(q.setStart(_,C-1),q.setEnd(_,C),D="right"),x=q.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 d=document.getSelection();if(d==null||d.rangeCount<=0)return null;var h=d.getRangeAt(0);if(h==null)return null;var v=this.normalizeNative(h);return n.info("getNativeRange",v),v}},{key:"getRange",value:function(){var d=this.getNativeRange();if(d==null)return[null,null];var h=this.normalizedToRange(d);return[h,d]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(d){var h=this,v=[[d.start.node,d.start.offset]];d.native.collapsed||v.push([d.end.node,d.end.offset]);var _=v.map(function(B){var C=P(B,2),W=C[0],M=C[1],q=g.default.find(W,!0),A=q.offset(h.scroll);return M===0?A:q instanceof g.default.Container?A+q.length():A+q.index(W,M)}),N=Math.min(Math.max.apply(Math,i(_)),this.scroll.length()-1),R=Math.min.apply(Math,[N].concat(i(_)));return new f(R,N-R)}},{key:"normalizeNative",value:function(d){if(!m(this.root,d.startContainer)||!d.collapsed&&!m(this.root,d.endContainer))return null;var h={start:{node:d.startContainer,offset:d.startOffset},end:{node:d.endContainer,offset:d.endOffset},native:d};return[h.start,h.end].forEach(function(v){for(var _=v.node,N=v.offset;!(_ instanceof Text)&&_.childNodes.length>0;)if(_.childNodes.length>N)_=_.childNodes[N],N=0;else if(_.childNodes.length===N)_=_.lastChild,N=_ instanceof Text?_.data.length:_.childNodes.length+1;else break;v.node=_,v.offset=N}),h}},{key:"rangeToNative",value:function(d){var h=this,v=d.collapsed?[d.index]:[d.index,d.index+d.length],_=[],N=this.scroll.length();return v.forEach(function(R,B){R=Math.min(N-1,R);var C=void 0,W=h.scroll.leaf(R),M=P(W,2),q=M[0],A=M[1],S=q.position(A,B!==0),L=P(S,2);C=L[0],A=L[1],_.push(C,A)}),_.length<2&&(_=_.concat(_)),_}},{key:"scrollIntoView",value:function(d){var h=this.lastRange;if(h!=null){var v=this.getBounds(h.index,h.length);if(v!=null){var _=this.scroll.length()-1,N=this.scroll.line(Math.min(h.index,_)),R=P(N,1),B=R[0],C=B;if(h.length>0){var W=this.scroll.line(Math.min(h.index+h.length,_)),M=P(W,1);C=M[0]}if(!(B==null||C==null)){var q=d.getBoundingClientRect();v.top<q.top?d.scrollTop-=q.top-v.top:v.bottom>q.bottom&&(d.scrollTop+=v.bottom-q.bottom)}}}}},{key:"setNativeRange",value:function(d,h){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",d,h,v,_),!(d!=null&&(this.root.parentNode==null||d.parentNode==null||v.parentNode==null))){var R=document.getSelection();if(R!=null)if(d!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||N||d!==B.startContainer||h!==B.startOffset||v!==B.endContainer||_!==B.endOffset){d.tagName=="BR"&&(h=[].indexOf.call(d.parentNode.childNodes,d),d=d.parentNode),v.tagName=="BR"&&(_=[].indexOf.call(v.parentNode.childNodes,v),v=v.parentNode);var C=document.createRange();C.setStart(d,h),C.setEnd(v,_),R.removeAllRanges(),R.addRange(C)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(d){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",d),d!=null){var _=this.rangeToNative(d);this.setNativeRange.apply(this,i(_).concat([h]))}else this.setNativeRange(null);this.update(v)}},{key:"update",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.default.sources.USER,h=this.lastRange,v=this.getRange(),_=P(v,2),N=_[0],R=_[1];if(this.lastRange=N,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(h,this.lastRange)){var B;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var C=[l.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(h),d];if((B=this.emitter).emit.apply(B,[l.default.events.EDITOR_CHANGE].concat(C)),d!==l.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,C)}}}}]),b}();function m(b,w){try{w.parentNode}catch(d){return!1}return w instanceof Text&&(w=w.parentNode),b.contains(w)}O.Range=f,O.default=E},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=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}}(),T=function l(o,u,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,u);if(i===void 0){var s=Object.getPrototypeOf(o);return s===null?void 0:l(s,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},k=p(0),g=y(k);function y(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 P(o,[{key:"insertInto",value:function(r,i){r.children.length===0?T(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}(g.default.Embed);t.blotName="break",t.tagName="BR",O.default=t},function(j,O,p){"use strict";var P=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 T=p(44),k=p(30),g=p(1),y=function(a){P(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 T.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 g.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,s,n){(t.blotName==null&&t(i)||t.blotName!=null&&i instanceof t)&&u.push(i),i instanceof e&&(u=u.concat(i.descendants(t,s,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,s){r.formatAt(i,s,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 s=o==null?g.create("text",l):g.create(l,o);this.appendChild(s)}},e.prototype.insertBefore=function(t,l){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(o){return t instanceof o}))throw new g.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=g.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 s=g.find(i);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===o.domNode)&&s.detach()}}),u.filter(function(i){return i.parentNode==o.domNode}).sort(function(i,s){return i===s?0:i.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var s=null;i.nextSibling!=null&&(s=g.find(i.nextSibling));var n=c(i);(n.next!=s||n.next==null)&&(n.parent!=null&&n.parent.removeChild(o),o.insertBefore(n,s||void 0))})},e}(k.default);function c(a){var e=g.find(a);if(e==null)try{e=g.create(a)}catch(t){e=g.create(g.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=y},function(j,O,p){"use strict";var P=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 T=p(12),k=p(31),g=p(17),y=p(1),c=function(a){P(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=y.query(t);o instanceof T.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}(g.default);O.default=c},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var y=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){y(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 T=p(30),k=p(1),g=function(y){P(c,y);function c(){return y!==null&&y.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}(T.default);O.default=g},function(j,O,p){var P=p(11),T=p(3),k={attributes:{compose:function(y,c,a){typeof y!="object"&&(y={}),typeof c!="object"&&(c={});var e=T(!0,{},c);a||(e=Object.keys(e).reduce(function(l,o){return e[o]!=null&&(l[o]=e[o]),l},{}));for(var t in y)y[t]!==void 0&&c[t]===void 0&&(e[t]=y[t]);return Object.keys(e).length>0?e:void 0},diff:function(y,c){typeof y!="object"&&(y={}),typeof c!="object"&&(c={});var a=Object.keys(y).concat(Object.keys(c)).reduce(function(e,t){return P(y[t],c[t])||(e[t]=c[t]===void 0?null:c[t]),e},{});return Object.keys(a).length>0?a:void 0},transform:function(y,c,a){if(typeof y!="object")return c;if(typeof c=="object"){if(!a)return c;var e=Object.keys(c).reduce(function(t,l){return y[l]===void 0&&(t[l]=c[l]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(y){return new g(y)},length:function(y){return typeof y.delete=="number"?y.delete:typeof y.retain=="number"?y.retain:typeof y.insert=="string"?y.insert.length:1}};function g(y){this.ops=y,this.index=0,this.offset=0}g.prototype.hasNext=function(){return this.peekLength()<1/0},g.prototype.next=function(y){y||(y=1/0);var c=this.ops[this.index];if(c){var a=this.offset,e=k.length(c);if(y>=e-a?(y=e-a,this.index+=1,this.offset=0):this.offset+=y,typeof c.delete=="number")return{delete:y};var t={};return c.attributes&&(t.attributes=c.attributes),typeof c.retain=="number"?t.retain=y:typeof c.insert=="string"?t.insert=c.insert.substr(a,y):t.insert=c.insert,t}else return{retain:1/0}},g.prototype.peek=function(){return this.ops[this.index]},g.prototype.peekLength=function(){return this.ops[this.index]?k.length(this.ops[this.index])-this.offset:1/0},g.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"},g.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var y=this.offset,c=this.index,a=this.next(),e=this.ops.slice(this.index);return this.offset=y,this.index=c,[a].concat(e)}else return[]},j.exports=k},function(j,O){var p=function(){"use strict";function P(o,u){return u!=null&&o instanceof u}var T;try{T=Map}catch(o){T=function(){}}var k;try{k=Set}catch(o){k=function(){}}var g;try{g=Promise}catch(o){g=function(){}}function y(o,u,r,i,s){typeof u=="object"&&(r=u.depth,i=u.prototype,s=u.includeNonEnumerable,u=u.circular);var n=[],f=[],E=typeof ut!="undefined";typeof u=="undefined"&&(u=!0),typeof r=="undefined"&&(r=1/0);function m(b,w){if(b===null)return null;if(w===0)return b;var d,h;if(typeof b!="object")return b;if(P(b,T))d=new T;else if(P(b,k))d=new k;else if(P(b,g))d=new g(function(q,A){b.then(function(S){q(m(S,w-1))},function(S){A(m(S,w-1))})});else if(y.__isArray(b))d=[];else if(y.__isRegExp(b))d=new RegExp(b.source,l(b)),b.lastIndex&&(d.lastIndex=b.lastIndex);else if(y.__isDate(b))d=new Date(b.getTime());else{if(E&&ut.isBuffer(b))return ut.allocUnsafe?d=ut.allocUnsafe(b.length):d=new ut(b.length),b.copy(d),d;P(b,Error)?d=Object.create(b):typeof i=="undefined"?(h=Object.getPrototypeOf(b),d=Object.create(h)):(d=Object.create(i),h=i)}if(u){var v=n.indexOf(b);if(v!=-1)return f[v];n.push(b),f.push(d)}P(b,T)&&b.forEach(function(q,A){var S=m(A,w-1),L=m(q,w-1);d.set(S,L)}),P(b,k)&&b.forEach(function(q){var A=m(q,w-1);d.add(A)});for(var _ in b){var N;h&&(N=Object.getOwnPropertyDescriptor(h,_)),!(N&&N.set==null)&&(d[_]=m(b[_],w-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(b),_=0;_<R.length;_++){var B=R[_],C=Object.getOwnPropertyDescriptor(b,B);C&&!C.enumerable&&!s||(d[B]=m(b[B],w-1),C.enumerable||Object.defineProperty(d,B,{enumerable:!1}))}if(s)for(var W=Object.getOwnPropertyNames(b),_=0;_<W.length;_++){var M=W[_],C=Object.getOwnPropertyDescriptor(b,M);C&&C.enumerable||(d[M]=m(b[M],w-1),Object.defineProperty(d,M,{enumerable:!1}))}return d}return m(o,r)}y.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)}y.__objToStr=c;function a(o){return typeof o=="object"&&c(o)==="[object Date]"}y.__isDate=a;function e(o){return typeof o=="object"&&c(o)==="[object Array]"}y.__isArray=e;function t(o){return typeof o=="object"&&c(o)==="[object RegExp]"}y.__isRegExp=t;function l(o){var u="";return o.global&&(u+="g"),o.ignoreCase&&(u+="i"),o.multiline&&(u+="m"),u}return y.__getRegExpFlags=l,y}();typeof j=="object"&&j.exports&&(j.exports=p)},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function d(h,v){var _=[],N=!0,R=!1,B=void 0;try{for(var C=h[Symbol.iterator](),W;!(N=(W=C.next()).done)&&(_.push(W.value),!(v&&_.length===v));N=!0);}catch(M){R=!0,B=M}finally{try{!N&&C.return&&C.return()}finally{if(R)throw B}}return _}return function(h,v){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return d(h,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function d(h,v){for(var _=0;_<v.length;_++){var N=v[_];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(h,N.key,N)}}return function(h,v,_){return v&&d(h.prototype,v),_&&d(h,_),h}}(),k=function d(h,v,_){h===null&&(h=Function.prototype);var N=Object.getOwnPropertyDescriptor(h,v);if(N===void 0){var R=Object.getPrototypeOf(h);return R===null?void 0:d(R,v,_)}else{if("value"in N)return N.value;var B=N.get;return B===void 0?void 0:B.call(_)}},g=p(0),y=n(g),c=p(8),a=n(c),e=p(4),t=n(e),l=p(16),o=n(l),u=p(13),r=n(u),i=p(25),s=n(i);function n(d){return d&&d.__esModule?d:{default:d}}function f(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function E(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function m(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}function b(d){return d instanceof t.default||d instanceof e.BlockEmbed}var w=function(d){m(h,d);function h(v,_){f(this,h);var N=E(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,v));return N.emitter=_.emitter,Array.isArray(_.whitelist)&&(N.whitelist=_.whitelist.reduce(function(R,B){return R[B]=!0,R},{})),N.domNode.addEventListener("DOMNodeInserted",function(){}),N.optimize(),N.enable(),N}return T(h,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(_,N){var R=this.line(_),B=P(R,2),C=B[0],W=B[1],M=this.line(_+N),q=P(M,1),A=q[0];if(k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"deleteAt",this).call(this,_,N),A!=null&&C!==A&&W>0){if(C instanceof e.BlockEmbed||A instanceof e.BlockEmbed){this.optimize();return}if(C instanceof r.default){var S=C.newlineIndex(C.length(),!0);if(S>-1&&(C=C.split(S+1),C===A)){this.optimize();return}}else if(A instanceof r.default){var L=A.newlineIndex(0);L>-1&&A.split(L+1)}var F=A.children.head instanceof o.default?null:A.children.head;C.moveChildren(A,F),C.remove()}this.optimize()}},{key:"enable",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",_)}},{key:"formatAt",value:function(_,N,R,B){this.whitelist!=null&&!this.whitelist[R]||(k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,_,N,R,B),this.optimize())}},{key:"insertAt",value:function(_,N,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[N])){if(_>=this.length())if(R==null||y.default.query(N,y.default.Scope.BLOCK)==null){var B=y.default.create(this.statics.defaultChild);this.appendChild(B),R==null&&N.endsWith(`
  22. `)&&(N=N.slice(0,-1)),B.insertAt(0,N,R)}else{var C=y.default.create(N,R);this.appendChild(C)}else k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertAt",this).call(this,_,N,R);this.optimize()}}},{key:"insertBefore",value:function(_,N){if(_.statics.scope===y.default.Scope.INLINE_BLOT){var R=y.default.create(this.statics.defaultChild);R.appendChild(_),_=R}k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertBefore",this).call(this,_,N)}},{key:"leaf",value:function(_){return this.path(_).pop()||[null,-1]}},{key:"line",value:function(_){return _===this.length()?this.line(_-1):this.descendant(b,_)}},{key:"lines",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,R=function B(C,W,M){var q=[],A=M;return C.children.forEachAt(W,M,function(S,L,F){b(S)?q.push(S):S instanceof y.default.Container&&(q=q.concat(B(S,L,A))),A-=F}),q};return R(this,_,N)}},{key:"optimize",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,_,N),_.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,_,N))}},{key:"path",value:function(_){return k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"path",this).call(this,_).slice(1)}},{key:"update",value:function(_){if(this.batch!==!0){var N=a.default.sources.USER;typeof _=="string"&&(N=_),Array.isArray(_)||(_=this.observer.takeRecords()),_.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,N,_),k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"update",this).call(this,_.concat([])),_.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,N,_)}}}]),h}(y.default.Scroll);w.blotName="scroll",w.className="ql-editor",w.tagName="DIV",w.defaultChild="block",w.allowedChildren=[t.default,e.BlockEmbed,s.default],O.default=w},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var P=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},T=function(){function x(I,U){var H=[],Z=!0,Y=!1,X=void 0;try{for(var Q=I[Symbol.iterator](),nt;!(Z=(nt=Q.next()).done)&&(H.push(nt.value),!(U&&H.length===U));Z=!0);}catch(rt){Y=!0,X=rt}finally{try{!Z&&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 Z=U[H];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(I,Z.key,Z)}}return function(I,U,H){return U&&x(I.prototype,U),H&&x(I,H),I}}(),g=p(21),y=d(g),c=p(11),a=d(c),e=p(3),t=d(e),l=p(2),o=d(l),u=p(20),r=d(u),i=p(0),s=d(i),n=p(5),f=d(n),E=p(10),m=d(E),b=p(9),w=d(b);function d(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 _(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 N(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 R=(0,m.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(x){N(I,x),k(I,null,[{key:"match",value:function(H,Z){return Z=D(Z),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Y){return!!Z[Y]!==H[Y]&&Z[Y]!==null})?!1:Z.key===(H.which||H.keyCode)}}]);function I(U,H){v(this,I);var Z=_(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,U,H));return Z.bindings={},Object.keys(Z.options.bindings).forEach(function(Y){Y==="list autofill"&&U.scroll.whitelist!=null&&!U.scroll.whitelist.list||Z.options.bindings[Y]&&Z.addBinding(Z.options.bindings[Y])}),Z.addBinding({key:I.keys.ENTER,shiftKey:null},S),Z.addBinding({key:I.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Z.addBinding({key:I.keys.BACKSPACE},{collapsed:!0},M),Z.addBinding({key:I.keys.DELETE},{collapsed:!0},q)):(Z.addBinding({key:I.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},M),Z.addBinding({key:I.keys.DELETE},{collapsed:!0,suffix:/^.?$/},q)),Z.addBinding({key:I.keys.BACKSPACE},{collapsed:!1},A),Z.addBinding({key:I.keys.DELETE},{collapsed:!1},A),Z.addBinding({key:I.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},M),Z.listen(),Z}return k(I,[{key:"addBinding",value:function(H){var Z=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 R.warn("Attempted to add invalid keyboard binding",X);typeof Z=="function"&&(Z={handler:Z}),typeof Y=="function"&&(Y={handler:Y}),X=(0,t.default)(X,Z,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(Z){if(!Z.defaultPrevented){var Y=Z.which||Z.keyCode,X=(H.bindings[Y]||[]).filter(function(lt){return I.match(Z,lt)});if(X.length!==0){var Q=H.quill.getSelection();if(!(Q==null||!H.quill.hasFocus())){var nt=H.quill.getLine(Q.index),rt=T(nt,2),st=rt[0],at=rt[1],K=H.quill.getLeaf(Q.index),z=T(K,2),$=z[0],G=z[1],V=Q.length===0?[$,G]:H.quill.getLeaf(Q.index+Q.length),J=T(V,2),tt=J[0],et=J[1],ft=$ instanceof s.default.Text?$.value().slice(0,G):"",ct=tt instanceof s.default.Text?tt.value().slice(et):"",ot={collapsed:Q.length===0,empty:Q.length===0&&st.length()<=1,format:H.quill.getFormat(Q),offset:at,prefix:ft,suffix:ct},pt=X.some(function(lt){if(lt.collapsed!=null&&lt.collapsed!==ot.collapsed||lt.empty!=null&&lt.empty!==ot.empty||lt.offset!=null&&lt.offset!==ot.offset)return!1;if(Array.isArray(lt.format)){if(lt.format.every(function(ht){return ot.format[ht]==null}))return!1}else if(P(lt.format)==="object"&&!Object.keys(lt.format).every(function(ht){return lt.format[ht]===!0?ot.format[ht]!=null:lt.format[ht]===!1?ot.format[ht]==null:(0,a.default)(lt.format[ht],ot.format[ht])}))return!1;return lt.prefix!=null&&!lt.prefix.test(ot.prefix)||lt.suffix!=null&&!lt.suffix.test(ot.suffix)?!1:lt.handler.call(H,Q,ot)!==!0});pt&&Z.preventDefault()}}}})}}]),I}(w.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",f.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",f.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",f.default.sources.USER):U.format.list!=null&&this.quill.format("list",!1,f.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,f.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,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index+1,f.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,f.default.sources.USER),U.format.indent&&this.quill.format("indent",!1,f.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=T(U,2),Z=H[0],Y=H[1],X=(0,t.default)({},Z.formats(),{list:"checked"}),Q=new o.default().retain(I.index).insert(`
  23. `,X).retain(Z.length()-Y-1).retain(1,{list:"unchecked"});this.quill.updateContents(Q,f.default.sources.USER),this.quill.setSelection(I.index+1,f.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),Z=T(H,2),Y=Z[0],X=Z[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,f.default.sources.USER),this.quill.setSelection(I.index+1,f.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,Z=this.quill.getLine(I.index),Y=T(Z,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," ",f.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,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index-H,f.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=T(U,2),Z=H[0],Y=H[1],X=new o.default().retain(I.index+Z.length()-Y-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(X,f.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=T(Q,1),rt=nt[0];return rt instanceof s.default.Embed?(x===C.keys.LEFT?I?this.quill.setSelection(Y.index-1,Y.length+1,f.default.sources.USER):this.quill.setSelection(Y.index-1,f.default.sources.USER):I?this.quill.setSelection(Y.index,Y.length+1,f.default.sources.USER):this.quill.setSelection(Y.index+Y.length+1,f.default.sources.USER),!1):!0}),U}function M(x,I){if(!(x.index===0||this.quill.getLength()<=1)){var U=this.quill.getLine(x.index),H=T(U,1),Z=H[0],Y={};if(I.offset===0){var X=this.quill.getLine(x.index-1),Q=T(X,1),nt=Q[0];if(nt!=null&&nt.length()>1){var rt=Z.formats(),st=this.quill.getFormat(x.index-1,1);Y=r.default.attributes.diff(rt,st)||{}}}var at=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(I.prefix)?2:1;this.quill.deleteText(x.index-at,at,f.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(x.index-at,at,Y,f.default.sources.USER),this.quill.focus()}}function q(x,I){var U=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(I.suffix)?2:1;if(!(x.index>=this.quill.getLength()-U)){var H={},Z=0,Y=this.quill.getLine(x.index),X=T(Y,1),Q=X[0];if(I.offset>=Q.length()-1){var nt=this.quill.getLine(x.index+1),rt=T(nt,1),st=rt[0];if(st){var at=Q.formats(),K=this.quill.getFormat(x.index,1);H=r.default.attributes.diff(at,K)||{},Z=st.length()}}this.quill.deleteText(x.index,U,f.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(x.index+Z-1,U,H,f.default.sources.USER)}}function A(x){var I=this.quill.getLines(x),U={};if(I.length>1){var H=I[0].formats(),Z=I[I.length-1].formats();U=r.default.attributes.diff(Z,H)||{}}this.quill.deleteText(x,f.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(x.index,1,U,f.default.sources.USER),this.quill.setSelection(x.index,f.default.sources.SILENT),this.quill.focus()}function S(x,I){var U=this;x.length>0&&this.quill.scroll.deleteAt(x.index,x.length);var H=Object.keys(I.format).reduce(function(Z,Y){return s.default.query(Y,s.default.Scope.BLOCK)&&!Array.isArray(I.format[Y])&&(Z[Y]=I.format[Y]),Z},{});this.quill.insertText(x.index,`
  25. `,H,f.default.sources.USER),this.quill.setSelection(x.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(I.format).forEach(function(Z){H[Z]==null&&(Array.isArray(I.format[Z])||Z!=="link"&&U.quill.format(Z,I.format[Z],f.default.sources.USER))})}function L(x){return{key:C.keys.TAB,shiftKey:!x,format:{"code-block":!0},handler:function(U){var H=s.default.query("code-block"),Z=U.index,Y=U.length,X=this.quill.scroll.descendant(H,Z),Q=T(X,2),nt=Q[0],rt=Q[1];if(nt!=null){var st=this.quill.getIndex(nt),at=nt.newlineIndex(rt,!0)+1,K=nt.newlineIndex(st+rt+Y),z=nt.domNode.textContent.slice(at,K).split(`
  26. `);rt=0,z.forEach(function($,G){x?(nt.insertAt(at+rt,H.TAB),rt+=H.TAB.length,G===0?Z+=H.TAB.length:Y+=H.TAB.length):$.startsWith(H.TAB)&&(nt.deleteAt(at+rt,H.TAB.length),rt-=H.TAB.length,G===0?Z-=H.TAB.length:Y-=H.TAB.length),rt+=$.length+1}),this.quill.update(f.default.sources.USER),this.quill.setSelection(Z,Y,f.default.sources.SILENT)}}}}function F(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(U,H){this.quill.format(x,!H.format[x],f.default.sources.USER)}}}function D(x){if(typeof x=="string"||typeof x=="number")return D({key:x});if((typeof x=="undefined"?"undefined":P(x))==="object"&&(x=(0,y.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(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function r(i,s){var n=[],f=!0,E=!1,m=void 0;try{for(var b=i[Symbol.iterator](),w;!(f=(w=b.next()).done)&&(n.push(w.value),!(s&&n.length===s));f=!0);}catch(d){E=!0,m=d}finally{try{!f&&b.return&&b.return()}finally{if(E)throw m}}return n}return function(i,s){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function r(i,s,n){i===null&&(i=Function.prototype);var f=Object.getOwnPropertyDescriptor(i,s);if(f===void 0){var E=Object.getPrototypeOf(i);return E===null?void 0:r(E,s,n)}else{if("value"in f)return f.value;var m=f.get;return m===void 0?void 0:m.call(n)}},k=function(){function r(i,s){for(var n=0;n<s.length;n++){var f=s[n];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}return function(i,s,n){return s&&r(i.prototype,s),n&&r(i,n),i}}(),g=p(0),y=e(g),c=p(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(s,n){t(this,i);var f=l(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,s));return f.selection=n,f.textNode=document.createTextNode(i.CONTENTS),f.domNode.appendChild(f.textNode),f._length=0,f}return k(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,f){if(this._length!==0)return T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,f);for(var E=this,m=0;E!=null&&E.statics.scope!==y.default.Scope.BLOCK_BLOT;)m+=E.offset(E.parent),E=E.parent;E!=null&&(this._length=i.CONTENTS.length,E.optimize(),E.formatAt(m,i.CONTENTS.length,n,f),this._length=0)}},{key:"index",value:function(n,f){return n===this.textNode?0:T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,f)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){T(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,f=this.selection.getNativeRange(),E=void 0,m=void 0,b=void 0;if(f!=null&&f.start.node===n&&f.end.node===n){var w=[n,f.start.offset,f.end.offset];E=w[0],m=w[1],b=w[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 d=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof a.default?(E=this.next.domNode,this.next.insertAt(0,d),this.textNode.data=i.CONTENTS):(this.textNode.data=d,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),m!=null){var h=[m,b].map(function(_){return Math.max(0,Math.min(E.data.length,_-1))}),v=P(h,2);return m=v[0],b=v[1],{startNode:E,startOffset:m,endNode:E,endOffset:b}}}}},{key:"update",value:function(n,f){var E=this;if(n.some(function(b){return b.type==="characterData"&&b.target===E.textNode})){var m=this.restore();m&&(f.range=m)}}},{key:"value",value:function(){return""}}]),i}(y.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\uFEFF",O.default=u},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),T=y(P),k=p(4),g=y(k);function y(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}(T.default.Container);t.allowedChildren=[g.default,k.BlockEmbed,t],O.default=t},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.ColorStyle=O.ColorClass=O.ColorAttributor=void 0;var P=function(){function u(r,i){for(var s=0;s<i.length;s++){var n=i[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,s){return i&&u(r.prototype,i),s&&u(r,s),r}}(),T=function u(r,i,s){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var f=Object.getPrototypeOf(r);return f===null?void 0:u(f,i,s)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(s)}},k=p(0),g=y(k);function y(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 P(r,[{key:"value",value:function(s){var n=T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,s);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(f){return("00"+parseInt(f).toString(16)).slice(-2)}).join("")):n}}]),r}(g.default.Attributor.Style),l=new g.default.Attributor.Class("color","ql-color",{scope:g.default.Scope.INLINE}),o=new t("color","color",{scope:g.default.Scope.INLINE});O.ColorAttributor=t,O.ColorClass=l,O.ColorStyle=o},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.sanitize=O.default=void 0;var P=function(){function o(u,r){for(var i=0;i<r.length;i++){var s=r[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,r,i){return r&&o(u.prototype,r),i&&o(u,i),u}}(),T=function o(u,r,i){u===null&&(u=Function.prototype);var s=Object.getOwnPropertyDescriptor(u,r);if(s===void 0){var n=Object.getPrototypeOf(u);return n===null?void 0:o(n,r,i)}else{if("value"in s)return s.value;var f=s.get;return f===void 0?void 0:f.call(i)}},k=p(6),g=y(k);function y(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 P(u,[{key:"format",value:function(i,s){if(i!==this.statics.blotName||!s)return T(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"format",this).call(this,i,s);s=this.constructor.sanitize(s),this.domNode.setAttribute("href",s)}}],[{key:"create",value:function(i){var s=T(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,i);return i=this.sanitize(i),s.setAttribute("href",i),s.setAttribute("rel","noopener noreferrer"),s.setAttribute("target","_blank"),s}},{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}(g.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(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=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},T=function(){function u(r,i){for(var s=0;s<i.length;s++){var n=i[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,s){return i&&u(r.prototype,i),s&&u(r,s),r}}(),k=p(23),g=a(k),y=p(107),c=a(y);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(s){switch(s.keyCode){case g.default.keys.ENTER:i.togglePicker();break;case g.default.keys.ESCAPE:i.escape(),s.preventDefault();break;default:}}),this.select.addEventListener("change",this.update.bind(this))}return T(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 s=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(){s.selectItem(n,!0)}),n.addEventListener("keydown",function(f){switch(f.keyCode){case g.default.keys.ENTER:s.selectItem(n,!0),f.preventDefault();break;case g.default.keys.ESCAPE:s.escape(),f.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,s=document.createElement("span");s.classList.add("ql-picker-options"),s.setAttribute("aria-hidden","true"),s.tabIndex="-1",s.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",s.id),this.options=s,[].slice.call(this.select.options).forEach(function(n){var f=i.buildItem(n);s.appendChild(f),n.selected===!0&&i.selectItem(f)}),this.container.appendChild(s)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(s){i.container.setAttribute(s.name,s.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 s=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"),s))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":P(Event))==="object"){var f=document.createEvent("Event");f.initEvent("change",!0,!0),this.select.dispatchEvent(f)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var s=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(s)}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(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),T=R(P),k=p(5),g=R(k),y=p(4),c=R(y),a=p(16),e=R(a),t=p(25),l=R(t),o=p(24),u=R(o),r=p(35),i=R(r),s=p(6),n=R(s),f=p(22),E=R(f),m=p(7),b=R(m),w=p(55),d=R(w),h=p(42),v=R(h),_=p(23),N=R(_);function R(B){return B&&B.__esModule?B:{default:B}}g.default.register({"blots/block":c.default,"blots/block/embed":y.BlockEmbed,"blots/break":e.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":E.default,"blots/text":b.default,"modules/clipboard":d.default,"modules/history":v.default,"modules/keyboard":N.default}),T.default.register(c.default,e.default,u.default,n.default,E.default,b.default),O.default=g.default},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function k(g){this.domNode=g,this.domNode[P.DATA_KEY]={blot:this}}return Object.defineProperty(k.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),k.create=function(g){if(this.tagName==null)throw new P.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?(typeof g=="string"&&(g=g.toUpperCase(),parseInt(g).toString()===g&&(g=parseInt(g))),typeof g=="number"?y=document.createElement(this.tagName[g-1]):this.tagName.indexOf(g)>-1?y=document.createElement(g):y=document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},k.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},k.prototype.clone=function(){var g=this.domNode.cloneNode(!1);return P.create(g)},k.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},k.prototype.deleteAt=function(g,y){var c=this.isolate(g,y);c.remove()},k.prototype.formatAt=function(g,y,c,a){var e=this.isolate(g,y);if(P.query(c,P.Scope.BLOT)!=null&&a)e.wrap(c,a);else if(P.query(c,P.Scope.ATTRIBUTE)!=null){var t=P.create(this.statics.scope);e.wrap(t),t.format(c,a)}},k.prototype.insertAt=function(g,y,c){var a=c==null?P.create("text",y):P.create(y,c),e=this.split(g);this.parent.insertBefore(a,e)},k.prototype.insertInto=function(g,y){y===void 0&&(y=null),this.parent!=null&&this.parent.children.remove(this);var c=null;g.children.insertBefore(this,y),y!=null&&(c=y.domNode),(this.domNode.parentNode!=g.domNode||this.domNode.nextSibling!=c)&&g.domNode.insertBefore(this.domNode,c),this.parent=g,this.attach()},k.prototype.isolate=function(g,y){var c=this.split(g);return c.split(y),c},k.prototype.length=function(){return 1},k.prototype.offset=function(g){return g===void 0&&(g=this.parent),this.parent==null||this==g?0:this.parent.children.offset(this)+this.parent.offset(g)},k.prototype.optimize=function(g){this.domNode[P.DATA_KEY]!=null&&delete this.domNode[P.DATA_KEY].mutations},k.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},k.prototype.replace=function(g){g.parent!=null&&(g.parent.insertBefore(this,g.next),g.remove())},k.prototype.replaceWith=function(g,y){var c=typeof g=="string"?P.create(g,y):g;return c.replace(this),c},k.prototype.split=function(g,y){return g===0?this:this.next},k.prototype.update=function(g,y){},k.prototype.wrap=function(g,y){var c=typeof g=="string"?P.create(g,y):g;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},k.blotName="abstract",k}();O.default=T},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(12),T=p(32),k=p(33),g=p(1),y=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=P.default.keys(this.domNode),t=T.default.keys(this.domNode),l=k.default.keys(this.domNode);e.concat(t).concat(l).forEach(function(o){var u=g.query(o,g.Scope.ATTRIBUTE);u instanceof P.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=y},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var y=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){y(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 T=p(12);function k(y,c){var a=y.getAttribute("class")||"";return a.split(/\s+/).filter(function(e){return e.indexOf(c+"-")===0})}var g=function(y){P(c,y);function c(){return y!==null&&y.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}(T.default);O.default=g},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var y=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){y(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 T=p(12);function k(y){var c=y.split("-"),a=c.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return c[0]+a}var g=function(y){P(c,y);function c(){return y!==null&&y.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}(T.default);O.default=g},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function g(y,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(y,e.key,e)}}return function(y,c,a){return c&&g(y.prototype,c),a&&g(y,a),y}}();function T(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}var k=function(){function g(y,c){T(this,g),this.quill=y,this.options=c,this.modules={}}return P(g,[{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]}}]),g}();k.DEFAULTS={modules:{}},k.themes={default:k},O.default=k},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function r(i,s){for(var n=0;n<s.length;n++){var f=s[n];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}return function(i,s,n){return s&&r(i.prototype,s),n&&r(i,n),i}}(),T=function r(i,s,n){i===null&&(i=Function.prototype);var f=Object.getOwnPropertyDescriptor(i,s);if(f===void 0){var E=Object.getPrototypeOf(i);return E===null?void 0:r(E,s,n)}else{if("value"in f)return f.value;var m=f.get;return m===void 0?void 0:m.call(n)}},k=p(0),g=a(k),y=p(7),c=a(y);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(s){e(this,i);var n=t(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,s));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(f){n.contentNode.appendChild(f)}),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 P(i,[{key:"index",value:function(n,f){return n===this.leftGuard?0:n===this.rightGuard?1:T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,f)}},{key:"restore",value:function(n){var f=void 0,E=void 0,m=n.data.split(o).join("");if(n===this.leftGuard)if(this.prev instanceof c.default){var b=this.prev.length();this.prev.insertAt(b,m),f={startNode:this.prev.domNode,startOffset:b+m.length}}else E=document.createTextNode(m),this.parent.insertBefore(g.default.create(E),this),f={startNode:E,startOffset:m.length};else n===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,m),f={startNode:this.next.domNode,startOffset:m.length}):(E=document.createTextNode(m),this.parent.insertBefore(g.default.create(E),this.next),f={startNode:E,startOffset:m.length}));return n.data=o,f}},{key:"update",value:function(n,f){var E=this;n.forEach(function(m){if(m.type==="characterData"&&(m.target===E.leftGuard||m.target===E.rightGuard)){var b=E.restore(m.target);b&&(f.range=b)}})}}]),i}(g.default.Embed);O.default=u},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.AlignStyle=O.AlignClass=O.AlignAttribute=void 0;var P=p(0),T=k(P);function k(e){return e&&e.__esModule?e:{default:e}}var g={scope:T.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new T.default.Attributor.Attribute("align","align",g),c=new T.default.Attributor.Class("align","ql-align",g),a=new T.default.Attributor.Style("align","text-align",g);O.AlignAttribute=y,O.AlignClass=c,O.AlignStyle=a},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.BackgroundStyle=O.BackgroundClass=void 0;var P=p(0),T=g(P),k=p(26);function g(a){return a&&a.__esModule?a:{default:a}}var y=new T.default.Attributor.Class("background","ql-bg",{scope:T.default.Scope.INLINE}),c=new k.ColorAttributor("background","background-color",{scope:T.default.Scope.INLINE});O.BackgroundClass=y,O.BackgroundStyle=c},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.DirectionStyle=O.DirectionClass=O.DirectionAttribute=void 0;var P=p(0),T=k(P);function k(e){return e&&e.__esModule?e:{default:e}}var g={scope:T.default.Scope.BLOCK,whitelist:["rtl"]},y=new T.default.Attributor.Attribute("direction","dir",g),c=new T.default.Attributor.Class("direction","ql-direction",g),a=new T.default.Attributor.Style("direction","direction",g);O.DirectionAttribute=y,O.DirectionClass=c,O.DirectionStyle=a},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.FontClass=O.FontStyle=void 0;var P=function(){function r(i,s){for(var n=0;n<s.length;n++){var f=s[n];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}return function(i,s,n){return s&&r(i.prototype,s),n&&r(i,n),i}}(),T=function r(i,s,n){i===null&&(i=Function.prototype);var f=Object.getOwnPropertyDescriptor(i,s);if(f===void 0){var E=Object.getPrototypeOf(i);return E===null?void 0:r(E,s,n)}else{if("value"in f)return f.value;var m=f.get;return m===void 0?void 0:m.call(n)}},k=p(0),g=y(k);function y(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:g.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new g.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 P(i,[{key:"value",value:function(n){return T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(g.default.Attributor.Style),u=new o("font","font-family",t);O.FontStyle=u,O.FontClass=l},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SizeStyle=O.SizeClass=void 0;var P=p(0),T=k(P);function k(c){return c&&c.__esModule?c:{default:c}}var g=new T.default.Attributor.Class("size","ql-size",{scope:T.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new T.default.Attributor.Style("size","font-size",{scope:T.default.Scope.INLINE,whitelist:["10px","18px","32px"]});O.SizeClass=g,O.SizeStyle=y},function(j,O,p){"use strict";j.exports={align:{"":p(76),center:p(77),right:p(78),justify:p(79)},background:p(80),blockquote:p(81),bold:p(82),clean:p(83),code:p(58),"code-block":p(58),color:p(84),direction:{"":p(85),rtl:p(86)},float:{center:p(87),full:p(88),left:p(89),right:p(90)},formula:p(91),header:{1:p(92),2:p(93)},italic:p(94),image:p(95),indent:{"+1":p(96),"-1":p(97)},link:p(98),list:{ordered:p(99),bullet:p(100),check:p(101)},script:{sub:p(102),super:p(103)},strike:p(104),underline:p(105),video:p(106)}},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.getLastChangeIndex=O.default=void 0;var P=function(){function s(n,f){for(var E=0;E<f.length;E++){var m=f[E];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(n,m.key,m)}}return function(n,f,E){return f&&s(n.prototype,f),E&&s(n,E),n}}(),T=p(0),k=e(T),g=p(5),y=e(g),c=p(9),a=e(c);function e(s){return s&&s.__esModule?s:{default:s}}function t(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function l(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function o(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var u=function(s){o(n,s);function n(f,E){t(this,n);var m=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,f,E));return m.lastRecorded=0,m.ignoreChange=!1,m.clear(),m.quill.on(y.default.events.EDITOR_CHANGE,function(b,w,d,h){b!==y.default.events.TEXT_CHANGE||m.ignoreChange||(!m.options.userOnly||h===y.default.sources.USER?m.record(w,d):m.transform(w))}),m.quill.keyboard.addBinding({key:"Z",shortKey:!0},m.undo.bind(m)),m.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},m.redo.bind(m)),/Win/i.test(navigator.platform)&&m.quill.keyboard.addBinding({key:"Y",shortKey:!0},m.redo.bind(m)),m}return P(n,[{key:"change",value:function(E,m){if(this.stack[E].length!==0){var b=this.stack[E].pop();this.stack[m].push(b),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(b[E],y.default.sources.USER),this.ignoreChange=!1;var w=i(b[E]);this.quill.setSelection(w)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(E,m){if(E.ops.length!==0){this.stack.redo=[];var b=this.quill.getContents().diff(m),w=Date.now();if(this.lastRecorded+this.options.delay>w&&this.stack.undo.length>0){var d=this.stack.undo.pop();b=b.compose(d.undo),E=d.redo.compose(E)}else this.lastRecorded=w;this.stack.undo.push({redo:E,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(E){this.stack.undo.forEach(function(m){m.undo=E.transform(m.undo,!0),m.redo=E.transform(m.redo,!0)}),this.stack.redo.forEach(function(m){m.undo=E.transform(m.undo,!0),m.redo=E.transform(m.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(a.default);u.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(s){var n=s.ops[s.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(f){return k.default.query(f,k.default.Scope.BLOCK)!=null}):!1}function i(s){var n=s.reduce(function(E,m){return E+=m.delete||0,E},0),f=s.length()-n;return r(s)&&(f-=1),f}O.default=u,O.getLastChangeIndex=i},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var P=function(){function S(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&&S(L.prototype,F),D&&S(L,D),L}}(),T=function S(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:S(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=p(3),g=w(k),y=p(2),c=w(y),a=p(8),e=w(a),t=p(23),l=w(t),o=p(34),u=w(o),r=p(59),i=w(r),s=p(60),n=w(s),f=p(28),E=w(f),m=p(61),b=w(m);function w(S){return S&&S.__esModule?S:{default:S}}function d(S,L){if(!(S instanceof L))throw new TypeError("Cannot call a class as a function")}function h(S,L){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:S}function v(S,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);S.prototype=Object.create(L&&L.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(S,L):S.__proto__=L)}var _=[!1,"center","right","justify"],N=["#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"],R=[!1,"serif","monospace"],B=["1","2","3",!1],C=["small",!1,"large","huge"],W=function(S){v(L,S);function L(F,D){d(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(Z){Z.container.contains(H.target)||Z.close()})};return F.emitter.listenDOM("click",document.body,I),x}return P(L,[{key:"addModule",value:function(D){var x=T(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 Z=I.value||"";Z!=null&&x[H][Z]&&(I.innerHTML=x[H][Z])}})})}},{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&&A(H,_),new n.default(H,x.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var Z=H.classList.contains("ql-background")?"background":"color";return H.querySelector("option")==null&&A(H,N,Z==="background"?"#ffffff":"#000000"),new i.default(H,x[Z])}else return H.querySelector("option")==null&&(H.classList.contains("ql-font")?A(H,R):H.classList.contains("ql-header")?A(H,B):H.classList.contains("ql-size")&&A(H,C)),new E.default(H)});var U=function(){I.pickers.forEach(function(Z){Z.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,U)}}]),L}(u.default);W.DEFAULTS=(0,g.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 M=function(S){v(L,S);function L(F,D){d(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 P(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=q(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 q(S){var L=S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return L?(L[1]||"https")+"://www.youtube.com/embed/"+L[2]+"?showinfo=0":(L=S.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(L[1]||"https")+"://player.vimeo.com/video/"+L[2]+"/":S}function A(S,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),S.appendChild(x)})}O.BaseTooltip=M,O.default=W},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function T(){this.head=this.tail=null,this.length=0}return T.prototype.append=function(){for(var k=[],g=0;g<arguments.length;g++)k[g]=arguments[g];this.insertBefore(k[0],null),k.length>1&&this.append.apply(this,k.slice(1))},T.prototype.contains=function(k){for(var g,y=this.iterator();g=y();)if(g===k)return!0;return!1},T.prototype.insertBefore=function(k,g){k&&(k.next=g,g!=null?(k.prev=g.prev,g.prev!=null&&(g.prev.next=k),g.prev=k,g===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)},T.prototype.offset=function(k){for(var g=0,y=this.head;y!=null;){if(y===k)return g;g+=y.length(),y=y.next}return-1},T.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)},T.prototype.iterator=function(k){return k===void 0&&(k=this.head),function(){var g=k;return k!=null&&(k=k.next),g}},T.prototype.find=function(k,g){g===void 0&&(g=!1);for(var y,c=this.iterator();y=c();){var a=y.length();if(k<a||g&&k===a&&(y.next==null||y.next.length()!==0))return[y,k];k-=a}return[null,0]},T.prototype.forEach=function(k){for(var g,y=this.iterator();g=y();)k(g)},T.prototype.forEachAt=function(k,g,y){if(!(g<=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+g;){var u=t.length();k>l?y(t,k-l,Math.min(g,l+u-k)):y(t,0,Math.min(u,k+g-l)),l+=u}},T.prototype.map=function(k){return this.reduce(function(g,y){return g.push(k(y)),g},[])},T.prototype.reduce=function(k,g){for(var y,c=this.iterator();y=c();)g=k(g,y);return g},T}();O.default=P},function(j,O,p){"use strict";var P=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 T=p(17),k=p(1),g={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},y=100,c=function(a){P(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,g),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(f,E){E===void 0&&(E=!0),!(f==null||f===o)&&f.domNode.parentNode!=null&&(f.domNode[k.DATA_KEY].mutations==null&&(f.domNode[k.DATA_KEY].mutations=[]),E&&r(f.parent))},i=function(f){f.domNode[k.DATA_KEY]==null||f.domNode[k.DATA_KEY].mutations==null||(f instanceof T.default&&f.children.forEach(i),f.optimize(l))},s=t,n=0;s.length>0;n+=1){if(n>=y)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(function(f){var E=k.find(f.target,!0);E!=null&&(E.domNode===f.target&&(f.type==="childList"?(r(k.find(f.previousSibling,!1)),[].forEach.call(f.addedNodes,function(m){var b=k.find(m,!1);r(b,!1),b instanceof T.default&&b.children.forEach(function(w){r(w,!1)})})):f.type==="attributes"&&r(E.prev)),r(E))}),this.children.forEach(i),s=[].slice.call(this.observer.takeRecords()),u=s.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}(T.default);O.default=c},function(j,O,p){"use strict";var P=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 T=p(18),k=p(1);function g(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 y=function(c){P(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 T.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&&g(t,l.formats())&&(l.moveChildren(this),l.remove())},a.blotName="inline",a.scope=k.Scope.INLINE_BLOT,a.tagName="SPAN",a}(T.default);O.default=y},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var y=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){y(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 T=p(18),k=p(1),g=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.formats=function(a){var e=k.query(c.blotName).tagName;if(a.tagName!==e)return y.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):y.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):y.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)y.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():y.prototype.update.call(this,a,e)},c.blotName="block",c.scope=k.Scope.BLOCK_BLOT,c.tagName="P",c}(T.default);O.default=g},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var a in c)c.hasOwnProperty(a)&&(y[a]=c[a])};return function(y,c){g(y,c);function a(){this.constructor=y}y.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(19),k=function(g){P(y,g);function y(){return g!==null&&g.apply(this,arguments)||this}return y.formats=function(c){},y.prototype.format=function(c,a){g.prototype.formatAt.call(this,0,this.length(),c,a)},y.prototype.formatAt=function(c,a,e,t){c===0&&a===this.length()?this.format(e,t):g.prototype.formatAt.call(this,c,a,e,t)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(T.default);O.default=k},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var y=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){y(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 T=p(19),k=p(1),g=function(y){P(c,y);function c(a){var e=y.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):y.prototype.insertAt.call(this,a,e,t)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(a){y.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}(T.default);O.default=g},function(j,O,p){"use strict";var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var T=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(k,g){return arguments.length>1&&!this.contains(k)==!g?g:T.call(this,k)}}String.prototype.startsWith||(String.prototype.startsWith=function(k,g){return g=g||0,this.substr(g,k.length)===k}),String.prototype.endsWith||(String.prototype.endsWith=function(k,g){var y=this.toString();(typeof g!="number"||!isFinite(g)||Math.floor(g)!==g||g>y.length)&&(g=y.length),g-=k.length;var c=y.indexOf(k,g);return c!==-1&&c===g}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(g){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof g!="function")throw new TypeError("predicate must be a function");for(var y=Object(this),c=y.length>>>0,a=arguments[1],e,t=0;t<c;t++)if(e=y[t],g.call(a,e,t,y))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(j,O){var p=-1,P=1,T=0;function k(n,f,E){if(n==f)return n?[[T,n]]:[];(E<0||n.length<E)&&(E=null);var m=a(n,f),b=n.substring(0,m);n=n.substring(m),f=f.substring(m),m=e(n,f);var w=n.substring(n.length-m);n=n.substring(0,n.length-m),f=f.substring(0,f.length-m);var d=g(n,f);return b&&d.unshift([T,b]),w&&d.push([T,w]),l(d),E!=null&&(d=r(d,E)),d=i(d),d}function g(n,f){var E;if(!n)return[[P,f]];if(!f)return[[p,n]];var m=n.length>f.length?n:f,b=n.length>f.length?f:n,w=m.indexOf(b);if(w!=-1)return E=[[P,m.substring(0,w)],[T,b],[P,m.substring(w+b.length)]],n.length>f.length&&(E[0][0]=E[2][0]=p),E;if(b.length==1)return[[p,n],[P,f]];var d=t(n,f);if(d){var h=d[0],v=d[1],_=d[2],N=d[3],R=d[4],B=k(h,_),C=k(v,N);return B.concat([[T,R]],C)}return y(n,f)}function y(n,f){for(var E=n.length,m=f.length,b=Math.ceil((E+m)/2),w=b,d=2*b,h=new Array(d),v=new Array(d),_=0;_<d;_++)h[_]=-1,v[_]=-1;h[w+1]=0,v[w+1]=0;for(var N=E-m,R=N%2!=0,B=0,C=0,W=0,M=0,q=0;q<b;q++){for(var A=-q+B;A<=q-C;A+=2){var S=w+A,L;A==-q||A!=q&&h[S-1]<h[S+1]?L=h[S+1]:L=h[S-1]+1;for(var F=L-A;L<E&&F<m&&n.charAt(L)==f.charAt(F);)L++,F++;if(h[S]=L,L>E)C+=2;else if(F>m)B+=2;else if(R){var D=w+N-A;if(D>=0&&D<d&&v[D]!=-1){var x=E-v[D];if(L>=x)return c(n,f,L,F)}}}for(var I=-q+W;I<=q-M;I+=2){var D=w+I,x;I==-q||I!=q&&v[D-1]<v[D+1]?x=v[D+1]:x=v[D-1]+1;for(var U=x-I;x<E&&U<m&&n.charAt(E-x-1)==f.charAt(m-U-1);)x++,U++;if(v[D]=x,x>E)M+=2;else if(U>m)W+=2;else if(!R){var S=w+N-I;if(S>=0&&S<d&&h[S]!=-1){var L=h[S],F=w+L-S;if(x=E-x,L>=x)return c(n,f,L,F)}}}}return[[p,n],[P,f]]}function c(n,f,E,m){var b=n.substring(0,E),w=f.substring(0,m),d=n.substring(E),h=f.substring(m),v=k(b,w),_=k(d,h);return v.concat(_)}function a(n,f){if(!n||!f||n.charAt(0)!=f.charAt(0))return 0;for(var E=0,m=Math.min(n.length,f.length),b=m,w=0;E<b;)n.substring(w,b)==f.substring(w,b)?(E=b,w=E):m=b,b=Math.floor((m-E)/2+E);return b}function e(n,f){if(!n||!f||n.charAt(n.length-1)!=f.charAt(f.length-1))return 0;for(var E=0,m=Math.min(n.length,f.length),b=m,w=0;E<b;)n.substring(n.length-b,n.length-w)==f.substring(f.length-b,f.length-w)?(E=b,w=E):m=b,b=Math.floor((m-E)/2+E);return b}function t(n,f){var E=n.length>f.length?n:f,m=n.length>f.length?f:n;if(E.length<4||m.length*2<E.length)return null;function b(C,W,M){for(var q=C.substring(M,M+Math.floor(C.length/4)),A=-1,S="",L,F,D,x;(A=W.indexOf(q,A+1))!=-1;){var I=a(C.substring(M),W.substring(A)),U=e(C.substring(0,M),W.substring(0,A));S.length<U+I&&(S=W.substring(A-U,A)+W.substring(A,A+I),L=C.substring(0,M-U),F=C.substring(M+I),D=W.substring(0,A-U),x=W.substring(A+I))}return S.length*2>=C.length?[L,F,D,x,S]:null}var w=b(E,m,Math.ceil(E.length/4)),d=b(E,m,Math.ceil(E.length/2)),h;if(!w&&!d)return null;d?w?h=w[4].length>d[4].length?w:d:h=d:h=w;var v,_,N,R;n.length>f.length?(v=h[0],_=h[1],N=h[2],R=h[3]):(N=h[0],R=h[1],v=h[2],_=h[3]);var B=h[4];return[v,_,N,R,B]}function l(n){n.push([T,""]);for(var f=0,E=0,m=0,b="",w="",d;f<n.length;)switch(n[f][0]){case P:m++,w+=n[f][1],f++;break;case p:E++,b+=n[f][1],f++;break;case T:E+m>1?(E!==0&&m!==0&&(d=a(w,b),d!==0&&(f-E-m>0&&n[f-E-m-1][0]==T?n[f-E-m-1][1]+=w.substring(0,d):(n.splice(0,0,[T,w.substring(0,d)]),f++),w=w.substring(d),b=b.substring(d)),d=e(w,b),d!==0&&(n[f][1]=w.substring(w.length-d)+n[f][1],w=w.substring(0,w.length-d),b=b.substring(0,b.length-d))),E===0?n.splice(f-m,E+m,[P,w]):m===0?n.splice(f-E,E+m,[p,b]):n.splice(f-E-m,E+m,[p,b],[P,w]),f=f-E-m+(E?1:0)+(m?1:0)+1):f!==0&&n[f-1][0]==T?(n[f-1][1]+=n[f][1],n.splice(f,1)):f++,m=0,E=0,b="",w="";break}n[n.length-1][1]===""&&n.pop();var h=!1;for(f=1;f<n.length-1;)n[f-1][0]==T&&n[f+1][0]==T&&(n[f][1].substring(n[f][1].length-n[f-1][1].length)==n[f-1][1]?(n[f][1]=n[f-1][1]+n[f][1].substring(0,n[f][1].length-n[f-1][1].length),n[f+1][1]=n[f-1][1]+n[f+1][1],n.splice(f-1,1),h=!0):n[f][1].substring(0,n[f+1][1].length)==n[f+1][1]&&(n[f-1][1]+=n[f+1][1],n[f][1]=n[f][1].substring(n[f+1][1].length)+n[f+1][1],n.splice(f+1,1),h=!0)),f++;h&&l(n)}var o=k;o.INSERT=P,o.DELETE=p,o.EQUAL=T,j.exports=o;function u(n,f){if(f===0)return[T,n];for(var E=0,m=0;m<n.length;m++){var b=n[m];if(b[0]===p||b[0]===T){var w=E+b[1].length;if(f===w)return[m+1,n];if(f<w){n=n.slice();var d=f-E,h=[b[0],b[1].slice(0,d)],v=[b[0],b[1].slice(d)];return n.splice(m,1,h,v),[m+1,n]}else E=w}}throw new Error("cursor_pos is out of bounds!")}function r(n,f){var E=u(n,f),m=E[1],b=E[0],w=m[b],d=m[b+1];if(w==null)return n;if(w[0]!==T)return n;if(d!=null&&w[1]+d[1]===d[1]+w[1])return m.splice(b,2,d,w),s(m,b,2);if(d!=null&&d[1].indexOf(w[1])===0){m.splice(b,2,[d[0],w[1]],[0,w[1]]);var h=d[1].slice(w[1].length);return h.length>0&&m.splice(b+2,0,[d[0],h]),s(m,b,3)}else return n}function i(n){for(var f=!1,E=function(d){return d.charCodeAt(0)>=56320&&d.charCodeAt(0)<=57343},m=function(d){return d.charCodeAt(d.length-1)>=55296&&d.charCodeAt(d.length-1)<=56319},b=2;b<n.length;b+=1)n[b-2][0]===T&&m(n[b-2][1])&&n[b-1][0]===p&&E(n[b-1][1])&&n[b][0]===P&&E(n[b][1])&&(f=!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(!f)return n;for(var w=[],b=0;b<n.length;b+=1)n[b][1].length>0&&w.push(n[b]);return w}function s(n,f,E){for(var m=f+E-1;m>=0&&m>=f-1;m--)if(m+1<n.length){var b=n[m],w=n[m+1];b[0]===w[1]&&n.splice(m,2,[b[0],b[1]+w[1]])}return n}},function(j,O){O=j.exports=typeof Object.keys=="function"?Object.keys:p,O.shim=p;function p(P){var T=[];for(var k in P)T.push(k);return T}},function(j,O){var p=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";O=j.exports=p?P:T,O.supported=P;function P(k){return Object.prototype.toString.call(k)=="[object Arguments]"}O.unsupported=T;function T(k){return k&&typeof k=="object"&&typeof k.length=="number"&&Object.prototype.hasOwnProperty.call(k,"callee")&&!Object.prototype.propertyIsEnumerable.call(k,"callee")||!1}},function(j,O){"use strict";var p=Object.prototype.hasOwnProperty,P="~";function T(){}Object.create&&(T.prototype=Object.create(null),new T().__proto__||(P=!1));function k(y,c,a){this.fn=y,this.context=c,this.once=a||!1}function g(){this._events=new T,this._eventsCount=0}g.prototype.eventNames=function(){var c=[],a,e;if(this._eventsCount===0)return c;for(e in a=this._events)p.call(a,e)&&c.push(P?e.slice(1):e);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(a)):c},g.prototype.listeners=function(c,a){var e=P?P+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},g.prototype.emit=function(c,a,e,t,l,o){var u=P?P+c:c;if(!this._events[u])return!1;var r=this._events[u],i=arguments.length,s,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,s=new Array(i-1);n<i;n++)s[n-1]=arguments[n];r.fn.apply(r.context,s)}else{var f=r.length,E;for(n=0;n<f;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(!s)for(E=1,s=new Array(i-1);E<i;E++)s[E-1]=arguments[E];r[n].fn.apply(r[n].context,s)}}return!0},g.prototype.on=function(c,a,e){var t=new k(a,e||this),l=P?P+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},g.prototype.once=function(c,a,e){var t=new k(a,e||this,!0),l=P?P+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},g.prototype.removeListener=function(c,a,e,t){var l=P?P+c:c;if(!this._events[l])return this;if(!a)return--this._eventsCount===0?this._events=new T: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 T: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 T:delete this._events[l]}return this},g.prototype.removeAllListeners=function(c){var a;return c?(a=P?P+c:c,this._events[a]&&(--this._eventsCount===0?this._events=new T:delete this._events[a])):(this._events=new T,this._eventsCount=0),this},g.prototype.off=g.prototype.removeListener,g.prototype.addListener=g.prototype.on,g.prototype.setMaxListeners=function(){return this},g.prefixed=P,g.EventEmitter=g,typeof j!="undefined"&&(j.exports=g)},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.matchText=O.matchSpacing=O.matchNewline=O.matchBlot=O.matchAttributor=O.default=void 0;var P=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},T=function(){function K(z,$){var G=[],V=!0,J=!1,tt=void 0;try{for(var et=z[Symbol.iterator](),ft;!(V=(ft=et.next()).done)&&(G.push(ft.value),!($&&G.length===$));V=!0);}catch(ct){J=!0,tt=ct}finally{try{!V&&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 V=$[G];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(z,V.key,V)}}return function(z,$,G){return $&&K(z.prototype,$),G&&K(z,G),z}}(),g=p(3),y=v(g),c=p(2),a=v(c),e=p(0),t=v(e),l=p(5),o=v(l),u=p(10),r=v(u),i=p(9),s=v(i),n=p(36),f=p(37),E=p(13),m=v(E),b=p(26),w=p(38),d=p(39),h=p(40);function v(K){return K&&K.__esModule?K:{default:K}}function _(K,z,$){return z in K?Object.defineProperty(K,z,{value:$,enumerable:!0,configurable:!0,writable:!0}):K[z]=$,K}function N(K,z){if(!(K instanceof z))throw new TypeError("Cannot call a class as a function")}function R(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",M=[[Node.TEXT_NODE,at],[Node.TEXT_NODE,nt],["br",Y],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,Z],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,st],["li",Q],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",X]],q=[n.AlignAttribute,w.DirectionAttribute].reduce(function(K,z){return K[z.keyName]=z,K},{}),A=[n.AlignStyle,f.BackgroundStyle,b.ColorStyle,w.DirectionStyle,d.FontStyle,h.SizeStyle].reduce(function(K,z){return K[z.keyName]=z,K},{}),S=function(K){B(z,K);function z($,G){N(this,z);var V=R(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,$,G));return V.quill.root.addEventListener("paste",V.onPaste.bind(V)),V.container=V.quill.addContainer("ql-clipboard"),V.container.setAttribute("contenteditable",!0),V.container.setAttribute("tabindex",-1),V.matchers=[],M.concat(V.options.matchers).forEach(function(J){var tt=T(J,2),et=tt[0],ft=tt[1];!G.matchVisual&&ft===rt||V.addMatcher(et,ft)}),V}return k(z,[{key:"addMatcher",value:function(G,V){this.matchers.push([G,V])}},{key:"convert",value:function(G){if(typeof G=="string")return this.container.innerHTML=G.replace(/\>\r?\n +\</g,"><"),this.convert();var V=this.quill.getFormat(this.quill.selection.savedRange.index);if(V[m.default.blotName]){var J=this.container.innerText;return this.container.innerHTML="",new a.default().insert(J,_({},m.default.blotName,V[m.default.blotName]))}var tt=this.prepareMatching(),et=T(tt,2),ft=et[0],ct=et[1],ot=I(this.container,ft,ct);return D(ot,`
  28. `)&&ot.ops[ot.ops.length-1].attributes==null&&(ot=ot.compose(new a.default().retain(ot.length()-1).delete(1))),C.log("convert",this.container.innerHTML,ot),this.container.innerHTML="",ot}},{key:"dangerouslyPasteHTML",value:function(G,V){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),V),this.quill.setSelection(0,o.default.sources.SILENT);else{var tt=this.convert(V);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 V=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(V.convert()).delete(J.length),V.quill.updateContents(tt,o.default.sources.USER),V.quill.setSelection(tt.length()-J.length,o.default.sources.SILENT),V.quill.scrollingContainer.scrollTop=et,V.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var G=this,V=[],J=[];return this.matchers.forEach(function(tt){var et=T(tt,2),ft=et[0],ct=et[1];switch(ft){case Node.TEXT_NODE:J.push(ct);break;case Node.ELEMENT_NODE:V.push(ct);break;default:[].forEach.call(G.container.querySelectorAll(ft),function(ot){ot[W]=ot[W]||[],ot[W].push(ct)});break}}),[V,J]}}]),z}(s.default);S.DEFAULTS={matchers:[],matchVisual:!0};function L(K,z,$){return(typeof z=="undefined"?"undefined":P(z))==="object"?Object.keys(z).reduce(function(G,V){return L(G,V,z[V])},K):K.reduce(function(G,V){return V.attributes&&V.attributes[z]?G.push(V):G.insert(V.insert,(0,y.default)({},_({},z,$),V.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 V=K.ops[G];if(typeof V.insert!="string")break;$=V.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,V){return V(K,G)},new a.default):K.nodeType===K.ELEMENT_NODE?[].reduce.call(K.childNodes||[],function(G,V){var J=I(V,z,$);return V.nodeType===K.ELEMENT_NODE&&(J=z.reduce(function(tt,et){return et(V,tt)},J),J=(V[W]||[]).reduce(function(tt,et){return et(V,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),V=t.default.Attributor.Style.keys(K),J={};return $.concat(G).concat(V).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=q[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(J[et.attrName]=et.value(K)||void 0),et=A[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(et=A[tt],J[et.attrName]=et.value(K)||void 0))}),Object.keys(J).length>0&&(z=L(z,J)),z}function Z(K,z){var $=t.default.query(K);if($==null)return z;if($.prototype instanceof t.default.Embed){var G={},V=$.value(K);V!=null&&(G[$.blotName]=V,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,V=K.parentNode;!V.classList.contains("ql-clipboard");)(t.default.query(V)||{}).blotName==="list"&&(G+=1),V=V.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 st(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 at(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=S,O.matchAttributor=H,O.matchBlot=Z,O.matchNewline=nt,O.matchSpacing=rt,O.matchText=at},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=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}}(),T=function l(o,u,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,u);if(i===void 0){var s=Object.getPrototypeOf(o);return s===null?void 0:l(s,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},k=p(6),g=y(k);function y(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 P(o,[{key:"optimize",value:function(r){T(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 T(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),o}(g.default);t.blotName="bold",t.tagName=["STRONG","B"],O.default=t},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.addControls=O.default=void 0;var P=function(){function h(v,_){var N=[],R=!0,B=!1,C=void 0;try{for(var W=v[Symbol.iterator](),M;!(R=(M=W.next()).done)&&(N.push(M.value),!(_&&N.length===_));R=!0);}catch(q){B=!0,C=q}finally{try{!R&&W.return&&W.return()}finally{if(B)throw C}}return N}return function(v,_){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return h(v,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function h(v,_){for(var N=0;N<_.length;N++){var R=_[N];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(v,R.key,R)}}return function(v,_,N){return _&&h(v.prototype,_),N&&h(v,N),v}}(),k=p(2),g=r(k),y=p(0),c=r(y),a=p(5),e=r(a),t=p(10),l=r(t),o=p(9),u=r(o);function r(h){return h&&h.__esModule?h:{default:h}}function i(h,v,_){return v in h?Object.defineProperty(h,v,{value:_,enumerable:!0,configurable:!0,writable:!0}):h[v]=_,h}function s(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 f(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 E=(0,l.default)("quill:toolbar"),m=function(h){f(v,h);function v(_,N){s(this,v);var R=n(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,_,N));if(Array.isArray(R.options.container)){var B=document.createElement("div");w(B,R.options.container),_.container.parentNode.insertBefore(B,_.container),R.container=B}else typeof R.options.container=="string"?R.container=document.querySelector(R.options.container):R.container=R.options.container;if(!(R.container instanceof HTMLElement)){var C;return C=E.error("Container required for toolbar",R.options),n(R,C)}return R.container.classList.add("ql-toolbar"),R.controls=[],R.handlers={},Object.keys(R.options.handlers).forEach(function(W){R.addHandler(W,R.options.handlers[W])}),[].forEach.call(R.container.querySelectorAll("button, select"),function(W){R.attach(W)}),R.quill.on(e.default.events.EDITOR_CHANGE,function(W,M){W===e.default.events.SELECTION_CHANGE&&R.update(M)}),R.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var W=R.quill.selection.getRange(),M=P(W,1),q=M[0];R.update(q)}),R}return T(v,[{key:"addHandler",value:function(N,R){this.handlers[N]=R}},{key:"attach",value:function(N){var R=this,B=[].find.call(N.classList,function(W){return W.indexOf("ql-")===0});if(B){if(B=B.slice(3),N.tagName==="BUTTON"&&N.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){E.warn("ignoring attaching to disabled format",B,N);return}if(c.default.query(B)==null){E.warn("ignoring attaching to nonexistent format",B,N);return}}var C=N.tagName==="SELECT"?"change":"click";N.addEventListener(C,function(W){var M=void 0;if(N.tagName==="SELECT"){if(N.selectedIndex<0)return;var q=N.options[N.selectedIndex];q.hasAttribute("selected")?M=!1:M=q.value||!1}else N.classList.contains("ql-active")?M=!1:M=N.value||!N.hasAttribute("value"),W.preventDefault();R.quill.focus();var A=R.quill.selection.getRange(),S=P(A,1),L=S[0];if(R.handlers[B]!=null)R.handlers[B].call(R,M);else if(c.default.query(B).prototype instanceof c.default.Embed){if(M=prompt("Enter "+B),!M)return;R.quill.updateContents(new g.default().retain(L.index).delete(L.length).insert(i({},B,M)),e.default.sources.USER)}else R.quill.format(B,M,e.default.sources.USER);R.update(L)}),this.controls.push([B,N])}}},{key:"update",value:function(N){var R=N==null?{}:this.quill.getFormat(N);this.controls.forEach(function(B){var C=P(B,2),W=C[0],M=C[1];if(M.tagName==="SELECT"){var q=void 0;if(N==null)q=null;else if(R[W]==null)q=M.querySelector("option[selected]");else if(!Array.isArray(R[W])){var A=R[W];typeof A=="string"&&(A=A.replace(/\"/g,'\\"')),q=M.querySelector('option[value="'+A+'"]')}q==null?(M.value="",M.selectedIndex=-1):q.selected=!0}else if(N==null)M.classList.remove("ql-active");else if(M.hasAttribute("value")){var S=R[W]===M.getAttribute("value")||R[W]!=null&&R[W].toString()===M.getAttribute("value")||R[W]==null&&!M.getAttribute("value");M.classList.toggle("ql-active",S)}else M.classList.toggle("ql-active",R[W]!=null)})}}]),v}(u.default);m.DEFAULTS={};function b(h,v,_){var N=document.createElement("button");N.setAttribute("type","button"),N.classList.add("ql-"+v),_!=null&&(N.value=_),h.appendChild(N)}function w(h,v){Array.isArray(v[0])||(v=[v]),v.forEach(function(_){var N=document.createElement("span");N.classList.add("ql-formats"),_.forEach(function(R){if(typeof R=="string")b(N,R);else{var B=Object.keys(R)[0],C=R[B];Array.isArray(C)?d(N,B,C):b(N,B,C)}}),h.appendChild(N)})}function d(h,v,_){var N=document.createElement("select");N.classList.add("ql-"+v),_.forEach(function(R){var B=document.createElement("option");R!==!1?B.setAttribute("value",R):B.setAttribute("selected","selected"),N.appendChild(B)}),h.appendChild(N)}m.DEFAULTS={container:null,handlers:{clean:function(){var v=this,_=this.quill.getSelection();if(_!=null)if(_.length==0){var N=this.quill.getFormat();Object.keys(N).forEach(function(R){c.default.query(R,c.default.Scope.INLINE)!=null&&v.quill.format(R,!1)})}else this.quill.removeFormat(_,e.default.sources.USER)},direction:function(v){var _=this.quill.getFormat().align;v==="rtl"&&_==null?this.quill.format("align","right",e.default.sources.USER):!v&&_==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",v,e.default.sources.USER)},indent:function(v){var _=this.quill.getSelection(),N=this.quill.getFormat(_),R=parseInt(N.indent||0);if(v==="+1"||v==="-1"){var B=v==="+1"?1:-1;N.direction==="rtl"&&(B*=-1),this.quill.format("indent",R+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 _=this.quill.getSelection(),N=this.quill.getFormat(_);v==="check"?N.list==="checked"||N.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=m,O.addControls=w},function(j,O){j.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(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=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}}(),T=function l(o,u,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,u);if(i===void 0){var s=Object.getPrototypeOf(o);return s===null?void 0:l(s,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},k=p(28),g=y(k);function y(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(s){s.classList.add("ql-primary")}),i}return P(o,[{key:"buildItem",value:function(r){var i=T(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){T(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"selectItem",this).call(this,r,i);var s=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";s&&(s.tagName==="line"?s.style.stroke=n:s.style.fill=n)}}]),o}(g.default);O.default=t},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=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}}(),T=function l(o,u,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,u);if(i===void 0){var s=Object.getPrototypeOf(o);return s===null?void 0:l(s,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},k=p(28),g=y(k);function y(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(s){s.innerHTML=r[s.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return P(o,[{key:"selectItem",value:function(r,i){T(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"selectItem",this).call(this,r,i),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),o}(g.default);O.default=t},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function g(y,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(y,e.key,e)}}return function(y,c,a){return c&&g(y.prototype,c),a&&g(y,a),y}}();function T(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}var k=function(){function g(y,c){var a=this;T(this,g),this.quill=y,this.boundsContainer=c||document.body,this.root=y.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 P(g,[{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")}}]),g}();O.default=k},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function d(h,v){var _=[],N=!0,R=!1,B=void 0;try{for(var C=h[Symbol.iterator](),W;!(N=(W=C.next()).done)&&(_.push(W.value),!(v&&_.length===v));N=!0);}catch(M){R=!0,B=M}finally{try{!N&&C.return&&C.return()}finally{if(R)throw B}}return _}return function(h,v){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return d(h,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function d(h,v,_){h===null&&(h=Function.prototype);var N=Object.getOwnPropertyDescriptor(h,v);if(N===void 0){var R=Object.getPrototypeOf(h);return R===null?void 0:d(R,v,_)}else{if("value"in N)return N.value;var B=N.get;return B===void 0?void 0:B.call(_)}},k=function(){function d(h,v){for(var _=0;_<v.length;_++){var N=v[_];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(h,N.key,N)}}return function(h,v,_){return v&&d(h.prototype,v),_&&d(h,_),h}}(),g=p(3),y=s(g),c=p(8),a=s(c),e=p(43),t=s(e),l=p(27),o=s(l),u=p(15),r=p(41),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function n(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function f(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function E(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var m=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(d){E(h,d);function h(v,_){n(this,h),_.modules.toolbar!=null&&_.modules.toolbar.container==null&&(_.modules.toolbar.container=m);var N=f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,v,_));return N.quill.container.classList.add("ql-snow"),N}return k(h,[{key:"extendToolbar",value:function(_){_.container.classList.add("ql-snow"),this.buildButtons([].slice.call(_.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(_.container.querySelectorAll("select")),i.default),this.tooltip=new w(this.quill,this.options.bounds),_.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(N,R){_.handlers.link.call(_,!R.format.link)})}}]),h}(t.default);b.DEFAULTS=(0,y.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 _=this.quill.getText(v);/^\S+@\S+\.\S+$/.test(_)&&_.indexOf("mailto:")!==0&&(_="mailto:"+_);var N=this.quill.theme.tooltip;N.edit("link",_)}else this.quill.format("link",!1)}}}}});var w=function(d){E(h,d);function h(v,_){n(this,h);var N=f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,v,_));return N.preview=N.root.querySelector("a.ql-preview"),N}return k(h,[{key:"listen",value:function(){var _=this;T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(N){_.root.classList.contains("ql-editing")?_.save():_.edit("link",_.preview.textContent),N.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(N){if(_.linkRange!=null){var R=_.linkRange;_.restoreFocus(),_.quill.formatText(R,"link",!1,a.default.sources.USER),delete _.linkRange}N.preventDefault(),_.hide()}),this.quill.on(a.default.events.SELECTION_CHANGE,function(N,R,B){if(N!=null){if(N.length===0&&B===a.default.sources.USER){var C=_.quill.scroll.descendant(o.default,N.index),W=P(C,2),M=W[0],q=W[1];if(M!=null){_.linkRange=new u.Range(N.index-q,M.length());var A=o.default.formats(M.domNode);_.preview.textContent=A,_.preview.setAttribute("href",A),_.show(),_.position(_.quill.getBounds(_.linkRange));return}}else delete _.linkRange;_.hide()}})}},{key:"show",value:function(){T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),h}(e.BaseTooltip);w.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(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(29),T=V(P),k=p(36),g=p(38),y=p(64),c=p(65),a=V(c),e=p(66),t=V(e),l=p(67),o=V(l),u=p(37),r=p(26),i=p(39),s=p(40),n=p(56),f=V(n),E=p(68),m=V(E),b=p(27),w=V(b),d=p(69),h=V(d),v=p(70),_=V(v),N=p(71),R=V(N),B=p(72),C=V(B),W=p(73),M=V(W),q=p(13),A=V(q),S=p(74),L=V(S),F=p(75),D=V(F),x=p(57),I=V(x),U=p(41),H=V(U),Z=p(28),Y=V(Z),X=p(59),Q=V(X),nt=p(60),rt=V(nt),st=p(61),at=V(st),K=p(108),z=V(K),$=p(62),G=V($);function V(J){return J&&J.__esModule?J:{default:J}}T.default.register({"attributors/attribute/direction":g.DirectionAttribute,"attributors/class/align":k.AlignClass,"attributors/class/background":u.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":g.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":s.SizeClass,"attributors/style/align":k.AlignStyle,"attributors/style/background":u.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":g.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":s.SizeStyle},!0),T.default.register({"formats/align":k.AlignClass,"formats/direction":g.DirectionClass,"formats/indent":y.IndentClass,"formats/background":u.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":s.SizeClass,"formats/blockquote":a.default,"formats/code-block":A.default,"formats/header":t.default,"formats/list":o.default,"formats/bold":f.default,"formats/code":q.Code,"formats/italic":m.default,"formats/link":w.default,"formats/script":h.default,"formats/strike":_.default,"formats/underline":R.default,"formats/image":C.default,"formats/video":M.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":at.default},!0),O.default=T.default},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.IndentClass=void 0;var P=function(){function o(u,r){for(var i=0;i<r.length;i++){var s=r[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,r,i){return r&&o(u.prototype,r),i&&o(u,i),u}}(),T=function o(u,r,i){u===null&&(u=Function.prototype);var s=Object.getOwnPropertyDescriptor(u,r);if(s===void 0){var n=Object.getPrototypeOf(u);return n===null?void 0:o(n,r,i)}else{if("value"in s)return s.value;var f=s.get;return f===void 0?void 0:f.call(i)}},k=p(0),g=y(k);function y(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 P(u,[{key:"add",value:function(i,s){if(s==="+1"||s==="-1"){var n=this.value(i)||0;s=s==="+1"?n+1:n-1}return s===0?(this.remove(i),!0):T(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"add",this).call(this,i,s)}},{key:"canAdd",value:function(i,s){return T(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,i,s)||T(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,i,parseInt(s))}},{key:"value",value:function(i){return parseInt(T(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"value",this).call(this,i))||void 0}}]),u}(g.default.Attributor.Class),l=new t("indent","ql-indent",{scope:g.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});O.IndentClass=l},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(4),T=k(P);function k(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 g(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(T.default);a.blotName="blockquote",a.tagName="blockquote",O.default=a},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=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}}(),T=p(4),k=g(T);function g(t){return t&&t.__esModule?t:{default:t}}function y(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 y(this,l),c(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return P(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(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.ListItem=void 0;var P=function(){function n(f,E){for(var m=0;m<E.length;m++){var b=E[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(f,b.key,b)}}return function(f,E,m){return E&&n(f.prototype,E),m&&n(f,m),f}}(),T=function n(f,E,m){f===null&&(f=Function.prototype);var b=Object.getOwnPropertyDescriptor(f,E);if(b===void 0){var w=Object.getPrototypeOf(f);return w===null?void 0:n(w,E,m)}else{if("value"in b)return b.value;var d=b.get;return d===void 0?void 0:d.call(m)}},k=p(0),g=t(k),y=p(4),c=t(y),a=p(25),e=t(a);function t(n){return n&&n.__esModule?n:{default:n}}function l(n,f,E){return f in n?Object.defineProperty(n,f,{value:E,enumerable:!0,configurable:!0,writable:!0}):n[f]=E,n}function o(n,f){if(!(n instanceof f))throw new TypeError("Cannot call a class as a function")}function u(n,f){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:n}function r(n,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);n.prototype=Object.create(f&&f.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(n,f):n.__proto__=f)}var i=function(n){r(f,n);function f(){return o(this,f),u(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return P(f,[{key:"format",value:function(m,b){m===s.blotName&&!b?this.replaceWith(g.default.create(this.statics.scope)):T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,m,b)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(m,b){return this.parent.isolate(this.offset(this.parent),this.length()),m===this.parent.statics.blotName?(this.parent.replaceWith(m,b),this):(this.parent.unwrap(),T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replaceWith",this).call(this,m,b))}}],[{key:"formats",value:function(m){return m.tagName===this.tagName?void 0:T(f.__proto__||Object.getPrototypeOf(f),"formats",this).call(this,m)}}]),f}(c.default);i.blotName="list-item",i.tagName="LI";var s=function(n){r(f,n),P(f,null,[{key:"create",value:function(m){var b=m==="ordered"?"OL":"UL",w=T(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,b);return(m==="checked"||m==="unchecked")&&w.setAttribute("data-checked",m==="checked"),w}},{key:"formats",value:function(m){if(m.tagName==="OL")return"ordered";if(m.tagName==="UL")return m.hasAttribute("data-checked")?m.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function f(E){o(this,f);var m=u(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,E)),b=function(d){if(d.target.parentNode===E){var h=m.statics.formats(E),v=g.default.find(d.target);h==="checked"?v.format("list","unchecked"):h==="unchecked"&&v.format("list","checked")}};return E.addEventListener("touchstart",b),E.addEventListener("mousedown",b),m}return P(f,[{key:"format",value:function(m,b){this.children.length>0&&this.children.tail.format(m,b)}},{key:"formats",value:function(){return l({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(m,b){if(m instanceof i)T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"insertBefore",this).call(this,m,b);else{var w=b==null?this.length():b.offset(this),d=this.split(w);d.parent.insertBefore(m,d)}}},{key:"optimize",value:function(m){T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,m);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(m){if(m.statics.blotName!==this.statics.blotName){var b=g.default.create(this.statics.defaultChild);m.moveChildren(b),this.appendChild(b)}T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replace",this).call(this,m)}}]),f}(e.default);s.blotName="list",s.scope=g.default.Scope.BLOCK_BLOT,s.tagName=["OL","UL"],s.defaultChild="list-item",s.allowedChildren=[i],O.ListItem=i,O.default=s},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(56),T=k(P);function k(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 g(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(T.default);a.blotName="italic",a.tagName=["EM","I"],O.default=a},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=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}}(),T=function l(o,u,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,u);if(i===void 0){var s=Object.getPrototypeOf(o);return s===null?void 0:l(s,u,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},k=p(6),g=y(k);function y(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 P(o,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):T(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}(g.default);t.blotName="script",t.tagName=["SUB","SUP"],O.default=t},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(6),T=k(P);function k(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 g(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(T.default);a.blotName="strike",a.tagName="S",O.default=a},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(6),T=k(P);function k(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 g(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(T.default);a.blotName="underline",a.tagName="U",O.default=a},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(r,i){for(var s=0;s<i.length;s++){var n=i[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,s){return i&&u(r.prototype,i),s&&u(r,s),r}}(),T=function u(r,i,s){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var f=Object.getPrototypeOf(r);return f===null?void 0:u(f,i,s)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(s)}},k=p(0),g=c(k),y=p(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 P(r,[{key:"format",value:function(s,n){l.indexOf(s)>-1?n?this.domNode.setAttribute(s,n):this.domNode.removeAttribute(s):T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,s,n)}}],[{key:"create",value:function(s){var n=T(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,s);return typeof s=="string"&&n.setAttribute("src",this.sanitize(s)),n}},{key:"formats",value:function(s){return l.reduce(function(n,f){return s.hasAttribute(f)&&(n[f]=s.getAttribute(f)),n},{})}},{key:"match",value:function(s){return/\.(jpe?g|gif|png)$/.test(s)||/^data:image\/.+;base64/.test(s)}},{key:"sanitize",value:function(s){return(0,y.sanitize)(s,["http","https","data"])?s:"//:0"}},{key:"value",value:function(s){return s.getAttribute("src")}}]),r}(g.default.Embed);o.blotName="image",o.tagName="IMG",O.default=o},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(r,i){for(var s=0;s<i.length;s++){var n=i[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,s){return i&&u(r.prototype,i),s&&u(r,s),r}}(),T=function u(r,i,s){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var f=Object.getPrototypeOf(r);return f===null?void 0:u(f,i,s)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(s)}},k=p(4),g=p(27),y=c(g);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 P(r,[{key:"format",value:function(s,n){l.indexOf(s)>-1?n?this.domNode.setAttribute(s,n):this.domNode.removeAttribute(s):T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,s,n)}}],[{key:"create",value:function(s){var n=T(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,s);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(s)),n}},{key:"formats",value:function(s){return l.reduce(function(n,f){return s.hasAttribute(f)&&(n[f]=s.getAttribute(f)),n},{})}},{key:"sanitize",value:function(s){return y.default.sanitize(s)}},{key:"value",value:function(s){return s.getAttribute("src")}}]),r}(k.BlockEmbed);o.blotName="video",o.className="ql-video",o.tagName="IFRAME",O.default=o},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.FormulaBlot=void 0;var P=function(){function s(n,f){for(var E=0;E<f.length;E++){var m=f[E];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(n,m.key,m)}}return function(n,f,E){return f&&s(n.prototype,f),E&&s(n,E),n}}(),T=function s(n,f,E){n===null&&(n=Function.prototype);var m=Object.getOwnPropertyDescriptor(n,f);if(m===void 0){var b=Object.getPrototypeOf(n);return b===null?void 0:s(b,f,E)}else{if("value"in m)return m.value;var w=m.get;return w===void 0?void 0:w.call(E)}},k=p(35),g=t(k),y=p(5),c=t(y),a=p(9),e=t(a);function t(s){return s&&s.__esModule?s:{default:s}}function l(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function o(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function u(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var r=function(s){u(n,s);function n(){return l(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return P(n,null,[{key:"create",value:function(E){var m=T(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,E);return typeof E=="string"&&(window.katex.render(E,m,{throwOnError:!1,errorColor:"#f00"}),m.setAttribute("data-value",E)),m}},{key:"value",value:function(E){return E.getAttribute("data-value")}}]),n}(g.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(s){u(n,s),P(n,null,[{key:"register",value:function(){c.default.register(r,!0)}}]);function n(){l(this,n);var f=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return f}return n}(e.default);O.FormulaBlot=r,O.default=i},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.CodeToken=O.CodeBlock=void 0;var P=function(){function E(m,b){for(var w=0;w<b.length;w++){var d=b[w];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(m,d.key,d)}}return function(m,b,w){return b&&E(m.prototype,b),w&&E(m,w),m}}(),T=function E(m,b,w){m===null&&(m=Function.prototype);var d=Object.getOwnPropertyDescriptor(m,b);if(d===void 0){var h=Object.getPrototypeOf(m);return h===null?void 0:E(h,b,w)}else{if("value"in d)return d.value;var v=d.get;return v===void 0?void 0:v.call(w)}},k=p(0),g=o(k),y=p(5),c=o(y),a=p(9),e=o(a),t=p(13),l=o(t);function o(E){return E&&E.__esModule?E:{default:E}}function u(E,m){if(!(E instanceof m))throw new TypeError("Cannot call a class as a function")}function r(E,m){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:E}function i(E,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);E.prototype=Object.create(m&&m.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(E,m):E.__proto__=m)}var s=function(E){i(m,E);function m(){return u(this,m),r(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return P(m,[{key:"replaceWith",value:function(w){this.domNode.textContent=this.domNode.textContent,this.attach(),T(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"replaceWith",this).call(this,w)}},{key:"highlight",value:function(w){var d=this.domNode.textContent;this.cachedText!==d&&((d.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=w(d),this.domNode.normalize(),this.attach()),this.cachedText=d)}}]),m}(l.default);s.className="ql-syntax";var n=new g.default.Attributor.Class("token","hljs",{scope:g.default.Scope.INLINE}),f=function(E){i(m,E),P(m,null,[{key:"register",value:function(){c.default.register(n,!0),c.default.register(s,!0)}}]);function m(b,w){u(this,m);var d=r(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b,w));if(typeof d.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var h=null;return d.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(h),h=setTimeout(function(){d.highlight(),h=null},d.options.interval)}),d.highlight(),d}return P(m,[{key:"highlight",value:function(){var w=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var d=this.quill.getSelection();this.quill.scroll.descendants(s).forEach(function(h){h.highlight(w.options.highlight)}),this.quill.update(c.default.sources.SILENT),d!=null&&this.quill.setSelection(d,c.default.sources.SILENT)}}}]),m}(e.default);f.DEFAULTS={highlight:function(){return window.hljs==null?null:function(E){var m=window.hljs.highlightAuto(E);return m.value}}(),interval:1e3},O.CodeBlock=s,O.CodeToken=n,O.default=f},function(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O){j.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(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BubbleTooltip=void 0;var P=function m(b,w,d){b===null&&(b=Function.prototype);var h=Object.getOwnPropertyDescriptor(b,w);if(h===void 0){var v=Object.getPrototypeOf(b);return v===null?void 0:m(v,w,d)}else{if("value"in h)return h.value;var _=h.get;return _===void 0?void 0:_.call(d)}},T=function(){function m(b,w){for(var d=0;d<w.length;d++){var h=w[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(b,h.key,h)}}return function(b,w,d){return w&&m(b.prototype,w),d&&m(b,d),b}}(),k=p(3),g=u(k),y=p(8),c=u(y),a=p(43),e=u(a),t=p(15),l=p(41),o=u(l);function u(m){return m&&m.__esModule?m:{default:m}}function r(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function i(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function s(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],f=function(m){s(b,m);function b(w,d){r(this,b),d.modules.toolbar!=null&&d.modules.toolbar.container==null&&(d.modules.toolbar.container=n);var h=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,w,d));return h.quill.container.classList.add("ql-bubble"),h}return T(b,[{key:"extendToolbar",value:function(d){this.tooltip=new E(this.quill,this.options.bounds),this.tooltip.root.appendChild(d.container),this.buildButtons([].slice.call(d.container.querySelectorAll("button")),o.default),this.buildPickers([].slice.call(d.container.querySelectorAll("select")),o.default)}}]),b}(e.default);f.DEFAULTS=(0,g.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(b){b?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var E=function(m){s(b,m);function b(w,d){r(this,b);var h=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,w,d));return h.quill.on(c.default.events.EDITOR_CHANGE,function(v,_,N,R){if(v===c.default.events.SELECTION_CHANGE)if(_!=null&&_.length>0&&R===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(_.index,_.length);if(B.length===1)h.position(h.quill.getBounds(_));else{var C=B[B.length-1],W=h.quill.getIndex(C),M=Math.min(C.length()-1,_.index+_.length-W),q=h.quill.getBounds(new t.Range(W,M));h.position(q)}}else document.activeElement!==h.textbox&&h.quill.hasFocus()&&h.hide()}),h}return T(b,[{key:"listen",value:function(){var d=this;P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){d.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!d.root.classList.contains("ql-hidden")){var h=d.quill.getSelection();h!=null&&d.position(d.quill.getBounds(h))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(d){var h=P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"position",this).call(this,d),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);E.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=E,O.default=f},function(j,O,p){j.exports=p(63)}]).default})},71167:function(dt,vt,it){"use strict";var ut=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)}}(),j=this&&this.__assign||function(){return j=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},j.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},p=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},P=p(it(62435)),T=p(it(61254)),k=p(it(18446)),g=p(it(76095)),y=function(a){ut(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,s){var n,f,E,m;u==="text-change"?(f=(n=l).onEditorChangeText)===null||f===void 0||f.call(n,l.editor.root.innerHTML,r,s,l.unprivilegedEditor):u==="selection-change"&&((m=(E=l).onEditorChangeSelection)===null||m===void 0||m.call(E,r,s,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(P.default.Children.count(t.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(P.default.Children.count(t.children)){var o=P.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(s){return!k.default(t[s],o.props[s])})},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,s=i.selection;delete this.regenerationSnapshot,this.instantiateEditor();var n=this.editor;n.setContents(u),c(function(){return o.setEditorSelection(n,s)})}},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 g.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=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(s){t.editingArea=s}};return P.default.Children.count(o)?P.default.cloneElement(P.default.Children.only(o),i):u?P.default.createElement("pre",j({},i)):P.default.createElement("div",j({},i))},e.prototype.render=function(){var t;return P.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 s=this.isDelta(this.value)?u.getContents():u.getHTML();s!==this.getEditorContents()&&(this.lastDeltaChangeSet=l,this.value=s,(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,s,n,f;if(this.editor){var E=this.getEditorSelection(),m=!E&&t,b=E&&!t;k.default(t,E)||(this.selection=t,(r=(u=this.props).onChangeSelection)===null||r===void 0||r.call(u,t,l,o),m?(s=(i=this.props).onFocus)===null||s===void 0||s.call(i,t,l,o):b&&((f=(n=this.props).onBlur)===null||f===void 0||f.call(n,E,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=g.default,e.defaultProps={theme:"snow",modules:{},readOnly:!1},e}(P.default.Component);function c(a){Promise.resolve().then(a)}dt.exports=y}}]);