vendors.quill.chunk.js 211 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. /** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
  2. (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{372:function(ia,da,e){(function(e){(function(e,ca){ia.exports=ca()})("undefined"!==typeof self?self:this,function(){return function(e){function y(fa){if(ea[fa])return ea[fa].exports;var ba=ea[fa]={i:fa,l:!1,exports:{}};e[fa].call(ba.exports,ba,ba.exports,y);ba.l=!0;return ba.exports}var ea={};y.m=e;y.c=ea;y.d=function(e,ba,w){y.o(e,ba)||Object.defineProperty(e,ba,{configurable:!1,enumerable:!0,get:w})};y.n=function(e){var ba=
  3. e&&e.__esModule?function(){return e["default"]}:function(){return e};y.d(ba,"a",ba);return ba};y.o=function(e,y){return Object.prototype.hasOwnProperty.call(e,y)};y.p="";return y(y.s=109)}([function(e,ca,ea){Object.defineProperty(ca,"__esModule",{value:!0});e=ea(17);var y=ea(18),ba=ea(19),w=ea(45),aa=ea(46),r=ea(47),h=ea(48),n=ea(49),f=ea(12),z=ea(32),x=ea(33),ha=ea(31);ea=ea(1);ca.default={Scope:ea.Scope,create:ea.create,find:ea.find,query:ea.query,register:ea.register,Container:e.default,Format:y.default,
  4. Leaf:ba.default,Embed:h.default,Scroll:w.default,Block:r.default,Inline:aa.default,Text:n.default,Attributor:{Attribute:f.default,Class:z.default,Style:x.default,Store:ha.default}}},function(e,ca){function y(f,e){void 0===e&&(e=!1);return null==f?null:null!=f[ca.DATA_KEY]?f[ca.DATA_KEY].blot:e?y(f.parentNode,e):null}function fa(e,w){void 0===w&&(w=z.ANY);if("string"===typeof e)var x=f[e]||r[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)x=f.text;else if("number"===typeof e)e&z.LEVEL&z.BLOCK?
  5. x=f.block:e&z.LEVEL&z.INLINE&&(x=f.inline);else if(e instanceof HTMLElement){var y=(e.getAttribute("class")||"").split(/\s+/),aa;for(aa in y)if(x=h[y[aa]])break;x=x||n[e.tagName]}return null==x?null:w&z.LEVEL&x.scope&&w&z.TYPE&x.scope?x:null}function ba(){for(var e=[],w=0;w<arguments.length;w++)e[w]=arguments[w];if(1<e.length)return e.map(function(f){return ba(f)});var z=e[0];if("string"!==typeof z.blotName&&"string"!==typeof z.attrName)throw new aa("Invalid definition");if("abstract"===z.blotName)throw new aa("Cannot register abstract class");
  6. f[z.blotName||z.attrName]=z;"string"===typeof z.keyName?r[z.keyName]=z:(null!=z.className&&(h[z.className]=z),null!=z.tagName&&(Array.isArray(z.tagName)?z.tagName=z.tagName.map(function(f){return f.toUpperCase()}):z.tagName=z.tagName.toUpperCase(),(Array.isArray(z.tagName)?z.tagName:[z.tagName]).forEach(function(f){if(null==n[f]||null==z.className)n[f]=z})));return z}var w=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,e){f.__proto__=e}||function(f,
  7. e){for(var h in e)e.hasOwnProperty(h)&&(f[h]=e[h])};return function(e,h){function n(){this.constructor=e}f(e,h);e.prototype=null===h?Object.create(h):(n.prototype=h.prototype,new n)}}();Object.defineProperty(ca,"__esModule",{value:!0});var aa=function(f){function e(e){e="[Parchment] "+e;var h=f.call(this,e)||this;h.message=e;h.name=h.constructor.name;return h}w(e,f);return e}(Error);ca.ParchmentError=aa;var r={},h={},n={},f={};ca.DATA_KEY="__blot";var z;(function(f){f[f.TYPE=3]="TYPE";f[f.LEVEL=12]=
  8. "LEVEL";f[f.ATTRIBUTE=13]="ATTRIBUTE";f[f.BLOT=14]="BLOT";f[f.INLINE=7]="INLINE";f[f.BLOCK=11]="BLOCK";f[f.BLOCK_BLOT=10]="BLOCK_BLOT";f[f.INLINE_BLOT=6]="INLINE_BLOT";f[f.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";f[f.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";f[f.ANY=15]="ANY"})(z=ca.Scope||(ca.Scope={}));ca.create=function(f,e){var h=fa(f);if(null==h)throw new aa("Unable to create "+f+" blot");f=f instanceof Node||f.nodeType===Node.TEXT_NODE?f:h.create(e);return new h(f,e)};ca.find=y;ca.query=fa;ca.register=
  9. ba},function(e,ca,ea){function y(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}var ba=ea(51),w=ea(11),aa=ea(3),r=ea(20),h=String.fromCharCode(0);y.prototype.insert=function(e,f){var h={};if(0===e.length)return this;h.insert=e;null!=f&&"object"===typeof f&&0<Object.keys(f).length&&(h.attributes=f);return this.push(h)};y.prototype["delete"]=function(e){return 0>=e?this:this.push({"delete":e})};y.prototype.retain=function(e,f){if(0>=e)return this;e={retain:e};
  10. null!=f&&"object"===typeof f&&0<Object.keys(f).length&&(e.attributes=f);return this.push(e)};y.prototype.push=function(e){var f=this.ops.length,h=this.ops[f-1];e=aa(!0,{},e);if("object"===typeof h){if("number"===typeof e["delete"]&&"number"===typeof h["delete"])return this.ops[f-1]={"delete":h["delete"]+e["delete"]},this;if("number"===typeof h["delete"]&&null!=e.insert&&(--f,h=this.ops[f-1],"object"!==typeof h))return this.ops.unshift(e),this;if(w(e.attributes,h.attributes)){if("string"===typeof e.insert&&
  11. "string"===typeof h.insert)return this.ops[f-1]={insert:h.insert+e.insert},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof h.retain)return this.ops[f-1]={retain:h.retain+e.retain},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this}}f===this.ops.length?this.ops.push(e):this.ops.splice(f,0,e);return this};y.prototype.chop=function(){var e=this.ops[this.ops.length-1];e&&e.retain&&!e.attributes&&this.ops.pop();
  12. return this};y.prototype.filter=function(e){return this.ops.filter(e)};y.prototype.forEach=function(e){this.ops.forEach(e)};y.prototype.map=function(e){return this.ops.map(e)};y.prototype.partition=function(e){var f=[],h=[];this.forEach(function(n){(e(n)?f:h).push(n)});return[f,h]};y.prototype.reduce=function(e,f){return this.ops.reduce(e,f)};y.prototype.changeLength=function(){return this.reduce(function(e,f){return f.insert?e+r.length(f):f.delete?e-f.delete:e},0)};y.prototype.length=function(){return this.reduce(function(e,
  13. f){return e+r.length(f)},0)};y.prototype.slice=function(e,f){e=e||0;"number"!==typeof f&&(f=Infinity);for(var h=[],n=r.iterator(this.ops),w=0;w<f&&n.hasNext();){if(w<e)var aa=n.next(e-w);else aa=n.next(f-w),h.push(aa);w+=r.length(aa)}return new y(h)};y.prototype.compose=function(e){var f=r.iterator(this.ops);e=r.iterator(e.ops);var h=[],n=e.peek();if(null!=n&&"number"===typeof n.retain&&null==n.attributes){for(var aa=n.retain;"insert"===f.peekType()&&f.peekLength()<=aa;)aa-=f.peekLength(),h.push(f.next());
  14. 0<n.retain-aa&&e.next(n.retain-aa)}for(h=new y(h);f.hasNext()||e.hasNext();)if("insert"===e.peekType())h.push(e.next());else if("delete"===f.peekType())h.push(f.next());else{aa=Math.min(f.peekLength(),e.peekLength());var ba=f.next(aa),fa=e.next(aa);if("number"===typeof fa.retain){n={};"number"===typeof ba.retain?n.retain=aa:n.insert=ba.insert;if(aa=r.attributes.compose(ba.attributes,fa.attributes,"number"===typeof ba.retain))n.attributes=aa;h.push(n);if(!e.hasNext()&&w(h.ops[h.ops.length-1],n))return f=
  15. new y(f.rest()),h.concat(f).chop()}else"number"===typeof fa["delete"]&&"number"===typeof ba.retain&&h.push(fa)}return h.chop()};y.prototype.concat=function(e){var f=new y(this.ops.slice());0<e.ops.length&&(f.push(e.ops[0]),f.ops=f.ops.concat(e.ops.slice(1)));return f};y.prototype.diff=function(e,f){if(this.ops===e.ops)return new y;var n=[this,e].map(function(f){return f.map(function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:h;throw Error("diff() called "+(f===e?"on":"with")+" non-document");
  16. }).join("")}),x=new y;f=ba(n[0],n[1],f);var aa=r.iterator(this.ops),fa=r.iterator(e.ops);f.forEach(function(f){for(var e=f[1].length;0<e;){var h=0;switch(f[0]){case ba.INSERT:h=Math.min(fa.peekLength(),e);x.push(fa.next(h));break;case ba.DELETE:h=Math.min(e,aa.peekLength());aa.next(h);x["delete"](h);break;case ba.EQUAL:h=Math.min(aa.peekLength(),fa.peekLength(),e);var n=aa.next(h),z=fa.next(h);if(w(n.insert,z.insert))x.retain(h,r.attributes.diff(n.attributes,z.attributes));else x.push(z)["delete"](h)}e-=
  17. h}});return x.chop()};y.prototype.eachLine=function(e,f){f=f||"\n";for(var h=r.iterator(this.ops),n=new y,w=0;h.hasNext();){if("insert"!==h.peekType())return;var aa=h.peek(),ba=r.length(aa)-h.peekLength();aa="string"===typeof aa.insert?aa.insert.indexOf(f,ba)-ba:-1;if(0>aa)n.push(h.next());else if(0<aa)n.push(h.next(aa));else{if(!1===e(n,h.next(1).attributes||{},w))return;w+=1;n=new y}}0<n.length()&&e(n,{},w)};y.prototype.transform=function(e,f){f=!!f;if("number"===typeof e)return this.transformPosition(e,
  18. f);var h=r.iterator(this.ops);e=r.iterator(e.ops);for(var n=new y;h.hasNext()||e.hasNext();)if("insert"!==h.peekType()||!f&&"insert"===e.peekType())if("insert"===e.peekType())n.push(e.next());else{var w=Math.min(h.peekLength(),e.peekLength()),aa=h.next(w),ba=e.next(w);aa["delete"]||(ba["delete"]?n.push(ba):n.retain(w,r.attributes.transform(aa.attributes,ba.attributes,f)))}else n.retain(r.length(h.next()));return n.chop()};y.prototype.transformPosition=function(e,f){f=!!f;for(var h=r.iterator(this.ops),
  19. n=0;h.hasNext()&&n<=e;){var w=h.peekLength(),y=h.peekType();h.next();"delete"===y?e-=Math.min(w,e-n):("insert"===y&&(n<e||!f)&&(e+=w),n+=w)}return e};e.exports=y},function(e){function y(e,f){if("__proto__"===f){if(!w.call(e,f))return;if(h)return h(e,f).value}return e[f]}function ea(e,f){r&&"__proto__"===f.name?r(e,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):e[f.name]=f.newValue}function fa(e){if(!e||"[object Object]"!==aa.call(e))return!1;var f=w.call(e,"constructor"),h=e.constructor&&
  20. e.constructor.prototype&&w.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!f&&!h)return!1;for(var n in e);return"undefined"===typeof n||w.call(e,n)}function ba(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===aa.call(e)}var w=Object.prototype.hasOwnProperty,aa=Object.prototype.toString,r=Object.defineProperty,h=Object.getOwnPropertyDescriptor;e.exports=function f(){var e,h,r=arguments[0],w=1,aa=arguments.length,ca=!1;"boolean"===typeof r&&(ca=r,r=arguments[1]||
  21. {},w=2);if(null==r||"object"!==typeof r&&"function"!==typeof r)r={};for(;w<aa;++w){var ha=arguments[w];if(null!=ha)for(e in ha){var da=y(r,e);var ia=y(ha,e);r!==ia&&(ca&&ia&&(fa(ia)||(h=ba(ia)))?(h?(h=!1,da=da&&ba(da)?da:[]):da=da&&fa(da)?da:{},ea(r,{name:e,newValue:f(ca,da,ia)})):"undefined"!==typeof ia&&ea(r,{name:e,newValue:ia}))}}return r}},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");
  22. }function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function aa(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function r(e){var h=
  23. 1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return h;"function"===typeof e.formats&&(h=(0,f.default)(h,e.formats()));return null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?h:r(e.parent,h)}Object.defineProperty(ca,"__esModule",{value:!0});ca.default=ca.BlockEmbed=ca.bubbleFormats=void 0;var h=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,
  24. n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),n=function Aa(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return Aa(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}};e=ea(3);var f=y(e);e=ea(2);var z=y(e);e=ea(0);var x=y(e);e=ea(16);var ha=y(e);e=ea(6);e=y(e);ea=ea(7);ea=y(ea);var da=function(e){function r(){ba(this,r);return w(this,(r.__proto__||
  25. Object.getPrototypeOf(r)).apply(this,arguments))}aa(r,e);h(r,[{key:"attach",value:function(){n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"attach",this).call(this);this.attributes=new x.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new z.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(f,e){f=x.default.query(f,x.default.Scope.BLOCK_ATTRIBUTE);null!=f&&this.attributes.attribute(f,e)}},
  26. {key:"formatAt",value:function(f,e,h,n){this.format(h,n)}},{key:"insertAt",value:function(f,e,h){"string"===typeof e&&e.endsWith("\n")?(h=x.default.create(ia.blotName),this.parent.insertBefore(h,0===f?this:this.next),h.insertAt(0,e.slice(0,-1))):n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"insertAt",this).call(this,f,e,h)}}]);return r}(x.default.Embed);da.scope=x.default.Scope.BLOCK_BLOT;var ia=function(f){function e(f){ba(this,e);f=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,
  27. f));f.cache={};return f}aa(e,f);h(e,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(x.default.Leaf).reduce(function(f,e){return 0===e.length()?f:f.insert(e.value(),r(e))},new z.default).insert("\n",r(this)));return this.cache.delta}},{key:"deleteAt",value:function(f,h){n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,f,h);this.cache={}}},{key:"formatAt",value:function(f,h,r,w){0>=h||(x.default.query(r,x.default.Scope.BLOCK)?
  28. f+h===this.length()&&this.format(r,w):n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,f,Math.min(h,this.length()-f-1),r,w),this.cache={})}},{key:"insertAt",value:function(f,h,r){if(null!=r)return n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,f,h,r);if(0!==h.length){h=h.split("\n");r=h.shift();0<r.length&&(f<this.length()-1||null==this.children.tail?n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",
  29. this).call(this,Math.min(f,this.length()-1),r):this.children.tail.insertAt(this.children.tail.length(),r),this.cache={});var w=this;h.reduce(function(f,e){w=w.split(f,!0);w.insertAt(0,e);return e.length},f+r.length)}}},{key:"insertBefore",value:function(f,h){var r=this.children.head;n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,f,h);r instanceof ha.default&&r.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=
  30. n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",value:function(f,h){n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,f,h);this.cache={}}},{key:"optimize",value:function(f){n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,f);this.cache={}}},{key:"path",value:function(f){return n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),
  31. "path",this).call(this,f,!0)}},{key:"removeChild",value:function(f){n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,f);this.cache={}}},{key:"split",value:function(f){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(h&&(0===f||f>=this.length()-1)){h=this.clone();if(0===f)return this.parent.insertBefore(h,this),this;this.parent.insertBefore(h,this.next);return h}h=n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,
  32. f,h);this.cache={};return h}}]);return e}(x.default.Block);ia.blotName="block";ia.tagName="P";ia.defaultChild="break";ia.allowedChildren=[e.default,x.default.Embed,ea.default];ca.bubbleFormats=r;ca.BlockEmbed=da;ca.default=ia},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f,e,h){e in f?Object.defineProperty(f,e,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[e]=h;return f}function w(f,e){e=(0,ma.default)(!0,{container:f,modules:{clipboard:!0,keyboard:!0,history:!0}},
  33. e);if(e.theme&&e.theme!==ta.DEFAULTS.theme){if(e.theme=ta.import("themes/"+e.theme),null==e.theme)throw Error("Invalid theme "+e.theme+". Did you register it?");}else e.theme=ya.default;f=(0,ma.default)(!0,{},e.theme.DEFAULTS);[f,e].forEach(function(f){f.modules=f.modules||{};Object.keys(f.modules).forEach(function(e){!0===f.modules[e]&&(f.modules[e]={})})});var h=Object.keys(f.modules).concat(Object.keys(e.modules)).reduce(function(f,e){var h=ta.import("modules/"+e);null==h?wa.error("Cannot load "+
  34. e+" module. Are you sure you registered it?"):f[e]=h.DEFAULTS||{};return f},{});null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar});e=(0,ma.default)(!0,{},ta.DEFAULTS,{modules:h},f,e);["bounds","container","scrollingContainer"].forEach(function(f){"string"===typeof e[f]&&(e[f]=document.querySelector(e[f]))});e.modules=Object.keys(e.modules).reduce(function(f,h){e.modules[h]&&(f[h]=e.modules[h]);return f},{});return e}function aa(f,
  35. e,n,r){if(this.options.strict&&!this.isEnabled()&&e===da.default.sources.USER)return new x.default;var w=null==n?null:this.getSelection(),z=this.editor.delta;f=f();null!=w&&(!0===n&&(n=w.index),null==r?w=h(w,f,e):0!==r&&(w=h(w,n,r,e)),this.setSelection(w,da.default.sources.SILENT));if(0<f.length()){var y;n=[da.default.events.TEXT_CHANGE,f,z,e];(y=this.emitter).emit.apply(y,[da.default.events.EDITOR_CHANGE].concat(n));if(e!==da.default.sources.SILENT){var aa;(aa=this.emitter).emit.apply(aa,n)}}return f}
  36. function r(f,e,h,r,w){var x={};"number"===typeof f.index&&"number"===typeof f.length?("number"!==typeof e?(w=r,r=h,h=e,e=f.length):e=f.length,f=f.index):"number"!==typeof e&&(w=r,r=h,h=e,e=0);"object"===("undefined"===typeof h?"undefined":n(h))?(x=h,w=r):"string"===typeof h&&(null!=r?x[h]=r:w=h);w=w||da.default.sources.API;return[f,e,x,w]}function h(e,h,n,r){if(null==e)return null;var w=void 0,z=void 0;h instanceof x.default?(w=[e.index,e.index+e.length].map(function(f){return h.transformPosition(f,
  37. r!==da.default.sources.USER)}),e=f(w,2),w=e[0],z=e[1]):(w=[e.index,e.index+e.length].map(function(f){return f<h||f===h&&r===da.default.sources.USER?f:0<=n?f+n:Math.max(h,f+n)}),e=f(w,2),w=e[0],z=e[1]);return new la.Range(w,z-w)}Object.defineProperty(ca,"__esModule",{value:!0});ca.default=ca.overload=ca.expandConfig=void 0;var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?
  38. "symbol":typeof f},f=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!e||h.length!==e);n=!0);}catch(Ba){r=!0,w=Ba}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),z=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=
  39. n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();ea(50);e=ea(2);var x=y(e);e=ea(14);var ha=y(e);e=ea(8);var da=y(e);e=ea(9);e=y(e);var ia=ea(0),oa=y(ia),la=ea(15),ra=y(la);ia=ea(3);var ma=y(ia);ia=ea(10);var Aa=y(ia);ea=ea(34);var ya=y(ea),wa=(0,Aa.default)("quill"),ta=function(){function e(f){var h=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof
  40. e))throw new TypeError("Cannot call a class as a function");this.options=w(f,n);this.container=this.options.container;if(null==this.container)return wa.error("Invalid Quill container",f);this.options.debug&&e.debug(this.options.debug);n=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=
  41. this.options.scrollingContainer||this.root;this.emitter=new da.default;this.scroll=oa.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new ha.default(this.scroll);this.selection=new ra.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(da.default.events.EDITOR_CHANGE,
  42. function(f){f===da.default.events.TEXT_CHANGE&&h.root.classList.toggle("ql-blank",h.editor.isBlank())});this.emitter.on(da.default.events.SCROLL_UPDATE,function(f,e){var n=h.selection.lastRange,r=n&&0===n.length?n.index:void 0;aa.call(h,function(){return h.editor.update(null,e,r)},f)});n=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+n+"<p><br></p></div>");this.setContents(n);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",
  43. this.options.placeholder);this.options.readOnly&&this.disable()}z(e,null,[{key:"debug",value:function(f){!0===f&&(f="log");Aa.default.level(f)}},{key:"find",value:function(f){return f.__quill||oa.default.find(f)}},{key:"import",value:function(f){null==this.imports[f]&&wa.error("Cannot import "+f+". Are you sure it was registered?");return this.imports[f]}},{key:"register",value:function(f,e){var h=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof f?(n=f.attrName||
  44. f.blotName,"string"===typeof n?this.register("formats/"+n,f,e):Object.keys(f).forEach(function(n){h.register(n,f[n],e)})):(null==this.imports[f]||n||wa.warn("Overwriting "+f+" with",e),this.imports[f]=e,(f.startsWith("blots/")||f.startsWith("formats/"))&&"abstract"!==e.blotName?oa.default.register(e):f.startsWith("modules")&&"function"===typeof e.register&&e.register())}}]);z(e,[{key:"addContainer",value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof f){var h=
  45. f;f=document.createElement("div");f.classList.add(h)}this.container.insertBefore(f,e);return f}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,h,n){var w=this;n=r(e,h,n);n=f(n,4);e=n[0];h=n[1];n=n[3];return aa.call(this,function(){return w.editor.deleteText(e,h)},n,e,-1*h)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(f);this.container.classList.toggle("ql-disabled",
  46. !f)}},{key:"focus",value:function(){var f=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=f;this.scrollIntoView()}},{key:"format",value:function(f,e){var h=this;return aa.call(this,function(){var n=h.getSelection(!0),r=new x.default;if(null==n)return r;if(oa.default.query(f,oa.default.Scope.BLOCK))r=h.editor.formatLine(n.index,n.length,ba({},f,e));else{if(0===n.length)return h.selection.format(f,e),r;r=h.editor.formatText(n.index,n.length,ba({},f,e))}h.setSelection(n,
  47. da.default.sources.SILENT);return r},2<arguments.length&&void 0!==arguments[2]?arguments[2]:da.default.sources.API)}},{key:"formatLine",value:function(e,h,n,w,x){var z=this,y=void 0;n=r(e,h,n,w,x);n=f(n,4);e=n[0];h=n[1];y=n[2];x=n[3];return aa.call(this,function(){return z.editor.formatLine(e,h,y)},x,e,0)}},{key:"formatText",value:function(e,h,n,w,x){var z=this,y=void 0;n=r(e,h,n,w,x);n=f(n,4);e=n[0];h=n[1];y=n[2];x=n[3];return aa.call(this,function(){return z.editor.formatText(e,h,y)},x,e,0)}},{key:"getBounds",
  48. value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;e="number"===typeof f?this.selection.getBounds(f,e):this.selection.getBounds(f.index,f.length);var h=this.container.getBoundingClientRect();return{bottom:e.bottom-h.top,height:e.height,left:e.left-h.left,right:e.right-h.left,top:e.top-h.top,width:e.width}}},{key:"getContents",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-
  49. e;e=r(e,h);h=f(e,2);e=h[0];h=h[1];return this.editor.getContents(e,h)}},{key:"getFormat",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof f?this.editor.getFormat(f,e):this.editor.getFormat(f.index,f.length)}},{key:"getIndex",value:function(f){return f.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(f){return this.scroll.leaf(f)}},
  50. {key:"getLine",value:function(f){return this.scroll.line(f)}},{key:"getLines",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof f?this.scroll.lines(f.index,f.length):this.scroll.lines(f,e)}},{key:"getModule",value:function(f){return this.theme.modules[f]}},{key:"getSelection",value:function(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.focus();this.update();
  51. return this.selection.getRange()[0]}},{key:"getText",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-e;e=r(e,h);h=f(e,2);e=h[0];h=h[1];return this.editor.getText(e,h)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(f,h,n){var r=this;return aa.call(this,function(){return r.editor.insertEmbed(f,h,n)},3<arguments.length&&void 0!==arguments[3]?
  52. arguments[3]:e.sources.API,f)}},{key:"insertText",value:function(e,h,n,w,x){var z=this,y=void 0;n=r(e,0,n,w,x);n=f(n,4);e=n[0];y=n[2];x=n[3];return aa.call(this,function(){return z.editor.insertText(e,h,y)},x,e,h.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,
  53. arguments)}},{key:"pasteHTML",value:function(f,e,h){this.clipboard.dangerouslyPasteHTML(f,e,h)}},{key:"removeFormat",value:function(e,h,n){var w=this;n=r(e,h,n);n=f(n,4);e=n[0];h=n[1];n=n[3];return aa.call(this,function(){return w.editor.removeFormat(e,h)},n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(f){var e=this;return aa.call(this,function(){f=new x.default(f);var h=e.getLength();h=e.editor.deleteText(0,
  54. h);var n=e.editor.applyDelta(f),r=n.ops[n.ops.length-1];null!=r&&"string"===typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),n.delete(1));return h.compose(n)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:da.default.sources.API)}},{key:"setSelection",value:function(h,n,w){null==h?this.selection.setRange(null,n||e.sources.API):(h=r(h,n,w),w=f(h,4),h=w[0],n=w[1],w=w[3],this.selection.setRange(new la.Range(h,n),w),w!==da.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},
  55. {key:"setText",value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:da.default.sources.API,h=(new x.default).insert(f);return this.setContents(h,e)}},{key:"update",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:da.default.sources.USER,e=this.scroll.update(f);this.selection.update(f);return e}},{key:"updateContents",value:function(f){var e=this,h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:da.default.sources.API;return aa.call(this,
  56. function(){f=new x.default(f);return e.editor.applyDelta(f,h)},h,!0)}}]);return e}();ta.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};ta.events=da.default.events;ta.sources=da.default.sources;ta.version="1.3.7";ta.imports={delta:x.default,parchment:oa.default,"core/module":e.default,"core/theme":ya.default};ca.expandConfig=w;ca.overload=r;ca.default=ta},function(e,ca,ea){function y(e,h){if("function"!==typeof h&&null!==
  57. h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ca,"__esModule",{value:!0});var ba=function(){function e(e,n){for(var f=0;f<n.length;f++){var h=n[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}
  58. return function(h,n,f){n&&e(h.prototype,n);f&&e(h,f);return h}}(),w=function z(e,n,f){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,n);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,n,f)}else{if("value"in h)return h.value;n=h.get;return void 0===n?void 0:n.call(f)}};e=(e=ea(7))&&e.__esModule?e:{default:e};var aa=(ea=ea(0))&&ea.__esModule?ea:{default:ea};ea=function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");
  59. var f=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}y(h,e);ba(h,[{key:"formatAt",value:function(f,e,n,y){0>h.compare(this.statics.blotName,n)&&aa.default.query(n,aa.default.Scope.BLOT)?(f=this.isolate(f,e),y&&f.wrap(n,y)):w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,f,e,n,y)}},{key:"optimize",
  60. value:function(f){w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,f);this.parent instanceof h&&0<h.compare(this.statics.blotName,this.parent.statics.blotName)&&(f=this.parent.isolate(this.offset(),this.length()),this.moveChildren(f),f.wrap(this))}}],[{key:"compare",value:function(f,e){var n=h.order.indexOf(f),w=h.order.indexOf(e);return 0<=n||0<=w?n-w:f===e?0:f<e?-1:1}}]);return h}(aa.default.Inline);ea.allowedChildren=[ea,aa.default.Embed,e.default];ea.order=
  61. "cursor inline underline strike italic bold script link code".split(" ");ca.default=ea},function(e,ca,ea){function y(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(ca,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof
  62. w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}y(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ea(0)).default.Text);ca.default=e},function(e,ca,ea){function y(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+
  63. typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ca,"__esModule",{value:!0});var ba=function(){function e(e,n){for(var f=0;f<n.length;f++){var h=n[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(h,n,f){n&&e(h.prototype,n);f&&e(h,f);return h}}(),w=function z(e,
  64. n,f){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,n);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,n,f)}else{if("value"in h)return h.value;n=h.get;return void 0===n?void 0:n.call(f)}};e=(e=ea(54))&&e.__esModule?e:{default:e};ea=(ea=ea(10))&&ea.__esModule?ea:{default:ea};var aa=(0,ea.default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,f=Array(e),
  65. h=0;h<e;h++)f[h]=arguments[h];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){if(e.__quill&&e.__quill.emitter){var h;(h=e.__quill.emitter).handleDOM.apply(h,f)}})})});ea=function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var f=(h.__proto__||Object.getPrototypeOf(h)).call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=!f||"object"!==typeof f&&"function"!==typeof f?
  66. this:f;f.listeners={};f.on("error",aa.error);return f}y(h,e);ba(h,[{key:"emit",value:function(){aa.log.apply(aa,arguments);w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(f){for(var e=arguments.length,h=Array(1<e?e-1:0),n=1;n<e;n++)h[n-1]=arguments[n];(this.listeners[f.type]||[]).forEach(function(e){var n=e.node;e=e.handler;(f.target===n||n.contains(f.target))&&e.apply(void 0,[f].concat(h))})}},{key:"listenDOM",value:function(f,
  67. e,h){this.listeners[f]||(this.listeners[f]=[]);this.listeners[f].push({node:e,handler:h})}}]);return h}(e.default);ea.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"};ea.sources={API:"api",SILENT:"silent",USER:"user"};ca.default=ea},function(e,ca){Object.defineProperty(ca,"__esModule",{value:!0});e=function ba(e){var w=1<arguments.length&&
  68. void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof ba))throw new TypeError("Cannot call a class as a function");this.quill=e;this.options=w};e.DEFAULTS={};ca.default=e},function(e,ca){function y(e){if(ba.indexOf(e)<=ba.indexOf(w)){for(var r,h=arguments.length,n=Array(1<h?h-1:0),f=1;f<h;f++)n[f-1]=arguments[f];(r=console)[e].apply(r,n)}}function fa(e){return ba.reduce(function(r,h){r[h]=y.bind(console,h,e);return r},{})}Object.defineProperty(ca,"__esModule",{value:!0});var ba=["error","warn",
  69. "log","info"],w="warn";y.level=fa.level=function(e){w=e};ca.default=fa},function(e,ca,ea){function y(e){return!e||"object"!==typeof e||"number"!==typeof e.length||"function"!==typeof e.copy||"function"!==typeof e.slice||0<e.length&&"number"!==typeof e[0]?!1:!0}function ba(e,f,z){var n;if(null===e||void 0===e||null===f||void 0===f||e.prototype!==f.prototype)return!1;if(r(e)){if(!r(f))return!1;e=w.call(e);f=w.call(f);return h(e,f,z)}if(y(e)){if(!y(f)||e.length!==f.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==
  70. f[n])return!1;return!0}try{var ba=aa(e);var fa=aa(f)}catch(ua){return!1}if(ba.length!=fa.length)return!1;ba.sort();fa.sort();for(n=ba.length-1;0<=n;n--)if(ba[n]!=fa[n])return!1;for(n=ba.length-1;0<=n;n--)if(fa=ba[n],!h(e[fa],f[fa],z))return!1;return typeof e===typeof f}var w=Array.prototype.slice,aa=ea(52),r=ea(53),h=e.exports=function(e,f,h){h||(h={});return e===f?!0:e instanceof Date&&f instanceof Date?e.getTime()===f.getTime():!e||!f||"object"!=typeof e&&"object"!=typeof f?h.strict?e===f:e==f:
  71. ba(e,f,h)}},function(e,ca,ea){Object.defineProperty(ca,"__esModule",{value:!0});var y=ea(1);e=function(){function e(e,aa,r){void 0===r&&(r={});this.attrName=e;this.keyName=aa;e=y.Scope.TYPE&y.Scope.ATTRIBUTE;this.scope=null!=r.scope?r.scope&y.Scope.LEVEL|e:y.Scope.ATTRIBUTE;null!=r.whitelist&&(this.whitelist=r.whitelist)}e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})};e.prototype.add=function(e,y){if(!this.canAdd(e,y))return!1;e.setAttribute(this.keyName,y);return!0};
  72. e.prototype.canAdd=function(e,aa){return null==y.query(e,y.Scope.BLOT&(this.scope|y.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof aa?-1<this.whitelist.indexOf(aa.replace(/["']/g,"")):-1<this.whitelist.indexOf(aa)};e.prototype.remove=function(e){e.removeAttribute(this.keyName)};e.prototype.value=function(e){var w=e.getAttribute(this.keyName);return this.canAdd(e,w)&&w?w:""};return e}();ca.default=e},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f,e){if(!(f instanceof
  73. e))throw new TypeError("Cannot call a class as a function");}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function aa(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?
  74. Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ca,"__esModule",{value:!0});ca.default=ca.Code=void 0;var r=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!e||h.length!==e);n=!0);}catch(wa){r=!0,w=wa}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");
  75. }}(),h=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),n=function ra(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return ra(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}};e=ea(2);
  76. var f=y(e);e=ea(0);var z=y(e);e=ea(4);e=y(e);var x=ea(6);x=y(x);ea=ea(7);var ha=y(ea);ea=function(f){function e(){ba(this,e);return w(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}aa(e,f);return e}(x.default);ea.blotName="code";ea.tagName="CODE";e=function(e){function x(){ba(this,x);return w(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}aa(x,e);h(x,[{key:"delta",value:function(){var e=this,h=this.domNode.textContent;h.endsWith("\n")&&(h=h.slice(0,-1));return h.split("\n").reduce(function(f,
  77. h){return f.insert(h).insert("\n",e.formats())},new f.default)}},{key:"format",value:function(f,e){if(f!==this.statics.blotName||!e){var h=this.descendant(ha.default,this.length()-1);h=r(h,1)[0];null!=h&&h.deleteAt(h.length()-1,1);n(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,f,e)}}},{key:"formatAt",value:function(f,e,h,n){if(0!==e&&null!=z.default.query(h,z.default.Scope.BLOCK)&&(h!==this.statics.blotName||n!==this.statics.formats(this.domNode))){var r=this.newlineIndex(f);
  78. if(!(0>r||r>=f+e)){var w=this.newlineIndex(f,!0)+1;r=r-w+1;var y=this.isolate(w,r),aa=y.next;y.format(h,n);aa instanceof x&&aa.formatAt(0,f-w+e-r,h,n)}}}},{key:"insertAt",value:function(f,e,h){null==h&&(f=this.descendant(ha.default,f),f=r(f,2),f[0].insertAt(f[1],e))}},{key:"length",value:function(){var f=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?f:f+1}},{key:"newlineIndex",value:function(f){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,
  79. f).lastIndexOf("\n");var e=this.domNode.textContent.slice(f).indexOf("\n");return-1<e?f+e:-1}},{key:"optimize",value:function(f){this.domNode.textContent.endsWith("\n")||this.appendChild(z.default.create("text","\n"));n(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,f);var e=this.next;null!=e&&e.prev===this&&e.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===e.statics.formats(e.domNode)&&(e.optimize(f),e.moveChildren(this),e.remove())}},
  80. {key:"replace",value:function(f){n(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,f);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(f){var e=z.default.find(f);null==e?f.parentNode.removeChild(f):e instanceof z.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(f){f=n(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,f);f.setAttribute("spellcheck",!1);return f}},{key:"formats",value:function(){return!0}}]);return x}(e.default);
  81. e.blotName="code-block";e.tagName="PRE";e.TAB=" ";ca.Code=ea;ca.default=e},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f,e,h){e in f?Object.defineProperty(f,e,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[e]=h;return f}function w(f,e){return Object.keys(e).reduce(function(h,n){if(null==f[n])return h;e[n]===f[n]?h[n]=e[n]:Array.isArray(e[n])?0>e[n].indexOf(f[n])&&(h[n]=e[n].concat([f[n]])):h[n]=[e[n],f[n]];return h},{})}function aa(e){return e.reduce(function(f,
  82. e){if(1===e.insert){var h=(0,ra.default)(e.attributes);delete h.image;return f.insert({image:e.attributes.image},h)}null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,ra.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet));return"string"===typeof e.insert?(h=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),f.insert(h,e.attributes)):f.push(e)},new f.default)}Object.defineProperty(ca,"__esModule",{value:!0});var r=
  83. "function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},h=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!e||h.length!==e);n=!0);}catch(za){r=!0,w=za}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;
  84. }}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),n=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ea(2);var f=y(e);e=ea(20);var z=y(e);e=ea(0);var x=y(e);e=ea(13);var ha=y(e);e=ea(24);var da=y(e),ia=ea(4),oa=y(ia);e=ea(16);var la=y(e);e=ea(21);var ra=y(e);e=ea(11);
  85. var ma=y(e);ea=ea(3);var Aa=y(ea),ya=/^[ -~]*$/;ea=function(){function e(f){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.scroll=f;this.delta=this.getDelta()}n(e,[{key:"applyDelta",value:function(f){var e=this,n=!1;this.scroll.update();var w=this.scroll.length();this.scroll.batchStart();f=aa(f);f.reduce(function(f,y){var aa=y.retain||y.delete||y.insert.length||1,ba=y.attributes||{};if(null!=y.insert){if("string"===typeof y.insert){y=y.insert;y.endsWith("\n")&&
  86. n&&(n=!1,y=y.slice(0,-1));f>=w&&!y.endsWith("\n")&&(n=!0);e.scroll.insertAt(f,y);y=e.scroll.line(f);y=h(y,2);var fa=y[0],ea=y[1];y=(0,Aa.default)({},(0,ia.bubbleFormats)(fa));fa instanceof oa.default&&(fa=fa.descendant(x.default.Leaf,ea),fa=h(fa,1)[0],y=(0,Aa.default)(y,(0,ia.bubbleFormats)(fa)));ba=z.default.attributes.diff(y,ba)||{}}else if("object"===r(y.insert)){fa=Object.keys(y.insert)[0];if(null==fa)return f;e.scroll.insertAt(f,fa,y.insert[fa])}w+=aa}Object.keys(ba).forEach(function(h){e.scroll.formatAt(f,
  87. aa,h,ba[h])});return f+aa},0);f.reduce(function(f,h){return"number"===typeof h.delete?(e.scroll.deleteAt(f,h.delete),f):f+(h.retain||h.insert.length||1)},0);this.scroll.batchEnd();return this.update(f)}},{key:"deleteText",value:function(e,h){this.scroll.deleteAt(e,h);return this.update((new f.default).retain(e).delete(h))}},{key:"formatLine",value:function(e,h){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(r).forEach(function(f){if(null==n.scroll.whitelist||
  88. n.scroll.whitelist[f]){var w=n.scroll.lines(e,Math.max(h,1)),x=h;w.forEach(function(h){var w=h.length();if(h instanceof ha.default){var z=e-h.offset(n.scroll),y=h.newlineIndex(z+x)-z+1;h.formatAt(z,y,f,r[f])}else h.format(f,r[f]);x-=w})}});this.scroll.optimize();return this.update((new f.default).retain(e).retain(h,(0,ra.default)(r)))}},{key:"formatText",value:function(e,h){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Object.keys(r).forEach(function(f){n.scroll.formatAt(e,
  89. h,f,r[f])});return this.update((new f.default).retain(e).retain(h,(0,ra.default)(r)))}},{key:"getContents",value:function(f,e){return this.delta.slice(f,f+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(f,e){return f.concat(e.delta())},new f.default)}},{key:"getFormat",value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(f).forEach(function(f){f=h(f,1)[0];f instanceof oa.default?n.push(f):f instanceof x.default.Leaf&&
  90. r.push(f)}):(n=this.scroll.lines(f,e),r=this.scroll.descendants(x.default.Leaf,f,e));e=[n,r].map(function(f){if(0===f.length)return{};for(var e=(0,ia.bubbleFormats)(f.shift());0<Object.keys(e).length;){var h=f.shift();if(null==h)break;e=w((0,ia.bubbleFormats)(h),e)}return e});return Aa.default.apply(Aa.default,e)}},{key:"getText",value:function(f,e){return this.getContents(f,e).filter(function(f){return"string"===typeof f.insert}).map(function(f){return f.insert}).join("")}},{key:"insertEmbed",value:function(e,
  91. h,n){this.scroll.insertAt(e,h,n);return this.update((new f.default).retain(e).insert(ba({},h,n)))}},{key:"insertText",value:function(e,h){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};h=h.replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.scroll.insertAt(e,h);Object.keys(r).forEach(function(f){n.scroll.formatAt(e,h.length,f,r[f])});return this.update((new f.default).retain(e).insert(h,(0,ra.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;
  92. if(1<this.scroll.children.length)return!1;var f=this.scroll.children.head;return f.statics.blotName!==oa.default.blotName||1<f.children.length?!1:f.children.head instanceof la.default}},{key:"removeFormat",value:function(e,n){var r=this.getText(e,n),w=this.scroll.line(e+n),x=h(w,2);w=x[0];x=x[1];var z=0,y=new f.default;null!=w&&(z=w instanceof ha.default?w.newlineIndex(x)-x+1:w.length()-x,y=w.delta().slice(x,x+z-1).insert("\n"));n=this.getContents(e,n+z).diff((new f.default).insert(r).concat(y));
  93. e=(new f.default).retain(e).concat(n);return this.applyDelta(e)}},{key:"update",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===h.length&&"characterData"===h[0].type&&h[0].target.data.match(ya)&&x.default.find(h[0].target)){var w=x.default.find(h[0].target),z=(0,ia.bubbleFormats)(w),y=w.offset(this.scroll);h=h[0].oldValue.replace(da.default.CONTENTS,"");h=(new f.default).insert(h);
  94. w=(new f.default).insert(w.value());e=(new f.default).retain(y).concat(h.diff(w,n)).reduce(function(f,e){return e.insert?f.insert(e.insert,z):f.push(e)},new f.default);this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,ma.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]);return e}();ca.default=ea},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f){if(Array.isArray(f)){for(var e=0,h=Array(f.length);e<f.length;e++)h[e]=f[e];return h}return Array.from(f)}
  95. function w(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");}function aa(f,e){try{e.parentNode}catch(la){return!1}e instanceof Text&&(e=e.parentNode);return f.contains(e)}Object.defineProperty(ca,"__esModule",{value:!0});ca.default=ca.Range=void 0;var r=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!e||h.length!==
  96. e);n=!0);}catch(ta){r=!0,w=ta}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),h=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ea(0);var n=y(e);e=ea(21);var f=y(e);e=ea(11);var z=y(e);e=ea(8);var x=
  97. y(e);ea=ea(10);ea=y(ea);var ha=(0,ea.default)("quill:selection"),da=function la(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;w(this,la);this.index=f;this.length=e};ea=function(){function e(f,h){var r=this;w(this,e);this.emitter=h;this.scroll=f;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=n.default.create("cursor",this);this.lastRange=this.savedRange=new da(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",
  98. document,function(){r.mouseDown||setTimeout(r.update.bind(r,x.default.sources.USER),1)});this.emitter.on(x.default.events.EDITOR_CHANGE,function(f,e){f===x.default.events.TEXT_CHANGE&&0<e.length()&&r.update(x.default.sources.SILENT)});this.emitter.on(x.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var f=r.getNativeRange();if(null!=f&&f.start.node!==r.cursor.textNode)r.emitter.once(x.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(f.start.node,f.start.offset,f.end.node,
  99. f.end.offset)}catch(ya){}})}});this.emitter.on(x.default.events.SCROLL_OPTIMIZE,function(f,e){e.range&&(f=e.range,r.setNativeRange(f.startNode,f.startOffset,f.endNode,f.endOffset))});this.update(x.default.sources.SILENT)}h(e,[{key:"handleComposition",value:function(){var f=this;this.root.addEventListener("compositionstart",function(){f.composing=!0});this.root.addEventListener("compositionend",function(){f.composing=!1;if(f.cursor.parent){var e=f.cursor.restore();e&&setTimeout(function(){f.setNativeRange(e.startNode,
  100. e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function(){var f=this;this.emitter.listenDOM("mousedown",document.body,function(){f.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){f.mouseDown=!1;f.update(x.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(f,e){if(null==this.scroll.whitelist||this.scroll.whitelist[f]){this.scroll.update();var h=
  101. this.getNativeRange();if(null!=h&&h.native.collapsed&&!n.default.query(f,n.default.Scope.BLOCK)){if(h.start.node!==this.cursor.textNode){var r=n.default.find(h.start.node,!1);if(null==r)return;r instanceof n.default.Leaf?(h=r.split(h.start.offset),r.parent.insertBefore(this.cursor,h)):r.insertBefore(this.cursor,h.start.node);this.cursor.attach()}this.cursor.format(f,e);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",
  102. value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,h=this.scroll.length();f=Math.min(f,h-1);e=Math.min(f+e,h-1)-f;h=this.scroll.leaf(f);var n=r(h,2);h=n[0];var w=n[1];if(null==h)return null;n=h.position(w,!0);n=r(n,2);var x=n[0];w=n[1];n=document.createRange();if(0<e){n.setStart(x,w);e=this.scroll.leaf(f+e);e=r(e,2);h=e[0];w=e[1];if(null==h)return null;e=h.position(w,!0);e=r(e,2);x=e[0];w=e[1];n.setEnd(x,w);return n.getBoundingClientRect()}e="left";x instanceof Text?
  103. (w<x.data.length?(n.setStart(x,w),n.setEnd(x,w+1)):(n.setStart(x,w-1),n.setEnd(x,w),e="right"),h=n.getBoundingClientRect()):(h=h.domNode.getBoundingClientRect(),0<w&&(e="right"));return{bottom:h.top+h.height,height:h.height,left:h[e],right:h[e],top:h.top,width:0}}},{key:"getNativeRange",value:function(){var f=document.getSelection();if(null==f||0>=f.rangeCount)return null;f=f.getRangeAt(0);if(null==f)return null;f=this.normalizeNative(f);ha.info("getNativeRange",f);return f}},{key:"getRange",value:function(){var f=
  104. this.getNativeRange();return null==f?[null,null]:[this.normalizedToRange(f),f]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(f){var e=this,h=[[f.start.node,f.start.offset]];f.native.collapsed||h.push([f.end.node,f.end.offset]);h=h.map(function(f){var h=r(f,2);f=h[0];h=h[1];var w=n.default.find(f,!0),x=w.offset(e.scroll);return 0===h?x:w instanceof n.default.Container?x+w.length():x+w.index(f,h)});f=Math.min(Math.max.apply(Math,
  105. ba(h)),this.scroll.length()-1);h=Math.min.apply(Math,[f].concat(ba(h)));return new da(h,f-h)}},{key:"normalizeNative",value:function(f){if(!aa(this.root,f.startContainer)||!f.collapsed&&!aa(this.root,f.endContainer))return null;f={start:{node:f.startContainer,offset:f.startOffset},end:{node:f.endContainer,offset:f.endOffset},native:f};[f.start,f.end].forEach(function(f){for(var e=f.node,h=f.offset;!(e instanceof Text)&&0<e.childNodes.length;)if(e.childNodes.length>h)e=e.childNodes[h],h=0;else if(e.childNodes.length===
  106. h)e=e.lastChild,h=e instanceof Text?e.data.length:e.childNodes.length+1;else break;f.node=e;f.offset=h});return f}},{key:"rangeToNative",value:function(f){var e=this;f=f.collapsed?[f.index]:[f.index,f.index+f.length];var h=[],n=this.scroll.length();f.forEach(function(f,w){f=Math.min(n-1,f);f=e.scroll.leaf(f);var x=r(f,2);f=x[1];w=x[0].position(f,0!==w);f=r(w,2);w=f[0];f=f[1];h.push(w,f)});2>h.length&&(h=h.concat(h));return h}},{key:"scrollIntoView",value:function(f){var e=this.lastRange;if(null!=
  107. e){var h=this.getBounds(e.index,e.length);if(null!=h){var n=this.scroll.length()-1,w=this.scroll.line(Math.min(e.index,n)),x=w=r(w,1)[0];0<e.length&&(e=this.scroll.line(Math.min(e.index+e.length,n)),x=r(e,1)[0]);null!=w&&null!=x&&(e=f.getBoundingClientRect(),h.top<e.top?f.scrollTop-=e.top-h.top:h.bottom>e.bottom&&(f.scrollTop+=h.bottom-e.bottom))}}}},{key:"setNativeRange",value:function(f,e){var h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:f,n=3<arguments.length&&void 0!==arguments[3]?
  108. arguments[3]:e,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;ha.info("setNativeRange",f,e,h,n);if(null==f||null!=this.root.parentNode&&null!=f.parentNode&&null!=h.parentNode){var w=document.getSelection();if(null!=w)if(null!=f){this.hasFocus()||this.root.focus();var x=(this.getNativeRange()||{}).native;if(null==x||r||f!==x.startContainer||e!==x.startOffset||h!==x.endContainer||n!==x.endOffset)"BR"==f.tagName&&(e=[].indexOf.call(f.parentNode.childNodes,f),f=f.parentNode),"BR"==h.tagName&&
  109. (n=[].indexOf.call(h.parentNode.childNodes,h),h=h.parentNode),r=document.createRange(),r.setStart(f,e),r.setEnd(h,n),w.removeAllRanges(),w.addRange(r)}else w.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:x.default.sources.API;"string"===typeof e&&(h=e,e=!1);ha.info("setRange",f);if(null!=f){var n=this.rangeToNative(f);this.setNativeRange.apply(this,
  110. ba(n).concat([e]))}else this.setNativeRange(null);this.update(h)}},{key:"update",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:x.default.sources.USER,h=this.lastRange,n=this.getRange();n=r(n,2);var w=n[1];this.lastRange=n[0];null!=this.lastRange&&(this.savedRange=this.lastRange);if(!(0,z.default)(h,this.lastRange)){var y;!this.composing&&null!=w&&w.native.collapsed&&w.start.node!==this.cursor.textNode&&this.cursor.restore();h=[x.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),
  111. (0,f.default)(h),e];(y=this.emitter).emit.apply(y,[x.default.events.EDITOR_CHANGE].concat(h));if(e!==x.default.sources.SILENT){var aa;(aa=this.emitter).emit.apply(aa,h)}}}}]);return e}();ca.Range=da;ca.default=ea},function(e,ca,ea){function y(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?
  112. Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(ca,"__esModule",{value:!0});var ba=function(){function e(e,h){for(var n=0;n<h.length;n++){var f=h[n];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(e,f.key,f)}}return function(r,h,n){h&&e(r.prototype,h);n&&e(r,n);return r}}(),w=function f(e,h,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,h);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return f(e,
  113. h,n)}else{if("value"in r)return r.value;h=r.get;return void 0===h?void 0:h.call(n)}};e=function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var e=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}y(h,e);ba(h,[{key:"insertInto",value:function(e,f){0===e.children.length?w(h.prototype.__proto__||
  114. Object.getPrototypeOf(h.prototype),"insertInto",this).call(this,e,f):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ea(0)).default.Embed);e.blotName="break";e.tagName="BR";ca.default=e},function(e,ca,ea){function y(e){var h=aa.find(e);if(null==h)try{h=aa.create(e)}catch(n){h=aa.create(aa.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(f){h.domNode.appendChild(f)}),
  115. e.parentNode&&e.parentNode.replaceChild(h.domNode,e),h.attach()}return h}var ba=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var f in n)n.hasOwnProperty(f)&&(e[f]=n[f])};return function(h,n){function f(){this.constructor=h}e(h,n);h.prototype=null===n?Object.create(n):(f.prototype=n.prototype,new f)}}();Object.defineProperty(ca,"__esModule",{value:!0});var w=ea(44);e=ea(30);var aa=ea(1);ea=function(e){function h(h){h=
  116. e.call(this,h)||this;h.build();return h}ba(h,e);h.prototype.appendChild=function(e){this.insertBefore(e)};h.prototype.attach=function(){e.prototype.attach.call(this);this.children.forEach(function(e){e.attach()})};h.prototype.build=function(){var e=this;this.children=new w.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(f){try{var h=y(f);e.insertBefore(h,e.children.head||void 0)}catch(x){if(!(x instanceof aa.ParchmentError))throw x;}})};h.prototype.deleteAt=function(e,f){if(0===
  117. e&&f===this.length())return this.remove();this.children.forEachAt(e,f,function(f,e,h){f.deleteAt(e,h)})};h.prototype.descendant=function(e,f){var n=this.children.find(f);f=n[0];n=n[1];return null==e.blotName&&e(f)||null!=e.blotName&&f instanceof e?[f,n]:f instanceof h?f.descendant(e,n):[null,-1]};h.prototype.descendants=function(e,f,r){void 0===f&&(f=0);void 0===r&&(r=Number.MAX_VALUE);var n=[],w=r;this.children.forEachAt(f,r,function(f,r,x){(null==e.blotName&&e(f)||null!=e.blotName&&f instanceof
  118. e)&&n.push(f);f instanceof h&&(n=n.concat(f.descendants(e,r,w)));w-=x});return n};h.prototype.detach=function(){this.children.forEach(function(e){e.detach()});e.prototype.detach.call(this)};h.prototype.formatAt=function(e,f,h,r){this.children.forEachAt(e,f,function(f,e,n){f.formatAt(e,n,h,r)})};h.prototype.insertAt=function(e,f,h){var n=this.children.find(e);e=n[0];n=n[1];e?e.insertAt(n,f,h):(f=null==h?aa.create("text",f):aa.create(f,h),this.appendChild(f))};h.prototype.insertBefore=function(e,f){if(null!=
  119. this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(f){return e instanceof f}))throw new aa.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,f)};h.prototype.length=function(){return this.children.reduce(function(e,f){return e+f.length()},0)};h.prototype.moveChildren=function(e,f){this.children.forEach(function(h){e.insertBefore(h,f)})};h.prototype.optimize=function(h){e.prototype.optimize.call(this,h);if(0===this.children.length)if(null!=
  120. this.statics.defaultChild){var f=aa.create(this.statics.defaultChild);this.appendChild(f);f.optimize(h)}else this.remove()};h.prototype.path=function(e,f){void 0===f&&(f=!1);var n=this.children.find(e,f),r=n[0];n=n[1];e=[[this,e]];if(r instanceof h)return e.concat(r.path(n,f));null!=r&&e.push([r,n]);return e};h.prototype.removeChild=function(e){this.children.remove(e)};h.prototype.replace=function(n){n instanceof h&&n.moveChildren(this);e.prototype.replace.call(this,n)};h.prototype.split=function(e,
  121. f){void 0===f&&(f=!1);if(!f){if(0===e)return this;if(e===this.length())return this.next}var h=this.clone();this.parent.insertBefore(h,this.next);this.children.forEachAt(e,this.length(),function(e,n){e=e.split(n,f);h.appendChild(e)});return h};h.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};h.prototype.update=function(e){var f=this,h=[],n=[];e.forEach(function(e){e.target===f.domNode&&"childList"===e.type&&(h.push.apply(h,e.addedNodes),n.push.apply(n,e.removedNodes))});
  122. n.forEach(function(e){null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY||(e=aa.find(e),null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==f.domNode||e.detach()))});h.filter(function(e){return e.parentNode==f.domNode}).sort(function(f,e){return f===e?0:f.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var h=null;null!=e.nextSibling&&(h=aa.find(e.nextSibling));e=y(e);if(e.next!=h||null==
  123. e.next)null!=e.parent&&e.parent.removeChild(f),f.insertBefore(e,h||void 0)})};return h}(e.default);ca.default=ea},function(e,ca,ea){var y=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var f in n)n.hasOwnProperty(f)&&(e[f]=n[f])};return function(h,n){function f(){this.constructor=h}e(h,n);h.prototype=null===n?Object.create(n):(f.prototype=n.prototype,new f)}}();Object.defineProperty(ca,"__esModule",{value:!0});
  124. var ba=ea(12),w=ea(31);e=ea(17);var aa=ea(1);ea=function(e){function h(h){h=e.call(this,h)||this;h.attributes=new w.default(h.domNode);return h}y(h,e);h.formats=function(e){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()};h.prototype.format=function(e,f){var h=aa.query(e);h instanceof ba.default?this.attributes.attribute(h,f):f&&(null==h||e===this.statics.blotName&&this.formats()[e]===f||this.replaceWith(e,f))};h.prototype.formats=function(){var e=
  125. this.attributes.values(),f=this.statics.formats(this.domNode);null!=f&&(e[this.statics.blotName]=f);return e};h.prototype.replaceWith=function(h,f){h=e.prototype.replaceWith.call(this,h,f);this.attributes.copy(h);return h};h.prototype.update=function(h,f){var n=this;e.prototype.update.call(this,h,f);h.some(function(f){return f.target===n.domNode&&"attributes"===f.type})&&this.attributes.build()};h.prototype.wrap=function(n,f){n=e.prototype.wrap.call(this,n,f);n instanceof h&&n.statics.scope===this.statics.scope&&
  126. this.attributes.move(n);return n};return h}(e.default);ca.default=ea},function(e,ca,ea){var y=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var h in r)r.hasOwnProperty(h)&&(e[h]=r[h])};return function(w,r){function h(){this.constructor=w}e(w,r);w.prototype=null===r?Object.create(r):(h.prototype=r.prototype,new h)}}();Object.defineProperty(ca,"__esModule",{value:!0});e=ea(30);var ba=ea(1);ea=function(e){function w(){return null!==
  127. e&&e.apply(this,arguments)||this}y(w,e);w.value=function(){return!0};w.prototype.index=function(e,h){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(h,1):-1};w.prototype.position=function(e){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<e&&(h+=1);return[this.parent.domNode,h]};w.prototype.value=function(){var e;return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e};w.scope=ba.Scope.INLINE_BLOT;
  128. return w}(e.default);ca.default=ea},function(e,ca,ea){function y(e){this.ops=e;this.offset=this.index=0}var ba=ea(11),w=ea(3),aa={attributes:{compose:function(e,h,n){"object"!==typeof e&&(e={});"object"!==typeof h&&(h={});var f=w(!0,{},h);n||(f=Object.keys(f).reduce(function(e,h){null!=f[h]&&(e[h]=f[h]);return e},{}));for(var r in e)void 0!==e[r]&&void 0===h[r]&&(f[r]=e[r]);return 0<Object.keys(f).length?f:void 0},diff:function(e,h){"object"!==typeof e&&(e={});"object"!==typeof h&&(h={});var n=Object.keys(e).concat(Object.keys(h)).reduce(function(f,
  129. n){ba(e[n],h[n])||(f[n]=void 0===h[n]?null:h[n]);return f},{});return 0<Object.keys(n).length?n:void 0},transform:function(e,h,n){if("object"!==typeof e)return h;if("object"===typeof h){if(!n)return h;n=Object.keys(h).reduce(function(f,n){void 0===e[n]&&(f[n]=h[n]);return f},{});return 0<Object.keys(n).length?n:void 0}}},iterator:function(e){return new y(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:
  130. 1}};y.prototype.hasNext=function(){return Infinity>this.peekLength()};y.prototype.next=function(e){e||(e=Infinity);var h=this.ops[this.index];if(h){var n=this.offset,f=aa.length(h);e>=f-n?(e=f-n,this.index+=1,this.offset=0):this.offset+=e;if("number"===typeof h["delete"])return{"delete":e};f={};h.attributes&&(f.attributes=h.attributes);"number"===typeof h.retain?f.retain=e:f.insert="string"===typeof h.insert?h.insert.substr(n,e):h.insert;return f}return{retain:Infinity}};y.prototype.peek=function(){return this.ops[this.index]};
  131. y.prototype.peekLength=function(){return this.ops[this.index]?aa.length(this.ops[this.index])-this.offset:Infinity};y.prototype.peekType=function(){if(this.ops[this.index]){if("number"===typeof this.ops[this.index]["delete"])return"delete";if("number"!==typeof this.ops[this.index].retain)return"insert"}return"retain"};y.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,h=this.index,n=this.next(),f=this.ops.slice(this.index);this.offset=
  132. e;this.index=h;return[n].concat(f)}return[]};e.exports=aa},function(y){var ca=function(){function y(e,f){return null!=f&&e instanceof f}function fa(n,f,z,x,ba){function ea(n,z){if(null===n)return null;if(0===z||"object"!=typeof n)return n;if(y(n,aa))var ja=new aa;else if(y(n,r))ja=new r;else if(y(n,h))ja=new h(function(f,e){n.then(function(e){f(ea(e,z-1))},function(f){e(ea(f,z-1))})});else if(fa.__isArray(n))ja=[];else if(fa.__isRegExp(n))ja=new RegExp(n.source,w(n)),n.lastIndex&&(ja.lastIndex=n.lastIndex);
  133. else if(fa.__isDate(n))ja=new Date(n.getTime());else{if(da&&e.isBuffer(n))return ja=e.allocUnsafe?e.allocUnsafe(n.length):new e(n.length),n.copy(ja),ja;if(y(n,Error))ja=Object.create(n);else if("undefined"==typeof x){var ia=Object.getPrototypeOf(n);ja=Object.create(ia)}else ja=Object.create(x),ia=x}if(f){var wa=ca.indexOf(n);if(-1!=wa)return ha[wa];ca.push(n);ha.push(ja)}y(n,aa)&&n.forEach(function(f,e){e=ea(e,z-1);f=ea(f,z-1);ja.set(e,f)});y(n,r)&&n.forEach(function(f){f=ea(f,z-1);ja.add(f)});for(var ka in n){var ma;
  134. ia&&(ma=Object.getOwnPropertyDescriptor(ia,ka));ma&&null==ma.set||(ja[ka]=ea(n[ka],z-1))}if(Object.getOwnPropertySymbols)for(wa=Object.getOwnPropertySymbols(n),ka=0;ka<wa.length;ka++)if(ma=wa[ka],ia=Object.getOwnPropertyDescriptor(n,ma),!ia||ia.enumerable||ba)ja[ma]=ea(n[ma],z-1),ia.enumerable||Object.defineProperty(ja,ma,{enumerable:!1});if(ba)for(wa=Object.getOwnPropertyNames(n),ka=0;ka<wa.length;ka++)ma=wa[ka],ia=Object.getOwnPropertyDescriptor(n,ma),ia&&ia.enumerable||(ja[ma]=ea(n[ma],z-1),Object.defineProperty(ja,
  135. ma,{enumerable:!1}));return ja}"object"===typeof f&&(z=f.depth,x=f.prototype,ba=f.includeNonEnumerable,f=f.circular);var ca=[],ha=[],da="undefined"!=typeof e;"undefined"==typeof f&&(f=!0);"undefined"==typeof z&&(z=Infinity);return ea(n,z)}function ba(e){return Object.prototype.toString.call(e)}function w(e){var f="";e.global&&(f+="g");e.ignoreCase&&(f+="i");e.multiline&&(f+="m");return f}try{var aa=Map}catch(n){aa=function(){}}try{var r=Set}catch(n){r=function(){}}try{var h=Promise}catch(n){h=function(){}}fa.clonePrototype=
  136. function(e){function f(){}if(null===e)return null;f.prototype=e;return new f};fa.__objToStr=ba;fa.__isDate=function(e){return"object"===typeof e&&"[object Date]"===ba(e)};fa.__isArray=function(e){return"object"===typeof e&&"[object Array]"===ba(e)};fa.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===ba(e)};fa.__getRegExpFlags=w;return fa}();"object"===typeof y&&y.exports&&(y.exports=ca)},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  137. return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function w(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function aa(f){return f instanceof ha.default||f instanceof x.BlockEmbed}Object.defineProperty(ca,"__esModule",{value:!0});var r=
  138. function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!e||h.length!==e);n=!0);}catch(qa){r=!0,w=qa}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),h=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;
  139. n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),n=function Aa(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return Aa(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}};e=ea(0);var f=y(e);e=ea(8);var z=y(e),x=ea(4),ha=y(x);e=ea(16);var da=y(e);e=ea(13);var ia=y(e);ea=ea(25);
  140. ea=y(ea);e=function(e){function y(f,e){if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");f=ba(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,f));f.emitter=e.emitter;Array.isArray(e.whitelist)&&(f.whitelist=e.whitelist.reduce(function(f,e){f[e]=!0;return f},{}));f.domNode.addEventListener("DOMNodeInserted",function(){});f.optimize();f.enable();return f}w(y,e);h(y,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;
  141. this.optimize()}},{key:"deleteAt",value:function(f,e){var h=this.line(f),w=r(h,2);h=w[0];var z=w[1];w=this.line(f+e);w=r(w,1)[0];n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"deleteAt",this).call(this,f,e);if(null!=w&&h!==w&&0<z){if(h instanceof x.BlockEmbed||w instanceof x.BlockEmbed){this.optimize();return}if(h instanceof ia.default){if(f=h.newlineIndex(h.length(),!0),-1<f&&(h=h.split(f+1),h===w)){this.optimize();return}}else w instanceof ia.default&&(f=w.newlineIndex(0),-1<f&&w.split(f+
  142. 1));h.moveChildren(w,w.children.head instanceof da.default?null:w.children.head);h.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0)}},{key:"formatAt",value:function(f,e,h,r){if(null==this.whitelist||this.whitelist[h])n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,f,e,h,r),this.optimize()}},{key:"insertAt",value:function(e,h,r){if(null==r||null==this.whitelist||
  143. this.whitelist[h])e>=this.length()?null==r||null==f.default.query(h,f.default.Scope.BLOCK)?(e=f.default.create(this.statics.defaultChild),this.appendChild(e),null==r&&h.endsWith("\n")&&(h=h.slice(0,-1)),e.insertAt(0,h,r)):(h=f.default.create(h,r),this.appendChild(h)):n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertAt",this).call(this,e,h,r),this.optimize()}},{key:"insertBefore",value:function(e,h){if(e.statics.scope===f.default.Scope.INLINE_BLOT){var r=f.default.create(this.statics.defaultChild);
  144. r.appendChild(e);e=r}n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertBefore",this).call(this,e,h)}},{key:"leaf",value:function(f){return this.path(f).pop()||[null,-1]}},{key:"line",value:function(f){return f===this.length()?this.line(f-1):this.descendant(aa,f)}},{key:"lines",value:function(){return function ta(e,h,n){var r=[],w=n;e.children.forEachAt(h,n,function(e,h,n){aa(e)?r.push(e):e instanceof f.default.Container&&(r=r.concat(ta(e,h,w)));w-=n});return r}(this,0<arguments.length&&
  145. void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,f,e),0<f.length&&this.emitter.emit(z.default.events.SCROLL_OPTIMIZE,f,e))}},{key:"path",value:function(f){return n(y.prototype.__proto__||
  146. Object.getPrototypeOf(y.prototype),"path",this).call(this,f).slice(1)}},{key:"update",value:function(f){if(!0!==this.batch){var e=z.default.sources.USER;"string"===typeof f&&(e=f);Array.isArray(f)||(f=this.observer.takeRecords());0<f.length&&this.emitter.emit(z.default.events.SCROLL_BEFORE_UPDATE,e,f);n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"update",this).call(this,f.concat([]));0<f.length&&this.emitter.emit(z.default.events.SCROLL_UPDATE,e,f)}}}]);return y}(f.default.Scroll);
  147. e.blotName="scroll";e.className="ql-editor";e.tagName="DIV";e.defaultChild="block";e.allowedChildren=[ha.default,x.BlockEmbed,ea.default];ca.default=e},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f,e,h){e in f?Object.defineProperty(f,e,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[e]=h;return f}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?
  148. f:e}function aa(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function r(f,e){var h,n=f===Da.keys.LEFT?"prefix":"suffix";return h={key:f,shiftKey:e,altKey:null},ba(h,n,/^$/),ba(h,"handler",function(h){var n=h.index;f===Da.keys.RIGHT&&(n+=h.length+
  149. 1);n=this.quill.getLeaf(n);if(!(oa(n,1)[0]instanceof ta.default.Embed))return!0;f===Da.keys.LEFT?e?this.quill.setSelection(h.index-1,h.length+1,qa.default.sources.USER):this.quill.setSelection(h.index-1,qa.default.sources.USER):e?this.quill.setSelection(h.index,h.length+1,qa.default.sources.USER):this.quill.setSelection(h.index+h.length+1,qa.default.sources.USER);return!1}),h}function h(f,e){if(!(0===f.index||1>=this.quill.getLength())){var h=this.quill.getLine(f.index),n=oa(h,1)[0];h={};if(0===e.offset){var r=
  150. this.quill.getLine(f.index-1);r=oa(r,1)[0];null!=r&&1<r.length()&&(h=n.formats(),n=this.quill.getFormat(f.index-1,1),h=wa.default.attributes.diff(h,n)||{})}e=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(f.index-e,e,qa.default.sources.USER);0<Object.keys(h).length&&this.quill.formatLine(f.index-e,e,h,qa.default.sources.USER);this.quill.focus()}}function n(f,e){var h=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(f.index>=this.quill.getLength()-h)){var n={},
  151. r=0,w=this.quill.getLine(f.index);w=oa(w,1)[0];e.offset>=w.length()-1&&(e=this.quill.getLine(f.index+1),e=oa(e,1)[0])&&(n=w.formats(),r=this.quill.getFormat(f.index,1),n=wa.default.attributes.diff(n,r)||{},r=e.length());this.quill.deleteText(f.index,h,qa.default.sources.USER);0<Object.keys(n).length&&this.quill.formatLine(f.index+r-1,h,n,qa.default.sources.USER)}}function f(f){var e=this.quill.getLines(f),h={};1<e.length&&(h=e[0].formats(),e=e[e.length-1].formats(),h=wa.default.attributes.diff(e,
  152. h)||{});this.quill.deleteText(f,qa.default.sources.USER);0<Object.keys(h).length&&this.quill.formatLine(f.index,1,h,qa.default.sources.USER);this.quill.setSelection(f.index,qa.default.sources.SILENT);this.quill.focus()}function z(f,e){var h=this;0<f.length&&this.quill.scroll.deleteAt(f.index,f.length);var n=Object.keys(e.format).reduce(function(f,h){ta.default.query(h,ta.default.Scope.BLOCK)&&!Array.isArray(e.format[h])&&(f[h]=e.format[h]);return f},{});this.quill.insertText(f.index,"\n",n,qa.default.sources.USER);
  153. this.quill.setSelection(f.index+1,qa.default.sources.SILENT);this.quill.focus();Object.keys(e.format).forEach(function(f){null==n[f]&&(Array.isArray(e.format[f])||"link"!==f&&h.quill.format(f,e.format[f],qa.default.sources.USER))})}function x(f){return{key:Da.keys.TAB,shiftKey:!f,format:{"code-block":!0},handler:function(e){var h=ta.default.query("code-block"),n=e.index,r=e.length;e=this.quill.scroll.descendant(h,n);e=oa(e,2);var w=e[0],x=e[1];if(null!=w){e=this.quill.getIndex(w);var z=w.newlineIndex(x,
  154. !0)+1;e=w.newlineIndex(e+x+r);e=w.domNode.textContent.slice(z,e).split("\n");x=0;e.forEach(function(e,y){f?(w.insertAt(z+x,h.TAB),x+=h.TAB.length,0===y?n+=h.TAB.length:r+=h.TAB.length):e.startsWith(h.TAB)&&(w.deleteAt(z+x,h.TAB.length),x-=h.TAB.length,0===y?n-=h.TAB.length:r-=h.TAB.length);x+=e.length+1});this.quill.update(qa.default.sources.USER);this.quill.setSelection(n,r,qa.default.sources.SILENT)}}}}function ha(f){return{key:f[0].toUpperCase(),shortKey:!0,handler:function(e,h){this.quill.format(f,
  155. !h.format[f],qa.default.sources.USER)}}}function da(f){if("string"===typeof f||"number"===typeof f)return da({key:f});"object"===("undefined"===typeof f?"undefined":ia(f))&&(f=(0,ra.default)(f,!1));if("string"===typeof f.key)if(null!=Da.keys[f.key.toUpperCase()])f.key=Da.keys[f.key.toUpperCase()];else if(1===f.key.length)f.key=f.key.toUpperCase().charCodeAt(0);else return null;f.shortKey&&(f[na]=f.shortKey,delete f.shortKey);return f}Object.defineProperty(ca,"__esModule",{value:!0});ca.SHORTKEY=ca.default=
  156. void 0;var ia="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},oa=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!e||h.length!==e);n=!0);}catch(Ga){r=!0,w=Ga}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;
  157. }}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),la=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ea(21);var ra=y(e);e=ea(11);var ma=y(e);e=ea(3);var Aa=y(e);e=ea(2);var ya=y(e);e=ea(20);var wa=y(e);e=ea(0);var ta=y(e);e=ea(5);var qa=y(e);e=ea(10);e=y(e);ea=ea(9);
  158. ea=y(ea);var sa=(0,e.default)("quill:keyboard"),na=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Da=function(e){function r(e,x){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var y=w(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,x));y.bindings={};Object.keys(y.options.bindings).forEach(function(f){("list autofill"!==f||null==e.scroll.whitelist||e.scroll.whitelist.list)&&y.options.bindings[f]&&y.addBinding(y.options.bindings[f])});y.addBinding({key:r.keys.ENTER,
  159. shiftKey:null},z);y.addBinding({key:r.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(y.addBinding({key:r.keys.BACKSPACE},{collapsed:!0},h),y.addBinding({key:r.keys.DELETE},{collapsed:!0},n)):(y.addBinding({key:r.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},h),y.addBinding({key:r.keys.DELETE},{collapsed:!0,suffix:/^.?$/},n));y.addBinding({key:r.keys.BACKSPACE},{collapsed:!1},f);y.addBinding({key:r.keys.DELETE},{collapsed:!1},f);y.addBinding({key:r.keys.BACKSPACE,
  160. altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},h);y.listen();return y}aa(r,e);la(r,null,[{key:"match",value:function(f,e){e=da(e);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(h){return!!e[h]!==f[h]&&null!==e[h]})?!1:e.key===(f.which||f.keyCode)}}]);la(r,[{key:"addBinding",value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},n=da(f);if(null==n||null==n.key)return sa.warn("Attempted to add invalid keyboard binding",
  161. n);"function"===typeof e&&(e={handler:e});"function"===typeof h&&(h={handler:h});n=(0,Aa.default)(n,e,h);this.bindings[n.key]=this.bindings[n.key]||[];this.bindings[n.key].push(n)}},{key:"listen",value:function(){var f=this;this.quill.root.addEventListener("keydown",function(e){if(!e.defaultPrevented){var h=(f.bindings[e.which||e.keyCode]||[]).filter(function(f){return r.match(e,f)});if(0!==h.length){var n=f.quill.getSelection();if(null!=n&&f.quill.hasFocus()){var w=f.quill.getLine(n.index),x=oa(w,
  162. 2);w=x[0];x=x[1];var z=f.quill.getLeaf(n.index),y=oa(z,2);z=y[0];y=y[1];var aa=0===n.length?[z,y]:f.quill.getLeaf(n.index+n.length),ba=oa(aa,2);aa=ba[0];ba=ba[1];z=z instanceof ta.default.Text?z.value().slice(0,y):"";y=aa instanceof ta.default.Text?aa.value().slice(ba):"";var fa={collapsed:0===n.length,empty:0===n.length&&1>=w.length(),format:f.quill.getFormat(n),offset:x,prefix:z,suffix:y};h.some(function(e){if(null!=e.collapsed&&e.collapsed!==fa.collapsed||null!=e.empty&&e.empty!==fa.empty||null!=
  163. e.offset&&e.offset!==fa.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(f){return null==fa.format[f]}))return!1}else if("object"===ia(e.format)&&!Object.keys(e.format).every(function(f){return!0===e.format[f]?null!=fa.format[f]:!1===e.format[f]?null==fa.format[f]:(0,ma.default)(e.format[f],fa.format[f])}))return!1;return null!=e.prefix&&!e.prefix.test(fa.prefix)||null!=e.suffix&&!e.suffix.test(fa.suffix)?!1:!0!==e.handler.call(f,n,fa)})&&e.preventDefault()}}}})}}]);return r}(ea.default);
  164. Da.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};Da.DEFAULTS={bindings:{bold:ha("bold"),italic:ha("italic"),underline:ha("underline"),indent:{key:Da.keys.TAB,format:["blockquote","indent","list"],handler:function(f,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",qa.default.sources.USER)}},outdent:{key:Da.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(f,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent",
  165. "-1",qa.default.sources.USER)}},"outdent backspace":{key:Da.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(f,e){null!=e.format.indent?this.quill.format("indent","-1",qa.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,qa.default.sources.USER)}},"indent code-block":x(!0),"outdent code-block":x(!1),"remove tab":{key:Da.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(f){this.quill.deleteText(f.index-
  166. 1,1,qa.default.sources.USER)}},tab:{key:Da.keys.TAB,handler:function(f){this.quill.history.cutoff();var e=(new ya.default).retain(f.index).delete(f.length).insert("\t");this.quill.updateContents(e,qa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(f.index+1,qa.default.sources.SILENT)}},"list empty enter":{key:Da.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(f,e){this.quill.format("list",!1,qa.default.sources.USER);e.format.indent&&this.quill.format("indent",
  167. !1,qa.default.sources.USER)}},"checklist enter":{key:Da.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(f){var e=this.quill.getLine(f.index),h=oa(e,2);e=h[0];h=h[1];var n=(0,Aa.default)({},e.formats(),{list:"checked"});e=(new ya.default).retain(f.index).insert("\n",n).retain(e.length()-h-1).retain(1,{list:"unchecked"});this.quill.updateContents(e,qa.default.sources.USER);this.quill.setSelection(f.index+1,qa.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:Da.keys.ENTER,
  168. collapsed:!0,format:["header"],suffix:/^$/,handler:function(f,e){var h=this.quill.getLine(f.index),n=oa(h,2);h=n[0];n=n[1];e=(new ya.default).retain(f.index).insert("\n",e.format).retain(h.length()-n-1).retain(1,{header:null});this.quill.updateContents(e,qa.default.sources.USER);this.quill.setSelection(f.index+1,qa.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(f,e){var h=e.prefix.length,
  169. n=this.quill.getLine(f.index),r=oa(n,2);n=r[0];r=r[1];if(r>h)return!0;switch(e.prefix.trim()){case "[]":case "[ ]":e="unchecked";break;case "[x]":e="checked";break;case "-":case "*":e="bullet";break;default:e="ordered"}this.quill.insertText(f.index," ",qa.default.sources.USER);this.quill.history.cutoff();e=(new ya.default).retain(f.index-r).delete(h+1).retain(n.length()-2-r).retain(1,{list:e});this.quill.updateContents(e,qa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(f.index-
  170. h,qa.default.sources.SILENT)}},"code exit":{key:Da.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(f){var e=this.quill.getLine(f.index),h=oa(e,2);e=h[0];h=h[1];f=(new ya.default).retain(f.index+e.length()-h-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(f,qa.default.sources.USER)}},"embed left":r(Da.keys.LEFT,!1),"embed left shift":r(Da.keys.LEFT,!0),"embed right":r(Da.keys.RIGHT,!1),"embed right shift":r(Da.keys.RIGHT,!0)}};ca.default=
  171. Da;ca.SHORTKEY=na},function(e,ca,ea){function y(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(ca,"__esModule",{value:!0});var ba=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=
  172. [],n=!0,r=!1,w=void 0;try{for(var y=e[Symbol.iterator](),aa;!(n=(aa=y.next()).done)&&(h.push(aa.value),!f||h.length!==f);n=!0);}catch(la){r=!0,w=la}finally{try{if(!n&&y["return"])y["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),w=function ka(f,e,h){null===f&&(f=Function.prototype);var r=Object.getOwnPropertyDescriptor(f,e);if(void 0===r){if(f=Object.getPrototypeOf(f),null!==f)return ka(f,e,h)}else{if("value"in r)return r.value;
  173. e=r.get;return void 0===e?void 0:e.call(h)}},aa=function(){function f(f,e){for(var h=0;h<e.length;h++){var r=e[h];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(f,r.key,r)}}return function(e,h,r){h&&f(e.prototype,h);r&&f(e,r);return e}}(),r=(e=ea(0))&&e.__esModule?e:{default:e},h=(ea=ea(7))&&ea.__esModule?ea:{default:ea};ea=function(f){function e(f,h){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");f=(e.__proto__||
  174. Object.getPrototypeOf(e)).call(this,f);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=!f||"object"!==typeof f&&"function"!==typeof f?this:f;f.selection=h;f.textNode=document.createTextNode(e.CONTENTS);f.domNode.appendChild(f.textNode);f._length=0;return f}y(e,f);aa(e,null,[{key:"value",value:function(){}}]);aa(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(f,h){if(0!==this._length)return w(e.prototype.__proto__||
  175. Object.getPrototypeOf(e.prototype),"format",this).call(this,f,h);for(var x=this,z=0;null!=x&&x.statics.scope!==r.default.Scope.BLOCK_BLOT;)z+=x.offset(x.parent),x=x.parent;null!=x&&(this._length=e.CONTENTS.length,x.optimize(),x.formatAt(z,e.CONTENTS.length,f,h),this._length=0)}},{key:"index",value:function(f,h){return f===this.textNode?0:w(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,f,h)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,
  176. this.textNode.data.length]}},{key:"remove",value:function(){w(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var f=this.textNode,w=this.selection.getNativeRange(),z=void 0,y=void 0,aa=void 0;null!=w&&w.start.node===f&&w.end.node===f&&(aa=[f,w.start.offset,w.end.offset],z=aa[0],y=aa[1],aa=aa[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,
  177. this.domNode);this.textNode.data!==e.CONTENTS&&(f=this.textNode.data.split(e.CONTENTS).join(""),this.next instanceof h.default?(z=this.next.domNode,this.next.insertAt(0,f),this.textNode.data=e.CONTENTS):(this.textNode.data=f,this.parent.insertBefore(r.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=y)return y=[y,aa].map(function(f){return Math.max(0,Math.min(z.data.length,f-1))}),aa=ba(y,2),y=aa[0],
  178. aa=aa[1],{startNode:z,startOffset:y,endNode:z,endOffset:aa}}}},{key:"update",value:function(f,e){var h=this;f.some(function(f){return"characterData"===f.type&&f.target===h.textNode})&&(f=this.restore())&&(e.range=f)}},{key:"value",value:function(){return""}}]);return e}(r.default.Embed);ea.blotName="cursor";ea.className="ql-cursor";ea.tagName="span";ea.CONTENTS="\ufeff";ca.default=ea},function(e,ca,ea){function y(e,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+
  179. typeof y);e.prototype=Object.create(y&&y.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});y&&(Object.setPrototypeOf?Object.setPrototypeOf(e,y):e.__proto__=y)}Object.defineProperty(ca,"__esModule",{value:!0});e=(e=ea(0))&&e.__esModule?e:{default:e};var ba=(ea=ea(4))&&ea.__esModule?ea:{default:ea};e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);
  180. if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}y(w,e);return w}(e.default.Container);e.allowedChildren=[ba.default,ea.BlockEmbed,e];ca.default=e},function(e,ca,ea){function y(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,
  181. configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ca,"__esModule",{value:!0});ca.ColorStyle=ca.ColorClass=ca.ColorAttributor=void 0;var ba=function(){function e(e,n){for(var f=0;f<n.length;f++){var h=n[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(h,n,f){n&&e(h.prototype,n);f&&e(h,f);return h}}(),w=function z(e,n,f){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,
  182. n);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,n,f)}else{if("value"in h)return h.value;n=h.get;return void 0===n?void 0:n.call(f)}},aa=function(e){return e&&e.__esModule?e:{default:e}}(ea(0));e=function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var f=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==
  183. typeof f&&"function"!==typeof f?this:f}y(h,e);ba(h,[{key:"value",value:function(f){f=w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"value",this).call(this,f);if(!f.startsWith("rgb("))return f;f=f.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+f.split(",").map(function(f){return("00"+parseInt(f).toString(16)).slice(-2)}).join("")}}]);return h}(aa.default.Attributor.Style);ea=new aa.default.Attributor.Class("color","ql-color",{scope:aa.default.Scope.INLINE});aa=new e("color","color",
  184. {scope:aa.default.Scope.INLINE});ca.ColorAttributor=e;ca.ColorClass=ea;ca.ColorStyle=aa},function(e,ca,ea){function y(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}function ba(e,h){var n=document.createElement("a");n.href=e;e=n.href.slice(0,n.href.indexOf(":"));
  185. return-1<h.indexOf(e)}Object.defineProperty(ca,"__esModule",{value:!0});ca.sanitize=ca.default=void 0;var w=function(){function e(e,n){for(var f=0;f<n.length;f++){var h=n[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(h,n,f){n&&e(h.prototype,n);f&&e(h,f);return h}}(),aa=function z(e,n,f){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,n);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,
  186. n,f)}else{if("value"in h)return h.value;n=h.get;return void 0===n?void 0:n.call(f)}};e=function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var f=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}y(h,e);w(h,[{key:"format",value:function(f,e){if(f!==this.statics.blotName||!e)return aa(h.prototype.__proto__||
  187. Object.getPrototypeOf(h.prototype),"format",this).call(this,f,e);e=this.constructor.sanitize(e);this.domNode.setAttribute("href",e)}}],[{key:"create",value:function(f){var e=aa(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,f);f=this.sanitize(f);e.setAttribute("href",f);e.setAttribute("rel","noopener noreferrer");e.setAttribute("target","_blank");return e}},{key:"formats",value:function(f){return f.getAttribute("href")}},{key:"sanitize",value:function(f){return ba(f,this.PROTOCOL_WHITELIST)?
  188. f:this.SANITIZED_URL}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ea(6)).default);e.blotName="link";e.tagName="A";e.SANITIZED_URL="about:blank";e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];ca.default=e;ca.sanitize=ba},function(e,ca,ea){Object.defineProperty(ca,"__esModule",{value:!0});var y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?
  189. "symbol":typeof e},ba=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,r){f&&e(h.prototype,f);r&&e(h,r);return h}}(),w=(e=ea(23))&&e.__esModule?e:{default:e},aa=(ea=ea(107))&&ea.__esModule?ea:{default:ea},r=0;ea=function(){function e(h){var f=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.select=h;this.container=
  190. document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,this.select);this.label.addEventListener("mousedown",function(){f.togglePicker()});this.label.addEventListener("keydown",function(e){switch(e.keyCode){case w.default.keys.ENTER:f.togglePicker();break;case w.default.keys.ESCAPE:f.escape(),e.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}ba(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");
  191. var e=this.label;e.setAttribute("aria-expanded","true"!==e.getAttribute("aria-expanded"));e=this.options;e.setAttribute("aria-hidden","true"!==e.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(e){var f=this,h=document.createElement("span");h.tabIndex="0";h.setAttribute("role","button");h.classList.add("ql-picker-item");e.hasAttribute("value")&&h.setAttribute("data-value",e.getAttribute("value"));e.textContent&&h.setAttribute("data-label",e.textContent);h.addEventListener("click",function(){f.selectItem(h,
  192. !0)});h.addEventListener("keydown",function(e){switch(e.keyCode){case w.default.keys.ENTER:f.selectItem(h,!0);e.preventDefault();break;case w.default.keys.ESCAPE:f.escape(),e.preventDefault()}});return h}},{key:"buildLabel",value:function(){var e=document.createElement("span");e.classList.add("ql-picker-label");e.innerHTML=aa.default;e.tabIndex="0";e.setAttribute("role","button");e.setAttribute("aria-expanded","false");this.container.appendChild(e);return e}},{key:"buildOptions",value:function(){var e=
  193. this,f=document.createElement("span");f.classList.add("ql-picker-options");f.setAttribute("aria-hidden","true");f.tabIndex="-1";f.id="ql-picker-options-"+r;r+=1;this.label.setAttribute("aria-controls",f.id);this.options=f;[].slice.call(this.select.options).forEach(function(h){var n=e.buildItem(h);f.appendChild(n);!0===h.selected&&e.selectItem(n)});this.container.appendChild(f)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(f){e.container.setAttribute(f.name,
  194. f.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close();setTimeout(function(){return e.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(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,h=this.container.querySelector(".ql-selected");
  195. e!==h&&(null!=h&&h.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),f&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):
  196. "object"===("undefined"===typeof Event?"undefined":y(Event))&&(f=document.createEvent("Event"),f.initEvent("change",!0,!0),this.select.dispatchEvent(f)),this.close())))}},{key:"update",value:function(){var e=void 0;if(-1<this.select.selectedIndex){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex];this.selectItem(f)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=e&&e!==this.select.querySelector("option[selected]"))}}]);
  197. return e}();ca.default=ea},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(ca,"__esModule",{value:!0});e=ea(0);e=y(e);var ba=ea(5);ba=y(ba);var w=ea(4),aa=y(w),r=ea(16);r=y(r);var h=ea(25);h=y(h);var n=ea(24);n=y(n);var f=ea(35);f=y(f);var z=ea(6);z=y(z);var x=ea(22);x=y(x);var ha=ea(7);ha=y(ha);var da=ea(55);da=y(da);var ia=ea(42);ia=y(ia);ea=ea(23);ba.default.register({"blots/block":aa.default,"blots/block/embed":w.BlockEmbed,"blots/break":r.default,"blots/container":h.default,
  198. "blots/cursor":n.default,"blots/embed":f.default,"blots/inline":z.default,"blots/scroll":x.default,"blots/text":ha.default,"modules/clipboard":da.default,"modules/history":ia.default,"modules/keyboard":y(ea).default});e.default.register(aa.default,r.default,n.default,z.default,x.default,ha.default);ca.default=ba.default},function(e,ca,ea){Object.defineProperty(ca,"__esModule",{value:!0});var y=ea(1);e=function(){function e(e){this.domNode=e;this.domNode[y.DATA_KEY]={blot:this}}Object.defineProperty(e.prototype,
  199. "statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0});e.create=function(e){if(null==this.tagName)throw new y.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),e="number"===typeof e?document.createElement(this.tagName[e-1]):-1<this.tagName.indexOf(e)?document.createElement(e):document.createElement(this.tagName[0])):e=document.createElement(this.tagName);this.className&&
  200. e.classList.add(this.className);return e};e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return y.create(e)};e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[y.DATA_KEY]};e.prototype.deleteAt=function(e,y){this.isolate(e,y).remove()};e.prototype.formatAt=function(e,aa,r,h){e=this.isolate(e,aa);null!=y.query(r,y.Scope.BLOT)&&h?e.wrap(r,h):null!=y.query(r,
  201. y.Scope.ATTRIBUTE)&&(aa=y.create(this.statics.scope),e.wrap(aa),aa.format(r,h))};e.prototype.insertAt=function(e,aa,r){aa=null==r?y.create("text",aa):y.create(aa,r);e=this.split(e);this.parent.insertBefore(aa,e)};e.prototype.insertInto=function(e,y){void 0===y&&(y=null);null!=this.parent&&this.parent.children.remove(this);var r=null;e.children.insertBefore(this,y);null!=y&&(r=y.domNode);this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==r||e.domNode.insertBefore(this.domNode,r);this.parent=
  202. e;this.attach()};e.prototype.isolate=function(e,y){e=this.split(e);e.split(y);return e};e.prototype.length=function(){return 1};e.prototype.offset=function(e){void 0===e&&(e=this.parent);return null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)};e.prototype.optimize=function(){null!=this.domNode[y.DATA_KEY]&&delete this.domNode[y.DATA_KEY].mutations};e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};
  203. e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())};e.prototype.replaceWith=function(e,aa){e="string"===typeof e?y.create(e,aa):e;e.replace(this);return e};e.prototype.split=function(e){return 0===e?this:this.next};e.prototype.update=function(){};e.prototype.wrap=function(e,aa){e="string"===typeof e?y.create(e,aa):e;null!=this.parent&&this.parent.insertBefore(e,this.next);e.appendChild(this);return e};e.blotName="abstract";return e}();ca.default=e},function(e,
  204. ca,ea){Object.defineProperty(ca,"__esModule",{value:!0});var y=ea(12),ba=ea(32),w=ea(33),aa=ea(1);e=function(){function e(e){this.attributes={};this.domNode=e;this.build()}e.prototype.attribute=function(e,n){n?e.add(this.domNode,n)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])};e.prototype.build=function(){var e=this;this.attributes={};var n=y.default.keys(this.domNode),f=ba.default.keys(this.domNode),
  205. r=w.default.keys(this.domNode);n.concat(f).concat(r).forEach(function(f){f=aa.query(f,aa.Scope.ATTRIBUTE);f instanceof y.default&&(e.attributes[f.attrName]=f)})};e.prototype.copy=function(e){var h=this;Object.keys(this.attributes).forEach(function(f){var n=h.attributes[f].value(h.domNode);e.format(f,n)})};e.prototype.move=function(e){var h=this;this.copy(e);Object.keys(this.attributes).forEach(function(f){h.attributes[f].remove(h.domNode)});this.attributes={}};e.prototype.values=function(){var e=
  206. this;return Object.keys(this.attributes).reduce(function(h,f){h[f]=e.attributes[f].value(e.domNode);return h},{})};return e}();ca.default=e},function(e,ca,ea){function y(e,y){return(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(y+"-")})}var ba=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var h in r)r.hasOwnProperty(h)&&(e[h]=r[h])};return function(w,r){function h(){this.constructor=
  207. w}e(w,r);w.prototype=null===r?Object.create(r):(h.prototype=r.prototype,new h)}}();Object.defineProperty(ca,"__esModule",{value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}ba(w,e);w.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})};w.prototype.add=function(e,h){if(!this.canAdd(e,h))return!1;this.remove(e);e.classList.add(this.keyName+"-"+h);return!0};w.prototype.remove=function(e){y(e,this.keyName).forEach(function(h){e.classList.remove(h)});
  208. 0===e.classList.length&&e.removeAttribute("class")};w.prototype.value=function(e){var h=(y(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,h)?h:""};return w}(ea(12).default);ca.default=e},function(e,ca,ea){function y(e){e=e.split("-");var w=e.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return e[0]+w}var ba=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var h in r)r.hasOwnProperty(h)&&
  209. (e[h]=r[h])};return function(w,r){function h(){this.constructor=w}e(w,r);w.prototype=null===r?Object.create(r):(h.prototype=r.prototype,new h)}}();Object.defineProperty(ca,"__esModule",{value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}ba(w,e);w.keys=function(e){return(e.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})};w.prototype.add=function(e,h){if(!this.canAdd(e,h))return!1;e.style[y(this.keyName)]=h;return!0};w.prototype.remove=
  210. function(e){e.style[y(this.keyName)]="";e.getAttribute("style")||e.removeAttribute("style")};w.prototype.value=function(e){var h=e.style[y(this.keyName)];return this.canAdd(e,h)?h:""};return w}(ea(12).default);ca.default=e},function(e,ca){Object.defineProperty(ca,"__esModule",{value:!0});var y=function(){function e(e,w){for(var y=0;y<w.length;y++){var r=w[y];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(e,r.key,r)}}return function(y,w,aa){w&&e(y.prototype,
  211. w);aa&&e(y,aa);return y}}();e=function(){function e(y,w){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.quill=y;this.options=w;this.modules={}}y(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(w){null==e.modules[w]&&e.addModule(w)})}},{key:"addModule",value:function(e){var w=this.quill.constructor.import("modules/"+e);this.modules[e]=new w(this.quill,this.options.modules[e]||{});return this.modules[e]}}]);return e}();
  212. e.DEFAULTS={modules:{}};e.themes={"default":e};ca.default=e},function(e,ca,ea){function y(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function ba(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?
  213. Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(ca,"__esModule",{value:!0});var w=function(){function e(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}(),aa=function ka(f,e,h){null===f&&(f=Function.prototype);var r=Object.getOwnPropertyDescriptor(f,e);if(void 0===r){if(f=Object.getPrototypeOf(f),null!==f)return ka(f,
  214. e,h)}else{if("value"in r)return r.value;e=r.get;return void 0===e?void 0:e.call(h)}},r=(e=ea(0))&&e.__esModule?e:{default:e},h=(ea=ea(7))&&ea.__esModule?ea:{default:ea};ea=function(f){function e(f){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var h=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f));h.contentNode=document.createElement("span");h.contentNode.setAttribute("contenteditable",!1);[].slice.call(h.domNode.childNodes).forEach(function(f){h.contentNode.appendChild(f)});
  215. h.leftGuard=document.createTextNode("\ufeff");h.rightGuard=document.createTextNode("\ufeff");h.domNode.appendChild(h.leftGuard);h.domNode.appendChild(h.contentNode);h.domNode.appendChild(h.rightGuard);return h}ba(e,f);w(e,[{key:"index",value:function(f,h){return f===this.leftGuard?0:f===this.rightGuard?1:aa(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,f,h)}},{key:"restore",value:function(f){var e=void 0,w=f.data.split("\ufeff").join("");f===this.leftGuard?this.prev instanceof
  216. h.default?(e=this.prev.length(),this.prev.insertAt(e,w),e={startNode:this.prev.domNode,startOffset:e+w.length}):(e=document.createTextNode(w),this.parent.insertBefore(r.default.create(e),this),e={startNode:e,startOffset:w.length}):f===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,w),e={startNode:this.next.domNode,startOffset:w.length}):(e=document.createTextNode(w),this.parent.insertBefore(r.default.create(e),this.next),e={startNode:e,startOffset:w.length}));f.data="\ufeff";
  217. return e}},{key:"update",value:function(f,e){var h=this;f.forEach(function(f){"characterData"!==f.type||f.target!==h.leftGuard&&f.target!==h.rightGuard||!(f=h.restore(f.target))||(e.range=f)})}}]);return e}(r.default.Embed);ca.default=ea},function(e,ca,ea){Object.defineProperty(ca,"__esModule",{value:!0});ca.AlignStyle=ca.AlignClass=ca.AlignAttribute=void 0;var y=(e=ea(0))&&e.__esModule?e:{default:e};var ba={scope:y.default.Scope.BLOCK,whitelist:["right","center","justify"]};e=new y.default.Attributor.Attribute("align",
  218. "align",ba);ea=new y.default.Attributor.Class("align","ql-align",ba);y=new y.default.Attributor.Style("align","text-align",ba);ca.AlignAttribute=e;ca.AlignClass=ea;ca.AlignStyle=y},function(e,ca,ea){Object.defineProperty(ca,"__esModule",{value:!0});ca.BackgroundStyle=ca.BackgroundClass=void 0;e=(e=ea(0))&&e.__esModule?e:{default:e};var y=ea(26);ea=new e.default.Attributor.Class("background","ql-bg",{scope:e.default.Scope.INLINE});e=new y.ColorAttributor("background","background-color",{scope:e.default.Scope.INLINE});
  219. ca.BackgroundClass=ea;ca.BackgroundStyle=e},function(e,ca,ea){Object.defineProperty(ca,"__esModule",{value:!0});ca.DirectionStyle=ca.DirectionClass=ca.DirectionAttribute=void 0;var y=(e=ea(0))&&e.__esModule?e:{default:e};var ba={scope:y.default.Scope.BLOCK,whitelist:["rtl"]};e=new y.default.Attributor.Attribute("direction","dir",ba);ea=new y.default.Attributor.Class("direction","ql-direction",ba);y=new y.default.Attributor.Style("direction","direction",ba);ca.DirectionAttribute=e;ca.DirectionClass=
  220. ea;ca.DirectionStyle=y},function(e,ca,ea){function y(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ca,"__esModule",{value:!0});ca.FontClass=ca.FontStyle=void 0;var ba=function(){function e(e,n){for(var f=0;f<n.length;f++){var h=
  221. n[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(h,n,f){n&&e(h.prototype,n);f&&e(h,f);return h}}(),w=function z(e,n,f){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,n);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,n,f)}else{if("value"in h)return h.value;n=h.get;return void 0===n?void 0:n.call(f)}};ea=function(e){return e&&e.__esModule?e:{default:e}}(ea(0));var aa={scope:ea.default.Scope.INLINE,
  222. whitelist:["serif","monospace"]};e=new ea.default.Attributor.Class("font","ql-font",aa);ea=new (function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var f=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}y(h,e);ba(h,[{key:"value",value:function(f){return w(h.prototype.__proto__||
  223. Object.getPrototypeOf(h.prototype),"value",this).call(this,f).replace(/["']/g,"")}}]);return h}(ea.default.Attributor.Style))("font","font-family",aa);ca.FontStyle=ea;ca.FontClass=e},function(e,ca,ea){Object.defineProperty(ca,"__esModule",{value:!0});ca.SizeStyle=ca.SizeClass=void 0;ea=(e=ea(0))&&e.__esModule?e:{default:e};e=new ea.default.Attributor.Class("size","ql-size",{scope:ea.default.Scope.INLINE,whitelist:["small","large","huge"]});ea=new ea.default.Attributor.Style("size","font-size",{scope:ea.default.Scope.INLINE,
  224. whitelist:["10px","18px","32px"]});ca.SizeClass=e;ca.SizeStyle=ea},function(e,ca,ea){e.exports={align:{"":ea(76),center:ea(77),right:ea(78),justify:ea(79)},background:ea(80),blockquote:ea(81),bold:ea(82),clean:ea(83),code:ea(58),"code-block":ea(58),color:ea(84),direction:{"":ea(85),rtl:ea(86)},"float":{center:ea(87),full:ea(88),left:ea(89),right:ea(90)},formula:ea(91),header:{1:ea(92),2:ea(93)},italic:ea(94),image:ea(95),indent:{"+1":ea(96),"-1":ea(97)},link:ea(98),list:{ordered:ea(99),bullet:ea(100),
  225. check:ea(101)},script:{sub:ea(102),"super":ea(103)},strike:ea(104),underline:ea(105),video:ea(106)}},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function w(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&
  226. e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function aa(f){f=f.ops[f.ops.length-1];return null==f?!1:null!=f.insert?"string"===typeof f.insert&&f.insert.endsWith("\n"):null!=f.attributes?Object.keys(f.attributes).some(function(f){return null!=n.default.query(f,n.default.Scope.BLOCK)}):!1}function r(f){var e=f.reduce(function(f,e){return f+=e.delete||0},0);e=f.length()-e;aa(f)&&--e;return e}Object.defineProperty(ca,
  227. "__esModule",{value:!0});ca.getLastChangeIndex=ca.default=void 0;var h=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ea(0);var n=y(e);e=ea(5);var f=y(e);ea=ea(9);ea=function(e){function n(e,h){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var r=ba(this,(n.__proto__||
  228. Object.getPrototypeOf(n)).call(this,e,h));r.lastRecorded=0;r.ignoreChange=!1;r.clear();r.quill.on(f.default.events.EDITOR_CHANGE,function(e,h,n,w){e!==f.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&w!==f.default.sources.USER?r.transform(h):r.record(h,n))});r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r));r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r));/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},
  229. r.redo.bind(r));return r}w(n,e);h(n,[{key:"change",value:function(e,h){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[h].push(n);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(n[e],f.default.sources.USER);this.ignoreChange=!1;e=r(n[e]);this.quill.setSelection(e)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(f,e){if(0!==f.ops.length){this.stack.redo=[];e=this.quill.getContents().diff(e);
  230. var h=Date.now();this.lastRecorded+this.options.delay>h&&0<this.stack.undo.length?(h=this.stack.undo.pop(),e=e.compose(h.undo),f=h.redo.compose(f)):this.lastRecorded=h;this.stack.undo.push({redo:f,undo:e});this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(f){this.stack.undo.forEach(function(e){e.undo=f.transform(e.undo,!0);e.redo=f.transform(e.redo,!0)});this.stack.redo.forEach(function(e){e.undo=
  231. f.transform(e.undo,!0);e.redo=f.transform(e.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return n}(y(ea).default);ea.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};ca.default=ea;ca.getLastChangeIndex=r},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  232. return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function aa(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function r(f,e){var h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;e.forEach(function(e){var n=document.createElement("option");
  233. e===h?n.setAttribute("selected","selected"):n.setAttribute("value",e);f.appendChild(n)})}Object.defineProperty(ca,"__esModule",{value:!0});ca.default=ca.BaseTooltip=void 0;var h=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),n=function Da(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,
  234. e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return Da(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}};e=ea(3);e=y(e);var f=ea(2),z=y(f);f=ea(8);var x=y(f);f=ea(23);var ha=y(f);f=ea(34);f=y(f);var da=ea(59),ia=y(da);da=ea(60);var oa=y(da);da=ea(28);var la=y(da);ea=ea(61);da=y(ea);var ra=[!1,"center","right","justify"],ma="#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".split(" "),
  235. Aa=[!1,"serif","monospace"],ya=["1","2","3",!1],wa=["small",!1,"large","huge"];ea=function(f){function e(f,h){ba(this,e);var n=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f,h));f.emitter.listenDOM("click",document.body,function Fa(e){if(!document.body.contains(f.root))return document.body.removeEventListener("click",Fa);null==n.tooltip||n.tooltip.root.contains(e.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide();null!=n.pickers&&n.pickers.forEach(function(f){f.container.contains(e.target)||
  236. f.close()})});return n}aa(e,f);h(e,[{key:"addModule",value:function(f){var h=n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,f);"toolbar"===f&&this.extendToolbar(h);return h}},{key:"buildButtons",value:function(f,e){f.forEach(function(f){(f.getAttribute("class")||"").split(/\s+/).forEach(function(h){if(h.startsWith("ql-")&&(h=h.slice(3),null!=e[h]))if("direction"===h)f.innerHTML=e[h][""]+e[h].rtl;else if("string"===typeof e[h])f.innerHTML=e[h];else{var n=f.value||
  237. "";null!=n&&e[h][n]&&(f.innerHTML=e[h][n])}})})}},{key:"buildPickers",value:function(f,e){var h=this;this.pickers=f.map(function(f){if(f.classList.contains("ql-align"))return null==f.querySelector("option")&&r(f,ra),new oa.default(f,e.align);if(f.classList.contains("ql-background")||f.classList.contains("ql-color")){var h=f.classList.contains("ql-background")?"background":"color";null==f.querySelector("option")&&r(f,ma,"background"===h?"#ffffff":"#000000");return new ia.default(f,e[h])}null==f.querySelector("option")&&
  238. (f.classList.contains("ql-font")?r(f,Aa):f.classList.contains("ql-header")?r(f,ya):f.classList.contains("ql-size")&&r(f,wa));return new la.default(f)});this.quill.on(x.default.events.EDITOR_CHANGE,function(){h.pickers.forEach(function(f){f.update()})})}}]);return e}(f.default);ea.DEFAULTS=(0,e.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var f=this,e=this.container.querySelector("input.ql-image[type=file]");
  239. null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",function(){if(null!=e.files&&null!=e.files[0]){var h=new FileReader;h.onload=function(h){var n=f.quill.getSelection(!0);f.quill.updateContents((new z.default).retain(n.index).delete(n.length).insert({image:h.target.result}),x.default.sources.USER);f.quill.setSelection(n.index+1,x.default.sources.SILENT);
  240. e.value=""};h.readAsDataURL(e.files[0])}}),this.container.appendChild(e));e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});e=function(f){function e(f,h){ba(this,e);f=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f,h));f.textbox=f.root.querySelector('input[type="text"]');f.listen();return f}aa(e,f);h(e,[{key:"listen",value:function(){var f=this;this.textbox.addEventListener("keydown",function(e){ha.default.match(e,"enter")?(f.save(),e.preventDefault()):ha.default.match(e,
  241. "escape")&&(f.cancel(),e.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=e?this.textbox.value=e:f!==this.root.getAttribute("data-mode")&&(this.textbox.value="");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();
  242. this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+f)||"");this.root.setAttribute("data-mode",f)}},{key:"restoreFocus",value:function(){var f=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=f}},{key:"save",value:function(){var f=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",f,x.default.sources.USER),delete this.linkRange):
  243. (this.restoreFocus(),this.quill.format("link",f,x.default.sources.USER));this.quill.root.scrollTop=e;break;case "video":f=(e=f.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||f.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=f.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":f;case "formula":f&&(e=this.quill.getSelection(!0),
  244. null!=e&&(e=e.index+e.length,this.quill.insertEmbed(e,this.root.getAttribute("data-mode"),f,x.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(e+1," ",x.default.sources.USER),this.quill.setSelection(e+2,x.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return e}(da.default);ca.BaseTooltip=e;ca.default=ea},function(e,ca){Object.defineProperty(ca,"__esModule",{value:!0});e=function(){function e(){this.head=this.tail=null;this.length=0}e.prototype.append=
  245. function(){for(var e=[],y=0;y<arguments.length;y++)e[y]=arguments[y];this.insertBefore(e[0],null);1<e.length&&this.append.apply(this,e.slice(1))};e.prototype.contains=function(e){for(var y,w=this.iterator();y=w();)if(y===e)return!0;return!1};e.prototype.insertBefore=function(e,y){e&&(e.next=y,null!=y?(e.prev=y.prev,null!=y.prev&&(y.prev.next=e),y.prev=e,y===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)};
  246. e.prototype.offset=function(e){for(var y=0,w=this.head;null!=w;){if(w===e)return y;y+=w.length();w=w.next}return-1};e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),--this.length)};e.prototype.iterator=function(e){void 0===e&&(e=this.head);return function(){var y=e;null!=e&&(e=e.next);return y}};e.prototype.find=function(e,y){void 0===y&&(y=!1);for(var w,aa=this.iterator();w=
  247. aa();){var r=w.length();if(e<r||y&&e===r&&(null==w.next||0!==w.next.length()))return[w,e];e-=r}return[null,0]};e.prototype.forEach=function(e){for(var y,w=this.iterator();y=w();)e(y)};e.prototype.forEachAt=function(e,y,w){if(!(0>=y))for(var aa=this.find(e),r=e-aa[1],h=this.iterator(aa[0]);(aa=h())&&r<e+y;){var n=aa.length();e>r?w(aa,e-r,Math.min(y,r+n-e)):w(aa,0,Math.min(n,e+y-r));r+=n}};e.prototype.map=function(e){return this.reduce(function(y,w){y.push(e(w));return y},[])};e.prototype.reduce=function(e,
  248. y){for(var w,aa=this.iterator();w=aa();)y=e(y,w);return y};return e}();ca.default=e},function(e,ca,ea){var y=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var f in n)n.hasOwnProperty(f)&&(e[f]=n[f])};return function(h,n){function f(){this.constructor=h}e(h,n);h.prototype=null===n?Object.create(n):(f.prototype=n.prototype,new f)}}();Object.defineProperty(ca,"__esModule",{value:!0});var ba=ea(17),w=ea(1),
  249. aa={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};e=function(e){function h(h){var f=e.call(this,h)||this;f.scroll=f;f.observer=new MutationObserver(function(e){f.update(e)});f.observer.observe(f.domNode,aa);f.attach();return f}y(h,e);h.prototype.detach=function(){e.prototype.detach.call(this);this.observer.disconnect()};h.prototype.deleteAt=function(h,f){this.update();0===h&&f===this.length()?this.children.forEach(function(f){f.remove()}):e.prototype.deleteAt.call(this,
  250. h,f)};h.prototype.formatAt=function(h,f,r,w){this.update();e.prototype.formatAt.call(this,h,f,r,w)};h.prototype.insertAt=function(h,f,r){this.update();e.prototype.insertAt.call(this,h,f,r)};h.prototype.optimize=function(h,f){function n(e){null!=e.domNode[w.DATA_KEY]&&null!=e.domNode[w.DATA_KEY].mutations&&(e instanceof ba.default&&e.children.forEach(n),e.optimize(f))}function r(f,e){void 0===e&&(e=!0);null!=f&&f!==y&&null!=f.domNode.parentNode&&(null==f.domNode[w.DATA_KEY].mutations&&(f.domNode[w.DATA_KEY].mutations=
  251. []),e&&r(f.parent))}var y=this;void 0===h&&(h=[]);void 0===f&&(f={});e.prototype.optimize.call(this,f);for(var aa=[].slice.call(this.observer.takeRecords());0<aa.length;)h.push(aa.pop());for(var ca=h,fa=0;0<ca.length;fa+=1){if(100<=fa)throw Error("[Parchment] Maximum optimize iterations reached");ca.forEach(function(f){var e=w.find(f.target,!0);null!=e&&(e.domNode===f.target&&("childList"===f.type?(r(w.find(f.previousSibling,!1)),[].forEach.call(f.addedNodes,function(f){f=w.find(f,!1);r(f,!1);f instanceof
  252. ba.default&&f.children.forEach(function(f){r(f,!1)})})):"attributes"===f.type&&r(e.prev)),r(e))});this.children.forEach(n);ca=[].slice.call(this.observer.takeRecords());for(aa=ca.slice();0<aa.length;)h.push(aa.pop())}};h.prototype.update=function(h,f){var n=this;void 0===f&&(f={});h=h||this.observer.takeRecords();h.map(function(f){var e=w.find(f.target,!0);if(null==e)return null;if(null==e.domNode[w.DATA_KEY].mutations)return e.domNode[w.DATA_KEY].mutations=[f],e;e.domNode[w.DATA_KEY].mutations.push(f);
  253. return null}).forEach(function(e){null!=e&&e!==n&&null!=e.domNode[w.DATA_KEY]&&e.update(e.domNode[w.DATA_KEY].mutations||[],f)});null!=this.domNode[w.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[w.DATA_KEY].mutations,f);this.optimize(h,f)};h.blotName="scroll";h.defaultChild="block";h.scope=w.Scope.BLOCK_BLOT;h.tagName="DIV";return h}(ba.default);ca.default=e},function(e,ca,ea){var y=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,
  254. h){e.__proto__=h}||function(e,h){for(var n in h)h.hasOwnProperty(n)&&(e[n]=h[n])};return function(r,h){function n(){this.constructor=r}e(r,h);r.prototype=null===h?Object.create(h):(n.prototype=h.prototype,new n)}}();Object.defineProperty(ca,"__esModule",{value:!0});var ba=ea(18),w=ea(1);e=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}y(r,e);r.formats=function(h){if(h.tagName!==r.tagName)return e.formats.call(this,h)};r.prototype.format=function(h,n){var f=this;h!==this.statics.blotName||
  255. n?e.prototype.format.call(this,h,n):(this.children.forEach(function(e){e instanceof ba.default||(e=e.wrap(r.blotName,!0));f.attributes.copy(e)}),this.unwrap())};r.prototype.formatAt=function(h,n,f,r){null!=this.formats()[f]||w.query(f,w.Scope.ATTRIBUTE)?this.isolate(h,n).format(f,r):e.prototype.formatAt.call(this,h,n,f,r)};r.prototype.optimize=function(h){e.prototype.optimize.call(this,h);h=this.formats();if(0===Object.keys(h).length)return this.unwrap();var n=this.next,f;if(f=n instanceof r&&n.prev===
  256. this)a:if(f=n.formats(),Object.keys(h).length!==Object.keys(f).length)f=!1;else{for(var w in h)if(h[w]!==f[w]){f=!1;break a}f=!0}f&&(n.moveChildren(this),n.remove())};r.blotName="inline";r.scope=w.Scope.INLINE_BLOT;r.tagName="SPAN";return r}(ba.default);ca.default=e},function(e,ca,ea){var y=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var h in r)r.hasOwnProperty(h)&&(e[h]=r[h])};return function(w,r){function h(){this.constructor=
  257. w}e(w,r);w.prototype=null===r?Object.create(r):(h.prototype=r.prototype,new h)}}();Object.defineProperty(ca,"__esModule",{value:!0});e=ea(18);var ba=ea(1);ea=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}y(w,e);w.formats=function(r){var h=ba.query(w.blotName).tagName;if(r.tagName!==h)return e.formats.call(this,r)};w.prototype.format=function(r,h){null!=ba.query(r,ba.Scope.BLOCK)&&(r!==this.statics.blotName||h?e.prototype.format.call(this,r,h):this.replaceWith(w.blotName))};
  258. w.prototype.formatAt=function(r,h,n,f){null!=ba.query(n,ba.Scope.BLOCK)?this.format(n,f):e.prototype.formatAt.call(this,r,h,n,f)};w.prototype.insertAt=function(r,h,n){null==n||null!=ba.query(h,ba.Scope.INLINE)?e.prototype.insertAt.call(this,r,h,n):(r=this.split(r),h=ba.create(h,n),r.parent.insertBefore(h,r))};w.prototype.update=function(r,h){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,r,h)};w.blotName="block";w.scope=ba.Scope.BLOCK_BLOT;w.tagName="P";return w}(e.default);
  259. ca.default=ea},function(e,ca,ea){var y=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,y){e.__proto__=y}||function(e,y){for(var r in y)y.hasOwnProperty(r)&&(e[r]=y[r])};return function(w,y){function r(){this.constructor=w}e(w,y);w.prototype=null===y?Object.create(y):(r.prototype=y.prototype,new r)}}();Object.defineProperty(ca,"__esModule",{value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}y(w,e);w.formats=
  260. function(){};w.prototype.format=function(w,r){e.prototype.formatAt.call(this,0,this.length(),w,r)};w.prototype.formatAt=function(w,r,h,n){0===w&&r===this.length()?this.format(h,n):e.prototype.formatAt.call(this,w,r,h,n)};w.prototype.formats=function(){return this.statics.formats(this.domNode)};return w}(ea(19).default);ca.default=e},function(e,ca,ea){var y=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var h in r)r.hasOwnProperty(h)&&
  261. (e[h]=r[h])};return function(w,r){function h(){this.constructor=w}e(w,r);w.prototype=null===r?Object.create(r):(h.prototype=r.prototype,new h)}}();Object.defineProperty(ca,"__esModule",{value:!0});e=ea(19);var ba=ea(1);ea=function(e){function w(r){r=e.call(this,r)||this;r.text=r.statics.value(r.domNode);return r}y(w,e);w.create=function(e){return document.createTextNode(e)};w.value=function(e){e=e.data;e.normalize&&(e=e.normalize());return e};w.prototype.deleteAt=function(e,h){this.domNode.data=this.text=
  262. this.text.slice(0,e)+this.text.slice(e+h)};w.prototype.index=function(e,h){return this.domNode===e?h:-1};w.prototype.insertAt=function(r,h,n){null==n?(this.text=this.text.slice(0,r)+h+this.text.slice(r),this.domNode.data=this.text):e.prototype.insertAt.call(this,r,h,n)};w.prototype.length=function(){return this.text.length};w.prototype.optimize=function(r){e.prototype.optimize.call(this,r);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof w&&this.next.prev===
  263. this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};w.prototype.position=function(e){return[this.domNode,e]};w.prototype.split=function(e,h){void 0===h&&(h=!1);if(!h){if(0===e)return this;if(e===this.length())return this.next}e=ba.create(this.domNode.splitText(e));this.parent.insertBefore(e,this.next);this.text=this.statics.value(this.domNode);return e};w.prototype.update=function(e){var h=this;e.some(function(e){return"characterData"===e.type&&e.target===h.domNode})&&(this.text=
  264. this.statics.value(this.domNode))};w.prototype.value=function(){return this.text};w.blotName="text";w.scope=ba.Scope.INLINE_BLOT;return w}(e.default);ca.default=ea},function(){var e=document.createElement("div");e.classList.toggle("test-class",!1);if(e.classList.contains("test-class")){var ca=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,y){return 1<arguments.length&&!this.contains(e)===!y?y:ca.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,
  265. y){return this.substr(y||0,e.length)===e});String.prototype.endsWith||(String.prototype.endsWith=function(e,y){var ba=this.toString();if("number"!==typeof y||!isFinite(y)||Math.floor(y)!==y||y>ba.length)y=ba.length;y-=e.length;e=ba.indexOf(e,y);return-1!==e&&e===y});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e,y){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");
  266. for(var ba=Object(this),w=ba.length>>>0,aa,r=0;r<w;r++)if(aa=ba[r],e.call(y,aa,r,ba))return aa}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(e){function y(f,e,y){if(f==e)return f?[[0,f]]:[];if(0>y||f.length<y)y=null;var x=ba(f,e),z=f.substring(0,x);f=f.substring(x);e=e.substring(x);x=w(f,e);var aa=f.substring(f.length-x);f=f.substring(0,f.length-x);e=e.substring(0,e.length-x);f=
  267. ca(f,e);z&&f.unshift([0,z]);aa&&f.push([0,aa]);r(f);null!=y&&(f=h(f,y));return f=n(f)}function ca(f,e){if(!f)return[[1,e]];if(!e)return[[-1,f]];var h=f.length>e.length?f:e;var n=f.length>e.length?e:f,r=h.indexOf(n);if(-1!=r)return h=[[1,h.substring(0,r)],[0,n],[1,h.substring(r+n.length)]],f.length>e.length&&(h[0][0]=h[2][0]=-1),h;if(1==n.length)return[[-1,f],[1,e]];if(h=aa(f,e))return e=h[1],n=h[3],f=h[4],h=y(h[0],h[2]),e=y(e,n),h.concat([[0,f]],e);a:{h=f.length;n=e.length;r=Math.ceil((h+n)/2);for(var w=
  268. 2*r,x=Array(w),z=Array(w),ba=0;ba<w;ba++)x[ba]=-1,z[ba]=-1;x[r+1]=0;z[r+1]=0;ba=h-n;for(var ca=0!=ba%2,ea=0,ha=0,da=0,ia=0,sa=0;sa<r;sa++){for(var na=-sa+ea;na<=sa-ha;na+=2){var Da=r+na;var Ea=na==-sa||na!=sa&&x[Da-1]<x[Da+1]?x[Da+1]:x[Da-1]+1;for(var Ca=Ea-na;Ea<h&&Ca<n&&f.charAt(Ea)==e.charAt(Ca);)Ea++,Ca++;x[Da]=Ea;if(Ea>h)ha+=2;else if(Ca>n)ea+=2;else if(ca&&(Da=r+ba-na,0<=Da&&Da<w&&-1!=z[Da])){var za=h-z[Da];if(Ea>=za){f=fa(f,e,Ea,Ca);break a}}}for(na=-sa+da;na<=sa-ia;na+=2){Da=r+na;za=na==-sa||
  269. na!=sa&&z[Da-1]<z[Da+1]?z[Da+1]:z[Da-1]+1;for(Ea=za-na;za<h&&Ea<n&&f.charAt(h-za-1)==e.charAt(n-Ea-1);)za++,Ea++;z[Da]=za;if(za>h)ia+=2;else if(Ea>n)da+=2;else if(!ca&&(Da=r+ba-na,0<=Da&&Da<w&&-1!=x[Da]&&(Ea=x[Da],Ca=r+Ea-Da,za=h-za,Ea>=za))){f=fa(f,e,Ea,Ca);break a}}}f=[[-1,f],[1,e]]}return f}function fa(f,e,h,n){var r=f.substring(h),w=e.substring(n);f=y(f.substring(0,h),e.substring(0,n));r=y(r,w);return f.concat(r)}function ba(f,e){if(!f||!e||f.charAt(0)!=e.charAt(0))return 0;for(var h=0,n=Math.min(f.length,
  270. e.length),r=n,w=0;h<r;)f.substring(w,r)==e.substring(w,r)?w=h=r:n=r,r=Math.floor((n-h)/2+h);return r}function w(f,e){if(!f||!e||f.charAt(f.length-1)!=e.charAt(e.length-1))return 0;for(var h=0,n=Math.min(f.length,e.length),r=n,w=0;h<r;)f.substring(f.length-r,f.length-w)==e.substring(e.length-r,e.length-w)?w=h=r:n=r,r=Math.floor((n-h)/2+h);return r}function aa(f,e){function h(f,e,h){for(var n=f.substring(h,h+Math.floor(f.length/4)),r=-1,x="",z,y,aa,ca;-1!=(r=e.indexOf(n,r+1));){var fa=ba(f.substring(h),
  271. e.substring(r)),ea=w(f.substring(0,h),e.substring(0,r));x.length<ea+fa&&(x=e.substring(r-ea,r)+e.substring(r,r+fa),z=f.substring(0,h-ea),y=f.substring(h+fa),aa=e.substring(0,r-ea),ca=e.substring(r+fa))}return 2*x.length>=f.length?[z,y,aa,ca,x]:null}var n=f.length>e.length?f:e,r=f.length>e.length?e:f;if(4>n.length||2*r.length<n.length)return null;var x=h(n,r,Math.ceil(n.length/4));n=h(n,r,Math.ceil(n.length/2));if(x||n)x=n?x?x[4].length>n[4].length?x:n:n:x;else return null;f.length>e.length?(f=x[0],
  272. e=x[1],n=x[2],r=x[3]):(n=x[0],r=x[1],f=x[2],e=x[3]);return[f,e,n,r,x[4]]}function r(f){f.push([0,""]);for(var e=0,h=0,n=0,z="",y="",aa;e<f.length;)switch(f[e][0]){case 1:n++;y+=f[e][1];e++;break;case -1:h++;z+=f[e][1];e++;break;case 0:1<h+n?(0!==h&&0!==n&&(aa=ba(y,z),0!==aa&&(0<e-h-n&&0==f[e-h-n-1][0]?f[e-h-n-1][1]+=y.substring(0,aa):(f.splice(0,0,[0,y.substring(0,aa)]),e++),y=y.substring(aa),z=z.substring(aa)),aa=w(y,z),0!==aa&&(f[e][1]=y.substring(y.length-aa)+f[e][1],y=y.substring(0,y.length-aa),
  273. z=z.substring(0,z.length-aa))),0===h?f.splice(e-n,h+n,[1,y]):0===n?f.splice(e-h,h+n,[-1,z]):f.splice(e-h-n,h+n,[-1,z],[1,y]),e=e-h-n+(h?1:0)+(n?1:0)+1):0!==e&&0==f[e-1][0]?(f[e-1][1]+=f[e][1],f.splice(e,1)):e++,h=n=0,y=z=""}""===f[f.length-1][1]&&f.pop();h=!1;for(e=1;e<f.length-1;)0==f[e-1][0]&&0==f[e+1][0]&&(f[e][1].substring(f[e][1].length-f[e-1][1].length)==f[e-1][1]?(f[e][1]=f[e-1][1]+f[e][1].substring(0,f[e][1].length-f[e-1][1].length),f[e+1][1]=f[e-1][1]+f[e+1][1],f.splice(e-1,1),h=!0):f[e][1].substring(0,
  274. f[e+1][1].length)==f[e+1][1]&&(f[e-1][1]+=f[e+1][1],f[e][1]=f[e][1].substring(f[e+1][1].length)+f[e+1][1],f.splice(e+1,1),h=!0)),e++;h&&r(f)}function h(e,h){a:{var n=e;if(0===h)var r=[0,n];else{var w=0;for(r=0;r<n.length;r++){var x=n[r];if(-1===x[0]||0===x[0]){var z=w+x[1].length;if(h===z){r=[r+1,n];break a}if(h<z){n=n.slice();w=h-w;h=[x[0],x[1].slice(0,w)];x=[x[0],x[1].slice(w)];n.splice(r,1,h,x);r=[r+1,n];break a}w=z}}throw Error("cursor_pos is out of bounds!");}}n=r[1];r=r[0];h=n[r];x=n[r+1];return null==
  275. h||0!==h[0]?e:null!=x&&h[1]+x[1]===x[1]+h[1]?(n.splice(r,2,x,h),f(n,r,2)):null!=x&&0===x[1].indexOf(h[1])?(n.splice(r,2,[x[0],h[1]],[0,h[1]]),e=x[1].slice(h[1].length),0<e.length&&n.splice(r+2,0,[x[0],e]),f(n,r,3)):e}function n(f){function e(f){return 55296<=f.charCodeAt(f.length-1)&&56319>=f.charCodeAt(f.length-1)}function h(f){return 56320<=f.charCodeAt(0)&&57343>=f.charCodeAt(0)}for(var n=!1,r=2;r<f.length;r+=1)0===f[r-2][0]&&e(f[r-2][1])&&-1===f[r-1][0]&&h(f[r-1][1])&&1===f[r][0]&&h(f[r][1])&&
  276. (n=!0,f[r-1][1]=f[r-2][1].slice(-1)+f[r-1][1],f[r][1]=f[r-2][1].slice(-1)+f[r][1],f[r-2][1]=f[r-2][1].slice(0,-1));if(!n)return f;n=[];for(r=0;r<f.length;r+=1)0<f[r][1].length&&n.push(f[r]);return n}function f(f,e,h){for(h=e+h-1;0<=h&&h>=e-1;h--)if(h+1<f.length){var n=f[h],r=f[h+1];n[0]===r[1]&&f.splice(h,2,[n[0],n[1]+r[1]])}return f}y.INSERT=1;y.DELETE=-1;y.EQUAL=0;e.exports=y},function(e,ca){function y(e){var y=[],w;for(w in e)y.push(w);return y}ca=e.exports="function"===typeof Object.keys?Object.keys:
  277. y;ca.shim=y},function(e,ca){function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function fa(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}ca="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();ca=e.exports=ca?y:fa;ca.supported=y;ca.unsupported=fa},function(e){function y(){}function ca(e,r,h){this.fn=e;this.context=r;this.once=
  278. h||!1}function fa(){this._events=new y;this._eventsCount=0}var ba=Object.prototype.hasOwnProperty,w="~";Object.create&&(y.prototype=Object.create(null),(new y).__proto__||(w=!1));fa.prototype.eventNames=function(){var e=[],r,h;if(0===this._eventsCount)return e;for(h in r=this._events)ba.call(r,h)&&e.push(w?h.slice(1):h);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e};fa.prototype.listeners=function(e,r){e=this._events[w?w+e:e];if(r)return!!e;if(!e)return[];if(e.fn)return[e.fn];
  279. r=0;for(var h=e.length,n=Array(h);r<h;r++)n[r]=e[r].fn;return n};fa.prototype.emit=function(e,r,h,n,f,y){var x=w?w+e:e;if(!this._events[x])return!1;x=this._events[x];var z=arguments.length,aa;if(x.fn){x.once&&this.removeListener(e,x.fn,void 0,!0);switch(z){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,r),!0;case 3:return x.fn.call(x.context,r,h),!0;case 4:return x.fn.call(x.context,r,h,n),!0;case 5:return x.fn.call(x.context,r,h,n,f),!0;case 6:return x.fn.call(x.context,
  280. r,h,n,f,y),!0}var ba=1;for(aa=Array(z-1);ba<z;ba++)aa[ba-1]=arguments[ba];x.fn.apply(x.context,aa)}else{var ca=x.length;for(ba=0;ba<ca;ba++)switch(x[ba].once&&this.removeListener(e,x[ba].fn,void 0,!0),z){case 1:x[ba].fn.call(x[ba].context);break;case 2:x[ba].fn.call(x[ba].context,r);break;case 3:x[ba].fn.call(x[ba].context,r,h);break;case 4:x[ba].fn.call(x[ba].context,r,h,n);break;default:if(!aa){var fa=1;for(aa=Array(z-1);fa<z;fa++)aa[fa-1]=arguments[fa]}x[ba].fn.apply(x[ba].context,aa)}}return!0};
  281. fa.prototype.on=function(e,r,h){r=new ca(r,h||this);e=w?w+e:e;this._events[e]?this._events[e].fn?this._events[e]=[this._events[e],r]:this._events[e].push(r):(this._events[e]=r,this._eventsCount++);return this};fa.prototype.once=function(e,r,h){r=new ca(r,h||this,!0);e=w?w+e:e;this._events[e]?this._events[e].fn?this._events[e]=[this._events[e],r]:this._events[e].push(r):(this._events[e]=r,this._eventsCount++);return this};fa.prototype.removeListener=function(e,r,h,n){e=w?w+e:e;if(!this._events[e])return this;
  282. if(!r)return 0===--this._eventsCount?this._events=new y:delete this._events[e],this;var f=this._events[e];if(f.fn)f.fn!==r||n&&!f.once||h&&f.context!==h||(0===--this._eventsCount?this._events=new y:delete this._events[e]);else{for(var z=0,x=[],aa=f.length;z<aa;z++)(f[z].fn!==r||n&&!f[z].once||h&&f[z].context!==h)&&x.push(f[z]);x.length?this._events[e]=1===x.length?x[0]:x:0===--this._eventsCount?this._events=new y:delete this._events[e]}return this};fa.prototype.removeAllListeners=function(e){e?(e=
  283. w?w+e:e,this._events[e]&&(0===--this._eventsCount?this._events=new y:delete this._events[e])):(this._events=new y,this._eventsCount=0);return this};fa.prototype.off=fa.prototype.removeListener;fa.prototype.addListener=fa.prototype.on;fa.prototype.setMaxListeners=function(){return this};fa.prefixed=w;fa.EventEmitter=fa;"undefined"!==typeof e&&(e.exports=fa)},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f,e,h){e in f?Object.defineProperty(f,e,{value:h,enumerable:!0,
  284. configurable:!0,writable:!0}):f[e]=h;return f}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function aa(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,
  285. e):f.__proto__=e)}function r(f,e,h){return"object"===("undefined"===typeof e?"undefined":ra(e))?Object.keys(e).reduce(function(f,h){return r(f,h,e[h])},f):f.reduce(function(f,n){return n.attributes&&n.attributes[e]?f.push(n):f.insert(n.insert,(0,ya.default)({},ba({},e,h),n.attributes))},new wa.default)}function h(f){return f.nodeType!==Node.ELEMENT_NODE?{}:f["__ql-computed-style"]||(f["__ql-computed-style"]=window.getComputedStyle(f))}function n(f,e){for(var h="",n=f.ops.length-1;0<=n&&h.length<e.length;--n){var r=
  286. f.ops[n];if("string"!==typeof r.insert)break;h=r.insert+h}return h.slice(-1*e.length)===e}function f(f){if(0===f.childNodes.length)return!1;f=h(f);return-1<["block","list-item"].indexOf(f.display)}function z(f,e,h){return f.nodeType===f.TEXT_NODE?h.reduce(function(e,h){return h(f,e)},new wa.default):f.nodeType===f.ELEMENT_NODE?[].reduce.call(f.childNodes||[],function(n,r){var w=z(r,e,h);r.nodeType===f.ELEMENT_NODE&&(w=e.reduce(function(f,e){return e(r,f)},w),w=(r["__ql-matcher"]||[]).reduce(function(f,
  287. e){return e(r,f)},w));return n.concat(w)},new wa.default):new wa.default}function x(f,e,h){return r(h,f,!0)}function ha(f,e){var h=ta.default.Attributor.Attribute.keys(f),n=ta.default.Attributor.Class.keys(f),w=ta.default.Attributor.Style.keys(f),x={};h.concat(n).concat(w).forEach(function(e){var h=ta.default.query(e,ta.default.Scope.ATTRIBUTE);if(null!=h&&(x[h.attrName]=h.value(f),x[h.attrName]))return;h=Ka[e];null==h||h.attrName!==e&&h.keyName!==e||(x[h.attrName]=h.value(f)||void 0);h=pa[e];null==
  288. h||h.attrName!==e&&h.keyName!==e||(h=pa[e],x[h.attrName]=h.value(f)||void 0)});0<Object.keys(x).length&&(e=r(e,x));return e}function da(f,e){var h=ta.default.query(f);if(null==h)return e;if(h.prototype instanceof ta.default.Embed){var n={},w=h.value(f);null!=w&&(n[h.blotName]=w,e=(new wa.default).insert(n,h.formats(f)))}else"function"===typeof h.formats&&(e=r(e,h.blotName,h.formats(f)));return e}function ia(e,h){n(h,"\n")||(f(e)||0<h.length()&&e.nextSibling&&f(e.nextSibling))&&h.insert("\n");return h}
  289. function oa(e,r){if(f(e)&&null!=e.nextElementSibling&&!n(r,"\n\n")){var w=e.offsetHeight+parseFloat(h(e).marginTop)+parseFloat(h(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*w&&r.insert("\n")}return r}function la(e,n){var r=e.data;if("O:P"===e.parentNode.tagName)return n.insert(r.trim());if(0===r.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return n;if(!h(e.parentNode).whiteSpace.startsWith("pre")){var w=function(f,e){e=e.replace(/[^\u00a0]/g,"");return 1>e.length&&
  290. f?" ":e};r=r.replace(/\r\n/g," ").replace(/\n/g," ");r=r.replace(/\s\s+/g,w.bind(w,!0));if(null==e.previousSibling&&f(e.parentNode)||null!=e.previousSibling&&f(e.previousSibling))r=r.replace(/^\s+/,w.bind(w,!1));if(null==e.nextSibling&&f(e.parentNode)||null!=e.nextSibling&&f(e.nextSibling))r=r.replace(/\s+$/,w.bind(w,!1))}return n.insert(r)}Object.defineProperty(ca,"__esModule",{value:!0});ca.matchText=ca.matchSpacing=ca.matchNewline=ca.matchBlot=ca.matchAttributor=ca.default=void 0;var ra="function"===
  291. typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},ma=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==e);n=!0);}catch(Sa){r=!0,w=Sa}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;
  292. }}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),Aa=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ea(3);var ya=y(e);e=ea(2);var wa=y(e);e=ea(0);var ta=y(e);e=ea(5);var qa=y(e);e=ea(10);e=y(e);var sa=ea(9);sa=y(sa);var na=ea(36),Da=ea(37),Ea=ea(13),Ca=y(Ea);Ea=
  293. ea(26);var za=ea(38),Fa=ea(39);ea=ea(40);var Ba=(0,e.default)("quill:clipboard"),Ha=[[Node.TEXT_NODE,la],[Node.TEXT_NODE,ia],["br",function(f,e){n(e,"\n")||e.insert("\n");return e}],[Node.ELEMENT_NODE,ia],[Node.ELEMENT_NODE,da],[Node.ELEMENT_NODE,oa],[Node.ELEMENT_NODE,ha],[Node.ELEMENT_NODE,function(f,e){var n={},w=f.style||{};w.fontStyle&&"italic"===h(f).fontStyle&&(n.italic=!0);w.fontWeight&&(h(f).fontWeight.startsWith("bold")||700<=parseInt(h(f).fontWeight))&&(n.bold=!0);0<Object.keys(n).length&&
  294. (e=r(e,n));0<parseFloat(w.textIndent||0)&&(e=(new wa.default).insert("\t").concat(e));return e}],["li",function(f,e){var h=ta.default.query(f);if(null==h||"list-item"!==h.blotName||!n(e,"\n"))return e;h=-1;for(f=f.parentNode;!f.classList.contains("ql-clipboard");)"list"===(ta.default.query(f)||{}).blotName&&(h+=1),f=f.parentNode;return 0>=h?e:e.compose((new wa.default).retain(e.length()-1).retain(1,{indent:h}))}],["b",x.bind(x,"bold")],["i",x.bind(x,"italic")],["style",function(){return new wa.default}]],
  295. Ka=[na.AlignAttribute,za.DirectionAttribute].reduce(function(f,e){f[e.keyName]=e;return f},{}),pa=[na.AlignStyle,Da.BackgroundStyle,Ea.ColorStyle,za.DirectionStyle,Fa.FontStyle,ea.SizeStyle].reduce(function(f,e){f[e.keyName]=e;return f},{});ea=function(f){function e(f,h){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var n=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f,h));n.quill.root.addEventListener("paste",n.onPaste.bind(n));n.container=n.quill.addContainer("ql-clipboard");
  296. n.container.setAttribute("contenteditable",!0);n.container.setAttribute("tabindex",-1);n.matchers=[];Ha.concat(n.options.matchers).forEach(function(f){f=ma(f,2);var e=f[1];(h.matchVisual||e!==oa)&&n.addMatcher(f[0],e)});return n}aa(e,f);Aa(e,[{key:"addMatcher",value:function(f,e){this.matchers.push([f,e])}},{key:"convert",value:function(f){if("string"===typeof f)return this.container.innerHTML=f.replace(/>\r?\n +</g,"><"),this.convert();f=this.quill.getFormat(this.quill.selection.savedRange.index);
  297. if(f[Ca.default.blotName]){var e=this.container.innerText;this.container.innerHTML="";return(new wa.default).insert(e,ba({},Ca.default.blotName,f[Ca.default.blotName]))}f=this.prepareMatching();f=ma(f,2);f=z(this.container,f[0],f[1]);n(f,"\n")&&null==f.ops[f.ops.length-1].attributes&&(f=f.compose((new wa.default).retain(f.length()-1).delete(1)));Ba.log("convert",this.container.innerHTML,f);this.container.innerHTML="";return f}},{key:"dangerouslyPasteHTML",value:function(f,e){var h=2<arguments.length&&
  298. void 0!==arguments[2]?arguments[2]:qa.default.sources.API;if("string"===typeof f)this.quill.setContents(this.convert(f),e),this.quill.setSelection(0,qa.default.sources.SILENT);else{var n=this.convert(e);this.quill.updateContents((new wa.default).retain(f).concat(n),h);this.quill.setSelection(f+n.length(),qa.default.sources.SILENT)}}},{key:"onPaste",value:function(f){var e=this;if(!f.defaultPrevented&&this.quill.isEnabled()){var h=this.quill.getSelection(),n=(new wa.default).retain(h.index),r=this.quill.scrollingContainer.scrollTop;
  299. this.container.focus();this.quill.selection.update(qa.default.sources.SILENT);setTimeout(function(){n=n.concat(e.convert()).delete(h.length);e.quill.updateContents(n,qa.default.sources.USER);e.quill.setSelection(n.length()-h.length,qa.default.sources.SILENT);e.quill.scrollingContainer.scrollTop=r;e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var f=this,e=[],h=[];this.matchers.forEach(function(n){n=ma(n,2);var r=n[0],w=n[1];switch(r){case Node.TEXT_NODE:h.push(w);break;case Node.ELEMENT_NODE:e.push(w);
  300. break;default:[].forEach.call(f.container.querySelectorAll(r),function(f){f["__ql-matcher"]=f["__ql-matcher"]||[];f["__ql-matcher"].push(w)})}});return[e,h]}}]);return e}(sa.default);ea.DEFAULTS={matchers:[],matchVisual:!0};ca.default=ea;ca.matchAttributor=ha;ca.matchBlot=da;ca.matchNewline=ia;ca.matchSpacing=oa;ca.matchText=la},function(e,ca,ea){function y(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=
  301. Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(ca,"__esModule",{value:!0});var ba=function(){function e(e,h){for(var n=0;n<h.length;n++){var f=h[n];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(e,f.key,f)}}return function(r,h,n){h&&e(r.prototype,h);n&&e(r,n);return r}}(),w=function f(e,h,n){null===e&&(e=Function.prototype);
  302. var r=Object.getOwnPropertyDescriptor(e,h);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return f(e,h,n)}else{if("value"in r)return r.value;h=r.get;return void 0===h?void 0:h.call(n)}};e=function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var e=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==
  303. typeof e?this:e}y(h,e);ba(h,[{key:"optimize",value:function(e){w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,e);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return w(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ea(6)).default);e.blotName="bold";e.tagName=["STRONG",
  304. "B"];ca.default=e},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f,e,h){e in f?Object.defineProperty(f,e,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[e]=h;return f}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function aa(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+
  305. typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function r(f,e,h){var n=document.createElement("button");n.setAttribute("type","button");n.classList.add("ql-"+e);null!=h&&(n.value=h);f.appendChild(n)}function h(f,e){Array.isArray(e[0])||(e=[e]);e.forEach(function(e){var h=document.createElement("span");h.classList.add("ql-formats");e.forEach(function(f){if("string"===
  306. typeof f)r(h,f);else{var e=Object.keys(f)[0];f=f[e];Array.isArray(f)?n(h,e,f):r(h,e,f)}});f.appendChild(h)})}function n(f,e,h){var n=document.createElement("select");n.classList.add("ql-"+e);h.forEach(function(f){var e=document.createElement("option");!1!==f?e.setAttribute("value",f):e.setAttribute("selected","selected");n.appendChild(e)});f.appendChild(n)}Object.defineProperty(ca,"__esModule",{value:!0});ca.addControls=ca.default=void 0;var f=function(){return function(f,e){if(Array.isArray(f))return f;
  307. if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==e);n=!0);}catch(qa){r=!0,w=qa}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),z=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,
  308. n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ea(2);var x=y(e);e=ea(0);var ha=y(e);e=ea(5);var da=y(e);e=ea(10);e=y(e);ea=ea(9);ea=y(ea);var ia=(0,e.default)("quill:toolbar");ea=function(e){function n(e,r){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var x=w(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,r));Array.isArray(x.options.container)?(r=document.createElement("div"),h(r,x.options.container),e.container.parentNode.insertBefore(r,
  309. e.container),x.container=r):x.container="string"===typeof x.options.container?document.querySelector(x.options.container):x.options.container;if(!(x.container instanceof HTMLElement)){var y;return y=ia.error("Container required for toolbar",x.options),w(x,y)}x.container.classList.add("ql-toolbar");x.controls=[];x.handlers={};Object.keys(x.options.handlers).forEach(function(f){x.addHandler(f,x.options.handlers[f])});[].forEach.call(x.container.querySelectorAll("button, select"),function(f){x.attach(f)});
  310. x.quill.on(da.default.events.EDITOR_CHANGE,function(f,e){f===da.default.events.SELECTION_CHANGE&&x.update(e)});x.quill.on(da.default.events.SCROLL_OPTIMIZE,function(){var e=x.quill.selection.getRange();e=f(e,1)[0];x.update(e)});return x}aa(n,e);z(n,[{key:"addHandler",value:function(f,e){this.handlers[f]=e}},{key:"attach",value:function(e){var h=this,n=[].find.call(e.classList,function(f){return 0===f.indexOf("ql-")});if(n){n=n.slice(3);"BUTTON"===e.tagName&&e.setAttribute("type","button");if(null==
  311. this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n]){ia.warn("ignoring attaching to disabled format",n,e);return}if(null==ha.default.query(n)){ia.warn("ignoring attaching to nonexistent format",n,e);return}}e.addEventListener("SELECT"===e.tagName?"change":"click",function(r){if("SELECT"===e.tagName){if(0>e.selectedIndex)return;var w=e.options[e.selectedIndex];w=w.hasAttribute("selected")?!1:w.value||!1}else w=e.classList.contains("ql-active")?!1:e.value||!e.hasAttribute("value"),
  312. r.preventDefault();h.quill.focus();r=h.quill.selection.getRange();r=f(r,1)[0];if(null!=h.handlers[n])h.handlers[n].call(h,w);else if(ha.default.query(n).prototype instanceof ha.default.Embed){w=prompt("Enter "+n);if(!w)return;h.quill.updateContents((new x.default).retain(r.index).delete(r.length).insert(ba({},n,w)),da.default.sources.USER)}else h.quill.format(n,w,da.default.sources.USER);h.update(r)});this.controls.push([n,e])}}},{key:"update",value:function(e){var h=null==e?{}:this.quill.getFormat(e);
  313. this.controls.forEach(function(n){n=f(n,2);var r=n[0];n=n[1];if("SELECT"===n.tagName){var w=void 0;null==e?w=null:null==h[r]?w=n.querySelector("option[selected]"):Array.isArray(h[r])||(r=h[r],"string"===typeof r&&(r=r.replace(/"/g,'\\"')),w=n.querySelector('option[value="'+r+'"]'));null==w?(n.value="",n.selectedIndex=-1):w.selected=!0}else null==e?n.classList.remove("ql-active"):n.hasAttribute("value")?(r=h[r]===n.getAttribute("value")||null!=h[r]&&h[r].toString()===n.getAttribute("value")||null==
  314. h[r]&&!n.getAttribute("value"),n.classList.toggle("ql-active",r)):n.classList.toggle("ql-active",null!=h[r])})}}]);return n}(ea.default);ea.DEFAULTS={};ea.DEFAULTS={container:null,handlers:{clean:function(){var f=this,e=this.quill.getSelection();null!=e&&(0==e.length?(e=this.quill.getFormat(),Object.keys(e).forEach(function(e){null!=ha.default.query(e,ha.default.Scope.INLINE)&&f.quill.format(e,!1)})):this.quill.removeFormat(e,da.default.sources.USER))},direction:function(f){var e=this.quill.getFormat().align;
  315. "rtl"===f&&null==e?this.quill.format("align","right",da.default.sources.USER):f||"right"!==e||this.quill.format("align",!1,da.default.sources.USER);this.quill.format("direction",f,da.default.sources.USER)},indent:function(f){var e=this.quill.getFormat(this.quill.getSelection()),h=parseInt(e.indent||0);if("+1"===f||"-1"===f)f="+1"===f?1:-1,"rtl"===e.direction&&(f*=-1),this.quill.format("indent",h+f,da.default.sources.USER)},link:function(f){!0===f&&(f=prompt("Enter link URL:"));this.quill.format("link",
  316. f,da.default.sources.USER)},list:function(f){var e=this.quill.getFormat(this.quill.getSelection());"check"===f?"checked"===e.list||"unchecked"===e.list?this.quill.format("list",!1,da.default.sources.USER):this.quill.format("list","unchecked",da.default.sources.USER):this.quill.format("list",f,da.default.sources.USER)}}};ca.default=ea;ca.addControls=h},function(e){e.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>'},
  317. function(e,ca,ea){function y(e,h){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?e:h}function ba(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ca,
  318. "__esModule",{value:!0});var w=function(){function e(e,n){for(var f=0;f<n.length;f++){var h=n[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(h,n,f){n&&e(h.prototype,n);f&&e(h,f);return h}}(),aa=function z(e,n,f){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,n);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,n,f)}else{if("value"in h)return h.value;n=h.get;return void 0===n?
  319. void 0:n.call(f)}};e=function(e){function h(f,e){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");f=y(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,f));f.label.innerHTML=e;f.container.classList.add("ql-color-picker");[].slice.call(f.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(f){f.classList.add("ql-primary")});return f}ba(h,e);w(h,[{key:"buildItem",value:function(f){var e=aa(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),
  320. "buildItem",this).call(this,f);e.style.backgroundColor=f.getAttribute("value")||"";return e}},{key:"selectItem",value:function(f,e){aa(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,f,e);e=this.label.querySelector(".ql-color-label");f=f?f.getAttribute("data-value")||"":"";e&&("line"===e.tagName?e.style.stroke=f:e.style.fill=f)}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ea(28)).default);ca.default=e},function(e,ca,ea){function y(e,h){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  321. return!h||"object"!==typeof h&&"function"!==typeof h?e:h}function ba(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(ca,"__esModule",{value:!0});var w=function(){function e(e,n){for(var f=0;f<n.length;f++){var h=n[f];h.enumerable=
  322. h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(h,n,f){n&&e(h.prototype,n);f&&e(h,f);return h}}(),aa=function z(e,n,f){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,n);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,n,f)}else{if("value"in h)return h.value;n=h.get;return void 0===n?void 0:n.call(f)}};e=function(e){function h(f,e){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");
  323. f=y(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,f));f.container.classList.add("ql-icon-picker");[].forEach.call(f.container.querySelectorAll(".ql-picker-item"),function(f){f.innerHTML=e[f.getAttribute("data-value")||""]});f.defaultItem=f.container.querySelector(".ql-selected");f.selectItem(f.defaultItem);return f}ba(h,e);w(h,[{key:"selectItem",value:function(f,e){aa(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,f,e);f=f||this.defaultItem;this.label.innerHTML=
  324. f.innerHTML}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ea(28)).default);ca.default=e},function(e,ca){Object.defineProperty(ca,"__esModule",{value:!0});var y=function(){function e(e,w){for(var y=0;y<w.length;y++){var r=w[y];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(e,r.key,r)}}return function(y,w,aa){w&&e(y.prototype,w);aa&&e(y,aa);return y}}();e=function(){function e(y,w){var aa=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");
  325. this.quill=y;this.boundsContainer=w||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(){aa.root.style.marginTop=-1*aa.quill.root.scrollTop+"px"});this.hide()}y(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var w=e.left+e.width/2-this.root.offsetWidth/2,y=e.bottom+this.quill.root.scrollTop;this.root.style.left=
  326. w+"px";this.root.style.top=y+"px";this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),h=this.root.getBoundingClientRect(),n=0;h.right>r.right&&(n=r.right-h.right,this.root.style.left=w+n+"px");h.left<r.left&&(n=r.left-h.left,this.root.style.left=w+n+"px");h.bottom>r.bottom&&(this.root.style.top=y-(e.bottom-e.top+(h.bottom-h.top))+"px",this.root.classList.add("ql-flip"));return n}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
  327. return e}();ca.default=e},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}function ba(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function aa(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=
  328. Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ca,"__esModule",{value:!0});var r=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==e);n=!0);}catch(Da){r=!0,w=Da}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;
  329. }}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),h=function ta(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return ta(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}},n=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,
  330. n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ea(3);e=y(e);var f=ea(8),z=y(f);f=ea(43);var x=y(f),da=ea(27),ha=y(da),ia=ea(15);ea=ea(41);var oa=y(ea),la=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ea=function(f){function e(f,h){ba(this,e);null!=h.modules.toolbar&&null==h.modules.toolbar.container&&(h.modules.toolbar.container=la);f=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f,h));f.quill.container.classList.add("ql-snow");
  331. return f}aa(e,f);n(e,[{key:"extendToolbar",value:function(f){f.container.classList.add("ql-snow");this.buildButtons([].slice.call(f.container.querySelectorAll("button")),oa.default);this.buildPickers([].slice.call(f.container.querySelectorAll("select")),oa.default);this.tooltip=new ra(this.quill,this.options.bounds);f.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(e,h){f.handlers.link.call(f,!h.format.link)})}}]);return e}(x.default);ea.DEFAULTS=
  332. (0,e.default)(!0,{},x.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(f){f?(f=this.quill.getSelection(),null!=f&&0!=f.length&&(f=this.quill.getText(f),/^\S+@\S+\.\S+$/.test(f)&&0!==f.indexOf("mailto:")&&(f="mailto:"+f),this.quill.theme.tooltip.edit("link",f))):this.quill.format("link",!1)}}}}});var ra=function(f){function e(f,h){ba(this,e);f=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f,h));f.preview=f.root.querySelector("a.ql-preview");return f}aa(e,f);n(e,[{key:"listen",
  333. value:function(){var f=this;h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(e){f.root.classList.contains("ql-editing")?f.save():f.edit("link",f.preview.textContent);e.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=f.linkRange){var h=f.linkRange;f.restoreFocus();f.quill.formatText(h,"link",!1,z.default.sources.USER);delete f.linkRange}e.preventDefault();
  334. f.hide()});this.quill.on(z.default.events.SELECTION_CHANGE,function(e,h,n){if(null!=e){if(0===e.length&&n===z.default.sources.USER){if(h=f.quill.scroll.descendant(ha.default,e.index),n=r(h,2),h=n[0],n=n[1],null!=h){f.linkRange=new ia.Range(e.index-n,h.length());e=ha.default.formats(h.domNode);f.preview.textContent=e;f.preview.setAttribute("href",e);f.show();f.position(f.quill.getBounds(f.linkRange));return}}else delete f.linkRange;f.hide()}})}},{key:"show",value:function(){h(e.prototype.__proto__||
  335. Object.getPrototypeOf(e.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return e}(f.BaseTooltip);ra.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>';ca.default=ea},function(e,ca,ea){function y(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(ca,"__esModule",{value:!0});
  336. e=ea(29);e=y(e);var ba=ea(36),w=ea(38),aa=ea(64),r=ea(65);r=y(r);var h=ea(66);h=y(h);var n=ea(67),f=y(n),z=ea(37),x=ea(26),da=ea(39),ha=ea(40),ia=ea(56);ia=y(ia);var oa=ea(68);oa=y(oa);var la=ea(27);la=y(la);var ra=ea(69);ra=y(ra);var ma=ea(70);ma=y(ma);var Aa=ea(71);Aa=y(Aa);var ya=ea(72);ya=y(ya);var wa=ea(73);wa=y(wa);var ta=ea(13),qa=y(ta),sa=ea(74);sa=y(sa);var na=ea(75);na=y(na);var Da=ea(57);Da=y(Da);var Ea=ea(41);Ea=y(Ea);var Ca=ea(28);Ca=y(Ca);var za=ea(59);za=y(za);var Fa=ea(60);Fa=y(Fa);
  337. var Ba=ea(61);Ba=y(Ba);var Ha=ea(108);Ha=y(Ha);ea=ea(62);ea=y(ea);e.default.register({"attributors/attribute/direction":w.DirectionAttribute,"attributors/class/align":ba.AlignClass,"attributors/class/background":z.BackgroundClass,"attributors/class/color":x.ColorClass,"attributors/class/direction":w.DirectionClass,"attributors/class/font":da.FontClass,"attributors/class/size":ha.SizeClass,"attributors/style/align":ba.AlignStyle,"attributors/style/background":z.BackgroundStyle,"attributors/style/color":x.ColorStyle,
  338. "attributors/style/direction":w.DirectionStyle,"attributors/style/font":da.FontStyle,"attributors/style/size":ha.SizeStyle},!0);e.default.register({"formats/align":ba.AlignClass,"formats/direction":w.DirectionClass,"formats/indent":aa.IndentClass,"formats/background":z.BackgroundStyle,"formats/color":x.ColorStyle,"formats/font":da.FontClass,"formats/size":ha.SizeClass,"formats/blockquote":r.default,"formats/code-block":qa.default,"formats/header":h.default,"formats/list":f.default,"formats/bold":ia.default,
  339. "formats/code":ta.Code,"formats/italic":oa.default,"formats/link":la.default,"formats/script":ra.default,"formats/strike":ma.default,"formats/underline":Aa.default,"formats/image":ya.default,"formats/video":wa.default,"formats/list/item":n.ListItem,"modules/formula":sa.default,"modules/syntax":na.default,"modules/toolbar":Da.default,"themes/bubble":Ha.default,"themes/snow":ea.default,"ui/icons":Ea.default,"ui/picker":Ca.default,"ui/icon-picker":Fa.default,"ui/color-picker":za.default,"ui/tooltip":Ba.default},
  340. !0);ca.default=e.default},function(e,ca,ea){function y(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(ca,"__esModule",{value:!0});ca.IndentClass=void 0;var ba=function(){function e(e,h){for(var n=0;n<h.length;n++){var f=h[n];
  341. f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(e,f.key,f)}}return function(r,h,n){h&&e(r.prototype,h);n&&e(r,n);return r}}(),w=function f(e,h,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,h);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return f(e,h,n)}else{if("value"in r)return r.value;h=r.get;return void 0===h?void 0:h.call(n)}};e=function(e){return e&&e.__esModule?e:{default:e}}(ea(0));e=new (function(e){function h(){if(!(this instanceof
  342. h))throw new TypeError("Cannot call a class as a function");var e=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}y(h,e);ba(h,[{key:"add",value:function(e,f){if("+1"===f||"-1"===f){var n=this.value(e)||0;f="+1"===f?n+1:n-1}return 0===f?(this.remove(e),!0):w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"add",this).call(this,
  343. e,f)}},{key:"canAdd",value:function(e,f){return w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"canAdd",this).call(this,e,f)||w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"canAdd",this).call(this,e,parseInt(f))}},{key:"value",value:function(e){return parseInt(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"value",this).call(this,e))||void 0}}]);return h}(e.default.Attributor.Class))("indent","ql-indent",{scope:e.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,
  344. 8]});ca.IndentClass=e},function(e,ca,ea){function y(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(ca,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");
  345. var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}y(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ea(4)).default);e.blotName="blockquote";e.tagName="blockquote";ca.default=e},function(e,ca,ea){function y(e,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+
  346. typeof y);e.prototype=Object.create(y&&y.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});y&&(Object.setPrototypeOf?Object.setPrototypeOf(e,y):e.__proto__=y)}Object.defineProperty(ca,"__esModule",{value:!0});var ba=function(){function e(e,r){for(var h=0;h<r.length;h++){var n=r[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(w,r,h){r&&e(w.prototype,r);h&&e(w,h);return w}}();e=function(e){function w(){if(!(this instanceof
  347. w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}y(w,e);ba(w,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ea(4)).default);e.blotName="header";e.tagName="H1 H2 H3 H4 H5 H6".split(" ");
  348. ca.default=e},function(e,ca,ea){function y(e){return e&&e.__esModule?e:{default:e}}function ba(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function w(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function aa(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&
  349. f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(ca,"__esModule",{value:!0});ca.default=ca.ListItem=void 0;var r=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}(),h=function oa(e,f,h){null===
  350. e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return oa(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ea(0);var n=y(e);e=ea(4);e=y(e);ea=ea(25);ea=y(ea);var f=function(e){function f(){ba(this,f);return w(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}aa(f,e);r(f,[{key:"format",value:function(e,r){e!==z.blotName||r?h(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),
  351. "format",this).call(this,e,r):this.replaceWith(n.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():h(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){this.parent.isolate(this.offset(this.parent),this.length());if(e===this.parent.statics.blotName)return this.parent.replaceWith(e,n),this;this.parent.unwrap();return h(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),
  352. "replaceWith",this).call(this,e,n)}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:h(f.__proto__||Object.getPrototypeOf(f),"formats",this).call(this,e)}}]);return f}(e.default);f.blotName="list-item";f.tagName="LI";var z=function(e){function y(e){function f(f){if(f.target.parentNode===e){var r=h.statics.formats(e);f=n.default.find(f.target);"checked"===r?f.format("list","unchecked"):"unchecked"===r&&f.format("list","checked")}}ba(this,y);var h=w(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,
  353. e));e.addEventListener("touchstart",f);e.addEventListener("mousedown",f);return h}aa(y,e);r(y,null,[{key:"create",value:function(e){var f="ordered"===e?"OL":"UL";f=h(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,f);"checked"!==e&&"unchecked"!==e||f.setAttribute("data-checked","checked"===e);return f}},{key:"formats",value:function(e){if("OL"===e.tagName)return"ordered";if("UL"===e.tagName)return e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":
  354. "bullet"}}]);r(y,[{key:"format",value:function(e,f){0<this.children.length&&this.children.tail.format(e,f)}},{key:"formats",value:function(){var e={},f=this.statics.blotName,h=this.statics.formats(this.domNode);f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):e[f]=h;return e}},{key:"insertBefore",value:function(e,n){e instanceof f?h(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertBefore",this).call(this,e,n):(n=null==n?this.length():n.offset(this),
  355. n=this.split(n),n.parent.insertBefore(e,n))}},{key:"optimize",value:function(e){h(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,e);e=this.next;null!=e&&e.prev===this&&e.statics.blotName===this.statics.blotName&&e.domNode.tagName===this.domNode.tagName&&e.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(e.moveChildren(this),e.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var f=n.default.create(this.statics.defaultChild);
  356. e.moveChildren(f);this.appendChild(f)}h(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"replace",this).call(this,e)}}]);return y}(ea.default);z.blotName="list";z.scope=n.default.Scope.BLOCK_BLOT;z.tagName=["OL","UL"];z.defaultChild="list-item";z.allowedChildren=[f];ca.ListItem=f;ca.default=z},function(e,ca,ea){function y(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,
  357. {constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(ca,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?
  358. this:e}y(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ea(56)).default);e.blotName="italic";e.tagName=["EM","I"];ca.default=e},function(e,ca,ea){function y(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(ca,
  359. "__esModule",{value:!0});var ba=function(){function e(e,h){for(var n=0;n<h.length;n++){var f=h[n];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(e,f.key,f)}}return function(r,h,n){h&&e(r.prototype,h);n&&e(r,n);return r}}(),w=function f(e,h,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,h);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return f(e,h,n)}else{if("value"in r)return r.value;h=r.get;return void 0===h?
  360. void 0:h.call(n)}};e=function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var e=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}y(h,e);ba(h,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):w(h.__proto__||
  361. Object.getPrototypeOf(h),"create",this).call(this,e)}},{key:"formats",value:function(e){if("SUB"===e.tagName)return"sub";if("SUP"===e.tagName)return"super"}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ea(6)).default);e.blotName="script";e.tagName=["SUB","SUP"];ca.default=e},function(e,ca,ea){function y(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,
  362. enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(ca,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}y(w,e);
  363. return w}(function(e){return e&&e.__esModule?e:{default:e}}(ea(6)).default);e.blotName="strike";e.tagName="S";ca.default=e},function(e,ca,ea){function y(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(ca,"__esModule",{value:!0});
  364. e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}y(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ea(6)).default);e.blotName="underline";e.tagName="U";ca.default=e},function(e,ca,ea){function y(e,n){if("function"!==
  365. typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(ca,"__esModule",{value:!0});var ba=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,
  366. n.key,n)}}return function(h,f,r){f&&e(h.prototype,f);r&&e(h,r);return h}}(),w=function x(e,f,r){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return x(e,f,r)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(r)}};e=function(e){return e&&e.__esModule?e:{default:e}}(ea(0));var aa=ea(27),r=["alt","height","width"];ea=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");
  367. var e=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}y(f,e);ba(f,[{key:"format",value:function(e,n){-1<r.indexOf(e)?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=w(f.__proto__||Object.getPrototypeOf(f),
  368. "create",this).call(this,e);"string"===typeof e&&n.setAttribute("src",this.sanitize(e));return n}},{key:"formats",value:function(e){return r.reduce(function(f,n){e.hasAttribute(n)&&(f[n]=e.getAttribute(n));return f},{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,aa.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]);return f}(e.default.Embed);
  369. ea.blotName="image";ea.tagName="IMG";ca.default=ea},function(e,ca,ea){function y(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(ca,"__esModule",{value:!0});var ba=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=
  370. f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,r){f&&e(h.prototype,f);r&&e(h,r);return h}}(),w=function x(e,f,r){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return x(e,f,r)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(r)}};e=ea(4);var aa=function(e){return e&&e.__esModule?e:{default:e}}(ea(27)),
  371. r=["height","width"];ea=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var e=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}y(f,e);ba(f,[{key:"format",value:function(e,n){-1<r.indexOf(e)?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):w(f.prototype.__proto__||
  372. Object.getPrototypeOf(f.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=w(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,e);n.setAttribute("frameborder","0");n.setAttribute("allowfullscreen",!0);n.setAttribute("src",this.sanitize(e));return n}},{key:"formats",value:function(e){return r.reduce(function(f,n){e.hasAttribute(n)&&(f[n]=e.getAttribute(n));return f},{})}},{key:"sanitize",value:function(e){return aa.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]);
  373. return f}(e.BlockEmbed);ea.blotName="video";ea.className="ql-video";ea.tagName="IFRAME";ca.default=ea},function(e,ca,ea){function y(e){return e&&e.__esModule?e:{default:e}}function ba(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function w(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function aa(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+
  374. typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(ca,"__esModule",{value:!0});ca.default=ca.FormulaBlot=void 0;var r=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,
  375. n);return f}}(),h=function oa(e,f,h){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return oa(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ea(35);e=y(e);var n=ea(5),f=y(n);ea=ea(9);ea=y(ea);var z=function(e){function f(){ba(this,f);return w(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}aa(f,e);r(f,null,[{key:"create",value:function(e){var n=h(f.__proto__||
  376. Object.getPrototypeOf(f),"create",this).call(this,e);"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e));return n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]);return f}(e.default);z.blotName="formula";z.className="ql-formula";z.tagName="SPAN";ea=function(e){function h(){ba(this,h);var e=w(this,(h.__proto__||Object.getPrototypeOf(h)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
  377. return e}aa(h,e);r(h,null,[{key:"register",value:function(){f.default.register(z,!0)}}]);return h}(ea.default);ca.FormulaBlot=z;ca.default=ea},function(e,ca,ea){function y(e){return e&&e.__esModule?e:{default:e}}function ba(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function w(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function aa(e,f){if("function"!==
  378. typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(ca,"__esModule",{value:!0});ca.default=ca.CodeToken=ca.CodeBlock=void 0;var r=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in
  379. n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}(),h=function la(e,f,h){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return la(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ea(0);e=y(e);var n=ea(5),f=y(n);n=ea(9);n=y(n);ea=ea(13);var z=function(e){function f(){ba(this,f);return w(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,
  380. arguments))}aa(f,e);r(f,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent;this.attach();h(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var f=this.domNode.textContent;if(this.cachedText!==f){if(0<f.trim().length||null==this.cachedText)this.domNode.innerHTML=e(f),this.domNode.normalize(),this.attach();this.cachedText=f}}}]);return f}(y(ea).default);z.className="ql-syntax";var x=new e.default.Attributor.Class("token",
  381. "hljs",{scope:e.default.Scope.INLINE});ea=function(e){function h(e,n){ba(this,h);var r=w(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,n));if("function"!==typeof r.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var x=null;r.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(x);x=setTimeout(function(){r.highlight();x=null},r.options.interval)});r.highlight();return r}aa(h,e);r(h,null,[{key:"register",
  382. value:function(){f.default.register(x,!0);f.default.register(z,!0)}}]);r(h,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var h=this.quill.getSelection();this.quill.scroll.descendants(z).forEach(function(f){f.highlight(e.options.highlight)});this.quill.update(f.default.sources.SILENT);null!=h&&this.quill.setSelection(h,f.default.sources.SILENT)}}}]);return h}(n.default);ea.DEFAULTS={highlight:function(){return null==window.hljs?
  383. null:function(e){return window.hljs.highlightAuto(e).value}}(),interval:1E3};ca.CodeBlock=z;ca.CodeToken=x;ca.default=ea},function(e){e.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(e){e.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>'},
  384. function(e){e.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(e){e.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(e){e.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>'},
  385. function(e){e.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(e){e.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>'},
  386. function(e){e.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(e){e.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>'},
  387. function(e){e.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(e){e.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>'},
  388. function(e){e.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(e){e.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(e){e.exports=
  389. '<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(e){e.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>'},
  390. function(e){e.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>'},
  391. function(e){e.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>'},
  392. function(e){e.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>'},
  393. function(e){e.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(e){e.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(e){e.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>'},
  394. function(e){e.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(e){e.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>'},
  395. function(e){e.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>'},
  396. function(e){e.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(e){e.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>'},
  397. function(e){e.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>'},
  398. function(e){e.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>'},
  399. function(e){e.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>'},
  400. function(e){e.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(e){e.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>'},
  401. function(e){e.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(e,ca,ea){function y(e){return e&&e.__esModule?e:{default:e}}function ba(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function w(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==
  402. typeof f?e:f}function aa(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(ca,"__esModule",{value:!0});ca.default=ca.BubbleTooltip=void 0;var r=function Aa(e,f,h){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,
  403. f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return Aa(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}},h=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}();e=ea(3);e=y(e);var n=ea(8),f=y(n);n=ea(43);var z=y(n),x=ea(15);ea=ea(41);var da=y(ea),ha=[["bold","italic",
  404. "link"],[{header:1},{header:2},"blockquote"]];ea=function(e){function f(e,h){ba(this,f);null!=h.modules.toolbar&&null==h.modules.toolbar.container&&(h.modules.toolbar.container=ha);e=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));e.quill.container.classList.add("ql-bubble");return e}aa(f,e);h(f,[{key:"extendToolbar",value:function(e){this.tooltip=new ia(this.quill,this.options.bounds);this.tooltip.root.appendChild(e.container);this.buildButtons([].slice.call(e.container.querySelectorAll("button")),
  405. da.default);this.buildPickers([].slice.call(e.container.querySelectorAll("select")),da.default)}}]);return f}(z.default);ea.DEFAULTS=(0,e.default)(!0,{},z.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var ia=function(e){function n(e,h){ba(this,n);var r=w(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,h));r.quill.on(f.default.events.EDITOR_CHANGE,function(e,h,n,w){e===f.default.events.SELECTION_CHANGE&&
  406. (null!=h&&0<h.length&&w===f.default.sources.USER?(r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px",e=r.quill.getLines(h.index,h.length),1===e.length?r.position(r.quill.getBounds(h)):(n=e[e.length-1],e=r.quill.getIndex(n),h=Math.min(n.length()-1,h.index+h.length-e),h=r.quill.getBounds(new x.Range(e,h)),r.position(h))):document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide())});return r}aa(n,e);h(n,[{key:"listen",value:function(){var e=this;r(n.prototype.__proto__||
  407. Object.getPrototypeOf(n.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")});this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains("ql-hidden")){var f=e.quill.getSelection();null!=f&&e.position(e.quill.getBounds(f))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){e=r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),
  408. "position",this).call(this,e);var f=this.root.querySelector(".ql-tooltip-arrow");f.style.marginLeft="";if(0===e)return e;f.style.marginLeft=-1*e-f.offsetWidth/2+"px"}}]);return n}(n.BaseTooltip);ia.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>';ca.BubbleTooltip=ia;ca.default=ea},function(e,ca,ea){e.exports=ea(63)}])["default"]})}).call(this,
  409. e(449).Buffer)}}]);}).call(this || window)