@konnectio/core 4.0.11 → 4.0.12

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 (70) hide show
  1. package/dist/ActionField-23ce1b2a.cjs +1 -0
  2. package/dist/{ActionField-d1266f8b.js → ActionField-311942d2.js} +21 -21
  3. package/dist/ActionField-311942d2.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-0e6d048b.js → AvailabilitySkeleton-2dfbb28e.js} +80 -80
  5. package/dist/AvailabilitySkeleton-2dfbb28e.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-7d9e2680.cjs +1 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-31a9e5dc.cjs → DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs} +3 -3
  8. package/dist/{DateField.vue_vue_type_style_index_0_lang-3f5993f7.js → DateField.vue_vue_type_style_index_0_lang-ec35955b.js} +1816 -1820
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-ec35955b.js.br +0 -0
  10. package/dist/{Field-028d9987.cjs → Field-dcffacf2.cjs} +1 -1
  11. package/dist/{Field-ea77905a.js → Field-ff599d13.js} +2 -2
  12. package/dist/Field-ff599d13.js.br +0 -0
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-d3b3206f.js → NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js} +28 -28
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js.br +0 -0
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs +1 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs +802 -0
  17. package/dist/{SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js → SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js} +7754 -7718
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js.br +0 -0
  19. package/dist/TextField-6f7e37d9.cjs +54 -0
  20. package/dist/{TextField-4e7defc6.js → TextField-cd93b966.js} +3241 -3241
  21. package/dist/TextField-cd93b966.js.br +0 -0
  22. package/dist/{ThankYou-2c1ee36b.cjs → ThankYou-3d74a6dc.cjs} +2 -2
  23. package/dist/{ThankYou-6fc9044f.js → ThankYou-c1878478.js} +48 -47
  24. package/dist/ThankYou-c1878478.js.br +0 -0
  25. package/dist/{_-82677476.cjs → _-0895679a.cjs} +1 -1
  26. package/dist/{_-f5a3364b.js → _-8772cf9a.js} +1 -1
  27. package/dist/_-8772cf9a.js.br +0 -0
  28. package/dist/availability.cjs +1 -1
  29. package/dist/availability.js +7 -7
  30. package/dist/availability.js.br +0 -0
  31. package/dist/{event-46a84617.js → event-60e076f2.js} +36 -36
  32. package/dist/event-60e076f2.js.br +0 -0
  33. package/dist/{event-8738e24d.cjs → event-8e90a6e3.cjs} +1 -1
  34. package/dist/event.cjs +1 -1
  35. package/dist/event.js +98 -98
  36. package/dist/event.js.br +0 -0
  37. package/dist/gift-card-validation.cjs +1 -1
  38. package/dist/gift-card-validation.js +4 -4
  39. package/dist/gift-card-validation.js.br +0 -0
  40. package/dist/gift-card.cjs +1 -1
  41. package/dist/gift-card.js +192 -192
  42. package/dist/gift-card.js.br +0 -0
  43. package/dist/hotel.cjs +5 -5
  44. package/dist/hotel.js +1406 -1395
  45. package/dist/hotel.js.br +0 -0
  46. package/dist/index-345407fb.cjs +1 -0
  47. package/dist/{index-a3de1ca3.js → index-b5d8f4fc.js} +83 -83
  48. package/dist/index-b5d8f4fc.js.br +0 -0
  49. package/dist/polyfill.cjs +4 -4
  50. package/dist/polyfill.js +3311 -3398
  51. package/dist/polyfill.js.br +0 -0
  52. package/dist/store/payment.d.ts +1 -1
  53. package/package.json +6 -6
  54. package/dist/ActionField-8a007a6c.cjs +0 -1
  55. package/dist/ActionField-d1266f8b.js.br +0 -0
  56. package/dist/AvailabilitySkeleton-0e6d048b.js.br +0 -0
  57. package/dist/AvailabilitySkeleton-3ba8c412.cjs +0 -1
  58. package/dist/DateField.vue_vue_type_style_index_0_lang-3f5993f7.js.br +0 -0
  59. package/dist/Field-ea77905a.js.br +0 -0
  60. package/dist/NumberField.vue_vue_type_script_setup_true_lang-d3b3206f.js.br +0 -0
  61. package/dist/NumberField.vue_vue_type_script_setup_true_lang-d756efc3.cjs +0 -1
  62. package/dist/SelectField.vue_vue_type_style_index_0_lang-2b92f88c.cjs +0 -806
  63. package/dist/SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js.br +0 -0
  64. package/dist/TextField-4e7defc6.js.br +0 -0
  65. package/dist/TextField-641e6fd1.cjs +0 -54
  66. package/dist/ThankYou-6fc9044f.js.br +0 -0
  67. package/dist/_-f5a3364b.js.br +0 -0
  68. package/dist/event-46a84617.js.br +0 -0
  69. package/dist/index-a3de1ca3.js.br +0 -0
  70. package/dist/index-e81b12be.cjs +0 -1
