@pdftron/pdfjs-express 8.1.1 → 8.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/package.json +1 -1
  2. package/public/core/21.chunk.js +7 -7
  3. package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
  4. package/public/core/ArrayBufferPdfPartRetriever.chunk.js +1 -1
  5. package/public/core/AzurePartRetriever.chunk.js +2 -2
  6. package/public/core/ExternalAnnotationMerger.chunk.js +13 -13
  7. package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
  8. package/public/core/HttpPartRetriever.chunk.js +13 -13
  9. package/public/core/IOSPartRetriever.chunk.js +2 -2
  10. package/public/core/LocalPartRetriever.chunk.js +4 -4
  11. package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
  12. package/public/core/PDFInfoVersion1.chunk.js +16 -16
  13. package/public/core/SelectionInfoOld.chunk.js +14 -14
  14. package/public/core/StreamingPartRetriever.chunk.js +9 -9
  15. package/public/core/WebDBPartRetriever.chunk.js +2 -2
  16. package/public/core/WebViewerServerPartRetriever.chunk.js +31 -29
  17. package/public/core/WinRTPartRetriever.chunk.js +2 -2
  18. package/public/core/legacyOffice/LegacyOfficeWorker.js +1 -1
  19. package/public/core/pdfjs/PDFJSDocumentType.js +803 -808
  20. package/public/core/pdfjs/pdf.worker.js +544 -542
  21. package/public/core/pdfjs/pdfjsexpress.asm.js +1 -1
  22. package/public/core/pdfjs/pdfjsexpress.wasm +0 -0
  23. package/public/core/pikaday.chunk.js +33 -33
  24. package/public/core/vendors.ascii85.chunk.js +6 -6
  25. package/public/core/vendors.ascii85.quill.chunk.js +34 -34
  26. package/public/core/vendors.pako.chunk.js +80 -80
  27. package/public/core/vendors.quill.chunk.js +421 -421
  28. package/public/core/webviewer-core.min.js +2535 -2476
  29. package/public/ui/chunks/10.chunk.js +1 -1
  30. package/public/ui/chunks/100.chunk.js +1 -1
  31. package/public/ui/chunks/101.chunk.js +1 -1
  32. package/public/ui/chunks/102.chunk.js +1 -1
  33. package/public/ui/chunks/103.chunk.js +1 -1
  34. package/public/ui/chunks/104.chunk.js +1 -1
  35. package/public/ui/chunks/105.chunk.js +1 -1
  36. package/public/ui/chunks/106.chunk.js +1 -1
  37. package/public/ui/chunks/107.chunk.js +1 -1
  38. package/public/ui/chunks/108.chunk.js +1 -1
  39. package/public/ui/chunks/109.chunk.js +1 -1
  40. package/public/ui/chunks/11.chunk.js +1 -1
  41. package/public/ui/chunks/110.chunk.js +1 -1
  42. package/public/ui/chunks/111.chunk.js +1 -1
  43. package/public/ui/chunks/112.chunk.js +1 -1
  44. package/public/ui/chunks/113.chunk.js +1 -1
  45. package/public/ui/chunks/114.chunk.js +1 -1
  46. package/public/ui/chunks/115.chunk.js +1 -1
  47. package/public/ui/chunks/116.chunk.js +1 -1
  48. package/public/ui/chunks/117.chunk.js +1 -1
  49. package/public/ui/chunks/118.chunk.js +1 -1
  50. package/public/ui/chunks/119.chunk.js +1 -1
  51. package/public/ui/chunks/12.chunk.js +1 -1
  52. package/public/ui/chunks/120.chunk.js +1 -1
  53. package/public/ui/chunks/121.chunk.js +1 -1
  54. package/public/ui/chunks/122.chunk.js +1 -1
  55. package/public/ui/chunks/123.chunk.js +1 -1
  56. package/public/ui/chunks/124.chunk.js +1 -1
  57. package/public/ui/chunks/125.chunk.js +1 -1
  58. package/public/ui/chunks/126.chunk.js +1 -1
  59. package/public/ui/chunks/127.chunk.js +1 -1
  60. package/public/ui/chunks/128.chunk.js +1 -1
  61. package/public/ui/chunks/129.chunk.js +1 -1
  62. package/public/ui/chunks/13.chunk.js +1 -1
  63. package/public/ui/chunks/130.chunk.js +1 -1
  64. package/public/ui/chunks/131.chunk.js +1 -1
  65. package/public/ui/chunks/132.chunk.js +1 -1
  66. package/public/ui/chunks/133.chunk.js +1 -1
  67. package/public/ui/chunks/134.chunk.js +1 -1
  68. package/public/ui/chunks/135.chunk.js +1 -1
  69. package/public/ui/chunks/136.chunk.js +1 -1
  70. package/public/ui/chunks/137.chunk.js +1 -1
  71. package/public/ui/chunks/138.chunk.js +1 -1
  72. package/public/ui/chunks/139.chunk.js +1 -1
  73. package/public/ui/chunks/14.chunk.js +1 -1
  74. package/public/ui/chunks/140.chunk.js +1 -1
  75. package/public/ui/chunks/141.chunk.js +1 -1
  76. package/public/ui/chunks/142.chunk.js +1 -1
  77. package/public/ui/chunks/143.chunk.js +1 -1
  78. package/public/ui/chunks/144.chunk.js +1 -1
  79. package/public/ui/chunks/145.chunk.js +1 -1
  80. package/public/ui/chunks/15.chunk.js +1 -1
  81. package/public/ui/chunks/16.chunk.js +1 -1
  82. package/public/ui/chunks/17.chunk.js +1 -1
  83. package/public/ui/chunks/18.chunk.js +1 -1
  84. package/public/ui/chunks/19.chunk.js +1 -1
  85. package/public/ui/chunks/20.chunk.js +1 -1
  86. package/public/ui/chunks/21.chunk.js +1 -1
  87. package/public/ui/chunks/22.chunk.js +1 -1
  88. package/public/ui/chunks/23.chunk.js +1 -1
  89. package/public/ui/chunks/24.chunk.js +1 -1
  90. package/public/ui/chunks/25.chunk.js +1 -1
  91. package/public/ui/chunks/26.chunk.js +1 -1
  92. package/public/ui/chunks/27.chunk.js +1 -1
  93. package/public/ui/chunks/28.chunk.js +1 -1
  94. package/public/ui/chunks/29.chunk.js +1 -1
  95. package/public/ui/chunks/30.chunk.js +1 -1
  96. package/public/ui/chunks/31.chunk.js +1 -1
  97. package/public/ui/chunks/32.chunk.js +1 -1
  98. package/public/ui/chunks/33.chunk.js +1 -1
  99. package/public/ui/chunks/34.chunk.js +1 -1
  100. package/public/ui/chunks/35.chunk.js +1 -1
  101. package/public/ui/chunks/36.chunk.js +1 -1
  102. package/public/ui/chunks/37.chunk.js +1 -1
  103. package/public/ui/chunks/38.chunk.js +1 -1
  104. package/public/ui/chunks/39.chunk.js +1 -1
  105. package/public/ui/chunks/4.chunk.js +1 -1
  106. package/public/ui/chunks/40.chunk.js +1 -1
  107. package/public/ui/chunks/41.chunk.js +1 -1
  108. package/public/ui/chunks/42.chunk.js +1 -1
  109. package/public/ui/chunks/43.chunk.js +1 -1
  110. package/public/ui/chunks/44.chunk.js +1 -1
  111. package/public/ui/chunks/45.chunk.js +1 -1
  112. package/public/ui/chunks/46.chunk.js +1 -1
  113. package/public/ui/chunks/47.chunk.js +1 -1
  114. package/public/ui/chunks/48.chunk.js +1 -1
  115. package/public/ui/chunks/49.chunk.js +1 -1
  116. package/public/ui/chunks/5.chunk.js +1 -1
  117. package/public/ui/chunks/50.chunk.js +1 -1
  118. package/public/ui/chunks/51.chunk.js +1 -1
  119. package/public/ui/chunks/52.chunk.js +1 -1
  120. package/public/ui/chunks/53.chunk.js +1 -1
  121. package/public/ui/chunks/54.chunk.js +1 -1
  122. package/public/ui/chunks/55.chunk.js +1 -1
  123. package/public/ui/chunks/56.chunk.js +1 -1
  124. package/public/ui/chunks/57.chunk.js +1 -1
  125. package/public/ui/chunks/58.chunk.js +1 -1
  126. package/public/ui/chunks/59.chunk.js +1 -1
  127. package/public/ui/chunks/6.chunk.js +1 -1
  128. package/public/ui/chunks/60.chunk.js +1 -1
  129. package/public/ui/chunks/61.chunk.js +1 -1
  130. package/public/ui/chunks/62.chunk.js +1 -1
  131. package/public/ui/chunks/63.chunk.js +1 -1
  132. package/public/ui/chunks/64.chunk.js +1 -1
  133. package/public/ui/chunks/65.chunk.js +1 -1
  134. package/public/ui/chunks/66.chunk.js +1 -1
  135. package/public/ui/chunks/67.chunk.js +1 -1
  136. package/public/ui/chunks/68.chunk.js +1 -1
  137. package/public/ui/chunks/69.chunk.js +1 -1
  138. package/public/ui/chunks/7.chunk.js +1 -1
  139. package/public/ui/chunks/70.chunk.js +1 -1
  140. package/public/ui/chunks/71.chunk.js +1 -1
  141. package/public/ui/chunks/72.chunk.js +1 -1
  142. package/public/ui/chunks/73.chunk.js +1 -1
  143. package/public/ui/chunks/74.chunk.js +1 -1
  144. package/public/ui/chunks/75.chunk.js +1 -1
  145. package/public/ui/chunks/76.chunk.js +1 -1
  146. package/public/ui/chunks/77.chunk.js +1 -1
  147. package/public/ui/chunks/78.chunk.js +1 -1
  148. package/public/ui/chunks/79.chunk.js +1 -1
  149. package/public/ui/chunks/8.chunk.js +1 -1
  150. package/public/ui/chunks/80.chunk.js +1 -1
  151. package/public/ui/chunks/81.chunk.js +1 -1
  152. package/public/ui/chunks/82.chunk.js +1 -1
  153. package/public/ui/chunks/83.chunk.js +1 -1
  154. package/public/ui/chunks/84.chunk.js +1 -1
  155. package/public/ui/chunks/85.chunk.js +1 -1
  156. package/public/ui/chunks/86.chunk.js +1 -1
  157. package/public/ui/chunks/87.chunk.js +1 -1
  158. package/public/ui/chunks/88.chunk.js +1 -1
  159. package/public/ui/chunks/89.chunk.js +1 -1
  160. package/public/ui/chunks/9.chunk.js +1 -1
  161. package/public/ui/chunks/90.chunk.js +1 -1
  162. package/public/ui/chunks/91.chunk.js +1 -1
  163. package/public/ui/chunks/92.chunk.js +1 -1
  164. package/public/ui/chunks/93.chunk.js +1 -1
  165. package/public/ui/chunks/94.chunk.js +1 -1
  166. package/public/ui/chunks/95.chunk.js +1 -1
  167. package/public/ui/chunks/96.chunk.js +1 -1
  168. package/public/ui/chunks/97.chunk.js +1 -1
  169. package/public/ui/chunks/98.chunk.js +1 -1
  170. package/public/ui/chunks/99.chunk.js +1 -1
  171. package/public/ui/chunks/mention.chunk.js +1 -1
  172. package/public/ui/chunks/vendors.html2canvas.chunk.js +1 -1
  173. package/public/ui/chunks/vendors.mention.chunk.js +1 -1
  174. package/public/ui/i18n/translation-de.json +133 -63
  175. package/public/ui/i18n/translation-en.json +81 -11
  176. package/public/ui/i18n/translation-es.json +76 -6
  177. package/public/ui/i18n/translation-fr.json +76 -6
  178. package/public/ui/i18n/translation-it.json +76 -6
  179. package/public/ui/i18n/translation-ja.json +76 -6
  180. package/public/ui/i18n/translation-ko.json +260 -191
  181. package/public/ui/i18n/translation-nl.json +76 -6
  182. package/public/ui/i18n/translation-pt_br.json +76 -6
  183. package/public/ui/i18n/translation-ru.json +77 -7
  184. package/public/ui/i18n/translation-zh_cn.json +76 -6
  185. package/public/ui/i18n/translation-zh_tw.json +76 -6
  186. package/public/ui/style.css +39 -28
  187. package/public/ui/webviewer-ui.min.js +15 -15
  188. package/webviewer.min.js +1 -1
@@ -1,422 +1,422 @@
1
1
  /** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
2
- (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{320:function(Da,xa,z){(function(na){(function(ia,ka){Da.exports=ka()})("undefined"!==typeof self?self:this,function(){return function(ia){function ka(ca){if(ea[ca])return ea[ca].exports;var x=ea[ca]={i:ca,l:!1,exports:{}};ia[ca].call(x.exports,x,x.exports,ka);x.l=!0;return x.exports}var ea={};ka.m=ia;ka.c=ea;ka.d=function(ca,x,r){ka.o(ca,x)||Object.defineProperty(ca,x,{configurable:!1,enumerable:!0,get:r})};ka.n=function(ca){var x=
3
- ca&&ca.__esModule?function(){return ca["default"]}:function(){return ca};ka.d(x,"a",x);return x};ka.o=function(ca,x){return Object.prototype.hasOwnProperty.call(ca,x)};ka.p="";return ka(ka.s=109)}([function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(17);var ca=ea(18),x=ea(19),r=ea(45),n=ea(46),a=ea(47),e=ea(48),f=ea(49),h=ea(12),y=ea(32),b=ea(33),w=ea(31);ea=ea(1);ka.default={Scope:ea.Scope,create:ea.create,find:ea.find,query:ea.query,register:ea.register,Container:ia.default,
4
- Format:ca.default,Leaf:x.default,Embed:e.default,Scroll:r.default,Block:a.default,Inline:n.default,Text:f.default,Attributor:{Attribute:h.default,Class:y.default,Style:b.default,Store:w.default}}},function(ia,ka){function ea(b,w){void 0===w&&(w=!1);return null==b?null:null!=b[ka.DATA_KEY]?b[ka.DATA_KEY].blot:w?ea(b.parentNode,w):null}function ca(b,w){void 0===w&&(w=y.ANY);if("string"===typeof b)var aa=h[b]||a[b];else if(b instanceof Text||b.nodeType===Node.TEXT_NODE)aa=h.text;else if("number"===typeof b)b&
5
- y.LEVEL&y.BLOCK?aa=h.block:b&y.LEVEL&y.INLINE&&(aa=h.inline);else if(b instanceof HTMLElement){var fa=(b.getAttribute("class")||"").split(/\s+/),ja;for(ja in fa)if(aa=e[fa[ja]])break;aa=aa||f[b.tagName]}return null==aa?null:w&y.LEVEL&aa.scope&&w&y.TYPE&aa.scope?aa:null}function x(){for(var b=[],w=0;w<arguments.length;w++)b[w]=arguments[w];if(1<b.length)return b.map(function(fa){return x(fa)});var aa=b[0];if("string"!==typeof aa.blotName&&"string"!==typeof aa.attrName)throw new n("Invalid definition");
6
- if("abstract"===aa.blotName)throw new n("Cannot register abstract class");h[aa.blotName||aa.attrName]=aa;"string"===typeof aa.keyName?a[aa.keyName]=aa:(null!=aa.className&&(e[aa.className]=aa),null!=aa.tagName&&(Array.isArray(aa.tagName)?aa.tagName=aa.tagName.map(function(fa){return fa.toUpperCase()}):aa.tagName=aa.tagName.toUpperCase(),(Array.isArray(aa.tagName)?aa.tagName:[aa.tagName]).forEach(function(fa){if(null==f[fa]||null==aa.className)f[fa]=aa})));return aa}var r=this&&this.__extends||function(){var b=
7
- Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,aa){w.__proto__=aa}||function(w,aa){for(var fa in aa)aa.hasOwnProperty(fa)&&(w[fa]=aa[fa])};return function(w,aa){function fa(){this.constructor=w}b(w,aa);w.prototype=null===aa?Object.create(aa):(fa.prototype=aa.prototype,new fa)}}();Object.defineProperty(ka,"__esModule",{value:!0});var n=function(b){function w(aa){aa="[Parchment] "+aa;var fa=b.call(this,aa)||this;fa.message=aa;fa.name=fa.constructor.name;return fa}r(w,b);return w}(Error);
8
- ka.ParchmentError=n;var a={},e={},f={},h={};ka.DATA_KEY="__blot";var y;(function(b){b[b.TYPE=3]="TYPE";b[b.LEVEL=12]="LEVEL";b[b.ATTRIBUTE=13]="ATTRIBUTE";b[b.BLOT=14]="BLOT";b[b.INLINE=7]="INLINE";b[b.BLOCK=11]="BLOCK";b[b.BLOCK_BLOT=10]="BLOCK_BLOT";b[b.INLINE_BLOT=6]="INLINE_BLOT";b[b.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";b[b.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";b[b.ANY=15]="ANY"})(y=ka.Scope||(ka.Scope={}));ka.create=function(b,w){var aa=ca(b);if(null==aa)throw new n("Unable to create "+b+" blot");
9
- b=b instanceof Node||b.nodeType===Node.TEXT_NODE?b:aa.create(w);return new aa(b,w)};ka.find=ea;ka.query=ca;ka.register=x},function(ia,ka,ea){function ca(f){Array.isArray(f)?this.ops=f:null!=f&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}var x=ea(51),r=ea(11),n=ea(3),a=ea(20),e=String.fromCharCode(0);ca.prototype.insert=function(f,h){var y={};if(0===f.length)return this;y.insert=f;null!=h&&"object"===typeof h&&0<Object.keys(h).length&&(y.attributes=h);return this.push(y)};ca.prototype["delete"]=
10
- function(f){return 0>=f?this:this.push({"delete":f})};ca.prototype.retain=function(f,h){if(0>=f)return this;f={retain:f};null!=h&&"object"===typeof h&&0<Object.keys(h).length&&(f.attributes=h);return this.push(f)};ca.prototype.push=function(f){var h=this.ops.length,y=this.ops[h-1];f=n(!0,{},f);if("object"===typeof y){if("number"===typeof f["delete"]&&"number"===typeof y["delete"])return this.ops[h-1]={"delete":y["delete"]+f["delete"]},this;if("number"===typeof y["delete"]&&null!=f.insert&&(--h,y=
11
- this.ops[h-1],"object"!==typeof y))return this.ops.unshift(f),this;if(r(f.attributes,y.attributes)){if("string"===typeof f.insert&&"string"===typeof y.insert)return this.ops[h-1]={insert:y.insert+f.insert},"object"===typeof f.attributes&&(this.ops[h-1].attributes=f.attributes),this;if("number"===typeof f.retain&&"number"===typeof y.retain)return this.ops[h-1]={retain:y.retain+f.retain},"object"===typeof f.attributes&&(this.ops[h-1].attributes=f.attributes),this}}h===this.ops.length?this.ops.push(f):
12
- this.ops.splice(h,0,f);return this};ca.prototype.chop=function(){var f=this.ops[this.ops.length-1];f&&f.retain&&!f.attributes&&this.ops.pop();return this};ca.prototype.filter=function(f){return this.ops.filter(f)};ca.prototype.forEach=function(f){this.ops.forEach(f)};ca.prototype.map=function(f){return this.ops.map(f)};ca.prototype.partition=function(f){var h=[],y=[];this.forEach(function(b){(f(b)?h:y).push(b)});return[h,y]};ca.prototype.reduce=function(f,h){return this.ops.reduce(f,h)};ca.prototype.changeLength=
13
- function(){return this.reduce(function(f,h){return h.insert?f+a.length(h):h.delete?f-h.delete:f},0)};ca.prototype.length=function(){return this.reduce(function(f,h){return f+a.length(h)},0)};ca.prototype.slice=function(f,h){f=f||0;"number"!==typeof h&&(h=Infinity);for(var y=[],b=a.iterator(this.ops),w=0;w<h&&b.hasNext();){if(w<f)var aa=b.next(f-w);else aa=b.next(h-w),y.push(aa);w+=a.length(aa)}return new ca(y)};ca.prototype.compose=function(f){var h=a.iterator(this.ops);f=a.iterator(f.ops);var y=
14
- [],b=f.peek();if(null!=b&&"number"===typeof b.retain&&null==b.attributes){for(var w=b.retain;"insert"===h.peekType()&&h.peekLength()<=w;)w-=h.peekLength(),y.push(h.next());0<b.retain-w&&f.next(b.retain-w)}for(y=new ca(y);h.hasNext()||f.hasNext();)if("insert"===f.peekType())y.push(f.next());else if("delete"===h.peekType())y.push(h.next());else{w=Math.min(h.peekLength(),f.peekLength());var aa=h.next(w),fa=f.next(w);if("number"===typeof fa.retain){b={};"number"===typeof aa.retain?b.retain=w:b.insert=
15
- aa.insert;if(w=a.attributes.compose(aa.attributes,fa.attributes,"number"===typeof aa.retain))b.attributes=w;y.push(b);if(!f.hasNext()&&r(y.ops[y.ops.length-1],b))return h=new ca(h.rest()),y.concat(h).chop()}else"number"===typeof fa["delete"]&&"number"===typeof aa.retain&&y.push(fa)}return y.chop()};ca.prototype.concat=function(f){var h=new ca(this.ops.slice());0<f.ops.length&&(h.push(f.ops[0]),h.ops=h.ops.concat(f.ops.slice(1)));return h};ca.prototype.diff=function(f,h){if(this.ops===f.ops)return new ca;
16
- var y=[this,f].map(function(fa){return fa.map(function(ja){if(null!=ja.insert)return"string"===typeof ja.insert?ja.insert:e;throw Error("diff() called "+(fa===f?"on":"with")+" non-document");}).join("")}),b=new ca;h=x(y[0],y[1],h);var w=a.iterator(this.ops),aa=a.iterator(f.ops);h.forEach(function(fa){for(var ja=fa[1].length;0<ja;){var ba=0;switch(fa[0]){case x.INSERT:ba=Math.min(aa.peekLength(),ja);b.push(aa.next(ba));break;case x.DELETE:ba=Math.min(ja,w.peekLength());w.next(ba);b["delete"](ba);break;
17
- case x.EQUAL:ba=Math.min(w.peekLength(),aa.peekLength(),ja);var ha=w.next(ba),da=aa.next(ba);if(r(ha.insert,da.insert))b.retain(ba,a.attributes.diff(ha.attributes,da.attributes));else b.push(da)["delete"](ba)}ja-=ba}});return b.chop()};ca.prototype.eachLine=function(f,h){h=h||"\n";for(var y=a.iterator(this.ops),b=new ca,w=0;y.hasNext();){if("insert"!==y.peekType())return;var aa=y.peek(),fa=a.length(aa)-y.peekLength();aa="string"===typeof aa.insert?aa.insert.indexOf(h,fa)-fa:-1;if(0>aa)b.push(y.next());
18
- else if(0<aa)b.push(y.next(aa));else{if(!1===f(b,y.next(1).attributes||{},w))return;w+=1;b=new ca}}0<b.length()&&f(b,{},w)};ca.prototype.transform=function(f,h){h=!!h;if("number"===typeof f)return this.transformPosition(f,h);var y=a.iterator(this.ops);f=a.iterator(f.ops);for(var b=new ca;y.hasNext()||f.hasNext();)if("insert"!==y.peekType()||!h&&"insert"===f.peekType())if("insert"===f.peekType())b.push(f.next());else{var w=Math.min(y.peekLength(),f.peekLength()),aa=y.next(w),fa=f.next(w);aa["delete"]||
19
- (fa["delete"]?b.push(fa):b.retain(w,a.attributes.transform(aa.attributes,fa.attributes,h)))}else b.retain(a.length(y.next()));return b.chop()};ca.prototype.transformPosition=function(f,h){h=!!h;for(var y=a.iterator(this.ops),b=0;y.hasNext()&&b<=f;){var w=y.peekLength(),aa=y.peekType();y.next();"delete"===aa?f-=Math.min(w,f-b):("insert"===aa&&(b<f||!h)&&(f+=w),b+=w)}return f};ia.exports=ca},function(ia){function ka(f,h){if("__proto__"===h){if(!r.call(f,h))return;if(e)return e(f,h).value}return f[h]}
20
- function ea(f,h){a&&"__proto__"===h.name?a(f,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):f[h.name]=h.newValue}function ca(f){if(!f||"[object Object]"!==n.call(f))return!1;var h=r.call(f,"constructor"),y=f.constructor&&f.constructor.prototype&&r.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!h&&!y)return!1;for(var b in f);return"undefined"===typeof b||r.call(f,b)}function x(f){return"function"===typeof Array.isArray?Array.isArray(f):"[object Array]"===n.call(f)}
21
- var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,e=Object.getOwnPropertyDescriptor;ia.exports=function h(){var y,b,w=arguments[0],aa=1,fa=arguments.length,ja=!1;"boolean"===typeof w&&(ja=w,w=arguments[1]||{},aa=2);if(null==w||"object"!==typeof w&&"function"!==typeof w)w={};for(;aa<fa;++aa){var ba=arguments[aa];if(null!=ba)for(y in ba){var ha=ka(w,y);var da=ka(ba,y);w!==da&&(ja&&da&&(ca(da)||(b=x(da)))?(b?(b=!1,ha=ha&&x(ha)?ha:[]):ha=ha&&ca(ha)?ha:{},ea(w,{name:y,
22
- newValue:h(ja,ha,da)})):"undefined"!==typeof da&&ea(w,{name:y,newValue:da}))}}return w}},function(ia,ka,ea){function ca(ja){return ja&&ja.__esModule?ja:{default:ja}}function x(ja,ba){if(!(ja instanceof ba))throw new TypeError("Cannot call a class as a function");}function r(ja,ba){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ba||"object"!==typeof ba&&"function"!==typeof ba?ja:ba}function n(ja,ba){if("function"!==typeof ba&&null!==ba)throw new TypeError("Super expression must either be null or a function, not "+
23
- typeof ba);ja.prototype=Object.create(ba&&ba.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,ba):ja.__proto__=ba)}function a(ja){var ba=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==ja)return ba;"function"===typeof ja.formats&&(ba=(0,h.default)(ba,ja.formats()));return null==ja.parent||"scroll"==ja.parent.blotName||ja.parent.statics.scope!==ja.statics.scope?ba:a(ja.parent,ba)}Object.defineProperty(ka,
24
- "__esModule",{value:!0});ka.default=ka.BlockEmbed=ka.bubbleFormats=void 0;var e=function(){function ja(ba,ha){for(var da=0;da<ha.length;da++){var la=ha[da];la.enumerable=la.enumerable||!1;la.configurable=!0;"value"in la&&(la.writable=!0);Object.defineProperty(ba,la.key,la)}}return function(ba,ha,da){ha&&ja(ba.prototype,ha);da&&ja(ba,da);return ba}}(),f=function la(ba,ha,da){null===ba&&(ba=Function.prototype);var ua=Object.getOwnPropertyDescriptor(ba,ha);if(void 0===ua){if(ba=Object.getPrototypeOf(ba),
25
- null!==ba)return la(ba,ha,da)}else{if("value"in ua)return ua.value;ha=ua.get;return void 0===ha?void 0:ha.call(da)}};ia=ea(3);var h=ca(ia);ia=ea(2);var y=ca(ia);ia=ea(0);var b=ca(ia);ia=ea(16);var w=ca(ia);ia=ea(6);ia=ca(ia);ea=ea(7);ea=ca(ea);var aa=function(ba){function ha(){x(this,ha);return r(this,(ha.__proto__||Object.getPrototypeOf(ha)).apply(this,arguments))}n(ha,ba);e(ha,[{key:"attach",value:function(){f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"attach",this).call(this);
26
- this.attributes=new b.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new y.default).insert(this.value(),(0,h.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(da,la){da=b.default.query(da,b.default.Scope.BLOCK_ATTRIBUTE);null!=da&&this.attributes.attribute(da,la)}},{key:"formatAt",value:function(da,la,ua,ma){this.format(ua,ma)}},{key:"insertAt",value:function(da,la,ua){"string"===typeof la&&la.endsWith("\n")?(ua=b.default.create(fa.blotName),
27
- this.parent.insertBefore(ua,0===da?this:this.next),ua.insertAt(0,la.slice(0,-1))):f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertAt",this).call(this,da,la,ua)}}]);return ha}(b.default.Embed);aa.scope=b.default.Scope.BLOCK_BLOT;var fa=function(ba){function ha(da){x(this,ha);da=r(this,(ha.__proto__||Object.getPrototypeOf(ha)).call(this,da));da.cache={};return da}n(ha,ba);e(ha,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(b.default.Leaf).reduce(function(da,
28
- la){return 0===la.length()?da:da.insert(la.value(),a(la))},new y.default).insert("\n",a(this)));return this.cache.delta}},{key:"deleteAt",value:function(da,la){f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"deleteAt",this).call(this,da,la);this.cache={}}},{key:"formatAt",value:function(da,la,ua,ma){0>=la||(b.default.query(ua,b.default.Scope.BLOCK)?da+la===this.length()&&this.format(ua,ma):f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"formatAt",this).call(this,da,Math.min(la,
29
- this.length()-da-1),ua,ma),this.cache={})}},{key:"insertAt",value:function(da,la,ua){if(null!=ua)return f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertAt",this).call(this,da,la,ua);if(0!==la.length){la=la.split("\n");ua=la.shift();0<ua.length&&(da<this.length()-1||null==this.children.tail?f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertAt",this).call(this,Math.min(da,this.length()-1),ua):this.children.tail.insertAt(this.children.tail.length(),ua),this.cache=
30
- {});var ma=this;la.reduce(function(ra,oa){ma=ma.split(ra,!0);ma.insertAt(0,oa);return oa.length},da+ua.length)}}},{key:"insertBefore",value:function(da,la){var ua=this.children.head;f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertBefore",this).call(this,da,la);ua instanceof w.default&&ua.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"length",this).call(this)+1);
31
- return this.cache.length}},{key:"moveChildren",value:function(da,la){f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"moveChildren",this).call(this,da,la);this.cache={}}},{key:"optimize",value:function(da){f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"optimize",this).call(this,da);this.cache={}}},{key:"path",value:function(da){return f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"path",this).call(this,da,!0)}},{key:"removeChild",value:function(da){f(ha.prototype.__proto__||
32
- Object.getPrototypeOf(ha.prototype),"removeChild",this).call(this,da);this.cache={}}},{key:"split",value:function(da){var la=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(la&&(0===da||da>=this.length()-1)){la=this.clone();if(0===da)return this.parent.insertBefore(la,this),this;this.parent.insertBefore(la,this.next);return la}la=f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"split",this).call(this,da,la);this.cache={};return la}}]);return ha}(b.default.Block);fa.blotName=
33
- "block";fa.tagName="P";fa.defaultChild="break";fa.allowedChildren=[ia.default,b.default.Embed,ea.default];ka.bubbleFormats=a;ka.BlockEmbed=aa;ka.default=fa},function(ia,ka,ea){function ca(oa){return oa&&oa.__esModule?oa:{default:oa}}function x(oa,sa,ta){sa in oa?Object.defineProperty(oa,sa,{value:ta,enumerable:!0,configurable:!0,writable:!0}):oa[sa]=ta;return oa}function r(oa,sa){sa=(0,da.default)(!0,{container:oa,modules:{clipboard:!0,keyboard:!0,history:!0}},sa);if(sa.theme&&sa.theme!==ra.DEFAULTS.theme){if(sa.theme=
34
- ra.import("themes/"+sa.theme),null==sa.theme)throw Error("Invalid theme "+sa.theme+". Did you register it?");}else sa.theme=ua.default;oa=(0,da.default)(!0,{},sa.theme.DEFAULTS);[oa,sa].forEach(function(qa){qa.modules=qa.modules||{};Object.keys(qa.modules).forEach(function(wa){!0===qa.modules[wa]&&(qa.modules[wa]={})})});var ta=Object.keys(oa.modules).concat(Object.keys(sa.modules)).reduce(function(qa,wa){var Aa=ra.import("modules/"+wa);null==Aa?ma.error("Cannot load "+wa+" module. Are you sure you registered it?"):
35
- qa[wa]=Aa.DEFAULTS||{};return qa},{});null!=sa.modules&&sa.modules.toolbar&&sa.modules.toolbar.constructor!==Object&&(sa.modules.toolbar={container:sa.modules.toolbar});sa=(0,da.default)(!0,{},ra.DEFAULTS,{modules:ta},oa,sa);["bounds","container","scrollingContainer"].forEach(function(qa){"string"===typeof sa[qa]&&(sa[qa]=document.querySelector(sa[qa]))});sa.modules=Object.keys(sa.modules).reduce(function(qa,wa){sa.modules[wa]&&(qa[wa]=sa.modules[wa]);return qa},{});return sa}function n(oa,sa,ta,
36
- qa){if(this.options.strict&&!this.isEnabled()&&sa===aa.default.sources.USER)return new b.default;var wa=null==ta?null:this.getSelection(),Aa=this.editor.delta;oa=oa();null!=wa&&(!0===ta&&(ta=wa.index),null==qa?wa=e(wa,oa,sa):0!==qa&&(wa=e(wa,ta,qa,sa)),this.setSelection(wa,aa.default.sources.SILENT));if(0<oa.length()){var Ga;ta=[aa.default.events.TEXT_CHANGE,oa,Aa,sa];(Ga=this.emitter).emit.apply(Ga,[aa.default.events.EDITOR_CHANGE].concat(ta));if(sa!==aa.default.sources.SILENT){var Na;(Na=this.emitter).emit.apply(Na,
37
- ta)}}return oa}function a(oa,sa,ta,qa,wa){var Aa={};"number"===typeof oa.index&&"number"===typeof oa.length?("number"!==typeof sa?(wa=qa,qa=ta,ta=sa,sa=oa.length):sa=oa.length,oa=oa.index):"number"!==typeof sa&&(wa=qa,qa=ta,ta=sa,sa=0);"object"===("undefined"===typeof ta?"undefined":f(ta))?(Aa=ta,wa=qa):"string"===typeof ta&&(null!=qa?Aa[ta]=qa:wa=ta);wa=wa||aa.default.sources.API;return[oa,sa,Aa,wa]}function e(oa,sa,ta,qa){if(null==oa)return null;var wa=void 0,Aa=void 0;sa instanceof b.default?(wa=
38
- [oa.index,oa.index+oa.length].map(function(Ga){return sa.transformPosition(Ga,qa!==aa.default.sources.USER)}),oa=h(wa,2),wa=oa[0],Aa=oa[1]):(wa=[oa.index,oa.index+oa.length].map(function(Ga){return Ga<sa||Ga===sa&&qa===aa.default.sources.USER?Ga:0<=ta?Ga+ta:Math.max(sa,Ga+ta)}),oa=h(wa,2),wa=oa[0],Aa=oa[1]);return new ba.Range(wa,Aa-wa)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.overload=ka.expandConfig=void 0;var f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?
39
- function(oa){return typeof oa}:function(oa){return oa&&"function"===typeof Symbol&&oa.constructor===Symbol&&oa!==Symbol.prototype?"symbol":typeof oa},h=function(){return function(oa,sa){if(Array.isArray(oa))return oa;if(Symbol.iterator in Object(oa)){var ta=[],qa=!0,wa=!1,Aa=void 0;try{for(var Ga=oa[Symbol.iterator](),Na;!(qa=(Na=Ga.next()).done)&&(ta.push(Na.value),!sa||ta.length!==sa);qa=!0);}catch(Ha){wa=!0,Aa=Ha}finally{try{if(!qa&&Ga["return"])Ga["return"]()}finally{if(wa)throw Aa;}}return ta}throw new TypeError("Invalid attempt to destructure non-iterable instance");
40
- }}(),y=function(){function oa(sa,ta){for(var qa=0;qa<ta.length;qa++){var wa=ta[qa];wa.enumerable=wa.enumerable||!1;wa.configurable=!0;"value"in wa&&(wa.writable=!0);Object.defineProperty(sa,wa.key,wa)}}return function(sa,ta,qa){ta&&oa(sa.prototype,ta);qa&&oa(sa,qa);return sa}}();ea(50);ia=ea(2);var b=ca(ia);ia=ea(14);var w=ca(ia);ia=ea(8);var aa=ca(ia);ia=ea(9);ia=ca(ia);var fa=ea(0),ja=ca(fa),ba=ea(15),ha=ca(ba);fa=ea(3);var da=ca(fa);fa=ea(10);var la=ca(fa);ea=ea(34);var ua=ca(ea),ma=(0,la.default)("quill"),
41
- ra=function(){function oa(sa){var ta=this,qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof oa))throw new TypeError("Cannot call a class as a function");this.options=r(sa,qa);this.container=this.options.container;if(null==this.container)return ma.error("Invalid Quill container",sa);this.options.debug&&oa.debug(this.options.debug);qa=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";this.container.__quill=this;this.root=
42
- 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 aa.default;this.scroll=ja.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new w.default(this.scroll);this.selection=new ha.default(this.scroll,this.emitter);this.theme=new this.options.theme(this,this.options);this.keyboard=this.theme.addModule("keyboard");this.clipboard=
43
- this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.theme.init();this.emitter.on(aa.default.events.EDITOR_CHANGE,function(wa){wa===aa.default.events.TEXT_CHANGE&&ta.root.classList.toggle("ql-blank",ta.editor.isBlank())});this.emitter.on(aa.default.events.SCROLL_UPDATE,function(wa,Aa){var Ga=ta.selection.lastRange,Na=Ga&&0===Ga.length?Ga.index:void 0;n.call(ta,function(){return ta.editor.update(null,Aa,Na)},wa)});qa=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+
44
- qa+"<p><br></p></div>");this.setContents(qa);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);this.options.readOnly&&this.disable()}y(oa,null,[{key:"debug",value:function(sa){!0===sa&&(sa="log");la.default.level(sa)}},{key:"find",value:function(sa){return sa.__quill||ja.default.find(sa)}},{key:"import",value:function(sa){null==this.imports[sa]&&ma.error("Cannot import "+sa+". Are you sure it was registered?");return this.imports[sa]}},
45
- {key:"register",value:function(sa,ta){var qa=this,wa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof sa?(wa=sa.attrName||sa.blotName,"string"===typeof wa?this.register("formats/"+wa,sa,ta):Object.keys(sa).forEach(function(Aa){qa.register(Aa,sa[Aa],ta)})):(null==this.imports[sa]||wa||ma.warn("Overwriting "+sa+" with",ta),this.imports[sa]=ta,(sa.startsWith("blots/")||sa.startsWith("formats/"))&&"abstract"!==ta.blotName?ja.default.register(ta):sa.startsWith("modules")&&"function"===
46
- typeof ta.register&&ta.register())}}]);y(oa,[{key:"addContainer",value:function(sa){var ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof sa){var qa=sa;sa=document.createElement("div");sa.classList.add(qa)}this.container.insertBefore(sa,ta);return sa}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(sa,ta,qa){var wa=this;qa=a(sa,ta,qa);qa=h(qa,4);sa=qa[0];ta=qa[1];qa=qa[3];return n.call(this,function(){return wa.editor.deleteText(sa,
47
- ta)},qa,sa,-1*ta)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var sa=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(sa);this.container.classList.toggle("ql-disabled",!sa)}},{key:"focus",value:function(){var sa=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=sa;this.scrollIntoView()}},{key:"format",value:function(sa,ta){var qa=this;return n.call(this,function(){var wa=qa.getSelection(!0),
48
- Aa=new b.default;if(null==wa)return Aa;if(ja.default.query(sa,ja.default.Scope.BLOCK))Aa=qa.editor.formatLine(wa.index,wa.length,x({},sa,ta));else{if(0===wa.length)return qa.selection.format(sa,ta),Aa;Aa=qa.editor.formatText(wa.index,wa.length,x({},sa,ta))}qa.setSelection(wa,aa.default.sources.SILENT);return Aa},2<arguments.length&&void 0!==arguments[2]?arguments[2]:aa.default.sources.API)}},{key:"formatLine",value:function(sa,ta,qa,wa,Aa){var Ga=this,Na=void 0;qa=a(sa,ta,qa,wa,Aa);qa=h(qa,4);sa=
49
- qa[0];ta=qa[1];Na=qa[2];Aa=qa[3];return n.call(this,function(){return Ga.editor.formatLine(sa,ta,Na)},Aa,sa,0)}},{key:"formatText",value:function(sa,ta,qa,wa,Aa){var Ga=this,Na=void 0;qa=a(sa,ta,qa,wa,Aa);qa=h(qa,4);sa=qa[0];ta=qa[1];Na=qa[2];Aa=qa[3];return n.call(this,function(){return Ga.editor.formatText(sa,ta,Na)},Aa,sa,0)}},{key:"getBounds",value:function(sa){var ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;ta="number"===typeof sa?this.selection.getBounds(sa,ta):this.selection.getBounds(sa.index,
50
- sa.length);var qa=this.container.getBoundingClientRect();return{bottom:ta.bottom-qa.top,height:ta.height,left:ta.left-qa.left,right:ta.right-qa.left,top:ta.top-qa.top,width:ta.width}}},{key:"getContents",value:function(){var sa=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-sa;sa=a(sa,ta);ta=h(sa,2);sa=ta[0];ta=ta[1];return this.editor.getContents(sa,ta)}},{key:"getFormat",value:function(){var sa=0<arguments.length&&
51
- void 0!==arguments[0]?arguments[0]:this.getSelection(!0),ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof sa?this.editor.getFormat(sa,ta):this.editor.getFormat(sa.index,sa.length)}},{key:"getIndex",value:function(sa){return sa.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(sa){return this.scroll.leaf(sa)}},{key:"getLine",value:function(sa){return this.scroll.line(sa)}},{key:"getLines",value:function(){var sa=
52
- 0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof sa?this.scroll.lines(sa.index,sa.length):this.scroll.lines(sa,ta)}},{key:"getModule",value:function(sa){return this.theme.modules[sa]}},{key:"getSelection",value:function(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.focus();this.update();return this.selection.getRange()[0]}},{key:"getText",value:function(){var sa=0<arguments.length&&
53
- void 0!==arguments[0]?arguments[0]:0,ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-sa;sa=a(sa,ta);ta=h(sa,2);sa=ta[0];ta=ta[1];return this.editor.getText(sa,ta)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(sa,ta,qa){var wa=this;return n.call(this,function(){return wa.editor.insertEmbed(sa,ta,qa)},3<arguments.length&&void 0!==arguments[3]?arguments[3]:oa.sources.API,sa)}},{key:"insertText",value:function(sa,ta,
54
- qa,wa,Aa){var Ga=this,Na=void 0;qa=a(sa,0,qa,wa,Aa);qa=h(qa,4);sa=qa[0];Na=qa[2];Aa=qa[3];return n.call(this,function(){return Ga.editor.insertText(sa,ta,Na)},Aa,sa,ta.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,
55
- arguments)}},{key:"pasteHTML",value:function(sa,ta,qa){this.clipboard.dangerouslyPasteHTML(sa,ta,qa)}},{key:"removeFormat",value:function(sa,ta,qa){var wa=this;qa=a(sa,ta,qa);qa=h(qa,4);sa=qa[0];ta=qa[1];qa=qa[3];return n.call(this,function(){return wa.editor.removeFormat(sa,ta)},qa,sa)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(sa){var ta=this;return n.call(this,function(){sa=new b.default(sa);var qa=ta.getLength();
56
- qa=ta.editor.deleteText(0,qa);var wa=ta.editor.applyDelta(sa),Aa=wa.ops[wa.ops.length-1];null!=Aa&&"string"===typeof Aa.insert&&"\n"===Aa.insert[Aa.insert.length-1]&&(ta.editor.deleteText(ta.getLength()-1,1),wa.delete(1));return qa.compose(wa)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:aa.default.sources.API)}},{key:"setSelection",value:function(sa,ta,qa){null==sa?this.selection.setRange(null,ta||oa.sources.API):(sa=a(sa,ta,qa),qa=h(sa,4),sa=qa[0],ta=qa[1],qa=qa[3],this.selection.setRange(new ba.Range(sa,
57
- ta),qa),qa!==aa.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(sa){var ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:aa.default.sources.API,qa=(new b.default).insert(sa);return this.setContents(qa,ta)}},{key:"update",value:function(){var sa=0<arguments.length&&void 0!==arguments[0]?arguments[0]:aa.default.sources.USER,ta=this.scroll.update(sa);this.selection.update(sa);return ta}},{key:"updateContents",value:function(sa){var ta=
58
- this,qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:aa.default.sources.API;return n.call(this,function(){sa=new b.default(sa);return ta.editor.applyDelta(sa,qa)},qa,!0)}}]);return oa}();ra.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};ra.events=aa.default.events;ra.sources=aa.default.sources;ra.version="1.3.7";ra.imports={delta:b.default,parchment:ja.default,"core/module":ia.default,"core/theme":ua.default};ka.expandConfig=
59
- r;ka.overload=a;ka.default=ra},function(ia,ka,ea){function ca(a,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function a(e,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=
60
- y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(e,y.key,y)}}return function(e,f,h){f&&a(e.prototype,f);h&&a(e,h);return e}}(),r=function y(e,f,h){null===e&&(e=Function.prototype);var b=Object.getOwnPropertyDescriptor(e,f);if(void 0===b){if(e=Object.getPrototypeOf(e),null!==e)return y(e,f,h)}else{if("value"in b)return b.value;f=b.get;return void 0===f?void 0:f.call(h)}};ia=(ia=ea(7))&&ia.__esModule?ia:{default:ia};var n=(ea=ea(0))&&ea.__esModule?ea:{default:ea};
61
- ea=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var h=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}ca(f,e);x(f,[{key:"formatAt",value:function(h,y,b,w){0>f.compare(this.statics.blotName,b)&&n.default.query(b,n.default.Scope.BLOT)?(h=this.isolate(h,y),w&&h.wrap(b,w)):r(f.prototype.__proto__||
62
- Object.getPrototypeOf(f.prototype),"formatAt",this).call(this,h,y,b,w)}},{key:"optimize",value:function(h){r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,h);this.parent instanceof f&&0<f.compare(this.statics.blotName,this.parent.statics.blotName)&&(h=this.parent.isolate(this.offset(),this.length()),this.moveChildren(h),h.wrap(this))}}],[{key:"compare",value:function(h,y){var b=f.order.indexOf(h),w=f.order.indexOf(y);return 0<=b||0<=w?b-w:h===y?0:h<y?-1:1}}]);
63
- return f}(n.default.Inline);ea.allowedChildren=[ea,n.default.Embed,ia.default];ea.order="cursor inline underline strike italic bold script link code".split(" ");ka.default=ea},function(ia,ka,ea){function ca(x,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);x.prototype=Object.create(r&&r.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(x,r):x.__proto__=
64
- r)}Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var n=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}ca(r,x);return r}(function(x){return x&&x.__esModule?x:{default:x}}(ea(0)).default.Text);ka.default=ia},function(ia,
65
- ka,ea){function ca(a,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function a(e,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in
66
- y&&(y.writable=!0);Object.defineProperty(e,y.key,y)}}return function(e,f,h){f&&a(e.prototype,f);h&&a(e,h);return e}}(),r=function y(e,f,h){null===e&&(e=Function.prototype);var b=Object.getOwnPropertyDescriptor(e,f);if(void 0===b){if(e=Object.getPrototypeOf(e),null!==e)return y(e,f,h)}else{if("value"in b)return b.value;f=b.get;return void 0===f?void 0:f.call(h)}};ia=(ia=ea(54))&&ia.__esModule?ia:{default:ia};ea=(ea=ea(10))&&ea.__esModule?ea:{default:ea};var n=(0,ea.default)("quill:events");["selectionchange",
67
- "mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var f=arguments.length,h=Array(f),y=0;y<f;y++)h[y]=arguments[y];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(b){if(b.__quill&&b.__quill.emitter){var w;(w=b.__quill.emitter).handleDOM.apply(w,h)}})})});ea=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var h=(f.__proto__||Object.getPrototypeOf(f)).call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
68
- h=!h||"object"!==typeof h&&"function"!==typeof h?this:h;h.listeners={};h.on("error",n.error);return h}ca(f,e);x(f,[{key:"emit",value:function(){n.log.apply(n,arguments);r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(h){for(var y=arguments.length,b=Array(1<y?y-1:0),w=1;w<y;w++)b[w-1]=arguments[w];(this.listeners[h.type]||[]).forEach(function(aa){var fa=aa.node;aa=aa.handler;(h.target===fa||fa.contains(h.target))&&aa.apply(void 0,
69
- [h].concat(b))})}},{key:"listenDOM",value:function(h,y,b){this.listeners[h]||(this.listeners[h]=[]);this.listeners[h].push({node:y,handler:b})}}]);return f}(ia.default);ea.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"};ea.sources={API:"api",SILENT:"silent",USER:"user"};ka.default=ea},function(ia,ka){Object.defineProperty(ka,"__esModule",
70
- {value:!0});ia=function x(ca){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");this.quill=ca;this.options=r};ia.DEFAULTS={};ka.default=ia},function(ia,ka){function ea(n){if(x.indexOf(n)<=x.indexOf(r)){for(var a,e=arguments.length,f=Array(1<e?e-1:0),h=1;h<e;h++)f[h-1]=arguments[h];(a=console)[n].apply(a,f)}}function ca(n){return x.reduce(function(a,e){a[e]=ea.bind(console,e,n);return a},{})}Object.defineProperty(ka,
71
- "__esModule",{value:!0});var x=["error","warn","log","info"],r="warn";ea.level=ca.level=function(n){r=n};ka.default=ca},function(ia,ka,ea){function ca(f){return!f||"object"!==typeof f||"number"!==typeof f.length||"function"!==typeof f.copy||"function"!==typeof f.slice||0<f.length&&"number"!==typeof f[0]?!1:!0}function x(f,h,y){var b;if(null===f||void 0===f||null===h||void 0===h||f.prototype!==h.prototype)return!1;if(a(f)){if(!a(h))return!1;f=r.call(f);h=r.call(h);return e(f,h,y)}if(ca(f)){if(!ca(h)||
72
- f.length!==h.length)return!1;for(b=0;b<f.length;b++)if(f[b]!==h[b])return!1;return!0}try{var w=n(f);var aa=n(h)}catch(fa){return!1}if(w.length!=aa.length)return!1;w.sort();aa.sort();for(b=w.length-1;0<=b;b--)if(w[b]!=aa[b])return!1;for(b=w.length-1;0<=b;b--)if(aa=w[b],!e(f[aa],h[aa],y))return!1;return typeof f===typeof h}var r=Array.prototype.slice,n=ea(52),a=ea(53),e=ia.exports=function(f,h,y){y||(y={});return f===h?!0:f instanceof Date&&h instanceof Date?f.getTime()===h.getTime():!f||!h||"object"!=
73
- typeof f&&"object"!=typeof h?y.strict?f===h:f==h:x(f,h,y)}},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});var ca=ea(1);ia=function(){function x(r,n,a){void 0===a&&(a={});this.attrName=r;this.keyName=n;r=ca.Scope.TYPE&ca.Scope.ATTRIBUTE;this.scope=null!=a.scope?a.scope&ca.Scope.LEVEL|r:ca.Scope.ATTRIBUTE;null!=a.whitelist&&(this.whitelist=a.whitelist)}x.keys=function(r){return[].map.call(r.attributes,function(n){return n.name})};x.prototype.add=function(r,n){if(!this.canAdd(r,
74
- n))return!1;r.setAttribute(this.keyName,n);return!0};x.prototype.canAdd=function(r,n){return null==ca.query(r,ca.Scope.BLOT&(this.scope|ca.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof n?-1<this.whitelist.indexOf(n.replace(/["']/g,"")):-1<this.whitelist.indexOf(n)};x.prototype.remove=function(r){r.removeAttribute(this.keyName)};x.prototype.value=function(r){var n=r.getAttribute(this.keyName);return this.canAdd(r,n)&&n?n:""};return x}();ka.default=ia},function(ia,ka,ea){function ca(aa){return aa&&
75
- aa.__esModule?aa:{default:aa}}function x(aa,fa){if(!(aa instanceof fa))throw new TypeError("Cannot call a class as a function");}function r(aa,fa){if(!aa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&"function"!==typeof fa?aa:fa}function n(aa,fa){if("function"!==typeof fa&&null!==fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);aa.prototype=Object.create(fa&&fa.prototype,{constructor:{value:aa,
76
- enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(aa,fa):aa.__proto__=fa)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.Code=void 0;var a=function(){return function(aa,fa){if(Array.isArray(aa))return aa;if(Symbol.iterator in Object(aa)){var ja=[],ba=!0,ha=!1,da=void 0;try{for(var la=aa[Symbol.iterator](),ua;!(ba=(ua=la.next()).done)&&(ja.push(ua.value),!fa||ja.length!==fa);ba=!0);}catch(ma){ha=!0,da=ma}finally{try{if(!ba&&la["return"])la["return"]()}finally{if(ha)throw da;
77
- }}return ja}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function aa(fa,ja){for(var ba=0;ba<ja.length;ba++){var ha=ja[ba];ha.enumerable=ha.enumerable||!1;ha.configurable=!0;"value"in ha&&(ha.writable=!0);Object.defineProperty(fa,ha.key,ha)}}return function(fa,ja,ba){ja&&aa(fa.prototype,ja);ba&&aa(fa,ba);return fa}}(),f=function ha(fa,ja,ba){null===fa&&(fa=Function.prototype);var da=Object.getOwnPropertyDescriptor(fa,ja);if(void 0===da){if(fa=Object.getPrototypeOf(fa),
78
- null!==fa)return ha(fa,ja,ba)}else{if("value"in da)return da.value;ja=da.get;return void 0===ja?void 0:ja.call(ba)}};ia=ea(2);var h=ca(ia);ia=ea(0);var y=ca(ia);ia=ea(4);ia=ca(ia);var b=ea(6);b=ca(b);ea=ea(7);var w=ca(ea);ea=function(fa){function ja(){x(this,ja);return r(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}n(ja,fa);return ja}(b.default);ea.blotName="code";ea.tagName="CODE";ia=function(fa){function ja(){x(this,ja);return r(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,
79
- arguments))}n(ja,fa);e(ja,[{key:"delta",value:function(){var ba=this,ha=this.domNode.textContent;ha.endsWith("\n")&&(ha=ha.slice(0,-1));return ha.split("\n").reduce(function(da,la){return da.insert(la).insert("\n",ba.formats())},new h.default)}},{key:"format",value:function(ba,ha){if(ba!==this.statics.blotName||!ha){var da=this.descendant(w.default,this.length()-1);da=a(da,1)[0];null!=da&&da.deleteAt(da.length()-1,1);f(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"format",this).call(this,
80
- ba,ha)}}},{key:"formatAt",value:function(ba,ha,da,la){if(0!==ha&&null!=y.default.query(da,y.default.Scope.BLOCK)&&(da!==this.statics.blotName||la!==this.statics.formats(this.domNode))){var ua=this.newlineIndex(ba);if(!(0>ua||ua>=ba+ha)){var ma=this.newlineIndex(ba,!0)+1;ua=ua-ma+1;var ra=this.isolate(ma,ua),oa=ra.next;ra.format(da,la);oa instanceof ja&&oa.formatAt(0,ba-ma+ha-ua,da,la)}}}},{key:"insertAt",value:function(ba,ha,da){null==da&&(ba=this.descendant(w.default,ba),ba=a(ba,2),ba[0].insertAt(ba[1],
81
- ha))}},{key:"length",value:function(){var ba=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?ba:ba+1}},{key:"newlineIndex",value:function(ba){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,ba).lastIndexOf("\n");var ha=this.domNode.textContent.slice(ba).indexOf("\n");return-1<ha?ba+ha:-1}},{key:"optimize",value:function(ba){this.domNode.textContent.endsWith("\n")||this.appendChild(y.default.create("text","\n"));f(ja.prototype.__proto__||
82
- Object.getPrototypeOf(ja.prototype),"optimize",this).call(this,ba);var ha=this.next;null!=ha&&ha.prev===this&&ha.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===ha.statics.formats(ha.domNode)&&(ha.optimize(ba),ha.moveChildren(this),ha.remove())}},{key:"replace",value:function(ba){f(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"replace",this).call(this,ba);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(ha){var da=y.default.find(ha);
83
- null==da?ha.parentNode.removeChild(ha):da instanceof y.default.Embed?da.remove():da.unwrap()})}}],[{key:"create",value:function(ba){ba=f(ja.__proto__||Object.getPrototypeOf(ja),"create",this).call(this,ba);ba.setAttribute("spellcheck",!1);return ba}},{key:"formats",value:function(){return!0}}]);return ja}(ia.default);ia.blotName="code-block";ia.tagName="PRE";ia.TAB=" ";ka.Code=ea;ka.default=ia},function(ia,ka,ea){function ca(ua){return ua&&ua.__esModule?ua:{default:ua}}function x(ua,ma){return Object.keys(ma).reduce(function(ra,
84
- oa){if(null==ua[oa])return ra;ma[oa]===ua[oa]?ra[oa]=ma[oa]:Array.isArray(ma[oa])?0>ma[oa].indexOf(ua[oa])&&(ra[oa]=ma[oa].concat([ua[oa]])):ra[oa]=[ma[oa],ua[oa]];return ra},{})}function r(ua){return ua.reduce(function(ma,ra){if(1===ra.insert){var oa=(0,ba.default)(ra.attributes);delete oa.image;return ma.insert({image:ra.attributes.image},oa)}null==ra.attributes||!0!==ra.attributes.list&&!0!==ra.attributes.bullet||(ra=(0,ba.default)(ra),ra.attributes.list?ra.attributes.list="ordered":(ra.attributes.list=
85
- "bullet",delete ra.attributes.bullet));return"string"===typeof ra.insert?(oa=ra.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),ma.insert(oa,ra.attributes)):ma.push(ra)},new f.default)}Object.defineProperty(ka,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(ua){return typeof ua}:function(ua){return ua&&"function"===typeof Symbol&&ua.constructor===Symbol&&ua!==Symbol.prototype?"symbol":typeof ua},a=function(){return function(ua,ma){if(Array.isArray(ua))return ua;
86
- if(Symbol.iterator in Object(ua)){var ra=[],oa=!0,sa=!1,ta=void 0;try{for(var qa=ua[Symbol.iterator](),wa;!(oa=(wa=qa.next()).done)&&(ra.push(wa.value),!ma||ra.length!==ma);oa=!0);}catch(Aa){sa=!0,ta=Aa}finally{try{if(!oa&&qa["return"])qa["return"]()}finally{if(sa)throw ta;}}return ra}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function ua(ma,ra){for(var oa=0;oa<ra.length;oa++){var sa=ra[oa];sa.enumerable=sa.enumerable||!1;sa.configurable=!0;"value"in
87
- sa&&(sa.writable=!0);Object.defineProperty(ma,sa.key,sa)}}return function(ma,ra,oa){ra&&ua(ma.prototype,ra);oa&&ua(ma,oa);return ma}}();ia=ea(2);var f=ca(ia);ia=ea(20);var h=ca(ia);ia=ea(0);var y=ca(ia);ia=ea(13);var b=ca(ia);ia=ea(24);var w=ca(ia),aa=ea(4),fa=ca(aa);ia=ea(16);var ja=ca(ia);ia=ea(21);var ba=ca(ia);ia=ea(11);var ha=ca(ia);ea=ea(3);var da=ca(ea),la=/^[ -~]*$/;ea=function(){function ua(ma){if(!(this instanceof ua))throw new TypeError("Cannot call a class as a function");this.scroll=
88
- ma;this.delta=this.getDelta()}e(ua,[{key:"applyDelta",value:function(ma){var ra=this,oa=!1;this.scroll.update();var sa=this.scroll.length();this.scroll.batchStart();ma=r(ma);ma.reduce(function(ta,qa){var wa=qa.retain||qa.delete||qa.insert.length||1,Aa=qa.attributes||{};if(null!=qa.insert){if("string"===typeof qa.insert){qa=qa.insert;qa.endsWith("\n")&&oa&&(oa=!1,qa=qa.slice(0,-1));ta>=sa&&!qa.endsWith("\n")&&(oa=!0);ra.scroll.insertAt(ta,qa);qa=ra.scroll.line(ta);qa=a(qa,2);var Ga=qa[0],Na=qa[1];
89
- qa=(0,da.default)({},(0,aa.bubbleFormats)(Ga));Ga instanceof fa.default&&(Ga=Ga.descendant(y.default.Leaf,Na),Ga=a(Ga,1)[0],qa=(0,da.default)(qa,(0,aa.bubbleFormats)(Ga)));Aa=h.default.attributes.diff(qa,Aa)||{}}else if("object"===n(qa.insert)){Ga=Object.keys(qa.insert)[0];if(null==Ga)return ta;ra.scroll.insertAt(ta,Ga,qa.insert[Ga])}sa+=wa}Object.keys(Aa).forEach(function(Ha){ra.scroll.formatAt(ta,wa,Ha,Aa[Ha])});return ta+wa},0);ma.reduce(function(ta,qa){return"number"===typeof qa.delete?(ra.scroll.deleteAt(ta,
90
- qa.delete),ta):ta+(qa.retain||qa.insert.length||1)},0);this.scroll.batchEnd();return this.update(ma)}},{key:"deleteText",value:function(ma,ra){this.scroll.deleteAt(ma,ra);return this.update((new f.default).retain(ma).delete(ra))}},{key:"formatLine",value:function(ma,ra){var oa=this,sa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(sa).forEach(function(ta){if(null==oa.scroll.whitelist||oa.scroll.whitelist[ta]){var qa=oa.scroll.lines(ma,Math.max(ra,1)),wa=
91
- ra;qa.forEach(function(Aa){var Ga=Aa.length();if(Aa instanceof b.default){var Na=ma-Aa.offset(oa.scroll),Ha=Aa.newlineIndex(Na+wa)-Na+1;Aa.formatAt(Na,Ha,ta,sa[ta])}else Aa.format(ta,sa[ta]);wa-=Ga})}});this.scroll.optimize();return this.update((new f.default).retain(ma).retain(ra,(0,ba.default)(sa)))}},{key:"formatText",value:function(ma,ra){var oa=this,sa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Object.keys(sa).forEach(function(ta){oa.scroll.formatAt(ma,ra,ta,sa[ta])});return this.update((new f.default).retain(ma).retain(ra,
92
- (0,ba.default)(sa)))}},{key:"getContents",value:function(ma,ra){return this.delta.slice(ma,ma+ra)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(ma,ra){return ma.concat(ra.delta())},new f.default)}},{key:"getFormat",value:function(ma){var ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,oa=[],sa=[];0===ra?this.scroll.path(ma).forEach(function(ta){ta=a(ta,1)[0];ta instanceof fa.default?oa.push(ta):ta instanceof y.default.Leaf&&sa.push(ta)}):(oa=this.scroll.lines(ma,
93
- ra),sa=this.scroll.descendants(y.default.Leaf,ma,ra));ra=[oa,sa].map(function(ta){if(0===ta.length)return{};for(var qa=(0,aa.bubbleFormats)(ta.shift());0<Object.keys(qa).length;){var wa=ta.shift();if(null==wa)break;qa=x((0,aa.bubbleFormats)(wa),qa)}return qa});return da.default.apply(da.default,ra)}},{key:"getText",value:function(ma,ra){return this.getContents(ma,ra).filter(function(oa){return"string"===typeof oa.insert}).map(function(oa){return oa.insert}).join("")}},{key:"insertEmbed",value:function(ma,
94
- ra,oa){this.scroll.insertAt(ma,ra,oa);var sa=this.update;ma=(new f.default).retain(ma);var ta=ma.insert,qa={};ra in qa?Object.defineProperty(qa,ra,{value:oa,enumerable:!0,configurable:!0,writable:!0}):qa[ra]=oa;return sa.call(this,ta.call(ma,qa))}},{key:"insertText",value:function(ma,ra){var oa=this,sa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ra=ra.replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.scroll.insertAt(ma,ra);Object.keys(sa).forEach(function(ta){oa.scroll.formatAt(ma,ra.length,
95
- ta,sa[ta])});return this.update((new f.default).retain(ma).insert(ra,(0,ba.default)(sa)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var ma=this.scroll.children.head;return ma.statics.blotName!==fa.default.blotName||1<ma.children.length?!1:ma.children.head instanceof ja.default}},{key:"removeFormat",value:function(ma,ra){var oa=this.getText(ma,ra),sa=this.scroll.line(ma+ra),ta=a(sa,2);sa=ta[0];ta=ta[1];var qa=0,wa=new f.default;
96
- null!=sa&&(qa=sa instanceof b.default?sa.newlineIndex(ta)-ta+1:sa.length()-ta,wa=sa.delta().slice(ta,ta+qa-1).insert("\n"));ra=this.getContents(ma,ra+qa).diff((new f.default).insert(oa).concat(wa));ma=(new f.default).retain(ma).concat(ra);return this.applyDelta(ma)}},{key:"update",value:function(ma){var ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],oa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,sa=this.delta;if(1===ra.length&&"characterData"===ra[0].type&&ra[0].target.data.match(la)&&
97
- y.default.find(ra[0].target)){var ta=y.default.find(ra[0].target),qa=(0,aa.bubbleFormats)(ta),wa=ta.offset(this.scroll);ra=ra[0].oldValue.replace(w.default.CONTENTS,"");ra=(new f.default).insert(ra);ta=(new f.default).insert(ta.value());ma=(new f.default).retain(wa).concat(ra.diff(ta,oa)).reduce(function(Aa,Ga){return Ga.insert?Aa.insert(Ga.insert,qa):Aa.push(Ga)},new f.default);this.delta=sa.compose(ma)}else this.delta=this.getDelta(),ma&&(0,ha.default)(sa.compose(ma),this.delta)||(ma=sa.diff(this.delta,
98
- oa));return ma}}]);return ua}();ka.default=ea},function(ia,ka,ea){function ca(fa){return fa&&fa.__esModule?fa:{default:fa}}function x(fa){if(Array.isArray(fa)){for(var ja=0,ba=Array(fa.length);ja<fa.length;ja++)ba[ja]=fa[ja];return ba}return Array.from(fa)}function r(fa,ja){if(!(fa instanceof ja))throw new TypeError("Cannot call a class as a function");}function n(fa,ja){try{ja.parentNode}catch(ba){return!1}ja instanceof Text&&(ja=ja.parentNode);return fa.contains(ja)}Object.defineProperty(ka,"__esModule",
99
- {value:!0});ka.default=ka.Range=void 0;var a=function(){return function(fa,ja){if(Array.isArray(fa))return fa;if(Symbol.iterator in Object(fa)){var ba=[],ha=!0,da=!1,la=void 0;try{for(var ua=fa[Symbol.iterator](),ma;!(ha=(ma=ua.next()).done)&&(ba.push(ma.value),!ja||ba.length!==ja);ha=!0);}catch(ra){da=!0,la=ra}finally{try{if(!ha&&ua["return"])ua["return"]()}finally{if(da)throw la;}}return ba}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function fa(ja,
100
- ba){for(var ha=0;ha<ba.length;ha++){var da=ba[ha];da.enumerable=da.enumerable||!1;da.configurable=!0;"value"in da&&(da.writable=!0);Object.defineProperty(ja,da.key,da)}}return function(ja,ba,ha){ba&&fa(ja.prototype,ba);ha&&fa(ja,ha);return ja}}();ia=ea(0);var f=ca(ia);ia=ea(21);var h=ca(ia);ia=ea(11);var y=ca(ia);ia=ea(8);var b=ca(ia);ea=ea(10);ea=ca(ea);var w=(0,ea.default)("quill:selection"),aa=function ba(ja){var ha=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;r(this,ba);this.index=
101
- ja;this.length=ha};ea=function(){function ja(ba,ha){var da=this;r(this,ja);this.emitter=ha;this.scroll=ba;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=f.default.create("cursor",this);this.lastRange=this.savedRange=new aa(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",document,function(){da.mouseDown||setTimeout(da.update.bind(da,b.default.sources.USER),1)});this.emitter.on(b.default.events.EDITOR_CHANGE,function(la,ua){la===
102
- b.default.events.TEXT_CHANGE&&0<ua.length()&&da.update(b.default.sources.SILENT)});this.emitter.on(b.default.events.SCROLL_BEFORE_UPDATE,function(){if(da.hasFocus()){var la=da.getNativeRange();if(null!=la&&la.start.node!==da.cursor.textNode)da.emitter.once(b.default.events.SCROLL_UPDATE,function(){try{da.setNativeRange(la.start.node,la.start.offset,la.end.node,la.end.offset)}catch(ua){}})}});this.emitter.on(b.default.events.SCROLL_OPTIMIZE,function(la,ua){ua.range&&(la=ua.range,da.setNativeRange(la.startNode,
103
- la.startOffset,la.endNode,la.endOffset))});this.update(b.default.sources.SILENT)}e(ja,[{key:"handleComposition",value:function(){var ba=this;this.root.addEventListener("compositionstart",function(){ba.composing=!0});this.root.addEventListener("compositionend",function(){ba.composing=!1;if(ba.cursor.parent){var ha=ba.cursor.restore();ha&&setTimeout(function(){ba.setNativeRange(ha.startNode,ha.startOffset,ha.endNode,ha.endOffset)},1)}})}},{key:"handleDragging",value:function(){var ba=this;this.emitter.listenDOM("mousedown",
104
- document.body,function(){ba.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){ba.mouseDown=!1;ba.update(b.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(ba,ha){if(null==this.scroll.whitelist||this.scroll.whitelist[ba]){this.scroll.update();var da=this.getNativeRange();if(null!=da&&da.native.collapsed&&!f.default.query(ba,f.default.Scope.BLOCK)){if(da.start.node!==this.cursor.textNode){var la=
105
- f.default.find(da.start.node,!1);if(null==la)return;la instanceof f.default.Leaf?(da=la.split(da.start.offset),la.parent.insertBefore(this.cursor,da)):la.insertBefore(this.cursor,da.start.node);this.cursor.attach()}this.cursor.format(ba,ha);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",value:function(ba){var ha=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,da=this.scroll.length();ba=Math.min(ba,da-1);
106
- ha=Math.min(ba+ha,da-1)-ba;da=this.scroll.leaf(ba);var la=a(da,2);da=la[0];var ua=la[1];if(null==da)return null;la=da.position(ua,!0);la=a(la,2);var ma=la[0];ua=la[1];la=document.createRange();if(0<ha){la.setStart(ma,ua);ha=this.scroll.leaf(ba+ha);ha=a(ha,2);da=ha[0];ua=ha[1];if(null==da)return null;ha=da.position(ua,!0);ha=a(ha,2);ma=ha[0];ua=ha[1];la.setEnd(ma,ua);return la.getBoundingClientRect()}ha="left";ma instanceof Text?(ua<ma.data.length?(la.setStart(ma,ua),la.setEnd(ma,ua+1)):(la.setStart(ma,
107
- ua-1),la.setEnd(ma,ua),ha="right"),da=la.getBoundingClientRect()):(da=da.domNode.getBoundingClientRect(),0<ua&&(ha="right"));return{bottom:da.top+da.height,height:da.height,left:da[ha],right:da[ha],top:da.top,width:0}}},{key:"getNativeRange",value:function(){var ba=document.getSelection();if(null==ba||0>=ba.rangeCount)return null;ba=ba.getRangeAt(0);if(null==ba)return null;ba=this.normalizeNative(ba);w.info("getNativeRange",ba);return ba}},{key:"getRange",value:function(){var ba=this.getNativeRange();
108
- return null==ba?[null,null]:[this.normalizedToRange(ba),ba]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(ba){var ha=this,da=[[ba.start.node,ba.start.offset]];ba.native.collapsed||da.push([ba.end.node,ba.end.offset]);da=da.map(function(la){var ua=a(la,2);la=ua[0];ua=ua[1];var ma=f.default.find(la,!0),ra=ma.offset(ha.scroll);return 0===ua?ra:ma instanceof f.default.Container?ra+ma.length():ra+ma.index(la,ua)});ba=Math.min(Math.max.apply(Math,
109
- x(da)),this.scroll.length()-1);da=Math.min.apply(Math,[ba].concat(x(da)));return new aa(da,ba-da)}},{key:"normalizeNative",value:function(ba){if(!n(this.root,ba.startContainer)||!ba.collapsed&&!n(this.root,ba.endContainer))return null;ba={start:{node:ba.startContainer,offset:ba.startOffset},end:{node:ba.endContainer,offset:ba.endOffset},native:ba};[ba.start,ba.end].forEach(function(ha){for(var da=ha.node,la=ha.offset;!(da instanceof Text)&&0<da.childNodes.length;)if(da.childNodes.length>la)da=da.childNodes[la],
110
- la=0;else if(da.childNodes.length===la)da=da.lastChild,la=da instanceof Text?da.data.length:da.childNodes.length+1;else break;ha.node=da;ha.offset=la});return ba}},{key:"rangeToNative",value:function(ba){var ha=this;ba=ba.collapsed?[ba.index]:[ba.index,ba.index+ba.length];var da=[],la=this.scroll.length();ba.forEach(function(ua,ma){ua=Math.min(la-1,ua);ua=ha.scroll.leaf(ua);var ra=a(ua,2);ua=ra[1];ma=ra[0].position(ua,0!==ma);ua=a(ma,2);ma=ua[0];ua=ua[1];da.push(ma,ua)});2>da.length&&(da=da.concat(da));
111
- return da}},{key:"scrollIntoView",value:function(ba){var ha=this.lastRange;if(null!=ha){var da=this.getBounds(ha.index,ha.length);if(null!=da){var la=this.scroll.length()-1,ua=this.scroll.line(Math.min(ha.index,la)),ma=ua=a(ua,1)[0];0<ha.length&&(ha=this.scroll.line(Math.min(ha.index+ha.length,la)),ma=a(ha,1)[0]);null!=ua&&null!=ma&&(ha=ba.getBoundingClientRect(),da.top<ha.top?ba.scrollTop-=ha.top-da.top:da.bottom>ha.bottom&&(ba.scrollTop+=da.bottom-ha.bottom))}}}},{key:"setNativeRange",value:function(ba,
112
- ha){var da=2<arguments.length&&void 0!==arguments[2]?arguments[2]:ba,la=3<arguments.length&&void 0!==arguments[3]?arguments[3]:ha,ua=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;w.info("setNativeRange",ba,ha,da,la);if(null==ba||null!=this.root.parentNode&&null!=ba.parentNode&&null!=da.parentNode){var ma=document.getSelection();if(null!=ma)if(null!=ba){this.hasFocus()||this.root.focus();var ra=(this.getNativeRange()||{}).native;if(null==ra||ua||ba!==ra.startContainer||ha!==ra.startOffset||
113
- da!==ra.endContainer||la!==ra.endOffset)"BR"==ba.tagName&&(ha=[].indexOf.call(ba.parentNode.childNodes,ba),ba=ba.parentNode),"BR"==da.tagName&&(la=[].indexOf.call(da.parentNode.childNodes,da),da=da.parentNode),ua=document.createRange(),ua.setStart(ba,ha),ua.setEnd(da,la),ma.removeAllRanges(),ma.addRange(ua)}else ma.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(ba){var ha=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,da=2<arguments.length&&void 0!==
114
- arguments[2]?arguments[2]:b.default.sources.API;"string"===typeof ha&&(da=ha,ha=!1);w.info("setRange",ba);if(null!=ba){var la=this.rangeToNative(ba);this.setNativeRange.apply(this,x(la).concat([ha]))}else this.setNativeRange(null);this.update(da)}},{key:"update",value:function(){var ba=0<arguments.length&&void 0!==arguments[0]?arguments[0]:b.default.sources.USER,ha=this.lastRange,da=this.getRange();da=a(da,2);var la=da[1];this.lastRange=da[0];null!=this.lastRange&&(this.savedRange=this.lastRange);
115
- if(!(0,y.default)(ha,this.lastRange)){var ua;!this.composing&&null!=la&&la.native.collapsed&&la.start.node!==this.cursor.textNode&&this.cursor.restore();ha=[b.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(ha),ba];(ua=this.emitter).emit.apply(ua,[b.default.events.EDITOR_CHANGE].concat(ha));if(ba!==b.default.sources.SILENT){var ma;(ma=this.emitter).emit.apply(ma,ha)}}}}]);return ja}();ka.Range=aa;ka.default=ea},function(ia,ka,ea){function ca(n,a){if("function"!==typeof a&&
116
- null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,a):n.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function n(a,e){for(var f=0;f<e.length;f++){var h=e[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(a,h.key,
117
- h)}}return function(a,e,f){e&&n(a.prototype,e);f&&n(a,f);return a}}(),r=function h(a,e,f){null===a&&(a=Function.prototype);var y=Object.getOwnPropertyDescriptor(a,e);if(void 0===y){if(a=Object.getPrototypeOf(a),null!==a)return h(a,e,f)}else{if("value"in y)return y.value;e=y.get;return void 0===e?void 0:e.call(f)}};ia=function(a){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
118
- return!f||"object"!==typeof f&&"function"!==typeof f?this:f}ca(e,a);x(e,[{key:"insertInto",value:function(f,h){0===f.children.length?r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,f,h):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return e}(function(a){return a&&a.__esModule?a:{default:a}}(ea(0)).default.Embed);ia.blotName="break";ia.tagName="BR";ka.default=ia},function(ia,
119
- ka,ea){function ca(a){var e=n.find(a);if(null==e)try{e=n.create(a)}catch(f){e=n.create(n.Scope.INLINE),[].slice.call(a.childNodes).forEach(function(h){e.domNode.appendChild(h)}),a.parentNode&&a.parentNode.replaceChild(e.domNode,a),e.attach()}return e}var x=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var h in f)f.hasOwnProperty(h)&&(e[h]=f[h])};return function(e,f){function h(){this.constructor=e}a(e,
120
- f);e.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(ka,"__esModule",{value:!0});var r=ea(44);ia=ea(30);var n=ea(1);ea=function(a){function e(f){f=a.call(this,f)||this;f.build();return f}x(e,a);e.prototype.appendChild=function(f){this.insertBefore(f)};e.prototype.attach=function(){a.prototype.attach.call(this);this.children.forEach(function(f){f.attach()})};e.prototype.build=function(){var f=this;this.children=new r.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(h){try{var y=
121
- ca(h);f.insertBefore(y,f.children.head||void 0)}catch(b){if(!(b instanceof n.ParchmentError))throw b;}})};e.prototype.deleteAt=function(f,h){if(0===f&&h===this.length())return this.remove();this.children.forEachAt(f,h,function(y,b,w){y.deleteAt(b,w)})};e.prototype.descendant=function(f,h){var y=this.children.find(h);h=y[0];y=y[1];return null==f.blotName&&f(h)||null!=f.blotName&&h instanceof f?[h,y]:h instanceof e?h.descendant(f,y):[null,-1]};e.prototype.descendants=function(f,h,y){void 0===h&&(h=
122
- 0);void 0===y&&(y=Number.MAX_VALUE);var b=[],w=y;this.children.forEachAt(h,y,function(aa,fa,ja){(null==f.blotName&&f(aa)||null!=f.blotName&&aa instanceof f)&&b.push(aa);aa instanceof e&&(b=b.concat(aa.descendants(f,fa,w)));w-=ja});return b};e.prototype.detach=function(){this.children.forEach(function(f){f.detach()});a.prototype.detach.call(this)};e.prototype.formatAt=function(f,h,y,b){this.children.forEachAt(f,h,function(w,aa,fa){w.formatAt(aa,fa,y,b)})};e.prototype.insertAt=function(f,h,y){var b=
123
- this.children.find(f);f=b[0];b=b[1];f?f.insertAt(b,h,y):(h=null==y?n.create("text",h):n.create(h,y),this.appendChild(h))};e.prototype.insertBefore=function(f,h){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(y){return f instanceof y}))throw new n.ParchmentError("Cannot insert "+f.statics.blotName+" into "+this.statics.blotName);f.insertInto(this,h)};e.prototype.length=function(){return this.children.reduce(function(f,h){return f+h.length()},0)};e.prototype.moveChildren=
124
- function(f,h){this.children.forEach(function(y){f.insertBefore(y,h)})};e.prototype.optimize=function(f){a.prototype.optimize.call(this,f);if(0===this.children.length)if(null!=this.statics.defaultChild){var h=n.create(this.statics.defaultChild);this.appendChild(h);h.optimize(f)}else this.remove()};e.prototype.path=function(f,h){void 0===h&&(h=!1);var y=this.children.find(f,h),b=y[0];y=y[1];f=[[this,f]];if(b instanceof e)return f.concat(b.path(y,h));null!=b&&f.push([b,y]);return f};e.prototype.removeChild=
125
- function(f){this.children.remove(f)};e.prototype.replace=function(f){f instanceof e&&f.moveChildren(this);a.prototype.replace.call(this,f)};e.prototype.split=function(f,h){void 0===h&&(h=!1);if(!h){if(0===f)return this;if(f===this.length())return this.next}var y=this.clone();this.parent.insertBefore(y,this.next);this.children.forEachAt(f,this.length(),function(b,w){b=b.split(w,h);y.appendChild(b)});return y};e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};e.prototype.update=
126
- function(f){var h=this,y=[],b=[];f.forEach(function(w){w.target===h.domNode&&"childList"===w.type&&(y.push.apply(y,w.addedNodes),b.push.apply(b,w.removedNodes))});b.forEach(function(w){null!=w.parentNode&&"IFRAME"!==w.tagName&&document.body.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY||(w=n.find(w),null!=w&&(null!=w.domNode.parentNode&&w.domNode.parentNode!==h.domNode||w.detach()))});y.filter(function(w){return w.parentNode==h.domNode}).sort(function(w,aa){return w===aa?0:w.compareDocumentPosition(aa)&
127
- Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(w){var aa=null;null!=w.nextSibling&&(aa=n.find(w.nextSibling));w=ca(w);if(w.next!=aa||null==w.next)null!=w.parent&&w.parent.removeChild(h),h.insertBefore(w,aa||void 0)})};return e}(ia.default);ka.default=ea},function(ia,ka,ea){var ca=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var h in f)f.hasOwnProperty(h)&&(e[h]=f[h])};return function(e,f){function h(){this.constructor=
128
- e}a(e,f);e.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(ka,"__esModule",{value:!0});var x=ea(12),r=ea(31);ia=ea(17);var n=ea(1);ea=function(a){function e(f){f=a.call(this,f)||this;f.attributes=new r.default(f.domNode);return f}ca(e,a);e.formats=function(f){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return f.tagName.toLowerCase()};e.prototype.format=function(f,h){var y=n.query(f);y instanceof x.default?this.attributes.attribute(y,
129
- h):h&&(null==y||f===this.statics.blotName&&this.formats()[f]===h||this.replaceWith(f,h))};e.prototype.formats=function(){var f=this.attributes.values(),h=this.statics.formats(this.domNode);null!=h&&(f[this.statics.blotName]=h);return f};e.prototype.replaceWith=function(f,h){f=a.prototype.replaceWith.call(this,f,h);this.attributes.copy(f);return f};e.prototype.update=function(f,h){var y=this;a.prototype.update.call(this,f,h);f.some(function(b){return b.target===y.domNode&&"attributes"===b.type})&&
130
- this.attributes.build()};e.prototype.wrap=function(f,h){f=a.prototype.wrap.call(this,f,h);f instanceof e&&f.statics.scope===this.statics.scope&&this.attributes.move(f);return f};return e}(ia.default);ka.default=ea},function(ia,ka,ea){var ca=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var e in a)a.hasOwnProperty(e)&&(n[e]=a[e])};return function(n,a){function e(){this.constructor=n}r(n,a);n.prototype=null===
131
- a?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(30);var x=ea(1);ea=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}ca(n,r);n.value=function(){return!0};n.prototype.index=function(a,e){return this.domNode===a||this.domNode.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1};n.prototype.position=function(a){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<a&&(e+=1);
132
- return[this.parent.domNode,e]};n.prototype.value=function(){var a;return a={},a[this.statics.blotName]=this.statics.value(this.domNode)||!0,a};n.scope=x.Scope.INLINE_BLOT;return n}(ia.default);ka.default=ea},function(ia,ka,ea){function ca(a){this.ops=a;this.offset=this.index=0}var x=ea(11),r=ea(3),n={attributes:{compose:function(a,e,f){"object"!==typeof a&&(a={});"object"!==typeof e&&(e={});var h=r(!0,{},e);f||(h=Object.keys(h).reduce(function(b,w){null!=h[w]&&(b[w]=h[w]);return b},{}));for(var y in a)void 0!==
133
- a[y]&&void 0===e[y]&&(h[y]=a[y]);return 0<Object.keys(h).length?h:void 0},diff:function(a,e){"object"!==typeof a&&(a={});"object"!==typeof e&&(e={});var f=Object.keys(a).concat(Object.keys(e)).reduce(function(h,y){x(a[y],e[y])||(h[y]=void 0===e[y]?null:e[y]);return h},{});return 0<Object.keys(f).length?f:void 0},transform:function(a,e,f){if("object"!==typeof a)return e;if("object"===typeof e){if(!f)return e;f=Object.keys(e).reduce(function(h,y){void 0===a[y]&&(h[y]=e[y]);return h},{});return 0<Object.keys(f).length?
134
- f:void 0}}},iterator:function(a){return new ca(a)},length:function(a){return"number"===typeof a["delete"]?a["delete"]:"number"===typeof a.retain?a.retain:"string"===typeof a.insert?a.insert.length:1}};ca.prototype.hasNext=function(){return Infinity>this.peekLength()};ca.prototype.next=function(a){a||(a=Infinity);var e=this.ops[this.index];if(e){var f=this.offset,h=n.length(e);a>=h-f?(a=h-f,this.index+=1,this.offset=0):this.offset+=a;if("number"===typeof e["delete"])return{"delete":a};h={};e.attributes&&
135
- (h.attributes=e.attributes);"number"===typeof e.retain?h.retain=a:h.insert="string"===typeof e.insert?e.insert.substr(f,a):e.insert;return h}return{retain:Infinity}};ca.prototype.peek=function(){return this.ops[this.index]};ca.prototype.peekLength=function(){return this.ops[this.index]?n.length(this.ops[this.index])-this.offset:Infinity};ca.prototype.peekType=function(){if(this.ops[this.index]){if("number"===typeof this.ops[this.index]["delete"])return"delete";if("number"!==typeof this.ops[this.index].retain)return"insert"}return"retain"};
136
- ca.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var a=this.offset,e=this.index,f=this.next(),h=this.ops.slice(this.index);this.offset=a;this.index=e;return[f].concat(h)}return[]};ia.exports=n},function(ia){var ka=function(){function ea(f,h){return null!=h&&f instanceof h}function ca(f,h,y,b,w){function aa(ha,da){if(null===ha)return null;if(0===da||"object"!=typeof ha)return ha;if(ea(ha,n))var la=new n;else if(ea(ha,a))la=new a;else if(ea(ha,e))la=
137
- new e(function(sa,ta){ha.then(function(qa){sa(aa(qa,da-1))},function(qa){ta(aa(qa,da-1))})});else if(ca.__isArray(ha))la=[];else if(ca.__isRegExp(ha))la=new RegExp(ha.source,r(ha)),ha.lastIndex&&(la.lastIndex=ha.lastIndex);else if(ca.__isDate(ha))la=new Date(ha.getTime());else{if(ba&&na.isBuffer(ha))return la=na.allocUnsafe?na.allocUnsafe(ha.length):new na(ha.length),ha.copy(la),la;if(ea(ha,Error))la=Object.create(ha);else if("undefined"==typeof b){var ua=Object.getPrototypeOf(ha);la=Object.create(ua)}else la=
138
- Object.create(b),ua=b}if(h){var ma=fa.indexOf(ha);if(-1!=ma)return ja[ma];fa.push(ha);ja.push(la)}ea(ha,n)&&ha.forEach(function(sa,ta){ta=aa(ta,da-1);sa=aa(sa,da-1);la.set(ta,sa)});ea(ha,a)&&ha.forEach(function(sa){sa=aa(sa,da-1);la.add(sa)});for(var ra in ha){var oa;ua&&(oa=Object.getOwnPropertyDescriptor(ua,ra));oa&&null==oa.set||(la[ra]=aa(ha[ra],da-1))}if(Object.getOwnPropertySymbols)for(ma=Object.getOwnPropertySymbols(ha),ra=0;ra<ma.length;ra++)if(oa=ma[ra],ua=Object.getOwnPropertyDescriptor(ha,
139
- oa),!ua||ua.enumerable||w)la[oa]=aa(ha[oa],da-1),ua.enumerable||Object.defineProperty(la,oa,{enumerable:!1});if(w)for(ma=Object.getOwnPropertyNames(ha),ra=0;ra<ma.length;ra++)oa=ma[ra],ua=Object.getOwnPropertyDescriptor(ha,oa),ua&&ua.enumerable||(la[oa]=aa(ha[oa],da-1),Object.defineProperty(la,oa,{enumerable:!1}));return la}"object"===typeof h&&(y=h.depth,b=h.prototype,w=h.includeNonEnumerable,h=h.circular);var fa=[],ja=[],ba="undefined"!=typeof na;"undefined"==typeof h&&(h=!0);"undefined"==typeof y&&
140
- (y=Infinity);return aa(f,y)}function x(f){return Object.prototype.toString.call(f)}function r(f){var h="";f.global&&(h+="g");f.ignoreCase&&(h+="i");f.multiline&&(h+="m");return h}try{var n=Map}catch(f){n=function(){}}try{var a=Set}catch(f){a=function(){}}try{var e=Promise}catch(f){e=function(){}}ca.clonePrototype=function(f){function h(){}if(null===f)return null;h.prototype=f;return new h};ca.__objToStr=x;ca.__isDate=function(f){return"object"===typeof f&&"[object Date]"===x(f)};ca.__isArray=function(f){return"object"===
141
- typeof f&&"[object Array]"===x(f)};ca.__isRegExp=function(f){return"object"===typeof f&&"[object RegExp]"===x(f)};ca.__getRegExpFlags=r;return ca}();"object"===typeof ia&&ia.exports&&(ia.exports=ka)},function(ia,ka,ea){function ca(ja){return ja&&ja.__esModule?ja:{default:ja}}function x(ja,ba){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ba||"object"!==typeof ba&&"function"!==typeof ba?ja:ba}function r(ja,ba){if("function"!==typeof ba&&null!==
142
- ba)throw new TypeError("Super expression must either be null or a function, not "+typeof ba);ja.prototype=Object.create(ba&&ba.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,ba):ja.__proto__=ba)}function n(ja){return ja instanceof w.default||ja instanceof b.BlockEmbed}Object.defineProperty(ka,"__esModule",{value:!0});var a=function(){return function(ja,ba){if(Array.isArray(ja))return ja;if(Symbol.iterator in Object(ja)){var ha=
143
- [],da=!0,la=!1,ua=void 0;try{for(var ma=ja[Symbol.iterator](),ra;!(da=(ra=ma.next()).done)&&(ha.push(ra.value),!ba||ha.length!==ba);da=!0);}catch(oa){la=!0,ua=oa}finally{try{if(!da&&ma["return"])ma["return"]()}finally{if(la)throw ua;}}return ha}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function ja(ba,ha){for(var da=0;da<ha.length;da++){var la=ha[da];la.enumerable=la.enumerable||!1;la.configurable=!0;"value"in la&&(la.writable=!0);Object.defineProperty(ba,
144
- la.key,la)}}return function(ba,ha,da){ha&&ja(ba.prototype,ha);da&&ja(ba,da);return ba}}(),f=function la(ba,ha,da){null===ba&&(ba=Function.prototype);var ua=Object.getOwnPropertyDescriptor(ba,ha);if(void 0===ua){if(ba=Object.getPrototypeOf(ba),null!==ba)return la(ba,ha,da)}else{if("value"in ua)return ua.value;ha=ua.get;return void 0===ha?void 0:ha.call(da)}};ia=ea(0);var h=ca(ia);ia=ea(8);var y=ca(ia),b=ea(4),w=ca(b);ia=ea(16);var aa=ca(ia);ia=ea(13);var fa=ca(ia);ea=ea(25);ea=ca(ea);ia=function(ba){function ha(da,
145
- la){if(!(this instanceof ha))throw new TypeError("Cannot call a class as a function");da=x(this,(ha.__proto__||Object.getPrototypeOf(ha)).call(this,da));da.emitter=la.emitter;Array.isArray(la.whitelist)&&(da.whitelist=la.whitelist.reduce(function(ua,ma){ua[ma]=!0;return ua},{}));da.domNode.addEventListener("DOMNodeInserted",function(){});da.optimize();da.enable();return da}r(ha,ba);e(ha,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},
146
- {key:"deleteAt",value:function(da,la){var ua=this.line(da),ma=a(ua,2);ua=ma[0];var ra=ma[1];ma=this.line(da+la);ma=a(ma,1)[0];f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"deleteAt",this).call(this,da,la);if(null!=ma&&ua!==ma&&0<ra){if(ua instanceof b.BlockEmbed||ma instanceof b.BlockEmbed){this.optimize();return}if(ua instanceof fa.default){if(da=ua.newlineIndex(ua.length(),!0),-1<da&&(ua=ua.split(da+1),ua===ma)){this.optimize();return}}else ma instanceof fa.default&&(da=ma.newlineIndex(0),
147
- -1<da&&ma.split(da+1));ua.moveChildren(ma,ma.children.head instanceof aa.default?null:ma.children.head);ua.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0)}},{key:"formatAt",value:function(da,la,ua,ma){if(null==this.whitelist||this.whitelist[ua])f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"formatAt",this).call(this,da,la,ua,ma),this.optimize()}},{key:"insertAt",value:function(da,
148
- la,ua){if(null==ua||null==this.whitelist||this.whitelist[la])da>=this.length()?null==ua||null==h.default.query(la,h.default.Scope.BLOCK)?(da=h.default.create(this.statics.defaultChild),this.appendChild(da),null==ua&&la.endsWith("\n")&&(la=la.slice(0,-1)),da.insertAt(0,la,ua)):(la=h.default.create(la,ua),this.appendChild(la)):f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertAt",this).call(this,da,la,ua),this.optimize()}},{key:"insertBefore",value:function(da,la){if(da.statics.scope===
149
- h.default.Scope.INLINE_BLOT){var ua=h.default.create(this.statics.defaultChild);ua.appendChild(da);da=ua}f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"insertBefore",this).call(this,da,la)}},{key:"leaf",value:function(da){return this.path(da).pop()||[null,-1]}},{key:"line",value:function(da){return da===this.length()?this.line(da-1):this.descendant(n,da)}},{key:"lines",value:function(){return function ra(la,ua,ma){var oa=[],sa=ma;la.children.forEachAt(ua,ma,function(ta,qa,wa){n(ta)?
150
- oa.push(ta):ta instanceof h.default.Container&&(oa=oa.concat(ra(ta,qa,sa)));sa-=wa});return oa}(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var da=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],la=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"optimize",this).call(this,da,
151
- la),0<da.length&&this.emitter.emit(y.default.events.SCROLL_OPTIMIZE,da,la))}},{key:"path",value:function(da){return f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"path",this).call(this,da).slice(1)}},{key:"update",value:function(da){if(!0!==this.batch){var la=y.default.sources.USER;"string"===typeof da&&(la=da);Array.isArray(da)||(da=this.observer.takeRecords());0<da.length&&this.emitter.emit(y.default.events.SCROLL_BEFORE_UPDATE,la,da);f(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),
152
- "update",this).call(this,da.concat([]));0<da.length&&this.emitter.emit(y.default.events.SCROLL_UPDATE,la,da)}}}]);return ha}(h.default.Scroll);ia.blotName="scroll";ia.className="ql-editor";ia.tagName="DIV";ia.defaultChild="block";ia.allowedChildren=[w.default,b.BlockEmbed,ea.default];ka.default=ia},function(ia,ka,ea){function ca(wa){return wa&&wa.__esModule?wa:{default:wa}}function x(wa,Aa,Ga){Aa in wa?Object.defineProperty(wa,Aa,{value:Ga,enumerable:!0,configurable:!0,writable:!0}):wa[Aa]=Ga;return wa}
153
- function r(wa,Aa){if(!wa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Aa||"object"!==typeof Aa&&"function"!==typeof Aa?wa:Aa}function n(wa,Aa){if("function"!==typeof Aa&&null!==Aa)throw new TypeError("Super expression must either be null or a function, not "+typeof Aa);wa.prototype=Object.create(Aa&&Aa.prototype,{constructor:{value:wa,enumerable:!1,writable:!0,configurable:!0}});Aa&&(Object.setPrototypeOf?Object.setPrototypeOf(wa,Aa):wa.__proto__=Aa)}
154
- function a(wa,Aa){var Ga,Na=wa===qa.keys.LEFT?"prefix":"suffix";return Ga={key:wa,shiftKey:Aa,altKey:null},x(Ga,Na,/^$/),x(Ga,"handler",function(Ha){var Qa=Ha.index;wa===qa.keys.RIGHT&&(Qa+=Ha.length+1);Qa=this.quill.getLeaf(Qa);if(!(ja(Qa,1)[0]instanceof ra.default.Embed))return!0;wa===qa.keys.LEFT?Aa?this.quill.setSelection(Ha.index-1,Ha.length+1,oa.default.sources.USER):this.quill.setSelection(Ha.index-1,oa.default.sources.USER):Aa?this.quill.setSelection(Ha.index,Ha.length+1,oa.default.sources.USER):
155
- this.quill.setSelection(Ha.index+Ha.length+1,oa.default.sources.USER);return!1}),Ga}function e(wa,Aa){if(!(0===wa.index||1>=this.quill.getLength())){var Ga=this.quill.getLine(wa.index),Na=ja(Ga,1)[0];Ga={};if(0===Aa.offset){var Ha=this.quill.getLine(wa.index-1);Ha=ja(Ha,1)[0];null!=Ha&&1<Ha.length()&&(Ga=Na.formats(),Na=this.quill.getFormat(wa.index-1,1),Ga=ma.default.attributes.diff(Ga,Na)||{})}Aa=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Aa.prefix)?2:1;this.quill.deleteText(wa.index-Aa,Aa,oa.default.sources.USER);
156
- 0<Object.keys(Ga).length&&this.quill.formatLine(wa.index-Aa,Aa,Ga,oa.default.sources.USER);this.quill.focus()}}function f(wa,Aa){var Ga=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Aa.suffix)?2:1;if(!(wa.index>=this.quill.getLength()-Ga)){var Na={},Ha=0,Qa=this.quill.getLine(wa.index);Qa=ja(Qa,1)[0];Aa.offset>=Qa.length()-1&&(Aa=this.quill.getLine(wa.index+1),Aa=ja(Aa,1)[0])&&(Na=Qa.formats(),Ha=this.quill.getFormat(wa.index,1),Na=ma.default.attributes.diff(Na,Ha)||{},Ha=Aa.length());this.quill.deleteText(wa.index,
157
- Ga,oa.default.sources.USER);0<Object.keys(Na).length&&this.quill.formatLine(wa.index+Ha-1,Ga,Na,oa.default.sources.USER)}}function h(wa){var Aa=this.quill.getLines(wa),Ga={};1<Aa.length&&(Ga=Aa[0].formats(),Aa=Aa[Aa.length-1].formats(),Ga=ma.default.attributes.diff(Aa,Ga)||{});this.quill.deleteText(wa,oa.default.sources.USER);0<Object.keys(Ga).length&&this.quill.formatLine(wa.index,1,Ga,oa.default.sources.USER);this.quill.setSelection(wa.index,oa.default.sources.SILENT);this.quill.focus()}function y(wa,
158
- Aa){var Ga=this;0<wa.length&&this.quill.scroll.deleteAt(wa.index,wa.length);var Na=Object.keys(Aa.format).reduce(function(Ha,Qa){ra.default.query(Qa,ra.default.Scope.BLOCK)&&!Array.isArray(Aa.format[Qa])&&(Ha[Qa]=Aa.format[Qa]);return Ha},{});this.quill.insertText(wa.index,"\n",Na,oa.default.sources.USER);this.quill.setSelection(wa.index+1,oa.default.sources.SILENT);this.quill.focus();Object.keys(Aa.format).forEach(function(Ha){null==Na[Ha]&&(Array.isArray(Aa.format[Ha])||"link"!==Ha&&Ga.quill.format(Ha,
159
- Aa.format[Ha],oa.default.sources.USER))})}function b(wa){return{key:qa.keys.TAB,shiftKey:!wa,format:{"code-block":!0},handler:function(Aa){var Ga=ra.default.query("code-block"),Na=Aa.index,Ha=Aa.length;Aa=this.quill.scroll.descendant(Ga,Na);Aa=ja(Aa,2);var Qa=Aa[0],Ra=Aa[1];if(null!=Qa){Aa=this.quill.getIndex(Qa);var Ca=Qa.newlineIndex(Ra,!0)+1;Aa=Qa.newlineIndex(Aa+Ra+Ha);Aa=Qa.domNode.textContent.slice(Ca,Aa).split("\n");Ra=0;Aa.forEach(function(Ka,Ia){wa?(Qa.insertAt(Ca+Ra,Ga.TAB),Ra+=Ga.TAB.length,
160
- 0===Ia?Na+=Ga.TAB.length:Ha+=Ga.TAB.length):Ka.startsWith(Ga.TAB)&&(Qa.deleteAt(Ca+Ra,Ga.TAB.length),Ra-=Ga.TAB.length,0===Ia?Na-=Ga.TAB.length:Ha-=Ga.TAB.length);Ra+=Ka.length+1});this.quill.update(oa.default.sources.USER);this.quill.setSelection(Na,Ha,oa.default.sources.SILENT)}}}}function w(wa){return{key:wa[0].toUpperCase(),shortKey:!0,handler:function(Aa,Ga){this.quill.format(wa,!Ga.format[wa],oa.default.sources.USER)}}}function aa(wa){if("string"===typeof wa||"number"===typeof wa)return aa({key:wa});
161
- "object"===("undefined"===typeof wa?"undefined":fa(wa))&&(wa=(0,ha.default)(wa,!1));if("string"===typeof wa.key)if(null!=qa.keys[wa.key.toUpperCase()])wa.key=qa.keys[wa.key.toUpperCase()];else if(1===wa.key.length)wa.key=wa.key.toUpperCase().charCodeAt(0);else return null;wa.shortKey&&(wa[ta]=wa.shortKey,delete wa.shortKey);return wa}Object.defineProperty(ka,"__esModule",{value:!0});ka.SHORTKEY=ka.default=void 0;var fa="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(wa){return typeof wa}:
162
- function(wa){return wa&&"function"===typeof Symbol&&wa.constructor===Symbol&&wa!==Symbol.prototype?"symbol":typeof wa},ja=function(){return function(wa,Aa){if(Array.isArray(wa))return wa;if(Symbol.iterator in Object(wa)){var Ga=[],Na=!0,Ha=!1,Qa=void 0;try{for(var Ra=wa[Symbol.iterator](),Ca;!(Na=(Ca=Ra.next()).done)&&(Ga.push(Ca.value),!Aa||Ga.length!==Aa);Na=!0);}catch(Ka){Ha=!0,Qa=Ka}finally{try{if(!Na&&Ra["return"])Ra["return"]()}finally{if(Ha)throw Qa;}}return Ga}throw new TypeError("Invalid attempt to destructure non-iterable instance");
163
- }}(),ba=function(){function wa(Aa,Ga){for(var Na=0;Na<Ga.length;Na++){var Ha=Ga[Na];Ha.enumerable=Ha.enumerable||!1;Ha.configurable=!0;"value"in Ha&&(Ha.writable=!0);Object.defineProperty(Aa,Ha.key,Ha)}}return function(Aa,Ga,Na){Ga&&wa(Aa.prototype,Ga);Na&&wa(Aa,Na);return Aa}}();ia=ea(21);var ha=ca(ia);ia=ea(11);var da=ca(ia);ia=ea(3);var la=ca(ia);ia=ea(2);var ua=ca(ia);ia=ea(20);var ma=ca(ia);ia=ea(0);var ra=ca(ia);ia=ea(5);var oa=ca(ia);ia=ea(10);ia=ca(ia);ea=ea(9);ea=ca(ea);var sa=(0,ia.default)("quill:keyboard"),
164
- ta=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",qa=function(wa){function Aa(Ga,Na){if(!(this instanceof Aa))throw new TypeError("Cannot call a class as a function");var Ha=r(this,(Aa.__proto__||Object.getPrototypeOf(Aa)).call(this,Ga,Na));Ha.bindings={};Object.keys(Ha.options.bindings).forEach(function(Qa){("list autofill"!==Qa||null==Ga.scroll.whitelist||Ga.scroll.whitelist.list)&&Ha.options.bindings[Qa]&&Ha.addBinding(Ha.options.bindings[Qa])});Ha.addBinding({key:Aa.keys.ENTER,shiftKey:null},
165
- y);Ha.addBinding({key:Aa.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(Ha.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!0},e),Ha.addBinding({key:Aa.keys.DELETE},{collapsed:!0},f)):(Ha.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},e),Ha.addBinding({key:Aa.keys.DELETE},{collapsed:!0,suffix:/^.?$/},f));Ha.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!1},h);Ha.addBinding({key:Aa.keys.DELETE},{collapsed:!1},h);Ha.addBinding({key:Aa.keys.BACKSPACE,
166
- altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},e);Ha.listen();return Ha}n(Aa,wa);ba(Aa,null,[{key:"match",value:function(Ga,Na){Na=aa(Na);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ha){return!!Na[Ha]!==Ga[Ha]&&null!==Na[Ha]})?!1:Na.key===(Ga.which||Ga.keyCode)}}]);ba(Aa,[{key:"addBinding",value:function(Ga){var Na=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},Ha=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},Qa=aa(Ga);if(null==
167
- Qa||null==Qa.key)return sa.warn("Attempted to add invalid keyboard binding",Qa);"function"===typeof Na&&(Na={handler:Na});"function"===typeof Ha&&(Ha={handler:Ha});Qa=(0,la.default)(Qa,Na,Ha);this.bindings[Qa.key]=this.bindings[Qa.key]||[];this.bindings[Qa.key].push(Qa)}},{key:"listen",value:function(){var Ga=this;this.quill.root.addEventListener("keydown",function(Na){if(!Na.defaultPrevented){var Ha=(Ga.bindings[Na.which||Na.keyCode]||[]).filter(function(Ma){return Aa.match(Na,Ma)});if(0!==Ha.length){var Qa=
168
- Ga.quill.getSelection();if(null!=Qa&&Ga.quill.hasFocus()){var Ra=Ga.quill.getLine(Qa.index),Ca=ja(Ra,2);Ra=Ca[0];Ca=Ca[1];var Ka=Ga.quill.getLeaf(Qa.index),Ia=ja(Ka,2);Ka=Ia[0];Ia=Ia[1];var va=0===Qa.length?[Ka,Ia]:Ga.quill.getLeaf(Qa.index+Qa.length),Fa=ja(va,2);va=Fa[0];Fa=Fa[1];Ka=Ka instanceof ra.default.Text?Ka.value().slice(0,Ia):"";Ia=va instanceof ra.default.Text?va.value().slice(Fa):"";var Pa={collapsed:0===Qa.length,empty:0===Qa.length&&1>=Ra.length(),format:Ga.quill.getFormat(Qa),offset:Ca,
169
- prefix:Ka,suffix:Ia};Ha.some(function(Ma){if(null!=Ma.collapsed&&Ma.collapsed!==Pa.collapsed||null!=Ma.empty&&Ma.empty!==Pa.empty||null!=Ma.offset&&Ma.offset!==Pa.offset)return!1;if(Array.isArray(Ma.format)){if(Ma.format.every(function(Ua){return null==Pa.format[Ua]}))return!1}else if("object"===fa(Ma.format)&&!Object.keys(Ma.format).every(function(Ua){return!0===Ma.format[Ua]?null!=Pa.format[Ua]:!1===Ma.format[Ua]?null==Pa.format[Ua]:(0,da.default)(Ma.format[Ua],Pa.format[Ua])}))return!1;return null!=
170
- Ma.prefix&&!Ma.prefix.test(Pa.prefix)||null!=Ma.suffix&&!Ma.suffix.test(Pa.suffix)?!1:!0!==Ma.handler.call(Ga,Qa,Pa)})&&Na.preventDefault()}}}})}}]);return Aa}(ea.default);qa.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};qa.DEFAULTS={bindings:{bold:w("bold"),italic:w("italic"),underline:w("underline"),indent:{key:qa.keys.TAB,format:["blockquote","indent","list"],handler:function(wa,Aa){if(Aa.collapsed&&0!==Aa.offset)return!0;this.quill.format("indent","+1",oa.default.sources.USER)}},
171
- outdent:{key:qa.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(wa,Aa){if(Aa.collapsed&&0!==Aa.offset)return!0;this.quill.format("indent","-1",oa.default.sources.USER)}},"outdent backspace":{key:qa.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(wa,Aa){null!=Aa.format.indent?this.quill.format("indent","-1",oa.default.sources.USER):null!=Aa.format.list&&this.quill.format("list",!1,oa.default.sources.USER)}},
172
- "indent code-block":b(!0),"outdent code-block":b(!1),"remove tab":{key:qa.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(wa){this.quill.deleteText(wa.index-1,1,oa.default.sources.USER)}},tab:{key:qa.keys.TAB,handler:function(wa){this.quill.history.cutoff();var Aa=(new ua.default).retain(wa.index).delete(wa.length).insert("\t");this.quill.updateContents(Aa,oa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index+1,oa.default.sources.SILENT)}},"list empty enter":{key:qa.keys.ENTER,
173
- collapsed:!0,format:["list"],empty:!0,handler:function(wa,Aa){this.quill.format("list",!1,oa.default.sources.USER);Aa.format.indent&&this.quill.format("indent",!1,oa.default.sources.USER)}},"checklist enter":{key:qa.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(wa){var Aa=this.quill.getLine(wa.index),Ga=ja(Aa,2);Aa=Ga[0];Ga=Ga[1];var Na=(0,la.default)({},Aa.formats(),{list:"checked"});Aa=(new ua.default).retain(wa.index).insert("\n",Na).retain(Aa.length()-Ga-1).retain(1,{list:"unchecked"});
174
- this.quill.updateContents(Aa,oa.default.sources.USER);this.quill.setSelection(wa.index+1,oa.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:qa.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(wa,Aa){var Ga=this.quill.getLine(wa.index),Na=ja(Ga,2);Ga=Na[0];Na=Na[1];Aa=(new ua.default).retain(wa.index).insert("\n",Aa.format).retain(Ga.length()-Na-1).retain(1,{header:null});this.quill.updateContents(Aa,oa.default.sources.USER);this.quill.setSelection(wa.index+
175
- 1,oa.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(wa,Aa){var Ga=Aa.prefix.length,Na=this.quill.getLine(wa.index),Ha=ja(Na,2);Na=Ha[0];Ha=Ha[1];if(Ha>Ga)return!0;switch(Aa.prefix.trim()){case "[]":case "[ ]":Aa="unchecked";break;case "[x]":Aa="checked";break;case "-":case "*":Aa="bullet";break;default:Aa="ordered"}this.quill.insertText(wa.index," ",oa.default.sources.USER);this.quill.history.cutoff();
176
- Aa=(new ua.default).retain(wa.index-Ha).delete(Ga+1).retain(Na.length()-2-Ha).retain(1,{list:Aa});this.quill.updateContents(Aa,oa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index-Ga,oa.default.sources.SILENT)}},"code exit":{key:qa.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(wa){var Aa=this.quill.getLine(wa.index),Ga=ja(Aa,2);Aa=Ga[0];Ga=Ga[1];wa=(new ua.default).retain(wa.index+Aa.length()-Ga-2).retain(1,{"code-block":null}).delete(1);
177
- this.quill.updateContents(wa,oa.default.sources.USER)}},"embed left":a(qa.keys.LEFT,!1),"embed left shift":a(qa.keys.LEFT,!0),"embed right":a(qa.keys.RIGHT,!1),"embed right shift":a(qa.keys.RIGHT,!0)}};ka.default=qa;ka.SHORTKEY=ta},function(ia,ka,ea){function ca(f,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});h&&
178
- (Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){return function(f,h){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var y=[],b=!0,w=!1,aa=void 0;try{for(var fa=f[Symbol.iterator](),ja;!(b=(ja=fa.next()).done)&&(y.push(ja.value),!h||y.length!==h);b=!0);}catch(ba){w=!0,aa=ba}finally{try{if(!b&&fa["return"])fa["return"]()}finally{if(w)throw aa;}}return y}throw new TypeError("Invalid attempt to destructure non-iterable instance");
179
- }}(),r=function w(h,y,b){null===h&&(h=Function.prototype);var aa=Object.getOwnPropertyDescriptor(h,y);if(void 0===aa){if(h=Object.getPrototypeOf(h),null!==h)return w(h,y,b)}else{if("value"in aa)return aa.value;y=aa.get;return void 0===y?void 0:y.call(b)}},n=function(){function h(y,b){for(var w=0;w<b.length;w++){var aa=b[w];aa.enumerable=aa.enumerable||!1;aa.configurable=!0;"value"in aa&&(aa.writable=!0);Object.defineProperty(y,aa.key,aa)}}return function(y,b,w){b&&h(y.prototype,b);w&&h(y,w);return y}}(),
180
- a=(ia=ea(0))&&ia.__esModule?ia:{default:ia},e=(ea=ea(7))&&ea.__esModule?ea:{default:ea};ea=function(h){function y(b,w){if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");b=(y.__proto__||Object.getPrototypeOf(y)).call(this,b);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");b=!b||"object"!==typeof b&&"function"!==typeof b?this:b;b.selection=w;b.textNode=document.createTextNode(y.CONTENTS);b.domNode.appendChild(b.textNode);
181
- b._length=0;return b}ca(y,h);n(y,null,[{key:"value",value:function(){}}]);n(y,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(b,w){if(0!==this._length)return r(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,b,w);for(var aa=this,fa=0;null!=aa&&aa.statics.scope!==a.default.Scope.BLOCK_BLOT;)fa+=aa.offset(aa.parent),aa=aa.parent;null!=aa&&(this._length=y.CONTENTS.length,aa.optimize(),aa.formatAt(fa,y.CONTENTS.length,
182
- b,w),this._length=0)}},{key:"index",value:function(b,w){return b===this.textNode?0:r(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,b,w)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&
183
- null!=this.parent){var b=this.textNode,w=this.selection.getNativeRange(),aa=void 0,fa=void 0,ja=void 0;null!=w&&w.start.node===b&&w.end.node===b&&(ja=[b,w.start.offset,w.end.offset],aa=ja[0],fa=ja[1],ja=ja[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==y.CONTENTS&&(b=this.textNode.data.split(y.CONTENTS).join(""),this.next instanceof e.default?(aa=this.next.domNode,this.next.insertAt(0,
184
- b),this.textNode.data=y.CONTENTS):(this.textNode.data=b,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(y.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=fa)return fa=[fa,ja].map(function(ba){return Math.max(0,Math.min(aa.data.length,ba-1))}),ja=x(fa,2),fa=ja[0],ja=ja[1],{startNode:aa,startOffset:fa,endNode:aa,endOffset:ja}}}},{key:"update",value:function(b,w){var aa=this;b.some(function(fa){return"characterData"===fa.type&&
185
- fa.target===aa.textNode})&&(b=this.restore())&&(w.range=b)}},{key:"value",value:function(){return""}}]);return y}(a.default.Embed);ea.blotName="cursor";ea.className="ql-cursor";ea.tagName="span";ea.CONTENTS="\ufeff";ka.default=ea},function(ia,ka,ea){function ca(r,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}});n&&
186
- (Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}Object.defineProperty(ka,"__esModule",{value:!0});ia=(ia=ea(0))&&ia.__esModule?ia:{default:ia};var x=(ea=ea(4))&&ea.__esModule?ea:{default:ea};ia=function(r){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var a=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==
187
- typeof a&&"function"!==typeof a?this:a}ca(n,r);return n}(ia.default.Container);ia.allowedChildren=[x.default,ea.BlockEmbed,ia];ka.default=ia},function(ia,ka,ea){function ca(a,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}Object.defineProperty(ka,
188
- "__esModule",{value:!0});ka.ColorStyle=ka.ColorClass=ka.ColorAttributor=void 0;var x=function(){function a(e,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(e,y.key,y)}}return function(e,f,h){f&&a(e.prototype,f);h&&a(e,h);return e}}(),r=function y(e,f,h){null===e&&(e=Function.prototype);var b=Object.getOwnPropertyDescriptor(e,f);if(void 0===b){if(e=Object.getPrototypeOf(e),null!==e)return y(e,f,h)}else{if("value"in
189
- b)return b.value;f=b.get;return void 0===f?void 0:f.call(h)}},n=function(e){return e&&e.__esModule?e:{default:e}}(ea(0));ia=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var h=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}ca(f,e);x(f,[{key:"value",value:function(h){h=r(f.prototype.__proto__||
190
- Object.getPrototypeOf(f.prototype),"value",this).call(this,h);if(!h.startsWith("rgb("))return h;h=h.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+h.split(",").map(function(y){return("00"+parseInt(y).toString(16)).slice(-2)}).join("")}}]);return f}(n.default.Attributor.Style);ea=new n.default.Attributor.Class("color","ql-color",{scope:n.default.Scope.INLINE});n=new ia("color","color",{scope:n.default.Scope.INLINE});ka.ColorAttributor=ia;ka.ColorClass=ea;ka.ColorStyle=n},function(ia,ka,ea){function ca(a,
191
- e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}function x(a,e){var f=document.createElement("a");f.href=a;a=f.href.slice(0,f.href.indexOf(":"));return-1<e.indexOf(a)}Object.defineProperty(ka,"__esModule",{value:!0});ka.sanitize=ka.default=void 0;
192
- var r=function(){function a(e,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(e,y.key,y)}}return function(e,f,h){f&&a(e.prototype,f);h&&a(e,h);return e}}(),n=function y(e,f,h){null===e&&(e=Function.prototype);var b=Object.getOwnPropertyDescriptor(e,f);if(void 0===b){if(e=Object.getPrototypeOf(e),null!==e)return y(e,f,h)}else{if("value"in b)return b.value;f=b.get;return void 0===f?void 0:f.call(h)}};ia=function(e){function f(){if(!(this instanceof
193
- f))throw new TypeError("Cannot call a class as a function");var h=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}ca(f,e);r(f,[{key:"format",value:function(h,y){if(h!==this.statics.blotName||!y)return n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,h,y);y=this.constructor.sanitize(y);this.domNode.setAttribute("href",
194
- y)}}],[{key:"create",value:function(h){var y=n(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,h);h=this.sanitize(h);y.setAttribute("href",h);y.setAttribute("rel","noopener noreferrer");y.setAttribute("target","_blank");return y}},{key:"formats",value:function(h){return h.getAttribute("href")}},{key:"sanitize",value:function(h){return x(h,this.PROTOCOL_WHITELIST)?h:this.SANITIZED_URL}}]);return f}(function(e){return e&&e.__esModule?e:{default:e}}(ea(6)).default);ia.blotName="link";
195
- ia.tagName="A";ia.SANITIZED_URL="about:blank";ia.PROTOCOL_WHITELIST=["http","https","mailto","tel"];ka.default=ia;ka.sanitize=x},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});var ca="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x=function(){function e(f,h){for(var y=0;y<h.length;y++){var b=h[y];b.enumerable=b.enumerable||
196
- !1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(f,b.key,b)}}return function(f,h,y){h&&e(f.prototype,h);y&&e(f,y);return f}}(),r=(ia=ea(23))&&ia.__esModule?ia:{default:ia},n=(ea=ea(107))&&ea.__esModule?ea:{default:ea},a=0;ea=function(){function e(f){var h=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.select=f;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,
197
- this.select);this.label.addEventListener("mousedown",function(){h.togglePicker()});this.label.addEventListener("keydown",function(y){switch(y.keyCode){case r.default.keys.ENTER:h.togglePicker();break;case r.default.keys.ESCAPE:h.escape(),y.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}x(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");var f=this.label;f.setAttribute("aria-expanded","true"!==f.getAttribute("aria-expanded"));
198
- f=this.options;f.setAttribute("aria-hidden","true"!==f.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(f){var h=this,y=document.createElement("span");y.tabIndex="0";y.setAttribute("role","button");y.classList.add("ql-picker-item");f.hasAttribute("value")&&y.setAttribute("data-value",f.getAttribute("value"));f.textContent&&y.setAttribute("data-label",f.textContent);y.addEventListener("click",function(){h.selectItem(y,!0)});y.addEventListener("keydown",function(b){switch(b.keyCode){case r.default.keys.ENTER:h.selectItem(y,
199
- !0);b.preventDefault();break;case r.default.keys.ESCAPE:h.escape(),b.preventDefault()}});return y}},{key:"buildLabel",value:function(){var f=document.createElement("span");f.classList.add("ql-picker-label");f.innerHTML=n.default;f.tabIndex="0";f.setAttribute("role","button");f.setAttribute("aria-expanded","false");this.container.appendChild(f);return f}},{key:"buildOptions",value:function(){var f=this,h=document.createElement("span");h.classList.add("ql-picker-options");h.setAttribute("aria-hidden",
200
- "true");h.tabIndex="-1";h.id="ql-picker-options-"+a;a+=1;this.label.setAttribute("aria-controls",h.id);this.options=h;[].slice.call(this.select.options).forEach(function(y){var b=f.buildItem(y);h.appendChild(b);!0===y.selected&&f.selectItem(b)});this.container.appendChild(h)}},{key:"buildPicker",value:function(){var f=this;[].slice.call(this.select.attributes).forEach(function(h){f.container.setAttribute(h.name,h.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},
201
- {key:"escape",value:function(){var f=this;this.close();setTimeout(function(){return f.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(f){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,y=this.container.querySelector(".ql-selected");f!==y&&(null!=y&&y.classList.remove("ql-selected"),null!=f&&(f.classList.add("ql-selected"),
202
- this.select.selectedIndex=[].indexOf.call(f.parentNode.children,f),f.hasAttribute("data-value")?this.label.setAttribute("data-value",f.getAttribute("data-value")):this.label.removeAttribute("data-value"),f.hasAttribute("data-label")?this.label.setAttribute("data-label",f.getAttribute("data-label")):this.label.removeAttribute("data-label"),h&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":ca(Event))&&(h=document.createEvent("Event"),
203
- h.initEvent("change",!0,!0),this.select.dispatchEvent(h)),this.close())))}},{key:"update",value:function(){var f=void 0;if(-1<this.select.selectedIndex){var h=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];f=this.select.options[this.select.selectedIndex];this.selectItem(h)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=f&&f!==this.select.querySelector("option[selected]"))}}]);return e}();ka.default=ea},function(ia,ka,ea){function ca(ja){return ja&&
204
- ja.__esModule?ja:{default:ja}}Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(0);ia=ca(ia);var x=ea(5);x=ca(x);var r=ea(4),n=ca(r),a=ea(16);a=ca(a);var e=ea(25);e=ca(e);var f=ea(24);f=ca(f);var h=ea(35);h=ca(h);var y=ea(6);y=ca(y);var b=ea(22);b=ca(b);var w=ea(7);w=ca(w);var aa=ea(55);aa=ca(aa);var fa=ea(42);fa=ca(fa);ea=ea(23);ea=ca(ea);x.default.register({"blots/block":n.default,"blots/block/embed":r.BlockEmbed,"blots/break":a.default,"blots/container":e.default,"blots/cursor":f.default,
205
- "blots/embed":h.default,"blots/inline":y.default,"blots/scroll":b.default,"blots/text":w.default,"modules/clipboard":aa.default,"modules/history":fa.default,"modules/keyboard":ea.default});ia.default.register(n.default,a.default,f.default,y.default,b.default,w.default);ka.default=x.default},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});var ca=ea(1);ia=function(){function x(r){this.domNode=r;this.domNode[ca.DATA_KEY]={blot:this}}Object.defineProperty(x.prototype,"statics",{get:function(){return this.constructor},
206
- enumerable:!0,configurable:!0});x.create=function(r){if(null==this.tagName)throw new ca.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?("string"===typeof r&&(r=r.toUpperCase(),parseInt(r).toString()===r&&(r=parseInt(r))),r="number"===typeof r?document.createElement(this.tagName[r-1]):-1<this.tagName.indexOf(r)?document.createElement(r):document.createElement(this.tagName[0])):r=document.createElement(this.tagName);this.className&&r.classList.add(this.className);return r};
207
- x.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};x.prototype.clone=function(){return ca.create(this.domNode.cloneNode(!1))};x.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[ca.DATA_KEY]};x.prototype.deleteAt=function(r,n){this.isolate(r,n).remove()};x.prototype.formatAt=function(r,n,a,e){r=this.isolate(r,n);null!=ca.query(a,ca.Scope.BLOT)&&e?r.wrap(a,e):null!=ca.query(a,ca.Scope.ATTRIBUTE)&&(n=ca.create(this.statics.scope),
208
- r.wrap(n),n.format(a,e))};x.prototype.insertAt=function(r,n,a){n=null==a?ca.create("text",n):ca.create(n,a);r=this.split(r);this.parent.insertBefore(n,r)};x.prototype.insertInto=function(r,n){void 0===n&&(n=null);null!=this.parent&&this.parent.children.remove(this);var a=null;r.children.insertBefore(this,n);null!=n&&(a=n.domNode);this.domNode.parentNode==r.domNode&&this.domNode.nextSibling==a||r.domNode.insertBefore(this.domNode,a);this.parent=r;this.attach()};x.prototype.isolate=function(r,n){r=
209
- this.split(r);r.split(n);return r};x.prototype.length=function(){return 1};x.prototype.offset=function(r){void 0===r&&(r=this.parent);return null==this.parent||this==r?0:this.parent.children.offset(this)+this.parent.offset(r)};x.prototype.optimize=function(){null!=this.domNode[ca.DATA_KEY]&&delete this.domNode[ca.DATA_KEY].mutations};x.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};x.prototype.replace=function(r){null!=r.parent&&
210
- (r.parent.insertBefore(this,r.next),r.remove())};x.prototype.replaceWith=function(r,n){r="string"===typeof r?ca.create(r,n):r;r.replace(this);return r};x.prototype.split=function(r){return 0===r?this:this.next};x.prototype.update=function(){};x.prototype.wrap=function(r,n){r="string"===typeof r?ca.create(r,n):r;null!=this.parent&&this.parent.insertBefore(r,this.next);r.appendChild(this);return r};x.blotName="abstract";return x}();ka.default=ia},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",
211
- {value:!0});var ca=ea(12),x=ea(32),r=ea(33),n=ea(1);ia=function(){function a(e){this.attributes={};this.domNode=e;this.build()}a.prototype.attribute=function(e,f){f?e.add(this.domNode,f)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])};a.prototype.build=function(){var e=this;this.attributes={};var f=ca.default.keys(this.domNode),h=x.default.keys(this.domNode),y=r.default.keys(this.domNode);
212
- f.concat(h).concat(y).forEach(function(b){b=n.query(b,n.Scope.ATTRIBUTE);b instanceof ca.default&&(e.attributes[b.attrName]=b)})};a.prototype.copy=function(e){var f=this;Object.keys(this.attributes).forEach(function(h){var y=f.attributes[h].value(f.domNode);e.format(h,y)})};a.prototype.move=function(e){var f=this;this.copy(e);Object.keys(this.attributes).forEach(function(h){f.attributes[h].remove(f.domNode)});this.attributes={}};a.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(f,
213
- h){f[h]=e.attributes[h].value(e.domNode);return f},{})};return a}();ka.default=ia},function(ia,ka,ea){function ca(r,n){return(r.getAttribute("class")||"").split(/\s+/).filter(function(a){return 0===a.indexOf(n+"-")})}var x=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var e in a)a.hasOwnProperty(e)&&(n[e]=a[e])};return function(n,a){function e(){this.constructor=n}r(n,a);n.prototype=null===a?Object.create(a):
214
- (e.prototype=a.prototype,new e)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}x(n,r);n.keys=function(a){return(a.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})};n.prototype.add=function(a,e){if(!this.canAdd(a,e))return!1;this.remove(a);a.classList.add(this.keyName+"-"+e);return!0};n.prototype.remove=function(a){ca(a,this.keyName).forEach(function(e){a.classList.remove(e)});
215
- 0===a.classList.length&&a.removeAttribute("class")};n.prototype.value=function(a){var e=(ca(a,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(a,e)?e:""};return n}(ea(12).default);ka.default=ia},function(ia,ka,ea){function ca(r){r=r.split("-");var n=r.slice(1).map(function(a){return a[0].toUpperCase()+a.slice(1)}).join("");return r[0]+n}var x=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,
216
- a){for(var e in a)a.hasOwnProperty(e)&&(n[e]=a[e])};return function(n,a){function e(){this.constructor=n}r(n,a);n.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}x(n,r);n.keys=function(a){return(a.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})};n.prototype.add=function(a,e){if(!this.canAdd(a,e))return!1;a.style[ca(this.keyName)]=
217
- e;return!0};n.prototype.remove=function(a){a.style[ca(this.keyName)]="";a.getAttribute("style")||a.removeAttribute("style")};n.prototype.value=function(a){var e=a.style[ca(this.keyName)];return this.canAdd(a,e)?e:""};return n}(ea(12).default);ka.default=ia},function(ia,ka){Object.defineProperty(ka,"__esModule",{value:!0});var ea=function(){function ca(x,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(x,a.key,
218
- a)}}return function(x,r,n){r&&ca(x.prototype,r);n&&ca(x,n);return x}}();ia=function(){function ca(x,r){if(!(this instanceof ca))throw new TypeError("Cannot call a class as a function");this.quill=x;this.options=r;this.modules={}}ea(ca,[{key:"init",value:function(){var x=this;Object.keys(this.options.modules).forEach(function(r){null==x.modules[r]&&x.addModule(r)})}},{key:"addModule",value:function(x){var r=this.quill.constructor.import("modules/"+x);this.modules[x]=new r(this.quill,this.options.modules[x]||
219
- {});return this.modules[x]}}]);return ca}();ia.DEFAULTS={modules:{}};ia.themes={"default":ia};ka.default=ia},function(ia,ka,ea){function ca(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?f:h}function x(f,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,
220
- writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}Object.defineProperty(ka,"__esModule",{value:!0});var r=function(){function f(h,y){for(var b=0;b<y.length;b++){var w=y[b];w.enumerable=w.enumerable||!1;w.configurable=!0;"value"in w&&(w.writable=!0);Object.defineProperty(h,w.key,w)}}return function(h,y,b){y&&f(h.prototype,y);b&&f(h,b);return h}}(),n=function w(h,y,b){null===h&&(h=Function.prototype);var aa=Object.getOwnPropertyDescriptor(h,y);if(void 0===
221
- aa){if(h=Object.getPrototypeOf(h),null!==h)return w(h,y,b)}else{if("value"in aa)return aa.value;y=aa.get;return void 0===y?void 0:y.call(b)}},a=(ia=ea(0))&&ia.__esModule?ia:{default:ia},e=(ea=ea(7))&&ea.__esModule?ea:{default:ea};ea=function(h){function y(b){if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");var w=ca(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b));w.contentNode=document.createElement("span");w.contentNode.setAttribute("contenteditable",!1);
222
- [].slice.call(w.domNode.childNodes).forEach(function(aa){w.contentNode.appendChild(aa)});w.leftGuard=document.createTextNode("\ufeff");w.rightGuard=document.createTextNode("\ufeff");w.domNode.appendChild(w.leftGuard);w.domNode.appendChild(w.contentNode);w.domNode.appendChild(w.rightGuard);return w}x(y,h);r(y,[{key:"index",value:function(b,w){return b===this.leftGuard?0:b===this.rightGuard?1:n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,b,w)}},{key:"restore",value:function(b){var w=
223
- void 0,aa=b.data.split("\ufeff").join("");b===this.leftGuard?this.prev instanceof e.default?(w=this.prev.length(),this.prev.insertAt(w,aa),w={startNode:this.prev.domNode,startOffset:w+aa.length}):(w=document.createTextNode(aa),this.parent.insertBefore(a.default.create(w),this),w={startNode:w,startOffset:aa.length}):b===this.rightGuard&&(this.next instanceof e.default?(this.next.insertAt(0,aa),w={startNode:this.next.domNode,startOffset:aa.length}):(w=document.createTextNode(aa),this.parent.insertBefore(a.default.create(w),
224
- this.next),w={startNode:w,startOffset:aa.length}));b.data="\ufeff";return w}},{key:"update",value:function(b,w){var aa=this;b.forEach(function(fa){"characterData"!==fa.type||fa.target!==aa.leftGuard&&fa.target!==aa.rightGuard||!(fa=aa.restore(fa.target))||(w.range=fa)})}}]);return y}(a.default.Embed);ka.default=ea},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});ka.AlignStyle=ka.AlignClass=ka.AlignAttribute=void 0;var ca=(ia=ea(0))&&ia.__esModule?ia:{default:ia};var x={scope:ca.default.Scope.BLOCK,
225
- whitelist:["right","center","justify"]};ia=new ca.default.Attributor.Attribute("align","align",x);ea=new ca.default.Attributor.Class("align","ql-align",x);ca=new ca.default.Attributor.Style("align","text-align",x);ka.AlignAttribute=ia;ka.AlignClass=ea;ka.AlignStyle=ca},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});ka.BackgroundStyle=ka.BackgroundClass=void 0;ia=(ia=ea(0))&&ia.__esModule?ia:{default:ia};var ca=ea(26);ea=new ia.default.Attributor.Class("background","ql-bg",{scope:ia.default.Scope.INLINE});
226
- ia=new ca.ColorAttributor("background","background-color",{scope:ia.default.Scope.INLINE});ka.BackgroundClass=ea;ka.BackgroundStyle=ia},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});ka.DirectionStyle=ka.DirectionClass=ka.DirectionAttribute=void 0;var ca=(ia=ea(0))&&ia.__esModule?ia:{default:ia};var x={scope:ca.default.Scope.BLOCK,whitelist:["rtl"]};ia=new ca.default.Attributor.Attribute("direction","dir",x);ea=new ca.default.Attributor.Class("direction","ql-direction",x);ca=
227
- new ca.default.Attributor.Style("direction","direction",x);ka.DirectionAttribute=ia;ka.DirectionClass=ea;ka.DirectionStyle=ca},function(ia,ka,ea){function ca(a,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}Object.defineProperty(ka,"__esModule",
228
- {value:!0});ka.FontClass=ka.FontStyle=void 0;var x=function(){function a(e,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(e,y.key,y)}}return function(e,f,h){f&&a(e.prototype,f);h&&a(e,h);return e}}(),r=function y(e,f,h){null===e&&(e=Function.prototype);var b=Object.getOwnPropertyDescriptor(e,f);if(void 0===b){if(e=Object.getPrototypeOf(e),null!==e)return y(e,f,h)}else{if("value"in b)return b.value;f=b.get;
229
- return void 0===f?void 0:f.call(h)}};ea=function(e){return e&&e.__esModule?e:{default:e}}(ea(0));var n={scope:ea.default.Scope.INLINE,whitelist:["serif","monospace"]};ia=new ea.default.Attributor.Class("font","ql-font",n);ea=new (function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var h=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||
230
- "object"!==typeof h&&"function"!==typeof h?this:h}ca(f,e);x(f,[{key:"value",value:function(h){return r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,h).replace(/["']/g,"")}}]);return f}(ea.default.Attributor.Style))("font","font-family",n);ka.FontStyle=ea;ka.FontClass=ia},function(ia,ka,ea){Object.defineProperty(ka,"__esModule",{value:!0});ka.SizeStyle=ka.SizeClass=void 0;ea=(ia=ea(0))&&ia.__esModule?ia:{default:ia};ia=new ea.default.Attributor.Class("size","ql-size",
231
- {scope:ea.default.Scope.INLINE,whitelist:["small","large","huge"]});ea=new ea.default.Attributor.Style("size","font-size",{scope:ea.default.Scope.INLINE,whitelist:["10px","18px","32px"]});ka.SizeClass=ia;ka.SizeStyle=ea},function(ia,ka,ea){ia.exports={align:{"":ea(76),center:ea(77),right:ea(78),justify:ea(79)},background:ea(80),blockquote:ea(81),bold:ea(82),clean:ea(83),code:ea(58),"code-block":ea(58),color:ea(84),direction:{"":ea(85),rtl:ea(86)},"float":{center:ea(87),full:ea(88),left:ea(89),right:ea(90)},
232
- formula:ea(91),header:{1:ea(92),2:ea(93)},italic:ea(94),image:ea(95),indent:{"+1":ea(96),"-1":ea(97)},link:ea(98),list:{ordered:ea(99),bullet:ea(100),check:ea(101)},script:{sub:ea(102),"super":ea(103)},strike:ea(104),underline:ea(105),video:ea(106)}},function(ia,ka,ea){function ca(y){return y&&y.__esModule?y:{default:y}}function x(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?y:b}function r(y,b){if("function"!==
233
- typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}function n(y){y=y.ops[y.ops.length-1];return null==y?!1:null!=y.insert?"string"===typeof y.insert&&y.insert.endsWith("\n"):null!=y.attributes?Object.keys(y.attributes).some(function(b){return null!=f.default.query(b,f.default.Scope.BLOCK)}):
234
- !1}function a(y){var b=y.reduce(function(w,aa){return w+=aa.delete||0},0);b=y.length()-b;n(y)&&--b;return b}Object.defineProperty(ka,"__esModule",{value:!0});ka.getLastChangeIndex=ka.default=void 0;var e=function(){function y(b,w){for(var aa=0;aa<w.length;aa++){var fa=w[aa];fa.enumerable=fa.enumerable||!1;fa.configurable=!0;"value"in fa&&(fa.writable=!0);Object.defineProperty(b,fa.key,fa)}}return function(b,w,aa){w&&y(b.prototype,w);aa&&y(b,aa);return b}}();ia=ea(0);var f=ca(ia);ia=ea(5);var h=ca(ia);
235
- ea=ea(9);ea=function(y){function b(w,aa){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var fa=x(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,w,aa));fa.lastRecorded=0;fa.ignoreChange=!1;fa.clear();fa.quill.on(h.default.events.EDITOR_CHANGE,function(ja,ba,ha,da){ja!==h.default.events.TEXT_CHANGE||fa.ignoreChange||(fa.options.userOnly&&da!==h.default.sources.USER?fa.transform(ba):fa.record(ba,ha))});fa.quill.keyboard.addBinding({key:"Z",shortKey:!0},fa.undo.bind(fa));
236
- fa.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},fa.redo.bind(fa));/Win/i.test(navigator.platform)&&fa.quill.keyboard.addBinding({key:"Y",shortKey:!0},fa.redo.bind(fa));return fa}r(b,y);e(b,[{key:"change",value:function(w,aa){if(0!==this.stack[w].length){var fa=this.stack[w].pop();this.stack[aa].push(fa);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(fa[w],h.default.sources.USER);this.ignoreChange=!1;w=a(fa[w]);this.quill.setSelection(w)}}},{key:"clear",value:function(){this.stack=
237
- {undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(w,aa){if(0!==w.ops.length){this.stack.redo=[];aa=this.quill.getContents().diff(aa);var fa=Date.now();this.lastRecorded+this.options.delay>fa&&0<this.stack.undo.length?(fa=this.stack.undo.pop(),aa=aa.compose(fa.undo),w=fa.redo.compose(w)):this.lastRecorded=fa;this.stack.undo.push({redo:w,undo:aa});this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo",
238
- "undo")}},{key:"transform",value:function(w){this.stack.undo.forEach(function(aa){aa.undo=w.transform(aa.undo,!0);aa.redo=w.transform(aa.redo,!0)});this.stack.redo.forEach(function(aa){aa.undo=w.transform(aa.undo,!0);aa.redo=w.transform(aa.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return b}(ca(ea).default);ea.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};ka.default=ea;ka.getLastChangeIndex=a},function(ia,ka,ea){function ca(ra){return ra&&ra.__esModule?ra:{default:ra}}
239
- function x(ra,oa){if(!(ra instanceof oa))throw new TypeError("Cannot call a class as a function");}function r(ra,oa){if(!ra)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!oa||"object"!==typeof oa&&"function"!==typeof oa?ra:oa}function n(ra,oa){if("function"!==typeof oa&&null!==oa)throw new TypeError("Super expression must either be null or a function, not "+typeof oa);ra.prototype=Object.create(oa&&oa.prototype,{constructor:{value:ra,enumerable:!1,writable:!0,
240
- configurable:!0}});oa&&(Object.setPrototypeOf?Object.setPrototypeOf(ra,oa):ra.__proto__=oa)}function a(ra,oa){var sa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;oa.forEach(function(ta){var qa=document.createElement("option");ta===sa?qa.setAttribute("selected","selected"):qa.setAttribute("value",ta);ra.appendChild(qa)})}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.BaseTooltip=void 0;var e=function(){function ra(oa,sa){for(var ta=0;ta<sa.length;ta++){var qa=sa[ta];qa.enumerable=
241
- qa.enumerable||!1;qa.configurable=!0;"value"in qa&&(qa.writable=!0);Object.defineProperty(oa,qa.key,qa)}}return function(oa,sa,ta){sa&&ra(oa.prototype,sa);ta&&ra(oa,ta);return oa}}(),f=function qa(oa,sa,ta){null===oa&&(oa=Function.prototype);var wa=Object.getOwnPropertyDescriptor(oa,sa);if(void 0===wa){if(oa=Object.getPrototypeOf(oa),null!==oa)return qa(oa,sa,ta)}else{if("value"in wa)return wa.value;sa=wa.get;return void 0===sa?void 0:sa.call(ta)}};ia=ea(3);ia=ca(ia);var h=ea(2),y=ca(h);h=ea(8);var b=
242
- ca(h);h=ea(23);var w=ca(h);h=ea(34);h=ca(h);var aa=ea(59),fa=ca(aa);aa=ea(60);var ja=ca(aa);aa=ea(28);var ba=ca(aa);ea=ea(61);aa=ca(ea);var ha=[!1,"center","right","justify"],da="#000000 #e60000 #ff9900 #ffff00 #008a00 #0066cc #9933ff #ffffff #facccc #ffebcc #ffffcc #cce8cc #cce0f5 #ebd6ff #bbbbbb #f06666 #ffc266 #ffff66 #66b966 #66a3e0 #c285ff #888888 #a10000 #b26b00 #b2b200 #006100 #0047b2 #6b24b2 #444444 #5c0000 #663d00 #666600 #003700 #002966 #3d1466".split(" "),la=[!1,"serif","monospace"],ua=
243
- ["1","2","3",!1],ma=["small",!1,"large","huge"];ea=function(oa){function sa(ta,qa){x(this,sa);var wa=r(this,(sa.__proto__||Object.getPrototypeOf(sa)).call(this,ta,qa));ta.emitter.listenDOM("click",document.body,function Na(Ga){if(!document.body.contains(ta.root))return document.body.removeEventListener("click",Na);null==wa.tooltip||wa.tooltip.root.contains(Ga.target)||document.activeElement===wa.tooltip.textbox||wa.quill.hasFocus()||wa.tooltip.hide();null!=wa.pickers&&wa.pickers.forEach(function(Ha){Ha.container.contains(Ga.target)||
244
- Ha.close()})});return wa}n(sa,oa);e(sa,[{key:"addModule",value:function(ta){var qa=f(sa.prototype.__proto__||Object.getPrototypeOf(sa.prototype),"addModule",this).call(this,ta);"toolbar"===ta&&this.extendToolbar(qa);return qa}},{key:"buildButtons",value:function(ta,qa){ta.forEach(function(wa){(wa.getAttribute("class")||"").split(/\s+/).forEach(function(Aa){if(Aa.startsWith("ql-")&&(Aa=Aa.slice(3),null!=qa[Aa]))if("direction"===Aa)wa.innerHTML=qa[Aa][""]+qa[Aa].rtl;else if("string"===typeof qa[Aa])wa.innerHTML=
245
- qa[Aa];else{var Ga=wa.value||"";null!=Ga&&qa[Aa][Ga]&&(wa.innerHTML=qa[Aa][Ga])}})})}},{key:"buildPickers",value:function(ta,qa){var wa=this;this.pickers=ta.map(function(Aa){if(Aa.classList.contains("ql-align"))return null==Aa.querySelector("option")&&a(Aa,ha),new ja.default(Aa,qa.align);if(Aa.classList.contains("ql-background")||Aa.classList.contains("ql-color")){var Ga=Aa.classList.contains("ql-background")?"background":"color";null==Aa.querySelector("option")&&a(Aa,da,"background"===Ga?"#ffffff":
246
- "#000000");return new fa.default(Aa,qa[Ga])}null==Aa.querySelector("option")&&(Aa.classList.contains("ql-font")?a(Aa,la):Aa.classList.contains("ql-header")?a(Aa,ua):Aa.classList.contains("ql-size")&&a(Aa,ma));return new ba.default(Aa)});this.quill.on(b.default.events.EDITOR_CHANGE,function(){wa.pickers.forEach(function(Aa){Aa.update()})})}}]);return sa}(h.default);ea.DEFAULTS=(0,ia.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},
247
- image:function(){var oa=this,sa=this.container.querySelector("input.ql-image[type=file]");null==sa&&(sa=document.createElement("input"),sa.setAttribute("type","file"),sa.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),sa.classList.add("ql-image"),sa.addEventListener("change",function(){if(null!=sa.files&&null!=sa.files[0]){var ta=new FileReader;ta.onload=function(qa){var wa=oa.quill.getSelection(!0);oa.quill.updateContents((new y.default).retain(wa.index).delete(wa.length).insert({image:qa.target.result}),
248
- b.default.sources.USER);oa.quill.setSelection(wa.index+1,b.default.sources.SILENT);sa.value=""};ta.readAsDataURL(sa.files[0])}}),this.container.appendChild(sa));sa.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});ia=function(oa){function sa(ta,qa){x(this,sa);ta=r(this,(sa.__proto__||Object.getPrototypeOf(sa)).call(this,ta,qa));ta.textbox=ta.root.querySelector('input[type="text"]');ta.listen();return ta}n(sa,oa);e(sa,[{key:"listen",value:function(){var ta=this;this.textbox.addEventListener("keydown",
249
- function(qa){w.default.match(qa,"enter")?(ta.save(),qa.preventDefault()):w.default.match(qa,"escape")&&(ta.cancel(),qa.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var ta=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=qa?this.textbox.value=qa:ta!==this.root.getAttribute("data-mode")&&(this.textbox.value=
250
- "");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+ta)||"");this.root.setAttribute("data-mode",ta)}},{key:"restoreFocus",value:function(){var ta=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=ta}},{key:"save",value:function(){var ta=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var qa=this.quill.root.scrollTop;
251
- this.linkRange?(this.quill.formatText(this.linkRange,"link",ta,b.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",ta,b.default.sources.USER));this.quill.root.scrollTop=qa;break;case "video":qa=ta;var wa=qa.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||qa.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);ta=wa?(wa[1]||"https")+"://www.youtube.com/embed/"+wa[2]+"?showinfo=0":(wa=qa.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?
252
- (wa[1]||"https")+"://player.vimeo.com/video/"+wa[2]+"/":qa;case "formula":ta&&(qa=this.quill.getSelection(!0),null!=qa&&(qa=qa.index+qa.length,this.quill.insertEmbed(qa,this.root.getAttribute("data-mode"),ta,b.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(qa+1," ",b.default.sources.USER),this.quill.setSelection(qa+2,b.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return sa}(aa.default);ka.BaseTooltip=ia;ka.default=ea},function(ia,ka){Object.defineProperty(ka,
253
- "__esModule",{value:!0});ia=function(){function ea(){this.head=this.tail=null;this.length=0}ea.prototype.append=function(){for(var ca=[],x=0;x<arguments.length;x++)ca[x]=arguments[x];this.insertBefore(ca[0],null);1<ca.length&&this.append.apply(this,ca.slice(1))};ea.prototype.contains=function(ca){for(var x,r=this.iterator();x=r();)if(x===ca)return!0;return!1};ea.prototype.insertBefore=function(ca,x){ca&&(ca.next=x,null!=x?(ca.prev=x.prev,null!=x.prev&&(x.prev.next=ca),x.prev=ca,x===this.head&&(this.head=
254
- ca)):null!=this.tail?(this.tail.next=ca,ca.prev=this.tail,this.tail=ca):(ca.prev=null,this.head=this.tail=ca),this.length+=1)};ea.prototype.offset=function(ca){for(var x=0,r=this.head;null!=r;){if(r===ca)return x;x+=r.length();r=r.next}return-1};ea.prototype.remove=function(ca){this.contains(ca)&&(null!=ca.prev&&(ca.prev.next=ca.next),null!=ca.next&&(ca.next.prev=ca.prev),ca===this.head&&(this.head=ca.next),ca===this.tail&&(this.tail=ca.prev),--this.length)};ea.prototype.iterator=function(ca){void 0===
255
- ca&&(ca=this.head);return function(){var x=ca;null!=ca&&(ca=ca.next);return x}};ea.prototype.find=function(ca,x){void 0===x&&(x=!1);for(var r,n=this.iterator();r=n();){var a=r.length();if(ca<a||x&&ca===a&&(null==r.next||0!==r.next.length()))return[r,ca];ca-=a}return[null,0]};ea.prototype.forEach=function(ca){for(var x,r=this.iterator();x=r();)ca(x)};ea.prototype.forEachAt=function(ca,x,r){if(!(0>=x))for(var n=this.find(ca),a=ca-n[1],e=this.iterator(n[0]);(n=e())&&a<ca+x;){var f=n.length();ca>a?r(n,
256
- ca-a,Math.min(x,a+f-ca)):r(n,0,Math.min(f,ca+x-a));a+=f}};ea.prototype.map=function(ca){return this.reduce(function(x,r){x.push(ca(r));return x},[])};ea.prototype.reduce=function(ca,x){for(var r,n=this.iterator();r=n();)x=ca(x,r);return x};return ea}();ka.default=ia},function(ia,ka,ea){var ca=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var h in f)f.hasOwnProperty(h)&&(e[h]=f[h])};return function(e,f){function h(){this.constructor=
257
- e}a(e,f);e.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(ka,"__esModule",{value:!0});var x=ea(17),r=ea(1),n={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};ia=function(a){function e(f){var h=a.call(this,f)||this;h.scroll=h;h.observer=new MutationObserver(function(y){h.update(y)});h.observer.observe(h.domNode,n);h.attach();return h}ca(e,a);e.prototype.detach=function(){a.prototype.detach.call(this);this.observer.disconnect()};
258
- e.prototype.deleteAt=function(f,h){this.update();0===f&&h===this.length()?this.children.forEach(function(y){y.remove()}):a.prototype.deleteAt.call(this,f,h)};e.prototype.formatAt=function(f,h,y,b){this.update();a.prototype.formatAt.call(this,f,h,y,b)};e.prototype.insertAt=function(f,h,y){this.update();a.prototype.insertAt.call(this,f,h,y)};e.prototype.optimize=function(f,h){function y(ba){null!=ba.domNode[r.DATA_KEY]&&null!=ba.domNode[r.DATA_KEY].mutations&&(ba instanceof x.default&&ba.children.forEach(y),
259
- ba.optimize(h))}function b(ba,ha){void 0===ha&&(ha=!0);null!=ba&&ba!==w&&null!=ba.domNode.parentNode&&(null==ba.domNode[r.DATA_KEY].mutations&&(ba.domNode[r.DATA_KEY].mutations=[]),ha&&b(ba.parent))}var w=this;void 0===f&&(f=[]);void 0===h&&(h={});a.prototype.optimize.call(this,h);for(var aa=[].slice.call(this.observer.takeRecords());0<aa.length;)f.push(aa.pop());for(var fa=f,ja=0;0<fa.length;ja+=1){if(100<=ja)throw Error("[Parchment] Maximum optimize iterations reached");fa.forEach(function(ba){var ha=
260
- r.find(ba.target,!0);null!=ha&&(ha.domNode===ba.target&&("childList"===ba.type?(b(r.find(ba.previousSibling,!1)),[].forEach.call(ba.addedNodes,function(da){da=r.find(da,!1);b(da,!1);da instanceof x.default&&da.children.forEach(function(la){b(la,!1)})})):"attributes"===ba.type&&b(ha.prev)),b(ha))});this.children.forEach(y);fa=[].slice.call(this.observer.takeRecords());for(aa=fa.slice();0<aa.length;)f.push(aa.pop())}};e.prototype.update=function(f,h){var y=this;void 0===h&&(h={});f=f||this.observer.takeRecords();
261
- f.map(function(b){var w=r.find(b.target,!0);if(null==w)return null;if(null==w.domNode[r.DATA_KEY].mutations)return w.domNode[r.DATA_KEY].mutations=[b],w;w.domNode[r.DATA_KEY].mutations.push(b);return null}).forEach(function(b){null!=b&&b!==y&&null!=b.domNode[r.DATA_KEY]&&b.update(b.domNode[r.DATA_KEY].mutations||[],h)});null!=this.domNode[r.DATA_KEY].mutations&&a.prototype.update.call(this,this.domNode[r.DATA_KEY].mutations,h);this.optimize(f,h)};e.blotName="scroll";e.defaultChild="block";e.scope=
262
- r.Scope.BLOCK_BLOT;e.tagName="DIV";return e}(x.default);ka.default=ia},function(ia,ka,ea){var ca=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var f in e)e.hasOwnProperty(f)&&(a[f]=e[f])};return function(a,e){function f(){this.constructor=a}n(a,e);a.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(ka,"__esModule",{value:!0});var x=ea(18),r=ea(1);ia=function(n){function a(){return null!==
263
- n&&n.apply(this,arguments)||this}ca(a,n);a.formats=function(e){if(e.tagName!==a.tagName)return n.formats.call(this,e)};a.prototype.format=function(e,f){var h=this;e!==this.statics.blotName||f?n.prototype.format.call(this,e,f):(this.children.forEach(function(y){y instanceof x.default||(y=y.wrap(a.blotName,!0));h.attributes.copy(y)}),this.unwrap())};a.prototype.formatAt=function(e,f,h,y){null!=this.formats()[h]||r.query(h,r.Scope.ATTRIBUTE)?this.isolate(e,f).format(h,y):n.prototype.formatAt.call(this,
264
- e,f,h,y)};a.prototype.optimize=function(e){n.prototype.optimize.call(this,e);e=this.formats();if(0===Object.keys(e).length)return this.unwrap();var f=this.next,h;if(h=f instanceof a&&f.prev===this)a:if(h=f.formats(),Object.keys(e).length!==Object.keys(h).length)h=!1;else{for(var y in e)if(e[y]!==h[y]){h=!1;break a}h=!0}h&&(f.moveChildren(this),f.remove())};a.blotName="inline";a.scope=r.Scope.INLINE_BLOT;a.tagName="SPAN";return a}(x.default);ka.default=ia},function(ia,ka,ea){var ca=this&&this.__extends||
265
- function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var e in a)a.hasOwnProperty(e)&&(n[e]=a[e])};return function(n,a){function e(){this.constructor=n}r(n,a);n.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(18);var x=ea(1);ea=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}ca(n,r);n.formats=function(a){var e=x.query(n.blotName).tagName;
266
- if(a.tagName!==e)return r.formats.call(this,a)};n.prototype.format=function(a,e){null!=x.query(a,x.Scope.BLOCK)&&(a!==this.statics.blotName||e?r.prototype.format.call(this,a,e):this.replaceWith(n.blotName))};n.prototype.formatAt=function(a,e,f,h){null!=x.query(f,x.Scope.BLOCK)?this.format(f,h):r.prototype.formatAt.call(this,a,e,f,h)};n.prototype.insertAt=function(a,e,f){null==f||null!=x.query(e,x.Scope.INLINE)?r.prototype.insertAt.call(this,a,e,f):(a=this.split(a),e=x.create(e,f),a.parent.insertBefore(e,
267
- a))};n.prototype.update=function(a,e){navigator.userAgent.match(/Trident/)?this.build():r.prototype.update.call(this,a,e)};n.blotName="block";n.scope=x.Scope.BLOCK_BLOT;n.tagName="P";return n}(ia.default);ka.default=ea},function(ia,ka,ea){var ca=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)n.hasOwnProperty(a)&&(r[a]=n[a])};return function(r,n){function a(){this.constructor=r}x(r,n);r.prototype=
268
- null===n?Object.create(n):(a.prototype=n.prototype,new a)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){return null!==x&&x.apply(this,arguments)||this}ca(r,x);r.formats=function(){};r.prototype.format=function(n,a){x.prototype.formatAt.call(this,0,this.length(),n,a)};r.prototype.formatAt=function(n,a,e,f){0===n&&a===this.length()?this.format(e,f):x.prototype.formatAt.call(this,n,a,e,f)};r.prototype.formats=function(){return this.statics.formats(this.domNode)};return r}(ea(19).default);
269
- ka.default=ia},function(ia,ka,ea){var ca=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var e in a)a.hasOwnProperty(e)&&(n[e]=a[e])};return function(n,a){function e(){this.constructor=n}r(n,a);n.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(19);var x=ea(1);ea=function(r){function n(a){a=r.call(this,a)||this;a.text=a.statics.value(a.domNode);
270
- return a}ca(n,r);n.create=function(a){return document.createTextNode(a)};n.value=function(a){a=a.data;a.normalize&&(a=a.normalize());return a};n.prototype.deleteAt=function(a,e){this.domNode.data=this.text=this.text.slice(0,a)+this.text.slice(a+e)};n.prototype.index=function(a,e){return this.domNode===a?e:-1};n.prototype.insertAt=function(a,e,f){null==f?(this.text=this.text.slice(0,a)+e+this.text.slice(a),this.domNode.data=this.text):r.prototype.insertAt.call(this,a,e,f)};n.prototype.length=function(){return this.text.length};
271
- n.prototype.optimize=function(a){r.prototype.optimize.call(this,a);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof n&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};n.prototype.position=function(a){return[this.domNode,a]};n.prototype.split=function(a,e){void 0===e&&(e=!1);if(!e){if(0===a)return this;if(a===this.length())return this.next}a=x.create(this.domNode.splitText(a));this.parent.insertBefore(a,this.next);
272
- this.text=this.statics.value(this.domNode);return a};n.prototype.update=function(a){var e=this;a.some(function(f){return"characterData"===f.type&&f.target===e.domNode})&&(this.text=this.statics.value(this.domNode))};n.prototype.value=function(){return this.text};n.blotName="text";n.scope=x.Scope.INLINE_BLOT;return n}(ia.default);ka.default=ea},function(){var ia=document.createElement("div");ia.classList.toggle("test-class",!1);if(ia.classList.contains("test-class")){var ka=DOMTokenList.prototype.toggle;
273
- DOMTokenList.prototype.toggle=function(ea,ca){return 1<arguments.length&&!this.contains(ea)===!ca?ca:ka.call(this,ea)}}String.prototype.startsWith||(String.prototype.startsWith=function(ea,ca){return this.substr(ca||0,ea.length)===ea});String.prototype.endsWith||(String.prototype.endsWith=function(ea,ca){var x=this.toString();if("number"!==typeof ca||!isFinite(ca)||Math.floor(ca)!==ca||ca>x.length)ca=x.length;ca-=ea.length;ea=x.indexOf(ea,ca);return-1!==ea&&ea===ca});Array.prototype.find||Object.defineProperty(Array.prototype,
274
- "find",{value:function(ea,ca){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof ea)throw new TypeError("predicate must be a function");for(var x=Object(this),r=x.length>>>0,n,a=0;a<r;a++)if(n=x[a],ea.call(ca,n,a,x))return n}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(ia){function ka(y,b,w){if(y==b)return y?[[0,y]]:[];
275
- if(0>w||y.length<w)w=null;var aa=x(y,b),fa=y.substring(0,aa);y=y.substring(aa);b=b.substring(aa);aa=r(y,b);var ja=y.substring(y.length-aa);y=y.substring(0,y.length-aa);b=b.substring(0,b.length-aa);y=ea(y,b);fa&&y.unshift([0,fa]);ja&&y.push([0,ja]);a(y);null!=w&&(y=e(y,w));return y=f(y)}function ea(y,b){if(!y)return[[1,b]];if(!b)return[[-1,y]];var w=y.length>b.length?y:b;var aa=y.length>b.length?b:y,fa=w.indexOf(aa);if(-1!=fa)return w=[[1,w.substring(0,fa)],[0,aa],[1,w.substring(fa+aa.length)]],y.length>
276
- b.length&&(w[0][0]=w[2][0]=-1),w;if(1==aa.length)return[[-1,y],[1,b]];if(w=n(y,b))return b=w[1],aa=w[3],y=w[4],w=ka(w[0],w[2]),b=ka(b,aa),w.concat([[0,y]],b);a:{w=y.length;aa=b.length;fa=Math.ceil((w+aa)/2);for(var ja=2*fa,ba=Array(ja),ha=Array(ja),da=0;da<ja;da++)ba[da]=-1,ha[da]=-1;ba[fa+1]=0;ha[fa+1]=0;da=w-aa;for(var la=0!=da%2,ua=0,ma=0,ra=0,oa=0,sa=0;sa<fa;sa++){for(var ta=-sa+ua;ta<=sa-ma;ta+=2){var qa=fa+ta;var wa=ta==-sa||ta!=sa&&ba[qa-1]<ba[qa+1]?ba[qa+1]:ba[qa-1]+1;for(var Aa=wa-ta;wa<
277
- w&&Aa<aa&&y.charAt(wa)==b.charAt(Aa);)wa++,Aa++;ba[qa]=wa;if(wa>w)ma+=2;else if(Aa>aa)ua+=2;else if(la&&(qa=fa+da-ta,0<=qa&&qa<ja&&-1!=ha[qa])){var Ga=w-ha[qa];if(wa>=Ga){y=ca(y,b,wa,Aa);break a}}}for(ta=-sa+ra;ta<=sa-oa;ta+=2){qa=fa+ta;Ga=ta==-sa||ta!=sa&&ha[qa-1]<ha[qa+1]?ha[qa+1]:ha[qa-1]+1;for(wa=Ga-ta;Ga<w&&wa<aa&&y.charAt(w-Ga-1)==b.charAt(aa-wa-1);)Ga++,wa++;ha[qa]=Ga;if(Ga>w)oa+=2;else if(wa>aa)ra+=2;else if(!la&&(qa=fa+da-ta,0<=qa&&qa<ja&&-1!=ba[qa]&&(wa=ba[qa],Aa=fa+wa-qa,Ga=w-Ga,wa>=Ga))){y=
278
- ca(y,b,wa,Aa);break a}}}y=[[-1,y],[1,b]]}return y}function ca(y,b,w,aa){var fa=y.substring(w),ja=b.substring(aa);y=ka(y.substring(0,w),b.substring(0,aa));fa=ka(fa,ja);return y.concat(fa)}function x(y,b){if(!y||!b||y.charAt(0)!=b.charAt(0))return 0;for(var w=0,aa=Math.min(y.length,b.length),fa=aa,ja=0;w<fa;)y.substring(ja,fa)==b.substring(ja,fa)?ja=w=fa:aa=fa,fa=Math.floor((aa-w)/2+w);return fa}function r(y,b){if(!y||!b||y.charAt(y.length-1)!=b.charAt(b.length-1))return 0;for(var w=0,aa=Math.min(y.length,
279
- b.length),fa=aa,ja=0;w<fa;)y.substring(y.length-fa,y.length-ja)==b.substring(b.length-fa,b.length-ja)?ja=w=fa:aa=fa,fa=Math.floor((aa-w)/2+w);return fa}function n(y,b){function w(ba,ha,da){for(var la=ba.substring(da,da+Math.floor(ba.length/4)),ua=-1,ma="",ra,oa,sa,ta;-1!=(ua=ha.indexOf(la,ua+1));){var qa=x(ba.substring(da),ha.substring(ua)),wa=r(ba.substring(0,da),ha.substring(0,ua));ma.length<wa+qa&&(ma=ha.substring(ua-wa,ua)+ha.substring(ua,ua+qa),ra=ba.substring(0,da-wa),oa=ba.substring(da+qa),
280
- sa=ha.substring(0,ua-wa),ta=ha.substring(ua+qa))}return 2*ma.length>=ba.length?[ra,oa,sa,ta,ma]:null}var aa=y.length>b.length?y:b,fa=y.length>b.length?b:y;if(4>aa.length||2*fa.length<aa.length)return null;var ja=w(aa,fa,Math.ceil(aa.length/4));aa=w(aa,fa,Math.ceil(aa.length/2));if(ja||aa)ja=aa?ja?ja[4].length>aa[4].length?ja:aa:aa:ja;else return null;y.length>b.length?(y=ja[0],b=ja[1],aa=ja[2],fa=ja[3]):(aa=ja[0],fa=ja[1],y=ja[2],b=ja[3]);return[y,b,aa,fa,ja[4]]}function a(y){y.push([0,""]);for(var b=
281
- 0,w=0,aa=0,fa="",ja="",ba;b<y.length;)switch(y[b][0]){case 1:aa++;ja+=y[b][1];b++;break;case -1:w++;fa+=y[b][1];b++;break;case 0:1<w+aa?(0!==w&&0!==aa&&(ba=x(ja,fa),0!==ba&&(0<b-w-aa&&0==y[b-w-aa-1][0]?y[b-w-aa-1][1]+=ja.substring(0,ba):(y.splice(0,0,[0,ja.substring(0,ba)]),b++),ja=ja.substring(ba),fa=fa.substring(ba)),ba=r(ja,fa),0!==ba&&(y[b][1]=ja.substring(ja.length-ba)+y[b][1],ja=ja.substring(0,ja.length-ba),fa=fa.substring(0,fa.length-ba))),0===w?y.splice(b-aa,w+aa,[1,ja]):0===aa?y.splice(b-
282
- w,w+aa,[-1,fa]):y.splice(b-w-aa,w+aa,[-1,fa],[1,ja]),b=b-w-aa+(w?1:0)+(aa?1:0)+1):0!==b&&0==y[b-1][0]?(y[b-1][1]+=y[b][1],y.splice(b,1)):b++,w=aa=0,ja=fa=""}""===y[y.length-1][1]&&y.pop();w=!1;for(b=1;b<y.length-1;)0==y[b-1][0]&&0==y[b+1][0]&&(y[b][1].substring(y[b][1].length-y[b-1][1].length)==y[b-1][1]?(y[b][1]=y[b-1][1]+y[b][1].substring(0,y[b][1].length-y[b-1][1].length),y[b+1][1]=y[b-1][1]+y[b+1][1],y.splice(b-1,1),w=!0):y[b][1].substring(0,y[b+1][1].length)==y[b+1][1]&&(y[b-1][1]+=y[b+1][1],
283
- y[b][1]=y[b][1].substring(y[b+1][1].length)+y[b+1][1],y.splice(b+1,1),w=!0)),b++;w&&a(y)}function e(y,b){a:{var w=y;if(0===b)var aa=[0,w];else{var fa=0;for(aa=0;aa<w.length;aa++){var ja=w[aa];if(-1===ja[0]||0===ja[0]){var ba=fa+ja[1].length;if(b===ba){aa=[aa+1,w];break a}if(b<ba){w=w.slice();fa=b-fa;b=[ja[0],ja[1].slice(0,fa)];ja=[ja[0],ja[1].slice(fa)];w.splice(aa,1,b,ja);aa=[aa+1,w];break a}fa=ba}}throw Error("cursor_pos is out of bounds!");}}w=aa[1];aa=aa[0];b=w[aa];ja=w[aa+1];return null==b||
284
- 0!==b[0]?y:null!=ja&&b[1]+ja[1]===ja[1]+b[1]?(w.splice(aa,2,ja,b),h(w,aa,2)):null!=ja&&0===ja[1].indexOf(b[1])?(w.splice(aa,2,[ja[0],b[1]],[0,b[1]]),y=ja[1].slice(b[1].length),0<y.length&&w.splice(aa+2,0,[ja[0],y]),h(w,aa,3)):y}function f(y){function b(ja){return 55296<=ja.charCodeAt(ja.length-1)&&56319>=ja.charCodeAt(ja.length-1)}function w(ja){return 56320<=ja.charCodeAt(0)&&57343>=ja.charCodeAt(0)}for(var aa=!1,fa=2;fa<y.length;fa+=1)0===y[fa-2][0]&&b(y[fa-2][1])&&-1===y[fa-1][0]&&w(y[fa-1][1])&&
285
- 1===y[fa][0]&&w(y[fa][1])&&(aa=!0,y[fa-1][1]=y[fa-2][1].slice(-1)+y[fa-1][1],y[fa][1]=y[fa-2][1].slice(-1)+y[fa][1],y[fa-2][1]=y[fa-2][1].slice(0,-1));if(!aa)return y;aa=[];for(fa=0;fa<y.length;fa+=1)0<y[fa][1].length&&aa.push(y[fa]);return aa}function h(y,b,w){for(w=b+w-1;0<=w&&w>=b-1;w--)if(w+1<y.length){var aa=y[w],fa=y[w+1];aa[0]===fa[1]&&y.splice(w,2,[aa[0],aa[1]+fa[1]])}return y}ka.INSERT=1;ka.DELETE=-1;ka.EQUAL=0;ia.exports=ka},function(ia,ka){function ea(ca){var x=[],r;for(r in ca)x.push(r);
286
- return x}ka=ia.exports="function"===typeof Object.keys?Object.keys:ea;ka.shim=ea},function(ia,ka){function ea(x){return"[object Arguments]"==Object.prototype.toString.call(x)}function ca(x){return x&&"object"==typeof x&&"number"==typeof x.length&&Object.prototype.hasOwnProperty.call(x,"callee")&&!Object.prototype.propertyIsEnumerable.call(x,"callee")||!1}ka="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();ka=ia.exports=ka?ea:ca;ka.supported=ea;ka.unsupported=ca},
287
- function(ia){function ka(){}function ea(n,a,e){this.fn=n;this.context=a;this.once=e||!1}function ca(){this._events=new ka;this._eventsCount=0}var x=Object.prototype.hasOwnProperty,r="~";Object.create&&(ka.prototype=Object.create(null),(new ka).__proto__||(r=!1));ca.prototype.eventNames=function(){var n=[],a,e;if(0===this._eventsCount)return n;for(e in a=this._events)x.call(a,e)&&n.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(a)):n};ca.prototype.listeners=
288
- function(n,a){n=this._events[r?r+n:n];if(a)return!!n;if(!n)return[];if(n.fn)return[n.fn];a=0;for(var e=n.length,f=Array(e);a<e;a++)f[a]=n[a].fn;return f};ca.prototype.emit=function(n,a,e,f,h,y){var b=r?r+n:n;if(!this._events[b])return!1;b=this._events[b];var w=arguments.length,aa;if(b.fn){b.once&&this.removeListener(n,b.fn,void 0,!0);switch(w){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,a),!0;case 3:return b.fn.call(b.context,a,e),!0;case 4:return b.fn.call(b.context,a,
289
- e,f),!0;case 5:return b.fn.call(b.context,a,e,f,h),!0;case 6:return b.fn.call(b.context,a,e,f,h,y),!0}var fa=1;for(aa=Array(w-1);fa<w;fa++)aa[fa-1]=arguments[fa];b.fn.apply(b.context,aa)}else{var ja=b.length;for(fa=0;fa<ja;fa++)switch(b[fa].once&&this.removeListener(n,b[fa].fn,void 0,!0),w){case 1:b[fa].fn.call(b[fa].context);break;case 2:b[fa].fn.call(b[fa].context,a);break;case 3:b[fa].fn.call(b[fa].context,a,e);break;case 4:b[fa].fn.call(b[fa].context,a,e,f);break;default:if(!aa){var ba=1;for(aa=
290
- Array(w-1);ba<w;ba++)aa[ba-1]=arguments[ba]}b[fa].fn.apply(b[fa].context,aa)}}return!0};ca.prototype.on=function(n,a,e){a=new ea(a,e||this);n=r?r+n:n;this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],a]:this._events[n].push(a):(this._events[n]=a,this._eventsCount++);return this};ca.prototype.once=function(n,a,e){a=new ea(a,e||this,!0);n=r?r+n:n;this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],a]:this._events[n].push(a):(this._events[n]=a,this._eventsCount++);return this};
291
- ca.prototype.removeListener=function(n,a,e,f){n=r?r+n:n;if(!this._events[n])return this;if(!a)return 0===--this._eventsCount?this._events=new ka:delete this._events[n],this;var h=this._events[n];if(h.fn)h.fn!==a||f&&!h.once||e&&h.context!==e||(0===--this._eventsCount?this._events=new ka:delete this._events[n]);else{for(var y=0,b=[],w=h.length;y<w;y++)(h[y].fn!==a||f&&!h[y].once||e&&h[y].context!==e)&&b.push(h[y]);b.length?this._events[n]=1===b.length?b[0]:b:0===--this._eventsCount?this._events=new ka:
292
- delete this._events[n]}return this};ca.prototype.removeAllListeners=function(n){n?(n=r?r+n:n,this._events[n]&&(0===--this._eventsCount?this._events=new ka:delete this._events[n])):(this._events=new ka,this._eventsCount=0);return this};ca.prototype.off=ca.prototype.removeListener;ca.prototype.addListener=ca.prototype.on;ca.prototype.setMaxListeners=function(){return this};ca.prefixed=r;ca.EventEmitter=ca;"undefined"!==typeof ia&&(ia.exports=ca)},function(ia,ka,ea){function ca(Ka){return Ka&&Ka.__esModule?
293
- Ka:{default:Ka}}function x(Ka,Ia,va){Ia in Ka?Object.defineProperty(Ka,Ia,{value:va,enumerable:!0,configurable:!0,writable:!0}):Ka[Ia]=va;return Ka}function r(Ka,Ia){if(!Ka)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Ia||"object"!==typeof Ia&&"function"!==typeof Ia?Ka:Ia}function n(Ka,Ia){if("function"!==typeof Ia&&null!==Ia)throw new TypeError("Super expression must either be null or a function, not "+typeof Ia);Ka.prototype=Object.create(Ia&&Ia.prototype,
294
- {constructor:{value:Ka,enumerable:!1,writable:!0,configurable:!0}});Ia&&(Object.setPrototypeOf?Object.setPrototypeOf(Ka,Ia):Ka.__proto__=Ia)}function a(Ka,Ia,va){return"object"===("undefined"===typeof Ia?"undefined":ha(Ia))?Object.keys(Ia).reduce(function(Fa,Pa){return a(Fa,Pa,Ia[Pa])},Ka):Ka.reduce(function(Fa,Pa){return Pa.attributes&&Pa.attributes[Ia]?Fa.push(Pa):Fa.insert(Pa.insert,(0,ua.default)({},x({},Ia,va),Pa.attributes))},new ma.default)}function e(Ka){return Ka.nodeType!==Node.ELEMENT_NODE?
295
- {}:Ka["__ql-computed-style"]||(Ka["__ql-computed-style"]=window.getComputedStyle(Ka))}function f(Ka,Ia){for(var va="",Fa=Ka.ops.length-1;0<=Fa&&va.length<Ia.length;--Fa){var Pa=Ka.ops[Fa];if("string"!==typeof Pa.insert)break;va=Pa.insert+va}return va.slice(-1*Ia.length)===Ia}function h(Ka){if(0===Ka.childNodes.length)return!1;Ka=e(Ka);return-1<["block","list-item"].indexOf(Ka.display)}function y(Ka,Ia,va){return Ka.nodeType===Ka.TEXT_NODE?va.reduce(function(Fa,Pa){return Pa(Ka,Fa)},new ma.default):
296
- Ka.nodeType===Ka.ELEMENT_NODE?[].reduce.call(Ka.childNodes||[],function(Fa,Pa){var Ma=y(Pa,Ia,va);Pa.nodeType===Ka.ELEMENT_NODE&&(Ma=Ia.reduce(function(Ua,Wa){return Wa(Pa,Ua)},Ma),Ma=(Pa["__ql-matcher"]||[]).reduce(function(Ua,Wa){return Wa(Pa,Ua)},Ma));return Fa.concat(Ma)},new ma.default):new ma.default}function b(Ka,Ia,va){return a(va,Ka,!0)}function w(Ka,Ia){var va=ra.default.Attributor.Attribute.keys(Ka),Fa=ra.default.Attributor.Class.keys(Ka),Pa=ra.default.Attributor.Style.keys(Ka),Ma={};va.concat(Fa).concat(Pa).forEach(function(Ua){var Wa=
297
- ra.default.query(Ua,ra.default.Scope.ATTRIBUTE);if(null!=Wa&&(Ma[Wa.attrName]=Wa.value(Ka),Ma[Wa.attrName]))return;Wa=Ra[Ua];null==Wa||Wa.attrName!==Ua&&Wa.keyName!==Ua||(Ma[Wa.attrName]=Wa.value(Ka)||void 0);Wa=Ca[Ua];null==Wa||Wa.attrName!==Ua&&Wa.keyName!==Ua||(Wa=Ca[Ua],Ma[Wa.attrName]=Wa.value(Ka)||void 0)});0<Object.keys(Ma).length&&(Ia=a(Ia,Ma));return Ia}function aa(Ka,Ia){var va=ra.default.query(Ka);if(null==va)return Ia;if(va.prototype instanceof ra.default.Embed){var Fa={},Pa=va.value(Ka);
298
- null!=Pa&&(Fa[va.blotName]=Pa,Ia=(new ma.default).insert(Fa,va.formats(Ka)))}else"function"===typeof va.formats&&(Ia=a(Ia,va.blotName,va.formats(Ka)));return Ia}function fa(Ka,Ia){f(Ia,"\n")||(h(Ka)||0<Ia.length()&&Ka.nextSibling&&h(Ka.nextSibling))&&Ia.insert("\n");return Ia}function ja(Ka,Ia){if(h(Ka)&&null!=Ka.nextElementSibling&&!f(Ia,"\n\n")){var va=Ka.offsetHeight+parseFloat(e(Ka).marginTop)+parseFloat(e(Ka).marginBottom);Ka.nextElementSibling.offsetTop>Ka.offsetTop+1.5*va&&Ia.insert("\n")}return Ia}
299
- function ba(Ka,Ia){var va=Ka.data;if("O:P"===Ka.parentNode.tagName)return Ia.insert(va.trim());if(0===va.trim().length&&Ka.parentNode.classList.contains("ql-clipboard"))return Ia;if(!e(Ka.parentNode).whiteSpace.startsWith("pre")){var Fa=function(Pa,Ma){Ma=Ma.replace(/[^\u00a0]/g,"");return 1>Ma.length&&Pa?" ":Ma};va=va.replace(/\r\n/g," ").replace(/\n/g," ");va=va.replace(/\s\s+/g,Fa.bind(Fa,!0));if(null==Ka.previousSibling&&h(Ka.parentNode)||null!=Ka.previousSibling&&h(Ka.previousSibling))va=va.replace(/^\s+/,
300
- Fa.bind(Fa,!1));if(null==Ka.nextSibling&&h(Ka.parentNode)||null!=Ka.nextSibling&&h(Ka.nextSibling))va=va.replace(/\s+$/,Fa.bind(Fa,!1))}return Ia.insert(va)}Object.defineProperty(ka,"__esModule",{value:!0});ka.matchText=ka.matchSpacing=ka.matchNewline=ka.matchBlot=ka.matchAttributor=ka.default=void 0;var ha="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(Ka){return typeof Ka}:function(Ka){return Ka&&"function"===typeof Symbol&&Ka.constructor===Symbol&&Ka!==Symbol.prototype?
301
- "symbol":typeof Ka},da=function(){return function(Ka,Ia){if(Array.isArray(Ka))return Ka;if(Symbol.iterator in Object(Ka)){var va=[],Fa=!0,Pa=!1,Ma=void 0;try{for(var Ua=Ka[Symbol.iterator](),Wa;!(Fa=(Wa=Ua.next()).done)&&(va.push(Wa.value),!Ia||va.length!==Ia);Fa=!0);}catch(bb){Pa=!0,Ma=bb}finally{try{if(!Fa&&Ua["return"])Ua["return"]()}finally{if(Pa)throw Ma;}}return va}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),la=function(){function Ka(Ia,va){for(var Fa=0;Fa<
302
- va.length;Fa++){var Pa=va[Fa];Pa.enumerable=Pa.enumerable||!1;Pa.configurable=!0;"value"in Pa&&(Pa.writable=!0);Object.defineProperty(Ia,Pa.key,Pa)}}return function(Ia,va,Fa){va&&Ka(Ia.prototype,va);Fa&&Ka(Ia,Fa);return Ia}}();ia=ea(3);var ua=ca(ia);ia=ea(2);var ma=ca(ia);ia=ea(0);var ra=ca(ia);ia=ea(5);var oa=ca(ia);ia=ea(10);ia=ca(ia);var sa=ea(9);sa=ca(sa);var ta=ea(36),qa=ea(37),wa=ea(13),Aa=ca(wa);wa=ea(26);var Ga=ea(38),Na=ea(39);ea=ea(40);var Ha=(0,ia.default)("quill:clipboard"),Qa=[[Node.TEXT_NODE,
303
- ba],[Node.TEXT_NODE,fa],["br",function(Ka,Ia){f(Ia,"\n")||Ia.insert("\n");return Ia}],[Node.ELEMENT_NODE,fa],[Node.ELEMENT_NODE,aa],[Node.ELEMENT_NODE,ja],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,function(Ka,Ia){var va={},Fa=Ka.style||{};Fa.fontStyle&&"italic"===e(Ka).fontStyle&&(va.italic=!0);Fa.fontWeight&&(e(Ka).fontWeight.startsWith("bold")||700<=parseInt(e(Ka).fontWeight))&&(va.bold=!0);0<Object.keys(va).length&&(Ia=a(Ia,va));0<parseFloat(Fa.textIndent||0)&&(Ia=(new ma.default).insert("\t").concat(Ia));
304
- return Ia}],["li",function(Ka,Ia){var va=ra.default.query(Ka);if(null==va||"list-item"!==va.blotName||!f(Ia,"\n"))return Ia;va=-1;for(Ka=Ka.parentNode;!Ka.classList.contains("ql-clipboard");)"list"===(ra.default.query(Ka)||{}).blotName&&(va+=1),Ka=Ka.parentNode;return 0>=va?Ia:Ia.compose((new ma.default).retain(Ia.length()-1).retain(1,{indent:va}))}],["b",b.bind(b,"bold")],["i",b.bind(b,"italic")],["style",function(){return new ma.default}]],Ra=[ta.AlignAttribute,Ga.DirectionAttribute].reduce(function(Ka,
305
- Ia){Ka[Ia.keyName]=Ia;return Ka},{}),Ca=[ta.AlignStyle,qa.BackgroundStyle,wa.ColorStyle,Ga.DirectionStyle,Na.FontStyle,ea.SizeStyle].reduce(function(Ka,Ia){Ka[Ia.keyName]=Ia;return Ka},{});ea=function(Ka){function Ia(va,Fa){if(!(this instanceof Ia))throw new TypeError("Cannot call a class as a function");var Pa=r(this,(Ia.__proto__||Object.getPrototypeOf(Ia)).call(this,va,Fa));Pa.quill.root.addEventListener("paste",Pa.onPaste.bind(Pa));Pa.container=Pa.quill.addContainer("ql-clipboard");Pa.container.setAttribute("contenteditable",
306
- !0);Pa.container.setAttribute("tabindex",-1);Pa.matchers=[];Qa.concat(Pa.options.matchers).forEach(function(Ma){Ma=da(Ma,2);var Ua=Ma[1];(Fa.matchVisual||Ua!==ja)&&Pa.addMatcher(Ma[0],Ua)});return Pa}n(Ia,Ka);la(Ia,[{key:"addMatcher",value:function(va,Fa){this.matchers.push([va,Fa])}},{key:"convert",value:function(va){if("string"===typeof va)return this.container.innerHTML=va.replace(/>\r?\n +</g,"><"),this.convert();va=this.quill.getFormat(this.quill.selection.savedRange.index);if(va[Aa.default.blotName]){var Fa=
307
- this.container.innerText;this.container.innerHTML="";return(new ma.default).insert(Fa,x({},Aa.default.blotName,va[Aa.default.blotName]))}va=this.prepareMatching();va=da(va,2);va=y(this.container,va[0],va[1]);f(va,"\n")&&null==va.ops[va.ops.length-1].attributes&&(va=va.compose((new ma.default).retain(va.length()-1).delete(1)));Ha.log("convert",this.container.innerHTML,va);this.container.innerHTML="";return va}},{key:"dangerouslyPasteHTML",value:function(va,Fa){var Pa=2<arguments.length&&void 0!==arguments[2]?
308
- arguments[2]:oa.default.sources.API;if("string"===typeof va)this.quill.setContents(this.convert(va),Fa),this.quill.setSelection(0,oa.default.sources.SILENT);else{var Ma=this.convert(Fa);this.quill.updateContents((new ma.default).retain(va).concat(Ma),Pa);this.quill.setSelection(va+Ma.length(),oa.default.sources.SILENT)}}},{key:"onPaste",value:function(va){var Fa=this;if(!va.defaultPrevented&&this.quill.isEnabled()){var Pa=this.quill.getSelection(),Ma=(new ma.default).retain(Pa.index),Ua=this.quill.scrollingContainer.scrollTop;
309
- this.container.focus();this.quill.selection.update(oa.default.sources.SILENT);setTimeout(function(){Ma=Ma.concat(Fa.convert()).delete(Pa.length);Fa.quill.updateContents(Ma,oa.default.sources.USER);Fa.quill.setSelection(Ma.length()-Pa.length,oa.default.sources.SILENT);Fa.quill.scrollingContainer.scrollTop=Ua;Fa.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var va=this,Fa=[],Pa=[];this.matchers.forEach(function(Ma){Ma=da(Ma,2);var Ua=Ma[0],Wa=Ma[1];switch(Ua){case Node.TEXT_NODE:Pa.push(Wa);
310
- break;case Node.ELEMENT_NODE:Fa.push(Wa);break;default:[].forEach.call(va.container.querySelectorAll(Ua),function(bb){bb["__ql-matcher"]=bb["__ql-matcher"]||[];bb["__ql-matcher"].push(Wa)})}});return[Fa,Pa]}}]);return Ia}(sa.default);ea.DEFAULTS={matchers:[],matchVisual:!0};ka.default=ea;ka.matchAttributor=w;ka.matchBlot=aa;ka.matchNewline=fa;ka.matchSpacing=ja;ka.matchText=ba},function(ia,ka,ea){function ca(n,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+
311
- typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,a):n.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function n(a,e){for(var f=0;f<e.length;f++){var h=e[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(a,h.key,h)}}return function(a,e,f){e&&n(a.prototype,e);f&&n(a,f);return a}}(),r=function h(a,e,
312
- f){null===a&&(a=Function.prototype);var y=Object.getOwnPropertyDescriptor(a,e);if(void 0===y){if(a=Object.getPrototypeOf(a),null!==a)return h(a,e,f)}else{if("value"in y)return y.value;e=y.get;return void 0===e?void 0:e.call(f)}};ia=function(a){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
313
- return!f||"object"!==typeof f&&"function"!==typeof f?this:f}ca(e,a);x(e,[{key:"optimize",value:function(f){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,f);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return e}(function(a){return a&&a.__esModule?a:{default:a}}(ea(6)).default);
314
- ia.blotName="bold";ia.tagName=["STRONG","B"];ka.default=ia},function(ia,ka,ea){function ca(fa){return fa&&fa.__esModule?fa:{default:fa}}function x(fa,ja){if(!fa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ja||"object"!==typeof ja&&"function"!==typeof ja?fa:ja}function r(fa,ja){if("function"!==typeof ja&&null!==ja)throw new TypeError("Super expression must either be null or a function, not "+typeof ja);fa.prototype=Object.create(ja&&ja.prototype,{constructor:{value:fa,
315
- enumerable:!1,writable:!0,configurable:!0}});ja&&(Object.setPrototypeOf?Object.setPrototypeOf(fa,ja):fa.__proto__=ja)}function n(fa,ja,ba){var ha=document.createElement("button");ha.setAttribute("type","button");ha.classList.add("ql-"+ja);null!=ba&&(ha.value=ba);fa.appendChild(ha)}function a(fa,ja){Array.isArray(ja[0])||(ja=[ja]);ja.forEach(function(ba){var ha=document.createElement("span");ha.classList.add("ql-formats");ba.forEach(function(da){if("string"===typeof da)n(ha,da);else{var la=Object.keys(da)[0];
316
- da=da[la];Array.isArray(da)?e(ha,la,da):n(ha,la,da)}});fa.appendChild(ha)})}function e(fa,ja,ba){var ha=document.createElement("select");ha.classList.add("ql-"+ja);ba.forEach(function(da){var la=document.createElement("option");!1!==da?la.setAttribute("value",da):la.setAttribute("selected","selected");ha.appendChild(la)});fa.appendChild(ha)}Object.defineProperty(ka,"__esModule",{value:!0});ka.addControls=ka.default=void 0;var f=function(){return function(fa,ja){if(Array.isArray(fa))return fa;if(Symbol.iterator in
317
- Object(fa)){var ba=[],ha=!0,da=!1,la=void 0;try{for(var ua=fa[Symbol.iterator](),ma;!(ha=(ma=ua.next()).done)&&(ba.push(ma.value),!ja||ba.length!==ja);ha=!0);}catch(ra){da=!0,la=ra}finally{try{if(!ha&&ua["return"])ua["return"]()}finally{if(da)throw la;}}return ba}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),h=function(){function fa(ja,ba){for(var ha=0;ha<ba.length;ha++){var da=ba[ha];da.enumerable=da.enumerable||!1;da.configurable=!0;"value"in da&&(da.writable=
318
- !0);Object.defineProperty(ja,da.key,da)}}return function(ja,ba,ha){ba&&fa(ja.prototype,ba);ha&&fa(ja,ha);return ja}}();ia=ea(2);var y=ca(ia);ia=ea(0);var b=ca(ia);ia=ea(5);var w=ca(ia);ia=ea(10);ia=ca(ia);ea=ea(9);ea=ca(ea);var aa=(0,ia.default)("quill:toolbar");ea=function(fa){function ja(ba,ha){if(!(this instanceof ja))throw new TypeError("Cannot call a class as a function");var da=x(this,(ja.__proto__||Object.getPrototypeOf(ja)).call(this,ba,ha));Array.isArray(da.options.container)?(ha=document.createElement("div"),
319
- a(ha,da.options.container),ba.container.parentNode.insertBefore(ha,ba.container),da.container=ha):da.container="string"===typeof da.options.container?document.querySelector(da.options.container):da.options.container;if(!(da.container instanceof HTMLElement)){var la;return la=aa.error("Container required for toolbar",da.options),x(da,la)}da.container.classList.add("ql-toolbar");da.controls=[];da.handlers={};Object.keys(da.options.handlers).forEach(function(ua){da.addHandler(ua,da.options.handlers[ua])});
320
- [].forEach.call(da.container.querySelectorAll("button, select"),function(ua){da.attach(ua)});da.quill.on(w.default.events.EDITOR_CHANGE,function(ua,ma){ua===w.default.events.SELECTION_CHANGE&&da.update(ma)});da.quill.on(w.default.events.SCROLL_OPTIMIZE,function(){var ua=da.quill.selection.getRange();ua=f(ua,1)[0];da.update(ua)});return da}r(ja,fa);h(ja,[{key:"addHandler",value:function(ba,ha){this.handlers[ba]=ha}},{key:"attach",value:function(ba){var ha=this,da=[].find.call(ba.classList,function(la){return 0===
321
- la.indexOf("ql-")});if(da){da=da.slice(3);"BUTTON"===ba.tagName&&ba.setAttribute("type","button");if(null==this.handlers[da]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[da]){aa.warn("ignoring attaching to disabled format",da,ba);return}if(null==b.default.query(da)){aa.warn("ignoring attaching to nonexistent format",da,ba);return}}ba.addEventListener("SELECT"===ba.tagName?"change":"click",function(la){if("SELECT"===ba.tagName){if(0>ba.selectedIndex)return;var ua=ba.options[ba.selectedIndex];
322
- ua=ua.hasAttribute("selected")?!1:ua.value||!1}else ua=ba.classList.contains("ql-active")?!1:ba.value||!ba.hasAttribute("value"),la.preventDefault();ha.quill.focus();la=ha.quill.selection.getRange();la=f(la,1)[0];if(null!=ha.handlers[da])ha.handlers[da].call(ha,ua);else if(b.default.query(da).prototype instanceof b.default.Embed){ua=prompt("Enter "+da);if(!ua)return;var ma=ha.quill,ra=ma.updateContents,oa=(new y.default).retain(la.index).delete(la.length),sa=oa.insert,ta={},qa=da;qa in ta?Object.defineProperty(ta,
323
- qa,{value:ua,enumerable:!0,configurable:!0,writable:!0}):ta[qa]=ua;ra.call(ma,sa.call(oa,ta),w.default.sources.USER)}else ha.quill.format(da,ua,w.default.sources.USER);ha.update(la)});this.controls.push([da,ba])}}},{key:"update",value:function(ba){var ha=null==ba?{}:this.quill.getFormat(ba);this.controls.forEach(function(da){da=f(da,2);var la=da[0];da=da[1];if("SELECT"===da.tagName){var ua=void 0;null==ba?ua=null:null==ha[la]?ua=da.querySelector("option[selected]"):Array.isArray(ha[la])||(la=ha[la],
324
- "string"===typeof la&&(la=la.replace(/"/g,'\\"')),ua=da.querySelector('option[value="'+la+'"]'));null==ua?(da.value="",da.selectedIndex=-1):ua.selected=!0}else null==ba?da.classList.remove("ql-active"):da.hasAttribute("value")?(la=ha[la]===da.getAttribute("value")||null!=ha[la]&&ha[la].toString()===da.getAttribute("value")||null==ha[la]&&!da.getAttribute("value"),da.classList.toggle("ql-active",la)):da.classList.toggle("ql-active",null!=ha[la])})}}]);return ja}(ea.default);ea.DEFAULTS={};ea.DEFAULTS=
325
- {container:null,handlers:{clean:function(){var fa=this,ja=this.quill.getSelection();null!=ja&&(0==ja.length?(ja=this.quill.getFormat(),Object.keys(ja).forEach(function(ba){null!=b.default.query(ba,b.default.Scope.INLINE)&&fa.quill.format(ba,!1)})):this.quill.removeFormat(ja,w.default.sources.USER))},direction:function(fa){var ja=this.quill.getFormat().align;"rtl"===fa&&null==ja?this.quill.format("align","right",w.default.sources.USER):fa||"right"!==ja||this.quill.format("align",!1,w.default.sources.USER);
326
- this.quill.format("direction",fa,w.default.sources.USER)},indent:function(fa){var ja=this.quill.getFormat(this.quill.getSelection()),ba=parseInt(ja.indent||0);if("+1"===fa||"-1"===fa)fa="+1"===fa?1:-1,"rtl"===ja.direction&&(fa*=-1),this.quill.format("indent",ba+fa,w.default.sources.USER)},link:function(fa){!0===fa&&(fa=prompt("Enter link URL:"));this.quill.format("link",fa,w.default.sources.USER)},list:function(fa){var ja=this.quill.getFormat(this.quill.getSelection());"check"===fa?"checked"===ja.list||
327
- "unchecked"===ja.list?this.quill.format("list",!1,w.default.sources.USER):this.quill.format("list","unchecked",w.default.sources.USER):this.quill.format("list",fa,w.default.sources.USER)}}};ka.default=ea;ka.addControls=a},function(ia){ia.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(ia,ka,ea){function ca(a,
328
- e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?a:e}function x(a,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}Object.defineProperty(ka,"__esModule",
329
- {value:!0});var r=function(){function a(e,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(e,y.key,y)}}return function(e,f,h){f&&a(e.prototype,f);h&&a(e,h);return e}}(),n=function y(e,f,h){null===e&&(e=Function.prototype);var b=Object.getOwnPropertyDescriptor(e,f);if(void 0===b){if(e=Object.getPrototypeOf(e),null!==e)return y(e,f,h)}else{if("value"in b)return b.value;f=b.get;return void 0===f?void 0:f.call(h)}};
330
- ia=function(e){function f(h,y){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");h=ca(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h));h.label.innerHTML=y;h.container.classList.add("ql-color-picker");[].slice.call(h.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(b){b.classList.add("ql-primary")});return h}x(f,e);r(f,[{key:"buildItem",value:function(h){var y=n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"buildItem",this).call(this,
331
- h);y.style.backgroundColor=h.getAttribute("value")||"";return y}},{key:"selectItem",value:function(h,y){n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"selectItem",this).call(this,h,y);y=this.label.querySelector(".ql-color-label");h=h?h.getAttribute("data-value")||"":"";y&&("line"===y.tagName?y.style.stroke=h:y.style.fill=h)}}]);return f}(function(e){return e&&e.__esModule?e:{default:e}}(ea(28)).default);ka.default=ia},function(ia,ka,ea){function ca(a,e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
332
- return!e||"object"!==typeof e&&"function"!==typeof e?a:e}function x(a,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}Object.defineProperty(ka,"__esModule",{value:!0});var r=function(){function a(e,f){for(var h=0;h<f.length;h++){var y=f[h];y.enumerable=
333
- y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(e,y.key,y)}}return function(e,f,h){f&&a(e.prototype,f);h&&a(e,h);return e}}(),n=function y(e,f,h){null===e&&(e=Function.prototype);var b=Object.getOwnPropertyDescriptor(e,f);if(void 0===b){if(e=Object.getPrototypeOf(e),null!==e)return y(e,f,h)}else{if("value"in b)return b.value;f=b.get;return void 0===f?void 0:f.call(h)}};ia=function(e){function f(h,y){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");
334
- h=ca(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h));h.container.classList.add("ql-icon-picker");[].forEach.call(h.container.querySelectorAll(".ql-picker-item"),function(b){b.innerHTML=y[b.getAttribute("data-value")||""]});h.defaultItem=h.container.querySelector(".ql-selected");h.selectItem(h.defaultItem);return h}x(f,e);r(f,[{key:"selectItem",value:function(h,y){n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"selectItem",this).call(this,h,y);h=h||this.defaultItem;this.label.innerHTML=
335
- h.innerHTML}}]);return f}(function(e){return e&&e.__esModule?e:{default:e}}(ea(28)).default);ka.default=ia},function(ia,ka){Object.defineProperty(ka,"__esModule",{value:!0});var ea=function(){function ca(x,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(x,a.key,a)}}return function(x,r,n){r&&ca(x.prototype,r);n&&ca(x,n);return x}}();ia=function(){function ca(x,r){var n=this;if(!(this instanceof ca))throw new TypeError("Cannot call a class as a function");
336
- this.quill=x;this.boundsContainer=r||document.body;this.root=x.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"});this.hide()}ea(ca,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(x){var r=x.left+x.width/2-this.root.offsetWidth/2,n=x.bottom+this.quill.root.scrollTop;this.root.style.left=
337
- r+"px";this.root.style.top=n+"px";this.root.classList.remove("ql-flip");var a=this.boundsContainer.getBoundingClientRect(),e=this.root.getBoundingClientRect(),f=0;e.right>a.right&&(f=a.right-e.right,this.root.style.left=r+f+"px");e.left<a.left&&(f=a.left-e.left,this.root.style.left=r+f+"px");e.bottom>a.bottom&&(this.root.style.top=n-(x.bottom-x.top+(e.bottom-e.top))+"px",this.root.classList.add("ql-flip"));return f}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
338
- return ca}();ka.default=ia},function(ia,ka,ea){function ca(da){return da&&da.__esModule?da:{default:da}}function x(da,la){if(!(da instanceof la))throw new TypeError("Cannot call a class as a function");}function r(da,la){if(!da)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!la||"object"!==typeof la&&"function"!==typeof la?da:la}function n(da,la){if("function"!==typeof la&&null!==la)throw new TypeError("Super expression must either be null or a function, not "+
339
- typeof la);da.prototype=Object.create(la&&la.prototype,{constructor:{value:da,enumerable:!1,writable:!0,configurable:!0}});la&&(Object.setPrototypeOf?Object.setPrototypeOf(da,la):da.__proto__=la)}Object.defineProperty(ka,"__esModule",{value:!0});var a=function(){return function(da,la){if(Array.isArray(da))return da;if(Symbol.iterator in Object(da)){var ua=[],ma=!0,ra=!1,oa=void 0;try{for(var sa=da[Symbol.iterator](),ta;!(ma=(ta=sa.next()).done)&&(ua.push(ta.value),!la||ua.length!==la);ma=!0);}catch(qa){ra=
340
- !0,oa=qa}finally{try{if(!ma&&sa["return"])sa["return"]()}finally{if(ra)throw oa;}}return ua}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function ra(la,ua,ma){null===la&&(la=Function.prototype);var oa=Object.getOwnPropertyDescriptor(la,ua);if(void 0===oa){if(la=Object.getPrototypeOf(la),null!==la)return ra(la,ua,ma)}else{if("value"in oa)return oa.value;ua=oa.get;return void 0===ua?void 0:ua.call(ma)}},f=function(){function la(ua,ma){for(var ra=0;ra<ma.length;ra++){var oa=
341
- ma[ra];oa.enumerable=oa.enumerable||!1;oa.configurable=!0;"value"in oa&&(oa.writable=!0);Object.defineProperty(ua,oa.key,oa)}}return function(ua,ma,ra){ma&&la(ua.prototype,ma);ra&&la(ua,ra);return ua}}();ia=ea(3);ia=ca(ia);var h=ea(8),y=ca(h);h=ea(43);var b=ca(h),w=ea(27),aa=ca(w),fa=ea(15);ea=ea(41);var ja=ca(ea),ba=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ea=function(la){function ua(ma,ra){x(this,ua);null!=ra.modules.toolbar&&
342
- null==ra.modules.toolbar.container&&(ra.modules.toolbar.container=ba);ma=r(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,ma,ra));ma.quill.container.classList.add("ql-snow");return ma}n(ua,la);f(ua,[{key:"extendToolbar",value:function(ma){ma.container.classList.add("ql-snow");this.buildButtons([].slice.call(ma.container.querySelectorAll("button")),ja.default);this.buildPickers([].slice.call(ma.container.querySelectorAll("select")),ja.default);this.tooltip=new ha(this.quill,this.options.bounds);
343
- ma.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(ra,oa){ma.handlers.link.call(ma,!oa.format.link)})}}]);return ua}(b.default);ea.DEFAULTS=(0,ia.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(la){la?(la=this.quill.getSelection(),null!=la&&0!=la.length&&(la=this.quill.getText(la),/^\S+@\S+\.\S+$/.test(la)&&0!==la.indexOf("mailto:")&&(la="mailto:"+la),this.quill.theme.tooltip.edit("link",la))):this.quill.format("link",
344
- !1)}}}}});var ha=function(la){function ua(ma,ra){x(this,ua);ma=r(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,ma,ra));ma.preview=ma.root.querySelector("a.ql-preview");return ma}n(ua,la);f(ua,[{key:"listen",value:function(){var ma=this;e(ua.prototype.__proto__||Object.getPrototypeOf(ua.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(ra){ma.root.classList.contains("ql-editing")?ma.save():ma.edit("link",ma.preview.textContent);
345
- ra.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(ra){if(null!=ma.linkRange){var oa=ma.linkRange;ma.restoreFocus();ma.quill.formatText(oa,"link",!1,y.default.sources.USER);delete ma.linkRange}ra.preventDefault();ma.hide()});this.quill.on(y.default.events.SELECTION_CHANGE,function(ra,oa,sa){if(null!=ra){if(0===ra.length&&sa===y.default.sources.USER){if(oa=ma.quill.scroll.descendant(aa.default,ra.index),sa=a(oa,2),oa=sa[0],sa=sa[1],null!=oa){ma.linkRange=
346
- new fa.Range(ra.index-sa,oa.length());ra=aa.default.formats(oa.domNode);ma.preview.textContent=ra;ma.preview.setAttribute("href",ra);ma.show();ma.position(ma.quill.getBounds(ma.linkRange));return}}else delete ma.linkRange;ma.hide()}})}},{key:"show",value:function(){e(ua.prototype.__proto__||Object.getPrototypeOf(ua.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return ua}(h.BaseTooltip);ha.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>';
347
- ka.default=ea},function(ia,ka,ea){function ca(Ra){return Ra&&Ra.__esModule?Ra:{default:Ra}}Object.defineProperty(ka,"__esModule",{value:!0});ia=ea(29);ia=ca(ia);var x=ea(36),r=ea(38),n=ea(64),a=ea(65);a=ca(a);var e=ea(66);e=ca(e);var f=ea(67),h=ca(f),y=ea(37),b=ea(26),w=ea(39),aa=ea(40),fa=ea(56);fa=ca(fa);var ja=ea(68);ja=ca(ja);var ba=ea(27);ba=ca(ba);var ha=ea(69);ha=ca(ha);var da=ea(70);da=ca(da);var la=ea(71);la=ca(la);var ua=ea(72);ua=ca(ua);var ma=ea(73);ma=ca(ma);var ra=ea(13),oa=ca(ra),sa=
348
- ea(74);sa=ca(sa);var ta=ea(75);ta=ca(ta);var qa=ea(57);qa=ca(qa);var wa=ea(41);wa=ca(wa);var Aa=ea(28);Aa=ca(Aa);var Ga=ea(59);Ga=ca(Ga);var Na=ea(60);Na=ca(Na);var Ha=ea(61);Ha=ca(Ha);var Qa=ea(108);Qa=ca(Qa);ea=ea(62);ea=ca(ea);ia.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":x.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":b.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":w.FontClass,
349
- "attributors/class/size":aa.SizeClass,"attributors/style/align":x.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":b.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":w.FontStyle,"attributors/style/size":aa.SizeStyle},!0);ia.default.register({"formats/align":x.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":n.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":b.ColorStyle,"formats/font":w.FontClass,
350
- "formats/size":aa.SizeClass,"formats/blockquote":a.default,"formats/code-block":oa.default,"formats/header":e.default,"formats/list":h.default,"formats/bold":fa.default,"formats/code":ra.Code,"formats/italic":ja.default,"formats/link":ba.default,"formats/script":ha.default,"formats/strike":da.default,"formats/underline":la.default,"formats/image":ua.default,"formats/video":ma.default,"formats/list/item":f.ListItem,"modules/formula":sa.default,"modules/syntax":ta.default,"modules/toolbar":qa.default,
351
- "themes/bubble":Qa.default,"themes/snow":ea.default,"ui/icons":wa.default,"ui/picker":Aa.default,"ui/icon-picker":Na.default,"ui/color-picker":Ga.default,"ui/tooltip":Ha.default},!0);ka.default=ia.default},function(ia,ka,ea){function ca(n,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,
352
- a):n.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});ka.IndentClass=void 0;var x=function(){function n(a,e){for(var f=0;f<e.length;f++){var h=e[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(a,h.key,h)}}return function(a,e,f){e&&n(a.prototype,e);f&&n(a,f);return a}}(),r=function h(a,e,f){null===a&&(a=Function.prototype);var y=Object.getOwnPropertyDescriptor(a,e);if(void 0===y){if(a=Object.getPrototypeOf(a),null!==a)return h(a,e,
353
- f)}else{if("value"in y)return y.value;e=y.get;return void 0===e?void 0:e.call(f)}};ia=function(a){return a&&a.__esModule?a:{default:a}}(ea(0));ia=new (function(a){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}ca(e,a);x(e,[{key:"add",
354
- value:function(f,h){if("+1"===h||"-1"===h){var y=this.value(f)||0;h="+1"===h?y+1:y-1}return 0===h?(this.remove(f),!0):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,f,h)}},{key:"canAdd",value:function(f,h){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,f,h)||r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,f,parseInt(h))}},{key:"value",value:function(f){return parseInt(r(e.prototype.__proto__||
355
- Object.getPrototypeOf(e.prototype),"value",this).call(this,f))||void 0}}]);return e}(ia.default.Attributor.Class))("indent","ql-indent",{scope:ia.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});ka.IndentClass=ia},function(ia,ka,ea){function ca(x,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);x.prototype=Object.create(r&&r.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?
356
- Object.setPrototypeOf(x,r):x.__proto__=r)}Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var n=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}ca(r,x);return r}(function(x){return x&&x.__esModule?x:{default:x}}(ea(4)).default);
357
- ia.blotName="blockquote";ia.tagName="blockquote";ka.default=ia},function(ia,ka,ea){function ca(r,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function r(n,a){for(var e=0;e<a.length;e++){var f=
358
- a[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(n,f.key,f)}}return function(n,a,e){a&&r(n.prototype,a);e&&r(n,e);return n}}();ia=function(r){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var a=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?
359
- this:a}ca(n,r);x(n,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]);return n}(function(r){return r&&r.__esModule?r:{default:r}}(ea(4)).default);ia.blotName="header";ia.tagName="H1 H2 H3 H4 H5 H6".split(" ");ka.default=ia},function(ia,ka,ea){function ca(b){return b&&b.__esModule?b:{default:b}}function x(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function");}function r(b,w){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
360
- return!w||"object"!==typeof w&&"function"!==typeof w?b:w}function n(b,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(b,w):b.__proto__=w)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.ListItem=void 0;var a=function(){function b(w,aa){for(var fa=0;fa<
361
- aa.length;fa++){var ja=aa[fa];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(w,ja.key,ja)}}return function(w,aa,fa){aa&&b(w.prototype,aa);fa&&b(w,fa);return w}}(),e=function ja(w,aa,fa){null===w&&(w=Function.prototype);var ba=Object.getOwnPropertyDescriptor(w,aa);if(void 0===ba){if(w=Object.getPrototypeOf(w),null!==w)return ja(w,aa,fa)}else{if("value"in ba)return ba.value;aa=ba.get;return void 0===aa?void 0:aa.call(fa)}};ia=ea(0);var f=ca(ia);
362
- ia=ea(4);ia=ca(ia);ea=ea(25);ea=ca(ea);var h=function(w){function aa(){x(this,aa);return r(this,(aa.__proto__||Object.getPrototypeOf(aa)).apply(this,arguments))}n(aa,w);a(aa,[{key:"format",value:function(fa,ja){fa!==y.blotName||ja?e(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"format",this).call(this,fa,ja):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():e(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),
363
- "remove",this).call(this)}},{key:"replaceWith",value:function(fa,ja){this.parent.isolate(this.offset(this.parent),this.length());if(fa===this.parent.statics.blotName)return this.parent.replaceWith(fa,ja),this;this.parent.unwrap();return e(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"replaceWith",this).call(this,fa,ja)}}],[{key:"formats",value:function(fa){return fa.tagName===this.tagName?void 0:e(aa.__proto__||Object.getPrototypeOf(aa),"formats",this).call(this,fa)}}]);return aa}(ia.default);
364
- h.blotName="list-item";h.tagName="LI";var y=function(w){function aa(fa){function ja(ha){if(ha.target.parentNode===fa){var da=ba.statics.formats(fa);ha=f.default.find(ha.target);"checked"===da?ha.format("list","unchecked"):"unchecked"===da&&ha.format("list","checked")}}x(this,aa);var ba=r(this,(aa.__proto__||Object.getPrototypeOf(aa)).call(this,fa));fa.addEventListener("touchstart",ja);fa.addEventListener("mousedown",ja);return ba}n(aa,w);a(aa,null,[{key:"create",value:function(fa){var ja="ordered"===
365
- fa?"OL":"UL";ja=e(aa.__proto__||Object.getPrototypeOf(aa),"create",this).call(this,ja);"checked"!==fa&&"unchecked"!==fa||ja.setAttribute("data-checked","checked"===fa);return ja}},{key:"formats",value:function(fa){if("OL"===fa.tagName)return"ordered";if("UL"===fa.tagName)return fa.hasAttribute("data-checked")?"true"===fa.getAttribute("data-checked")?"checked":"unchecked":"bullet"}}]);a(aa,[{key:"format",value:function(fa,ja){0<this.children.length&&this.children.tail.format(fa,ja)}},{key:"formats",
366
- value:function(){var fa={},ja=this.statics.blotName,ba=this.statics.formats(this.domNode);ja in fa?Object.defineProperty(fa,ja,{value:ba,enumerable:!0,configurable:!0,writable:!0}):fa[ja]=ba;return fa}},{key:"insertBefore",value:function(fa,ja){fa instanceof h?e(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"insertBefore",this).call(this,fa,ja):(ja=null==ja?this.length():ja.offset(this),ja=this.split(ja),ja.parent.insertBefore(fa,ja))}},{key:"optimize",value:function(fa){e(aa.prototype.__proto__||
367
- Object.getPrototypeOf(aa.prototype),"optimize",this).call(this,fa);fa=this.next;null!=fa&&fa.prev===this&&fa.statics.blotName===this.statics.blotName&&fa.domNode.tagName===this.domNode.tagName&&fa.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(fa.moveChildren(this),fa.remove())}},{key:"replace",value:function(fa){if(fa.statics.blotName!==this.statics.blotName){var ja=f.default.create(this.statics.defaultChild);fa.moveChildren(ja);this.appendChild(ja)}e(aa.prototype.__proto__||
368
- Object.getPrototypeOf(aa.prototype),"replace",this).call(this,fa)}}]);return aa}(ea.default);y.blotName="list";y.scope=f.default.Scope.BLOCK_BLOT;y.tagName=["OL","UL"];y.defaultChild="list-item";y.allowedChildren=[h];ka.ListItem=h;ka.default=y},function(ia,ka,ea){function ca(x,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);x.prototype=Object.create(r&&r.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});
369
- r&&(Object.setPrototypeOf?Object.setPrototypeOf(x,r):x.__proto__=r)}Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var n=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}ca(r,x);return r}(function(x){return x&&x.__esModule?
370
- x:{default:x}}(ea(56)).default);ia.blotName="italic";ia.tagName=["EM","I"];ka.default=ia},function(ia,ka,ea){function ca(n,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,a):n.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function n(a,
371
- e){for(var f=0;f<e.length;f++){var h=e[f];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(a,h.key,h)}}return function(a,e,f){e&&n(a.prototype,e);f&&n(a,f);return a}}(),r=function h(a,e,f){null===a&&(a=Function.prototype);var y=Object.getOwnPropertyDescriptor(a,e);if(void 0===y){if(a=Object.getPrototypeOf(a),null!==a)return h(a,e,f)}else{if("value"in y)return y.value;e=y.get;return void 0===e?void 0:e.call(f)}};ia=function(a){function e(){if(!(this instanceof
372
- e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}ca(e,a);x(e,null,[{key:"create",value:function(f){return"super"===f?document.createElement("sup"):"sub"===f?document.createElement("sub"):r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,f)}},{key:"formats",
373
- value:function(f){if("SUB"===f.tagName)return"sub";if("SUP"===f.tagName)return"super"}}]);return e}(function(a){return a&&a.__esModule?a:{default:a}}(ea(6)).default);ia.blotName="script";ia.tagName=["SUB","SUP"];ka.default=ia},function(ia,ka,ea){function ca(x,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);x.prototype=Object.create(r&&r.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?
374
- Object.setPrototypeOf(x,r):x.__proto__=r)}Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var n=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}ca(r,x);return r}(function(x){return x&&x.__esModule?x:{default:x}}(ea(6)).default);
375
- ia.blotName="strike";ia.tagName="S";ka.default=ia},function(ia,ka,ea){function ca(x,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);x.prototype=Object.create(r&&r.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(x,r):x.__proto__=r)}Object.defineProperty(ka,"__esModule",{value:!0});ia=function(x){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");
376
- var n=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}ca(r,x);return r}(function(x){return x&&x.__esModule?x:{default:x}}(ea(6)).default);ia.blotName="underline";ia.tagName="U";ka.default=ia},function(ia,ka,ea){function ca(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+
377
- typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function e(f,h){for(var y=0;y<h.length;y++){var b=h[y];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(f,b.key,b)}}return function(f,h,y){h&&e(f.prototype,h);y&&e(f,y);return f}}(),r=function b(f,h,
378
- y){null===f&&(f=Function.prototype);var w=Object.getOwnPropertyDescriptor(f,h);if(void 0===w){if(f=Object.getPrototypeOf(f),null!==f)return b(f,h,y)}else{if("value"in w)return w.value;h=w.get;return void 0===h?void 0:h.call(y)}};ia=function(f){return f&&f.__esModule?f:{default:f}}(ea(0));var n=ea(27),a=["alt","height","width"];ea=function(f){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var y=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);
379
- if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ca(h,f);x(h,[{key:"format",value:function(y,b){-1<a.indexOf(y)?b?this.domNode.setAttribute(y,b):this.domNode.removeAttribute(y):r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,y,b)}}],[{key:"create",value:function(y){var b=r(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,y);"string"===typeof y&&
380
- b.setAttribute("src",this.sanitize(y));return b}},{key:"formats",value:function(y){return a.reduce(function(b,w){y.hasAttribute(w)&&(b[w]=y.getAttribute(w));return b},{})}},{key:"match",value:function(y){return/\.(jpe?g|gif|png)$/.test(y)||/^data:image\/.+;base64/.test(y)}},{key:"sanitize",value:function(y){return(0,n.sanitize)(y,["http","https","data"])?y:"//:0"}},{key:"value",value:function(y){return y.getAttribute("src")}}]);return h}(ia.default.Embed);ea.blotName="image";ea.tagName="IMG";ka.default=
381
- ea},function(ia,ka,ea){function ca(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(ka,"__esModule",{value:!0});var x=function(){function e(f,h){for(var y=0;y<h.length;y++){var b=h[y];b.enumerable=b.enumerable||!1;b.configurable=
382
- !0;"value"in b&&(b.writable=!0);Object.defineProperty(f,b.key,b)}}return function(f,h,y){h&&e(f.prototype,h);y&&e(f,y);return f}}(),r=function b(f,h,y){null===f&&(f=Function.prototype);var w=Object.getOwnPropertyDescriptor(f,h);if(void 0===w){if(f=Object.getPrototypeOf(f),null!==f)return b(f,h,y)}else{if("value"in w)return w.value;h=w.get;return void 0===h?void 0:h.call(y)}};ia=ea(4);var n=function(f){return f&&f.__esModule?f:{default:f}}(ea(27)),a=["height","width"];ea=function(f){function h(){if(!(this instanceof
383
- h))throw new TypeError("Cannot call a class as a function");var y=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ca(h,f);x(h,[{key:"format",value:function(y,b){-1<a.indexOf(y)?b?this.domNode.setAttribute(y,b):this.domNode.removeAttribute(y):r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,y,b)}}],
384
- [{key:"create",value:function(y){var b=r(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,y);b.setAttribute("frameborder","0");b.setAttribute("allowfullscreen",!0);b.setAttribute("src",this.sanitize(y));return b}},{key:"formats",value:function(y){return a.reduce(function(b,w){y.hasAttribute(w)&&(b[w]=y.getAttribute(w));return b},{})}},{key:"sanitize",value:function(y){return n.default.sanitize(y)}},{key:"value",value:function(y){return y.getAttribute("src")}}]);return h}(ia.BlockEmbed);
385
- ea.blotName="video";ea.className="ql-video";ea.tagName="IFRAME";ka.default=ea},function(ia,ka,ea){function ca(b){return b&&b.__esModule?b:{default:b}}function x(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function");}function r(b,w){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!==typeof w&&"function"!==typeof w?b:w}function n(b,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+
386
- typeof w);b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(b,w):b.__proto__=w)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.FormulaBlot=void 0;var a=function(){function b(w,aa){for(var fa=0;fa<aa.length;fa++){var ja=aa[fa];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(w,ja.key,ja)}}return function(w,aa,fa){aa&&b(w.prototype,
387
- aa);fa&&b(w,fa);return w}}(),e=function ja(w,aa,fa){null===w&&(w=Function.prototype);var ba=Object.getOwnPropertyDescriptor(w,aa);if(void 0===ba){if(w=Object.getPrototypeOf(w),null!==w)return ja(w,aa,fa)}else{if("value"in ba)return ba.value;aa=ba.get;return void 0===aa?void 0:aa.call(fa)}};ia=ea(35);ia=ca(ia);var f=ea(5),h=ca(f);ea=ea(9);ea=ca(ea);var y=function(w){function aa(){x(this,aa);return r(this,(aa.__proto__||Object.getPrototypeOf(aa)).apply(this,arguments))}n(aa,w);a(aa,null,[{key:"create",
388
- value:function(fa){var ja=e(aa.__proto__||Object.getPrototypeOf(aa),"create",this).call(this,fa);"string"===typeof fa&&(window.katex.render(fa,ja,{throwOnError:!1,errorColor:"#f00"}),ja.setAttribute("data-value",fa));return ja}},{key:"value",value:function(fa){return fa.getAttribute("data-value")}}]);return aa}(ia.default);y.blotName="formula";y.className="ql-formula";y.tagName="SPAN";ea=function(w){function aa(){x(this,aa);var fa=r(this,(aa.__proto__||Object.getPrototypeOf(aa)).call(this));if(null==
389
- window.katex)throw Error("Formula module requires KaTeX.");return fa}n(aa,w);a(aa,null,[{key:"register",value:function(){h.default.register(y,!0)}}]);return aa}(ea.default);ka.FormulaBlot=y;ka.default=ea},function(ia,ka,ea){function ca(w){return w&&w.__esModule?w:{default:w}}function x(w,aa){if(!(w instanceof aa))throw new TypeError("Cannot call a class as a function");}function r(w,aa){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==
390
- typeof aa&&"function"!==typeof aa?w:aa}function n(w,aa){if("function"!==typeof aa&&null!==aa)throw new TypeError("Super expression must either be null or a function, not "+typeof aa);w.prototype=Object.create(aa&&aa.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(w,aa):w.__proto__=aa)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.CodeToken=ka.CodeBlock=void 0;var a=function(){function w(aa,fa){for(var ja=
391
- 0;ja<fa.length;ja++){var ba=fa[ja];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=!0);Object.defineProperty(aa,ba.key,ba)}}return function(aa,fa,ja){fa&&w(aa.prototype,fa);ja&&w(aa,ja);return aa}}(),e=function ba(aa,fa,ja){null===aa&&(aa=Function.prototype);var ha=Object.getOwnPropertyDescriptor(aa,fa);if(void 0===ha){if(aa=Object.getPrototypeOf(aa),null!==aa)return ba(aa,fa,ja)}else{if("value"in ha)return ha.value;fa=ha.get;return void 0===fa?void 0:fa.call(ja)}};ia=
392
- ea(0);ia=ca(ia);var f=ea(5),h=ca(f);f=ea(9);f=ca(f);ea=ea(13);var y=function(aa){function fa(){x(this,fa);return r(this,(fa.__proto__||Object.getPrototypeOf(fa)).apply(this,arguments))}n(fa,aa);a(fa,[{key:"replaceWith",value:function(ja){this.domNode.textContent=this.domNode.textContent;this.attach();e(fa.prototype.__proto__||Object.getPrototypeOf(fa.prototype),"replaceWith",this).call(this,ja)}},{key:"highlight",value:function(ja){var ba=this.domNode.textContent;if(this.cachedText!==ba){if(0<ba.trim().length||
393
- null==this.cachedText)this.domNode.innerHTML=ja(ba),this.domNode.normalize(),this.attach();this.cachedText=ba}}}]);return fa}(ca(ea).default);y.className="ql-syntax";var b=new ia.default.Attributor.Class("token","hljs",{scope:ia.default.Scope.INLINE});ea=function(aa){function fa(ja,ba){x(this,fa);var ha=r(this,(fa.__proto__||Object.getPrototypeOf(fa)).call(this,ja,ba));if("function"!==typeof ha.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
394
- var da=null;ha.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(da);da=setTimeout(function(){ha.highlight();da=null},ha.options.interval)});ha.highlight();return ha}n(fa,aa);a(fa,null,[{key:"register",value:function(){h.default.register(b,!0);h.default.register(y,!0)}}]);a(fa,[{key:"highlight",value:function(){var ja=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var ba=this.quill.getSelection();this.quill.scroll.descendants(y).forEach(function(ha){ha.highlight(ja.options.highlight)});
395
- this.quill.update(h.default.sources.SILENT);null!=ba&&this.quill.setSelection(ba,h.default.sources.SILENT)}}}]);return fa}(f.default);ea.DEFAULTS={highlight:function(){return null==window.hljs?null:function(aa){return window.hljs.highlightAuto(aa).value}}(),interval:1E3};ka.CodeBlock=y;ka.CodeToken=b;ka.default=ea},function(ia){ia.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>'},
396
- function(ia){ia.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(ia){ia.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(ia){ia.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>'},
397
- function(ia){ia.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>'},
398
- function(ia){ia.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(ia){ia.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>'},
399
- function(ia){ia.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(ia){ia.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>'},
400
- function(ia){ia.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(ia){ia.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>'},
401
- function(ia){ia.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(ia){ia.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>'},
402
- function(ia){ia.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(ia){ia.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>'},
403
- function(ia){ia.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>'},
404
- function(ia){ia.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>'},
405
- function(ia){ia.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>'},
406
- function(ia){ia.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(ia){ia.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(ia){ia.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>'},
407
- function(ia){ia.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(ia){ia.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>'},
408
- function(ia){ia.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>'},
409
- function(ia){ia.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(ia){ia.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>'},
410
- function(ia){ia.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>'},
411
- function(ia){ia.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>'},
412
- function(ia){ia.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>'},
413
- function(ia){ia.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(ia){ia.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>'},
414
- function(ia){ia.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(ia,ka,ea){function ca(ja){return ja&&ja.__esModule?ja:{default:ja}}function x(ja,ba){if(!(ja instanceof ba))throw new TypeError("Cannot call a class as a function");}function r(ja,ba){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ba||"object"!==typeof ba&&
415
- "function"!==typeof ba?ja:ba}function n(ja,ba){if("function"!==typeof ba&&null!==ba)throw new TypeError("Super expression must either be null or a function, not "+typeof ba);ja.prototype=Object.create(ba&&ba.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,ba):ja.__proto__=ba)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.BubbleTooltip=void 0;var a=function la(ba,ha,da){null===ba&&(ba=Function.prototype);
416
- var ua=Object.getOwnPropertyDescriptor(ba,ha);if(void 0===ua){if(ba=Object.getPrototypeOf(ba),null!==ba)return la(ba,ha,da)}else{if("value"in ua)return ua.value;ha=ua.get;return void 0===ha?void 0:ha.call(da)}},e=function(){function ba(ha,da){for(var la=0;la<da.length;la++){var ua=da[la];ua.enumerable=ua.enumerable||!1;ua.configurable=!0;"value"in ua&&(ua.writable=!0);Object.defineProperty(ha,ua.key,ua)}}return function(ha,da,la){da&&ba(ha.prototype,da);la&&ba(ha,la);return ha}}();ia=ea(3);ia=ca(ia);
417
- var f=ea(8),h=ca(f);f=ea(43);var y=ca(f),b=ea(15);ea=ea(41);var w=ca(ea),aa=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];ea=function(ba){function ha(da,la){x(this,ha);null!=la.modules.toolbar&&null==la.modules.toolbar.container&&(la.modules.toolbar.container=aa);da=r(this,(ha.__proto__||Object.getPrototypeOf(ha)).call(this,da,la));da.quill.container.classList.add("ql-bubble");return da}n(ha,ba);e(ha,[{key:"extendToolbar",value:function(da){this.tooltip=new fa(this.quill,this.options.bounds);
418
- this.tooltip.root.appendChild(da.container);this.buildButtons([].slice.call(da.container.querySelectorAll("button")),w.default);this.buildPickers([].slice.call(da.container.querySelectorAll("select")),w.default)}}]);return ha}(y.default);ea.DEFAULTS=(0,ia.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(ba){ba?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var fa=function(ba){function ha(da,la){x(this,ha);var ua=r(this,(ha.__proto__||Object.getPrototypeOf(ha)).call(this,
419
- da,la));ua.quill.on(h.default.events.EDITOR_CHANGE,function(ma,ra,oa,sa){ma===h.default.events.SELECTION_CHANGE&&(null!=ra&&0<ra.length&&sa===h.default.sources.USER?(ua.show(),ua.root.style.left="0px",ua.root.style.width="",ua.root.style.width=ua.root.offsetWidth+"px",ma=ua.quill.getLines(ra.index,ra.length),1===ma.length?ua.position(ua.quill.getBounds(ra)):(oa=ma[ma.length-1],ma=ua.quill.getIndex(oa),ra=Math.min(oa.length()-1,ra.index+ra.length-ma),ra=ua.quill.getBounds(new b.Range(ma,ra)),ua.position(ra))):
420
- document.activeElement!==ua.textbox&&ua.quill.hasFocus()&&ua.hide())});return ua}n(ha,ba);e(ha,[{key:"listen",value:function(){var da=this;a(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){da.root.classList.remove("ql-editing")});this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!da.root.classList.contains("ql-hidden")){var la=da.quill.getSelection();null!=
421
- la&&da.position(da.quill.getBounds(la))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(da){da=a(ha.prototype.__proto__||Object.getPrototypeOf(ha.prototype),"position",this).call(this,da);var la=this.root.querySelector(".ql-tooltip-arrow");la.style.marginLeft="";if(0===da)return da;la.style.marginLeft=-1*da-la.offsetWidth/2+"px"}}]);return ha}(f.BaseTooltip);fa.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>';
422
- ka.BubbleTooltip=fa;ka.default=ea},function(ia,ka,ea){ia.exports=ea(63)}])["default"]})}).call(this,z(384).Buffer)}}]);}).call(this || window)
2
+ (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{340:function(Ba,ya,z){(function(qa){(function(ka,la){Ba.exports=la()})("undefined"!==typeof self?self:this,function(){return function(ka){function la(da){if(ha[da])return ha[da].exports;var y=ha[da]={i:da,l:!1,exports:{}};ka[da].call(y.exports,y,y.exports,la);y.l=!0;return y.exports}var ha={};la.m=ka;la.c=ha;la.d=function(da,y,r){la.o(da,y)||Object.defineProperty(da,y,{configurable:!1,enumerable:!0,get:r})};la.n=function(da){var y=
3
+ da&&da.__esModule?function(){return da["default"]}:function(){return da};la.d(y,"a",y);return y};la.o=function(da,y){return Object.prototype.hasOwnProperty.call(da,y)};la.p="";return la(la.s=109)}([function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});ka=ha(17);var da=ha(18),y=ha(19),r=ha(45),h=ha(46),a=ha(47),b=ha(48),e=ha(49),f=ha(12),n=ha(32),x=ha(33),ca=ha(31);ha=ha(1);la.default={Scope:ha.Scope,create:ha.create,find:ha.find,query:ha.query,register:ha.register,Container:ka.default,
4
+ Format:da.default,Leaf:y.default,Embed:b.default,Scroll:r.default,Block:a.default,Inline:h.default,Text:e.default,Attributor:{Attribute:f.default,Class:n.default,Style:x.default,Store:ca.default}}},function(ka,la){function ha(x,ca){void 0===ca&&(ca=!1);return null==x?null:null!=x[la.DATA_KEY]?x[la.DATA_KEY].blot:ca?ha(x.parentNode,ca):null}function da(x,ca){void 0===ca&&(ca=n.ANY);if("string"===typeof x)var w=f[x]||a[x];else if(x instanceof Text||x.nodeType===Node.TEXT_NODE)w=f.text;else if("number"===
5
+ typeof x)x&n.LEVEL&n.BLOCK?w=f.block:x&n.LEVEL&n.INLINE&&(w=f.inline);else if(x instanceof HTMLElement){var aa=(x.getAttribute("class")||"").split(/\s+/),ja;for(ja in aa)if(w=b[aa[ja]])break;w=w||e[x.tagName]}return null==w?null:ca&n.LEVEL&w.scope&&ca&n.TYPE&w.scope?w:null}function y(){for(var x=[],ca=0;ca<arguments.length;ca++)x[ca]=arguments[ca];if(1<x.length)return x.map(function(aa){return y(aa)});var w=x[0];if("string"!==typeof w.blotName&&"string"!==typeof w.attrName)throw new h("Invalid definition");
6
+ if("abstract"===w.blotName)throw new h("Cannot register abstract class");f[w.blotName||w.attrName]=w;"string"===typeof w.keyName?a[w.keyName]=w:(null!=w.className&&(b[w.className]=w),null!=w.tagName&&(Array.isArray(w.tagName)?w.tagName=w.tagName.map(function(aa){return aa.toUpperCase()}):w.tagName=w.tagName.toUpperCase(),(Array.isArray(w.tagName)?w.tagName:[w.tagName]).forEach(function(aa){if(null==e[aa]||null==w.className)e[aa]=w})));return w}var r=this&&this.__extends||function(){var x=Object.setPrototypeOf||
7
+ {__proto__:[]}instanceof Array&&function(ca,w){ca.__proto__=w}||function(ca,w){for(var aa in w)w.hasOwnProperty(aa)&&(ca[aa]=w[aa])};return function(ca,w){function aa(){this.constructor=ca}x(ca,w);ca.prototype=null===w?Object.create(w):(aa.prototype=w.prototype,new aa)}}();Object.defineProperty(la,"__esModule",{value:!0});var h=function(x){function ca(w){w="[Parchment] "+w;var aa=x.call(this,w)||this;aa.message=w;aa.name=aa.constructor.name;return aa}r(ca,x);return ca}(Error);la.ParchmentError=h;
8
+ var a={},b={},e={},f={};la.DATA_KEY="__blot";var n;(function(x){x[x.TYPE=3]="TYPE";x[x.LEVEL=12]="LEVEL";x[x.ATTRIBUTE=13]="ATTRIBUTE";x[x.BLOT=14]="BLOT";x[x.INLINE=7]="INLINE";x[x.BLOCK=11]="BLOCK";x[x.BLOCK_BLOT=10]="BLOCK_BLOT";x[x.INLINE_BLOT=6]="INLINE_BLOT";x[x.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";x[x.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";x[x.ANY=15]="ANY"})(n=la.Scope||(la.Scope={}));la.create=function(x,ca){var w=da(x);if(null==w)throw new h("Unable to create "+x+" blot");x=x instanceof
9
+ Node||x.nodeType===Node.TEXT_NODE?x:w.create(ca);return new w(x,ca)};la.find=ha;la.query=da;la.register=y},function(ka,la,ha){function da(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}var y=ha(51),r=ha(11),h=ha(3),a=ha(20),b=String.fromCharCode(0);da.prototype.insert=function(e,f){var n={};if(0===e.length)return this;n.insert=e;null!=f&&"object"===typeof f&&0<Object.keys(f).length&&(n.attributes=f);return this.push(n)};da.prototype["delete"]=function(e){return 0>=
10
+ e?this:this.push({"delete":e})};da.prototype.retain=function(e,f){if(0>=e)return this;e={retain:e};null!=f&&"object"===typeof f&&0<Object.keys(f).length&&(e.attributes=f);return this.push(e)};da.prototype.push=function(e){var f=this.ops.length,n=this.ops[f-1];e=h(!0,{},e);if("object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[f-1]={"delete":n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(--f,n=this.ops[f-1],"object"!==
11
+ typeof n))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[f-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[f-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this}}f===this.ops.length?this.ops.push(e):this.ops.splice(f,0,e);
12
+ return this};da.prototype.chop=function(){var e=this.ops[this.ops.length-1];e&&e.retain&&!e.attributes&&this.ops.pop();return this};da.prototype.filter=function(e){return this.ops.filter(e)};da.prototype.forEach=function(e){this.ops.forEach(e)};da.prototype.map=function(e){return this.ops.map(e)};da.prototype.partition=function(e){var f=[],n=[];this.forEach(function(x){(e(x)?f:n).push(x)});return[f,n]};da.prototype.reduce=function(e,f){return this.ops.reduce(e,f)};da.prototype.changeLength=function(){return this.reduce(function(e,
13
+ f){return f.insert?e+a.length(f):f.delete?e-f.delete:e},0)};da.prototype.length=function(){return this.reduce(function(e,f){return e+a.length(f)},0)};da.prototype.slice=function(e,f){e=e||0;"number"!==typeof f&&(f=Infinity);for(var n=[],x=a.iterator(this.ops),ca=0;ca<f&&x.hasNext();){if(ca<e)var w=x.next(e-ca);else w=x.next(f-ca),n.push(w);ca+=a.length(w)}return new da(n)};da.prototype.compose=function(e){var f=a.iterator(this.ops);e=a.iterator(e.ops);var n=[],x=e.peek();if(null!=x&&"number"===typeof x.retain&&
14
+ null==x.attributes){for(var ca=x.retain;"insert"===f.peekType()&&f.peekLength()<=ca;)ca-=f.peekLength(),n.push(f.next());0<x.retain-ca&&e.next(x.retain-ca)}for(n=new da(n);f.hasNext()||e.hasNext();)if("insert"===e.peekType())n.push(e.next());else if("delete"===f.peekType())n.push(f.next());else{ca=Math.min(f.peekLength(),e.peekLength());var w=f.next(ca),aa=e.next(ca);if("number"===typeof aa.retain){x={};"number"===typeof w.retain?x.retain=ca:x.insert=w.insert;if(ca=a.attributes.compose(w.attributes,
15
+ aa.attributes,"number"===typeof w.retain))x.attributes=ca;n.push(x);if(!e.hasNext()&&r(n.ops[n.ops.length-1],x))return f=new da(f.rest()),n.concat(f).chop()}else"number"===typeof aa["delete"]&&"number"===typeof w.retain&&n.push(aa)}return n.chop()};da.prototype.concat=function(e){var f=new da(this.ops.slice());0<e.ops.length&&(f.push(e.ops[0]),f.ops=f.ops.concat(e.ops.slice(1)));return f};da.prototype.diff=function(e,f){if(this.ops===e.ops)return new da;var n=[this,e].map(function(aa){return aa.map(function(ja){if(null!=
16
+ ja.insert)return"string"===typeof ja.insert?ja.insert:b;throw Error("diff() called "+(aa===e?"on":"with")+" non-document");}).join("")}),x=new da;f=y(n[0],n[1],f);var ca=a.iterator(this.ops),w=a.iterator(e.ops);f.forEach(function(aa){for(var ja=aa[1].length;0<ja;){var fa=0;switch(aa[0]){case y.INSERT:fa=Math.min(w.peekLength(),ja);x.push(w.next(fa));break;case y.DELETE:fa=Math.min(ja,ca.peekLength());ca.next(fa);x["delete"](fa);break;case y.EQUAL:fa=Math.min(ca.peekLength(),w.peekLength(),ja);var ea=
17
+ ca.next(fa),ba=w.next(fa);if(r(ea.insert,ba.insert))x.retain(fa,a.attributes.diff(ea.attributes,ba.attributes));else x.push(ba)["delete"](fa)}ja-=fa}});return x.chop()};da.prototype.eachLine=function(e,f){f=f||"\n";for(var n=a.iterator(this.ops),x=new da,ca=0;n.hasNext();){if("insert"!==n.peekType())return;var w=n.peek(),aa=a.length(w)-n.peekLength();w="string"===typeof w.insert?w.insert.indexOf(f,aa)-aa:-1;if(0>w)x.push(n.next());else if(0<w)x.push(n.next(w));else{if(!1===e(x,n.next(1).attributes||
18
+ {},ca))return;ca+=1;x=new da}}0<x.length()&&e(x,{},ca)};da.prototype.transform=function(e,f){f=!!f;if("number"===typeof e)return this.transformPosition(e,f);var n=a.iterator(this.ops);e=a.iterator(e.ops);for(var x=new da;n.hasNext()||e.hasNext();)if("insert"!==n.peekType()||!f&&"insert"===e.peekType())if("insert"===e.peekType())x.push(e.next());else{var ca=Math.min(n.peekLength(),e.peekLength()),w=n.next(ca),aa=e.next(ca);w["delete"]||(aa["delete"]?x.push(aa):x.retain(ca,a.attributes.transform(w.attributes,
19
+ aa.attributes,f)))}else x.retain(a.length(n.next()));return x.chop()};da.prototype.transformPosition=function(e,f){f=!!f;for(var n=a.iterator(this.ops),x=0;n.hasNext()&&x<=e;){var ca=n.peekLength(),w=n.peekType();n.next();"delete"===w?e-=Math.min(ca,e-x):("insert"===w&&(x<e||!f)&&(e+=ca),x+=ca)}return e};ka.exports=da},function(ka){function la(e,f){if("__proto__"===f){if(!r.call(e,f))return;if(b)return b(e,f).value}return e[f]}function ha(e,f){a&&"__proto__"===f.name?a(e,f.name,{enumerable:!0,configurable:!0,
20
+ value:f.newValue,writable:!0}):e[f.name]=f.newValue}function da(e){if(!e||"[object Object]"!==h.call(e))return!1;var f=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!f&&!n)return!1;for(var x in e);return"undefined"===typeof x||r.call(e,x)}function y(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===h.call(e)}var r=Object.prototype.hasOwnProperty,h=Object.prototype.toString,a=Object.defineProperty,
21
+ b=Object.getOwnPropertyDescriptor;ka.exports=function f(){var n,x,ca=arguments[0],w=1,aa=arguments.length,ja=!1;"boolean"===typeof ca&&(ja=ca,ca=arguments[1]||{},w=2);if(null==ca||"object"!==typeof ca&&"function"!==typeof ca)ca={};for(;w<aa;++w){var fa=arguments[w];if(null!=fa)for(n in fa){var ea=la(ca,n);var ba=la(fa,n);ca!==ba&&(ja&&ba&&(da(ba)||(x=y(ba)))?(x?(x=!1,ea=ea&&y(ea)?ea:[]):ea=ea&&da(ea)?ea:{},ha(ca,{name:n,newValue:f(ja,ea,ba)})):"undefined"!==typeof ba&&ha(ca,{name:n,newValue:ba}))}}return ca}},
22
+ function(ka,la,ha){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function y(ja,fa){if(!(ja instanceof fa))throw new TypeError("Cannot call a class as a function");}function r(ja,fa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&"function"!==typeof fa?ja:fa}function h(ja,fa){if("function"!==typeof fa&&null!==fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);ja.prototype=
23
+ Object.create(fa&&fa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,fa):ja.__proto__=fa)}function a(ja){var fa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==ja)return fa;"function"===typeof ja.formats&&(fa=(0,f.default)(fa,ja.formats()));return null==ja.parent||"scroll"==ja.parent.blotName||ja.parent.statics.scope!==ja.statics.scope?fa:a(ja.parent,fa)}Object.defineProperty(la,"__esModule",{value:!0});
24
+ la.default=la.BlockEmbed=la.bubbleFormats=void 0;var b=function(){function ja(fa,ea){for(var ba=0;ba<ea.length;ba++){var ma=ea[ba];ma.enumerable=ma.enumerable||!1;ma.configurable=!0;"value"in ma&&(ma.writable=!0);Object.defineProperty(fa,ma.key,ma)}}return function(fa,ea,ba){ea&&ja(fa.prototype,ea);ba&&ja(fa,ba);return fa}}(),e=function ma(fa,ea,ba){null===fa&&(fa=Function.prototype);var ta=Object.getOwnPropertyDescriptor(fa,ea);if(void 0===ta){if(fa=Object.getPrototypeOf(fa),null!==fa)return ma(fa,
25
+ ea,ba)}else{if("value"in ta)return ta.value;ea=ta.get;return void 0===ea?void 0:ea.call(ba)}};ka=ha(3);var f=da(ka);ka=ha(2);var n=da(ka);ka=ha(0);var x=da(ka);ka=ha(16);var ca=da(ka);ka=ha(6);ka=da(ka);ha=ha(7);ha=da(ha);var w=function(fa){function ea(){y(this,ea);return r(this,(ea.__proto__||Object.getPrototypeOf(ea)).apply(this,arguments))}h(ea,fa);b(ea,[{key:"attach",value:function(){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"attach",this).call(this);this.attributes=new x.default.Attributor.Store(this.domNode)}},
26
+ {key:"delta",value:function(){return(new n.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(ba,ma){ba=x.default.query(ba,x.default.Scope.BLOCK_ATTRIBUTE);null!=ba&&this.attributes.attribute(ba,ma)}},{key:"formatAt",value:function(ba,ma,ta,na){this.format(ta,na)}},{key:"insertAt",value:function(ba,ma,ta){"string"===typeof ma&&ma.endsWith("\n")?(ta=x.default.create(aa.blotName),this.parent.insertBefore(ta,0===ba?this:this.next),ta.insertAt(0,
27
+ ma.slice(0,-1))):e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ba,ma,ta)}}]);return ea}(x.default.Embed);w.scope=x.default.Scope.BLOCK_BLOT;var aa=function(fa){function ea(ba){y(this,ea);ba=r(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ba));ba.cache={};return ba}h(ea,fa);b(ea,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(x.default.Leaf).reduce(function(ba,ma){return 0===ma.length()?ba:ba.insert(ma.value(),
28
+ a(ma))},new n.default).insert("\n",a(this)));return this.cache.delta}},{key:"deleteAt",value:function(ba,ma){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"deleteAt",this).call(this,ba,ma);this.cache={}}},{key:"formatAt",value:function(ba,ma,ta,na){0>=ma||(x.default.query(ta,x.default.Scope.BLOCK)?ba+ma===this.length()&&this.format(ta,na):e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"formatAt",this).call(this,ba,Math.min(ma,this.length()-ba-1),ta,na),this.cache={})}},
29
+ {key:"insertAt",value:function(ba,ma,ta){if(null!=ta)return e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ba,ma,ta);if(0!==ma.length){ma=ma.split("\n");ta=ma.shift();0<ta.length&&(ba<this.length()-1||null==this.children.tail?e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,Math.min(ba,this.length()-1),ta):this.children.tail.insertAt(this.children.tail.length(),ta),this.cache={});var na=this;ma.reduce(function(oa,pa){na=
30
+ na.split(oa,!0);na.insertAt(0,pa);return pa.length},ba+ta.length)}}},{key:"insertBefore",value:function(ba,ma){var ta=this.children.head;e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertBefore",this).call(this,ba,ma);ta instanceof ca.default&&ta.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",
31
+ value:function(ba,ma){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"moveChildren",this).call(this,ba,ma);this.cache={}}},{key:"optimize",value:function(ba){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"optimize",this).call(this,ba);this.cache={}}},{key:"path",value:function(ba){return e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"path",this).call(this,ba,!0)}},{key:"removeChild",value:function(ba){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),
32
+ "removeChild",this).call(this,ba);this.cache={}}},{key:"split",value:function(ba){var ma=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(ma&&(0===ba||ba>=this.length()-1)){ma=this.clone();if(0===ba)return this.parent.insertBefore(ma,this),this;this.parent.insertBefore(ma,this.next);return ma}ma=e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"split",this).call(this,ba,ma);this.cache={};return ma}}]);return ea}(x.default.Block);aa.blotName="block";aa.tagName="P";aa.defaultChild=
33
+ "break";aa.allowedChildren=[ka.default,x.default.Embed,ha.default];la.bubbleFormats=a;la.BlockEmbed=w;la.default=aa},function(ka,la,ha){function da(pa){return pa&&pa.__esModule?pa:{default:pa}}function y(pa,ua,va){ua in pa?Object.defineProperty(pa,ua,{value:va,enumerable:!0,configurable:!0,writable:!0}):pa[ua]=va;return pa}function r(pa,ua){ua=(0,ba.default)(!0,{container:pa,modules:{clipboard:!0,keyboard:!0,history:!0}},ua);if(ua.theme&&ua.theme!==oa.DEFAULTS.theme){if(ua.theme=oa.import("themes/"+
34
+ ua.theme),null==ua.theme)throw Error("Invalid theme "+ua.theme+". Did you register it?");}else ua.theme=ta.default;pa=(0,ba.default)(!0,{},ua.theme.DEFAULTS);[pa,ua].forEach(function(ra){ra.modules=ra.modules||{};Object.keys(ra.modules).forEach(function(xa){!0===ra.modules[xa]&&(ra.modules[xa]={})})});var va=Object.keys(pa.modules).concat(Object.keys(ua.modules)).reduce(function(ra,xa){var Aa=oa.import("modules/"+xa);null==Aa?na.error("Cannot load "+xa+" module. Are you sure you registered it?"):
35
+ ra[xa]=Aa.DEFAULTS||{};return ra},{});null!=ua.modules&&ua.modules.toolbar&&ua.modules.toolbar.constructor!==Object&&(ua.modules.toolbar={container:ua.modules.toolbar});ua=(0,ba.default)(!0,{},oa.DEFAULTS,{modules:va},pa,ua);["bounds","container","scrollingContainer"].forEach(function(ra){"string"===typeof ua[ra]&&(ua[ra]=document.querySelector(ua[ra]))});ua.modules=Object.keys(ua.modules).reduce(function(ra,xa){ua.modules[xa]&&(ra[xa]=ua.modules[xa]);return ra},{});return ua}function h(pa,ua,va,
36
+ ra){if(this.options.strict&&!this.isEnabled()&&ua===w.default.sources.USER)return new x.default;var xa=null==va?null:this.getSelection(),Aa=this.editor.delta;pa=pa();null!=xa&&(!0===va&&(va=xa.index),null==ra?xa=b(xa,pa,ua):0!==ra&&(xa=b(xa,va,ra,ua)),this.setSelection(xa,w.default.sources.SILENT));if(0<pa.length()){var Ga;va=[w.default.events.TEXT_CHANGE,pa,Aa,ua];(Ga=this.emitter).emit.apply(Ga,[w.default.events.EDITOR_CHANGE].concat(va));if(ua!==w.default.sources.SILENT){var Ka;(Ka=this.emitter).emit.apply(Ka,
37
+ va)}}return pa}function a(pa,ua,va,ra,xa){var Aa={};"number"===typeof pa.index&&"number"===typeof pa.length?("number"!==typeof ua&&(xa=ra,ra=va,va=ua),ua=pa.length,pa=pa.index):"number"!==typeof ua&&(xa=ra,ra=va,va=ua,ua=0);"object"===("undefined"===typeof va?"undefined":e(va))?(Aa=va,xa=ra):"string"===typeof va&&(null!=ra?Aa[va]=ra:xa=va);xa=xa||w.default.sources.API;return[pa,ua,Aa,xa]}function b(pa,ua,va,ra){if(null==pa)return null;var xa=void 0,Aa=void 0;ua instanceof x.default?(xa=[pa.index,
38
+ pa.index+pa.length].map(function(Ga){return ua.transformPosition(Ga,ra!==w.default.sources.USER)}),pa=f(xa,2),xa=pa[0],Aa=pa[1]):(xa=[pa.index,pa.index+pa.length].map(function(Ga){return Ga<ua||Ga===ua&&ra===w.default.sources.USER?Ga:0<=va?Ga+va:Math.max(ua,Ga+va)}),pa=f(xa,2),xa=pa[0],Aa=pa[1]);return new fa.Range(xa,Aa-xa)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.overload=la.expandConfig=void 0;var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(pa){return typeof pa}:
39
+ function(pa){return pa&&"function"===typeof Symbol&&pa.constructor===Symbol&&pa!==Symbol.prototype?"symbol":typeof pa},f=function(){return function(pa,ua){if(Array.isArray(pa))return pa;if(Symbol.iterator in Object(pa)){var va=[],ra=!0,xa=!1,Aa=void 0;try{for(var Ga=pa[Symbol.iterator](),Ka;!(ra=(Ka=Ga.next()).done)&&(va.push(Ka.value),!ua||va.length!==ua);ra=!0);}catch(Da){xa=!0,Aa=Da}finally{try{if(!ra&&Ga["return"])Ga["return"]()}finally{if(xa)throw Aa;}}return va}throw new TypeError("Invalid attempt to destructure non-iterable instance");
40
+ }}(),n=function(){function pa(ua,va){for(var ra=0;ra<va.length;ra++){var xa=va[ra];xa.enumerable=xa.enumerable||!1;xa.configurable=!0;"value"in xa&&(xa.writable=!0);Object.defineProperty(ua,xa.key,xa)}}return function(ua,va,ra){va&&pa(ua.prototype,va);ra&&pa(ua,ra);return ua}}();ha(50);ka=ha(2);var x=da(ka);ka=ha(14);var ca=da(ka);ka=ha(8);var w=da(ka);ka=ha(9);ka=da(ka);var aa=ha(0),ja=da(aa),fa=ha(15),ea=da(fa);aa=ha(3);var ba=da(aa);aa=ha(10);var ma=da(aa);ha=ha(34);var ta=da(ha),na=(0,ma.default)("quill"),
41
+ oa=function(){function pa(ua){var va=this,ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof pa))throw new TypeError("Cannot call a class as a function");this.options=r(ua,ra);this.container=this.options.container;if(null==this.container)return na.error("Invalid Quill container",ua);this.options.debug&&pa.debug(this.options.debug);ra=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";this.container.__quill=this;this.root=
42
+ 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 w.default;this.scroll=ja.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new ca.default(this.scroll);this.selection=new ea.default(this.scroll,this.emitter);this.theme=new this.options.theme(this,this.options);this.keyboard=this.theme.addModule("keyboard");this.clipboard=
43
+ this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.theme.init();this.emitter.on(w.default.events.EDITOR_CHANGE,function(xa){xa===w.default.events.TEXT_CHANGE&&va.root.classList.toggle("ql-blank",va.editor.isBlank())});this.emitter.on(w.default.events.SCROLL_UPDATE,function(xa,Aa){var Ga=va.selection.lastRange,Ka=Ga&&0===Ga.length?Ga.index:void 0;h.call(va,function(){return va.editor.update(null,Aa,Ka)},xa)});ra=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+
44
+ ra+"<p><br></p></div>");this.setContents(ra);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);this.options.readOnly&&this.disable()}n(pa,null,[{key:"debug",value:function(ua){!0===ua&&(ua="log");ma.default.level(ua)}},{key:"find",value:function(ua){return ua.__quill||ja.default.find(ua)}},{key:"import",value:function(ua){null==this.imports[ua]&&na.error("Cannot import "+ua+". Are you sure it was registered?");return this.imports[ua]}},
45
+ {key:"register",value:function(ua,va){var ra=this,xa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof ua?(xa=ua.attrName||ua.blotName,"string"===typeof xa?this.register("formats/"+xa,ua,va):Object.keys(ua).forEach(function(Aa){ra.register(Aa,ua[Aa],va)})):(null==this.imports[ua]||xa||na.warn("Overwriting "+ua+" with",va),this.imports[ua]=va,(ua.startsWith("blots/")||ua.startsWith("formats/"))&&"abstract"!==va.blotName?ja.default.register(va):ua.startsWith("modules")&&"function"===
46
+ typeof va.register&&va.register())}}]);n(pa,[{key:"addContainer",value:function(ua){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof ua){var ra=ua;ua=document.createElement("div");ua.classList.add(ra)}this.container.insertBefore(ua,va);return ua}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ua,va,ra){var xa=this;ra=a(ua,va,ra);ra=f(ra,4);ua=ra[0];va=ra[1];ra=ra[3];return h.call(this,function(){return xa.editor.deleteText(ua,
47
+ va)},ra,ua,-1*va)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ua=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(ua);this.container.classList.toggle("ql-disabled",!ua)}},{key:"focus",value:function(){var ua=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=ua;this.scrollIntoView()}},{key:"format",value:function(ua,va){var ra=this;return h.call(this,function(){var xa=ra.getSelection(!0),
48
+ Aa=new x.default;if(null==xa)return Aa;if(ja.default.query(ua,ja.default.Scope.BLOCK))Aa=ra.editor.formatLine(xa.index,xa.length,y({},ua,va));else{if(0===xa.length)return ra.selection.format(ua,va),Aa;Aa=ra.editor.formatText(xa.index,xa.length,y({},ua,va))}ra.setSelection(xa,w.default.sources.SILENT);return Aa},2<arguments.length&&void 0!==arguments[2]?arguments[2]:w.default.sources.API)}},{key:"formatLine",value:function(ua,va,ra,xa,Aa){var Ga=this,Ka=void 0;ra=a(ua,va,ra,xa,Aa);ra=f(ra,4);ua=ra[0];
49
+ va=ra[1];Ka=ra[2];Aa=ra[3];return h.call(this,function(){return Ga.editor.formatLine(ua,va,Ka)},Aa,ua,0)}},{key:"formatText",value:function(ua,va,ra,xa,Aa){var Ga=this,Ka=void 0;ra=a(ua,va,ra,xa,Aa);ra=f(ra,4);ua=ra[0];va=ra[1];Ka=ra[2];Aa=ra[3];return h.call(this,function(){return Ga.editor.formatText(ua,va,Ka)},Aa,ua,0)}},{key:"getBounds",value:function(ua){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;va="number"===typeof ua?this.selection.getBounds(ua,va):this.selection.getBounds(ua.index,
50
+ ua.length);var ra=this.container.getBoundingClientRect();return{bottom:va.bottom-ra.top,height:va.height,left:va.left-ra.left,right:va.right-ra.left,top:va.top-ra.top,width:va.width}}},{key:"getContents",value:function(){var ua=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ua;ua=a(ua,va);va=f(ua,2);ua=va[0];va=va[1];return this.editor.getContents(ua,va)}},{key:"getFormat",value:function(){var ua=0<arguments.length&&
51
+ void 0!==arguments[0]?arguments[0]:this.getSelection(!0),va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof ua?this.editor.getFormat(ua,va):this.editor.getFormat(ua.index,ua.length)}},{key:"getIndex",value:function(ua){return ua.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(ua){return this.scroll.leaf(ua)}},{key:"getLine",value:function(ua){return this.scroll.line(ua)}},{key:"getLines",value:function(){var ua=
52
+ 0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof ua?this.scroll.lines(ua.index,ua.length):this.scroll.lines(ua,va)}},{key:"getModule",value:function(ua){return this.theme.modules[ua]}},{key:"getSelection",value:function(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.focus();this.update();return this.selection.getRange()[0]}},{key:"getText",value:function(){var ua=0<arguments.length&&
53
+ void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ua;ua=a(ua,va);va=f(ua,2);ua=va[0];va=va[1];return this.editor.getText(ua,va)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ua,va,ra){var xa=this;return h.call(this,function(){return xa.editor.insertEmbed(ua,va,ra)},3<arguments.length&&void 0!==arguments[3]?arguments[3]:pa.sources.API,ua)}},{key:"insertText",value:function(ua,va,
54
+ ra,xa,Aa){var Ga=this,Ka=void 0;ra=a(ua,0,ra,xa,Aa);ra=f(ra,4);ua=ra[0];Ka=ra[2];Aa=ra[3];return h.call(this,function(){return Ga.editor.insertText(ua,va,Ka)},Aa,ua,va.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,
55
+ arguments)}},{key:"pasteHTML",value:function(ua,va,ra){this.clipboard.dangerouslyPasteHTML(ua,va,ra)}},{key:"removeFormat",value:function(ua,va,ra){var xa=this;ra=a(ua,va,ra);ra=f(ra,4);ua=ra[0];va=ra[1];ra=ra[3];return h.call(this,function(){return xa.editor.removeFormat(ua,va)},ra,ua)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(ua){var va=this;return h.call(this,function(){ua=new x.default(ua);var ra=va.getLength();
56
+ ra=va.editor.deleteText(0,ra);var xa=va.editor.applyDelta(ua),Aa=xa.ops[xa.ops.length-1];null!=Aa&&"string"===typeof Aa.insert&&"\n"===Aa.insert[Aa.insert.length-1]&&(va.editor.deleteText(va.getLength()-1,1),xa.delete(1));return ra.compose(xa)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API)}},{key:"setSelection",value:function(ua,va,ra){null==ua?this.selection.setRange(null,va||pa.sources.API):(ua=a(ua,va,ra),ra=f(ua,4),ua=ra[0],va=ra[1],ra=ra[3],this.selection.setRange(new fa.Range(ua,
57
+ va),ra),ra!==w.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(ua){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API,ra=(new x.default).insert(ua);return this.setContents(ra,va)}},{key:"update",value:function(){var ua=0<arguments.length&&void 0!==arguments[0]?arguments[0]:w.default.sources.USER,va=this.scroll.update(ua);this.selection.update(ua);return va}},{key:"updateContents",value:function(ua){var va=
58
+ this,ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API;return h.call(this,function(){ua=new x.default(ua);return va.editor.applyDelta(ua,ra)},ra,!0)}}]);return pa}();oa.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};oa.events=w.default.events;oa.sources=w.default.sources;oa.version="1.3.7";oa.imports={delta:x.default,parchment:ja.default,"core/module":ka.default,"core/theme":ta.default};la.expandConfig=
59
+ r;la.overload=a;la.default=oa},function(ka,la,ha){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=
60
+ n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=(ka=ha(7))&&ka.__esModule?ka:{default:ka};var h=(ha=ha(0))&&ha.__esModule?ha:{default:ha};
61
+ ha=function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(e,b);y(e,[{key:"formatAt",value:function(f,n,x,ca){0>e.compare(this.statics.blotName,x)&&h.default.query(x,h.default.Scope.BLOT)?(f=this.isolate(f,n),ca&&f.wrap(x,ca)):
62
+ r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,f,n,x,ca)}},{key:"optimize",value:function(f){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,f);this.parent instanceof e&&0<e.compare(this.statics.blotName,this.parent.statics.blotName)&&(f=this.parent.isolate(this.offset(),this.length()),this.moveChildren(f),f.wrap(this))}}],[{key:"compare",value:function(f,n){var x=e.order.indexOf(f),ca=e.order.indexOf(n);return 0<=x||0<=
63
+ ca?x-ca:f===n?0:f<n?-1:1}}]);return e}(h.default.Inline);ha.allowedChildren=[ha,h.default.Embed,ka.default];ha.order="cursor inline underline strike italic bold script link code".split(" ");la.default=ha},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(y,
64
+ r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(0)).default.Text);la.default=ka},
65
+ function(ka,la,ha){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=
66
+ !0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=(ka=ha(54))&&ka.__esModule?ka:{default:ka};ha=ha(10);var h=(0,(ha&&ha.__esModule?ha:{default:ha}).default)("quill:events");
67
+ ["selectionchange","mousedown","mouseup","click"].forEach(function(b){document.addEventListener(b,function(){for(var e=arguments.length,f=Array(e),n=0;n<e;n++)f[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(x){if(x.__quill&&x.__quill.emitter){var ca;(ca=x.__quill.emitter).handleDOM.apply(ca,f)}})})});ha=function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).call(this);
68
+ if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=!f||"object"!==typeof f&&"function"!==typeof f?this:f;f.listeners={};f.on("error",h.error);return f}da(e,b);y(e,[{key:"emit",value:function(){h.log.apply(h,arguments);r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(f){for(var n=arguments.length,x=Array(1<n?n-1:0),ca=1;ca<n;ca++)x[ca-1]=arguments[ca];(this.listeners[f.type]||
69
+ []).forEach(function(w){var aa=w.node;w=w.handler;(f.target===aa||aa.contains(f.target))&&w.apply(void 0,[f].concat(x))})}},{key:"listenDOM",value:function(f,n,x){this.listeners[f]||(this.listeners[f]=[]);this.listeners[f].push({node:n,handler:x})}}]);return e}(ka.default);ha.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"};ha.sources={API:"api",
70
+ SILENT:"silent",USER:"user"};la.default=ha},function(ka,la){Object.defineProperty(la,"__esModule",{value:!0});ka=function y(da){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");this.quill=da;this.options=r};ka.DEFAULTS={};la.default=ka},function(ka,la){function ha(h){if(y.indexOf(h)<=y.indexOf(r)){for(var a,b=arguments.length,e=Array(1<b?b-1:0),f=1;f<b;f++)e[f-1]=arguments[f];(a=console)[h].apply(a,e)}}
71
+ function da(h){return y.reduce(function(a,b){a[b]=ha.bind(console,b,h);return a},{})}Object.defineProperty(la,"__esModule",{value:!0});var y=["error","warn","log","info"],r="warn";ha.level=da.level=function(h){r=h};la.default=da},function(ka,la,ha){function da(e){return!e||"object"!==typeof e||"number"!==typeof e.length||"function"!==typeof e.copy||"function"!==typeof e.slice||0<e.length&&"number"!==typeof e[0]?!1:!0}function y(e,f,n){var x;if(null===e||void 0===e||null===f||void 0===f||e.prototype!==
72
+ f.prototype)return!1;if(a(e)){if(!a(f))return!1;e=r.call(e);f=r.call(f);return b(e,f,n)}if(da(e)){if(!da(f)||e.length!==f.length)return!1;for(x=0;x<e.length;x++)if(e[x]!==f[x])return!1;return!0}try{var ca=h(e);var w=h(f)}catch(aa){return!1}if(ca.length!=w.length)return!1;ca.sort();w.sort();for(x=ca.length-1;0<=x;x--)if(ca[x]!=w[x])return!1;for(x=ca.length-1;0<=x;x--)if(w=ca[x],!b(e[w],f[w],n))return!1;return typeof e===typeof f}var r=Array.prototype.slice,h=ha(52),a=ha(53),b=ka.exports=function(e,
73
+ f,n){n||(n={});return e===f?!0:e instanceof Date&&f instanceof Date?e.getTime()===f.getTime():!e||!f||"object"!=typeof e&&"object"!=typeof f?n.strict?e===f:e==f:y(e,f,n)}},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});var da=ha(1);ka=function(){function y(r,h,a){void 0===a&&(a={});this.attrName=r;this.keyName=h;r=da.Scope.TYPE&da.Scope.ATTRIBUTE;this.scope=null!=a.scope?a.scope&da.Scope.LEVEL|r:da.Scope.ATTRIBUTE;null!=a.whitelist&&(this.whitelist=a.whitelist)}y.keys=function(r){return[].map.call(r.attributes,
74
+ function(h){return h.name})};y.prototype.add=function(r,h){if(!this.canAdd(r,h))return!1;r.setAttribute(this.keyName,h);return!0};y.prototype.canAdd=function(r,h){return null==da.query(r,da.Scope.BLOT&(this.scope|da.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof h?-1<this.whitelist.indexOf(h.replace(/["']/g,"")):-1<this.whitelist.indexOf(h)};y.prototype.remove=function(r){r.removeAttribute(this.keyName)};y.prototype.value=function(r){var h=r.getAttribute(this.keyName);return this.canAdd(r,
75
+ h)&&h?h:""};return y}();la.default=ka},function(ka,la,ha){function da(w){return w&&w.__esModule?w:{default:w}}function y(w,aa){if(!(w instanceof aa))throw new TypeError("Cannot call a class as a function");}function r(w,aa){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&"function"!==typeof aa?w:aa}function h(w,aa){if("function"!==typeof aa&&null!==aa)throw new TypeError("Super expression must either be null or a function, not "+
76
+ typeof aa);w.prototype=Object.create(aa&&aa.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(w,aa):w.__proto__=aa)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.Code=void 0;var a=function(){return function(w,aa){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w)){var ja=[],fa=!0,ea=!1,ba=void 0;try{for(var ma=w[Symbol.iterator](),ta;!(fa=(ta=ma.next()).done)&&(ja.push(ta.value),!aa||ja.length!==
77
+ aa);fa=!0);}catch(na){ea=!0,ba=na}finally{try{if(!fa&&ma["return"])ma["return"]()}finally{if(ea)throw ba;}}return ja}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function w(aa,ja){for(var fa=0;fa<ja.length;fa++){var ea=ja[fa];ea.enumerable=ea.enumerable||!1;ea.configurable=!0;"value"in ea&&(ea.writable=!0);Object.defineProperty(aa,ea.key,ea)}}return function(aa,ja,fa){ja&&w(aa.prototype,ja);fa&&w(aa,fa);return aa}}(),e=function ea(aa,ja,fa){null===
78
+ aa&&(aa=Function.prototype);var ba=Object.getOwnPropertyDescriptor(aa,ja);if(void 0===ba){if(aa=Object.getPrototypeOf(aa),null!==aa)return ea(aa,ja,fa)}else{if("value"in ba)return ba.value;ja=ba.get;return void 0===ja?void 0:ja.call(fa)}};ka=ha(2);var f=da(ka);ka=ha(0);var n=da(ka);ka=ha(4);ka=da(ka);var x=ha(6);x=da(x);ha=ha(7);var ca=da(ha);ha=function(aa){function ja(){y(this,ja);return r(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}h(ja,aa);return ja}(x.default);ha.blotName=
79
+ "code";ha.tagName="CODE";ka=function(aa){function ja(){y(this,ja);return r(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}h(ja,aa);b(ja,[{key:"delta",value:function(){var fa=this,ea=this.domNode.textContent;ea.endsWith("\n")&&(ea=ea.slice(0,-1));return ea.split("\n").reduce(function(ba,ma){return ba.insert(ma).insert("\n",fa.formats())},new f.default)}},{key:"format",value:function(fa,ea){if(fa!==this.statics.blotName||!ea){var ba=this.descendant(ca.default,this.length()-1);
80
+ ba=a(ba,1)[0];null!=ba&&ba.deleteAt(ba.length()-1,1);e(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"format",this).call(this,fa,ea)}}},{key:"formatAt",value:function(fa,ea,ba,ma){if(0!==ea&&null!=n.default.query(ba,n.default.Scope.BLOCK)&&(ba!==this.statics.blotName||ma!==this.statics.formats(this.domNode))){var ta=this.newlineIndex(fa);if(!(0>ta||ta>=fa+ea)){var na=this.newlineIndex(fa,!0)+1;ta=ta-na+1;var oa=this.isolate(na,ta),pa=oa.next;oa.format(ba,ma);pa instanceof ja&&pa.formatAt(0,
81
+ fa-na+ea-ta,ba,ma)}}}},{key:"insertAt",value:function(fa,ea,ba){null==ba&&(fa=this.descendant(ca.default,fa),fa=a(fa,2),fa[0].insertAt(fa[1],ea))}},{key:"length",value:function(){var fa=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?fa:fa+1}},{key:"newlineIndex",value:function(fa){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,fa).lastIndexOf("\n");var ea=this.domNode.textContent.slice(fa).indexOf("\n");return-1<ea?
82
+ fa+ea:-1}},{key:"optimize",value:function(fa){this.domNode.textContent.endsWith("\n")||this.appendChild(n.default.create("text","\n"));e(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"optimize",this).call(this,fa);var ea=this.next;null!=ea&&ea.prev===this&&ea.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===ea.statics.formats(ea.domNode)&&(ea.optimize(fa),ea.moveChildren(this),ea.remove())}},{key:"replace",value:function(fa){e(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),
83
+ "replace",this).call(this,fa);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(ea){var ba=n.default.find(ea);null==ba?ea.parentNode.removeChild(ea):ba instanceof n.default.Embed?ba.remove():ba.unwrap()})}}],[{key:"create",value:function(fa){fa=e(ja.__proto__||Object.getPrototypeOf(ja),"create",this).call(this,fa);fa.setAttribute("spellcheck",!1);return fa}},{key:"formats",value:function(){return!0}}]);return ja}(ka.default);ka.blotName="code-block";ka.tagName="PRE";ka.TAB=" ";la.Code=
84
+ ha;la.default=ka},function(ka,la,ha){function da(ta){return ta&&ta.__esModule?ta:{default:ta}}function y(ta,na){return Object.keys(na).reduce(function(oa,pa){if(null==ta[pa])return oa;na[pa]===ta[pa]?oa[pa]=na[pa]:Array.isArray(na[pa])?0>na[pa].indexOf(ta[pa])&&(oa[pa]=na[pa].concat([ta[pa]])):oa[pa]=[na[pa],ta[pa]];return oa},{})}function r(ta){return ta.reduce(function(na,oa){if(1===oa.insert){var pa=(0,fa.default)(oa.attributes);delete pa.image;return na.insert({image:oa.attributes.image},pa)}null==
85
+ oa.attributes||!0!==oa.attributes.list&&!0!==oa.attributes.bullet||(oa=(0,fa.default)(oa),oa.attributes.list?oa.attributes.list="ordered":(oa.attributes.list="bullet",delete oa.attributes.bullet));return"string"===typeof oa.insert?(pa=oa.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),na.insert(pa,oa.attributes)):na.push(oa)},new e.default)}Object.defineProperty(la,"__esModule",{value:!0});var h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(ta){return typeof ta}:function(ta){return ta&&
86
+ "function"===typeof Symbol&&ta.constructor===Symbol&&ta!==Symbol.prototype?"symbol":typeof ta},a=function(){return function(ta,na){if(Array.isArray(ta))return ta;if(Symbol.iterator in Object(ta)){var oa=[],pa=!0,ua=!1,va=void 0;try{for(var ra=ta[Symbol.iterator](),xa;!(pa=(xa=ra.next()).done)&&(oa.push(xa.value),!na||oa.length!==na);pa=!0);}catch(Aa){ua=!0,va=Aa}finally{try{if(!pa&&ra["return"])ra["return"]()}finally{if(ua)throw va;}}return oa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
87
+ }}(),b=function(){function ta(na,oa){for(var pa=0;pa<oa.length;pa++){var ua=oa[pa];ua.enumerable=ua.enumerable||!1;ua.configurable=!0;"value"in ua&&(ua.writable=!0);Object.defineProperty(na,ua.key,ua)}}return function(na,oa,pa){oa&&ta(na.prototype,oa);pa&&ta(na,pa);return na}}();ka=ha(2);var e=da(ka);ka=ha(20);var f=da(ka);ka=ha(0);var n=da(ka);ka=ha(13);var x=da(ka);ka=ha(24);var ca=da(ka),w=ha(4),aa=da(w);ka=ha(16);var ja=da(ka);ka=ha(21);var fa=da(ka);ka=ha(11);var ea=da(ka);ha=ha(3);var ba=da(ha),
88
+ ma=/^[ -~]*$/;ha=function(){function ta(na){if(!(this instanceof ta))throw new TypeError("Cannot call a class as a function");this.scroll=na;this.delta=this.getDelta()}b(ta,[{key:"applyDelta",value:function(na){var oa=this,pa=!1;this.scroll.update();var ua=this.scroll.length();this.scroll.batchStart();na=r(na);na.reduce(function(va,ra){var xa=ra.retain||ra.delete||ra.insert.length||1,Aa=ra.attributes||{};if(null!=ra.insert){if("string"===typeof ra.insert){ra=ra.insert;ra.endsWith("\n")&&pa&&(pa=!1,
89
+ ra=ra.slice(0,-1));va>=ua&&!ra.endsWith("\n")&&(pa=!0);oa.scroll.insertAt(va,ra);ra=oa.scroll.line(va);ra=a(ra,2);var Ga=ra[0],Ka=ra[1];ra=(0,ba.default)({},(0,w.bubbleFormats)(Ga));Ga instanceof aa.default&&(Ga=Ga.descendant(n.default.Leaf,Ka),Ga=a(Ga,1)[0],ra=(0,ba.default)(ra,(0,w.bubbleFormats)(Ga)));Aa=f.default.attributes.diff(ra,Aa)||{}}else if("object"===h(ra.insert)){Ga=Object.keys(ra.insert)[0];if(null==Ga)return va;oa.scroll.insertAt(va,Ga,ra.insert[Ga])}ua+=xa}Object.keys(Aa).forEach(function(Da){oa.scroll.formatAt(va,
90
+ xa,Da,Aa[Da])});return va+xa},0);na.reduce(function(va,ra){return"number"===typeof ra.delete?(oa.scroll.deleteAt(va,ra.delete),va):va+(ra.retain||ra.insert.length||1)},0);this.scroll.batchEnd();return this.update(na)}},{key:"deleteText",value:function(na,oa){this.scroll.deleteAt(na,oa);return this.update((new e.default).retain(na).delete(oa))}},{key:"formatLine",value:function(na,oa){var pa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(ua).forEach(function(va){if(null==
91
+ pa.scroll.whitelist||pa.scroll.whitelist[va]){var ra=pa.scroll.lines(na,Math.max(oa,1)),xa=oa;ra.forEach(function(Aa){var Ga=Aa.length();if(Aa instanceof x.default){var Ka=na-Aa.offset(pa.scroll),Da=Aa.newlineIndex(Ka+xa)-Ka+1;Aa.formatAt(Ka,Da,va,ua[va])}else Aa.format(va,ua[va]);xa-=Ga})}});this.scroll.optimize();return this.update((new e.default).retain(na).retain(oa,(0,fa.default)(ua)))}},{key:"formatText",value:function(na,oa){var pa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
92
+ {};Object.keys(ua).forEach(function(va){pa.scroll.formatAt(na,oa,va,ua[va])});return this.update((new e.default).retain(na).retain(oa,(0,fa.default)(ua)))}},{key:"getContents",value:function(na,oa){return this.delta.slice(na,na+oa)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(na,oa){return na.concat(oa.delta())},new e.default)}},{key:"getFormat",value:function(na){var oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,pa=[],ua=[];0===oa?this.scroll.path(na).forEach(function(va){va=
93
+ a(va,1)[0];va instanceof aa.default?pa.push(va):va instanceof n.default.Leaf&&ua.push(va)}):(pa=this.scroll.lines(na,oa),ua=this.scroll.descendants(n.default.Leaf,na,oa));oa=[pa,ua].map(function(va){if(0===va.length)return{};for(var ra=(0,w.bubbleFormats)(va.shift());0<Object.keys(ra).length;){var xa=va.shift();if(null==xa)break;ra=y((0,w.bubbleFormats)(xa),ra)}return ra});return ba.default.apply(ba.default,oa)}},{key:"getText",value:function(na,oa){return this.getContents(na,oa).filter(function(pa){return"string"===
94
+ typeof pa.insert}).map(function(pa){return pa.insert}).join("")}},{key:"insertEmbed",value:function(na,oa,pa){this.scroll.insertAt(na,oa,pa);var ua=this.update;na=(new e.default).retain(na);var va=na.insert,ra={};oa in ra?Object.defineProperty(ra,oa,{value:pa,enumerable:!0,configurable:!0,writable:!0}):ra[oa]=pa;return ua.call(this,va.call(na,ra))}},{key:"insertText",value:function(na,oa){var pa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};oa=oa.replace(/\r\n/g,"\n").replace(/\r/g,
95
+ "\n");this.scroll.insertAt(na,oa);Object.keys(ua).forEach(function(va){pa.scroll.formatAt(na,oa.length,va,ua[va])});return this.update((new e.default).retain(na).insert(oa,(0,fa.default)(ua)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var na=this.scroll.children.head;return na.statics.blotName!==aa.default.blotName||1<na.children.length?!1:na.children.head instanceof ja.default}},{key:"removeFormat",value:function(na,oa){var pa=
96
+ this.getText(na,oa),ua=this.scroll.line(na+oa),va=a(ua,2);ua=va[0];va=va[1];var ra=0,xa=new e.default;null!=ua&&(ra=ua instanceof x.default?ua.newlineIndex(va)-va+1:ua.length()-va,xa=ua.delta().slice(va,va+ra-1).insert("\n"));oa=this.getContents(na,oa+ra).diff((new e.default).insert(pa).concat(xa));na=(new e.default).retain(na).concat(oa);return this.applyDelta(na)}},{key:"update",value:function(na){var oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],pa=2<arguments.length&&void 0!==arguments[2]?
97
+ arguments[2]:void 0,ua=this.delta;if(1===oa.length&&"characterData"===oa[0].type&&oa[0].target.data.match(ma)&&n.default.find(oa[0].target)){var va=n.default.find(oa[0].target),ra=(0,w.bubbleFormats)(va),xa=va.offset(this.scroll);oa=oa[0].oldValue.replace(ca.default.CONTENTS,"");oa=(new e.default).insert(oa);va=(new e.default).insert(va.value());na=(new e.default).retain(xa).concat(oa.diff(va,pa)).reduce(function(Aa,Ga){return Ga.insert?Aa.insert(Ga.insert,ra):Aa.push(Ga)},new e.default);this.delta=
98
+ ua.compose(na)}else this.delta=this.getDelta(),na&&(0,ea.default)(ua.compose(na),this.delta)||(na=ua.diff(this.delta,pa));return na}}]);return ta}();la.default=ha},function(ka,la,ha){function da(aa){return aa&&aa.__esModule?aa:{default:aa}}function y(aa){if(Array.isArray(aa)){for(var ja=0,fa=Array(aa.length);ja<aa.length;ja++)fa[ja]=aa[ja];return fa}return Array.from(aa)}function r(aa,ja){if(!(aa instanceof ja))throw new TypeError("Cannot call a class as a function");}function h(aa,ja){try{ja.parentNode}catch(fa){return!1}ja instanceof
99
+ Text&&(ja=ja.parentNode);return aa.contains(ja)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.Range=void 0;var a=function(){return function(aa,ja){if(Array.isArray(aa))return aa;if(Symbol.iterator in Object(aa)){var fa=[],ea=!0,ba=!1,ma=void 0;try{for(var ta=aa[Symbol.iterator](),na;!(ea=(na=ta.next()).done)&&(fa.push(na.value),!ja||fa.length!==ja);ea=!0);}catch(oa){ba=!0,ma=oa}finally{try{if(!ea&&ta["return"])ta["return"]()}finally{if(ba)throw ma;}}return fa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
100
+ }}(),b=function(){function aa(ja,fa){for(var ea=0;ea<fa.length;ea++){var ba=fa[ea];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=!0);Object.defineProperty(ja,ba.key,ba)}}return function(ja,fa,ea){fa&&aa(ja.prototype,fa);ea&&aa(ja,ea);return ja}}();ka=ha(0);var e=da(ka);ka=ha(21);var f=da(ka);ka=ha(11);var n=da(ka);ka=ha(8);var x=da(ka);ha=ha(10);var ca=(0,da(ha).default)("quill:selection"),w=function fa(ja){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
101
+ 0;r(this,fa);this.index=ja;this.length=ea};ha=function(){function ja(fa,ea){var ba=this;r(this,ja);this.emitter=ea;this.scroll=fa;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=e.default.create("cursor",this);this.lastRange=this.savedRange=new w(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",document,function(){ba.mouseDown||setTimeout(ba.update.bind(ba,x.default.sources.USER),1)});this.emitter.on(x.default.events.EDITOR_CHANGE,
102
+ function(ma,ta){ma===x.default.events.TEXT_CHANGE&&0<ta.length()&&ba.update(x.default.sources.SILENT)});this.emitter.on(x.default.events.SCROLL_BEFORE_UPDATE,function(){if(ba.hasFocus()){var ma=ba.getNativeRange();if(null!=ma&&ma.start.node!==ba.cursor.textNode)ba.emitter.once(x.default.events.SCROLL_UPDATE,function(){try{ba.setNativeRange(ma.start.node,ma.start.offset,ma.end.node,ma.end.offset)}catch(ta){}})}});this.emitter.on(x.default.events.SCROLL_OPTIMIZE,function(ma,ta){ta.range&&(ma=ta.range,
103
+ ba.setNativeRange(ma.startNode,ma.startOffset,ma.endNode,ma.endOffset))});this.update(x.default.sources.SILENT)}b(ja,[{key:"handleComposition",value:function(){var fa=this;this.root.addEventListener("compositionstart",function(){fa.composing=!0});this.root.addEventListener("compositionend",function(){fa.composing=!1;if(fa.cursor.parent){var ea=fa.cursor.restore();ea&&setTimeout(function(){fa.setNativeRange(ea.startNode,ea.startOffset,ea.endNode,ea.endOffset)},1)}})}},{key:"handleDragging",value:function(){var fa=
104
+ this;this.emitter.listenDOM("mousedown",document.body,function(){fa.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){fa.mouseDown=!1;fa.update(x.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(fa,ea){if(null==this.scroll.whitelist||this.scroll.whitelist[fa]){this.scroll.update();var ba=this.getNativeRange();if(null!=ba&&ba.native.collapsed&&!e.default.query(fa,e.default.Scope.BLOCK)){if(ba.start.node!==
105
+ this.cursor.textNode){var ma=e.default.find(ba.start.node,!1);if(null==ma)return;ma instanceof e.default.Leaf?(ba=ma.split(ba.start.offset),ma.parent.insertBefore(this.cursor,ba)):ma.insertBefore(this.cursor,ba.start.node);this.cursor.attach()}this.cursor.format(fa,ea);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",value:function(fa){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,ba=this.scroll.length();
106
+ fa=Math.min(fa,ba-1);ea=Math.min(fa+ea,ba-1)-fa;ba=this.scroll.leaf(fa);var ma=a(ba,2);ba=ma[0];var ta=ma[1];if(null==ba)return null;ma=ba.position(ta,!0);ma=a(ma,2);var na=ma[0];ta=ma[1];ma=document.createRange();if(0<ea){ma.setStart(na,ta);ea=this.scroll.leaf(fa+ea);ea=a(ea,2);ba=ea[0];ta=ea[1];if(null==ba)return null;ea=ba.position(ta,!0);ea=a(ea,2);na=ea[0];ta=ea[1];ma.setEnd(na,ta);return ma.getBoundingClientRect()}ea="left";na instanceof Text?(ta<na.data.length?(ma.setStart(na,ta),ma.setEnd(na,
107
+ ta+1)):(ma.setStart(na,ta-1),ma.setEnd(na,ta),ea="right"),ba=ma.getBoundingClientRect()):(ba=ba.domNode.getBoundingClientRect(),0<ta&&(ea="right"));return{bottom:ba.top+ba.height,height:ba.height,left:ba[ea],right:ba[ea],top:ba.top,width:0}}},{key:"getNativeRange",value:function(){var fa=document.getSelection();if(null==fa||0>=fa.rangeCount)return null;fa=fa.getRangeAt(0);if(null==fa)return null;fa=this.normalizeNative(fa);ca.info("getNativeRange",fa);return fa}},{key:"getRange",value:function(){var fa=
108
+ this.getNativeRange();return null==fa?[null,null]:[this.normalizedToRange(fa),fa]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(fa){var ea=this,ba=[[fa.start.node,fa.start.offset]];fa.native.collapsed||ba.push([fa.end.node,fa.end.offset]);ba=ba.map(function(ma){var ta=a(ma,2);ma=ta[0];ta=ta[1];var na=e.default.find(ma,!0),oa=na.offset(ea.scroll);return 0===ta?oa:na instanceof e.default.Container?oa+na.length():oa+na.index(ma,
109
+ ta)});fa=Math.min(Math.max.apply(Math,y(ba)),this.scroll.length()-1);ba=Math.min.apply(Math,[fa].concat(y(ba)));return new w(ba,fa-ba)}},{key:"normalizeNative",value:function(fa){if(!h(this.root,fa.startContainer)||!fa.collapsed&&!h(this.root,fa.endContainer))return null;fa={start:{node:fa.startContainer,offset:fa.startOffset},end:{node:fa.endContainer,offset:fa.endOffset},native:fa};[fa.start,fa.end].forEach(function(ea){for(var ba=ea.node,ma=ea.offset;!(ba instanceof Text)&&0<ba.childNodes.length;)if(ba.childNodes.length>
110
+ ma)ba=ba.childNodes[ma],ma=0;else if(ba.childNodes.length===ma)ba=ba.lastChild,ma=ba instanceof Text?ba.data.length:ba.childNodes.length+1;else break;ea.node=ba;ea.offset=ma});return fa}},{key:"rangeToNative",value:function(fa){var ea=this;fa=fa.collapsed?[fa.index]:[fa.index,fa.index+fa.length];var ba=[],ma=this.scroll.length();fa.forEach(function(ta,na){ta=Math.min(ma-1,ta);ta=ea.scroll.leaf(ta);var oa=a(ta,2);ta=oa[1];na=oa[0].position(ta,0!==na);ta=a(na,2);na=ta[0];ta=ta[1];ba.push(na,ta)});2>
111
+ ba.length&&(ba=ba.concat(ba));return ba}},{key:"scrollIntoView",value:function(fa){var ea=this.lastRange;if(null!=ea){var ba=this.getBounds(ea.index,ea.length);if(null!=ba){var ma=this.scroll.length()-1,ta=this.scroll.line(Math.min(ea.index,ma)),na=ta=a(ta,1)[0];0<ea.length&&(ea=this.scroll.line(Math.min(ea.index+ea.length,ma)),na=a(ea,1)[0]);null!=ta&&null!=na&&(ea=fa.getBoundingClientRect(),ba.top<ea.top?fa.scrollTop-=ea.top-ba.top:ba.bottom>ea.bottom&&(fa.scrollTop+=ba.bottom-ea.bottom))}}}},{key:"setNativeRange",
112
+ value:function(fa,ea){var ba=2<arguments.length&&void 0!==arguments[2]?arguments[2]:fa,ma=3<arguments.length&&void 0!==arguments[3]?arguments[3]:ea,ta=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;ca.info("setNativeRange",fa,ea,ba,ma);if(null==fa||null!=this.root.parentNode&&null!=fa.parentNode&&null!=ba.parentNode){var na=document.getSelection();if(null!=na)if(null!=fa){this.hasFocus()||this.root.focus();var oa=(this.getNativeRange()||{}).native;if(null==oa||ta||fa!==oa.startContainer||
113
+ ea!==oa.startOffset||ba!==oa.endContainer||ma!==oa.endOffset)"BR"==fa.tagName&&(ea=[].indexOf.call(fa.parentNode.childNodes,fa),fa=fa.parentNode),"BR"==ba.tagName&&(ma=[].indexOf.call(ba.parentNode.childNodes,ba),ba=ba.parentNode),ta=document.createRange(),ta.setStart(fa,ea),ta.setEnd(ba,ma),na.removeAllRanges(),na.addRange(ta)}else na.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(fa){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,ba=
114
+ 2<arguments.length&&void 0!==arguments[2]?arguments[2]:x.default.sources.API;"string"===typeof ea&&(ba=ea,ea=!1);ca.info("setRange",fa);if(null!=fa){var ma=this.rangeToNative(fa);this.setNativeRange.apply(this,y(ma).concat([ea]))}else this.setNativeRange(null);this.update(ba)}},{key:"update",value:function(){var fa=0<arguments.length&&void 0!==arguments[0]?arguments[0]:x.default.sources.USER,ea=this.lastRange,ba=this.getRange();ba=a(ba,2);var ma=ba[1];this.lastRange=ba[0];null!=this.lastRange&&(this.savedRange=
115
+ this.lastRange);if(!(0,n.default)(ea,this.lastRange)){var ta;!this.composing&&null!=ma&&ma.native.collapsed&&ma.start.node!==this.cursor.textNode&&this.cursor.restore();ea=[x.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(ea),fa];(ta=this.emitter).emit.apply(ta,[x.default.events.EDITOR_CHANGE].concat(ea));if(fa!==x.default.sources.SILENT){var na;(na=this.emitter).emit.apply(na,ea)}}}}]);return ja}();la.Range=w;la.default=ha},function(ka,la,ha){function da(h,a){if("function"!==
116
+ typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,
117
+ f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
118
+ return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);y(b,[{key:"insertInto",value:function(e,f){0===e.children.length?r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertInto",this).call(this,e,f):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(0)).default.Embed);ka.blotName="break";ka.tagName="BR";la.default=ka},function(ka,
119
+ la,ha){function da(a){var b=h.find(a);if(null==b)try{b=h.create(a)}catch(e){b=h.create(h.Scope.INLINE),[].slice.call(a.childNodes).forEach(function(f){b.domNode.appendChild(f)}),a.parentNode&&a.parentNode.replaceChild(b.domNode,a),b.attach()}return b}var y=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])};return function(b,e){function f(){this.constructor=b}a(b,
120
+ e);b.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(la,"__esModule",{value:!0});var r=ha(44);ka=ha(30);var h=ha(1);ha=function(a){function b(e){e=a.call(this,e)||this;e.build();return e}y(b,a);b.prototype.appendChild=function(e){this.insertBefore(e)};b.prototype.attach=function(){a.prototype.attach.call(this);this.children.forEach(function(e){e.attach()})};b.prototype.build=function(){var e=this;this.children=new r.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(f){try{var n=
121
+ da(f);e.insertBefore(n,e.children.head||void 0)}catch(x){if(!(x instanceof h.ParchmentError))throw x;}})};b.prototype.deleteAt=function(e,f){if(0===e&&f===this.length())return this.remove();this.children.forEachAt(e,f,function(n,x,ca){n.deleteAt(x,ca)})};b.prototype.descendant=function(e,f){var n=this.children.find(f);f=n[0];n=n[1];return null==e.blotName&&e(f)||null!=e.blotName&&f instanceof e?[f,n]:f instanceof b?f.descendant(e,n):[null,-1]};b.prototype.descendants=function(e,f,n){void 0===f&&(f=
122
+ 0);void 0===n&&(n=Number.MAX_VALUE);var x=[],ca=n;this.children.forEachAt(f,n,function(w,aa,ja){(null==e.blotName&&e(w)||null!=e.blotName&&w instanceof e)&&x.push(w);w instanceof b&&(x=x.concat(w.descendants(e,aa,ca)));ca-=ja});return x};b.prototype.detach=function(){this.children.forEach(function(e){e.detach()});a.prototype.detach.call(this)};b.prototype.formatAt=function(e,f,n,x){this.children.forEachAt(e,f,function(ca,w,aa){ca.formatAt(w,aa,n,x)})};b.prototype.insertAt=function(e,f,n){var x=this.children.find(e);
123
+ e=x[0];x=x[1];e?e.insertAt(x,f,n):(f=null==n?h.create("text",f):h.create(f,n),this.appendChild(f))};b.prototype.insertBefore=function(e,f){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(n){return e instanceof n}))throw new h.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,f)};b.prototype.length=function(){return this.children.reduce(function(e,f){return e+f.length()},0)};b.prototype.moveChildren=function(e,f){this.children.forEach(function(n){e.insertBefore(n,
124
+ f)})};b.prototype.optimize=function(e){a.prototype.optimize.call(this,e);if(0===this.children.length)if(null!=this.statics.defaultChild){var f=h.create(this.statics.defaultChild);this.appendChild(f);f.optimize(e)}else this.remove()};b.prototype.path=function(e,f){void 0===f&&(f=!1);var n=this.children.find(e,f),x=n[0];n=n[1];e=[[this,e]];if(x instanceof b)return e.concat(x.path(n,f));null!=x&&e.push([x,n]);return e};b.prototype.removeChild=function(e){this.children.remove(e)};b.prototype.replace=
125
+ function(e){e instanceof b&&e.moveChildren(this);a.prototype.replace.call(this,e)};b.prototype.split=function(e,f){void 0===f&&(f=!1);if(!f){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();this.parent.insertBefore(n,this.next);this.children.forEachAt(e,this.length(),function(x,ca){x=x.split(ca,f);n.appendChild(x)});return n};b.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};b.prototype.update=function(e){var f=this,n=[],x=[];e.forEach(function(ca){ca.target===
126
+ f.domNode&&"childList"===ca.type&&(n.push.apply(n,ca.addedNodes),x.push.apply(x,ca.removedNodes))});x.forEach(function(ca){null!=ca.parentNode&&"IFRAME"!==ca.tagName&&document.body.compareDocumentPosition(ca)&Node.DOCUMENT_POSITION_CONTAINED_BY||(ca=h.find(ca),null!=ca&&(null!=ca.domNode.parentNode&&ca.domNode.parentNode!==f.domNode||ca.detach()))});n.filter(function(ca){return ca.parentNode==f.domNode}).sort(function(ca,w){return ca===w?0:ca.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?
127
+ 1:-1}).forEach(function(ca){var w=null;null!=ca.nextSibling&&(w=h.find(ca.nextSibling));ca=da(ca);if(ca.next!=w||null==ca.next)null!=ca.parent&&ca.parent.removeChild(f),f.insertBefore(ca,w||void 0)})};return b}(ka.default);la.default=ha},function(ka,la,ha){var da=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])};return function(b,e){function f(){this.constructor=
128
+ b}a(b,e);b.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(la,"__esModule",{value:!0});var y=ha(12),r=ha(31);ka=ha(17);var h=ha(1);ha=function(a){function b(e){e=a.call(this,e)||this;e.attributes=new r.default(e.domNode);return e}da(b,a);b.formats=function(e){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()};b.prototype.format=function(e,f){var n=h.query(e);n instanceof y.default?this.attributes.attribute(n,
129
+ f):f&&(null==n||e===this.statics.blotName&&this.formats()[e]===f||this.replaceWith(e,f))};b.prototype.formats=function(){var e=this.attributes.values(),f=this.statics.formats(this.domNode);null!=f&&(e[this.statics.blotName]=f);return e};b.prototype.replaceWith=function(e,f){e=a.prototype.replaceWith.call(this,e,f);this.attributes.copy(e);return e};b.prototype.update=function(e,f){var n=this;a.prototype.update.call(this,e,f);e.some(function(x){return x.target===n.domNode&&"attributes"===x.type})&&
130
+ this.attributes.build()};b.prototype.wrap=function(e,f){e=a.prototype.wrap.call(this,e,f);e instanceof b&&e.statics.scope===this.statics.scope&&this.attributes.move(e);return e};return b}(ka.default);la.default=ha},function(ka,la,ha){var da=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===
131
+ a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=ha(30);var y=ha(1);ha=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}da(h,r);h.value=function(){return!0};h.prototype.index=function(a,b){return this.domNode===a||this.domNode.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(b,1):-1};h.prototype.position=function(a){var b=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<a&&(b+=1);
132
+ return[this.parent.domNode,b]};h.prototype.value=function(){var a;return a={},a[this.statics.blotName]=this.statics.value(this.domNode)||!0,a};h.scope=y.Scope.INLINE_BLOT;return h}(ka.default);la.default=ha},function(ka,la,ha){function da(a){this.ops=a;this.offset=this.index=0}var y=ha(11),r=ha(3),h={attributes:{compose:function(a,b,e){"object"!==typeof a&&(a={});"object"!==typeof b&&(b={});var f=r(!0,{},b);e||(f=Object.keys(f).reduce(function(x,ca){null!=f[ca]&&(x[ca]=f[ca]);return x},{}));for(var n in a)void 0!==
133
+ a[n]&&void 0===b[n]&&(f[n]=a[n]);return 0<Object.keys(f).length?f:void 0},diff:function(a,b){"object"!==typeof a&&(a={});"object"!==typeof b&&(b={});var e=Object.keys(a).concat(Object.keys(b)).reduce(function(f,n){y(a[n],b[n])||(f[n]=void 0===b[n]?null:b[n]);return f},{});return 0<Object.keys(e).length?e:void 0},transform:function(a,b,e){if("object"!==typeof a)return b;if("object"===typeof b){if(!e)return b;e=Object.keys(b).reduce(function(f,n){void 0===a[n]&&(f[n]=b[n]);return f},{});return 0<Object.keys(e).length?
134
+ e:void 0}}},iterator:function(a){return new da(a)},length:function(a){return"number"===typeof a["delete"]?a["delete"]:"number"===typeof a.retain?a.retain:"string"===typeof a.insert?a.insert.length:1}};da.prototype.hasNext=function(){return Infinity>this.peekLength()};da.prototype.next=function(a){a||(a=Infinity);var b=this.ops[this.index];if(b){var e=this.offset,f=h.length(b);a>=f-e?(a=f-e,this.index+=1,this.offset=0):this.offset+=a;if("number"===typeof b["delete"])return{"delete":a};f={};b.attributes&&
135
+ (f.attributes=b.attributes);"number"===typeof b.retain?f.retain=a:f.insert="string"===typeof b.insert?b.insert.substr(e,a):b.insert;return f}return{retain:Infinity}};da.prototype.peek=function(){return this.ops[this.index]};da.prototype.peekLength=function(){return this.ops[this.index]?h.length(this.ops[this.index])-this.offset:Infinity};da.prototype.peekType=function(){if(this.ops[this.index]){if("number"===typeof this.ops[this.index]["delete"])return"delete";if("number"!==typeof this.ops[this.index].retain)return"insert"}return"retain"};
136
+ da.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var a=this.offset,b=this.index,e=this.next(),f=this.ops.slice(this.index);this.offset=a;this.index=b;return[e].concat(f)}return[]};ka.exports=h},function(ka){var la=function(){function ha(e,f){return null!=f&&e instanceof f}function da(e,f,n,x,ca){function w(ea,ba){if(null===ea)return null;if(0===ba||"object"!=typeof ea)return ea;if(ha(ea,h))var ma=new h;else if(ha(ea,a))ma=new a;else if(ha(ea,b))ma=
137
+ new b(function(ua,va){ea.then(function(ra){ua(w(ra,ba-1))},function(ra){va(w(ra,ba-1))})});else if(da.__isArray(ea))ma=[];else if(da.__isRegExp(ea))ma=new RegExp(ea.source,r(ea)),ea.lastIndex&&(ma.lastIndex=ea.lastIndex);else if(da.__isDate(ea))ma=new Date(ea.getTime());else{if(fa&&qa.isBuffer(ea))return ma=qa.allocUnsafe?qa.allocUnsafe(ea.length):new qa(ea.length),ea.copy(ma),ma;if(ha(ea,Error))ma=Object.create(ea);else if("undefined"==typeof x){var ta=Object.getPrototypeOf(ea);ma=Object.create(ta)}else ma=
138
+ Object.create(x),ta=x}if(f){var na=aa.indexOf(ea);if(-1!=na)return ja[na];aa.push(ea);ja.push(ma)}ha(ea,h)&&ea.forEach(function(ua,va){va=w(va,ba-1);ua=w(ua,ba-1);ma.set(va,ua)});ha(ea,a)&&ea.forEach(function(ua){ua=w(ua,ba-1);ma.add(ua)});for(var oa in ea){var pa;ta&&(pa=Object.getOwnPropertyDescriptor(ta,oa));pa&&null==pa.set||(ma[oa]=w(ea[oa],ba-1))}if(Object.getOwnPropertySymbols)for(na=Object.getOwnPropertySymbols(ea),oa=0;oa<na.length;oa++)if(pa=na[oa],ta=Object.getOwnPropertyDescriptor(ea,
139
+ pa),!ta||ta.enumerable||ca)ma[pa]=w(ea[pa],ba-1),ta.enumerable||Object.defineProperty(ma,pa,{enumerable:!1});if(ca)for(na=Object.getOwnPropertyNames(ea),oa=0;oa<na.length;oa++)pa=na[oa],ta=Object.getOwnPropertyDescriptor(ea,pa),ta&&ta.enumerable||(ma[pa]=w(ea[pa],ba-1),Object.defineProperty(ma,pa,{enumerable:!1}));return ma}"object"===typeof f&&(n=f.depth,x=f.prototype,ca=f.includeNonEnumerable,f=f.circular);var aa=[],ja=[],fa="undefined"!=typeof qa;"undefined"==typeof f&&(f=!0);"undefined"==typeof n&&
140
+ (n=Infinity);return w(e,n)}function y(e){return Object.prototype.toString.call(e)}function r(e){var f="";e.global&&(f+="g");e.ignoreCase&&(f+="i");e.multiline&&(f+="m");return f}try{var h=Map}catch(e){h=function(){}}try{var a=Set}catch(e){a=function(){}}try{var b=Promise}catch(e){b=function(){}}da.clonePrototype=function(e){function f(){}if(null===e)return null;f.prototype=e;return new f};da.__objToStr=y;da.__isDate=function(e){return"object"===typeof e&&"[object Date]"===y(e)};da.__isArray=function(e){return"object"===
141
+ typeof e&&"[object Array]"===y(e)};da.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===y(e)};da.__getRegExpFlags=r;return da}();"object"===typeof ka&&ka.exports&&(ka.exports=la)},function(ka,la,ha){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function y(ja,fa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&"function"!==typeof fa?ja:fa}function r(ja,fa){if("function"!==typeof fa&&null!==
142
+ fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);ja.prototype=Object.create(fa&&fa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,fa):ja.__proto__=fa)}function h(ja){return ja instanceof ca.default||ja instanceof x.BlockEmbed}Object.defineProperty(la,"__esModule",{value:!0});var a=function(){return function(ja,fa){if(Array.isArray(ja))return ja;if(Symbol.iterator in Object(ja)){var ea=
143
+ [],ba=!0,ma=!1,ta=void 0;try{for(var na=ja[Symbol.iterator](),oa;!(ba=(oa=na.next()).done)&&(ea.push(oa.value),!fa||ea.length!==fa);ba=!0);}catch(pa){ma=!0,ta=pa}finally{try{if(!ba&&na["return"])na["return"]()}finally{if(ma)throw ta;}}return ea}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function ja(fa,ea){for(var ba=0;ba<ea.length;ba++){var ma=ea[ba];ma.enumerable=ma.enumerable||!1;ma.configurable=!0;"value"in ma&&(ma.writable=!0);Object.defineProperty(fa,
144
+ ma.key,ma)}}return function(fa,ea,ba){ea&&ja(fa.prototype,ea);ba&&ja(fa,ba);return fa}}(),e=function ma(fa,ea,ba){null===fa&&(fa=Function.prototype);var ta=Object.getOwnPropertyDescriptor(fa,ea);if(void 0===ta){if(fa=Object.getPrototypeOf(fa),null!==fa)return ma(fa,ea,ba)}else{if("value"in ta)return ta.value;ea=ta.get;return void 0===ea?void 0:ea.call(ba)}};ka=ha(0);var f=da(ka);ka=ha(8);var n=da(ka),x=ha(4),ca=da(x);ka=ha(16);var w=da(ka);ka=ha(13);var aa=da(ka);ha=ha(25);ha=da(ha);ka=function(fa){function ea(ba,
145
+ ma){if(!(this instanceof ea))throw new TypeError("Cannot call a class as a function");ba=y(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ba));ba.emitter=ma.emitter;Array.isArray(ma.whitelist)&&(ba.whitelist=ma.whitelist.reduce(function(ta,na){ta[na]=!0;return ta},{}));ba.domNode.addEventListener("DOMNodeInserted",function(){});ba.optimize();ba.enable();return ba}r(ea,fa);b(ea,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},
146
+ {key:"deleteAt",value:function(ba,ma){var ta=this.line(ba),na=a(ta,2);ta=na[0];var oa=na[1];na=this.line(ba+ma);na=a(na,1)[0];e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"deleteAt",this).call(this,ba,ma);if(null!=na&&ta!==na&&0<oa){if(ta instanceof x.BlockEmbed||na instanceof x.BlockEmbed){this.optimize();return}if(ta instanceof aa.default){if(ba=ta.newlineIndex(ta.length(),!0),-1<ba&&(ta=ta.split(ba+1),ta===na)){this.optimize();return}}else na instanceof aa.default&&(ba=na.newlineIndex(0),
147
+ -1<ba&&na.split(ba+1));ta.moveChildren(na,na.children.head instanceof w.default?null:na.children.head);ta.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0)}},{key:"formatAt",value:function(ba,ma,ta,na){if(null==this.whitelist||this.whitelist[ta])e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"formatAt",this).call(this,ba,ma,ta,na),this.optimize()}},{key:"insertAt",value:function(ba,
148
+ ma,ta){if(null==ta||null==this.whitelist||this.whitelist[ma])ba>=this.length()?null==ta||null==f.default.query(ma,f.default.Scope.BLOCK)?(ba=f.default.create(this.statics.defaultChild),this.appendChild(ba),null==ta&&ma.endsWith("\n")&&(ma=ma.slice(0,-1)),ba.insertAt(0,ma,ta)):(ma=f.default.create(ma,ta),this.appendChild(ma)):e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ba,ma,ta),this.optimize()}},{key:"insertBefore",value:function(ba,ma){if(ba.statics.scope===
149
+ f.default.Scope.INLINE_BLOT){var ta=f.default.create(this.statics.defaultChild);ta.appendChild(ba);ba=ta}e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertBefore",this).call(this,ba,ma)}},{key:"leaf",value:function(ba){return this.path(ba).pop()||[null,-1]}},{key:"line",value:function(ba){return ba===this.length()?this.line(ba-1):this.descendant(h,ba)}},{key:"lines",value:function(){return function oa(ma,ta,na){var pa=[],ua=na;ma.children.forEachAt(ta,na,function(va,ra,xa){h(va)?
150
+ pa.push(va):va instanceof f.default.Container&&(pa=pa.concat(oa(va,ra,ua)));ua-=xa});return pa}(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var ba=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],ma=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"optimize",this).call(this,ba,
151
+ ma),0<ba.length&&this.emitter.emit(n.default.events.SCROLL_OPTIMIZE,ba,ma))}},{key:"path",value:function(ba){return e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"path",this).call(this,ba).slice(1)}},{key:"update",value:function(ba){if(!0!==this.batch){var ma=n.default.sources.USER;"string"===typeof ba&&(ma=ba);Array.isArray(ba)||(ba=this.observer.takeRecords());0<ba.length&&this.emitter.emit(n.default.events.SCROLL_BEFORE_UPDATE,ma,ba);e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),
152
+ "update",this).call(this,ba.concat([]));0<ba.length&&this.emitter.emit(n.default.events.SCROLL_UPDATE,ma,ba)}}}]);return ea}(f.default.Scroll);ka.blotName="scroll";ka.className="ql-editor";ka.tagName="DIV";ka.defaultChild="block";ka.allowedChildren=[ca.default,x.BlockEmbed,ha.default];la.default=ka},function(ka,la,ha){function da(xa){return xa&&xa.__esModule?xa:{default:xa}}function y(xa,Aa,Ga){Aa in xa?Object.defineProperty(xa,Aa,{value:Ga,enumerable:!0,configurable:!0,writable:!0}):xa[Aa]=Ga;return xa}
153
+ function r(xa,Aa){if(!xa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Aa||"object"!==typeof Aa&&"function"!==typeof Aa?xa:Aa}function h(xa,Aa){if("function"!==typeof Aa&&null!==Aa)throw new TypeError("Super expression must either be null or a function, not "+typeof Aa);xa.prototype=Object.create(Aa&&Aa.prototype,{constructor:{value:xa,enumerable:!1,writable:!0,configurable:!0}});Aa&&(Object.setPrototypeOf?Object.setPrototypeOf(xa,Aa):xa.__proto__=Aa)}
154
+ function a(xa,Aa){var Ga,Ka=xa===ra.keys.LEFT?"prefix":"suffix";return Ga={key:xa,shiftKey:Aa,altKey:null},y(Ga,Ka,/^$/),y(Ga,"handler",function(Da){var Pa=Da.index;xa===ra.keys.RIGHT&&(Pa+=Da.length+1);Pa=this.quill.getLeaf(Pa);if(!(ja(Pa,1)[0]instanceof oa.default.Embed))return!0;xa===ra.keys.LEFT?Aa?this.quill.setSelection(Da.index-1,Da.length+1,pa.default.sources.USER):this.quill.setSelection(Da.index-1,pa.default.sources.USER):Aa?this.quill.setSelection(Da.index,Da.length+1,pa.default.sources.USER):
155
+ this.quill.setSelection(Da.index+Da.length+1,pa.default.sources.USER);return!1}),Ga}function b(xa,Aa){if(!(0===xa.index||1>=this.quill.getLength())){var Ga=this.quill.getLine(xa.index),Ka=ja(Ga,1)[0];Ga={};if(0===Aa.offset){var Da=this.quill.getLine(xa.index-1);Da=ja(Da,1)[0];null!=Da&&1<Da.length()&&(Ga=Ka.formats(),Ka=this.quill.getFormat(xa.index-1,1),Ga=na.default.attributes.diff(Ga,Ka)||{})}Aa=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Aa.prefix)?2:1;this.quill.deleteText(xa.index-Aa,Aa,pa.default.sources.USER);
156
+ 0<Object.keys(Ga).length&&this.quill.formatLine(xa.index-Aa,Aa,Ga,pa.default.sources.USER);this.quill.focus()}}function e(xa,Aa){var Ga=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Aa.suffix)?2:1;if(!(xa.index>=this.quill.getLength()-Ga)){var Ka={},Da=0,Pa=this.quill.getLine(xa.index);Pa=ja(Pa,1)[0];Aa.offset>=Pa.length()-1&&(Aa=this.quill.getLine(xa.index+1),Aa=ja(Aa,1)[0])&&(Ka=Pa.formats(),Da=this.quill.getFormat(xa.index,1),Ka=na.default.attributes.diff(Ka,Da)||{},Da=Aa.length());this.quill.deleteText(xa.index,
157
+ Ga,pa.default.sources.USER);0<Object.keys(Ka).length&&this.quill.formatLine(xa.index+Da-1,Ga,Ka,pa.default.sources.USER)}}function f(xa){var Aa=this.quill.getLines(xa),Ga={};1<Aa.length&&(Ga=Aa[0].formats(),Aa=Aa[Aa.length-1].formats(),Ga=na.default.attributes.diff(Aa,Ga)||{});this.quill.deleteText(xa,pa.default.sources.USER);0<Object.keys(Ga).length&&this.quill.formatLine(xa.index,1,Ga,pa.default.sources.USER);this.quill.setSelection(xa.index,pa.default.sources.SILENT);this.quill.focus()}function n(xa,
158
+ Aa){var Ga=this;0<xa.length&&this.quill.scroll.deleteAt(xa.index,xa.length);var Ka=Object.keys(Aa.format).reduce(function(Da,Pa){oa.default.query(Pa,oa.default.Scope.BLOCK)&&!Array.isArray(Aa.format[Pa])&&(Da[Pa]=Aa.format[Pa]);return Da},{});this.quill.insertText(xa.index,"\n",Ka,pa.default.sources.USER);this.quill.setSelection(xa.index+1,pa.default.sources.SILENT);this.quill.focus();Object.keys(Aa.format).forEach(function(Da){null==Ka[Da]&&(Array.isArray(Aa.format[Da])||"link"!==Da&&Ga.quill.format(Da,
159
+ Aa.format[Da],pa.default.sources.USER))})}function x(xa){return{key:ra.keys.TAB,shiftKey:!xa,format:{"code-block":!0},handler:function(Aa){var Ga=oa.default.query("code-block"),Ka=Aa.index,Da=Aa.length;Aa=this.quill.scroll.descendant(Ga,Ka);Aa=ja(Aa,2);var Pa=Aa[0],Qa=Aa[1];if(null!=Pa){Aa=this.quill.getIndex(Pa);var Ca=Pa.newlineIndex(Qa,!0)+1;Aa=Pa.newlineIndex(Aa+Qa+Da);Aa=Pa.domNode.textContent.slice(Ca,Aa).split("\n");Qa=0;Aa.forEach(function(Ia,Ha){xa?(Pa.insertAt(Ca+Qa,Ga.TAB),Qa+=Ga.TAB.length,
160
+ 0===Ha?Ka+=Ga.TAB.length:Da+=Ga.TAB.length):Ia.startsWith(Ga.TAB)&&(Pa.deleteAt(Ca+Qa,Ga.TAB.length),Qa-=Ga.TAB.length,0===Ha?Ka-=Ga.TAB.length:Da-=Ga.TAB.length);Qa+=Ia.length+1});this.quill.update(pa.default.sources.USER);this.quill.setSelection(Ka,Da,pa.default.sources.SILENT)}}}}function ca(xa){return{key:xa[0].toUpperCase(),shortKey:!0,handler:function(Aa,Ga){this.quill.format(xa,!Ga.format[xa],pa.default.sources.USER)}}}function w(xa){if("string"===typeof xa||"number"===typeof xa)return w({key:xa});
161
+ "object"===("undefined"===typeof xa?"undefined":aa(xa))&&(xa=(0,ea.default)(xa,!1));if("string"===typeof xa.key)if(null!=ra.keys[xa.key.toUpperCase()])xa.key=ra.keys[xa.key.toUpperCase()];else if(1===xa.key.length)xa.key=xa.key.toUpperCase().charCodeAt(0);else return null;xa.shortKey&&(xa[va]=xa.shortKey,delete xa.shortKey);return xa}Object.defineProperty(la,"__esModule",{value:!0});la.SHORTKEY=la.default=void 0;var aa="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(xa){return typeof xa}:
162
+ function(xa){return xa&&"function"===typeof Symbol&&xa.constructor===Symbol&&xa!==Symbol.prototype?"symbol":typeof xa},ja=function(){return function(xa,Aa){if(Array.isArray(xa))return xa;if(Symbol.iterator in Object(xa)){var Ga=[],Ka=!0,Da=!1,Pa=void 0;try{for(var Qa=xa[Symbol.iterator](),Ca;!(Ka=(Ca=Qa.next()).done)&&(Ga.push(Ca.value),!Aa||Ga.length!==Aa);Ka=!0);}catch(Ia){Da=!0,Pa=Ia}finally{try{if(!Ka&&Qa["return"])Qa["return"]()}finally{if(Da)throw Pa;}}return Ga}throw new TypeError("Invalid attempt to destructure non-iterable instance");
163
+ }}(),fa=function(){function xa(Aa,Ga){for(var Ka=0;Ka<Ga.length;Ka++){var Da=Ga[Ka];Da.enumerable=Da.enumerable||!1;Da.configurable=!0;"value"in Da&&(Da.writable=!0);Object.defineProperty(Aa,Da.key,Da)}}return function(Aa,Ga,Ka){Ga&&xa(Aa.prototype,Ga);Ka&&xa(Aa,Ka);return Aa}}();ka=ha(21);var ea=da(ka);ka=ha(11);var ba=da(ka);ka=ha(3);var ma=da(ka);ka=ha(2);var ta=da(ka);ka=ha(20);var na=da(ka);ka=ha(0);var oa=da(ka);ka=ha(5);var pa=da(ka);ka=ha(10);ka=da(ka);ha=ha(9);ha=da(ha);var ua=(0,ka.default)("quill:keyboard"),
164
+ va=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",ra=function(xa){function Aa(Ga,Ka){if(!(this instanceof Aa))throw new TypeError("Cannot call a class as a function");var Da=r(this,(Aa.__proto__||Object.getPrototypeOf(Aa)).call(this,Ga,Ka));Da.bindings={};Object.keys(Da.options.bindings).forEach(function(Pa){("list autofill"!==Pa||null==Ga.scroll.whitelist||Ga.scroll.whitelist.list)&&Da.options.bindings[Pa]&&Da.addBinding(Da.options.bindings[Pa])});Da.addBinding({key:Aa.keys.ENTER,shiftKey:null},
165
+ n);Da.addBinding({key:Aa.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(Da.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!0},b),Da.addBinding({key:Aa.keys.DELETE},{collapsed:!0},e)):(Da.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},b),Da.addBinding({key:Aa.keys.DELETE},{collapsed:!0,suffix:/^.?$/},e));Da.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!1},f);Da.addBinding({key:Aa.keys.DELETE},{collapsed:!1},f);Da.addBinding({key:Aa.keys.BACKSPACE,
166
+ altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},b);Da.listen();return Da}h(Aa,xa);fa(Aa,null,[{key:"match",value:function(Ga,Ka){Ka=w(Ka);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(Da){return!!Ka[Da]!==Ga[Da]&&null!==Ka[Da]})?!1:Ka.key===(Ga.which||Ga.keyCode)}}]);fa(Aa,[{key:"addBinding",value:function(Ga){var Ka=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},Da=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},Pa=w(Ga);if(null==
167
+ Pa||null==Pa.key)return ua.warn("Attempted to add invalid keyboard binding",Pa);"function"===typeof Ka&&(Ka={handler:Ka});"function"===typeof Da&&(Da={handler:Da});Pa=(0,ma.default)(Pa,Ka,Da);this.bindings[Pa.key]=this.bindings[Pa.key]||[];this.bindings[Pa.key].push(Pa)}},{key:"listen",value:function(){var Ga=this;this.quill.root.addEventListener("keydown",function(Ka){if(!Ka.defaultPrevented){var Da=(Ga.bindings[Ka.which||Ka.keyCode]||[]).filter(function(Ma){return Aa.match(Ka,Ma)});if(0!==Da.length){var Pa=
168
+ Ga.quill.getSelection();if(null!=Pa&&Ga.quill.hasFocus()){var Qa=Ga.quill.getLine(Pa.index),Ca=ja(Qa,2);Qa=Ca[0];Ca=Ca[1];var Ia=Ga.quill.getLeaf(Pa.index),Ha=ja(Ia,2);Ia=Ha[0];Ha=Ha[1];var wa=0===Pa.length?[Ia,Ha]:Ga.quill.getLeaf(Pa.index+Pa.length),Fa=ja(wa,2);wa=Fa[0];Fa=Fa[1];Ia=Ia instanceof oa.default.Text?Ia.value().slice(0,Ha):"";Ha=wa instanceof oa.default.Text?wa.value().slice(Fa):"";var Oa={collapsed:0===Pa.length,empty:0===Pa.length&&1>=Qa.length(),format:Ga.quill.getFormat(Pa),offset:Ca,
169
+ prefix:Ia,suffix:Ha};Da.some(function(Ma){if(null!=Ma.collapsed&&Ma.collapsed!==Oa.collapsed||null!=Ma.empty&&Ma.empty!==Oa.empty||null!=Ma.offset&&Ma.offset!==Oa.offset)return!1;if(Array.isArray(Ma.format)){if(Ma.format.every(function(Ua){return null==Oa.format[Ua]}))return!1}else if("object"===aa(Ma.format)&&!Object.keys(Ma.format).every(function(Ua){return!0===Ma.format[Ua]?null!=Oa.format[Ua]:!1===Ma.format[Ua]?null==Oa.format[Ua]:(0,ba.default)(Ma.format[Ua],Oa.format[Ua])}))return!1;return null!=
170
+ Ma.prefix&&!Ma.prefix.test(Oa.prefix)||null!=Ma.suffix&&!Ma.suffix.test(Oa.suffix)?!1:!0!==Ma.handler.call(Ga,Pa,Oa)})&&Ka.preventDefault()}}}})}}]);return Aa}(ha.default);ra.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};ra.DEFAULTS={bindings:{bold:ca("bold"),italic:ca("italic"),underline:ca("underline"),indent:{key:ra.keys.TAB,format:["blockquote","indent","list"],handler:function(xa,Aa){if(Aa.collapsed&&0!==Aa.offset)return!0;this.quill.format("indent","+1",
171
+ pa.default.sources.USER)}},outdent:{key:ra.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(xa,Aa){if(Aa.collapsed&&0!==Aa.offset)return!0;this.quill.format("indent","-1",pa.default.sources.USER)}},"outdent backspace":{key:ra.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(xa,Aa){null!=Aa.format.indent?this.quill.format("indent","-1",pa.default.sources.USER):null!=Aa.format.list&&this.quill.format("list",
172
+ !1,pa.default.sources.USER)}},"indent code-block":x(!0),"outdent code-block":x(!1),"remove tab":{key:ra.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(xa){this.quill.deleteText(xa.index-1,1,pa.default.sources.USER)}},tab:{key:ra.keys.TAB,handler:function(xa){this.quill.history.cutoff();var Aa=(new ta.default).retain(xa.index).delete(xa.length).insert("\t");this.quill.updateContents(Aa,pa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(xa.index+1,pa.default.sources.SILENT)}},
173
+ "list empty enter":{key:ra.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(xa,Aa){this.quill.format("list",!1,pa.default.sources.USER);Aa.format.indent&&this.quill.format("indent",!1,pa.default.sources.USER)}},"checklist enter":{key:ra.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(xa){var Aa=this.quill.getLine(xa.index),Ga=ja(Aa,2);Aa=Ga[0];Ga=Ga[1];var Ka=(0,ma.default)({},Aa.formats(),{list:"checked"});Aa=(new ta.default).retain(xa.index).insert("\n",Ka).retain(Aa.length()-
174
+ Ga-1).retain(1,{list:"unchecked"});this.quill.updateContents(Aa,pa.default.sources.USER);this.quill.setSelection(xa.index+1,pa.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:ra.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(xa,Aa){var Ga=this.quill.getLine(xa.index),Ka=ja(Ga,2);Ga=Ka[0];Ka=Ka[1];Aa=(new ta.default).retain(xa.index).insert("\n",Aa.format).retain(Ga.length()-Ka-1).retain(1,{header:null});this.quill.updateContents(Aa,pa.default.sources.USER);
175
+ this.quill.setSelection(xa.index+1,pa.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(xa,Aa){var Ga=Aa.prefix.length,Ka=this.quill.getLine(xa.index),Da=ja(Ka,2);Ka=Da[0];Da=Da[1];if(Da>Ga)return!0;switch(Aa.prefix.trim()){case "[]":case "[ ]":Aa="unchecked";break;case "[x]":Aa="checked";break;case "-":case "*":Aa="bullet";break;default:Aa="ordered"}this.quill.insertText(xa.index,
176
+ " ",pa.default.sources.USER);this.quill.history.cutoff();Aa=(new ta.default).retain(xa.index-Da).delete(Ga+1).retain(Ka.length()-2-Da).retain(1,{list:Aa});this.quill.updateContents(Aa,pa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(xa.index-Ga,pa.default.sources.SILENT)}},"code exit":{key:ra.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(xa){var Aa=this.quill.getLine(xa.index),Ga=ja(Aa,2);Aa=Ga[0];Ga=Ga[1];xa=(new ta.default).retain(xa.index+
177
+ Aa.length()-Ga-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(xa,pa.default.sources.USER)}},"embed left":a(ra.keys.LEFT,!1),"embed left shift":a(ra.keys.LEFT,!0),"embed right":a(ra.keys.RIGHT,!1),"embed right shift":a(ra.keys.RIGHT,!0)}};la.default=ra;la.SHORTKEY=va},function(ka,la,ha){function da(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,
178
+ enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=[],x=!0,ca=!1,w=void 0;try{for(var aa=e[Symbol.iterator](),ja;!(x=(ja=aa.next()).done)&&(n.push(ja.value),!f||n.length!==f);x=!0);}catch(fa){ca=!0,w=fa}finally{try{if(!x&&aa["return"])aa["return"]()}finally{if(ca)throw w;}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance");
179
+ }}(),r=function ca(f,n,x){null===f&&(f=Function.prototype);var w=Object.getOwnPropertyDescriptor(f,n);if(void 0===w){if(f=Object.getPrototypeOf(f),null!==f)return ca(f,n,x)}else{if("value"in w)return w.value;n=w.get;return void 0===n?void 0:n.call(x)}},h=function(){function f(n,x){for(var ca=0;ca<x.length;ca++){var w=x[ca];w.enumerable=w.enumerable||!1;w.configurable=!0;"value"in w&&(w.writable=!0);Object.defineProperty(n,w.key,w)}}return function(n,x,ca){x&&f(n.prototype,x);ca&&f(n,ca);return n}}(),
180
+ a=(ka=ha(0))&&ka.__esModule?ka:{default:ka},b=(ha=ha(7))&&ha.__esModule?ha:{default:ha};ha=function(f){function n(x,ca){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");x=(n.__proto__||Object.getPrototypeOf(n)).call(this,x);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");x=!x||"object"!==typeof x&&"function"!==typeof x?this:x;x.selection=ca;x.textNode=document.createTextNode(n.CONTENTS);x.domNode.appendChild(x.textNode);
181
+ x._length=0;return x}da(n,f);h(n,null,[{key:"value",value:function(){}}]);h(n,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(x,ca){if(0!==this._length)return r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"format",this).call(this,x,ca);for(var w=this,aa=0;null!=w&&w.statics.scope!==a.default.Scope.BLOCK_BLOT;)aa+=w.offset(w.parent),w=w.parent;null!=w&&(this._length=n.CONTENTS.length,w.optimize(),w.formatAt(aa,n.CONTENTS.length,
182
+ x,ca),this._length=0)}},{key:"index",value:function(x,ca){return x===this.textNode?0:r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"index",this).call(this,x,ca)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&
183
+ null!=this.parent){var x=this.textNode,ca=this.selection.getNativeRange(),w=void 0,aa=void 0,ja=void 0;null!=ca&&ca.start.node===x&&ca.end.node===x&&(ja=[x,ca.start.offset,ca.end.offset],w=ja[0],aa=ja[1],ja=ja[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==n.CONTENTS&&(x=this.textNode.data.split(n.CONTENTS).join(""),this.next instanceof b.default?(w=this.next.domNode,this.next.insertAt(0,
184
+ x),this.textNode.data=n.CONTENTS):(this.textNode.data=x,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(n.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=aa)return aa=[aa,ja].map(function(fa){return Math.max(0,Math.min(w.data.length,fa-1))}),ja=y(aa,2),aa=ja[0],ja=ja[1],{startNode:w,startOffset:aa,endNode:w,endOffset:ja}}}},{key:"update",value:function(x,ca){var w=this;x.some(function(aa){return"characterData"===aa.type&&
185
+ aa.target===w.textNode})&&(x=this.restore())&&(ca.range=x)}},{key:"value",value:function(){return""}}]);return n}(a.default.Embed);ha.blotName="cursor";ha.className="ql-cursor";ha.tagName="span";ha.CONTENTS="\ufeff";la.default=ha},function(ka,la,ha){function da(r,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);r.prototype=Object.create(h&&h.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}});h&&
186
+ (Object.setPrototypeOf?Object.setPrototypeOf(r,h):r.__proto__=h)}Object.defineProperty(la,"__esModule",{value:!0});ka=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var y=(ha=ha(4))&&ha.__esModule?ha:{default:ha};ka=function(r){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var a=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==
187
+ typeof a&&"function"!==typeof a?this:a}da(h,r);return h}(ka.default.Container);ka.allowedChildren=[y.default,ha.BlockEmbed,ka];la.default=ka},function(ka,la,ha){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(la,
188
+ "__esModule",{value:!0});la.ColorStyle=la.ColorClass=la.ColorAttributor=void 0;var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in
189
+ x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}},h=function(b){return b&&b.__esModule?b:{default:b}}(ha(0));ka=function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(e,b);y(e,[{key:"value",value:function(f){f=r(e.prototype.__proto__||
190
+ Object.getPrototypeOf(e.prototype),"value",this).call(this,f);if(!f.startsWith("rgb("))return f;f=f.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+f.split(",").map(function(n){return("00"+parseInt(n).toString(16)).slice(-2)}).join("")}}]);return e}(h.default.Attributor.Style);ha=new h.default.Attributor.Class("color","ql-color",{scope:h.default.Scope.INLINE});h=new ka("color","color",{scope:h.default.Scope.INLINE});la.ColorAttributor=ka;la.ColorClass=ha;la.ColorStyle=h},function(ka,la,ha){function da(a,
191
+ b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function y(a,b){var e=document.createElement("a");e.href=a;a=e.href.slice(0,e.href.indexOf(":"));return-1<b.indexOf(a)}Object.defineProperty(la,"__esModule",{value:!0});la.sanitize=la.default=void 0;
192
+ var r=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),h=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=function(b){function e(){if(!(this instanceof
193
+ e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(e,b);r(e,[{key:"format",value:function(f,n){if(f!==this.statics.blotName||!n)return h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,f,n);n=this.constructor.sanitize(n);this.domNode.setAttribute("href",
194
+ n)}}],[{key:"create",value:function(f){var n=h(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,f);f=this.sanitize(f);n.setAttribute("href",f);n.setAttribute("rel","noopener noreferrer");n.setAttribute("target","_blank");return n}},{key:"formats",value:function(f){return f.getAttribute("href")}},{key:"sanitize",value:function(f){return y(f,this.PROTOCOL_WHITELIST)?f:this.SANITIZED_URL}}]);return e}(function(b){return b&&b.__esModule?b:{default:b}}(ha(6)).default);ka.blotName="link";
195
+ ka.tagName="A";ka.SANITIZED_URL="about:blank";ka.PROTOCOL_WHITELIST=["http","https","mailto","tel"];la.default=ka;la.sanitize=y},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});var da="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"===typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},y=function(){function b(e,f){for(var n=0;n<f.length;n++){var x=f[n];x.enumerable=x.enumerable||
196
+ !1;x.configurable=!0;"value"in x&&(x.writable=!0);Object.defineProperty(e,x.key,x)}}return function(e,f,n){f&&b(e.prototype,f);n&&b(e,n);return e}}(),r=(ka=ha(23))&&ka.__esModule?ka:{default:ka},h=(ha=ha(107))&&ha.__esModule?ha:{default:ha},a=0;ha=function(){function b(e){var f=this;if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");this.select=e;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,
197
+ this.select);this.label.addEventListener("mousedown",function(){f.togglePicker()});this.label.addEventListener("keydown",function(n){switch(n.keyCode){case r.default.keys.ENTER:f.togglePicker();break;case r.default.keys.ESCAPE:f.escape(),n.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}y(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");var e=this.label;e.setAttribute("aria-expanded","true"!==e.getAttribute("aria-expanded"));
198
+ e=this.options;e.setAttribute("aria-hidden","true"!==e.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(e){var f=this,n=document.createElement("span");n.tabIndex="0";n.setAttribute("role","button");n.classList.add("ql-picker-item");e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value"));e.textContent&&n.setAttribute("data-label",e.textContent);n.addEventListener("click",function(){f.selectItem(n,!0)});n.addEventListener("keydown",function(x){switch(x.keyCode){case r.default.keys.ENTER:f.selectItem(n,
199
+ !0);x.preventDefault();break;case r.default.keys.ESCAPE:f.escape(),x.preventDefault()}});return n}},{key:"buildLabel",value:function(){var e=document.createElement("span");e.classList.add("ql-picker-label");e.innerHTML=h.default;e.tabIndex="0";e.setAttribute("role","button");e.setAttribute("aria-expanded","false");this.container.appendChild(e);return e}},{key:"buildOptions",value:function(){var e=this,f=document.createElement("span");f.classList.add("ql-picker-options");f.setAttribute("aria-hidden",
200
+ "true");f.tabIndex="-1";f.id="ql-picker-options-"+a;a+=1;this.label.setAttribute("aria-controls",f.id);this.options=f;[].slice.call(this.select.options).forEach(function(n){var x=e.buildItem(n);f.appendChild(x);!0===n.selected&&e.selectItem(x)});this.container.appendChild(f)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(f){e.container.setAttribute(f.name,f.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},
201
+ {key:"escape",value:function(){var e=this;this.close();setTimeout(function(){return e.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded");this.label.setAttribute("aria-expanded","false");this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,n=this.container.querySelector(".ql-selected");e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),
202
+ this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),f&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":da(Event))&&(f=document.createEvent("Event"),
203
+ f.initEvent("change",!0,!0),this.select.dispatchEvent(f)),this.close())))}},{key:"update",value:function(){var e=void 0;if(-1<this.select.selectedIndex){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex];this.selectItem(f)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=e&&e!==this.select.querySelector("option[selected]"))}}]);return b}();la.default=ha},function(ka,la,ha){function da(ja){return ja&&
204
+ ja.__esModule?ja:{default:ja}}Object.defineProperty(la,"__esModule",{value:!0});ka=ha(0);ka=da(ka);var y=ha(5);y=da(y);var r=ha(4),h=da(r),a=ha(16);a=da(a);var b=ha(25);b=da(b);var e=ha(24);e=da(e);var f=ha(35);f=da(f);var n=ha(6);n=da(n);var x=ha(22);x=da(x);var ca=ha(7);ca=da(ca);var w=ha(55);w=da(w);var aa=ha(42);aa=da(aa);ha=ha(23);ha=da(ha);y.default.register({"blots/block":h.default,"blots/block/embed":r.BlockEmbed,"blots/break":a.default,"blots/container":b.default,"blots/cursor":e.default,
205
+ "blots/embed":f.default,"blots/inline":n.default,"blots/scroll":x.default,"blots/text":ca.default,"modules/clipboard":w.default,"modules/history":aa.default,"modules/keyboard":ha.default});ka.default.register(h.default,a.default,e.default,n.default,x.default,ca.default);la.default=y.default},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});var da=ha(1);ka=function(){function y(r){this.domNode=r;this.domNode[da.DATA_KEY]={blot:this}}Object.defineProperty(y.prototype,"statics",{get:function(){return this.constructor},
206
+ enumerable:!0,configurable:!0});y.create=function(r){if(null==this.tagName)throw new da.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?("string"===typeof r&&(r=r.toUpperCase(),parseInt(r).toString()===r&&(r=parseInt(r))),r="number"===typeof r?document.createElement(this.tagName[r-1]):-1<this.tagName.indexOf(r)?document.createElement(r):document.createElement(this.tagName[0])):r=document.createElement(this.tagName);this.className&&r.classList.add(this.className);return r};
207
+ y.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};y.prototype.clone=function(){return da.create(this.domNode.cloneNode(!1))};y.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[da.DATA_KEY]};y.prototype.deleteAt=function(r,h){this.isolate(r,h).remove()};y.prototype.formatAt=function(r,h,a,b){r=this.isolate(r,h);null!=da.query(a,da.Scope.BLOT)&&b?r.wrap(a,b):null!=da.query(a,da.Scope.ATTRIBUTE)&&(h=da.create(this.statics.scope),
208
+ r.wrap(h),h.format(a,b))};y.prototype.insertAt=function(r,h,a){h=null==a?da.create("text",h):da.create(h,a);r=this.split(r);this.parent.insertBefore(h,r)};y.prototype.insertInto=function(r,h){void 0===h&&(h=null);null!=this.parent&&this.parent.children.remove(this);var a=null;r.children.insertBefore(this,h);null!=h&&(a=h.domNode);this.domNode.parentNode==r.domNode&&this.domNode.nextSibling==a||r.domNode.insertBefore(this.domNode,a);this.parent=r;this.attach()};y.prototype.isolate=function(r,h){r=
209
+ this.split(r);r.split(h);return r};y.prototype.length=function(){return 1};y.prototype.offset=function(r){void 0===r&&(r=this.parent);return null==this.parent||this==r?0:this.parent.children.offset(this)+this.parent.offset(r)};y.prototype.optimize=function(){null!=this.domNode[da.DATA_KEY]&&delete this.domNode[da.DATA_KEY].mutations};y.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};y.prototype.replace=function(r){null!=r.parent&&
210
+ (r.parent.insertBefore(this,r.next),r.remove())};y.prototype.replaceWith=function(r,h){r="string"===typeof r?da.create(r,h):r;r.replace(this);return r};y.prototype.split=function(r){return 0===r?this:this.next};y.prototype.update=function(){};y.prototype.wrap=function(r,h){r="string"===typeof r?da.create(r,h):r;null!=this.parent&&this.parent.insertBefore(r,this.next);r.appendChild(this);return r};y.blotName="abstract";return y}();la.default=ka},function(ka,la,ha){Object.defineProperty(la,"__esModule",
211
+ {value:!0});var da=ha(12),y=ha(32),r=ha(33),h=ha(1);ka=function(){function a(b){this.attributes={};this.domNode=b;this.build()}a.prototype.attribute=function(b,e){e?b.add(this.domNode,e)&&(null!=b.value(this.domNode)?this.attributes[b.attrName]=b:delete this.attributes[b.attrName]):(b.remove(this.domNode),delete this.attributes[b.attrName])};a.prototype.build=function(){var b=this;this.attributes={};var e=da.default.keys(this.domNode),f=y.default.keys(this.domNode),n=r.default.keys(this.domNode);
212
+ e.concat(f).concat(n).forEach(function(x){x=h.query(x,h.Scope.ATTRIBUTE);x instanceof da.default&&(b.attributes[x.attrName]=x)})};a.prototype.copy=function(b){var e=this;Object.keys(this.attributes).forEach(function(f){var n=e.attributes[f].value(e.domNode);b.format(f,n)})};a.prototype.move=function(b){var e=this;this.copy(b);Object.keys(this.attributes).forEach(function(f){e.attributes[f].remove(e.domNode)});this.attributes={}};a.prototype.values=function(){var b=this;return Object.keys(this.attributes).reduce(function(e,
213
+ f){e[f]=b.attributes[f].value(b.domNode);return e},{})};return a}();la.default=ka},function(ka,la,ha){function da(r,h){return(r.getAttribute("class")||"").split(/\s+/).filter(function(a){return 0===a.indexOf(h+"-")})}var y=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):
214
+ (b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}y(h,r);h.keys=function(a){return(a.getAttribute("class")||"").split(/\s+/).map(function(b){return b.split("-").slice(0,-1).join("-")})};h.prototype.add=function(a,b){if(!this.canAdd(a,b))return!1;this.remove(a);a.classList.add(this.keyName+"-"+b);return!0};h.prototype.remove=function(a){da(a,this.keyName).forEach(function(b){a.classList.remove(b)});
215
+ 0===a.classList.length&&a.removeAttribute("class")};h.prototype.value=function(a){var b=(da(a,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(a,b)?b:""};return h}(ha(12).default);la.default=ka},function(ka,la,ha){function da(r){r=r.split("-");var h=r.slice(1).map(function(a){return a[0].toUpperCase()+a.slice(1)}).join("");return r[0]+h}var y=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,
216
+ a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}y(h,r);h.keys=function(a){return(a.getAttribute("style")||"").split(";").map(function(b){return b.split(":")[0].trim()})};h.prototype.add=function(a,b){if(!this.canAdd(a,b))return!1;a.style[da(this.keyName)]=
217
+ b;return!0};h.prototype.remove=function(a){a.style[da(this.keyName)]="";a.getAttribute("style")||a.removeAttribute("style")};h.prototype.value=function(a){var b=a.style[da(this.keyName)];return this.canAdd(a,b)?b:""};return h}(ha(12).default);la.default=ka},function(ka,la){Object.defineProperty(la,"__esModule",{value:!0});var ha=function(){function da(y,r){for(var h=0;h<r.length;h++){var a=r[h];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(y,a.key,
218
+ a)}}return function(y,r,h){r&&da(y.prototype,r);h&&da(y,h);return y}}();ka=function(){function da(y,r){if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");this.quill=y;this.options=r;this.modules={}}ha(da,[{key:"init",value:function(){var y=this;Object.keys(this.options.modules).forEach(function(r){null==y.modules[r]&&y.addModule(r)})}},{key:"addModule",value:function(y){var r=this.quill.constructor.import("modules/"+y);this.modules[y]=new r(this.quill,this.options.modules[y]||
219
+ {});return this.modules[y]}}]);return da}();ka.DEFAULTS={modules:{}};ka.themes={"default":ka};la.default=ka},function(ka,la,ha){function da(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function y(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,
220
+ writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(la,"__esModule",{value:!0});var r=function(){function e(f,n){for(var x=0;x<n.length;x++){var ca=n[x];ca.enumerable=ca.enumerable||!1;ca.configurable=!0;"value"in ca&&(ca.writable=!0);Object.defineProperty(f,ca.key,ca)}}return function(f,n,x){n&&e(f.prototype,n);x&&e(f,x);return f}}(),h=function ca(f,n,x){null===f&&(f=Function.prototype);var w=Object.getOwnPropertyDescriptor(f,n);
221
+ if(void 0===w){if(f=Object.getPrototypeOf(f),null!==f)return ca(f,n,x)}else{if("value"in w)return w.value;n=w.get;return void 0===n?void 0:n.call(x)}},a=(ka=ha(0))&&ka.__esModule?ka:{default:ka},b=(ha=ha(7))&&ha.__esModule?ha:{default:ha};ha=function(f){function n(x){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var ca=da(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,x));ca.contentNode=document.createElement("span");ca.contentNode.setAttribute("contenteditable",
222
+ !1);[].slice.call(ca.domNode.childNodes).forEach(function(w){ca.contentNode.appendChild(w)});ca.leftGuard=document.createTextNode("\ufeff");ca.rightGuard=document.createTextNode("\ufeff");ca.domNode.appendChild(ca.leftGuard);ca.domNode.appendChild(ca.contentNode);ca.domNode.appendChild(ca.rightGuard);return ca}y(n,f);r(n,[{key:"index",value:function(x,ca){return x===this.leftGuard?0:x===this.rightGuard?1:h(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"index",this).call(this,x,ca)}},{key:"restore",
223
+ value:function(x){var ca=void 0,w=x.data.split("\ufeff").join("");x===this.leftGuard?this.prev instanceof b.default?(ca=this.prev.length(),this.prev.insertAt(ca,w),ca={startNode:this.prev.domNode,startOffset:ca+w.length}):(ca=document.createTextNode(w),this.parent.insertBefore(a.default.create(ca),this),ca={startNode:ca,startOffset:w.length}):x===this.rightGuard&&(this.next instanceof b.default?(this.next.insertAt(0,w),ca={startNode:this.next.domNode,startOffset:w.length}):(ca=document.createTextNode(w),
224
+ this.parent.insertBefore(a.default.create(ca),this.next),ca={startNode:ca,startOffset:w.length}));x.data="\ufeff";return ca}},{key:"update",value:function(x,ca){var w=this;x.forEach(function(aa){"characterData"!==aa.type||aa.target!==w.leftGuard&&aa.target!==w.rightGuard||!(aa=w.restore(aa.target))||(ca.range=aa)})}}]);return n}(a.default.Embed);la.default=ha},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.AlignStyle=la.AlignClass=la.AlignAttribute=void 0;var da=(ka=ha(0))&&
225
+ ka.__esModule?ka:{default:ka};var y={scope:da.default.Scope.BLOCK,whitelist:["right","center","justify"]};ka=new da.default.Attributor.Attribute("align","align",y);ha=new da.default.Attributor.Class("align","ql-align",y);da=new da.default.Attributor.Style("align","text-align",y);la.AlignAttribute=ka;la.AlignClass=ha;la.AlignStyle=da},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.BackgroundStyle=la.BackgroundClass=void 0;ka=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var da=
226
+ ha(26);ha=new ka.default.Attributor.Class("background","ql-bg",{scope:ka.default.Scope.INLINE});ka=new da.ColorAttributor("background","background-color",{scope:ka.default.Scope.INLINE});la.BackgroundClass=ha;la.BackgroundStyle=ka},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.DirectionStyle=la.DirectionClass=la.DirectionAttribute=void 0;var da=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var y={scope:da.default.Scope.BLOCK,whitelist:["rtl"]};ka=new da.default.Attributor.Attribute("direction",
227
+ "dir",y);ha=new da.default.Attributor.Class("direction","ql-direction",y);da=new da.default.Attributor.Style("direction","direction",y);la.DirectionAttribute=ka;la.DirectionClass=ha;la.DirectionStyle=da},function(ka,la,ha){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,
228
+ b):a.__proto__=b)}Object.defineProperty(la,"__esModule",{value:!0});la.FontClass=la.FontStyle=void 0;var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,
229
+ e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ha=function(b){return b&&b.__esModule?b:{default:b}}(ha(0));var h={scope:ha.default.Scope.INLINE,whitelist:["serif","monospace"]};ka=new ha.default.Attributor.Class("font","ql-font",h);ha=new (function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
230
+ return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(e,b);y(e,[{key:"value",value:function(f){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,f).replace(/["']/g,"")}}]);return e}(ha.default.Attributor.Style))("font","font-family",h);la.FontStyle=ha;la.FontClass=ka},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.SizeStyle=la.SizeClass=void 0;ha=(ka=ha(0))&&ka.__esModule?ka:{default:ka};ka=new ha.default.Attributor.Class("size",
231
+ "ql-size",{scope:ha.default.Scope.INLINE,whitelist:["small","large","huge"]});ha=new ha.default.Attributor.Style("size","font-size",{scope:ha.default.Scope.INLINE,whitelist:["10px","18px","32px"]});la.SizeClass=ka;la.SizeStyle=ha},function(ka,la,ha){ka.exports={align:{"":ha(76),center:ha(77),right:ha(78),justify:ha(79)},background:ha(80),blockquote:ha(81),bold:ha(82),clean:ha(83),code:ha(58),"code-block":ha(58),color:ha(84),direction:{"":ha(85),rtl:ha(86)},"float":{center:ha(87),full:ha(88),left:ha(89),
232
+ right:ha(90)},formula:ha(91),header:{1:ha(92),2:ha(93)},italic:ha(94),image:ha(95),indent:{"+1":ha(96),"-1":ha(97)},link:ha(98),list:{ordered:ha(99),bullet:ha(100),check:ha(101)},script:{sub:ha(102),"super":ha(103)},strike:ha(104),underline:ha(105),video:ha(106)}},function(ka,la,ha){function da(n){return n&&n.__esModule?n:{default:n}}function y(n,x){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!==typeof x&&"function"!==typeof x?n:x}
233
+ function r(n,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);n.prototype=Object.create(x&&x.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(n,x):n.__proto__=x)}function h(n){n=n.ops[n.ops.length-1];return null==n?!1:null!=n.insert?"string"===typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes?Object.keys(n.attributes).some(function(x){return null!=
234
+ e.default.query(x,e.default.Scope.BLOCK)}):!1}function a(n){var x=n.reduce(function(ca,w){return ca+=w.delete||0},0);x=n.length()-x;h(n)&&--x;return x}Object.defineProperty(la,"__esModule",{value:!0});la.getLastChangeIndex=la.default=void 0;var b=function(){function n(x,ca){for(var w=0;w<ca.length;w++){var aa=ca[w];aa.enumerable=aa.enumerable||!1;aa.configurable=!0;"value"in aa&&(aa.writable=!0);Object.defineProperty(x,aa.key,aa)}}return function(x,ca,w){ca&&n(x.prototype,ca);w&&n(x,w);return x}}();
235
+ ka=ha(0);var e=da(ka);ka=ha(5);var f=da(ka);ha=ha(9);ha=function(n){function x(ca,w){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var aa=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,ca,w));aa.lastRecorded=0;aa.ignoreChange=!1;aa.clear();aa.quill.on(f.default.events.EDITOR_CHANGE,function(ja,fa,ea,ba){ja!==f.default.events.TEXT_CHANGE||aa.ignoreChange||(aa.options.userOnly&&ba!==f.default.sources.USER?aa.transform(fa):aa.record(fa,ea))});aa.quill.keyboard.addBinding({key:"Z",
236
+ shortKey:!0},aa.undo.bind(aa));aa.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},aa.redo.bind(aa));/Win/i.test(navigator.platform)&&aa.quill.keyboard.addBinding({key:"Y",shortKey:!0},aa.redo.bind(aa));return aa}r(x,n);b(x,[{key:"change",value:function(ca,w){if(0!==this.stack[ca].length){var aa=this.stack[ca].pop();this.stack[w].push(aa);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(aa[ca],f.default.sources.USER);this.ignoreChange=!1;ca=a(aa[ca]);this.quill.setSelection(ca)}}},
237
+ {key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(ca,w){if(0!==ca.ops.length){this.stack.redo=[];w=this.quill.getContents().diff(w);var aa=Date.now();this.lastRecorded+this.options.delay>aa&&0<this.stack.undo.length?(aa=this.stack.undo.pop(),w=w.compose(aa.undo),ca=aa.redo.compose(ca)):this.lastRecorded=aa;this.stack.undo.push({redo:ca,undo:w});this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},
238
+ {key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(ca){this.stack.undo.forEach(function(w){w.undo=ca.transform(w.undo,!0);w.redo=ca.transform(w.redo,!0)});this.stack.redo.forEach(function(w){w.undo=ca.transform(w.undo,!0);w.redo=ca.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return x}(da(ha).default);ha.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};la.default=ha;la.getLastChangeIndex=a},function(ka,la,ha){function da(oa){return oa&&
239
+ oa.__esModule?oa:{default:oa}}function y(oa,pa){if(!(oa instanceof pa))throw new TypeError("Cannot call a class as a function");}function r(oa,pa){if(!oa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!pa||"object"!==typeof pa&&"function"!==typeof pa?oa:pa}function h(oa,pa){if("function"!==typeof pa&&null!==pa)throw new TypeError("Super expression must either be null or a function, not "+typeof pa);oa.prototype=Object.create(pa&&pa.prototype,{constructor:{value:oa,
240
+ enumerable:!1,writable:!0,configurable:!0}});pa&&(Object.setPrototypeOf?Object.setPrototypeOf(oa,pa):oa.__proto__=pa)}function a(oa,pa){var ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;pa.forEach(function(va){var ra=document.createElement("option");va===ua?ra.setAttribute("selected","selected"):ra.setAttribute("value",va);oa.appendChild(ra)})}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.BaseTooltip=void 0;var b=function(){function oa(pa,ua){for(var va=0;va<ua.length;va++){var ra=
241
+ ua[va];ra.enumerable=ra.enumerable||!1;ra.configurable=!0;"value"in ra&&(ra.writable=!0);Object.defineProperty(pa,ra.key,ra)}}return function(pa,ua,va){ua&&oa(pa.prototype,ua);va&&oa(pa,va);return pa}}(),e=function ra(pa,ua,va){null===pa&&(pa=Function.prototype);var xa=Object.getOwnPropertyDescriptor(pa,ua);if(void 0===xa){if(pa=Object.getPrototypeOf(pa),null!==pa)return ra(pa,ua,va)}else{if("value"in xa)return xa.value;ua=xa.get;return void 0===ua?void 0:ua.call(va)}};ka=ha(3);ka=da(ka);var f=ha(2),
242
+ n=da(f);f=ha(8);var x=da(f);f=ha(23);var ca=da(f);f=ha(34);f=da(f);var w=ha(59),aa=da(w);w=ha(60);var ja=da(w);w=ha(28);var fa=da(w);ha=ha(61);w=da(ha);var ea=[!1,"center","right","justify"],ba="#000000 #e60000 #ff9900 #ffff00 #008a00 #0066cc #9933ff #ffffff #facccc #ffebcc #ffffcc #cce8cc #cce0f5 #ebd6ff #bbbbbb #f06666 #ffc266 #ffff66 #66b966 #66a3e0 #c285ff #888888 #a10000 #b26b00 #b2b200 #006100 #0047b2 #6b24b2 #444444 #5c0000 #663d00 #666600 #003700 #002966 #3d1466".split(" "),ma=[!1,"serif",
243
+ "monospace"],ta=["1","2","3",!1],na=["small",!1,"large","huge"];ha=function(pa){function ua(va,ra){y(this,ua);var xa=r(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,va,ra));va.emitter.listenDOM("click",document.body,function Ka(Ga){if(!document.body.contains(va.root))return document.body.removeEventListener("click",Ka);null==xa.tooltip||xa.tooltip.root.contains(Ga.target)||document.activeElement===xa.tooltip.textbox||xa.quill.hasFocus()||xa.tooltip.hide();null!=xa.pickers&&xa.pickers.forEach(function(Da){Da.container.contains(Ga.target)||
244
+ Da.close()})});return xa}h(ua,pa);b(ua,[{key:"addModule",value:function(va){var ra=e(ua.prototype.__proto__||Object.getPrototypeOf(ua.prototype),"addModule",this).call(this,va);"toolbar"===va&&this.extendToolbar(ra);return ra}},{key:"buildButtons",value:function(va,ra){va.forEach(function(xa){(xa.getAttribute("class")||"").split(/\s+/).forEach(function(Aa){if(Aa.startsWith("ql-")&&(Aa=Aa.slice(3),null!=ra[Aa]))if("direction"===Aa)xa.innerHTML=ra[Aa][""]+ra[Aa].rtl;else if("string"===typeof ra[Aa])xa.innerHTML=
245
+ ra[Aa];else{var Ga=xa.value||"";null!=Ga&&ra[Aa][Ga]&&(xa.innerHTML=ra[Aa][Ga])}})})}},{key:"buildPickers",value:function(va,ra){var xa=this;this.pickers=va.map(function(Aa){if(Aa.classList.contains("ql-align"))return null==Aa.querySelector("option")&&a(Aa,ea),new ja.default(Aa,ra.align);if(Aa.classList.contains("ql-background")||Aa.classList.contains("ql-color")){var Ga=Aa.classList.contains("ql-background")?"background":"color";null==Aa.querySelector("option")&&a(Aa,ba,"background"===Ga?"#ffffff":
246
+ "#000000");return new aa.default(Aa,ra[Ga])}null==Aa.querySelector("option")&&(Aa.classList.contains("ql-font")?a(Aa,ma):Aa.classList.contains("ql-header")?a(Aa,ta):Aa.classList.contains("ql-size")&&a(Aa,na));return new fa.default(Aa)});this.quill.on(x.default.events.EDITOR_CHANGE,function(){xa.pickers.forEach(function(Aa){Aa.update()})})}}]);return ua}(f.default);ha.DEFAULTS=(0,ka.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},
247
+ image:function(){var pa=this,ua=this.container.querySelector("input.ql-image[type=file]");null==ua&&(ua=document.createElement("input"),ua.setAttribute("type","file"),ua.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),ua.classList.add("ql-image"),ua.addEventListener("change",function(){if(null!=ua.files&&null!=ua.files[0]){var va=new FileReader;va.onload=function(ra){var xa=pa.quill.getSelection(!0);pa.quill.updateContents((new n.default).retain(xa.index).delete(xa.length).insert({image:ra.target.result}),
248
+ x.default.sources.USER);pa.quill.setSelection(xa.index+1,x.default.sources.SILENT);ua.value=""};va.readAsDataURL(ua.files[0])}}),this.container.appendChild(ua));ua.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});ka=function(pa){function ua(va,ra){y(this,ua);va=r(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,va,ra));va.textbox=va.root.querySelector('input[type="text"]');va.listen();return va}h(ua,pa);b(ua,[{key:"listen",value:function(){var va=this;this.textbox.addEventListener("keydown",
249
+ function(ra){ca.default.match(ra,"enter")?(va.save(),ra.preventDefault()):ca.default.match(ra,"escape")&&(va.cancel(),ra.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var va=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=ra?this.textbox.value=ra:va!==this.root.getAttribute("data-mode")&&(this.textbox.value=
250
+ "");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+va)||"");this.root.setAttribute("data-mode",va)}},{key:"restoreFocus",value:function(){var va=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=va}},{key:"save",value:function(){var va=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var ra=this.quill.root.scrollTop;
251
+ this.linkRange?(this.quill.formatText(this.linkRange,"link",va,x.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",va,x.default.sources.USER));this.quill.root.scrollTop=ra;break;case "video":ra=va;var xa=ra.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||ra.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);va=xa?(xa[1]||"https")+"://www.youtube.com/embed/"+xa[2]+"?showinfo=0":(xa=ra.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?
252
+ (xa[1]||"https")+"://player.vimeo.com/video/"+xa[2]+"/":ra;case "formula":va&&(ra=this.quill.getSelection(!0),null!=ra&&(ra=ra.index+ra.length,this.quill.insertEmbed(ra,this.root.getAttribute("data-mode"),va,x.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(ra+1," ",x.default.sources.USER),this.quill.setSelection(ra+2,x.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return ua}(w.default);la.BaseTooltip=ka;la.default=ha},function(ka,la){Object.defineProperty(la,
253
+ "__esModule",{value:!0});ka=function(){function ha(){this.head=this.tail=null;this.length=0}ha.prototype.append=function(){for(var da=[],y=0;y<arguments.length;y++)da[y]=arguments[y];this.insertBefore(da[0],null);1<da.length&&this.append.apply(this,da.slice(1))};ha.prototype.contains=function(da){for(var y,r=this.iterator();y=r();)if(y===da)return!0;return!1};ha.prototype.insertBefore=function(da,y){da&&(da.next=y,null!=y?(da.prev=y.prev,null!=y.prev&&(y.prev.next=da),y.prev=da,y===this.head&&(this.head=
254
+ da)):null!=this.tail?(this.tail.next=da,da.prev=this.tail,this.tail=da):(da.prev=null,this.head=this.tail=da),this.length+=1)};ha.prototype.offset=function(da){for(var y=0,r=this.head;null!=r;){if(r===da)return y;y+=r.length();r=r.next}return-1};ha.prototype.remove=function(da){this.contains(da)&&(null!=da.prev&&(da.prev.next=da.next),null!=da.next&&(da.next.prev=da.prev),da===this.head&&(this.head=da.next),da===this.tail&&(this.tail=da.prev),--this.length)};ha.prototype.iterator=function(da){void 0===
255
+ da&&(da=this.head);return function(){var y=da;null!=da&&(da=da.next);return y}};ha.prototype.find=function(da,y){void 0===y&&(y=!1);for(var r,h=this.iterator();r=h();){var a=r.length();if(da<a||y&&da===a&&(null==r.next||0!==r.next.length()))return[r,da];da-=a}return[null,0]};ha.prototype.forEach=function(da){for(var y,r=this.iterator();y=r();)da(y)};ha.prototype.forEachAt=function(da,y,r){if(!(0>=y))for(var h=this.find(da),a=da-h[1],b=this.iterator(h[0]);(h=b())&&a<da+y;){var e=h.length();da>a?r(h,
256
+ da-a,Math.min(y,a+e-da)):r(h,0,Math.min(e,da+y-a));a+=e}};ha.prototype.map=function(da){return this.reduce(function(y,r){y.push(da(r));return y},[])};ha.prototype.reduce=function(da,y){for(var r,h=this.iterator();r=h();)y=da(y,r);return y};return ha}();la.default=ka},function(ka,la,ha){var da=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])};return function(b,e){function f(){this.constructor=
257
+ b}a(b,e);b.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(la,"__esModule",{value:!0});var y=ha(17),r=ha(1),h={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};ka=function(a){function b(e){var f=a.call(this,e)||this;f.scroll=f;f.observer=new MutationObserver(function(n){f.update(n)});f.observer.observe(f.domNode,h);f.attach();return f}da(b,a);b.prototype.detach=function(){a.prototype.detach.call(this);this.observer.disconnect()};
258
+ b.prototype.deleteAt=function(e,f){this.update();0===e&&f===this.length()?this.children.forEach(function(n){n.remove()}):a.prototype.deleteAt.call(this,e,f)};b.prototype.formatAt=function(e,f,n,x){this.update();a.prototype.formatAt.call(this,e,f,n,x)};b.prototype.insertAt=function(e,f,n){this.update();a.prototype.insertAt.call(this,e,f,n)};b.prototype.optimize=function(e,f){function n(fa){null!=fa.domNode[r.DATA_KEY]&&null!=fa.domNode[r.DATA_KEY].mutations&&(fa instanceof y.default&&fa.children.forEach(n),
259
+ fa.optimize(f))}function x(fa,ea){void 0===ea&&(ea=!0);null!=fa&&fa!==ca&&null!=fa.domNode.parentNode&&(null==fa.domNode[r.DATA_KEY].mutations&&(fa.domNode[r.DATA_KEY].mutations=[]),ea&&x(fa.parent))}var ca=this;void 0===e&&(e=[]);void 0===f&&(f={});a.prototype.optimize.call(this,f);for(var w=[].slice.call(this.observer.takeRecords());0<w.length;)e.push(w.pop());for(var aa=e,ja=0;0<aa.length;ja+=1){if(100<=ja)throw Error("[Parchment] Maximum optimize iterations reached");aa.forEach(function(fa){var ea=
260
+ r.find(fa.target,!0);null!=ea&&(ea.domNode===fa.target&&("childList"===fa.type?(x(r.find(fa.previousSibling,!1)),[].forEach.call(fa.addedNodes,function(ba){ba=r.find(ba,!1);x(ba,!1);ba instanceof y.default&&ba.children.forEach(function(ma){x(ma,!1)})})):"attributes"===fa.type&&x(ea.prev)),x(ea))});this.children.forEach(n);aa=[].slice.call(this.observer.takeRecords());for(w=aa.slice();0<w.length;)e.push(w.pop())}};b.prototype.update=function(e,f){var n=this;void 0===f&&(f={});e=e||this.observer.takeRecords();
261
+ e.map(function(x){var ca=r.find(x.target,!0);if(null==ca)return null;if(null==ca.domNode[r.DATA_KEY].mutations)return ca.domNode[r.DATA_KEY].mutations=[x],ca;ca.domNode[r.DATA_KEY].mutations.push(x);return null}).forEach(function(x){null!=x&&x!==n&&null!=x.domNode[r.DATA_KEY]&&x.update(x.domNode[r.DATA_KEY].mutations||[],f)});null!=this.domNode[r.DATA_KEY].mutations&&a.prototype.update.call(this,this.domNode[r.DATA_KEY].mutations,f);this.optimize(e,f)};b.blotName="scroll";b.defaultChild="block";b.scope=
262
+ r.Scope.BLOCK_BLOT;b.tagName="DIV";return b}(y.default);la.default=ka},function(ka,la,ha){var da=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};return function(a,b){function e(){this.constructor=a}h(a,b);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}();Object.defineProperty(la,"__esModule",{value:!0});var y=ha(18),r=ha(1);ka=function(h){function a(){return null!==
263
+ h&&h.apply(this,arguments)||this}da(a,h);a.formats=function(b){if(b.tagName!==a.tagName)return h.formats.call(this,b)};a.prototype.format=function(b,e){var f=this;b!==this.statics.blotName||e?h.prototype.format.call(this,b,e):(this.children.forEach(function(n){n instanceof y.default||(n=n.wrap(a.blotName,!0));f.attributes.copy(n)}),this.unwrap())};a.prototype.formatAt=function(b,e,f,n){null!=this.formats()[f]||r.query(f,r.Scope.ATTRIBUTE)?this.isolate(b,e).format(f,n):h.prototype.formatAt.call(this,
264
+ b,e,f,n)};a.prototype.optimize=function(b){h.prototype.optimize.call(this,b);b=this.formats();if(0===Object.keys(b).length)return this.unwrap();var e=this.next,f;if(f=e instanceof a&&e.prev===this)a:if(f=e.formats(),Object.keys(b).length!==Object.keys(f).length)f=!1;else{for(var n in b)if(b[n]!==f[n]){f=!1;break a}f=!0}f&&(e.moveChildren(this),e.remove())};a.blotName="inline";a.scope=r.Scope.INLINE_BLOT;a.tagName="SPAN";return a}(y.default);la.default=ka},function(ka,la,ha){var da=this&&this.__extends||
265
+ function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=ha(18);var y=ha(1);ha=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}da(h,r);h.formats=function(a){var b=y.query(h.blotName).tagName;
266
+ if(a.tagName!==b)return r.formats.call(this,a)};h.prototype.format=function(a,b){null!=y.query(a,y.Scope.BLOCK)&&(a!==this.statics.blotName||b?r.prototype.format.call(this,a,b):this.replaceWith(h.blotName))};h.prototype.formatAt=function(a,b,e,f){null!=y.query(e,y.Scope.BLOCK)?this.format(e,f):r.prototype.formatAt.call(this,a,b,e,f)};h.prototype.insertAt=function(a,b,e){null==e||null!=y.query(b,y.Scope.INLINE)?r.prototype.insertAt.call(this,a,b,e):(a=this.split(a),b=y.create(b,e),a.parent.insertBefore(b,
267
+ a))};h.prototype.update=function(a,b){navigator.userAgent.match(/Trident/)?this.build():r.prototype.update.call(this,a,b)};h.blotName="block";h.scope=y.Scope.BLOCK_BLOT;h.tagName="P";return h}(ka.default);la.default=ha},function(ka,la,ha){var da=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,h){r.__proto__=h}||function(r,h){for(var a in h)h.hasOwnProperty(a)&&(r[a]=h[a])};return function(r,h){function a(){this.constructor=r}y(r,h);r.prototype=
268
+ null===h?Object.create(h):(a.prototype=h.prototype,new a)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){return null!==y&&y.apply(this,arguments)||this}da(r,y);r.formats=function(){};r.prototype.format=function(h,a){y.prototype.formatAt.call(this,0,this.length(),h,a)};r.prototype.formatAt=function(h,a,b,e){0===h&&a===this.length()?this.format(b,e):y.prototype.formatAt.call(this,h,a,b,e)};r.prototype.formats=function(){return this.statics.formats(this.domNode)};return r}(ha(19).default);
269
+ la.default=ka},function(ka,la,ha){var da=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=ha(19);var y=ha(1);ha=function(r){function h(a){a=r.call(this,a)||this;a.text=a.statics.value(a.domNode);
270
+ return a}da(h,r);h.create=function(a){return document.createTextNode(a)};h.value=function(a){a=a.data;a.normalize&&(a=a.normalize());return a};h.prototype.deleteAt=function(a,b){this.domNode.data=this.text=this.text.slice(0,a)+this.text.slice(a+b)};h.prototype.index=function(a,b){return this.domNode===a?b:-1};h.prototype.insertAt=function(a,b,e){null==e?(this.text=this.text.slice(0,a)+b+this.text.slice(a),this.domNode.data=this.text):r.prototype.insertAt.call(this,a,b,e)};h.prototype.length=function(){return this.text.length};
271
+ h.prototype.optimize=function(a){r.prototype.optimize.call(this,a);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof h&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};h.prototype.position=function(a){return[this.domNode,a]};h.prototype.split=function(a,b){void 0===b&&(b=!1);if(!b){if(0===a)return this;if(a===this.length())return this.next}a=y.create(this.domNode.splitText(a));this.parent.insertBefore(a,this.next);
272
+ this.text=this.statics.value(this.domNode);return a};h.prototype.update=function(a){var b=this;a.some(function(e){return"characterData"===e.type&&e.target===b.domNode})&&(this.text=this.statics.value(this.domNode))};h.prototype.value=function(){return this.text};h.blotName="text";h.scope=y.Scope.INLINE_BLOT;return h}(ka.default);la.default=ha},function(){var ka=document.createElement("div");ka.classList.toggle("test-class",!1);if(ka.classList.contains("test-class")){var la=DOMTokenList.prototype.toggle;
273
+ DOMTokenList.prototype.toggle=function(ha,da){return 1<arguments.length&&!this.contains(ha)===!da?da:la.call(this,ha)}}String.prototype.startsWith||(String.prototype.startsWith=function(ha,da){return this.substr(da||0,ha.length)===ha});String.prototype.endsWith||(String.prototype.endsWith=function(ha,da){var y=this.toString();if("number"!==typeof da||!isFinite(da)||Math.floor(da)!==da||da>y.length)da=y.length;da-=ha.length;ha=y.indexOf(ha,da);return-1!==ha&&ha===da});Array.prototype.find||Object.defineProperty(Array.prototype,
274
+ "find",{value:function(ha,da){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof ha)throw new TypeError("predicate must be a function");for(var y=Object(this),r=y.length>>>0,h,a=0;a<r;a++)if(h=y[a],ha.call(da,h,a,y))return h}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(ka){function la(n,x,ca){if(n==x)return n?[[0,n]]:[];
275
+ if(0>ca||n.length<ca)ca=null;var w=y(n,x),aa=n.substring(0,w);n=n.substring(w);x=x.substring(w);w=r(n,x);var ja=n.substring(n.length-w);n=n.substring(0,n.length-w);x=x.substring(0,x.length-w);n=ha(n,x);aa&&n.unshift([0,aa]);ja&&n.push([0,ja]);a(n);null!=ca&&(n=b(n,ca));return n=e(n)}function ha(n,x){if(!n)return[[1,x]];if(!x)return[[-1,n]];var ca=n.length>x.length?n:x;var w=n.length>x.length?x:n,aa=ca.indexOf(w);if(-1!=aa)return ca=[[1,ca.substring(0,aa)],[0,w],[1,ca.substring(aa+w.length)]],n.length>
276
+ x.length&&(ca[0][0]=ca[2][0]=-1),ca;if(1==w.length)return[[-1,n],[1,x]];if(ca=h(n,x))return x=ca[1],w=ca[3],n=ca[4],ca=la(ca[0],ca[2]),x=la(x,w),ca.concat([[0,n]],x);a:{ca=n.length;w=x.length;aa=Math.ceil((ca+w)/2);for(var ja=2*aa,fa=Array(ja),ea=Array(ja),ba=0;ba<ja;ba++)fa[ba]=-1,ea[ba]=-1;fa[aa+1]=0;ea[aa+1]=0;ba=ca-w;for(var ma=0!=ba%2,ta=0,na=0,oa=0,pa=0,ua=0;ua<aa;ua++){for(var va=-ua+ta;va<=ua-na;va+=2){var ra=aa+va;var xa=va==-ua||va!=ua&&fa[ra-1]<fa[ra+1]?fa[ra+1]:fa[ra-1]+1;for(var Aa=xa-
277
+ va;xa<ca&&Aa<w&&n.charAt(xa)==x.charAt(Aa);)xa++,Aa++;fa[ra]=xa;if(xa>ca)na+=2;else if(Aa>w)ta+=2;else if(ma&&(ra=aa+ba-va,0<=ra&&ra<ja&&-1!=ea[ra])){var Ga=ca-ea[ra];if(xa>=Ga){n=da(n,x,xa,Aa);break a}}}for(va=-ua+oa;va<=ua-pa;va+=2){ra=aa+va;Ga=va==-ua||va!=ua&&ea[ra-1]<ea[ra+1]?ea[ra+1]:ea[ra-1]+1;for(xa=Ga-va;Ga<ca&&xa<w&&n.charAt(ca-Ga-1)==x.charAt(w-xa-1);)Ga++,xa++;ea[ra]=Ga;if(Ga>ca)pa+=2;else if(xa>w)oa+=2;else if(!ma&&(ra=aa+ba-va,0<=ra&&ra<ja&&-1!=fa[ra]&&(xa=fa[ra],Aa=aa+xa-ra,Ga=ca-Ga,
278
+ xa>=Ga))){n=da(n,x,xa,Aa);break a}}}n=[[-1,n],[1,x]]}return n}function da(n,x,ca,w){var aa=n.substring(ca),ja=x.substring(w);n=la(n.substring(0,ca),x.substring(0,w));aa=la(aa,ja);return n.concat(aa)}function y(n,x){if(!n||!x||n.charAt(0)!=x.charAt(0))return 0;for(var ca=0,w=Math.min(n.length,x.length),aa=w,ja=0;ca<aa;)n.substring(ja,aa)==x.substring(ja,aa)?ja=ca=aa:w=aa,aa=Math.floor((w-ca)/2+ca);return aa}function r(n,x){if(!n||!x||n.charAt(n.length-1)!=x.charAt(x.length-1))return 0;for(var ca=0,
279
+ w=Math.min(n.length,x.length),aa=w,ja=0;ca<aa;)n.substring(n.length-aa,n.length-ja)==x.substring(x.length-aa,x.length-ja)?ja=ca=aa:w=aa,aa=Math.floor((w-ca)/2+ca);return aa}function h(n,x){function ca(fa,ea,ba){for(var ma=fa.substring(ba,ba+Math.floor(fa.length/4)),ta=-1,na="",oa,pa,ua,va;-1!=(ta=ea.indexOf(ma,ta+1));){var ra=y(fa.substring(ba),ea.substring(ta)),xa=r(fa.substring(0,ba),ea.substring(0,ta));na.length<xa+ra&&(na=ea.substring(ta-xa,ta)+ea.substring(ta,ta+ra),oa=fa.substring(0,ba-xa),
280
+ pa=fa.substring(ba+ra),ua=ea.substring(0,ta-xa),va=ea.substring(ta+ra))}return 2*na.length>=fa.length?[oa,pa,ua,va,na]:null}var w=n.length>x.length?n:x,aa=n.length>x.length?x:n;if(4>w.length||2*aa.length<w.length)return null;var ja=ca(w,aa,Math.ceil(w.length/4));w=ca(w,aa,Math.ceil(w.length/2));if(ja||w)ja=w?ja?ja[4].length>w[4].length?ja:w:w:ja;else return null;n.length>x.length?(n=ja[0],x=ja[1],w=ja[2],aa=ja[3]):(w=ja[0],aa=ja[1],n=ja[2],x=ja[3]);return[n,x,w,aa,ja[4]]}function a(n){n.push([0,""]);
281
+ for(var x=0,ca=0,w=0,aa="",ja="",fa;x<n.length;)switch(n[x][0]){case 1:w++;ja+=n[x][1];x++;break;case -1:ca++;aa+=n[x][1];x++;break;case 0:1<ca+w?(0!==ca&&0!==w&&(fa=y(ja,aa),0!==fa&&(0<x-ca-w&&0==n[x-ca-w-1][0]?n[x-ca-w-1][1]+=ja.substring(0,fa):(n.splice(0,0,[0,ja.substring(0,fa)]),x++),ja=ja.substring(fa),aa=aa.substring(fa)),fa=r(ja,aa),0!==fa&&(n[x][1]=ja.substring(ja.length-fa)+n[x][1],ja=ja.substring(0,ja.length-fa),aa=aa.substring(0,aa.length-fa))),0===ca?n.splice(x-w,ca+w,[1,ja]):0===w?n.splice(x-
282
+ ca,ca+w,[-1,aa]):n.splice(x-ca-w,ca+w,[-1,aa],[1,ja]),x=x-ca-w+(ca?1:0)+(w?1:0)+1):0!==x&&0==n[x-1][0]?(n[x-1][1]+=n[x][1],n.splice(x,1)):x++,ca=w=0,ja=aa=""}""===n[n.length-1][1]&&n.pop();ca=!1;for(x=1;x<n.length-1;)0==n[x-1][0]&&0==n[x+1][0]&&(n[x][1].substring(n[x][1].length-n[x-1][1].length)==n[x-1][1]?(n[x][1]=n[x-1][1]+n[x][1].substring(0,n[x][1].length-n[x-1][1].length),n[x+1][1]=n[x-1][1]+n[x+1][1],n.splice(x-1,1),ca=!0):n[x][1].substring(0,n[x+1][1].length)==n[x+1][1]&&(n[x-1][1]+=n[x+1][1],
283
+ n[x][1]=n[x][1].substring(n[x+1][1].length)+n[x+1][1],n.splice(x+1,1),ca=!0)),x++;ca&&a(n)}function b(n,x){a:{var ca=n;if(0===x)var w=[0,ca];else{var aa=0;for(w=0;w<ca.length;w++){var ja=ca[w];if(-1===ja[0]||0===ja[0]){var fa=aa+ja[1].length;if(x===fa){w=[w+1,ca];break a}if(x<fa){ca=ca.slice();aa=x-aa;x=[ja[0],ja[1].slice(0,aa)];ja=[ja[0],ja[1].slice(aa)];ca.splice(w,1,x,ja);w=[w+1,ca];break a}aa=fa}}throw Error("cursor_pos is out of bounds!");}}ca=w[1];w=w[0];x=ca[w];ja=ca[w+1];return null==x||0!==
284
+ x[0]?n:null!=ja&&x[1]+ja[1]===ja[1]+x[1]?(ca.splice(w,2,ja,x),f(ca,w,2)):null!=ja&&0===ja[1].indexOf(x[1])?(ca.splice(w,2,[ja[0],x[1]],[0,x[1]]),n=ja[1].slice(x[1].length),0<n.length&&ca.splice(w+2,0,[ja[0],n]),f(ca,w,3)):n}function e(n){function x(ja){return 55296<=ja.charCodeAt(ja.length-1)&&56319>=ja.charCodeAt(ja.length-1)}function ca(ja){return 56320<=ja.charCodeAt(0)&&57343>=ja.charCodeAt(0)}for(var w=!1,aa=2;aa<n.length;aa+=1)0===n[aa-2][0]&&x(n[aa-2][1])&&-1===n[aa-1][0]&&ca(n[aa-1][1])&&
285
+ 1===n[aa][0]&&ca(n[aa][1])&&(w=!0,n[aa-1][1]=n[aa-2][1].slice(-1)+n[aa-1][1],n[aa][1]=n[aa-2][1].slice(-1)+n[aa][1],n[aa-2][1]=n[aa-2][1].slice(0,-1));if(!w)return n;w=[];for(aa=0;aa<n.length;aa+=1)0<n[aa][1].length&&w.push(n[aa]);return w}function f(n,x,ca){for(ca=x+ca-1;0<=ca&&ca>=x-1;ca--)if(ca+1<n.length){var w=n[ca],aa=n[ca+1];w[0]===aa[1]&&n.splice(ca,2,[w[0],w[1]+aa[1]])}return n}la.INSERT=1;la.DELETE=-1;la.EQUAL=0;ka.exports=la},function(ka,la){function ha(da){var y=[],r;for(r in da)y.push(r);
286
+ return y}la=ka.exports="function"===typeof Object.keys?Object.keys:ha;la.shim=ha},function(ka,la){function ha(y){return"[object Arguments]"==Object.prototype.toString.call(y)}function da(y){return y&&"object"==typeof y&&"number"==typeof y.length&&Object.prototype.hasOwnProperty.call(y,"callee")&&!Object.prototype.propertyIsEnumerable.call(y,"callee")||!1}la="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();la=ka.exports=la?ha:da;la.supported=ha;la.unsupported=da},
287
+ function(ka){function la(){}function ha(h,a,b){this.fn=h;this.context=a;this.once=b||!1}function da(){this._events=new la;this._eventsCount=0}var y=Object.prototype.hasOwnProperty,r="~";Object.create&&(la.prototype=Object.create(null),(new la).__proto__||(r=!1));da.prototype.eventNames=function(){var h=[],a,b;if(0===this._eventsCount)return h;for(b in a=this._events)y.call(a,b)&&h.push(r?b.slice(1):b);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(a)):h};da.prototype.listeners=
288
+ function(h,a){h=this._events[r?r+h:h];if(a)return!!h;if(!h)return[];if(h.fn)return[h.fn];a=0;for(var b=h.length,e=Array(b);a<b;a++)e[a]=h[a].fn;return e};da.prototype.emit=function(h,a,b,e,f,n){var x=r?r+h:h;if(!this._events[x])return!1;x=this._events[x];var ca=arguments.length,w;if(x.fn){x.once&&this.removeListener(h,x.fn,void 0,!0);switch(ca){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,a),!0;case 3:return x.fn.call(x.context,a,b),!0;case 4:return x.fn.call(x.context,
289
+ a,b,e),!0;case 5:return x.fn.call(x.context,a,b,e,f),!0;case 6:return x.fn.call(x.context,a,b,e,f,n),!0}var aa=1;for(w=Array(ca-1);aa<ca;aa++)w[aa-1]=arguments[aa];x.fn.apply(x.context,w)}else{var ja=x.length;for(aa=0;aa<ja;aa++)switch(x[aa].once&&this.removeListener(h,x[aa].fn,void 0,!0),ca){case 1:x[aa].fn.call(x[aa].context);break;case 2:x[aa].fn.call(x[aa].context,a);break;case 3:x[aa].fn.call(x[aa].context,a,b);break;case 4:x[aa].fn.call(x[aa].context,a,b,e);break;default:if(!w){var fa=1;for(w=
290
+ Array(ca-1);fa<ca;fa++)w[fa-1]=arguments[fa]}x[aa].fn.apply(x[aa].context,w)}}return!0};da.prototype.on=function(h,a,b){a=new ha(a,b||this);h=r?r+h:h;this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],a]:this._events[h].push(a):(this._events[h]=a,this._eventsCount++);return this};da.prototype.once=function(h,a,b){a=new ha(a,b||this,!0);h=r?r+h:h;this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],a]:this._events[h].push(a):(this._events[h]=a,this._eventsCount++);return this};
291
+ da.prototype.removeListener=function(h,a,b,e){h=r?r+h:h;if(!this._events[h])return this;if(!a)return 0===--this._eventsCount?this._events=new la:delete this._events[h],this;var f=this._events[h];if(f.fn)f.fn!==a||e&&!f.once||b&&f.context!==b||(0===--this._eventsCount?this._events=new la:delete this._events[h]);else{for(var n=0,x=[],ca=f.length;n<ca;n++)(f[n].fn!==a||e&&!f[n].once||b&&f[n].context!==b)&&x.push(f[n]);x.length?this._events[h]=1===x.length?x[0]:x:0===--this._eventsCount?this._events=
292
+ new la:delete this._events[h]}return this};da.prototype.removeAllListeners=function(h){h?(h=r?r+h:h,this._events[h]&&(0===--this._eventsCount?this._events=new la:delete this._events[h])):(this._events=new la,this._eventsCount=0);return this};da.prototype.off=da.prototype.removeListener;da.prototype.addListener=da.prototype.on;da.prototype.setMaxListeners=function(){return this};da.prefixed=r;da.EventEmitter=da;"undefined"!==typeof ka&&(ka.exports=da)},function(ka,la,ha){function da(Ia){return Ia&&
293
+ Ia.__esModule?Ia:{default:Ia}}function y(Ia,Ha,wa){Ha in Ia?Object.defineProperty(Ia,Ha,{value:wa,enumerable:!0,configurable:!0,writable:!0}):Ia[Ha]=wa;return Ia}function r(Ia,Ha){if(!Ia)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Ha||"object"!==typeof Ha&&"function"!==typeof Ha?Ia:Ha}function h(Ia,Ha){if("function"!==typeof Ha&&null!==Ha)throw new TypeError("Super expression must either be null or a function, not "+typeof Ha);Ia.prototype=Object.create(Ha&&
294
+ Ha.prototype,{constructor:{value:Ia,enumerable:!1,writable:!0,configurable:!0}});Ha&&(Object.setPrototypeOf?Object.setPrototypeOf(Ia,Ha):Ia.__proto__=Ha)}function a(Ia,Ha,wa){return"object"===("undefined"===typeof Ha?"undefined":ea(Ha))?Object.keys(Ha).reduce(function(Fa,Oa){return a(Fa,Oa,Ha[Oa])},Ia):Ia.reduce(function(Fa,Oa){return Oa.attributes&&Oa.attributes[Ha]?Fa.push(Oa):Fa.insert(Oa.insert,(0,ta.default)({},y({},Ha,wa),Oa.attributes))},new na.default)}function b(Ia){return Ia.nodeType!==
295
+ Node.ELEMENT_NODE?{}:Ia["__ql-computed-style"]||(Ia["__ql-computed-style"]=window.getComputedStyle(Ia))}function e(Ia,Ha){for(var wa="",Fa=Ia.ops.length-1;0<=Fa&&wa.length<Ha.length;--Fa){var Oa=Ia.ops[Fa];if("string"!==typeof Oa.insert)break;wa=Oa.insert+wa}return wa.slice(-1*Ha.length)===Ha}function f(Ia){if(0===Ia.childNodes.length)return!1;Ia=b(Ia);return-1<["block","list-item"].indexOf(Ia.display)}function n(Ia,Ha,wa){return Ia.nodeType===Ia.TEXT_NODE?wa.reduce(function(Fa,Oa){return Oa(Ia,Fa)},
296
+ new na.default):Ia.nodeType===Ia.ELEMENT_NODE?[].reduce.call(Ia.childNodes||[],function(Fa,Oa){var Ma=n(Oa,Ha,wa);Oa.nodeType===Ia.ELEMENT_NODE&&(Ma=Ha.reduce(function(Ua,Wa){return Wa(Oa,Ua)},Ma),Ma=(Oa["__ql-matcher"]||[]).reduce(function(Ua,Wa){return Wa(Oa,Ua)},Ma));return Fa.concat(Ma)},new na.default):new na.default}function x(Ia,Ha,wa){return a(wa,Ia,!0)}function ca(Ia,Ha){var wa=oa.default.Attributor.Attribute.keys(Ia),Fa=oa.default.Attributor.Class.keys(Ia),Oa=oa.default.Attributor.Style.keys(Ia),
297
+ Ma={};wa.concat(Fa).concat(Oa).forEach(function(Ua){var Wa=oa.default.query(Ua,oa.default.Scope.ATTRIBUTE);if(null!=Wa&&(Ma[Wa.attrName]=Wa.value(Ia),Ma[Wa.attrName]))return;Wa=Qa[Ua];null==Wa||Wa.attrName!==Ua&&Wa.keyName!==Ua||(Ma[Wa.attrName]=Wa.value(Ia)||void 0);Wa=Ca[Ua];null==Wa||Wa.attrName!==Ua&&Wa.keyName!==Ua||(Wa=Ca[Ua],Ma[Wa.attrName]=Wa.value(Ia)||void 0)});0<Object.keys(Ma).length&&(Ha=a(Ha,Ma));return Ha}function w(Ia,Ha){var wa=oa.default.query(Ia);if(null==wa)return Ha;if(wa.prototype instanceof
298
+ oa.default.Embed){var Fa={},Oa=wa.value(Ia);null!=Oa&&(Fa[wa.blotName]=Oa,Ha=(new na.default).insert(Fa,wa.formats(Ia)))}else"function"===typeof wa.formats&&(Ha=a(Ha,wa.blotName,wa.formats(Ia)));return Ha}function aa(Ia,Ha){e(Ha,"\n")||(f(Ia)||0<Ha.length()&&Ia.nextSibling&&f(Ia.nextSibling))&&Ha.insert("\n");return Ha}function ja(Ia,Ha){if(f(Ia)&&null!=Ia.nextElementSibling&&!e(Ha,"\n\n")){var wa=Ia.offsetHeight+parseFloat(b(Ia).marginTop)+parseFloat(b(Ia).marginBottom);Ia.nextElementSibling.offsetTop>
299
+ Ia.offsetTop+1.5*wa&&Ha.insert("\n")}return Ha}function fa(Ia,Ha){var wa=Ia.data;if("O:P"===Ia.parentNode.tagName)return Ha.insert(wa.trim());if(0===wa.trim().length&&Ia.parentNode.classList.contains("ql-clipboard"))return Ha;if(!b(Ia.parentNode).whiteSpace.startsWith("pre")){var Fa=function(Oa,Ma){Ma=Ma.replace(/[^\u00a0]/g,"");return 1>Ma.length&&Oa?" ":Ma};wa=wa.replace(/\r\n/g," ").replace(/\n/g," ");wa=wa.replace(/\s\s+/g,Fa.bind(Fa,!0));if(null==Ia.previousSibling&&f(Ia.parentNode)||null!=Ia.previousSibling&&
300
+ f(Ia.previousSibling))wa=wa.replace(/^\s+/,Fa.bind(Fa,!1));if(null==Ia.nextSibling&&f(Ia.parentNode)||null!=Ia.nextSibling&&f(Ia.nextSibling))wa=wa.replace(/\s+$/,Fa.bind(Fa,!1))}return Ha.insert(wa)}Object.defineProperty(la,"__esModule",{value:!0});la.matchText=la.matchSpacing=la.matchNewline=la.matchBlot=la.matchAttributor=la.default=void 0;var ea="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(Ia){return typeof Ia}:function(Ia){return Ia&&"function"===typeof Symbol&&Ia.constructor===
301
+ Symbol&&Ia!==Symbol.prototype?"symbol":typeof Ia},ba=function(){return function(Ia,Ha){if(Array.isArray(Ia))return Ia;if(Symbol.iterator in Object(Ia)){var wa=[],Fa=!0,Oa=!1,Ma=void 0;try{for(var Ua=Ia[Symbol.iterator](),Wa;!(Fa=(Wa=Ua.next()).done)&&(wa.push(Wa.value),!Ha||wa.length!==Ha);Fa=!0);}catch(ab){Oa=!0,Ma=ab}finally{try{if(!Fa&&Ua["return"])Ua["return"]()}finally{if(Oa)throw Ma;}}return wa}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),ma=function(){function Ia(Ha,
302
+ wa){for(var Fa=0;Fa<wa.length;Fa++){var Oa=wa[Fa];Oa.enumerable=Oa.enumerable||!1;Oa.configurable=!0;"value"in Oa&&(Oa.writable=!0);Object.defineProperty(Ha,Oa.key,Oa)}}return function(Ha,wa,Fa){wa&&Ia(Ha.prototype,wa);Fa&&Ia(Ha,Fa);return Ha}}();ka=ha(3);var ta=da(ka);ka=ha(2);var na=da(ka);ka=ha(0);var oa=da(ka);ka=ha(5);var pa=da(ka);ka=ha(10);ka=da(ka);var ua=ha(9);ua=da(ua);var va=ha(36),ra=ha(37),xa=ha(13),Aa=da(xa);xa=ha(26);var Ga=ha(38),Ka=ha(39);ha=ha(40);var Da=(0,ka.default)("quill:clipboard"),
303
+ Pa=[[Node.TEXT_NODE,fa],[Node.TEXT_NODE,aa],["br",function(Ia,Ha){e(Ha,"\n")||Ha.insert("\n");return Ha}],[Node.ELEMENT_NODE,aa],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,ja],[Node.ELEMENT_NODE,ca],[Node.ELEMENT_NODE,function(Ia,Ha){var wa={},Fa=Ia.style||{};Fa.fontStyle&&"italic"===b(Ia).fontStyle&&(wa.italic=!0);Fa.fontWeight&&(b(Ia).fontWeight.startsWith("bold")||700<=parseInt(b(Ia).fontWeight))&&(wa.bold=!0);0<Object.keys(wa).length&&(Ha=a(Ha,wa));0<parseFloat(Fa.textIndent||0)&&(Ha=(new na.default).insert("\t").concat(Ha));
304
+ return Ha}],["li",function(Ia,Ha){var wa=oa.default.query(Ia);if(null==wa||"list-item"!==wa.blotName||!e(Ha,"\n"))return Ha;wa=-1;for(Ia=Ia.parentNode;!Ia.classList.contains("ql-clipboard");)"list"===(oa.default.query(Ia)||{}).blotName&&(wa+=1),Ia=Ia.parentNode;return 0>=wa?Ha:Ha.compose((new na.default).retain(Ha.length()-1).retain(1,{indent:wa}))}],["b",x.bind(x,"bold")],["i",x.bind(x,"italic")],["style",function(){return new na.default}]],Qa=[va.AlignAttribute,Ga.DirectionAttribute].reduce(function(Ia,
305
+ Ha){Ia[Ha.keyName]=Ha;return Ia},{}),Ca=[va.AlignStyle,ra.BackgroundStyle,xa.ColorStyle,Ga.DirectionStyle,Ka.FontStyle,ha.SizeStyle].reduce(function(Ia,Ha){Ia[Ha.keyName]=Ha;return Ia},{});ha=function(Ia){function Ha(wa,Fa){if(!(this instanceof Ha))throw new TypeError("Cannot call a class as a function");var Oa=r(this,(Ha.__proto__||Object.getPrototypeOf(Ha)).call(this,wa,Fa));Oa.quill.root.addEventListener("paste",Oa.onPaste.bind(Oa));Oa.container=Oa.quill.addContainer("ql-clipboard");Oa.container.setAttribute("contenteditable",
306
+ !0);Oa.container.setAttribute("tabindex",-1);Oa.matchers=[];Pa.concat(Oa.options.matchers).forEach(function(Ma){Ma=ba(Ma,2);var Ua=Ma[1];(Fa.matchVisual||Ua!==ja)&&Oa.addMatcher(Ma[0],Ua)});return Oa}h(Ha,Ia);ma(Ha,[{key:"addMatcher",value:function(wa,Fa){this.matchers.push([wa,Fa])}},{key:"convert",value:function(wa){if("string"===typeof wa)return this.container.innerHTML=wa.replace(/>\r?\n +</g,"><"),this.convert();wa=this.quill.getFormat(this.quill.selection.savedRange.index);if(wa[Aa.default.blotName]){var Fa=
307
+ this.container.innerText;this.container.innerHTML="";return(new na.default).insert(Fa,y({},Aa.default.blotName,wa[Aa.default.blotName]))}wa=this.prepareMatching();wa=ba(wa,2);wa=n(this.container,wa[0],wa[1]);e(wa,"\n")&&null==wa.ops[wa.ops.length-1].attributes&&(wa=wa.compose((new na.default).retain(wa.length()-1).delete(1)));Da.log("convert",this.container.innerHTML,wa);this.container.innerHTML="";return wa}},{key:"dangerouslyPasteHTML",value:function(wa,Fa){var Oa=2<arguments.length&&void 0!==arguments[2]?
308
+ arguments[2]:pa.default.sources.API;if("string"===typeof wa)this.quill.setContents(this.convert(wa),Fa),this.quill.setSelection(0,pa.default.sources.SILENT);else{var Ma=this.convert(Fa);this.quill.updateContents((new na.default).retain(wa).concat(Ma),Oa);this.quill.setSelection(wa+Ma.length(),pa.default.sources.SILENT)}}},{key:"onPaste",value:function(wa){var Fa=this;if(!wa.defaultPrevented&&this.quill.isEnabled()){var Oa=this.quill.getSelection(),Ma=(new na.default).retain(Oa.index),Ua=this.quill.scrollingContainer.scrollTop;
309
+ this.container.focus();this.quill.selection.update(pa.default.sources.SILENT);setTimeout(function(){Ma=Ma.concat(Fa.convert()).delete(Oa.length);Fa.quill.updateContents(Ma,pa.default.sources.USER);Fa.quill.setSelection(Ma.length()-Oa.length,pa.default.sources.SILENT);Fa.quill.scrollingContainer.scrollTop=Ua;Fa.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var wa=this,Fa=[],Oa=[];this.matchers.forEach(function(Ma){Ma=ba(Ma,2);var Ua=Ma[0],Wa=Ma[1];switch(Ua){case Node.TEXT_NODE:Oa.push(Wa);
310
+ break;case Node.ELEMENT_NODE:Fa.push(Wa);break;default:[].forEach.call(wa.container.querySelectorAll(Ua),function(ab){ab["__ql-matcher"]=ab["__ql-matcher"]||[];ab["__ql-matcher"].push(Wa)})}});return[Fa,Oa]}}]);return Ha}(ua.default);ha.DEFAULTS={matchers:[],matchVisual:!0};la.default=ha;la.matchAttributor=ca;la.matchBlot=w;la.matchNewline=aa;la.matchSpacing=ja;la.matchText=fa},function(ka,la,ha){function da(h,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+
311
+ typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,
312
+ e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
313
+ return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);y(b,[{key:"optimize",value:function(e){r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,e);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(6)).default);
314
+ ka.blotName="bold";ka.tagName=["STRONG","B"];la.default=ka},function(ka,la,ha){function da(aa){return aa&&aa.__esModule?aa:{default:aa}}function y(aa,ja){if(!aa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ja||"object"!==typeof ja&&"function"!==typeof ja?aa:ja}function r(aa,ja){if("function"!==typeof ja&&null!==ja)throw new TypeError("Super expression must either be null or a function, not "+typeof ja);aa.prototype=Object.create(ja&&ja.prototype,{constructor:{value:aa,
315
+ enumerable:!1,writable:!0,configurable:!0}});ja&&(Object.setPrototypeOf?Object.setPrototypeOf(aa,ja):aa.__proto__=ja)}function h(aa,ja,fa){var ea=document.createElement("button");ea.setAttribute("type","button");ea.classList.add("ql-"+ja);null!=fa&&(ea.value=fa);aa.appendChild(ea)}function a(aa,ja){Array.isArray(ja[0])||(ja=[ja]);ja.forEach(function(fa){var ea=document.createElement("span");ea.classList.add("ql-formats");fa.forEach(function(ba){if("string"===typeof ba)h(ea,ba);else{var ma=Object.keys(ba)[0];
316
+ ba=ba[ma];Array.isArray(ba)?b(ea,ma,ba):h(ea,ma,ba)}});aa.appendChild(ea)})}function b(aa,ja,fa){var ea=document.createElement("select");ea.classList.add("ql-"+ja);fa.forEach(function(ba){var ma=document.createElement("option");!1!==ba?ma.setAttribute("value",ba):ma.setAttribute("selected","selected");ea.appendChild(ma)});aa.appendChild(ea)}Object.defineProperty(la,"__esModule",{value:!0});la.addControls=la.default=void 0;var e=function(){return function(aa,ja){if(Array.isArray(aa))return aa;if(Symbol.iterator in
317
+ Object(aa)){var fa=[],ea=!0,ba=!1,ma=void 0;try{for(var ta=aa[Symbol.iterator](),na;!(ea=(na=ta.next()).done)&&(fa.push(na.value),!ja||fa.length!==ja);ea=!0);}catch(oa){ba=!0,ma=oa}finally{try{if(!ea&&ta["return"])ta["return"]()}finally{if(ba)throw ma;}}return fa}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),f=function(){function aa(ja,fa){for(var ea=0;ea<fa.length;ea++){var ba=fa[ea];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=
318
+ !0);Object.defineProperty(ja,ba.key,ba)}}return function(ja,fa,ea){fa&&aa(ja.prototype,fa);ea&&aa(ja,ea);return ja}}();ka=ha(2);var n=da(ka);ka=ha(0);var x=da(ka);ka=ha(5);var ca=da(ka);ka=ha(10);ka=da(ka);ha=ha(9);ha=da(ha);var w=(0,ka.default)("quill:toolbar");ha=function(aa){function ja(fa,ea){if(!(this instanceof ja))throw new TypeError("Cannot call a class as a function");var ba=y(this,(ja.__proto__||Object.getPrototypeOf(ja)).call(this,fa,ea));Array.isArray(ba.options.container)?(ea=document.createElement("div"),
319
+ a(ea,ba.options.container),fa.container.parentNode.insertBefore(ea,fa.container),ba.container=ea):ba.container="string"===typeof ba.options.container?document.querySelector(ba.options.container):ba.options.container;if(!(ba.container instanceof HTMLElement)){var ma;return ma=w.error("Container required for toolbar",ba.options),y(ba,ma)}ba.container.classList.add("ql-toolbar");ba.controls=[];ba.handlers={};Object.keys(ba.options.handlers).forEach(function(ta){ba.addHandler(ta,ba.options.handlers[ta])});
320
+ [].forEach.call(ba.container.querySelectorAll("button, select"),function(ta){ba.attach(ta)});ba.quill.on(ca.default.events.EDITOR_CHANGE,function(ta,na){ta===ca.default.events.SELECTION_CHANGE&&ba.update(na)});ba.quill.on(ca.default.events.SCROLL_OPTIMIZE,function(){var ta=ba.quill.selection.getRange();ta=e(ta,1)[0];ba.update(ta)});return ba}r(ja,aa);f(ja,[{key:"addHandler",value:function(fa,ea){this.handlers[fa]=ea}},{key:"attach",value:function(fa){var ea=this,ba=[].find.call(fa.classList,function(ma){return 0===
321
+ ma.indexOf("ql-")});if(ba){ba=ba.slice(3);"BUTTON"===fa.tagName&&fa.setAttribute("type","button");if(null==this.handlers[ba]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[ba]){w.warn("ignoring attaching to disabled format",ba,fa);return}if(null==x.default.query(ba)){w.warn("ignoring attaching to nonexistent format",ba,fa);return}}fa.addEventListener("SELECT"===fa.tagName?"change":"click",function(ma){if("SELECT"===fa.tagName){if(0>fa.selectedIndex)return;var ta=fa.options[fa.selectedIndex];
322
+ ta=ta.hasAttribute("selected")?!1:ta.value||!1}else ta=fa.classList.contains("ql-active")?!1:fa.value||!fa.hasAttribute("value"),ma.preventDefault();ea.quill.focus();ma=ea.quill.selection.getRange();ma=e(ma,1)[0];if(null!=ea.handlers[ba])ea.handlers[ba].call(ea,ta);else if(x.default.query(ba).prototype instanceof x.default.Embed){ta=prompt("Enter "+ba);if(!ta)return;var na=ea.quill,oa=na.updateContents,pa=(new n.default).retain(ma.index).delete(ma.length),ua=pa.insert,va={},ra=ba;ra in va?Object.defineProperty(va,
323
+ ra,{value:ta,enumerable:!0,configurable:!0,writable:!0}):va[ra]=ta;oa.call(na,ua.call(pa,va),ca.default.sources.USER)}else ea.quill.format(ba,ta,ca.default.sources.USER);ea.update(ma)});this.controls.push([ba,fa])}}},{key:"update",value:function(fa){var ea=null==fa?{}:this.quill.getFormat(fa);this.controls.forEach(function(ba){ba=e(ba,2);var ma=ba[0];ba=ba[1];if("SELECT"===ba.tagName){var ta=void 0;null==fa?ta=null:null==ea[ma]?ta=ba.querySelector("option[selected]"):Array.isArray(ea[ma])||(ma=ea[ma],
324
+ "string"===typeof ma&&(ma=ma.replace(/"/g,'\\"')),ta=ba.querySelector('option[value="'+ma+'"]'));null==ta?(ba.value="",ba.selectedIndex=-1):ta.selected=!0}else null==fa?ba.classList.remove("ql-active"):ba.hasAttribute("value")?(ma=ea[ma]===ba.getAttribute("value")||null!=ea[ma]&&ea[ma].toString()===ba.getAttribute("value")||null==ea[ma]&&!ba.getAttribute("value"),ba.classList.toggle("ql-active",ma)):ba.classList.toggle("ql-active",null!=ea[ma])})}}]);return ja}(ha.default);ha.DEFAULTS={};ha.DEFAULTS=
325
+ {container:null,handlers:{clean:function(){var aa=this,ja=this.quill.getSelection();null!=ja&&(0==ja.length?(ja=this.quill.getFormat(),Object.keys(ja).forEach(function(fa){null!=x.default.query(fa,x.default.Scope.INLINE)&&aa.quill.format(fa,!1)})):this.quill.removeFormat(ja,ca.default.sources.USER))},direction:function(aa){var ja=this.quill.getFormat().align;"rtl"===aa&&null==ja?this.quill.format("align","right",ca.default.sources.USER):aa||"right"!==ja||this.quill.format("align",!1,ca.default.sources.USER);
326
+ this.quill.format("direction",aa,ca.default.sources.USER)},indent:function(aa){var ja=this.quill.getFormat(this.quill.getSelection()),fa=parseInt(ja.indent||0);if("+1"===aa||"-1"===aa)aa="+1"===aa?1:-1,"rtl"===ja.direction&&(aa*=-1),this.quill.format("indent",fa+aa,ca.default.sources.USER)},link:function(aa){!0===aa&&(aa=prompt("Enter link URL:"));this.quill.format("link",aa,ca.default.sources.USER)},list:function(aa){var ja=this.quill.getFormat(this.quill.getSelection());"check"===aa?"checked"===
327
+ ja.list||"unchecked"===ja.list?this.quill.format("list",!1,ca.default.sources.USER):this.quill.format("list","unchecked",ca.default.sources.USER):this.quill.format("list",aa,ca.default.sources.USER)}}};la.default=ha;la.addControls=a},function(ka){ka.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(ka,
328
+ la,ha){function da(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function y(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(la,
329
+ "__esModule",{value:!0});var r=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),h=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?
330
+ void 0:e.call(f)}};ka=function(b){function e(f,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");f=da(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f));f.label.innerHTML=n;f.container.classList.add("ql-color-picker");[].slice.call(f.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")});return f}y(e,b);r(e,[{key:"buildItem",value:function(f){var n=h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),
331
+ "buildItem",this).call(this,f);n.style.backgroundColor=f.getAttribute("value")||"";return n}},{key:"selectItem",value:function(f,n){h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,f,n);n=this.label.querySelector(".ql-color-label");f=f?f.getAttribute("data-value")||"":"";n&&("line"===n.tagName?n.style.stroke=f:n.style.fill=f)}}]);return e}(function(b){return b&&b.__esModule?b:{default:b}}(ha(28)).default);la.default=ka},function(ka,la,ha){function da(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
332
+ return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function y(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(la,"__esModule",{value:!0});var r=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=
333
+ n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),h=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=function(b){function e(f,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");
334
+ f=da(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f));f.container.classList.add("ql-icon-picker");[].forEach.call(f.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=n[x.getAttribute("data-value")||""]});f.defaultItem=f.container.querySelector(".ql-selected");f.selectItem(f.defaultItem);return f}y(e,b);r(e,[{key:"selectItem",value:function(f,n){h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,f,n);f=f||this.defaultItem;this.label.innerHTML=
335
+ f.innerHTML}}]);return e}(function(b){return b&&b.__esModule?b:{default:b}}(ha(28)).default);la.default=ka},function(ka,la){Object.defineProperty(la,"__esModule",{value:!0});var ha=function(){function da(y,r){for(var h=0;h<r.length;h++){var a=r[h];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(y,a.key,a)}}return function(y,r,h){r&&da(y.prototype,r);h&&da(y,h);return y}}();ka=function(){function da(y,r){var h=this;if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");
336
+ this.quill=y;this.boundsContainer=r||document.body;this.root=y.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){h.root.style.marginTop=-1*h.quill.root.scrollTop+"px"});this.hide()}ha(da,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(y){var r=y.left+y.width/2-this.root.offsetWidth/2,h=y.bottom+this.quill.root.scrollTop;this.root.style.left=
337
+ r+"px";this.root.style.top=h+"px";this.root.classList.remove("ql-flip");var a=this.boundsContainer.getBoundingClientRect(),b=this.root.getBoundingClientRect(),e=0;b.right>a.right&&(e=a.right-b.right,this.root.style.left=r+e+"px");b.left<a.left&&(e=a.left-b.left,this.root.style.left=r+e+"px");b.bottom>a.bottom&&(this.root.style.top=h-(y.bottom-y.top+(b.bottom-b.top))+"px",this.root.classList.add("ql-flip"));return e}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
338
+ return da}();la.default=ka},function(ka,la,ha){function da(ba){return ba&&ba.__esModule?ba:{default:ba}}function y(ba,ma){if(!(ba instanceof ma))throw new TypeError("Cannot call a class as a function");}function r(ba,ma){if(!ba)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ma||"object"!==typeof ma&&"function"!==typeof ma?ba:ma}function h(ba,ma){if("function"!==typeof ma&&null!==ma)throw new TypeError("Super expression must either be null or a function, not "+
339
+ typeof ma);ba.prototype=Object.create(ma&&ma.prototype,{constructor:{value:ba,enumerable:!1,writable:!0,configurable:!0}});ma&&(Object.setPrototypeOf?Object.setPrototypeOf(ba,ma):ba.__proto__=ma)}Object.defineProperty(la,"__esModule",{value:!0});var a=function(){return function(ba,ma){if(Array.isArray(ba))return ba;if(Symbol.iterator in Object(ba)){var ta=[],na=!0,oa=!1,pa=void 0;try{for(var ua=ba[Symbol.iterator](),va;!(na=(va=ua.next()).done)&&(ta.push(va.value),!ma||ta.length!==ma);na=!0);}catch(ra){oa=
340
+ !0,pa=ra}finally{try{if(!na&&ua["return"])ua["return"]()}finally{if(oa)throw pa;}}return ta}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function oa(ma,ta,na){null===ma&&(ma=Function.prototype);var pa=Object.getOwnPropertyDescriptor(ma,ta);if(void 0===pa){if(ma=Object.getPrototypeOf(ma),null!==ma)return oa(ma,ta,na)}else{if("value"in pa)return pa.value;ta=pa.get;return void 0===ta?void 0:ta.call(na)}},e=function(){function ma(ta,na){for(var oa=0;oa<na.length;oa++){var pa=
341
+ na[oa];pa.enumerable=pa.enumerable||!1;pa.configurable=!0;"value"in pa&&(pa.writable=!0);Object.defineProperty(ta,pa.key,pa)}}return function(ta,na,oa){na&&ma(ta.prototype,na);oa&&ma(ta,oa);return ta}}();ka=ha(3);ka=da(ka);var f=ha(8),n=da(f);f=ha(43);var x=da(f),ca=ha(27),w=da(ca),aa=ha(15);ha=ha(41);var ja=da(ha),fa=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ha=function(ma){function ta(na,oa){y(this,ta);null!=oa.modules.toolbar&&
342
+ null==oa.modules.toolbar.container&&(oa.modules.toolbar.container=fa);na=r(this,(ta.__proto__||Object.getPrototypeOf(ta)).call(this,na,oa));na.quill.container.classList.add("ql-snow");return na}h(ta,ma);e(ta,[{key:"extendToolbar",value:function(na){na.container.classList.add("ql-snow");this.buildButtons([].slice.call(na.container.querySelectorAll("button")),ja.default);this.buildPickers([].slice.call(na.container.querySelectorAll("select")),ja.default);this.tooltip=new ea(this.quill,this.options.bounds);
343
+ na.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(oa,pa){na.handlers.link.call(na,!pa.format.link)})}}]);return ta}(x.default);ha.DEFAULTS=(0,ka.default)(!0,{},x.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(ma){ma?(ma=this.quill.getSelection(),null!=ma&&0!=ma.length&&(ma=this.quill.getText(ma),/^\S+@\S+\.\S+$/.test(ma)&&0!==ma.indexOf("mailto:")&&(ma="mailto:"+ma),this.quill.theme.tooltip.edit("link",ma))):this.quill.format("link",
344
+ !1)}}}}});var ea=function(ma){function ta(na,oa){y(this,ta);na=r(this,(ta.__proto__||Object.getPrototypeOf(ta)).call(this,na,oa));na.preview=na.root.querySelector("a.ql-preview");return na}h(ta,ma);e(ta,[{key:"listen",value:function(){var na=this;b(ta.prototype.__proto__||Object.getPrototypeOf(ta.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(oa){na.root.classList.contains("ql-editing")?na.save():na.edit("link",na.preview.textContent);
345
+ oa.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(oa){if(null!=na.linkRange){var pa=na.linkRange;na.restoreFocus();na.quill.formatText(pa,"link",!1,n.default.sources.USER);delete na.linkRange}oa.preventDefault();na.hide()});this.quill.on(n.default.events.SELECTION_CHANGE,function(oa,pa,ua){if(null!=oa){if(0===oa.length&&ua===n.default.sources.USER){if(pa=na.quill.scroll.descendant(w.default,oa.index),ua=a(pa,2),pa=ua[0],ua=ua[1],null!=pa){na.linkRange=
346
+ new aa.Range(oa.index-ua,pa.length());oa=w.default.formats(pa.domNode);na.preview.textContent=oa;na.preview.setAttribute("href",oa);na.show();na.position(na.quill.getBounds(na.linkRange));return}}else delete na.linkRange;na.hide()}})}},{key:"show",value:function(){b(ta.prototype.__proto__||Object.getPrototypeOf(ta.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return ta}(f.BaseTooltip);ea.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>';
347
+ la.default=ha},function(ka,la,ha){function da(Qa){return Qa&&Qa.__esModule?Qa:{default:Qa}}Object.defineProperty(la,"__esModule",{value:!0});ka=ha(29);ka=da(ka);var y=ha(36),r=ha(38),h=ha(64),a=ha(65);a=da(a);var b=ha(66);b=da(b);var e=ha(67),f=da(e),n=ha(37),x=ha(26),ca=ha(39),w=ha(40),aa=ha(56);aa=da(aa);var ja=ha(68);ja=da(ja);var fa=ha(27);fa=da(fa);var ea=ha(69);ea=da(ea);var ba=ha(70);ba=da(ba);var ma=ha(71);ma=da(ma);var ta=ha(72);ta=da(ta);var na=ha(73);na=da(na);var oa=ha(13),pa=da(oa),ua=
348
+ ha(74);ua=da(ua);var va=ha(75);va=da(va);var ra=ha(57);ra=da(ra);var xa=ha(41);xa=da(xa);var Aa=ha(28);Aa=da(Aa);var Ga=ha(59);Ga=da(Ga);var Ka=ha(60);Ka=da(Ka);var Da=ha(61);Da=da(Da);var Pa=ha(108);Pa=da(Pa);ha=ha(62);ha=da(ha);ka.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":y.AlignClass,"attributors/class/background":n.BackgroundClass,"attributors/class/color":x.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":ca.FontClass,
349
+ "attributors/class/size":w.SizeClass,"attributors/style/align":y.AlignStyle,"attributors/style/background":n.BackgroundStyle,"attributors/style/color":x.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":ca.FontStyle,"attributors/style/size":w.SizeStyle},!0);ka.default.register({"formats/align":y.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":h.IndentClass,"formats/background":n.BackgroundStyle,"formats/color":x.ColorStyle,"formats/font":ca.FontClass,
350
+ "formats/size":w.SizeClass,"formats/blockquote":a.default,"formats/code-block":pa.default,"formats/header":b.default,"formats/list":f.default,"formats/bold":aa.default,"formats/code":oa.Code,"formats/italic":ja.default,"formats/link":fa.default,"formats/script":ea.default,"formats/strike":ba.default,"formats/underline":ma.default,"formats/image":ta.default,"formats/video":na.default,"formats/list/item":e.ListItem,"modules/formula":ua.default,"modules/syntax":va.default,"modules/toolbar":ra.default,
351
+ "themes/bubble":Pa.default,"themes/snow":ha.default,"ui/icons":xa.default,"ui/picker":Aa.default,"ui/icon-picker":Ka.default,"ui/color-picker":Ga.default,"ui/tooltip":Da.default},!0);la.default=ka.default},function(ka,la,ha){function da(h,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,
352
+ a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});la.IndentClass=void 0;var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,
353
+ e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=function(a){return a&&a.__esModule?a:{default:a}}(ha(0));ka=new (function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);y(b,[{key:"add",
354
+ value:function(e,f){if("+1"===f||"-1"===f){var n=this.value(e)||0;f="+1"===f?n+1:n-1}return 0===f?(this.remove(e),!0):r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,e,f)}},{key:"canAdd",value:function(e,f){return r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,e,f)||r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,e,parseInt(f))}},{key:"value",value:function(e){return parseInt(r(b.prototype.__proto__||
355
+ Object.getPrototypeOf(b.prototype),"value",this).call(this,e))||void 0}}]);return b}(ka.default.Attributor.Class))("indent","ql-indent",{scope:ka.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});la.IndentClass=ka},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?
356
+ Object.setPrototypeOf(y,r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(4)).default);
357
+ ka.blotName="blockquote";ka.tagName="blockquote";la.default=ka},function(ka,la,ha){function da(r,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);r.prototype=Object.create(h&&h.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(r,h):r.__proto__=h)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function r(h,a){for(var b=0;b<a.length;b++){var e=
358
+ a[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(h,e.key,e)}}return function(h,a,b){a&&r(h.prototype,a);b&&r(h,b);return h}}();ka=function(r){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var a=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?
359
+ this:a}da(h,r);y(h,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]);return h}(function(r){return r&&r.__esModule?r:{default:r}}(ha(4)).default);ka.blotName="header";ka.tagName="H1 H2 H3 H4 H5 H6".split(" ");la.default=ka},function(ka,la,ha){function da(x){return x&&x.__esModule?x:{default:x}}function y(x,ca){if(!(x instanceof ca))throw new TypeError("Cannot call a class as a function");}function r(x,ca){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
360
+ return!ca||"object"!==typeof ca&&"function"!==typeof ca?x:ca}function h(x,ca){if("function"!==typeof ca&&null!==ca)throw new TypeError("Super expression must either be null or a function, not "+typeof ca);x.prototype=Object.create(ca&&ca.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(x,ca):x.__proto__=ca)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.ListItem=void 0;var a=function(){function x(ca,w){for(var aa=
361
+ 0;aa<w.length;aa++){var ja=w[aa];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ca,ja.key,ja)}}return function(ca,w,aa){w&&x(ca.prototype,w);aa&&x(ca,aa);return ca}}(),b=function ja(ca,w,aa){null===ca&&(ca=Function.prototype);var fa=Object.getOwnPropertyDescriptor(ca,w);if(void 0===fa){if(ca=Object.getPrototypeOf(ca),null!==ca)return ja(ca,w,aa)}else{if("value"in fa)return fa.value;w=fa.get;return void 0===w?void 0:w.call(aa)}};ka=ha(0);var e=
362
+ da(ka);ka=ha(4);ka=da(ka);ha=ha(25);ha=da(ha);var f=function(ca){function w(){y(this,w);return r(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}h(w,ca);a(w,[{key:"format",value:function(aa,ja){aa!==n.blotName||ja?b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,aa,ja):this.replaceWith(e.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
363
+ "remove",this).call(this)}},{key:"replaceWith",value:function(aa,ja){this.parent.isolate(this.offset(this.parent),this.length());if(aa===this.parent.statics.blotName)return this.parent.replaceWith(aa,ja),this;this.parent.unwrap();return b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,aa,ja)}}],[{key:"formats",value:function(aa){return aa.tagName===this.tagName?void 0:b(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,aa)}}]);return w}(ka.default);
364
+ f.blotName="list-item";f.tagName="LI";var n=function(ca){function w(aa){function ja(ea){if(ea.target.parentNode===aa){var ba=fa.statics.formats(aa);ea=e.default.find(ea.target);"checked"===ba?ea.format("list","unchecked"):"unchecked"===ba&&ea.format("list","checked")}}y(this,w);var fa=r(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,aa));aa.addEventListener("touchstart",ja);aa.addEventListener("mousedown",ja);return fa}h(w,ca);a(w,null,[{key:"create",value:function(aa){var ja="ordered"===
365
+ aa?"OL":"UL";ja=b(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,ja);"checked"!==aa&&"unchecked"!==aa||ja.setAttribute("data-checked","checked"===aa);return ja}},{key:"formats",value:function(aa){if("OL"===aa.tagName)return"ordered";if("UL"===aa.tagName)return aa.hasAttribute("data-checked")?"true"===aa.getAttribute("data-checked")?"checked":"unchecked":"bullet"}}]);a(w,[{key:"format",value:function(aa,ja){0<this.children.length&&this.children.tail.format(aa,ja)}},{key:"formats",value:function(){var aa=
366
+ {},ja=this.statics.blotName,fa=this.statics.formats(this.domNode);ja in aa?Object.defineProperty(aa,ja,{value:fa,enumerable:!0,configurable:!0,writable:!0}):aa[ja]=fa;return aa}},{key:"insertBefore",value:function(aa,ja){aa instanceof f?b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,aa,ja):(ja=null==ja?this.length():ja.offset(this),ja=this.split(ja),ja.parent.insertBefore(aa,ja))}},{key:"optimize",value:function(aa){b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
367
+ "optimize",this).call(this,aa);aa=this.next;null!=aa&&aa.prev===this&&aa.statics.blotName===this.statics.blotName&&aa.domNode.tagName===this.domNode.tagName&&aa.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(aa.moveChildren(this),aa.remove())}},{key:"replace",value:function(aa){if(aa.statics.blotName!==this.statics.blotName){var ja=e.default.create(this.statics.defaultChild);aa.moveChildren(ja);this.appendChild(ja)}b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
368
+ "replace",this).call(this,aa)}}]);return w}(ha.default);n.blotName="list";n.scope=e.default.Scope.BLOCK_BLOT;n.tagName=["OL","UL"];n.defaultChild="list-item";n.allowedChildren=[f];la.ListItem=f;la.default=n},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?
369
+ Object.setPrototypeOf(y,r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(56)).default);
370
+ ka.blotName="italic";ka.tagName=["EM","I"];la.default=ka},function(ka,la,ha){function da(h,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=
371
+ b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");
372
+ var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);y(b,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,e)}},{key:"formats",value:function(e){if("SUB"===e.tagName)return"sub";if("SUP"===
373
+ e.tagName)return"super"}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(6)).default);ka.blotName="script";ka.tagName=["SUB","SUP"];la.default=ka},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(y,r):y.__proto__=r)}
374
+ Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(6)).default);ka.blotName="strike";ka.tagName="S";
375
+ la.default=ka},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(y,r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");
376
+ var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(6)).default);ka.blotName="underline";ka.tagName="U";la.default=ka},function(ka,la,ha){function da(b,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+
377
+ typeof e);b.prototype=Object.create(e&&e.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(b,e):b.__proto__=e)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function b(e,f){for(var n=0;n<f.length;n++){var x=f[n];x.enumerable=x.enumerable||!1;x.configurable=!0;"value"in x&&(x.writable=!0);Object.defineProperty(e,x.key,x)}}return function(e,f,n){f&&b(e.prototype,f);n&&b(e,n);return e}}(),r=function x(e,f,
378
+ n){null===e&&(e=Function.prototype);var ca=Object.getOwnPropertyDescriptor(e,f);if(void 0===ca){if(e=Object.getPrototypeOf(e),null!==e)return x(e,f,n)}else{if("value"in ca)return ca.value;f=ca.get;return void 0===f?void 0:f.call(n)}};ka=function(e){return e&&e.__esModule?e:{default:e}}(ha(0));var h=ha(27),a=["alt","height","width"];ha=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var n=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);
379
+ if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}da(f,e);y(f,[{key:"format",value:function(n,x){-1<a.indexOf(n)?x?this.domNode.setAttribute(n,x):this.domNode.removeAttribute(n):r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,n,x)}}],[{key:"create",value:function(n){var x=r(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,n);"string"===typeof n&&
380
+ x.setAttribute("src",this.sanitize(n));return x}},{key:"formats",value:function(n){return a.reduce(function(x,ca){n.hasAttribute(ca)&&(x[ca]=n.getAttribute(ca));return x},{})}},{key:"match",value:function(n){return/\.(jpe?g|gif|png)$/.test(n)||/^data:image\/.+;base64/.test(n)}},{key:"sanitize",value:function(n){return(0,h.sanitize)(n,["http","https","data"])?n:"//:0"}},{key:"value",value:function(n){return n.getAttribute("src")}}]);return f}(ka.default.Embed);ha.blotName="image";ha.tagName="IMG";
381
+ la.default=ha},function(ka,la,ha){function da(b,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);b.prototype=Object.create(e&&e.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(b,e):b.__proto__=e)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function b(e,f){for(var n=0;n<f.length;n++){var x=f[n];x.enumerable=x.enumerable||!1;
382
+ x.configurable=!0;"value"in x&&(x.writable=!0);Object.defineProperty(e,x.key,x)}}return function(e,f,n){f&&b(e.prototype,f);n&&b(e,n);return e}}(),r=function x(e,f,n){null===e&&(e=Function.prototype);var ca=Object.getOwnPropertyDescriptor(e,f);if(void 0===ca){if(e=Object.getPrototypeOf(e),null!==e)return x(e,f,n)}else{if("value"in ca)return ca.value;f=ca.get;return void 0===f?void 0:f.call(n)}};ka=ha(4);var h=function(e){return e&&e.__esModule?e:{default:e}}(ha(27)),a=["height","width"];ha=function(e){function f(){if(!(this instanceof
383
+ f))throw new TypeError("Cannot call a class as a function");var n=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}da(f,e);y(f,[{key:"format",value:function(n,x){-1<a.indexOf(n)?x?this.domNode.setAttribute(n,x):this.domNode.removeAttribute(n):r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,n,x)}}],
384
+ [{key:"create",value:function(n){var x=r(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,n);x.setAttribute("frameborder","0");x.setAttribute("allowfullscreen",!0);x.setAttribute("src",this.sanitize(n));return x}},{key:"formats",value:function(n){return a.reduce(function(x,ca){n.hasAttribute(ca)&&(x[ca]=n.getAttribute(ca));return x},{})}},{key:"sanitize",value:function(n){return h.default.sanitize(n)}},{key:"value",value:function(n){return n.getAttribute("src")}}]);return f}(ka.BlockEmbed);
385
+ ha.blotName="video";ha.className="ql-video";ha.tagName="IFRAME";la.default=ha},function(ka,la,ha){function da(x){return x&&x.__esModule?x:{default:x}}function y(x,ca){if(!(x instanceof ca))throw new TypeError("Cannot call a class as a function");}function r(x,ca){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ca||"object"!==typeof ca&&"function"!==typeof ca?x:ca}function h(x,ca){if("function"!==typeof ca&&null!==ca)throw new TypeError("Super expression must either be null or a function, not "+
386
+ typeof ca);x.prototype=Object.create(ca&&ca.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(x,ca):x.__proto__=ca)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.FormulaBlot=void 0;var a=function(){function x(ca,w){for(var aa=0;aa<w.length;aa++){var ja=w[aa];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ca,ja.key,ja)}}return function(ca,w,aa){w&&x(ca.prototype,
387
+ w);aa&&x(ca,aa);return ca}}(),b=function ja(ca,w,aa){null===ca&&(ca=Function.prototype);var fa=Object.getOwnPropertyDescriptor(ca,w);if(void 0===fa){if(ca=Object.getPrototypeOf(ca),null!==ca)return ja(ca,w,aa)}else{if("value"in fa)return fa.value;w=fa.get;return void 0===w?void 0:w.call(aa)}};ka=ha(35);ka=da(ka);var e=ha(5),f=da(e);ha=ha(9);ha=da(ha);var n=function(ca){function w(){y(this,w);return r(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}h(w,ca);a(w,null,[{key:"create",
388
+ value:function(aa){var ja=b(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,aa);"string"===typeof aa&&(window.katex.render(aa,ja,{throwOnError:!1,errorColor:"#f00"}),ja.setAttribute("data-value",aa));return ja}},{key:"value",value:function(aa){return aa.getAttribute("data-value")}}]);return w}(ka.default);n.blotName="formula";n.className="ql-formula";n.tagName="SPAN";ha=function(ca){function w(){y(this,w);var aa=r(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
389
+ return aa}h(w,ca);a(w,null,[{key:"register",value:function(){f.default.register(n,!0)}}]);return w}(ha.default);la.FormulaBlot=n;la.default=ha},function(ka,la,ha){function da(ca){return ca&&ca.__esModule?ca:{default:ca}}function y(ca,w){if(!(ca instanceof w))throw new TypeError("Cannot call a class as a function");}function r(ca,w){if(!ca)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!==typeof w&&"function"!==typeof w?ca:w}function h(ca,w){if("function"!==
390
+ typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);ca.prototype=Object.create(w&&w.prototype,{constructor:{value:ca,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(ca,w):ca.__proto__=w)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.CodeToken=la.CodeBlock=void 0;var a=function(){function ca(w,aa){for(var ja=0;ja<aa.length;ja++){var fa=aa[ja];fa.enumerable=fa.enumerable||!1;fa.configurable=
391
+ !0;"value"in fa&&(fa.writable=!0);Object.defineProperty(w,fa.key,fa)}}return function(w,aa,ja){aa&&ca(w.prototype,aa);ja&&ca(w,ja);return w}}(),b=function fa(w,aa,ja){null===w&&(w=Function.prototype);var ea=Object.getOwnPropertyDescriptor(w,aa);if(void 0===ea){if(w=Object.getPrototypeOf(w),null!==w)return fa(w,aa,ja)}else{if("value"in ea)return ea.value;aa=ea.get;return void 0===aa?void 0:aa.call(ja)}};ka=ha(0);ka=da(ka);var e=ha(5),f=da(e);e=ha(9);e=da(e);ha=ha(13);var n=function(w){function aa(){y(this,
392
+ aa);return r(this,(aa.__proto__||Object.getPrototypeOf(aa)).apply(this,arguments))}h(aa,w);a(aa,[{key:"replaceWith",value:function(ja){this.domNode.textContent=this.domNode.textContent;this.attach();b(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"replaceWith",this).call(this,ja)}},{key:"highlight",value:function(ja){var fa=this.domNode.textContent;if(this.cachedText!==fa){if(0<fa.trim().length||null==this.cachedText)this.domNode.innerHTML=ja(fa),this.domNode.normalize(),this.attach();
393
+ this.cachedText=fa}}}]);return aa}(da(ha).default);n.className="ql-syntax";var x=new ka.default.Attributor.Class("token","hljs",{scope:ka.default.Scope.INLINE});ha=function(w){function aa(ja,fa){y(this,aa);var ea=r(this,(aa.__proto__||Object.getPrototypeOf(aa)).call(this,ja,fa));if("function"!==typeof ea.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var ba=null;ea.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(ba);
394
+ ba=setTimeout(function(){ea.highlight();ba=null},ea.options.interval)});ea.highlight();return ea}h(aa,w);a(aa,null,[{key:"register",value:function(){f.default.register(x,!0);f.default.register(n,!0)}}]);a(aa,[{key:"highlight",value:function(){var ja=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var fa=this.quill.getSelection();this.quill.scroll.descendants(n).forEach(function(ea){ea.highlight(ja.options.highlight)});this.quill.update(f.default.sources.SILENT);
395
+ null!=fa&&this.quill.setSelection(fa,f.default.sources.SILENT)}}}]);return aa}(e.default);ha.DEFAULTS={highlight:function(){return null==window.hljs?null:function(w){return window.hljs.highlightAuto(w).value}}(),interval:1E3};la.CodeBlock=n;la.CodeToken=x;la.default=ha},function(ka){ka.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(ka){ka.exports=
396
+ '<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(ka){ka.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(ka){ka.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>'},
397
+ function(ka){ka.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>'},
398
+ function(ka){ka.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(ka){ka.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>'},
399
+ function(ka){ka.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(ka){ka.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>'},
400
+ function(ka){ka.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(ka){ka.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>'},
401
+ function(ka){ka.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(ka){ka.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>'},
402
+ function(ka){ka.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(ka){ka.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>'},
403
+ function(ka){ka.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>'},
404
+ function(ka){ka.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>'},
405
+ function(ka){ka.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>'},
406
+ function(ka){ka.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(ka){ka.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(ka){ka.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>'},
407
+ function(ka){ka.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(ka){ka.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>'},
408
+ function(ka){ka.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>'},
409
+ function(ka){ka.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(ka){ka.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>'},
410
+ function(ka){ka.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>'},
411
+ function(ka){ka.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>'},
412
+ function(ka){ka.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>'},
413
+ function(ka){ka.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(ka){ka.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>'},
414
+ function(ka){ka.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(ka,la,ha){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function y(ja,fa){if(!(ja instanceof fa))throw new TypeError("Cannot call a class as a function");}function r(ja,fa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&
415
+ "function"!==typeof fa?ja:fa}function h(ja,fa){if("function"!==typeof fa&&null!==fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);ja.prototype=Object.create(fa&&fa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,fa):ja.__proto__=fa)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.BubbleTooltip=void 0;var a=function ma(fa,ea,ba){null===fa&&(fa=Function.prototype);
416
+ var ta=Object.getOwnPropertyDescriptor(fa,ea);if(void 0===ta){if(fa=Object.getPrototypeOf(fa),null!==fa)return ma(fa,ea,ba)}else{if("value"in ta)return ta.value;ea=ta.get;return void 0===ea?void 0:ea.call(ba)}},b=function(){function fa(ea,ba){for(var ma=0;ma<ba.length;ma++){var ta=ba[ma];ta.enumerable=ta.enumerable||!1;ta.configurable=!0;"value"in ta&&(ta.writable=!0);Object.defineProperty(ea,ta.key,ta)}}return function(ea,ba,ma){ba&&fa(ea.prototype,ba);ma&&fa(ea,ma);return ea}}();ka=ha(3);ka=da(ka);
417
+ var e=ha(8),f=da(e);e=ha(43);var n=da(e),x=ha(15);ha=ha(41);var ca=da(ha),w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];ha=function(fa){function ea(ba,ma){y(this,ea);null!=ma.modules.toolbar&&null==ma.modules.toolbar.container&&(ma.modules.toolbar.container=w);ba=r(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ba,ma));ba.quill.container.classList.add("ql-bubble");return ba}h(ea,fa);b(ea,[{key:"extendToolbar",value:function(ba){this.tooltip=new aa(this.quill,this.options.bounds);
418
+ this.tooltip.root.appendChild(ba.container);this.buildButtons([].slice.call(ba.container.querySelectorAll("button")),ca.default);this.buildPickers([].slice.call(ba.container.querySelectorAll("select")),ca.default)}}]);return ea}(n.default);ha.DEFAULTS=(0,ka.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(fa){fa?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var aa=function(fa){function ea(ba,ma){y(this,ea);var ta=r(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,
419
+ ba,ma));ta.quill.on(f.default.events.EDITOR_CHANGE,function(na,oa,pa,ua){na===f.default.events.SELECTION_CHANGE&&(null!=oa&&0<oa.length&&ua===f.default.sources.USER?(ta.show(),ta.root.style.left="0px",ta.root.style.width="",ta.root.style.width=ta.root.offsetWidth+"px",na=ta.quill.getLines(oa.index,oa.length),1===na.length?ta.position(ta.quill.getBounds(oa)):(pa=na[na.length-1],na=ta.quill.getIndex(pa),oa=Math.min(pa.length()-1,oa.index+oa.length-na),oa=ta.quill.getBounds(new x.Range(na,oa)),ta.position(oa))):
420
+ document.activeElement!==ta.textbox&&ta.quill.hasFocus()&&ta.hide())});return ta}h(ea,fa);b(ea,[{key:"listen",value:function(){var ba=this;a(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){ba.root.classList.remove("ql-editing")});this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!ba.root.classList.contains("ql-hidden")){var ma=ba.quill.getSelection();null!=
421
+ ma&&ba.position(ba.quill.getBounds(ma))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(ba){ba=a(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"position",this).call(this,ba);var ma=this.root.querySelector(".ql-tooltip-arrow");ma.style.marginLeft="";if(0===ba)return ba;ma.style.marginLeft=-1*ba-ma.offsetWidth/2+"px"}}]);return ea}(e.BaseTooltip);aa.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>';
422
+ la.BubbleTooltip=aa;la.default=ha},function(ka,la,ha){ka.exports=ha(63)}])["default"]})}).call(this,z(392).Buffer)}}]);}).call(this || window)