Files
citrus-cms/assets/pdf-js-express/lib/core/vendors.quill.chunk.js
T
2026-04-28 21:15:09 +03:00

411 lines
211 KiB
JavaScript

/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{377:function(ia,ba,e){(function(e){(function(e,ba){ia.exports=ba()})("undefined"!==typeof self?self:this,function(){return function(e){function x(da){if(ba[da])return ba[da].exports;var aa=ba[da]={i:da,l:!1,exports:{}};e[da].call(aa.exports,aa,aa.exports,x);aa.l=!0;return aa.exports}var ba={};x.m=e;x.c=ba;x.d=function(e,aa,w){x.o(e,aa)||Object.defineProperty(e,aa,{configurable:!1,enumerable:!0,get:w})};x.n=function(e){var aa=
e&&e.__esModule?function(){return e["default"]}:function(){return e};x.d(aa,"a",aa);return aa};x.o=function(e,x){return Object.prototype.hasOwnProperty.call(e,x)};x.p="";return x(x.s=109)}([function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});e=ca(17);var x=ca(18),aa=ca(19),w=ca(45),y=ca(46),n=ca(47),h=ca(48),f=ca(49),r=ca(12),z=ca(32),fa=ca(33),ha=ca(31);ca=ca(1);ba.default={Scope:ca.Scope,create:ca.create,find:ca.find,query:ca.query,register:ca.register,Container:e.default,Format:x.default,
Leaf:aa.default,Embed:h.default,Scroll:w.default,Block:n.default,Inline:y.default,Text:f.default,Attributor:{Attribute:r.default,Class:z.default,Style:fa.default,Store:ha.default}}},function(e,ba){function x(e,f){void 0===f&&(f=!1);return null==e?null:null!=e[ba.DATA_KEY]?e[ba.DATA_KEY].blot:f?x(e.parentNode,f):null}function da(e,w){void 0===w&&(w=z.ANY);if("string"===typeof e)var x=r[e]||n[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)x=r.text;else if("number"===typeof e)e&z.LEVEL&z.BLOCK?
x=r.block:e&z.LEVEL&z.INLINE&&(x=r.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||f[e.tagName]}return null==x?null:w&z.LEVEL&x.scope&&w&z.TYPE&x.scope?x:null}function aa(){for(var e=[],w=0;w<arguments.length;w++)e[w]=arguments[w];if(1<e.length)return e.map(function(e){return aa(e)});var x=e[0];if("string"!==typeof x.blotName&&"string"!==typeof x.attrName)throw new y("Invalid definition");if("abstract"===x.blotName)throw new y("Cannot register abstract class");
r[x.blotName||x.attrName]=x;"string"===typeof x.keyName?n[x.keyName]=x:(null!=x.className&&(h[x.className]=x),null!=x.tagName&&(Array.isArray(x.tagName)?x.tagName=x.tagName.map(function(e){return e.toUpperCase()}):x.tagName=x.tagName.toUpperCase(),(Array.isArray(x.tagName)?x.tagName:[x.tagName]).forEach(function(e){if(null==f[e]||null==x.className)f[e]=x})));return x}var w=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,
f){for(var h in f)f.hasOwnProperty(h)&&(e[h]=f[h])};return function(f,h){function n(){this.constructor=f}e(f,h);f.prototype=null===h?Object.create(h):(n.prototype=h.prototype,new n)}}();Object.defineProperty(ba,"__esModule",{value:!0});var y=function(e){function f(f){f="[Parchment] "+f;var h=e.call(this,f)||this;h.message=f;h.name=h.constructor.name;return h}w(f,e);return f}(Error);ba.ParchmentError=y;var n={},h={},f={},r={};ba.DATA_KEY="__blot";var z;(function(e){e[e.TYPE=3]="TYPE";e[e.LEVEL=12]=
"LEVEL";e[e.ATTRIBUTE=13]="ATTRIBUTE";e[e.BLOT=14]="BLOT";e[e.INLINE=7]="INLINE";e[e.BLOCK=11]="BLOCK";e[e.BLOCK_BLOT=10]="BLOCK_BLOT";e[e.INLINE_BLOT=6]="INLINE_BLOT";e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";e[e.ANY=15]="ANY"})(z=ba.Scope||(ba.Scope={}));ba.create=function(e,f){var h=da(e);if(null==h)throw new y("Unable to create "+e+" blot");e=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:h.create(f);return new h(e,f)};ba.find=x;ba.query=da;ba.register=
aa},function(e,ba,ca){function x(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}var aa=ca(51),w=ca(11),y=ca(3),n=ca(20),h=String.fromCharCode(0);x.prototype.insert=function(e,h){var f={};if(0===e.length)return this;f.insert=e;null!=h&&"object"===typeof h&&0<Object.keys(h).length&&(f.attributes=h);return this.push(f)};x.prototype["delete"]=function(e){return 0>=e?this:this.push({"delete":e})};x.prototype.retain=function(e,h){if(0>=e)return this;e={retain:e};
null!=h&&"object"===typeof h&&0<Object.keys(h).length&&(e.attributes=h);return this.push(e)};x.prototype.push=function(e){var f=this.ops.length,h=this.ops[f-1];e=y(!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&&
"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};x.prototype.chop=function(){var e=this.ops[this.ops.length-1];e&&e.retain&&!e.attributes&&this.ops.pop();
return this};x.prototype.filter=function(e){return this.ops.filter(e)};x.prototype.forEach=function(e){this.ops.forEach(e)};x.prototype.map=function(e){return this.ops.map(e)};x.prototype.partition=function(e){var f=[],h=[];this.forEach(function(n){(e(n)?f:h).push(n)});return[f,h]};x.prototype.reduce=function(e,h){return this.ops.reduce(e,h)};x.prototype.changeLength=function(){return this.reduce(function(e,h){return h.insert?e+n.length(h):h.delete?e-h.delete:e},0)};x.prototype.length=function(){return this.reduce(function(e,
h){return e+n.length(h)},0)};x.prototype.slice=function(e,h){e=e||0;"number"!==typeof h&&(h=Infinity);for(var f=[],r=n.iterator(this.ops),w=0;w<h&&r.hasNext();){if(w<e)var y=r.next(e-w);else y=r.next(h-w),f.push(y);w+=n.length(y)}return new x(f)};x.prototype.compose=function(e){var f=n.iterator(this.ops);e=n.iterator(e.ops);var h=[],y=e.peek();if(null!=y&&"number"===typeof y.retain&&null==y.attributes){for(var aa=y.retain;"insert"===f.peekType()&&f.peekLength()<=aa;)aa-=f.peekLength(),h.push(f.next());
0<y.retain-aa&&e.next(y.retain-aa)}for(h=new x(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 da=f.next(aa),ba=e.next(aa);if("number"===typeof ba.retain){y={};"number"===typeof da.retain?y.retain=aa:y.insert=da.insert;if(aa=n.attributes.compose(da.attributes,ba.attributes,"number"===typeof da.retain))y.attributes=aa;h.push(y);if(!e.hasNext()&&w(h.ops[h.ops.length-1],y))return f=
new x(f.rest()),h.concat(f).chop()}else"number"===typeof ba["delete"]&&"number"===typeof da.retain&&h.push(ba)}return h.chop()};x.prototype.concat=function(e){var f=new x(this.ops.slice());0<e.ops.length&&(f.push(e.ops[0]),f.ops=f.ops.concat(e.ops.slice(1)));return f};x.prototype.diff=function(e,r){if(this.ops===e.ops)return new x;var f=[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");
}).join("")}),y=new x;r=aa(f[0],f[1],r);var da=n.iterator(this.ops),ba=n.iterator(e.ops);r.forEach(function(e){for(var f=e[1].length;0<f;){var h=0;switch(e[0]){case aa.INSERT:h=Math.min(ba.peekLength(),f);y.push(ba.next(h));break;case aa.DELETE:h=Math.min(f,da.peekLength());da.next(h);y["delete"](h);break;case aa.EQUAL:h=Math.min(da.peekLength(),ba.peekLength(),f);var r=da.next(h),x=ba.next(h);if(w(r.insert,x.insert))y.retain(h,n.attributes.diff(r.attributes,x.attributes));else y.push(x)["delete"](h)}f-=
h}});return y.chop()};x.prototype.eachLine=function(e,h){h=h||"\n";for(var f=n.iterator(this.ops),r=new x,w=0;f.hasNext();){if("insert"!==f.peekType())return;var y=f.peek(),aa=n.length(y)-f.peekLength();y="string"===typeof y.insert?y.insert.indexOf(h,aa)-aa:-1;if(0>y)r.push(f.next());else if(0<y)r.push(f.next(y));else{if(!1===e(r,f.next(1).attributes||{},w))return;w+=1;r=new x}}0<r.length()&&e(r,{},w)};x.prototype.transform=function(e,h){h=!!h;if("number"===typeof e)return this.transformPosition(e,
h);var f=n.iterator(this.ops);e=n.iterator(e.ops);for(var r=new x;f.hasNext()||e.hasNext();)if("insert"!==f.peekType()||!h&&"insert"===e.peekType())if("insert"===e.peekType())r.push(e.next());else{var w=Math.min(f.peekLength(),e.peekLength()),y=f.next(w),aa=e.next(w);y["delete"]||(aa["delete"]?r.push(aa):r.retain(w,n.attributes.transform(y.attributes,aa.attributes,h)))}else r.retain(n.length(f.next()));return r.chop()};x.prototype.transformPosition=function(e,h){h=!!h;for(var f=n.iterator(this.ops),
r=0;f.hasNext()&&r<=e;){var w=f.peekLength(),x=f.peekType();f.next();"delete"===x?e-=Math.min(w,e-r):("insert"===x&&(r<e||!h)&&(e+=w),r+=w)}return e};e.exports=x},function(e){function x(e,n){if("__proto__"===n){if(!w.call(e,n))return;if(h)return h(e,n).value}return e[n]}function ba(e,h){n&&"__proto__"===h.name?n(e,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):e[h.name]=h.newValue}function da(e){if(!e||"[object Object]"!==y.call(e))return!1;var f=w.call(e,"constructor"),h=e.constructor&&
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 aa(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===y.call(e)}var w=Object.prototype.hasOwnProperty,y=Object.prototype.toString,n=Object.defineProperty,h=Object.getOwnPropertyDescriptor;e.exports=function r(){var e,h,n=arguments[0],w=1,y=arguments.length,ca=!1;"boolean"===typeof n&&(ca=n,n=arguments[1]||
{},w=2);if(null==n||"object"!==typeof n&&"function"!==typeof n)n={};for(;w<y;++w){var ha=arguments[w];if(null!=ha)for(e in ha){var ea=x(n,e);var ia=x(ha,e);n!==ia&&(ca&&ia&&(da(ia)||(h=aa(ia)))?(h?(h=!1,ea=ea&&aa(ea)?ea:[]):ea=ea&&da(ea)?ea:{},ba(n,{name:e,newValue:r(ca,ea,ia)})):"undefined"!==typeof ia&&ba(n,{name:e,newValue:ia}))}}return n}},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(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 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)}function n(e){var f=
1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return f;"function"===typeof e.formats&&(f=(0,r.default)(f,e.formats()));return null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?f:n(e.parent,f)}Object.defineProperty(ba,"__esModule",{value:!0});ba.default=ba.BlockEmbed=ba.bubbleFormats=void 0;var 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}}(),f=function sa(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 sa(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ca(3);var r=x(e);e=ca(2);var z=x(e);e=ca(0);var fa=x(e);e=ca(16);var ha=x(e);e=ca(6);e=x(e);ca=ca(7);ca=x(ca);var ea=function(e){function n(){aa(this,n);return w(this,(n.__proto__||
Object.getPrototypeOf(n)).apply(this,arguments))}y(n,e);h(n,[{key:"attach",value:function(){f(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"attach",this).call(this);this.attributes=new fa.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new z.default).insert(this.value(),(0,r.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,f){e=fa.default.query(e,fa.default.Scope.BLOCK_ATTRIBUTE);null!=e&&this.attributes.attribute(e,f)}},
{key:"formatAt",value:function(e,f,h,n){this.format(h,n)}},{key:"insertAt",value:function(e,h,r){"string"===typeof h&&h.endsWith("\n")?(r=fa.default.create(ia.blotName),this.parent.insertBefore(r,0===e?this:this.next),r.insertAt(0,h.slice(0,-1))):f(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"insertAt",this).call(this,e,h,r)}}]);return n}(fa.default.Embed);ea.scope=fa.default.Scope.BLOCK_BLOT;var ia=function(e){function r(e){aa(this,r);e=w(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,
e));e.cache={};return e}y(r,e);h(r,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(fa.default.Leaf).reduce(function(e,f){return 0===f.length()?e:e.insert(f.value(),n(f))},new z.default).insert("\n",n(this)));return this.cache.delta}},{key:"deleteAt",value:function(e,h){f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"deleteAt",this).call(this,e,h);this.cache={}}},{key:"formatAt",value:function(e,h,n,w){0>=h||(fa.default.query(n,fa.default.Scope.BLOCK)?
e+h===this.length()&&this.format(n,w):f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,e,Math.min(h,this.length()-e-1),n,w),this.cache={})}},{key:"insertAt",value:function(e,h,n){if(null!=n)return f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"insertAt",this).call(this,e,h,n);if(0!==h.length){h=h.split("\n");n=h.shift();0<n.length&&(e<this.length()-1||null==this.children.tail?f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"insertAt",
this).call(this,Math.min(e,this.length()-1),n):this.children.tail.insertAt(this.children.tail.length(),n),this.cache={});var w=this;h.reduce(function(e,f){w=w.split(e,!0);w.insertAt(0,f);return f.length},e+n.length)}}},{key:"insertBefore",value:function(e,h){var n=this.children.head;f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"insertBefore",this).call(this,e,h);n instanceof ha.default&&n.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=
f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",value:function(e,h){f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"moveChildren",this).call(this,e,h);this.cache={}}},{key:"optimize",value:function(e){f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,e);this.cache={}}},{key:"path",value:function(e){return f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),
"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"removeChild",this).call(this,e);this.cache={}}},{key:"split",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(h&&(0===e||e>=this.length()-1)){h=this.clone();if(0===e)return this.parent.insertBefore(h,this),this;this.parent.insertBefore(h,this.next);return h}h=f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"split",this).call(this,
e,h);this.cache={};return h}}]);return r}(fa.default.Block);ia.blotName="block";ia.tagName="P";ia.defaultChild="break";ia.allowedChildren=[e.default,fa.default.Embed,ca.default];ba.bubbleFormats=n;ba.BlockEmbed=ea;ba.default=ia},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):e[f]=h;return e}function w(e,f){f=(0,ra.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,
history:!0}},f);if(f.theme&&f.theme!==va.DEFAULTS.theme){if(f.theme=va.import("themes/"+f.theme),null==f.theme)throw Error("Invalid theme "+f.theme+". Did you register it?");}else f.theme=Da.default;e=(0,ra.default)(!0,{},f.theme.DEFAULTS);[e,f].forEach(function(e){e.modules=e.modules||{};Object.keys(e.modules).forEach(function(f){!0===e.modules[f]&&(e.modules[f]={})})});var h=Object.keys(e.modules).concat(Object.keys(f.modules)).reduce(function(e,f){var h=va.import("modules/"+f);null==h?qa.error("Cannot load "+
f+" module. Are you sure you registered it?"):e[f]=h.DEFAULTS||{};return e},{});null!=f.modules&&f.modules.toolbar&&f.modules.toolbar.constructor!==Object&&(f.modules.toolbar={container:f.modules.toolbar});f=(0,ra.default)(!0,{},va.DEFAULTS,{modules:h},e,f);["bounds","container","scrollingContainer"].forEach(function(e){"string"===typeof f[e]&&(f[e]=document.querySelector(f[e]))});f.modules=Object.keys(f.modules).reduce(function(e,h){f.modules[h]&&(e[h]=f.modules[h]);return e},{});return f}function y(e,
f,n,r){if(this.options.strict&&!this.isEnabled()&&f===ea.default.sources.USER)return new fa.default;var w=null==n?null:this.getSelection(),x=this.editor.delta;e=e();null!=w&&(!0===n&&(n=w.index),null==r?w=h(w,e,f):0!==r&&(w=h(w,n,r,f)),this.setSelection(w,ea.default.sources.SILENT));if(0<e.length()){var z;n=[ea.default.events.TEXT_CHANGE,e,x,f];(z=this.emitter).emit.apply(z,[ea.default.events.EDITOR_CHANGE].concat(n));if(f!==ea.default.sources.SILENT){var y;(y=this.emitter).emit.apply(y,n)}}return e}
function n(e,h,n,r,w){var x={};"number"===typeof e.index&&"number"===typeof e.length?("number"!==typeof h?(w=r,r=n,n=h,h=e.length):h=e.length,e=e.index):"number"!==typeof h&&(w=r,r=n,n=h,h=0);"object"===("undefined"===typeof n?"undefined":f(n))?(x=n,w=r):"string"===typeof n&&(null!=r?x[n]=r:w=n);w=w||ea.default.sources.API;return[e,h,x,w]}function h(e,f,h,n){if(null==e)return null;var w=void 0,x=void 0;f instanceof fa.default?(w=[e.index,e.index+e.length].map(function(e){return f.transformPosition(e,
n!==ea.default.sources.USER)}),e=r(w,2),w=e[0],x=e[1]):(w=[e.index,e.index+e.length].map(function(e){return e<f||e===f&&n===ea.default.sources.USER?e:0<=h?e+h:Math.max(f,e+h)}),e=r(w,2),w=e[0],x=e[1]);return new la.Range(w,x-w)}Object.defineProperty(ba,"__esModule",{value:!0});ba.default=ba.overload=ba.expandConfig=void 0;var f="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?
"symbol":typeof e},r=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!f||h.length!==f);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 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}}();ca(50);e=ca(2);var fa=x(e);e=ca(14);var ha=x(e);e=ca(8);var ea=x(e);e=ca(9);e=x(e);var ia=ca(0),ma=x(ia),la=ca(15),na=x(la);ia=ca(3);var ra=x(ia);ia=ca(10);var sa=x(ia);ca=ca(34);var Da=x(ca),qa=(0,sa.default)("quill"),va=function(){function e(f){var h=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof
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 qa.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=
this.options.scrollingContainer||this.root;this.emitter=new ea.default;this.scroll=ma.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new ha.default(this.scroll);this.selection=new na.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(ea.default.events.EDITOR_CHANGE,
function(e){e===ea.default.events.TEXT_CHANGE&&h.root.classList.toggle("ql-blank",h.editor.isBlank())});this.emitter.on(ea.default.events.SCROLL_UPDATE,function(e,f){var n=h.selection.lastRange,r=n&&0===n.length?n.index:void 0;y.call(h,function(){return h.editor.update(null,f,r)},e)});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",this.options.placeholder);
this.options.readOnly&&this.disable()}z(e,null,[{key:"debug",value:function(e){!0===e&&(e="log");sa.default.level(e)}},{key:"find",value:function(e){return e.__quill||ma.default.find(e)}},{key:"import",value:function(e){null==this.imports[e]&&qa.error("Cannot import "+e+". Are you sure it was registered?");return this.imports[e]}},{key:"register",value:function(e,f){var h=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof e?(n=e.attrName||e.blotName,"string"===typeof n?
this.register("formats/"+n,e,f):Object.keys(e).forEach(function(n){h.register(n,e[n],f)})):(null==this.imports[e]||n||qa.warn("Overwriting "+e+" with",f),this.imports[e]=f,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==f.blotName?ma.default.register(f):e.startsWith("modules")&&"function"===typeof f.register&&f.register())}}]);z(e,[{key:"addContainer",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var h=e;e=document.createElement("div");
e.classList.add(h)}this.container.insertBefore(e,f);return e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,f,h){var w=this;h=n(e,f,h);h=r(h,4);e=h[0];f=h[1];h=h[3];return y.call(this,function(){return w.editor.deleteText(e,f)},h,e,-1*f)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(e);this.container.classList.toggle("ql-disabled",
!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=e;this.scrollIntoView()}},{key:"format",value:function(e,f){var h=this;return y.call(this,function(){var n=h.getSelection(!0),r=new fa.default;if(null==n)return r;if(ma.default.query(e,ma.default.Scope.BLOCK))r=h.editor.formatLine(n.index,n.length,aa({},e,f));else{if(0===n.length)return h.selection.format(e,f),r;r=h.editor.formatText(n.index,n.length,aa({},e,f))}h.setSelection(n,
ea.default.sources.SILENT);return r},2<arguments.length&&void 0!==arguments[2]?arguments[2]:ea.default.sources.API)}},{key:"formatLine",value:function(e,f,h,w,x){var z=this,aa=void 0;h=n(e,f,h,w,x);h=r(h,4);e=h[0];f=h[1];aa=h[2];x=h[3];return y.call(this,function(){return z.editor.formatLine(e,f,aa)},x,e,0)}},{key:"formatText",value:function(e,f,h,w,x){var z=this,aa=void 0;h=n(e,f,h,w,x);h=r(h,4);e=h[0];f=h[1];aa=h[2];x=h[3];return y.call(this,function(){return z.editor.formatText(e,f,aa)},x,e,0)}},
{key:"getBounds",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;f="number"===typeof e?this.selection.getBounds(e,f):this.selection.getBounds(e.index,e.length);var h=this.container.getBoundingClientRect();return{bottom:f.bottom-h.top,height:f.height,left:f.left-h.left,right:f.right-h.left,top:f.top-h.top,width:f.width}}},{key:"getContents",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
this.getLength()-e;e=n(e,f);f=r(e,2);e=f[0];f=f[1];return this.editor.getContents(e,f)}},{key:"getFormat",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,f):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",
value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,f)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){0<arguments.length&&void 0!==arguments[0]&&
arguments[0]&&this.focus();this.update();return this.selection.getRange()[0]}},{key:"getText",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-e;e=n(e,f);f=r(e,2);e=f[0];f=f[1];return this.editor.getText(e,f)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(f,h,n){var r=this;return y.call(this,function(){return r.editor.insertEmbed(f,h,n)},
3<arguments.length&&void 0!==arguments[3]?arguments[3]:e.sources.API,f)}},{key:"insertText",value:function(e,f,h,w,x){var z=this,aa=void 0;h=n(e,0,h,w,x);h=r(h,4);e=h[0];aa=h[2];x=h[3];return y.call(this,function(){return z.editor.insertText(e,f,aa)},x,e,f.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,
arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,f,h){this.clipboard.dangerouslyPasteHTML(e,f,h)}},{key:"removeFormat",value:function(e,f,h){var w=this;h=n(e,f,h);h=r(h,4);e=h[0];f=h[1];h=h[3];return y.call(this,function(){return w.editor.removeFormat(e,f)},h,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var f=this;return y.call(this,
function(){e=new fa.default(e);var h=f.getLength();h=f.editor.deleteText(0,h);var n=f.editor.applyDelta(e),r=n.ops[n.ops.length-1];null!=r&&"string"===typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(f.editor.deleteText(f.getLength()-1,1),n.delete(1));return h.compose(n)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:ea.default.sources.API)}},{key:"setSelection",value:function(f,h,w){null==f?this.selection.setRange(null,h||e.sources.API):(f=n(f,h,w),w=r(f,4),f=w[0],h=w[1],w=w[3],this.selection.setRange(new la.Range(f,
h),w),w!==ea.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ea.default.sources.API,h=(new fa.default).insert(e);return this.setContents(h,f)}},{key:"update",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:ea.default.sources.USER,f=this.scroll.update(e);this.selection.update(e);return f}},{key:"updateContents",value:function(e){var f=this,h=
1<arguments.length&&void 0!==arguments[1]?arguments[1]:ea.default.sources.API;return y.call(this,function(){e=new fa.default(e);return f.editor.applyDelta(e,h)},h,!0)}}]);return e}();va.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};va.events=ea.default.events;va.sources=ea.default.sources;va.version="1.3.7";va.imports={delta:fa.default,parchment:ma.default,"core/module":e.default,"core/theme":Da.default};ba.expandConfig=
w;ba.overload=n;ba.default=va},function(e,ba,ca){function x(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(ba,"__esModule",{value:!0});var aa=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,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),w=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};e=(e=ca(7))&&e.__esModule?e:{default:e};var y=(ca=ca(0))&&ca.__esModule?ca:{default:ca};ca=
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}x(f,e);aa(f,[{key:"formatAt",value:function(e,h,x,aa){0>f.compare(this.statics.blotName,x)&&y.default.query(x,y.default.Scope.BLOT)?(e=this.isolate(e,h),aa&&e.wrap(x,aa)):w(f.prototype.__proto__||
Object.getPrototypeOf(f.prototype),"formatAt",this).call(this,e,h,x,aa)}},{key:"optimize",value:function(e){w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,e);this.parent instanceof f&&0<f.compare(this.statics.blotName,this.parent.statics.blotName)&&(e=this.parent.isolate(this.offset(),this.length()),this.moveChildren(e),e.wrap(this))}}],[{key:"compare",value:function(e,h){var r=f.order.indexOf(e),w=f.order.indexOf(h);return 0<=r||0<=w?r-w:e===h?0:e<h?-1:1}}]);
return f}(y.default.Inline);ca.allowedChildren=[ca,y.default.Embed,e.default];ca.order="cursor inline underline strike italic bold script link code".split(" ");ba.default=ca},function(e,ba,ca){function x(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(ba,"__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}x(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ca(0)).default.Text);ba.default=e},function(e,ba,ca){function x(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(ba,"__esModule",{value:!0});var aa=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,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),w=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};e=(e=ca(54))&&e.__esModule?e:{default:e};ca=(ca=ca(10))&&ca.__esModule?ca:{default:ca};var y=(0,ca.default)("quill:events");["selectionchange","mousedown",
"mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,h=Array(e),w=0;w<e;w++)h[w]=arguments[w];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){if(e.__quill&&e.__quill.emitter){var f;(f=e.__quill.emitter).handleDOM.apply(f,h)}})})});ca=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)).call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
e=!e||"object"!==typeof e&&"function"!==typeof e?this:e;e.listeners={};e.on("error",y.error);return e}x(f,e);aa(f,[{key:"emit",value:function(){y.log.apply(y,arguments);w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var f=arguments.length,h=Array(1<f?f-1:0),r=1;r<f;r++)h[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach(function(f){var r=f.node;f=f.handler;(e.target===r||r.contains(e.target))&&f.apply(void 0,
[e].concat(h))})}},{key:"listenDOM",value:function(e,f,h){this.listeners[e]||(this.listeners[e]=[]);this.listeners[e].push({node:f,handler:h})}}]);return f}(e.default);ca.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"};ca.sources={API:"api",SILENT:"silent",USER:"user"};ba.default=ca},function(e,ba){Object.defineProperty(ba,"__esModule",{value:!0});
e=function aa(e){var w=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof aa))throw new TypeError("Cannot call a class as a function");this.quill=e;this.options=w};e.DEFAULTS={};ba.default=e},function(e,ba){function x(e){if(aa.indexOf(e)<=aa.indexOf(w)){for(var n,h=arguments.length,f=Array(1<h?h-1:0),r=1;r<h;r++)f[r-1]=arguments[r];(n=console)[e].apply(n,f)}}function da(e){return aa.reduce(function(n,h){n[h]=x.bind(console,h,e);return n},{})}Object.defineProperty(ba,"__esModule",
{value:!0});var aa=["error","warn","log","info"],w="warn";x.level=da.level=function(e){w=e};ba.default=da},function(e,ba,ca){function x(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 aa(e,r,z){var f;if(null===e||void 0===e||null===r||void 0===r||e.prototype!==r.prototype)return!1;if(n(e)){if(!n(r))return!1;e=w.call(e);r=w.call(r);return h(e,r,z)}if(x(e)){if(!x(r)||e.length!==r.length)return!1;
for(f=0;f<e.length;f++)if(e[f]!==r[f])return!1;return!0}try{var aa=y(e);var da=y(r)}catch(pa){return!1}if(aa.length!=da.length)return!1;aa.sort();da.sort();for(f=aa.length-1;0<=f;f--)if(aa[f]!=da[f])return!1;for(f=aa.length-1;0<=f;f--)if(da=aa[f],!h(e[da],r[da],z))return!1;return typeof e===typeof r}var w=Array.prototype.slice,y=ca(52),n=ca(53),h=e.exports=function(e,h,n){n||(n={});return e===h?!0:e instanceof Date&&h instanceof Date?e.getTime()===h.getTime():!e||!h||"object"!=typeof e&&"object"!=
typeof h?n.strict?e===h:e==h:aa(e,h,n)}},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});var x=ca(1);e=function(){function e(e,y,n){void 0===n&&(n={});this.attrName=e;this.keyName=y;e=x.Scope.TYPE&x.Scope.ATTRIBUTE;this.scope=null!=n.scope?n.scope&x.Scope.LEVEL|e:x.Scope.ATTRIBUTE;null!=n.whitelist&&(this.whitelist=n.whitelist)}e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})};e.prototype.add=function(e,x){if(!this.canAdd(e,x))return!1;e.setAttribute(this.keyName,
x);return!0};e.prototype.canAdd=function(e,y){return null==x.query(e,x.Scope.BLOT&(this.scope|x.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof y?-1<this.whitelist.indexOf(y.replace(/["']/g,"")):-1<this.whitelist.indexOf(y)};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}();ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(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 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(ba,"__esModule",{value:!0});ba.default=ba.Code=void 0;var n=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!f||h.length!==f);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 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}}(),f=function na(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 na(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ca(2);
var r=x(e);e=ca(0);var z=x(e);e=ca(4);e=x(e);var fa=ca(6);fa=x(fa);ca=ca(7);var ea=x(ca);ca=function(e){function f(){aa(this,f);return w(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}y(f,e);return f}(fa.default);ca.blotName="code";ca.tagName="CODE";e=function(e){function x(){aa(this,x);return w(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}y(x,e);h(x,[{key:"delta",value:function(){var e=this,f=this.domNode.textContent;f.endsWith("\n")&&(f=f.slice(0,-1));
return f.split("\n").reduce(function(f,h){return f.insert(h).insert("\n",e.formats())},new r.default)}},{key:"format",value:function(e,h){if(e!==this.statics.blotName||!h){var r=this.descendant(ea.default,this.length()-1);r=n(r,1)[0];null!=r&&r.deleteAt(r.length()-1,1);f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,e,h)}}},{key:"formatAt",value:function(e,f,h,n){if(0!==f&&null!=z.default.query(h,z.default.Scope.BLOCK)&&(h!==this.statics.blotName||n!==this.statics.formats(this.domNode))){var r=
this.newlineIndex(e);if(!(0>r||r>=e+f)){var w=this.newlineIndex(e,!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,e-w+f-r,h,n)}}}},{key:"insertAt",value:function(e,f,h){null==h&&(e=this.descendant(ea.default,e),e=n(e,2),e[0].insertAt(e[1],f))}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,
e).lastIndexOf("\n");var f=this.domNode.textContent.slice(e).indexOf("\n");return-1<f?e+f:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(z.default.create("text","\n"));f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,e);var h=this.next;null!=h&&h.prev===this&&h.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===h.statics.formats(h.domNode)&&(h.optimize(e),h.moveChildren(this),h.remove())}},
{key:"replace",value:function(e){f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,e);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(e){var f=z.default.find(e);null==f?e.parentNode.removeChild(e):f instanceof z.default.Embed?f.remove():f.unwrap()})}}],[{key:"create",value:function(e){e=f(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,e);e.setAttribute("spellcheck",!1);return e}},{key:"formats",value:function(){return!0}}]);return x}(e.default);
e.blotName="code-block";e.tagName="PRE";e.TAB=" ";ba.Code=ca;ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):e[f]=h;return e}function w(e,f){return Object.keys(f).reduce(function(h,n){if(null==e[n])return h;f[n]===e[n]?h[n]=f[n]:Array.isArray(f[n])?0>f[n].indexOf(e[n])&&(h[n]=f[n].concat([e[n]])):h[n]=[f[n],e[n]];return h},{})}function y(e){return e.reduce(function(e,
f){if(1===f.insert){var h=(0,na.default)(f.attributes);delete h.image;return e.insert({image:f.attributes.image},h)}null==f.attributes||!0!==f.attributes.list&&!0!==f.attributes.bullet||(f=(0,na.default)(f),f.attributes.list?f.attributes.list="ordered":(f.attributes.list="bullet",delete f.attributes.bullet));return"string"===typeof f.insert?(h=f.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.insert(h,f.attributes)):e.push(f)},new r.default)}Object.defineProperty(ba,"__esModule",{value:!0});var n=
"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?"symbol":typeof e},h=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!f||h.length!==f);n=!0);}catch(Fa){r=!0,w=Fa}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");}}(),f=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=ca(2);var r=x(e);e=ca(20);var z=x(e);e=ca(0);var fa=x(e);e=ca(13);var ea=x(e);e=ca(24);var ha=x(e),ia=ca(4),ma=x(ia);e=ca(16);var la=x(e);e=ca(21);var na=x(e);e=ca(11);
var ra=x(e);ca=ca(3);var sa=x(ca),Da=/^[ -~]*$/;ca=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()}f(e,[{key:"applyDelta",value:function(e){var f=this,r=!1;this.scroll.update();var w=this.scroll.length();this.scroll.batchStart();e=y(e);e.reduce(function(e,x){var y=x.retain||x.delete||x.insert.length||1,aa=x.attributes||{};if(null!=x.insert){if("string"===typeof x.insert){x=x.insert;x.endsWith("\n")&&
r&&(r=!1,x=x.slice(0,-1));e>=w&&!x.endsWith("\n")&&(r=!0);f.scroll.insertAt(e,x);x=f.scroll.line(e);x=h(x,2);var da=x[0],ba=x[1];x=(0,sa.default)({},(0,ia.bubbleFormats)(da));da instanceof ma.default&&(da=da.descendant(fa.default.Leaf,ba),da=h(da,1)[0],x=(0,sa.default)(x,(0,ia.bubbleFormats)(da)));aa=z.default.attributes.diff(x,aa)||{}}else if("object"===n(x.insert)){da=Object.keys(x.insert)[0];if(null==da)return e;f.scroll.insertAt(e,da,x.insert[da])}w+=y}Object.keys(aa).forEach(function(h){f.scroll.formatAt(e,
y,h,aa[h])});return e+y},0);e.reduce(function(e,h){return"number"===typeof h.delete?(f.scroll.deleteAt(e,h.delete),e):e+(h.retain||h.insert.length||1)},0);this.scroll.batchEnd();return this.update(e)}},{key:"deleteText",value:function(e,f){this.scroll.deleteAt(e,f);return this.update((new r.default).retain(e).delete(f))}},{key:"formatLine",value:function(e,f){var h=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(n).forEach(function(r){if(null==h.scroll.whitelist||
h.scroll.whitelist[r]){var w=h.scroll.lines(e,Math.max(f,1)),x=f;w.forEach(function(f){var w=f.length();if(f instanceof ea.default){var z=e-f.offset(h.scroll),y=f.newlineIndex(z+x)-z+1;f.formatAt(z,y,r,n[r])}else f.format(r,n[r]);x-=w})}});this.scroll.optimize();return this.update((new r.default).retain(e).retain(f,(0,na.default)(n)))}},{key:"formatText",value:function(e,f){var h=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Object.keys(n).forEach(function(r){h.scroll.formatAt(e,
f,r,n[r])});return this.update((new r.default).retain(e).retain(f,(0,na.default)(n)))}},{key:"getContents",value:function(e,f){return this.delta.slice(e,e+f)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(e,f){return e.concat(f.delta())},new r.default)}},{key:"getFormat",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===f?this.scroll.path(e).forEach(function(e){e=h(e,1)[0];e instanceof ma.default?n.push(e):e instanceof fa.default.Leaf&&
r.push(e)}):(n=this.scroll.lines(e,f),r=this.scroll.descendants(fa.default.Leaf,e,f));f=[n,r].map(function(e){if(0===e.length)return{};for(var f=(0,ia.bubbleFormats)(e.shift());0<Object.keys(f).length;){var h=e.shift();if(null==h)break;f=w((0,ia.bubbleFormats)(h),f)}return f});return sa.default.apply(sa.default,f)}},{key:"getText",value:function(e,f){return this.getContents(e,f).filter(function(e){return"string"===typeof e.insert}).map(function(e){return e.insert}).join("")}},{key:"insertEmbed",value:function(e,
f,h){this.scroll.insertAt(e,f,h);return this.update((new r.default).retain(e).insert(aa({},f,h)))}},{key:"insertText",value:function(e,f){var h=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};f=f.replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.scroll.insertAt(e,f);Object.keys(n).forEach(function(r){h.scroll.formatAt(e,f.length,r,n[r])});return this.update((new r.default).retain(e).insert(f,(0,na.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;
if(1<this.scroll.children.length)return!1;var e=this.scroll.children.head;return e.statics.blotName!==ma.default.blotName||1<e.children.length?!1:e.children.head instanceof la.default}},{key:"removeFormat",value:function(e,f){var n=this.getText(e,f),w=this.scroll.line(e+f),x=h(w,2);w=x[0];x=x[1];var z=0,y=new r.default;null!=w&&(z=w instanceof ea.default?w.newlineIndex(x)-x+1:w.length()-x,y=w.delta().slice(x,x+z-1).insert("\n"));f=this.getContents(e,f+z).diff((new r.default).insert(n).concat(y));
e=(new r.default).retain(e).concat(f);return this.applyDelta(e)}},{key:"update",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===f.length&&"characterData"===f[0].type&&f[0].target.data.match(Da)&&fa.default.find(f[0].target)){var w=fa.default.find(f[0].target),x=(0,ia.bubbleFormats)(w),z=w.offset(this.scroll);f=f[0].oldValue.replace(ha.default.CONTENTS,"");f=(new r.default).insert(f);
w=(new r.default).insert(w.value());e=(new r.default).retain(z).concat(f.diff(w,h)).reduce(function(e,f){return f.insert?e.insert(f.insert,x):e.push(f)},new r.default);this.delta=n.compose(e)}else this.delta=this.getDelta(),e&&(0,ra.default)(n.compose(e),this.delta)||(e=n.diff(this.delta,h));return e}}]);return e}();ba.default=ca},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e){if(Array.isArray(e)){for(var f=0,h=Array(e.length);f<e.length;f++)h[f]=e[f];return h}return Array.from(e)}
function w(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function y(e,f){try{f.parentNode}catch(la){return!1}f instanceof Text&&(f=f.parentNode);return e.contains(f)}Object.defineProperty(ba,"__esModule",{value:!0});ba.default=ba.Range=void 0;var n=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!f||h.length!==
f);n=!0);}catch(va){r=!0,w=va}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 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=ca(0);var f=x(e);e=ca(21);var r=x(e);e=ca(11);var z=x(e);e=ca(8);var fa=
x(e);ca=ca(10);ca=x(ca);var ea=(0,ca.default)("quill:selection"),ha=function la(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;w(this,la);this.index=e;this.length=f};ca=function(){function e(h,n){var r=this;w(this,e);this.emitter=n;this.scroll=h;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=f.default.create("cursor",this);this.lastRange=this.savedRange=new ha(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",
document,function(){r.mouseDown||setTimeout(r.update.bind(r,fa.default.sources.USER),1)});this.emitter.on(fa.default.events.EDITOR_CHANGE,function(e,f){e===fa.default.events.TEXT_CHANGE&&0<f.length()&&r.update(fa.default.sources.SILENT)});this.emitter.on(fa.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var e=r.getNativeRange();if(null!=e&&e.start.node!==r.cursor.textNode)r.emitter.once(fa.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,
e.end.offset)}catch(Da){}})}});this.emitter.on(fa.default.events.SCROLL_OPTIMIZE,function(e,f){f.range&&(e=f.range,r.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset))});this.update(fa.default.sources.SILENT)}h(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",function(){e.composing=!0});this.root.addEventListener("compositionend",function(){e.composing=!1;if(e.cursor.parent){var f=e.cursor.restore();f&&setTimeout(function(){e.setNativeRange(f.startNode,
f.startOffset,f.endNode,f.endOffset)},1)}})}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,function(){e.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){e.mouseDown=!1;e.update(fa.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,h){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=
this.getNativeRange();if(null!=n&&n.native.collapsed&&!f.default.query(e,f.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=f.default.find(n.start.node,!1);if(null==r)return;r instanceof f.default.Leaf?(n=r.split(n.start.offset),r.parent.insertBefore(this.cursor,n)):r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,h);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",
value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,h=this.scroll.length();e=Math.min(e,h-1);f=Math.min(e+f,h-1)-e;h=this.scroll.leaf(e);var r=n(h,2);h=r[0];var w=r[1];if(null==h)return null;r=h.position(w,!0);r=n(r,2);var x=r[0];w=r[1];r=document.createRange();if(0<f){r.setStart(x,w);f=this.scroll.leaf(e+f);f=n(f,2);h=f[0];w=f[1];if(null==h)return null;f=h.position(w,!0);f=n(f,2);x=f[0];w=f[1];r.setEnd(x,w);return r.getBoundingClientRect()}f="left";x instanceof Text?
(w<x.data.length?(r.setStart(x,w),r.setEnd(x,w+1)):(r.setStart(x,w-1),r.setEnd(x,w),f="right"),h=r.getBoundingClientRect()):(h=h.domNode.getBoundingClientRect(),0<w&&(f="right"));return{bottom:h.top+h.height,height:h.height,left:h[f],right:h[f],top:h.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||0>=e.rangeCount)return null;e=e.getRangeAt(0);if(null==e)return null;e=this.normalizeNative(e);ea.info("getNativeRange",e);return e}},{key:"getRange",value:function(){var e=
this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var h=this,r=[[e.start.node,e.start.offset]];e.native.collapsed||r.push([e.end.node,e.end.offset]);r=r.map(function(e){var r=n(e,2);e=r[0];r=r[1];var w=f.default.find(e,!0),x=w.offset(h.scroll);return 0===r?x:w instanceof f.default.Container?x+w.length():x+w.index(e,r)});e=Math.min(Math.max.apply(Math,
aa(r)),this.scroll.length()-1);r=Math.min.apply(Math,[e].concat(aa(r)));return new ha(r,e-r)}},{key:"normalizeNative",value:function(e){if(!y(this.root,e.startContainer)||!e.collapsed&&!y(this.root,e.endContainer))return null;e={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};[e.start,e.end].forEach(function(e){for(var f=e.node,h=e.offset;!(f instanceof Text)&&0<f.childNodes.length;)if(f.childNodes.length>h)f=f.childNodes[h],h=0;else if(f.childNodes.length===
h)f=f.lastChild,h=f instanceof Text?f.data.length:f.childNodes.length+1;else break;e.node=f;e.offset=h});return e}},{key:"rangeToNative",value:function(e){var f=this;e=e.collapsed?[e.index]:[e.index,e.index+e.length];var h=[],r=this.scroll.length();e.forEach(function(e,w){e=Math.min(r-1,e);e=f.scroll.leaf(e);var x=n(e,2);e=x[1];w=x[0].position(e,0!==w);e=n(w,2);w=e[0];e=e[1];h.push(w,e)});2>h.length&&(h=h.concat(h));return h}},{key:"scrollIntoView",value:function(e){var f=this.lastRange;if(null!=
f){var h=this.getBounds(f.index,f.length);if(null!=h){var r=this.scroll.length()-1,w=this.scroll.line(Math.min(f.index,r)),x=w=n(w,1)[0];0<f.length&&(f=this.scroll.line(Math.min(f.index+f.length,r)),x=n(f,1)[0]);null!=w&&null!=x&&(f=e.getBoundingClientRect(),h.top<f.top?e.scrollTop-=f.top-h.top:h.bottom>f.bottom&&(e.scrollTop+=h.bottom-f.bottom))}}}},{key:"setNativeRange",value:function(e,f){var h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e,n=3<arguments.length&&void 0!==arguments[3]?
arguments[3]:f,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;ea.info("setNativeRange",e,f,h,n);if(null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=h.parentNode){var w=document.getSelection();if(null!=w)if(null!=e){this.hasFocus()||this.root.focus();var x=(this.getNativeRange()||{}).native;if(null==x||r||e!==x.startContainer||f!==x.startOffset||h!==x.endContainer||n!==x.endOffset)"BR"==e.tagName&&(f=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==h.tagName&&
(n=[].indexOf.call(h.parentNode.childNodes,h),h=h.parentNode),r=document.createRange(),r.setStart(e,f),r.setEnd(h,n),w.removeAllRanges(),w.addRange(r)}else w.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:fa.default.sources.API;"string"===typeof f&&(h=f,f=!1);ea.info("setRange",e);if(null!=e){var n=this.rangeToNative(e);this.setNativeRange.apply(this,
aa(n).concat([f]))}else this.setNativeRange(null);this.update(h)}},{key:"update",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:fa.default.sources.USER,f=this.lastRange,h=this.getRange();h=n(h,2);var w=h[1];this.lastRange=h[0];null!=this.lastRange&&(this.savedRange=this.lastRange);if(!(0,z.default)(f,this.lastRange)){var x;!this.composing&&null!=w&&w.native.collapsed&&w.start.node!==this.cursor.textNode&&this.cursor.restore();f=[fa.default.events.SELECTION_CHANGE,(0,
r.default)(this.lastRange),(0,r.default)(f),e];(x=this.emitter).emit.apply(x,[fa.default.events.EDITOR_CHANGE].concat(f));if(e!==fa.default.sources.SILENT){var y;(y=this.emitter).emit.apply(y,f)}}}}]);return e}();ba.Range=ha;ba.default=ca},function(e,ba,ca){function x(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(ba,"__esModule",{value:!0});var aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),w=function r(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),
null!==e)return r(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};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}x(h,e);aa(h,[{key:"insertInto",value:function(e,n){0===e.children.length?
w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertInto",this).call(this,e,n):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}}(ca(0)).default.Embed);e.blotName="break";e.tagName="BR";ba.default=e},function(e,ba,ca){function x(e){var h=y.find(e);if(null==h)try{h=y.create(e)}catch(f){h=y.create(y.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(e){h.domNode.appendChild(e)}),
e.parentNode&&e.parentNode.replaceChild(h.domNode,e),h.attach()}return h}var aa=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var h in f)f.hasOwnProperty(h)&&(e[h]=f[h])};return function(h,f){function n(){this.constructor=h}e(h,f);h.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}}();Object.defineProperty(ba,"__esModule",{value:!0});var w=ca(44);e=ca(30);var y=ca(1);ca=function(e){function h(f){f=
e.call(this,f)||this;f.build();return f}aa(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=x(f);e.insertBefore(h,e.children.head||void 0)}catch(fa){if(!(fa instanceof y.ParchmentError))throw fa;}})};h.prototype.deleteAt=function(e,
h){if(0===e&&h===this.length())return this.remove();this.children.forEachAt(e,h,function(e,f,h){e.deleteAt(f,h)})};h.prototype.descendant=function(e,n){var f=this.children.find(n);n=f[0];f=f[1];return null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e?[n,f]:n instanceof h?n.descendant(e,f):[null,-1]};h.prototype.descendants=function(e,n,w){void 0===n&&(n=0);void 0===w&&(w=Number.MAX_VALUE);var f=[],r=w;this.children.forEachAt(n,w,function(n,w,x){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof
e)&&f.push(n);n instanceof h&&(f=f.concat(n.descendants(e,w,r)));r-=x});return f};h.prototype.detach=function(){this.children.forEach(function(e){e.detach()});e.prototype.detach.call(this)};h.prototype.formatAt=function(e,h,n,w){this.children.forEachAt(e,h,function(e,f,h){e.formatAt(f,h,n,w)})};h.prototype.insertAt=function(e,h,n){var f=this.children.find(e);e=f[0];f=f[1];e?e.insertAt(f,h,n):(h=null==n?y.create("text",h):y.create(h,n),this.appendChild(h))};h.prototype.insertBefore=function(e,h){if(null!=
this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(f){return e instanceof f}))throw new y.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,h)};h.prototype.length=function(){return this.children.reduce(function(e,h){return e+h.length()},0)};h.prototype.moveChildren=function(e,h){this.children.forEach(function(f){e.insertBefore(f,h)})};h.prototype.optimize=function(f){e.prototype.optimize.call(this,f);if(0===this.children.length)if(null!=
this.statics.defaultChild){var h=y.create(this.statics.defaultChild);this.appendChild(h);h.optimize(f)}else this.remove()};h.prototype.path=function(e,n){void 0===n&&(n=!1);var f=this.children.find(e,n),r=f[0];f=f[1];e=[[this,e]];if(r instanceof h)return e.concat(r.path(f,n));null!=r&&e.push([r,f]);return e};h.prototype.removeChild=function(e){this.children.remove(e)};h.prototype.replace=function(f){f instanceof h&&f.moveChildren(this);e.prototype.replace.call(this,f)};h.prototype.split=function(e,
h){void 0===h&&(h=!1);if(!h){if(0===e)return this;if(e===this.length())return this.next}var f=this.clone();this.parent.insertBefore(f,this.next);this.children.forEachAt(e,this.length(),function(e,n){e=e.split(n,h);f.appendChild(e)});return f};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))});
n.forEach(function(e){null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY||(e=y.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(e,f){return e===f?0:e.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var h=null;null!=e.nextSibling&&(h=y.find(e.nextSibling));e=x(e);if(e.next!=h||null==
e.next)null!=e.parent&&e.parent.removeChild(f),f.insertBefore(e,h||void 0)})};return h}(e.default);ba.default=ca},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var h in f)f.hasOwnProperty(h)&&(e[h]=f[h])};return function(h,f){function n(){this.constructor=h}e(h,f);h.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}}();Object.defineProperty(ba,"__esModule",{value:!0});
var aa=ca(12),w=ca(31);e=ca(17);var y=ca(1);ca=function(e){function h(f){f=e.call(this,f)||this;f.attributes=new w.default(f.domNode);return f}x(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,h){var f=y.query(e);f instanceof aa.default?this.attributes.attribute(f,h):h&&(null==f||e===this.statics.blotName&&this.formats()[e]===h||this.replaceWith(e,h))};h.prototype.formats=function(){var e=
this.attributes.values(),h=this.statics.formats(this.domNode);null!=h&&(e[this.statics.blotName]=h);return e};h.prototype.replaceWith=function(f,h){f=e.prototype.replaceWith.call(this,f,h);this.attributes.copy(f);return f};h.prototype.update=function(f,h){var n=this;e.prototype.update.call(this,f,h);f.some(function(e){return e.target===n.domNode&&"attributes"===e.type})&&this.attributes.build()};h.prototype.wrap=function(f,n){f=e.prototype.wrap.call(this,f,n);f instanceof h&&f.statics.scope===this.statics.scope&&
this.attributes.move(f);return f};return h}(e.default);ba.default=ca},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var h in n)n.hasOwnProperty(h)&&(e[h]=n[h])};return function(w,n){function h(){this.constructor=w}e(w,n);w.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}();Object.defineProperty(ba,"__esModule",{value:!0});e=ca(30);var aa=ca(1);ca=function(e){function w(){return null!==
e&&e.apply(this,arguments)||this}x(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=aa.Scope.INLINE_BLOT;
return w}(e.default);ba.default=ca},function(e,ba,ca){function x(e){this.ops=e;this.offset=this.index=0}var aa=ca(11),w=ca(3),y={attributes:{compose:function(e,h,f){"object"!==typeof e&&(e={});"object"!==typeof h&&(h={});var n=w(!0,{},h);f||(n=Object.keys(n).reduce(function(e,f){null!=n[f]&&(e[f]=n[f]);return e},{}));for(var x in e)void 0!==e[x]&&void 0===h[x]&&(n[x]=e[x]);return 0<Object.keys(n).length?n:void 0},diff:function(e,h){"object"!==typeof e&&(e={});"object"!==typeof h&&(h={});var f=Object.keys(e).concat(Object.keys(h)).reduce(function(f,
n){aa(e[n],h[n])||(f[n]=void 0===h[n]?null:h[n]);return f},{});return 0<Object.keys(f).length?f:void 0},transform:function(e,h,f){if("object"!==typeof e)return h;if("object"===typeof h){if(!f)return h;f=Object.keys(h).reduce(function(f,n){void 0===e[n]&&(f[n]=h[n]);return f},{});return 0<Object.keys(f).length?f:void 0}}},iterator:function(e){return new x(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:
1}};x.prototype.hasNext=function(){return Infinity>this.peekLength()};x.prototype.next=function(e){e||(e=Infinity);var h=this.ops[this.index];if(h){var f=this.offset,n=y.length(h);e>=n-f?(e=n-f,this.index+=1,this.offset=0):this.offset+=e;if("number"===typeof h["delete"])return{"delete":e};n={};h.attributes&&(n.attributes=h.attributes);"number"===typeof h.retain?n.retain=e:n.insert="string"===typeof h.insert?h.insert.substr(f,e):h.insert;return n}return{retain:Infinity}};x.prototype.peek=function(){return this.ops[this.index]};
x.prototype.peekLength=function(){return this.ops[this.index]?y.length(this.ops[this.index])-this.offset:Infinity};x.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"};x.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,h=this.index,f=this.next(),r=this.ops.slice(this.index);this.offset=
e;this.index=h;return[f].concat(r)}return[]};e.exports=y},function(x){var ba=function(){function x(e,h){return null!=h&&e instanceof h}function da(f,r,z,aa,ba){function fa(f,z){if(null===f)return null;if(0===z||"object"!=typeof f)return f;if(x(f,y))var ja=new y;else if(x(f,n))ja=new n;else if(x(f,h))ja=new h(function(e,h){f.then(function(f){e(fa(f,z-1))},function(e){h(fa(e,z-1))})});else if(da.__isArray(f))ja=[];else if(da.__isRegExp(f))ja=new RegExp(f.source,w(f)),f.lastIndex&&(ja.lastIndex=f.lastIndex);
else if(da.__isDate(f))ja=new Date(f.getTime());else{if(ha&&e.isBuffer(f))return ja=e.allocUnsafe?e.allocUnsafe(f.length):new e(f.length),f.copy(ja),ja;if(x(f,Error))ja=Object.create(f);else if("undefined"==typeof aa){var ia=Object.getPrototypeOf(f);ja=Object.create(ia)}else ja=Object.create(aa),ia=aa}if(r){var qa=ca.indexOf(f);if(-1!=qa)return ea[qa];ca.push(f);ea.push(ja)}x(f,y)&&f.forEach(function(e,f){f=fa(f,z-1);e=fa(e,z-1);ja.set(f,e)});x(f,n)&&f.forEach(function(e){e=fa(e,z-1);ja.add(e)});
for(var ka in f){var la;ia&&(la=Object.getOwnPropertyDescriptor(ia,ka));la&&null==la.set||(ja[ka]=fa(f[ka],z-1))}if(Object.getOwnPropertySymbols)for(qa=Object.getOwnPropertySymbols(f),ka=0;ka<qa.length;ka++)if(la=qa[ka],ia=Object.getOwnPropertyDescriptor(f,la),!ia||ia.enumerable||ba)ja[la]=fa(f[la],z-1),ia.enumerable||Object.defineProperty(ja,la,{enumerable:!1});if(ba)for(qa=Object.getOwnPropertyNames(f),ka=0;ka<qa.length;ka++)la=qa[ka],ia=Object.getOwnPropertyDescriptor(f,la),ia&&ia.enumerable||
(ja[la]=fa(f[la],z-1),Object.defineProperty(ja,la,{enumerable:!1}));return ja}"object"===typeof r&&(z=r.depth,aa=r.prototype,ba=r.includeNonEnumerable,r=r.circular);var ca=[],ea=[],ha="undefined"!=typeof e;"undefined"==typeof r&&(r=!0);"undefined"==typeof z&&(z=Infinity);return fa(f,z)}function aa(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 y=Map}catch(f){y=function(){}}try{var n=Set}catch(f){n=
function(){}}try{var h=Promise}catch(f){h=function(){}}da.clonePrototype=function(e){function f(){}if(null===e)return null;f.prototype=e;return new f};da.__objToStr=aa;da.__isDate=function(e){return"object"===typeof e&&"[object Date]"===aa(e)};da.__isArray=function(e){return"object"===typeof e&&"[object Array]"===aa(e)};da.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===aa(e)};da.__getRegExpFlags=w;return da}();"object"===typeof x&&x.exports&&(x.exports=ba)},function(e,ba,ca){function x(e){return e&&
e.__esModule?e:{default:e}}function aa(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 w(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)}function y(e){return e instanceof ea.default||e instanceof fa.BlockEmbed}Object.defineProperty(ba,"__esModule",{value:!0});var n=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!f||h.length!==f);n=!0);}catch(oa){r=!0,w=oa}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 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}}(),f=function sa(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 sa(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ca(0);
var r=x(e);e=ca(8);var z=x(e),fa=ca(4),ea=x(fa);e=ca(16);var ha=x(e);e=ca(13);var ia=x(e);ca=ca(25);ca=x(ca);e=function(e){function x(e,f){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");e=aa(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,e));e.emitter=f.emitter;Array.isArray(f.whitelist)&&(e.whitelist=f.whitelist.reduce(function(e,f){e[f]=!0;return e},{}));e.domNode.addEventListener("DOMNodeInserted",function(){});e.optimize();e.enable();return e}w(x,e);h(x,
[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},{key:"deleteAt",value:function(e,h){var r=this.line(e),w=n(r,2);r=w[0];var z=w[1];w=this.line(e+h);w=n(w,1)[0];f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"deleteAt",this).call(this,e,h);if(null!=w&&r!==w&&0<z){if(r instanceof fa.BlockEmbed||w instanceof fa.BlockEmbed){this.optimize();return}if(r instanceof ia.default){if(e=r.newlineIndex(r.length(),!0),-1<e&&(r=r.split(e+
1),r===w)){this.optimize();return}}else w instanceof ia.default&&(e=w.newlineIndex(0),-1<e&&w.split(e+1));r.moveChildren(w,w.children.head instanceof ha.default?null:w.children.head);r.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(e,h,n,r){if(null==this.whitelist||this.whitelist[n])f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",
this).call(this,e,h,n,r),this.optimize()}},{key:"insertAt",value:function(e,h,n){if(null==n||null==this.whitelist||this.whitelist[h])e>=this.length()?null==n||null==r.default.query(h,r.default.Scope.BLOCK)?(e=r.default.create(this.statics.defaultChild),this.appendChild(e),null==n&&h.endsWith("\n")&&(h=h.slice(0,-1)),e.insertAt(0,h,n)):(h=r.default.create(h,n),this.appendChild(h)):f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,e,h,n),this.optimize()}},{key:"insertBefore",
value:function(e,h){if(e.statics.scope===r.default.Scope.INLINE_BLOT){var n=r.default.create(this.statics.defaultChild);n.appendChild(e);e=n}f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,e,h)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(y,e)}},{key:"lines",value:function(){return function va(e,f,h){var n=[],w=h;e.children.forEachAt(f,h,function(e,
f,h){y(e)?n.push(e):e instanceof r.default.Container&&(n=n.concat(va(e,f,w)));w-=h});return n}(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,e,h),0<
e.length&&this.emitter.emit(z.default.events.SCROLL_OPTIMIZE,e,h))}},{key:"path",value:function(e){return f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var h=z.default.sources.USER;"string"===typeof e&&(h=e);Array.isArray(e)||(e=this.observer.takeRecords());0<e.length&&this.emitter.emit(z.default.events.SCROLL_BEFORE_UPDATE,h,e);f(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"update",
this).call(this,e.concat([]));0<e.length&&this.emitter.emit(z.default.events.SCROLL_UPDATE,h,e)}}}]);return x}(r.default.Scroll);e.blotName="scroll";e.className="ql-editor";e.tagName="DIV";e.defaultChild="block";e.allowedChildren=[ea.default,fa.BlockEmbed,ca.default];ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):e[f]=h;return e}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 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)}function n(e,f){var h,n=e===ya.keys.LEFT?"prefix":"suffix";return h={key:e,shiftKey:f,altKey:null},aa(h,n,/^$/),aa(h,"handler",function(h){var n=
h.index;e===ya.keys.RIGHT&&(n+=h.length+1);n=this.quill.getLeaf(n);if(!(ma(n,1)[0]instanceof va.default.Embed))return!0;e===ya.keys.LEFT?f?this.quill.setSelection(h.index-1,h.length+1,oa.default.sources.USER):this.quill.setSelection(h.index-1,oa.default.sources.USER):f?this.quill.setSelection(h.index,h.length+1,oa.default.sources.USER):this.quill.setSelection(h.index+h.length+1,oa.default.sources.USER);return!1}),h}function h(e,f){if(!(0===e.index||1>=this.quill.getLength())){var h=this.quill.getLine(e.index),
n=ma(h,1)[0];h={};if(0===f.offset){var r=this.quill.getLine(e.index-1);r=ma(r,1)[0];null!=r&&1<r.length()&&(h=n.formats(),n=this.quill.getFormat(e.index-1,1),h=qa.default.attributes.diff(h,n)||{})}f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(f.prefix)?2:1;this.quill.deleteText(e.index-f,f,oa.default.sources.USER);0<Object.keys(h).length&&this.quill.formatLine(e.index-f,f,h,oa.default.sources.USER);this.quill.focus()}}function f(e,f){var h=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(f.suffix)?2:1;if(!(e.index>=
this.quill.getLength()-h)){var n={},r=0,w=this.quill.getLine(e.index);w=ma(w,1)[0];f.offset>=w.length()-1&&(f=this.quill.getLine(e.index+1),f=ma(f,1)[0])&&(n=w.formats(),r=this.quill.getFormat(e.index,1),n=qa.default.attributes.diff(n,r)||{},r=f.length());this.quill.deleteText(e.index,h,oa.default.sources.USER);0<Object.keys(n).length&&this.quill.formatLine(e.index+r-1,h,n,oa.default.sources.USER)}}function r(e){var f=this.quill.getLines(e),h={};1<f.length&&(h=f[0].formats(),f=f[f.length-1].formats(),
h=qa.default.attributes.diff(f,h)||{});this.quill.deleteText(e,oa.default.sources.USER);0<Object.keys(h).length&&this.quill.formatLine(e.index,1,h,oa.default.sources.USER);this.quill.setSelection(e.index,oa.default.sources.SILENT);this.quill.focus()}function z(e,f){var h=this;0<e.length&&this.quill.scroll.deleteAt(e.index,e.length);var n=Object.keys(f.format).reduce(function(e,h){va.default.query(h,va.default.Scope.BLOCK)&&!Array.isArray(f.format[h])&&(e[h]=f.format[h]);return e},{});this.quill.insertText(e.index,
"\n",n,oa.default.sources.USER);this.quill.setSelection(e.index+1,oa.default.sources.SILENT);this.quill.focus();Object.keys(f.format).forEach(function(e){null==n[e]&&(Array.isArray(f.format[e])||"link"!==e&&h.quill.format(e,f.format[e],oa.default.sources.USER))})}function fa(e){return{key:ya.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(f){var h=va.default.query("code-block"),n=f.index,r=f.length;f=this.quill.scroll.descendant(h,n);f=ma(f,2);var w=f[0],x=f[1];if(null!=w){f=this.quill.getIndex(w);
var z=w.newlineIndex(x,!0)+1;f=w.newlineIndex(f+x+r);f=w.domNode.textContent.slice(z,f).split("\n");x=0;f.forEach(function(f,y){e?(w.insertAt(z+x,h.TAB),x+=h.TAB.length,0===y?n+=h.TAB.length:r+=h.TAB.length):f.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+=f.length+1});this.quill.update(oa.default.sources.USER);this.quill.setSelection(n,r,oa.default.sources.SILENT)}}}}function ea(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(f,
h){this.quill.format(e,!h.format[e],oa.default.sources.USER)}}}function ha(e){if("string"===typeof e||"number"===typeof e)return ha({key:e});"object"===("undefined"===typeof e?"undefined":ia(e))&&(e=(0,na.default)(e,!1));if("string"===typeof e.key)if(null!=ya.keys[e.key.toUpperCase()])e.key=ya.keys[e.key.toUpperCase()];else if(1===e.key.length)e.key=e.key.toUpperCase().charCodeAt(0);else return null;e.shortKey&&(e[Ca]=e.shortKey,delete e.shortKey);return e}Object.defineProperty(ba,"__esModule",{value:!0});
ba.SHORTKEY=ba.default=void 0;var ia="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?"symbol":typeof e},ma=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),z;!(n=(z=x.next()).done)&&(h.push(z.value),!f||h.length!==f);n=!0);}catch(xa){r=!0,w=xa}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");}}(),la=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=ca(21);var na=x(e);e=ca(11);var ra=x(e);e=ca(3);var sa=x(e);e=ca(2);var Da=x(e);e=ca(20);var qa=x(e);e=ca(0);var va=
x(e);e=ca(5);var oa=x(e);e=ca(10);e=x(e);ca=ca(9);ca=x(ca);var ua=(0,e.default)("quill:keyboard"),Ca=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",ya=function(e){function n(e,x){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var y=w(this,(n.__proto__||Object.getPrototypeOf(n)).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:n.keys.ENTER,shiftKey:null},z);y.addBinding({key:n.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(y.addBinding({key:n.keys.BACKSPACE},{collapsed:!0},h),y.addBinding({key:n.keys.DELETE},{collapsed:!0},f)):(y.addBinding({key:n.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},h),y.addBinding({key:n.keys.DELETE},{collapsed:!0,suffix:/^.?$/},f));y.addBinding({key:n.keys.BACKSPACE},{collapsed:!1},r);y.addBinding({key:n.keys.DELETE},{collapsed:!1},
r);y.addBinding({key:n.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},h);y.listen();return y}y(n,e);la(n,null,[{key:"match",value:function(e,f){f=ha(f);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(h){return!!f[h]!==e[h]&&null!==f[h]})?!1:f.key===(e.which||e.keyCode)}}]);la(n,[{key:"addBinding",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},n=
ha(e);if(null==n||null==n.key)return ua.warn("Attempted to add invalid keyboard binding",n);"function"===typeof f&&(f={handler:f});"function"===typeof h&&(h={handler:h});n=(0,sa.default)(n,f,h);this.bindings[n.key]=this.bindings[n.key]||[];this.bindings[n.key].push(n)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",function(f){if(!f.defaultPrevented){var h=(e.bindings[f.which||f.keyCode]||[]).filter(function(e){return n.match(f,e)});if(0!==h.length){var r=e.quill.getSelection();
if(null!=r&&e.quill.hasFocus()){var w=e.quill.getLine(r.index),x=ma(w,2);w=x[0];x=x[1];var z=e.quill.getLeaf(r.index),y=ma(z,2);z=y[0];y=y[1];var aa=0===r.length?[z,y]:e.quill.getLeaf(r.index+r.length),da=ma(aa,2);aa=da[0];da=da[1];z=z instanceof va.default.Text?z.value().slice(0,y):"";y=aa instanceof va.default.Text?aa.value().slice(da):"";var ba={collapsed:0===r.length,empty:0===r.length&&1>=w.length(),format:e.quill.getFormat(r),offset:x,prefix:z,suffix:y};h.some(function(f){if(null!=f.collapsed&&
f.collapsed!==ba.collapsed||null!=f.empty&&f.empty!==ba.empty||null!=f.offset&&f.offset!==ba.offset)return!1;if(Array.isArray(f.format)){if(f.format.every(function(e){return null==ba.format[e]}))return!1}else if("object"===ia(f.format)&&!Object.keys(f.format).every(function(e){return!0===f.format[e]?null!=ba.format[e]:!1===f.format[e]?null==ba.format[e]:(0,ra.default)(f.format[e],ba.format[e])}))return!1;return null!=f.prefix&&!f.prefix.test(ba.prefix)||null!=f.suffix&&!f.suffix.test(ba.suffix)?!1:
!0!==f.handler.call(e,r,ba)})&&f.preventDefault()}}}})}}]);return n}(ca.default);ya.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};ya.DEFAULTS={bindings:{bold:ea("bold"),italic:ea("italic"),underline:ea("underline"),indent:{key:ya.keys.TAB,format:["blockquote","indent","list"],handler:function(e,f){if(f.collapsed&&0!==f.offset)return!0;this.quill.format("indent","+1",oa.default.sources.USER)}},outdent:{key:ya.keys.TAB,shiftKey:!0,format:["blockquote","indent",
"list"],handler:function(e,f){if(f.collapsed&&0!==f.offset)return!0;this.quill.format("indent","-1",oa.default.sources.USER)}},"outdent backspace":{key:ya.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,f){null!=f.format.indent?this.quill.format("indent","-1",oa.default.sources.USER):null!=f.format.list&&this.quill.format("list",!1,oa.default.sources.USER)}},"indent code-block":fa(!0),"outdent code-block":fa(!1),
"remove tab":{key:ya.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,oa.default.sources.USER)}},tab:{key:ya.keys.TAB,handler:function(e){this.quill.history.cutoff();var f=(new Da.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(f,oa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(e.index+1,oa.default.sources.SILENT)}},"list empty enter":{key:ya.keys.ENTER,collapsed:!0,format:["list"],empty:!0,
handler:function(e,f){this.quill.format("list",!1,oa.default.sources.USER);f.format.indent&&this.quill.format("indent",!1,oa.default.sources.USER)}},"checklist enter":{key:ya.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var f=this.quill.getLine(e.index),h=ma(f,2);f=h[0];h=h[1];var n=(0,sa.default)({},f.formats(),{list:"checked"});f=(new Da.default).retain(e.index).insert("\n",n).retain(f.length()-h-1).retain(1,{list:"unchecked"});this.quill.updateContents(f,oa.default.sources.USER);
this.quill.setSelection(e.index+1,oa.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:ya.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,f){var h=this.quill.getLine(e.index),n=ma(h,2);h=n[0];n=n[1];f=(new Da.default).retain(e.index).insert("\n",f.format).retain(h.length()-n-1).retain(1,{header:null});this.quill.updateContents(f,oa.default.sources.USER);this.quill.setSelection(e.index+1,oa.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",
collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,f){var h=f.prefix.length,n=this.quill.getLine(e.index),r=ma(n,2);n=r[0];r=r[1];if(r>h)return!0;switch(f.prefix.trim()){case "[]":case "[ ]":f="unchecked";break;case "[x]":f="checked";break;case "-":case "*":f="bullet";break;default:f="ordered"}this.quill.insertText(e.index," ",oa.default.sources.USER);this.quill.history.cutoff();f=(new Da.default).retain(e.index-r).delete(h+1).retain(n.length()-2-r).retain(1,
{list:f});this.quill.updateContents(f,oa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(e.index-h,oa.default.sources.SILENT)}},"code exit":{key:ya.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var f=this.quill.getLine(e.index),h=ma(f,2);f=h[0];h=h[1];e=(new Da.default).retain(e.index+f.length()-h-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(e,oa.default.sources.USER)}},"embed left":n(ya.keys.LEFT,
!1),"embed left shift":n(ya.keys.LEFT,!0),"embed right":n(ya.keys.RIGHT,!1),"embed right shift":n(ya.keys.RIGHT,!0)}};ba.default=ya;ba.SHORTKEY=Ca},function(e,ba,ca){function x(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(ba,
"__esModule",{value:!0});var aa=function(){return function(e,h){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var f=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(f.push(y.value),!h||f.length!==h);n=!0);}catch(la){r=!0,w=la}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return f}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),w=function ka(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 ka(e,h,n)}else{if("value"in r)return r.value;h=r.get;return void 0===h?void 0:h.call(n)}},y=function(){function e(e,h){for(var n=0;n<h.length;n++){var r=h[n];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(e,r.key,r)}}return function(h,n,r){n&&e(h.prototype,n);r&&e(h,r);return h}}(),n=(e=ca(0))&&e.__esModule?e:{default:e},h=(ca=ca(7))&&ca.__esModule?ca:{default:ca};ca=function(e){function r(e,
h){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");e=(r.__proto__||Object.getPrototypeOf(r)).call(this,e);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");e=!e||"object"!==typeof e&&"function"!==typeof e?this:e;e.selection=h;e.textNode=document.createTextNode(r.CONTENTS);e.domNode.appendChild(e.textNode);e._length=0;return e}x(r,e);y(r,null,[{key:"value",value:function(){}}]);y(r,[{key:"detach",value:function(){null!=this.parent&&
this.parent.removeChild(this)}},{key:"format",value:function(e,h){if(0!==this._length)return w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,e,h);for(var x=this,y=0;null!=x&&x.statics.scope!==n.default.Scope.BLOCK_BLOT;)y+=x.offset(x.parent),x=x.parent;null!=x&&(this._length=r.CONTENTS.length,x.optimize(),x.formatAt(y,r.CONTENTS.length,e,h),this._length=0)}},{key:"index",value:function(e,h){return e===this.textNode?0:w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),
"index",this).call(this,e,h)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,w=this.selection.getNativeRange(),x=void 0,y=void 0,z=void 0;null!=w&&w.start.node===e&&w.end.node===
e&&(z=[e,w.start.offset,w.end.offset],x=z[0],y=z[1],z=z[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==r.CONTENTS&&(e=this.textNode.data.split(r.CONTENTS).join(""),this.next instanceof h.default?(x=this.next.domNode,this.next.insertAt(0,e),this.textNode.data=r.CONTENTS):(this.textNode.data=e,this.parent.insertBefore(n.default.create(this.textNode),this),this.textNode=document.createTextNode(r.CONTENTS),
this.domNode.appendChild(this.textNode)));this.remove();if(null!=y)return y=[y,z].map(function(e){return Math.max(0,Math.min(x.data.length,e-1))}),z=aa(y,2),y=z[0],z=z[1],{startNode:x,startOffset:y,endNode:x,endOffset:z}}}},{key:"update",value:function(e,h){var n=this;e.some(function(e){return"characterData"===e.type&&e.target===n.textNode})&&(e=this.restore())&&(h.range=e)}},{key:"value",value:function(){return""}}]);return r}(n.default.Embed);ca.blotName="cursor";ca.className="ql-cursor";ca.tagName=
"span";ca.CONTENTS="\ufeff";ba.default=ca},function(e,ba,ca){function x(e,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);e.prototype=Object.create(x&&x.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(e,x):e.__proto__=x)}Object.defineProperty(ba,"__esModule",{value:!0});e=(e=ca(0))&&e.__esModule?e:{default:e};var aa=(ca=ca(4))&&ca.__esModule?ca:
{default:ca};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}x(w,e);return w}(e.default.Container);e.allowedChildren=[aa.default,ca.BlockEmbed,e];ba.default=e},function(e,ba,ca){function x(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(ba,"__esModule",{value:!0});ba.ColorStyle=ba.ColorClass=ba.ColorAttributor=void 0;var aa=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,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),w=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}},y=function(e){return e&&e.__esModule?e:{default:e}}(ca(0));e=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}x(f,e);aa(f,[{key:"value",value:function(e){e=w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,e);if(!e.startsWith("rgb("))return e;e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+e.split(",").map(function(e){return("00"+parseInt(e).toString(16)).slice(-2)}).join("")}}]);
return f}(y.default.Attributor.Style);ca=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE});y=new e("color","color",{scope:y.default.Scope.INLINE});ba.ColorAttributor=e;ba.ColorClass=ca;ba.ColorStyle=y},function(e,ba,ca){function x(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 aa(e,h){var f=document.createElement("a");f.href=e;e=f.href.slice(0,f.href.indexOf(":"));return-1<h.indexOf(e)}Object.defineProperty(ba,"__esModule",{value:!0});ba.sanitize=ba.default=void 0;var w=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,n){f&&e(h.prototype,f);n&&e(h,n);
return h}}(),y=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};e=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}x(f,e);w(f,[{key:"format",value:function(e,h){if(e!==this.statics.blotName||!h)return y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,e,h);h=this.constructor.sanitize(h);this.domNode.setAttribute("href",h)}}],[{key:"create",value:function(e){var h=y(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,e);e=this.sanitize(e);h.setAttribute("href",e);h.setAttribute("rel","noopener noreferrer");
h.setAttribute("target","_blank");return h}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return aa(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]);return f}(function(e){return e&&e.__esModule?e:{default:e}}(ca(6)).default);e.blotName="link";e.tagName="A";e.SANITIZED_URL="about:blank";e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];ba.default=e;ba.sanitize=aa},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});var x="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?"symbol":typeof e},aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];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}}(),w=(e=ca(23))&&e.__esModule?e:{default:e},y=(ca=ca(107))&&ca.__esModule?
ca:{default:ca},n=0;ca=function(){function e(f){var h=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.select=f;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,this.select);this.label.addEventListener("mousedown",function(){h.togglePicker()});this.label.addEventListener("keydown",function(e){switch(e.keyCode){case w.default.keys.ENTER:h.togglePicker();break;
case w.default.keys.ESCAPE:h.escape(),e.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}aa(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");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,!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=y.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=this,h=document.createElement("span");h.classList.add("ql-picker-options");h.setAttribute("aria-hidden","true");h.tabIndex="-1";h.id="ql-picker-options-"+n;n+=1;this.label.setAttribute("aria-controls",h.id);this.options=h;[].slice.call(this.select.options).forEach(function(f){var n=
e.buildItem(f);h.appendChild(n);!0===f.selected&&e.selectItem(n)});this.container.appendChild(h)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(f){e.container.setAttribute(f.name,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");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")):"object"===("undefined"===typeof Event?"undefined":x(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 h=
this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex];this.selectItem(h)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=e&&e!==this.select.querySelector("option[selected]"))}}]);return e}();ba.default=ca},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(ba,"__esModule",{value:!0});e=ca(0);e=x(e);var aa=ca(5);aa=x(aa);var w=ca(4),y=x(w),n=ca(16);n=x(n);
var h=ca(25);h=x(h);var f=ca(24);f=x(f);var r=ca(35);r=x(r);var z=ca(6);z=x(z);var fa=ca(22);fa=x(fa);var ea=ca(7);ea=x(ea);var ha=ca(55);ha=x(ha);var ia=ca(42);ia=x(ia);ca=ca(23);aa.default.register({"blots/block":y.default,"blots/block/embed":w.BlockEmbed,"blots/break":n.default,"blots/container":h.default,"blots/cursor":f.default,"blots/embed":r.default,"blots/inline":z.default,"blots/scroll":fa.default,"blots/text":ea.default,"modules/clipboard":ha.default,"modules/history":ia.default,"modules/keyboard":x(ca).default});
e.default.register(y.default,n.default,f.default,z.default,fa.default,ea.default);ba.default=aa.default},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});var x=ca(1);e=function(){function e(e){this.domNode=e;this.domNode[x.DATA_KEY]={blot:this}}Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0});e.create=function(e){if(null==this.tagName)throw new x.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&&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 x.create(e)};
e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[x.DATA_KEY]};e.prototype.deleteAt=function(e,x){this.isolate(e,x).remove()};e.prototype.formatAt=function(e,y,n,h){e=this.isolate(e,y);null!=x.query(n,x.Scope.BLOT)&&h?e.wrap(n,h):null!=x.query(n,x.Scope.ATTRIBUTE)&&(y=x.create(this.statics.scope),e.wrap(y),y.format(n,h))};e.prototype.insertAt=function(e,y,n){y=null==n?x.create("text",y):x.create(y,n);e=this.split(e);this.parent.insertBefore(y,e)};e.prototype.insertInto=
function(e,x){void 0===x&&(x=null);null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,x);null!=x&&(n=x.domNode);this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n);this.parent=e;this.attach()};e.prototype.isolate=function(e,x){e=this.split(e);e.split(x);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[x.DATA_KEY]&&delete this.domNode[x.DATA_KEY].mutations};e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())};e.prototype.replaceWith=function(e,y){e="string"===typeof e?x.create(e,y):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,y){e="string"===typeof e?x.create(e,y):e;null!=this.parent&&this.parent.insertBefore(e,this.next);e.appendChild(this);return e};e.blotName="abstract";return e}();ba.default=e},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});var x=ca(12),aa=ca(32),w=ca(33),y=ca(1);e=function(){function e(e){this.attributes={};this.domNode=e;this.build()}e.prototype.attribute=function(e,f){f?e.add(this.domNode,f)&&(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 f=x.default.keys(this.domNode),n=aa.default.keys(this.domNode),z=w.default.keys(this.domNode);f.concat(n).concat(z).forEach(function(f){f=y.query(f,y.Scope.ATTRIBUTE);f instanceof x.default&&(e.attributes[f.attrName]=f)})};e.prototype.copy=function(e){var f=this;Object.keys(this.attributes).forEach(function(h){var n=
f.attributes[h].value(f.domNode);e.format(h,n)})};e.prototype.move=function(e){var f=this;this.copy(e);Object.keys(this.attributes).forEach(function(e){f.attributes[e].remove(f.domNode)});this.attributes={}};e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(f,h){f[h]=e.attributes[h].value(e.domNode);return f},{})};return e}();ba.default=e},function(e,ba,ca){function x(e,x){return(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(x+
"-")})}var aa=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var h in n)n.hasOwnProperty(h)&&(e[h]=n[h])};return function(w,n){function h(){this.constructor=w}e(w,n);w.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}();Object.defineProperty(ba,"__esModule",{value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}aa(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){x(e,this.keyName).forEach(function(h){e.classList.remove(h)});0===e.classList.length&&e.removeAttribute("class")};w.prototype.value=function(e){var h=(x(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,h)?h:""};return w}(ca(12).default);ba.default=
e},function(e,ba,ca){function x(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 aa=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var h in n)n.hasOwnProperty(h)&&(e[h]=n[h])};return function(w,n){function h(){this.constructor=w}e(w,n);w.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}();Object.defineProperty(ba,"__esModule",
{value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}aa(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[x(this.keyName)]=h;return!0};w.prototype.remove=function(e){e.style[x(this.keyName)]="";e.getAttribute("style")||e.removeAttribute("style")};w.prototype.value=function(e){var h=e.style[x(this.keyName)];return this.canAdd(e,h)?
h:""};return w}(ca(12).default);ba.default=e},function(e,ba){Object.defineProperty(ba,"__esModule",{value:!0});var x=function(){function e(e,w){for(var x=0;x<w.length;x++){var n=w[x];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(x,w,y){w&&e(x.prototype,w);y&&e(x,y);return x}}();e=function(){function e(x,w){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.quill=x;this.options=w;this.modules=
{}}x(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}();e.DEFAULTS={modules:{}};e.themes={"default":e};ba.default=e},function(e,ba,ca){function x(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 aa(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(ba,"__esModule",{value:!0});var w=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}}(),y=function ka(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 ka(e,h,n)}else{if("value"in r)return r.value;h=r.get;return void 0===h?void 0:h.call(n)}},n=(e=ca(0))&&e.__esModule?e:{default:e},h=(ca=ca(7))&&ca.__esModule?ca:{default:ca};ca=function(e){function r(e){if(!(this instanceof
r))throw new TypeError("Cannot call a class as a function");var h=x(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));h.contentNode=document.createElement("span");h.contentNode.setAttribute("contenteditable",!1);[].slice.call(h.domNode.childNodes).forEach(function(e){h.contentNode.appendChild(e)});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}aa(r,e);w(r,[{key:"index",value:function(e,h){return e===this.leftGuard?0:e===this.rightGuard?1:y(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"index",this).call(this,e,h)}},{key:"restore",value:function(e){var r=void 0,w=e.data.split("\ufeff").join("");e===this.leftGuard?this.prev instanceof h.default?(r=this.prev.length(),this.prev.insertAt(r,w),r={startNode:this.prev.domNode,startOffset:r+w.length}):(r=document.createTextNode(w),this.parent.insertBefore(n.default.create(r),
this),r={startNode:r,startOffset:w.length}):e===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,w),r={startNode:this.next.domNode,startOffset:w.length}):(r=document.createTextNode(w),this.parent.insertBefore(n.default.create(r),this.next),r={startNode:r,startOffset:w.length}));e.data="\ufeff";return r}},{key:"update",value:function(e,h){var n=this;e.forEach(function(e){"characterData"!==e.type||e.target!==n.leftGuard&&e.target!==n.rightGuard||!(e=n.restore(e.target))||(h.range=
e)})}}]);return r}(n.default.Embed);ba.default=ca},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});ba.AlignStyle=ba.AlignClass=ba.AlignAttribute=void 0;var x=(e=ca(0))&&e.__esModule?e:{default:e};var aa={scope:x.default.Scope.BLOCK,whitelist:["right","center","justify"]};e=new x.default.Attributor.Attribute("align","align",aa);ca=new x.default.Attributor.Class("align","ql-align",aa);x=new x.default.Attributor.Style("align","text-align",aa);ba.AlignAttribute=e;ba.AlignClass=ca;
ba.AlignStyle=x},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});ba.BackgroundStyle=ba.BackgroundClass=void 0;e=(e=ca(0))&&e.__esModule?e:{default:e};var x=ca(26);ca=new e.default.Attributor.Class("background","ql-bg",{scope:e.default.Scope.INLINE});e=new x.ColorAttributor("background","background-color",{scope:e.default.Scope.INLINE});ba.BackgroundClass=ca;ba.BackgroundStyle=e},function(e,ba,ca){Object.defineProperty(ba,"__esModule",{value:!0});ba.DirectionStyle=ba.DirectionClass=
ba.DirectionAttribute=void 0;var x=(e=ca(0))&&e.__esModule?e:{default:e};var aa={scope:x.default.Scope.BLOCK,whitelist:["rtl"]};e=new x.default.Attributor.Attribute("direction","dir",aa);ca=new x.default.Attributor.Class("direction","ql-direction",aa);x=new x.default.Attributor.Style("direction","direction",aa);ba.DirectionAttribute=e;ba.DirectionClass=ca;ba.DirectionStyle=x},function(e,ba,ca){function x(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(ba,"__esModule",{value:!0});ba.FontClass=ba.FontStyle=void 0;var aa=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,n){f&&e(h.prototype,f);n&&e(h,
n);return h}}(),w=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};ca=function(e){return e&&e.__esModule?e:{default:e}}(ca(0));var y={scope:ca.default.Scope.INLINE,whitelist:["serif","monospace"]};e=new ca.default.Attributor.Class("font","ql-font",y);ca=new (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}x(f,e);aa(f,[{key:"value",value:function(e){return w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]);return f}(ca.default.Attributor.Style))("font","font-family",y);ba.FontStyle=ca;ba.FontClass=e},function(e,ba,ca){Object.defineProperty(ba,
"__esModule",{value:!0});ba.SizeStyle=ba.SizeClass=void 0;ca=(e=ca(0))&&e.__esModule?e:{default:e};e=new ca.default.Attributor.Class("size","ql-size",{scope:ca.default.Scope.INLINE,whitelist:["small","large","huge"]});ca=new ca.default.Attributor.Style("size","font-size",{scope:ca.default.Scope.INLINE,whitelist:["10px","18px","32px"]});ba.SizeClass=e;ba.SizeStyle=ca},function(e,ba,ca){e.exports={align:{"":ca(76),center:ca(77),right:ca(78),justify:ca(79)},background:ca(80),blockquote:ca(81),bold:ca(82),
clean:ca(83),code:ca(58),"code-block":ca(58),color:ca(84),direction:{"":ca(85),rtl:ca(86)},"float":{center:ca(87),full:ca(88),left:ca(89),right:ca(90)},formula:ca(91),header:{1:ca(92),2:ca(93)},italic:ca(94),image:ca(95),indent:{"+1":ca(96),"-1":ca(97)},link:ca(98),list:{ordered:ca(99),bullet:ca(100),check:ca(101)},script:{sub:ca(102),"super":ca(103)},strike:ca(104),underline:ca(105),video:ca(106)}},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(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 w(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)}function y(e){e=e.ops[e.ops.length-1];return null==e?!1:null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=
e.attributes?Object.keys(e.attributes).some(function(e){return null!=f.default.query(e,f.default.Scope.BLOCK)}):!1}function n(e){var f=e.reduce(function(e,f){return e+=f.delete||0},0);f=e.length()-f;y(e)&&--f;return f}Object.defineProperty(ba,"__esModule",{value:!0});ba.getLastChangeIndex=ba.default=void 0;var 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=ca(0);var f=x(e);e=ca(5);var r=x(e);ca=ca(9);ca=function(e){function f(e,h){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var n=aa(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));n.lastRecorded=0;n.ignoreChange=!1;n.clear();n.quill.on(r.default.events.EDITOR_CHANGE,function(e,f,h,w){e!==r.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&w!==r.default.sources.USER?n.transform(f):n.record(f,
h))});n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n));n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n));/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n));return n}w(f,e);h(f,[{key:"change",value:function(e,f){if(0!==this.stack[e].length){var h=this.stack[e].pop();this.stack[f].push(h);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(h[e],r.default.sources.USER);this.ignoreChange=!1;e=n(h[e]);
this.quill.setSelection(e)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,f){if(0!==e.ops.length){this.stack.redo=[];f=this.quill.getContents().diff(f);var h=Date.now();this.lastRecorded+this.options.delay>h&&0<this.stack.undo.length?(h=this.stack.undo.pop(),f=f.compose(h.undo),e=h.redo.compose(e)):this.lastRecorded=h;this.stack.undo.push({redo:e,undo:f});this.stack.undo.length>this.options.maxStack&&
this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach(function(f){f.undo=e.transform(f.undo,!0);f.redo=e.transform(f.redo,!0)});this.stack.redo.forEach(function(f){f.undo=e.transform(f.undo,!0);f.redo=e.transform(f.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return f}(x(ca).default);ca.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};ba.default=ca;ba.getLastChangeIndex=n},function(e,
ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(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 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)}function n(e,f){var h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;f.forEach(function(f){var n=document.createElement("option");f===h?n.setAttribute("selected","selected"):n.setAttribute("value",f);e.appendChild(n)})}Object.defineProperty(ba,"__esModule",{value:!0});ba.default=ba.BaseTooltip=void 0;var 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}}(),f=function ya(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 ya(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ca(3);e=x(e);var r=ca(2),z=x(r);r=ca(8);var fa=x(r);r=ca(23);var ea=x(r);r=ca(34);r=x(r);
var ha=ca(59),ia=x(ha);ha=ca(60);var ma=x(ha);ha=ca(28);var la=x(ha);ca=ca(61);ha=x(ca);var na=[!1,"center","right","justify"],ra="#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(" "),sa=[!1,"serif","monospace"],Da=["1","2","3",!1],qa=["small",!1,"large","huge"];
ca=function(e){function r(e,f){aa(this,r);var h=w(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,f));e.emitter.listenDOM("click",document.body,function Ga(f){if(!document.body.contains(e.root))return document.body.removeEventListener("click",Ga);null==h.tooltip||h.tooltip.root.contains(f.target)||document.activeElement===h.tooltip.textbox||h.quill.hasFocus()||h.tooltip.hide();null!=h.pickers&&h.pickers.forEach(function(e){e.container.contains(f.target)||e.close()})});return h}y(r,e);h(r,
[{key:"addModule",value:function(e){var h=f(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"addModule",this).call(this,e);"toolbar"===e&&this.extendToolbar(h);return h}},{key:"buildButtons",value:function(e,f){e.forEach(function(e){(e.getAttribute("class")||"").split(/\s+/).forEach(function(h){if(h.startsWith("ql-")&&(h=h.slice(3),null!=f[h]))if("direction"===h)e.innerHTML=f[h][""]+f[h].rtl;else if("string"===typeof f[h])e.innerHTML=f[h];else{var n=e.value||"";null!=n&&f[h][n]&&(e.innerHTML=
f[h][n])}})})}},{key:"buildPickers",value:function(e,f){var h=this;this.pickers=e.map(function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&n(e,na),new ma.default(e,f.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var h=e.classList.contains("ql-background")?"background":"color";null==e.querySelector("option")&&n(e,ra,"background"===h?"#ffffff":"#000000");return new ia.default(e,f[h])}null==e.querySelector("option")&&(e.classList.contains("ql-font")?
n(e,sa):e.classList.contains("ql-header")?n(e,Da):e.classList.contains("ql-size")&&n(e,qa));return new la.default(e)});this.quill.on(fa.default.events.EDITOR_CHANGE,function(){h.pickers.forEach(function(e){e.update()})})}}]);return r}(r.default);ca.DEFAULTS=(0,e.default)(!0,{},r.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,f=this.container.querySelector("input.ql-image[type=file]");null==f&&(f=document.createElement("input"),
f.setAttribute("type","file"),f.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),f.classList.add("ql-image"),f.addEventListener("change",function(){if(null!=f.files&&null!=f.files[0]){var h=new FileReader;h.onload=function(h){var n=e.quill.getSelection(!0);e.quill.updateContents((new z.default).retain(n.index).delete(n.length).insert({image:h.target.result}),fa.default.sources.USER);e.quill.setSelection(n.index+1,fa.default.sources.SILENT);f.value=""};h.readAsDataURL(f.files[0])}}),
this.container.appendChild(f));f.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});e=function(e){function f(e,h){aa(this,f);e=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));e.textbox=e.root.querySelector('input[type="text"]');e.listen();return e}y(f,e);h(f,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(f){ea.default.match(f,"enter")?(e.save(),f.preventDefault()):ea.default.match(f,"escape")&&(e.cancel(),f.preventDefault())})}},
{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=f?this.textbox.value=f:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",
this.textbox.getAttribute("data-"+e)||"");this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var f=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,fa.default.sources.USER),delete this.linkRange):(this.restoreFocus(),
this.quill.format("link",e,fa.default.sources.USER));this.quill.root.scrollTop=f;break;case "video":e=(f=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(f[1]||"https")+"://www.youtube.com/embed/"+f[2]+"?showinfo=0":(f=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(f[1]||"https")+"://player.vimeo.com/video/"+f[2]+"/":e;case "formula":e&&(f=this.quill.getSelection(!0),null!=
f&&(f=f.index+f.length,this.quill.insertEmbed(f,this.root.getAttribute("data-mode"),e,fa.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(f+1," ",fa.default.sources.USER),this.quill.setSelection(f+2,fa.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return f}(ha.default);ba.BaseTooltip=e;ba.default=ca},function(e,ba){Object.defineProperty(ba,"__esModule",{value:!0});e=function(){function e(){this.head=this.tail=null;this.length=0}e.prototype.append=
function(){for(var e=[],x=0;x<arguments.length;x++)e[x]=arguments[x];this.insertBefore(e[0],null);1<e.length&&this.append.apply(this,e.slice(1))};e.prototype.contains=function(e){for(var x,w=this.iterator();x=w();)if(x===e)return!0;return!1};e.prototype.insertBefore=function(e,x){e&&(e.next=x,null!=x?(e.prev=x.prev,null!=x.prev&&(x.prev.next=e),x.prev=e,x===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)};
e.prototype.offset=function(e){for(var x=0,w=this.head;null!=w;){if(w===e)return x;x+=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 x=e;null!=e&&(e=e.next);return x}};e.prototype.find=function(e,x){void 0===x&&(x=!1);for(var w,y=this.iterator();w=
y();){var n=w.length();if(e<n||x&&e===n&&(null==w.next||0!==w.next.length()))return[w,e];e-=n}return[null,0]};e.prototype.forEach=function(e){for(var x,w=this.iterator();x=w();)e(x)};e.prototype.forEachAt=function(e,x,w){if(!(0>=x))for(var y=this.find(e),n=e-y[1],h=this.iterator(y[0]);(y=h())&&n<e+x;){var f=y.length();e>n?w(y,e-n,Math.min(x,n+f-e)):w(y,0,Math.min(f,e+x-n));n+=f}};e.prototype.map=function(e){return this.reduce(function(x,w){x.push(e(w));return x},[])};e.prototype.reduce=function(e,
x){for(var w,y=this.iterator();w=y();)x=e(x,w);return x};return e}();ba.default=e},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var h in f)f.hasOwnProperty(h)&&(e[h]=f[h])};return function(h,f){function n(){this.constructor=h}e(h,f);h.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}}();Object.defineProperty(ba,"__esModule",{value:!0});var aa=ca(17),w=ca(1),y=
{attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};e=function(e){function h(f){var h=e.call(this,f)||this;h.scroll=h;h.observer=new MutationObserver(function(e){h.update(e)});h.observer.observe(h.domNode,y);h.attach();return h}x(h,e);h.prototype.detach=function(){e.prototype.detach.call(this);this.observer.disconnect()};h.prototype.deleteAt=function(f,h){this.update();0===f&&h===this.length()?this.children.forEach(function(e){e.remove()}):e.prototype.deleteAt.call(this,
f,h)};h.prototype.formatAt=function(f,h,n,w){this.update();e.prototype.formatAt.call(this,f,h,n,w)};h.prototype.insertAt=function(f,h,n){this.update();e.prototype.insertAt.call(this,f,h,n)};h.prototype.optimize=function(f,h){function n(e){null!=e.domNode[w.DATA_KEY]&&null!=e.domNode[w.DATA_KEY].mutations&&(e instanceof aa.default&&e.children.forEach(n),e.optimize(h))}function r(e,f){void 0===f&&(f=!0);null!=e&&e!==x&&null!=e.domNode.parentNode&&(null==e.domNode[w.DATA_KEY].mutations&&(e.domNode[w.DATA_KEY].mutations=
[]),f&&r(e.parent))}var x=this;void 0===f&&(f=[]);void 0===h&&(h={});e.prototype.optimize.call(this,h);for(var y=[].slice.call(this.observer.takeRecords());0<y.length;)f.push(y.pop());for(var ba=f,da=0;0<ba.length;da+=1){if(100<=da)throw Error("[Parchment] Maximum optimize iterations reached");ba.forEach(function(e){var f=w.find(e.target,!0);null!=f&&(f.domNode===e.target&&("childList"===e.type?(r(w.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){e=w.find(e,!1);r(e,!1);e instanceof
aa.default&&e.children.forEach(function(e){r(e,!1)})})):"attributes"===e.type&&r(f.prev)),r(f))});this.children.forEach(n);ba=[].slice.call(this.observer.takeRecords());for(y=ba.slice();0<y.length;)f.push(y.pop())}};h.prototype.update=function(f,h){var n=this;void 0===h&&(h={});f=f||this.observer.takeRecords();f.map(function(e){var f=w.find(e.target,!0);if(null==f)return null;if(null==f.domNode[w.DATA_KEY].mutations)return f.domNode[w.DATA_KEY].mutations=[e],f;f.domNode[w.DATA_KEY].mutations.push(e);
return null}).forEach(function(e){null!=e&&e!==n&&null!=e.domNode[w.DATA_KEY]&&e.update(e.domNode[w.DATA_KEY].mutations||[],h)});null!=this.domNode[w.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[w.DATA_KEY].mutations,h);this.optimize(f,h)};h.blotName="scroll";h.defaultChild="block";h.scope=w.Scope.BLOCK_BLOT;h.tagName="DIV";return h}(aa.default);ba.default=e},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,
h){e.__proto__=h}||function(e,h){for(var f in h)h.hasOwnProperty(f)&&(e[f]=h[f])};return function(n,h){function f(){this.constructor=n}e(n,h);n.prototype=null===h?Object.create(h):(f.prototype=h.prototype,new f)}}();Object.defineProperty(ba,"__esModule",{value:!0});var aa=ca(18),w=ca(1);e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}x(n,e);n.formats=function(h){if(h.tagName!==n.tagName)return e.formats.call(this,h)};n.prototype.format=function(h,f){var r=this;h!==this.statics.blotName||
f?e.prototype.format.call(this,h,f):(this.children.forEach(function(e){e instanceof aa.default||(e=e.wrap(n.blotName,!0));r.attributes.copy(e)}),this.unwrap())};n.prototype.formatAt=function(h,f,n,x){null!=this.formats()[n]||w.query(n,w.Scope.ATTRIBUTE)?this.isolate(h,f).format(n,x):e.prototype.formatAt.call(this,h,f,n,x)};n.prototype.optimize=function(h){e.prototype.optimize.call(this,h);h=this.formats();if(0===Object.keys(h).length)return this.unwrap();var f=this.next,r;if(r=f instanceof n&&f.prev===
this)a:if(r=f.formats(),Object.keys(h).length!==Object.keys(r).length)r=!1;else{for(var w in h)if(h[w]!==r[w]){r=!1;break a}r=!0}r&&(f.moveChildren(this),f.remove())};n.blotName="inline";n.scope=w.Scope.INLINE_BLOT;n.tagName="SPAN";return n}(aa.default);ba.default=e},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var h in n)n.hasOwnProperty(h)&&(e[h]=n[h])};return function(w,n){function h(){this.constructor=
w}e(w,n);w.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}();Object.defineProperty(ba,"__esModule",{value:!0});e=ca(18);var aa=ca(1);ca=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}x(w,e);w.formats=function(n){var h=aa.query(w.blotName).tagName;if(n.tagName!==h)return e.formats.call(this,n)};w.prototype.format=function(n,h){null!=aa.query(n,aa.Scope.BLOCK)&&(n!==this.statics.blotName||h?e.prototype.format.call(this,n,h):this.replaceWith(w.blotName))};
w.prototype.formatAt=function(n,h,f,r){null!=aa.query(f,aa.Scope.BLOCK)?this.format(f,r):e.prototype.formatAt.call(this,n,h,f,r)};w.prototype.insertAt=function(n,h,f){null==f||null!=aa.query(h,aa.Scope.INLINE)?e.prototype.insertAt.call(this,n,h,f):(n=this.split(n),h=aa.create(h,f),n.parent.insertBefore(h,n))};w.prototype.update=function(n,h){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,n,h)};w.blotName="block";w.scope=aa.Scope.BLOCK_BLOT;w.tagName="P";return w}(e.default);
ba.default=ca},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,x){e.__proto__=x}||function(e,x){for(var n in x)x.hasOwnProperty(n)&&(e[n]=x[n])};return function(w,x){function n(){this.constructor=w}e(w,x);w.prototype=null===x?Object.create(x):(n.prototype=x.prototype,new n)}}();Object.defineProperty(ba,"__esModule",{value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}x(w,e);w.formats=
function(){};w.prototype.format=function(w,n){e.prototype.formatAt.call(this,0,this.length(),w,n)};w.prototype.formatAt=function(w,n,h,f){0===w&&n===this.length()?this.format(h,f):e.prototype.formatAt.call(this,w,n,h,f)};w.prototype.formats=function(){return this.statics.formats(this.domNode)};return w}(ca(19).default);ba.default=e},function(e,ba,ca){var x=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var h in n)n.hasOwnProperty(h)&&
(e[h]=n[h])};return function(w,n){function h(){this.constructor=w}e(w,n);w.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}();Object.defineProperty(ba,"__esModule",{value:!0});e=ca(19);var aa=ca(1);ca=function(e){function w(n){n=e.call(this,n)||this;n.text=n.statics.value(n.domNode);return n}x(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=
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(n,h,f){null==f?(this.text=this.text.slice(0,n)+h+this.text.slice(n),this.domNode.data=this.text):e.prototype.insertAt.call(this,n,h,f)};w.prototype.length=function(){return this.text.length};w.prototype.optimize=function(n){e.prototype.optimize.call(this,n);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof w&&this.next.prev===
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=aa.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=
this.statics.value(this.domNode))};w.prototype.value=function(){return this.text};w.blotName="text";w.scope=aa.Scope.INLINE_BLOT;return w}(e.default);ba.default=ca},function(){var e=document.createElement("div");e.classList.toggle("test-class",!1);if(e.classList.contains("test-class")){var ba=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,x){return 1<arguments.length&&!this.contains(e)===!x?x:ba.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,
x){return this.substr(x||0,e.length)===e});String.prototype.endsWith||(String.prototype.endsWith=function(e,x){var aa=this.toString();if("number"!==typeof x||!isFinite(x)||Math.floor(x)!==x||x>aa.length)x=aa.length;x-=e.length;e=aa.indexOf(e,x);return-1!==e&&e===x});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e,x){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");
for(var aa=Object(this),w=aa.length>>>0,y,n=0;n<w;n++)if(y=aa[n],e.call(x,y,n,aa))return y}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(e){function x(e,r,x){if(e==r)return e?[[0,e]]:[];if(0>x||e.length<x)x=null;var y=aa(e,r),z=e.substring(0,y);e=e.substring(y);r=r.substring(y);y=w(e,r);var da=e.substring(e.length-y);e=e.substring(0,e.length-y);r=r.substring(0,r.length-y);e=ba(e,
r);z&&e.unshift([0,z]);da&&e.push([0,da]);n(e);null!=x&&(e=h(e,x));return e=f(e)}function ba(e,f){if(!e)return[[1,f]];if(!f)return[[-1,e]];var h=e.length>f.length?e:f;var n=e.length>f.length?f:e,r=h.indexOf(n);if(-1!=r)return h=[[1,h.substring(0,r)],[0,n],[1,h.substring(r+n.length)]],e.length>f.length&&(h[0][0]=h[2][0]=-1),h;if(1==n.length)return[[-1,e],[1,f]];if(h=y(e,f))return f=h[1],n=h[3],e=h[4],h=x(h[0],h[2]),f=x(f,n),h.concat([[0,e]],f);a:{h=e.length;n=f.length;r=Math.ceil((h+n)/2);for(var w=
2*r,z=Array(w),aa=Array(w),ba=0;ba<w;ba++)z[ba]=-1,aa[ba]=-1;z[r+1]=0;aa[r+1]=0;ba=h-n;for(var fa=0!=ba%2,ca=0,ea=0,ha=0,ia=0,ua=0;ua<r;ua++){for(var Ca=-ua+ca;Ca<=ua-ea;Ca+=2){var ya=r+Ca;var Ea=Ca==-ua||Ca!=ua&&z[ya-1]<z[ya+1]?z[ya+1]:z[ya-1]+1;for(var Aa=Ea-Ca;Ea<h&&Aa<n&&e.charAt(Ea)==f.charAt(Aa);)Ea++,Aa++;z[ya]=Ea;if(Ea>h)ea+=2;else if(Aa>n)ca+=2;else if(fa&&(ya=r+ba-Ca,0<=ya&&ya<w&&-1!=aa[ya])){var Fa=h-aa[ya];if(Ea>=Fa){e=da(e,f,Ea,Aa);break a}}}for(Ca=-ua+ha;Ca<=ua-ia;Ca+=2){ya=r+Ca;Fa=
Ca==-ua||Ca!=ua&&aa[ya-1]<aa[ya+1]?aa[ya+1]:aa[ya-1]+1;for(Ea=Fa-Ca;Fa<h&&Ea<n&&e.charAt(h-Fa-1)==f.charAt(n-Ea-1);)Fa++,Ea++;aa[ya]=Fa;if(Fa>h)ia+=2;else if(Ea>n)ha+=2;else if(!fa&&(ya=r+ba-Ca,0<=ya&&ya<w&&-1!=z[ya]&&(Ea=z[ya],Aa=r+Ea-ya,Fa=h-Fa,Ea>=Fa))){e=da(e,f,Ea,Aa);break a}}}e=[[-1,e],[1,f]]}return e}function da(e,f,h,n){var r=e.substring(h),w=f.substring(n);e=x(e.substring(0,h),f.substring(0,n));r=x(r,w);return e.concat(r)}function aa(e,f){if(!e||!f||e.charAt(0)!=f.charAt(0))return 0;for(var h=
0,n=Math.min(e.length,f.length),r=n,w=0;h<r;)e.substring(w,r)==f.substring(w,r)?w=h=r:n=r,r=Math.floor((n-h)/2+h);return r}function w(e,f){if(!e||!f||e.charAt(e.length-1)!=f.charAt(f.length-1))return 0;for(var h=0,n=Math.min(e.length,f.length),r=n,w=0;h<r;)e.substring(e.length-r,e.length-w)==f.substring(f.length-r,f.length-w)?w=h=r:n=r,r=Math.floor((n-h)/2+h);return r}function y(e,f){function h(e,f,h){for(var n=e.substring(h,h+Math.floor(e.length/4)),r=-1,x="",y,z,ba,da;-1!=(r=f.indexOf(n,r+1));){var fa=
aa(e.substring(h),f.substring(r)),ca=w(e.substring(0,h),f.substring(0,r));x.length<ca+fa&&(x=f.substring(r-ca,r)+f.substring(r,r+fa),y=e.substring(0,h-ca),z=e.substring(h+fa),ba=f.substring(0,r-ca),da=f.substring(r+fa))}return 2*x.length>=e.length?[y,z,ba,da,x]:null}var n=e.length>f.length?e:f,r=e.length>f.length?f:e;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;e.length>
f.length?(e=x[0],f=x[1],n=x[2],r=x[3]):(n=x[0],r=x[1],e=x[2],f=x[3]);return[e,f,n,r,x[4]]}function n(e){e.push([0,""]);for(var f=0,h=0,r=0,x="",y="",z;f<e.length;)switch(e[f][0]){case 1:r++;y+=e[f][1];f++;break;case -1:h++;x+=e[f][1];f++;break;case 0:1<h+r?(0!==h&&0!==r&&(z=aa(y,x),0!==z&&(0<f-h-r&&0==e[f-h-r-1][0]?e[f-h-r-1][1]+=y.substring(0,z):(e.splice(0,0,[0,y.substring(0,z)]),f++),y=y.substring(z),x=x.substring(z)),z=w(y,x),0!==z&&(e[f][1]=y.substring(y.length-z)+e[f][1],y=y.substring(0,y.length-
z),x=x.substring(0,x.length-z))),0===h?e.splice(f-r,h+r,[1,y]):0===r?e.splice(f-h,h+r,[-1,x]):e.splice(f-h-r,h+r,[-1,x],[1,y]),f=f-h-r+(h?1:0)+(r?1:0)+1):0!==f&&0==e[f-1][0]?(e[f-1][1]+=e[f][1],e.splice(f,1)):f++,h=r=0,y=x=""}""===e[e.length-1][1]&&e.pop();h=!1;for(f=1;f<e.length-1;)0==e[f-1][0]&&0==e[f+1][0]&&(e[f][1].substring(e[f][1].length-e[f-1][1].length)==e[f-1][1]?(e[f][1]=e[f-1][1]+e[f][1].substring(0,e[f][1].length-e[f-1][1].length),e[f+1][1]=e[f-1][1]+e[f+1][1],e.splice(f-1,1),h=!0):e[f][1].substring(0,
e[f+1][1].length)==e[f+1][1]&&(e[f-1][1]+=e[f+1][1],e[f][1]=e[f][1].substring(e[f+1][1].length)+e[f+1][1],e.splice(f+1,1),h=!0)),f++;h&&n(e)}function h(e,f){a:{var h=e;if(0===f)var n=[0,h];else{var w=0;for(n=0;n<h.length;n++){var x=h[n];if(-1===x[0]||0===x[0]){var y=w+x[1].length;if(f===y){n=[n+1,h];break a}if(f<y){h=h.slice();w=f-w;f=[x[0],x[1].slice(0,w)];x=[x[0],x[1].slice(w)];h.splice(n,1,f,x);n=[n+1,h];break a}w=y}}throw Error("cursor_pos is out of bounds!");}}h=n[1];n=n[0];f=h[n];x=h[n+1];return null==
f||0!==f[0]?e:null!=x&&f[1]+x[1]===x[1]+f[1]?(h.splice(n,2,x,f),r(h,n,2)):null!=x&&0===x[1].indexOf(f[1])?(h.splice(n,2,[x[0],f[1]],[0,f[1]]),e=x[1].slice(f[1].length),0<e.length&&h.splice(n+2,0,[x[0],e]),r(h,n,3)):e}function f(e){function f(e){return 55296<=e.charCodeAt(e.length-1)&&56319>=e.charCodeAt(e.length-1)}function h(e){return 56320<=e.charCodeAt(0)&&57343>=e.charCodeAt(0)}for(var n=!1,r=2;r<e.length;r+=1)0===e[r-2][0]&&f(e[r-2][1])&&-1===e[r-1][0]&&h(e[r-1][1])&&1===e[r][0]&&h(e[r][1])&&
(n=!0,e[r-1][1]=e[r-2][1].slice(-1)+e[r-1][1],e[r][1]=e[r-2][1].slice(-1)+e[r][1],e[r-2][1]=e[r-2][1].slice(0,-1));if(!n)return e;n=[];for(r=0;r<e.length;r+=1)0<e[r][1].length&&n.push(e[r]);return n}function r(e,f,h){for(h=f+h-1;0<=h&&h>=f-1;h--)if(h+1<e.length){var n=e[h],r=e[h+1];n[0]===r[1]&&e.splice(h,2,[n[0],n[1]+r[1]])}return e}x.INSERT=1;x.DELETE=-1;x.EQUAL=0;e.exports=x},function(e,ba){function x(e){var x=[],w;for(w in e)x.push(w);return x}ba=e.exports="function"===typeof Object.keys?Object.keys:
x;ba.shim=x},function(e,ba){function x(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function da(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}ba="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();ba=e.exports=ba?x:da;ba.supported=x;ba.unsupported=da},function(e){function x(){}function ba(e,n,h){this.fn=e;this.context=n;this.once=
h||!1}function da(){this._events=new x;this._eventsCount=0}var aa=Object.prototype.hasOwnProperty,w="~";Object.create&&(x.prototype=Object.create(null),(new x).__proto__||(w=!1));da.prototype.eventNames=function(){var e=[],n,h;if(0===this._eventsCount)return e;for(h in n=this._events)aa.call(n,h)&&e.push(w?h.slice(1):h);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(n)):e};da.prototype.listeners=function(e,n){e=this._events[w?w+e:e];if(n)return!!e;if(!e)return[];if(e.fn)return[e.fn];
n=0;for(var h=e.length,f=Array(h);n<h;n++)f[n]=e[n].fn;return f};da.prototype.emit=function(e,n,h,f,r,x){var y=w?w+e:e;if(!this._events[y])return!1;y=this._events[y];var z=arguments.length,aa;if(y.fn){y.once&&this.removeListener(e,y.fn,void 0,!0);switch(z){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,n),!0;case 3:return y.fn.call(y.context,n,h),!0;case 4:return y.fn.call(y.context,n,h,f),!0;case 5:return y.fn.call(y.context,n,h,f,r),!0;case 6:return y.fn.call(y.context,
n,h,f,r,x),!0}var ba=1;for(aa=Array(z-1);ba<z;ba++)aa[ba-1]=arguments[ba];y.fn.apply(y.context,aa)}else{var da=y.length;for(ba=0;ba<da;ba++)switch(y[ba].once&&this.removeListener(e,y[ba].fn,void 0,!0),z){case 1:y[ba].fn.call(y[ba].context);break;case 2:y[ba].fn.call(y[ba].context,n);break;case 3:y[ba].fn.call(y[ba].context,n,h);break;case 4:y[ba].fn.call(y[ba].context,n,h,f);break;default:if(!aa){var ca=1;for(aa=Array(z-1);ca<z;ca++)aa[ca-1]=arguments[ca]}y[ba].fn.apply(y[ba].context,aa)}}return!0};
da.prototype.on=function(e,n,h){n=new ba(n,h||this);e=w?w+e:e;this._events[e]?this._events[e].fn?this._events[e]=[this._events[e],n]:this._events[e].push(n):(this._events[e]=n,this._eventsCount++);return this};da.prototype.once=function(e,n,h){n=new ba(n,h||this,!0);e=w?w+e:e;this._events[e]?this._events[e].fn?this._events[e]=[this._events[e],n]:this._events[e].push(n):(this._events[e]=n,this._eventsCount++);return this};da.prototype.removeListener=function(e,n,h,f){e=w?w+e:e;if(!this._events[e])return this;
if(!n)return 0===--this._eventsCount?this._events=new x:delete this._events[e],this;var r=this._events[e];if(r.fn)r.fn!==n||f&&!r.once||h&&r.context!==h||(0===--this._eventsCount?this._events=new x:delete this._events[e]);else{for(var y=0,aa=[],ba=r.length;y<ba;y++)(r[y].fn!==n||f&&!r[y].once||h&&r[y].context!==h)&&aa.push(r[y]);aa.length?this._events[e]=1===aa.length?aa[0]:aa:0===--this._eventsCount?this._events=new x:delete this._events[e]}return this};da.prototype.removeAllListeners=function(e){e?
(e=w?w+e:e,this._events[e]&&(0===--this._eventsCount?this._events=new x:delete this._events[e])):(this._events=new x,this._eventsCount=0);return this};da.prototype.off=da.prototype.removeListener;da.prototype.addListener=da.prototype.on;da.prototype.setMaxListeners=function(){return this};da.prefixed=w;da.EventEmitter=da;"undefined"!==typeof e&&(e.exports=da)},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,
configurable:!0,writable:!0}):e[f]=h;return e}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 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)}function n(e,f,h){return"object"===("undefined"===typeof f?"undefined":na(f))?Object.keys(f).reduce(function(e,h){return n(e,h,f[h])},e):e.reduce(function(e,n){return n.attributes&&n.attributes[f]?e.push(n):e.insert(n.insert,(0,Da.default)({},aa({},f,h),n.attributes))},new qa.default)}function h(e){return e.nodeType!==Node.ELEMENT_NODE?{}:e["__ql-computed-style"]||(e["__ql-computed-style"]=window.getComputedStyle(e))}function f(e,f){for(var h="",n=e.ops.length-1;0<=n&&h.length<f.length;--n){var r=
e.ops[n];if("string"!==typeof r.insert)break;h=r.insert+h}return h.slice(-1*f.length)===f}function r(e){if(0===e.childNodes.length)return!1;e=h(e);return-1<["block","list-item"].indexOf(e.display)}function z(e,f,h){return e.nodeType===e.TEXT_NODE?h.reduce(function(f,h){return h(e,f)},new qa.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],function(n,r){var w=z(r,f,h);r.nodeType===e.ELEMENT_NODE&&(w=f.reduce(function(e,f){return f(r,e)},w),w=(r["__ql-matcher"]||[]).reduce(function(e,
f){return f(r,e)},w));return n.concat(w)},new qa.default):new qa.default}function fa(e,f,h){return n(h,e,!0)}function ea(e,f){var h=va.default.Attributor.Attribute.keys(e),r=va.default.Attributor.Class.keys(e),w=va.default.Attributor.Style.keys(e),x={};h.concat(r).concat(w).forEach(function(f){var h=va.default.query(f,va.default.Scope.ATTRIBUTE);if(null!=h&&(x[h.attrName]=h.value(e),x[h.attrName]))return;h=Ja[f];null==h||h.attrName!==f&&h.keyName!==f||(x[h.attrName]=h.value(e)||void 0);h=za[f];null==
h||h.attrName!==f&&h.keyName!==f||(h=za[f],x[h.attrName]=h.value(e)||void 0)});0<Object.keys(x).length&&(f=n(f,x));return f}function ha(e,f){var h=va.default.query(e);if(null==h)return f;if(h.prototype instanceof va.default.Embed){var r={},w=h.value(e);null!=w&&(r[h.blotName]=w,f=(new qa.default).insert(r,h.formats(e)))}else"function"===typeof h.formats&&(f=n(f,h.blotName,h.formats(e)));return f}function ia(e,h){f(h,"\n")||(r(e)||0<h.length()&&e.nextSibling&&r(e.nextSibling))&&h.insert("\n");return h}
function ma(e,n){if(r(e)&&null!=e.nextElementSibling&&!f(n,"\n\n")){var w=e.offsetHeight+parseFloat(h(e).marginTop)+parseFloat(h(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*w&&n.insert("\n")}return n}function la(e,f){var n=e.data;if("O:P"===e.parentNode.tagName)return f.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return f;if(!h(e.parentNode).whiteSpace.startsWith("pre")){var w=function(e,f){f=f.replace(/[^\u00a0]/g,"");return 1>f.length&&
e?" ":f};n=n.replace(/\r\n/g," ").replace(/\n/g," ");n=n.replace(/\s\s+/g,w.bind(w,!0));if(null==e.previousSibling&&r(e.parentNode)||null!=e.previousSibling&&r(e.previousSibling))n=n.replace(/^\s+/,w.bind(w,!1));if(null==e.nextSibling&&r(e.parentNode)||null!=e.nextSibling&&r(e.nextSibling))n=n.replace(/\s+$/,w.bind(w,!1))}return f.insert(n)}Object.defineProperty(ba,"__esModule",{value:!0});ba.matchText=ba.matchSpacing=ba.matchNewline=ba.matchBlot=ba.matchAttributor=ba.default=void 0;var na="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?"symbol":typeof e},ra=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!f||h.length!==f);n=!0);}catch(Pa){r=!0,w=Pa}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");}}(),sa=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=ca(3);var Da=x(e);e=ca(2);var qa=x(e);e=ca(0);var va=x(e);e=ca(5);var oa=x(e);e=ca(10);e=x(e);var ua=ca(9);ua=x(ua);var Ca=ca(36),ya=ca(37),Ea=ca(13),Aa=x(Ea);Ea=
ca(26);var Fa=ca(38),Ga=ca(39);ca=ca(40);var Ba=(0,e.default)("quill:clipboard"),Ia=[[Node.TEXT_NODE,la],[Node.TEXT_NODE,ia],["br",function(e,h){f(h,"\n")||h.insert("\n");return h}],[Node.ELEMENT_NODE,ia],[Node.ELEMENT_NODE,ha],[Node.ELEMENT_NODE,ma],[Node.ELEMENT_NODE,ea],[Node.ELEMENT_NODE,function(e,f){var r={},w=e.style||{};w.fontStyle&&"italic"===h(e).fontStyle&&(r.italic=!0);w.fontWeight&&(h(e).fontWeight.startsWith("bold")||700<=parseInt(h(e).fontWeight))&&(r.bold=!0);0<Object.keys(r).length&&
(f=n(f,r));0<parseFloat(w.textIndent||0)&&(f=(new qa.default).insert("\t").concat(f));return f}],["li",function(e,h){var n=va.default.query(e);if(null==n||"list-item"!==n.blotName||!f(h,"\n"))return h;n=-1;for(e=e.parentNode;!e.classList.contains("ql-clipboard");)"list"===(va.default.query(e)||{}).blotName&&(n+=1),e=e.parentNode;return 0>=n?h:h.compose((new qa.default).retain(h.length()-1).retain(1,{indent:n}))}],["b",fa.bind(fa,"bold")],["i",fa.bind(fa,"italic")],["style",function(){return new qa.default}]],
Ja=[Ca.AlignAttribute,Fa.DirectionAttribute].reduce(function(e,f){e[f.keyName]=f;return e},{}),za=[Ca.AlignStyle,ya.BackgroundStyle,Ea.ColorStyle,Fa.DirectionStyle,Ga.FontStyle,ca.SizeStyle].reduce(function(e,f){e[f.keyName]=f;return e},{});ca=function(e){function h(e,f){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var n=w(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,f));n.quill.root.addEventListener("paste",n.onPaste.bind(n));n.container=n.quill.addContainer("ql-clipboard");
n.container.setAttribute("contenteditable",!0);n.container.setAttribute("tabindex",-1);n.matchers=[];Ia.concat(n.options.matchers).forEach(function(e){e=ra(e,2);var h=e[1];(f.matchVisual||h!==ma)&&n.addMatcher(e[0],h)});return n}y(h,e);sa(h,[{key:"addMatcher",value:function(e,f){this.matchers.push([e,f])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/>\r?\n +</g,"><"),this.convert();e=this.quill.getFormat(this.quill.selection.savedRange.index);
if(e[Aa.default.blotName]){var h=this.container.innerText;this.container.innerHTML="";return(new qa.default).insert(h,aa({},Aa.default.blotName,e[Aa.default.blotName]))}e=this.prepareMatching();e=ra(e,2);e=z(this.container,e[0],e[1]);f(e,"\n")&&null==e.ops[e.ops.length-1].attributes&&(e=e.compose((new qa.default).retain(e.length()-1).delete(1)));Ba.log("convert",this.container.innerHTML,e);this.container.innerHTML="";return e}},{key:"dangerouslyPasteHTML",value:function(e,f){var h=2<arguments.length&&
void 0!==arguments[2]?arguments[2]:oa.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),f),this.quill.setSelection(0,oa.default.sources.SILENT);else{var n=this.convert(f);this.quill.updateContents((new qa.default).retain(e).concat(n),h);this.quill.setSelection(e+n.length(),oa.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var f=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var h=this.quill.getSelection(),n=(new qa.default).retain(h.index),r=this.quill.scrollingContainer.scrollTop;
this.container.focus();this.quill.selection.update(oa.default.sources.SILENT);setTimeout(function(){n=n.concat(f.convert()).delete(h.length);f.quill.updateContents(n,oa.default.sources.USER);f.quill.setSelection(n.length()-h.length,oa.default.sources.SILENT);f.quill.scrollingContainer.scrollTop=r;f.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var e=this,f=[],h=[];this.matchers.forEach(function(n){n=ra(n,2);var r=n[0],w=n[1];switch(r){case Node.TEXT_NODE:h.push(w);break;case Node.ELEMENT_NODE:f.push(w);
break;default:[].forEach.call(e.container.querySelectorAll(r),function(e){e["__ql-matcher"]=e["__ql-matcher"]||[];e["__ql-matcher"].push(w)})}});return[f,h]}}]);return h}(ua.default);ca.DEFAULTS={matchers:[],matchVisual:!0};ba.default=ca;ba.matchAttributor=ea;ba.matchBlot=ha;ba.matchNewline=ia;ba.matchSpacing=ma;ba.matchText=la},function(e,ba,ca){function x(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(ba,"__esModule",{value:!0});var aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),w=function r(e,h,f){null===e&&(e=Function.prototype);
var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return r(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};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}x(h,e);aa(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}}(ca(6)).default);e.blotName="bold";e.tagName=["STRONG",
"B"];ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):e[f]=h;return e}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 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)}function n(e,f,h){var n=document.createElement("button");n.setAttribute("type","button");n.classList.add("ql-"+f);null!=h&&(n.value=h);e.appendChild(n)}function h(e,h){Array.isArray(h[0])||(h=[h]);h.forEach(function(h){var r=document.createElement("span");r.classList.add("ql-formats");h.forEach(function(e){if("string"===
typeof e)n(r,e);else{var h=Object.keys(e)[0];e=e[h];Array.isArray(e)?f(r,h,e):n(r,h,e)}});e.appendChild(r)})}function f(e,f,h){var n=document.createElement("select");n.classList.add("ql-"+f);h.forEach(function(e){var f=document.createElement("option");!1!==e?f.setAttribute("value",e):f.setAttribute("selected","selected");n.appendChild(f)});e.appendChild(n)}Object.defineProperty(ba,"__esModule",{value:!0});ba.addControls=ba.default=void 0;var r=function(){return function(e,f){if(Array.isArray(e))return e;
if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!f||h.length!==f);n=!0);}catch(oa){r=!0,w=oa}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 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=ca(2);var fa=x(e);e=ca(0);var ea=x(e);e=ca(5);var ha=x(e);e=ca(10);e=x(e);ca=ca(9);ca=x(ca);var ia=(0,e.default)("quill:toolbar");ca=function(e){function f(e,n){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var x=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,n));Array.isArray(x.options.container)?(n=document.createElement("div"),h(n,x.options.container),e.container.parentNode.insertBefore(n,
e.container),x.container=n):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(e){x.addHandler(e,x.options.handlers[e])});[].forEach.call(x.container.querySelectorAll("button, select"),function(e){x.attach(e)});
x.quill.on(ha.default.events.EDITOR_CHANGE,function(e,f){e===ha.default.events.SELECTION_CHANGE&&x.update(f)});x.quill.on(ha.default.events.SCROLL_OPTIMIZE,function(){var e=x.quill.selection.getRange();e=r(e,1)[0];x.update(e)});return x}y(f,e);z(f,[{key:"addHandler",value:function(e,f){this.handlers[e]=f}},{key:"attach",value:function(e){var f=this,h=[].find.call(e.classList,function(e){return 0===e.indexOf("ql-")});if(h){h=h.slice(3);"BUTTON"===e.tagName&&e.setAttribute("type","button");if(null==
this.handlers[h]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[h]){ia.warn("ignoring attaching to disabled format",h,e);return}if(null==ea.default.query(h)){ia.warn("ignoring attaching to nonexistent format",h,e);return}}e.addEventListener("SELECT"===e.tagName?"change":"click",function(n){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"),
n.preventDefault();f.quill.focus();n=f.quill.selection.getRange();n=r(n,1)[0];if(null!=f.handlers[h])f.handlers[h].call(f,w);else if(ea.default.query(h).prototype instanceof ea.default.Embed){w=prompt("Enter "+h);if(!w)return;f.quill.updateContents((new fa.default).retain(n.index).delete(n.length).insert(aa({},h,w)),ha.default.sources.USER)}else f.quill.format(h,w,ha.default.sources.USER);f.update(n)});this.controls.push([h,e])}}},{key:"update",value:function(e){var f=null==e?{}:this.quill.getFormat(e);
this.controls.forEach(function(h){h=r(h,2);var n=h[0];h=h[1];if("SELECT"===h.tagName){var w=void 0;null==e?w=null:null==f[n]?w=h.querySelector("option[selected]"):Array.isArray(f[n])||(n=f[n],"string"===typeof n&&(n=n.replace(/"/g,'\\"')),w=h.querySelector('option[value="'+n+'"]'));null==w?(h.value="",h.selectedIndex=-1):w.selected=!0}else null==e?h.classList.remove("ql-active"):h.hasAttribute("value")?(n=f[n]===h.getAttribute("value")||null!=f[n]&&f[n].toString()===h.getAttribute("value")||null==
f[n]&&!h.getAttribute("value"),h.classList.toggle("ql-active",n)):h.classList.toggle("ql-active",null!=f[n])})}}]);return f}(ca.default);ca.DEFAULTS={};ca.DEFAULTS={container:null,handlers:{clean:function(){var e=this,f=this.quill.getSelection();null!=f&&(0==f.length?(f=this.quill.getFormat(),Object.keys(f).forEach(function(f){null!=ea.default.query(f,ea.default.Scope.INLINE)&&e.quill.format(f,!1)})):this.quill.removeFormat(f,ha.default.sources.USER))},direction:function(e){var f=this.quill.getFormat().align;
"rtl"===e&&null==f?this.quill.format("align","right",ha.default.sources.USER):e||"right"!==f||this.quill.format("align",!1,ha.default.sources.USER);this.quill.format("direction",e,ha.default.sources.USER)},indent:function(e){var f=this.quill.getFormat(this.quill.getSelection()),h=parseInt(f.indent||0);if("+1"===e||"-1"===e)e="+1"===e?1:-1,"rtl"===f.direction&&(e*=-1),this.quill.format("indent",h+e,ha.default.sources.USER)},link:function(e){!0===e&&(e=prompt("Enter link URL:"));this.quill.format("link",
e,ha.default.sources.USER)},list:function(e){var f=this.quill.getFormat(this.quill.getSelection());"check"===e?"checked"===f.list||"unchecked"===f.list?this.quill.format("list",!1,ha.default.sources.USER):this.quill.format("list","unchecked",ha.default.sources.USER):this.quill.format("list",e,ha.default.sources.USER)}}};ba.default=ca;ba.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>'},
function(e,ba,ca){function x(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 aa(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(ba,
"__esModule",{value:!0});var w=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,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),y=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?
void 0:f.call(r)}};e=function(e){function f(e,h){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");e=x(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e));e.label.innerHTML=h;e.container.classList.add("ql-color-picker");[].slice.call(e.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(e){e.classList.add("ql-primary")});return e}aa(f,e);w(f,[{key:"buildItem",value:function(e){var h=y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"buildItem",
this).call(this,e);h.style.backgroundColor=e.getAttribute("value")||"";return h}},{key:"selectItem",value:function(e,h){y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"selectItem",this).call(this,e,h);h=this.label.querySelector(".ql-color-label");e=e?e.getAttribute("data-value")||"":"";h&&("line"===h.tagName?h.style.stroke=e:h.style.fill=e)}}]);return f}(function(e){return e&&e.__esModule?e:{default:e}}(ca(28)).default);ba.default=e},function(e,ba,ca){function x(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 aa(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(ba,"__esModule",{value:!0});var w=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,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),y=function z(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return z(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};e=function(e){function f(e,h){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");
e=x(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e));e.container.classList.add("ql-icon-picker");[].forEach.call(e.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=h[e.getAttribute("data-value")||""]});e.defaultItem=e.container.querySelector(".ql-selected");e.selectItem(e.defaultItem);return e}aa(f,e);w(f,[{key:"selectItem",value:function(e,h){y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"selectItem",this).call(this,e,h);e=e||this.defaultItem;this.label.innerHTML=
e.innerHTML}}]);return f}(function(e){return e&&e.__esModule?e:{default:e}}(ca(28)).default);ba.default=e},function(e,ba){Object.defineProperty(ba,"__esModule",{value:!0});var x=function(){function e(e,w){for(var x=0;x<w.length;x++){var n=w[x];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(x,w,y){w&&e(x.prototype,w);y&&e(x,y);return x}}();e=function(){function e(x,w){var y=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");
this.quill=x;this.boundsContainer=w||document.body;this.root=x.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){y.root.style.marginTop=-1*y.quill.root.scrollTop+"px"});this.hide()}x(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,x=e.bottom+this.quill.root.scrollTop;this.root.style.left=
w+"px";this.root.style.top=x+"px";this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),h=this.root.getBoundingClientRect(),f=0;h.right>n.right&&(f=n.right-h.right,this.root.style.left=w+f+"px");h.left<n.left&&(f=n.left-h.left,this.root.style.left=w+f+"px");h.bottom>n.bottom&&(this.root.style.top=x-(e.bottom-e.top+(h.bottom-h.top))+"px",this.root.classList.add("ql-flip"));return f}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
return e}();ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(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 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(ba,"__esModule",{value:!0});var n=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!f||h.length!==f);n=!0);}catch(ya){r=!0,w=ya}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 va(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 va(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}},f=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=ca(3);e=x(e);var r=ca(8),z=x(r);r=ca(43);var fa=x(r),ea=ca(27),ha=x(ea),ia=ca(15);ca=ca(41);var ma=x(ca),la=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ca=function(e){function h(e,f){aa(this,h);null!=f.modules.toolbar&&null==f.modules.toolbar.container&&(f.modules.toolbar.container=la);e=w(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,f));e.quill.container.classList.add("ql-snow");
return e}y(h,e);f(h,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow");this.buildButtons([].slice.call(e.container.querySelectorAll("button")),ma.default);this.buildPickers([].slice.call(e.container.querySelectorAll("select")),ma.default);this.tooltip=new na(this.quill,this.options.bounds);e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(f,h){e.handlers.link.call(e,!h.format.link)})}}]);return h}(fa.default);ca.DEFAULTS=
(0,e.default)(!0,{},fa.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?(e=this.quill.getSelection(),null!=e&&0!=e.length&&(e=this.quill.getText(e),/^\S+@\S+\.\S+$/.test(e)&&0!==e.indexOf("mailto:")&&(e="mailto:"+e),this.quill.theme.tooltip.edit("link",e))):this.quill.format("link",!1)}}}}});var na=function(e){function r(e,f){aa(this,r);e=w(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,f));e.preview=e.root.querySelector("a.ql-preview");return e}y(r,e);f(r,[{key:"listen",
value:function(){var e=this;h(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(f){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent);f.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(f){if(null!=e.linkRange){var h=e.linkRange;e.restoreFocus();e.quill.formatText(h,"link",!1,z.default.sources.USER);delete e.linkRange}f.preventDefault();
e.hide()});this.quill.on(z.default.events.SELECTION_CHANGE,function(f,h,r){if(null!=f){if(0===f.length&&r===z.default.sources.USER){if(h=e.quill.scroll.descendant(ha.default,f.index),r=n(h,2),h=r[0],r=r[1],null!=h){e.linkRange=new ia.Range(f.index-r,h.length());f=ha.default.formats(h.domNode);e.preview.textContent=f;e.preview.setAttribute("href",f);e.show();e.position(e.quill.getBounds(e.linkRange));return}}else delete e.linkRange;e.hide()}})}},{key:"show",value:function(){h(r.prototype.__proto__||
Object.getPrototypeOf(r.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return r}(r.BaseTooltip);na.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>';ba.default=ca},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(ba,"__esModule",{value:!0});
e=ca(29);e=x(e);var aa=ca(36),w=ca(38),y=ca(64),n=ca(65);n=x(n);var h=ca(66);h=x(h);var f=ca(67),r=x(f),z=ca(37),fa=ca(26),ea=ca(39),ha=ca(40),ia=ca(56);ia=x(ia);var ma=ca(68);ma=x(ma);var la=ca(27);la=x(la);var na=ca(69);na=x(na);var ra=ca(70);ra=x(ra);var sa=ca(71);sa=x(sa);var Da=ca(72);Da=x(Da);var qa=ca(73);qa=x(qa);var va=ca(13),oa=x(va),ua=ca(74);ua=x(ua);var Ca=ca(75);Ca=x(Ca);var ya=ca(57);ya=x(ya);var Ea=ca(41);Ea=x(Ea);var Aa=ca(28);Aa=x(Aa);var Fa=ca(59);Fa=x(Fa);var Ga=ca(60);Ga=x(Ga);
var Ba=ca(61);Ba=x(Ba);var Ia=ca(108);Ia=x(Ia);ca=ca(62);ca=x(ca);e.default.register({"attributors/attribute/direction":w.DirectionAttribute,"attributors/class/align":aa.AlignClass,"attributors/class/background":z.BackgroundClass,"attributors/class/color":fa.ColorClass,"attributors/class/direction":w.DirectionClass,"attributors/class/font":ea.FontClass,"attributors/class/size":ha.SizeClass,"attributors/style/align":aa.AlignStyle,"attributors/style/background":z.BackgroundStyle,"attributors/style/color":fa.ColorStyle,
"attributors/style/direction":w.DirectionStyle,"attributors/style/font":ea.FontStyle,"attributors/style/size":ha.SizeStyle},!0);e.default.register({"formats/align":aa.AlignClass,"formats/direction":w.DirectionClass,"formats/indent":y.IndentClass,"formats/background":z.BackgroundStyle,"formats/color":fa.ColorStyle,"formats/font":ea.FontClass,"formats/size":ha.SizeClass,"formats/blockquote":n.default,"formats/code-block":oa.default,"formats/header":h.default,"formats/list":r.default,"formats/bold":ia.default,
"formats/code":va.Code,"formats/italic":ma.default,"formats/link":la.default,"formats/script":na.default,"formats/strike":ra.default,"formats/underline":sa.default,"formats/image":Da.default,"formats/video":qa.default,"formats/list/item":f.ListItem,"modules/formula":ua.default,"modules/syntax":Ca.default,"modules/toolbar":ya.default,"themes/bubble":Ia.default,"themes/snow":ca.default,"ui/icons":Ea.default,"ui/picker":Aa.default,"ui/icon-picker":Ga.default,"ui/color-picker":Fa.default,"ui/tooltip":Ba.default},
!0);ba.default=e.default},function(e,ba,ca){function x(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(ba,"__esModule",{value:!0});ba.IndentClass=void 0;var aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];
n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),w=function r(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return r(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};e=function(e){return e&&e.__esModule?e:{default:e}}(ca(0));e=new (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}x(h,e);aa(h,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var f=this.value(e)||0;n="+1"===n?f+1:f-1}return 0===n?(this.remove(e),!0):w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"add",this).call(this,
e,n)}},{key:"canAdd",value:function(e,n){return w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"canAdd",this).call(this,e,n)||w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"canAdd",this).call(this,e,parseInt(n))}},{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,
8]});ba.IndentClass=e},function(e,ba,ca){function x(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(ba,"__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}x(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ca(4)).default);e.blotName="blockquote";e.tagName="blockquote";ba.default=e},function(e,ba,ca){function x(e,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+
typeof x);e.prototype=Object.create(x&&x.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(e,x):e.__proto__=x)}Object.defineProperty(ba,"__esModule",{value:!0});var aa=function(){function e(e,n){for(var h=0;h<n.length;h++){var f=n[h];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(e,f.key,f)}}return function(w,n,h){n&&e(w.prototype,n);h&&e(w,h);return w}}();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}x(w,e);aa(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}}(ca(4)).default);e.blotName="header";e.tagName="H1 H2 H3 H4 H5 H6".split(" ");
ba.default=e},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(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 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(ba,"__esModule",{value:!0});ba.default=ba.ListItem=void 0;var n=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 ma(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 ma(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ca(0);var f=x(e);e=ca(4);e=x(e);ca=ca(25);ca=x(ca);var r=function(e){function r(){aa(this,r);return w(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}y(r,e);n(r,[{key:"format",value:function(e,n){e!==z.blotName||n?h(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),
"format",this).call(this,e,n):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():h(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,f){this.parent.isolate(this.offset(this.parent),this.length());if(e===this.parent.statics.blotName)return this.parent.replaceWith(e,f),this;this.parent.unwrap();return h(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),
"replaceWith",this).call(this,e,f)}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:h(r.__proto__||Object.getPrototypeOf(r),"formats",this).call(this,e)}}]);return r}(e.default);r.blotName="list-item";r.tagName="LI";var z=function(e){function x(e){function h(h){if(h.target.parentNode===e){var r=n.statics.formats(e);h=f.default.find(h.target);"checked"===r?h.format("list","unchecked"):"unchecked"===r&&h.format("list","checked")}}aa(this,x);var n=w(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,
e));e.addEventListener("touchstart",h);e.addEventListener("mousedown",h);return n}y(x,e);n(x,null,[{key:"create",value:function(e){var f="ordered"===e?"OL":"UL";f=h(x.__proto__||Object.getPrototypeOf(x),"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":
"bullet"}}]);n(x,[{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,f){e instanceof r?h(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,e,f):(f=null==f?this.length():f.offset(this),
f=this.split(f),f.parent.insertBefore(e,f))}},{key:"optimize",value:function(e){h(x.prototype.__proto__||Object.getPrototypeOf(x.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 n=f.default.create(this.statics.defaultChild);
e.moveChildren(n);this.appendChild(n)}h(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,e)}}]);return x}(ca.default);z.blotName="list";z.scope=f.default.Scope.BLOCK_BLOT;z.tagName=["OL","UL"];z.defaultChild="list-item";z.allowedChildren=[r];ba.ListItem=r;ba.default=z},function(e,ba,ca){function x(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(ba,"__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}x(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ca(56)).default);e.blotName="italic";e.tagName=["EM","I"];ba.default=e},function(e,ba,ca){function x(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(ba,
"__esModule",{value:!0});var aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),w=function r(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return r(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?
void 0:h.call(f)}};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}x(h,e);aa(h,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):w(h.__proto__||
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}}(ca(6)).default);e.blotName="script";e.tagName=["SUB","SUP"];ba.default=e},function(e,ba,ca){function x(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(ba,"__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}x(w,e);
return w}(function(e){return e&&e.__esModule?e:{default:e}}(ca(6)).default);e.blotName="strike";e.tagName="S";ba.default=e},function(e,ba,ca){function x(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(ba,"__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}x(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ca(6)).default);e.blotName="underline";e.tagName="U";ba.default=e},function(e,ba,ca){function x(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(ba,"__esModule",{value:!0});var aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];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}}(),w=function fa(e,n,w){null===e&&(e=Function.prototype);var f=Object.getOwnPropertyDescriptor(e,n);if(void 0===f){if(e=Object.getPrototypeOf(e),null!==e)return fa(e,n,w)}else{if("value"in f)return f.value;n=f.get;return void 0===n?void 0:n.call(w)}};e=function(e){return e&&e.__esModule?e:{default:e}}(ca(0));var y=ca(27),n=["alt","height","width"];ca=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}x(f,e);aa(f,[{key:"format",value:function(e,r){-1<n.indexOf(e)?r?this.domNode.setAttribute(e,r):this.domNode.removeAttribute(e):w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,e,r)}}],[{key:"create",value:function(e){var n=w(f.__proto__||Object.getPrototypeOf(f),
"create",this).call(this,e);"string"===typeof e&&n.setAttribute("src",this.sanitize(e));return n}},{key:"formats",value:function(e){return n.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,y.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]);return f}(e.default.Embed);
ca.blotName="image";ca.tagName="IMG";ba.default=ca},function(e,ba,ca){function x(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(ba,"__esModule",{value:!0});var aa=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=
h[f];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}}(),w=function fa(e,n,w){null===e&&(e=Function.prototype);var f=Object.getOwnPropertyDescriptor(e,n);if(void 0===f){if(e=Object.getPrototypeOf(e),null!==e)return fa(e,n,w)}else{if("value"in f)return f.value;n=f.get;return void 0===n?void 0:n.call(w)}};e=ca(4);var y=function(e){return e&&e.__esModule?e:{default:e}}(ca(27)),
n=["height","width"];ca=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}x(f,e);aa(f,[{key:"format",value:function(e,r){-1<n.indexOf(e)?r?this.domNode.setAttribute(e,r):this.domNode.removeAttribute(e):w(f.prototype.__proto__||
Object.getPrototypeOf(f.prototype),"format",this).call(this,e,r)}}],[{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 n.reduce(function(f,n){e.hasAttribute(n)&&(f[n]=e.getAttribute(n));return f},{})}},{key:"sanitize",value:function(e){return y.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]);
return f}(e.BlockEmbed);ca.blotName="video";ca.className="ql-video";ca.tagName="IFRAME";ba.default=ca},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(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 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(ba,"__esModule",{value:!0});ba.default=ba.FormulaBlot=void 0;var n=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 ma(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 ma(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};e=ca(35);e=x(e);var f=ca(5),r=x(f);ca=ca(9);ca=x(ca);var z=function(e){function f(){aa(this,f);return w(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}y(f,e);n(f,null,[{key:"create",value:function(e){var n=h(f.__proto__||
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";ca=function(e){function f(){aa(this,f);var e=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
return e}y(f,e);n(f,null,[{key:"register",value:function(){r.default.register(z,!0)}}]);return f}(ca.default);ba.FormulaBlot=z;ba.default=ca},function(e,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(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 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(ba,"__esModule",{value:!0});ba.default=ba.CodeToken=ba.CodeBlock=void 0;var n=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 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=ca(0);e=x(e);var f=ca(5),r=x(f);f=ca(9);f=x(f);ca=ca(13);var z=function(e){function f(){aa(this,f);return w(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,
arguments))}y(f,e);n(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}(x(ca).default);z.className="ql-syntax";var ea=new e.default.Attributor.Class("token",
"hljs",{scope:e.default.Scope.INLINE});ca=function(e){function f(e,h){aa(this,f);var n=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));if("function"!==typeof n.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var x=null;n.quill.on(r.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(x);x=setTimeout(function(){n.highlight();x=null},n.options.interval)});n.highlight();return n}y(f,e);n(f,null,[{key:"register",
value:function(){r.default.register(ea,!0);r.default.register(z,!0)}}]);n(f,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(r.default.sources.USER);var f=this.quill.getSelection();this.quill.scroll.descendants(z).forEach(function(f){f.highlight(e.options.highlight)});this.quill.update(r.default.sources.SILENT);null!=f&&this.quill.setSelection(f,r.default.sources.SILENT)}}}]);return f}(f.default);ca.DEFAULTS={highlight:function(){return null==window.hljs?
null:function(e){return window.hljs.highlightAuto(e).value}}(),interval:1E3};ba.CodeBlock=z;ba.CodeToken=ea;ba.default=ca},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>'},
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>'},
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>'},
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>'},
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>'},
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=
'<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>'},
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>'},
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>'},
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>'},
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>'},
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>'},
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>'},
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>'},
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>'},
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>'},
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>'},
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>'},
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,ba,ca){function x(e){return e&&e.__esModule?e:{default:e}}function aa(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 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(ba,"__esModule",{value:!0});ba.default=ba.BubbleTooltip=void 0;var n=function sa(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 sa(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=ca(3);e=x(e);var f=ca(8),r=x(f);f=ca(43);var z=x(f),ea=ca(15);ca=ca(41);var ha=x(ca),ja=[["bold","italic",
"link"],[{header:1},{header:2},"blockquote"]];ca=function(e){function f(e,h){aa(this,f);null!=h.modules.toolbar&&null==h.modules.toolbar.container&&(h.modules.toolbar.container=ja);e=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));e.quill.container.classList.add("ql-bubble");return e}y(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")),
ha.default);this.buildPickers([].slice.call(e.container.querySelectorAll("select")),ha.default)}}]);return f}(z.default);ca.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 f(e,h){aa(this,f);var n=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));n.quill.on(r.default.events.EDITOR_CHANGE,function(e,f,h,w){e===r.default.events.SELECTION_CHANGE&&
(null!=f&&0<f.length&&w===r.default.sources.USER?(n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px",e=n.quill.getLines(f.index,f.length),1===e.length?n.position(n.quill.getBounds(f)):(h=e[e.length-1],e=n.quill.getIndex(h),f=Math.min(h.length()-1,f.index+f.length-e),f=n.quill.getBounds(new ea.Range(e,f)),n.position(f))):document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide())});return n}y(f,e);h(f,[{key:"listen",value:function(){var e=this;n(f.prototype.__proto__||
Object.getPrototypeOf(f.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")});this.quill.on(r.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=n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),
"position",this).call(this,e);var h=this.root.querySelector(".ql-tooltip-arrow");h.style.marginLeft="";if(0===e)return e;h.style.marginLeft=-1*e-h.offsetWidth/2+"px"}}]);return f}(f.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>';ba.BubbleTooltip=ia;ba.default=ca},function(e,ba,ca){e.exports=ca(63)}])["default"]})}).call(this,
e(455).Buffer)}}]);}).call(this || window)