@@ -0,0 +1,54 @@
1
+ "use strict";const ee=require("./SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs"),Ee=require("./_commonjsHelpers-6763f629.cjs"),er=["name","value"],tr=ee.defineComponent({__name:"SelectField",props:{modelValue:{},label:{},options:{},labelKey:{default:"label"},valueKey:{default:"value"},name:{},icon:{},iconType:{},iconColor:{},iconPlacement:{},id:{},multiple:{type:Boolean,default:!1},taggable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},placeholder:{},autocomplete:{default:"off"},clearable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(j,{emit:U}){const b=j,v=b.id||ee.ranId(),f=U,E=ee.ref();function _(m){f("update:modelValue",m)}return ee.watch(E,m=>{_(m)}),ee.onMounted(()=>E.value=b.modelValue),(m,g)=>(ee.openBlock(),ee.createBlock(ee.InputField,{label:m.label,id:ee.unref(v),icon:m.icon,"icon-type":m.iconType,"icon-color":m.iconColor,"icon-placement":m.iconPlacement,required:m.required,type:"dropdown",readonly:m.readonly},{default:ee.withCtx(()=>[ee.createBaseVNode("input",{type:"hidden",name:m.name,value:m.modelValue},null,8,er),ee.createVNode(ee.unref(ee.Ce),{modelValue:E.value,"onUpdate:modelValue":g[0]||(g[0]=y=>E.value=y),label:m.labelKey,uid:ee.unref(v),reduce:y=>y[m.valueKey],placeholder:m.placeholder,options:m.options,multiple:m.multiple,taggable:m.taggable,autocomplete:m.autocomplete,clearable:m.clearable},{option:ee.withCtx(y=>[ee.renderSlot(m.$slots,"option",{data:y})]),"selected-option":ee.withCtx(y=>[ee.renderSlot(m.$slots,"selected-option",{data:y})]),_:3},8,["modelValue","label","uid","reduce","placeholder","options","multiple","taggable","autocomplete","clearable"])]),_:3},8,["label","id","icon","icon-type","icon-color","icon-placement","required","readonly"]))}});var Kn={exports:{}};/*!
2
+ * Quill Editor v1.3.7
3
+ * https://quilljs.com/
4
+ * Copyright (c) 2014, Jason Chen
5
+ * Copyright (c) 2013, salesforce.com
6
+ */(function(j,U){(function(v,f){j.exports=f()})(typeof self<"u"?self:Ee.commonjsGlobal,function(){return function(b){var v={};function f(E){if(v[E])return v[E].exports;var _=v[E]={i:E,l:!1,exports:{}};return b[E].call(_.exports,_,_.exports,f),_.l=!0,_.exports}return f.m=b,f.c=v,f.d=function(E,_,m){f.o(E,_)||Object.defineProperty(E,_,{configurable:!1,enumerable:!0,get:m})},f.n=function(E){var _=E&&E.__esModule?function(){return E.default}:function(){return E};return f.d(_,"a",_),_},f.o=function(E,_){return Object.prototype.hasOwnProperty.call(E,_)},f.p="",f(f.s=109)}([function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(17),_=f(18),m=f(19),g=f(45),y=f(46),h=f(47),a=f(48),e=f(49),t=f(12),s=f(32),i=f(33),u=f(31),r=f(1),o={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:E.default,Format:_.default,Leaf:m.default,Embed:a.default,Scroll:g.default,Block:h.default,Inline:y.default,Text:e.default,Attributor:{Attribute:t.default,Class:s.default,Style:i.default,Store:u.default}};v.default=o},function(b,v,f){var E=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var c in o)o.hasOwnProperty(c)&&(r[c]=o[c])};return function(r,o){u(r,o);function c(){this.constructor=r}r.prototype=o===null?Object.create(o):(c.prototype=o.prototype,new c)}}();Object.defineProperty(v,"__esModule",{value:!0});var _=function(u){E(r,u);function r(o){var c=this;return o="[Parchment] "+o,c=u.call(this,o)||this,c.message=o,c.name=c.constructor.name,c}return r}(Error);v.ParchmentError=_;var m={},g={},y={},h={};v.DATA_KEY="__blot";var a;(function(u){u[u.TYPE=3]="TYPE",u[u.LEVEL=12]="LEVEL",u[u.ATTRIBUTE=13]="ATTRIBUTE",u[u.BLOT=14]="BLOT",u[u.INLINE=7]="INLINE",u[u.BLOCK=11]="BLOCK",u[u.BLOCK_BLOT=10]="BLOCK_BLOT",u[u.INLINE_BLOT=6]="INLINE_BLOT",u[u.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",u[u.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",u[u.ANY=15]="ANY"})(a=v.Scope||(v.Scope={}));function e(u,r){var o=s(u);if(o==null)throw new _("Unable to create "+u+" blot");var c=o,n=u instanceof Node||u.nodeType===Node.TEXT_NODE?u:c.create(r);return new c(n,r)}v.create=e;function t(u,r){return r===void 0&&(r=!1),u==null?null:u[v.DATA_KEY]!=null?u[v.DATA_KEY].blot:r?t(u.parentNode,r):null}v.find=t;function s(u,r){r===void 0&&(r=a.ANY);var o;if(typeof u=="string")o=h[u]||m[u];else if(u instanceof Text||u.nodeType===Node.TEXT_NODE)o=h.text;else if(typeof u=="number")u&a.LEVEL&a.BLOCK?o=h.block:u&a.LEVEL&a.INLINE&&(o=h.inline);else if(u instanceof HTMLElement){var c=(u.getAttribute("class")||"").split(/\s+/);for(var n in c)if(o=g[c[n]],o)break;o=o||y[u.tagName]}return o==null?null:r&a.LEVEL&o.scope&&r&a.TYPE&o.scope?o:null}v.query=s;function i(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];if(u.length>1)return u.map(function(n){return i(n)});var o=u[0];if(typeof o.blotName!="string"&&typeof o.attrName!="string")throw new _("Invalid definition");if(o.blotName==="abstract")throw new _("Cannot register abstract class");if(h[o.blotName||o.attrName]=o,typeof o.keyName=="string")m[o.keyName]=o;else if(o.className!=null&&(g[o.className]=o),o.tagName!=null){Array.isArray(o.tagName)?o.tagName=o.tagName.map(function(n){return n.toUpperCase()}):o.tagName=o.tagName.toUpperCase();var c=Array.isArray(o.tagName)?o.tagName:[o.tagName];c.forEach(function(n){(y[n]==null||o.className==null)&&(y[n]=o)})}return o}v.register=i},function(b,v,f){var E=f(51),_=f(11),m=f(3),g=f(20),y=String.fromCharCode(0),h=function(a){Array.isArray(a)?this.ops=a:a!=null&&Array.isArray(a.ops)?this.ops=a.ops:this.ops=[]};h.prototype.insert=function(a,e){var t={};return a.length===0?this:(t.insert=a,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},h.prototype.delete=function(a){return a<=0?this:this.push({delete:a})},h.prototype.retain=function(a,e){if(a<=0)return this;var t={retain:a};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},h.prototype.push=function(a){var e=this.ops.length,t=this.ops[e-1];if(a=m(!0,{},a),typeof t=="object"){if(typeof a.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+a.delete},this;if(typeof t.delete=="number"&&a.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(a),this;if(_(a.attributes,t.attributes)){if(typeof a.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+a.insert},typeof a.attributes=="object"&&(this.ops[e-1].attributes=a.attributes),this;if(typeof a.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+a.retain},typeof a.attributes=="object"&&(this.ops[e-1].attributes=a.attributes),this}}return e===this.ops.length?this.ops.push(a):this.ops.splice(e,0,a),this},h.prototype.chop=function(){var a=this.ops[this.ops.length-1];return a&&a.retain&&!a.attributes&&this.ops.pop(),this},h.prototype.filter=function(a){return this.ops.filter(a)},h.prototype.forEach=function(a){this.ops.forEach(a)},h.prototype.map=function(a){return this.ops.map(a)},h.prototype.partition=function(a){var e=[],t=[];return this.forEach(function(s){var i=a(s)?e:t;i.push(s)}),[e,t]},h.prototype.reduce=function(a,e){return this.ops.reduce(a,e)},h.prototype.changeLength=function(){return this.reduce(function(a,e){return e.insert?a+g.length(e):e.delete?a-e.delete:a},0)},h.prototype.length=function(){return this.reduce(function(a,e){return a+g.length(e)},0)},h.prototype.slice=function(a,e){a=a||0,typeof e!="number"&&(e=1/0);for(var t=[],s=g.iterator(this.ops),i=0;i<e&&s.hasNext();){var u;i<a?u=s.next(a-i):(u=s.next(e-i),t.push(u)),i+=g.length(u)}return new h(t)},h.prototype.compose=function(a){var e=g.iterator(this.ops),t=g.iterator(a.ops),s=[],i=t.peek();if(i!=null&&typeof i.retain=="number"&&i.attributes==null){for(var u=i.retain;e.peekType()==="insert"&&e.peekLength()<=u;)u-=e.peekLength(),s.push(e.next());i.retain-u>0&&t.next(i.retain-u)}for(var r=new h(s);e.hasNext()||t.hasNext();)if(t.peekType()==="insert")r.push(t.next());else if(e.peekType()==="delete")r.push(e.next());else{var o=Math.min(e.peekLength(),t.peekLength()),c=e.next(o),n=t.next(o);if(typeof n.retain=="number"){var d={};typeof c.retain=="number"?d.retain=o:d.insert=c.insert;var k=g.attributes.compose(c.attributes,n.attributes,typeof c.retain=="number");if(k&&(d.attributes=k),r.push(d),!t.hasNext()&&_(r.ops[r.ops.length-1],d)){var w=new h(e.rest());return r.concat(w).chop()}}else typeof n.delete=="number"&&typeof c.retain=="number"&&r.push(n)}return r.chop()},h.prototype.concat=function(a){var e=new h(this.ops.slice());return a.ops.length>0&&(e.push(a.ops[0]),e.ops=e.ops.concat(a.ops.slice(1))),e},h.prototype.diff=function(a,e){if(this.ops===a.ops)return new h;var t=[this,a].map(function(o){return o.map(function(c){if(c.insert!=null)return typeof c.insert=="string"?c.insert:y;var n=o===a?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),s=new h,i=E(t[0],t[1],e),u=g.iterator(this.ops),r=g.iterator(a.ops);return i.forEach(function(o){for(var c=o[1].length;c>0;){var n=0;switch(o[0]){case E.INSERT:n=Math.min(r.peekLength(),c),s.push(r.next(n));break;case E.DELETE:n=Math.min(c,u.peekLength()),u.next(n),s.delete(n);break;case E.EQUAL:n=Math.min(u.peekLength(),r.peekLength(),c);var d=u.next(n),k=r.next(n);_(d.insert,k.insert)?s.retain(n,g.attributes.diff(d.attributes,k.attributes)):s.push(k).delete(n);break}c-=n}}),s.chop()},h.prototype.eachLine=function(a,e){e=e||`
7
+ `;for(var t=g.iterator(this.ops),s=new h,i=0;t.hasNext();){if(t.peekType()!=="insert")return;var u=t.peek(),r=g.length(u)-t.peekLength(),o=typeof u.insert=="string"?u.insert.indexOf(e,r)-r:-1;if(o<0)s.push(t.next());else if(o>0)s.push(t.next(o));else{if(a(s,t.next(1).attributes||{},i)===!1)return;i+=1,s=new h}}s.length()>0&&a(s,{},i)},h.prototype.transform=function(a,e){if(e=!!e,typeof a=="number")return this.transformPosition(a,e);for(var t=g.iterator(this.ops),s=g.iterator(a.ops),i=new h;t.hasNext()||s.hasNext();)if(t.peekType()==="insert"&&(e||s.peekType()!=="insert"))i.retain(g.length(t.next()));else if(s.peekType()==="insert")i.push(s.next());else{var u=Math.min(t.peekLength(),s.peekLength()),r=t.next(u),o=s.next(u);if(r.delete)continue;o.delete?i.push(o):i.retain(u,g.attributes.transform(r.attributes,o.attributes,e))}return i.chop()},h.prototype.transformPosition=function(a,e){e=!!e;for(var t=g.iterator(this.ops),s=0;t.hasNext()&&s<=a;){var i=t.peekLength(),u=t.peekType();if(t.next(),u==="delete"){a-=Math.min(i,a-s);continue}else u==="insert"&&(s<a||!e)&&(a+=i);s+=i}return a},b.exports=h},function(b,v){var f=Object.prototype.hasOwnProperty,E=Object.prototype.toString,_=Object.defineProperty,m=Object.getOwnPropertyDescriptor,g=function(t){return typeof Array.isArray=="function"?Array.isArray(t):E.call(t)==="[object Array]"},y=function(t){if(!t||E.call(t)!=="[object Object]")return!1;var s=f.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&f.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!s&&!i)return!1;var u;for(u in t);return typeof u>"u"||f.call(t,u)},h=function(t,s){_&&s.name==="__proto__"?_(t,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):t[s.name]=s.newValue},a=function(t,s){if(s==="__proto__")if(f.call(t,s)){if(m)return m(t,s).value}else return;return t[s]};b.exports=function e(){var t,s,i,u,r,o,c=arguments[0],n=1,d=arguments.length,k=!1;for(typeof c=="boolean"&&(k=c,c=arguments[1]||{},n=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});n<d;++n)if(t=arguments[n],t!=null)for(s in t)i=a(c,s),u=a(t,s),c!==u&&(k&&u&&(y(u)||(r=g(u)))?(r?(r=!1,o=i&&g(i)?i:[]):o=i&&y(i)?i:{},h(c,{name:s,newValue:e(k,o,u)})):typeof u<"u"&&h(c,{name:s,newValue:u}));return c}},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.BlockEmbed=v.bubbleFormats=void 0;var E=function(){function p(O,N){for(var L=0;L<N.length;L++){var D=N[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(O,D.key,D)}}return function(O,N,L){return N&&p(O.prototype,N),L&&p(O,L),O}}(),_=function p(O,N,L){O===null&&(O=Function.prototype);var D=Object.getOwnPropertyDescriptor(O,N);if(D===void 0){var z=Object.getPrototypeOf(O);return z===null?void 0:p(z,N,L)}else{if("value"in D)return D.value;var V=D.get;return V===void 0?void 0:V.call(L)}},m=f(3),g=c(m),y=f(2),h=c(y),a=f(0),e=c(a),t=f(16),s=c(t),i=f(6),u=c(i),r=f(7),o=c(r);function c(p){return p&&p.__esModule?p:{default:p}}function n(p,O){if(!(p instanceof O))throw new TypeError("Cannot call a class as a function")}function d(p,O){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:p}function k(p,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);p.prototype=Object.create(O&&O.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(p,O):p.__proto__=O)}var w=1,T=function(p){k(O,p);function O(){return n(this,O),d(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return E(O,[{key:"attach",value:function(){_(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new h.default().insert(this.value(),(0,g.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(L,D){var z=e.default.query(L,e.default.Scope.BLOCK_ATTRIBUTE);z!=null&&this.attributes.attribute(z,D)}},{key:"formatAt",value:function(L,D,z,V){this.format(z,V)}},{key:"insertAt",value:function(L,D,z){if(typeof D=="string"&&D.endsWith(`
8
+ `)){var V=e.default.create(P.blotName);this.parent.insertBefore(V,L===0?this:this.next),V.insertAt(0,D.slice(0,-1))}else _(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,L,D,z)}}]),O}(e.default.Embed);T.scope=e.default.Scope.BLOCK_BLOT;var P=function(p){k(O,p);function O(N){n(this,O);var L=d(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N));return L.cache={},L}return E(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(L,D){return D.length()===0?L:L.insert(D.value(),A(D))},new h.default).insert(`
9
+ `,A(this))),this.cache.delta}},{key:"deleteAt",value:function(L,D){_(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,L,D),this.cache={}}},{key:"formatAt",value:function(L,D,z,V){D<=0||(e.default.query(z,e.default.Scope.BLOCK)?L+D===this.length()&&this.format(z,V):_(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,L,Math.min(D,this.length()-L-1),z,V),this.cache={})}},{key:"insertAt",value:function(L,D,z){if(z!=null)return _(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,L,D,z);if(D.length!==0){var V=D.split(`
10
+ `),J=V.shift();J.length>0&&(L<this.length()-1||this.children.tail==null?_(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(L,this.length()-1),J):this.children.tail.insertAt(this.children.tail.length(),J),this.cache={});var H=this;V.reduce(function(R,S){return H=H.split(R,!0),H.insertAt(0,S),S.length},L+J.length)}}},{key:"insertBefore",value:function(L,D){var z=this.children.head;_(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,L,D),z instanceof s.default&&z.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=_(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(L,D){_(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,L,D),this.cache={}}},{key:"optimize",value:function(L){_(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,L),this.cache={}}},{key:"path",value:function(L){return _(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,L,!0)}},{key:"removeChild",value:function(L){_(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,L),this.cache={}}},{key:"split",value:function(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D&&(L===0||L>=this.length()-w)){var z=this.clone();return L===0?(this.parent.insertBefore(z,this),this):(this.parent.insertBefore(z,this.next),z)}else{var V=_(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,L,D);return this.cache={},V}}}]),O}(e.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[u.default,e.default.Embed,o.default];function A(p){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return p==null||(typeof p.formats=="function"&&(O=(0,g.default)(O,p.formats())),p.parent==null||p.parent.blotName=="scroll"||p.parent.statics.scope!==p.statics.scope)?O:A(p.parent,O)}v.bubbleFormats=A,v.BlockEmbed=T,v.default=P},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.overload=v.expandConfig=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},_=function(){function H(R,S){var I=[],M=!0,K=!1,C=void 0;try{for(var q=R[Symbol.iterator](),F;!(M=(F=q.next()).done)&&(I.push(F.value),!(S&&I.length===S));M=!0);}catch(G){K=!0,C=G}finally{try{!M&&q.return&&q.return()}finally{if(K)throw C}}return I}return function(R,S){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return H(R,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function H(R,S){for(var I=0;I<S.length;I++){var M=S[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(R,M.key,M)}}return function(R,S,I){return S&&H(R.prototype,S),I&&H(R,I),R}}();f(50);var g=f(2),y=A(g),h=f(14),a=A(h),e=f(8),t=A(e),s=f(9),i=A(s),u=f(0),r=A(u),o=f(15),c=A(o),n=f(3),d=A(n),k=f(10),w=A(k),T=f(34),P=A(T);function A(H){return H&&H.__esModule?H:{default:H}}function p(H,R,S){return R in H?Object.defineProperty(H,R,{value:S,enumerable:!0,configurable:!0,writable:!0}):H[R]=S,H}function O(H,R){if(!(H instanceof R))throw new TypeError("Cannot call a class as a function")}var N=(0,w.default)("quill"),L=function(){m(H,null,[{key:"debug",value:function(S){S===!0&&(S="log"),w.default.level(S)}},{key:"find",value:function(S){return S.__quill||r.default.find(S)}},{key:"import",value:function(S){return this.imports[S]==null&&N.error("Cannot import "+S+". Are you sure it was registered?"),this.imports[S]}},{key:"register",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof S!="string"){var C=S.attrName||S.blotName;typeof C=="string"?this.register("formats/"+C,S,I):Object.keys(S).forEach(function(q){M.register(q,S[q],I)})}else this.imports[S]!=null&&!K&&N.warn("Overwriting "+S+" with",I),this.imports[S]=I,(S.startsWith("blots/")||S.startsWith("formats/"))&&I.blotName!=="abstract"?r.default.register(I):S.startsWith("modules")&&typeof I.register=="function"&&I.register()}}]);function H(R){var S=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,H),this.options=D(R,I),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",R);this.options.debug&&H.debug(this.options.debug);var M=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new t.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new c.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(t.default.events.EDITOR_CHANGE,function(C){C===t.default.events.TEXT_CHANGE&&S.root.classList.toggle("ql-blank",S.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(C,q){var F=S.selection.lastRange,G=F&&F.length===0?F.index:void 0;z.call(S,function(){return S.editor.update(null,q,G)},C)});var K=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents(K),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return m(H,[{key:"addContainer",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof S=="string"){var M=S;S=document.createElement("div"),S.classList.add(M)}return this.container.insertBefore(S,I),S}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(S,I,M){var K=this,C=V(S,I,M),q=_(C,4);return S=q[0],I=q[1],M=q[3],z.call(this,function(){return K.editor.deleteText(S,I)},M,S,-1*I)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(S),this.container.classList.toggle("ql-disabled",!S)}},{key:"focus",value:function(){var S=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=S,this.scrollIntoView()}},{key:"format",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return z.call(this,function(){var C=M.getSelection(!0),q=new y.default;if(C==null)return q;if(r.default.query(S,r.default.Scope.BLOCK))q=M.editor.formatLine(C.index,C.length,p({},S,I));else{if(C.length===0)return M.selection.format(S,I),q;q=M.editor.formatText(C.index,C.length,p({},S,I))}return M.setSelection(C,t.default.sources.SILENT),q},K)}},{key:"formatLine",value:function(S,I,M,K,C){var q=this,F=void 0,G=V(S,I,M,K,C),$=_(G,4);return S=$[0],I=$[1],F=$[2],C=$[3],z.call(this,function(){return q.editor.formatLine(S,I,F)},C,S,0)}},{key:"formatText",value:function(S,I,M,K,C){var q=this,F=void 0,G=V(S,I,M,K,C),$=_(G,4);return S=$[0],I=$[1],F=$[2],C=$[3],z.call(this,function(){return q.editor.formatText(S,I,F)},C,S,0)}},{key:"getBounds",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof S=="number"?M=this.selection.getBounds(S,I):M=this.selection.getBounds(S.index,S.length);var K=this.container.getBoundingClientRect();return{bottom:M.bottom-K.top,height:M.height,left:M.left-K.left,right:M.right-K.left,top:M.top-K.top,width:M.width}}},{key:"getContents",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,M=V(S,I),K=_(M,2);return S=K[0],I=K[1],this.editor.getContents(S,I)}},{key:"getFormat",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof S=="number"?this.editor.getFormat(S,I):this.editor.getFormat(S.index,S.length)}},{key:"getIndex",value:function(S){return S.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(S){return this.scroll.leaf(S)}},{key:"getLine",value:function(S){return this.scroll.line(S)}},{key:"getLines",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof S!="number"?this.scroll.lines(S.index,S.length):this.scroll.lines(S,I)}},{key:"getModule",value:function(S){return this.theme.modules[S]}},{key:"getSelection",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return S&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,M=V(S,I),K=_(M,2);return S=K[0],I=K[1],this.editor.getText(S,I)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(S,I,M){var K=this,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:H.sources.API;return z.call(this,function(){return K.editor.insertEmbed(S,I,M)},C,S)}},{key:"insertText",value:function(S,I,M,K,C){var q=this,F=void 0,G=V(S,0,M,K,C),$=_(G,4);return S=$[0],F=$[2],C=$[3],z.call(this,function(){return q.editor.insertText(S,I,F)},C,S,I.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(S,I,M){this.clipboard.dangerouslyPasteHTML(S,I,M)}},{key:"removeFormat",value:function(S,I,M){var K=this,C=V(S,I,M),q=_(C,4);return S=q[0],I=q[1],M=q[3],z.call(this,function(){return K.editor.removeFormat(S,I)},M,S)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(S){var I=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return z.call(this,function(){S=new y.default(S);var K=I.getLength(),C=I.editor.deleteText(0,K),q=I.editor.applyDelta(S),F=q.ops[q.ops.length-1];F!=null&&typeof F.insert=="string"&&F.insert[F.insert.length-1]===`
11
+ `&&(I.editor.deleteText(I.getLength()-1,1),q.delete(1));var G=C.compose(q);return G},M)}},{key:"setSelection",value:function(S,I,M){if(S==null)this.selection.setRange(null,I||H.sources.API);else{var K=V(S,I,M),C=_(K,4);S=C[0],I=C[1],M=C[3],this.selection.setRange(new o.Range(S,I),M),M!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,M=new y.default().insert(S);return this.setContents(M,I)}},{key:"update",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,I=this.scroll.update(S);return this.selection.update(S),I}},{key:"updateContents",value:function(S){var I=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return z.call(this,function(){return S=new y.default(S),I.editor.applyDelta(S,M)},M,!0)}}]),H}();L.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},L.events=t.default.events,L.sources=t.default.sources,L.version="1.3.7",L.imports={delta:y.default,parchment:r.default,"core/module":i.default,"core/theme":P.default};function D(H,R){if(R=(0,d.default)(!0,{container:H,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===L.DEFAULTS.theme)R.theme=P.default;else if(R.theme=L.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var S=(0,d.default)(!0,{},R.theme.DEFAULTS);[S,R].forEach(function(K){K.modules=K.modules||{},Object.keys(K.modules).forEach(function(C){K.modules[C]===!0&&(K.modules[C]={})})});var I=Object.keys(S.modules).concat(Object.keys(R.modules)),M=I.reduce(function(K,C){var q=L.import("modules/"+C);return q==null?N.error("Cannot load "+C+" module. Are you sure you registered it?"):K[C]=q.DEFAULTS||{},K},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,d.default)(!0,{},L.DEFAULTS,{modules:M},S,R),["bounds","container","scrollingContainer"].forEach(function(K){typeof R[K]=="string"&&(R[K]=document.querySelector(R[K]))}),R.modules=Object.keys(R.modules).reduce(function(K,C){return R.modules[C]&&(K[C]=R.modules[C]),K},{}),R}function z(H,R,S,I){if(this.options.strict&&!this.isEnabled()&&R===t.default.sources.USER)return new y.default;var M=S==null?null:this.getSelection(),K=this.editor.delta,C=H();if(M!=null&&(S===!0&&(S=M.index),I==null?M=J(M,C,R):I!==0&&(M=J(M,S,I,R)),this.setSelection(M,t.default.sources.SILENT)),C.length()>0){var q,F=[t.default.events.TEXT_CHANGE,C,K,R];if((q=this.emitter).emit.apply(q,[t.default.events.EDITOR_CHANGE].concat(F)),R!==t.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,F)}}return C}function V(H,R,S,I,M){var K={};return typeof H.index=="number"&&typeof H.length=="number"?typeof R!="number"?(M=I,I=S,S=R,R=H.length,H=H.index):(R=H.length,H=H.index):typeof R!="number"&&(M=I,I=S,S=R,R=0),(typeof S>"u"?"undefined":E(S))==="object"?(K=S,M=I):typeof S=="string"&&(I!=null?K[S]=I:M=S),M=M||t.default.sources.API,[H,R,K,M]}function J(H,R,S,I){if(H==null)return null;var M=void 0,K=void 0;if(R instanceof y.default){var C=[H.index,H.index+H.length].map(function($){return R.transformPosition($,I!==t.default.sources.USER)}),q=_(C,2);M=q[0],K=q[1]}else{var F=[H.index,H.index+H.length].map(function($){return $<R||$===R&&I===t.default.sources.USER?$:S>=0?$+S:Math.max(R,$+S)}),G=_(F,2);M=G[0],K=G[1]}return new o.Range(M,K-M)}v.expandConfig=D,v.overload=V,v.default=L},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function u(r,o){for(var c=0;c<o.length;c++){var n=o[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,o,c){return o&&u(r.prototype,o),c&&u(r,c),r}}(),_=function u(r,o,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,o);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:u(d,o,c)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(c)}},m=f(7),g=a(m),y=f(0),h=a(y);function a(u){return u&&u.__esModule?u:{default:u}}function e(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function t(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function s(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var i=function(u){s(r,u);function r(){return e(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"formatAt",value:function(c,n,d,k){if(r.compare(this.statics.blotName,d)<0&&h.default.query(d,h.default.Scope.BLOT)){var w=this.isolate(c,n);k&&w.wrap(d,k)}else _(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,c,n,d,k)}},{key:"optimize",value:function(c){if(_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,c),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(c,n){var d=r.order.indexOf(c),k=r.order.indexOf(n);return d>=0||k>=0?d-k:c===n?0:c<n?-1:1}}]),r}(h.default.Inline);i.allowedChildren=[i,h.default.Embed,g.default],i.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],v.default=i},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(0),_=m(E);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){h(t,e);function t(){return g(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default.Text);v.default=a},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function o(c,n){for(var d=0;d<n.length;d++){var k=n[d];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(c,k.key,k)}}return function(c,n,d){return n&&o(c.prototype,n),d&&o(c,d),c}}(),_=function o(c,n,d){c===null&&(c=Function.prototype);var k=Object.getOwnPropertyDescriptor(c,n);if(k===void 0){var w=Object.getPrototypeOf(c);return w===null?void 0:o(w,n,d)}else{if("value"in k)return k.value;var T=k.get;return T===void 0?void 0:T.call(d)}},m=f(54),g=a(m),y=f(10),h=a(y);function a(o){return o&&o.__esModule?o:{default:o}}function e(o,c){if(!(o instanceof c))throw new TypeError("Cannot call a class as a function")}function t(o,c){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:o}function s(o,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);o.prototype=Object.create(c&&c.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(o,c):o.__proto__=c)}var i=(0,h.default)("quill:events"),u=["selectionchange","mousedown","mouseup","click"];u.forEach(function(o){document.addEventListener(o,function(){for(var c=arguments.length,n=Array(c),d=0;d<c;d++)n[d]=arguments[d];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(k){if(k.__quill&&k.__quill.emitter){var w;(w=k.__quill.emitter).handleDOM.apply(w,n)}})})});var r=function(o){s(c,o);function c(){e(this,c);var n=t(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return n.listeners={},n.on("error",i.error),n}return E(c,[{key:"emit",value:function(){i.log.apply(i,arguments),_(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(d){for(var k=arguments.length,w=Array(k>1?k-1:0),T=1;T<k;T++)w[T-1]=arguments[T];(this.listeners[d.type]||[]).forEach(function(P){var A=P.node,p=P.handler;(d.target===A||A.contains(d.target))&&p.apply(void 0,[d].concat(w))})}},{key:"listenDOM",value:function(d,k,w){this.listeners[d]||(this.listeners[d]=[]),this.listeners[d].push({node:k,handler:w})}}]),c}(g.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},v.default=r},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});function E(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}var _=function m(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E(this,m),this.quill=g,this.options=y};_.DEFAULTS={},v.default=_},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=["error","warn","log","info"],_="warn";function m(y){if(E.indexOf(y)<=E.indexOf(_)){for(var h,a=arguments.length,e=Array(a>1?a-1:0),t=1;t<a;t++)e[t-1]=arguments[t];(h=console)[y].apply(h,e)}}function g(y){return E.reduce(function(h,a){return h[a]=m.bind(console,a,y),h},{})}m.level=g.level=function(y){_=y},v.default=g},function(b,v,f){var E=Array.prototype.slice,_=f(52),m=f(53),g=b.exports=function(e,t,s){return s||(s={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?s.strict?e===t:e==t:a(e,t,s)};function y(e){return e==null}function h(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function a(e,t,s){var i,u;if(y(e)||y(t)||e.prototype!==t.prototype)return!1;if(m(e))return m(t)?(e=E.call(e),t=E.call(t),g(e,t,s)):!1;if(h(e)){if(!h(t)||e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}try{var r=_(e),o=_(t)}catch{return!1}if(r.length!=o.length)return!1;for(r.sort(),o.sort(),i=r.length-1;i>=0;i--)if(r[i]!=o[i])return!1;for(i=r.length-1;i>=0;i--)if(u=r[i],!g(e[u],t[u],s))return!1;return typeof e==typeof t}},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(1),_=function(){function m(g,y,h){h===void 0&&(h={}),this.attrName=g,this.keyName=y;var a=E.Scope.TYPE&E.Scope.ATTRIBUTE;h.scope!=null?this.scope=h.scope&E.Scope.LEVEL|a:this.scope=E.Scope.ATTRIBUTE,h.whitelist!=null&&(this.whitelist=h.whitelist)}return m.keys=function(g){return[].map.call(g.attributes,function(y){return y.name})},m.prototype.add=function(g,y){return this.canAdd(g,y)?(g.setAttribute(this.keyName,y),!0):!1},m.prototype.canAdd=function(g,y){var h=E.query(g,E.Scope.BLOT&(this.scope|E.Scope.TYPE));return h==null?!1:this.whitelist==null?!0:typeof y=="string"?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1},m.prototype.remove=function(g){g.removeAttribute(this.keyName)},m.prototype.value=function(g){var y=g.getAttribute(this.keyName);return this.canAdd(g,y)&&y?y:""},m}();v.default=_},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.Code=void 0;var E=function(){function T(P,A){var p=[],O=!0,N=!1,L=void 0;try{for(var D=P[Symbol.iterator](),z;!(O=(z=D.next()).done)&&(p.push(z.value),!(A&&p.length===A));O=!0);}catch(V){N=!0,L=V}finally{try{!O&&D.return&&D.return()}finally{if(N)throw L}}return p}return function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return T(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function T(P,A){for(var p=0;p<A.length;p++){var O=A[p];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(P,O.key,O)}}return function(P,A,p){return A&&T(P.prototype,A),p&&T(P,p),P}}(),m=function T(P,A,p){P===null&&(P=Function.prototype);var O=Object.getOwnPropertyDescriptor(P,A);if(O===void 0){var N=Object.getPrototypeOf(P);return N===null?void 0:T(N,A,p)}else{if("value"in O)return O.value;var L=O.get;return L===void 0?void 0:L.call(p)}},g=f(2),y=o(g),h=f(0),a=o(h),e=f(4),t=o(e),s=f(6),i=o(s),u=f(7),r=o(u);function o(T){return T&&T.__esModule?T:{default:T}}function c(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}function n(T,P){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:T}function d(T,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);T.prototype=Object.create(P&&P.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(T,P):T.__proto__=P)}var k=function(T){d(P,T);function P(){return c(this,P),n(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P}(i.default);k.blotName="code",k.tagName="CODE";var w=function(T){d(P,T);function P(){return c(this,P),n(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return _(P,[{key:"delta",value:function(){var p=this,O=this.domNode.textContent;return O.endsWith(`
12
+ `)&&(O=O.slice(0,-1)),O.split(`
13
+ `).reduce(function(N,L){return N.insert(L).insert(`
14
+ `,p.formats())},new y.default)}},{key:"format",value:function(p,O){if(!(p===this.statics.blotName&&O)){var N=this.descendant(r.default,this.length()-1),L=E(N,1),D=L[0];D?.deleteAt(D.length()-1,1),m(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,p,O)}}},{key:"formatAt",value:function(p,O,N,L){if(O!==0&&!(a.default.query(N,a.default.Scope.BLOCK)==null||N===this.statics.blotName&&L===this.statics.formats(this.domNode))){var D=this.newlineIndex(p);if(!(D<0||D>=p+O)){var z=this.newlineIndex(p,!0)+1,V=D-z+1,J=this.isolate(z,V),H=J.next;J.format(N,L),H instanceof P&&H.formatAt(0,p-z+O-V,N,L)}}}},{key:"insertAt",value:function(p,O,N){if(N==null){var L=this.descendant(r.default,p),D=E(L,2),z=D[0],V=D[1];z.insertAt(V,O)}}},{key:"length",value:function(){var p=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
15
+ `)?p:p+1}},{key:"newlineIndex",value:function(p){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O)return this.domNode.textContent.slice(0,p).lastIndexOf(`
16
+ `);var N=this.domNode.textContent.slice(p).indexOf(`
17
+ `);return N>-1?p+N:-1}},{key:"optimize",value:function(p){this.domNode.textContent.endsWith(`
18
+ `)||this.appendChild(a.default.create("text",`
19
+ `)),m(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,p);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(p),O.moveChildren(this),O.remove())}},{key:"replace",value:function(p){m(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,p),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var N=a.default.find(O);N==null?O.parentNode.removeChild(O):N instanceof a.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(p){var O=m(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,p);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),P}(t.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",v.Code=k,v.default=w},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},_=function(){function H(R,S){var I=[],M=!0,K=!1,C=void 0;try{for(var q=R[Symbol.iterator](),F;!(M=(F=q.next()).done)&&(I.push(F.value),!(S&&I.length===S));M=!0);}catch(G){K=!0,C=G}finally{try{!M&&q.return&&q.return()}finally{if(K)throw C}}return I}return function(R,S){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return H(R,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function H(R,S){for(var I=0;I<S.length;I++){var M=S[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(R,M.key,M)}}return function(R,S,I){return S&&H(R.prototype,S),I&&H(R,I),R}}(),g=f(2),y=O(g),h=f(20),a=O(h),e=f(0),t=O(e),s=f(13),i=O(s),u=f(24),r=O(u),o=f(4),c=O(o),n=f(16),d=O(n),k=f(21),w=O(k),T=f(11),P=O(T),A=f(3),p=O(A);function O(H){return H&&H.__esModule?H:{default:H}}function N(H,R,S){return R in H?Object.defineProperty(H,R,{value:S,enumerable:!0,configurable:!0,writable:!0}):H[R]=S,H}function L(H,R){if(!(H instanceof R))throw new TypeError("Cannot call a class as a function")}var D=/^[ -~]*$/,z=function(){function H(R){L(this,H),this.scroll=R,this.delta=this.getDelta()}return m(H,[{key:"applyDelta",value:function(S){var I=this,M=!1;this.scroll.update();var K=this.scroll.length();return this.scroll.batchStart(),S=J(S),S.reduce(function(C,q){var F=q.retain||q.delete||q.insert.length||1,G=q.attributes||{};if(q.insert!=null){if(typeof q.insert=="string"){var $=q.insert;$.endsWith(`
20
+ `)&&M&&(M=!1,$=$.slice(0,-1)),C>=K&&!$.endsWith(`
21
+ `)&&(M=!0),I.scroll.insertAt(C,$);var X=I.scroll.line(C),re=_(X,2),oe=re[0],le=re[1],ce=(0,p.default)({},(0,o.bubbleFormats)(oe));if(oe instanceof c.default){var de=oe.descendant(t.default.Leaf,le),be=_(de,1),me=be[0];ce=(0,p.default)(ce,(0,o.bubbleFormats)(me))}G=a.default.attributes.diff(ce,G)||{}}else if(E(q.insert)==="object"){var W=Object.keys(q.insert)[0];if(W==null)return C;I.scroll.insertAt(C,W,q.insert[W])}K+=F}return Object.keys(G).forEach(function(Y){I.scroll.formatAt(C,F,Y,G[Y])}),C+F},0),S.reduce(function(C,q){return typeof q.delete=="number"?(I.scroll.deleteAt(C,q.delete),C):C+(q.retain||q.insert.length||1)},0),this.scroll.batchEnd(),this.update(S)}},{key:"deleteText",value:function(S,I){return this.scroll.deleteAt(S,I),this.update(new y.default().retain(S).delete(I))}},{key:"formatLine",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(K).forEach(function(C){if(!(M.scroll.whitelist!=null&&!M.scroll.whitelist[C])){var q=M.scroll.lines(S,Math.max(I,1)),F=I;q.forEach(function(G){var $=G.length();if(!(G instanceof i.default))G.format(C,K[C]);else{var X=S-G.offset(M.scroll),re=G.newlineIndex(X+F)-X+1;G.formatAt(X,re,C,K[C])}F-=$})}}),this.scroll.optimize(),this.update(new y.default().retain(S).retain(I,(0,w.default)(K)))}},{key:"formatText",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(K).forEach(function(C){M.scroll.formatAt(S,I,C,K[C])}),this.update(new y.default().retain(S).retain(I,(0,w.default)(K)))}},{key:"getContents",value:function(S,I){return this.delta.slice(S,S+I)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(S,I){return S.concat(I.delta())},new y.default)}},{key:"getFormat",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=[],K=[];I===0?this.scroll.path(S).forEach(function(q){var F=_(q,1),G=F[0];G instanceof c.default?M.push(G):G instanceof t.default.Leaf&&K.push(G)}):(M=this.scroll.lines(S,I),K=this.scroll.descendants(t.default.Leaf,S,I));var C=[M,K].map(function(q){if(q.length===0)return{};for(var F=(0,o.bubbleFormats)(q.shift());Object.keys(F).length>0;){var G=q.shift();if(G==null)return F;F=V((0,o.bubbleFormats)(G),F)}return F});return p.default.apply(p.default,C)}},{key:"getText",value:function(S,I){return this.getContents(S,I).filter(function(M){return typeof M.insert=="string"}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(S,I,M){return this.scroll.insertAt(S,I,M),this.update(new y.default().retain(S).insert(N({},I,M)))}},{key:"insertText",value:function(S,I){var M=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return I=I.replace(/\r\n/g,`
22
+ `).replace(/\r/g,`
23
+ `),this.scroll.insertAt(S,I),Object.keys(K).forEach(function(C){M.scroll.formatAt(S,I.length,C,K[C])}),this.update(new y.default().retain(S).insert(I,(0,w.default)(K)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var S=this.scroll.children.head;return S.statics.blotName!==c.default.blotName||S.children.length>1?!1:S.children.head instanceof d.default}},{key:"removeFormat",value:function(S,I){var M=this.getText(S,I),K=this.scroll.line(S+I),C=_(K,2),q=C[0],F=C[1],G=0,$=new y.default;q!=null&&(q instanceof i.default?G=q.newlineIndex(F)-F+1:G=q.length()-F,$=q.delta().slice(F,F+G-1).insert(`
24
+ `));var X=this.getContents(S,I+G),re=X.diff(new y.default().insert(M).concat($)),oe=new y.default().retain(S).concat(re);return this.applyDelta(oe)}},{key:"update",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,K=this.delta;if(I.length===1&&I[0].type==="characterData"&&I[0].target.data.match(D)&&t.default.find(I[0].target)){var C=t.default.find(I[0].target),q=(0,o.bubbleFormats)(C),F=C.offset(this.scroll),G=I[0].oldValue.replace(r.default.CONTENTS,""),$=new y.default().insert(G),X=new y.default().insert(C.value()),re=new y.default().retain(F).concat($.diff(X,M));S=re.reduce(function(oe,le){return le.insert?oe.insert(le.insert,q):oe.push(le)},new y.default),this.delta=K.compose(S)}else this.delta=this.getDelta(),(!S||!(0,P.default)(K.compose(S),this.delta))&&(S=K.diff(this.delta,M));return S}}]),H}();function V(H,R){return Object.keys(R).reduce(function(S,I){return H[I]==null||(R[I]===H[I]?S[I]=R[I]:Array.isArray(R[I])?R[I].indexOf(H[I])<0&&(S[I]=R[I].concat([H[I]])):S[I]=[R[I],H[I]]),S},{})}function J(H){return H.reduce(function(R,S){if(S.insert===1){var I=(0,w.default)(S.attributes);return delete I.image,R.insert({image:S.attributes.image},I)}if(S.attributes!=null&&(S.attributes.list===!0||S.attributes.bullet===!0)&&(S=(0,w.default)(S),S.attributes.list?S.attributes.list="ordered":(S.attributes.list="bullet",delete S.attributes.bullet)),typeof S.insert=="string"){var M=S.insert.replace(/\r\n/g,`
25
+ `).replace(/\r/g,`
26
+ `);return R.insert(M,S.attributes)}return R.push(S)},new y.default)}v.default=z},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.Range=void 0;var E=function(){function T(P,A){var p=[],O=!0,N=!1,L=void 0;try{for(var D=P[Symbol.iterator](),z;!(O=(z=D.next()).done)&&(p.push(z.value),!(A&&p.length===A));O=!0);}catch(V){N=!0,L=V}finally{try{!O&&D.return&&D.return()}finally{if(N)throw L}}return p}return function(P,A){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return T(P,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function T(P,A){for(var p=0;p<A.length;p++){var O=A[p];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(P,O.key,O)}}return function(P,A,p){return A&&T(P.prototype,A),p&&T(P,p),P}}(),m=f(0),g=r(m),y=f(21),h=r(y),a=f(11),e=r(a),t=f(8),s=r(t),i=f(10),u=r(i);function r(T){return T&&T.__esModule?T:{default:T}}function o(T){if(Array.isArray(T)){for(var P=0,A=Array(T.length);P<T.length;P++)A[P]=T[P];return A}else return Array.from(T)}function c(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}var n=(0,u.default)("quill:selection"),d=function T(P){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;c(this,T),this.index=P,this.length=A},k=function(){function T(P,A){var p=this;c(this,T),this.emitter=A,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=g.default.create("cursor",this),this.lastRange=this.savedRange=new d(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){p.mouseDown||setTimeout(p.update.bind(p,s.default.sources.USER),1)}),this.emitter.on(s.default.events.EDITOR_CHANGE,function(O,N){O===s.default.events.TEXT_CHANGE&&N.length()>0&&p.update(s.default.sources.SILENT)}),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,function(){if(p.hasFocus()){var O=p.getNativeRange();O!=null&&O.start.node!==p.cursor.textNode&&p.emitter.once(s.default.events.SCROLL_UPDATE,function(){try{p.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,function(O,N){if(N.range){var L=N.range,D=L.startNode,z=L.startOffset,V=L.endNode,J=L.endOffset;p.setNativeRange(D,z,V,J)}}),this.update(s.default.sources.SILENT)}return _(T,[{key:"handleComposition",value:function(){var A=this;this.root.addEventListener("compositionstart",function(){A.composing=!0}),this.root.addEventListener("compositionend",function(){if(A.composing=!1,A.cursor.parent){var p=A.cursor.restore();if(!p)return;setTimeout(function(){A.setNativeRange(p.startNode,p.startOffset,p.endNode,p.endOffset)},1)}})}},{key:"handleDragging",value:function(){var A=this;this.emitter.listenDOM("mousedown",document.body,function(){A.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){A.mouseDown=!1,A.update(s.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(A,p){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[A])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||g.default.query(A,g.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var N=g.default.find(O.start.node,!1);if(N==null)return;if(N instanceof g.default.Leaf){var L=N.split(O.start.offset);N.parent.insertBefore(this.cursor,L)}else N.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(A,p),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(A){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();A=Math.min(A,O-1),p=Math.min(A+p,O-1)-A;var N=void 0,L=this.scroll.leaf(A),D=E(L,2),z=D[0],V=D[1];if(z==null)return null;var J=z.position(V,!0),H=E(J,2);N=H[0],V=H[1];var R=document.createRange();if(p>0){R.setStart(N,V);var S=this.scroll.leaf(A+p),I=E(S,2);if(z=I[0],V=I[1],z==null)return null;var M=z.position(V,!0),K=E(M,2);return N=K[0],V=K[1],R.setEnd(N,V),R.getBoundingClientRect()}else{var C="left",q=void 0;return N instanceof Text?(V<N.data.length?(R.setStart(N,V),R.setEnd(N,V+1)):(R.setStart(N,V-1),R.setEnd(N,V),C="right"),q=R.getBoundingClientRect()):(q=z.domNode.getBoundingClientRect(),V>0&&(C="right")),{bottom:q.top+q.height,height:q.height,left:q[C],right:q[C],top:q.top,width:0}}}},{key:"getNativeRange",value:function(){var A=document.getSelection();if(A==null||A.rangeCount<=0)return null;var p=A.getRangeAt(0);if(p==null)return null;var O=this.normalizeNative(p);return n.info("getNativeRange",O),O}},{key:"getRange",value:function(){var A=this.getNativeRange();if(A==null)return[null,null];var p=this.normalizedToRange(A);return[p,A]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(A){var p=this,O=[[A.start.node,A.start.offset]];A.native.collapsed||O.push([A.end.node,A.end.offset]);var N=O.map(function(z){var V=E(z,2),J=V[0],H=V[1],R=g.default.find(J,!0),S=R.offset(p.scroll);return H===0?S:R instanceof g.default.Container?S+R.length():S+R.index(J,H)}),L=Math.min(Math.max.apply(Math,o(N)),this.scroll.length()-1),D=Math.min.apply(Math,[L].concat(o(N)));return new d(D,L-D)}},{key:"normalizeNative",value:function(A){if(!w(this.root,A.startContainer)||!A.collapsed&&!w(this.root,A.endContainer))return null;var p={start:{node:A.startContainer,offset:A.startOffset},end:{node:A.endContainer,offset:A.endOffset},native:A};return[p.start,p.end].forEach(function(O){for(var N=O.node,L=O.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>L)N=N.childNodes[L],L=0;else if(N.childNodes.length===L)N=N.lastChild,L=N instanceof Text?N.data.length:N.childNodes.length+1;else break;O.node=N,O.offset=L}),p}},{key:"rangeToNative",value:function(A){var p=this,O=A.collapsed?[A.index]:[A.index,A.index+A.length],N=[],L=this.scroll.length();return O.forEach(function(D,z){D=Math.min(L-1,D);var V=void 0,J=p.scroll.leaf(D),H=E(J,2),R=H[0],S=H[1],I=R.position(S,z!==0),M=E(I,2);V=M[0],S=M[1],N.push(V,S)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(A){var p=this.lastRange;if(p!=null){var O=this.getBounds(p.index,p.length);if(O!=null){var N=this.scroll.length()-1,L=this.scroll.line(Math.min(p.index,N)),D=E(L,1),z=D[0],V=z;if(p.length>0){var J=this.scroll.line(Math.min(p.index+p.length,N)),H=E(J,1);V=H[0]}if(!(z==null||V==null)){var R=A.getBoundingClientRect();O.top<R.top?A.scrollTop-=R.top-O.top:O.bottom>R.bottom&&(A.scrollTop+=O.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(A,p){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:p,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",A,p,O,N),!(A!=null&&(this.root.parentNode==null||A.parentNode==null||O.parentNode==null))){var D=document.getSelection();if(D!=null)if(A!=null){this.hasFocus()||this.root.focus();var z=(this.getNativeRange()||{}).native;if(z==null||L||A!==z.startContainer||p!==z.startOffset||O!==z.endContainer||N!==z.endOffset){A.tagName=="BR"&&(p=[].indexOf.call(A.parentNode.childNodes,A),A=A.parentNode),O.tagName=="BR"&&(N=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var V=document.createRange();V.setStart(A,p),V.setEnd(O,N),D.removeAllRanges(),D.addRange(V)}}else D.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(A){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s.default.sources.API;if(typeof p=="string"&&(O=p,p=!1),n.info("setRange",A),A!=null){var N=this.rangeToNative(A);this.setNativeRange.apply(this,o(N).concat([p]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s.default.sources.USER,p=this.lastRange,O=this.getRange(),N=E(O,2),L=N[0],D=N[1];if(this.lastRange=L,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(p,this.lastRange)){var z;!this.composing&&D!=null&&D.native.collapsed&&D.start.node!==this.cursor.textNode&&this.cursor.restore();var V=[s.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(p),A];if((z=this.emitter).emit.apply(z,[s.default.events.EDITOR_CHANGE].concat(V)),A!==s.default.sources.SILENT){var J;(J=this.emitter).emit.apply(J,V)}}}}]),T}();function w(T,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),T.contains(P)}v.Range=d,v.default=k},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function s(i,u){for(var r=0;r<u.length;r++){var o=u[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}return function(i,u,r){return u&&s(i.prototype,u),r&&s(i,r),i}}(),_=function s(i,u,r){i===null&&(i=Function.prototype);var o=Object.getOwnPropertyDescriptor(i,u);if(o===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:s(c,u,r)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(r)}},m=f(0),g=y(m);function y(s){return s&&s.__esModule?s:{default:s}}function h(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}function a(s,i){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:s}function e(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);s.prototype=Object.create(i&&i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(s,i):s.__proto__=i)}var t=function(s){e(i,s);function i(){return h(this,i),a(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return E(i,[{key:"insertInto",value:function(r,o){r.children.length===0?_(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"insertInto",this).call(this,r,o):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),i}(g.default.Embed);t.blotName="break",t.tagName="BR",v.default=t},function(b,v,f){var E=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])};return function(e,t){a(e,t);function s(){this.constructor=e}e.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)}}();Object.defineProperty(v,"__esModule",{value:!0});var _=f(44),m=f(30),g=f(1),y=function(a){E(e,a);function e(t){var s=a.call(this,t)||this;return s.build(),s}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){a.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new _.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(s){try{var i=h(s);t.insertBefore(i,t.children.head||void 0)}catch(u){if(u instanceof g.ParchmentError)return;throw u}})},e.prototype.deleteAt=function(t,s){if(t===0&&s===this.length())return this.remove();this.children.forEachAt(t,s,function(i,u,r){i.deleteAt(u,r)})},e.prototype.descendant=function(t,s){var i=this.children.find(s),u=i[0],r=i[1];return t.blotName==null&&t(u)||t.blotName!=null&&u instanceof t?[u,r]:u instanceof e?u.descendant(t,r):[null,-1]},e.prototype.descendants=function(t,s,i){s===void 0&&(s=0),i===void 0&&(i=Number.MAX_VALUE);var u=[],r=i;return this.children.forEachAt(s,i,function(o,c,n){(t.blotName==null&&t(o)||t.blotName!=null&&o instanceof t)&&u.push(o),o instanceof e&&(u=u.concat(o.descendants(t,c,r))),r-=n}),u},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),a.prototype.detach.call(this)},e.prototype.formatAt=function(t,s,i,u){this.children.forEachAt(t,s,function(r,o,c){r.formatAt(o,c,i,u)})},e.prototype.insertAt=function(t,s,i){var u=this.children.find(t),r=u[0],o=u[1];if(r)r.insertAt(o,s,i);else{var c=i==null?g.create("text",s):g.create(s,i);this.appendChild(c)}},e.prototype.insertBefore=function(t,s){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(i){return t instanceof i}))throw new g.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,s)},e.prototype.length=function(){return this.children.reduce(function(t,s){return t+s.length()},0)},e.prototype.moveChildren=function(t,s){this.children.forEach(function(i){t.insertBefore(i,s)})},e.prototype.optimize=function(t){if(a.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var s=g.create(this.statics.defaultChild);this.appendChild(s),s.optimize(t)}else this.remove()},e.prototype.path=function(t,s){s===void 0&&(s=!1);var i=this.children.find(t,s),u=i[0],r=i[1],o=[[this,t]];return u instanceof e?o.concat(u.path(r,s)):(u!=null&&o.push([u,r]),o)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),a.prototype.replace.call(this,t)},e.prototype.split=function(t,s){if(s===void 0&&(s=!1),!s){if(t===0)return this;if(t===this.length())return this.next}var i=this.clone();return this.parent.insertBefore(i,this.next),this.children.forEachAt(t,this.length(),function(u,r,o){u=u.split(r,s),i.appendChild(u)}),i},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,s){var i=this,u=[],r=[];t.forEach(function(o){o.target===i.domNode&&o.type==="childList"&&(u.push.apply(u,o.addedNodes),r.push.apply(r,o.removedNodes))}),r.forEach(function(o){if(!(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var c=g.find(o);c!=null&&(c.domNode.parentNode==null||c.domNode.parentNode===i.domNode)&&c.detach()}}),u.filter(function(o){return o.parentNode==i.domNode}).sort(function(o,c){return o===c?0:o.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(o){var c=null;o.nextSibling!=null&&(c=g.find(o.nextSibling));var n=h(o);(n.next!=c||n.next==null)&&(n.parent!=null&&n.parent.removeChild(i),i.insertBefore(n,c||void 0))})},e}(m.default);function h(a){var e=g.find(a);if(e==null)try{e=g.create(a)}catch{e=g.create(g.Scope.INLINE),[].slice.call(a.childNodes).forEach(function(s){e.domNode.appendChild(s)}),a.parentNode&&a.parentNode.replaceChild(e.domNode,a),e.attach()}return e}v.default=y},function(b,v,f){var E=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])};return function(e,t){a(e,t);function s(){this.constructor=e}e.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)}}();Object.defineProperty(v,"__esModule",{value:!0});var _=f(12),m=f(31),g=f(17),y=f(1),h=function(a){E(e,a);function e(t){var s=a.call(this,t)||this;return s.attributes=new m.default(s.domNode),s}return e.formats=function(t){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()},e.prototype.format=function(t,s){var i=y.query(t);i instanceof _.default?this.attributes.attribute(i,s):s&&i!=null&&(t!==this.statics.blotName||this.formats()[t]!==s)&&this.replaceWith(t,s)},e.prototype.formats=function(){var t=this.attributes.values(),s=this.statics.formats(this.domNode);return s!=null&&(t[this.statics.blotName]=s),t},e.prototype.replaceWith=function(t,s){var i=a.prototype.replaceWith.call(this,t,s);return this.attributes.copy(i),i},e.prototype.update=function(t,s){var i=this;a.prototype.update.call(this,t,s),t.some(function(u){return u.target===i.domNode&&u.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,s){var i=a.prototype.wrap.call(this,t,s);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(g.default);v.default=h},function(b,v,f){var E=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var e in a)a.hasOwnProperty(e)&&(h[e]=a[e])};return function(h,a){y(h,a);function e(){this.constructor=h}h.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(v,"__esModule",{value:!0});var _=f(30),m=f(1),g=function(y){E(h,y);function h(){return y!==null&&y.apply(this,arguments)||this}return h.value=function(a){return!0},h.prototype.index=function(a,e){return this.domNode===a||this.domNode.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},h.prototype.position=function(a,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return a>0&&(t+=1),[this.parent.domNode,t]},h.prototype.value=function(){var a;return a={},a[this.statics.blotName]=this.statics.value(this.domNode)||!0,a},h.scope=m.Scope.INLINE_BLOT,h}(_.default);v.default=g},function(b,v,f){var E=f(11),_=f(3),m={attributes:{compose:function(y,h,a){typeof y!="object"&&(y={}),typeof h!="object"&&(h={});var e=_(!0,{},h);a||(e=Object.keys(e).reduce(function(s,i){return e[i]!=null&&(s[i]=e[i]),s},{}));for(var t in y)y[t]!==void 0&&h[t]===void 0&&(e[t]=y[t]);return Object.keys(e).length>0?e:void 0},diff:function(y,h){typeof y!="object"&&(y={}),typeof h!="object"&&(h={});var a=Object.keys(y).concat(Object.keys(h)).reduce(function(e,t){return E(y[t],h[t])||(e[t]=h[t]===void 0?null:h[t]),e},{});return Object.keys(a).length>0?a:void 0},transform:function(y,h,a){if(typeof y!="object")return h;if(typeof h=="object"){if(!a)return h;var e=Object.keys(h).reduce(function(t,s){return y[s]===void 0&&(t[s]=h[s]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(y){return new g(y)},length:function(y){return typeof y.delete=="number"?y.delete:typeof y.retain=="number"?y.retain:typeof y.insert=="string"?y.insert.length:1}};function g(y){this.ops=y,this.index=0,this.offset=0}g.prototype.hasNext=function(){return this.peekLength()<1/0},g.prototype.next=function(y){y||(y=1/0);var h=this.ops[this.index];if(h){var a=this.offset,e=m.length(h);if(y>=e-a?(y=e-a,this.index+=1,this.offset=0):this.offset+=y,typeof h.delete=="number")return{delete:y};var t={};return h.attributes&&(t.attributes=h.attributes),typeof h.retain=="number"?t.retain=y:typeof h.insert=="string"?t.insert=h.insert.substr(a,y):t.insert=h.insert,t}else return{retain:1/0}},g.prototype.peek=function(){return this.ops[this.index]},g.prototype.peekLength=function(){return this.ops[this.index]?m.length(this.ops[this.index])-this.offset:1/0},g.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},g.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var y=this.offset,h=this.index,a=this.next(),e=this.ops.slice(this.index);return this.offset=y,this.index=h,[a].concat(e)}else return[]},b.exports=m},function(b,v){var f=function(){function E(i,u){return u!=null&&i instanceof u}var _;try{_=Map}catch{_=function(){}}var m;try{m=Set}catch{m=function(){}}var g;try{g=Promise}catch{g=function(){}}function y(i,u,r,o,c){typeof u=="object"&&(r=u.depth,o=u.prototype,c=u.includeNonEnumerable,u=u.circular);var n=[],d=[],k=typeof Buffer<"u";typeof u>"u"&&(u=!0),typeof r>"u"&&(r=1/0);function w(T,P){if(T===null)return null;if(P===0)return T;var A,p;if(typeof T!="object")return T;if(E(T,_))A=new _;else if(E(T,m))A=new m;else if(E(T,g))A=new g(function(R,S){T.then(function(I){R(w(I,P-1))},function(I){S(w(I,P-1))})});else if(y.__isArray(T))A=[];else if(y.__isRegExp(T))A=new RegExp(T.source,s(T)),T.lastIndex&&(A.lastIndex=T.lastIndex);else if(y.__isDate(T))A=new Date(T.getTime());else{if(k&&Buffer.isBuffer(T))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(T.length):A=new Buffer(T.length),T.copy(A),A;E(T,Error)?A=Object.create(T):typeof o>"u"?(p=Object.getPrototypeOf(T),A=Object.create(p)):(A=Object.create(o),p=o)}if(u){var O=n.indexOf(T);if(O!=-1)return d[O];n.push(T),d.push(A)}E(T,_)&&T.forEach(function(R,S){var I=w(S,P-1),M=w(R,P-1);A.set(I,M)}),E(T,m)&&T.forEach(function(R){var S=w(R,P-1);A.add(S)});for(var N in T){var L;p&&(L=Object.getOwnPropertyDescriptor(p,N)),!(L&&L.set==null)&&(A[N]=w(T[N],P-1))}if(Object.getOwnPropertySymbols)for(var D=Object.getOwnPropertySymbols(T),N=0;N<D.length;N++){var z=D[N],V=Object.getOwnPropertyDescriptor(T,z);V&&!V.enumerable&&!c||(A[z]=w(T[z],P-1),V.enumerable||Object.defineProperty(A,z,{enumerable:!1}))}if(c)for(var J=Object.getOwnPropertyNames(T),N=0;N<J.length;N++){var H=J[N],V=Object.getOwnPropertyDescriptor(T,H);V&&V.enumerable||(A[H]=w(T[H],P-1),Object.defineProperty(A,H,{enumerable:!1}))}return A}return w(i,r)}y.clonePrototype=function(u){if(u===null)return null;var r=function(){};return r.prototype=u,new r};function h(i){return Object.prototype.toString.call(i)}y.__objToStr=h;function a(i){return typeof i=="object"&&h(i)==="[object Date]"}y.__isDate=a;function e(i){return typeof i=="object"&&h(i)==="[object Array]"}y.__isArray=e;function t(i){return typeof i=="object"&&h(i)==="[object RegExp]"}y.__isRegExp=t;function s(i){var u="";return i.global&&(u+="g"),i.ignoreCase&&(u+="i"),i.multiline&&(u+="m"),u}return y.__getRegExpFlags=s,y}();typeof b=="object"&&b.exports&&(b.exports=f)},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function A(p,O){var N=[],L=!0,D=!1,z=void 0;try{for(var V=p[Symbol.iterator](),J;!(L=(J=V.next()).done)&&(N.push(J.value),!(O&&N.length===O));L=!0);}catch(H){D=!0,z=H}finally{try{!L&&V.return&&V.return()}finally{if(D)throw z}}return N}return function(p,O){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return A(p,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function A(p,O){for(var N=0;N<O.length;N++){var L=O[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(p,L.key,L)}}return function(p,O,N){return O&&A(p.prototype,O),N&&A(p,N),p}}(),m=function A(p,O,N){p===null&&(p=Function.prototype);var L=Object.getOwnPropertyDescriptor(p,O);if(L===void 0){var D=Object.getPrototypeOf(p);return D===null?void 0:A(D,O,N)}else{if("value"in L)return L.value;var z=L.get;return z===void 0?void 0:z.call(N)}},g=f(0),y=n(g),h=f(8),a=n(h),e=f(4),t=n(e),s=f(16),i=n(s),u=f(13),r=n(u),o=f(25),c=n(o);function n(A){return A&&A.__esModule?A:{default:A}}function d(A,p){if(!(A instanceof p))throw new TypeError("Cannot call a class as a function")}function k(A,p){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:A}function w(A,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);A.prototype=Object.create(p&&p.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(A,p):A.__proto__=p)}function T(A){return A instanceof t.default||A instanceof e.BlockEmbed}var P=function(A){w(p,A);function p(O,N){d(this,p);var L=k(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,O));return L.emitter=N.emitter,Array.isArray(N.whitelist)&&(L.whitelist=N.whitelist.reduce(function(D,z){return D[z]=!0,D},{})),L.domNode.addEventListener("DOMNodeInserted",function(){}),L.optimize(),L.enable(),L}return _(p,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,L){var D=this.line(N),z=E(D,2),V=z[0],J=z[1],H=this.line(N+L),R=E(H,1),S=R[0];if(m(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"deleteAt",this).call(this,N,L),S!=null&&V!==S&&J>0){if(V instanceof e.BlockEmbed||S instanceof e.BlockEmbed){this.optimize();return}if(V instanceof r.default){var I=V.newlineIndex(V.length(),!0);if(I>-1&&(V=V.split(I+1),V===S)){this.optimize();return}}else if(S instanceof r.default){var M=S.newlineIndex(0);M>-1&&S.split(M+1)}var K=S.children.head instanceof i.default?null:S.children.head;V.moveChildren(S,K),V.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,L,D,z){this.whitelist!=null&&!this.whitelist[D]||(m(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"formatAt",this).call(this,N,L,D,z),this.optimize())}},{key:"insertAt",value:function(N,L,D){if(!(D!=null&&this.whitelist!=null&&!this.whitelist[L])){if(N>=this.length())if(D==null||y.default.query(L,y.default.Scope.BLOCK)==null){var z=y.default.create(this.statics.defaultChild);this.appendChild(z),D==null&&L.endsWith(`
27
+ `)&&(L=L.slice(0,-1)),z.insertAt(0,L,D)}else{var V=y.default.create(L,D);this.appendChild(V)}else m(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,N,L,D);this.optimize()}}},{key:"insertBefore",value:function(N,L){if(N.statics.scope===y.default.Scope.INLINE_BLOT){var D=y.default.create(this.statics.defaultChild);D.appendChild(N),N=D}m(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertBefore",this).call(this,N,L)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(T,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,D=function z(V,J,H){var R=[],S=H;return V.children.forEachAt(J,H,function(I,M,K){T(I)?R.push(I):I instanceof y.default.Container&&(R=R.concat(z(I,M,S))),S-=K}),R};return D(this,N,L)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(m(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,N,L),N.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,N,L))}},{key:"path",value:function(N){return m(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var L=a.default.sources.USER;typeof N=="string"&&(L=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,L,N),m(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,L,N)}}}]),p}(y.default.Scroll);P.blotName="scroll",P.className="ql-editor",P.tagName="DIV",P.defaultChild="block",P.allowedChildren=[t.default,e.BlockEmbed,c.default],v.default=P},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.SHORTKEY=v.default=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},_=function(){function q(F,G){var $=[],X=!0,re=!1,oe=void 0;try{for(var le=F[Symbol.iterator](),ce;!(X=(ce=le.next()).done)&&($.push(ce.value),!(G&&$.length===G));X=!0);}catch(de){re=!0,oe=de}finally{try{!X&&le.return&&le.return()}finally{if(re)throw oe}}return $}return function(F,G){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return q(F,G);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function q(F,G){for(var $=0;$<G.length;$++){var X=G[$];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(F,X.key,X)}}return function(F,G,$){return G&&q(F.prototype,G),$&&q(F,$),F}}(),g=f(21),y=A(g),h=f(11),a=A(h),e=f(3),t=A(e),s=f(2),i=A(s),u=f(20),r=A(u),o=f(0),c=A(o),n=f(5),d=A(n),k=f(10),w=A(k),T=f(9),P=A(T);function A(q){return q&&q.__esModule?q:{default:q}}function p(q,F,G){return F in q?Object.defineProperty(q,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):q[F]=G,q}function O(q,F){if(!(q instanceof F))throw new TypeError("Cannot call a class as a function")}function N(q,F){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:q}function L(q,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);q.prototype=Object.create(F&&F.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(q,F):q.__proto__=F)}var D=(0,w.default)("quill:keyboard"),z=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",V=function(q){L(F,q),m(F,null,[{key:"match",value:function($,X){return X=C(X),["altKey","ctrlKey","metaKey","shiftKey"].some(function(re){return!!X[re]!==$[re]&&X[re]!==null})?!1:X.key===($.which||$.keyCode)}}]);function F(G,$){O(this,F);var X=N(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,G,$));return X.bindings={},Object.keys(X.options.bindings).forEach(function(re){re==="list autofill"&&G.scroll.whitelist!=null&&!G.scroll.whitelist.list||X.options.bindings[re]&&X.addBinding(X.options.bindings[re])}),X.addBinding({key:F.keys.ENTER,shiftKey:null},I),X.addBinding({key:F.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(X.addBinding({key:F.keys.BACKSPACE},{collapsed:!0},H),X.addBinding({key:F.keys.DELETE},{collapsed:!0},R)):(X.addBinding({key:F.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},H),X.addBinding({key:F.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),X.addBinding({key:F.keys.BACKSPACE},{collapsed:!1},S),X.addBinding({key:F.keys.DELETE},{collapsed:!1},S),X.addBinding({key:F.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},H),X.listen(),X}return m(F,[{key:"addBinding",value:function($){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oe=C($);if(oe==null||oe.key==null)return D.warn("Attempted to add invalid keyboard binding",oe);typeof X=="function"&&(X={handler:X}),typeof re=="function"&&(re={handler:re}),oe=(0,t.default)(oe,X,re),this.bindings[oe.key]=this.bindings[oe.key]||[],this.bindings[oe.key].push(oe)}},{key:"listen",value:function(){var $=this;this.quill.root.addEventListener("keydown",function(X){if(!X.defaultPrevented){var re=X.which||X.keyCode,oe=($.bindings[re]||[]).filter(function(ve){return F.match(X,ve)});if(oe.length!==0){var le=$.quill.getSelection();if(!(le==null||!$.quill.hasFocus())){var ce=$.quill.getLine(le.index),de=_(ce,2),be=de[0],me=de[1],W=$.quill.getLeaf(le.index),Y=_(W,2),te=Y[0],ne=Y[1],Q=le.length===0?[te,ne]:$.quill.getLeaf(le.index+le.length),fe=_(Q,2),ae=fe[0],ue=fe[1],Ne=te instanceof c.default.Text?te.value().slice(0,ne):"",Ae=ae instanceof c.default.Text?ae.value().slice(ue):"",ye={collapsed:le.length===0,empty:le.length===0&&be.length()<=1,format:$.quill.getFormat(le),offset:me,prefix:Ne,suffix:Ae},We=oe.some(function(ve){if(ve.collapsed!=null&&ve.collapsed!==ye.collapsed||ve.empty!=null&&ve.empty!==ye.empty||ve.offset!=null&&ve.offset!==ye.offset)return!1;if(Array.isArray(ve.format)){if(ve.format.every(function(Ie){return ye.format[Ie]==null}))return!1}else if(E(ve.format)==="object"&&!Object.keys(ve.format).every(function(Ie){return ve.format[Ie]===!0?ye.format[Ie]!=null:ve.format[Ie]===!1?ye.format[Ie]==null:(0,a.default)(ve.format[Ie],ye.format[Ie])}))return!1;return ve.prefix!=null&&!ve.prefix.test(ye.prefix)||ve.suffix!=null&&!ve.suffix.test(ye.suffix)?!1:ve.handler.call($,le,ye)!==!0});We&&X.preventDefault()}}}})}}]),F}(P.default);V.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},V.DEFAULTS={bindings:{bold:K("bold"),italic:K("italic"),underline:K("underline"),indent:{key:V.keys.TAB,format:["blockquote","indent","list"],handler:function(F,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:V.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(F,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:V.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(F,G){G.format.indent!=null?this.quill.format("indent","-1",d.default.sources.USER):G.format.list!=null&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:V.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(F){this.quill.deleteText(F.index-1,1,d.default.sources.USER)}},tab:{key:V.keys.TAB,handler:function(F){this.quill.history.cutoff();var G=new i.default().retain(F.index).delete(F.length).insert(" ");this.quill.updateContents(G,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(F.index+1,d.default.sources.SILENT)}},"list empty enter":{key:V.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(F,G){this.quill.format("list",!1,d.default.sources.USER),G.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:V.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(F){var G=this.quill.getLine(F.index),$=_(G,2),X=$[0],re=$[1],oe=(0,t.default)({},X.formats(),{list:"checked"}),le=new i.default().retain(F.index).insert(`
28
+ `,oe).retain(X.length()-re-1).retain(1,{list:"unchecked"});this.quill.updateContents(le,d.default.sources.USER),this.quill.setSelection(F.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:V.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(F,G){var $=this.quill.getLine(F.index),X=_($,2),re=X[0],oe=X[1],le=new i.default().retain(F.index).insert(`
29
+ `,G.format).retain(re.length()-oe-1).retain(1,{header:null});this.quill.updateContents(le,d.default.sources.USER),this.quill.setSelection(F.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(F,G){var $=G.prefix.length,X=this.quill.getLine(F.index),re=_(X,2),oe=re[0],le=re[1];if(le>$)return!0;var ce=void 0;switch(G.prefix.trim()){case"[]":case"[ ]":ce="unchecked";break;case"[x]":ce="checked";break;case"-":case"*":ce="bullet";break;default:ce="ordered"}this.quill.insertText(F.index," ",d.default.sources.USER),this.quill.history.cutoff();var de=new i.default().retain(F.index-le).delete($+1).retain(oe.length()-2-le).retain(1,{list:ce});this.quill.updateContents(de,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(F.index-$,d.default.sources.SILENT)}},"code exit":{key:V.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(F){var G=this.quill.getLine(F.index),$=_(G,2),X=$[0],re=$[1],oe=new i.default().retain(F.index+X.length()-re-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(oe,d.default.sources.USER)}},"embed left":J(V.keys.LEFT,!1),"embed left shift":J(V.keys.LEFT,!0),"embed right":J(V.keys.RIGHT,!1),"embed right shift":J(V.keys.RIGHT,!0)}};function J(q,F){var G,$=q===V.keys.LEFT?"prefix":"suffix";return G={key:q,shiftKey:F,altKey:null},p(G,$,/^$/),p(G,"handler",function(re){var oe=re.index;q===V.keys.RIGHT&&(oe+=re.length+1);var le=this.quill.getLeaf(oe),ce=_(le,1),de=ce[0];return de instanceof c.default.Embed?(q===V.keys.LEFT?F?this.quill.setSelection(re.index-1,re.length+1,d.default.sources.USER):this.quill.setSelection(re.index-1,d.default.sources.USER):F?this.quill.setSelection(re.index,re.length+1,d.default.sources.USER):this.quill.setSelection(re.index+re.length+1,d.default.sources.USER),!1):!0}),G}function H(q,F){if(!(q.index===0||this.quill.getLength()<=1)){var G=this.quill.getLine(q.index),$=_(G,1),X=$[0],re={};if(F.offset===0){var oe=this.quill.getLine(q.index-1),le=_(oe,1),ce=le[0];if(ce!=null&&ce.length()>1){var de=X.formats(),be=this.quill.getFormat(q.index-1,1);re=r.default.attributes.diff(de,be)||{}}}var me=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(F.prefix)?2:1;this.quill.deleteText(q.index-me,me,d.default.sources.USER),Object.keys(re).length>0&&this.quill.formatLine(q.index-me,me,re,d.default.sources.USER),this.quill.focus()}}function R(q,F){var G=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(F.suffix)?2:1;if(!(q.index>=this.quill.getLength()-G)){var $={},X=0,re=this.quill.getLine(q.index),oe=_(re,1),le=oe[0];if(F.offset>=le.length()-1){var ce=this.quill.getLine(q.index+1),de=_(ce,1),be=de[0];if(be){var me=le.formats(),W=this.quill.getFormat(q.index,1);$=r.default.attributes.diff(me,W)||{},X=be.length()}}this.quill.deleteText(q.index,G,d.default.sources.USER),Object.keys($).length>0&&this.quill.formatLine(q.index+X-1,G,$,d.default.sources.USER)}}function S(q){var F=this.quill.getLines(q),G={};if(F.length>1){var $=F[0].formats(),X=F[F.length-1].formats();G=r.default.attributes.diff(X,$)||{}}this.quill.deleteText(q,d.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(q.index,1,G,d.default.sources.USER),this.quill.setSelection(q.index,d.default.sources.SILENT),this.quill.focus()}function I(q,F){var G=this;q.length>0&&this.quill.scroll.deleteAt(q.index,q.length);var $=Object.keys(F.format).reduce(function(X,re){return c.default.query(re,c.default.Scope.BLOCK)&&!Array.isArray(F.format[re])&&(X[re]=F.format[re]),X},{});this.quill.insertText(q.index,`
30
+ `,$,d.default.sources.USER),this.quill.setSelection(q.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(F.format).forEach(function(X){$[X]==null&&(Array.isArray(F.format[X])||X!=="link"&&G.quill.format(X,F.format[X],d.default.sources.USER))})}function M(q){return{key:V.keys.TAB,shiftKey:!q,format:{"code-block":!0},handler:function(G){var $=c.default.query("code-block"),X=G.index,re=G.length,oe=this.quill.scroll.descendant($,X),le=_(oe,2),ce=le[0],de=le[1];if(ce!=null){var be=this.quill.getIndex(ce),me=ce.newlineIndex(de,!0)+1,W=ce.newlineIndex(be+de+re),Y=ce.domNode.textContent.slice(me,W).split(`
31
+ `);de=0,Y.forEach(function(te,ne){q?(ce.insertAt(me+de,$.TAB),de+=$.TAB.length,ne===0?X+=$.TAB.length:re+=$.TAB.length):te.startsWith($.TAB)&&(ce.deleteAt(me+de,$.TAB.length),de-=$.TAB.length,ne===0?X-=$.TAB.length:re-=$.TAB.length),de+=te.length+1}),this.quill.update(d.default.sources.USER),this.quill.setSelection(X,re,d.default.sources.SILENT)}}}}function K(q){return{key:q[0].toUpperCase(),shortKey:!0,handler:function(G,$){this.quill.format(q,!$.format[q],d.default.sources.USER)}}}function C(q){if(typeof q=="string"||typeof q=="number")return C({key:q});if((typeof q>"u"?"undefined":E(q))==="object"&&(q=(0,y.default)(q,!1)),typeof q.key=="string")if(V.keys[q.key.toUpperCase()]!=null)q.key=V.keys[q.key.toUpperCase()];else if(q.key.length===1)q.key=q.key.toUpperCase().charCodeAt(0);else return null;return q.shortKey&&(q[z]=q.shortKey,delete q.shortKey),q}v.default=V,v.SHORTKEY=z},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function r(o,c){var n=[],d=!0,k=!1,w=void 0;try{for(var T=o[Symbol.iterator](),P;!(d=(P=T.next()).done)&&(n.push(P.value),!(c&&n.length===c));d=!0);}catch(A){k=!0,w=A}finally{try{!d&&T.return&&T.return()}finally{if(k)throw w}}return n}return function(o,c){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return r(o,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function r(o,c,n){o===null&&(o=Function.prototype);var d=Object.getOwnPropertyDescriptor(o,c);if(d===void 0){var k=Object.getPrototypeOf(o);return k===null?void 0:r(k,c,n)}else{if("value"in d)return d.value;var w=d.get;return w===void 0?void 0:w.call(n)}},m=function(){function r(o,c){for(var n=0;n<c.length;n++){var d=c[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}return function(o,c,n){return c&&r(o.prototype,c),n&&r(o,n),o}}(),g=f(0),y=e(g),h=f(7),a=e(h);function e(r){return r&&r.__esModule?r:{default:r}}function t(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function s(r,o){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:r}function i(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o)}var u=function(r){i(o,r),m(o,null,[{key:"value",value:function(){}}]);function o(c,n){t(this,o);var d=s(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,c));return d.selection=n,d.textNode=document.createTextNode(o.CONTENTS),d.domNode.appendChild(d.textNode),d._length=0,d}return m(o,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,d){if(this._length!==0)return _(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,n,d);for(var k=this,w=0;k!=null&&k.statics.scope!==y.default.Scope.BLOCK_BLOT;)w+=k.offset(k.parent),k=k.parent;k!=null&&(this._length=o.CONTENTS.length,k.optimize(),k.formatAt(w,o.CONTENTS.length,n,d),this._length=0)}},{key:"index",value:function(n,d){return n===this.textNode?0:_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,n,d)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,d=this.selection.getNativeRange(),k=void 0,w=void 0,T=void 0;if(d!=null&&d.start.node===n&&d.end.node===n){var P=[n,d.start.offset,d.end.offset];k=P[0],w=P[1],T=P[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==o.CONTENTS){var A=this.textNode.data.split(o.CONTENTS).join("");this.next instanceof a.default?(k=this.next.domNode,this.next.insertAt(0,A),this.textNode.data=o.CONTENTS):(this.textNode.data=A,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(o.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),w!=null){var p=[w,T].map(function(N){return Math.max(0,Math.min(k.data.length,N-1))}),O=E(p,2);return w=O[0],T=O[1],{startNode:k,startOffset:w,endNode:k,endOffset:T}}}}},{key:"update",value:function(n,d){var k=this;if(n.some(function(T){return T.type==="characterData"&&T.target===k.textNode})){var w=this.restore();w&&(d.range=w)}}},{key:"value",value:function(){return""}}]),o}(y.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\uFEFF",v.default=u},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(0),_=y(E),m=f(4),g=y(m);function y(s){return s&&s.__esModule?s:{default:s}}function h(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}function a(s,i){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:s}function e(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);s.prototype=Object.create(i&&i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(s,i):s.__proto__=i)}var t=function(s){e(i,s);function i(){return h(this,i),a(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return i}(_.default.Container);t.allowedChildren=[g.default,m.BlockEmbed,t],v.default=t},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.ColorStyle=v.ColorClass=v.ColorAttributor=void 0;var E=function(){function u(r,o){for(var c=0;c<o.length;c++){var n=o[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,o,c){return o&&u(r.prototype,o),c&&u(r,c),r}}(),_=function u(r,o,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,o);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:u(d,o,c)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(c)}},m=f(0),g=y(m);function y(u){return u&&u.__esModule?u:{default:u}}function h(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function a(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function e(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var t=function(u){e(r,u);function r(){return h(this,r),a(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"value",value:function(c){var n=_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,c);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(d){return("00"+parseInt(d).toString(16)).slice(-2)}).join("")):n}}]),r}(g.default.Attributor.Style),s=new g.default.Attributor.Class("color","ql-color",{scope:g.default.Scope.INLINE}),i=new t("color","color",{scope:g.default.Scope.INLINE});v.ColorAttributor=t,v.ColorClass=s,v.ColorStyle=i},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.sanitize=v.default=void 0;var E=function(){function i(u,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,c.key,c)}}return function(u,r,o){return r&&i(u.prototype,r),o&&i(u,o),u}}(),_=function i(u,r,o){u===null&&(u=Function.prototype);var c=Object.getOwnPropertyDescriptor(u,r);if(c===void 0){var n=Object.getPrototypeOf(u);return n===null?void 0:i(n,r,o)}else{if("value"in c)return c.value;var d=c.get;return d===void 0?void 0:d.call(o)}},m=f(6),g=y(m);function y(i){return i&&i.__esModule?i:{default:i}}function h(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}function a(i,u){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:i}function e(i,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);i.prototype=Object.create(u&&u.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(i,u):i.__proto__=u)}var t=function(i){e(u,i);function u(){return h(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return E(u,[{key:"format",value:function(o,c){if(o!==this.statics.blotName||!c)return _(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"format",this).call(this,o,c);c=this.constructor.sanitize(c),this.domNode.setAttribute("href",c)}}],[{key:"create",value:function(o){var c=_(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,o);return o=this.sanitize(o),c.setAttribute("href",o),c.setAttribute("rel","noopener noreferrer"),c.setAttribute("target","_blank"),c}},{key:"formats",value:function(o){return o.getAttribute("href")}},{key:"sanitize",value:function(o){return s(o,this.PROTOCOL_WHITELIST)?o:this.SANITIZED_URL}}]),u}(g.default);t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function s(i,u){var r=document.createElement("a");r.href=i;var o=r.href.slice(0,r.href.indexOf(":"));return u.indexOf(o)>-1}v.default=t,v.sanitize=s},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_=function(){function u(r,o){for(var c=0;c<o.length;c++){var n=o[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,o,c){return o&&u(r.prototype,o),c&&u(r,c),r}}(),m=f(23),g=a(m),y=f(107),h=a(y);function a(u){return u&&u.__esModule?u:{default:u}}function e(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}var t=0;function s(u,r){u.setAttribute(r,u.getAttribute(r)!=="true")}var i=function(){function u(r){var o=this;e(this,u),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){o.togglePicker()}),this.label.addEventListener("keydown",function(c){switch(c.keyCode){case g.default.keys.ENTER:o.togglePicker();break;case g.default.keys.ESCAPE:o.escape(),c.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return _(u,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(o){var c=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),o.hasAttribute("value")&&n.setAttribute("data-value",o.getAttribute("value")),o.textContent&&n.setAttribute("data-label",o.textContent),n.addEventListener("click",function(){c.selectItem(n,!0)}),n.addEventListener("keydown",function(d){switch(d.keyCode){case g.default.keys.ENTER:c.selectItem(n,!0),d.preventDefault();break;case g.default.keys.ESCAPE:c.escape(),d.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var o=document.createElement("span");return o.classList.add("ql-picker-label"),o.innerHTML=h.default,o.tabIndex="0",o.setAttribute("role","button"),o.setAttribute("aria-expanded","false"),this.container.appendChild(o),o}},{key:"buildOptions",value:function(){var o=this,c=document.createElement("span");c.classList.add("ql-picker-options"),c.setAttribute("aria-hidden","true"),c.tabIndex="-1",c.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",c.id),this.options=c,[].slice.call(this.select.options).forEach(function(n){var d=o.buildItem(n);c.appendChild(d),n.selected===!0&&o.selectItem(d)}),this.container.appendChild(c)}},{key:"buildPicker",value:function(){var o=this;[].slice.call(this.select.attributes).forEach(function(c){o.container.setAttribute(c.name,c.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var o=this;this.close(),setTimeout(function(){return o.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(o){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(o!==n&&(n?.classList.remove("ql-selected"),o!=null&&(o.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(o.parentNode.children,o),o.hasAttribute("data-value")?this.label.setAttribute("data-value",o.getAttribute("data-value")):this.label.removeAttribute("data-value"),o.hasAttribute("data-label")?this.label.setAttribute("data-label",o.getAttribute("data-label")):this.label.removeAttribute("data-label"),c))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":E(Event))==="object"){var d=document.createEvent("Event");d.initEvent("change",!0,!0),this.select.dispatchEvent(d)}this.close()}}},{key:"update",value:function(){var o=void 0;if(this.select.selectedIndex>-1){var c=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];o=this.select.options[this.select.selectedIndex],this.selectItem(c)}else this.selectItem(null);var n=o!=null&&o!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),u}();v.default=i},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(0),_=D(E),m=f(5),g=D(m),y=f(4),h=D(y),a=f(16),e=D(a),t=f(25),s=D(t),i=f(24),u=D(i),r=f(35),o=D(r),c=f(6),n=D(c),d=f(22),k=D(d),w=f(7),T=D(w),P=f(55),A=D(P),p=f(42),O=D(p),N=f(23),L=D(N);function D(z){return z&&z.__esModule?z:{default:z}}g.default.register({"blots/block":h.default,"blots/block/embed":y.BlockEmbed,"blots/break":e.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":o.default,"blots/inline":n.default,"blots/scroll":k.default,"blots/text":T.default,"modules/clipboard":A.default,"modules/history":O.default,"modules/keyboard":L.default}),_.default.register(h.default,e.default,u.default,n.default,k.default,T.default),v.default=g.default},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(1),_=function(){function m(g){this.domNode=g,this.domNode[E.DATA_KEY]={blot:this}}return Object.defineProperty(m.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),m.create=function(g){if(this.tagName==null)throw new E.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?(typeof g=="string"&&(g=g.toUpperCase(),parseInt(g).toString()===g&&(g=parseInt(g))),typeof g=="number"?y=document.createElement(this.tagName[g-1]):this.tagName.indexOf(g)>-1?y=document.createElement(g):y=document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},m.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},m.prototype.clone=function(){var g=this.domNode.cloneNode(!1);return E.create(g)},m.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[E.DATA_KEY]},m.prototype.deleteAt=function(g,y){var h=this.isolate(g,y);h.remove()},m.prototype.formatAt=function(g,y,h,a){var e=this.isolate(g,y);if(E.query(h,E.Scope.BLOT)!=null&&a)e.wrap(h,a);else if(E.query(h,E.Scope.ATTRIBUTE)!=null){var t=E.create(this.statics.scope);e.wrap(t),t.format(h,a)}},m.prototype.insertAt=function(g,y,h){var a=h==null?E.create("text",y):E.create(y,h),e=this.split(g);this.parent.insertBefore(a,e)},m.prototype.insertInto=function(g,y){y===void 0&&(y=null),this.parent!=null&&this.parent.children.remove(this);var h=null;g.children.insertBefore(this,y),y!=null&&(h=y.domNode),(this.domNode.parentNode!=g.domNode||this.domNode.nextSibling!=h)&&g.domNode.insertBefore(this.domNode,h),this.parent=g,this.attach()},m.prototype.isolate=function(g,y){var h=this.split(g);return h.split(y),h},m.prototype.length=function(){return 1},m.prototype.offset=function(g){return g===void 0&&(g=this.parent),this.parent==null||this==g?0:this.parent.children.offset(this)+this.parent.offset(g)},m.prototype.optimize=function(g){this.domNode[E.DATA_KEY]!=null&&delete this.domNode[E.DATA_KEY].mutations},m.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},m.prototype.replace=function(g){g.parent!=null&&(g.parent.insertBefore(this,g.next),g.remove())},m.prototype.replaceWith=function(g,y){var h=typeof g=="string"?E.create(g,y):g;return h.replace(this),h},m.prototype.split=function(g,y){return g===0?this:this.next},m.prototype.update=function(g,y){},m.prototype.wrap=function(g,y){var h=typeof g=="string"?E.create(g,y):g;return this.parent!=null&&this.parent.insertBefore(h,this.next),h.appendChild(this),h},m.blotName="abstract",m}();v.default=_},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(12),_=f(32),m=f(33),g=f(1),y=function(){function h(a){this.attributes={},this.domNode=a,this.build()}return h.prototype.attribute=function(a,e){e?a.add(this.domNode,e)&&(a.value(this.domNode)!=null?this.attributes[a.attrName]=a:delete this.attributes[a.attrName]):(a.remove(this.domNode),delete this.attributes[a.attrName])},h.prototype.build=function(){var a=this;this.attributes={};var e=E.default.keys(this.domNode),t=_.default.keys(this.domNode),s=m.default.keys(this.domNode);e.concat(t).concat(s).forEach(function(i){var u=g.query(i,g.Scope.ATTRIBUTE);u instanceof E.default&&(a.attributes[u.attrName]=u)})},h.prototype.copy=function(a){var e=this;Object.keys(this.attributes).forEach(function(t){var s=e.attributes[t].value(e.domNode);a.format(t,s)})},h.prototype.move=function(a){var e=this;this.copy(a),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},h.prototype.values=function(){var a=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=a.attributes[t].value(a.domNode),e},{})},h}();v.default=y},function(b,v,f){var E=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var e in a)a.hasOwnProperty(e)&&(h[e]=a[e])};return function(h,a){y(h,a);function e(){this.constructor=h}h.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(v,"__esModule",{value:!0});var _=f(12);function m(y,h){var a=y.getAttribute("class")||"";return a.split(/\s+/).filter(function(e){return e.indexOf(h+"-")===0})}var g=function(y){E(h,y);function h(){return y!==null&&y.apply(this,arguments)||this}return h.keys=function(a){return(a.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},h.prototype.add=function(a,e){return this.canAdd(a,e)?(this.remove(a),a.classList.add(this.keyName+"-"+e),!0):!1},h.prototype.remove=function(a){var e=m(a,this.keyName);e.forEach(function(t){a.classList.remove(t)}),a.classList.length===0&&a.removeAttribute("class")},h.prototype.value=function(a){var e=m(a,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(a,t)?t:""},h}(_.default);v.default=g},function(b,v,f){var E=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var e in a)a.hasOwnProperty(e)&&(h[e]=a[e])};return function(h,a){y(h,a);function e(){this.constructor=h}h.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(v,"__esModule",{value:!0});var _=f(12);function m(y){var h=y.split("-"),a=h.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return h[0]+a}var g=function(y){E(h,y);function h(){return y!==null&&y.apply(this,arguments)||this}return h.keys=function(a){return(a.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},h.prototype.add=function(a,e){return this.canAdd(a,e)?(a.style[m(this.keyName)]=e,!0):!1},h.prototype.remove=function(a){a.style[m(this.keyName)]="",a.getAttribute("style")||a.removeAttribute("style")},h.prototype.value=function(a){var e=a.style[m(this.keyName)];return this.canAdd(a,e)?e:""},h}(_.default);v.default=g},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function g(y,h){for(var a=0;a<h.length;a++){var e=h[a];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(y,e.key,e)}}return function(y,h,a){return h&&g(y.prototype,h),a&&g(y,a),y}}();function _(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}var m=function(){function g(y,h){_(this,g),this.quill=y,this.options=h,this.modules={}}return E(g,[{key:"init",value:function(){var h=this;Object.keys(this.options.modules).forEach(function(a){h.modules[a]==null&&h.addModule(a)})}},{key:"addModule",value:function(h){var a=this.quill.constructor.import("modules/"+h);return this.modules[h]=new a(this.quill,this.options.modules[h]||{}),this.modules[h]}}]),g}();m.DEFAULTS={modules:{}},m.themes={default:m},v.default=m},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function r(o,c){for(var n=0;n<c.length;n++){var d=c[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}return function(o,c,n){return c&&r(o.prototype,c),n&&r(o,n),o}}(),_=function r(o,c,n){o===null&&(o=Function.prototype);var d=Object.getOwnPropertyDescriptor(o,c);if(d===void 0){var k=Object.getPrototypeOf(o);return k===null?void 0:r(k,c,n)}else{if("value"in d)return d.value;var w=d.get;return w===void 0?void 0:w.call(n)}},m=f(0),g=a(m),y=f(7),h=a(y);function a(r){return r&&r.__esModule?r:{default:r}}function e(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function t(r,o){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:r}function s(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o)}var i="\uFEFF",u=function(r){s(o,r);function o(c){e(this,o);var n=t(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,c));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(d){n.contentNode.appendChild(d)}),n.leftGuard=document.createTextNode(i),n.rightGuard=document.createTextNode(i),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return E(o,[{key:"index",value:function(n,d){return n===this.leftGuard?0:n===this.rightGuard?1:_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,n,d)}},{key:"restore",value:function(n){var d=void 0,k=void 0,w=n.data.split(i).join("");if(n===this.leftGuard)if(this.prev instanceof h.default){var T=this.prev.length();this.prev.insertAt(T,w),d={startNode:this.prev.domNode,startOffset:T+w.length}}else k=document.createTextNode(w),this.parent.insertBefore(g.default.create(k),this),d={startNode:k,startOffset:w.length};else n===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,w),d={startNode:this.next.domNode,startOffset:w.length}):(k=document.createTextNode(w),this.parent.insertBefore(g.default.create(k),this.next),d={startNode:k,startOffset:w.length}));return n.data=i,d}},{key:"update",value:function(n,d){var k=this;n.forEach(function(w){if(w.type==="characterData"&&(w.target===k.leftGuard||w.target===k.rightGuard)){var T=k.restore(w.target);T&&(d.range=T)}})}}]),o}(g.default.Embed);v.default=u},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.AlignStyle=v.AlignClass=v.AlignAttribute=void 0;var E=f(0),_=m(E);function m(e){return e&&e.__esModule?e:{default:e}}var g={scope:_.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new _.default.Attributor.Attribute("align","align",g),h=new _.default.Attributor.Class("align","ql-align",g),a=new _.default.Attributor.Style("align","text-align",g);v.AlignAttribute=y,v.AlignClass=h,v.AlignStyle=a},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.BackgroundStyle=v.BackgroundClass=void 0;var E=f(0),_=g(E),m=f(26);function g(a){return a&&a.__esModule?a:{default:a}}var y=new _.default.Attributor.Class("background","ql-bg",{scope:_.default.Scope.INLINE}),h=new m.ColorAttributor("background","background-color",{scope:_.default.Scope.INLINE});v.BackgroundClass=y,v.BackgroundStyle=h},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.DirectionStyle=v.DirectionClass=v.DirectionAttribute=void 0;var E=f(0),_=m(E);function m(e){return e&&e.__esModule?e:{default:e}}var g={scope:_.default.Scope.BLOCK,whitelist:["rtl"]},y=new _.default.Attributor.Attribute("direction","dir",g),h=new _.default.Attributor.Class("direction","ql-direction",g),a=new _.default.Attributor.Style("direction","direction",g);v.DirectionAttribute=y,v.DirectionClass=h,v.DirectionStyle=a},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.FontClass=v.FontStyle=void 0;var E=function(){function r(o,c){for(var n=0;n<c.length;n++){var d=c[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}return function(o,c,n){return c&&r(o.prototype,c),n&&r(o,n),o}}(),_=function r(o,c,n){o===null&&(o=Function.prototype);var d=Object.getOwnPropertyDescriptor(o,c);if(d===void 0){var k=Object.getPrototypeOf(o);return k===null?void 0:r(k,c,n)}else{if("value"in d)return d.value;var w=d.get;return w===void 0?void 0:w.call(n)}},m=f(0),g=y(m);function y(r){return r&&r.__esModule?r:{default:r}}function h(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function a(r,o){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:r}function e(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o)}var t={scope:g.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new g.default.Attributor.Class("font","ql-font",t),i=function(r){e(o,r);function o(){return h(this,o),a(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return E(o,[{key:"value",value:function(n){return _(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),o}(g.default.Attributor.Style),u=new i("font","font-family",t);v.FontStyle=u,v.FontClass=s},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.SizeStyle=v.SizeClass=void 0;var E=f(0),_=m(E);function m(h){return h&&h.__esModule?h:{default:h}}var g=new _.default.Attributor.Class("size","ql-size",{scope:_.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new _.default.Attributor.Style("size","font-size",{scope:_.default.Scope.INLINE,whitelist:["10px","18px","32px"]});v.SizeClass=g,v.SizeStyle=y},function(b,v,f){b.exports={align:{"":f(76),center:f(77),right:f(78),justify:f(79)},background:f(80),blockquote:f(81),bold:f(82),clean:f(83),code:f(58),"code-block":f(58),color:f(84),direction:{"":f(85),rtl:f(86)},float:{center:f(87),full:f(88),left:f(89),right:f(90)},formula:f(91),header:{1:f(92),2:f(93)},italic:f(94),image:f(95),indent:{"+1":f(96),"-1":f(97)},link:f(98),list:{ordered:f(99),bullet:f(100),check:f(101)},script:{sub:f(102),super:f(103)},strike:f(104),underline:f(105),video:f(106)}},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.getLastChangeIndex=v.default=void 0;var E=function(){function c(n,d){for(var k=0;k<d.length;k++){var w=d[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(n,w.key,w)}}return function(n,d,k){return d&&c(n.prototype,d),k&&c(n,k),n}}(),_=f(0),m=e(_),g=f(5),y=e(g),h=f(9),a=e(h);function e(c){return c&&c.__esModule?c:{default:c}}function t(c,n){if(!(c instanceof n))throw new TypeError("Cannot call a class as a function")}function s(c,n){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:c}function i(c,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);c.prototype=Object.create(n&&n.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(c,n):c.__proto__=n)}var u=function(c){i(n,c);function n(d,k){t(this,n);var w=s(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,d,k));return w.lastRecorded=0,w.ignoreChange=!1,w.clear(),w.quill.on(y.default.events.EDITOR_CHANGE,function(T,P,A,p){T!==y.default.events.TEXT_CHANGE||w.ignoreChange||(!w.options.userOnly||p===y.default.sources.USER?w.record(P,A):w.transform(P))}),w.quill.keyboard.addBinding({key:"Z",shortKey:!0},w.undo.bind(w)),w.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},w.redo.bind(w)),/Win/i.test(navigator.platform)&&w.quill.keyboard.addBinding({key:"Y",shortKey:!0},w.redo.bind(w)),w}return E(n,[{key:"change",value:function(k,w){if(this.stack[k].length!==0){var T=this.stack[k].pop();this.stack[w].push(T),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(T[k],y.default.sources.USER),this.ignoreChange=!1;var P=o(T[k]);this.quill.setSelection(P)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(k,w){if(k.ops.length!==0){this.stack.redo=[];var T=this.quill.getContents().diff(w),P=Date.now();if(this.lastRecorded+this.options.delay>P&&this.stack.undo.length>0){var A=this.stack.undo.pop();T=T.compose(A.undo),k=A.redo.compose(k)}else this.lastRecorded=P;this.stack.undo.push({redo:k,undo:T}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(k){this.stack.undo.forEach(function(w){w.undo=k.transform(w.undo,!0),w.redo=k.transform(w.redo,!0)}),this.stack.redo.forEach(function(w){w.undo=k.transform(w.undo,!0),w.redo=k.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(a.default);u.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(c){var n=c.ops[c.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
32
+ `):n.attributes!=null?Object.keys(n.attributes).some(function(d){return m.default.query(d,m.default.Scope.BLOCK)!=null}):!1}function o(c){var n=c.reduce(function(k,w){return k+=w.delete||0,k},0),d=c.length()-n;return r(c)&&(d-=1),d}v.default=u,v.getLastChangeIndex=o},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.BaseTooltip=void 0;var E=function(){function I(M,K){for(var C=0;C<K.length;C++){var q=K[C];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(M,q.key,q)}}return function(M,K,C){return K&&I(M.prototype,K),C&&I(M,C),M}}(),_=function I(M,K,C){M===null&&(M=Function.prototype);var q=Object.getOwnPropertyDescriptor(M,K);if(q===void 0){var F=Object.getPrototypeOf(M);return F===null?void 0:I(F,K,C)}else{if("value"in q)return q.value;var G=q.get;return G===void 0?void 0:G.call(C)}},m=f(3),g=P(m),y=f(2),h=P(y),a=f(8),e=P(a),t=f(23),s=P(t),i=f(34),u=P(i),r=f(59),o=P(r),c=f(60),n=P(c),d=f(28),k=P(d),w=f(61),T=P(w);function P(I){return I&&I.__esModule?I:{default:I}}function A(I,M){if(!(I instanceof M))throw new TypeError("Cannot call a class as a function")}function p(I,M){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:I}function O(I,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);I.prototype=Object.create(M&&M.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(I,M):I.__proto__=M)}var N=[!1,"center","right","justify"],L=["#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"],D=[!1,"serif","monospace"],z=["1","2","3",!1],V=["small",!1,"large","huge"],J=function(I){O(M,I);function M(K,C){A(this,M);var q=p(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,K,C)),F=function G($){if(!document.body.contains(K.root))return document.body.removeEventListener("click",G);q.tooltip!=null&&!q.tooltip.root.contains($.target)&&document.activeElement!==q.tooltip.textbox&&!q.quill.hasFocus()&&q.tooltip.hide(),q.pickers!=null&&q.pickers.forEach(function(X){X.container.contains($.target)||X.close()})};return K.emitter.listenDOM("click",document.body,F),q}return E(M,[{key:"addModule",value:function(C){var q=_(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"addModule",this).call(this,C);return C==="toolbar"&&this.extendToolbar(q),q}},{key:"buildButtons",value:function(C,q){C.forEach(function(F){var G=F.getAttribute("class")||"";G.split(/\s+/).forEach(function($){if($.startsWith("ql-")&&($=$.slice(3),q[$]!=null))if($==="direction")F.innerHTML=q[$][""]+q[$].rtl;else if(typeof q[$]=="string")F.innerHTML=q[$];else{var X=F.value||"";X!=null&&q[$][X]&&(F.innerHTML=q[$][X])}})})}},{key:"buildPickers",value:function(C,q){var F=this;this.pickers=C.map(function($){if($.classList.contains("ql-align"))return $.querySelector("option")==null&&S($,N),new n.default($,q.align);if($.classList.contains("ql-background")||$.classList.contains("ql-color")){var X=$.classList.contains("ql-background")?"background":"color";return $.querySelector("option")==null&&S($,L,X==="background"?"#ffffff":"#000000"),new o.default($,q[X])}else return $.querySelector("option")==null&&($.classList.contains("ql-font")?S($,D):$.classList.contains("ql-header")?S($,z):$.classList.contains("ql-size")&&S($,V)),new k.default($)});var G=function(){F.pickers.forEach(function(X){X.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,G)}}]),M}(u.default);J.DEFAULTS=(0,g.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,K=this.container.querySelector("input.ql-image[type=file]");K==null&&(K=document.createElement("input"),K.setAttribute("type","file"),K.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),K.classList.add("ql-image"),K.addEventListener("change",function(){if(K.files!=null&&K.files[0]!=null){var C=new FileReader;C.onload=function(q){var F=M.quill.getSelection(!0);M.quill.updateContents(new h.default().retain(F.index).delete(F.length).insert({image:q.target.result}),e.default.sources.USER),M.quill.setSelection(F.index+1,e.default.sources.SILENT),K.value=""},C.readAsDataURL(K.files[0])}}),this.container.appendChild(K)),K.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var H=function(I){O(M,I);function M(K,C){A(this,M);var q=p(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,K,C));return q.textbox=q.root.querySelector('input[type="text"]'),q.listen(),q}return E(M,[{key:"listen",value:function(){var C=this;this.textbox.addEventListener("keydown",function(q){s.default.match(q,"enter")?(C.save(),q.preventDefault()):s.default.match(q,"escape")&&(C.cancel(),q.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),q!=null?this.textbox.value=q:C!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+C)||""),this.root.setAttribute("data-mode",C)}},{key:"restoreFocus",value:function(){var C=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=C}},{key:"save",value:function(){var C=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var q=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",C,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",C,e.default.sources.USER)),this.quill.root.scrollTop=q;break}case"video":C=R(C);case"formula":{if(!C)break;var F=this.quill.getSelection(!0);if(F!=null){var G=F.index+F.length;this.quill.insertEmbed(G,this.root.getAttribute("data-mode"),C,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(G+1," ",e.default.sources.USER),this.quill.setSelection(G+2,e.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),M}(T.default);function R(I){var M=I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=I.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":I}function S(I,M){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(C){var q=document.createElement("option");C===K?q.setAttribute("selected","selected"):q.setAttribute("value",C),I.appendChild(q)})}v.BaseTooltip=H,v.default=J},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function _(){this.head=this.tail=null,this.length=0}return _.prototype.append=function(){for(var m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];this.insertBefore(m[0],null),m.length>1&&this.append.apply(this,m.slice(1))},_.prototype.contains=function(m){for(var g,y=this.iterator();g=y();)if(g===m)return!0;return!1},_.prototype.insertBefore=function(m,g){m&&(m.next=g,g!=null?(m.prev=g.prev,g.prev!=null&&(g.prev.next=m),g.prev=m,g===this.head&&(this.head=m)):this.tail!=null?(this.tail.next=m,m.prev=this.tail,this.tail=m):(m.prev=null,this.head=this.tail=m),this.length+=1)},_.prototype.offset=function(m){for(var g=0,y=this.head;y!=null;){if(y===m)return g;g+=y.length(),y=y.next}return-1},_.prototype.remove=function(m){this.contains(m)&&(m.prev!=null&&(m.prev.next=m.next),m.next!=null&&(m.next.prev=m.prev),m===this.head&&(this.head=m.next),m===this.tail&&(this.tail=m.prev),this.length-=1)},_.prototype.iterator=function(m){return m===void 0&&(m=this.head),function(){var g=m;return m!=null&&(m=m.next),g}},_.prototype.find=function(m,g){g===void 0&&(g=!1);for(var y,h=this.iterator();y=h();){var a=y.length();if(m<a||g&&m===a&&(y.next==null||y.next.length()!==0))return[y,m];m-=a}return[null,0]},_.prototype.forEach=function(m){for(var g,y=this.iterator();g=y();)m(g)},_.prototype.forEachAt=function(m,g,y){if(!(g<=0))for(var h=this.find(m),a=h[0],e=h[1],t,s=m-e,i=this.iterator(a);(t=i())&&s<m+g;){var u=t.length();m>s?y(t,m-s,Math.min(g,s+u-m)):y(t,0,Math.min(u,m+g-s)),s+=u}},_.prototype.map=function(m){return this.reduce(function(g,y){return g.push(m(y)),g},[])},_.prototype.reduce=function(m,g){for(var y,h=this.iterator();y=h();)g=m(g,y);return g},_}();v.default=E},function(b,v,f){var E=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])};return function(e,t){a(e,t);function s(){this.constructor=e}e.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)}}();Object.defineProperty(v,"__esModule",{value:!0});var _=f(17),m=f(1),g={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},y=100,h=function(a){E(e,a);function e(t){var s=a.call(this,t)||this;return s.scroll=s,s.observer=new MutationObserver(function(i){s.update(i)}),s.observer.observe(s.domNode,g),s.attach(),s}return e.prototype.detach=function(){a.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,s){this.update(),t===0&&s===this.length()?this.children.forEach(function(i){i.remove()}):a.prototype.deleteAt.call(this,t,s)},e.prototype.formatAt=function(t,s,i,u){this.update(),a.prototype.formatAt.call(this,t,s,i,u)},e.prototype.insertAt=function(t,s,i){this.update(),a.prototype.insertAt.call(this,t,s,i)},e.prototype.optimize=function(t,s){var i=this;t===void 0&&(t=[]),s===void 0&&(s={}),a.prototype.optimize.call(this,s);for(var u=[].slice.call(this.observer.takeRecords());u.length>0;)t.push(u.pop());for(var r=function(d,k){k===void 0&&(k=!0),!(d==null||d===i)&&d.domNode.parentNode!=null&&(d.domNode[m.DATA_KEY].mutations==null&&(d.domNode[m.DATA_KEY].mutations=[]),k&&r(d.parent))},o=function(d){d.domNode[m.DATA_KEY]==null||d.domNode[m.DATA_KEY].mutations==null||(d instanceof _.default&&d.children.forEach(o),d.optimize(s))},c=t,n=0;c.length>0;n+=1){if(n>=y)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(d){var k=m.find(d.target,!0);k!=null&&(k.domNode===d.target&&(d.type==="childList"?(r(m.find(d.previousSibling,!1)),[].forEach.call(d.addedNodes,function(w){var T=m.find(w,!1);r(T,!1),T instanceof _.default&&T.children.forEach(function(P){r(P,!1)})})):d.type==="attributes"&&r(k.prev)),r(k))}),this.children.forEach(o),c=[].slice.call(this.observer.takeRecords()),u=c.slice();u.length>0;)t.push(u.pop())}},e.prototype.update=function(t,s){var i=this;s===void 0&&(s={}),t=t||this.observer.takeRecords(),t.map(function(u){var r=m.find(u.target,!0);return r==null?null:r.domNode[m.DATA_KEY].mutations==null?(r.domNode[m.DATA_KEY].mutations=[u],r):(r.domNode[m.DATA_KEY].mutations.push(u),null)}).forEach(function(u){u==null||u===i||u.domNode[m.DATA_KEY]==null||u.update(u.domNode[m.DATA_KEY].mutations||[],s)}),this.domNode[m.DATA_KEY].mutations!=null&&a.prototype.update.call(this,this.domNode[m.DATA_KEY].mutations,s),this.optimize(t,s)},e.blotName="scroll",e.defaultChild="block",e.scope=m.Scope.BLOCK_BLOT,e.tagName="DIV",e}(_.default);v.default=h},function(b,v,f){var E=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var t in e)e.hasOwnProperty(t)&&(a[t]=e[t])};return function(a,e){h(a,e);function t(){this.constructor=a}a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(v,"__esModule",{value:!0});var _=f(18),m=f(1);function g(h,a){if(Object.keys(h).length!==Object.keys(a).length)return!1;for(var e in h)if(h[e]!==a[e])return!1;return!0}var y=function(h){E(a,h);function a(){return h!==null&&h.apply(this,arguments)||this}return a.formats=function(e){if(e.tagName!==a.tagName)return h.formats.call(this,e)},a.prototype.format=function(e,t){var s=this;e===this.statics.blotName&&!t?(this.children.forEach(function(i){i instanceof _.default||(i=i.wrap(a.blotName,!0)),s.attributes.copy(i)}),this.unwrap()):h.prototype.format.call(this,e,t)},a.prototype.formatAt=function(e,t,s,i){if(this.formats()[s]!=null||m.query(s,m.Scope.ATTRIBUTE)){var u=this.isolate(e,t);u.format(s,i)}else h.prototype.formatAt.call(this,e,t,s,i)},a.prototype.optimize=function(e){h.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var s=this.next;s instanceof a&&s.prev===this&&g(t,s.formats())&&(s.moveChildren(this),s.remove())},a.blotName="inline",a.scope=m.Scope.INLINE_BLOT,a.tagName="SPAN",a}(_.default);v.default=y},function(b,v,f){var E=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var e in a)a.hasOwnProperty(e)&&(h[e]=a[e])};return function(h,a){y(h,a);function e(){this.constructor=h}h.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(v,"__esModule",{value:!0});var _=f(18),m=f(1),g=function(y){E(h,y);function h(){return y!==null&&y.apply(this,arguments)||this}return h.formats=function(a){var e=m.query(h.blotName).tagName;if(a.tagName!==e)return y.formats.call(this,a)},h.prototype.format=function(a,e){m.query(a,m.Scope.BLOCK)!=null&&(a===this.statics.blotName&&!e?this.replaceWith(h.blotName):y.prototype.format.call(this,a,e))},h.prototype.formatAt=function(a,e,t,s){m.query(t,m.Scope.BLOCK)!=null?this.format(t,s):y.prototype.formatAt.call(this,a,e,t,s)},h.prototype.insertAt=function(a,e,t){if(t==null||m.query(e,m.Scope.INLINE)!=null)y.prototype.insertAt.call(this,a,e,t);else{var s=this.split(a),i=m.create(e,t);s.parent.insertBefore(i,s)}},h.prototype.update=function(a,e){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,a,e)},h.blotName="block",h.scope=m.Scope.BLOCK_BLOT,h.tagName="P",h}(_.default);v.default=g},function(b,v,f){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var a in h)h.hasOwnProperty(a)&&(y[a]=h[a])};return function(y,h){g(y,h);function a(){this.constructor=y}y.prototype=h===null?Object.create(h):(a.prototype=h.prototype,new a)}}();Object.defineProperty(v,"__esModule",{value:!0});var _=f(19),m=function(g){E(y,g);function y(){return g!==null&&g.apply(this,arguments)||this}return y.formats=function(h){},y.prototype.format=function(h,a){g.prototype.formatAt.call(this,0,this.length(),h,a)},y.prototype.formatAt=function(h,a,e,t){h===0&&a===this.length()?this.format(e,t):g.prototype.formatAt.call(this,h,a,e,t)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(_.default);v.default=m},function(b,v,f){var E=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var e in a)a.hasOwnProperty(e)&&(h[e]=a[e])};return function(h,a){y(h,a);function e(){this.constructor=h}h.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(v,"__esModule",{value:!0});var _=f(19),m=f(1),g=function(y){E(h,y);function h(a){var e=y.call(this,a)||this;return e.text=e.statics.value(e.domNode),e}return h.create=function(a){return document.createTextNode(a)},h.value=function(a){var e=a.data;return e.normalize&&(e=e.normalize()),e},h.prototype.deleteAt=function(a,e){this.domNode.data=this.text=this.text.slice(0,a)+this.text.slice(a+e)},h.prototype.index=function(a,e){return this.domNode===a?e:-1},h.prototype.insertAt=function(a,e,t){t==null?(this.text=this.text.slice(0,a)+e+this.text.slice(a),this.domNode.data=this.text):y.prototype.insertAt.call(this,a,e,t)},h.prototype.length=function(){return this.text.length},h.prototype.optimize=function(a){y.prototype.optimize.call(this,a),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof h&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},h.prototype.position=function(a,e){return[this.domNode,a]},h.prototype.split=function(a,e){if(e===void 0&&(e=!1),!e){if(a===0)return this;if(a===this.length())return this.next}var t=m.create(this.domNode.splitText(a));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},h.prototype.update=function(a,e){var t=this;a.some(function(s){return s.type==="characterData"&&s.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},h.prototype.value=function(){return this.text},h.blotName="text",h.scope=m.Scope.INLINE_BLOT,h}(_.default);v.default=g},function(b,v,f){var E=document.createElement("div");if(E.classList.toggle("test-class",!1),E.classList.contains("test-class")){var _=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(m,g){return arguments.length>1&&!this.contains(m)==!g?g:_.call(this,m)}}String.prototype.startsWith||(String.prototype.startsWith=function(m,g){return g=g||0,this.substr(g,m.length)===m}),String.prototype.endsWith||(String.prototype.endsWith=function(m,g){var y=this.toString();(typeof g!="number"||!isFinite(g)||Math.floor(g)!==g||g>y.length)&&(g=y.length),g-=m.length;var h=y.indexOf(m,g);return h!==-1&&h===g}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(g){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof g!="function")throw new TypeError("predicate must be a function");for(var y=Object(this),h=y.length>>>0,a=arguments[1],e,t=0;t<h;t++)if(e=y[t],g.call(a,e,t,y))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(b,v){var f=-1,E=1,_=0;function m(n,d,k){if(n==d)return n?[[_,n]]:[];(k<0||n.length<k)&&(k=null);var w=a(n,d),T=n.substring(0,w);n=n.substring(w),d=d.substring(w),w=e(n,d);var P=n.substring(n.length-w);n=n.substring(0,n.length-w),d=d.substring(0,d.length-w);var A=g(n,d);return T&&A.unshift([_,T]),P&&A.push([_,P]),s(A),k!=null&&(A=r(A,k)),A=o(A),A}function g(n,d){var k;if(!n)return[[E,d]];if(!d)return[[f,n]];var w=n.length>d.length?n:d,T=n.length>d.length?d:n,P=w.indexOf(T);if(P!=-1)return k=[[E,w.substring(0,P)],[_,T],[E,w.substring(P+T.length)]],n.length>d.length&&(k[0][0]=k[2][0]=f),k;if(T.length==1)return[[f,n],[E,d]];var A=t(n,d);if(A){var p=A[0],O=A[1],N=A[2],L=A[3],D=A[4],z=m(p,N),V=m(O,L);return z.concat([[_,D]],V)}return y(n,d)}function y(n,d){for(var k=n.length,w=d.length,T=Math.ceil((k+w)/2),P=T,A=2*T,p=new Array(A),O=new Array(A),N=0;N<A;N++)p[N]=-1,O[N]=-1;p[P+1]=0,O[P+1]=0;for(var L=k-w,D=L%2!=0,z=0,V=0,J=0,H=0,R=0;R<T;R++){for(var S=-R+z;S<=R-V;S+=2){var I=P+S,M;S==-R||S!=R&&p[I-1]<p[I+1]?M=p[I+1]:M=p[I-1]+1;for(var K=M-S;M<k&&K<w&&n.charAt(M)==d.charAt(K);)M++,K++;if(p[I]=M,M>k)V+=2;else if(K>w)z+=2;else if(D){var C=P+L-S;if(C>=0&&C<A&&O[C]!=-1){var q=k-O[C];if(M>=q)return h(n,d,M,K)}}}for(var F=-R+J;F<=R-H;F+=2){var C=P+F,q;F==-R||F!=R&&O[C-1]<O[C+1]?q=O[C+1]:q=O[C-1]+1;for(var G=q-F;q<k&&G<w&&n.charAt(k-q-1)==d.charAt(w-G-1);)q++,G++;if(O[C]=q,q>k)H+=2;else if(G>w)J+=2;else if(!D){var I=P+L-F;if(I>=0&&I<A&&p[I]!=-1){var M=p[I],K=P+M-I;if(q=k-q,M>=q)return h(n,d,M,K)}}}}return[[f,n],[E,d]]}function h(n,d,k,w){var T=n.substring(0,k),P=d.substring(0,w),A=n.substring(k),p=d.substring(w),O=m(T,P),N=m(A,p);return O.concat(N)}function a(n,d){if(!n||!d||n.charAt(0)!=d.charAt(0))return 0;for(var k=0,w=Math.min(n.length,d.length),T=w,P=0;k<T;)n.substring(P,T)==d.substring(P,T)?(k=T,P=k):w=T,T=Math.floor((w-k)/2+k);return T}function e(n,d){if(!n||!d||n.charAt(n.length-1)!=d.charAt(d.length-1))return 0;for(var k=0,w=Math.min(n.length,d.length),T=w,P=0;k<T;)n.substring(n.length-T,n.length-P)==d.substring(d.length-T,d.length-P)?(k=T,P=k):w=T,T=Math.floor((w-k)/2+k);return T}function t(n,d){var k=n.length>d.length?n:d,w=n.length>d.length?d:n;if(k.length<4||w.length*2<k.length)return null;function T(V,J,H){for(var R=V.substring(H,H+Math.floor(V.length/4)),S=-1,I="",M,K,C,q;(S=J.indexOf(R,S+1))!=-1;){var F=a(V.substring(H),J.substring(S)),G=e(V.substring(0,H),J.substring(0,S));I.length<G+F&&(I=J.substring(S-G,S)+J.substring(S,S+F),M=V.substring(0,H-G),K=V.substring(H+F),C=J.substring(0,S-G),q=J.substring(S+F))}return I.length*2>=V.length?[M,K,C,q,I]:null}var P=T(k,w,Math.ceil(k.length/4)),A=T(k,w,Math.ceil(k.length/2)),p;if(!P&&!A)return null;A?P?p=P[4].length>A[4].length?P:A:p=A:p=P;var O,N,L,D;n.length>d.length?(O=p[0],N=p[1],L=p[2],D=p[3]):(L=p[0],D=p[1],O=p[2],N=p[3]);var z=p[4];return[O,N,L,D,z]}function s(n){n.push([_,""]);for(var d=0,k=0,w=0,T="",P="",A;d<n.length;)switch(n[d][0]){case E:w++,P+=n[d][1],d++;break;case f:k++,T+=n[d][1],d++;break;case _:k+w>1?(k!==0&&w!==0&&(A=a(P,T),A!==0&&(d-k-w>0&&n[d-k-w-1][0]==_?n[d-k-w-1][1]+=P.substring(0,A):(n.splice(0,0,[_,P.substring(0,A)]),d++),P=P.substring(A),T=T.substring(A)),A=e(P,T),A!==0&&(n[d][1]=P.substring(P.length-A)+n[d][1],P=P.substring(0,P.length-A),T=T.substring(0,T.length-A))),k===0?n.splice(d-w,k+w,[E,P]):w===0?n.splice(d-k,k+w,[f,T]):n.splice(d-k-w,k+w,[f,T],[E,P]),d=d-k-w+(k?1:0)+(w?1:0)+1):d!==0&&n[d-1][0]==_?(n[d-1][1]+=n[d][1],n.splice(d,1)):d++,w=0,k=0,T="",P="";break}n[n.length-1][1]===""&&n.pop();var p=!1;for(d=1;d<n.length-1;)n[d-1][0]==_&&n[d+1][0]==_&&(n[d][1].substring(n[d][1].length-n[d-1][1].length)==n[d-1][1]?(n[d][1]=n[d-1][1]+n[d][1].substring(0,n[d][1].length-n[d-1][1].length),n[d+1][1]=n[d-1][1]+n[d+1][1],n.splice(d-1,1),p=!0):n[d][1].substring(0,n[d+1][1].length)==n[d+1][1]&&(n[d-1][1]+=n[d+1][1],n[d][1]=n[d][1].substring(n[d+1][1].length)+n[d+1][1],n.splice(d+1,1),p=!0)),d++;p&&s(n)}var i=m;i.INSERT=E,i.DELETE=f,i.EQUAL=_,b.exports=i;function u(n,d){if(d===0)return[_,n];for(var k=0,w=0;w<n.length;w++){var T=n[w];if(T[0]===f||T[0]===_){var P=k+T[1].length;if(d===P)return[w+1,n];if(d<P){n=n.slice();var A=d-k,p=[T[0],T[1].slice(0,A)],O=[T[0],T[1].slice(A)];return n.splice(w,1,p,O),[w+1,n]}else k=P}}throw new Error("cursor_pos is out of bounds!")}function r(n,d){var k=u(n,d),w=k[1],T=k[0],P=w[T],A=w[T+1];if(P==null)return n;if(P[0]!==_)return n;if(A!=null&&P[1]+A[1]===A[1]+P[1])return w.splice(T,2,A,P),c(w,T,2);if(A!=null&&A[1].indexOf(P[1])===0){w.splice(T,2,[A[0],P[1]],[0,P[1]]);var p=A[1].slice(P[1].length);return p.length>0&&w.splice(T+2,0,[A[0],p]),c(w,T,3)}else return n}function o(n){for(var d=!1,k=function(A){return A.charCodeAt(0)>=56320&&A.charCodeAt(0)<=57343},w=function(A){return A.charCodeAt(A.length-1)>=55296&&A.charCodeAt(A.length-1)<=56319},T=2;T<n.length;T+=1)n[T-2][0]===_&&w(n[T-2][1])&&n[T-1][0]===f&&k(n[T-1][1])&&n[T][0]===E&&k(n[T][1])&&(d=!0,n[T-1][1]=n[T-2][1].slice(-1)+n[T-1][1],n[T][1]=n[T-2][1].slice(-1)+n[T][1],n[T-2][1]=n[T-2][1].slice(0,-1));if(!d)return n;for(var P=[],T=0;T<n.length;T+=1)n[T][1].length>0&&P.push(n[T]);return P}function c(n,d,k){for(var w=d+k-1;w>=0&&w>=d-1;w--)if(w+1<n.length){var T=n[w],P=n[w+1];T[0]===P[1]&&n.splice(w,2,[T[0],T[1]+P[1]])}return n}},function(b,v){v=b.exports=typeof Object.keys=="function"?Object.keys:f,v.shim=f;function f(E){var _=[];for(var m in E)_.push(m);return _}},function(b,v){var f=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";v=b.exports=f?E:_,v.supported=E;function E(m){return Object.prototype.toString.call(m)=="[object Arguments]"}v.unsupported=_;function _(m){return m&&typeof m=="object"&&typeof m.length=="number"&&Object.prototype.hasOwnProperty.call(m,"callee")&&!Object.prototype.propertyIsEnumerable.call(m,"callee")||!1}},function(b,v){var f=Object.prototype.hasOwnProperty,E="~";function _(){}Object.create&&(_.prototype=Object.create(null),new _().__proto__||(E=!1));function m(y,h,a){this.fn=y,this.context=h,this.once=a||!1}function g(){this._events=new _,this._eventsCount=0}g.prototype.eventNames=function(){var h=[],a,e;if(this._eventsCount===0)return h;for(e in a=this._events)f.call(a,e)&&h.push(E?e.slice(1):e);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(a)):h},g.prototype.listeners=function(h,a){var e=E?E+h:h,t=this._events[e];if(a)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var s=0,i=t.length,u=new Array(i);s<i;s++)u[s]=t[s].fn;return u},g.prototype.emit=function(h,a,e,t,s,i){var u=E?E+h:h;if(!this._events[u])return!1;var r=this._events[u],o=arguments.length,c,n;if(r.fn){switch(r.once&&this.removeListener(h,r.fn,void 0,!0),o){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,a),!0;case 3:return r.fn.call(r.context,a,e),!0;case 4:return r.fn.call(r.context,a,e,t),!0;case 5:return r.fn.call(r.context,a,e,t,s),!0;case 6:return r.fn.call(r.context,a,e,t,s,i),!0}for(n=1,c=new Array(o-1);n<o;n++)c[n-1]=arguments[n];r.fn.apply(r.context,c)}else{var d=r.length,k;for(n=0;n<d;n++)switch(r[n].once&&this.removeListener(h,r[n].fn,void 0,!0),o){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,a);break;case 3:r[n].fn.call(r[n].context,a,e);break;case 4:r[n].fn.call(r[n].context,a,e,t);break;default:if(!c)for(k=1,c=new Array(o-1);k<o;k++)c[k-1]=arguments[k];r[n].fn.apply(r[n].context,c)}}return!0},g.prototype.on=function(h,a,e){var t=new m(a,e||this),s=E?E+h:h;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],t]:this._events[s].push(t):(this._events[s]=t,this._eventsCount++),this},g.prototype.once=function(h,a,e){var t=new m(a,e||this,!0),s=E?E+h:h;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],t]:this._events[s].push(t):(this._events[s]=t,this._eventsCount++),this},g.prototype.removeListener=function(h,a,e,t){var s=E?E+h:h;if(!this._events[s])return this;if(!a)return--this._eventsCount===0?this._events=new _:delete this._events[s],this;var i=this._events[s];if(i.fn)i.fn===a&&(!t||i.once)&&(!e||i.context===e)&&(--this._eventsCount===0?this._events=new _:delete this._events[s]);else{for(var u=0,r=[],o=i.length;u<o;u++)(i[u].fn!==a||t&&!i[u].once||e&&i[u].context!==e)&&r.push(i[u]);r.length?this._events[s]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new _:delete this._events[s]}return this},g.prototype.removeAllListeners=function(h){var a;return h?(a=E?E+h:h,this._events[a]&&(--this._eventsCount===0?this._events=new _:delete this._events[a])):(this._events=new _,this._eventsCount=0),this},g.prototype.off=g.prototype.removeListener,g.prototype.addListener=g.prototype.on,g.prototype.setMaxListeners=function(){return this},g.prefixed=E,g.EventEmitter=g,typeof b<"u"&&(b.exports=g)},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.matchText=v.matchSpacing=v.matchNewline=v.matchBlot=v.matchAttributor=v.default=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},_=function(){function W(Y,te){var ne=[],Q=!0,fe=!1,ae=void 0;try{for(var ue=Y[Symbol.iterator](),Ne;!(Q=(Ne=ue.next()).done)&&(ne.push(Ne.value),!(te&&ne.length===te));Q=!0);}catch(Ae){fe=!0,ae=Ae}finally{try{!Q&&ue.return&&ue.return()}finally{if(fe)throw ae}}return ne}return function(Y,te){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return W(Y,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function W(Y,te){for(var ne=0;ne<te.length;ne++){var Q=te[ne];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(Y,Q.key,Q)}}return function(Y,te,ne){return te&&W(Y.prototype,te),ne&&W(Y,ne),Y}}(),g=f(3),y=O(g),h=f(2),a=O(h),e=f(0),t=O(e),s=f(5),i=O(s),u=f(10),r=O(u),o=f(9),c=O(o),n=f(36),d=f(37),k=f(13),w=O(k),T=f(26),P=f(38),A=f(39),p=f(40);function O(W){return W&&W.__esModule?W:{default:W}}function N(W,Y,te){return Y in W?Object.defineProperty(W,Y,{value:te,enumerable:!0,configurable:!0,writable:!0}):W[Y]=te,W}function L(W,Y){if(!(W instanceof Y))throw new TypeError("Cannot call a class as a function")}function D(W,Y){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:W}function z(W,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);W.prototype=Object.create(Y&&Y.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(W,Y):W.__proto__=Y)}var V=(0,r.default)("quill:clipboard"),J="__ql-matcher",H=[[Node.TEXT_NODE,me],[Node.TEXT_NODE,ce],["br",re],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,de],[Node.ELEMENT_NODE,$],[Node.ELEMENT_NODE,be],["li",le],["b",G.bind(G,"bold")],["i",G.bind(G,"italic")],["style",oe]],R=[n.AlignAttribute,P.DirectionAttribute].reduce(function(W,Y){return W[Y.keyName]=Y,W},{}),S=[n.AlignStyle,d.BackgroundStyle,T.ColorStyle,P.DirectionStyle,A.FontStyle,p.SizeStyle].reduce(function(W,Y){return W[Y.keyName]=Y,W},{}),I=function(W){z(Y,W);function Y(te,ne){L(this,Y);var Q=D(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,te,ne));return Q.quill.root.addEventListener("paste",Q.onPaste.bind(Q)),Q.container=Q.quill.addContainer("ql-clipboard"),Q.container.setAttribute("contenteditable",!0),Q.container.setAttribute("tabindex",-1),Q.matchers=[],H.concat(Q.options.matchers).forEach(function(fe){var ae=_(fe,2),ue=ae[0],Ne=ae[1];!ne.matchVisual&&Ne===de||Q.addMatcher(ue,Ne)}),Q}return m(Y,[{key:"addMatcher",value:function(ne,Q){this.matchers.push([ne,Q])}},{key:"convert",value:function(ne){if(typeof ne=="string")return this.container.innerHTML=ne.replace(/\>\r?\n +\</g,"><"),this.convert();var Q=this.quill.getFormat(this.quill.selection.savedRange.index);if(Q[w.default.blotName]){var fe=this.container.innerText;return this.container.innerHTML="",new a.default().insert(fe,N({},w.default.blotName,Q[w.default.blotName]))}var ae=this.prepareMatching(),ue=_(ae,2),Ne=ue[0],Ae=ue[1],ye=F(this.container,Ne,Ae);return C(ye,`
33
+ `)&&ye.ops[ye.ops.length-1].attributes==null&&(ye=ye.compose(new a.default().retain(ye.length()-1).delete(1))),V.log("convert",this.container.innerHTML,ye),this.container.innerHTML="",ye}},{key:"dangerouslyPasteHTML",value:function(ne,Q){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i.default.sources.API;if(typeof ne=="string")this.quill.setContents(this.convert(ne),Q),this.quill.setSelection(0,i.default.sources.SILENT);else{var ae=this.convert(Q);this.quill.updateContents(new a.default().retain(ne).concat(ae),fe),this.quill.setSelection(ne+ae.length(),i.default.sources.SILENT)}}},{key:"onPaste",value:function(ne){var Q=this;if(!(ne.defaultPrevented||!this.quill.isEnabled())){var fe=this.quill.getSelection(),ae=new a.default().retain(fe.index),ue=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(i.default.sources.SILENT),setTimeout(function(){ae=ae.concat(Q.convert()).delete(fe.length),Q.quill.updateContents(ae,i.default.sources.USER),Q.quill.setSelection(ae.length()-fe.length,i.default.sources.SILENT),Q.quill.scrollingContainer.scrollTop=ue,Q.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ne=this,Q=[],fe=[];return this.matchers.forEach(function(ae){var ue=_(ae,2),Ne=ue[0],Ae=ue[1];switch(Ne){case Node.TEXT_NODE:fe.push(Ae);break;case Node.ELEMENT_NODE:Q.push(Ae);break;default:[].forEach.call(ne.container.querySelectorAll(Ne),function(ye){ye[J]=ye[J]||[],ye[J].push(Ae)});break}}),[Q,fe]}}]),Y}(c.default);I.DEFAULTS={matchers:[],matchVisual:!0};function M(W,Y,te){return(typeof Y>"u"?"undefined":E(Y))==="object"?Object.keys(Y).reduce(function(ne,Q){return M(ne,Q,Y[Q])},W):W.reduce(function(ne,Q){return Q.attributes&&Q.attributes[Y]?ne.push(Q):ne.insert(Q.insert,(0,y.default)({},N({},Y,te),Q.attributes))},new a.default)}function K(W){if(W.nodeType!==Node.ELEMENT_NODE)return{};var Y="__ql-computed-style";return W[Y]||(W[Y]=window.getComputedStyle(W))}function C(W,Y){for(var te="",ne=W.ops.length-1;ne>=0&&te.length<Y.length;--ne){var Q=W.ops[ne];if(typeof Q.insert!="string")break;te=Q.insert+te}return te.slice(-1*Y.length)===Y}function q(W){if(W.childNodes.length===0)return!1;var Y=K(W);return["block","list-item"].indexOf(Y.display)>-1}function F(W,Y,te){return W.nodeType===W.TEXT_NODE?te.reduce(function(ne,Q){return Q(W,ne)},new a.default):W.nodeType===W.ELEMENT_NODE?[].reduce.call(W.childNodes||[],function(ne,Q){var fe=F(Q,Y,te);return Q.nodeType===W.ELEMENT_NODE&&(fe=Y.reduce(function(ae,ue){return ue(Q,ae)},fe),fe=(Q[J]||[]).reduce(function(ae,ue){return ue(Q,ae)},fe)),ne.concat(fe)},new a.default):new a.default}function G(W,Y,te){return M(te,W,!0)}function $(W,Y){var te=t.default.Attributor.Attribute.keys(W),ne=t.default.Attributor.Class.keys(W),Q=t.default.Attributor.Style.keys(W),fe={};return te.concat(ne).concat(Q).forEach(function(ae){var ue=t.default.query(ae,t.default.Scope.ATTRIBUTE);ue!=null&&(fe[ue.attrName]=ue.value(W),fe[ue.attrName])||(ue=R[ae],ue!=null&&(ue.attrName===ae||ue.keyName===ae)&&(fe[ue.attrName]=ue.value(W)||void 0),ue=S[ae],ue!=null&&(ue.attrName===ae||ue.keyName===ae)&&(ue=S[ae],fe[ue.attrName]=ue.value(W)||void 0))}),Object.keys(fe).length>0&&(Y=M(Y,fe)),Y}function X(W,Y){var te=t.default.query(W);if(te==null)return Y;if(te.prototype instanceof t.default.Embed){var ne={},Q=te.value(W);Q!=null&&(ne[te.blotName]=Q,Y=new a.default().insert(ne,te.formats(W)))}else typeof te.formats=="function"&&(Y=M(Y,te.blotName,te.formats(W)));return Y}function re(W,Y){return C(Y,`
34
+ `)||Y.insert(`
35
+ `),Y}function oe(){return new a.default}function le(W,Y){var te=t.default.query(W);if(te==null||te.blotName!=="list-item"||!C(Y,`
36
+ `))return Y;for(var ne=-1,Q=W.parentNode;!Q.classList.contains("ql-clipboard");)(t.default.query(Q)||{}).blotName==="list"&&(ne+=1),Q=Q.parentNode;return ne<=0?Y:Y.compose(new a.default().retain(Y.length()-1).retain(1,{indent:ne}))}function ce(W,Y){return C(Y,`
37
+ `)||(q(W)||Y.length()>0&&W.nextSibling&&q(W.nextSibling))&&Y.insert(`
38
+ `),Y}function de(W,Y){if(q(W)&&W.nextElementSibling!=null&&!C(Y,`
39
+
40
+ `)){var te=W.offsetHeight+parseFloat(K(W).marginTop)+parseFloat(K(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+te*1.5&&Y.insert(`
41
+ `)}return Y}function be(W,Y){var te={},ne=W.style||{};return ne.fontStyle&&K(W).fontStyle==="italic"&&(te.italic=!0),ne.fontWeight&&(K(W).fontWeight.startsWith("bold")||parseInt(K(W).fontWeight)>=700)&&(te.bold=!0),Object.keys(te).length>0&&(Y=M(Y,te)),parseFloat(ne.textIndent||0)>0&&(Y=new a.default().insert(" ").concat(Y)),Y}function me(W,Y){var te=W.data;if(W.parentNode.tagName==="O:P")return Y.insert(te.trim());if(te.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return Y;if(!K(W.parentNode).whiteSpace.startsWith("pre")){var ne=function(fe,ae){return ae=ae.replace(/[^\u00a0]/g,""),ae.length<1&&fe?" ":ae};te=te.replace(/\r\n/g," ").replace(/\n/g," "),te=te.replace(/\s\s+/g,ne.bind(ne,!0)),(W.previousSibling==null&&q(W.parentNode)||W.previousSibling!=null&&q(W.previousSibling))&&(te=te.replace(/^\s+/,ne.bind(ne,!1))),(W.nextSibling==null&&q(W.parentNode)||W.nextSibling!=null&&q(W.nextSibling))&&(te=te.replace(/\s+$/,ne.bind(ne,!1)))}return Y.insert(te)}v.default=I,v.matchAttributor=$,v.matchBlot=X,v.matchNewline=ce,v.matchSpacing=de,v.matchText=me},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function s(i,u){for(var r=0;r<u.length;r++){var o=u[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}return function(i,u,r){return u&&s(i.prototype,u),r&&s(i,r),i}}(),_=function s(i,u,r){i===null&&(i=Function.prototype);var o=Object.getOwnPropertyDescriptor(i,u);if(o===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:s(c,u,r)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(r)}},m=f(6),g=y(m);function y(s){return s&&s.__esModule?s:{default:s}}function h(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}function a(s,i){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:s}function e(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);s.prototype=Object.create(i&&i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(s,i):s.__proto__=i)}var t=function(s){e(i,s);function i(){return h(this,i),a(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return E(i,[{key:"optimize",value:function(r){_(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return _(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),i}(g.default);t.blotName="bold",t.tagName=["STRONG","B"],v.default=t},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.addControls=v.default=void 0;var E=function(){function p(O,N){var L=[],D=!0,z=!1,V=void 0;try{for(var J=O[Symbol.iterator](),H;!(D=(H=J.next()).done)&&(L.push(H.value),!(N&&L.length===N));D=!0);}catch(R){z=!0,V=R}finally{try{!D&&J.return&&J.return()}finally{if(z)throw V}}return L}return function(O,N){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return p(O,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function p(O,N){for(var L=0;L<N.length;L++){var D=N[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(O,D.key,D)}}return function(O,N,L){return N&&p(O.prototype,N),L&&p(O,L),O}}(),m=f(2),g=r(m),y=f(0),h=r(y),a=f(5),e=r(a),t=f(10),s=r(t),i=f(9),u=r(i);function r(p){return p&&p.__esModule?p:{default:p}}function o(p,O,N){return O in p?Object.defineProperty(p,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):p[O]=N,p}function c(p,O){if(!(p instanceof O))throw new TypeError("Cannot call a class as a function")}function n(p,O){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:p}function d(p,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);p.prototype=Object.create(O&&O.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(p,O):p.__proto__=O)}var k=(0,s.default)("quill:toolbar"),w=function(p){d(O,p);function O(N,L){c(this,O);var D=n(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,L));if(Array.isArray(D.options.container)){var z=document.createElement("div");P(z,D.options.container),N.container.parentNode.insertBefore(z,N.container),D.container=z}else typeof D.options.container=="string"?D.container=document.querySelector(D.options.container):D.container=D.options.container;if(!(D.container instanceof HTMLElement)){var V;return V=k.error("Container required for toolbar",D.options),n(D,V)}return D.container.classList.add("ql-toolbar"),D.controls=[],D.handlers={},Object.keys(D.options.handlers).forEach(function(J){D.addHandler(J,D.options.handlers[J])}),[].forEach.call(D.container.querySelectorAll("button, select"),function(J){D.attach(J)}),D.quill.on(e.default.events.EDITOR_CHANGE,function(J,H){J===e.default.events.SELECTION_CHANGE&&D.update(H)}),D.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var J=D.quill.selection.getRange(),H=E(J,1),R=H[0];D.update(R)}),D}return _(O,[{key:"addHandler",value:function(L,D){this.handlers[L]=D}},{key:"attach",value:function(L){var D=this,z=[].find.call(L.classList,function(J){return J.indexOf("ql-")===0});if(z){if(z=z.slice(3),L.tagName==="BUTTON"&&L.setAttribute("type","button"),this.handlers[z]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[z]==null){k.warn("ignoring attaching to disabled format",z,L);return}if(h.default.query(z)==null){k.warn("ignoring attaching to nonexistent format",z,L);return}}var V=L.tagName==="SELECT"?"change":"click";L.addEventListener(V,function(J){var H=void 0;if(L.tagName==="SELECT"){if(L.selectedIndex<0)return;var R=L.options[L.selectedIndex];R.hasAttribute("selected")?H=!1:H=R.value||!1}else L.classList.contains("ql-active")?H=!1:H=L.value||!L.hasAttribute("value"),J.preventDefault();D.quill.focus();var S=D.quill.selection.getRange(),I=E(S,1),M=I[0];if(D.handlers[z]!=null)D.handlers[z].call(D,H);else if(h.default.query(z).prototype instanceof h.default.Embed){if(H=prompt("Enter "+z),!H)return;D.quill.updateContents(new g.default().retain(M.index).delete(M.length).insert(o({},z,H)),e.default.sources.USER)}else D.quill.format(z,H,e.default.sources.USER);D.update(M)}),this.controls.push([z,L])}}},{key:"update",value:function(L){var D=L==null?{}:this.quill.getFormat(L);this.controls.forEach(function(z){var V=E(z,2),J=V[0],H=V[1];if(H.tagName==="SELECT"){var R=void 0;if(L==null)R=null;else if(D[J]==null)R=H.querySelector("option[selected]");else if(!Array.isArray(D[J])){var S=D[J];typeof S=="string"&&(S=S.replace(/\"/g,'\\"')),R=H.querySelector('option[value="'+S+'"]')}R==null?(H.value="",H.selectedIndex=-1):R.selected=!0}else if(L==null)H.classList.remove("ql-active");else if(H.hasAttribute("value")){var I=D[J]===H.getAttribute("value")||D[J]!=null&&D[J].toString()===H.getAttribute("value")||D[J]==null&&!H.getAttribute("value");H.classList.toggle("ql-active",I)}else H.classList.toggle("ql-active",D[J]!=null)})}}]),O}(u.default);w.DEFAULTS={};function T(p,O,N){var L=document.createElement("button");L.setAttribute("type","button"),L.classList.add("ql-"+O),N!=null&&(L.value=N),p.appendChild(L)}function P(p,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(N){var L=document.createElement("span");L.classList.add("ql-formats"),N.forEach(function(D){if(typeof D=="string")T(L,D);else{var z=Object.keys(D)[0],V=D[z];Array.isArray(V)?A(L,z,V):T(L,z,V)}}),p.appendChild(L)})}function A(p,O,N){var L=document.createElement("select");L.classList.add("ql-"+O),N.forEach(function(D){var z=document.createElement("option");D!==!1?z.setAttribute("value",D):z.setAttribute("selected","selected"),L.appendChild(z)}),p.appendChild(L)}w.DEFAULTS={container:null,handlers:{clean:function(){var O=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var L=this.quill.getFormat();Object.keys(L).forEach(function(D){h.default.query(D,h.default.Scope.INLINE)!=null&&O.quill.format(D,!1)})}else this.quill.removeFormat(N,e.default.sources.USER)},direction:function(O){var N=this.quill.getFormat().align;O==="rtl"&&N==null?this.quill.format("align","right",e.default.sources.USER):!O&&N==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",O,e.default.sources.USER)},indent:function(O){var N=this.quill.getSelection(),L=this.quill.getFormat(N),D=parseInt(L.indent||0);if(O==="+1"||O==="-1"){var z=O==="+1"?1:-1;L.direction==="rtl"&&(z*=-1),this.quill.format("indent",D+z,e.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,e.default.sources.USER)},list:function(O){var N=this.quill.getSelection(),L=this.quill.getFormat(N);O==="check"?L.list==="checked"||L.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",O,e.default.sources.USER)}}},v.default=w,v.addControls=P},function(b,v){b.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(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function s(i,u){for(var r=0;r<u.length;r++){var o=u[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}return function(i,u,r){return u&&s(i.prototype,u),r&&s(i,r),i}}(),_=function s(i,u,r){i===null&&(i=Function.prototype);var o=Object.getOwnPropertyDescriptor(i,u);if(o===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:s(c,u,r)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(r)}},m=f(28),g=y(m);function y(s){return s&&s.__esModule?s:{default:s}}function h(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}function a(s,i){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:s}function e(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);s.prototype=Object.create(i&&i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(s,i):s.__proto__=i)}var t=function(s){e(i,s);function i(u,r){h(this,i);var o=a(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,u));return o.label.innerHTML=r,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(c){c.classList.add("ql-primary")}),o}return E(i,[{key:"buildItem",value:function(r){var o=_(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"buildItem",this).call(this,r);return o.style.backgroundColor=r.getAttribute("value")||"",o}},{key:"selectItem",value:function(r,o){_(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"selectItem",this).call(this,r,o);var c=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";c&&(c.tagName==="line"?c.style.stroke=n:c.style.fill=n)}}]),i}(g.default);v.default=t},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function s(i,u){for(var r=0;r<u.length;r++){var o=u[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}return function(i,u,r){return u&&s(i.prototype,u),r&&s(i,r),i}}(),_=function s(i,u,r){i===null&&(i=Function.prototype);var o=Object.getOwnPropertyDescriptor(i,u);if(o===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:s(c,u,r)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(r)}},m=f(28),g=y(m);function y(s){return s&&s.__esModule?s:{default:s}}function h(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}function a(s,i){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:s}function e(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);s.prototype=Object.create(i&&i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(s,i):s.__proto__=i)}var t=function(s){e(i,s);function i(u,r){h(this,i);var o=a(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,u));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),function(c){c.innerHTML=r[c.getAttribute("data-value")||""]}),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return E(i,[{key:"selectItem",value:function(r,o){_(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"selectItem",this).call(this,r,o),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),i}(g.default);v.default=t},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function g(y,h){for(var a=0;a<h.length;a++){var e=h[a];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(y,e.key,e)}}return function(y,h,a){return h&&g(y.prototype,h),a&&g(y,a),y}}();function _(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}var m=function(){function g(y,h){var a=this;_(this,g),this.quill=y,this.boundsContainer=h||document.body,this.root=y.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){a.root.style.marginTop=-1*a.quill.root.scrollTop+"px"}),this.hide()}return E(g,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(h){var a=h.left+h.width/2-this.root.offsetWidth/2,e=h.bottom+this.quill.root.scrollTop;this.root.style.left=a+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),s=this.root.getBoundingClientRect(),i=0;if(s.right>t.right&&(i=t.right-s.right,this.root.style.left=a+i+"px"),s.left<t.left&&(i=t.left-s.left,this.root.style.left=a+i+"px"),s.bottom>t.bottom){var u=s.bottom-s.top,r=h.bottom-h.top+u;this.root.style.top=e-r+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),g}();v.default=m},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function A(p,O){var N=[],L=!0,D=!1,z=void 0;try{for(var V=p[Symbol.iterator](),J;!(L=(J=V.next()).done)&&(N.push(J.value),!(O&&N.length===O));L=!0);}catch(H){D=!0,z=H}finally{try{!L&&V.return&&V.return()}finally{if(D)throw z}}return N}return function(p,O){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return A(p,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function A(p,O,N){p===null&&(p=Function.prototype);var L=Object.getOwnPropertyDescriptor(p,O);if(L===void 0){var D=Object.getPrototypeOf(p);return D===null?void 0:A(D,O,N)}else{if("value"in L)return L.value;var z=L.get;return z===void 0?void 0:z.call(N)}},m=function(){function A(p,O){for(var N=0;N<O.length;N++){var L=O[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(p,L.key,L)}}return function(p,O,N){return O&&A(p.prototype,O),N&&A(p,N),p}}(),g=f(3),y=c(g),h=f(8),a=c(h),e=f(43),t=c(e),s=f(27),i=c(s),u=f(15),r=f(41),o=c(r);function c(A){return A&&A.__esModule?A:{default:A}}function n(A,p){if(!(A instanceof p))throw new TypeError("Cannot call a class as a function")}function d(A,p){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:A}function k(A,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);A.prototype=Object.create(p&&p.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(A,p):A.__proto__=p)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],T=function(A){k(p,A);function p(O,N){n(this,p),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=w);var L=d(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,O,N));return L.quill.container.classList.add("ql-snow"),L}return m(p,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),o.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),o.default),this.tooltip=new P(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(L,D){N.handlers.link.call(N,!D.format.link)})}}]),p}(t.default);T.DEFAULTS=(0,y.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(p){if(p){var O=this.quill.getSelection();if(O==null||O.length==0)return;var N=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var L=this.quill.theme.tooltip;L.edit("link",N)}else this.quill.format("link",!1)}}}}});var P=function(A){k(p,A);function p(O,N){n(this,p);var L=d(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,O,N));return L.preview=L.root.querySelector("a.ql-preview"),L}return m(p,[{key:"listen",value:function(){var N=this;_(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(L){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),L.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(L){if(N.linkRange!=null){var D=N.linkRange;N.restoreFocus(),N.quill.formatText(D,"link",!1,a.default.sources.USER),delete N.linkRange}L.preventDefault(),N.hide()}),this.quill.on(a.default.events.SELECTION_CHANGE,function(L,D,z){if(L!=null){if(L.length===0&&z===a.default.sources.USER){var V=N.quill.scroll.descendant(i.default,L.index),J=E(V,2),H=J[0],R=J[1];if(H!=null){N.linkRange=new u.Range(L.index-R,H.length());var S=i.default.formats(H.domNode);N.preview.textContent=S,N.preview.setAttribute("href",S),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){_(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),p}(e.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),v.default=T},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(29),_=Q(E),m=f(36),g=f(38),y=f(64),h=f(65),a=Q(h),e=f(66),t=Q(e),s=f(67),i=Q(s),u=f(37),r=f(26),o=f(39),c=f(40),n=f(56),d=Q(n),k=f(68),w=Q(k),T=f(27),P=Q(T),A=f(69),p=Q(A),O=f(70),N=Q(O),L=f(71),D=Q(L),z=f(72),V=Q(z),J=f(73),H=Q(J),R=f(13),S=Q(R),I=f(74),M=Q(I),K=f(75),C=Q(K),q=f(57),F=Q(q),G=f(41),$=Q(G),X=f(28),re=Q(X),oe=f(59),le=Q(oe),ce=f(60),de=Q(ce),be=f(61),me=Q(be),W=f(108),Y=Q(W),te=f(62),ne=Q(te);function Q(fe){return fe&&fe.__esModule?fe:{default:fe}}_.default.register({"attributors/attribute/direction":g.DirectionAttribute,"attributors/class/align":m.AlignClass,"attributors/class/background":u.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":g.DirectionClass,"attributors/class/font":o.FontClass,"attributors/class/size":c.SizeClass,"attributors/style/align":m.AlignStyle,"attributors/style/background":u.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":g.DirectionStyle,"attributors/style/font":o.FontStyle,"attributors/style/size":c.SizeStyle},!0),_.default.register({"formats/align":m.AlignClass,"formats/direction":g.DirectionClass,"formats/indent":y.IndentClass,"formats/background":u.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":o.FontClass,"formats/size":c.SizeClass,"formats/blockquote":a.default,"formats/code-block":S.default,"formats/header":t.default,"formats/list":i.default,"formats/bold":d.default,"formats/code":R.Code,"formats/italic":w.default,"formats/link":P.default,"formats/script":p.default,"formats/strike":N.default,"formats/underline":D.default,"formats/image":V.default,"formats/video":H.default,"formats/list/item":s.ListItem,"modules/formula":M.default,"modules/syntax":C.default,"modules/toolbar":F.default,"themes/bubble":Y.default,"themes/snow":ne.default,"ui/icons":$.default,"ui/picker":re.default,"ui/icon-picker":de.default,"ui/color-picker":le.default,"ui/tooltip":me.default},!0),v.default=_.default},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.IndentClass=void 0;var E=function(){function i(u,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,c.key,c)}}return function(u,r,o){return r&&i(u.prototype,r),o&&i(u,o),u}}(),_=function i(u,r,o){u===null&&(u=Function.prototype);var c=Object.getOwnPropertyDescriptor(u,r);if(c===void 0){var n=Object.getPrototypeOf(u);return n===null?void 0:i(n,r,o)}else{if("value"in c)return c.value;var d=c.get;return d===void 0?void 0:d.call(o)}},m=f(0),g=y(m);function y(i){return i&&i.__esModule?i:{default:i}}function h(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}function a(i,u){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:i}function e(i,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);i.prototype=Object.create(u&&u.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(i,u):i.__proto__=u)}var t=function(i){e(u,i);function u(){return h(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return E(u,[{key:"add",value:function(o,c){if(c==="+1"||c==="-1"){var n=this.value(o)||0;c=c==="+1"?n+1:n-1}return c===0?(this.remove(o),!0):_(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"add",this).call(this,o,c)}},{key:"canAdd",value:function(o,c){return _(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,o,c)||_(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,o,parseInt(c))}},{key:"value",value:function(o){return parseInt(_(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"value",this).call(this,o))||void 0}}]),u}(g.default.Attributor.Class),s=new t("indent","ql-indent",{scope:g.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});v.IndentClass=s},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(4),_=m(E);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){h(t,e);function t(){return g(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);a.blotName="blockquote",a.tagName="blockquote",v.default=a},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function t(s,i){for(var u=0;u<i.length;u++){var r=i[u];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(s,r.key,r)}}return function(s,i,u){return i&&t(s.prototype,i),u&&t(s,u),s}}(),_=f(4),m=g(_);function g(t){return t&&t.__esModule?t:{default:t}}function y(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function h(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function a(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var e=function(t){a(s,t);function s(){return y(this,s),h(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return E(s,null,[{key:"formats",value:function(u){return this.tagName.indexOf(u.tagName)+1}}]),s}(m.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],v.default=e},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.ListItem=void 0;var E=function(){function n(d,k){for(var w=0;w<k.length;w++){var T=k[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(d,T.key,T)}}return function(d,k,w){return k&&n(d.prototype,k),w&&n(d,w),d}}(),_=function n(d,k,w){d===null&&(d=Function.prototype);var T=Object.getOwnPropertyDescriptor(d,k);if(T===void 0){var P=Object.getPrototypeOf(d);return P===null?void 0:n(P,k,w)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(w)}},m=f(0),g=t(m),y=f(4),h=t(y),a=f(25),e=t(a);function t(n){return n&&n.__esModule?n:{default:n}}function s(n,d,k){return d in n?Object.defineProperty(n,d,{value:k,enumerable:!0,configurable:!0,writable:!0}):n[d]=k,n}function i(n,d){if(!(n instanceof d))throw new TypeError("Cannot call a class as a function")}function u(n,d){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:n}function r(n,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);n.prototype=Object.create(d&&d.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(n,d):n.__proto__=d)}var o=function(n){r(d,n);function d(){return i(this,d),u(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return E(d,[{key:"format",value:function(w,T){w===c.blotName&&!T?this.replaceWith(g.default.create(this.statics.scope)):_(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,w,T)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():_(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(w,T){return this.parent.isolate(this.offset(this.parent),this.length()),w===this.parent.statics.blotName?(this.parent.replaceWith(w,T),this):(this.parent.unwrap(),_(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replaceWith",this).call(this,w,T))}}],[{key:"formats",value:function(w){return w.tagName===this.tagName?void 0:_(d.__proto__||Object.getPrototypeOf(d),"formats",this).call(this,w)}}]),d}(h.default);o.blotName="list-item",o.tagName="LI";var c=function(n){r(d,n),E(d,null,[{key:"create",value:function(w){var T=w==="ordered"?"OL":"UL",P=_(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,T);return(w==="checked"||w==="unchecked")&&P.setAttribute("data-checked",w==="checked"),P}},{key:"formats",value:function(w){if(w.tagName==="OL")return"ordered";if(w.tagName==="UL")return w.hasAttribute("data-checked")?w.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function d(k){i(this,d);var w=u(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,k)),T=function(A){if(A.target.parentNode===k){var p=w.statics.formats(k),O=g.default.find(A.target);p==="checked"?O.format("list","unchecked"):p==="unchecked"&&O.format("list","checked")}};return k.addEventListener("touchstart",T),k.addEventListener("mousedown",T),w}return E(d,[{key:"format",value:function(w,T){this.children.length>0&&this.children.tail.format(w,T)}},{key:"formats",value:function(){return s({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(w,T){if(w instanceof o)_(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,w,T);else{var P=T==null?this.length():T.offset(this),A=this.split(P);A.parent.insertBefore(w,A)}}},{key:"optimize",value:function(w){_(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,w);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&T.domNode.tagName===this.domNode.tagName&&T.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(T.moveChildren(this),T.remove())}},{key:"replace",value:function(w){if(w.statics.blotName!==this.statics.blotName){var T=g.default.create(this.statics.defaultChild);w.moveChildren(T),this.appendChild(T)}_(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replace",this).call(this,w)}}]),d}(e.default);c.blotName="list",c.scope=g.default.Scope.BLOCK_BLOT,c.tagName=["OL","UL"],c.defaultChild="list-item",c.allowedChildren=[o],v.ListItem=o,v.default=c},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(56),_=m(E);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){h(t,e);function t(){return g(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);a.blotName="italic",a.tagName=["EM","I"],v.default=a},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function s(i,u){for(var r=0;r<u.length;r++){var o=u[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}return function(i,u,r){return u&&s(i.prototype,u),r&&s(i,r),i}}(),_=function s(i,u,r){i===null&&(i=Function.prototype);var o=Object.getOwnPropertyDescriptor(i,u);if(o===void 0){var c=Object.getPrototypeOf(i);return c===null?void 0:s(c,u,r)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(r)}},m=f(6),g=y(m);function y(s){return s&&s.__esModule?s:{default:s}}function h(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}function a(s,i){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:s}function e(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);s.prototype=Object.create(i&&i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(s,i):s.__proto__=i)}var t=function(s){e(i,s);function i(){return h(this,i),a(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return E(i,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):_(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,r)}},{key:"formats",value:function(r){if(r.tagName==="SUB")return"sub";if(r.tagName==="SUP")return"super"}}]),i}(g.default);t.blotName="script",t.tagName=["SUB","SUP"],v.default=t},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(6),_=m(E);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){h(t,e);function t(){return g(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);a.blotName="strike",a.tagName="S",v.default=a},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=f(6),_=m(E);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e){h(t,e);function t(){return g(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);a.blotName="underline",a.tagName="U",v.default=a},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function u(r,o){for(var c=0;c<o.length;c++){var n=o[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,o,c){return o&&u(r.prototype,o),c&&u(r,c),r}}(),_=function u(r,o,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,o);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:u(d,o,c)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(c)}},m=f(0),g=h(m),y=f(27);function h(u){return u&&u.__esModule?u:{default:u}}function a(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function e(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function t(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var s=["alt","height","width"],i=function(u){t(r,u);function r(){return a(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"format",value:function(c,n){s.indexOf(c)>-1?n?this.domNode.setAttribute(c,n):this.domNode.removeAttribute(c):_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,c,n)}}],[{key:"create",value:function(c){var n=_(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,c);return typeof c=="string"&&n.setAttribute("src",this.sanitize(c)),n}},{key:"formats",value:function(c){return s.reduce(function(n,d){return c.hasAttribute(d)&&(n[d]=c.getAttribute(d)),n},{})}},{key:"match",value:function(c){return/\.(jpe?g|gif|png)$/.test(c)||/^data:image\/.+;base64/.test(c)}},{key:"sanitize",value:function(c){return(0,y.sanitize)(c,["http","https","data"])?c:"//:0"}},{key:"value",value:function(c){return c.getAttribute("src")}}]),r}(g.default.Embed);i.blotName="image",i.tagName="IMG",v.default=i},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0});var E=function(){function u(r,o){for(var c=0;c<o.length;c++){var n=o[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,o,c){return o&&u(r.prototype,o),c&&u(r,c),r}}(),_=function u(r,o,c){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,o);if(n===void 0){var d=Object.getPrototypeOf(r);return d===null?void 0:u(d,o,c)}else{if("value"in n)return n.value;var k=n.get;return k===void 0?void 0:k.call(c)}},m=f(4),g=f(27),y=h(g);function h(u){return u&&u.__esModule?u:{default:u}}function a(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function e(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function t(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var s=["height","width"],i=function(u){t(r,u);function r(){return a(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"format",value:function(c,n){s.indexOf(c)>-1?n?this.domNode.setAttribute(c,n):this.domNode.removeAttribute(c):_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,c,n)}}],[{key:"create",value:function(c){var n=_(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,c);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(c)),n}},{key:"formats",value:function(c){return s.reduce(function(n,d){return c.hasAttribute(d)&&(n[d]=c.getAttribute(d)),n},{})}},{key:"sanitize",value:function(c){return y.default.sanitize(c)}},{key:"value",value:function(c){return c.getAttribute("src")}}]),r}(m.BlockEmbed);i.blotName="video",i.className="ql-video",i.tagName="IFRAME",v.default=i},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.FormulaBlot=void 0;var E=function(){function c(n,d){for(var k=0;k<d.length;k++){var w=d[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(n,w.key,w)}}return function(n,d,k){return d&&c(n.prototype,d),k&&c(n,k),n}}(),_=function c(n,d,k){n===null&&(n=Function.prototype);var w=Object.getOwnPropertyDescriptor(n,d);if(w===void 0){var T=Object.getPrototypeOf(n);return T===null?void 0:c(T,d,k)}else{if("value"in w)return w.value;var P=w.get;return P===void 0?void 0:P.call(k)}},m=f(35),g=t(m),y=f(5),h=t(y),a=f(9),e=t(a);function t(c){return c&&c.__esModule?c:{default:c}}function s(c,n){if(!(c instanceof n))throw new TypeError("Cannot call a class as a function")}function i(c,n){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:c}function u(c,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);c.prototype=Object.create(n&&n.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(c,n):c.__proto__=n)}var r=function(c){u(n,c);function n(){return s(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return E(n,null,[{key:"create",value:function(k){var w=_(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,w,{throwOnError:!1,errorColor:"#f00"}),w.setAttribute("data-value",k)),w}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),n}(g.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var o=function(c){u(n,c),E(n,null,[{key:"register",value:function(){h.default.register(r,!0)}}]);function n(){s(this,n);var d=i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return d}return n}(e.default);v.FormulaBlot=r,v.default=o},function(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.CodeToken=v.CodeBlock=void 0;var E=function(){function k(w,T){for(var P=0;P<T.length;P++){var A=T[P];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,T,P){return T&&k(w.prototype,T),P&&k(w,P),w}}(),_=function k(w,T,P){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,T);if(A===void 0){var p=Object.getPrototypeOf(w);return p===null?void 0:k(p,T,P)}else{if("value"in A)return A.value;var O=A.get;return O===void 0?void 0:O.call(P)}},m=f(0),g=i(m),y=f(5),h=i(y),a=f(9),e=i(a),t=f(13),s=i(t);function i(k){return k&&k.__esModule?k:{default:k}}function u(k,w){if(!(k instanceof w))throw new TypeError("Cannot call a class as a function")}function r(k,w){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:k}function o(k,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);k.prototype=Object.create(w&&w.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(k,w):k.__proto__=w)}var c=function(k){o(w,k);function w(){return u(this,w),r(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return E(w,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var A=this.domNode.textContent;this.cachedText!==A&&((A.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(A),this.domNode.normalize(),this.attach()),this.cachedText=A)}}]),w}(s.default);c.className="ql-syntax";var n=new g.default.Attributor.Class("token","hljs",{scope:g.default.Scope.INLINE}),d=function(k){o(w,k),E(w,null,[{key:"register",value:function(){h.default.register(n,!0),h.default.register(c,!0)}}]);function w(T,P){u(this,w);var A=r(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T,P));if(typeof A.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var p=null;return A.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(p),p=setTimeout(function(){A.highlight(),p=null},A.options.interval)}),A.highlight(),A}return E(w,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var A=this.quill.getSelection();this.quill.scroll.descendants(c).forEach(function(p){p.highlight(P.options.highlight)}),this.quill.update(h.default.sources.SILENT),A!=null&&this.quill.setSelection(A,h.default.sources.SILENT)}}}]),w}(e.default);d.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var w=window.hljs.highlightAuto(k);return w.value}}(),interval:1e3},v.CodeBlock=c,v.CodeToken=n,v.default=d},function(b,v){b.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(b,v){b.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(b,v){b.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(b,v){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(b,v){b.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(b,v){b.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(b,v){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(b,v){b.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(b,v){b.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(b,v){b.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(b,v){b.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(b,v){b.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(b,v){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(b,v){b.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(b,v){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(b,v){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(b,v){b.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(b,v){b.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(b,v){b.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(b,v){b.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(b,v){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(b,v){b.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(b,v){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(b,v){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(b,v){b.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(b,v){b.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(b,v){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(b,v){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(b,v){b.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(b,v){b.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(b,v){b.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(b,v){b.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(b,v,f){Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.BubbleTooltip=void 0;var E=function w(T,P,A){T===null&&(T=Function.prototype);var p=Object.getOwnPropertyDescriptor(T,P);if(p===void 0){var O=Object.getPrototypeOf(T);return O===null?void 0:w(O,P,A)}else{if("value"in p)return p.value;var N=p.get;return N===void 0?void 0:N.call(A)}},_=function(){function w(T,P){for(var A=0;A<P.length;A++){var p=P[A];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(T,p.key,p)}}return function(T,P,A){return P&&w(T.prototype,P),A&&w(T,A),T}}(),m=f(3),g=u(m),y=f(8),h=u(y),a=f(43),e=u(a),t=f(15),s=f(41),i=u(s);function u(w){return w&&w.__esModule?w:{default:w}}function r(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function o(w,T){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:w}function c(w,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(w,T):w.__proto__=T)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],d=function(w){c(T,w);function T(P,A){r(this,T),A.modules.toolbar!=null&&A.modules.toolbar.container==null&&(A.modules.toolbar.container=n);var p=o(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,P,A));return p.quill.container.classList.add("ql-bubble"),p}return _(T,[{key:"extendToolbar",value:function(A){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(A.container),this.buildButtons([].slice.call(A.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(A.container.querySelectorAll("select")),i.default)}}]),T}(e.default);d.DEFAULTS=(0,g.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(T){T?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(w){c(T,w);function T(P,A){r(this,T);var p=o(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,P,A));return p.quill.on(h.default.events.EDITOR_CHANGE,function(O,N,L,D){if(O===h.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&D===h.default.sources.USER){p.show(),p.root.style.left="0px",p.root.style.width="",p.root.style.width=p.root.offsetWidth+"px";var z=p.quill.getLines(N.index,N.length);if(z.length===1)p.position(p.quill.getBounds(N));else{var V=z[z.length-1],J=p.quill.getIndex(V),H=Math.min(V.length()-1,N.index+N.length-J),R=p.quill.getBounds(new t.Range(J,H));p.position(R)}}else document.activeElement!==p.textbox&&p.quill.hasFocus()&&p.hide()}),p}return _(T,[{key:"listen",value:function(){var A=this;E(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){A.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!A.root.classList.contains("ql-hidden")){var p=A.quill.getSelection();p!=null&&A.position(A.quill.getBounds(p))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(A){var p=E(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"position",this).call(this,A),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",p===0)return p;O.style.marginLeft=-1*p-O.offsetWidth/2+"px"}}]),T}(a.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),v.BubbleTooltip=k,v.default=d},function(b,v,f){b.exports=f(63)}]).default})})(Kn);var nr=Kn.exports;const qn=Ee.getDefaultExportFromCjs(nr);var He=-1,Be=1,Re=0;function wt(j,U,b,v){if(j===U)return j?[[Re,j]]:[];if(b!=null){var f=lr(j,U,b);if(f)return f}var E=Mn(j,U),_=j.substring(0,E);j=j.substring(E),U=U.substring(E),E=Dn(j,U);var m=j.substring(j.length-E);j=j.substring(0,j.length-E),U=U.substring(0,U.length-E);var g=rr(j,U);return _&&g.unshift([Re,_]),m&&g.push([Re,m]),Vn(g,v),g}function rr(j,U){var b;if(!j)return[[Be,U]];if(!U)return[[He,j]];var v=j.length>U.length?j:U,f=j.length>U.length?U:j,E=v.indexOf(f);if(E!==-1)return b=[[Be,v.substring(0,E)],[Re,f],[Be,v.substring(E+f.length)]],j.length>U.length&&(b[0][0]=b[2][0]=He),b;if(f.length===1)return[[He,j],[Be,U]];var _=or(j,U);if(_){var m=_[0],g=_[1],y=_[2],h=_[3],a=_[4],e=wt(m,y),t=wt(g,h);return e.concat([[Re,a]],t)}return ir(j,U)}function ir(j,U){for(var b=j.length,v=U.length,f=Math.ceil((b+v)/2),E=f,_=2*f,m=new Array(_),g=new Array(_),y=0;y<_;y++)m[y]=-1,g[y]=-1;m[E+1]=0,g[E+1]=0;for(var h=b-v,a=h%2!==0,e=0,t=0,s=0,i=0,u=0;u<f;u++){for(var r=-u+e;r<=u-t;r+=2){var o=E+r,c;r===-u||r!==u&&m[o-1]<m[o+1]?c=m[o+1]:c=m[o-1]+1;for(var n=c-r;c<b&&n<v&&j.charAt(c)===U.charAt(n);)c++,n++;if(m[o]=c,c>b)t+=2;else if(n>v)e+=2;else if(a){var d=E+h-r;if(d>=0&&d<_&&g[d]!==-1){var k=b-g[d];if(c>=k)return Fn(j,U,c,n)}}}for(var w=-u+s;w<=u-i;w+=2){var d=E+w,k;w===-u||w!==u&&g[d-1]<g[d+1]?k=g[d+1]:k=g[d-1]+1;for(var T=k-w;k<b&&T<v&&j.charAt(b-k-1)===U.charAt(v-T-1);)k++,T++;if(g[d]=k,k>b)i+=2;else if(T>v)s+=2;else if(!a){var o=E+h-w;if(o>=0&&o<_&&m[o]!==-1){var c=m[o],n=E+c-o;if(k=b-k,c>=k)return Fn(j,U,c,n)}}}}return[[He,j],[Be,U]]}function Fn(j,U,b,v){var f=j.substring(0,b),E=U.substring(0,v),_=j.substring(b),m=U.substring(v),g=wt(f,E),y=wt(_,m);return g.concat(y)}function Mn(j,U){if(!j||!U||j.charAt(0)!==U.charAt(0))return 0;for(var b=0,v=Math.min(j.length,U.length),f=v,E=0;b<f;)j.substring(E,f)==U.substring(E,f)?(b=f,E=b):v=f,f=Math.floor((v-b)/2+b);return Gn(j.charCodeAt(f-1))&&f--,f}function Dn(j,U){if(!j||!U||j.slice(-1)!==U.slice(-1))return 0;for(var b=0,v=Math.min(j.length,U.length),f=v,E=0;b<f;)j.substring(j.length-f,j.length-E)==U.substring(U.length-f,U.length-E)?(b=f,E=b):v=f,f=Math.floor((v-b)/2+b);return $n(j.charCodeAt(j.length-f))&&f--,f}function or(j,U){var b=j.length>U.length?j:U,v=j.length>U.length?U:j;if(b.length<4||v.length*2<b.length)return null;function f(t,s,i){for(var u=t.substring(i,i+Math.floor(t.length/4)),r=-1,o="",c,n,d,k;(r=s.indexOf(u,r+1))!==-1;){var w=Mn(t.substring(i),s.substring(r)),T=Dn(t.substring(0,i),s.substring(0,r));o.length<T+w&&(o=s.substring(r-T,r)+s.substring(r,r+w),c=t.substring(0,i-T),n=t.substring(i+w),d=s.substring(0,r-T),k=s.substring(r+w))}return o.length*2>=t.length?[c,n,d,k,o]:null}var E=f(b,v,Math.ceil(b.length/4)),_=f(b,v,Math.ceil(b.length/2)),m;if(!E&&!_)return null;_?E?m=E[4].length>_[4].length?E:_:m=_:m=E;var g,y,h,a;j.length>U.length?(g=m[0],y=m[1],h=m[2],a=m[3]):(h=m[0],a=m[1],g=m[2],y=m[3]);var e=m[4];return[g,y,h,a,e]}function Vn(j,U){j.push([Re,""]);for(var b=0,v=0,f=0,E="",_="",m;b<j.length;){if(b<j.length-1&&!j[b][1]){j.splice(b,1);continue}switch(j[b][0]){case Be:f++,_+=j[b][1],b++;break;case He:v++,E+=j[b][1],b++;break;case Re:var g=b-f-v-1;if(U){if(g>=0&&Wn(j[g][1])){var y=j[g][1].slice(-1);if(j[g][1]=j[g][1].slice(0,-1),E=y+E,_=y+_,!j[g][1]){j.splice(g,1),b--;var h=g-1;j[h]&&j[h][0]===Be&&(f++,_=j[h][1]+_,h--),j[h]&&j[h][0]===He&&(v++,E=j[h][1]+E,h--),g=h}}if(Zn(j[b][1])){var y=j[b][1].charAt(0);j[b][1]=j[b][1].slice(1),E+=y,_+=y}}if(b<j.length-1&&!j[b][1]){j.splice(b,1);break}if(E.length>0||_.length>0){E.length>0&&_.length>0&&(m=Mn(_,E),m!==0&&(g>=0?j[g][1]+=_.substring(0,m):(j.splice(0,0,[Re,_.substring(0,m)]),b++),_=_.substring(m),E=E.substring(m)),m=Dn(_,E),m!==0&&(j[b][1]=_.substring(_.length-m)+j[b][1],_=_.substring(0,_.length-m),E=E.substring(0,E.length-m)));var a=f+v;E.length===0&&_.length===0?(j.splice(b-a,a),b=b-a):E.length===0?(j.splice(b-a,a,[Be,_]),b=b-a+1):_.length===0?(j.splice(b-a,a,[He,E]),b=b-a+1):(j.splice(b-a,a,[He,E],[Be,_]),b=b-a+2)}b!==0&&j[b-1][0]===Re?(j[b-1][1]+=j[b][1],j.splice(b,1)):b++,f=0,v=0,E="",_="";break}}j[j.length-1][1]===""&&j.pop();var e=!1;for(b=1;b<j.length-1;)j[b-1][0]===Re&&j[b+1][0]===Re&&(j[b][1].substring(j[b][1].length-j[b-1][1].length)===j[b-1][1]?(j[b][1]=j[b-1][1]+j[b][1].substring(0,j[b][1].length-j[b-1][1].length),j[b+1][1]=j[b-1][1]+j[b+1][1],j.splice(b-1,1),e=!0):j[b][1].substring(0,j[b+1][1].length)==j[b+1][1]&&(j[b-1][1]+=j[b+1][1],j[b][1]=j[b][1].substring(j[b+1][1].length)+j[b+1][1],j.splice(b+1,1),e=!0)),b++;e&&Vn(j,U)}function Gn(j){return j>=55296&&j<=56319}function $n(j){return j>=56320&&j<=57343}function Zn(j){return $n(j.charCodeAt(0))}function Wn(j){return Gn(j.charCodeAt(j.length-1))}function ar(j){for(var U=[],b=0;b<j.length;b++)j[b][1].length>0&&U.push(j[b]);return U}function jn(j,U,b,v){return Wn(j)||Zn(v)?null:ar([[Re,j],[He,U],[Be,b],[Re,v]])}function lr(j,U,b){var v=typeof b=="number"?{index:b,length:0}:b.oldRange,f=typeof b=="number"?null:b.newRange,E=j.length,_=U.length;if(v.length===0&&(f===null||f.length===0)){var m=v.index,g=j.slice(0,m),y=j.slice(m),h=f?f.index:null;e:{var a=m+_-E;if(h!==null&&h!==a||a<0||a>_)break e;var e=U.slice(0,a),t=U.slice(a);if(t!==y)break e;var s=Math.min(m,a),i=g.slice(0,s),u=e.slice(0,s);if(i!==u)break e;var r=g.slice(s),o=e.slice(s);return jn(i,r,o,y)}e:{if(h!==null&&h!==m)break e;var c=m,e=U.slice(0,c),t=U.slice(c);if(e!==g)break e;var n=Math.min(E-c,_-c),d=y.slice(y.length-n),k=t.slice(t.length-n);if(d!==k)break e;var r=y.slice(0,y.length-n),o=t.slice(0,t.length-n);return jn(g,r,o,d)}}if(v.length>0&&f&&f.length===0)e:{var i=j.slice(0,v.index),d=j.slice(v.index+v.length),s=i.length,n=d.length;if(_<s+n)break e;var u=U.slice(0,s),k=U.slice(_-n);if(i!==u||d!==k)break e;var r=j.slice(s,E-n),o=U.slice(s,_-n);return jn(i,r,o,d)}return null}function Gt(j,U,b){return wt(j,U,b,!0)}Gt.INSERT=Be;Gt.DELETE=He;Gt.EQUAL=Re;var ur=Gt,Kt={exports:{}};Kt.exports;(function(j,U){var b=200,v="__lodash_hash_undefined__",f=9007199254740991,E="[object Arguments]",_="[object Array]",m="[object Boolean]",g="[object Date]",y="[object Error]",h="[object Function]",a="[object GeneratorFunction]",e="[object Map]",t="[object Number]",s="[object Object]",i="[object Promise]",u="[object RegExp]",r="[object Set]",o="[object String]",c="[object Symbol]",n="[object WeakMap]",d="[object ArrayBuffer]",k="[object DataView]",w="[object Float32Array]",T="[object Float64Array]",P="[object Int8Array]",A="[object Int16Array]",p="[object Int32Array]",O="[object Uint8Array]",N="[object Uint8ClampedArray]",L="[object Uint16Array]",D="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,V=/\w*$/,J=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,R={};R[E]=R[_]=R[d]=R[k]=R[m]=R[g]=R[w]=R[T]=R[P]=R[A]=R[p]=R[e]=R[t]=R[s]=R[u]=R[r]=R[o]=R[c]=R[O]=R[N]=R[L]=R[D]=!0,R[y]=R[h]=R[n]=!1;var S=typeof Ee.commonjsGlobal=="object"&&Ee.commonjsGlobal&&Ee.commonjsGlobal.Object===Object&&Ee.commonjsGlobal,I=typeof self=="object"&&self&&self.Object===Object&&self,M=S||I||Function("return this")(),K=U&&!U.nodeType&&U,C=K&&!0&&j&&!j.nodeType&&j,q=C&&C.exports===K;function F(l,x){return l.set(x[0],x[1]),l}function G(l,x){return l.add(x),l}function $(l,x){for(var B=-1,Z=l?l.length:0;++B<Z&&x(l[B],B,l)!==!1;);return l}function X(l,x){for(var B=-1,Z=x.length,se=l.length;++B<Z;)l[se+B]=x[B];return l}function re(l,x,B,Z){var se=-1,ie=l?l.length:0;for(Z&&ie&&(B=l[++se]);++se<ie;)B=x(B,l[se],se,l);return B}function oe(l,x){for(var B=-1,Z=Array(l);++B<l;)Z[B]=x(B);return Z}function le(l,x){return l?.[x]}function ce(l){var x=!1;if(l!=null&&typeof l.toString!="function")try{x=!!(l+"")}catch{}return x}function de(l){var x=-1,B=Array(l.size);return l.forEach(function(Z,se){B[++x]=[se,Z]}),B}function be(l,x){return function(B){return l(x(B))}}function me(l){var x=-1,B=Array(l.size);return l.forEach(function(Z){B[++x]=Z}),B}var W=Array.prototype,Y=Function.prototype,te=Object.prototype,ne=M["__core-js_shared__"],Q=function(){var l=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),fe=Y.toString,ae=te.hasOwnProperty,ue=te.toString,Ne=RegExp("^"+fe.call(ae).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=q?M.Buffer:void 0,ye=M.Symbol,We=M.Uint8Array,ve=be(Object.getPrototypeOf,Object),Ie=Object.create,kt=te.propertyIsEnumerable,$t=W.splice,ft=Object.getOwnPropertySymbols,nt=Ae?Ae.isBuffer:void 0,Nt=be(Object.keys,Object),rt=De(M,"DataView"),Ye=De(M,"Map"),Me=De(M,"Promise"),it=De(M,"Set"),ct=De(M,"WeakMap"),Xe=De(Object,"create"),ht=Le(rt),Qe=Le(Ye),dt=Le(Me),vt=Le(it),pt=Le(ct),$e=ye?ye.prototype:void 0,St=$e?$e.valueOf:void 0;function ze(l){var x=-1,B=l?l.length:0;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function Zt(){this.__data__=Xe?Xe(null):{}}function Wt(l){return this.has(l)&&delete this.__data__[l]}function Yt(l){var x=this.__data__;if(Xe){var B=x[l];return B===v?void 0:B}return ae.call(x,l)?x[l]:void 0}function xt(l){var x=this.__data__;return Xe?x[l]!==void 0:ae.call(x,l)}function yt(l,x){var B=this.__data__;return B[l]=Xe&&x===void 0?v:x,this}ze.prototype.clear=Zt,ze.prototype.delete=Wt,ze.prototype.get=Yt,ze.prototype.has=xt,ze.prototype.set=yt;function we(l){var x=-1,B=l?l.length:0;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function Xt(){this.__data__=[]}function Qt(l){var x=this.__data__,B=at(x,l);if(B<0)return!1;var Z=x.length-1;return B==Z?x.pop():$t.call(x,B,1),!0}function Jt(l){var x=this.__data__,B=at(x,l);return B<0?void 0:x[B][1]}function en(l){return at(this.__data__,l)>-1}function tn(l,x){var B=this.__data__,Z=at(B,l);return Z<0?B.push([l,x]):B[Z][1]=x,this}we.prototype.clear=Xt,we.prototype.delete=Qt,we.prototype.get=Jt,we.prototype.has=en,we.prototype.set=tn;function Se(l){var x=-1,B=l?l.length:0;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function nn(){this.__data__={hash:new ze,map:new(Ye||we),string:new ze}}function rn(l){return et(this,l).delete(l)}function on(l){return et(this,l).get(l)}function an(l){return et(this,l).has(l)}function ln(l,x){return et(this,l).set(l,x),this}Se.prototype.clear=nn,Se.prototype.delete=rn,Se.prototype.get=on,Se.prototype.has=an,Se.prototype.set=ln;function qe(l){this.__data__=new we(l)}function un(){this.__data__=new we}function sn(l){return this.__data__.delete(l)}function fn(l){return this.__data__.get(l)}function cn(l){return this.__data__.has(l)}function hn(l,x){var B=this.__data__;if(B instanceof we){var Z=B.__data__;if(!Ye||Z.length<b-1)return Z.push([l,x]),this;B=this.__data__=new Se(Z)}return B.set(l,x),this}qe.prototype.clear=un,qe.prototype.delete=sn,qe.prototype.get=fn,qe.prototype.has=cn,qe.prototype.set=hn;function ot(l,x){var B=_t(l)||ut(l)?oe(l.length,String):[],Z=B.length,se=!!Z;for(var ie in l)(x||ae.call(l,ie))&&!(se&&(ie=="length"||kn(ie,Z)))&&B.push(ie);return B}function Pt(l,x,B){var Z=l[x];(!(ae.call(l,x)&&It(Z,B))||B===void 0&&!(x in l))&&(l[x]=B)}function at(l,x){for(var B=l.length;B--;)if(It(l[B][0],x))return B;return-1}function Ce(l,x){return l&&bt(x,Et(x),l)}function gt(l,x,B,Z,se,ie,he){var pe;if(Z&&(pe=ie?Z(l,se,ie,he):Z(l)),pe!==void 0)return pe;if(!Ue(l))return l;var _e=_t(l);if(_e){if(pe=wn(l),!x)return On(l,pe)}else{var ge=Ve(l),xe=ge==h||ge==a;if(Mt(l))return lt(l,x);if(ge==s||ge==E||xe&&!ie){if(ce(l))return ie?l:{};if(pe=Fe(xe?{}:l),!x)return En(l,Ce(pe,l))}else{if(!R[ge])return ie?l:{};pe=Tn(l,ge,gt,x)}}he||(he=new qe);var je=he.get(l);if(je)return je;if(he.set(l,pe),!_e)var Oe=B?An(l):Et(l);return $(Oe||l,function(Pe,Te){Oe&&(Te=Pe,Pe=l[Te]),Pt(pe,Te,gt(Pe,x,B,Z,Te,l,he))}),pe}function dn(l){return Ue(l)?Ie(l):{}}function vn(l,x,B){var Z=x(l);return _t(l)?Z:X(Z,B(l))}function pn(l){return ue.call(l)}function yn(l){if(!Ue(l)||Sn(l))return!1;var x=Ot(l)||ce(l)?Ne:J;return x.test(Le(l))}function gn(l){if(!jt(l))return Nt(l);var x=[];for(var B in Object(l))ae.call(l,B)&&B!="constructor"&&x.push(B);return x}function lt(l,x){if(x)return l.slice();var B=new l.constructor(l.length);return l.copy(B),B}function mt(l){var x=new l.constructor(l.byteLength);return new We(x).set(new We(l)),x}function Je(l,x){var B=x?mt(l.buffer):l.buffer;return new l.constructor(B,l.byteOffset,l.byteLength)}function Lt(l,x,B){var Z=x?B(de(l),!0):de(l);return re(Z,F,new l.constructor)}function qt(l){var x=new l.constructor(l.source,V.exec(l));return x.lastIndex=l.lastIndex,x}function mn(l,x,B){var Z=x?B(me(l),!0):me(l);return re(Z,G,new l.constructor)}function bn(l){return St?Object(St.call(l)):{}}function _n(l,x){var B=x?mt(l.buffer):l.buffer;return new l.constructor(B,l.byteOffset,l.length)}function On(l,x){var B=-1,Z=l.length;for(x||(x=Array(Z));++B<Z;)x[B]=l[B];return x}function bt(l,x,B,Z){B||(B={});for(var se=-1,ie=x.length;++se<ie;){var he=x[se],pe=Z?Z(B[he],l[he],he,B,l):void 0;Pt(B,he,pe===void 0?l[he]:pe)}return B}function En(l,x){return bt(l,Ke(l),x)}function An(l){return vn(l,Et,Ke)}function et(l,x){var B=l.__data__;return Nn(x)?B[typeof x=="string"?"string":"hash"]:B.map}function De(l,x){var B=le(l,x);return yn(B)?B:void 0}var Ke=ft?be(ft,Object):Pn,Ve=pn;(rt&&Ve(new rt(new ArrayBuffer(1)))!=k||Ye&&Ve(new Ye)!=e||Me&&Ve(Me.resolve())!=i||it&&Ve(new it)!=r||ct&&Ve(new ct)!=n)&&(Ve=function(l){var x=ue.call(l),B=x==s?l.constructor:void 0,Z=B?Le(B):void 0;if(Z)switch(Z){case ht:return k;case Qe:return e;case dt:return i;case vt:return r;case pt:return n}return x});function wn(l){var x=l.length,B=l.constructor(x);return x&&typeof l[0]=="string"&&ae.call(l,"index")&&(B.index=l.index,B.input=l.input),B}function Fe(l){return typeof l.constructor=="function"&&!jt(l)?dn(ve(l)):{}}function Tn(l,x,B,Z){var se=l.constructor;switch(x){case d:return mt(l);case m:case g:return new se(+l);case k:return Je(l,Z);case w:case T:case P:case A:case p:case O:case N:case L:case D:return _n(l,Z);case e:return Lt(l,Z,B);case t:case o:return new se(l);case u:return qt(l);case r:return mn(l,Z,B);case c:return bn(l)}}function kn(l,x){return x=x??f,!!x&&(typeof l=="number"||H.test(l))&&l>-1&&l%1==0&&l<x}function Nn(l){var x=typeof l;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?l!=="__proto__":l===null}function Sn(l){return!!Q&&Q in l}function jt(l){var x=l&&l.constructor,B=typeof x=="function"&&x.prototype||te;return l===B}function Le(l){if(l!=null){try{return fe.call(l)}catch{}try{return l+""}catch{}}return""}function Rt(l){return gt(l,!0,!0)}function It(l,x){return l===x||l!==l&&x!==x}function ut(l){return xn(l)&&ae.call(l,"callee")&&(!kt.call(l,"callee")||ue.call(l)==E)}var _t=Array.isArray;function st(l){return l!=null&&Dt(l.length)&&!Ot(l)}function xn(l){return Bt(l)&&st(l)}var Mt=nt||Ln;function Ot(l){var x=Ue(l)?ue.call(l):"";return x==h||x==a}function Dt(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=f}function Ue(l){var x=typeof l;return!!l&&(x=="object"||x=="function")}function Bt(l){return!!l&&typeof l=="object"}function Et(l){return st(l)?ot(l):gn(l)}function Pn(){return[]}function Ln(){return!1}j.exports=Rt})(Kt,Kt.exports);var Yn=Kt.exports,Vt={exports:{}};Vt.exports;(function(j,U){var b=200,v="__lodash_hash_undefined__",f=1,E=2,_=9007199254740991,m="[object Arguments]",g="[object Array]",y="[object AsyncFunction]",h="[object Boolean]",a="[object Date]",e="[object Error]",t="[object Function]",s="[object GeneratorFunction]",i="[object Map]",u="[object Number]",r="[object Null]",o="[object Object]",c="[object Promise]",n="[object Proxy]",d="[object RegExp]",k="[object Set]",w="[object String]",T="[object Symbol]",P="[object Undefined]",A="[object WeakMap]",p="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",L="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",V="[object Int32Array]",J="[object Uint8Array]",H="[object Uint8ClampedArray]",R="[object Uint16Array]",S="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,C={};C[N]=C[L]=C[D]=C[z]=C[V]=C[J]=C[H]=C[R]=C[S]=!0,C[m]=C[g]=C[p]=C[h]=C[O]=C[a]=C[e]=C[t]=C[i]=C[u]=C[o]=C[d]=C[k]=C[w]=C[A]=!1;var q=typeof Ee.commonjsGlobal=="object"&&Ee.commonjsGlobal&&Ee.commonjsGlobal.Object===Object&&Ee.commonjsGlobal,F=typeof self=="object"&&self&&self.Object===Object&&self,G=q||F||Function("return this")(),$=U&&!U.nodeType&&U,X=$&&!0&&j&&!j.nodeType&&j,re=X&&X.exports===$,oe=re&&q.process,le=function(){try{return oe&&oe.binding&&oe.binding("util")}catch{}}(),ce=le&&le.isTypedArray;function de(l,x){for(var B=-1,Z=l==null?0:l.length,se=0,ie=[];++B<Z;){var he=l[B];x(he,B,l)&&(ie[se++]=he)}return ie}function be(l,x){for(var B=-1,Z=x.length,se=l.length;++B<Z;)l[se+B]=x[B];return l}function me(l,x){for(var B=-1,Z=l==null?0:l.length;++B<Z;)if(x(l[B],B,l))return!0;return!1}function W(l,x){for(var B=-1,Z=Array(l);++B<l;)Z[B]=x(B);return Z}function Y(l){return function(x){return l(x)}}function te(l,x){return l.has(x)}function ne(l,x){return l?.[x]}function Q(l){var x=-1,B=Array(l.size);return l.forEach(function(Z,se){B[++x]=[se,Z]}),B}function fe(l,x){return function(B){return l(x(B))}}function ae(l){var x=-1,B=Array(l.size);return l.forEach(function(Z){B[++x]=Z}),B}var ue=Array.prototype,Ne=Function.prototype,Ae=Object.prototype,ye=G["__core-js_shared__"],We=Ne.toString,ve=Ae.hasOwnProperty,Ie=function(){var l=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),kt=Ae.toString,$t=RegExp("^"+We.call(ve).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=re?G.Buffer:void 0,nt=G.Symbol,Nt=G.Uint8Array,rt=Ae.propertyIsEnumerable,Ye=ue.splice,Me=nt?nt.toStringTag:void 0,it=Object.getOwnPropertySymbols,ct=ft?ft.isBuffer:void 0,Xe=fe(Object.keys,Object),ht=Ke(G,"DataView"),Qe=Ke(G,"Map"),dt=Ke(G,"Promise"),vt=Ke(G,"Set"),pt=Ke(G,"WeakMap"),$e=Ke(Object,"create"),St=Le(ht),ze=Le(Qe),Zt=Le(dt),Wt=Le(vt),Yt=Le(pt),xt=nt?nt.prototype:void 0,yt=xt?xt.valueOf:void 0;function we(l){var x=-1,B=l==null?0:l.length;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function Xt(){this.__data__=$e?$e(null):{},this.size=0}function Qt(l){var x=this.has(l)&&delete this.__data__[l];return this.size-=x?1:0,x}function Jt(l){var x=this.__data__;if($e){var B=x[l];return B===v?void 0:B}return ve.call(x,l)?x[l]:void 0}function en(l){var x=this.__data__;return $e?x[l]!==void 0:ve.call(x,l)}function tn(l,x){var B=this.__data__;return this.size+=this.has(l)?0:1,B[l]=$e&&x===void 0?v:x,this}we.prototype.clear=Xt,we.prototype.delete=Qt,we.prototype.get=Jt,we.prototype.has=en,we.prototype.set=tn;function Se(l){var x=-1,B=l==null?0:l.length;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function nn(){this.__data__=[],this.size=0}function rn(l){var x=this.__data__,B=lt(x,l);if(B<0)return!1;var Z=x.length-1;return B==Z?x.pop():Ye.call(x,B,1),--this.size,!0}function on(l){var x=this.__data__,B=lt(x,l);return B<0?void 0:x[B][1]}function an(l){return lt(this.__data__,l)>-1}function ln(l,x){var B=this.__data__,Z=lt(B,l);return Z<0?(++this.size,B.push([l,x])):B[Z][1]=x,this}Se.prototype.clear=nn,Se.prototype.delete=rn,Se.prototype.get=on,Se.prototype.has=an,Se.prototype.set=ln;function qe(l){var x=-1,B=l==null?0:l.length;for(this.clear();++x<B;){var Z=l[x];this.set(Z[0],Z[1])}}function un(){this.size=0,this.__data__={hash:new we,map:new(Qe||Se),string:new we}}function sn(l){var x=De(this,l).delete(l);return this.size-=x?1:0,x}function fn(l){return De(this,l).get(l)}function cn(l){return De(this,l).has(l)}function hn(l,x){var B=De(this,l),Z=B.size;return B.set(l,x),this.size+=B.size==Z?0:1,this}qe.prototype.clear=un,qe.prototype.delete=sn,qe.prototype.get=fn,qe.prototype.has=cn,qe.prototype.set=hn;function ot(l){var x=-1,B=l==null?0:l.length;for(this.__data__=new qe;++x<B;)this.add(l[x])}function Pt(l){return this.__data__.set(l,v),this}function at(l){return this.__data__.has(l)}ot.prototype.add=ot.prototype.push=Pt,ot.prototype.has=at;function Ce(l){var x=this.__data__=new Se(l);this.size=x.size}function gt(){this.__data__=new Se,this.size=0}function dn(l){var x=this.__data__,B=x.delete(l);return this.size=x.size,B}function vn(l){return this.__data__.get(l)}function pn(l){return this.__data__.has(l)}function yn(l,x){var B=this.__data__;if(B instanceof Se){var Z=B.__data__;if(!Qe||Z.length<b-1)return Z.push([l,x]),this.size=++B.size,this;B=this.__data__=new qe(Z)}return B.set(l,x),this.size=B.size,this}Ce.prototype.clear=gt,Ce.prototype.delete=dn,Ce.prototype.get=vn,Ce.prototype.has=pn,Ce.prototype.set=yn;function gn(l,x){var B=ut(l),Z=!B&&It(l),se=!B&&!Z&&st(l),ie=!B&&!Z&&!se&&Bt(l),he=B||Z||se||ie,pe=he?W(l.length,String):[],_e=pe.length;for(var ge in l)(x||ve.call(l,ge))&&!(he&&(ge=="length"||se&&(ge=="offset"||ge=="parent")||ie&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||Tn(ge,_e)))&&pe.push(ge);return pe}function lt(l,x){for(var B=l.length;B--;)if(Rt(l[B][0],x))return B;return-1}function mt(l,x,B){var Z=x(l);return ut(l)?Z:be(Z,B(l))}function Je(l){return l==null?l===void 0?P:r:Me&&Me in Object(l)?Ve(l):jt(l)}function Lt(l){return Ue(l)&&Je(l)==m}function qt(l,x,B,Z,se){return l===x?!0:l==null||x==null||!Ue(l)&&!Ue(x)?l!==l&&x!==x:mn(l,x,B,Z,qt,se)}function mn(l,x,B,Z,se,ie){var he=ut(l),pe=ut(x),_e=he?g:Fe(l),ge=pe?g:Fe(x);_e=_e==m?o:_e,ge=ge==m?o:ge;var xe=_e==o,je=ge==o,Oe=_e==ge;if(Oe&&st(l)){if(!st(x))return!1;he=!0,xe=!1}if(Oe&&!xe)return ie||(ie=new Ce),he||Bt(l)?bt(l,x,B,Z,se,ie):En(l,x,_e,B,Z,se,ie);if(!(B&f)){var Pe=xe&&ve.call(l,"__wrapped__"),Te=je&&ve.call(x,"__wrapped__");if(Pe||Te){var Ze=Pe?l.value():l,Ge=Te?x.value():x;return ie||(ie=new Ce),se(Ze,Ge,B,Z,ie)}}return Oe?(ie||(ie=new Ce),An(l,x,B,Z,se,ie)):!1}function bn(l){if(!Dt(l)||Nn(l))return!1;var x=Mt(l)?$t:M;return x.test(Le(l))}function _n(l){return Ue(l)&&Ot(l.length)&&!!C[Je(l)]}function On(l){if(!Sn(l))return Xe(l);var x=[];for(var B in Object(l))ve.call(l,B)&&B!="constructor"&&x.push(B);return x}function bt(l,x,B,Z,se,ie){var he=B&f,pe=l.length,_e=x.length;if(pe!=_e&&!(he&&_e>pe))return!1;var ge=ie.get(l);if(ge&&ie.get(x))return ge==x;var xe=-1,je=!0,Oe=B&E?new ot:void 0;for(ie.set(l,x),ie.set(x,l);++xe<pe;){var Pe=l[xe],Te=x[xe];if(Z)var Ze=he?Z(Te,Pe,xe,x,l,ie):Z(Pe,Te,xe,l,x,ie);if(Ze!==void 0){if(Ze)continue;je=!1;break}if(Oe){if(!me(x,function(Ge,tt){if(!te(Oe,tt)&&(Pe===Ge||se(Pe,Ge,B,Z,ie)))return Oe.push(tt)})){je=!1;break}}else if(!(Pe===Te||se(Pe,Te,B,Z,ie))){je=!1;break}}return ie.delete(l),ie.delete(x),je}function En(l,x,B,Z,se,ie,he){switch(B){case O:if(l.byteLength!=x.byteLength||l.byteOffset!=x.byteOffset)return!1;l=l.buffer,x=x.buffer;case p:return!(l.byteLength!=x.byteLength||!ie(new Nt(l),new Nt(x)));case h:case a:case u:return Rt(+l,+x);case e:return l.name==x.name&&l.message==x.message;case d:case w:return l==x+"";case i:var pe=Q;case k:var _e=Z&f;if(pe||(pe=ae),l.size!=x.size&&!_e)return!1;var ge=he.get(l);if(ge)return ge==x;Z|=E,he.set(l,x);var xe=bt(pe(l),pe(x),Z,se,ie,he);return he.delete(l),xe;case T:if(yt)return yt.call(l)==yt.call(x)}return!1}function An(l,x,B,Z,se,ie){var he=B&f,pe=et(l),_e=pe.length,ge=et(x),xe=ge.length;if(_e!=xe&&!he)return!1;for(var je=_e;je--;){var Oe=pe[je];if(!(he?Oe in x:ve.call(x,Oe)))return!1}var Pe=ie.get(l);if(Pe&&ie.get(x))return Pe==x;var Te=!0;ie.set(l,x),ie.set(x,l);for(var Ze=he;++je<_e;){Oe=pe[je];var Ge=l[Oe],tt=x[Oe];if(Z)var Cn=he?Z(tt,Ge,Oe,x,l,ie):Z(Ge,tt,Oe,l,x,ie);if(!(Cn===void 0?Ge===tt||se(Ge,tt,B,Z,ie):Cn)){Te=!1;break}Ze||(Ze=Oe=="constructor")}if(Te&&!Ze){var Ct=l.constructor,Ft=x.constructor;Ct!=Ft&&"constructor"in l&&"constructor"in x&&!(typeof Ct=="function"&&Ct instanceof Ct&&typeof Ft=="function"&&Ft instanceof Ft)&&(Te=!1)}return ie.delete(l),ie.delete(x),Te}function et(l){return mt(l,Et,wn)}function De(l,x){var B=l.__data__;return kn(x)?B[typeof x=="string"?"string":"hash"]:B.map}function Ke(l,x){var B=ne(l,x);return bn(B)?B:void 0}function Ve(l){var x=ve.call(l,Me),B=l[Me];try{l[Me]=void 0;var Z=!0}catch{}var se=kt.call(l);return Z&&(x?l[Me]=B:delete l[Me]),se}var wn=it?function(l){return l==null?[]:(l=Object(l),de(it(l),function(x){return rt.call(l,x)}))}:Pn,Fe=Je;(ht&&Fe(new ht(new ArrayBuffer(1)))!=O||Qe&&Fe(new Qe)!=i||dt&&Fe(dt.resolve())!=c||vt&&Fe(new vt)!=k||pt&&Fe(new pt)!=A)&&(Fe=function(l){var x=Je(l),B=x==o?l.constructor:void 0,Z=B?Le(B):"";if(Z)switch(Z){case St:return O;case ze:return i;case Zt:return c;case Wt:return k;case Yt:return A}return x});function Tn(l,x){return x=x??_,!!x&&(typeof l=="number"||K.test(l))&&l>-1&&l%1==0&&l<x}function kn(l){var x=typeof l;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?l!=="__proto__":l===null}function Nn(l){return!!Ie&&Ie in l}function Sn(l){var x=l&&l.constructor,B=typeof x=="function"&&x.prototype||Ae;return l===B}function jt(l){return kt.call(l)}function Le(l){if(l!=null){try{return We.call(l)}catch{}try{return l+""}catch{}}return""}function Rt(l,x){return l===x||l!==l&&x!==x}var It=Lt(function(){return arguments}())?Lt:function(l){return Ue(l)&&ve.call(l,"callee")&&!rt.call(l,"callee")},ut=Array.isArray;function _t(l){return l!=null&&Ot(l.length)&&!Mt(l)}var st=ct||Ln;function xn(l,x){return qt(l,x)}function Mt(l){if(!Dt(l))return!1;var x=Je(l);return x==t||x==s||x==y||x==n}function Ot(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=_}function Dt(l){var x=typeof l;return l!=null&&(x=="object"||x=="function")}function Ue(l){return l!=null&&typeof l=="object"}var Bt=ce?Y(ce):_n;function Et(l){return _t(l)?gn(l):On(l)}function Pn(){return[]}function Ln(){return!1}j.exports=xn})(Vt,Vt.exports);var Xn=Vt.exports,Bn={},Qn=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(Bn,"__esModule",{value:!0});var sr=Qn(Yn),fr=Qn(Xn),In;(function(j){function U(E,_,m){E===void 0&&(E={}),_===void 0&&(_={}),typeof E!="object"&&(E={}),typeof _!="object"&&(_={});var g=sr.default(_);m||(g=Object.keys(g).reduce(function(h,a){return g[a]!=null&&(h[a]=g[a]),h},{}));for(var y in E)E[y]!==void 0&&_[y]===void 0&&(g[y]=E[y]);return Object.keys(g).length>0?g:void 0}j.compose=U;function b(E,_){E===void 0&&(E={}),_===void 0&&(_={}),typeof E!="object"&&(E={}),typeof _!="object"&&(_={});var m=Object.keys(E).concat(Object.keys(_)).reduce(function(g,y){return fr.default(E[y],_[y])||(g[y]=_[y]===void 0?null:_[y]),g},{});return Object.keys(m).length>0?m:void 0}j.diff=b;function v(E,_){E===void 0&&(E={}),_===void 0&&(_={}),E=E||{};var m=Object.keys(_).reduce(function(g,y){return _[y]!==E[y]&&E[y]!==void 0&&(g[y]=_[y]),g},{});return Object.keys(E).reduce(function(g,y){return E[y]!==_[y]&&_[y]===void 0&&(g[y]=null),g},m)}j.invert=v;function f(E,_,m){if(m===void 0&&(m=!1),typeof E!="object")return _;if(typeof _=="object"){if(!m)return _;var g=Object.keys(_).reduce(function(y,h){return E[h]===void 0&&(y[h]=_[h]),y},{});return Object.keys(g).length>0?g:void 0}}j.transform=f})(In||(In={}));Bn.default=In;var Ut={},Ht={},Un;function cr(){if(Un)return Ht;Un=1;var j=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(Ht,"__esModule",{value:!0});var U=j(Jn()),b=function(){function v(f){this.ops=f,this.index=0,this.offset=0}return v.prototype.hasNext=function(){return this.peekLength()<1/0},v.prototype.next=function(f){f||(f=1/0);var E=this.ops[this.index];if(E){var _=this.offset,m=U.default.length(E);if(f>=m-_?(f=m-_,this.index+=1,this.offset=0):this.offset+=f,typeof E.delete=="number")return{delete:f};var g={};return E.attributes&&(g.attributes=E.attributes),typeof E.retain=="number"?g.retain=f:typeof E.insert=="string"?g.insert=E.insert.substr(_,f):g.insert=E.insert,g}else return{retain:1/0}},v.prototype.peek=function(){return this.ops[this.index]},v.prototype.peekLength=function(){return this.ops[this.index]?U.default.length(this.ops[this.index])-this.offset:1/0},v.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},v.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var f=this.offset,E=this.index,_=this.next(),m=this.ops.slice(this.index);return this.offset=f,this.index=E,[_].concat(m)}else return[]},v}();return Ht.default=b,Ht}var Hn;function Jn(){if(Hn)return Ut;Hn=1;var j=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(Ut,"__esModule",{value:!0});var U=j(cr()),b;return function(v){function f(_){return new U.default(_)}v.iterator=f;function E(_){return typeof _.delete=="number"?_.delete:typeof _.retain=="number"?_.retain:typeof _.insert=="string"?_.insert.length:1}v.length=E}(b||(b={})),Ut.default=b,Ut}var Tt=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(j){return j&&j.__esModule?j:{default:j}},zt=Tt(ur),hr=Tt(Yn),Rn=Tt(Xn),At=Tt(Bn),ke=Tt(Jn()),dr=String.fromCharCode(0),vr=function(){function j(U){Array.isArray(U)?this.ops=U:U!=null&&Array.isArray(U.ops)?this.ops=U.ops:this.ops=[]}return j.prototype.insert=function(U,b){var v={};return typeof U=="string"&&U.length===0?this:(v.insert=U,b!=null&&typeof b=="object"&&Object.keys(b).length>0&&(v.attributes=b),this.push(v))},j.prototype.delete=function(U){return U<=0?this:this.push({delete:U})},j.prototype.retain=function(U,b){if(U<=0)return this;var v={retain:U};return b!=null&&typeof b=="object"&&Object.keys(b).length>0&&(v.attributes=b),this.push(v)},j.prototype.push=function(U){var b=this.ops.length,v=this.ops[b-1];if(U=hr.default(U),typeof v=="object"){if(typeof U.delete=="number"&&typeof v.delete=="number")return this.ops[b-1]={delete:v.delete+U.delete},this;if(typeof v.delete=="number"&&U.insert!=null&&(b-=1,v=this.ops[b-1],typeof v!="object"))return this.ops.unshift(U),this;if(Rn.default(U.attributes,v.attributes)){if(typeof U.insert=="string"&&typeof v.insert=="string")return this.ops[b-1]={insert:v.insert+U.insert},typeof U.attributes=="object"&&(this.ops[b-1].attributes=U.attributes),this;if(typeof U.retain=="number"&&typeof v.retain=="number")return this.ops[b-1]={retain:v.retain+U.retain},typeof U.attributes=="object"&&(this.ops[b-1].attributes=U.attributes),this}}return b===this.ops.length?this.ops.push(U):this.ops.splice(b,0,U),this},j.prototype.chop=function(){var U=this.ops[this.ops.length-1];return U&&U.retain&&!U.attributes&&this.ops.pop(),this},j.prototype.filter=function(U){return this.ops.filter(U)},j.prototype.forEach=function(U){this.ops.forEach(U)},j.prototype.map=function(U){return this.ops.map(U)},j.prototype.partition=function(U){var b=[],v=[];return this.forEach(function(f){var E=U(f)?b:v;E.push(f)}),[b,v]},j.prototype.reduce=function(U,b){return this.ops.reduce(U,b)},j.prototype.changeLength=function(){return this.reduce(function(U,b){return b.insert?U+ke.default.length(b):b.delete?U-b.delete:U},0)},j.prototype.length=function(){return this.reduce(function(U,b){return U+ke.default.length(b)},0)},j.prototype.slice=function(U,b){U===void 0&&(U=0),b===void 0&&(b=1/0);for(var v=[],f=ke.default.iterator(this.ops),E=0;E<b&&f.hasNext();){var _=void 0;E<U?_=f.next(U-E):(_=f.next(b-E),v.push(_)),E+=ke.default.length(_)}return new j(v)},j.prototype.compose=function(U){var b=ke.default.iterator(this.ops),v=ke.default.iterator(U.ops),f=[],E=v.peek();if(E!=null&&typeof E.retain=="number"&&E.attributes==null){for(var _=E.retain;b.peekType()==="insert"&&b.peekLength()<=_;)_-=b.peekLength(),f.push(b.next());E.retain-_>0&&v.next(E.retain-_)}for(var m=new j(f);b.hasNext()||v.hasNext();)if(v.peekType()==="insert")m.push(v.next());else if(b.peekType()==="delete")m.push(b.next());else{var g=Math.min(b.peekLength(),v.peekLength()),y=b.next(g),h=v.next(g);if(typeof h.retain=="number"){var a={};typeof y.retain=="number"?a.retain=g:a.insert=y.insert;var e=At.default.compose(y.attributes,h.attributes,typeof y.retain=="number");if(e&&(a.attributes=e),m.push(a),!v.hasNext()&&Rn.default(m.ops[m.ops.length-1],a)){var t=new j(b.rest());return m.concat(t).chop()}}else typeof h.delete=="number"&&typeof y.retain=="number"&&m.push(h)}return m.chop()},j.prototype.concat=function(U){var b=new j(this.ops.slice());return U.ops.length>0&&(b.push(U.ops[0]),b.ops=b.ops.concat(U.ops.slice(1))),b},j.prototype.diff=function(U,b){if(this.ops===U.ops)return new j;var v=[this,U].map(function(g){return g.map(function(y){if(y.insert!=null)return typeof y.insert=="string"?y.insert:dr;var h=g===U?"on":"with";throw new Error("diff() called "+h+" non-document")}).join("")}),f=new j,E=zt.default(v[0],v[1],b),_=ke.default.iterator(this.ops),m=ke.default.iterator(U.ops);return E.forEach(function(g){for(var y=g[1].length;y>0;){var h=0;switch(g[0]){case zt.default.INSERT:h=Math.min(m.peekLength(),y),f.push(m.next(h));break;case zt.default.DELETE:h=Math.min(y,_.peekLength()),_.next(h),f.delete(h);break;case zt.default.EQUAL:h=Math.min(_.peekLength(),m.peekLength(),y);var a=_.next(h),e=m.next(h);Rn.default(a.insert,e.insert)?f.retain(h,At.default.diff(a.attributes,e.attributes)):f.push(e).delete(h);break}y-=h}}),f.chop()},j.prototype.eachLine=function(U,b){b===void 0&&(b=`
42
+ `);for(var v=ke.default.iterator(this.ops),f=new j,E=0;v.hasNext();){if(v.peekType()!=="insert")return;var _=v.peek(),m=ke.default.length(_)-v.peekLength(),g=typeof _.insert=="string"?_.insert.indexOf(b,m)-m:-1;if(g<0)f.push(v.next());else if(g>0)f.push(v.next(g));else{if(U(f,v.next(1).attributes||{},E)===!1)return;E+=1,f=new j}}f.length()>0&&U(f,{},E)},j.prototype.invert=function(U){var b=new j;return this.reduce(function(v,f){if(f.insert)b.delete(ke.default.length(f));else{if(f.retain&&f.attributes==null)return b.retain(f.retain),v+f.retain;if(f.delete||f.retain&&f.attributes){var E=f.delete||f.retain,_=U.slice(v,v+E);return _.forEach(function(m){f.delete?b.push(m):f.retain&&f.attributes&&b.retain(ke.default.length(m),At.default.invert(f.attributes,m.attributes))}),v+E}}return v},0),b.chop()},j.prototype.transform=function(U,b){if(b===void 0&&(b=!1),b=!!b,typeof U=="number")return this.transformPosition(U,b);for(var v=U,f=ke.default.iterator(this.ops),E=ke.default.iterator(v.ops),_=new j;f.hasNext()||E.hasNext();)if(f.peekType()==="insert"&&(b||E.peekType()!=="insert"))_.retain(ke.default.length(f.next()));else if(E.peekType()==="insert")_.push(E.next());else{var m=Math.min(f.peekLength(),E.peekLength()),g=f.next(m),y=E.next(m);if(g.delete)continue;y.delete?_.push(y):_.retain(m,At.default.transform(g.attributes,y.attributes,b))}return _.chop()},j.prototype.transformPosition=function(U,b){b===void 0&&(b=!1),b=!!b;for(var v=ke.default.iterator(this.ops),f=0;v.hasNext()&&f<=U;){var E=v.peekLength(),_=v.peekType();if(v.next(),_==="delete"){U-=Math.min(E,U-f);continue}else _==="insert"&&(f<U||!b)&&(U+=E);f+=E}return U},j.Op=ke.default,j.AttributeMap=At.default,j}(),pr=vr;const yr=Ee.getDefaultExportFromCjs(pr);/*!
43
+ * VueQuill @vueup/vue-quill v1.2.0
44
+ * https://vueup.github.io/vue-quill/
45
+ *
46
+ * Includes quill v1.3.7
47
+ * https://quilljs.com/
48
+ *
49
+ * Copyright (c) 2023 Ahmad Luthfi Masruri
50
+ * Released under the MIT license
51
+ * Date: 2023-05-12T08:44:03.742Z
52
+ */const zn={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},gr=ee.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:j=>["delta","html","text"].includes(j)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:j=>["snow","bubble",""].includes(j)},toolbar:{type:[String,Array,Object],required:!1,validator:j=>typeof j=="string"&&j!==""?j.charAt(0)==="#"?!0:Object.keys(zn).indexOf(j)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(j,U)=>{ee.onMounted(()=>{E()}),ee.onBeforeUnmount(()=>{b=null});let b,v;const f=ee.ref(),E=()=>{var p;if(f.value){if(v=_(),j.modules)if(Array.isArray(j.modules))for(const O of j.modules)qn.register(`modules/${O.name}`,O.module);else qn.register(`modules/${j.modules.name}`,j.modules.module);b=new qn(f.value,v),c(j.content),b.on("text-change",a),b.on("selection-change",t),b.on("editor-change",s),j.theme!=="bubble"&&f.value.classList.remove("ql-bubble"),j.theme!=="snow"&&f.value.classList.remove("ql-snow"),(p=b.getModule("toolbar"))===null||p===void 0||p.container.addEventListener("mousedown",O=>{O.preventDefault()}),U.emit("ready",b)}},_=()=>{const p={};if(j.theme!==""&&(p.theme=j.theme),j.readOnly&&(p.readOnly=j.readOnly),j.placeholder&&(p.placeholder=j.placeholder),j.toolbar&&j.toolbar!==""&&(p.modules={toolbar:(()=>{if(typeof j.toolbar=="object")return j.toolbar;if(typeof j.toolbar=="string")return j.toolbar.charAt(0)==="#"?j.toolbar:zn[j.toolbar]})()}),j.modules){const O=(()=>{var N,L;const D={};if(Array.isArray(j.modules))for(const z of j.modules)D[z.name]=(N=z.options)!==null&&N!==void 0?N:{};else D[j.modules.name]=(L=j.modules.options)!==null&&L!==void 0?L:{};return D})();p.modules=Object.assign({},p.modules,O)}return Object.assign({},j.globalOptions,j.options,p)},m=p=>typeof p=="object"&&p?p.slice():p,g=p=>Object.values(p.ops).some(O=>!O.retain||Object.keys(O).length!==1);let y;const h=p=>{if(typeof y==typeof p){if(p===y)return!0;if(typeof p=="object"&&p&&typeof y=="object"&&y)return!g(y.diff(p))}return!1},a=(p,O,N)=>{y=m(o()),h(j.content)||U.emit("update:content",y),U.emit("textChange",{delta:p,oldContents:O,source:N})},e=ee.ref(),t=(p,O,N)=>{e.value=!!b?.hasFocus(),U.emit("selectionChange",{range:p,oldRange:O,source:N})};ee.watch(e,p=>{p?U.emit("focus",f):U.emit("blur",f)});const s=(...p)=>{p[0]==="text-change"&&U.emit("editorChange",{name:p[0],delta:p[1],oldContents:p[2],source:p[3]}),p[0]==="selection-change"&&U.emit("editorChange",{name:p[0],range:p[1],oldRange:p[2],source:p[3]})},i=()=>f.value,u=()=>{var p;return(p=b?.getModule("toolbar"))===null||p===void 0?void 0:p.container},r=()=>{if(b)return b;throw`The quill editor hasn't been instantiated yet,
53
+ make sure to call this method when the editor ready
54
+ or use v-on:ready="onReady(quill)" event instead.`},o=(p,O)=>j.contentType==="html"?k():j.contentType==="text"?n(p,O):b?.getContents(p,O),c=(p,O="api")=>{const N=p||(j.contentType==="delta"?new yr:"");j.contentType==="html"?w(N):j.contentType==="text"?d(N,O):b?.setContents(N,O),y=m(N)},n=(p,O)=>{var N;return(N=b?.getText(p,O))!==null&&N!==void 0?N:""},d=(p,O="api")=>{b?.setText(p,O)},k=()=>{var p;return(p=b?.root.innerHTML)!==null&&p!==void 0?p:""},w=p=>{b&&(b.root.innerHTML=p)},T=(p,O="api")=>{const N=b?.clipboard.convert(p);N&&b?.setContents(N,O)},P=()=>{b?.focus()},A=()=>{ee.nextTick(()=>{var p;!U.slots.toolbar&&b&&((p=b.getModule("toolbar"))===null||p===void 0||p.container.remove()),E()})};return ee.watch(()=>j.content,p=>{if(!b||!p||h(p))return;const O=b.getSelection();O&&ee.nextTick(()=>b?.setSelection(O)),c(p)},{deep:!0}),ee.watch(()=>j.enable,p=>{b&&b.enable(p)}),{editor:f,getEditor:i,getToolbar:u,getQuill:r,getContents:o,setContents:c,getHTML:k,setHTML:w,pasteHTML:T,focus:P,getText:n,setText:d,reinit:A}},render(){var j,U;return[(U=(j=this.$slots).toolbar)===null||U===void 0?void 0:U.call(j),ee.h("div",{ref:"editor",...this.$attrs})]}});const mr=["name","value"],br=["id","data-test","name","required","readonly","autocomplete","placeholder","disabled","maxlength","row"],_r=["id","data-test","name","type","required","readonly","autocomplete","placeholder","disabled","maxlength"],Or={key:4,class:"suffix"},Er={key:5,class:"fresh-booking-input-limit"},Ar=ee.defineComponent({__name:"TextField",props:{modelValue:{},description:{},suffix:{},label:{},id:{},name:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},type:{default:"text"},autocomplete:{},disabled:{type:Boolean,default:!1},limit:{default:1/0},rows:{default:3},inputStyle:{}},emits:["update:modelValue"],setup(j,{emit:U}){const b=U,v=j,f=ee.ref(),E=ee.ref(),_=v.id||ee.ranId(),m=()=>{b("update:modelValue",E.value.getHTML())},g=ee.ref({placeholder:v.placeholder,readOnly:v.readonly,theme:"snow"}),y=ee.computed({get:()=>v.modelValue,set:i=>{b("update:modelValue",i)}}),h=ee.computed(()=>{const i=v.limit;let u=0;return v.modelValue&&(u=v.modelValue.toString().length),i-u}),a=ee.computed(()=>v.readonly?void 0:v.placeholder),e=ee.computed(()=>!!v.name&&!!v.autocomplete);function t(){if(v.type==="textarea"){const i=f.value;i.setAttribute("style",`height:${i.scrollHeight}px`)}}function s(){const i=f.value;i.style.height="auto",i.style.height=i.scrollHeight+"px"}return ee.onMounted(()=>{t()}),(i,u)=>(ee.openBlock(),ee.createBlock(ee.InputField,{label:i.label,id:ee.unref(_),icon:i.icon,"icon-color":i.iconColor,"icon-type":i.iconType,required:i.required,type:i.type,readonly:i.readonly,description:i.description,limit:i.limit},{default:ee.withCtx(()=>[e.value?ee.createCommentVNode("",!0):(ee.openBlock(),ee.createElementBlock("input",{key:0,type:"hidden",name:i.name,value:i.modelValue},null,8,mr)),i.type==="textarea"?ee.withDirectives((ee.openBlock(),ee.createElementBlock("textarea",ee.mergeProps({key:1,"onUpdate:modelValue":u[0]||(u[0]=r=>y.value=r)},i.$attrs,{ref_key:"textField",ref:f,id:ee.unref(_),"data-test":ee.unref(ee.createTestName)(i.name),name:e.value?i.name:void 0,required:!!i.required,readonly:!!i.readonly,autocomplete:i.autocomplete||"off",placeholder:a.value,disabled:i.disabled,maxlength:i.limit,row:i.rows,style:i.inputStyle,onInput:s}),null,16,br)),[[ee.vModelText,y.value]]):i.type==="editor"?(ee.openBlock(),ee.createBlock(ee.unref(gr),{key:2,content:i.modelValue,ref_key:"editorField",ref:E,options:g.value,"content-type":"html",id:ee.unref(_),name:e.value?i.name:null,required:!!i.required,autocomplete:i.autocomplete||"off",placeholder:a.value,disabled:i.disabled,style:ee.normalizeStyle(i.inputStyle),"onUpdate:content":m},null,8,["content","options","id","name","required","autocomplete","placeholder","disabled","style"])):ee.withDirectives((ee.openBlock(),ee.createElementBlock("input",ee.mergeProps({key:3,"onUpdate:modelValue":u[1]||(u[1]=r=>y.value=r)},i.$attrs,{id:ee.unref(_),"data-test":ee.unref(ee.createTestName)(i.name),name:e.value?i.name:void 0,type:i.type,required:!!i.required,readonly:!!i.readonly,autocomplete:i.autocomplete||"off",placeholder:a.value,disabled:i.disabled,maxlength:i.limit,style:i.inputStyle}),null,16,_r)),[[ee.vModelDynamic,y.value]]),i.suffix?(ee.openBlock(),ee.createElementBlock("div",Or,[ee.createBaseVNode("div",null,[ee.createBaseVNode("span",null,ee.toDisplayString(i.suffix),1)])])):ee.createCommentVNode("",!0),h.value!==1/0?(ee.openBlock(),ee.createElementBlock("div",Er,[ee.createBaseVNode("span",{class:ee.normalizeClass({danger:h.value<=15})},ee.toDisplayString(h.value),3),ee.createTextVNode("/"),ee.createBaseVNode("small",null,ee.toDisplayString(i.limit),1)])):ee.createCommentVNode("",!0)]),_:1},8,["label","id","icon","icon-color","icon-type","required","type","readonly","description","limit"]))}});const wr=ee._export_sfc(Ar,[["__scopeId","data-v-a648c80a"]]);exports.TextField=wr;exports._sfc_main=tr;