PageSourceSearch

https://smartlane.pk/build/assets/ConsignmentTicket.30f88eaa.js

js smartlane.pk collected 2026-10-02 00:41:10 UTC 265,960 bytes, 54 lines download raw bytes

vendor: 202,047 bytes, lines 1-41
1import{S as Tt,U as he,V as ne,W as re,I as ve,s as pe,X as ye,g as Yt,q as Ut,J as me,K as Qt,f as nt,e as gt,l as ge,a as z,i as ht,c as Rt,F as kt,k as Ot,h as bt,t as ft,E as xt,b as St,n as jt,v as Xt,D as Mt,B as It,o as et}from"./app.92a0a85e.js";import be from"./Table.3b4c81f5.js";import _e from"./DataLoader.1a35afc0.js";import ke from"./NoData.6788e646.js";import{_ as Oe}from"./_plugin-vue_export-helper.cdc0426e.js";var ie={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(S,k){(function(f,r){S.exports=r()})(typeof self<"u"?self:Tt,function(){return function(d){var f={};function r(b){if(f[b])return f[b].exports;var g=f[b]={i:b,l:!1,exports:{}};return d[b].call(g.exports,g,g.exports,r),g.l=!0,g.exports}return r.m=d,r.c=f,r.d=function(b,g,_){r.o(b,g)||Object.defineProperty(b,g,{configurable:!1,enumerable:!0,get:_})},r.n=function(b){var g=b&&b.__esModule?function(){return b.default}:function(){return b};return r.d(g,"a",g),g},r.o=function(b,g){return Object.prototype.hasOwnProperty.call(b,g)},r.p="",r(r.s=109)}([function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(17),g=r(18),_=r(19),y=r(45),m=r(46),i=r(47),a=r(48),t=r(49),e=r(12),c=r(32),s=r(33),u=r(31),o=r(1),l={Scope:o.Scope,create:o.create,find:o.find,query:o.query,register:o.register,Container:b.default,Format:g.default,Leaf:_.default,Embed:a.default,Scroll:y.default,Block:i.default,Inline:m.default,Text:t.default,Attributor:{Attribute:e.default,Class:c.default,Style:s.default,Store:u.default}};f.default=l},function(d,f,r){var b=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var h in l)l.hasOwnProperty(h)&&(o[h]=l[h])};return function(o,l){u(o,l);function h(){this.constructor=o}o.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}}();Object.defineProperty(f,"__esModule",{value:!0});var g=function(u){b(o,u);function o(l){var h=this;return l="[Parchment] "+l,h=u.call(this,l)||this,h.message=l,h.name=h.constructor.name,h}return o}(Error);f.ParchmentError=g;var _={},y={},m={},i={};f.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=f.Scope||(f.Scope={}));function t(u,o){var l=c(u);if(l==null)throw new g("Unable to create "+u+" blot");var h=l,n=u instanceof Node||u.nodeType===Node.TEXT_NODE?u:h.create(o);return new h(n,o)}f.create=t;function e(u,o){return o===void 0&&(o=!1),u==null?null:u[f.DATA_KEY]!=null?u[f.DATA_KEY].blot:o?e(u.parentNode,o):null}f.find=e;function c(u,o){o===void 0&&(o=a.ANY);var l;if(typeof u=="string")l=i[u]||_[u];else if(u instanceof Text||u.nodeType===Node.TEXT_NODE)l=i.text;else if(typeof u=="number")u&a.LEVEL&a.BLOCK?l=i.block:u&a.LEVEL&a.INLINE&&(l=i.inline);else if(u instanceof HTMLElement){var h=(u.getAttribute("class")||"").split(/\s+/);for(var n in h)if(l=y[h[n]],l)break;l=l||m[u.tagName]}return l==null?null:o&a.LEVEL&l.scope&&o&a.TYPE&l.scope?l:null}f.query=c;function s(){for(var u=[],o=0;o<arguments.length;o++)u[o]=arguments[o];if(u.length>1)return u.map(function(n){return s(n)});var l=u[0];if(typeof l.blotName!="string"&&typeof l.attrName!="string")throw new g("Invalid definition");if(l.blotName==="abstract")throw new g("Cannot register abstract class");if(i[l.blotName||l.attrName]=l,typeof l.keyName=="string")_[l.keyName]=l;else if(l.className!=null&&(y[l.className]=l),l.tagName!=null){Array.isArray(l.tagName)?l.tagName=l.tagName.map(function(n){return n.toUpperCase()}):l.tagName=l.tagName.toUpperCase();var h=Array.isArray(l.tagName)?l.tagName:[l.tagName];h.forEach(function(n){(m[n]==null||l.className==null)&&(m[n]=l)})}return l}f.register=s},function(d,f,r){var b=r(51),g=r(11),_=r(3),y=r(20),m=String.fromCharCode(0),i=function(a){Array.isArray(a)?this.ops=a:a!=null&&Array.isArray(a.ops)?this.ops=a.ops:this.ops=[]};i.prototype.insert=function(a,t){var e={};return a.length===0?this:(e.insert=a,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},i.prototype.delete=function(a){return a<=0?this:this.push({delete:a})},i.prototype.retain=function(a,t){if(a<=0)return this;var e={retain:a};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e)},i.prototype.push=function(a){var t=this.ops.length,e=this.ops[t-1];if(a=_(!0,{},a),typeof e=="object"){if(typeof a.delete=="number"&&typeof e.delete=="number")return this.ops[t-1]={delete:e.delete+a.delete},this;if(typeof e.delete=="number"&&a.insert!=null&&(t-=1,e=this.ops[t-1],typeof e!="object"))return this.ops.unshift(a),this;if(g(a.attributes,e.attributes)){if(typeof a.insert=="string"&&typeof e.insert=="string")return this.ops[t-1]={insert:e.insert+a.insert},typeof a.attributes=="object"&&(this.ops[t-1].attributes=a.attributes),this;if(typeof a.retain=="number"&&typeof e.retain=="number")return this.ops[t-1]={retain:e.retain+a.retain},typeof a.attributes=="object"&&(this.ops[t-1].attributes=a.attributes),this}}return t===this.ops.length?this.ops.push(a):this.ops.splice(t,0,a),this},i.prototype.chop=function(){var a=this.ops[this.ops.length-1];return a&&a.retain&&!a.attributes&&this.ops.pop(),this},i.prototype.filter=function(a){return this.ops.filter(a)},i.prototype.forEach=function(a){this.ops.forEach(a)},i.prototype.map=function(a){return this.ops.map(a)},i.prototype.partition=function(a){var t=[],e=[];return this.forEach(function(c){var s=a(c)?t:e;s.push(c)}),[t,e]},i.prototype.reduce=function(a,t){return this.ops.reduce(a,t)},i.prototype.changeLength=function(){return this.reduce(function(a,t){return t.insert?a+y.length(t):t.delete?a-t.delete:a},0)},i.prototype.length=function(){return this.reduce(function(a,t){return a+y.length(t)},0)},i.prototype.slice=function(a,t){a=a||0,typeof t!="number"&&(t=1/0);for(var e=[],c=y.iterator(this.ops),s=0;s<t&&c.hasNext();){var u;s<a?u=c.next(a-s):(u=c.next(t-s),e.push(u)),s+=y.length(u)}return new i(e)},i.prototype.compose=function(a){var t=y.iterator(this.ops),e=y.iterator(a.ops),c=[],s=e.peek();if(s!=null&&typeof s.retain=="number"&&s.attributes==null){for(var u=s.retain;t.peekType()==="insert"&&t.peekLength()<=u;)u-=t.peekLength(),c.push(t.next());s.retain-u>0&&e.next(s.retain-u)}for(var o=new i(c);t.hasNext()||e.hasNext();)if(e.peekType()==="insert")o.push(e.next());else if(t.peekType()==="delete")o.push(t.next());else{var l=Math.min(t.peekLength(),e.peekLength()),h=t.next(l),n=e.next(l);if(typeof n.retain=="number"){var v={};typeof h.retain=="number"?v.retain=l:v.insert=h.insert;var T=y.attributes.compose(h.attributes,n.attributes,typeof h.retain=="number");if(T&&(v.attributes=T),o.push(v),!e.hasNext()&&g(o.ops[o.ops.length-1],v)){var w=new i(t.rest());return o.concat(w).chop()}}else typeof n.delete=="number"&&typeof h.retain=="number"&&o.push(n)}return o.chop()},i.prototype.concat=function(a){var t=new i(this.ops.slice());return a.ops.length>0&&(t.push(a.ops[0]),t.ops=t.ops.concat(a.ops.slice(1))),t},i.prototype.diff=function(a,t){if(this.ops===a.ops)return new i;var e=[this,a].map(function(l){return l.map(function(h){if(h.insert!=null)return typeof h.insert=="string"?h.insert:m;var n=l===a?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),c=new i,s=b(e[0],e[1],t),u=y.iterator(this.ops),o=y.iterator(a.ops);return s.forEach(function(l){for(var h=l[1].length;h>0;){var n=0;switch(l[0]){case b.INSERT:n=Math.min(o.peekLength(),h),c.push(o.next(n));break;case b.DELETE:n=Math.min(h,u.peekLength()),u.next(n),c.delete(n);break;case b.EQUAL:n=Math.min(u.peekLength(),o.peekLength(),h);var v=u.next(n),T=o.next(n);g(v.insert,T.insert)?c.retain(n,y.attributes.diff(v.attributes,T.attributes)):c.push(T).delete(n);break}h-=n}}),c.chop()},i.prototype.eachLine=function(a,t){t=t||`
7`;for(var e=y.iterator(this.ops),c=new i,s=0;e.hasNext();){if(e.peekType()!=="insert")return;var u=e.peek(),o=y.length(u)-e.peekLength(),l=typeof u.insert=="string"?u.insert.indexOf(t,o)-o:-1;if(l<0)c.push(e.next());else if(l>0)c.push(e.next(l));else{if(a(c,e.next(1).attributes||{},s)===!1)return;s+=1,c=new i}}c.length()>0&&a(c,{},s)},i.prototype.transform=function(a,t){if(t=!!t,typeof a=="number")return this.transformPosition(a,t);for(var e=y.iterator(this.ops),c=y.iterator(a.ops),s=new i;e.hasNext()||c.hasNext();)if(e.peekType()==="insert"&&(t||c.peekType()!=="insert"))s.retain(y.length(e.next()));else if(c.peekType()==="insert")s.push(c.next());else{var u=Math.min(e.peekLength(),c.peekLength()),o=e.next(u),l=c.next(u);if(o.delete)continue;l.delete?s.push(l):s.retain(u,y.attributes.transform(o.attributes,l.attributes,t))}return s.chop()},i.prototype.transformPosition=function(a,t){t=!!t;for(var e=y.iterator(this.ops),c=0;e.hasNext()&&c<=a;){var s=e.peekLength(),u=e.peekType();if(e.next(),u==="delete"){a-=Math.min(s,a-c);continue}else u==="insert"&&(c<a||!t)&&(a+=s);c+=s}return a},d.exports=i},function(d,f){var r=Object.prototype.hasOwnProperty,b=Object.prototype.toString,g=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=function(e){return typeof Array.isArray=="function"?Array.isArray(e):b.call(e)==="[object Array]"},m=function(e){if(!e||b.call(e)!=="[object Object]")return!1;var c=r.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!c&&!s)return!1;var u;for(u in e);return typeof u>"u"||r.call(e,u)},i=function(e,c){g&&c.name==="__proto__"?g(e,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):e[c.name]=c.newValue},a=function(e,c){if(c==="__proto__")if(r.call(e,c)){if(_)return _(e,c).value}else return;return e[c]};d.exports=function t(){var e,c,s,u,o,l,h=arguments[0],n=1,v=arguments.length,T=!1;for(typeof h=="boolean"&&(T=h,h=arguments[1]||{},n=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});n<v;++n)if(e=arguments[n],e!=null)for(c in e)s=a(h,c),u=a(e,c),h!==u&&(T&&u&&(m(u)||(o=y(u)))?(o?(o=!1,l=s&&y(s)?s:[]):l=s&&m(s)?s:{},i(h,{name:c,newValue:t(T,l,u)})):typeof u<"u"&&i(h,{name:c,newValue:u}));return h}},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.BlockEmbed=f.bubbleFormats=void 0;var b=function(){function p(O,N){for(var L=0;L<N.length;L++){var j=N[L];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(O,j.key,j)}}return function(O,N,L){return N&&p(O.prototype,N),L&&p(O,L),O}}(),g=function p(O,N,L){O===null&&(O=Function.prototype);var j=Object.getOwnPropertyDescriptor(O,N);if(j===void 0){var F=Object.getPrototypeOf(O);return F===null?void 0:p(F,N,L)}else{if("value"in j)return j.value;var U=j.get;return U===void 0?void 0:U.call(L)}},_=r(3),y=h(_),m=r(2),i=h(m),a=r(0),t=h(a),e=r(16),c=h(e),s=r(6),u=h(s),o=r(7),l=h(o);function h(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 v(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 T(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,A=function(p){T(O,p);function O(){return n(this,O),v(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return b(O,[{key:"attach",value:function(){g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new i.default().insert(this.value(),(0,y.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(L,j){var F=t.default.query(L,t.default.Scope.BLOCK_ATTRIBUTE);F!=null&&this.attributes.attribute(F,j)}},{key:"formatAt",value:function(L,j,F,U){this.format(F,U)}},{key:"insertAt",value:function(L,j,F){if(typeof j=="string"&&j.endsWith(`
8`)){var U=t.default.create(P.blotName);this.parent.insertBefore(U,L===0?this:this.next),U.insertAt(0,j.slice(0,-1))}else g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,L,j,F)}}]),O}(t.default.Embed);A.scope=t.default.Scope.BLOCK_BLOT;var P=function(p){T(O,p);function O(N){n(this,O);var L=v(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N));return L.cache={},L}return b(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(L,j){return j.length()===0?L:L.insert(j.value(),E(j))},new i.default).insert(`
9`,E(this))),this.cache.delta}},{key:"deleteAt",value:function(L,j){g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,L,j),this.cache={}}},{key:"formatAt",value:function(L,j,F,U){j<=0||(t.default.query(F,t.default.Scope.BLOCK)?L+j===this.length()&&this.format(F,U):g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,L,Math.min(j,this.length()-L-1),F,U),this.cache={})}},{key:"insertAt",value:function(L,j,F){if(F!=null)return g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,L,j,F);if(j.length!==0){var U=j.split(`
10`),Y=U.shift();Y.length>0&&(L<this.length()-1||this.children.tail==null?g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(L,this.length()-1),Y):this.children.tail.insertAt(this.children.tail.length(),Y),this.cache={});var B=this;U.reduce(function(I,x){return B=B.split(I,!0),B.insertAt(0,x),x.length},L+Y.length)}}},{key:"insertBefore",value:function(L,j){var F=this.children.head;g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,L,j),F instanceof c.default&&F.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(L,j){g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,L,j),this.cache={}}},{key:"optimize",value:function(L){g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,L),this.cache={}}},{key:"path",value:function(L){return g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,L,!0)}},{key:"removeChild",value:function(L){g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,L),this.cache={}}},{key:"split",value:function(L){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(j&&(L===0||L>=this.length()-w)){var F=this.clone();return L===0?(this.parent.insertBefore(F,this),this):(this.parent.insertBefore(F,this.next),F)}else{var U=g(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,L,j);return this.cache={},U}}}]),O}(t.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[u.default,t.default.Embed,l.default];function E(p){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return p==null||(typeof p.formats=="function"&&(O=(0,y.default)(O,p.formats())),p.parent==null||p.parent.blotName=="scroll"||p.parent.statics.scope!==p.statics.scope)?O:E(p.parent,O)}f.bubbleFormats=E,f.BlockEmbed=A,f.default=P},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.overload=f.expandConfig=void 0;var b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},g=function(){function B(I,x){var R=[],M=!0,H=!1,C=void 0;try{for(var q=I[Symbol.iterator](),D;!(M=(D=q.next()).done)&&(R.push(D.value),!(x&&R.length===x));M=!0);}catch(K){H=!0,C=K}finally{try{!M&&q.return&&q.return()}finally{if(H)throw C}}return R}return function(I,x){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return B(I,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function B(I,x){for(var R=0;R<x.length;R++){var M=x[R];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(I,M.key,M)}}return function(I,x,R){return x&&B(I.prototype,x),R&&B(I,R),I}}();r(50);var y=r(2),m=E(y),i=r(14),a=E(i),t=r(8),e=E(t),c=r(9),s=E(c),u=r(0),o=E(u),l=r(15),h=E(l),n=r(3),v=E(n),T=r(10),w=E(T),A=r(34),P=E(A);function E(B){return B&&B.__esModule?B:{default:B}}function p(B,I,x){return I in B?Object.defineProperty(B,I,{value:x,enumerable:!0,configurable:!0,writable:!0}):B[I]=x,B}function O(B,I){if(!(B instanceof I))throw new TypeError("Cannot call a class as a function")}var N=(0,w.default)("quill"),L=function(){_(B,null,[{key:"debug",value:function(x){x===!0&&(x="log"),w.default.level(x)}},{key:"find",value:function(x){return x.__quill||o.default.find(x)}},{key:"import",value:function(x){return this.imports[x]==null&&N.error("Cannot import "+x+". Are you sure it was registered?"),this.imports[x]}},{key:"register",value:function(x,R){var M=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof x!="string"){var C=x.attrName||x.blotName;typeof C=="string"?this.register("formats/"+C,x,R):Object.keys(x).forEach(function(q){M.register(q,x[q],R)})}else this.imports[x]!=null&&!H&&N.warn("Overwriting "+x+" with",R),this.imports[x]=R,(x.startsWith("blots/")||x.startsWith("formats/"))&&R.blotName!=="abstract"?o.default.register(R):x.startsWith("modules")&&typeof R.register=="function"&&R.register()}}]);function B(I){var x=this,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,B),this.options=j(I,R),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",I);this.options.debug&&B.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 e.default,this.scroll=o.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new h.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(e.default.events.EDITOR_CHANGE,function(C){C===e.default.events.TEXT_CHANGE&&x.root.classList.toggle("ql-blank",x.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(C,q){var D=x.selection.lastRange,K=D&&D.length===0?D.index:void 0;F.call(x,function(){return x.editor.update(null,q,K)},C)});var H=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents(H),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return _(B,[{key:"addContainer",value:function(x){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof x=="string"){var M=x;x=document.createElement("div"),x.classList.add(M)}return this.container.insertBefore(x,R),x}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(x,R,M){var H=this,C=U(x,R,M),q=g(C,4);return x=q[0],R=q[1],M=q[3],F.call(this,function(){return H.editor.deleteText(x,R)},M,x,-1*R)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(x),this.container.classList.toggle("ql-disabled",!x)}},{key:"focus",value:function(){var x=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=x,this.scrollIntoView()}},{key:"format",value:function(x,R){var M=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.default.sources.API;return F.call(this,function(){var C=M.getSelection(!0),q=new m.default;if(C==null)return q;if(o.default.query(x,o.default.Scope.BLOCK))q=M.editor.formatLine(C.index,C.length,p({},x,R));else{if(C.length===0)return M.selection.format(x,R),q;q=M.editor.formatText(C.index,C.length,p({},x,R))}return M.setSelection(C,e.default.sources.SILENT),q},H)}},{key:"formatLine",value:function(x,R,M,H,C){var q=this,D=void 0,K=U(x,R,M,H,C),V=g(K,4);return x=V[0],R=V[1],D=V[2],C=V[3],F.call(this,function(){return q.editor.formatLine(x,R,D)},C,x,0)}},{key:"formatText",value:function(x,R,M,H,C){var q=this,D=void 0,K=U(x,R,M,H,C),V=g(K,4);return x=V[0],R=V[1],D=V[2],C=V[3],F.call(this,function(){return q.editor.formatText(x,R,D)},C,x,0)}},{key:"getBounds",value:function(x){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof x=="number"?M=this.selection.getBounds(x,R):M=this.selection.getBounds(x.index,x.length);var H=this.container.getBoundingClientRect();return{bottom:M.bottom-H.top,height:M.height,left:M.left-H.left,right:M.right-H.left,top:M.top-H.top,width:M.width}}},{key:"getContents",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-x,M=U(x,R),H=g(M,2);return x=H[0],R=H[1],this.editor.getContents(x,R)}},{key:"getFormat",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof x=="number"?this.editor.getFormat(x,R):this.editor.getFormat(x.index,x.length)}},{key:"getIndex",value:function(x){return x.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(x){return this.scroll.leaf(x)}},{key:"getLine",value:function(x){return this.scroll.line(x)}},{key:"getLines",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof x!="number"?this.scroll.lines(x.index,x.length):this.scroll.lines(x,R)}},{key:"getModule",value:function(x){return this.theme.modules[x]}},{key:"getSelection",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return x&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-x,M=U(x,R),H=g(M,2);return x=H[0],R=H[1],this.editor.getText(x,R)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(x,R,M){var H=this,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:B.sources.API;return F.call(this,function(){return H.editor.insertEmbed(x,R,M)},C,x)}},{key:"insertText",value:function(x,R,M,H,C){var q=this,D=void 0,K=U(x,0,M,H,C),V=g(K,4);return x=V[0],D=V[2],C=V[3],F.call(this,function(){return q.editor.insertText(x,R,D)},C,x,R.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(x,R,M){this.clipboard.dangerouslyPasteHTML(x,R,M)}},{key:"removeFormat",value:function(x,R,M){var H=this,C=U(x,R,M),q=g(C,4);return x=q[0],R=q[1],M=q[3],F.call(this,function(){return H.editor.removeFormat(x,R)},M,x)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(x){var R=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return F.call(this,function(){x=new m.default(x);var H=R.getLength(),C=R.editor.deleteText(0,H),q=R.editor.applyDelta(x),D=q.ops[q.ops.length-1];D!=null&&typeof D.insert=="string"&&D.insert[D.insert.length-1]===`
11`&&(R.editor.deleteText(R.getLength()-1,1),q.delete(1));var K=C.compose(q);return K},M)}},{key:"setSelection",value:function(x,R,M){if(x==null)this.selection.setRange(null,R||B.sources.API);else{var H=U(x,R,M),C=g(H,4);x=C[0],R=C[1],M=C[3],this.selection.setRange(new l.Range(x,R),M),M!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(x){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API,M=new m.default().insert(x);return this.setContents(M,R)}},{key:"update",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.default.sources.USER,R=this.scroll.update(x);return this.selection.update(x),R}},{key:"updateContents",value:function(x){var R=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return F.call(this,function(){return x=new m.default(x),R.editor.applyDelta(x,M)},M,!0)}}]),B}();L.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},L.events=e.default.events,L.sources=e.default.sources,L.version="1.3.7",L.imports={delta:m.default,parchment:o.default,"core/module":s.default,"core/theme":P.default};function j(B,I){if(I=(0,v.default)(!0,{container:B,modules:{clipboard:!0,keyboard:!0,history:!0}},I),!I.theme||I.theme===L.DEFAULTS.theme)I.theme=P.default;else if(I.theme=L.import("themes/"+I.theme),I.theme==null)throw new Error("Invalid theme "+I.theme+". Did you register it?");var x=(0,v.default)(!0,{},I.theme.DEFAULTS);[x,I].forEach(function(H){H.modules=H.modules||{},Object.keys(H.modules).forEach(function(C){H.modules[C]===!0&&(H.modules[C]={})})});var R=Object.keys(x.modules).concat(Object.keys(I.modules)),M=R.reduce(function(H,C){var q=L.import("modules/"+C);return q==null?N.error("Cannot load "+C+" module. Are you sure you registered it?"):H[C]=q.DEFAULTS||{},H},{});return I.modules!=null&&I.modules.toolbar&&I.modules.toolbar.constructor!==Object&&(I.modules.toolbar={container:I.modules.toolbar}),I=(0,v.default)(!0,{},L.DEFAULTS,{modules:M},x,I),["bounds","container","scrollingContainer"].forEach(function(H){typeof I[H]=="string"&&(I[H]=document.querySelector(I[H]))}),I.modules=Object.keys(I.modules).reduce(function(H,C){return I.modules[C]&&(H[C]=I.modules[C]),H},{}),I}function F(B,I,x,R){if(this.options.strict&&!this.isEnabled()&&I===e.default.sources.USER)return new m.default;var M=x==null?null:this.getSelection(),H=this.editor.delta,C=B();if(M!=null&&(x===!0&&(x=M.index),R==null?M=Y(M,C,I):R!==0&&(M=Y(M,x,R,I)),this.setSelection(M,e.default.sources.SILENT)),C.length()>0){var q,D=[e.default.events.TEXT_CHANGE,C,H,I];if((q=this.emitter).emit.apply(q,[e.default.events.EDITOR_CHANGE].concat(D)),I!==e.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,D)}}return C}function U(B,I,x,R,M){var H={};return typeof B.index=="number"&&typeof B.length=="number"?typeof I!="number"?(M=R,R=x,x=I,I=B.length,B=B.index):(I=B.length,B=B.index):typeof I!="number"&&(M=R,R=x,x=I,I=0),(typeof x>"u"?"undefined":b(x))==="object"?(H=x,M=R):typeof x=="string"&&(R!=null?H[x]=R:M=x),M=M||e.default.sources.API,[B,I,H,M]}function Y(B,I,x,R){if(B==null)return null;var M=void 0,H=void 0;if(I instanceof m.default){var C=[B.index,B.index+B.length].map(function(V){return I.transformPosition(V,R!==e.default.sources.USER)}),q=g(C,2);M=q[0],H=q[1]}else{var D=[B.index,B.index+B.length].map(function(V){return V<I||V===I&&R===e.default.sources.USER?V:x>=0?V+x:Math.max(I,V+x)}),K=g(D,2);M=K[0],H=K[1]}return new l.Range(M,H-M)}f.expandConfig=j,f.overload=U,f.default=L},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function u(o,l){for(var h=0;h<l.length;h++){var n=l[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,l,h){return l&&u(o.prototype,l),h&&u(o,h),o}}(),g=function u(o,l,h){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,l);if(n===void 0){var v=Object.getPrototypeOf(o);return v===null?void 0:u(v,l,h)}else{if("value"in n)return n.value;var T=n.get;return T===void 0?void 0:T.call(h)}},_=r(7),y=a(_),m=r(0),i=a(m);function a(u){return u&&u.__esModule?u:{default:u}}function t(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function e(u,o){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:u}function c(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);u.prototype=Object.create(o&&o.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(u,o):u.__proto__=o)}var s=function(u){c(o,u);function o(){return t(this,o),e(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return b(o,[{key:"formatAt",value:function(h,n,v,T){if(o.compare(this.statics.blotName,v)<0&&i.default.query(v,i.default.Scope.BLOT)){var w=this.isolate(h,n);T&&w.wrap(v,T)}else g(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"formatAt",this).call(this,h,n,v,T)}},{key:"optimize",value:function(h){if(g(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"optimize",this).call(this,h),this.parent instanceof o&&o.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(h,n){var v=o.order.indexOf(h),T=o.order.indexOf(n);return v>=0||T>=0?v-T:h===n?0:h<n?-1:1}}]),o}(i.default.Inline);s.allowedChildren=[s,i.default.Embed,y.default],s.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],f.default=s},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(0),g=_(b);function _(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function i(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(t){i(e,t);function e(){return y(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(g.default.Text);f.default=a},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function l(h,n){for(var v=0;v<n.length;v++){var T=n[v];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(h,T.key,T)}}return function(h,n,v){return n&&l(h.prototype,n),v&&l(h,v),h}}(),g=function l(h,n,v){h===null&&(h=Function.prototype);var T=Object.getOwnPropertyDescriptor(h,n);if(T===void 0){var w=Object.getPrototypeOf(h);return w===null?void 0:l(w,n,v)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(v)}},_=r(54),y=a(_),m=r(10),i=a(m);function a(l){return l&&l.__esModule?l:{default:l}}function t(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}function e(l,h){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:l}function c(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);l.prototype=Object.create(h&&h.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(l,h):l.__proto__=h)}var s=(0,i.default)("quill:events"),u=["selectionchange","mousedown","mouseup","click"];u.forEach(function(l){document.addEventListener(l,function(){for(var h=arguments.length,n=Array(h),v=0;v<h;v++)n[v]=arguments[v];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(T){if(T.__quill&&T.__quill.emitter){var w;(w=T.__quill.emitter).handleDOM.apply(w,n)}})})});var o=function(l){c(h,l);function h(){t(this,h);var n=e(this,(h.__proto__||Object.getPrototypeOf(h)).call(this));return n.listeners={},n.on("error",s.error),n}return b(h,[{key:"emit",value:function(){s.log.apply(s,arguments),g(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(v){for(var T=arguments.length,w=Array(T>1?T-1:0),A=1;A<T;A++)w[A-1]=arguments[A];(this.listeners[v.type]||[]).forEach(function(P){var E=P.node,p=P.handler;(v.target===E||E.contains(v.target))&&p.apply(void 0,[v].concat(w))})}},{key:"listenDOM",value:function(v,T,w){this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push({node:T,handler:w})}}]),h}(y.default);o.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"},o.sources={API:"api",SILENT:"silent",USER:"user"},f.default=o},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});function b(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}var g=function _(y){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b(this,_),this.quill=y,this.options=m};g.DEFAULTS={},f.default=g},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=["error","warn","log","info"],g="warn";function _(m){if(b.indexOf(m)<=b.indexOf(g)){for(var i,a=arguments.length,t=Array(a>1?a-1:0),e=1;e<a;e++)t[e-1]=arguments[e];(i=console)[m].apply(i,t)}}function y(m){return b.reduce(function(i,a){return i[a]=_.bind(console,a,m),i},{})}_.level=y.level=function(m){g=m},f.default=y},function(d,f,r){var b=Array.prototype.slice,g=r(52),_=r(53),y=d.exports=function(t,e,c){return c||(c={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||typeof t!="object"&&typeof e!="object"?c.strict?t===e:t==e:a(t,e,c)};function m(t){return t==null}function i(t){return!(!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number")}function a(t,e,c){var s,u;if(m(t)||m(e)||t.prototype!==e.prototype)return!1;if(_(t))return _(e)?(t=b.call(t),e=b.call(e),y(t,e,c)):!1;if(i(t)){if(!i(e)||t.length!==e.length)return!1;for(s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}try{var o=g(t),l=g(e)}catch{return!1}if(o.length!=l.length)return!1;for(o.sort(),l.sort(),s=o.length-1;s>=0;s--)if(o[s]!=l[s])return!1;for(s=o.length-1;s>=0;s--)if(u=o[s],!y(t[u],e[u],c))return!1;return typeof t==typeof e}},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(1),g=function(){function _(y,m,i){i===void 0&&(i={}),this.attrName=y,this.keyName=m;var a=b.Scope.TYPE&b.Scope.ATTRIBUTE;i.scope!=null?this.scope=i.scope&b.Scope.LEVEL|a:this.scope=b.Scope.ATTRIBUTE,i.whitelist!=null&&(this.whitelist=i.whitelist)}return _.keys=function(y){return[].map.call(y.attributes,function(m){return m.name})},_.prototype.add=function(y,m){return this.canAdd(y,m)?(y.setAttribute(this.keyName,m),!0):!1},_.prototype.canAdd=function(y,m){var i=b.query(y,b.Scope.BLOT&(this.scope|b.Scope.TYPE));return i==null?!1:this.whitelist==null?!0:typeof m=="string"?this.whitelist.indexOf(m.replace(/["']/g,""))>-1:this.whitelist.indexOf(m)>-1},_.prototype.remove=function(y){y.removeAttribute(this.keyName)},_.prototype.value=function(y){var m=y.getAttribute(this.keyName);return this.canAdd(y,m)&&m?m:""},_}();f.default=g},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.Code=void 0;var b=function(){function A(P,E){var p=[],O=!0,N=!1,L=void 0;try{for(var j=P[Symbol.iterator](),F;!(O=(F=j.next()).done)&&(p.push(F.value),!(E&&p.length===E));O=!0);}catch(U){N=!0,L=U}finally{try{!O&&j.return&&j.return()}finally{if(N)throw L}}return p}return function(P,E){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return A(P,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function A(P,E){for(var p=0;p<E.length;p++){var O=E[p];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(P,O.key,O)}}return function(P,E,p){return E&&A(P.prototype,E),p&&A(P,p),P}}(),_=function A(P,E,p){P===null&&(P=Function.prototype);var O=Object.getOwnPropertyDescriptor(P,E);if(O===void 0){var N=Object.getPrototypeOf(P);return N===null?void 0:A(N,E,p)}else{if("value"in O)return O.value;var L=O.get;return L===void 0?void 0:L.call(p)}},y=r(2),m=l(y),i=r(0),a=l(i),t=r(4),e=l(t),c=r(6),s=l(c),u=r(7),o=l(u);function l(A){return A&&A.__esModule?A:{default:A}}function h(A,P){if(!(A instanceof P))throw new TypeError("Cannot call a class as a function")}function n(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 v(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 T=function(A){v(P,A);function P(){return h(this,P),n(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P}(s.default);T.blotName="code",T.tagName="CODE";var w=function(A){v(P,A);function P(){return h(this,P),n(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return g(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 m.default)}},{key:"format",value:function(p,O){if(!(p===this.statics.blotName&&O)){var N=this.descendant(o.default,this.length()-1),L=b(N,1),j=L[0];j!=null&&j.deleteAt(j.length()-1,1),_(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 j=this.newlineIndex(p);if(!(j<0||j>=p+O)){var F=this.newlineIndex(p,!0)+1,U=j-F+1,Y=this.isolate(F,U),B=Y.next;Y.format(N,L),B instanceof P&&B.formatAt(0,p-F+O-U,N,L)}}}},{key:"insertAt",value:function(p,O,N){if(N==null){var L=this.descendant(o.default,p),j=b(L,2),F=j[0],U=j[1];F.insertAt(U,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`)),_(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){_(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=_(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,p);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),P}(e.default);w.blotName="code-block",w.tagName="PRE",w.TAB="  ",f.Code=T,f.default=w},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},g=function(){function B(I,x){var R=[],M=!0,H=!1,C=void 0;try{for(var q=I[Symbol.iterator](),D;!(M=(D=q.next()).done)&&(R.push(D.value),!(x&&R.length===x));M=!0);}catch(K){H=!0,C=K}finally{try{!M&&q.return&&q.return()}finally{if(H)throw C}}return R}return function(I,x){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return B(I,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function B(I,x){for(var R=0;R<x.length;R++){var M=x[R];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(I,M.key,M)}}return function(I,x,R){return x&&B(I.prototype,x),R&&B(I,R),I}}(),y=r(2),m=O(y),i=r(20),a=O(i),t=r(0),e=O(t),c=r(13),s=O(c),u=r(24),o=O(u),l=r(4),h=O(l),n=r(16),v=O(n),T=r(21),w=O(T),A=r(11),P=O(A),E=r(3),p=O(E);function O(B){return B&&B.__esModule?B:{default:B}}function N(B,I,x){return I in B?Object.defineProperty(B,I,{value:x,enumerable:!0,configurable:!0,writable:!0}):B[I]=x,B}function L(B,I){if(!(B instanceof I))throw new TypeError("Cannot call a class as a function")}var j=/^[ -~]*$/,F=function(){function B(I){L(this,B),this.scroll=I,this.delta=this.getDelta()}return _(B,[{key:"applyDelta",value:function(x){var R=this,M=!1;this.scroll.update();var H=this.scroll.length();return this.scroll.batchStart(),x=Y(x),x.reduce(function(C,q){var D=q.retain||q.delete||q.insert.length||1,K=q.attributes||{};if(q.insert!=null){if(typeof q.insert=="string"){var V=q.insert;V.endsWith(`
20`)&&M&&(M=!1,V=V.slice(0,-1)),C>=H&&!V.endsWith(`
21`)&&(M=!0),R.scroll.insertAt(C,V);var G=R.scroll.line(C),tt=g(G,2),rt=tt[0],it=tt[1],st=(0,p.default)({},(0,l.bubbleFormats)(rt));if(rt instanceof h.default){var ut=rt.descendant(e.default.Leaf,it),yt=g(ut,1),vt=yt[0];st=(0,p.default)(st,(0,l.bubbleFormats)(vt))}K=a.default.attributes.diff(st,K)||{}}else if(b(q.insert)==="object"){var Z=Object.keys(q.insert)[0];if(Z==null)return C;R.scroll.insertAt(C,Z,q.insert[Z])}H+=D}return Object.keys(K).forEach(function(W){R.scroll.formatAt(C,D,W,K[W])}),C+D},0),x.reduce(function(C,q){return typeof q.delete=="number"?(R.scroll.deleteAt(C,q.delete),C):C+(q.retain||q.insert.length||1)},0),this.scroll.batchEnd(),this.update(x)}},{key:"deleteText",value:function(x,R){return this.scroll.deleteAt(x,R),this.update(new m.default().retain(x).delete(R))}},{key:"formatLine",value:function(x,R){var M=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(H).forEach(function(C){if(!(M.scroll.whitelist!=null&&!M.scroll.whitelist[C])){var q=M.scroll.lines(x,Math.max(R,1)),D=R;q.forEach(function(K){var V=K.length();if(!(K instanceof s.default))K.format(C,H[C]);else{var G=x-K.offset(M.scroll),tt=K.newlineIndex(G+D)-G+1;K.formatAt(G,tt,C,H[C])}D-=V})}}),this.scroll.optimize(),this.update(new m.default().retain(x).retain(R,(0,w.default)(H)))}},{key:"formatText",value:function(x,R){var M=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(H).forEach(function(C){M.scroll.formatAt(x,R,C,H[C])}),this.update(new m.default().retain(x).retain(R,(0,w.default)(H)))}},{key:"getContents",value:function(x,R){return this.delta.slice(x,x+R)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(x,R){return x.concat(R.delta())},new m.default)}},{key:"getFormat",value:function(x){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=[],H=[];R===0?this.scroll.path(x).forEach(function(q){var D=g(q,1),K=D[0];K instanceof h.default?M.push(K):K instanceof e.default.Leaf&&H.push(K)}):(M=this.scroll.lines(x,R),H=this.scroll.descendants(e.default.Leaf,x,R));var C=[M,H].map(function(q){if(q.length===0)return{};for(var D=(0,l.bubbleFormats)(q.shift());Object.keys(D).length>0;){var K=q.shift();if(K==null)return D;D=U((0,l.bubbleFormats)(K),D)}return D});return p.default.apply(p.default,C)}},{key:"getText",value:function(x,R){return this.getContents(x,R).filter(function(M){return typeof M.insert=="string"}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(x,R,M){return this.scroll.insertAt(x,R,M),this.update(new m.default().retain(x).insert(N({},R,M)))}},{key:"insertText",value:function(x,R){var M=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return R=R.replace(/\r\n/g,`
22`).replace(/\r/g,`
23`),this.scroll.insertAt(x,R),Object.keys(H).forEach(function(C){M.scroll.formatAt(x,R.length,C,H[C])}),this.update(new m.default().retain(x).insert(R,(0,w.default)(H)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var x=this.scroll.children.head;return x.statics.blotName!==h.default.blotName||x.children.length>1?!1:x.children.head instanceof v.default}},{key:"removeFormat",value:function(x,R){var M=this.getText(x,R),H=this.scroll.line(x+R),C=g(H,2),q=C[0],D=C[1],K=0,V=new m.default;q!=null&&(q instanceof s.default?K=q.newlineIndex(D)-D+1:K=q.length()-D,V=q.delta().slice(D,D+K-1).insert(`
24`));var G=this.getContents(x,R+K),tt=G.diff(new m.default().insert(M).concat(V)),rt=new m.default().retain(x).concat(tt);return this.applyDelta(rt)}},{key:"update",value:function(x){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,H=this.delta;if(R.length===1&&R[0].type==="characterData"&&R[0].target.data.match(j)&&e.default.find(R[0].target)){var C=e.default.find(R[0].target),q=(0,l.bubbleFormats)(C),D=C.offset(this.scroll),K=R[0].oldValue.replace(o.default.CONTENTS,""),V=new m.default().insert(K),G=new m.default().insert(C.value()),tt=new m.default().retain(D).concat(V.diff(G,M));x=tt.reduce(function(rt,it){return it.insert?rt.insert(it.insert,q):rt.push(it)},new m.default),this.delta=H.compose(x)}else this.delta=this.getDelta(),(!x||!(0,P.default)(H.compose(x),this.delta))&&(x=H.diff(this.delta,M));return x}}]),B}();function U(B,I){return Object.keys(I).reduce(function(x,R){return B[R]==null||(I[R]===B[R]?x[R]=I[R]:Array.isArray(I[R])?I[R].indexOf(B[R])<0&&(x[R]=I[R].concat([B[R]])):x[R]=[I[R],B[R]]),x},{})}function Y(B){return B.reduce(function(I,x){if(x.insert===1){var R=(0,w.default)(x.attributes);return delete R.image,I.insert({image:x.attributes.image},R)}if(x.attributes!=null&&(x.attributes.list===!0||x.attributes.bullet===!0)&&(x=(0,w.default)(x),x.attributes.list?x.attributes.list="ordered":(x.attributes.list="bullet",delete x.attributes.bullet)),typeof x.insert=="string"){var M=x.insert.replace(/\r\n/g,`
25`).replace(/\r/g,`
26`);return I.insert(M,x.attributes)}return I.push(x)},new m.default)}f.default=F},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.Range=void 0;var b=function(){function A(P,E){var p=[],O=!0,N=!1,L=void 0;try{for(var j=P[Symbol.iterator](),F;!(O=(F=j.next()).done)&&(p.push(F.value),!(E&&p.length===E));O=!0);}catch(U){N=!0,L=U}finally{try{!O&&j.return&&j.return()}finally{if(N)throw L}}return p}return function(P,E){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return A(P,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function A(P,E){for(var p=0;p<E.length;p++){var O=E[p];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(P,O.key,O)}}return function(P,E,p){return E&&A(P.prototype,E),p&&A(P,p),P}}(),_=r(0),y=o(_),m=r(21),i=o(m),a=r(11),t=o(a),e=r(8),c=o(e),s=r(10),u=o(s);function o(A){return A&&A.__esModule?A:{default:A}}function l(A){if(Array.isArray(A)){for(var P=0,E=Array(A.length);P<A.length;P++)E[P]=A[P];return E}else return Array.from(A)}function h(A,P){if(!(A instanceof P))throw new TypeError("Cannot call a class as a function")}var n=(0,u.default)("quill:selection"),v=function A(P){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;h(this,A),this.index=P,this.length=E},T=function(){function A(P,E){var p=this;h(this,A),this.emitter=E,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=y.default.create("cursor",this),this.lastRange=this.savedRange=new v(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){p.mouseDown||setTimeout(p.update.bind(p,c.default.sources.USER),1)}),this.emitter.on(c.default.events.EDITOR_CHANGE,function(O,N){O===c.default.events.TEXT_CHANGE&&N.length()>0&&p.update(c.default.sources.SILENT)}),this.emitter.on(c.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!p.hasFocus()){var O=p.getNativeRange();O!=null&&O.start.node!==p.cursor.textNode&&p.emitter.once(c.default.events.SCROLL_UPDATE,function(){try{p.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(c.default.events.SCROLL_OPTIMIZE,function(O,N){if(N.range){var L=N.range,j=L.startNode,F=L.startOffset,U=L.endNode,Y=L.endOffset;p.setNativeRange(j,F,U,Y)}}),this.update(c.default.sources.SILENT)}return g(A,[{key:"handleComposition",value:function(){var E=this;this.root.addEventListener("compositionstart",function(){E.composing=!0}),this.root.addEventListener("compositionend",function(){if(E.composing=!1,E.cursor.parent){var p=E.cursor.restore();if(!p)return;setTimeout(function(){E.setNativeRange(p.startNode,p.startOffset,p.endNode,p.endOffset)},1)}})}},{key:"handleDragging",value:function(){var E=this;this.emitter.listenDOM("mousedown",document.body,function(){E.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){E.mouseDown=!1,E.update(c.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(E,p){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[E])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||y.default.query(E,y.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var N=y.default.find(O.start.node,!1);if(N==null)return;if(N instanceof y.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(E,p),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(E){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();E=Math.min(E,O-1),p=Math.min(E+p,O-1)-E;var N=void 0,L=this.scroll.leaf(E),j=b(L,2),F=j[0],U=j[1];if(F==null)return null;var Y=F.position(U,!0),B=b(Y,2);N=B[0],U=B[1];var I=document.createRange();if(p>0){I.setStart(N,U);var x=this.scroll.leaf(E+p),R=b(x,2);if(F=R[0],U=R[1],F==null)return null;var M=F.position(U,!0),H=b(M,2);return N=H[0],U=H[1],I.setEnd(N,U),I.getBoundingClientRect()}else{var C="left",q=void 0;return N instanceof Text?(U<N.data.length?(I.setStart(N,U),I.setEnd(N,U+1)):(I.setStart(N,U-1),I.setEnd(N,U),C="right"),q=I.getBoundingClientRect()):(q=F.domNode.getBoundingClientRect(),U>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 E=document.getSelection();if(E==null||E.rangeCount<=0)return null;var p=E.getRangeAt(0);if(p==null)return null;var O=this.normalizeNative(p);return n.info("getNativeRange",O),O}},{key:"getRange",value:function(){var E=this.getNativeRange();if(E==null)return[null,null];var p=this.normalizedToRange(E);return[p,E]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(E){var p=this,O=[[E.start.node,E.start.offset]];E.native.collapsed||O.push([E.end.node,E.end.offset]);var N=O.map(function(F){var U=b(F,2),Y=U[0],B=U[1],I=y.default.find(Y,!0),x=I.offset(p.scroll);return B===0?x:I instanceof y.default.Container?x+I.length():x+I.index(Y,B)}),L=Math.min(Math.max.apply(Math,l(N)),this.scroll.length()-1),j=Math.min.apply(Math,[L].concat(l(N)));return new v(j,L-j)}},{key:"normalizeNative",value:function(E){if(!w(this.root,E.startContainer)||!E.collapsed&&!w(this.root,E.endContainer))return null;var p={start:{node:E.startContainer,offset:E.startOffset},end:{node:E.endContainer,offset:E.endOffset},native:E};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(E){var p=this,O=E.collapsed?[E.index]:[E.index,E.index+E.length],N=[],L=this.scroll.length();return O.forEach(function(j,F){j=Math.min(L-1,j);var U=void 0,Y=p.scroll.leaf(j),B=b(Y,2),I=B[0],x=B[1],R=I.position(x,F!==0),M=b(R,2);U=M[0],x=M[1],N.push(U,x)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(E){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)),j=b(L,1),F=j[0],U=F;if(p.length>0){var Y=this.scroll.line(Math.min(p.index+p.length,N)),B=b(Y,1);U=B[0]}if(!(F==null||U==null)){var I=E.getBoundingClientRect();O.top<I.top?E.scrollTop-=I.top-O.top:O.bottom>I.bottom&&(E.scrollTop+=O.bottom-I.bottom)}}}}},{key:"setNativeRange",value:function(E,p){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:E,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",E,p,O,N),!(E!=null&&(this.root.parentNode==null||E.parentNode==null||O.parentNode==null))){var j=document.getSelection();if(j!=null)if(E!=null){this.hasFocus()||this.root.focus();var F=(this.getNativeRange()||{}).native;if(F==null||L||E!==F.startContainer||p!==F.startOffset||O!==F.endContainer||N!==F.endOffset){E.tagName=="BR"&&(p=[].indexOf.call(E.parentNode.childNodes,E),E=E.parentNode),O.tagName=="BR"&&(N=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var U=document.createRange();U.setStart(E,p),U.setEnd(O,N),j.removeAllRanges(),j.addRange(U)}}else j.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(E){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c.default.sources.API;if(typeof p=="string"&&(O=p,p=!1),n.info("setRange",E),E!=null){var N=this.rangeToNative(E);this.setNativeRange.apply(this,l(N).concat([p]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c.default.sources.USER,p=this.lastRange,O=this.getRange(),N=b(O,2),L=N[0],j=N[1];if(this.lastRange=L,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,t.default)(p,this.lastRange)){var F;!this.composing&&j!=null&&j.native.collapsed&&j.start.node!==this.cursor.textNode&&this.cursor.restore();var U=[c.default.events.SELECTION_CHANGE,(0,i.default)(this.lastRange),(0,i.default)(p),E];if((F=this.emitter).emit.apply(F,[c.default.events.EDITOR_CHANGE].concat(U)),E!==c.default.sources.SILENT){var Y;(Y=this.emitter).emit.apply(Y,U)}}}}]),A}();function w(A,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),A.contains(P)}f.Range=v,f.default=T},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function c(s,u){for(var o=0;o<u.length;o++){var l=u[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,u,o){return u&&c(s.prototype,u),o&&c(s,o),s}}(),g=function c(s,u,o){s===null&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,u);if(l===void 0){var h=Object.getPrototypeOf(s);return h===null?void 0:c(h,u,o)}else{if("value"in l)return l.value;var n=l.get;return n===void 0?void 0:n.call(o)}},_=r(0),y=m(_);function m(c){return c&&c.__esModule?c:{default:c}}function i(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function a(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function t(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var e=function(c){t(s,c);function s(){return i(this,s),a(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return b(s,[{key:"insertInto",value:function(o,l){o.children.length===0?g(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertInto",this).call(this,o,l):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),s}(y.default.Embed);e.blotName="break",e.tagName="BR",f.default=e},function(d,f,r){var b=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var c in e)e.hasOwnProperty(c)&&(t[c]=e[c])};return function(t,e){a(t,e);function c(){this.constructor=t}t.prototype=e===null?Object.create(e):(c.prototype=e.prototype,new c)}}();Object.defineProperty(f,"__esModule",{value:!0});var g=r(44),_=r(30),y=r(1),m=function(a){b(t,a);function t(e){var c=a.call(this,e)||this;return c.build(),c}return t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){a.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new g.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(c){try{var s=i(c);e.insertBefore(s,e.children.head||void 0)}catch(u){if(u instanceof y.ParchmentError)return;throw u}})},t.prototype.deleteAt=function(e,c){if(e===0&&c===this.length())return this.remove();this.children.forEachAt(e,c,function(s,u,o){s.deleteAt(u,o)})},t.prototype.descendant=function(e,c){var s=this.children.find(c),u=s[0],o=s[1];return e.blotName==null&&e(u)||e.blotName!=null&&u instanceof e?[u,o]:u instanceof t?u.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,c,s){c===void 0&&(c=0),s===void 0&&(s=Number.MAX_VALUE);var u=[],o=s;return this.children.forEachAt(c,s,function(l,h,n){(e.blotName==null&&e(l)||e.blotName!=null&&l instanceof e)&&u.push(l),l instanceof t&&(u=u.concat(l.descendants(e,h,o))),o-=n}),u},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),a.prototype.detach.call(this)},t.prototype.formatAt=function(e,c,s,u){this.children.forEachAt(e,c,function(o,l,h){o.formatAt(l,h,s,u)})},t.prototype.insertAt=function(e,c,s){var u=this.children.find(e),o=u[0],l=u[1];if(o)o.insertAt(l,c,s);else{var h=s==null?y.create("text",c):y.create(c,s);this.appendChild(h)}},t.prototype.insertBefore=function(e,c){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(s){return e instanceof s}))throw new y.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,c)},t.prototype.length=function(){return this.children.reduce(function(e,c){return e+c.length()},0)},t.prototype.moveChildren=function(e,c){this.children.forEach(function(s){e.insertBefore(s,c)})},t.prototype.optimize=function(e){if(a.prototype.optimize.call(this,e),this.children.length===0)if(this.statics.defaultChild!=null){var c=y.create(this.statics.defaultChild);this.appendChild(c),c.optimize(e)}else this.remove()},t.prototype.path=function(e,c){c===void 0&&(c=!1);var s=this.children.find(e,c),u=s[0],o=s[1],l=[[this,e]];return u instanceof t?l.concat(u.path(o,c)):(u!=null&&l.push([u,o]),l)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(e){e instanceof t&&e.moveChildren(this),a.prototype.replace.call(this,e)},t.prototype.split=function(e,c){if(c===void 0&&(c=!1),!c){if(e===0)return this;if(e===this.length())return this.next}var s=this.clone();return this.parent.insertBefore(s,this.next),this.children.forEachAt(e,this.length(),function(u,o,l){u=u.split(o,c),s.appendChild(u)}),s},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,c){var s=this,u=[],o=[];e.forEach(function(l){l.target===s.domNode&&l.type==="childList"&&(u.push.apply(u,l.addedNodes),o.push.apply(o,l.removedNodes))}),o.forEach(function(l){if(!(l.parentNode!=null&&l.tagName!=="IFRAME"&&document.body.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var h=y.find(l);h!=null&&(h.domNode.parentNode==null||h.domNode.parentNode===s.domNode)&&h.detach()}}),u.filter(function(l){return l.parentNode==s.domNode}).sort(function(l,h){return l===h?0:l.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(l){var h=null;l.nextSibling!=null&&(h=y.find(l.nextSibling));var n=i(l);(n.next!=h||n.next==null)&&(n.parent!=null&&n.parent.removeChild(s),s.insertBefore(n,h||void 0))})},t}(_.default);function i(a){var t=y.find(a);if(t==null)try{t=y.create(a)}catch{t=y.create(y.Scope.INLINE),[].slice.call(a.childNodes).forEach(function(c){t.domNode.appendChild(c)}),a.parentNode&&a.parentNode.replaceChild(t.domNode,a),t.attach()}return t}f.default=m},function(d,f,r){var b=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var c in e)e.hasOwnProperty(c)&&(t[c]=e[c])};return function(t,e){a(t,e);function c(){this.constructor=t}t.prototype=e===null?Object.create(e):(c.prototype=e.prototype,new c)}}();Object.defineProperty(f,"__esModule",{value:!0});var g=r(12),_=r(31),y=r(17),m=r(1),i=function(a){b(t,a);function t(e){var c=a.call(this,e)||this;return c.attributes=new _.default(c.domNode),c}return t.formats=function(e){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()},t.prototype.format=function(e,c){var s=m.query(e);s instanceof g.default?this.attributes.attribute(s,c):c&&s!=null&&(e!==this.statics.blotName||this.formats()[e]!==c)&&this.replaceWith(e,c)},t.prototype.formats=function(){var e=this.attributes.values(),c=this.statics.formats(this.domNode);return c!=null&&(e[this.statics.blotName]=c),e},t.prototype.replaceWith=function(e,c){var s=a.prototype.replaceWith.call(this,e,c);return this.attributes.copy(s),s},t.prototype.update=function(e,c){var s=this;a.prototype.update.call(this,e,c),e.some(function(u){return u.target===s.domNode&&u.type==="attributes"})&&this.attributes.build()},t.prototype.wrap=function(e,c){var s=a.prototype.wrap.call(this,e,c);return s instanceof t&&s.statics.scope===this.statics.scope&&this.attributes.move(s),s},t}(y.default);f.default=i},function(d,f,r){var b=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var t in a)a.hasOwnProperty(t)&&(i[t]=a[t])};return function(i,a){m(i,a);function t(){this.constructor=i}i.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}}();Object.defineProperty(f,"__esModule",{value:!0});var g=r(30),_=r(1),y=function(m){b(i,m);function i(){return m!==null&&m.apply(this,arguments)||this}return i.value=function(a){return!0},i.prototype.index=function(a,t){return this.domNode===a||this.domNode.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},i.prototype.position=function(a,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return a>0&&(e+=1),[this.parent.domNode,e]},i.prototype.value=function(){var a;return a={},a[this.statics.blotName]=this.statics.value(this.domNode)||!0,a},i.scope=_.Scope.INLINE_BLOT,i}(g.default);f.default=y},function(d,f,r){var b=r(11),g=r(3),_={attributes:{compose:function(m,i,a){typeof m!="object"&&(m={}),typeof i!="object"&&(i={});var t=g(!0,{},i);a||(t=Object.keys(t).reduce(function(c,s){return t[s]!=null&&(c[s]=t[s]),c},{}));for(var e in m)m[e]!==void 0&&i[e]===void 0&&(t[e]=m[e]);return Object.keys(t).length>0?t:void 0},diff:function(m,i){typeof m!="object"&&(m={}),typeof i!="object"&&(i={});var a=Object.keys(m).concat(Object.keys(i)).reduce(function(t,e){return b(m[e],i[e])||(t[e]=i[e]===void 0?null:i[e]),t},{});return Object.keys(a).length>0?a:void 0},transform:function(m,i,a){if(typeof m!="object")return i;if(typeof i=="object"){if(!a)return i;var t=Object.keys(i).reduce(function(e,c){return m[c]===void 0&&(e[c]=i[c]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(m){return new y(m)},length:function(m){return typeof m.delete=="number"?m.delete:typeof m.retain=="number"?m.retain:typeof m.insert=="string"?m.insert.length:1}};function y(m){this.ops=m,this.index=0,this.offset=0}y.prototype.hasNext=function(){return this.peekLength()<1/0},y.prototype.next=function(m){m||(m=1/0);var i=this.ops[this.index];if(i){var a=this.offset,t=_.length(i);if(m>=t-a?(m=t-a,this.index+=1,this.offset=0):this.offset+=m,typeof i.delete=="number")return{delete:m};var e={};return i.attributes&&(e.attributes=i.attributes),typeof i.retain=="number"?e.retain=m:typeof i.insert=="string"?e.insert=i.insert.substr(a,m):e.insert=i.insert,e}else return{retain:1/0}},y.prototype.peek=function(){return this.ops[this.index]},y.prototype.peekLength=function(){return this.ops[this.index]?_.length(this.ops[this.index])-this.offset:1/0},y.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"},y.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var m=this.offset,i=this.index,a=this.next(),t=this.ops.slice(this.index);return this.offset=m,this.index=i,[a].concat(t)}else return[]},d.exports=_},function(d,f){var r=function(){function b(s,u){return u!=null&&s instanceof u}var g;try{g=Map}catch{g=function(){}}var _;try{_=Set}catch{_=function(){}}var y;try{y=Promise}catch{y=function(){}}function m(s,u,o,l,h){typeof u=="object"&&(o=u.depth,l=u.prototype,h=u.includeNonEnumerable,u=u.circular);var n=[],v=[],T=typeof Buffer<"u";typeof u>"u"&&(u=!0),typeof o>"u"&&(o=1/0);function w(A,P){if(A===null)return null;if(P===0)return A;var E,p;if(typeof A!="object")return A;if(b(A,g))E=new g;else if(b(A,_))E=new _;else if(b(A,y))E=new y(function(I,x){A.then(function(R){I(w(R,P-1))},function(R){x(w(R,P-1))})});else if(m.__isArray(A))E=[];else if(m.__isRegExp(A))E=new RegExp(A.source,c(A)),A.lastIndex&&(E.lastIndex=A.lastIndex);else if(m.__isDate(A))E=new Date(A.getTime());else{if(T&&Buffer.isBuffer(A))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(A.length):E=new Buffer(A.length),A.copy(E),E;b(A,Error)?E=Object.create(A):typeof l>"u"?(p=Object.getPrototypeOf(A),E=Object.create(p)):(E=Object.create(l),p=l)}if(u){var O=n.indexOf(A);if(O!=-1)return v[O];n.push(A),v.push(E)}b(A,g)&&A.forEach(function(I,x){var R=w(x,P-1),M=w(I,P-1);E.set(R,M)}),b(A,_)&&A.forEach(function(I){var x=w(I,P-1);E.add(x)});for(var N in A){var L;p&&(L=Object.getOwnPropertyDescriptor(p,N)),!(L&&L.set==null)&&(E[N]=w(A[N],P-1))}if(Object.getOwnPropertySymbols)for(var j=Object.getOwnPropertySymbols(A),N=0;N<j.length;N++){var F=j[N],U=Object.getOwnPropertyDescriptor(A,F);U&&!U.enumerable&&!h||(E[F]=w(A[F],P-1),U.enumerable||Object.defineProperty(E,F,{enumerable:!1}))}if(h)for(var Y=Object.getOwnPropertyNames(A),N=0;N<Y.length;N++){var B=Y[N],U=Object.getOwnPropertyDescriptor(A,B);U&&U.enumerable||(E[B]=w(A[B],P-1),Object.defineProperty(E,B,{enumerable:!1}))}return E}return w(s,o)}m.clonePrototype=function(u){if(u===null)return null;var o=function(){};return o.prototype=u,new o};function i(s){return Object.prototype.toString.call(s)}m.__objToStr=i;function a(s){return typeof s=="object"&&i(s)==="[object Date]"}m.__isDate=a;function t(s){return typeof s=="object"&&i(s)==="[object Array]"}m.__isArray=t;function e(s){return typeof s=="object"&&i(s)==="[object RegExp]"}m.__isRegExp=e;function c(s){var u="";return s.global&&(u+="g"),s.ignoreCase&&(u+="i"),s.multiline&&(u+="m"),u}return m.__getRegExpFlags=c,m}();typeof d=="object"&&d.exports&&(d.exports=r)},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function E(p,O){var N=[],L=!0,j=!1,F=void 0;try{for(var U=p[Symbol.iterator](),Y;!(L=(Y=U.next()).done)&&(N.push(Y.value),!(O&&N.length===O));L=!0);}catch(B){j=!0,F=B}finally{try{!L&&U.return&&U.return()}finally{if(j)throw F}}return N}return function(p,O){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return E(p,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function E(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&&E(p.prototype,O),N&&E(p,N),p}}(),_=function E(p,O,N){p===null&&(p=Function.prototype);var L=Object.getOwnPropertyDescriptor(p,O);if(L===void 0){var j=Object.getPrototypeOf(p);return j===null?void 0:E(j,O,N)}else{if("value"in L)return L.value;var F=L.get;return F===void 0?void 0:F.call(N)}},y=r(0),m=n(y),i=r(8),a=n(i),t=r(4),e=n(t),c=r(16),s=n(c),u=r(13),o=n(u),l=r(25),h=n(l);function n(E){return E&&E.__esModule?E:{default:E}}function v(E,p){if(!(E instanceof p))throw new TypeError("Cannot call a class as a function")}function T(E,p){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:E}function w(E,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);E.prototype=Object.create(p&&p.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(E,p):E.__proto__=p)}function A(E){return E instanceof e.default||E instanceof t.BlockEmbed}var P=function(E){w(p,E);function p(O,N){v(this,p);var L=T(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,O));return L.emitter=N.emitter,Array.isArray(N.whitelist)&&(L.whitelist=N.whitelist.reduce(function(j,F){return j[F]=!0,j},{})),L.domNode.addEventListener("DOMNodeInserted",function(){}),L.optimize(),L.enable(),L}return g(p,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,L){var j=this.line(N),F=b(j,2),U=F[0],Y=F[1],B=this.line(N+L),I=b(B,1),x=I[0];if(_(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"deleteAt",this).call(this,N,L),x!=null&&U!==x&&Y>0){if(U instanceof t.BlockEmbed||x instanceof t.BlockEmbed){this.optimize();return}if(U instanceof o.default){var R=U.newlineIndex(U.length(),!0);if(R>-1&&(U=U.split(R+1),U===x)){this.optimize();return}}else if(x instanceof o.default){var M=x.newlineIndex(0);M>-1&&x.split(M+1)}var H=x.children.head instanceof s.default?null:x.children.head;U.moveChildren(x,H),U.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,j,F){this.whitelist!=null&&!this.whitelist[j]||(_(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"formatAt",this).call(this,N,L,j,F),this.optimize())}},{key:"insertAt",value:function(N,L,j){if(!(j!=null&&this.whitelist!=null&&!this.whitelist[L])){if(N>=this.length())if(j==null||m.default.query(L,m.default.Scope.BLOCK)==null){var F=m.default.create(this.statics.defaultChild);this.appendChild(F),j==null&&L.endsWith(`
27`)&&(L=L.slice(0,-1)),F.insertAt(0,L,j)}else{var U=m.default.create(L,j);this.appendChild(U)}else _(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,N,L,j);this.optimize()}}},{key:"insertBefore",value:function(N,L){if(N.statics.scope===m.default.Scope.INLINE_BLOT){var j=m.default.create(this.statics.defaultChild);j.appendChild(N),N=j}_(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(A,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,j=function F(U,Y,B){var I=[],x=B;return U.children.forEachAt(Y,B,function(R,M,H){A(R)?I.push(R):R instanceof m.default.Container&&(I=I.concat(F(R,M,x))),x-=H}),I};return j(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&&(_(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 _(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),_(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}(m.default.Scroll);P.blotName="scroll",P.className="ql-editor",P.tagName="DIV",P.defaultChild="block",P.allowedChildren=[e.default,t.BlockEmbed,h.default],f.default=P},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.SHORTKEY=f.default=void 0;var b=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},g=function(){function q(D,K){var V=[],G=!0,tt=!1,rt=void 0;try{for(var it=D[Symbol.iterator](),st;!(G=(st=it.next()).done)&&(V.push(st.value),!(K&&V.length===K));G=!0);}catch(ut){tt=!0,rt=ut}finally{try{!G&&it.return&&it.return()}finally{if(tt)throw rt}}return V}return function(D,K){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return q(D,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function q(D,K){for(var V=0;V<K.length;V++){var G=K[V];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(D,G.key,G)}}return function(D,K,V){return K&&q(D.prototype,K),V&&q(D,V),D}}(),y=r(21),m=E(y),i=r(11),a=E(i),t=r(3),e=E(t),c=r(2),s=E(c),u=r(20),o=E(u),l=r(0),h=E(l),n=r(5),v=E(n),T=r(10),w=E(T),A=r(9),P=E(A);function E(q){return q&&q.__esModule?q:{default:q}}function p(q,D,K){return D in q?Object.defineProperty(q,D,{value:K,enumerable:!0,configurable:!0,writable:!0}):q[D]=K,q}function O(q,D){if(!(q instanceof D))throw new TypeError("Cannot call a class as a function")}function N(q,D){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:q}function L(q,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);q.prototype=Object.create(D&&D.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(q,D):q.__proto__=D)}var j=(0,w.default)("quill:keyboard"),F=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",U=function(q){L(D,q),_(D,null,[{key:"match",value:function(V,G){return G=C(G),["altKey","ctrlKey","metaKey","shiftKey"].some(function(tt){return!!G[tt]!==V[tt]&&G[tt]!==null})?!1:G.key===(V.which||V.keyCode)}}]);function D(K,V){O(this,D);var G=N(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,K,V));return G.bindings={},Object.keys(G.options.bindings).forEach(function(tt){tt==="list autofill"&&K.scroll.whitelist!=null&&!K.scroll.whitelist.list||G.options.bindings[tt]&&G.addBinding(G.options.bindings[tt])}),G.addBinding({key:D.keys.ENTER,shiftKey:null},R),G.addBinding({key:D.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(G.addBinding({key:D.keys.BACKSPACE},{collapsed:!0},B),G.addBinding({key:D.keys.DELETE},{collapsed:!0},I)):(G.addBinding({key:D.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},B),G.addBinding({key:D.keys.DELETE},{collapsed:!0,suffix:/^.?$/},I)),G.addBinding({key:D.keys.BACKSPACE},{collapsed:!1},x),G.addBinding({key:D.keys.DELETE},{collapsed:!1},x),G.addBinding({key:D.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},B),G.listen(),G}return _(D,[{key:"addBinding",value:function(V){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},rt=C(V);if(rt==null||rt.key==null)return j.warn("Attempted to add invalid keyboard binding",rt);typeof G=="function"&&(G={handler:G}),typeof tt=="function"&&(tt={handler:tt}),rt=(0,e.default)(rt,G,tt),this.bindings[rt.key]=this.bindings[rt.key]||[],this.bindings[rt.key].push(rt)}},{key:"listen",value:function(){var V=this;this.quill.root.addEventListener("keydown",function(G){if(!G.defaultPrevented){var tt=G.which||G.keyCode,rt=(V.bindings[tt]||[]).filter(function(dt){return D.match(G,dt)});if(rt.length!==0){var it=V.quill.getSelection();if(!(it==null||!V.quill.hasFocus())){var st=V.quill.getLine(it.index),ut=g(st,2),yt=ut[0],vt=ut[1],Z=V.quill.getLeaf(it.index),W=g(Z,2),X=W[0],J=W[1],Q=it.length===0?[X,J]:V.quill.getLeaf(it.index+it.length),ot=g(Q,2),lt=ot[0],at=ot[1],_t=X instanceof h.default.Text?X.value().slice(0,J):"",At=lt instanceof h.default.Text?lt.value().slice(at):"",ct={collapsed:it.length===0,empty:it.length===0&&yt.length()<=1,format:V.quill.getFormat(it),offset:vt,prefix:_t,suffix:At},de=rt.some(function(dt){if(dt.collapsed!=null&&dt.collapsed!==ct.collapsed||dt.empty!=null&&dt.empty!==ct.empty||dt.offset!=null&&dt.offset!==ct.offset)return!1;if(Array.isArray(dt.format)){if(dt.format.every(function(Nt){return ct.format[Nt]==null}))return!1}else if(b(dt.format)==="object"&&!Object.keys(dt.format).every(function(Nt){return dt.format[Nt]===!0?ct.format[Nt]!=null:dt.format[Nt]===!1?ct.format[Nt]==null:(0,a.default)(dt.format[Nt],ct.format[Nt])}))return!1;return dt.prefix!=null&&!dt.prefix.test(ct.prefix)||dt.suffix!=null&&!dt.suffix.test(ct.suffix)?!1:dt.handler.call(V,it,ct)!==!0});de&&G.preventDefault()}}}})}}]),D}(P.default);U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:H("bold"),italic:H("italic"),underline:H("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(D,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","+1",v.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(D,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","-1",v.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(D,K){K.format.indent!=null?this.quill.format("indent","-1",v.default.sources.USER):K.format.list!=null&&this.quill.format("list",!1,v.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(D){this.quill.deleteText(D.index-1,1,v.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(D){this.quill.history.cutoff();var K=new s.default().retain(D.index).delete(D.length).insert("	");this.quill.updateContents(K,v.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(D.index+1,v.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(D,K){this.quill.format("list",!1,v.default.sources.USER),K.format.indent&&this.quill.format("indent",!1,v.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(D){var K=this.quill.getLine(D.index),V=g(K,2),G=V[0],tt=V[1],rt=(0,e.default)({},G.formats(),{list:"checked"}),it=new s.default().retain(D.index).insert(`
28`,rt).retain(G.length()-tt-1).retain(1,{list:"unchecked"});this.quill.updateContents(it,v.default.sources.USER),this.quill.setSelection(D.index+1,v.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(D,K){var V=this.quill.getLine(D.index),G=g(V,2),tt=G[0],rt=G[1],it=new s.default().retain(D.index).insert(`
29`,K.format).retain(tt.length()-rt-1).retain(1,{header:null});this.quill.updateContents(it,v.default.sources.USER),this.quill.setSelection(D.index+1,v.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(D,K){var V=K.prefix.length,G=this.quill.getLine(D.index),tt=g(G,2),rt=tt[0],it=tt[1];if(it>V)return!0;var st=void 0;switch(K.prefix.trim()){case"[]":case"[ ]":st="unchecked";break;case"[x]":st="checked";break;case"-":case"*":st="bullet";break;default:st="ordered"}this.quill.insertText(D.index," ",v.default.sources.USER),this.quill.history.cutoff();var ut=new s.default().retain(D.index-it).delete(V+1).retain(rt.length()-2-it).retain(1,{list:st});this.quill.updateContents(ut,v.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(D.index-V,v.default.sources.SILENT)}},"code exit":{key:U.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(D){var K=this.quill.getLine(D.index),V=g(K,2),G=V[0],tt=V[1],rt=new s.default().retain(D.index+G.length()-tt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(rt,v.default.sources.USER)}},"embed left":Y(U.keys.LEFT,!1),"embed left shift":Y(U.keys.LEFT,!0),"embed right":Y(U.keys.RIGHT,!1),"embed right shift":Y(U.keys.RIGHT,!0)}};function Y(q,D){var K,V=q===U.keys.LEFT?"prefix":"suffix";return K={key:q,shiftKey:D,altKey:null},p(K,V,/^$/),p(K,"handler",function(tt){var rt=tt.index;q===U.keys.RIGHT&&(rt+=tt.length+1);var it=this.quill.getLeaf(rt),st=g(it,1),ut=st[0];return ut instanceof h.default.Embed?(q===U.keys.LEFT?D?this.quill.setSelection(tt.index-1,tt.length+1,v.default.sources.USER):this.quill.setSelection(tt.index-1,v.default.sources.USER):D?this.quill.setSelection(tt.index,tt.length+1,v.default.sources.USER):this.quill.setSelection(tt.index+tt.length+1,v.default.sources.USER),!1):!0}),K}function B(q,D){if(!(q.index===0||this.quill.getLength()<=1)){var K=this.quill.getLine(q.index),V=g(K,1),G=V[0],tt={};if(D.offset===0){var rt=this.quill.getLine(q.index-1),it=g(rt,1),st=it[0];if(st!=null&&st.length()>1){var ut=G.formats(),yt=this.quill.getFormat(q.index-1,1);tt=o.default.attributes.diff(ut,yt)||{}}}var vt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(D.prefix)?2:1;this.quill.deleteText(q.index-vt,vt,v.default.sources.USER),Object.keys(tt).length>0&&this.quill.formatLine(q.index-vt,vt,tt,v.default.sources.USER),this.quill.focus()}}function I(q,D){var K=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(D.suffix)?2:1;if(!(q.index>=this.quill.getLength()-K)){var V={},G=0,tt=this.quill.getLine(q.index),rt=g(tt,1),it=rt[0];if(D.offset>=it.length()-1){var st=this.quill.getLine(q.index+1),ut=g(st,1),yt=ut[0];if(yt){var vt=it.formats(),Z=this.quill.getFormat(q.index,1);V=o.default.attributes.diff(vt,Z)||{},G=yt.length()}}this.quill.deleteText(q.index,K,v.default.sources.USER),Object.keys(V).length>0&&this.quill.formatLine(q.index+G-1,K,V,v.default.sources.USER)}}function x(q){var D=this.quill.getLines(q),K={};if(D.length>1){var V=D[0].formats(),G=D[D.length-1].formats();K=o.default.attributes.diff(G,V)||{}}this.quill.deleteText(q,v.default.sources.USER),Object.keys(K).length>0&&this.quill.formatLine(q.index,1,K,v.default.sources.USER),this.quill.setSelection(q.index,v.default.sources.SILENT),this.quill.focus()}function R(q,D){var K=this;q.length>0&&this.quill.scroll.deleteAt(q.index,q.length);var V=Object.keys(D.format).reduce(function(G,tt){return h.default.query(tt,h.default.Scope.BLOCK)&&!Array.isArray(D.format[tt])&&(G[tt]=D.format[tt]),G},{});this.quill.insertText(q.index,`
30`,V,v.default.sources.USER),this.quill.setSelection(q.index+1,v.default.sources.SILENT),this.quill.focus(),Object.keys(D.format).forEach(function(G){V[G]==null&&(Array.isArray(D.format[G])||G!=="link"&&K.quill.format(G,D.format[G],v.default.sources.USER))})}function M(q){return{key:U.keys.TAB,shiftKey:!q,format:{"code-block":!0},handler:function(K){var V=h.default.query("code-block"),G=K.index,tt=K.length,rt=this.quill.scroll.descendant(V,G),it=g(rt,2),st=it[0],ut=it[1];if(st!=null){var yt=this.quill.getIndex(st),vt=st.newlineIndex(ut,!0)+1,Z=st.newlineIndex(yt+ut+tt),W=st.domNode.textContent.slice(vt,Z).split(`
31`);ut=0,W.forEach(function(X,J){q?(st.insertAt(vt+ut,V.TAB),ut+=V.TAB.length,J===0?G+=V.TAB.length:tt+=V.TAB.length):X.startsWith(V.TAB)&&(st.deleteAt(vt+ut,V.TAB.length),ut-=V.TAB.length,J===0?G-=V.TAB.length:tt-=V.TAB.length),ut+=X.length+1}),this.quill.update(v.default.sources.USER),this.quill.setSelection(G,tt,v.default.sources.SILENT)}}}}function H(q){return{key:q[0].toUpperCase(),shortKey:!0,handler:function(K,V){this.quill.format(q,!V.format[q],v.default.sources.USER)}}}function C(q){if(typeof q=="string"||typeof q=="number")return C({key:q});if((typeof q>"u"?"undefined":b(q))==="object"&&(q=(0,m.default)(q,!1)),typeof q.key=="string")if(U.keys[q.key.toUpperCase()]!=null)q.key=U.keys[q.key.toUpperCase()];else if(q.key.length===1)q.key=q.key.toUpperCase().charCodeAt(0);else return null;return q.shortKey&&(q[F]=q.shortKey,delete q.shortKey),q}f.default=U,f.SHORTKEY=F},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function o(l,h){var n=[],v=!0,T=!1,w=void 0;try{for(var A=l[Symbol.iterator](),P;!(v=(P=A.next()).done)&&(n.push(P.value),!(h&&n.length===h));v=!0);}catch(E){T=!0,w=E}finally{try{!v&&A.return&&A.return()}finally{if(T)throw w}}return n}return function(l,h){if(Array.isArray(l))return l;if(Symbol.iterator in Object(l))return o(l,h);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function o(l,h,n){l===null&&(l=Function.prototype);var v=Object.getOwnPropertyDescriptor(l,h);if(v===void 0){var T=Object.getPrototypeOf(l);return T===null?void 0:o(T,h,n)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(n)}},_=function(){function o(l,h){for(var n=0;n<h.length;n++){var v=h[n];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(l,v.key,v)}}return function(l,h,n){return h&&o(l.prototype,h),n&&o(l,n),l}}(),y=r(0),m=t(y),i=r(7),a=t(i);function t(o){return o&&o.__esModule?o:{default:o}}function e(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}function c(o,l){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:o}function s(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(o,l):o.__proto__=l)}var u=function(o){s(l,o),_(l,null,[{key:"value",value:function(){}}]);function l(h,n){e(this,l);var v=c(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,h));return v.selection=n,v.textNode=document.createTextNode(l.CONTENTS),v.domNode.appendChild(v.textNode),v._length=0,v}return _(l,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,v){if(this._length!==0)return g(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,n,v);for(var T=this,w=0;T!=null&&T.statics.scope!==m.default.Scope.BLOCK_BLOT;)w+=T.offset(T.parent),T=T.parent;T!=null&&(this._length=l.CONTENTS.length,T.optimize(),T.formatAt(w,l.CONTENTS.length,n,v),this._length=0)}},{key:"index",value:function(n,v){return n===this.textNode?0:g(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"index",this).call(this,n,v)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){g(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,v=this.selection.getNativeRange(),T=void 0,w=void 0,A=void 0;if(v!=null&&v.start.node===n&&v.end.node===n){var P=[n,v.start.offset,v.end.offset];T=P[0],w=P[1],A=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!==l.CONTENTS){var E=this.textNode.data.split(l.CONTENTS).join("");this.next instanceof a.default?(T=this.next.domNode,this.next.insertAt(0,E),this.textNode.data=l.CONTENTS):(this.textNode.data=E,this.parent.insertBefore(m.default.create(this.textNode),this),this.textNode=document.createTextNode(l.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),w!=null){var p=[w,A].map(function(N){return Math.max(0,Math.min(T.data.length,N-1))}),O=b(p,2);return w=O[0],A=O[1],{startNode:T,startOffset:w,endNode:T,endOffset:A}}}}},{key:"update",value:function(n,v){var T=this;if(n.some(function(A){return A.type==="characterData"&&A.target===T.textNode})){var w=this.restore();w&&(v.range=w)}}},{key:"value",value:function(){return""}}]),l}(m.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\uFEFF",f.default=u},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(0),g=m(b),_=r(4),y=m(_);function m(c){return c&&c.__esModule?c:{default:c}}function i(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function a(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function t(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var e=function(c){t(s,c);function s(){return i(this,s),a(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return s}(g.default.Container);e.allowedChildren=[y.default,_.BlockEmbed,e],f.default=e},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.ColorStyle=f.ColorClass=f.ColorAttributor=void 0;var b=function(){function u(o,l){for(var h=0;h<l.length;h++){var n=l[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,l,h){return l&&u(o.prototype,l),h&&u(o,h),o}}(),g=function u(o,l,h){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,l);if(n===void 0){var v=Object.getPrototypeOf(o);return v===null?void 0:u(v,l,h)}else{if("value"in n)return n.value;var T=n.get;return T===void 0?void 0:T.call(h)}},_=r(0),y=m(_);function m(u){return u&&u.__esModule?u:{default:u}}function i(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function a(u,o){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:u}function t(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);u.prototype=Object.create(o&&o.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(u,o):u.__proto__=o)}var e=function(u){t(o,u);function o(){return i(this,o),a(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return b(o,[{key:"value",value:function(h){var n=g(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"value",this).call(this,h);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(v){return("00"+parseInt(v).toString(16)).slice(-2)}).join("")):n}}]),o}(y.default.Attributor.Style),c=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE}),s=new e("color","color",{scope:y.default.Scope.INLINE});f.ColorAttributor=e,f.ColorClass=c,f.ColorStyle=s},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.sanitize=f.default=void 0;var b=function(){function s(u,o){for(var l=0;l<o.length;l++){var h=o[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(u,h.key,h)}}return function(u,o,l){return o&&s(u.prototype,o),l&&s(u,l),u}}(),g=function s(u,o,l){u===null&&(u=Function.prototype);var h=Object.getOwnPropertyDescriptor(u,o);if(h===void 0){var n=Object.getPrototypeOf(u);return n===null?void 0:s(n,o,l)}else{if("value"in h)return h.value;var v=h.get;return v===void 0?void 0:v.call(l)}},_=r(6),y=m(_);function m(s){return s&&s.__esModule?s:{default:s}}function i(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}function a(s,u){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:s}function t(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);s.prototype=Object.create(u&&u.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(s,u):s.__proto__=u)}var e=function(s){t(u,s);function u(){return i(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return b(u,[{key:"format",value:function(l,h){if(l!==this.statics.blotName||!h)return g(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"format",this).call(this,l,h);h=this.constructor.sanitize(h),this.domNode.setAttribute("href",h)}}],[{key:"create",value:function(l){var h=g(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,l);return l=this.sanitize(l),h.setAttribute("href",l),h.setAttribute("rel","noopener noreferrer"),h.setAttribute("target","_blank"),h}},{key:"formats",value:function(l){return l.getAttribute("href")}},{key:"sanitize",value:function(l){return c(l,this.PROTOCOL_WHITELIST)?l:this.SANITIZED_URL}}]),u}(y.default);e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function c(s,u){var o=document.createElement("a");o.href=s;var l=o.href.slice(0,o.href.indexOf(":"));return u.indexOf(l)>-1}f.default=e,f.sanitize=c},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=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},g=function(){function u(o,l){for(var h=0;h<l.length;h++){var n=l[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,l,h){return l&&u(o.prototype,l),h&&u(o,h),o}}(),_=r(23),y=a(_),m=r(107),i=a(m);function a(u){return u&&u.__esModule?u:{default:u}}function t(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}var e=0;function c(u,o){u.setAttribute(o,u.getAttribute(o)!=="true")}var s=function(){function u(o){var l=this;t(this,u),this.select=o,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(){l.togglePicker()}),this.label.addEventListener("keydown",function(h){switch(h.keyCode){case y.default.keys.ENTER:l.togglePicker();break;case y.default.keys.ESCAPE:l.escape(),h.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return g(u,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(l){var h=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),l.hasAttribute("value")&&n.setAttribute("data-value",l.getAttribute("value")),l.textContent&&n.setAttribute("data-label",l.textContent),n.addEventListener("click",function(){h.selectItem(n,!0)}),n.addEventListener("keydown",function(v){switch(v.keyCode){case y.default.keys.ENTER:h.selectItem(n,!0),v.preventDefault();break;case y.default.keys.ESCAPE:h.escape(),v.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var l=document.createElement("span");return l.classList.add("ql-picker-label"),l.innerHTML=i.default,l.tabIndex="0",l.setAttribute("role","button"),l.setAttribute("aria-expanded","false"),this.container.appendChild(l),l}},{key:"buildOptions",value:function(){var l=this,h=document.createElement("span");h.classList.add("ql-picker-options"),h.setAttribute("aria-hidden","true"),h.tabIndex="-1",h.id="ql-picker-options-"+e,e+=1,this.label.setAttribute("aria-controls",h.id),this.options=h,[].slice.call(this.select.options).forEach(function(n){var v=l.buildItem(n);h.appendChild(v),n.selected===!0&&l.selectItem(v)}),this.container.appendChild(h)}},{key:"buildPicker",value:function(){var l=this;[].slice.call(this.select.attributes).forEach(function(h){l.container.setAttribute(h.name,h.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var l=this;this.close(),setTimeout(function(){return l.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(l){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(l!==n&&(n!=null&&n.classList.remove("ql-selected"),l!=null&&(l.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(l.parentNode.children,l),l.hasAttribute("data-value")?this.label.setAttribute("data-value",l.getAttribute("data-value")):this.label.removeAttribute("data-value"),l.hasAttribute("data-label")?this.label.setAttribute("data-label",l.getAttribute("data-label")):this.label.removeAttribute("data-label"),h))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":b(Event))==="object"){var v=document.createEvent("Event");v.initEvent("change",!0,!0),this.select.dispatchEvent(v)}this.close()}}},{key:"update",value:function(){var l=void 0;if(this.select.selectedIndex>-1){var h=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];l=this.select.options[this.select.selectedIndex],this.selectItem(h)}else this.selectItem(null);var n=l!=null&&l!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),u}();f.default=s},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(0),g=j(b),_=r(5),y=j(_),m=r(4),i=j(m),a=r(16),t=j(a),e=r(25),c=j(e),s=r(24),u=j(s),o=r(35),l=j(o),h=r(6),n=j(h),v=r(22),T=j(v),w=r(7),A=j(w),P=r(55),E=j(P),p=r(42),O=j(p),N=r(23),L=j(N);function j(F){return F&&F.__esModule?F:{default:F}}y.default.register({"blots/block":i.default,"blots/block/embed":m.BlockEmbed,"blots/break":t.default,"blots/container":c.default,"blots/cursor":u.default,"blots/embed":l.default,"blots/inline":n.default,"blots/scroll":T.default,"blots/text":A.default,"modules/clipboard":E.default,"modules/history":O.default,"modules/keyboard":L.default}),g.default.register(i.default,t.default,u.default,n.default,T.default,A.default),f.default=y.default},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(1),g=function(){function _(y){this.domNode=y,this.domNode[b.DATA_KEY]={blot:this}}return Object.defineProperty(_.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),_.create=function(y){if(this.tagName==null)throw new b.ParchmentError("Blot definition missing tagName");var m;return Array.isArray(this.tagName)?(typeof y=="string"&&(y=y.toUpperCase(),parseInt(y).toString()===y&&(y=parseInt(y))),typeof y=="number"?m=document.createElement(this.tagName[y-1]):this.tagName.indexOf(y)>-1?m=document.createElement(y):m=document.createElement(this.tagName[0])):m=document.createElement(this.tagName),this.className&&m.classList.add(this.className),m},_.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},_.prototype.clone=function(){var y=this.domNode.cloneNode(!1);return b.create(y)},_.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[b.DATA_KEY]},_.prototype.deleteAt=function(y,m){var i=this.isolate(y,m);i.remove()},_.prototype.formatAt=function(y,m,i,a){var t=this.isolate(y,m);if(b.query(i,b.Scope.BLOT)!=null&&a)t.wrap(i,a);else if(b.query(i,b.Scope.ATTRIBUTE)!=null){var e=b.create(this.statics.scope);t.wrap(e),e.format(i,a)}},_.prototype.insertAt=function(y,m,i){var a=i==null?b.create("text",m):b.create(m,i),t=this.split(y);this.parent.insertBefore(a,t)},_.prototype.insertInto=function(y,m){m===void 0&&(m=null),this.parent!=null&&this.parent.children.remove(this);var i=null;y.children.insertBefore(this,m),m!=null&&(i=m.domNode),(this.domNode.parentNode!=y.domNode||this.domNode.nextSibling!=i)&&y.domNode.insertBefore(this.domNode,i),this.parent=y,this.attach()},_.prototype.isolate=function(y,m){var i=this.split(y);return i.split(m),i},_.prototype.length=function(){return 1},_.prototype.offset=function(y){return y===void 0&&(y=this.parent),this.parent==null||this==y?0:this.parent.children.offset(this)+this.parent.offset(y)},_.prototype.optimize=function(y){this.domNode[b.DATA_KEY]!=null&&delete this.domNode[b.DATA_KEY].mutations},_.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},_.prototype.replace=function(y){y.parent!=null&&(y.parent.insertBefore(this,y.next),y.remove())},_.prototype.replaceWith=function(y,m){var i=typeof y=="string"?b.create(y,m):y;return i.replace(this),i},_.prototype.split=function(y,m){return y===0?this:this.next},_.prototype.update=function(y,m){},_.prototype.wrap=function(y,m){var i=typeof y=="string"?b.create(y,m):y;return this.parent!=null&&this.parent.insertBefore(i,this.next),i.appendChild(this),i},_.blotName="abstract",_}();f.default=g},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(12),g=r(32),_=r(33),y=r(1),m=function(){function i(a){this.attributes={},this.domNode=a,this.build()}return i.prototype.attribute=function(a,t){t?a.add(this.domNode,t)&&(a.value(this.domNode)!=null?this.attributes[a.attrName]=a:delete this.attributes[a.attrName]):(a.remove(this.domNode),delete this.attributes[a.attrName])},i.prototype.build=function(){var a=this;this.attributes={};var t=b.default.keys(this.domNode),e=g.default.keys(this.domNode),c=_.default.keys(this.domNode);t.concat(e).concat(c).forEach(function(s){var u=y.query(s,y.Scope.ATTRIBUTE);u instanceof b.default&&(a.attributes[u.attrName]=u)})},i.prototype.copy=function(a){var t=this;Object.keys(this.attributes).forEach(function(e){var c=t.attributes[e].value(t.domNode);a.format(e,c)})},i.prototype.move=function(a){var t=this;this.copy(a),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},i.prototype.values=function(){var a=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=a.attributes[e].value(a.domNode),t},{})},i}();f.default=m},function(d,f,r){var b=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var t in a)a.hasOwnProperty(t)&&(i[t]=a[t])};return function(i,a){m(i,a);function t(){this.constructor=i}i.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}}();Object.defineProperty(f,"__esModule",{value:!0});var g=r(12);function _(m,i){var a=m.getAttribute("class")||"";return a.split(/\s+/).filter(function(t){return t.indexOf(i+"-")===0})}var y=function(m){b(i,m);function i(){return m!==null&&m.apply(this,arguments)||this}return i.keys=function(a){return(a.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},i.prototype.add=function(a,t){return this.canAdd(a,t)?(this.remove(a),a.classList.add(this.keyName+"-"+t),!0):!1},i.prototype.remove=function(a){var t=_(a,this.keyName);t.forEach(function(e){a.classList.remove(e)}),a.classList.length===0&&a.removeAttribute("class")},i.prototype.value=function(a){var t=_(a,this.keyName)[0]||"",e=t.slice(this.keyName.length+1);return this.canAdd(a,e)?e:""},i}(g.default);f.default=y},function(d,f,r){var b=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var t in a)a.hasOwnProperty(t)&&(i[t]=a[t])};return function(i,a){m(i,a);function t(){this.constructor=i}i.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}}();Object.defineProperty(f,"__esModule",{value:!0});var g=r(12);function _(m){var i=m.split("-"),a=i.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return i[0]+a}var y=function(m){b(i,m);function i(){return m!==null&&m.apply(this,arguments)||this}return i.keys=function(a){return(a.getAttribute("style")||"").split(";").map(function(t){var e=t.split(":");return e[0].trim()})},i.prototype.add=function(a,t){return this.canAdd(a,t)?(a.style[_(this.keyName)]=t,!0):!1},i.prototype.remove=function(a){a.style[_(this.keyName)]="",a.getAttribute("style")||a.removeAttribute("style")},i.prototype.value=function(a){var t=a.style[_(this.keyName)];return this.canAdd(a,t)?t:""},i}(g.default);f.default=y},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function y(m,i){for(var a=0;a<i.length;a++){var t=i[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(m,t.key,t)}}return function(m,i,a){return i&&y(m.prototype,i),a&&y(m,a),m}}();function g(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}var _=function(){function y(m,i){g(this,y),this.quill=m,this.options=i,this.modules={}}return b(y,[{key:"init",value:function(){var i=this;Object.keys(this.options.modules).forEach(function(a){i.modules[a]==null&&i.addModule(a)})}},{key:"addModule",value:function(i){var a=this.quill.constructor.import("modules/"+i);return this.modules[i]=new a(this.quill,this.options.modules[i]||{}),this.modules[i]}}]),y}();_.DEFAULTS={modules:{}},_.themes={default:_},f.default=_},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function o(l,h){for(var n=0;n<h.length;n++){var v=h[n];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(l,v.key,v)}}return function(l,h,n){return h&&o(l.prototype,h),n&&o(l,n),l}}(),g=function o(l,h,n){l===null&&(l=Function.prototype);var v=Object.getOwnPropertyDescriptor(l,h);if(v===void 0){var T=Object.getPrototypeOf(l);return T===null?void 0:o(T,h,n)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(n)}},_=r(0),y=a(_),m=r(7),i=a(m);function a(o){return o&&o.__esModule?o:{default:o}}function t(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}function e(o,l){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:o}function c(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(o,l):o.__proto__=l)}var s="\uFEFF",u=function(o){c(l,o);function l(h){t(this,l);var n=e(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,h));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(v){n.contentNode.appendChild(v)}),n.leftGuard=document.createTextNode(s),n.rightGuard=document.createTextNode(s),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return b(l,[{key:"index",value:function(n,v){return n===this.leftGuard?0:n===this.rightGuard?1:g(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"index",this).call(this,n,v)}},{key:"restore",value:function(n){var v=void 0,T=void 0,w=n.data.split(s).join("");if(n===this.leftGuard)if(this.prev instanceof i.default){var A=this.prev.length();this.prev.insertAt(A,w),v={startNode:this.prev.domNode,startOffset:A+w.length}}else T=document.createTextNode(w),this.parent.insertBefore(y.default.create(T),this),v={startNode:T,startOffset:w.length};else n===this.rightGuard&&(this.next instanceof i.default?(this.next.insertAt(0,w),v={startNode:this.next.domNode,startOffset:w.length}):(T=document.createTextNode(w),this.parent.insertBefore(y.default.create(T),this.next),v={startNode:T,startOffset:w.length}));return n.data=s,v}},{key:"update",value:function(n,v){var T=this;n.forEach(function(w){if(w.type==="characterData"&&(w.target===T.leftGuard||w.target===T.rightGuard)){var A=T.restore(w.target);A&&(v.range=A)}})}}]),l}(y.default.Embed);f.default=u},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.AlignStyle=f.AlignClass=f.AlignAttribute=void 0;var b=r(0),g=_(b);function _(t){return t&&t.__esModule?t:{default:t}}var y={scope:g.default.Scope.BLOCK,whitelist:["right","center","justify"]},m=new g.default.Attributor.Attribute("align","align",y),i=new g.default.Attributor.Class("align","ql-align",y),a=new g.default.Attributor.Style("align","text-align",y);f.AlignAttribute=m,f.AlignClass=i,f.AlignStyle=a},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.BackgroundStyle=f.BackgroundClass=void 0;var b=r(0),g=y(b),_=r(26);function y(a){return a&&a.__esModule?a:{default:a}}var m=new g.default.Attributor.Class("background","ql-bg",{scope:g.default.Scope.INLINE}),i=new _.ColorAttributor("background","background-color",{scope:g.default.Scope.INLINE});f.BackgroundClass=m,f.BackgroundStyle=i},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.DirectionStyle=f.DirectionClass=f.DirectionAttribute=void 0;var b=r(0),g=_(b);function _(t){return t&&t.__esModule?t:{default:t}}var y={scope:g.default.Scope.BLOCK,whitelist:["rtl"]},m=new g.default.Attributor.Attribute("direction","dir",y),i=new g.default.Attributor.Class("direction","ql-direction",y),a=new g.default.Attributor.Style("direction","direction",y);f.DirectionAttribute=m,f.DirectionClass=i,f.DirectionStyle=a},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.FontClass=f.FontStyle=void 0;var b=function(){function o(l,h){for(var n=0;n<h.length;n++){var v=h[n];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(l,v.key,v)}}return function(l,h,n){return h&&o(l.prototype,h),n&&o(l,n),l}}(),g=function o(l,h,n){l===null&&(l=Function.prototype);var v=Object.getOwnPropertyDescriptor(l,h);if(v===void 0){var T=Object.getPrototypeOf(l);return T===null?void 0:o(T,h,n)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(n)}},_=r(0),y=m(_);function m(o){return o&&o.__esModule?o:{default:o}}function i(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}function a(o,l){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:o}function t(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(o,l):o.__proto__=l)}var e={scope:y.default.Scope.INLINE,whitelist:["serif","monospace"]},c=new y.default.Attributor.Class("font","ql-font",e),s=function(o){t(l,o);function l(){return i(this,l),a(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return b(l,[{key:"value",value:function(n){return g(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),l}(y.default.Attributor.Style),u=new s("font","font-family",e);f.FontStyle=u,f.FontClass=c},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.SizeStyle=f.SizeClass=void 0;var b=r(0),g=_(b);function _(i){return i&&i.__esModule?i:{default:i}}var y=new g.default.Attributor.Class("size","ql-size",{scope:g.default.Scope.INLINE,whitelist:["small","large","huge"]}),m=new g.default.Attributor.Style("size","font-size",{scope:g.default.Scope.INLINE,whitelist:["10px","18px","32px"]});f.SizeClass=y,f.SizeStyle=m},function(d,f,r){d.exports={align:{"":r(76),center:r(77),right:r(78),justify:r(79)},background:r(80),blockquote:r(81),bold:r(82),clean:r(83),code:r(58),"code-block":r(58),color:r(84),direction:{"":r(85),rtl:r(86)},float:{center:r(87),full:r(88),left:r(89),right:r(90)},formula:r(91),header:{1:r(92),2:r(93)},italic:r(94),image:r(95),indent:{"+1":r(96),"-1":r(97)},link:r(98),list:{ordered:r(99),bullet:r(100),check:r(101)},script:{sub:r(102),super:r(103)},strike:r(104),underline:r(105),video:r(106)}},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.getLastChangeIndex=f.default=void 0;var b=function(){function h(n,v){for(var T=0;T<v.length;T++){var w=v[T];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(n,w.key,w)}}return function(n,v,T){return v&&h(n.prototype,v),T&&h(n,T),n}}(),g=r(0),_=t(g),y=r(5),m=t(y),i=r(9),a=t(i);function t(h){return h&&h.__esModule?h:{default:h}}function e(h,n){if(!(h instanceof n))throw new TypeError("Cannot call a class as a function")}function c(h,n){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:h}function s(h,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);h.prototype=Object.create(n&&n.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(h,n):h.__proto__=n)}var u=function(h){s(n,h);function n(v,T){e(this,n);var w=c(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,v,T));return w.lastRecorded=0,w.ignoreChange=!1,w.clear(),w.quill.on(m.default.events.EDITOR_CHANGE,function(A,P,E,p){A!==m.default.events.TEXT_CHANGE||w.ignoreChange||(!w.options.userOnly||p===m.default.sources.USER?w.record(P,E):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 b(n,[{key:"change",value:function(T,w){if(this.stack[T].length!==0){var A=this.stack[T].pop();this.stack[w].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[T],m.default.sources.USER),this.ignoreChange=!1;var P=l(A[T]);this.quill.setSelection(P)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(T,w){if(T.ops.length!==0){this.stack.redo=[];var A=this.quill.getContents().diff(w),P=Date.now();if(this.lastRecorded+this.options.delay>P&&this.stack.undo.length>0){var E=this.stack.undo.pop();A=A.compose(E.undo),T=E.redo.compose(T)}else this.lastRecorded=P;this.stack.undo.push({redo:T,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(T){this.stack.undo.forEach(function(w){w.undo=T.transform(w.undo,!0),w.redo=T.transform(w.redo,!0)}),this.stack.redo.forEach(function(w){w.undo=T.transform(w.undo,!0),w.redo=T.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(a.default);u.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function o(h){var n=h.ops[h.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(v){return _.default.query(v,_.default.Scope.BLOCK)!=null}):!1}function l(h){var n=h.reduce(function(T,w){return T+=w.delete||0,T},0),v=h.length()-n;return o(h)&&(v-=1),v}f.default=u,f.getLastChangeIndex=l},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.BaseTooltip=void 0;var b=function(){function R(M,H){for(var C=0;C<H.length;C++){var q=H[C];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(M,q.key,q)}}return function(M,H,C){return H&&R(M.prototype,H),C&&R(M,C),M}}(),g=function R(M,H,C){M===null&&(M=Function.prototype);var q=Object.getOwnPropertyDescriptor(M,H);if(q===void 0){var D=Object.getPrototypeOf(M);return D===null?void 0:R(D,H,C)}else{if("value"in q)return q.value;var K=q.get;return K===void 0?void 0:K.call(C)}},_=r(3),y=P(_),m=r(2),i=P(m),a=r(8),t=P(a),e=r(23),c=P(e),s=r(34),u=P(s),o=r(59),l=P(o),h=r(60),n=P(h),v=r(28),T=P(v),w=r(61),A=P(w);function P(R){return R&&R.__esModule?R:{default:R}}function E(R,M){if(!(R instanceof M))throw new TypeError("Cannot call a class as a function")}function p(R,M){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:R}function O(R,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);R.prototype=Object.create(M&&M.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(R,M):R.__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"],j=[!1,"serif","monospace"],F=["1","2","3",!1],U=["small",!1,"large","huge"],Y=function(R){O(M,R);function M(H,C){E(this,M);var q=p(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,H,C)),D=function K(V){if(!document.body.contains(H.root))return document.body.removeEventListener("click",K);q.tooltip!=null&&!q.tooltip.root.contains(V.target)&&document.activeElement!==q.tooltip.textbox&&!q.quill.hasFocus()&&q.tooltip.hide(),q.pickers!=null&&q.pickers.forEach(function(G){G.container.contains(V.target)||G.close()})};return H.emitter.listenDOM("click",document.body,D),q}return b(M,[{key:"addModule",value:function(C){var q=g(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(D){var K=D.getAttribute("class")||"";K.split(/\s+/).forEach(function(V){if(!!V.startsWith("ql-")&&(V=V.slice(3),q[V]!=null))if(V==="direction")D.innerHTML=q[V][""]+q[V].rtl;else if(typeof q[V]=="string")D.innerHTML=q[V];else{var G=D.value||"";G!=null&&q[V][G]&&(D.innerHTML=q[V][G])}})})}},{key:"buildPickers",value:function(C,q){var D=this;this.pickers=C.map(function(V){if(V.classList.contains("ql-align"))return V.querySelector("option")==null&&x(V,N),new n.default(V,q.align);if(V.classList.contains("ql-background")||V.classList.contains("ql-color")){var G=V.classList.contains("ql-background")?"background":"color";return V.querySelector("option")==null&&x(V,L,G==="background"?"#ffffff":"#000000"),new l.default(V,q[G])}else return V.querySelector("option")==null&&(V.classList.contains("ql-font")?x(V,j):V.classList.contains("ql-header")?x(V,F):V.classList.contains("ql-size")&&x(V,U)),new T.default(V)});var K=function(){D.pickers.forEach(function(G){G.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,K)}}]),M}(u.default);Y.DEFAULTS=(0,y.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,H=this.container.querySelector("input.ql-image[type=file]");H==null&&(H=document.createElement("input"),H.setAttribute("type","file"),H.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),H.classList.add("ql-image"),H.addEventListener("change",function(){if(H.files!=null&&H.files[0]!=null){var C=new FileReader;C.onload=function(q){var D=M.quill.getSelection(!0);M.quill.updateContents(new i.default().retain(D.index).delete(D.length).insert({image:q.target.result}),t.default.sources.USER),M.quill.setSelection(D.index+1,t.default.sources.SILENT),H.value=""},C.readAsDataURL(H.files[0])}}),this.container.appendChild(H)),H.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var B=function(R){O(M,R);function M(H,C){E(this,M);var q=p(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,H,C));return q.textbox=q.root.querySelector('input[type="text"]'),q.listen(),q}return b(M,[{key:"listen",value:function(){var C=this;this.textbox.addEventListener("keydown",function(q){c.default.match(q,"enter")?(C.save(),q.preventDefault()):c.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,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",C,t.default.sources.USER)),this.quill.root.scrollTop=q;break}case"video":C=I(C);case"formula":{if(!C)break;var D=this.quill.getSelection(!0);if(D!=null){var K=D.index+D.length;this.quill.insertEmbed(K,this.root.getAttribute("data-mode"),C,t.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(K+1," ",t.default.sources.USER),this.quill.setSelection(K+2,t.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),M}(A.default);function I(R){var M=R.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||R.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=R.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":R}function x(R,M){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(C){var q=document.createElement("option");C===H?q.setAttribute("selected","selected"):q.setAttribute("value",C),R.appendChild(q)})}f.BaseTooltip=B,f.default=Y},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function g(){this.head=this.tail=null,this.length=0}return g.prototype.append=function(){for(var _=[],y=0;y<arguments.length;y++)_[y]=arguments[y];this.insertBefore(_[0],null),_.length>1&&this.append.apply(this,_.slice(1))},g.prototype.contains=function(_){for(var y,m=this.iterator();y=m();)if(y===_)return!0;return!1},g.prototype.insertBefore=function(_,y){!_||(_.next=y,y!=null?(_.prev=y.prev,y.prev!=null&&(y.prev.next=_),y.prev=_,y===this.head&&(this.head=_)):this.tail!=null?(this.tail.next=_,_.prev=this.tail,this.tail=_):(_.prev=null,this.head=this.tail=_),this.length+=1)},g.prototype.offset=function(_){for(var y=0,m=this.head;m!=null;){if(m===_)return y;y+=m.length(),m=m.next}return-1},g.prototype.remove=function(_){!this.contains(_)||(_.prev!=null&&(_.prev.next=_.next),_.next!=null&&(_.next.prev=_.prev),_===this.head&&(this.head=_.next),_===this.tail&&(this.tail=_.prev),this.length-=1)},g.prototype.iterator=function(_){return _===void 0&&(_=this.head),function(){var y=_;return _!=null&&(_=_.next),y}},g.prototype.find=function(_,y){y===void 0&&(y=!1);for(var m,i=this.iterator();m=i();){var a=m.length();if(_<a||y&&_===a&&(m.next==null||m.next.length()!==0))return[m,_];_-=a}return[null,0]},g.prototype.forEach=function(_){for(var y,m=this.iterator();y=m();)_(y)},g.prototype.forEachAt=function(_,y,m){if(!(y<=0))for(var i=this.find(_),a=i[0],t=i[1],e,c=_-t,s=this.iterator(a);(e=s())&&c<_+y;){var u=e.length();_>c?m(e,_-c,Math.min(y,c+u-_)):m(e,0,Math.min(u,_+y-c)),c+=u}},g.prototype.map=function(_){return this.reduce(function(y,m){return y.push(_(m)),y},[])},g.prototype.reduce=function(_,y){for(var m,i=this.iterator();m=i();)y=_(y,m);return y},g}();f.default=b},function(d,f,r){var b=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var c in e)e.hasOwnProperty(c)&&(t[c]=e[c])};return function(t,e){a(t,e);function c(){this.constructor=t}t.prototype=e===null?Object.create(e):(c.prototype=e.prototype,new c)}}();Object.defineProperty(f,"__esModule",{value:!0});var g=r(17),_=r(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},m=100,i=function(a){b(t,a);function t(e){var c=a.call(this,e)||this;return c.scroll=c,c.observer=new MutationObserver(function(s){c.update(s)}),c.observer.observe(c.domNode,y),c.attach(),c}return t.prototype.detach=function(){a.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,c){this.update(),e===0&&c===this.length()?this.children.forEach(function(s){s.remove()}):a.prototype.deleteAt.call(this,e,c)},t.prototype.formatAt=function(e,c,s,u){this.update(),a.prototype.formatAt.call(this,e,c,s,u)},t.prototype.insertAt=function(e,c,s){this.update(),a.prototype.insertAt.call(this,e,c,s)},t.prototype.optimize=function(e,c){var s=this;e===void 0&&(e=[]),c===void 0&&(c={}),a.prototype.optimize.call(this,c);for(var u=[].slice.call(this.observer.takeRecords());u.length>0;)e.push(u.pop());for(var o=function(v,T){T===void 0&&(T=!0),!(v==null||v===s)&&v.domNode.parentNode!=null&&(v.domNode[_.DATA_KEY].mutations==null&&(v.domNode[_.DATA_KEY].mutations=[]),T&&o(v.parent))},l=function(v){v.domNode[_.DATA_KEY]==null||v.domNode[_.DATA_KEY].mutations==null||(v instanceof g.default&&v.children.forEach(l),v.optimize(c))},h=e,n=0;h.length>0;n+=1){if(n>=m)throw new Error("[Parchment] Maximum optimize iterations reached");for(h.forEach(function(v){var T=_.find(v.target,!0);T!=null&&(T.domNode===v.target&&(v.type==="childList"?(o(_.find(v.previousSibling,!1)),[].forEach.call(v.addedNodes,function(w){var A=_.find(w,!1);o(A,!1),A instanceof g.default&&A.children.forEach(function(P){o(P,!1)})})):v.type==="attributes"&&o(T.prev)),o(T))}),this.children.forEach(l),h=[].slice.call(this.observer.takeRecords()),u=h.slice();u.length>0;)e.push(u.pop())}},t.prototype.update=function(e,c){var s=this;c===void 0&&(c={}),e=e||this.observer.takeRecords(),e.map(function(u){var o=_.find(u.target,!0);return o==null?null:o.domNode[_.DATA_KEY].mutations==null?(o.domNode[_.DATA_KEY].mutations=[u],o):(o.domNode[_.DATA_KEY].mutations.push(u),null)}).forEach(function(u){u==null||u===s||u.domNode[_.DATA_KEY]==null||u.update(u.domNode[_.DATA_KEY].mutations||[],c)}),this.domNode[_.DATA_KEY].mutations!=null&&a.prototype.update.call(this,this.domNode[_.DATA_KEY].mutations,c),this.optimize(e,c)},t.blotName="scroll",t.defaultChild="block",t.scope=_.Scope.BLOCK_BLOT,t.tagName="DIV",t}(g.default);f.default=i},function(d,f,r){var b=this&&this.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var e in t)t.hasOwnProperty(e)&&(a[e]=t[e])};return function(a,t){i(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(f,"__esModule",{value:!0});var g=r(18),_=r(1);function y(i,a){if(Object.keys(i).length!==Object.keys(a).length)return!1;for(var t in i)if(i[t]!==a[t])return!1;return!0}var m=function(i){b(a,i);function a(){return i!==null&&i.apply(this,arguments)||this}return a.formats=function(t){if(t.tagName!==a.tagName)return i.formats.call(this,t)},a.prototype.format=function(t,e){var c=this;t===this.statics.blotName&&!e?(this.children.forEach(function(s){s instanceof g.default||(s=s.wrap(a.blotName,!0)),c.attributes.copy(s)}),this.unwrap()):i.prototype.format.call(this,t,e)},a.prototype.formatAt=function(t,e,c,s){if(this.formats()[c]!=null||_.query(c,_.Scope.ATTRIBUTE)){var u=this.isolate(t,e);u.format(c,s)}else i.prototype.formatAt.call(this,t,e,c,s)},a.prototype.optimize=function(t){i.prototype.optimize.call(this,t);var e=this.formats();if(Object.keys(e).length===0)return this.unwrap();var c=this.next;c instanceof a&&c.prev===this&&y(e,c.formats())&&(c.moveChildren(this),c.remove())},a.blotName="inline",a.scope=_.Scope.INLINE_BLOT,a.tagName="SPAN",a}(g.default);f.default=m},function(d,f,r){var b=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var t in a)a.hasOwnProperty(t)&&(i[t]=a[t])};return function(i,a){m(i,a);function t(){this.constructor=i}i.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}}();Object.defineProperty(f,"__esModule",{value:!0});var g=r(18),_=r(1),y=function(m){b(i,m);function i(){return m!==null&&m.apply(this,arguments)||this}return i.formats=function(a){var t=_.query(i.blotName).tagName;if(a.tagName!==t)return m.formats.call(this,a)},i.prototype.format=function(a,t){_.query(a,_.Scope.BLOCK)!=null&&(a===this.statics.blotName&&!t?this.replaceWith(i.blotName):m.prototype.format.call(this,a,t))},i.prototype.formatAt=function(a,t,e,c){_.query(e,_.Scope.BLOCK)!=null?this.format(e,c):m.prototype.formatAt.call(this,a,t,e,c)},i.prototype.insertAt=function(a,t,e){if(e==null||_.query(t,_.Scope.INLINE)!=null)m.prototype.insertAt.call(this,a,t,e);else{var c=this.split(a),s=_.create(t,e);c.parent.insertBefore(s,c)}},i.prototype.update=function(a,t){navigator.userAgent.match(/Trident/)?this.build():m.prototype.update.call(this,a,t)},i.blotName="block",i.scope=_.Scope.BLOCK_BLOT,i.tagName="P",i}(g.default);f.default=y},function(d,f,r){var b=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,i){m.__proto__=i}||function(m,i){for(var a in i)i.hasOwnProperty(a)&&(m[a]=i[a])};return function(m,i){y(m,i);function a(){this.constructor=m}m.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();Object.defineProperty(f,"__esModule",{value:!0});var g=r(19),_=function(y){b(m,y);function m(){return y!==null&&y.apply(this,arguments)||this}return m.formats=function(i){},m.prototype.format=function(i,a){y.prototype.formatAt.call(this,0,this.length(),i,a)},m.prototype.formatAt=function(i,a,t,e){i===0&&a===this.length()?this.format(t,e):y.prototype.formatAt.call(this,i,a,t,e)},m.prototype.formats=function(){return this.statics.formats(this.domNode)},m}(g.default);f.default=_},function(d,f,r){var b=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var t in a)a.hasOwnProperty(t)&&(i[t]=a[t])};return function(i,a){m(i,a);function t(){this.constructor=i}i.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}}();Object.defineProperty(f,"__esModule",{value:!0});var g=r(19),_=r(1),y=function(m){b(i,m);function i(a){var t=m.call(this,a)||this;return t.text=t.statics.value(t.domNode),t}return i.create=function(a){return document.createTextNode(a)},i.value=function(a){var t=a.data;return t.normalize&&(t=t.normalize()),t},i.prototype.deleteAt=function(a,t){this.domNode.data=this.text=this.text.slice(0,a)+this.text.slice(a+t)},i.prototype.index=function(a,t){return this.domNode===a?t:-1},i.prototype.insertAt=function(a,t,e){e==null?(this.text=this.text.slice(0,a)+t+this.text.slice(a),this.domNode.data=this.text):m.prototype.insertAt.call(this,a,t,e)},i.prototype.length=function(){return this.text.length},i.prototype.optimize=function(a){m.prototype.optimize.call(this,a),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof i&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},i.prototype.position=function(a,t){return[this.domNode,a]},i.prototype.split=function(a,t){if(t===void 0&&(t=!1),!t){if(a===0)return this;if(a===this.length())return this.next}var e=_.create(this.domNode.splitText(a));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},i.prototype.update=function(a,t){var e=this;a.some(function(c){return c.type==="characterData"&&c.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},i.prototype.value=function(){return this.text},i.blotName="text",i.scope=_.Scope.INLINE_BLOT,i}(g.default);f.default=y},function(d,f,r){var b=document.createElement("div");if(b.classList.toggle("test-class",!1),b.classList.contains("test-class")){var g=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(_,y){return arguments.length>1&&!this.contains(_)==!y?y:g.call(this,_)}}String.prototype.startsWith||(String.prototype.startsWith=function(_,y){return y=y||0,this.substr(y,_.length)===_}),String.prototype.endsWith||(String.prototype.endsWith=function(_,y){var m=this.toString();(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y>m.length)&&(y=m.length),y-=_.length;var i=m.indexOf(_,y);return i!==-1&&i===y}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(y){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof y!="function")throw new TypeError("predicate must be a function");for(var m=Object(this),i=m.length>>>0,a=arguments[1],t,e=0;e<i;e++)if(t=m[e],y.call(a,t,e,m))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(d,f){var r=-1,b=1,g=0;function _(n,v,T){if(n==v)return n?[[g,n]]:[];(T<0||n.length<T)&&(T=null);var w=a(n,v),A=n.substring(0,w);n=n.substring(w),v=v.substring(w),w=t(n,v);var P=n.substring(n.length-w);n=n.substring(0,n.length-w),v=v.substring(0,v.length-w);var E=y(n,v);return A&&E.unshift([g,A]),P&&E.push([g,P]),c(E),T!=null&&(E=o(E,T)),E=l(E),E}function y(n,v){var T;if(!n)return[[b,v]];if(!v)return[[r,n]];var w=n.length>v.length?n:v,A=n.length>v.length?v:n,P=w.indexOf(A);if(P!=-1)return T=[[b,w.substring(0,P)],[g,A],[b,w.substring(P+A.length)]],n.length>v.length&&(T[0][0]=T[2][0]=r),T;if(A.length==1)return[[r,n],[b,v]];var E=e(n,v);if(E){var p=E[0],O=E[1],N=E[2],L=E[3],j=E[4],F=_(p,N),U=_(O,L);return F.concat([[g,j]],U)}return m(n,v)}function m(n,v){for(var T=n.length,w=v.length,A=Math.ceil((T+w)/2),P=A,E=2*A,p=new Array(E),O=new Array(E),N=0;N<E;N++)p[N]=-1,O[N]=-1;p[P+1]=0,O[P+1]=0;for(var L=T-w,j=L%2!=0,F=0,U=0,Y=0,B=0,I=0;I<A;I++){for(var x=-I+F;x<=I-U;x+=2){var R=P+x,M;x==-I||x!=I&&p[R-1]<p[R+1]?M=p[R+1]:M=p[R-1]+1;for(var H=M-x;M<T&&H<w&&n.charAt(M)==v.charAt(H);)M++,H++;if(p[R]=M,M>T)U+=2;else if(H>w)F+=2;else if(j){var C=P+L-x;if(C>=0&&C<E&&O[C]!=-1){var q=T-O[C];if(M>=q)return i(n,v,M,H)}}}for(var D=-I+Y;D<=I-B;D+=2){var C=P+D,q;D==-I||D!=I&&O[C-1]<O[C+1]?q=O[C+1]:q=O[C-1]+1;for(var K=q-D;q<T&&K<w&&n.charAt(T-q-1)==v.charAt(w-K-1);)q++,K++;if(O[C]=q,q>T)B+=2;else if(K>w)Y+=2;else if(!j){var R=P+L-D;if(R>=0&&R<E&&p[R]!=-1){var M=p[R],H=P+M-R;if(q=T-q,M>=q)return i(n,v,M,H)}}}}return[[r,n],[b,v]]}function i(n,v,T,w){var A=n.substring(0,T),P=v.substring(0,w),E=n.substring(T),p=v.substring(w),O=_(A,P),N=_(E,p);return O.concat(N)}function a(n,v){if(!n||!v||n.charAt(0)!=v.charAt(0))return 0;for(var T=0,w=Math.min(n.length,v.length),A=w,P=0;T<A;)n.substring(P,A)==v.substring(P,A)?(T=A,P=T):w=A,A=Math.floor((w-T)/2+T);return A}function t(n,v){if(!n||!v||n.charAt(n.length-1)!=v.charAt(v.length-1))return 0;for(var T=0,w=Math.min(n.length,v.length),A=w,P=0;T<A;)n.substring(n.length-A,n.length-P)==v.substring(v.length-A,v.length-P)?(T=A,P=T):w=A,A=Math.floor((w-T)/2+T);return A}function e(n,v){var T=n.length>v.length?n:v,w=n.length>v.length?v:n;if(T.length<4||w.length*2<T.length)return null;function A(U,Y,B){for(var I=U.substring(B,B+Math.floor(U.length/4)),x=-1,R="",M,H,C,q;(x=Y.indexOf(I,x+1))!=-1;){var D=a(U.substring(B),Y.substring(x)),K=t(U.substring(0,B),Y.substring(0,x));R.length<K+D&&(R=Y.substring(x-K,x)+Y.substring(x,x+D),M=U.substring(0,B-K),H=U.substring(B+D),C=Y.substring(0,x-K),q=Y.substring(x+D))}return R.length*2>=U.length?[M,H,C,q,R]:null}var P=A(T,w,Math.ceil(T.length/4)),E=A(T,w,Math.ceil(T.length/2)),p;if(!P&&!E)return null;E?P?p=P[4].length>E[4].length?P:E:p=E:p=P;var O,N,L,j;n.length>v.length?(O=p[0],N=p[1],L=p[2],j=p[3]):(L=p[0],j=p[1],O=p[2],N=p[3]);var F=p[4];return[O,N,L,j,F]}function c(n){n.push([g,""]);for(var v=0,T=0,w=0,A="",P="",E;v<n.length;)switch(n[v][0]){case b:w++,P+=n[v][1],v++;break;case r:T++,A+=n[v][1],v++;break;case g:T+w>1?(T!==0&&w!==0&&(E=a(P,A),E!==0&&(v-T-w>0&&n[v-T-w-1][0]==g?n[v-T-w-1][1]+=P.substring(0,E):(n.splice(0,0,[g,P.substring(0,E)]),v++),P=P.substring(E),A=A.substring(E)),E=t(P,A),E!==0&&(n[v][1]=P.substring(P.length-E)+n[v][1],P=P.substring(0,P.length-E),A=A.substring(0,A.length-E))),T===0?n.splice(v-w,T+w,[b,P]):w===0?n.splice(v-T,T+w,[r,A]):n.splice(v-T-w,T+w,[r,A],[b,P]),v=v-T-w+(T?1:0)+(w?1:0)+1):v!==0&&n[v-1][0]==g?(n[v-1][1]+=n[v][1],n.splice(v,1)):v++,w=0,T=0,A="",P="";break}n[n.length-1][1]===""&&n.pop();var p=!1;for(v=1;v<n.length-1;)n[v-1][0]==g&&n[v+1][0]==g&&(n[v][1].substring(n[v][1].length-n[v-1][1].length)==n[v-1][1]?(n[v][1]=n[v-1][1]+n[v][1].substring(0,n[v][1].length-n[v-1][1].length),n[v+1][1]=n[v-1][1]+n[v+1][1],n.splice(v-1,1),p=!0):n[v][1].substring(0,n[v+1][1].length)==n[v+1][1]&&(n[v-1][1]+=n[v+1][1],n[v][1]=n[v][1].substring(n[v+1][1].length)+n[v+1][1],n.splice(v+1,1),p=!0)),v++;p&&c(n)}var s=_;s.INSERT=b,s.DELETE=r,s.EQUAL=g,d.exports=s;function u(n,v){if(v===0)return[g,n];for(var T=0,w=0;w<n.length;w++){var A=n[w];if(A[0]===r||A[0]===g){var P=T+A[1].length;if(v===P)return[w+1,n];if(v<P){n=n.slice();var E=v-T,p=[A[0],A[1].slice(0,E)],O=[A[0],A[1].slice(E)];return n.splice(w,1,p,O),[w+1,n]}else T=P}}throw new Error("cursor_pos is out of bounds!")}function o(n,v){var T=u(n,v),w=T[1],A=T[0],P=w[A],E=w[A+1];if(P==null)return n;if(P[0]!==g)return n;if(E!=null&&P[1]+E[1]===E[1]+P[1])return w.splice(A,2,E,P),h(w,A,2);if(E!=null&&E[1].indexOf(P[1])===0){w.splice(A,2,[E[0],P[1]],[0,P[1]]);var p=E[1].slice(P[1].length);return p.length>0&&w.splice(A+2,0,[E[0],p]),h(w,A,3)}else return n}function l(n){for(var v=!1,T=function(E){return E.charCodeAt(0)>=56320&&E.charCodeAt(0)<=57343},w=function(E){return E.charCodeAt(E.length-1)>=55296&&E.charCodeAt(E.length-1)<=56319},A=2;A<n.length;A+=1)n[A-2][0]===g&&w(n[A-2][1])&&n[A-1][0]===r&&T(n[A-1][1])&&n[A][0]===b&&T(n[A][1])&&(v=!0,n[A-1][1]=n[A-2][1].slice(-1)+n[A-1][1],n[A][1]=n[A-2][1].slice(-1)+n[A][1],n[A-2][1]=n[A-2][1].slice(0,-1));if(!v)return n;for(var P=[],A=0;A<n.length;A+=1)n[A][1].length>0&&P.push(n[A]);return P}function h(n,v,T){for(var w=v+T-1;w>=0&&w>=v-1;w--)if(w+1<n.length){var A=n[w],P=n[w+1];A[0]===P[1]&&n.splice(w,2,[A[0],A[1]+P[1]])}return n}},function(d,f){f=d.exports=typeof Object.keys=="function"?Object.keys:r,f.shim=r;function r(b){var g=[];for(var _ in b)g.push(_);return g}},function(d,f){var r=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";f=d.exports=r?b:g,f.supported=b;function b(_){return Object.prototype.toString.call(_)=="[object Arguments]"}f.unsupported=g;function g(_){return _&&typeof _=="object"&&typeof _.length=="number"&&Object.prototype.hasOwnProperty.call(_,"callee")&&!Object.prototype.propertyIsEnumerable.call(_,"callee")||!1}},function(d,f){var r=Object.prototype.hasOwnProperty,b="~";function g(){}Object.create&&(g.prototype=Object.create(null),new g().__proto__||(b=!1));function _(m,i,a){this.fn=m,this.context=i,this.once=a||!1}function y(){this._events=new g,this._eventsCount=0}y.prototype.eventNames=function(){var i=[],a,t;if(this._eventsCount===0)return i;for(t in a=this._events)r.call(a,t)&&i.push(b?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(a)):i},y.prototype.listeners=function(i,a){var t=b?b+i:i,e=this._events[t];if(a)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var c=0,s=e.length,u=new Array(s);c<s;c++)u[c]=e[c].fn;return u},y.prototype.emit=function(i,a,t,e,c,s){var u=b?b+i:i;if(!this._events[u])return!1;var o=this._events[u],l=arguments.length,h,n;if(o.fn){switch(o.once&&this.removeListener(i,o.fn,void 0,!0),l){case 1:return o.fn.call(o.context),!0;case 2:return o.fn.call(o.context,a),!0;case 3:return o.fn.call(o.context,a,t),!0;case 4:return o.fn.call(o.context,a,t,e),!0;case 5:return o.fn.call(o.context,a,t,e,c),!0;case 6:return o.fn.call(o.context,a,t,e,c,s),!0}for(n=1,h=new Array(l-1);n<l;n++)h[n-1]=arguments[n];o.fn.apply(o.context,h)}else{var v=o.length,T;for(n=0;n<v;n++)switch(o[n].once&&this.removeListener(i,o[n].fn,void 0,!0),l){case 1:o[n].fn.call(o[n].context);break;case 2:o[n].fn.call(o[n].context,a);break;case 3:o[n].fn.call(o[n].context,a,t);break;case 4:o[n].fn.call(o[n].context,a,t,e);break;default:if(!h)for(T=1,h=new Array(l-1);T<l;T++)h[T-1]=arguments[T];o[n].fn.apply(o[n].context,h)}}return!0},y.prototype.on=function(i,a,t){var e=new _(a,t||this),c=b?b+i:i;return this._events[c]?this._events[c].fn?this._events[c]=[this._events[c],e]:this._events[c].push(e):(this._events[c]=e,this._eventsCount++),this},y.prototype.once=function(i,a,t){var e=new _(a,t||this,!0),c=b?b+i:i;return this._events[c]?this._events[c].fn?this._events[c]=[this._events[c],e]:this._events[c].push(e):(this._events[c]=e,this._eventsCount++),this},y.prototype.removeListener=function(i,a,t,e){var c=b?b+i:i;if(!this._events[c])return this;if(!a)return--this._eventsCount===0?this._events=new g:delete this._events[c],this;var s=this._events[c];if(s.fn)s.fn===a&&(!e||s.once)&&(!t||s.context===t)&&(--this._eventsCount===0?this._events=new g:delete this._events[c]);else{for(var u=0,o=[],l=s.length;u<l;u++)(s[u].fn!==a||e&&!s[u].once||t&&s[u].context!==t)&&o.push(s[u]);o.length?this._events[c]=o.length===1?o[0]:o:--this._eventsCount===0?this._events=new g:delete this._events[c]}return this},y.prototype.removeAllListeners=function(i){var a;return i?(a=b?b+i:i,this._events[a]&&(--this._eventsCount===0?this._events=new g:delete this._events[a])):(this._events=new g,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prototype.setMaxListeners=function(){return this},y.prefixed=b,y.EventEmitter=y,typeof d<"u"&&(d.exports=y)},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.matchText=f.matchSpacing=f.matchNewline=f.matchBlot=f.matchAttributor=f.default=void 0;var b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},g=function(){function Z(W,X){var J=[],Q=!0,ot=!1,lt=void 0;try{for(var at=W[Symbol.iterator](),_t;!(Q=(_t=at.next()).done)&&(J.push(_t.value),!(X&&J.length===X));Q=!0);}catch(At){ot=!0,lt=At}finally{try{!Q&&at.return&&at.return()}finally{if(ot)throw lt}}return J}return function(W,X){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return Z(W,X);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function Z(W,X){for(var J=0;J<X.length;J++){var Q=X[J];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(W,Q.key,Q)}}return function(W,X,J){return X&&Z(W.prototype,X),J&&Z(W,J),W}}(),y=r(3),m=O(y),i=r(2),a=O(i),t=r(0),e=O(t),c=r(5),s=O(c),u=r(10),o=O(u),l=r(9),h=O(l),n=r(36),v=r(37),T=r(13),w=O(T),A=r(26),P=r(38),E=r(39),p=r(40);function O(Z){return Z&&Z.__esModule?Z:{default:Z}}function N(Z,W,X){return W in Z?Object.defineProperty(Z,W,{value:X,enumerable:!0,configurable:!0,writable:!0}):Z[W]=X,Z}function L(Z,W){if(!(Z instanceof W))throw new TypeError("Cannot call a class as a function")}function j(Z,W){if(!Z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:Z}function F(Z,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);Z.prototype=Object.create(W&&W.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(Z,W):Z.__proto__=W)}var U=(0,o.default)("quill:clipboard"),Y="__ql-matcher",B=[[Node.TEXT_NODE,vt],[Node.TEXT_NODE,st],["br",tt],[Node.ELEMENT_NODE,st],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,ut],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,yt],["li",it],["b",K.bind(K,"bold")],["i",K.bind(K,"italic")],["style",rt]],I=[n.AlignAttribute,P.DirectionAttribute].reduce(function(Z,W){return Z[W.keyName]=W,Z},{}),x=[n.AlignStyle,v.BackgroundStyle,A.ColorStyle,P.DirectionStyle,E.FontStyle,p.SizeStyle].reduce(function(Z,W){return Z[W.keyName]=W,Z},{}),R=function(Z){F(W,Z);function W(X,J){L(this,W);var Q=j(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,X,J));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=[],B.concat(Q.options.matchers).forEach(function(ot){var lt=g(ot,2),at=lt[0],_t=lt[1];!J.matchVisual&&_t===ut||Q.addMatcher(at,_t)}),Q}return _(W,[{key:"addMatcher",value:function(J,Q){this.matchers.push([J,Q])}},{key:"convert",value:function(J){if(typeof J=="string")return this.container.innerHTML=J.replace(/\>\r?\n +\</g,"><"),this.convert();var Q=this.quill.getFormat(this.quill.selection.savedRange.index);if(Q[w.default.blotName]){var ot=this.container.innerText;return this.container.innerHTML="",new a.default().insert(ot,N({},w.default.blotName,Q[w.default.blotName]))}var lt=this.prepareMatching(),at=g(lt,2),_t=at[0],At=at[1],ct=D(this.container,_t,At);return C(ct,`
33`)&&ct.ops[ct.ops.length-1].attributes==null&&(ct=ct.compose(new a.default().retain(ct.length()-1).delete(1))),U.log("convert",this.container.innerHTML,ct),this.container.innerHTML="",ct}},{key:"dangerouslyPasteHTML",value:function(J,Q){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s.default.sources.API;if(typeof J=="string")this.quill.setContents(this.convert(J),Q),this.quill.setSelection(0,s.default.sources.SILENT);else{var lt=this.convert(Q);this.quill.updateContents(new a.default().retain(J).concat(lt),ot),this.quill.setSelection(J+lt.length(),s.default.sources.SILENT)}}},{key:"onPaste",value:function(J){var Q=this;if(!(J.defaultPrevented||!this.quill.isEnabled())){var ot=this.quill.getSelection(),lt=new a.default().retain(ot.index),at=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(s.default.sources.SILENT),setTimeout(function(){lt=lt.concat(Q.convert()).delete(ot.length),Q.quill.updateContents(lt,s.default.sources.USER),Q.quill.setSelection(lt.length()-ot.length,s.default.sources.SILENT),Q.quill.scrollingContainer.scrollTop=at,Q.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var J=this,Q=[],ot=[];return this.matchers.forEach(function(lt){var at=g(lt,2),_t=at[0],At=at[1];switch(_t){case Node.TEXT_NODE:ot.push(At);break;case Node.ELEMENT_NODE:Q.push(At);break;default:[].forEach.call(J.container.querySelectorAll(_t),function(ct){ct[Y]=ct[Y]||[],ct[Y].push(At)});break}}),[Q,ot]}}]),W}(h.default);R.DEFAULTS={matchers:[],matchVisual:!0};function M(Z,W,X){return(typeof W>"u"?"undefined":b(W))==="object"?Object.keys(W).reduce(function(J,Q){return M(J,Q,W[Q])},Z):Z.reduce(function(J,Q){return Q.attributes&&Q.attributes[W]?J.push(Q):J.insert(Q.insert,(0,m.default)({},N({},W,X),Q.attributes))},new a.default)}function H(Z){if(Z.nodeType!==Node.ELEMENT_NODE)return{};var W="__ql-computed-style";return Z[W]||(Z[W]=window.getComputedStyle(Z))}function C(Z,W){for(var X="",J=Z.ops.length-1;J>=0&&X.length<W.length;--J){var Q=Z.ops[J];if(typeof Q.insert!="string")break;X=Q.insert+X}return X.slice(-1*W.length)===W}function q(Z){if(Z.childNodes.length===0)return!1;var W=H(Z);return["block","list-item"].indexOf(W.display)>-1}function D(Z,W,X){return Z.nodeType===Z.TEXT_NODE?X.reduce(function(J,Q){return Q(Z,J)},new a.default):Z.nodeType===Z.ELEMENT_NODE?[].reduce.call(Z.childNodes||[],function(J,Q){var ot=D(Q,W,X);return Q.nodeType===Z.ELEMENT_NODE&&(ot=W.reduce(function(lt,at){return at(Q,lt)},ot),ot=(Q[Y]||[]).reduce(function(lt,at){return at(Q,lt)},ot)),J.concat(ot)},new a.default):new a.default}function K(Z,W,X){return M(X,Z,!0)}function V(Z,W){var X=e.default.Attributor.Attribute.keys(Z),J=e.default.Attributor.Class.keys(Z),Q=e.default.Attributor.Style.keys(Z),ot={};return X.concat(J).concat(Q).forEach(function(lt){var at=e.default.query(lt,e.default.Scope.ATTRIBUTE);at!=null&&(ot[at.attrName]=at.value(Z),ot[at.attrName])||(at=I[lt],at!=null&&(at.attrName===lt||at.keyName===lt)&&(ot[at.attrName]=at.value(Z)||void 0),at=x[lt],at!=null&&(at.attrName===lt||at.keyName===lt)&&(at=x[lt],ot[at.attrName]=at.value(Z)||void 0))}),Object.keys(ot).length>0&&(W=M(W,ot)),W}function G(Z,W){var X=e.default.query(Z);if(X==null)return W;if(X.prototype instanceof e.default.Embed){var J={},Q=X.value(Z);Q!=null&&(J[X.blotName]=Q,W=new a.default().insert(J,X.formats(Z)))}else typeof X.formats=="function"&&(W=M(W,X.blotName,X.formats(Z)));return W}function tt(Z,W){return C(W,`
34`)||W.insert(`
35`),W}function rt(){return new a.default}function it(Z,W){var X=e.default.query(Z);if(X==null||X.blotName!=="list-item"||!C(W,`
36`))return W;for(var J=-1,Q=Z.parentNode;!Q.classList.contains("ql-clipboard");)(e.default.query(Q)||{}).blotName==="list"&&(J+=1),Q=Q.parentNode;return J<=0?W:W.compose(new a.default().retain(W.length()-1).retain(1,{indent:J}))}function st(Z,W){return C(W,`
37`)||(q(Z)||W.length()>0&&Z.nextSibling&&q(Z.nextSibling))&&W.insert(`
38`),W}function ut(Z,W){if(q(Z)&&Z.nextElementSibling!=null&&!C(W,`
39
40`)){var X=Z.offsetHeight+parseFloat(H(Z).marginTop)+parseFloat(H(Z).marginBottom);Z.nextElementSibling.offsetTop>Z.offsetTop+X*1.5&&W.insert(`
41`)}return W}function yt(Z,W){var X={},J=Z.style||{};return J.fontStyle&&H(Z).fontStyle==="italic"&&(X.italic=!0),J.fontWeight&&(H(Z).fontWeight.startsWith("bold")||parseInt(H(Z).fontWeight)>=700)&&(X.bold=!0),Object.keys(X).length>0&&(W=M(W,X)),parseFloat(J.textIndent||0)>0&&(W=new a.default().insert("	").concat(W)),W}function vt(Z,W){var X=Z.data;if(Z.parentNode.tagName==="O:P")return W.insert(X.trim());if(X.trim().length===0&&Z.parentNode.classList.contains("ql-clipboard"))return W;if(!H(Z.parentNode).whiteSpace.startsWith("pre")){var J=function(ot,lt){return lt=lt.replace(/[^\u00a0]/g,""),lt.length<1&&ot?" ":lt};X=X.replace(/\r\n/g," ").replace(/\n/g," "),X=X.replace(/\s\s+/g,J.bind(J,!0)),(Z.previousSibling==null&&q(Z.parentNode)||Z.previousSibling!=null&&q(Z.previousSibling))&&(X=X.replace(/^\s+/,J.bind(J,!1))),(Z.nextSibling==null&&q(Z.parentNode)||Z.nextSibling!=null&&q(Z.nextSibling))&&(X=X.replace(/\s+$/,J.bind(J,!1)))}return W.insert(X)}f.default=R,f.matchAttributor=V,f.matchBlot=G,f.matchNewline=st,f.matchSpacing=ut,f.matchText=vt},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function c(s,u){for(var o=0;o<u.length;o++){var l=u[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,u,o){return u&&c(s.prototype,u),o&&c(s,o),s}}(),g=function c(s,u,o){s===null&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,u);if(l===void 0){var h=Object.getPrototypeOf(s);return h===null?void 0:c(h,u,o)}else{if("value"in l)return l.value;var n=l.get;return n===void 0?void 0:n.call(o)}},_=r(6),y=m(_);function m(c){return c&&c.__esModule?c:{default:c}}function i(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function a(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function t(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var e=function(c){t(s,c);function s(){return i(this,s),a(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return b(s,[{key:"optimize",value:function(o){g(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,o),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return g(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),s}(y.default);e.blotName="bold",e.tagName=["STRONG","B"],f.default=e},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.addControls=f.default=void 0;var b=function(){function p(O,N){var L=[],j=!0,F=!1,U=void 0;try{for(var Y=O[Symbol.iterator](),B;!(j=(B=Y.next()).done)&&(L.push(B.value),!(N&&L.length===N));j=!0);}catch(I){F=!0,U=I}finally{try{!j&&Y.return&&Y.return()}finally{if(F)throw U}}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")}}(),g=function(){function p(O,N){for(var L=0;L<N.length;L++){var j=N[L];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(O,j.key,j)}}return function(O,N,L){return N&&p(O.prototype,N),L&&p(O,L),O}}(),_=r(2),y=o(_),m=r(0),i=o(m),a=r(5),t=o(a),e=r(10),c=o(e),s=r(9),u=o(s);function o(p){return p&&p.__esModule?p:{default:p}}function l(p,O,N){return O in p?Object.defineProperty(p,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):p[O]=N,p}function h(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 v(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 T=(0,c.default)("quill:toolbar"),w=function(p){v(O,p);function O(N,L){h(this,O);var j=n(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,L));if(Array.isArray(j.options.container)){var F=document.createElement("div");P(F,j.options.container),N.container.parentNode.insertBefore(F,N.container),j.container=F}else typeof j.options.container=="string"?j.container=document.querySelector(j.options.container):j.container=j.options.container;if(!(j.container instanceof HTMLElement)){var U;return U=T.error("Container required for toolbar",j.options),n(j,U)}return j.container.classList.add("ql-toolbar"),j.controls=[],j.handlers={},Object.keys(j.options.handlers).forEach(function(Y){j.addHandler(Y,j.options.handlers[Y])}),[].forEach.call(j.container.querySelectorAll("button, select"),function(Y){j.attach(Y)}),j.quill.on(t.default.events.EDITOR_CHANGE,function(Y,B){Y===t.default.events.SELECTION_CHANGE&&j.update(B)}),j.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var Y=j.quill.selection.getRange(),B=b(Y,1),I=B[0];j.update(I)}),j}return g(O,[{key:"addHandler",value:function(L,j){this.handlers[L]=j}},{key:"attach",value:function(L){var j=this,F=[].find.call(L.classList,function(Y){return Y.indexOf("ql-")===0});if(!!F){if(F=F.slice(3),L.tagName==="BUTTON"&&L.setAttribute("type","button"),this.handlers[F]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[F]==null){T.warn("ignoring attaching to disabled format",F,L);return}if(i.default.query(F)==null){T.warn("ignoring attaching to nonexistent format",F,L);return}}var U=L.tagName==="SELECT"?"change":"click";L.addEventListener(U,function(Y){var B=void 0;if(L.tagName==="SELECT"){if(L.selectedIndex<0)return;var I=L.options[L.selectedIndex];I.hasAttribute("selected")?B=!1:B=I.value||!1}else L.classList.contains("ql-active")?B=!1:B=L.value||!L.hasAttribute("value"),Y.preventDefault();j.quill.focus();var x=j.quill.selection.getRange(),R=b(x,1),M=R[0];if(j.handlers[F]!=null)j.handlers[F].call(j,B);else if(i.default.query(F).prototype instanceof i.default.Embed){if(B=prompt("Enter "+F),!B)return;j.quill.updateContents(new y.default().retain(M.index).delete(M.length).insert(l({},F,B)),t.default.sources.USER)}else j.quill.format(F,B,t.default.sources.USER);j.update(M)}),this.controls.push([F,L])}}},{key:"update",value:function(L){var j=L==null?{}:this.quill.getFormat(L);this.controls.forEach(function(F){var U=b(F,2),Y=U[0],B=U[1];if(B.tagName==="SELECT"){var I=void 0;if(L==null)I=null;else if(j[Y]==null)I=B.querySelector("option[selected]");else if(!Array.isArray(j[Y])){var x=j[Y];typeof x=="string"&&(x=x.replace(/\"/g,'\\"')),I=B.querySelector('option[value="'+x+'"]')}I==null?(B.value="",B.selectedIndex=-1):I.selected=!0}else if(L==null)B.classList.remove("ql-active");else if(B.hasAttribute("value")){var R=j[Y]===B.getAttribute("value")||j[Y]!=null&&j[Y].toString()===B.getAttribute("value")||j[Y]==null&&!B.getAttribute("value");B.classList.toggle("ql-active",R)}else B.classList.toggle("ql-active",j[Y]!=null)})}}]),O}(u.default);w.DEFAULTS={};function A(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(j){if(typeof j=="string")A(L,j);else{var F=Object.keys(j)[0],U=j[F];Array.isArray(U)?E(L,F,U):A(L,F,U)}}),p.appendChild(L)})}function E(p,O,N){var L=document.createElement("select");L.classList.add("ql-"+O),N.forEach(function(j){var F=document.createElement("option");j!==!1?F.setAttribute("value",j):F.setAttribute("selected","selected"),L.appendChild(F)}),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(j){i.default.query(j,i.default.Scope.INLINE)!=null&&O.quill.format(j,!1)})}else this.quill.removeFormat(N,t.default.sources.USER)},direction:function(O){var N=this.quill.getFormat().align;O==="rtl"&&N==null?this.quill.format("align","right",t.default.sources.USER):!O&&N==="right"&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",O,t.default.sources.USER)},indent:function(O){var N=this.quill.getSelection(),L=this.quill.getFormat(N),j=parseInt(L.indent||0);if(O==="+1"||O==="-1"){var F=O==="+1"?1:-1;L.direction==="rtl"&&(F*=-1),this.quill.format("indent",j+F,t.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,t.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,t.default.sources.USER):this.quill.format("list","unchecked",t.default.sources.USER):this.quill.format("list",O,t.default.sources.USER)}}},f.default=w,f.addControls=P},function(d,f){d.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(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function c(s,u){for(var o=0;o<u.length;o++){var l=u[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,u,o){return u&&c(s.prototype,u),o&&c(s,o),s}}(),g=function c(s,u,o){s===null&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,u);if(l===void 0){var h=Object.getPrototypeOf(s);return h===null?void 0:c(h,u,o)}else{if("value"in l)return l.value;var n=l.get;return n===void 0?void 0:n.call(o)}},_=r(28),y=m(_);function m(c){return c&&c.__esModule?c:{default:c}}function i(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function a(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function t(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var e=function(c){t(s,c);function s(u,o){i(this,s);var l=a(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,u));return l.label.innerHTML=o,l.container.classList.add("ql-color-picker"),[].slice.call(l.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(h){h.classList.add("ql-primary")}),l}return b(s,[{key:"buildItem",value:function(o){var l=g(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"buildItem",this).call(this,o);return l.style.backgroundColor=o.getAttribute("value")||"",l}},{key:"selectItem",value:function(o,l){g(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"selectItem",this).call(this,o,l);var h=this.label.querySelector(".ql-color-label"),n=o&&o.getAttribute("data-value")||"";h&&(h.tagName==="line"?h.style.stroke=n:h.style.fill=n)}}]),s}(y.default);f.default=e},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function c(s,u){for(var o=0;o<u.length;o++){var l=u[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,u,o){return u&&c(s.prototype,u),o&&c(s,o),s}}(),g=function c(s,u,o){s===null&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,u);if(l===void 0){var h=Object.getPrototypeOf(s);return h===null?void 0:c(h,u,o)}else{if("value"in l)return l.value;var n=l.get;return n===void 0?void 0:n.call(o)}},_=r(28),y=m(_);function m(c){return c&&c.__esModule?c:{default:c}}function i(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function a(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function t(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var e=function(c){t(s,c);function s(u,o){i(this,s);var l=a(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,u));return l.container.classList.add("ql-icon-picker"),[].forEach.call(l.container.querySelectorAll(".ql-picker-item"),function(h){h.innerHTML=o[h.getAttribute("data-value")||""]}),l.defaultItem=l.container.querySelector(".ql-selected"),l.selectItem(l.defaultItem),l}return b(s,[{key:"selectItem",value:function(o,l){g(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"selectItem",this).call(this,o,l),o=o||this.defaultItem,this.label.innerHTML=o.innerHTML}}]),s}(y.default);f.default=e},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function y(m,i){for(var a=0;a<i.length;a++){var t=i[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(m,t.key,t)}}return function(m,i,a){return i&&y(m.prototype,i),a&&y(m,a),m}}();function g(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}var _=function(){function y(m,i){var a=this;g(this,y),this.quill=m,this.boundsContainer=i||document.body,this.root=m.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 b(y,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(i){var a=i.left+i.width/2-this.root.offsetWidth/2,t=i.bottom+this.quill.root.scrollTop;this.root.style.left=a+"px",this.root.style.top=t+"px",this.root.classList.remove("ql-flip");var e=this.boundsContainer.getBoundingClientRect(),c=this.root.getBoundingClientRect(),s=0;if(c.right>e.right&&(s=e.right-c.right,this.root.style.left=a+s+"px"),c.left<e.left&&(s=e.left-c.left,this.root.style.left=a+s+"px"),c.bottom>e.bottom){var u=c.bottom-c.top,o=i.bottom-i.top+u;this.root.style.top=t-o+"px",this.root.classList.add("ql-flip")}return s}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),y}();f.default=_},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function E(p,O){var N=[],L=!0,j=!1,F=void 0;try{for(var U=p[Symbol.iterator](),Y;!(L=(Y=U.next()).done)&&(N.push(Y.value),!(O&&N.length===O));L=!0);}catch(B){j=!0,F=B}finally{try{!L&&U.return&&U.return()}finally{if(j)throw F}}return N}return function(p,O){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return E(p,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function E(p,O,N){p===null&&(p=Function.prototype);var L=Object.getOwnPropertyDescriptor(p,O);if(L===void 0){var j=Object.getPrototypeOf(p);return j===null?void 0:E(j,O,N)}else{if("value"in L)return L.value;var F=L.get;return F===void 0?void 0:F.call(N)}},_=function(){function E(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&&E(p.prototype,O),N&&E(p,N),p}}(),y=r(3),m=h(y),i=r(8),a=h(i),t=r(43),e=h(t),c=r(27),s=h(c),u=r(15),o=r(41),l=h(o);function h(E){return E&&E.__esModule?E:{default:E}}function n(E,p){if(!(E instanceof p))throw new TypeError("Cannot call a class as a function")}function v(E,p){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:E}function T(E,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);E.prototype=Object.create(p&&p.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(E,p):E.__proto__=p)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(E){T(p,E);function p(O,N){n(this,p),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=w);var L=v(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,O,N));return L.quill.container.classList.add("ql-snow"),L}return _(p,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),l.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,j){N.handlers.link.call(N,!j.format.link)})}}]),p}(e.default);A.DEFAULTS=(0,m.default)(!0,{},e.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(E){T(p,E);function p(O,N){n(this,p);var L=v(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,O,N));return L.preview=L.root.querySelector("a.ql-preview"),L}return _(p,[{key:"listen",value:function(){var N=this;g(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 j=N.linkRange;N.restoreFocus(),N.quill.formatText(j,"link",!1,a.default.sources.USER),delete N.linkRange}L.preventDefault(),N.hide()}),this.quill.on(a.default.events.SELECTION_CHANGE,function(L,j,F){if(L!=null){if(L.length===0&&F===a.default.sources.USER){var U=N.quill.scroll.descendant(s.default,L.index),Y=b(U,2),B=Y[0],I=Y[1];if(B!=null){N.linkRange=new u.Range(L.index-I,B.length());var x=s.default.formats(B.domNode);N.preview.textContent=x,N.preview.setAttribute("href",x),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){g(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),p}(t.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(""),f.default=A},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(29),g=Q(b),_=r(36),y=r(38),m=r(64),i=r(65),a=Q(i),t=r(66),e=Q(t),c=r(67),s=Q(c),u=r(37),o=r(26),l=r(39),h=r(40),n=r(56),v=Q(n),T=r(68),w=Q(T),A=r(27),P=Q(A),E=r(69),p=Q(E),O=r(70),N=Q(O),L=r(71),j=Q(L),F=r(72),U=Q(F),Y=r(73),B=Q(Y),I=r(13),x=Q(I),R=r(74),M=Q(R),H=r(75),C=Q(H),q=r(57),D=Q(q),K=r(41),V=Q(K),G=r(28),tt=Q(G),rt=r(59),it=Q(rt),st=r(60),ut=Q(st),yt=r(61),vt=Q(yt),Z=r(108),W=Q(Z),X=r(62),J=Q(X);function Q(ot){return ot&&ot.__esModule?ot:{default:ot}}g.default.register({"attributors/attribute/direction":y.DirectionAttribute,"attributors/class/align":_.AlignClass,"attributors/class/background":u.BackgroundClass,"attributors/class/color":o.ColorClass,"attributors/class/direction":y.DirectionClass,"attributors/class/font":l.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":_.AlignStyle,"attributors/style/background":u.BackgroundStyle,"attributors/style/color":o.ColorStyle,"attributors/style/direction":y.DirectionStyle,"attributors/style/font":l.FontStyle,"attributors/style/size":h.SizeStyle},!0),g.default.register({"formats/align":_.AlignClass,"formats/direction":y.DirectionClass,"formats/indent":m.IndentClass,"formats/background":u.BackgroundStyle,"formats/color":o.ColorStyle,"formats/font":l.FontClass,"formats/size":h.SizeClass,"formats/blockquote":a.default,"formats/code-block":x.default,"formats/header":e.default,"formats/list":s.default,"formats/bold":v.default,"formats/code":I.Code,"formats/italic":w.default,"formats/link":P.default,"formats/script":p.default,"formats/strike":N.default,"formats/underline":j.default,"formats/image":U.default,"formats/video":B.default,"formats/list/item":c.ListItem,"modules/formula":M.default,"modules/syntax":C.default,"modules/toolbar":D.default,"themes/bubble":W.default,"themes/snow":J.default,"ui/icons":V.default,"ui/picker":tt.default,"ui/icon-picker":ut.default,"ui/color-picker":it.default,"ui/tooltip":vt.default},!0),f.default=g.default},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.IndentClass=void 0;var b=function(){function s(u,o){for(var l=0;l<o.length;l++){var h=o[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(u,h.key,h)}}return function(u,o,l){return o&&s(u.prototype,o),l&&s(u,l),u}}(),g=function s(u,o,l){u===null&&(u=Function.prototype);var h=Object.getOwnPropertyDescriptor(u,o);if(h===void 0){var n=Object.getPrototypeOf(u);return n===null?void 0:s(n,o,l)}else{if("value"in h)return h.value;var v=h.get;return v===void 0?void 0:v.call(l)}},_=r(0),y=m(_);function m(s){return s&&s.__esModule?s:{default:s}}function i(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}function a(s,u){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:s}function t(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);s.prototype=Object.create(u&&u.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(s,u):s.__proto__=u)}var e=function(s){t(u,s);function u(){return i(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return b(u,[{key:"add",value:function(l,h){if(h==="+1"||h==="-1"){var n=this.value(l)||0;h=h==="+1"?n+1:n-1}return h===0?(this.remove(l),!0):g(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"add",this).call(this,l,h)}},{key:"canAdd",value:function(l,h){return g(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,l,h)||g(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,l,parseInt(h))}},{key:"value",value:function(l){return parseInt(g(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"value",this).call(this,l))||void 0}}]),u}(y.default.Attributor.Class),c=new e("indent","ql-indent",{scope:y.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});f.IndentClass=c},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(4),g=_(b);function _(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function i(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(t){i(e,t);function e(){return y(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(g.default);a.blotName="blockquote",a.tagName="blockquote",f.default=a},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function e(c,s){for(var u=0;u<s.length;u++){var o=s[u];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(c,o.key,o)}}return function(c,s,u){return s&&e(c.prototype,s),u&&e(c,u),c}}(),g=r(4),_=y(g);function y(e){return e&&e.__esModule?e:{default:e}}function m(e,c){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}function i(e,c){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:e}function a(e,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);e.prototype=Object.create(c&&c.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(e,c):e.__proto__=c)}var t=function(e){a(c,e);function c(){return m(this,c),i(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return b(c,null,[{key:"formats",value:function(u){return this.tagName.indexOf(u.tagName)+1}}]),c}(_.default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],f.default=t},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.ListItem=void 0;var b=function(){function n(v,T){for(var w=0;w<T.length;w++){var A=T[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(v,A.key,A)}}return function(v,T,w){return T&&n(v.prototype,T),w&&n(v,w),v}}(),g=function n(v,T,w){v===null&&(v=Function.prototype);var A=Object.getOwnPropertyDescriptor(v,T);if(A===void 0){var P=Object.getPrototypeOf(v);return P===null?void 0:n(P,T,w)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(w)}},_=r(0),y=e(_),m=r(4),i=e(m),a=r(25),t=e(a);function e(n){return n&&n.__esModule?n:{default:n}}function c(n,v,T){return v in n?Object.defineProperty(n,v,{value:T,enumerable:!0,configurable:!0,writable:!0}):n[v]=T,n}function s(n,v){if(!(n instanceof v))throw new TypeError("Cannot call a class as a function")}function u(n,v){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:n}function o(n,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);n.prototype=Object.create(v&&v.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(n,v):n.__proto__=v)}var l=function(n){o(v,n);function v(){return s(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return b(v,[{key:"format",value:function(w,A){w===h.blotName&&!A?this.replaceWith(y.default.create(this.statics.scope)):g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,w,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(w,A){return this.parent.isolate(this.offset(this.parent),this.length()),w===this.parent.statics.blotName?(this.parent.replaceWith(w,A),this):(this.parent.unwrap(),g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"replaceWith",this).call(this,w,A))}}],[{key:"formats",value:function(w){return w.tagName===this.tagName?void 0:g(v.__proto__||Object.getPrototypeOf(v),"formats",this).call(this,w)}}]),v}(i.default);l.blotName="list-item",l.tagName="LI";var h=function(n){o(v,n),b(v,null,[{key:"create",value:function(w){var A=w==="ordered"?"OL":"UL",P=g(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,A);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 v(T){s(this,v);var w=u(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,T)),A=function(E){if(E.target.parentNode===T){var p=w.statics.formats(T),O=y.default.find(E.target);p==="checked"?O.format("list","unchecked"):p==="unchecked"&&O.format("list","checked")}};return T.addEventListener("touchstart",A),T.addEventListener("mousedown",A),w}return b(v,[{key:"format",value:function(w,A){this.children.length>0&&this.children.tail.format(w,A)}},{key:"formats",value:function(){return c({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(w,A){if(w instanceof l)g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,w,A);else{var P=A==null?this.length():A.offset(this),E=this.split(P);E.parent.insertBefore(w,E)}}},{key:"optimize",value:function(w){g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,w);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(w){if(w.statics.blotName!==this.statics.blotName){var A=y.default.create(this.statics.defaultChild);w.moveChildren(A),this.appendChild(A)}g(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"replace",this).call(this,w)}}]),v}(t.default);h.blotName="list",h.scope=y.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[l],f.ListItem=l,f.default=h},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(56),g=_(b);function _(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function i(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(t){i(e,t);function e(){return y(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(g.default);a.blotName="italic",a.tagName=["EM","I"],f.default=a},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function c(s,u){for(var o=0;o<u.length;o++){var l=u[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,u,o){return u&&c(s.prototype,u),o&&c(s,o),s}}(),g=function c(s,u,o){s===null&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,u);if(l===void 0){var h=Object.getPrototypeOf(s);return h===null?void 0:c(h,u,o)}else{if("value"in l)return l.value;var n=l.get;return n===void 0?void 0:n.call(o)}},_=r(6),y=m(_);function m(c){return c&&c.__esModule?c:{default:c}}function i(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function a(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function t(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var e=function(c){t(s,c);function s(){return i(this,s),a(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return b(s,null,[{key:"create",value:function(o){return o==="super"?document.createElement("sup"):o==="sub"?document.createElement("sub"):g(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,o)}},{key:"formats",value:function(o){if(o.tagName==="SUB")return"sub";if(o.tagName==="SUP")return"super"}}]),s}(y.default);e.blotName="script",e.tagName=["SUB","SUP"],f.default=e},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(6),g=_(b);function _(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function i(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(t){i(e,t);function e(){return y(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(g.default);a.blotName="strike",a.tagName="S",f.default=a},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=r(6),g=_(b);function _(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function i(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(t){i(e,t);function e(){return y(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(g.default);a.blotName="underline",a.tagName="U",f.default=a},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function u(o,l){for(var h=0;h<l.length;h++){var n=l[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,l,h){return l&&u(o.prototype,l),h&&u(o,h),o}}(),g=function u(o,l,h){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,l);if(n===void 0){var v=Object.getPrototypeOf(o);return v===null?void 0:u(v,l,h)}else{if("value"in n)return n.value;var T=n.get;return T===void 0?void 0:T.call(h)}},_=r(0),y=i(_),m=r(27);function i(u){return u&&u.__esModule?u:{default:u}}function a(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function t(u,o){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:u}function e(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);u.prototype=Object.create(o&&o.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(u,o):u.__proto__=o)}var c=["alt","height","width"],s=function(u){e(o,u);function o(){return a(this,o),t(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return b(o,[{key:"format",value:function(h,n){c.indexOf(h)>-1?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):g(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,h,n)}}],[{key:"create",value:function(h){var n=g(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this,h);return typeof h=="string"&&n.setAttribute("src",this.sanitize(h)),n}},{key:"formats",value:function(h){return c.reduce(function(n,v){return h.hasAttribute(v)&&(n[v]=h.getAttribute(v)),n},{})}},{key:"match",value:function(h){return/\.(jpe?g|gif|png)$/.test(h)||/^data:image\/.+;base64/.test(h)}},{key:"sanitize",value:function(h){return(0,m.sanitize)(h,["http","https","data"])?h:"//:0"}},{key:"value",value:function(h){return h.getAttribute("src")}}]),o}(y.default.Embed);s.blotName="image",s.tagName="IMG",f.default=s},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0});var b=function(){function u(o,l){for(var h=0;h<l.length;h++){var n=l[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,l,h){return l&&u(o.prototype,l),h&&u(o,h),o}}(),g=function u(o,l,h){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,l);if(n===void 0){var v=Object.getPrototypeOf(o);return v===null?void 0:u(v,l,h)}else{if("value"in n)return n.value;var T=n.get;return T===void 0?void 0:T.call(h)}},_=r(4),y=r(27),m=i(y);function i(u){return u&&u.__esModule?u:{default:u}}function a(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function t(u,o){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:u}function e(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);u.prototype=Object.create(o&&o.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(u,o):u.__proto__=o)}var c=["height","width"],s=function(u){e(o,u);function o(){return a(this,o),t(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return b(o,[{key:"format",value:function(h,n){c.indexOf(h)>-1?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):g(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,h,n)}}],[{key:"create",value:function(h){var n=g(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this,h);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(h)),n}},{key:"formats",value:function(h){return c.reduce(function(n,v){return h.hasAttribute(v)&&(n[v]=h.getAttribute(v)),n},{})}},{key:"sanitize",value:function(h){return m.default.sanitize(h)}},{key:"value",value:function(h){return h.getAttribute("src")}}]),o}(_.BlockEmbed);s.blotName="video",s.className="ql-video",s.tagName="IFRAME",f.default=s},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.FormulaBlot=void 0;var b=function(){function h(n,v){for(var T=0;T<v.length;T++){var w=v[T];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(n,w.key,w)}}return function(n,v,T){return v&&h(n.prototype,v),T&&h(n,T),n}}(),g=function h(n,v,T){n===null&&(n=Function.prototype);var w=Object.getOwnPropertyDescriptor(n,v);if(w===void 0){var A=Object.getPrototypeOf(n);return A===null?void 0:h(A,v,T)}else{if("value"in w)return w.value;var P=w.get;return P===void 0?void 0:P.call(T)}},_=r(35),y=e(_),m=r(5),i=e(m),a=r(9),t=e(a);function e(h){return h&&h.__esModule?h:{default:h}}function c(h,n){if(!(h instanceof n))throw new TypeError("Cannot call a class as a function")}function s(h,n){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:h}function u(h,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);h.prototype=Object.create(n&&n.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(h,n):h.__proto__=n)}var o=function(h){u(n,h);function n(){return c(this,n),s(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return b(n,null,[{key:"create",value:function(T){var w=g(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,T);return typeof T=="string"&&(window.katex.render(T,w,{throwOnError:!1,errorColor:"#f00"}),w.setAttribute("data-value",T)),w}},{key:"value",value:function(T){return T.getAttribute("data-value")}}]),n}(y.default);o.blotName="formula",o.className="ql-formula",o.tagName="SPAN";var l=function(h){u(n,h),b(n,null,[{key:"register",value:function(){i.default.register(o,!0)}}]);function n(){c(this,n);var v=s(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return v}return n}(t.default);f.FormulaBlot=o,f.default=l},function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.CodeToken=f.CodeBlock=void 0;var b=function(){function T(w,A){for(var P=0;P<A.length;P++){var E=A[P];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,A,P){return A&&T(w.prototype,A),P&&T(w,P),w}}(),g=function T(w,A,P){w===null&&(w=Function.prototype);var E=Object.getOwnPropertyDescriptor(w,A);if(E===void 0){var p=Object.getPrototypeOf(w);return p===null?void 0:T(p,A,P)}else{if("value"in E)return E.value;var O=E.get;return O===void 0?void 0:O.call(P)}},_=r(0),y=s(_),m=r(5),i=s(m),a=r(9),t=s(a),e=r(13),c=s(e);function s(T){return T&&T.__esModule?T:{default:T}}function u(T,w){if(!(T instanceof w))throw new TypeError("Cannot call a class as a function")}function o(T,w){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:T}function l(T,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);T.prototype=Object.create(w&&w.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(T,w):T.__proto__=w)}var h=function(T){l(w,T);function w(){return u(this,w),o(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return b(w,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),g(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var E=this.domNode.textContent;this.cachedText!==E&&((E.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(E),this.domNode.normalize(),this.attach()),this.cachedText=E)}}]),w}(c.default);h.className="ql-syntax";var n=new y.default.Attributor.Class("token","hljs",{scope:y.default.Scope.INLINE}),v=function(T){l(w,T),b(w,null,[{key:"register",value:function(){i.default.register(n,!0),i.default.register(h,!0)}}]);function w(A,P){u(this,w);var E=o(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,A,P));if(typeof E.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var p=null;return E.quill.on(i.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(p),p=setTimeout(function(){E.highlight(),p=null},E.options.interval)}),E.highlight(),E}return b(w,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(i.default.sources.USER);var E=this.quill.getSelection();this.quill.scroll.descendants(h).forEach(function(p){p.highlight(P.options.highlight)}),this.quill.update(i.default.sources.SILENT),E!=null&&this.quill.setSelection(E,i.default.sources.SILENT)}}}]),w}(t.default);v.DEFAULTS={highlight:function(){return window.hljs==null?null:function(T){var w=window.hljs.highlightAuto(T);return w.value}}(),interval:1e3},f.CodeBlock=h,f.CodeToken=n,f.default=v},function(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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>
41 <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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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(d,f){d.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>'}
vendor: 6,615 bytes, line 41
41,function(d,f,r){Object.defineProperty(f,"__esModule",{value:!0}),f.default=f.BubbleTooltip=void 0;var b=function w(A,P,E){A===null&&(A=Function.prototype);var p=Object.getOwnPropertyDescriptor(A,P);if(p===void 0){var O=Object.getPrototypeOf(A);return O===null?void 0:w(O,P,E)}else{if("value"in p)return p.value;var N=p.get;return N===void 0?void 0:N.call(E)}},g=function(){function w(A,P){for(var E=0;E<P.length;E++){var p=P[E];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(A,p.key,p)}}return function(A,P,E){return P&&w(A.prototype,P),E&&w(A,E),A}}(),_=r(3),y=u(_),m=r(8),i=u(m),a=r(43),t=u(a),e=r(15),c=r(41),s=u(c);function u(w){return w&&w.__esModule?w:{default:w}}function o(w,A){if(!(w instanceof A))throw new TypeError("Cannot call a class as a function")}function l(w,A){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:w}function h(w,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);w.prototype=Object.create(A&&A.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(w,A):w.__proto__=A)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(w){h(A,w);function A(P,E){o(this,A),E.modules.toolbar!=null&&E.modules.toolbar.container==null&&(E.modules.toolbar.container=n);var p=l(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,E));return p.quill.container.classList.add("ql-bubble"),p}return g(A,[{key:"extendToolbar",value:function(E){this.tooltip=new T(this.quill,this.options.bounds),this.tooltip.root.appendChild(E.container),this.buildButtons([].slice.call(E.container.querySelectorAll("button")),s.default),this.buildPickers([].slice.call(E.container.querySelectorAll("select")),s.default)}}]),A}(t.default);v.DEFAULTS=(0,y.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var T=function(w){h(A,w);function A(P,E){o(this,A);var p=l(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,E));return p.quill.on(i.default.events.EDITOR_CHANGE,function(O,N,L,j){if(O===i.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&j===i.default.sources.USER){p.show(),p.root.style.left="0px",p.root.style.width="",p.root.style.width=p.root.offsetWidth+"px";var F=p.quill.getLines(N.index,N.length);if(F.length===1)p.position(p.quill.getBounds(N));else{var U=F[F.length-1],Y=p.quill.getIndex(U),B=Math.min(U.length()-1,N.index+N.length-Y),I=p.quill.getBounds(new e.Range(Y,B));p.position(I)}}else document.activeElement!==p.textbox&&p.quill.hasFocus()&&p.hide()}),p}return g(A,[{key:"listen",value:function(){var E=this;b(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){E.root.classList.remove("ql-editing")}),this.quill.on(i.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!E.root.classList.contains("ql-hidden")){var p=E.quill.getSelection();p!=null&&E.position(E.quill.getBounds(p))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(E){var p=b(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,E),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",p===0)return p;O.style.marginLeft=-1*p-O.offsetWidth/2+"px"}}]),A}(a.BaseTooltip);T.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(""),f.BubbleTooltip=T,f.default=v},function(d,f,r){d.exports=r(63)}]).default})})(ie);const Ht=he(ie.exports);var wt=-1,Et=1,mt=0;function Lt(S,k,d,f){if(S===k)return S?[[mt,S]]:[];if(d!=null){var r=Ne(S,k,d);if(r)return r}var b=Zt(S,k),g=S.substring(0,b);S=S.substring(b),k=k.substring(b),b=Wt(S,k);var _=S.substring(S.length-b);S=S.substring(0,S.length-b),k=k.substring(0,k.length-b);var y=Ee(S,k);return g&&y.unshift([mt,g]),_&&y.push([mt,_]),oe(y,f),y}function Ee(S,k){var d;if(!S)return[[Et,k]];if(!k)return[[wt,S]];var f=S.length>k.length?S:k,r=S.length>k.length?k:S,b=f.indexOf(r);if(b!==-1)return d=[[Et,f.substring(0,b)],[mt,r],[Et,f.substring(b+r.length)]],S.length>k.length&&(d[0][0]=d[2][0]=wt),d;if(r.length===1)return[[wt,S],[Et,k]];var g=Ae(S,k);if(g){var _=g[0],y=g[1],m=g[2],i=g[3],a=g[4],t=Lt(_,m),e=Lt(y,i);return t.concat([[mt,a]],e)}return we(S,k)}function we(S,k){for(var d=S.length,f=k.length,r=Math.ceil((d+f)/2),b=r,g=2*r,_=new Array(g),y=new Array(g),m=0;m<g;m++)_[m]=-1,y[m]=-1;_[b+1]=0,y[b+1]=0;for(var i=d-f,a=i%2!==0,t=0,e=0,c=0,s=0,u=0;u<r;u++){for(var o=-u+t;o<=u-e;o+=2){var l=b+o,h;o===-u||o!==u&&_[l-1]<_[l+1]?h=_[l+1]:h=_[l-1]+1;for(var n=h-o;h<d&&n<f&&S.charAt(h)===k.charAt(n);)h++,n++;if(_[l]=h,h>d)e+=2;else if(n>f)t+=2;else if(a){var v=b+i-o;if(v>=0&&v<g&&y[v]!==-1){var T=d-y[v];if(h>=T)return Jt(S,k,h,n)}}}for(var w=-u+c;w<=u-s;w+=2){var v=b+w,T;w===-u||w!==u&&y[v-1]<y[v+1]?T=y[v+1]:T=y[v-1]+1;for(var A=T-w;T<d&&A<f&&S.charAt(d-T-1)===k.charAt(f-A-1);)T++,A++;if(y[v]=T,T>d)s+=2;else if(A>f)c+=2;else if(!a){var l=b+i-w;if(l>=0&&l<g&&_[l]!==-1){var h=_[l],n=b+h-l;if(T=d-T,h>=T)return Jt(S,k,h,n)}}}}return[[wt,S],[Et,k]]}function Jt(S,k,d,f){var r=S.substring(0,d),b=k.substring(0,f),g=S.substring(d),_=k.substring(f),y=Lt(r,b),m=Lt(g,_);return y.concat(m)}function Zt(S,k){if(!S||!k||S.charAt(0)!==k.charAt(0))return 0;for(var d=0,f=Math.min(S.length,k.length),r=f,b=0;d<r;)S.substring(b,r)==k.substring(b,r)?(d=r,b=d):f=r,r=Math.floor((f-d)/2+d);return le(S.charCodeAt(r-1))&&r--,r}function Wt(S,k){if(!S||!k||S.slice(-1)!==k.slice(-1))return 0;for(var d=0,f=Math.min(S.length,k.length),r=f,b=0;d<r;)S.substring(S.length-r,S.length-b)==k.substring(k.length-r,k.length-b)?(d=r,b=d):f=r,r=Math.floor((f-d)/2+d);return ae(S.charCodeAt(S.length-r))&&r--,r}function Ae(S,k){var d=S.length>k.length?S:k,f=S.length>k.length?k:S;if(d.length<4||f.length*2<d.length)return null;function r(e,c,s){for(var u=e.substring(s,s+Math.floor(e.length/4)),o=-1,l="",h,n,v,T;(o=c.indexOf(u,o+1))!==-1;){var w=Zt(e.substring(s),c.substring(o)),A=Wt(e.substring(0,s),c.substring(0,o));l.length<A+w&&(l=c.substring(o-A,o)+c.substring(o,o+w),h=e.substring(0,s-A),n=e.substring(s+w),v=c.substring(0,o-A),T=c.substring(o+w))}return l.length*2>=e.length?[h,n,v,T,l]:null}
vendor: 1,068 bytes, line 41
41var b=r(d,f,Math.ceil(d.length/4)),g=r(d,f,Math.ceil(d.length/2)),_;if(!b&&!g)return null;g?b?_=b[4].length>g[4].length?b:g:_=g:_=b;var y,m,i,a;S.length>k.length?(y=_[0],m=_[1],i=_[2],a=_[3]):(i=_[0],a=_[1],y=_[2],m=_[3]);var t=_[4];return[y,m,i,a,t]}function oe(S,k){S.push([mt,""]);for(var d=0,f=0,r=0,b="",g="",_;d<S.length;){if(d<S.length-1&&!S[d][1]){S.splice(d,1);continue}switch(S[d][0]){case Et:r++,g+=S[d][1],d++;break;case wt:f++,b+=S[d][1],d++;break;case mt:var y=d-r-f-1;if(k){if(y>=0&&ue(S[y][1])){var m=S[y][1].slice(-1);if(S[y][1]=S[y][1].slice(0,-1),b=m+b,g=m+g,!S[y][1]){S.splice(y,1),d--;var i=y-1;S[i]&&S[i][0]===Et&&(r++,g=S[i][1]+g,i--),S[i]&&S[i][0]===wt&&(f++,b=S[i][1]+b,i--),y=i}}if(se(S[d][1])){var m=S[d][1].charAt(0);S[d][1]=S[d][1].slice(1),b+=m,g+=m}}if(d<S.length-1&&!S[d][1]){S.splice(d,1);break}if(b.length>0||g.length>0){b.length>0&&g.length>0&&(_=Zt(g,b),_!==0&&(y>=0?S[y][1]+=g.substring(0,_):(S.splice(0,0,[mt,g.substring(0,_)]),d++),g=g.substring(_),b=b.substring(_)),_=Wt(g,b),_!==0&&(S[d][1]=g.substring(g.length-_)+S[d][1],g=g.
41substring(0,g.length-_),b=b.substring(0,b.length-_)));var a=r+f;b.length===0&&g.length===0?(S.splice(d-a,a),d=d-a):b.length===0?(S.splice(d-a,a,[Et,g]),d=d-a+1):g.length===0?(S.splice(d-a,a,[wt,b]),d=d-a+1):(S.splice(d-a,a,[wt,b],[Et,g]),d=d-a+2)}d!==0&&S[d-1][0]===mt?(S[d-1][1]+=S[d][1],S.splice(d,1)):d++,r=0,f=0,b="",g="";break}}S[S.length-1][1]===""&&S.pop();var t=!1;for(d=1;d<S.length-1;)S[d-1][0]===mt&&S[d+1][0]===mt&&(S[d][1].substring(S[d][1].length-S[d-1][1].length)===S[d-1][1]?(S[d][1]=S[d-1][1]+S[d][1].substring(0,S[d][1].length-S[d-1][1].length),S[d+1][1]=S[d-1][1]+S[d+1][1],S.splice(d-1,1),t=!0):S[d][1].substring(0,S[d+1][1].length)==S[d+1][1]&&(S[d-1][1]+=S[d+1][1],S[d][1]=S[d][1].substring(S[d+1][1].length)+S[d+1][1],S.splice(d+1,1),t=!0)),d++;t&&oe(S,k)}function le(S){return S>=55296&&S<=56319}function ae(S){return S>=56320&&S<=57343}function se(S){return ae(S.charCodeAt(0))}function ue(S){return le(S.charCodeAt(S.length-1))}function Te(S){for(var k=[],d=0;d<S.length;d++)S[d][1].length>0&&k.push(S[d]);return k}function zt(S,k,d,f){return ue(S)||se(f)?null:Te([[mt,S],[wt,k],[Et,d],[mt,f]])}function Ne(S,k,d){var f=typeof d=="number"?{index:d,length:0}:d.oldRange,r=typeof d=="number"?null:d.newRange,b=S.length,g=k.length;if(f.length===0&&(r===null||r.length===0)){var _=f.index,y=S.slice(0,_),m=S.slice(_),i=r?r.index:null;t:{var a=_+g-b;if(i!==null&&i!==a||a<0||a>g)break t;var t=k.slice(0,a),e=k.slice(a);if(e!==m)break t;var c=Math.min(_,a),s=y.slice(0,c),u=t.slice(0,c);if(s!==u)break t;var o=y.slice(c),l=t.slice(c);return zt(s,o,l,m)}t:{if(i!==null&&i!==_)break t;var h=_,t=k.slice(0,h),e=k.slice(h);if(t!==y)break t;var n=Math.min(b-h,g-h),v=m.slice(m.length-n),T=e.slice(e.length-n);if(v!==T)break t;var o=m.slice(0,m.length-n),l=e.slice(0,e.length-n);return zt(y,o,l,v)}}if(f.length>0&&r&&r.length===0){t:{var s=S.slice(0,f.index),v=S.slice(f.index+f.length),c=s.length,n=v.length;if(g<c+n)break t;var u=k.slice(0,c),T=k.slice(g-n);if(s!==u||v!==T)break t;var o=S.slice(c,b-n),l=k.slice(c,g-n);return zt(s,o,l,v)}}return null}function Ft(S,k,d){return Lt(S,k,d,!0)}Ft.INSERT=Et;Ft.DELETE=wt;Ft.EQUAL=mt;var xe=Ft,Gt={},fe=Tt&&Tt.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(Gt,"__esModule",{value:!0});var Se=fe(ne.exports),Pe=fe(re.exports),Vt;(function(S){function k(b,g,_){b===void 0&&(b={}),g===void 0&&(g={}),typeof b!="object"&&(b={}),typeof g!="object"&&(g={});var y=Se.default(g);_||(y=Object.keys(y).reduce(function(i,a){return y[a]!=null&&(i[a]=y[a]),i},{}));for(var m in b)b[m]!==void 0&&g[m]===void 0&&(y[m]=b[m]);return Object.keys(y).length>0?y:void 0}S.compose=k;function d(b,g){b===void 0&&(b={}),g===void 0&&(g={}),typeof b!="object"&&(b={}),typeof g!="object"&&(g={});var _=Object.keys(b).concat(Object.keys(g)).reduce(function(y,m){return Pe.default(b[m],g[m])||(y[m]=g[m]===void 0?null:g[m]),y},{});return Object.keys(_).length>0?_:void 0}S.diff=d;function f(b,g){b===void 0&&(b={}),g===void 0&&(g={}),b=b||{};var _=Object.keys(g).reduce(function(y,m){return g[m]!==b[m]&&b[m]!==void 0&&(y[m]=g[m]),y},{});return Object.keys(b).reduce(function(y,m){return b[m]!==g[m]&&g[m]===void 0&&(y[m]=null),y},_)}S.invert=f;function r(b,g,_){if(_===void 0&&(_=!1),typeof b!="object")return g;if(typeof g=="object"){if(!_)return g;var y=Object.keys(g).reduce(function(m,i){return b[i]===void 0&&(m[i]=g[i]),m},{});return Object.keys(y).length>0?y:void 0}}S.transform=r})(Vt||(Vt={}));Gt.default=Vt;var Dt={},Bt={},$t;function Le(){if($t)return Bt;$t=1;var S=Tt&&Tt.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(Bt,"__esModule",{value:!0});var k=S(ce()),d=function(){function f(r){this.ops=r,this.index=0,this.offset=0}return f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(r){r||(r=1/0);var b=this.ops[this.index];if(b){var g=this.offset,_=k.default.length(b);if(r>=_-g?(r=_-g,this.index+=1,this.offset=0):this.offset+=r,typeof b.delete=="number")return{delete:r};var y={};return b.attributes&&(y.attributes=b.attributes),typeof b.retain=="number"?y.retain=r:typeof b.insert=="string"?y.insert=b.insert.substr(g,r):y.insert=b.insert,y}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?k.default.length(this.ops[this.index])-this.offset:1/0}
41,f.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"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var r=this.offset,b=this.index,g=this.next(),_=this.ops.slice(this.index);return this.offset=r,this.index=b,[g].concat(_)}else return[]},f}();return Bt.default=d,Bt}var te;function ce(){if(te)return Dt;te=1;var S=Tt&&Tt.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(Dt,"__esModule",{value:!0});var k=S(Le()),d;return function(f){function r(g){return new k.default(g)}f.iterator=r;function b(g){return typeof g.delete=="number"?g.delete:typeof g.retain=="number"?g.retain:typeof g.insert=="string"?g.insert.length:1}f.length=b}(d||(d={})),Dt.default=d,Dt}var qt=Tt&&Tt.__importDefault||function(S){return S&&S.__esModule?S:{default:S}},Ct=qt(xe),qe=qt(ne.exports),Kt=qt(re.exports),Pt=qt(Gt),pt=qt(ce()),Re=String.fromCharCode(0),je=function(){function S(k){Array.isArray(k)?this.ops=k:k!=null&&Array.isArray(k.ops)?this.ops=k.ops:this.ops=[]}return S.prototype.insert=function(k,d){var f={};return typeof k=="string"&&k.length===0?this:(f.insert=k,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(f.attributes=d),this.push(f))},S.prototype.delete=function(k){return k<=0?this:this.push({delete:k})},S.prototype.retain=function(k,d){if(k<=0)return this;var f={retain:k};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(f.attributes=d),this.push(f)},S.prototype.push=function(k){var d=this.ops.length,f=this.ops[d-1];if(k=qe.default(k),typeof f=="object"){if(typeof k.delete=="number"&&typeof f.delete=="number")return this.ops[d-1]={delete:f.delete+k.delete},this;if(typeof f.delete=="number"&&k.insert!=null&&(d-=1,f=this.ops[d-1],typeof f!="object"))return this.ops.unshift(k),this;if(Kt.default(k.attributes,f.attributes)){if(typeof k.insert=="string"&&typeof f.insert=="string")return this.ops[d-1]={insert:f.insert+k.insert},typeof k.attributes=="object"&&(this.ops[d-1].attributes=k.attributes),this;if(typeof k.retain=="number"&&typeof f.retain=="number")return this.ops[d-1]={retain:f.retain+k.retain},typeof k.attributes=="object"&&(this.ops[d-1].attributes=k.attributes),this}}return d===this.ops.length?this.ops.push(k):this.ops.splice(d,0,k),this},S.prototype.chop=function(){var k=this.ops[this.ops.length-1];return k&&k.retain&&!k.attributes&&this.ops.pop(),this},S.prototype.filter=function(k){return this.ops.filter(k)},S.prototype.forEach=function(k){this.ops.forEach(k)},S.prototype.map=function(k){return this.ops.map(k)},S.prototype.partition=function(k){var d=[],f=[];return this.forEach(function(r){var b=k(r)?d:f;b.push(r)}),[d,f]},S.prototype.reduce=function(k,d){return this.ops.reduce(k,d)},S.prototype.changeLength=function(){return this.reduce(function(k,d){return d.insert?k+pt.default.length(d):d.delete?k-d.delete:k},0)},S.prototype.length=function(){return this.reduce(function(k,d){return k+pt.default.length(d)},0)},S.prototype.slice=function(k,d){k===void 0&&(k=0),d===void 0&&(d=1/0);for(var f=[],r=pt.default.iterator(this.ops),b=0;b<d&&r.hasNext();){var g=void 0;b<k?g=r.next(k-b):(g=r.next(d-b),f.push(g)),b+=pt.default.length(g)}return new S(f)},S.prototype.compose=function(k){var d=pt.default.iterator(this.ops),f=pt.default.iterator(k.ops),r=[],b=f.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){for(var g=b.retain;d.peekType()==="insert"&&d.peekLength()<=g;)g-=d.peekLength(),r.push(d.next());b.retain-g>0&&f.next(b.retain-g)}for(var _=new S(r);d.hasNext()||f.hasNext();)if(f.peekType()==="insert")_.push(f.next());else if(d.peekType()==="delete")_.push(d.next());else{var y=Math.min(d.peekLength(),f.peekLength()),m=d.next(y),i=f.next(y);if(typeof i.retain=="number"){var a={};typeof m.retain=="number"?a.retain=y:a.insert=m.insert;var t=Pt.default.compose(m.attributes,i.attributes,typeof m.retain=="number");if(t&&(a.attributes=t),_.push(a),!f.hasNext()&&Kt.default(_.ops[_.ops.length-1],a)){var e=new S(d.rest());return _.concat(e).chop()}}else typeof i.delete=="number"&&typeof m.retain=="number"&&_.push(i)}return _.chop()},S.prototype.concat=function(k){var d=new S(this.ops.slice());return k.ops.length>0&&(d.push(k.ops[0]),d.ops=d.ops.concat(k.ops.slice(1))),d},S.prototype.diff=function(k,d){if(this.ops===k.ops)return new S;var f=[this,k].map(function(y){return y.map(function(m){if(m.insert!=null)return typeof m.insert=="string"?m.insert:Re;var i=y===k?"on":"with";throw new Error("diff() called "+i+" non-document")}).join("")}),r=new S,b=Ct.default(f[0],f[1],d),g=pt.default.iterator(this.ops),_=pt.default.iterator(k.ops);return b.forEach(function(y){for(var m=y[1].length;m>0;){var i=0;switch(y[0]){case Ct.default.INSERT:i=Math.min(_.peekLength(),m),r.push(_.next(i));break;case Ct.default.DELETE:i=Math.min(m,g.peekLength()),g.next(i),r.delete(i);break;case Ct.default.EQUAL:i=Math.min(g.peekLength(),_.peekLength(),m);var a=g.next(i),t=_.next(i);Kt.default(a.insert,t.insert)?r.retain(i,Pt.default.diff(a.attributes,t.attributes)):r.push(t).delete(i);break}m-=i}}),r.chop()},S.prototype.eachLine=function(k,d){d===void 0&&(d=`
42`);for(var f=pt.default.iterator(this.ops),r=new S,b=0;f.hasNext();){if(f.peekType()!=="insert")return;var g=f.peek(),_=pt.default.length(g)-f.peekLength(),y=typeof g.insert=="string"?g.insert.indexOf(d,_)-_:-1;if(y<0)r.push(f.next());else if(y>0)r.push(f.next(y));else{if(k(r,f.next(1).attributes||{},b)===!1)return;b+=1,r=new S}}r.length()>0&&k(r,{},b)},S.prototype.invert=function(k){var d=new S;return this.reduce(function(f,r){if(r.insert)d.delete(pt.default.length(r));else{if(r.retain&&r.attributes==null)return d.retain(r.retain),f+r.retain;if(r.delete||r.retain&&r.attributes){var b=r.delete||r.retain,g=k.slice(f,f+b);return g.forEach(function(_){r.delete?d.push(_):r.retain&&r.attributes&&d.retain(pt.default.length(_),Pt.default.invert(r.attributes,_.attributes))}),f+b}}return f},0),d.chop()},S.prototype.transform=function(k,d){if(d===void 0&&(d=!1),d=!!d,typeof k=="number")return this.transformPosition(k,d);for(var f=k,r=pt.default.iterator(this.ops),b=pt.default.iterator(f.ops),g=new S;r.hasNext()||b.hasNext();
42)if(r.peekType()==="insert"&&(d||b.peekType()!=="insert"))g.retain(pt.default.length(r.next()));else if(b.peekType()==="insert")g.push(b.next());else{var _=Math.min(r.peekLength(),b.peekLength()),y=r.next(_),m=b.next(_);if(y.delete)continue;m.delete?g.push(m):g.retain(_,Pt.default.transform(y.attributes,m.attributes,d))}return g.chop()},S.prototype.transformPosition=function(k,d){d===void 0&&(d=!1),d=!!d;for(var f=pt.default.iterator(this.ops),r=0;f.hasNext()&&r<=k;){var b=f.peekLength(),g=f.peekType();if(f.next(),g==="delete"){k-=Math.min(b,k-r);continue}else g==="insert"&&(r<k||!d)&&(k+=b);r+=b}return k},S.Op=pt.default,S.AttributeMap=Pt.default,S}(),Me=je;/*!
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 ee={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"]]},Ie=ve({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:S=>["delta","html","text"].includes(S)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:S=>["snow","bubble",""].includes(S)},toolbar:{type:[String,Array,Object],required:!1,validator:S=>typeof S=="string"&&S!==""?S.charAt(0)==="#"?!0:Object.keys(ee).indexOf(S)!==-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:(S,k)=>{pe(()=>{b()}),ye(()=>{d=null});let d,f;const r=Yt(),b=()=>{var p;if(!!r.value){if(f=g(),S.modules)if(Array.isArray(S.modules))for(const O of S.modules)Ht.register(`modules/${O.name}`,O.module);else Ht.register(`modules/${S.modules.name}`,S.modules.module);d=new Ht(r.value,f),h(S.content),d.on("text-change",a),d.on("selection-change",e),d.on("editor-change",c),S.theme!=="bubble"&&r.value.classList.remove("ql-bubble"),S.theme!=="snow"&&r.value.classList.remove("ql-snow"),(p=d.getModule("toolbar"))===null||p===void 0||p.container.addEventListener("mousedown",O=>{O.preventDefault()}),k.emit("ready",d)}},g=()=>{const p={};if(S.theme!==""&&(p.theme=S.theme),S.readOnly&&(p.readOnly=S.readOnly),S.placeholder&&(p.placeholder=S.placeholder),S.toolbar&&S.toolbar!==""&&(p.modules={toolbar:(()=>{if(typeof S.toolbar=="object")return S.toolbar;if(typeof S.toolbar=="string")return S.toolbar.charAt(0)==="#"?S.toolbar:ee[S.toolbar]})()}),S.modules){const O=(()=>{var N,L;const j={};if(Array.isArray(S.modules))for(const F of S.modules)j[F.name]=(N=F.options)!==null&&N!==void 0?N:{};else j[S.modules.name]=(L=S.modules.options)!==null&&L!==void 0?L:{};return j})();p.modules=Object.assign({},p.modules,O)}return Object.assign({},S.globalOptions,S.options,p)},_=p=>typeof p=="object"&&p?p.slice():p,y=p=>Object.values(p.ops).some(O=>!O.retain||Object.keys(O).length!==1);let m;const i=p=>{if(typeof m==typeof p){if(p===m)return!0;if(typeof p=="object"&&p&&typeof m=="object"&&m)return!y(m.diff(p))}return!1},a=(p,O,N)=>{m=_(l()),i(S.content)||k.emit("update:content",m),k.emit("textChange",{delta:p,oldContents:O,source:N})},t=Yt(),e=(p,O,N)=>{t.value=!!(d!=null&&d.hasFocus()),k.emit("selectionChange",{range:p,oldRange:O,source:N})};Ut(t,p=>{p?k.emit("focus",r):k.emit("blur",r)});const c=(...p)=>{p[0]==="text-change"&&k.emit("editorChange",{name:p[0],delta:p[1],oldContents:p[2],source:p[3]}),p[0]==="selection-change"&&k.emit("editorChange",{name:p[0],range:p[1],oldRange:p[2],source:p[3]})},s=()=>r.value,u=()=>{var p;return(p=d==null?void 0:d.getModule("toolbar"))===null||p===void 0?void 0:p.container},o=()=>
52{if(d)return d;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.`},l=(p,O)=>S.contentType==="html"?T():S.contentType==="text"?n(p,O):d==null?void 0:d.getContents(p,O),h=(p,O="api")=>{const N=p||(S.contentType==="delta"?new Me:"");S.contentType==="html"?w(N):S.contentType==="text"?v(N,O):d==null||d.setContents(N,O),m=_(N)},n=(p,O)=>{var N;return(N=d==null?void 0:d.getText(p,O))!==null&&N!==void 0?N:""},v=(p,O="api")=>{d==null||d.setText(p,O)},T=()=>{var p;return(p=d==null?void 0:d.root.innerHTML)!==null&&p!==void 0?p:""},w=p=>{d&&(d.root.innerHTML=p)},A=(p,O="api")=>{const N=d==null?void 0:d.clipboard.convert(p);N&&(d==null||d.setContents(N,O))},P=()=>{d==null||d.focus()},E=()=>{Qt(()=>{var p;!k.slots.toolbar&&d&&((p=d.getModule("toolbar"))===null||p===void 0||p.container.remove()),b()})};return Ut(()=>S.content,p=>{if(!d||!p||i(p))return;const O=d.getSelection();O&&Qt(()=>d==null?void 0:d.setSelection(O)),h(p)},{deep:!0}),Ut(()=>S.enable,p=>{d&&d.enable(p)}),{editor:r,getEditor:s,getToolbar:u,getQuill:o,getContents:l,setContents:h,getHTML:T,setHTML:w,pasteHTML:A,focus:P,getText:n,setText:v,reinit:E}},render(){var S,k;return[(k=(S=this.$slots).toolbar)===null||k===void 0?void 0:k.call(S),me("div",{ref:"editor",...this.$attrs})]}});const De={name:"ConsignmentTicket",components:{NoData:ke,DataLoader:_e,Table:be,QuillEditor:Ie},props:{consignment:Object,stores:Object,ticket_categories:Array,ticket_statuses:Array,ticket_priority:Array,popup_name:String,trigger_function:Boolean,close_call:Boolean,filters:Object,parent_component:String},watch:{close_call:function(S){S&&(this.selected_ticket_id=0)},trigger_function:function(S){this.selected_ticket_id=0},consignment:function(S){(this.consignment.hasOwnProperty("consignment_id")&&this.consignment.consignment_id!==""||this.consignment.hasOwnProperty("ticket")&&this.consignment.ticket!=[]&&this.trigger_function===!0)&&(this.parent_component=="tickets"?(this.ticket=this.consignment.ticket,this.ticket_id=this.ticket.trackid,this.ticket_list=[this.ticket],this.selected_ticket_id=this.ticket.id,this.get_ticket_replies()):(this.get_tickets(),this.userCan("consignment-ticket-view")&&this.get_ticket_replies()))}},data(){var S,k,d;return{selected_ticket_id:0,assigned_to_list:[{name:"Smartlane",value:"smartlane"},{name:"Store Internal",value:"store"}],toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"]],loader:!1,ticket_id:null,bg:"bg-warning",reply_edit_enabled:null,page_loader:!1,ticket:{message:"",subject:"",dt:"",id:"",trackid:"",name:"",email:"",category:0,priority:0,status:0},reply_id:null,ticket_list:[],store_users:[],ticket_loader:!1,reply_loader:!1,show_store_user:!1,is_ticket_changed:!1,helpdesk_base_url:window.document.location.hostname==="smartlane.com.pk"||window.document.location.hostname==="smartlane.pk"||window.document.location.hostname==="smartpulse.pk"||window.document.location.hostname==="smartapi.pk"?"https://support.smartlane.com.pk/ticket.php?track=":"https://support.smartlane.dev/ticket.php?track=",ticket_data:{replies:[],ticket:{id:"",trackid:"",consignment_id:(S=this.consignment.consignment_id)!=null?S:0,message:"",consignment_number:(k=this.consignment.consignment_number)!=null?k:0,subject:"",priority:2,email:this.$page.props.user.email,store_id:(d=this.consignment.store_id)!=null?d:0,name:this.$page.props.user.name,user_id:this.$page.props.user.id,category:0,assigned_to:[],selected_users:[],status:0},edit_reply:{replyto:"",message:"",name:this.$page.props.user.name},ticket_reply:{replyto:"",message:"",name:this.$page.props.user.name},ticket_added:!1}
54,temp:{selected_store:"",cn_chkbx:!1,selected_cn:"",cn_detail:{}},updateStatus:""}},methods:{triggerParentFunction(){this.$emit("callSearchEvent")},save_ticket(S,k){let d=this;d.page_loader=!0;let f={...S.ticket};f.assigned_to=S.ticket.assigned_to.map(r=>r.value),d.temp.selected_store!==""&&(f.store_id=d.temp.selected_store,f.consignment_id=0,f.consignment_number=0),d.temp.cn_detail.hasOwnProperty("consignment_id")&&(f.consignment_id=d.temp.cn_detail.consignment_id,f.consignment_number=d.temp.cn_detail.consignment_number),this.parent_component==="consignment"&&(f.consignment_id||(f.consignment_id=this.consignment.consignment_id),f.consignment_number||(f.consignment_number=this.consignment.consignment_number),f.store_id||(f.store_id=this.consignment.store_id)),axios.post("/api/ticket/save_consignment_ticket",f).then(r=>{d.page_loader=!1,d.ticket_data.ticket_added=!0,d.reset(),this.parent_component=="tickets"?d.triggerParentFunction():d.get_tickets(),d.$refs.new_ticket_editor.setHTML(""),$("#"+this.parent_component+"_new_ticket").modal("hide"),d.$swal.fire({icon:"success",text:k})}).catch(function(r){var b;d.page_loader=!1,d.$swal.fire({icon:"error",text:r.response.status===422&&((b=r.response.data)==null?void 0:b.errors)?Object.values(r.response.data.errors).flat().join("."):r.message})})},save_reply(S,k,d){let f=this;f.reply_loader=!0,f.ticket_data.edit_reply.replyto=S,f.ticket_data.edit_reply.consignment_id=f.consignment.consignment_id,f.ticket_data.edit_reply.consignment_number=f.consignment.consignment_number,f.ticket_data.edit_reply.store_id=f.consignment.store_id,f.ticket_data.edit_reply.user_id=this.$page.props.user.id,f.ticket_data.edit_reply.ticket_id=f.ticket_id,f.ticket_data.edit_reply.action=k,(k==="put"||k==="delete")&&(f.ticket_data.edit_reply.reply_id=d),axios({method:"post",url:"/api/ticket/save_consignment_ticket_reply",data:f.ticket_data.edit_reply}).then(r=>{f.reply_loader=!1,f.selected_ticket_id=S,f.get_ticket_replies(),f.ticket_data.ticket_reply.message="",f.ticket_data.edit_reply.message="",k==="post"&&f.$refs.submit_reply_editor.setHTML("")}).catch(function(r){f.reply_loader=!1,console.log(r)})},get_tickets(S=0){let k=this;this.ticket_loader=!0,k.ticket_data.ticket.id="";let d=this.filters!==void 0?this.filters:{filters:{},model:"Helpdesk\\ConsignmentTicket"};d.filters.ticket_id="",d.filters.consignment_id="",k.consignment.ticket!=[]&&k.consignment.ticket!==void 0?d.filters.ticket_id=k.consignment.ticket.id:d.filters.consignment_id=k.consignment.consignment_id,axios.get("/api/ticket/get_consignment_tickets",{params:d}).then(function(f){k.ticket_list=f.data.tickets,k.ticket_list.length>0&&(S===0||k.ticket_list.find(r=>r.id==S)===void 0?(k.ticket_id=k.ticket_list[0].trackid,k.ticket=JSON.parse(JSON.stringify(k.ticket_list[0]))):(k.ticket_id=k.ticket_list.find(r=>r.id==S).trackid,k.ticket=JSON.parse(JSON.stringify(k.ticket_list.find(r=>r.id==S)))),k.selected_ticket_id=k.ticket.id,k.get_ticket_replies()),k.ticket_loader=!1}).catch(function(f){k.ticket_loader=!1,console.log(f)})},get_ticket_replies(){let S=this,k=S.selected_ticket_id;if(setTimeout(function(){S.selected_ticket_id=S.ticket.status!="3"?S.ticket.id:0},1e3),k==0||S.trigger_function===!1||window.location.pathname!="/operation/dashboard")return!1;axios.get("/api/ticket/get_consignment_ticket_replies",{params:{reply_to:k}}).then(function(d){S.reply_loader=!1,S.ticket_data.replies=d.data.data.tickets}).catch(function(d){S.reply_loader=!1,console.log(d)})},openModal(S){$("#"+S).modal("show"),$(".modal-backdrop").css({"z-index":-3}),$("#"+S).css({"backdrop-filter":"blur(3px)","background-color":"rgba(0,0,0,0.5)"})},getStoreUsersList(){let S=this;setTimeout(function(){var k=S.ticket_data.ticket.assigned_to;if(k.find(d=>d.value==="store")){S.show_store_user=!0;let d=1;axios.get("/api/ticket/get_store_users",{params:{store_id:d}}).then(function(f){let r=f.data;r.code===200?S.store_users=r.data:S.$swal.fire({icon:"error",text:"Error while fetching store users"})}).catch(function(f){S.$swal.fire({icon:"error",text:f})})}else S.show_store_user=!1,S.store_users=[],S.ticket_data.ticket.selected_users=[]},500)},reset(){var k,d;let S=this;S.store_users=[],S.temp={selected_store:"",cn_chkbx:!1,selected_cn:"",cn_detail
54:{}},S.ticket_data.ticket={id:"",trackid:"",consignment_id:(k=this.consignment.consignment_id)!=null?k:0,message:"",consignment_number:(d=this.consignment.consignment_number)!=null?d:0,subject:"",priority:2,email:this.$page.props.user.email,store_id:this.consignment.store_id,name:this.$page.props.user.name,user_id:this.$page.props.user.id,category:0,status:3,assigned_to:[],selected_users:[]}},removeHtmlTagsAndEntities(S){var k=new DOMParser().parseFromString(S,"text/html"),d=k.body.textContent||"";return d.replace(/<[^>]*>/g,"")},changeInTicket(){let S=this,k=S.ticket_list.find(d=>d.trackid===S.ticket.trackid);k.priority,S.ticket.priority,k.status,S.ticket.status,k.category,S.ticket.category,S.is_ticket_changed=!0},updateTicket(S,k){let d=this;d.page_loader=!0,d.updateStatus!==""&&(S.status=d.updateStatus),axios.post("/api/ticket/update_consignment_ticket",S).then(f=>{d.page_loader=!1,d.updateStatus="",this.parent_component!="tickets"&&d.get_tickets(S.id),d.is_ticket_changed=!1,d.$swal.fire({icon:"success",text:k})}).catch(function(f){var r;d.page_loader=!1,d.$swal.fire({icon:"error",text:f.response.status===422&&((r=f.response.data)==null?void 0:r.errors)?Object.values(f.response.data.errors).flat().join("."):f.message})})},confirmation_alert(S,k,d,f,r,b,g){r=r!=null?r:"warning",b=b!=null?b:"Are you sure? You want to save "+d+".",g=g!=null?g:"Yes, Save it!",f=f!=null?f:d+" has been saved successfully.",this.$swal.fire({text:b,icon:r,showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:g}).then(_=>{_.isConfirmed&&k(S,f)})},validateCN(S){let k=this,d=!0;$("."+S).each(function(){$(this).val()==""||$(this).val()==" "||$(this).val()==null?($(this).addClass("border-2 border-danger"),d=!1):$(this).removeClass("border-2 border-danger")}),d?(k.temp.cn_detail={},axios.get("/api/activity/get_consignment_detail",{params:{consignment_number:k.temp.selected_cn,store_id:k.temp.selected_store}}).then(function(f){f.data.hasOwnProperty("data")&&(k.temp.cn_detail=f.data.data)}).catch(function(f){console.log(f)})):k.$swal.fire("Please select store","","error")},nextStep(S){let k=this,d=!0;$("."+S).each(function(){$(this).val()==""||$(this).val()==" "||$(this).val()==null?($(this).addClass("border-2 border-danger"),d=!1):$(this).removeClass("border-2 border-danger")}),d?($(".modal").modal("hide"),$("#"+this.parent_component+"_new_ticket").modal("show")):k.$swal.fire("Please select store","","error")},get_priority_by_id(S){var k=this.ticket_priority.find(d=>d.value==S);return k.hasOwnProperty("name")?k.name:"-"}},mounted(){(this.consignment.hasOwnProperty("consignment_id")&&this.consignment.consignment_id!==""||this.consignment.hasOwnProperty("ticket")&&this.consignment.ticket!=[]&&this.trigger_function===!0)&&(this.parent_component=="tickets"?Object.keys(this.consignment.ticket).length>0&&(this.ticket=this.consignment.ticket,this.ticket_id=this.ticket.trackid,this.ticket_list=[this.ticket],this.selected_ticket_id=this.ticket.id,this.get_ticket_replies()):this.get_tickets())}},Be={id:"preloader"},Ce={key:0,class:"row justify-content-center"},Fe={key:0,class:"col-3"},Ue={class:"card shadow-sm",style:{"max-height":"73vh",height:"100%"}},He={class:"card-header"},ze={class:"card-body",style:{"overflow-y":"auto"}},Ke={key:1,class:"table text-truncate table-clickable table-bordered mb-0 table-sm"},Ve=["onClick"],Ze={class:"d-inline-block text-truncate",style:{"margin-top":"5px","margin-bottom":"0px","max-width":"280px"}},We={key:0,class:"fa fa-check me-1 text-success"},Ge={key:1,class:"justify-content-center align-items-center align-self-center align-content-center"},Ye={key:0,class:"card shadow-sm",style:{"margin-bottom":"10px"}},Qe={class:"card-header"},Xe={style:{"margin-bottom":"0rem"}},Je={class:"float-end small"},$e={class:"card-body",style:{"max-height":"14rem","overflow-y":"auto"}},tn={class:"row"},en={class:"col-6"},nn=["href"],rn={key:0},on={class:"badge bg-soft-danger text-black text-uppercase ms-1"},ln={key:1},an={class:"badge bg-soft-danger text-black text-uppercase ms-1"},sn={class:"col-6"},un={class:"d-flex align-items-center"},fn=["disabled"],cn=["value"],dn={class:"d-flex align-items-center"},hn=["value"],vn={class:"d-flex align-items-center"},pn=["disabled"],yn=["value"],mn={class:"col-12"},gn={class:"card shadow-sm",style:{"max-height":"80vh"}},bn={key:1,class:"card-body"},_n={key:0,class:"conversation-list","data-simplebar":"init",style:{"max-height":"28vh"}},kn={class:"simplebar-wrapper",style:{margin:"0px -15px"}},On={class:"simplebar-mask"},En={class:"simplebar-offset",style:{right:"0px",bottom:"0px"}},wn={class:"simplebar-content-wrapper",style:{height:"auto",overflow:"hidden scroll",display:"flex","flex-direction":"column-reverse"}},An={class:"simplebar-content",style:{padding:"0px 15px"}},Tn={class:"conversation-text"},Nn={class:"ctext-wrap"},xn=["onClick"],Sn=["onClick"],Pn={key:0,class:"mt-2"},Ln=["onClick"],qn={key:3,class:"card-footer",style:{"background-color":"white"}},Rn={class:"mt-1 mb-1 row"},jn={class:"col-9",style:{height:"100%"}},Mn={class:"col-2"},In=["disabled"],Dn={key:1,class:"row"},Bn={class:"col text-center"},Cn=["id"],Fn={class:"modal-dialog modal-dialog-scrollable modal-dialog-centered"},Un={class:"modal-content"},Hn={class:"modal-header bg-primary text-white"},zn={class:"modal-body"},Kn={class:"row mb-2"},Vn={class:"col"},Zn=["value"],Wn={class:"row mb-2"},Gn={class:"col"},Yn={class:"form-check"},Qn={key:0,class:"row"},Xn={class:"col"},Jn={class:"input-group mb-3"},$n={class:"input-group-append"},tr=["disabled"],er={key:1,class:"row"},nr={class:"col"},rr={class:"table"},ir={key:0},or={class:"text-capitalize"},lr={class:"text-capitalize"},ar={class:"text-capitalize"},sr={key:1},ur={class:"modal-footer"},fr=["disabled"],cr=["id"],dr={class:"modal-dialog modal-dialog-scrollable modal-dialog-centered"},hr={class:"modal-content"},vr={class:"modal-header bg-primary text-white"},pr={class:"modal-body"},yr=["value"],mr=["value"],gr={key:0},br=["value"],_r={class:"modal-footer"};function kr(S,k,d,f,r,b){const g=It("DataLoader"),_=It("quill-editor"),y=It("NoData"),m=It("VueMultiselect");return et(),nt(kt,null,[gt(z("div",Be,k[35]||(k[35]=[z("div",{id:"loader"},null,-1)]),512),[[ge,r.page_loader]]),r.ticket_list.length>0?(et(),nt("div",Ce,[d.parent_component!=="tickets"?(et(),nt("div",Fe,[z("div",Ue,[z("div",He,[k[37]||(k[37]=z("i",{class:"fa fa-ticket"},null,-1)),k[38]||(k[38]=ht(" Tickets ")),z("button",{class:"btn btn-sm btn-primary border-primary float-end","data-bs-toggle":"tooltip","data-bs-placement":"top",type:"button",onClick:k[0]||(k[0]=i=>b.openModal(d.popup_name))},k[36]||(k[36]=[z("i",{class:"fa fa-plus"},null,-1),ht(" New Ticket ")]))]),z("div",ze,[r.ticket_loader?(et(),Rt(g,{key:0})):(et(),nt("table",Ke,[z("tbody",null,[r.ticket_list.length>0?(et(!0),nt(kt,{key:0},Ot(r.ticket_list,(i,a)=>(et(),nt("tr",null,[(et(),nt("td",{class:jt(["px-3 text-capitalize",i.trackid===r.ticket_id?"bg-soft-success":""]),key:i.trackid,onClick:t=>{r.ticket_id=i.trackid,r.ticket=JSON.parse(JSON.stringify(i)),r.is_ticket_changed=!1,this.selected_ticket_id=i.id,b.get_ticket_replies()}},[z("p",Ze,[i.status=="3"?(et(),nt("i",We)):bt("",!0),z("b",null,"# "+ft(i.trackid)+" :: "+ft(b.get_priority_by_id(i.priority)),1),k[39]||(k[39]=ht()),k[40]||(k[40]=z("br",null,null,-1)),z("small",null,ft(i.subject.toUpperCase()),1)])],10,Ve))]))),256)):(et(),nt("tr",Ge,k[41]||(k[41]=[z("td",{colspan:"2",class:"text-center"}," No Tickets found. ",-1)])))])]))])])])):bt("",!0),z("div",{class:jt(d.parent_component!=="tickets"?"col-9":"col-12")},[r.ticket_list.length>0?(et(),nt("div",Ye,[z("div",Qe,[z("h6",Xe,[k[43]||(k[43]=z("i",{class:"fa fa-ticket-simple text-success"}
54,null,-1)),ht(" "+ft(r.ticket.subject.toUpperCase())+" ",1),z("span",Je,ft(r.ticket.dt),1),r.is_ticket_changed&&r.ticket.status!==3?(et(),nt("button",{key:0,class:"btn btn-sm btn-primary border-primary float-end me-2",onClick:k[1]||(k[1]=i=>b.confirmation_alert(r.ticket,b.updateTicket,"Update Ticket","Ticket has been updated successfully.",null,"Are you sure you want to update ticket","Yes!"))},k[42]||(k[42]=[z("i",{class:"fa fa-ticket"},null,-1),ht(" Update Ticket ")]))):bt("",!0)])]),z("div",$e,[z("div",tn,[z("div",en,[z("h6",null,[k[44]||(k[44]=z("b",null,"Tracking Id:",-1)),k[45]||(k[45]=ht()),z("a",{href:r.helpdesk_base_url+r.ticket.trackid,target:"_blank"},ft(r.ticket.trackid),9,nn)]),z("h6",null,[k[46]||(k[46]=z("b",null,"Name:",-1)),ht(" "+ft(r.ticket.name),1)]),z("h6",null,[k[47]||(k[47]=z("b",null,"Email:",-1)),ht(" "+ft(r.ticket.email),1)]),r.ticket.hasOwnProperty("consignment_ticket")&&r.ticket.consignment_ticket.assigned_to!=null&&r.ticket.consignment_ticket.assigned_to.length>0?(et(),nt("h6",rn,[k[48]||(k[48]=z("b",null,"Assigned To:",-1)),k[49]||(k[49]=ht()),(et(!0),nt(kt,null,Ot(r.ticket.consignment_ticket.assigned_to,i=>(et(),nt("span",on,ft(i),1))),256))])):bt("",!0),d.consignment.hasOwnProperty("consignment_ticket")&&d.consignment.consignment_ticket.assigned_to!=null&&d.consignment.consignment_ticket.assigned_to.length>0?(et(),nt("h6",ln,[k[50]||(k[50]=z("b",null,"Assigned To:",-1)),k[51]||(k[51]=ht()),(et(!0),nt(kt,null,Ot(d.consignment.consignment_ticket.assigned_to,i=>(et(),nt("span",an,ft(i),1))),256))])):bt("",!0)]),z("div",sn,[z("div",un,[k[52]||(k[52]=z("label",{class:"me-5",for:"priority"},[z("b",null,"Priority:")],-1)),gt(z("select",{disabled:r.ticket.status===3,class:"form-control form-control-sm mb-1","onUpdate:modelValue":k[2]||(k[2]=i=>r.ticket.priority=i),id:"priority",onChange:k[3]||(k[3]=i=>b.changeInTicket()),style:{"max-width":"200px"}},[(et(!0),nt(kt,null,Ot(d.ticket_priority,i=>(et(),nt("option",{value:i.value},ft(i.name),9,cn))),256))],40,fn),[[xt,r.ticket.priority]])]),z("div",dn,[k[53]||(k[53]=z("label",{class:"me-5",for:"status"},[z("b",null,"Status:")],-1)),gt(z("select",{disabled:"disabled",class:"form-control form-control-sm mb-1 ms-2 me-1","onUpdate:modelValue":k[4]||(k[4]=i=>r.ticket.status=i),id:"status",onChange:k[5]||(k[5]=i=>b.changeInTicket()),style:{"max-width":"200px"}},[(et(!0),nt(kt,null,Ot(d.ticket_statuses,i=>(et(),nt("option",{value:i.value},ft(i.name),9,hn))),256))],544),[[xt,r.ticket.status]]),r.ticket.status===3?(et(),nt("span",{key:0,style:{"text-decoration":"underline",color:"#0A3551",cursor:"pointer"},onClick:k[6]||(k[6]=i=>{r.updateStatus=4,b.confirmation_alert(r.ticket,b.updateTicket,"Re Open Ticket","Ticket has been Re opened.",null,"Are you sure you want to re open ticket","Yes!")})},"Re-Open Ticket")):(et(),nt("span",{key:1,style:{"text-decoration":"underline",color:"#0A3551",cursor:"pointer"},onClick:k[7]||(k[7]=i=>{r.updateStatus=3,b.confirmation_alert(r.ticket,b.updateTicket,"Resolved Ticket","Ticket has been marked as resolved.",null,"Are you sure you want to mark ticket as resolved","Yes!")})},"Mark as Resolved"))]),z("div",vn,[k[54]||(k[54]=z("label",{class:"me-4",for:"category"},[z("b",null,"Category:")],-1)),gt(z("select",{disabled:r.ticket.status===3,class:"form-control form-control-sm ms-2 mb-2","onUpdate:modelValue":k[8]||(k[8]=i=>r.ticket.category=i),id:"category",onChange:k[9]||(k[9]=i=>b.changeInTicket()),style:{"max-width":"200px"}},[(et(!0),nt(kt,null,Ot(d.ticket_categories,i=>(et(),nt("option",{value:i.id},ft(i.name),9,yn))),256))],40,pn),[[xt,r.ticket.category]])])]),z("div",mn,[z("h6",null,[k[55]||(k[55]=z("b",null,"Message:",-1)),ht(" \xA0"+ft(b.removeHtmlTagsAndEntities(r.ticket.message)),1)])])])])])):bt("",!0),z("div",gn,[k[63]||(k[63]=z("div",{class:"card-header"},[z("h6",{style:{"margin-bottom":"0rem"}},[z("i",{class:"fa fa-comment-dots text-success"}),ht(" Messages ")])],-1)),r.reply_loader?(et(),Rt(g,{key:0})):r.ticket_list.length>0?(et(),nt("div",bn,[r.ticket_data.replies.length>0?(et(),nt("ul",_n,[z("div",kn,[k[59]||(k[59]=z("div",{class:"simplebar-height-auto-observer-wrapper"},[z("div",{class:"simplebar-height-auto-observer"})],-1)),z("div",On,[z("div",En,[z("div",wn,[z("div",An,[(et(!0),nt(kt,null,Ot(r.ticket_data.replies,(i,a)=>(et(),nt("li",{class:jt(i.replied!=null&&i.replied.user!=null&&i.replied.user.id===S.$page.props.user.id?"clearfix odd":"clearfix")},[k[58]||(k[58]=z("div",{class:"chat-avatar"},[z("img",{src:"https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png",alt:"avatar",class:"rounded-circle"})],-1)),z("div",Tn,[z("div",Nn,[z("i",null,[ht(ft(i.name)+" ",1),z("small",null,ft(i.reply_date),1),i.replied!=null&&i.replied.user!=null&&i.replied.user.id===S.$page.props.user.id&&i.edit_able?(et(),nt("small",{key:0,onClick:t=>{r.ticket_data.edit_reply=i,r.reply_edit_enabled=a+i.replyto},style:{cursor:"pointer"}}," . Edit",8,xn)):bt("",!0),i.replied!=null&&i.replied.user!=null&&i.replied.user.id===S.$page.props.user.id&&i.edit_able?(et(),nt("small",{key:1,onClick:t=>{r.ticket_data.edit_reply=i,b.save_reply(r.ticket_list.find(e=>e.trackid==r.ticket_id).id,"delete",i.id)},style:{cursor:"pointer"}}," . Delete",8,Sn)):bt("",!0)]),z("p",null,ft(b.removeHtmlTagsAndEntities(i.message)),1)]),r.reply_edit_enabled===a+i.replyto?(et(),nt("div",Pn,[z("button",{class:"ms-1 btn btn-sm btn-outline-primary float-end",onClick:k[10]||(k[10]=t=>r.reply_edit_enabled=null)},k[56]||(k[56]=[z("i",{class:"fa fa-close"},null,-1)])),z("button",{class:"ms-1 btn btn-sm btn-outline-primary float-end",onClick:t=>{r.reply_edit_enabled=null,b.save_reply(r.ticket_list.find(e=>e.trackid===r.ticket_id).id,"put",i.id)}},k[57]||(k[57]=[z("i",{class:"fa fa-save"},null,-1)]),8,Ln),St(_,{ref_for:!0,ref:"edit_reply_editor",theme:"snow",toolbar:r.toolbar,content:r.ticket_data.edit_reply.message,"onUpdate:content":k[11]||(k[11]=t=>r.ticket_data.edit_reply.message=t),"content-type":"html"},null,8,["toolbar","content"])])):bt("",!0)])],2))),256))])])])]),k[60]||(k[60]=z("div",{class:"simplebar-placeholder",style:{width:"726px",height:"862px"}},null,-1))])])):(et(),Rt(y,{key:1,text_heading:"No replies Found",hide_data:!0}))])):(et(),Rt(y,{key:2,text_heading:"No tickets Found",hide_data:!0})),r.ticket_list.length>0?(et(),nt("div",qn,[z("div",Rn,[k[62]||(k[62]=z("div",{class:"col-1"},[z("img",{src:"https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png",alt:"avatar",height:"60",class:"rounded-circle"})],-1)),z("div",jn,[St(_,{style:{height:"60%"},ref:"submit_reply_editor",theme:"snow",content:r.ticket_data.ticket_reply.message,"onUpdate:content":k[12]||(k[12]=i=>r.ticket_data.ticket_reply.message=i),toolbar:r.toolbar,"content-type":"html"},null,8,["content","toolbar"])]),z("div",Mn,[z("button",{class:"btn btn-sm btn-primary border-primary mt-5",disabled:r.ticket.status===3,onClick:k[13]||(k[13]=i=>{r.ticket_data.edit_reply.message=r.ticket_data.ticket_reply.message,b.save_reply(r.ticket_list.find(a=>a.trackid===r.ticket_id).id,"post",null)})},k[61]||(k[61]=[z("span",{class:"mdi mdi-send"},null,-1),ht(" Reply ")]),8,In)])])])):bt("",!0)])],2)])):(et(),nt("div",Dn,[St(y,{text_heading:"No tickets Found",hide_data:!0}),z("div",Bn,[z("button",{class:"btn btn-sm btn-primary border-primary","data-bs-toggle":"tooltip","data-bs-placement":"top",type:"button",onClick:k[14]||(k[14]=i=>b.openModal(d.popup_name))},k[64]||(k[64]=[z("i",{class:"fa fa-plus"},null,-1),ht(" New Ticket ")]))])])),z("div",{class:"modal modal-lg edit-modal overflow-auto",id:d.parent_component+"_select_store","data-bs-backdrop":"static","data-bs-keyboard":"false",tabindex:"-1","aria-labelledby":"select_store","aria-hidden":"true",style:{"z-index":"1055"}},[z("div",Fn,[z("div",Un,[z("div",Hn,[k[65]||(k[65]=z("h1",{class:"modal-title fs-5 text-capitalize"},[z("i",{class:"fa fa-ticket"}),ht(" Create New Ticket")],-1)),z("button",{type:"button",class:"btn-close btn-close-white","data-bs-dismiss":"modal","aria-label":"Close",onClick:k[15]||(k[15]=(...i)=>b.reset&&b.reset(...i))})]),z("div",zn,[z("div",Kn,[z("div",Vn,[k[67]||(k[67]=z("label",{class:"h6 mt-3"},"Store",-1)),gt(z("select",{class:jt(["form-select form-select-sm",d.parent_component+"_ticket_required"]),"onUpdate:modelValue":k[16]||(k[16]=i=>r.temp.selected_store=i)},[k[66]||(k[66]=z("option",{value:""},"Select Store",-1)),(et(!0),nt(kt,null,Ot(d.stores,i=>(et(),nt("option",{key:i.id,value:i.id},ft(i.name),9,Zn))),128))],2),[[xt,r.temp.selected_store]])])]),z("div",Wn,[z("div",Gn,[z("div",Yn,[gt(z("input",{class:"form-check-input",type:"checkbox",value:"",id:"CNChkbx","onUpdate:modelValue":k[17]||(k[17]=i=>r.temp.cn_chkbx=i)},null,512),[[Xt,r.temp.cn_chkbx]]),k[68]||(k[68]=z("label",{class:"form-check-label",for:"CNChkbx"}," With Consignment ",-1))])])]),r.temp.cn_chkbx?(et(),nt("div",Qn,[z("div",Xn,[z("div",Jn,[gt(z("input",{type:"text",class:"form-control",placeholder:"CN#","aria-label":"CN","aria-describedby":"basic-addon2","onUpdate:modelValue":k[18]||(k[18]=i=>r.temp.selected_cn=i)},null,512),[[Mt,r.temp.selected_cn]]),z("div",$n,[z("button",{class:"btn btn-primary",type:"button",onClick:k[19]||(k[19]=i=>b.validateCN(d.parent_component+"_ticket_required")),disabled:!r.temp.selected_cn},"Search",8,tr)])])])])):bt("",!0),r.temp.cn_chkbx?(et(),nt("div",er,[z("div",nr,[k[71]||(k[71]=z("hr",null,null,-1)),z("table",rr,[k[70]||(k[70]=z("thead",null,[z("tr",null,[z("th",{scope:"col"},"Store Order ID"),z("th",{scope:"col"},"State"),z("th",{scope:"col"},"Source"),z("th",{scope:"col"},"Destination")])],-1)),Object.keys(r.temp.cn_detail).length>0?(et(),nt("tbody",ir,[z("tr",null,[z("td",null,ft(r.temp.cn_detail.store_order_id),1),z("td",or,ft(r.temp.cn_detail.state),1),z("td",lr,ft(r.temp.cn_detail.shipper_city),1),z("td",ar,ft(r.temp.cn_detail.consignee_city),1)])])):(et(),nt("tbody",sr,k[69]||(k[69]=[z("tr",null,[z("th",{scope:"col",colspan:"4",class:"text-center"},"No Data Found.!")],-1)])))])])])):bt("",!0)]),z("div",ur,[z("button",{class:"btn btn-sm btn-primary",onClick:k[20]||(k[20]=i=>b.nextStep(d.parent_component+"_ticket_required")),disabled:r.temp.cn_chkbx&&!r.temp.cn_detail.hasOwnProperty("consignment_id")},k[72]||(k[72]=[z("i",{class:"fa fa-arrow-right"},null,-1),ht(" Next ")]),8,fr),z("button",{type:"button",class:"btn btn-secondary btn-sm","data-bs-dismiss":"modal",onClick:k[21]||(k[21]=(...i)=>b.reset&&b.reset(...i))},"Close")])])])],8,Cn),z("div",{class:"modal modal-lg edit-modal overflow-auto",id:d.parent_component+"_new_ticket","data-bs-backdrop":"static","data-bs-keyboard":"false",tabindex:"-1","aria-labelledby":"new_ticket","aria-hidden":"true",style:{"z-index":"1055"}},[z("div",dr,[z("div",hr,[z("div",vr,[k[73]||(k[73]=z("h1",{class:"modal-title fs-5 text-capitalize"},[z("i",{class:"fa fa-ticket"}),ht(" Create New Ticket")],-1)),z("button",{type:"button",class:"btn-close btn-close-white","data-bs-dismiss":"modal","aria-label":"Close",onClick:k[22]||(k[22]=(...i)=>b.reset&&b.reset(...i))})]),z("div",pr,[k[76]||(k[76]=z("label",{class:"h6"},"Name",-1)),gt(z("input",{type:"text",class:"form-control form-control-sm shadow-sm mb-3","onUpdate:modelValue":k[23]||(k[23]=i=>r.ticket_data.ticket.name=i),placeholder:"Enter Name"},null,512),[[Mt,r.ticket_data.ticket.name]]),k[77]||(k[77]=z("label",{class:"h6"},"Email",-1)),gt(z("input",{type:"text",class:"form-control form-control-sm shadow-sm mb-3","onUpdate:modelValue":k[24]||(k[24]=i=>r.ticket_data.ticket.email=i),placeholder:"Write enter email"},null,512),[[Mt,r.ticket_data.ticket.email]]),k[78]||(k[78]=z("label",{class:"h6"},"Category",-1)),gt(z("select",{class:"form-control form-control-sm mb-3","onUpdate:modelValue":k[25]||(k[25]=i=>r.ticket_data.ticket.category=i)},[k[74]||(k[74]=z("option",{value:"0"},"Select Category",-1)),(et(!0),nt(kt,null,Ot(d.ticket_categories,i=>(et(),nt("option",{value:i.id},ft(i.name),9,yr))),256))],512),[[xt,r.ticket_data.ticket.category]]),k[79]||(k[79]=z("label",{class:"h6"},"Priority",-1)),gt(z("select",{class:"form-control form-control-sm mb-3","onUpdate:modelValue":k[26]||(k[26]=i=>r.ticket_data.ticket.priority=i)},[(et(!0),nt(kt,null,Ot(d.ticket_priority,i=>(et(),nt("option",{value:i.value},ft(i.name),9,mr))),256))],512),[[xt,r.ticket_data.ticket.priority]]),k[80]||(k[80]=z("label",{class:"h6"},"Subject",-1)),gt(z("input",{type:"text",class:"form-control form-control-sm shadow-sm mb-3","onUpdate:modelValue":k[27]||(k[27]=i=>r.ticket_data.ticket.subject=i),placeholder:"Write subject of ticket"},null,512),[[Mt,r.ticket_data.ticket.subject]]),k[81]||(k[81]=z("label",{class:"h6"},"Message",-1)),St(_,{ref:"new_ticket_editor",theme:"snow",toolbar:r.toolbar,content:r.ticket_data.ticket.message,"onUpdate:content":k[28]||(k[28]=i=>r.ticket_data.ticket.message=i),"content-type":"html",style:{height:"25% !important"}},null,8,["toolbar","content"]),k[82]||(k[82]=z("label",{class:"h6 mt-3"},"Assigned To",-1)),St(m,{class:"shadow-sm rounded",modelValue:r.ticket_data.ticket.assigned_to,"onUpdate:modelValue":k[29]||(k[29]=i=>r.ticket_data.ticket.assigned_to=i),options:r.assigned_to_list,placeholder:"Select value",multiple:!0,label:"name","track-by":"name",limit:3,onSelect:k[30]||(k[30]=i=>{b.getStoreUsersList()}),onRemove:k[31]||(k[31]=i=>{b.getStoreUsersList()})},null,8,["modelValue","options"]),r.show_store_user?(et(),nt("div",gr,[k[75]||(k[75]=z("label",{class:"h6 mt-3"},"Store Users",-1)),(et(!0),nt(kt,null,Ot(r.store_users,i=>(et(),nt("div",{key:i.id},[gt(z("input",{type:"checkbox",value:i.email,"onUpdate:modelValue":k[32]||(k[32]=a=>r.ticket_data.ticket.selected_users=a)},null,8,br),[[Xt,r.ticket_data.ticket.selected_users]]),ht(" "+ft(i.name),1)]))),128))])):bt("",!0)]),z("div",_r,[z("button",{class:"btn btn-sm btn-primary",onClick:k[33]||(k[33]=i=>b.confirmation_alert(r.ticket_data,b.save_ticket,"Save Ticket","Ticket has been saved successfully.",null,"Are you sure you want to save ticket","Yes!"))},k[83]||(k[83]=[z("i",{class:"fa fa-ticket"},null,-1),ht(" Submit Ticket ")])),z("button",{type:"button",class:"btn btn-secondary btn-sm","data-bs-dismiss":"modal",onClick:k[34]||(k[34]=(...i)=>b.reset&&b.reset(...i))},"Close")])])])],8,cr)],64)}const Nr=Oe(De,[["render",kr],["__scopeId","data-v-57f4e75a"]]);export{Nr as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.