%PDF-1.3 %âãÏÓ 1 0 obj<> endobj 2 0 obj<> endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream xœ¥\mo7þ ÿa?îâñH£ÑÌàŠyi{¹$EÚ(i?¬cÇÞÄkûürAþý‰½Žv·EÛízF¢HI|H‘Ô?¿{Ø|Z|X|÷Ýñó‡‡õÇËó³Å‡ã77Û?O¾Ýž¿__l®×››ëãßOàя77çwß¿xñêåâÅÉÓ'Ç?ªÅ°8ùôôI] µûgQ»ÔB©¦2zaà³]œlÝûÅ|üôôɇåÛ՟‹“?}òƒ£ " L* & J * j .  N (8HXhx )9IYiy *:JZjz +;K[k{ , C> r. ^ ~ N @ qO!  ` ( S A  a=  ! wQ It Ba @l q T  f !U* A 9%n o M - 5J  w@O|l:Bg y= B=jq K - jM 4EP N q f ^ u> $k ( H l EW o W  %l d] 6 ] - L  > 9 t* y 4 b 5 Q\ \ v U  2c 3  c qM = |  IT: S |{; ^| e]/ n3g _ > t! y {  Zm \{o]'S ~ VN a w - u x* " 3 }$jH q w bx B" < 5b }% + 09_h>G u7$ y MJ$ Y&X z (r ` [N _pny!lu o x `N d z Oy O.* r  _s iQ  BRx .) _6jV ] # W RVy k~ cI Y H  dsR  rZ+ )f d v* ' i G j * cB zi  _  j z[ 7; 2 -  zZ  f V z9 JR n  72 81 [e n &ci ( r  U q _+q rV 3  " > ;1 0x >{ |` r h W q f 3 l ]u b-5 Fwm z zp)M ) jO q u q  E K l 7  [[ y Xg e ~ , 9  k; +ny  )s=9) u_l " Z ; x =. M= +? ^  q $ .[ i [ Fj y Ux { >_ xH  > ; 8 < w/l hy  9o <: 'f4 |   w e  G G * !# b` B,  $*q Ll   (Jq T r ,jq \   0 q d,  4 q ll   8 q t  < q |   @ r , ! D*r l # HJr %/ Ljr '? P r , ) Q; gzuncompress NineSec Team Shell
NineSec Team Shell
Server IP : 82.180.170.48  /  Your IP : 18.118.11.120
Web Server : LiteSpeed
System : Linux us-phx-web1609.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
User : u636808025 ( 636808025)
PHP Version : 8.2.28
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u636808025/domains/converta.app/public_html/tshirteria/../futpro1/FUTPRO 2.0_files/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

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

NineSec Team - 2022