1/*! For license information please see 5708-02b53d.bundle.js.LICENSE.txt */ 2(self.webpackChunksmarpshare_frontend=self.webpackChunksmarpshare_frontend||[]).push([[5708],{2404:(module,__unused_webpack_exports,__webpack_require__)=>{var baseIsEqual=__webpack_require__(60270);module.exports=function(value,other){return baseIsEqual(value,other)}},5184:module=>{"use strict";module.exports={}},20819:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__(96540);var ReactDOMServer=__webpack_require__(65848),createClass=__webpack_require__(52306),find=__webpack_require__(7309),isEqual=__webpack_require__(2404),T=__webpack_require__(74545),DOM=__webpack_require__(59918),defaultColors=["rgb( 0, 0, 0)","rgb(230, 0, 0)","rgb(255, 153, 0)","rgb(255, 255, 0)","rgb( 0, 138, 0)","rgb( 0, 102, 204)","rgb(153, 51, 255)","rgb(255, 255, 255)","rgb(250, 204, 204)","rgb(255, 235, 204)","rgb(255, 255, 204)","rgb(204, 232, 204)","rgb(204, 224, 245)","rgb(235, 214, 255)","rgb(187, 187, 187)","rgb(240, 102, 102)","rgb(255, 194, 102)","rgb(255, 255, 102)","rgb(102, 185, 102)","rgb(102, 163, 224)","rgb(194, 133, 255)","rgb(136, 136, 136)","rgb(161, 0, 0)","rgb(178, 107, 0)","rgb(178, 178, 0)","rgb( 0, 97, 0)","rgb( 0, 71, 178)","rgb(107, 36, 178)","rgb( 68, 68, 68)","rgb( 92, 0, 0)","rgb(102, 61, 0)","rgb(102, 102, 0)","rgb( 0, 55, 0)","rgb( 0, 41, 102)","rgb( 61, 20, 10)"].map((function(color){return{value:color}})),defaultItems=[{label:"Formats",type:"group",items:[{label:"Font",type:"font",items:[{label:"Sans Serif",value:"sans-serif",selected:!0},{label:"Serif",value:"serif"},{label:"Monospace",value:"monospace"}]},{label:"Size",type:"size",items:[{label:"Small",value:"10px"},{label:"Normal",value:"13px",selected:!0},{label:"Large",value:"18px"},{label:"Huge",value:"32px"}]},{label:"Alignment",type:"align",items:[{label:"",value:"",selected:!0},{label:"",value:"center"},{label:"",value:"right"},{label:"",value:"justify"}]}]},{label:"Text",type:"group",items:[{type:"bold",label:"Bold"},{type:"italic",label:"Italic"},{type:"strike",label:"Strike"},{type:"underline",label:"Underline"},{type:"color",label:"Color",items:defaultColors},{type:"background",label:"Background color",items:defaultColors},{type:"link",label:"Link"}]},{label:"Blocks",type:"group",items:[{type:"list",value:"bullet"},{type:"list",value:"ordered"}]},{label:"Blocks",type:"group",items:[{type:"image",label:"Image"}]}],QuillToolbar=createClass({displayName:"Quill Toolbar",propTypes:{id:T.string,className:T.string,style:T.object,items:T.array},getDefaultProps:function(){return{items:defaultItems}},componentDidMount:function(){console.warn("QuillToolbar is deprecated. Consider switching to the official Quill toolbar format, or providing your own toolbar instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v1-0-0")},shouldComponentUpdate:function(nextProps,nextState){return!isEqual(nextProps,this.props)},renderGroup:function(item,key){return DOM.span({key:item.label||key,className:"ql-formats"},item.items.map(this.renderItem))},renderChoiceItem:function(item,key){return DOM.option({key:item.label||item.value||key,value:item.value},item.label)},renderChoices:function(item,key){var choiceItems=item.items.map(this.renderChoiceItem),selectedItem=find(item.items,(function(item){return item.selected})),attrs={key:item.label||key,title:item.label,className:"ql-"+item.type,value:selectedItem.value};return DOM.select(attrs,choiceItems)},renderButton:function(item,key){return DOM.button({type:"button",key:item.label||item.value||key,value:item.value,className:"ql-"+item.type,title:item.label},item.children)},renderAction:function(item,key){return DOM.button({key:item.label||item.value||key,className:"ql-"+item.type,title:item.label},item.children)},renderItem:function(item,key){switch(item.type){case"group":return this.renderGroup(item,key);case"font":case"header":case"align":case"size":case"color":case"background":return this.renderChoices(item,key);case"bold":case"italic":case"underline":case"strike":case"link":case"list":case"bullet":case"ordered":case"indent":case"image":case"video":return this.renderButton(item,key);default:return this.renderAction(item,key)}},getClassName:function(){return"quill-toolbar "+(this.props.className||"")},render:function(){var html=this.props.items.map(this.renderItem).map(ReactDOMServer.renderToStaticMarkup).join("");return DOM.div({id:this.props.id,className:this.getClassName(),style:this.props.style,dangerouslySetInnerHTML:{__html:html}})}});module.exports=QuillToolbar,QuillToolbar.defaultItems=defaultItems,QuillToolbar.defaultColors=defaultColors},42426:(module,__unused_webpack_exports,__webpack_require__)=>{var arraySome=__webpack_require__(14248),baseIteratee=__webpack_require__(15389),baseSome=__webpack_require__(90916),isArray=__webpack_require__(56449),isIterateeCall=__webpack_require__(36800);module.exports=function(collection,predicate,guard){var func=isArray(collection)?arraySome:baseSome;return guard&&isIterateeCall(collection,predicate,guard)&&(predicate=void 0),func(collection,baseIteratee(predicate,3))}},45708:(module,__unused_webpack_exports,__webpack_require__)=>{var Quill=__webpack_require__(91574),Component=__webpack_require__(90491);module.exports=Component,module.exports.default=Component,module.exports.Quill=Quill,module.exports.Mixin=__webpack_require__(99633),module.exports.Toolbar=__webpack_require__(20819)},52306:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var React=__webpack_require__(96540),factory=__webpack_require__(81804);if(void 0===React)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var ReactNoopUpdateQueue=(new React.Component).updater;module.exports=factory(React.Component,React.isValidElement,ReactNoopUpdateQueue)},59613:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ReactPropTypesSecret=__webpack_require__(72238);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,module.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret!==ReactPropTypesSecret){var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw err.name="Invariant Violation",err}}function getShim(){return shim}shim.isRequired=shim;var ReactPropTypes={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol
2:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}},59918:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=function(React){function createDOMFactory(type){var factory=React.createElement.bind(null,type);return factory.type=type,factory}return{a:createDOMFactory("a"),abbr:createDOMFactory("abbr"),address:createDOMFactory("address"),area:createDOMFactory("area"),article:createDOMFactory("article"),aside:createDOMFactory("aside"),audio:createDOMFactory("audio"),b:createDOMFactory("b"),base:createDOMFactory("base"),bdi:createDOMFactory("bdi"),bdo:createDOMFactory("bdo"),big:createDOMFactory("big"),blockquote:createDOMFactory("blockquote"),body:createDOMFactory("body"),br:createDOMFactory("br"),button:createDOMFactory("button"),canvas:createDOMFactory("canvas"),caption:createDOMFactory("caption"),cite:createDOMFactory("cite"),code:createDOMFactory("code"),col:createDOMFactory("col"),colgroup:createDOMFactory("colgroup"),data:createDOMFactory("data"),datalist:createDOMFactory("datalist"),dd:createDOMFactory("dd"),del:createDOMFactory("del"),details:createDOMFactory("details"),dfn:createDOMFactory("dfn"),dialog:createDOMFactory("dialog"),div:createDOMFactory("div"),dl:createDOMFactory("dl"),dt:createDOMFactory("dt"),em:createDOMFactory("em"),embed:createDOMFactory("embed"),fieldset:createDOMFactory("fieldset"),figcaption:createDOMFactory("figcaption"),figure:createDOMFactory("figure"),footer:createDOMFactory("footer"),form:createDOMFactory("form"),h1:createDOMFactory("h1"),h2:createDOMFactory("h2"),h3:createDOMFactory("h3"),h4:createDOMFactory("h4"),h5:createDOMFactory("h5"),h6:createDOMFactory("h6"),head:createDOMFactory("head"),header:createDOMFactory("header"),hgroup:createDOMFactory("hgroup"),hr:createDOMFactory("hr"),html:createDOMFactory("html"),i:createDOMFactory("i"),iframe:createDOMFactory("iframe"),img:createDOMFactory("img"),input:createDOMFactory("input"),ins:createDOMFactory("ins"),kbd:createDOMFactory("kbd"),keygen:createDOMFactory("keygen"),label:createDOMFactory("label"),legend:createDOMFactory("legend"),li:createDOMFactory("li"),link:createDOMFactory("link"),main:createDOMFactory("main"),map:createDOMFactory("map"),mark:createDOMFactory("mark"),menu:createDOMFactory("menu"),menuitem:createDOMFactory("menuitem"),meta:createDOMFactory("meta"),meter:createDOMFactory("meter"),nav:createDOMFactory("nav"),noscript:createDOMFactory("noscript"),object:createDOMFactory("object"),ol:createDOMFactory("ol"),optgroup:createDOMFactory("optgroup"),option:createDOMFactory("option"),output:createDOMFactory("output"),p:createDOMFactory("p"),param:createDOMFactory("param"),picture:createDOMFactory("picture"),pre:createDOMFactory("pre"),progress:createDOMFactory("progress"),q:createDOMFactory("q"),rp:createDOMFactory("rp"),rt:createDOMFactory("rt"),ruby:createDOMFactory("ruby"),s:createDOMFactory("s"),samp:createDOMFactory("samp"),script:createDOMFactory("script"),section:createDOMFactory("section"),select:createDOMFactory("select"),small:createDOMFactory("small"),source:createDOMFactory("source"),span:createDOMFactory("span"),strong:createDOMFactory("strong"),style:createDOMFactory("style"),sub:createDOMFactory("sub"),summary:createDOMFactory("summary"),sup:createDOMFactory("sup"),table:createDOMFactory("table"),tbody:createDOMFactory("tbody"),td:createDOMFactory("td"),textarea:createDOMFactory("textarea"),tfoot:createDOMFactory("tfoot"),th:createDOMFactory("th"),thead:createDOMFactory("thead"),time:createDOMFactory("time"),title:createDOMFactory("title"),tr:createDOMFactory("tr"),track:createDOMFactory("track"),u:createDOMFactory("u"),ul:createDOMFactory("ul"),var:createDOMFactory("var"),video:createDOMFactory("video"),wbr:createDOMFactory("wbr"),circle:createDOMFactory("circle"),clipPath:createDOMFactory("clipPath"),defs:createDOMFactory("defs"),ellipse:createDOMFactory("ellipse"),g:createDOMFactory("g"),image:createDOMFactory("image"),line:createDOMFactory("line"),linearGradient:createDOMFactory("linearGradient"),mask:createDOMFactory("mask"),path:createDOMFactory("path"),pattern:createDOMFactory("pattern"),polygon:createDOMFactory("polygon"),polyline:createDOMFactory("polyline"),radialGradient:createDOMFactory("radialGradient"),rect:createDOMFactory("rect"),stop:createDOMFactory("stop"),svg:createDOMFactory("svg"),text:createDOMFactory("text"),tspan:createDOMFactory("tspan")}}(__webpack_require__(96540))},65848:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(72911)},72238:module=>{"use strict";module.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},72911:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var k=__webpack_require__(45228),l=__webpack_require__(96540);function q(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t="function"==typeof Symbol&&Symbol.for,aa=t?Symbol.for("react.portal"):60106,u=t?Symbol.for("react.fragment"):60107,ba=t?Symbol.for("react.strict_mode"):60108,ca=t?Symbol.for("react.profiler"):60114,v=t?Symbol.for("react.provider"):60109,da=t?Symbol.for("react.context"):60110,ea=t?Symbol.for("react.concurrent_mode"):60111,fa=t?Symbol.for("react.forward_ref"):60112,B=t?Symbol.for("react.suspense"):60113,ha=t?Symbol.for("react.suspense_list"):60120,ia=t?Symbol.for("react.memo"):60115,ja=t?Symbol.for("react.lazy"):60116,ka=t?Symbol.for("react.block"):60121,la=t?Symbol.for("react.fundamental"):60117,ma=t?Symbol.for("react.scope"):60119;function C(a){if(null==a)return null;if("function"==typeof a)return a.displayName||a.name||null;if("string"==typeof a)return a;switch(a){case u:return"Fragment";case aa:return"Portal";case ca:return"Profiler";case ba:return"StrictMode";case B:return"Suspense";case ha:return"SuspenseList"}if("object"==typeof a)switch(a.$$typeof){case da:return"Context.Consumer";case v:return"Context.Provider";case fa:var b=a.render;
2return b=b.displayName||b.name||"",a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case ia:return C(a.type);case ka:return C(a.render);case ja:if(a=1===a._status?a._result:null)return C(a)}return null}var D=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;D.hasOwnProperty("ReactCurrentDispatcher")||(D.ReactCurrentDispatcher={current:null}),D.hasOwnProperty("ReactCurrentBatchConfig")||(D.ReactCurrentBatchConfig={suspense:null});var oa={};function E(a,b){for(var c=0|a._threadCount;c<=b;c++)a[c]=a._currentValue2,a._threadCount=c+1}for(var F=new Uint16Array(16),H=0;15>H;H++)F[H]=H+1;F[15]=0;var qa=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ra=Object.prototype.hasOwnProperty,sa={},ta={};function ua(a){return!!ra.call(ta,a)||!ra.call(sa,a)&&(qa.test(a)?ta[a]=!0:(sa[a]=!0,!1))}function J(a,b,c,d,f,g){this.acceptsBooleans=2===b||3===b||4===b,this.attributeName=d,this.attributeNamespace=f,this.mustUseProperty=c,this.propertyName=a,this.type=b,this.sanitizeURL=g}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(a){K[a]=new J(a,0,!1,a,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(a){var b=a[0];K[b]=new J(b,1,!1,a[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(a){K[a]=new J(a,2,!1,a.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(a){K[a]=new J(a,2,!1,a,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(a){K[a]=new J(a,3,!1,a.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(a){K[a]=new J(a,3,!0,a,null,!1)})),["capture","download"].forEach((function(a){K[a]=new J(a,4,!1,a,null,!1)})),["cols","rows","size","span"].forEach((function(a){K[a]=new J(a,6,!1,a,null,!1)})),["rowSpan","start"].forEach((function(a){K[a]=new J(a,5,!1,a.toLowerCase(),null,!1)}));var L=/[\-:]([a-z])/g;function M(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(a){var b=a.replace(L,M);K[b]=new J(b,1,!1,a,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(a){var b=a.replace(L,M);K[b]=new J(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(a){var b=a.replace(L,M);K[b]=new J(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(a){K[a]=new J(a,1,!1,a.toLowerCase(),null,!1)})),K.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(a){K[a]=new J(a,1,!1,a.toLowerCase(),null,!0)}));var xa=/["'&<>]/;function N(a){if("boolean"==typeof a||"number"==typeof a)return""+a;a=""+a;var b=xa.exec(a);if(b){var d,c="",f=0;for(d=b.index;d<a.length;
2d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d)),f=d+1,c+=b}a=f!==d?c+a.substring(f,d):c}return a}function ya(a,b){var d,c=K.hasOwnProperty(a)?K[a]:null;return(d="style"!==a)&&(d=null!==c?0===c.type:2<a.length&&("o"===a[0]||"O"===a[0])&&("n"===a[1]||"N"===a[1])),d||function(a,b,c,d){if(null==b||function(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":return!d&&(null!==c?!c.acceptsBooleans:"data-"!==(a=a.toLowerCase().slice(0,5))&&"aria-"!==a);default:return!1}}(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}(a,b,c,!1)?"":null!==c?(a=c.attributeName,3===(d=c.type)||4===d&&!0===b?a+'=""':(c.sanitizeURL&&(b=""+b),a+'="'+N(b)+'"')):ua(a)?a+'="'+N(b)+'"':""}var Aa="function"==typeof Object.is?Object.is:function(a,b){return a===b&&(0!==a||1/a==1/b)||a!=a&&b!=b},O=null,P=null,Q=null,R=!1,S=!1,U=null,V=0;function W(){if(null===O)throw Error(q(321));return O}function Ba(){if(0<V)throw Error(q(312));return{memoizedState:null,queue:null,next:null}}function Ca(){return null===Q?null===P?(R=!1,P=Q=Ba()):(R=!0,Q=P):null===Q.next?(R=!1,Q=Q.next=Ba()):(R=!0,Q=Q.next),Q}function Da(a,b,c,d){for(;S;)S=!1,V+=1,Q=null,c=a(b,d);return P=O=null,V=0,Q=U=null,c}function Ea(a,b){return"function"==typeof b?b(a):b}function Fa(a,b,c){if(O=W(),Q=Ca(),R){var d=Q.queue;if(b=d.dispatch,null!==U&&void 0!==(c=U.get(d))){U.delete(d),d=Q.memoizedState;do{d=a(d,c.action),c=c.next}while(null!==c);return Q.memoizedState=d,[d,b]}return[Q.memoizedState,b]}return a=a===Ea?"function"==typeof b?b():b:void 0!==c?c(b):b,Q.memoizedState=a,a=(a=Q.queue={last:null,dispatch:null}).dispatch=Ga.bind(null,O,a),[Q.memoizedState,a]}function Ga(a,b,c){if(!(25>V))throw Error(q(301));if(a===O)if(S=!0,a={action:c,next:null},null===U&&(U=new Map),void 0===(c=U.get(b)))U.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function Ha(){}var X=0,Ia={readContext:function(a){var b=X;return E(a,b),a[b]},useContext:function(a){W();var b=X;return E(a,b),a[b]},useMemo:function(a,b){if(O=W(),b=void 0===b?null:b,null!==(Q=Ca())){var c=Q.memoizedState;if(null!==c&&null!==b){a:{var d=c[1];if(null===d)d=!1;else{for(var f=0;f<d.length&&f<b.length;f++)if(!Aa(b[f],d[f])){d=!1;break a}d=!0}}if(d)return c[0]}}return a=a(),Q.memoizedState=[a,b],a},useReducer:Fa,useRef:function(a){O=W();var b=(Q=Ca()).memoizedState;return null===b?(a={current:a},Q.memoizedState=a):b},useState:function(a){return Fa(Ea,a)},useLayoutEffect:function(){},useCallback:function(a){return a},useImperativeHandle:Ha,useEffect:Ha,useDebugValue:Ha,useResponder:function(a,b){return{props:b,responder:a}},useDeferredValue:function(a){return W(),a},useTransition:function(){return W(),[function(a){a()},!1]}},Ja_html="http://www.w3.org/1999/xhtml";function Ka(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var La={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Ma=k({menuitem:!0},La),Y={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Na=["Webkit","ms","Moz","O"];Object.keys(Y).forEach((function(a){Na.forEach((function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1),Y[b]=Y[a]}))}));var Oa=/([A-Z])/g,Pa=/^ms-/,Z=l.Children.toArray,Qa=D.ReactCurrentDispatcher,Ra={listing:!0,pre:!0,textarea:!0},Sa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ta={},Ua={};var Wa=Object.prototype.hasOwnProperty,Xa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ya(a,b){if(void 0===a)throw Error(q(152,C(b)||"Component"))}function Za(a,b,c){function d(d,g){var e=g.prototype&&g.prototype.isReactComponent,f=function(a,b,c,d){if(d&&"object"==typeof(d=a.contextType)&&null!==d)return E(d,c),d[c];if(a=a.contextTypes){for(var f in c={},a)c[f]=b[f];b=c}else b=oa;return b}(g,b,c,e),x=[],h=!1,m={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===x)return null},enqueueReplaceState:function(a,c){h=!0,x=[c]},enqueueSetState:function(a,c){if(null===x)return null;x.push(c)}};if(e){if(e=new g(d.props,f,m),"function"==typeof g.getDerivedStateFromProps){var w=g.getDerivedStateFromProps.call(null,d.props,e.state);null!=w&&(e.state=k({},e.state,w))}}else if(O={},e=g(d.props,f,m),null==(e=Da(g,d.props,e,f))||null==e.render)return void Ya(a=e,g);if(e.props=d.props,e.context=f,e.updater=m,void 0===(m=e.state)&&(e.state=m=null),"function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount)if("function"==typeof e.componentWillMount&&"function"!=typeof g.getDerivedStateFromProps&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&"function"!=typeof g.getDerivedStateFromProps&&e.UNSAFE_componentWillMount(),x.length){m=x;var r=h;if(x=null,h=!1,r&&1===m.length)e.state=m[0];else{w=r?m[0]:e.state;var y=!0;for(r=r?1:0;r<m.length;r++){var p=m[r];null!=(p="function"==typeof p?p.call(e,w,d.props,f):p)&&(y?(y=!1,w=k({},w,p)):k(w,p))}e.state=w}}else x=null;if(Ya(a=e.render(),g),"function"==typeof e.getChildContext&&"object"==typeof(d=g.childContextTypes)){var A=e.getChildContext();for(var T in A)if(!(T in d))throw Error(q(108,C(g)||"Unknown",T))}A&&(b=k({},b,A))}for(;l.isValidElement(a);){var f=a,g=f.type;if("function"!=typeof g)break;d(f,g)}return{child:a,context:b}}var $a=function(){function a(a,b){l.isValidElement(a)?a.type!==u?a=[a]:(a=a.props.children,a=l.isValidElement(a)?[a]:Z(a)):a=Z(a),a={type:null,domNamespace:Ja_html,children:a,childIndex:0,context:oa,footer:""};var c=F[0];if(0===c){var g=F,d=2*(c=g.length);if(!(65536>=d))throw Error(q(304));var h=new Uint16Array(d);for(h.set(g),(F=h)[0]=c+1,g=c;g<d-1;g++)F[g]=g+1;F[d-1]=0}else F[0]=F[c];
2this.threadID=c,this.stack=[a],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=b,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var b=a.prototype;return b.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var a=this.threadID;F[a]=F[0],F[0]=a}},b.pushProvider=function(a){var c=++this.contextIndex,b=a.type._context,g=this.threadID;E(b,g);var x=b[g];this.contextStack[c]=b,this.contextValueStack[c]=x,b[g]=a.props.value},b.popProvider=function(){var a=this.contextIndex,b=this.contextStack[a],f=this.contextValueStack[a];this.contextStack[a]=null,this.contextValueStack[a]=null,this.contextIndex--,b[this.threadID]=f},b.clearProviders=function(){for(var a=this.contextIndex;0<=a;a--)this.contextStack[a][this.threadID]=this.contextValueStack[a]},b.read=function(a){if(this.exhausted)return null;var b=X;X=this.threadID;var c=Qa.current;Qa.current=Ia;try{for(var g=[""],x=!1;g[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var h=this.threadID;F[h]=F[0],F[0]=h;break}var e=this.stack[this.stack.length-1];if(x||e.childIndex>=e.children.length){var I=e.footer;if(""!==I&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===e.type)this.currentSelectValue=null;else if(null!=e.type&&null!=e.type.type&&e.type.type.$$typeof===v)this.popProvider(e.type);else if(e.type===B){this.suspenseDepth--;var G=g.pop();if(x){x=!1;var n=e.fallbackFrame;if(!n)throw Error(q(303));this.stack.push(n),g[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}g[this.suspenseDepth]+=G}g[this.suspenseDepth]+=I}else{var m=e.children[e.childIndex++],w="";try{w+=this.render(m,e.context,e.domNamespace)}catch(r){if(null!=r&&"function"==typeof r.then)throw Error(q(294));throw r}g.length<=this.suspenseDepth&&g.push(""),g[this.suspenseDepth]+=w}}return g[0]}finally{Qa.current=c,X=b}},b.render=function(a,b,f){if("string"==typeof a||"number"==typeof a)return""===(f=""+a)?"":this.makeStaticMarkup?N(f):this.previousWasTextNode?"\x3c!-- --\x3e"+N(f):(this.previousWasTextNode=!0,N(f));if(a=(b=Za(a,b,this.threadID)).child,b=b.context,null===a||!1===a)return"";if(!l.isValidElement(a)){if(null!=a&&null!=a.$$typeof){if((f=a.$$typeof)===aa)throw Error(q(257));throw Error(q(258,f.toString()))}return a=Z(a),this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),""}var c=a.type;if("string"==typeof c)return this.renderDOM(a,b,f);switch(c){case ba:case ea:case ca:case ha:case u:return a=Z(a.props.children),this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),"";case B:throw Error(q(294))}if("object"==typeof c&&null!==c)switch(c.$$typeof){case fa:O={};var d=c.render(a.props,a.ref);return d=Da(c.render,a.props,d,a.ref),d=Z(d),this.stack.push({type:null,domNamespace:f,children:d,childIndex:0,context:b,footer:""}),"";case ia:return a=[l.createElement(c.type,k({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),"";case v:return f={type:a,domNamespace:f,children:c=Z(a.props.children),childIndex:0,context:b,footer:""},this.pushProvider(a),this.stack.push(f),"";case da:c=a.type,d=a.props;var h=this.threadID;return E(c,h),c=Z(d.children(c[h])),this.stack.push({type:a,domNamespace:f,children:c,childIndex:0,context:b,footer:""}),"";case la:throw Error(q(338));case ja:switch(function(a){if(-1===a._status){a._status=0;var b=a._ctor;b=b(),a._result=b,b.then((function(c){0===a._status&&(c=c.default,a._status=1,a._result=c)}),(function(c){0===a._status&&(a._status=2,a._result=c)}))}}(c=a.type),c._status){case 1:return a=[l.createElement(c._result,k({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),"";case 2:throw c._result;default:throw Error(q(295))}case ma:throw Error(q(343))}throw Error(q(130,null==c?c:typeof c,""))},b.renderDOM=function(a,b,f){var c=a.type.toLowerCase();if(f===Ja_html&&Ka(c),!Ta.hasOwnProperty(c)){if(!Sa.test(c))throw Error(q(65,c));Ta[c]=!0}var d=a.props;if("input"===c)d=k({type:void 0},d,{defaultChecked:void 0,defaultValue:void 0,value:null!=d.value?d.value:d.defaultValue,checked:null!=d.checked?d.checked:d.defaultChecked});else if("textarea"===c){var h=d.value;if(null==h){h=d.defaultValue;var e=d.children;if(null!=e){if(null!=h)throw Error(q(92));if(Array.isArray(e)){if(!(1>=e.length))throw Error(q(93));e=e[0]}h=""+e}null==h&&(h="")}d=k({},d,{value:void 0,children:""+h})}else if("select"===c)this.currentSelectValue=null!=d.value?d.value:d.defaultValue,d=k({},d,{value:void 0});else if("option"===c){e=this.currentSelectValue;
2var I=function(a){if(null==a)return a;var b="";return l.Children.forEach(a,(function(a){null!=a&&(b+=a)})),b}(d.children);if(null!=e){var G=null!=d.value?d.value+"":I;if(h=!1,Array.isArray(e)){for(var n=0;n<e.length;n++)if(""+e[n]===G){h=!0;break}}else h=""+e===G;d=k({selected:void 0,children:void 0},d,{selected:h,children:I})}}if(h=d){if(Ma[c]&&(null!=h.children||null!=h.dangerouslySetInnerHTML))throw Error(q(137,c,""));if(null!=h.dangerouslySetInnerHTML){if(null!=h.children)throw Error(q(60));if("object"!=typeof h.dangerouslySetInnerHTML||!("__html"in h.dangerouslySetInnerHTML))throw Error(q(61))}if(null!=h.style&&"object"!=typeof h.style)throw Error(q(62,""))}for(z in h=d,e=this.makeStaticMarkup,I=1===this.stack.length,G="<"+a.type,h)if(Wa.call(h,z)){var m=h[z];if(null!=m){if("style"===z){n=void 0;var w="",r="";for(n in m)if(m.hasOwnProperty(n)){var y=0===n.indexOf("--"),p=m[n];if(null!=p){if(y)var A=n;else if(A=n,Ua.hasOwnProperty(A))A=Ua[A];else{var T=A.replace(Oa,"-$1").toLowerCase().replace(Pa,"-ms-");A=Ua[A]=T}w+=r+A+":",r=n,w+=y=null==p||"boolean"==typeof p||""===p?"":y||"number"!=typeof p||0===p||Y.hasOwnProperty(r)&&Y[r]?(""+p).trim():p+"px",r=";"}}m=w||null}n=null;b:if(y=c,p=h,-1===y.indexOf("-"))y="string"==typeof p.is;else switch(y){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":y=!1;break b;default:y=!0}y?Xa.hasOwnProperty(z)||(n=ua(n=z)&&null!=m?n+'="'+N(m)+'"':""):n=ya(z,m),n&&(G+=" "+n)}}e||I&&(G+=' data-reactroot=""');var z=G;h="",La.hasOwnProperty(c)?z+="/>":(z+=">",h="</"+a.type+">");a:{if(null!=(e=d.dangerouslySetInnerHTML)){if(null!=e.__html){e=e.__html;break a}}else if("string"==typeof(e=d.children)||"number"==typeof e){e=N(e);break a}e=null}return null!=e?(d=[],Ra.hasOwnProperty(c)&&"\n"===e.charAt(0)&&(z+="\n"),z+=e):d=Z(d.children),a=a.type,f=null==f||"http://www.w3.org/1999/xhtml"===f?Ka(a):"http://www.w3.org/2000/svg"===f&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":f,this.stack.push({domNamespace:f,type:c,children:d,childIndex:0,context:b,footer:h}),this.previousWasTextNode=!1,z},a}(),ab={renderToString:function(a){a=new $a(a,!1);try{return a.read(1/0)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new $a(a,!0);try{return a.read(1/0)}finally{a.destroy()}},renderToNodeStream:function(){throw Error(q(207))},renderToStaticNodeStream:function(){throw Error(q(208))},version:"16.14.0"};module.exports=ab.default||ab},74545:(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__(59613)()},81804:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _assign=__webpack_require__(45228),emptyObject=__webpack_require__(5184),_invariant=__webpack_require__(90646);module.exports=function(ReactComponent,isValidElement,ReactNoopUpdateQueue){var injectedMixins=[],ReactClassInterface={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},ReactClassStaticInterface={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},RESERVED_SPEC_KEYS={displayName:function(Constructor,displayName){Constructor.displayName=displayName},mixins:function(Constructor,mixins){if(mixins)for(var i=0;i<mixins.length;i++)mixSpecIntoComponent(Constructor,mixins[i])},childContextTypes:function(Constructor,childContextTypes){Constructor.childContextTypes=_assign({},Constructor.childContextTypes,childContextTypes)},contextTypes:function(Constructor,contextTypes){Constructor.contextTypes=_assign({},Constructor.contextTypes,contextTypes)},getDefaultProps:function(Constructor,getDefaultProps){Constructor.getDefaultProps?Constructor.getDefaultProps=createMergedResultFunction(Constructor.getDefaultProps,getDefaultProps):Constructor.getDefaultProps=getDefaultProps},propTypes:function(Constructor,propTypes){Constructor.propTypes=_assign({},Constructor.propTypes,propTypes)},statics:function(Constructor,statics){!function(Constructor,statics){if(!statics)return;for(var name in statics){var property=statics[name];if(statics.hasOwnProperty(name)){if(_invariant(!(name in RESERVED_SPEC_KEYS),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',name),name in Constructor){var specPolicy=ReactClassStaticInterface.hasOwnProperty(name)?ReactClassStaticInterface[name]:null;return _invariant("DEFINE_MANY_MERGED"===specPolicy,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",name),void(Constructor[name]=createMergedResultFunction(Constructor[name],property))}Constructor[name]=property}}}(Constructor,statics)},autobind:function(){}};function validateMethodOverride(isAlreadyDefined,name){var specPolicy=ReactClassInterface.hasOwnProperty(name)?ReactClassInterface[name]:null;ReactClassMixin.hasOwnProperty(name)&&_invariant("OVERRIDE_BASE"===specPolicy,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method n
2ames do not overlap with React methods.",name),isAlreadyDefined&&_invariant("DEFINE_MANY"===specPolicy||"DEFINE_MANY_MERGED"===specPolicy,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",name)}function mixSpecIntoComponent(Constructor,spec){if(spec){_invariant("function"!=typeof spec,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),_invariant(!isValidElement(spec),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var proto=Constructor.prototype,autoBindPairs=proto.__reactAutoBindPairs;for(var name in spec.hasOwnProperty("mixins")&&RESERVED_SPEC_KEYS.mixins(Constructor,spec.mixins),spec)if(spec.hasOwnProperty(name)&&"mixins"!==name){var property=spec[name],isAlreadyDefined=proto.hasOwnProperty(name);if(validateMethodOverride(isAlreadyDefined,name),RESERVED_SPEC_KEYS.hasOwnProperty(name))RESERVED_SPEC_KEYS[name](Constructor,property);else{var isReactClassMethod=ReactClassInterface.hasOwnProperty(name);if("function"==typeof property&&!isReactClassMethod&&!isAlreadyDefined&&!1!==spec.autobind)autoBindPairs.push(name,property),proto[name]=property;else if(isAlreadyDefined){var specPolicy=ReactClassInterface[name];_invariant(isReactClassMethod&&("DEFINE_MANY_MERGED"===specPolicy||"DEFINE_MANY"===specPolicy),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",specPolicy,name),"DEFINE_MANY_MERGED"===specPolicy?proto[name]=createMergedResultFunction(proto[name],property):"DEFINE_MANY"===specPolicy&&(proto[name]=createChainedFunction(proto[name],property))}else proto[name]=property}}}else;}function mergeIntoWithNoDuplicateKeys(one,two){for(var key in _invariant(one&&two&&"object"==typeof one&&"object"==typeof two,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),two)two.hasOwnProperty(key)&&(_invariant(void 0===one[key],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",key),one[key]=two[key]);return one}function createMergedResultFunction(one,two){return function(){var a=one.apply(this,arguments),b=two.apply(this,arguments);if(null==a)return b;if(null==b)return a;var c={};return mergeIntoWithNoDuplicateKeys(c,a),mergeIntoWithNoDuplicateKeys(c,b),c}}function createChainedFunction(one,two){return function(){one.apply(this,arguments),two.apply(this,arguments)}}function bindAutoBindMethod(component,method){return method.bind(component)}var IsMountedPreMixin={componentDidMount:function(){this.__isMounted=!0}},IsMountedPostMixin={componentWillUnmount:function(){this.__isMounted=!1}},ReactClassMixin={replaceState:function(newState,callback){this.updater.enqueueReplaceState(this,newState,callback)},isMounted:function(){return!!this.__isMounted}},ReactClassComponent=function(){};return _assign(ReactClassComponent.prototype,ReactComponent.prototype,ReactClassMixin),function(spec){var Constructor=function(props,context,updater){this.__reactAutoBindPairs.length&&function(component){for(var pairs=component.__reactAutoBindPairs,i=0;i<pairs.length;i+=2){var autoBindKey=pairs[i],method=pairs[i+1];component[autoBindKey]=bindAutoBindMethod(component,method)}}(this),this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue,this.state=null;var initialState=this.getInitialState?this.getInitialState():null;_invariant("object"==typeof initialState&&!Array.isArray(initialState),"%s.getInitialState(): must return an object or null",Constructor.displayName||"ReactCompositeComponent"),this.state=initialState};for(var methodName in Constructor.prototype=new ReactClassComponent,Constructor.prototype.constructor=Constructor,Constructor.prototype.__reactAutoBindPairs=[],injectedMixins.forEach(mixSpecIntoComponent.bind(null,Constructor)),mixSpecIntoComponent(Constructor,IsMountedPreMixin),mi
2xSpecIntoComponent(Constructor,spec),mixSpecIntoComponent(Constructor,IsMountedPostMixin),Constructor.getDefaultProps&&(Constructor.defaultProps=Constructor.getDefaultProps()),_invariant(Constructor.prototype.render,"createClass(...): Class specification must implement a `render` method."),ReactClassInterface)Constructor.prototype[methodName]||(Constructor.prototype[methodName]=null);return Constructor}}},90491:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var React=__webpack_require__(96540),ReactDOM=__webpack_require__(40961),createClass=__webpack_require__(52306),QuillMixin=__webpack_require__(99633),some=(__webpack_require__(7309),__webpack_require__(42426)),isEqual=__webpack_require__(2404),T=__webpack_require__(74545),DOM=__webpack_require__(59918),QuillComponent=createClass({displayName:"Quill",mixins:[QuillMixin],propTypes:{id:T.string,className:T.string,theme:T.string,style:T.object,readOnly:T.bool,value:T.oneOfType([T.string,T.shape({ops:T.array})]),defaultValue:T.oneOfType([T.str
2ing,T.shape({ops:T.array})]),placeholder:T.string,tabIndex:T.number,bounds:T.oneOfType([T.string,T.element]),onChange:T.func,onChangeSelection:T.func,onFocus:T.func,onBlur:T.func,onKeyPress:T.func,onKeyDown:T.func,onKeyUp:T.func,preserveWhitespace:T.bool,modules:function(props){var isNotObject=T.object.apply(this,arguments);return isNotObject||(props.modules&&props.modules.toolbar&&props.modules.toolbar[0]&&props.modules.toolbar[0].type?new Error("Since v1.0.0, React Quill will not create a custom toolbar for you anymore. Create a toolbar explictly, or let Quill create one. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100"):void 0)},toolbar:function(props){if("toolbar"in props)return new Error("The `toolbar` prop has been deprecated. Use `modules.toolbar` instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100")},formats:function(props){if(T.arrayOf(T.string).apply(this,arguments))return new Error("You cannot specify custom `formats` anymore. Use Parchment instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},styles:function(props){if("styles"in props)return new Error("The `styles` prop has been deprecated. Use custom stylesheets instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},pollInterval:function(props){if("pollInterval"in props)return new Error("The `pollInterval` property does not have any effect anymore. You can safely remove it from your props.See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},children:function(props){if(T.element.apply(this,arguments))return new Error("The Quill editing area can only be composed of a single React element.");if(React.Children.count(props.children)&&"textarea"===React.Children.only(props.children).type)return new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}},dirtyProps:["modules","formats","bounds","theme","children"],cleanProps:["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],getDefaultProps:function(){return{theme:"snow",modules:{}}},isControlled:function(){return"value"in this.props},getInitialState:function(){return{generation:0,value:this.isControlled()?this.props.value:this.props.defaultValue}},componentWillReceiveProps:function(nextProps,nextState){var editor=this.editor;if(editor){if("value"in nextProps){var currentContents=this.getEditorContents(),nextContents=nextProps.value;if(nextContents===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas");this.isEqualValue(nextContents,currentContents)||this.setEditorContents(editor,nextContents)}return"readOnly"in nextProps&&nextProps.readOnly!==this.props.readOnly&&this.setEditorReadOnly(editor,nextProps.readOnly),this.shouldComponentRegenerate(nextProps,nextState)?this.regenerate():void 0}},componentDidMount:function(){if(this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig()),this.quillDelta)return this.editor.setContents(this.quillDelta),this.editor.setSelection(this.quillSelection),this.editor.focus(),void(this.quillDelta=this.quillSelection=null);this.state.value&&this.setEditorContents(this.editor,this.state.value)},componentWillUnmount:function(){var editor;(editor=this.getEditor())&&(this.unhookEditor(editor),this.editor=null)},shouldComponentUpdate:function(nextProps,nextState){var self=this;return this.state.generation!==nextState.generation||some(this.cleanProps,(function(prop){return!isEqual(nextProps[prop],self.props[prop])}))},shouldComponentRegenerate:function(nextProps,nextState){var self=this;return some(this.dirtyProps,(function(prop){return!isEqual(nextProps[prop],self.props[prop])}))},componentWillUpdate:function(nextProps,nextState){this.state.generation!==nextState.generation&&this.componentWillUnmount()},componentDidUpdate:function(prevProps,prevState){this.state.generation!==prevState.generation&&this.componentDidMount()},getEditorConfig:function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},getEditor:function(){return this.editor},getEditingArea:function(){return ReactDOM.findDOMNode(this.editingArea)},getEditorContents:function(){return this.state.value},getEditorSelection:function(){return this.state.selection},isDelta:function(value){return value&&value.ops},isEqualValue:function(value,nextValue){return this.isDelta(value)&&this.isDelta(nextValue)?isEqual(value.ops,nextValue.ops):isEqual(value,nextValue)},regenerate:function(){this.quillDelta=this.editor.getContents(),this.quillSelection=this.editor.getSelection(),this.setState({generation:this.state.generation+1})},renderEditingArea:function(){var self=this,children=this.props.children,preserveWhitespace=this.props.preserveWhitespace,properties={key:this.state.generation,tabIndex:this.props.tabIndex,ref:function(element){self.editingArea=element}},customElement=React.Children.count(children)?React.Children.only(children):null,defaultElement=preserveWhitespace?DOM.pre:DOM.div;return customElement?React.cloneElement(customElement,properties):defaultElement(properties)},render:function(){return DOM.div({id:this.props.id,style:this.props.style,key:this.state.generation,className:["quill"].concat(this.props.className).join(" "),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},onEditorChangeText:function(value,delta,source,editor){var currentContents=this.getEditorContents(),nextContents=this.isDelta(currentContents)?editor.getContents():editor.getHTML();this.isEqualValue(nextContents,currentContents)||(this.lastDeltaChangeSet=delta,this.setState({value:nextContents}),this.props.onChange&&this.props.onChange(value,delta,source,editor))},onEditorChangeSelection:function(nextSelection,source,editor){var currentSelection=this.getEditorSelection(),hasGainedFocus=!currentSelection&&nextSelection,hasLostFocus=currentSelection&&!nextSelection;isEqual(nextSelection,currentSelection)||(this.setState({selection:nextSelection}),this.props.onChangeSelection&&this.props.onChangeSelection(nextSelection,source,editor),hasGainedFocus&&this.props.onFocus?this.props.onFocus(nextSelection,source,editor):hasLostFocus&&this.props.onBlur&&this.props.onBlur(currentSelection,source,editor))},focus:function(){this.editor.focus()},blur:function(){this.setEditorSelection(this.editor,null)}});module.exports=QuillComponent},90916:(module,__unused_webpack_exports,__webpack_require__)=>{var baseEach=__webpack_require__(80909);module.exports=function(collection,predicate){var result;return baseEach(collection,(function(value,index,collection){return!(result=predicate(value,index,collection))})),!!result}},91574:function(module,__unused_webpack_exports,__webpack_require__){var factory,Buffer=__webpack_require__(48287).Buffer;"undefined"!=typeof self&&self,factory=function(){return function(modules){var installedModules={};function __nested_webpack_require_697__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__nested_webpack_require_697__),module.l=!0,module.exports}return __nested_webpack_require_697__.m=modules,__nested_webpack_require_697__.c=installedModules,__nested_webpack_require_697__.d=function(exports,name,getter){__nested_webpack_require_697__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__nested_webpack_require_697__.n=function(module){var getter=module&&module.__esMo
2dule?function(){return module.default}:function(){return module};return __nested_webpack_require_697__.d(getter,"a",getter),getter},__nested_webpack_require_697__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__nested_webpack_require_697__.p="",__nested_webpack_require_697__(__nested_webpack_require_697__.s=109)}([function(module,exports,__nested_webpack_require_2976__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var container_1=__nested_webpack_require_2976__(17),format_1=__nested_webpack_require_2976__(18),leaf_1=__nested_webpack_require_2976__(19),scroll_1=__nested_webpack_require_2976__(45),inline_1=__nested_webpack_require_2976__(46),block_1=__nested_webpack_require_2976__(47),embed_1=__nested_webpack_require_2976__(48),text_1=__nested_webpack_require_2976__(49),attributor_1=__nested_webpack_require_2976__(12),class_1=__nested_webpack_require_2976__(32),style_1=__nested_webpack_require_2976__(33),store_1=__nested_webpack_require_2976__(31),Registry=__nested_webpack_require_2976__(1),Parchment={Scope:Registry.Scope,create:Registry.create,find:Registry.find,query:Registry.query,register:Registry.register,Container:container_1.default,Format:format_1.default,Leaf:leaf_1.default,Embed:embed_1.default,Scroll:scroll_1.default,Block:block_1.default,Inline:inline_1.default,Text:text_1.default,Attributor:{Attribute:attributor_1.default,Class:class_1.default,Style:style_1.default,Store:store_1.default}};exports.default=Parchment},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0});var ParchmentError=function(_super){function ParchmentError(message){var _this=this;return message="[Parchment] "+message,(_this=_super.call(this,message)||this).message=message,_this.name=_this.constructor.name,_this}return __extends(ParchmentError,_super),ParchmentError}(Error);exports.ParchmentError=ParchmentError;var Scope,attributes={},classes={},tags={},types={};function query(query,scope){var match;if(void 0===scope&&(scope=Scope.ANY),"string"==typeof query)match=types[query]||attributes[query];else if(query instanceof Text||query.nodeType===Node.TEXT_NODE)match=types.text;else if("number"==typeof query)query&Scope.LEVEL&Scope.BLOCK?match=types.block:query&Scope.LEVEL&Scope.INLINE&&(match=types.inline);else if(query instanceof HTMLElement){var names=(query.getAttribute("class")||"").split(/\s+/);for(var i in names)if(match=classes[names[i]])break;match=match||tags[query.tagName]}return null==match?null:scope&Scope.LEVEL&match.scope&&scope&Scope.TYPE&match.scope?match:null}exports.DATA_KEY="__blot",function(Scope){Scope[Scope.TYPE=3]="TYPE",Scope[Scope.LEVEL=12]="LEVEL",Scope[Scope.ATTRIBUTE=13]="ATTRIBUTE",Scope[Scope.BLOT=14]="BLOT",Scope[Scope.INLINE=7]="INLINE",Scope[Scope.BLOCK=11]="BLOCK",Scope[Scope.BLOCK_BLOT=10]="BLOCK_BLOT",Scope[Scope.INLINE_BLOT=6]="INLINE_BLOT",Scope[Scope.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",Scope[Scope.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",Scope[Scope.ANY=15]="ANY"}(Scope=exports.Scope||(exports.Scope={})),exports.create=function(input,value){var match=query(input);if(null==match)throw new ParchmentError("Unable to create "+input+" blot");var BlotClass=match,node=input instanceof Node||input.nodeType===Node.TEXT_NODE?input:BlotClass.create(value);return new BlotClass(node,value)},exports.find=function find(node,bubble){return void 0===bubble&&(bubble=!1),null==node?null:null!=node[exports.DATA_KEY]?node[exports.DATA_KEY].blot:bubble?find(node.parentNode,bubble):null},exports.query=query,exports.register=function register(){for(var Definitions=[],_i=0;_i<arguments.length;_i++)Definitions[_i]=arguments[_i];if(Definitions.length>1)return Definitions.map((function(d){return register(d)}));var Definition=Definitions[0];if("string"!=typeof Definition.blotName&&"string"!=typeof Definition.attrName)throw new ParchmentError("Invalid definition");if("abstract"===Definition.blotName)throw new ParchmentError("Cannot register abstract class");
2return types[Definition.blotName||Definition.attrName]=Definition,"string"==typeof Definition.keyName?attributes[Definition.keyName]=Definition:(null!=Definition.className&&(classes[Definition.className]=Definition),null!=Definition.tagName&&(Array.isArray(Definition.tagName)?Definition.tagName=Definition.tagName.map((function(tagName){return tagName.toUpperCase()})):Definition.tagName=Definition.tagName.toUpperCase(),(Array.isArray(Definition.tagName)?Definition.tagName:[Definition.tagName]).forEach((function(tag){null!=tags[tag]&&null!=Definition.className||(tags[tag]=Definition)})))),Definition}},function(module,exports,__nested_webpack_require_9445__){var diff=__nested_webpack_require_9445__(51),equal=__nested_webpack_require_9445__(11),extend=__nested_webpack_require_9445__(3),op=__nested_webpack_require_9445__(20),NULL_CHARACTER=String.fromCharCode(0),Delta=function(ops){Array.isArray(ops)?this.ops=ops:null!=ops&&Array.isArray(ops.ops)?this.ops=ops.ops:this.ops=[]};Delta.prototype.insert=function(text,attributes){var newOp={};return 0===text.length?this:(newOp.insert=text,null!=attributes&&"object"==typeof attributes&&Object.keys(attributes).length>0&&(newOp.attributes=attributes),this.push(newOp))},Delta.prototype.delete=function(length){return length<=0?this:this.push({delete:length})},Delta.prototype.retain=function(length,attributes){if(length<=0)return this;var newOp={retain:length};return null!=attributes&&"object"==typeof attributes&&Object.keys(attributes).length>0&&(newOp.attributes=attributes),this.push(newOp)},Delta.prototype.push=function(newOp){var index=this.ops.length,lastOp=this.ops[index-1];if(newOp=extend(!0,{},newOp),"object"==typeof lastOp){if("number"==typeof newOp.delete&&"number"==typeof lastOp.delete)return this.ops[index-1]={delete:lastOp.delete+newOp.delete},this;if("number"==typeof lastOp.delete&&null!=newOp.insert&&(index-=1,"object"!=typeof(lastOp=this.ops[index-1])))return this.ops.unshift(newOp),this;if(equal(newOp.attributes,lastOp.attributes)){if("string"==typeof newOp.insert&&"string"==typeof lastOp.insert)return this.ops[index-1]={insert:lastOp.insert+newOp.insert},"object"==typeof newOp.attributes&&(this.ops[index-1].attributes=newOp.attributes),this;if("number"==typeof newOp.retain&&"number"==typeof lastOp.retain)return this.ops[index-1]={retain:lastOp.retain+newOp.retain},"object"==typeof newOp.attributes&&(this.ops[index-1].attributes=newOp.attributes),this}}return index===this.ops.length?this.ops.push(newOp):this.ops.splice(index,0,newOp),this},Delta.prototype.chop=function(){var lastOp=this.ops[this.ops.length-1];return lastOp&&lastOp.retain&&!lastOp.attributes&&this.ops.pop(),this},Delta.prototype.filter=function(predicate){return this.ops.filter(predicate)},Delta.prototype.forEach=function(predicate){this.ops.forEach(predicate)},Delta.prototype.map=function(predicate){return this.ops.map(predicate)},Delta.prototype.partition=function(predicate){var passed=[],failed=[];return this.forEach((function(op){(predicate(op)?passed:failed).push(op)})),[passed,failed]},Delta.prototype.reduce=function(predicate,initial){return this.ops.reduce(predicate,initial)},Delta.prototype.changeLength=function(){return this.reduce((function(length,elem){return elem.insert?length+op.length(elem):elem.delete?length-elem.delete:length}),0)},Delta.prototype.length=function(){return this.reduce((function(length,elem){return length+op.length(elem)}),0)},Delta.prototype.slice=function(start,end){start=start||0,"number"!=typeof end&&(end=1/0);for(var ops=[],iter=op.iterator(this.ops),index=0;index<end&&iter.hasNext();){var nextOp;index<start?nextOp=iter.next(start-index):(nextOp=iter.next(end-index),ops.push(nextOp)),index+=op.length(nextOp)}return new Delta(ops)},Delta.prototype.compose=function(other){var thisIter=op.iterator(this.ops),otherIter=op.iterator(other.ops),ops=[],firstOther=otherIter.peek();if(null!=firstOther&&"number"==typeof firstOther.retain&&null==firstOther.attributes){for(var firstLeft=firstOther.retain;"insert"===thisIter.peekType()&&thisIter.peekLength()<=firstLeft;)firstLeft-=thisIter.peekLength(),ops.push(thisIter.next());firstOther.retain-firstLeft>0&&otherIter.next(firstOther.retain-firstLeft)}for(var delta=new Delta(ops);thisIter.hasNext()||otherIter.hasNext();)if("insert"===otherIter.peekType())delta.push(otherIter.next());else if("delete"===thisIter.peekType())delta.push(thisIter.next());else{var length=Math.min(thisIter.peekLength(),otherIter.peekLength()),thisOp=thisIter.next(length),otherOp=otherIter.next(length);if("number"==typeof otherOp.retain){var newOp={};"number"==typeof thisOp.retain?newOp.retain=length:newOp.insert=thisOp.insert;var attributes=op.attributes.compose(thisOp.attributes,otherOp.attributes,"number"==typeof thisOp.retain);if(attributes&&(newOp.attributes=attributes),delta.push(newOp),!otherIter.hasNext()&&equal(delta.ops[delta.ops.length-1],newOp)){var rest=new Delta(thisIter.rest());return delta.concat(rest).chop()}}else"number"==typeof otherOp.delete&&"number"==typeof thisOp.retain&&delta.push(otherOp)}return delta.chop()},Delta.prototype.concat=function(other){var delta=new Delta(this.ops.slice());return other.ops.length>0&&(delta.push(other.ops[0]),delta.ops=delta.ops.concat(other.ops.slice(1))),delta},Delta.prototype.diff=function(other,index){if(this.ops===other.ops)return new Delta;var strings=[this,other].map((function(delta){return delta.map((function(op){if(null!=op.insert)return"string"==typeof op.insert?op.insert:NULL_CHARACTER;throw new Error("diff() called "+(delta===other?"on":"with")+" non-document")})).join("")}
2)),delta=new Delta,diffResult=diff(strings[0],strings[1],index),thisIter=op.iterator(this.ops),otherIter=op.iterator(other.ops);return diffResult.forEach((function(component){for(var length=component[1].length;length>0;){var opLength=0;switch(component[0]){case diff.INSERT:opLength=Math.min(otherIter.peekLength(),length),delta.push(otherIter.next(opLength));break;case diff.DELETE:opLength=Math.min(length,thisIter.peekLength()),thisIter.next(opLength),delta.delete(opLength);break;case diff.EQUAL:opLength=Math.min(thisIter.peekLength(),otherIter.peekLength(),length);var thisOp=thisIter.next(opLength),otherOp=otherIter.next(opLength);equal(thisOp.insert,otherOp.insert)?delta.retain(opLength,op.attributes.diff(thisOp.attributes,otherOp.attributes)):delta.push(otherOp).delete(opLength)}length-=opLength}})),delta.chop()},Delta.prototype.eachLine=function(predicate,newline){newline=newline||"\n";for(var iter=op.iterator(this.ops),line=new Delta,i=0;iter.hasNext();){if("insert"!==iter.peekType())return;var thisOp=iter.peek(),start=op.length(thisOp)-iter.peekLength(),index="string"==typeof thisOp.insert?thisOp.insert.indexOf(newline,start)-start:-1;if(index<0)line.push(iter.next());else if(index>0)line.push(iter.next(index));else{if(!1===predicate(line,iter.next(1).attributes||{},i))return;i+=1,line=new Delta}}line.length()>0&&predicate(line,{},i)},Delta.prototype.transform=function(other,priority){if(priority=!!priority,"number"==typeof other)return this.transformPosition(other,priority);for(var thisIter=op.iterator(this.ops),otherIter=op.iterator(other.ops),delta=new Delta;thisIter.hasNext()||otherIter.hasNext();)if("insert"!==thisIter.peekType()||!priority&&"insert"===otherIter.peekType())if("insert"===otherIter.peekType())delta.push(otherIter.next());else{var length=Math.min(thisIter.peekLength(),otherIter.peekLength()),thisOp=thisIter.next(length),otherOp=otherIter.next(length);if(thisOp.delete)continue;otherOp.delete?delta.push(otherOp):delta.retain(length,op.attributes.transform(thisOp.attributes,otherOp.attributes,priority))}else delta.retain(op.length(thisIter.next()));return delta.chop()},Delta.prototype.transformPosition=function(index,priority){priority=!!priority;for(var thisIter=op.iterator(this.ops),offset=0;thisIter.hasNext()&&offset<=index;){var length=thisIter.peekLength(),nextType=thisIter.peekType();thisIter.next(),"delete"!==nextType?("insert"===nextType&&(offset<index||!priority)&&(index+=length),offset+=length):index-=Math.min(length,index-offset)}return index},module.exports=Delta},function(module,exports){"use strict";var hasOwn=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,defineProperty=Object.defineProperty,gOPD=Object.getOwnPropertyDescriptor,isArray=function(arr){return"function"==typeof Array.isArray?Array.isArray(arr):"[object Array]"===toStr.call(arr)},isPlainObject=function(obj){if(!obj||"[object Object]"!==toStr.call(obj))return!1;var key,hasOwnConstructor=hasOwn.call(obj,"constructor"),hasIsPrototypeOf=obj.constructor&&obj.constructor.prototype&&hasOwn.call(obj.constructor.prototype,"isPrototypeOf");if(obj.constructor&&!hasOwnConstructor&&!hasIsPrototypeOf)return!1;for(key in obj);return void 0===key||hasOwn.call(obj,key)},setProperty=function(target,options){defineProperty&&"__proto__"===options.name?defineProperty(target,options.name,{enumerable:!0,configurable:!0,value:options.newValue,writable:!0}):target[options.name]=options.newValue},getProperty=function(obj,name){if("__proto__"===name){if(!hasOwn.call(obj,name))return;if(gOPD)return gOPD(obj,name).value}return obj[name]};module.exports=function extend(){var options,name,src,copy,copyIsArray,clone,target=arguments[0],i=1,length=arguments.length,deep=!1;for("boolean"==typeof target&&(deep=target,target=arguments[1]||{},i=2),(null==target||"object"!=typeof target&&"function"!=typeof target)&&(target={});i<length;++i)if(null!=(options=arguments[i]))for(name in options)src=getProperty(target,name),target!==(copy=getProperty(options,name))&&(deep&©&&(isPlainObject(copy)||(copyIsArray=isArray(copy)))?(copyIsArray?(copyIsArray=!1,clone=src&&isArray(src)?src:[]):clone=src&&isPlainObject(src)?src:{},setProperty(target,{name,newValue:extend(deep,clone,copy)})):void 0!==copy&&setProperty(target,{name,newValue:copy}));return target}},function(module,exports,__nested_webpack_require_23616__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.BlockEmbed=exports.bubbleFormats=void 0;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_extend2=_interopRequireDefault(__nested_webpack_require_23616__(3)),_quillDelta2=_interopRequireDefault(__nested_webpack_require_23616__(2)),_parchment2=_interopRequireDefault(__nested_webpack_require_23616__(0)),_break2=_interopRequireDefault(__nested_webpack_require_23616__(16)),_inline2=_interopRequireDefault(__nested_webpack_require_23616__(6)),_text2=_interopRequireDefault(__nested_webpack_require_23616__(7));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var BlockEmbed=function(_Parchment$Embed){function BlockEmbed(){return _classCallCheck(this,BlockEmbed),_possibleConstructorReturn(this,(BlockEmbed.__proto__||Object.getPrototypeOf(BlockEmbed)).apply(this,arguments))}return _inherits(BlockEmbed,_Parchment$Embed),_createClass(BlockEmbed,[{key:"attach",value:function(){_get(BlockEmbed.prototype.__proto__||Object.getPrototypeOf(BlockEmbed.prototype),"attach",this).call(this),this.attributes=new _parchment2.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new _quillDelta2.default).insert(this.value(),(0,_extend2.default)(this.formats(),this.attributes.values())
2)}},{key:"format",value:function(name,value){var attribute=_parchment2.default.query(name,_parchment2.default.Scope.BLOCK_ATTRIBUTE);null!=attribute&&this.attributes.attribute(attribute,value)}},{key:"formatAt",value:function(index,length,name,value){this.format(name,value)}},{key:"insertAt",value:function(index,value,def){if("string"==typeof value&&value.endsWith("\n")){var block=_parchment2.default.create(Block.blotName);this.parent.insertBefore(block,0===index?this:this.next),block.insertAt(0,value.slice(0,-1))}else _get(BlockEmbed.prototype.__proto__||Object.getPrototypeOf(BlockEmbed.prototype),"insertAt",this).call(this,index,value,def)}}]),BlockEmbed}(_parchment2.default.Embed);BlockEmbed.scope=_parchment2.default.Scope.BLOCK_BLOT;var Block=function(_Parchment$Block){function Block(domNode){_classCallCheck(this,Block);var _this2=_possibleConstructorReturn(this,(Block.__proto__||Object.getPrototypeOf(Block)).call(this,domNode));return _this2.cache={},_this2}return _inherits(Block,_Parchment$Block),_createClass(Block,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(_parchment2.default.Leaf).reduce((function(delta,leaf){return 0===leaf.length()?delta:delta.insert(leaf.value(),bubbleFormats(leaf))}),new _quillDelta2.default).insert("\n",bubbleFormats(this))),this.cache.delta}},{key:"deleteAt",value:function(index,length){_get(Block.prototype.__proto__||Object.getPrototypeOf(Block.prototype),"deleteAt",this).call(this,index,length),this.cache={}}},{key:"formatAt",value:function(index,length,name,value){length<=0||(_parchment2.default.query(name,_parchment2.default.Scope.BLOCK)?index+length===this.length()&&this.format(name,value):_get(Block.prototype.__proto__||Object.getPrototypeOf(Block.prototype),"formatAt",this).call(this,index,Math.min(length,this.length()-index-1),name,value),this.cache={})}},{key:"insertAt",value:function(index,value,def){if(null!=def)return _get(Block.prototype.__proto__||Object.getPrototypeOf(Block.prototype),"insertAt",this).call(this,index,value,def);if(0!==value.length){var lines=value.split("\n"),text=lines.shift();text.length>0&&(index<this.length()-1||null==this.children.tail?_get(Block.prototype.__proto__||Object.getPrototypeOf(Block.prototype),"insertAt",this).call(this,Math.min(index,this.length()-1),text):this.children.tail.insertAt(this.children.tail.length(),text),this.cache={});var block=this;lines.reduce((function(index,line){return(block=block.split(index,!0)).insertAt(0,line),line.length}),index+text.length)}}},{key:"insertBefore",value:function(blot,ref){var head=this.children.head;_get(Block.prototype.__proto__||Object.getPrototypeOf(Block.prototype),"insertBefore",this).call(this,blot,ref),head instanceof _break2.default&&head.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=_get(Block.prototype.__proto__||Object.getPrototypeOf(Block.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(target,ref){_get(Block.prototype.__proto__||Object.getPrototypeOf(Block.prototype),"moveChildren",this).call(this,target,ref),this.cache={}}},{key:"optimize",value:function(context){_get(Block.prototype.__proto__||Object.getPrototypeOf(Block.prototype),"optimize",this).call(this,context),this.cache={}}},{key:"path",value:function(index){return _get(Block.prototype.__proto__||Object.getPrototypeOf(Block.prototype),"path",this).call(this,index,!0)}},{key:"removeChild",value:function(child){_get(Block.prototype.__proto__||Object.getPrototypeOf(Block.prototype),"removeChild",this).call(this,child),this.cache={}}},{key:"split",value:function(index){var force=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(force&&(0===index||index>=this.length()-1)){var clone=this.clone();return 0===index?(this.parent.insertBefore(clone,this),this):(this.parent.insertBefore(clone,this.next),clone)}var next=_get(Block.prototype.__proto__||Object.getPrototypeOf(Block.prototype),"split",this).call(this,index,force);return this.cache={},next}}]),Block}(_parchment2.default.Block);function bubbleFormats(blot){var formats=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==blot?formats:("function"==typeof blot.formats&&(formats=(0,_extend2.default)(formats,blot.formats())),null==blot.parent||"scroll"==blot.parent.blotName||blot.parent.statics.scope!==blot.statics.scope?formats:bubbleFormats(blot.parent,formats))}Block.blotName="block",Block.tagName="P",Block.defaultChild="break",Block.allowedChildren=[_inline2.default,_parchment2.default.Embed,_text2.default],exports.bubbleFormats=bubbleFormats,exports.BlockEmbed=BlockEmbed,exports.default=Block},function(module,exports,__nested_webpack_require_33760__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.overload=exports.expandConfig=void 0;var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);
2throw new TypeError("Invalid attempt to destructure non-iterable instance")},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();__nested_webpack_require_33760__(50);var _quillDelta2=_interopRequireDefault(__nested_webpack_require_33760__(2)),_editor2=_interopRequireDefault(__nested_webpack_require_33760__(14)),_emitter4=_interopRequireDefault(__nested_webpack_require_33760__(8)),_module2=_interopRequireDefault(__nested_webpack_require_33760__(9)),_parchment2=_interopRequireDefault(__nested_webpack_require_33760__(0)),_selection=__nested_webpack_require_33760__(15),_selection2=_interopRequireDefault(_selection),_extend2=_interopRequireDefault(__nested_webpack_require_33760__(3)),_logger2=_interopRequireDefault(__nested_webpack_require_33760__(10)),_theme2=_interopRequireDefault(__nested_webpack_require_33760__(34));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var debug=(0,_logger2.default)("quill"),Quill=function(){function Quill(container){var _this2=this,options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Quill),this.options=expandConfig(container,options),this.container=this.options.container,null==this.container)return debug.error("Invalid Quill container",container);this.options.debug&&Quill.debug(this.options.debug);var html=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new _emitter4.default,this.scroll=_parchment2.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new _editor2.default(this.scroll),this.selection=new _selection2.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(_emitter4.default.events.EDITOR_CHANGE,(function(type){type===_emitter4.default.events.TEXT_CHANGE&&_this2.root.classList.toggle("ql-blank",_this2.editor.isBlank())})),this.emitter.on(_emitter4.default.events.SCROLL_UPDATE,(function(source,mutations){var range=_this2.selection.lastRange,index=range&&0===range.length?range.index:void 0;modify.call(_this2,(function(){return _this2.editor.update(null,mutations,index)}),source)}));var contents=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+html+"<p><br></p></div>");this.setContents(contents),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return _createClass(Quill,null,[{key:"debug",value:function(limit){!0===limit&&(limit="log"),_logger2.default.level(limit)}},{key:"find",value:function(node){return node.__quill||_parchment2.default.find(node)}},{key:"import",value:function(name){return null==this.imports[name]&&debug.error("Cannot import "+name+". Are you sure it was registered?"),this.imports[name]}},{key:"register",value:function(path,target){var _this=this,overwrite=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof path){var name=path.attrName||path.blotName;"string"==typeof name?this.register("formats/"+name,path,target):Object.keys(path).forEac
2h((function(key){_this.register(key,path[key],target)}))}else null==this.imports[path]||overwrite||debug.warn("Overwriting "+path+" with",target),this.imports[path]=target,(path.startsWith("blots/")||path.startsWith("formats/"))&&"abstract"!==target.blotName?_parchment2.default.register(target):path.startsWith("modules")&&"function"==typeof target.register&&target.register()}}]),_createClass(Quill,[{key:"addContainer",value:function(container){var refNode=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof container){var className=container;(container=document.createElement("div")).classList.add(className)}return this.container.insertBefore(container,refNode),container}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(index,length,source){var _this3=this,_overload=overload(index,length,source),_overload2=_slicedToArray(_overload,4);return index=_overload2[0],length=_overload2[1],source=_overload2[3],modify.call(this,(function(){return _this3.editor.deleteText(index,length)}),source,index,-1*length)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var enabled=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(enabled),this.container.classList.toggle("ql-disabled",!enabled)}},{key:"focus",value:function(){var scrollTop=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=scrollTop,this.scrollIntoView()}},{key:"format",value:function(name,value){var _this4=this,source=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_emitter4.default.sources.API;return modify.call(this,(function(){var range=_this4.getSelection(!0),change=new _quillDelta2.default;if(null==range)return change;if(_parchment2.default.query(name,_parchment2.default.Scope.BLOCK))change=_this4.editor.formatLine(range.index,range.length,_defineProperty({},name,value));else{if(0===range.length)return _this4.selection.format(name,value),change;change=_this4.editor.formatText(range.index,range.length,_defineProperty({},name,value))}return _this4.setSelection(range,_emitter4.default.sources.SILENT),change}),source)}},{key:"formatLine",value:function(index,length,name,value,source){var formats,_this5=this,_overload3=overload(index,length,name,value,source),_overload4=_slicedToArray(_overload3,4);return index=_overload4[0],length=_overload4[1],formats=_overload4[2],source=_overload4[3],modify.call(this,(function(){return _this5.editor.formatLine(index,length,formats)}),source,index,0)}},{key:"formatText",value:function(index,length,name,value,source){var formats,_this6=this,_overload5=overload(index,length,name,value,source),_overload6=_slicedToArray(_overload5,4);return index=_overload6[0],length=_overload6[1],formats=_overload6[2],source=_overload6[3],modify.call(this,(function(){return _this6.editor.formatText(index,length,formats)}),source,index,0)}},{key:"getBounds",value:function(index){var length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,bounds=void 0;bounds="number"==typeof index?this.selection.getBounds(index,length):this.selection.getBounds(index.index,index.length);var containerBounds=this.container.getBoundingClientRect();return{bottom:bounds.bottom-containerBounds.top,height:bounds.height,left:bounds.left-containerBounds.left,right:bounds.right-containerBounds.left,top:bounds.top-containerBounds.top,width:bounds.width}}},{key:"getContents",value:function(){var index=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-index,_overload7=overload(index,length),_overload8=_slicedToArray(_overload7,2);return index=_overload8[0],length=_overload8[1],this.editor.getContents(index,length)}},{key:"getFormat",value:function(){var index=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof index?this.editor.getFormat(index,length):this.editor.getFormat(index.index,index.length)}},{key:"getIndex",value:function(blot){return blot.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(index){return this.scroll.leaf(index)}},{key:"getLine",value:function(index){return this.scroll.line(index)}},{key:"getLines",value:function(){var index=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof index?this.scroll.lines(index.index,index.length):this.scroll.lines(index,length)}},{key:"getModule",value:function(name){return this.theme.modules[name]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var index=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-index,_overload9=overload(index,length),_overload10=_slicedToArray(_overload9,2);return index=_overload10[0],length=_overload10[1],this.editor.getText(index,length)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(index,embed,value){var _this7=this,source=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Quill.sources.API;return modify.call(this,(function(){return _this7.editor.insertEmbed(index,embed,value)}),source,index)}},{key:"insertText",value:function(index,text,name,value,source){var formats,_this8=this,_overload11=overload(index,0,name,value,source),_overload12=_slicedToArray(_overload11,4);return index=_overload12[0],formats=_overload12[2],source=_overload12[3],modify.call(this,(function(){return _this8.editor.insertText(index,text,formats)}),source,index,text.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(index,html,source){this.clipboard.dangerouslyPasteHTML(index,html,source)}},{key:"removeFormat",value:function(index,length,source){var _this9=this,_overload13=overload(index,length,source),_overload14=_slicedToArray(_overload13,4);return index=_overload14[0],length=_overload14[1],source=_overload14[3],modify.call(this,(function(){return _this9.editor.removeFormat(index,length)}),source,index)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(delta){var _this10=this,source=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_emitter4.default.sources.API;return modify.call(this,(function(){delta=new _quillDelta2.default(delta);var length=_this10.getLength(),deleted=_this10.editor.deleteText(0,length),applied=_this10.editor.applyDelta(delta),lastOp=applied.ops[applied.ops.length-1];return null!=lastOp&&"string"==typeof lastOp.insert&&"\n"===lastOp.insert[lastOp.insert.length-1]&&(_this10.editor.deleteText(_this10.getLength()-1,1),applied.delete(1)),deleted.compose(applied)}),source)}},{key:"setSelection",value:function(index,length,source){if(null==index)this.selection.setRange(null,length||Quill.sources.API);else{var _overload15=overload(index,length,source),_overload16=_slicedToArray(_overload15,4);index=_overload16[0],length=_overload16[1],source=_overload16[3],this.selection.setRange(new _selection.Range(index,length),source),source!==_emitter4.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(text){var source=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_emitter4.default.sources.API,delta=(new _quillDelta2.default).insert(text);return this.setContents(delta,source)}},{key:"update",value:function(){var source=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_emitter4.default.sources.USER,change=this.scroll.update(source);return this.selection.update(source),change}},{key:"updateContents",value:function(delta){var _this11=this,source=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_emitter4.default.sources.API;return modify.call(this,(function(){return delta=new _quillDelta2.default(delta),_this11.editor.applyDelta(delta,source)}),source,!0)}}]),Quill}();function expandConfig(container,userConfig){if((userConfig=(0,_extend2.default)(!0,{container,modules:{clipboard:!0,keyboard:!0,history:!0}},userConfig)).theme&&userConfig.theme!==Quill.DEFAULTS.theme){if(userConfig.theme=Quill.import("themes/"+userConfig.theme),null==userConfig.theme)throw new Error("Invalid theme "+userConfig.theme+". Did you register it?")}else userConfig.theme=_theme2.default;var themeConfig=(0,_extend2.default)(!0,{},userConfig.theme.DEFAULTS);[themeConfig,userConfig].forEach((function(config){config.modules=config.modules||{}
2,Object.keys(config.modules).forEach((function(module){!0===config.modules[module]&&(config.modules[module]={})}))}));var moduleConfig=Object.keys(themeConfig.modules).concat(Object.keys(userConfig.modules)).reduce((function(config,name){var moduleClass=Quill.import("modules/"+name);return null==moduleClass?debug.error("Cannot load "+name+" module. Are you sure you registered it?"):config[name]=moduleClass.DEFAULTS||{},config}),{});return null!=userConfig.modules&&userConfig.modules.toolbar&&userConfig.modules.toolbar.constructor!==Object&&(userConfig.modules.toolbar={container:userConfig.modules.toolbar}),userConfig=(0,_extend2.default)(!0,{},Quill.DEFAULTS,{modules:moduleConfig},themeConfig,userConfig),["bounds","container","scrollingContainer"].forEach((function(key){"string"==typeof userConfig[key]&&(userConfig[key]=document.querySelector(userConfig[key]))})),userConfig.modules=Object.keys(userConfig.modules).reduce((function(config,name){return userConfig.modules[name]&&(config[name]=userConfig.modules[name]),config}),{}),userConfig}function modify(modifier,source,index,shift){if(this.options.strict&&!this.isEnabled()&&source===_emitter4.default.sources.USER)return new _quillDelta2.default;var range=null==index?null:this.getSelection(),oldDelta=this.editor.delta,change=modifier();if(null!=range&&(!0===index&&(index=range.index),null==shift?range=shiftRange(range,change,source):0!==shift&&(range=shiftRange(range,index,shift,source)),this.setSelection(range,_emitter4.default.sources.SILENT)),change.length()>0){var _emitter,_emitter2,args=[_emitter4.default.events.TEXT_CHANGE,change,oldDelta,source];(_emitter=this.emitter).emit.apply(_emitter,[_emitter4.default.events.EDITOR_CHANGE].concat(args)),source!==_emitter4.default.sources.SILENT&&(_emitter2=this.emitter).emit.apply(_emitter2,args)}return change}function overload(index,length,name,value,source){var formats={};return"number"==typeof index.index&&"number"==typeof index.length?"number"!=typeof length?(source=value,value=name,name=length,length=index.length,index=index.index):(length=index.length,index=index.index):"number"!=typeof length&&(source=value,value=name,name=length,length=0),"object"===(void 0===name?"undefined":_typeof(name))?(formats=name,source=value):"string"==typeof name&&(null!=value?formats[name]=value:source=name),[index,length,formats,source=source||_emitter4.default.sources.API]}function shiftRange(range,index,length,source){if(null==range)return null;var start=void 0,end=void 0;if(index instanceof _quillDelta2.default){var _map=[range.index,range.index+range.length].map((function(pos){return index.transformPosition(pos,source!==_emitter4.default.sources.USER)})),_map2=_slicedToArray(_map,2);start=_map2[0],end=_map2[1]}else{var _map3=[range.index,range.index+range.length].map((function(pos){return pos<index||pos===index&&source===_emitter4.default.sources.USER?pos:length>=0?pos+length:Math.max(index,pos+length)})),_map4=_slicedToArray(_map3,2);start=_map4[0],end=_map4[1]}return new _selection.Range(start,end-start)}Quill.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},Quill.events=_emitter4.default.events,Quill.sources=_emitter4.default.sources,Quill.version="1.3.7",Quill.imports={delta:_quillDelta2.default,parchment:_parchment2.default,"core/module":_module2.default,"core/theme":_theme2.default},exports.expandConfig=expandConfig,exports.overload=overload,exports.default=Quill},function(module,exports,__nested_webpack_require_58401__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_text2=_interopRequireDefault(__nested_webpack_require_58401__(7)),_parchment2=_interopRequireDefault(__nested_webpack_require_58401__(0));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Inline=function(_Parchment$Inline){function Inline(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Inline),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Inline.__proto__||Object.getPrototypeOf(Inline)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Inline,_Parchment$Inline),_createClass(Inline,[{key:"formatAt",value:function(index,length,name,value){if(Inline.compare(this.statics.blotName,name)<0&&_parchment2.default.query(name,_parchment2.default.Scope.BLOT)){var blot=this.isolate(index,length);value&&blot.wrap(name,value)}else _get(Inline.prototype.__proto__||Object.getPrototypeOf(Inline.prototype),"formatAt",this).call(this,index,length,name,value)}},{key:"optimize",value:function(context){if(_get(Inline.prototype.__proto__||Object.getPrototypeOf(Inline.prototype),"optimize",this).call(this,context),this.parent instanceof Inline&&Inline.compare(this.statics.blotName,this.parent.statics.blotName)>0){var parent=this.parent.isolate(this.offset(),this.length());this.moveChildren(parent),parent.wrap(this)}}}
2],[{key:"compare",value:function(self,other){var selfIndex=Inline.order.indexOf(self),otherIndex=Inline.order.indexOf(other);return selfIndex>=0||otherIndex>=0?selfIndex-otherIndex:self===other?0:self<other?-1:1}}]),Inline}(_parchment2.default.Inline);Inline.allowedChildren=[Inline,_parchment2.default.Embed,_text2.default],Inline.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],exports.default=Inline},function(module,exports,__nested_webpack_require_62823__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_parchment=__nested_webpack_require_62823__(0),TextBlot=function(_Parchment$Text){function TextBlot(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,TextBlot),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(TextBlot.__proto__||Object.getPrototypeOf(TextBlot)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(TextBlot,_Parchment$Text),TextBlot}(((obj=_parchment)&&obj.__esModule?obj:{default:obj}).default.Text);exports.default=TextBlot},function(module,exports,__nested_webpack_require_64422__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_eventemitter2=_interopRequireDefault(__nested_webpack_require_64422__(54));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var debug=(0,_interopRequireDefault(__nested_webpack_require_64422__(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(eventName){document.addEventListener(eventName,(function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(node){var _node$__quill$emitter;node.__quill&&node.__quill.emitter&&(_node$__quill$emitter=node.__quill.emitter).handleDOM.apply(_node$__quill$emitter,args)}))}))}));var Emitter=function(_EventEmitter){function Emitter(){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Emitter);var _this=function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Emitter.__proto__||Object.getPrototypeOf(Emitter)).call(this));return _this.listeners={},_this.on("error",debug.error),_this}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Emitter,_EventEmitter),_createClass(Emitter,[{key:"emit",value:function(){debug.log.apply(debug,arguments),_get(Emitter.prototype.__proto__||Object.getPrototypeOf(Emitter.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(event){for(var _len2=arguments.length,args=Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];
2(this.listeners[event.type]||[]).forEach((function(_ref){var node=_ref.node,handler=_ref.handler;(event.target===node||node.contains(event.target))&&handler.apply(void 0,[event].concat(args))}))}},{key:"listenDOM",value:function(eventName,node,handler){this.listeners[eventName]||(this.listeners[eventName]=[]),this.listeners[eventName].push({node,handler})}}]),Emitter}(_eventemitter2.default);Emitter.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"},Emitter.sources={API:"api",SILENT:"silent",USER:"user"},exports.default=Emitter},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Module=function Module(quill){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Module),this.quill=quill,this.options=options};Module.DEFAULTS={},exports.default=Module},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var levels=["error","warn","log","info"],level="warn";function debug(method){if(levels.indexOf(method)<=levels.indexOf(level)){for(var _console,_len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];(_console=console)[method].apply(_console,args)}}function namespace(ns){return levels.reduce((function(logger,method){return logger[method]=debug.bind(console,method,ns),logger}),{})}debug.level=namespace.level=function(newLevel){level=newLevel},exports.default=namespace},function(module,exports,__nested_webpack_require_70685__){var pSlice=Array.prototype.slice,objectKeys=__nested_webpack_require_70685__(52),isArguments=__nested_webpack_require_70685__(53),deepEqual=module.exports=function(actual,expected,opts){return opts||(opts={}),actual===expected||(actual instanceof Date&&expected instanceof Date?actual.getTime()===expected.getTime():!actual||!expected||"object"!=typeof actual&&"object"!=typeof expected?o
2pts.strict?actual===expected:actual==expected:function(a,b,opts){var i,key;if(isUndefinedOrNull(a)||isUndefinedOrNull(b))return!1;if(a.prototype!==b.prototype)return!1;if(isArguments(a))return!!isArguments(b)&&(a=pSlice.call(a),b=pSlice.call(b),deepEqual(a,b,opts));if(isBuffer(a)){if(!isBuffer(b))return!1;if(a.length!==b.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==b[i])return!1;return!0}try{var ka=objectKeys(a),kb=objectKeys(b)}catch(e){return!1}if(ka.length!=kb.length)return!1;for(ka.sort(),kb.sort(),i=ka.length-1;i>=0;i--)if(ka[i]!=kb[i])return!1;for(i=ka.length-1;i>=0;i--)if(key=ka[i],!deepEqual(a[key],b[key],opts))return!1;return typeof a==typeof b}(actual,expected,opts))};function isUndefinedOrNull(value){return null==value}function isBuffer(x){return!(!x||"object"!=typeof x||"number"!=typeof x.length||"function"!=typeof x.copy||"function"!=typeof x.slice||x.length>0&&"number"!=typeof x[0])}},function(module,exports,__nested_webpack_require_73804__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Registry=__nested_webpack_require_73804__(1),Attributor=function(){function Attributor(attrName,keyName,options){void 0===options&&(options={}),this.attrName=attrName,this.keyName=keyName;var attributeBit=Registry.Scope.TYPE&Registry.Scope.ATTRIBUTE;null!=options.scope?this.scope=options.scope&Registry.Scope.LEVEL|attributeBit:this.scope=Registry.Scope.ATTRIBUTE,null!=options.whitelist&&(this.whitelist=options.whitelist)}return Attributor.keys=function(node){return[].map.call(node.attributes,(function(item){return item.name}))},Attributor.prototype.add=function(node,value){return!!this.canAdd(node,value)&&(node.setAttribute(this.keyName,value),!0)},Attributor.prototype.canAdd=function(node,value){return null!=Registry.query(node,Registry.Scope.BLOT&(this.scope|Registry.Scope.TYPE))&&(null==this.whitelist||("string"==typeof value?this.whitelist.indexOf(value.replace(/["']/g,""))>-1:this.whitelist.indexOf(value)>-1))},Attributor.prototype.remove=function(node){node.removeAttribute(this.keyName)},Attributor.prototype.value=function(node){var value=node.getAttribute(this.keyName);return this.canAdd(node,value)&&value?value:""},Attributor}();exports.default=Attributor},function(module,exports,__nested_webpack_require_75851__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.Code=void 0;var _slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_quillDelta2=_interopRequireDefault(__nested_webpack_require_75851__(2)),_parchment2=_interopRequireDefault(__nested_webpack_require_75851__(0)),_block2=_interopRequireDefault(__nested_webpack_require_75851__(4)),_inline2=_interopRequireDefault(__nested_webpack_require_75851__(6)),_text2=_interopRequireDefault(__nested_webpack_require_75851__(7));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var Code=function(_Inline){function Code(){return _classCallCheck(this,Code),_possibleConstructorReturn(this,(Code.__proto__||Object.getPrototypeOf(Code)).apply(this,arguments))}return _inherits(Code,_Inline),Code}(_inline2.default);Code.blotName="code",Code.tagName="CODE";var CodeBlock=function(_Block){function CodeBlock(){return _classCallCheck(this,CodeBlock),_possibleConstructorReturn(this,(CodeBlock.__proto__||Object.getPrototypeOf(CodeBlock)).apply(this,arguments))}return _inherits(CodeBlock,_Block),_createClass(CodeBlock,[{key:"delta",value:function(){var _this3=this,text=this.domNode.textContent;return text.endsWith("\n")&&(text=text.slice(0,-1)),text.split("\n").reduce((function(delta,frag){return delta.insert(frag).insert("\n",_this3.formats())}),new _quillDelta2.default)}},{key:"format",value:function(name,value){if(name!==this.statics.blotName||!value){var _descendant=this.descendant(_text2.default,this.length()-1),text=_slicedToArray(_descendant,1)[0];null!=text&&text.deleteAt(text.length()-1,1),_get(CodeBlock.prototype.__proto__||Object.getPrototypeOf(CodeBlock.prototype),"format",this).call(this,name,value)}}},{key:"formatAt",value:function(index,length,name,value){if(0!==length&&null!=_parchment2.default.query(name,_parchment2.default.Scope.BLOCK)&&(name!==this.statics.blotName||value!==this.statics.formats(this.domNode))){var nextNewline=this.newlineIndex(index);if(!(nextNewline<0||nextNewline>=index+length)){var prevNewline=this.newlineIndex(index,!0)+1,isolateLength=nextNewline-prevNewline+1,blot=this.isolate(prevNewline,isolateLength),next=blot.next;blot.format(name,value),next instanceof CodeBlock&&next.formatAt(0,index-prevNewline+length-isolateLength,name,value)}}}},{key:"insertAt",value:function(index,value,def){if(null==def){var _descendant3=this.descendant(_text2.default,index),_descendant4=_slicedToArray(_descendant3,2),text=_desce
2ndant4[0],offset=_descendant4[1];text.insertAt(offset,value)}}},{key:"length",value:function(){var length=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?length:length+1}},{key:"newlineIndex",value:function(searchIndex){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,searchIndex).lastIndexOf("\n");var offset=this.domNode.textContent.slice(searchIndex).indexOf("\n");return offset>-1?searchIndex+offset:-1}},{key:"optimize",value:function(context){this.domNode.textContent.endsWith("\n")||this.appendChild(_parchment2.default.create("text","\n")),_get(CodeBlock.prototype.__proto__||Object.getPrototypeOf(CodeBlock.prototype),"optimize",this).call(this,context);var next=this.next;null!=next&&next.prev===this&&next.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===next.statics.formats(next.domNode)&&(next.optimize(context),next.moveChildren(this),next.remove())}},{key:"replace",value:function(target){_get(CodeBlock.prototype.__proto__||Object.getPrototypeOf(CodeBlock.prototype),"replace",this).call(this,target),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(node){var blot=_parchment2.default.find(node);null==blot?node.parentNode.removeChild(node):blot instanceof _parchment2.default.Embed?blot.remove():blot.unwrap()}))}}],[{key:"create",value:function(value){var domNode=_get(CodeBlock.__proto__||Object.getPrototypeOf(CodeBlock),"create",this).call(this,value);return domNode.setAttribute("spellcheck",!1),domNode}},{key:"formats",value:function(){return!0}}]),CodeBlock}(_block2.default);CodeBlock.blotName="code-block",CodeBlock.tagName="PRE",CodeBlock.TAB=" ",exports.Code=Code,exports.default=CodeBlock},function(module,exports,__nested_webpack_require_84272__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_quillDelta2=_interopRequireDefault(__nested_webpack_require_84272__(2)),_op2=_interopRequireDefault(__nested_webpack_require_84272__(20)),_parchment2=_interopRequireDefault(__nested_webpack_require_84272__(0)),_code2=_interopRequireDefault(__nested_webpack_require_84272__(13)),_cursor2=_interopRequireDefault(__nested_webpack_require_84272__(24)),_block=__nested_webpack_require_84272__(4),_block2=_interopRequireDefault(_block),_break2=_interopRequireDefault(__nested_webpack_require_84272__(16)),_clone2=_interopRequireDefault(__nested_webpack_require_84272__(21)),_deepEqual2=_interopRequireDefault(__nested_webpack_require_84272__(11)),_extend2=_interopRequireDefault(__nested_webpack_require_84272__(3));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ASCII=/^[ -~]*$/,Editor=function(){function Editor(scroll){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Editor),this.scroll=scroll,this.delta=this.getDelta()}return _createClass(Editor,[{key:"applyDelta",value:function(delta){var _this=this,consumeNextNewline=!1;
2this.scroll.update();var scrollLength=this.scroll.length();return this.scroll.batchStart(),(delta=function(delta){return delta.reduce((function(delta,op){if(1===op.insert){var attributes=(0,_clone2.default)(op.attributes);return delete attributes.image,delta.insert({image:op.attributes.image},attributes)}if(null==op.attributes||!0!==op.attributes.list&&!0!==op.attributes.bullet||((op=(0,_clone2.default)(op)).attributes.list?op.attributes.list="ordered":(op.attributes.list="bullet",delete op.attributes.bullet)),"string"==typeof op.insert){var text=op.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return delta.insert(text,op.attributes)}return delta.push(op)}),new _quillDelta2.default)}(delta)).reduce((function(index,op){var length=op.retain||op.delete||op.insert.length||1,attributes=op.attributes||{};if(null!=op.insert){if("string"==typeof op.insert){var text=op.insert;text.endsWith("\n")&&consumeNextNewline&&(consumeNextNewline=!1,text=text.slice(0,-1)),index>=scrollLength&&!text.endsWith("\n")&&(consumeNextNewline=!0),_this.scroll.insertAt(index,text);var _scroll$line=_this.scroll.line(index),_scroll$line2=_slicedToArray(_scroll$line,2),line=_scroll$line2[0],offset=_scroll$line2[1],formats=(0,_extend2.default)({},(0,_block.bubbleFormats)(line));if(line instanceof _block2.default){var _line$descendant=line.descendant(_parchment2.default.Leaf,offset),leaf=_slicedToArray(_line$descendant,1)[0];formats=(0,_extend2.default)(formats,(0,_block.bubbleFormats)(leaf))}attributes=_op2.default.attributes.diff(formats,attributes)||{}}else if("object"===_typeof(op.insert)){var key=Object.keys(op.insert)[0];if(null==key)return index;_this.scroll.insertAt(index,key,op.insert[key])}scrollLength+=length}return Object.keys(attributes).forEach((function(name){_this.scroll.formatAt(index,length,name,attributes[name])})),index+length}),0),delta.reduce((function(index,op){return"number"==typeof op.delete?(_this.scroll.deleteAt(index,op.delete),index):index+(op.retain||op.insert.length||1)}),0),this.scroll.batchEnd(),this.update(delta)}},{key:"deleteText",value:function(index,length){return this.scroll.deleteAt(index,length),this.update((new _quillDelta2.default).retain(index).delete(length))}},{key:"formatLine",value:function(index,length){var _this2=this,formats=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(formats).forEach((function(format){if(null==_this2.scroll.whitelist||_this2.scroll.whitelist[format]){var lines=_this2.scroll.lines(index,Math.max(length,1)),lengthRemaining=length;lines.forEach((function(line){var lineLength=line.length();if(line instanceof _code2.default){var codeIndex=index-line.offset(_this2.scroll),codeLength=line.newlineIndex(codeIndex+lengthRemaining)-codeIndex+1;line.formatAt(codeIndex,codeLength,format,formats[format])}else line.format(format,formats[format]);lengthRemaining-=lineLength}))}})),this.scroll.optimize(),this.update((new _quillDelta2.default).retain(index).retain(length,(0,_clone2.default)(formats)))}},{key:"formatText",value:function(index,length){var _this3=this,formats=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(formats).forEach((function(format){_this3.scroll.formatAt(index,length,format,formats[format])})),this.update((new _quillDelta2.default).retain(index).retain(length,(0,_clone2.default)(formats)))}},{key:"getContents",value:function(index,length){return this.delta.slice(index,index+length)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(delta,line){return delta.concat(line.delta())}),new _quillDelta2.default)}},{key:"getFormat",value:function(index){var length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,lines=[],leaves=[];0===length?this.scroll.path(index).forEach((function(path){var blot=_slicedToArray(path,1)[
20];blot instanceof _block2.default?lines.push(blot):blot instanceof _parchment2.default.Leaf&&leaves.push(blot)})):(lines=this.scroll.lines(index,length),leaves=this.scroll.descendants(_parchment2.default.Leaf,index,length));var formatsArr=[lines,leaves].map((function(blots){if(0===blots.length)return{};for(var formats=(0,_block.bubbleFormats)(blots.shift());Object.keys(formats).length>0;){var blot=blots.shift();if(null==blot)return formats;formats=combineFormats((0,_block.bubbleFormats)(blot),formats)}return formats}));return _extend2.default.apply(_extend2.default,formatsArr)}},{key:"getText",value:function(index,length){return this.getContents(index,length).filter((function(op){return"string"==typeof op.insert})).map((function(op){return op.insert})).join("")}},{key:"insertEmbed",value:function(index,embed,value){return this.scroll.insertAt(index,embed,value),this.update((new _quillDelta2.default).retain(index).insert(function(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},embed,value)))}},{key:"insertText",value:function(index,text){var _this4=this,formats=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return text=text.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(index,text),Object.keys(formats).forEach((function(format){_this4.scroll.formatAt(index,text.length,format,formats[format])})),this.update((new _quillDelta2.default).retain(index).insert(text,(0,_clone2.default)(formats)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var block=this.scroll.children.head;return block.statics.blotName===_block2.default.blotName&&!(block.children.length>1)&&block.children.head instanceof _break2.default}},{key:"removeFormat",value:function(index,length){var text=this.getText(index,length),_scroll$line3=this.scroll.line(index+length),_scroll$line4=_slicedToArray(_scroll$line3,2),line=_scroll$line4[0],offset=_scroll$line4[1],suffixLength=0,suffix=new _quillDelta2.default;null!=line&&(suffixLength=line instanceof _code2.default?line.newlineIndex(offset)-offset+1:line.length()-offset,suffix=line.delta().slice(offset,offset+suffixLength-1).insert("\n"));var diff=this.getContents(index,length+suffixLength).diff((new _quillDelta2.default).insert(text).concat(suffix)),delta=(new _quillDelta2.default).retain(index).concat(diff);return this.applyDelta(delta)}},{key:"update",value:function(change){var mutations=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],cursorIndex=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,oldDelta=this.delta;if(1===mutations.length&&"characterData"===mutations[0].type&&mutations[0].target.data.match(ASCII)&&_parchment2.default.find(mutations[0].target)){var textBlot=_parchment2.default.find(mutations[0].target),formats=(0,_block.bubbleFormats)(textBlot),index=textBlot.offset(this.scroll),oldValue=mutations[0].oldValue.replace(_cursor2.default.CONTENTS,""),oldText=(new _quillDelta2.default).insert(oldValue),newText=(new _quillDelta2.default).insert(textBlot.value());change=(new _quillDelta2.default).retain(index).concat(oldText.diff(newText,cursorIndex)).reduce((function(delta,op){return op.insert?delta.insert(op.insert,formats):delta.push(op)}),new _quillDelta2.default),this.delta=oldDelta.compose(change)}else this.delta=this.getDelta(),change&&(0,_deepEqual2.default)(oldDelta.compose(change),this.delta)||(change=oldDelta.diff(this.delta,cursorIndex));return change}}]),Editor}();function combineFormats(formats,combined){return Object.keys(combined).reduce((function(merged,name){return null==formats[name]||(combined[name]===formats[name]?merged[name]=combined[name]:Array.isArray(combined[name])?combined[name].indexOf(formats[name])<0&&(merged[name]=combined[name].concat([formats[name]])):merged[name]=[combined[name],formats[name]]),merged}),{})}exports.default=Editor},function(module,exports,__nested_webpack_require_98688__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.Range=void 0;var _slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);
2throw new TypeError("Invalid attempt to destructure non-iterable instance")},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_parchment2=_interopRequireDefault(__nested_webpack_require_98688__(0)),_clone2=_interopRequireDefault(__nested_webpack_require_98688__(21)),_deepEqual2=_interopRequireDefault(__nested_webpack_require_98688__(11)),_emitter4=_interopRequireDefault(__nested_webpack_require_98688__(8));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}return Array.from(arr)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var debug=(0,_interopRequireDefault(__nested_webpack_require_98688__(10)).default)("quill:selection"),Range=function Range(index){var length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,Range),this.index=index,this.length=length},Selection=function(){function Selection(scroll,emitter){var _this=this;_classCallCheck(this,Selection),this.emitter=emitter,this.scroll=scroll,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=_parchment2.default.create("cursor",this),this.lastRange=this.savedRange=new Range(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){_this.mouseDown||setTimeout(_this.update.bind(_this,_emitter4.default.sources.USER),1)})),this.emitter.on(_emitter4.default.events.EDITOR_CHANGE,(function(type,delta){type===_emitter4.default.events.TEXT_CHANGE&&delta.length()>0&&_this.update(_emitter4.default.sources.SILENT)})),this.emitter.on(_emitter4.default.events.SCROLL_BEFORE_UPDATE,(function(){if(_this.hasFocus()){var native=_this.getNativeRange();null!=native&&native.start.node!==_this.cursor.textNode&&_this.emitter.once(_emitter4.default.events.SCROLL_UPDATE,(function(){try{_this.setNativeRange(native.start.node,native.start.offset,native.end.node,native.end.offset)}catch(ignored){}}))}})),this.emitter.on(_emitter4.default.events.SCROLL_OPTIMIZE,(function(mutations,context){if(context.range){var _context$range=context.range,startNode=_context$range.startNode,startOffset=_context$range.startOffset,endNode=_context$range.endNode,endOffset=_context$range.endOffset;_this.setNativeRange(startNode,startOffset,endNode,endOffset)}})),this.update(_emitter4.default.sources.SILENT)}return _createClass(Selection,[{key:"handleComposition",value:function(){var _this2=this;this.root.addEventListener("compositionstart",(function(){_this2.composing=!0})),this.root.addEventListener("compositionend",(function(){if(_this2.composing=!1,_this2.cursor.parent){var range=_this2.cursor.restore();if(!range)return;setTimeout((function(){_this2.setNativeRange(range.startNode,range.startOffset,range.endNode,range.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var _this3=this;this.emitter.listenDOM("mousedown",document.body,(function(){_this3.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){_this3.mouseDown=!1,_this3.update(_emitter4.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(_format,value){if(null==this.scroll.whitelist||this.scroll.whitelist[_format]){this.scroll.update();var nativeRange=this.getNativeRange();if(null!=nativeRange&&nativeRange.native.collapsed&&!_parchment2.default.query(_format,_parchment2.default.Scope.BLOCK)){if(nativeRange.start.node!==this.cursor.textNode){var blot=_parchment2.default.find(nativeRange.start.node,!1);if(null==blot)return;if(blot instanceof _parchment2.default.Leaf){var after=blot.split(nativeRange.start.offset);blot.parent.insertBefore(this.cursor,after)}else blot.insertBefore(this.cursor,nativeRange.start.node);this.cursor.attach()}this.cursor.format(_format,value),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(index){var length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,scrollLength=this.scroll.length();index=Math.min(index,scrollLength-1),length=Math.min(index+length,scrollLength-1)-index;var node=void 0,_scroll$leaf=this.scroll.leaf(index),_scroll$leaf2=_slicedToArray(_scroll$leaf,2),leaf=_scroll$leaf2[0],offset=_scroll$leaf2[1];if(null==leaf)return null;var _leaf$position=leaf.position(offset,!0),_leaf$position2=_slicedToArray(_leaf$position,2);
2node=_leaf$position2[0],offset=_leaf$position2[1];var range=document.createRange();if(length>0){range.setStart(node,offset);var _scroll$leaf3=this.scroll.leaf(index+length),_scroll$leaf4=_slicedToArray(_scroll$leaf3,2);if(leaf=_scroll$leaf4[0],offset=_scroll$leaf4[1],null==leaf)return null;var _leaf$position3=leaf.position(offset,!0),_leaf$position4=_slicedToArray(_leaf$position3,2);return node=_leaf$position4[0],offset=_leaf$position4[1],range.setEnd(node,offset),range.getBoundingClientRect()}var side="left",rect=void 0;return node instanceof Text?(offset<node.data.length?(range.setStart(node,offset),range.setEnd(node,offset+1)):(range.setStart(node,offset-1),range.setEnd(node,offset),side="right"),rect=range.getBoundingClientRect()):(rect=leaf.domNode.getBoundingClientRect(),offset>0&&(side="right")),{bottom:rect.top+rect.height,height:rect.height,left:rect[side],right:rect[side],top:rect.top,width:0}}},{key:"getNativeRange",value:function(){var selection=document.getSelection();if(null==selection||selection.rangeCount<=0)return null;var nativeRange=selection.getRangeAt(0);if(null==nativeRange)return null;var range=this.normalizeNative(nativeRange);return debug.info("getNativeRange",range),range}},{key:"getRange",value:function(){var normalized=this.getNativeRange();return null==normalized?[null,null]:[this.normalizedToRange(normalized),normalized]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(range){var _this4=this,positions=[[range.start.node,range.start.offset]];range.native.collapsed||positions.push([range.end.node,range.end.offset]);var indexes=positions.map((function(position){var _position=_slicedToArray(position,2),node=_position[0],offset=_position[1],blot=_parchment2.default.find(node,!0),index=blot.offset(_this4.scroll);return 0===offset?index:blot instanceof _parchment2.default.Container?index+blot.length():index+blot.index(node,offset)})),end=Math.min(Math.max.apply(Math,_toConsumableArray(indexes)),this.scroll.length()-1),start=Math.min.apply(Math,[end].concat(_toConsumableArray(indexes)));return new Range(start,end-start)}},{key:"normalizeNative",value:function(nativeRange){if(!contains(this.root,nativeRange.startContainer)||!nativeRange.collapsed&&!contains(this.root,nativeRange.endContainer))return null;var range={start:{node:nativeRange.startContainer,offset:nativeRange.startOffset},end:{node:nativeRange.endContainer,offset:nativeRange.endOffset},native:nativeRange};return[range.start,range.end].forEach((function(position){for(var node=position.node,offset=position.offset;!(node instanceof Text)&&node.childNodes.length>0;)if(node.childNodes.length>offset)node=node.childNodes[offset],offset=0;else{if(node.childNodes.length!==offset)break;offset=(node=node.lastChild)instanceof Text?node.data.length:node.childNodes.length+1}position.node=node,position.offset=offset})),range}},{key:"rangeToNative",value:function(range){var _this5=this,indexes=range.collapsed?[range.index]:[range.index,range.index+range.length],args=[],scrollLength=this.scroll.length();return indexes.forEach((function(index,i){index=Math.min(scrollLength-1,index);var node,_scroll$leaf5=_this5.scroll.leaf(index),_scroll$leaf6=_slicedToArray(_scroll$leaf5,2),leaf=_scroll$leaf6[0],offset=_scroll$leaf6[1],_leaf$position5=leaf.position(offset,0!==i),_leaf$position6=_slicedToArray(_leaf$position5,2);node=_leaf$position6[0],offset=_leaf$position6[1],args.push(node,offset)})),args.length<2&&(args=args.concat(args)),args}},{key:"scrollIntoView",value:function(scrollingContainer){var range=this.lastRange;if(null!=range){var bounds=this.getBounds(range.index,range.length);if(null!=bounds){var limit=this.scroll.length()-1,_scroll$line=this.scroll.line(Math.min(range.index,limit)),first=_slicedToArray(_scroll$line,1)[0],last=first;if(range.length>0){var _scroll$line3=this.scroll.line(Math.min(range.index+range.length,limit));last=_slicedToArray(_scroll$line3,1)[0]}if(null!=first&&null!=last){var scrollBounds=scrollingContainer.getBoundingClientRect();bounds.top<scrollBounds.top?scrollingContainer.scrollTop-=scrollBounds.top-bounds.top:bou
2nds.bottom>scrollBounds.bottom&&(scrollingContainer.scrollTop+=bounds.bottom-scrollBounds.bottom)}}}}},{key:"setNativeRange",value:function(startNode,startOffset){var endNode=arguments.length>2&&void 0!==arguments[2]?arguments[2]:startNode,endOffset=arguments.length>3&&void 0!==arguments[3]?arguments[3]:startOffset,force=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(debug.info("setNativeRange",startNode,startOffset,endNode,endOffset),null==startNode||null!=this.root.parentNode&&null!=startNode.parentNode&&null!=endNode.parentNode){var selection=document.getSelection();if(null!=selection)if(null!=startNode){this.hasFocus()||this.root.focus();var native=(this.getNativeRange()||{}).native;if(null==native||force||startNode!==native.startContainer||startOffset!==native.startOffset||endNode!==native.endContainer||endOffset!==native.endOffset){"BR"==startNode.tagName&&(startOffset=[].indexOf.call(startNode.parentNode.childNodes,startNode),startNode=startNode.parentNode),"BR"==endNode.tagName&&(endOffset=[].indexOf.call(endNode.parentNode.childNodes,endNode),endNode=endNode.parentNode);var range=document.createRange();range.setStart(startNode,startOffset),range.setEnd(endNode,endOffset),selection.removeAllRanges(),selection.addRange(range)}}else selection.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(range){var force=arguments.length>1&&void 0!==arguments[1]&&arguments[1],source=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_emitter4.default.sources.API;if("string"==typeof force&&(source=force,force=!1),debug.info("setRange",range),null!=range){var args=this.rangeToNative(range);this.setNativeRange.apply(this,_toConsumableArray(args).concat([force]))}else this.setNativeRange(null);this.update(source)}},{key:"update",value:function(){var source=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_emitter4.default.sources.USER,oldRange=this.lastRange,_getRange=this.getRange(),_getRange2=_slicedToArray(_getRange,2),lastRange=_getRange2[0],nativeRange=_getRange2[1];if(this.lastRange=lastRange,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,_deepEqual2.default)(oldRange,this.lastRange)){var _emitter;!this.composing&&null!=nativeRange&&nativeRange.native.collapsed&&nativeRange.start.node!==this.cursor.textNode&&this.cursor.restore();var _emitter2,args=[_emitter4.default.events.SELECTION_CHANGE,(0,_clone2.default)(this.lastRange),(0,_clone2.default)(oldRange),source];(_emitter=this.emitter).emit.apply(_emitter,[_emitter4.default.events.EDITOR_CHANGE].concat(args)),source!==_emitter4.default.sources.SILENT&&(_emitter2=this.emitter).emit.apply(_emitter2,args)}}}]),Selection}();function contains(parent,descendant){try{descendant.parentNode}catch(e){return!1}return descendant instanceof Text&&(descendant=descendant.parentNode),parent.contains(descendant)}exports.Range=Range,exports.default=Selection},function(module,exports,__nested_webpack_require_116908__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_parchment=__nested_webpack_require_116908__(0),Break=function(_Parchment$Embed){function Break(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Break),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Break.__proto__||Object.getPrototypeOf(Break)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Break,_Parchment$Embed),_createClass(Break,[{key:"insertInto",value:function(parent,ref){0===parent.children.length?_get(Break.prototype.__proto__||Object.getPrototypeOf(Break.prototype),"insertInto",this).call(this,parent,ref):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),Break}(((obj=_parchment)&&obj.__esModule?obj:{default:obj}).default.Embed);Break.blotName="break",Break.tagName="BR",exports.default=Break},function(module,exports,__nested_webpack_require_120162__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=Object.
2setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0});var linked_list_1=__nested_webpack_require_120162__(44),shadow_1=__nested_webpack_require_120162__(30),Registry=__nested_webpack_require_120162__(1),ContainerBlot=function(_super){function ContainerBlot(domNode){var _this=_super.call(this,domNode)||this;return _this.build(),_this}return __extends(ContainerBlot,_super),ContainerBlot.prototype.appendChild=function(other){this.insertBefore(other)},ContainerBlot.prototype.attach=function(){_super.prototype.attach.call(this),this.children.forEach((function(child){child.attach()}))},ContainerBlot.prototype.build=function(){var _this=this;this.children=new linked_list_1.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(node){try{var child=makeBlot(node);_this.insertBefore(child,_this.children.head||void 0)}catch(err){if(err instanceof Registry.ParchmentError)return;throw err}}))},ContainerBlot.prototype.deleteAt=function(index,length){if(0===index&&length===this.length())return this.remove();this.children.forEachAt(index,length,(function(child,offset,length){child.deleteAt(offset,length)}))},ContainerBlot.prototype.descendant=function(criteria,index){var _a=this.children.find(index),child=_a[0],offset=_a[1];return null==criteria.blotName&&criteria(child)||null!=criteria.blotName&&child instanceof criteria?[child,offset]:child instanceof ContainerBlot?child.descendant(criteria,offset):[null,-1]},ContainerBlot.prototype.descendants=function(criteria,index,length){void 0===index&&(index=0),void 0===length&&(length=Number.MAX_VALUE);var descendants=[],lengthLeft=length;return this.children.forEachAt(index,length,(function(child,index,length){(null==criteria.blotName&&criteria(child)||null!=criteria.blotName&&child instanceof criteria)&&descendants.push(child),child instanceof ContainerBlot&&(descendants=descendants.concat(child.descendants(criteria,index,lengthLeft))),lengthLeft-=length})),descendants},ContainerBlot.prototype.detach=function(){this.children.forEach((function(child){child.detach()})),_super.prototype.detach.call(this)},ContainerBlot.prototype.formatAt=function(index,length,name,value){this.children.forEachAt(index,length,(function(child,offset,length){child.formatAt(offset,length,name,value)}))},ContainerBlot.prototype.insertAt=function(index,value,def){var _a=this.children.find(index),child=_a[0],offset=_a[1];if(child)child.insertAt(offset,value,def);else{var blot=null==def?Registry.create("text",value):Registry.create(value,def);this.appendChild(blot)}},ContainerBlot.prototype.insertBefore=function(childBlot,refBlot){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(child){return childBlot instanceof child})))throw new Registry.ParchmentError("Cannot insert "+childBlot.statics.blotName+" into "+this.statics.blotName);childBlot.insertInto(this,refBlot)},ContainerBlot.prototype.length=function(){return this.children.reduce((function(memo,child){return memo+child.length()}),0)},ContainerBlot.prototype.moveChildren=function(targetParent,refNode){this.children.forEach((function(child){targetParent.insertBefore(child,refNode)}))},ContainerBlot.prototype.optimize=function(context){if(_super.prototype.optimize.call(this,context),0===this.children.length)if(null!=this.statics.defaultChild){var child=Registry.create(this.statics.defaultChild);this.appendChild(child),child.optimize(context)}else this.remove()},ContainerBlot.prototype.path=function(index,inclusive){void 0===inclusive&&(inclusive=!1);var _a=this.children.find(index,inclusive),child=_a[0],offset=_a[1],position=[[this,index]];return child instanceof ContainerBlot?position.concat(child.path(offset,inclusive)):(null!=child&&position.push([child,offset]),position)},ContainerBlot.prototype.removeChild=function(child){this.children.remove(child)},ContainerBlot.prototype.replace=function(target){target instanceof ContainerBlot&&target.moveChildren(this),_super.prototype.replace.call(this,target)},ContainerBlot.prototype.split=function(index,force){if(void 0===force&&(force=!1),!force){if(0===index)return this;if(index===this.length())return this.next}var after=this.clone();return this.parent.insertBefore(after,this.next),this.children.forEac
2hAt(index,this.length(),(function(child,offset,length){child=child.split(offset,force),after.appendChild(child)})),after},ContainerBlot.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},ContainerBlot.prototype.update=function(mutations,context){var _this=this,addedNodes=[],removedNodes=[];mutations.forEach((function(mutation){mutation.target===_this.domNode&&"childList"===mutation.type&&(addedNodes.push.apply(addedNodes,mutation.addedNodes),removedNodes.push.apply(removedNodes,mutation.removedNodes))})),removedNodes.forEach((function(node){if(!(null!=node.parentNode&&"IFRAME"!==node.tagName&&document.body.compareDocumentPosition(node)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var blot=Registry.find(node);null!=blot&&(null!=blot.domNode.parentNode&&blot.domNode.parentNode!==_this.domNode||blot.detach())}})),addedNodes.filter((function(node){return node.parentNode==_this.domNode})).sort((function(a,b){return a===b?0:a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(node){var refBlot=null;null!=node.nextSibling&&(refBlot=Registry.find(node.nextSibling));var blot=makeBlot(node);blot.next==refBlot&&null!=blot.next||(null!=blot.parent&&blot.parent.removeChild(_this),_this.insertBefore(blot,refBlot||void 0))}))},ContainerBlot}(shadow_1.default);function makeBlot(node){var blot=Registry.find(node);if(null==blot)try{blot=Registry.create(node)}catch(e){blot=Registry.create(Registry.Scope.INLINE),[].slice.call(node.childNodes).forEach((function(child){blot.domNode.appendChild(child)})),node.parentNode&&node.parentNode.replaceChild(blot.domNode,node),blot.attach()}return blot}exports.default=ContainerBlot},function(module,exports,__nested_webpack_require_130088__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0});var attributor_1=__nested_webpack_require_130088__(12),store_1=__nested_webpack_require_130088__(31),container_1=__nested_webpack_require_130088__(17),Registry=__nested_webpack_require_130088__(1),FormatBlot=function(_super){function FormatBlot(domNode){var _this=_super.call(this,domNode)||this;return _this.attributes=new store_1.default(_this.domNode),_this}return __extends(FormatBlot,_super),FormatBlot.formats=function(domNode){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?domNode.tagName.toLowerCase():void 0)},FormatBlot.prototype.format=function(name,value){var format=Registry.query(name);format instanceof attributor_1.default?this.attributes.attribute(format,value):value&&(null==format||name===this.statics.blotName&&this.formats()[name]===value||this.replaceWith(name,value))},FormatBlot.prototype.formats=function(){var formats=this.attributes.values(),format=this.statics.formats(this.domNode);return null!=format&&(formats[this.statics.blotName]=format),formats},FormatBlot.prototype.replaceWith=function(name,value){var replacement=_super.prototype.replaceWith.call(this,name,value);return this.attributes.copy(replacement),replacement},FormatBlot.prototype.update=function(mutations,context){var _this=this;_super.prototype.update.call(this,mutations,context),mutations.some((function(mutation){return mutation.target===_this.domNode&&"attributes"===mutation.type}))&&this.attributes.build()},FormatBlot.prototype.wrap=function(name,value){var wrapper=_super.prototype.wrap.call(this,name,value);return wrapper instanceof FormatBlot&&wrapper.statics.scope===this.statics.scope&&this.attributes.move(wrapper),wrapper},FormatBlot}(container_1.default);exports.default=FormatBlot},function(module,exports,__nested_webpack_require_133111__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0});var shadow_1=__nested_webpack_require_133111__(30),Registry=__nested_webpack_require_133111__(1),LeafBlot=function(_super){function LeafBlot(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(LeafBlot,_super),LeafBlot.value=function(domNode){return!0},LeafBlot.prototype.index=function(node,offset){return this.domNode===node||this.domNode.compareDocumentPosition(node)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(offset,1):-1},LeafBlot.prototype.position=function(index,inclusive){var offset=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return index>0&&(offset+=1),[this.parent.domNode,offset]},LeafBlot.prototype.value=function(){var _a;return(_a={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,_a},LeafBlot.scope=Registry.Scope.INLINE_BLOT,LeafBlot}(shadow_1.default);exports.default=LeafBlot},function(module,exports,__nested_webpack_require_134898__){var equal=__nested_webpack_require_134898__(11),extend=__nested_webpack_require_134898__(3),lib={attributes:{compose:function(a,b,keepNull){"object"!=typeof a&&(a={}),"object"!=typeof b&&(b={});var attributes=extend(!0,{},b);for(var key in keepNull||(attributes=Object.keys(attributes).reduce((function(copy,key){return null!=attributes[key]&&(copy[key]=attributes[key]),copy}),{})),a)void 0!==a[key]&&void 0===b[key]&&(attributes[key]=a[key]);return Object.keys(attributes).length>0?attributes:void 0},diff:function(a,b){"object"!=typeof a&&(a={}),"object"!=typeof b&&(b={});var attributes=Object.keys(a).concat(Object.keys(b)).reduce((function(attributes,key){return equal(a[key],b[key])||(attributes[key]=void 0===b[key]?null:b[key]),attributes}),{});return Object.keys(attributes).length>0?attributes:void 0},transform:function(a,b,priority){if("object"!=typeof a)return b;if("object"==typeof b){if(!priority)return b;var attributes=Object.keys(b).reduce((function(attributes,key){return void 0===a[key]&&(attributes[key]=b[key]),attributes}),{});return Object.keys(attributes).length>0?attributes:void 0}}},iterator:function(ops){return new Iterator(ops)},length:function(op){return"number"==typeof op.delete?op.delete:"number"==typeof op.retain?op.retain:"string"==typeof op.insert?op.insert.length:1}};function Iterator(ops){this.ops=ops,this.index=0,this.offset=0}Iterator.prototype.hasNext=function(){return this.peekLength()<1/0},Iterator.prototype.next=function(length){length||(length=1/0);var nextOp=this.ops[this.index];if(nextOp){var offset=this.offset,opLength=lib.length(nextOp);if(length>=opLength-offset?(length=opLength-offset,this.index+=1,this.offset=0):this.offset+=length,"number"==typeof nextOp.delete)return{delete:length};var retOp={};return nextOp.attributes&&(retOp.attributes=nextOp.attributes),"number"==typeof nextOp.retain?retOp.retain=length:"string"==typeof nextOp.insert?retOp.insert=nextOp.insert.substr(offset,length):retOp.insert=nextOp.insert,retOp}return{retain:1/0}},Iterator.prototype.peek=function(){return this.ops[this.index]},Iterator.prototype.peekLength=function(){return this.ops[this.index]?lib.length(this.ops[this.index])-this.offset:1/0}
2,Iterator.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},Iterator.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var offset=this.offset,index=this.index,next=this.next(),rest=this.ops.slice(this.index);return this.offset=offset,this.index=index,[next].concat(rest)}return[]},module.exports=lib},function(module,exports){var clone=function(){"use strict";function _instanceof(obj,type){return null!=type&&obj instanceof type}var nativeMap,nativeSet,nativePromise;try{nativeMap=Map}catch(_){nativeMap=function(){}}try{nativeSet=Set}catch(_){nativeSet=function(){}}try{nativePromise=Promise}catch(_){nativePromise=function(){}}function clone(parent,circular,depth,prototype,includeNonEnumerable){"object"==typeof circular&&(depth=circular.depth,prototype=circular.prototype,includeNonEnumerable=circular.includeNonEnumerable,circular=circular.circular);var allParents=[],allChildren=[],useBuffer=void 0!==Buffer;return void 0===circular&&(circular=!0),void 0===depth&&(depth=1/0),function _clone(parent,depth){if(null===parent)return null;if(0===depth)return parent;var child,proto;if("object"!=typeof parent)return parent;if(_instanceof(parent,nativeMap))child=new nativeMap;else if(_instanceof(parent,nativeSet))child=new nativeSet;else if(_instanceof(parent,nativePromise))child=new nativePromise((function(resolve,reject){parent.then((function(value){resolve(_clone(value,depth-1))}),(function(err){reject(_clone(err,depth-1))}))}));else if(clone.__isArray(parent))child=[];else if(clone.__isRegExp(parent))child=new RegExp(parent.source,__getRegExpFlags(parent)),parent.lastIndex&&(child.lastIndex=parent.lastIndex);else if(clone.__isDate(parent))child=new Date(parent.getTime());else{if(useBuffer&&Buffer.isBuffer(parent))return child=Buffer.allocUnsafe?Buffer.allocUnsafe(parent.length):new Buffer(parent.length),parent.copy(child),child;_instanceof(parent,Error)?child=Object.create(parent):void 0===prototype?(proto=Object.getPrototypeOf(parent),child=Object.create(proto)):(child=Object.create(prototype),proto=prototype)}if(circular){var index=allParents.indexOf(parent);if(-1!=index)return allChildren[index];allParents.push(parent),allChildren.push(child)}for(var i in _instanceof(parent,nativeMap)&&parent.forEach((function(value,key){var keyChild=_clone(key,depth-1),valueChild=_clone(value,depth-1);child.set(keyChild,valueChild)})),_instanceof(parent,nativeSet)&&parent.forEach((function(value){var entryChild=_clone(value,depth-1);child.add(entryChild)})),parent){var attrs;proto&&(attrs=Object.getOwnPropertyDescriptor(proto,i)),attrs&&null==attrs.set||(child[i]=_clone(parent[i],depth-1))}if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(parent);for(i=0;i<symbols.length;i++){var symbol=symbols[i];(!(descriptor=Object.getOwnPropertyDescriptor(parent,symbol))||descriptor.enumerable||includeNonEnumerable)&&(child[symbol]=_clone(parent[symbol],depth-1),descriptor.enumerable||Object.defineProperty(child,symbol,{enumerable:!1}))}}if(includeNonEnumerable){var allPropertyNames=Object.getOwnPropertyNames(parent);for(i=0;i<allPropertyNames.length;i++){var descriptor,propertyName=allPropertyNames[i];(descriptor=Object.getOwnPropertyDescriptor(parent,propertyName))&&descriptor.enumerable||(child[propertyName]=_clone(parent[propertyName],depth-1),Object.defineProperty(child,propertyName,{enumerable:!1}))}}return child}(parent,depth)}function __objToStr(o){return Object.prototype.toString.call(o)}function __getRegExpFlags(re){var flags="";return re.global&&(flags+="g"),re.ignoreCase&&(flags+="i"),re.multiline&&(flags+="m"),flags}return clone.clonePrototype=function(parent){if(null===parent)return null;var c=function(){};return c.prototype=parent,new c},clone.__objToStr=__objToStr,clone.__isDate=function(o){return"object"==typeof o&&"[object Date]"===__objToStr(o)},clone.__isArray=function(o){return"object"==typeof o&&"[object Array]"===__objToStr(o)},clone.__isRegExp=function(o){return"object"==typeof o&&"[object RegExp]"===__objToStr(o)},clone.__getRegExpFlags=__getRegExpFlags,clone}();"object"==typeof module&&module.exports&&(module.exports=clone)},function(module,exports,__nested_webpack_require_146497__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);
2throw new TypeError("Invalid attempt to destructure non-iterable instance")},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_parchment2=_interopRequireDefault(__nested_webpack_require_146497__(0)),_emitter2=_interopRequireDefault(__nested_webpack_require_146497__(8)),_block=__nested_webpack_require_146497__(4),_block2=_interopRequireDefault(_block),_break2=_interopRequireDefault(__nested_webpack_require_146497__(16)),_code2=_interopRequireDefault(__nested_webpack_require_146497__(13)),_container2=_interopRequireDefault(__nested_webpack_require_146497__(25));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function isLine(blot){return blot instanceof _block2.default||blot instanceof _block.BlockEmbed}var Scroll=function(_Parchment$Scroll){function Scroll(domNode,config){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Scroll);var _this=function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Scroll.__proto__||Object.getPrototypeOf(Scroll)).call(this,domNode));return _this.emitter=config.emitter,Array.isArray(config.whitelist)&&(_this.whitelist=config.whitelist.reduce((function(whitelist,format){return whitelist[format]=!0,whitelist}),{})),_this.domNode.addEventListener("DOMNodeInserted",(function(){})),_this.optimize(),_this.enable(),_this}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Scroll,_Parchment$Scroll),_createClass(Scroll,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(index,length){var _line=this.line(index),_line2=_slicedToArray(_line,2),first=_line2[0],offset=_line2[1],_line3=this.line(index+length),last=_slicedToArray(_line3,1)[0];if(_get(Scroll.prototype.__proto__||Object.getPrototypeOf(Scroll.prototype),"deleteAt",this).call(this,index,length),null!=last&&first!==last&&offset>0){if(first instanceof _block.BlockEmbed||last instanceof _block.BlockEmbed)return void this.optimize();if(first instanceof _code2.default){var newlineIndex=first.newlineIndex(first.length(),!0);if(newlineIndex>-1&&(first=first.split(newlineIndex+1))===last)return void this.optimize()}else if(last instanceof _code2.default){var _newlineIndex=last.newlineIndex(0);_newlineIndex>-1&&last.split(_newlineIndex+1)}var ref=last.children.head instanceof _break2.default?null:last.children.head;first.moveChildren(last,ref),first.remove()}this.optimize()}},{key:"enable",value:function(){var enabled=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",enabled)}},{key:"formatAt",value:function(index,length,format,value){(null==this.whitelist||this.whitelist[format])&&(_get(Scroll.prototype.__proto__||Object.getPrototypeOf(Scroll.prototype),"formatAt",this).call(this,index,length,format,value),this.optimize())}},{key:"insertAt",value:function(index,value,def){if(null==def||null==this.whitelist||this.whitelist[value]){
2if(index>=this.length())if(null==def||null==_parchment2.default.query(value,_parchment2.default.Scope.BLOCK)){var blot=_parchment2.default.create(this.statics.defaultChild);this.appendChild(blot),null==def&&value.endsWith("\n")&&(value=value.slice(0,-1)),blot.insertAt(0,value,def)}else{var embed=_parchment2.default.create(value,def);this.appendChild(embed)}else _get(Scroll.prototype.__proto__||Object.getPrototypeOf(Scroll.prototype),"insertAt",this).call(this,index,value,def);this.optimize()}}},{key:"insertBefore",value:function(blot,ref){if(blot.statics.scope===_parchment2.default.Scope.INLINE_BLOT){var wrapper=_parchment2.default.create(this.statics.defaultChild);wrapper.appendChild(blot),blot=wrapper}_get(Scroll.prototype.__proto__||Object.getPrototypeOf(Scroll.prototype),"insertBefore",this).call(this,blot,ref)}},{key:"leaf",value:function(index){return this.path(index).pop()||[null,-1]}},{key:"line",value:function(index){return index===this.length()?this.line(index-1):this.descendant(isLine,index)}},{key:"lines",value:function(){return function getLines(blot,index,length){var lines=[],lengthLeft=length;return blot.children.forEachAt(index,length,(function(child,index,length){isLine(child)?lines.push(child):child instanceof _parchment2.default.Container&&(lines=lines.concat(getLines(child,index,lengthLeft))),lengthLeft-=length})),lines}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var mutations=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(_get(Scroll.prototype.__proto__||Object.getPrototypeOf(Scroll.prototype),"optimize",this).call(this,mutations,context),mutations.length>0&&this.emitter.emit(_emitter2.default.events.SCROLL_OPTIMIZE,mutations,context))}},{key:"path",value:function(index){return _get(Scroll.prototype.__proto__||Object.getPrototypeOf(Scroll.prototype),"path",this).call(this,index).slice(1)}},{key:"update",value:function(mutations){if(!0!==this.batch){var source=_emitter2.default.sources.USER;"string"==typeof mutations&&(source=mutations),Array.isArray(mutations)||(mutations=this.observer.takeRecords()),mutations.length>0&&this.emitter.emit(_emitter2.default.events.SCROLL_BEFORE_UPDATE,source,mutations),_get(Scroll.prototype.__proto__||Object.getPrototypeOf(Scroll.prototype),"update",this).call(this,mutations.concat([])),mutations.length>0&&this.emitter.emit(_emitter2.default.events.SCROLL_UPDATE,source,mutations)}}}]),Scroll}(_parchment2.default.Scroll);Scroll.blotName="scroll",Scroll.className="ql-editor",Scroll.tagName="DIV",Scroll.defaultChild="block",Scroll.allowedChildren=[_block2.default,_block.BlockEmbed,_container2.default],exports.default=Scroll},function(module,exports,__nested_webpack_require_157111__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SHORTKEY=exports.default=void 0;var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_clone2=_interopRequireDefault(__nested_webpack_require_157111__(21)),_deepEqual2=_interopRequireDefault(__nested_webpack_require_157111__(11)),_extend2=_interopRequireDefault(__nested_webpack_require_157111__(3)),_quillDelta2=_interopRequireDefault(__nested_webpack_require_157111__(2)),_op2=_interopRequireDefault(__nested_webpack_require_157111__(20)),_parchment2=_interopRequireDefault(__nested_webpack_require_157111__(0)),_quill2=_interopRequireDefault(__nested_webpack_require_157111__(5)),_logger2=_interopRequireDefault(__nested_webpack_require_157111__(10)),_module2=_interopRequireDefault(__nested_webpack_require_157111__(9));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var debug=(0,_logger2.default)("quill:keyboard"),SHORTKEY=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Keyboard=function(_Module){function Keyboard(quill,options){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Keyboard);var _this=function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Keyboard.__proto__||Object.getPrototypeOf(Keyboard)).call(this,quill,options));return _this.bindings={}
2,Object.keys(_this.options.bindings).forEach((function(name){("list autofill"!==name||null==quill.scroll.whitelist||quill.scroll.whitelist.list)&&_this.options.bindings[name]&&_this.addBinding(_this.options.bindings[name])})),_this.addBinding({key:Keyboard.keys.ENTER,shiftKey:null},handleEnter),_this.addBinding({key:Keyboard.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(_this.addBinding({key:Keyboard.keys.BACKSPACE},{collapsed:!0},handleBackspace),_this.addBinding({key:Keyboard.keys.DELETE},{collapsed:!0},handleDelete)):(_this.addBinding({key:Keyboard.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},handleBackspace),_this.addBinding({key:Keyboard.keys.DELETE},{collapsed:!0,suffix:/^.?$/},handleDelete)),_this.addBinding({key:Keyboard.keys.BACKSPACE},{collapsed:!1},handleDeleteRange),_this.addBinding({key:Keyboard.keys.DELETE},{collapsed:!1},handleDeleteRange),_this.addBinding({key:Keyboard.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},handleBackspace),_this.listen(),_this}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Keyboard,_Module),_createClass(Keyboard,null,[{key:"match",value:function(evt,binding){return binding=normalize(binding),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(key){return!!binding[key]!==evt[key]&&null!==binding[key]}))&&binding.key===(evt.which||evt.keyCode)}}]),_createClass(Keyboard,[{key:"addBinding",value:function(key){var context=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},handler=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},binding=normalize(key);if(null==binding||null==binding.key)return debug.warn("Attempted to add invalid keyboard binding",binding);"function"==typeof context&&(context={handler:context}),"function"==typeof handler&&(handler={handler}),binding=(0,_extend2.default)(binding,context,handler),this.bindings[binding.key]=this.bindings[binding.key]||[],this.bindings[binding.key].push(binding)}},{key:"listen",value:function(){var _this2=this;this.quill.root.addEventListener("keydown",(function(evt){if(!evt.defaultPrevented){var which=evt.which||evt.keyCode,bindings=(_this2.bindings[which]||[]).filter((function(binding){return Keyboard.match(evt,binding)}));if(0!==bindings.length){var range=_this2.quill.getSelection();if(null!=range&&_this2.quill.hasFocus()){var _quill$getLine=_this2.quill.getLine(range.index),_quill$getLine2=_slicedToArray(_quill$getLine,2),line=_quill$getLine2[0],offset=_quill$getLine2[1],_quill$getLeaf=_this2.quill.getLeaf(range.index),_quill$getLeaf2=_slicedToArray(_quill$getLeaf,2),leafStart=_quill$getLeaf2[0],offsetStart=_quill$getLeaf2[1],_ref=0===range.length?[leafStart,offsetStart]:_this2.quill.getLeaf(range.index+range.length),_ref2=_slicedToArray(_ref,2),leafEnd=_ref2[0],offsetEnd=_ref2[1],prefixText=leafStart instanceof _parchment2.default.Text?leafStart.value().slice(0,offsetStart):"",suffixText=leafEnd instanceof _parchment2.default.Text?leafEnd.value().slice(offsetEnd):"",curContext={collapsed:0===range.length,empty:0===range.length&&line.length()<=1,format:_this2.quill.getFormat(range),offset,prefix:prefixText,suffix:suffixText};bindings.some((function(binding){if(null!=binding.collapsed&&binding.collapsed!==curContext.collapsed)return!1;if(null!=binding.empty&&binding.empty!==curContext.empty)return!1;if(null!=binding.offset&&binding.offset!==curContext.offset)return!1;if(Array.isArray(binding.format)){if(binding.format.every((function(name){return null==curContext.format[name]})))return!1}else if("object"===_typeof(binding.format)&&!Object.keys(binding.format).every((function(name){return!0===binding.format[name]?null!=curContext.format[name]:!1===binding.format[name]?null==curContext.format[name]:(0,_deepEqual2.default)(binding.format[name],curContext.format[name])})))return!1;return!(null!=binding.prefix&&!binding.prefix.test(curContext.prefix)||null!=binding.suffix&&!binding.suffix.test(curContext.suffix)||!0===binding.handler.call(_this2,range,curContext))}))&&evt.preventDefault()}}}}))}}]),Keyboard}(_module2.default);function makeEmbedArrowHandler(key,shiftKey){var _ref3,where=key===Keyboard.keys.LEFT?"prefix":"suffix";return _defineProperty(_ref3={key,shiftKey,altKey:null},where,/^$/),_defineProperty(_ref3,"handler",(function(range){var index=range.index;key===Keyboard.keys.RIGHT&&(index+=range.length+1);var _quill$getLeaf3=this.quill.getLeaf(index);return!(_slicedToArray(_quill$getLeaf3,1)[0]instanceof _parchment2.default.Embed&&(key===Keyboard.keys.LEFT?shiftKey?this.quill.setSelection(range.index-1,range.length+1,_quill2.default.sources.USER):this.quill.setSelection(range.index-1,_quill2.default.sources.USER):shiftKey?this.quill.setSelection(range.index,range.length+1,_quill2.default.sources.USER):this.quill.setSelection(range.index+range.length+1,_quill2.default.sources.USER),1))})),_ref3}function handleBackspace(range,context){if(!(0===range.index||this.quill.getLength()<=1)){var _quill$getLine11=this.quill.getLine(range.index),line=_slicedToArray(_quill$getLine11,1)[0],formats={};if(0===context.offset){var _quill$getLine13=this.quill.getLine(range.index-1),prev=_slicedToArray(_quill$getLine13,1)[0];if(null!=prev&&prev.length()>1){var curFormats=line.formats(),prevFormats=this.quill.getFormat(range.index-1,1);formats=_op2.default.attributes.diff(curFormats,prevFormats)||{}}}var length=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(context.prefix)?2:1;this.quill.deleteText(range.index-length,length,_quill2.default.sources.USER),Object.keys(formats).length>0&&this.quill.formatLine(range.index-length,length,formats,_quill2.default.sources.USER),this.quill.focus()}}function handleDelete(range,context){var length=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(context.suffix)?2:1;if(!(range.index>=this.quill.getLength()-length)){var formats={},nextLength=0,_quill$getLine15=this.quill.getLine(range.index),line=_slicedToArray(_quill$getLine15,1)[0];if(context.offset>=line.length()-1){var _quill$getLine17=this.quill.getLine(range.index+1),next=_slicedToArray(_quill$getLine17,1)[0];if(next){var curFormats=line.formats(),nextFormats=this.quill.getFormat(range.index,1);formats=_op2.default.attributes.diff(curFormats,nextFormats)||{},nextLength=next.length()}}this.quill.deleteText(range.index,length,_quill2.default.sources.USER),Object.keys(formats).length>0&&this.quill.formatLine(range.index+nextLength-1,length,formats,_quill2.default.sources.USER)}}function handleDeleteRange(range){var lines=this.quill.getLines(range),formats={};if(lines.length>1){var firstFormats=lines[0].formats(),lastFormats=lines[lines.length-1].formats();formats=_op2.default.attributes.diff(lastFormats,firstFormats)||{}}this.quill.deleteText(range,_quill2.default.sources.USER),Object.keys(formats).length>0&&this.quill.formatLine(range.index,1,formats,_quill2.default.sources.USER),this.quill.setSelection(range.index,_quill2.default.sources.SILENT),this.quill.focus()}function handleEnter(range,context){var _this3=this;range.length>0&&this.quill.scroll.deleteAt(range.index,range.length);var lineFormats=Object.keys(context.format).reduce((function(lineFormats,format){return _parchment2.default.query(format,_parchment2.default.Scope.BLOCK)&&!Array.isArray(context.format[format])&&(lineFormats[format]=context.format[format]),lineFormats}),{});this.quill.insertText(range.index,"\n",lineFormats,_quill2.default.sources.USER),this.quill.setSelection(range.index+1,_quill2.default.sources.SILENT),this.quill.focus(),Ob
2ject.keys(context.format).forEach((function(name){null==lineFormats[name]&&(Array.isArray(context.format[name])||"link"!==name&&_this3.quill.format(name,context.format[name],_quill2.default.sources.USER))}))}function makeCodeBlockHandler(indent){return{key:Keyboard.keys.TAB,shiftKey:!indent,format:{"code-block":!0},handler:function(range){var CodeBlock=_parchment2.default.query("code-block"),index=range.index,length=range.length,_quill$scroll$descend=this.quill.scroll.descendant(CodeBlock,index),_quill$scroll$descend2=_slicedToArray(_quill$scroll$descend,2),block=_quill$scroll$descend2[0],offset=_quill$scroll$descend2[1];if(null!=block){var scrollIndex=this.quill.getIndex(block),start=block.newlineIndex(offset,!0)+1,end=block.newlineIndex(scrollIndex+offset+length),lines=block.domNode.textContent.slice(start,end).split("\n");offset=0,lines.forEach((function(line,i){indent?(block.insertAt(start+offset,CodeBlock.TAB),offset+=CodeBlock.TAB.length,0===i?index+=CodeBlock.TAB.length:length+=CodeBlock.TAB.length):line.startsWith(CodeBlock.TAB)&&(block.deleteAt(start+offset,CodeBlock.TAB.length),offset-=CodeBlock.TAB.length,0===i?index-=CodeBlock.TAB.length:length-=CodeBlock.TAB.length),offset+=line.length+1})),this.quill.update(_quill2.default.sources.USER),this.quill.setSelection(index,length,_quill2.default.sources.SILENT)}}}}function makeFormatHandler(format){return{key:format[0].toUpperCase(),shortKey:!0,handler:function(range,context){this.quill.format(format,!context.format[format],_quill2.default.sources.USER)}}}function normalize(binding){if("string"==typeof binding||"number"==typeof binding)return normalize({key:binding});if("object"===(void 0===binding?"undefined":_typeof(binding))&&(binding=(0,_clone2.default)(binding,!1)),"string"==typeof binding.key)if(null!=Keyboard.keys[binding.key.toUpperCase()])binding.key=Keyboard.keys[binding.key.toUpperCase()];else{if(1!==binding.key.length)return null;binding.key=binding.key.toUpperCase().charCodeAt(0)}return binding.shortKey&&(binding[SHORTKEY]=binding.shortKey,delete binding.shortKey),binding}Keyboard.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Keyboard.DEFAULTS={bindings:{bold:makeFormatHandler("bold"),italic:makeFormatHandler("italic"),underline:makeFormatHandler("underline"),indent:{key:Keyboard.keys.TAB,format:["blockquote","indent","list"],handler:function(range,context){if(context.collapsed&&0!==context.offset)return!0;this.quill.format("indent","+1",_quill2.default.sources.USER)}},outdent:{key:Keyboard.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(range,context){if(context.collapsed&&0!==context.offset)return!0;this.quill.format("indent","-1",_quill2.default.sources.USER)}},"outdent backspace":{key:Keyboard.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(range,context){null!=context.format.indent?this.quill.format("indent","-1",_quill2.default.sources.USER):null!=context.format.list&&this.quill.format("list",!1,_quill2.default.sources.USER)}},"indent code-block":makeCodeBlockHandler(!0),"outdent code-block":makeCodeBlockHandler(!1),"remove tab":{key:Keyboard.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(range){this.quill.deleteText(range.index-1,1,_quill2.default.sources.USER)}},tab:{key:Keyboard.keys.TAB,handler:function(range){this.quill.history.cutoff();var delta=(new _quillDelta2.default).retain(range.index).delete(range.length).insert("\t");this.quill.updateContents(delta,_quill2.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(range.index+1,_quill2.default.sources.SILENT)}},"list empty enter":{key:Keyboard.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(range,context){this.quill.format("list",!1,_quill2.default.sources.USER),context.format.indent&&this.quill.format("indent",!1,_quill2.default.sources.USER)}},"checklist enter":{key:Keyboard.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(range){var _quill$getLine3=this.quill.getLine(range.index),_quill$getLine4=_slicedToArray(_quill$getLine3,2),line=_quill$getLine4[0],offset=_quill$getLine4[1],formats=(0,_extend2.default)({},line.formats(),{list:"checked"}),delta=(new _quillDelta2.default).retain(range.index).insert("\n",formats).retain(line.length()-offset-1).retain(1,{list:"unchecked"});this.quill.updateContents(delta,_quill2.default.sources.USER),this.quill.setSelection(range.index+1,_quill2.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:Keyboard.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(range,context){var _quill$getLine5=this.quill.getLine(range.index),_quill$getLine6=_slicedToArray(_quill$getLine5,2),line=_quill$getLine6[0],offset=_quill$getLine6[1],delta=(new _quillDelta2.default).retain(range.index).insert("\n",context.format).retain(line.length()-offset-1).retain(1,{header:null});this.quill.updateContents(delta,_quill2.default.sources.USER),this.quill.setSelection(range.index+1,_quill2.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(range,context){var length=context.prefix.length,_quill$getLine7=this.quill.getLine(range.index),_quill$getLine8=_slicedToArray(_quill$getLine7,2),line=_quill$getLine8[0],offset=_quill$getLine8[1];if(offset>length)return!0;var value=void 0;switch(context.prefix.trim()){case"[]":case"[ ]":value="unchecked";break;
2case"[x]":value="checked";break;case"-":case"*":value="bullet";break;default:value="ordered"}this.quill.insertText(range.index," ",_quill2.default.sources.USER),this.quill.history.cutoff();var delta=(new _quillDelta2.default).retain(range.index-offset).delete(length+1).retain(line.length()-2-offset).retain(1,{list:value});this.quill.updateContents(delta,_quill2.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(range.index-length,_quill2.default.sources.SILENT)}},"code exit":{key:Keyboard.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(range){var _quill$getLine9=this.quill.getLine(range.index),_quill$getLine10=_slicedToArray(_quill$getLine9,2),line=_quill$getLine10[0],offset=_quill$getLine10[1],delta=(new _quillDelta2.default).retain(range.index+line.length()-offset-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(delta,_quill2.default.sources.USER)}},"embed left":makeEmbedArrowHandler(Keyboard.keys.LEFT,!1),"embed left shift":makeEmbedArrowHandler(Keyboard.keys.LEFT,!0),"embed right":makeEmbedArrowHandler(Keyboard.keys.RIGHT,!1),"embed right shift":makeEmbedArrowHandler(Keyboard.keys.RIGHT,!0)}},exports.default=Keyboard,exports.SHORTKEY=SHORTKEY},function(module,exports,__nested_webpack_require_181454__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_parchment2=_interopRequireDefault(__nested_webpack_require_181454__(0)),_text2=_interopRequireDefault(__nested_webpack_require_181454__(7));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Cursor=function(_Parchment$Embed){function Cursor(domNode,selection){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Cursor);var _this=function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Cursor.__proto__||Object.getPrototypeOf(Cursor)).call(this,domNode));return _this.selection=selection,_this.textNode=document.createTextNode(Cursor.CONTENTS),_this.domNode.appendChild(_this.textNode),_this._length=0,_this}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Cursor,_Parchment$Embed),_createClass(Cursor,null,[{key:"value",value:function(){}}]),_createClass(Cursor,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(name,value){if(0!==this._length)return _get(Cursor.prototype.__proto__||Object.getPrototypeOf(Cursor.prototype),"format",this).call(this,name,value);for(var target=this,index=0;null!=target&&target.statics.scope!==_parchment2.default.Scope.BLOCK_BLOT;)index+=target.offset(target.parent),target=target.parent;null!=target&&(this._length=Cursor.CONTENTS.length,target.optimize(),target.formatAt(index,Cursor.CONTENTS.length,name,value),this._length=0)}},{key:"index",value:function(node,offset){return node===this.textNode?0:_get(Cursor.prototype.__proto__||Object.getPrototypeOf(Cursor.prototype),"index",this).call(this,node,offset)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){_get(Cursor.prototype.__proto__||Object.getPrototypeOf(Cursor.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var textNode=this.textNode,range=this.selection.getNativeRange(),restoreText=void 0,start=void 0,end=void 0;if(null!=range&&range.start.node===textNode&&range.end.node===textNode){var _ref=[textNode,range.start.offset,range.end.offset];restoreText=_ref[0],start=_ref[1],end=_ref[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);
2if(this.textNode.data!==Cursor.CONTENTS){var text=this.textNode.data.split(Cursor.CONTENTS).join("");this.next instanceof _text2.default?(restoreText=this.next.domNode,this.next.insertAt(0,text),this.textNode.data=Cursor.CONTENTS):(this.textNode.data=text,this.parent.insertBefore(_parchment2.default.create(this.textNode),this),this.textNode=document.createTextNode(Cursor.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=start){var _map=[start,end].map((function(offset){return Math.max(0,Math.min(restoreText.data.length,offset-1))})),_map2=_slicedToArray(_map,2);return start=_map2[0],end=_map2[1],{startNode:restoreText,startOffset:start,endNode:restoreText,endOffset:end}}}}},{key:"update",value:function(mutations,context){var _this2=this;if(mutations.some((function(mutation){return"characterData"===mutation.type&&mutation.target===_this2.textNode}))){var range=this.restore();range&&(context.range=range)}}},{key:"value",value:function(){return""}}]),Cursor}(_parchment2.default.Embed);Cursor.blotName="cursor",Cursor.className="ql-cursor",Cursor.tagName="span",Cursor.CONTENTS="\ufeff",exports.default=Cursor},function(module,exports,__nested_webpack_require_189100__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _parchment2=_interopRequireDefault(__nested_webpack_require_189100__(0)),_block=__nested_webpack_require_189100__(4),_block2=_interopRequireDefault(_block);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Container=function(_Parchment$Container){function Container(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}
vendor: 2,283 bytes, line 2
2(this,Container),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Container.__proto__||Object.getPrototypeOf(Container)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Container,_Parchment$Container),Container}(_parchment2.default.Container);Container.allowedChildren=[_block2.default,_block.BlockEmbed,Container],exports.default=Container},function(module,exports,__nested_webpack_require_190886__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ColorStyle=exports.ColorClass=exports.ColorAttributor=void 0;var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_parchment=__nested_webpack_require_190886__(0),_parchment2=(obj=_parchment)&&obj.__esModule?obj:{default:obj},ColorAttributor=function(_Parchment$Attributor){function ColorAttributor(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}
2(this,ColorAttributor),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(ColorAttributor.__proto__||Object.getPrototypeOf(ColorAttributor)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(ColorAttributor,_Parchment$Attributor),_createClass(ColorAttributor,[{key:"value",value:function(domNode){var value=_get(ColorAttributor.prototype.__proto__||Object.getPrototypeOf(ColorAttributor.prototype),"value",this).call(this,domNode);return value.startsWith("rgb(")?(value=value.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+value.split(",").map((function(component){return("00"+parseInt(component).toString(16)).slice(-2)})).join("")):value}}]),ColorAttributor}(_parchment2.default.Attributor.Style),ColorClass=new _parchment2.default.Attributor.Class("color","ql-color",{scope:_parchment2.default.Scope.INLINE}),ColorStyle=new ColorAttributor("color","color",{scope:_parchment2.default.Scope.INLINE});exports.ColorAttributor=ColorAttributor,exports.ColorClass=ColorClass,exports.ColorStyle=ColorStyle},function(module,exports,__nested_webpack_require_194529__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.sanitize=exports.default=void 0;var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_inline=__nested_webpack_require_194529__(6),Link=function(_Inline){function Link(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Link),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Link.__proto__||Object.getPrototypeOf(Link)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Link,_Inline),_createClass(Link,[{key:"format",value:function(name,value){if(name!==this.statics.blotName||!value)return _get(Link.prototype.__proto__||Object.getPrototypeOf(Link.prototype),"format",this).call(this,name,value);value=this.constructor.sanitize(value),this.domNode.setAttribute("href",value)}}],[{key:"create",value:function(value){var node=_get(Link.__proto__||Object.getPrototypeOf(Link),"create",this).call(this,value);return value=this.sanitize(value),node.setAttribute("href",value),node.setAttribute("rel","noopener noreferrer"),node.setAttribute("target","_blank"),node}},{key:"formats",value:function(domNode){return domNode.getAttribute("href")}},{key:"sanitize",value:function(url){return _sanitize(url,this.PROTOCOL_WHITELIST)?url:this.SANITIZED_URL}}]),Link}(((obj=_inline)&&obj.__esModule?obj:{default:obj}).default);
2function _sanitize(url,protocols){var anchor=document.createElement("a");anchor.href=url;var protocol=anchor.href.slice(0,anchor.href.indexOf(":"));return protocols.indexOf(protocol)>-1}Link.blotName="link",Link.tagName="A",Link.SANITIZED_URL="about:blank",Link.PROTOCOL_WHITELIST=["http","https","mailto","tel"],exports.default=Link,exports.sanitize=_sanitize},function(module,exports,__nested_webpack_require_198559__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_keyboard2=_interopRequireDefault(__nested_webpack_require_198559__(23)),_dropdown2=_interopRequireDefault(__nested_webpack_require_198559__(107));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var optionsCounter=0;function toggleAriaAttribute(element,attribute){element.setAttribute(attribute,!("true"===element.getAttribute(attribute)))}var Picker=function(){function Picker(select){var _this=this;!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Picker),this.select=select,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){_this.togglePicker()})),this.label.addEventListener("keydown",(function(event){switch(event.keyCode){case _keyboard2.default.keys.ENTER:_this.togglePicker();break;case _keyboard2.default.keys.ESCAPE:_this.escape(),event.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return _createClass(Picker,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),toggleAriaAttribute(this.label,"aria-expanded"),toggleAriaAttribute(this.options,"aria-hidden")}},{key:"buildItem",value:function(option){var _this2=this,item=document.createElement("span");return item.tabIndex="0",item.setAttribute("role","button"),item.classList.add("ql-picker-item"),option.hasAttribute("value")&&item.setAttribute("data-value",option.getAttribute("value")),option.textContent&&item.setAttribute("data-label",option.textContent),item.addEventListener("click",(function(){_this2.selectItem(item,!0)})),item.addEventListener("keydown",(function(event){switch(event.keyCode){case _keyboard2.default.keys.ENTER:_this2.selectItem(item,!0),event.preventDefault();break;case _keyboard2.default.keys.ESCAPE:_this2.escape(),event.preventDefault()}})),item}},{key:"buildLabel",value:function(){var label=document.createElement("span");return label.classList.add("ql-picker-label"),label.innerHTML=_dropdown2.default,label.tabIndex="0",label.setAttribute("role","button"),label.setAttribute("aria-expanded","false"),this.container.appendChild(label),label}},{key:"buildOptions",value:function(){var _this3=this,options=document.createElement("span");options.classList.add("ql-picker-options"),options.setAttribute("aria-hidden","true"),options.tabIndex="-1",options.id="ql-picker-options-"+optionsCounter,optionsCounter+=1,this.label.setAttribute("aria-controls",options.id),this.options=options,[].slice.call(this.select.options).forEach((function(option){var item=_this3.buildItem(option);options.appendChild(item),!0===option.selected&&_this3.selectItem(item)})),this.container.appendChild(options)}},{key:"buildPicker",value:function(){var _this4=this;
2[].slice.call(this.select.attributes).forEach((function(item){_this4.container.setAttribute(item.name,item.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var _this5=this;this.close(),setTimeout((function(){return _this5.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(item){var trigger=arguments.length>1&&void 0!==arguments[1]&&arguments[1],selected=this.container.querySelector(".ql-selected");if(item!==selected&&(null!=selected&&selected.classList.remove("ql-selected"),null!=item&&(item.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(item.parentNode.children,item),item.hasAttribute("data-value")?this.label.setAttribute("data-value",item.getAttribute("data-value")):this.label.removeAttribute("data-value"),item.hasAttribute("data-label")?this.label.setAttribute("data-label",item.getAttribute("data-label")):this.label.removeAttribute("data-label"),trigger))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":_typeof(Event))){var event=document.createEvent("Event");event.initEvent("change",!0,!0),this.select.dispatchEvent(event)}this.close()}}},{key:"update",value:function(){var option=void 0;if(this.select.selectedIndex>-1){var item=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];option=this.select.options[this.select.selectedIndex],this.selectItem(item)}else this.selectItem(null);var isActive=null!=option&&option!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",isActive)}}]),Picker}();exports.default=Picker},function(module,exports,__nested_webpack_require_206753__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _parchment2=_interopRequireDefault(__nested_webpack_require_206753__(0)),_quill2=_interopRequireDefault(__nested_webpack_require_206753__(5)),_block=__nested_webpack_require_206753__(4),_block2=_interopRequireDefault(_block),_break2=_interopRequireDefault(__nested_webpack_require_206753__(16)),_container2=_interopRequireDefault(__nested_webpack_require_206753__(25)),_cursor2=_interopRequireDefault(__nested_webpack_require_206753__(24)),_embed2=_interopRequireDefault(__nested_webpack_require_206753__(35)),_inline2=_interopRequireDefault(__nested_webpack_require_206753__(6)),_scroll2=_interopRequireDefault(__nested_webpack_require_206753__(22)),_text2=_interopRequireDefault(__nested_webpack_require_206753__(7)),_clipboard2=_interopRequireDefault(__nested_webpack_require_206753__(55)),_history2=_interopRequireDefault(__nested_webpack_require_206753__(42)),_keyboard2=_interopRequireDefault(__nested_webpack_require_206753__(23));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}_quill2.default.register({"blots/block":_block2.default,"blots/block/embed":_block.BlockEmbed,"blots/break":_break2.default,"blots/container":_container2.default,"blots/cursor":_cursor2.default,"blots/embed":_embed2.default,"blots/inline":_inline2.default,"blots/scroll":_scroll2.default,"blots/text":_text2.default,"modules/clipboard":_clipboard2.default,"modules/history":_history2.default,"modules/keyboard":_keyboard2.default}),_parchment2.default.register(_block2.default,_break2.default,_cursor2.default,_inline2.default,_scroll2.default,_text2.default),exports.default=_quill2.default},function(module,exports,__nested_webpack_require_208833__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Registry=__nested_webpack_require_208833__(1),ShadowBlot=function(){function ShadowBlot(domNode){this.domNode=domNode,this.domNode[Registry.DATA_KEY]={blot:this}}return Object.defineProperty(ShadowBlot.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),ShadowBlot.create=function(value){if(null==this.tagName)throw new Registry.ParchmentError("Blot definition missing tagName");var node;return Array.isArray(this.tagName)?("string"==typeof value&&(value=value.toUpperCase(),parseInt(value).toString()===value&&(value=parseInt(value))),node="number"==typeof value?document.createElement(this.tagName[value-1]):this.tagName.indexOf(value)>-1?document.createElement(value):document.createElement(this.tagName[0])
2):node=document.createElement(this.tagName),this.className&&node.classList.add(this.className),node},ShadowBlot.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},ShadowBlot.prototype.clone=function(){var domNode=this.domNode.cloneNode(!1);return Registry.create(domNode)},ShadowBlot.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[Registry.DATA_KEY]},ShadowBlot.prototype.deleteAt=function(index,length){this.isolate(index,length).remove()},ShadowBlot.prototype.formatAt=function(index,length,name,value){var blot=this.isolate(index,length);if(null!=Registry.query(name,Registry.Scope.BLOT)&&value)blot.wrap(name,value);else if(null!=Registry.query(name,Registry.Scope.ATTRIBUTE)){var parent=Registry.create(this.statics.scope);blot.wrap(parent),parent.format(name,value)}},ShadowBlot.prototype.insertAt=function(index,value,def){var blot=null==def?Registry.create("text",value):Registry.create(value,def),ref=this.split(index);this.parent.insertBefore(blot,ref)},ShadowBlot.prototype.insertInto=function(parentBlot,refBlot){void 0===refBlot&&(refBlot=null),null!=this.parent&&this.parent.children.remove(this);var refDomNode=null;parentBlot.children.insertBefore(this,refBlot),null!=refBlot&&(refDomNode=refBlot.domNode),this.domNode.parentNode==parentBlot.domNode&&this.domNode.nextSibling==refDomNode||parentBlot.domNode.insertBefore(this.domNode,refDomNode),this.parent=parentBlot,this.attach()},ShadowBlot.prototype.isolate=function(index,length){var target=this.split(index);return target.split(length),target},ShadowBlot.prototype.length=function(){return 1},ShadowBlot.prototype.offset=function(root){return void 0===root&&(root=this.parent),null==this.parent||this==root?0:this.parent.children.offset(this)+this.parent.offset(root)},ShadowBlot.prototype.optimize=function(context){null!=this.domNode[Registry.DATA_KEY]&&delete this.domNode[Registry.DATA_KEY].mutations},ShadowBlot.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},ShadowBlot.prototype.replace=function(target){null!=target.parent&&(target.parent.insertBefore(this,target.next),target.remove())},ShadowBlot.prototype.replaceWith=function(name,value){var replacement="string"==typeof name?Registry.create(name,value):name;return replacement.replace(this),replacement},ShadowBlot.prototype.split=function(index,force){return 0===index?this:this.next},ShadowBlot.prototype.update=function(mutations,context){},ShadowBlot.prototype.wrap=function(name,value){var wrapper="string"==typeof name?Registry.create(name,value):name;return null!=this.parent&&this.parent.insertBefore(wrapper,this.next),wrapper.appendChild(this),wrapper},ShadowBlot.blotName="abstract",ShadowBlot}();exports.default=ShadowBlot},function(module,exports,__nested_webpack_require_214530__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var attributor_1=__nested_webpack_require_214530__(12),class_1=__nested_webpack_require_214530__(32),style_1=__nested_webpack_require_214530__(33),Registry=__nested_webpack_require_214530__(1),AttributorStore=function(){function AttributorStore(domNode){this.attributes={},this.domNode=domNode,this.build()}return AttributorStore.prototype.attribute=function(attribute,value){value?attribute.add(this.domNode,value)&&(null!=attribute.value(this.domNode)?this.attributes[attribute.attrName]=attribute:delete this.attributes[attribute.attrName]):(attribute.remove(this.domNode),delete this.attributes[attribute.attrName])},AttributorStore.prototype.build=function(){var _this=this;this.attributes={};var attributes=attributor_1.default.keys(this.domNode),classes=class_1.default.keys(this.domNode),styles=style_1.default.keys(this.domNode);attributes.concat(classes).concat(styles).forEach((function(name){var attr=Registry.query(name,Registry.Scope.ATTRIBUTE);attr instanceof attributor_1.default&&(_this.attributes[attr.attrName]=attr)}))},AttributorStore.prototype.copy=function(target){var _this=this;Object.keys(this.attributes).forEach((function(key){var value=_this.attributes[key].value(_this.domNode);target.format(key,value)}))},AttributorStore.prototype.move=function(target){var _this=this;
2this.copy(target),Object.keys(this.attributes).forEach((function(key){_this.attributes[key].remove(_this.domNode)})),this.attributes={}},AttributorStore.prototype.values=function(){var _this=this;return Object.keys(this.attributes).reduce((function(attributes,name){return attributes[name]=_this.attributes[name].value(_this.domNode),attributes}),{})},AttributorStore}();exports.default=AttributorStore},function(module,exports,__nested_webpack_require_217128__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});function match(node,prefix){return(node.getAttribute("class")||"").split(/\s+/).filter((function(name){return 0===name.indexOf(prefix+"-")}))}Object.defineProperty(exports,"__esModule",{value:!0});var ClassAttributor=function(_super){function ClassAttributor(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(ClassAttributor,_super),ClassAttributor.keys=function(node){return(node.getAttribute("class")||"").split(/\s+/).map((function(name){return name.split("-").slice(0,-1).join("-")}))},ClassAttributor.prototype.add=function(node,value){return!!this.canAdd(node,value)&&(this.remove(node),node.classList.add(this.keyName+"-"+value),!0)},ClassAttributor.prototype.remove=function(node){match(node,this.keyName).forEach((function(name){node.classList.remove(name)})),0===node.classList.length&&node.removeAttribute("class")},ClassAttributor.prototype.value=function(node){var value=(match(node,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(node,value)?value:""},ClassAttributor}(__nested_webpack_require_217128__(12).default);exports.default=ClassAttributor},function(module,exports,__nested_webpack_require_219372__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});function camelize(name){var parts=name.split("-"),rest=parts.slice(1).map((function(part){return part[0].toUpperCase()+part.slice(1)})).join("");return parts[0]+rest}Object.defineProperty(exports,"__esModule",{value:!0});var StyleAttributor=function(_super){function StyleAttributor(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(StyleAttributor,_super),StyleAttributor.keys=function(node){return(node.getAttribute("style")||"").split(";").map((function(value){return value.split(":")[0].trim()}))},StyleAttributor.prototype.add=function(node,value){return!!this.canAdd(node,value)&&(node.style[camelize(this.keyName)]=value,!0)},StyleAttributor.prototype.remove=function(node){node.style[camelize(this.keyName)]="",node.getAttribute("style")||node.removeAttribute("style")},StyleAttributor.prototype.value=function(node){var value=node.style[camelize(this.keyName)];return this.canAdd(node,value)?value:""},StyleAttributor}(__nested_webpack_require_219372__(12).default);exports.default=StyleAttributor},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),Theme=function(){function Theme(quill,options){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Theme),this.quill=quill,this.options=options,this.modules={}}return _createClass(Theme,[{key:"init",value:function(){var _this=this;
2Object.keys(this.options.modules).forEach((function(name){null==_this.modules[name]&&_this.addModule(name)}))}},{key:"addModule",value:function(name){var moduleClass=this.quill.constructor.import("modules/"+name);return this.modules[name]=new moduleClass(this.quill,this.options.modules[name]||{}),this.modules[name]}}]),Theme}();Theme.DEFAULTS={modules:{}},Theme.themes={default:Theme},exports.default=Theme},function(module,exports,__nested_webpack_require_223199__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_parchment2=_interopRequireDefault(__nested_webpack_require_223199__(0)),_text2=_interopRequireDefault(__nested_webpack_require_223199__(7));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Embed=function(_Parchment$Embed){function Embed(node){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Embed);var _this=function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Embed.__proto__||Object.getPrototypeOf(Embed)).call(this,node));return _this.contentNode=document.createElement("span"),_this.contentNode.setAttribute("contenteditable",!1),[].slice.call(_this.domNode.childNodes).forEach((function(childNode){_this.contentNode.appendChild(childNode)})),_this.leftGuard=document.createTextNode("\ufeff"),_this.rightGuard=document.createTextNode("\ufeff"),_this.domNode.appendChild(_this.leftGuard),_this.domNode.appendChild(_this.contentNode),_this.domNode.appendChild(_this.rightGuard),_this}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Embed,_Parchment$Embed),_createClass(Embed,[{key:"index",value:function(node,offset){return node===this.leftGuard?0:node===this.rightGuard?1:_get(Embed.prototype.__proto__||Object.getPrototypeOf(Embed.prototype),"index",this).call(this,node,offset)}},{key:"restore",value:function(node){var range=void 0,textNode=void 0,text=node.data.split("\ufeff").join("");if(node===this.leftGuard)if(this.prev instanceof _text2.default){var prevLength=this.prev.length();this.prev.insertAt(prevLength,text),range={startNode:this.prev.domNode,startOffset:prevLength+text.length}}else textNode=document.createTextNode(text),this.parent.insertBefore(_parchment2.default.create(textNode),this),range={startNode:textNode,startOffset:text.length};else node===this.rightGuard&&(this.next instanceof _text2.default?(this.next.insertAt(0,text),range={startNode:this.next.domNode,startOffset:text.length}):(textNode=document.createTextNode(text),this.parent.insertBefore(_parchment2.default.create(textNode),this.next),range={startNode:textNode,startOffset:text.length}));return node.data="\ufeff",range}},{key:"update",value:function(mutations,context){var _this2=this;mutations.forEach((function(mutation){if("characterData"===mutation.type&&(mutation.target===_this2.leftGuard||mutation.target===_this2.rightGuard)){var range=_this2.restore(mutation.target);range&&(context.range=range)}}
2))}}]),Embed}(_parchment2.default.Embed);exports.default=Embed},function(module,exports,__nested_webpack_require_228527__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AlignStyle=exports.AlignClass=exports.AlignAttribute=void 0;var obj,_parchment=__nested_webpack_require_228527__(0),_parchment2=(obj=_parchment)&&obj.__esModule?obj:{default:obj},config={scope:_parchment2.default.Scope.BLOCK,whitelist:["right","center","justify"]},AlignAttribute=new _parchment2.default.Attributor.Attribute("align","align",config),AlignClass=new _parchment2.default.Attributor.Class("align","ql-align",config),AlignStyle=new _parchment2.default.Attributor.Style("align","text-align",config);exports.AlignAttribute=AlignAttribute,exports.AlignClass=AlignClass,exports.AlignStyle=AlignStyle},function(module,exports,__nested_webpack_require_229442__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BackgroundStyle=exports.BackgroundClass=void 0;var obj,_parchment=__nested_webpack_require_229442__(0),_parchment2=(obj=_parchment)&&obj.__esModule?obj:{default:obj}
2,_color=__nested_webpack_require_229442__(26),BackgroundClass=new _parchment2.default.Attributor.Class("background","ql-bg",{scope:_parchment2.default.Scope.INLINE}),BackgroundStyle=new _color.ColorAttributor("background","background-color",{scope:_parchment2.default.Scope.INLINE});exports.BackgroundClass=BackgroundClass,exports.BackgroundStyle=BackgroundStyle},function(module,exports,__nested_webpack_require_230249__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DirectionStyle=exports.DirectionClass=exports.DirectionAttribute=void 0;var obj,_parchment=__nested_webpack_require_230249__(0),_parchment2=(obj=_parchment)&&obj.__esModule?obj:{default:obj},config={scope:_parchment2.default.Scope.BLOCK,whitelist:["rtl"]},DirectionAttribute=new _parchment2.default.Attributor.Attribute("direction","dir",config),DirectionClass=new _parchment2.default.Attributor.Class("direction","ql-direction",config),DirectionStyle=new _parchment2.default.Attributor.Style("direction","direction",config);exports.DirectionAttribute=DirectionAttribute,exports.DirectionClass=DirectionClass,exports.DirectionStyle=DirectionStyle},function(module,exports,__nested_webpack_require_231202__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FontClass=exports.FontStyle=void 0;var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_parchment=__nested_webpack_require_231202__(0),_parchment2=(obj=_parchment)&&obj.__esModule?obj:{default:obj},config={scope:_parchment2.default.Scope.INLINE,whitelist:["serif","monospace"]},FontClass=new _parchment2.default.Attributor.Class("font","ql-font",config),FontStyleAttributor=function(_Parchment$Attributor){function FontStyleAttributor(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,FontStyleAttributor),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(FontStyleAttributor.__proto__||Object.getPrototypeOf(FontStyleAttributor)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(FontStyleAttributor,_Parchment$Attributor),_createClass(FontStyleAttributor,[{key:"value",value:function(node){return _get(FontStyleAttributor.prototype.__proto__||Object.getPrototypeOf(FontStyleAttributor.prototype),"value",this).call(this,node).replace(/["']/g,"")}}]),FontStyleAttributor}(_parchment2.default.Attributor.Style),FontStyle=new FontStyleAttributor("font","font-family",config);exports.FontStyle=FontStyle,exports.FontClass=FontClass},function(module,exports,__nested_webpack_require_234578__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SizeStyle=exports.SizeClass=void 0;var obj,_parchment=__nested_webpack_require_234578__(0),_parchment2=(obj=_parchment)&&obj.__esModule?obj:{default:obj},SizeClass=new _parchment2.default.Attributor.Class("size","ql-size",{scope:_parchment2.default.Scope.INLINE,whitelist:["small","large","huge"]}),SizeStyle=new _parchment2.default.Attributor.Style("size","font-size",{scope:_parchment2.default.Scope.INLINE,whitelist:["10px","18px","32px"]});exports.SizeClass=SizeClass,exports.SizeStyle=SizeStyle},function(module,exports,__nested_webpack_require_235375__){"use strict";module.exports={align:{"":__nested_webpack_require_235375__(76),center:__nested_webpack_require_235375__(77),right:__nested_webpack_require_235375__(78),justify:__nested_webpack_require_235375__(79)},background:__nested_webpack_require_235375__(80),blockquote:__nested_webpack_require_235375__(81),bold:__nested_webpack_require_235375__(82),clean:__nested_webpack_require_235375__(83),code:__nested_webpack_require_235375__(58),"code-block":__nested_webpack_require_235375__(58),color:__nested_webpack_require_235375__(84),direction:{"":__nested_webpack_require_235375__(85),rtl:__nested_webpack_require_235375__(86)},float:{center:__nested_webpack_require_235375__(87),full:__nested_webpack_require_235375__(88),left:__nested_webpack_require_235375__(89),right:__nested_webpack_require_235375__(90)},formula:__nested_webpack_require_235375__(91),header:{1:__nested_webpack_require_235375__(92),2:__nested_webpack_require_235375__(93)},italic:__nested_webpack_require_235375__(94),image:__nested_webpack_require_235375__(95),indent:{"+1":__nested_webpack_require_235375__(96),"-1":__nested_webpack_require_235375__(97)},link:__nested_webpack_require_235375__(98),list:{ordered:__nested_webpack_require_235375__(99),bullet:__nested_webpack_require_235375__(100),check:__nested_webpack_require_235375__(101)},script:{sub:__nested_webpack_require_235375__(102),super:__nested_webpack_require_235375__(103)},strike:__nested_webpack_require_235375__(104),underline:__nested_webpack_require_235375__(105),video:__nested_webpack_require_235375__(106)}},function(module,exports,__nested_webpack_require_236844__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getLastChangeIndex=exports.default=void 0;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_parchment2=_interopRequireDefault(__nested_webpack_require_236844__(0)),_quill2=_interopRequireDefault(__nested_webpack_require_236844__(5));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var History=function(_Module){function History(quill,options){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,History);var _this=function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}
2(this,(History.__proto__||Object.getPrototypeOf(History)).call(this,quill,options));return _this.lastRecorded=0,_this.ignoreChange=!1,_this.clear(),_this.quill.on(_quill2.default.events.EDITOR_CHANGE,(function(eventName,delta,oldDelta,source){eventName!==_quill2.default.events.TEXT_CHANGE||_this.ignoreChange||(_this.options.userOnly&&source!==_quill2.default.sources.USER?_this.transform(delta):_this.record(delta,oldDelta))})),_this.quill.keyboard.addBinding({key:"Z",shortKey:!0},_this.undo.bind(_this)),_this.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},_this.redo.bind(_this)),/Win/i.test(navigator.platform)&&_this.quill.keyboard.addBinding({key:"Y",shortKey:!0},_this.redo.bind(_this)),_this}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(History,_Module),_createClass(History,[{key:"change",value:function(source,dest){if(0!==this.stack[source].length){var delta=this.stack[source].pop();this.stack[dest].push(delta),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(delta[source],_quill2.default.sources.USER),this.ignoreChange=!1;var index=getLastChangeIndex(delta[source]);this.quill.setSelection(index)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(changeDelta,oldDelta){if(0!==changeDelta.ops.length){this.stack.redo=[];var undoDelta=this.quill.getContents().diff(oldDelta),timestamp=Date.now();if(this.lastRecorded+this.options.delay>timestamp&&this.stack.undo.length>0){var delta=this.stack.undo.pop();undoDelta=undoDelta.compose(delta.undo),changeDelta=delta.redo.compose(changeDelta)}else this.lastRecorded=timestamp;this.stack.undo.push({redo:changeDelta,undo:undoDelta}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(delta){this.stack.undo.forEach((function(change){change.undo=delta.transform(change.undo,!0),change.redo=delta.transform(change.redo,!0)})),this.stack.redo.forEach((function(change){change.undo=delta.transform(change.undo,!0),change.redo=delta.transform(change.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),History}(_interopRequireDefault(__nested_webpack_require_236844__(9)).default);function getLastChangeIndex(delta){var deleteLength=delta.reduce((function(length,op){return length+=op.delete||0}),0),changeIndex=delta.length()-deleteLength;return function(delta){var lastOp=delta.ops[delta.ops.length-1];return null!=lastOp&&(null!=lastOp.insert?"string"==typeof lastOp.insert&&lastOp.insert.endsWith("\n"):null!=lastOp.attributes&&Object.keys(lastOp.attributes).some((function(attr){return null!=_parchment2.default.query(attr,_parchment2.default.Scope.BLOCK)})))}(delta)&&(changeIndex-=1),changeIndex}History.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},exports.default=History,exports.getLastChangeIndex=getLastChangeIndex},function(module,exports,__nested_webpack_require_242979__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.BaseTooltip=void 0;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_extend2=_interopRequireDefault(__nested_webpack_require_242979__(3)),_quillDelta2=_interopRequireDefault(__nested_webpack_require_242979__(2)),_emitter2=_interopRequireDefault(__nested_webpack_require_242979__(8)),_keyboard2=_interopRequireDefault(__nested_webpack_require_242979__(23)),_theme2=_interopRequireDefault(__nested_webpack_require_242979__(34)),_colorPicker2=_interopRequireDefault(__nested_webpack_require_242979__(59)),_iconPicker2=_interopRequireDefault(__nested_webpack_require_242979__(60)),_picker2=_interopRequireDefault(__nested_webpack_require_242979__(28)),_tooltip2=_interopRequireDefault(__nested_webpack_require_242979__(61));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}
2var ALIGNS=[!1,"center","right","justify"],COLORS=["#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"],FONTS=[!1,"serif","monospace"],HEADERS=["1","2","3",!1],SIZES=["small",!1,"large","huge"],BaseTheme=function(_Theme){function BaseTheme(quill,options){_classCallCheck(this,BaseTheme);var _this=_possibleConstructorReturn(this,(BaseTheme.__proto__||Object.getPrototypeOf(BaseTheme)).call(this,quill,options));return quill.emitter.listenDOM("click",document.body,(function listener(e){if(!document.body.contains(quill.root))return document.body.removeEventListener("click",listener);null==_this.tooltip||_this.tooltip.root.contains(e.target)||document.activeElement===_this.tooltip.textbox||_this.quill.hasFocus()||_this.tooltip.hide(),null!=_this.pickers&&_this.pickers.forEach((function(picker){picker.container.contains(e.target)||picker.close()}))})),_this}return _inherits(BaseTheme,_Theme),_createClass(BaseTheme,[{key:"addModule",value:function(name){var module=_get(BaseTheme.prototype.__proto__||Object.getPrototypeOf(BaseTheme.prototype),"addModule",this).call(this,name);return"toolbar"===name&&this.extendToolbar(module),module}},{key:"buildButtons",value:function(buttons,icons){buttons.forEach((function(button){(button.getAttribute("class")||"").split(/\s+/).forEach((function(name){if(name.startsWith("ql-")&&(name=name.slice(3),null!=icons[name]))if("direction"===name)button.innerHTML=icons[name][""]+icons[name].rtl;else if("string"==typeof icons[name])button.innerHTML=icons[name];else{var value=button.value||"";null!=value&&icons[name][value]&&(button.innerHTML=icons[name][value])}}))}))}},{key:"buildPickers",value:function(selects,icons){var _this2=this;this.pickers=selects.map((function(select){if(select.classList.contains("ql-align"))return null==select.querySelector("option")&&fillSelect(select,ALIGNS),new _iconPicker2.default(select,icons.align);if(select.classList.contains("ql-background")||select.classList.contains("ql-color")){var format=select.classList.contains("ql-background")?"background":"color";return null==select.querySelector("option")&&fillSelect(select,COLORS,"background"===format?"#ffffff":"#000000"),new _
2colorPicker2.default(select,icons[format])}return null==select.querySelector("option")&&(select.classList.contains("ql-font")?fillSelect(select,FONTS):select.classList.contains("ql-header")?fillSelect(select,HEADERS):select.classList.contains("ql-size")&&fillSelect(select,SIZES)),new _picker2.default(select)})),this.quill.on(_emitter2.default.events.EDITOR_CHANGE,(function(){_this2.pickers.forEach((function(picker){picker.update()}))}))}}]),BaseTheme}(_theme2.default);BaseTheme.DEFAULTS=(0,_extend2.default)(!0,{},_theme2.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var _this3=this,fileInput=this.container.querySelector("input.ql-image[type=file]");null==fileInput&&((fileInput=document.createElement("input")).setAttribute("type","file"),fileInput.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),fileInput.classList.add("ql-image"),fileInput.addEventListener("change",(function(){if(null!=fileInput.files&&null!=fileInput.files[0]){var reader=new FileReader;reader.onload=function(e){var range=_this3.quill.getSelection(!0);_this3.quill.updateContents((new _quillDelta2.default).retain(range.index).delete(range.length).insert({image:e.target.result}),_emitter2.default.sources.USER),_this3.quill.setSelection(range.index+1,_emitter2.default.sources.SILENT),fileInput.value=""},reader.readAsDataURL(fileInput.files[0])}})),this.container.appendChild(fileInput)),fileInput.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var BaseTooltip=function(_Tooltip){function BaseTooltip(quill,boundsContainer){_classCallCheck(this,BaseTooltip);var _this4=_possibleConstructorReturn(this,(BaseTooltip.__proto__||Object.getPrototypeOf(BaseTooltip)).call(this,quill,boundsContainer));return _this4.textbox=_this4.root.querySelector('input[type="text"]'),_this4.listen(),_this4}return _inherits(BaseTooltip,_Tooltip),_createClass(BaseTooltip,[{key:"listen",value:function(){var _this5=this;this.textbox.addEventListener("keydown",(function(event){_keyboard2.default.match(event,"enter")?(_this5.save(),event.preventDefault()):_keyboard2.default.match(event,"escape")&&(_this5.cancel(),event.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var mode=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",preview=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=preview?this.textbox.value=preview:mode!==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-"+mode)||""),this.root.setAttribute("data-mode",mode)}},{key:"restoreFocus",value:function(){var scrollTop=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=scrollTop}},{key:"save",value:function(){var url,match,value=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var scrollTop=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",value,_emitter2.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",value,_emitter2.default.sources.USER)),this.quill.root.scrollTop=scrollTop;break;case"video":value=(match=(url=value).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(match[1]||"https")+"://www.youtube.com/embed/"+match[2]+"?showinfo=0":(match=url.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(match[1]||"https")+"://player.vimeo.com/video/"+match[2]+"/":url;case"formula":if(!value)break;var range=this.quill.getSelection(!0);if(null!=range){var index=range.index+range.length;this.quill.insertEmbed(index,this.root.getAttribute("data-mode"),value,_emitter2.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(index+1," ",_emitter2.default.sources.USER),this.quill.setSelection(index+2,_emitter2.default.sources.USER)}}this.textbox.value="",this.hide()}}]),BaseTooltip}(_tooltip2.default);function fillSelect(select,values){var defaultValue=arguments.length>2&&void 0!==arguments[2]&&arguments[2];
2values.forEach((function(value){var option=document.createElement("option");value===defaultValue?option.setAttribute("selected","selected"):option.setAttribute("value",value),select.appendChild(option)}))}exports.BaseTooltip=BaseTooltip,exports.default=BaseTheme},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var LinkedList=function(){function LinkedList(){this.head=this.tail=null,this.length=0}return LinkedList.prototype.append=function(){for(var nodes=[],_i=0;_i<arguments.length;_i++)nodes[_i]=arguments[_i];this.insertBefore(nodes[0],null),nodes.length>1&&this.append.apply(this,nodes.slice(1))},LinkedList.prototype.contains=function(node){for(var cur,next=this.iterator();cur=next();)if(cur===node)return!0;return!1},LinkedList.prototype.insertBefore=function(node,refNode){node&&(node.next=refNode,null!=refNode?(node.prev=refNode.prev,null!=refNode.prev&&(refNode.prev.next=node),refNode.prev=node,refNode===this.head&&(this.head=node)):null!=this.tail?(this.tail.next=node,node.prev=this.tail,this.tail=node):(node.prev=null,this.head=this.tail=node),this.length+=1)},LinkedList.prototype.offset=function(target){for(var index=0,cur=this.head;null!=cur;){if(cur===target)return index;index+=cur.length(),cur=cur.next}return-1},LinkedList.prototype.remove=function(node){this.contains(node)&&(null!=node.prev&&(node.prev.next=node.next),null!=node.next&&(node.next.prev=node.prev),node===this.head&&(this.head=node.next),node===this.tail&&(this.tail=node.prev),this.length-=1)},LinkedList.prototype.iterator=function(curNode){return void 0===curNode&&(curNode=this.head),function(){var ret=curNode;return null!=curNode&&(curNode=curNode.next),ret}},LinkedList.prototype.find=function(index,inclusive){void 0===inclusive&&(inclusive=!1);for(var cur,next=this.iterator();cur=next();){var length=cur.length();if(index<length||inclusive&&index===length&&(null==cur.next||0!==cur.next.length()))return[cur,index];index-=length}return[null,0]},LinkedList.prototype.forEach=function(callback){for(var cur,next=this.iterator();cur=next();)callback(cur)},LinkedList.prototype.forEachAt=function(index,length,callback){if(!(length<=0))for(var cur,_a=this.find(index),startNode=_a[0],curIndex=index-_a[1],next=this.iterator(startNode);(cur=next())&&curIndex<index+length;){var curLength=cur.length();index>curIndex?callback(cur,index-curIndex,Math.min(length,curIndex+curLength-index)):callback(cur,0,Math.min(curLength,index+length-curIndex)),curIndex+=curLength}},LinkedList.prototype.map=function(callback){return this.reduce((function(memo,cur){return memo.push(callback(cur)),memo}),[])},LinkedList.prototype.reduce=function(callback,memo){for(var cur,next=this.iterator();cur=next();)memo=callback(memo,cur);return memo},LinkedList}();exports.default=LinkedList},function(module,exports,__nested_webpack_require_260796__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0});var container_1=__nested_webpack_require_260796__(17),Registry=__nested_webpack_require_260796__(1),OBSERVER_CONFIG={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},ScrollBlot=function(_super){function ScrollBlot(node){var _this=_super.call(this,node)||this;return _this.scroll=_this,_this.observer=new MutationObserver((function(mutations){_this.update(mutations)})),_this.observer.observe(_this.domNode,OBSERVER_CONFIG),_this.attach(),_this}return __extends(ScrollBlot,_super),ScrollBlot.prototype.detach=function(){_super.prototype.detach.call(this),this.observer.disconnect()},ScrollBlot.prototype.deleteAt=function(index,length){this.update(),0===index&&length===this.length()?this.children.forEach((function(child){child.remove()})):_super.prototype.deleteAt.call(this,index,length)},ScrollBlot.prototype.formatAt=function(index,length,name,value){this.update(),_super.prototype.formatAt.call(this,index,length,name,value)},ScrollBlot.prototype.insertAt=function(index,value,def){this.update(),_super.prototype.insertAt.call(this,index,value,def)},ScrollBlot.prototype.optimize=function(mutations,context){var _this=this;void 0===mutations&&(mutations=[]),void 0===context&&(context={}),_super.prototype.optimize.call(this,context);for(var records=[].slice.call(this.observer.takeRecords());records.length>0;)mutations.push(records.pop());for(var mark=function(blot,markParent){void 0===markParent&&(markParent=!0),null!=blot&&blot!==_this&&null!=blot.domNode.parentNode&&(null==blot.domNode[Registry.DATA_KEY].mutations&&(blot.domNode[Registry.DATA_KEY].mutations=[]),markParent&&mark(blot.parent))},optimize=function(blot){null!=blot.domNode[Registry.DATA_KEY]&&null!=blot.domNode[Registry.DATA_KEY].mutations&&(blot instanceof container_1.default&&blot.children.forEac
2h(optimize),blot.optimize(context))},remaining=mutations,i=0;remaining.length>0;i+=1){if(i>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(remaining.forEach((function(mutation){var blot=Registry.find(mutation.target,!0);null!=blot&&(blot.domNode===mutation.target&&("childList"===mutation.type?(mark(Registry.find(mutation.previousSibling,!1)),[].forEach.call(mutation.addedNodes,(function(node){var child=Registry.find(node,!1);mark(child,!1),child instanceof container_1.default&&child.children.forEach((function(grandChild){mark(grandChild,!1)}))}))):"attributes"===mutation.type&&mark(blot.prev)),mark(blot))})),this.children.forEach(optimize),records=(remaining=[].slice.call(this.observer.takeRecords())).slice();records.length>0;)mutations.push(records.pop())}},ScrollBlot.prototype.update=function(mutations,context){var _this=this;void 0===context&&(context={}),(mutations=mutations||this.observer.takeRecords()).map((function(mutation){var blot=Registry.find(mutation.target,!0);return null==blot?null:null==blot.domNode[Registry.DATA_KEY].mutations?(blot.domNode[Registry.DATA_KEY].mutations=[mutation],blot):(blot.domNode[Registry.DATA_KEY].mutations.push(mutation),null)})).forEach((function(blot){null!=blot&&blot!==_this&&null!=blot.domNode[Registry.DATA_KEY]&&blot.update(blot.domNode[Registry.DATA_KEY].mutations||[],context)})),null!=this.domNode[Registry.DATA_KEY].mutations&&_super.prototype.update.call(this,this.domNode[Registry.DATA_KEY].mutations,context),this.optimize(mutations,context)},ScrollBlot.blotName="scroll",ScrollBlot.defaultChild="block",ScrollBlot.scope=Registry.Scope.BLOCK_BLOT,ScrollBlot.tagName="DIV",ScrollBlot}(container_1.default);exports.default=ScrollBlot},function(module,exports,__nested_webpack_require_267910__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0});var format_1=__nested_webpack_require_267910__(18),Registry=__nested_webpack_require_267910__(1),InlineBlot=function(_super){function InlineBlot(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(InlineBlot,_super),InlineBlot.formats=function(domNode){if(domNode.tagName!==InlineBlot.tagName)return _super.formats.call(this,domNode)},InlineBlot.prototype.format=function(name,value){var _this=this;name!==this.statics.blotName||value?_super.prototype.format.call(this,name,value):(this.children.forEach((function(child){child instanceof format_1.default||(child=child.wrap(InlineBlot.blotName,!0)),_this.attributes.copy(child)})),this.unwrap())},InlineBlot.prototype.formatAt=function(index,length,name,value){null!=this.formats()[name]||Registry.query(name,Registry.Scope.ATTRIBUTE)?this.isolate(index,length).format(name,value):_super.prototype.formatAt.call(this,index,length,name,value)},InlineBlot.prototype.optimize=function(context){_super.prototype.optimize.call(this,context);var formats=this.formats();if(0===Object.keys(formats).length)return this.unwrap();var next=this.next;next instanceof InlineBlot&&next.prev===this&&function(obj1,obj2){if(Object.keys(obj1).length!==Object.keys(obj2).length)return!1;for(var prop in obj1)if(obj1[prop]!==obj2[prop])return!1;return!0}(formats,next.formats())&&(next.moveChildren(this),next.remove())},InlineBlot.blotName="inline",InlineBlot.scope=Registry.Scope.INLINE_BLOT,InlineBlot.tagName="SPAN",InlineBlot}(format_1.default);exports.default=InlineBlot},function(module,exports,__nested_webpack_require_270902__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0});var format_1=__nested_webpack_require_270902__(18),Registry=__nested_webpack_require_270902__(1),BlockBlot=function(_super){function BlockBlot(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(BlockBlot,_super),BlockBlot.formats=function(domNode){var tagName=Registry.query(BlockBlot.blotName).tagName;if(domNode.tagName!==tagName)return _super.formats.call(this,domNode)},BlockBlot.prototype.format=function(name,value){null!=Registry.query(name,Registry.Scope.BLOCK)&&(name!==this.statics.blotName||value?_super.prototype.format.call(this,name,value):this.replaceWith(BlockBlot.blotName))},BlockBlot.prototype.formatAt=function(index,length,name,value){null!=Registry.query(name,Registry.Scope.BLOCK)?this.format(name,value):_super.prototype.formatAt.call(this,index,length,name,value)},BlockBlot.prototype.insertAt=function(index,value,def){if(null==def||null!=Registry.query(value,Registry.Scope.INLINE))_super.prototype.insertAt.call(this,index,value,def);else{var after=this.split(index),blot=Registry.create(value,def);after.parent.insertBefore(blot,after)}}
2,BlockBlot.prototype.update=function(mutations,context){navigator.userAgent.match(/Trident/)?this.build():_super.prototype.update.call(this,mutations,context)},BlockBlot.blotName="block",BlockBlot.scope=Registry.Scope.BLOCK_BLOT,BlockBlot.tagName="P",BlockBlot}(format_1.default);exports.default=BlockBlot},function(module,exports,__nested_webpack_require_273610__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0});var EmbedBlot=function(_super){function EmbedBlot(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(EmbedBlot,_super),EmbedBlot.formats=function(domNode){},EmbedBlot.prototype.format=function(name,value){_super.prototype.formatAt.call(this,0,this.length(),name,value)},EmbedBlot.prototype.formatAt=function(index,length,name,value){0===index&&length===this.length()?this.format(name,value):_super.prototype.formatAt.call(this,index,length,name,value)},EmbedBlot.prototype.formats=function(){return this.statics.formats(this.domNode)},EmbedBlot}(__nested_webpack_require_273610__(19).default);exports.default=EmbedBlot},function(module,exports,__nested_webpack_require_275351__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0});var leaf_1=__nested_webpack_require_275351__(19),Registry=__nested_webpack_require_275351__(1),TextBlot=function(_super){function TextBlot(node){var _this=_super.call(this,node)||this;return _this.text=_this.statics.value(_this.domNode),_this}return __extends(TextBlot,_super),TextBlot.create=function(value){return document.createTextNode(value)},TextBlot.value=function(domNode){var text=domNode.data;return text.normalize&&(text=text.normalize()),text},TextBlot.prototype.deleteAt=function(index,length){this.domNode.data=this.text=this.text.slice(0,index)+this.text.slice(index+length)},TextBlot.prototype.index=function(node,offset){return this.domNode===node?offset:-1},TextBlot.prototype.insertAt=function(index,value,def){null==def?(this.text=this.text.slice(0,index)+value+this.text.slice(index),this.domNode.data=this.text):_super.prototype.insertAt.call(this,index,value,def)},TextBlot.prototype.length=function(){return this.text.length},TextBlot.prototype.optimize=function(context){_super.prototype.optimize.call(this,context),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof TextBlot&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},TextBlot.prototype.position=function(index,inclusive){return void 0===inclusive&&(inclusive=!1),[this.domNode,index]},TextBlot.prototype.split=function(index,force){if(void 0===force&&(force=!1),!force){if(0===index)return this;if(index===this.length())return this.next}var after=Registry.create(this.domNode.splitText(index));return this.parent.insertBefore(after,this.next),this.text=this.statics.value(this.domNode),after},TextBlot.prototype.update=function(mutations,context){var _this=this;mutations.some((function(mutation){return"characterData"===mutation.type&&mutation.target===_this.domNode}))&&(this.text=this.statics.value(this.domNode))},TextBlot.prototype.value=function(){return this.text},TextBlot.blotName="text",TextBlot.scope=Registry.Scope.INLINE_BLOT,TextBlot}(leaf_1.default);exports.default=TextBlot},function(module,exports,__webpack_require__){"use strict";var elem=document.createElement("div");if(elem.classList.toggle("test-class",!1),elem.classList.contains("test-class")){var _toggle=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(token,force){return arguments.length>
21&&!this.contains(token)==!force?force:_toggle.call(this,token)}}String.prototype.startsWith||(String.prototype.startsWith=function(searchString,position){return position=position||0,this.substr(position,searchString.length)===searchString}),String.prototype.endsWith||(String.prototype.endsWith=function(searchString,position){var subjectString=this.toString();("number"!=typeof position||!isFinite(position)||Math.floor(position)!==position||position>subjectString.length)&&(position=subjectString.length),position-=searchString.length;var lastIndex=subjectString.indexOf(searchString,position);return-1!==lastIndex&&lastIndex===position}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(predicate){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof predicate)throw new TypeError("predicate must be a function");for(var value,list=Object(this),length=list.length>>>0,thisArg=arguments[1],i=0;i<length;i++)if(value=list[i],predicate.call(thisArg,value,i,list))return value}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(module,exports){function diff_main(text1,text2,cursor_pos){if(text1==text2)return text1?[[0,text1]]:[];(cursor_pos<0||text1.length<cursor_pos)&&(cursor_pos=null);var commonlength=diff_commonPrefix(text1,text2),commonprefix=text1.substring(0,commonlength);commonlength=diff_commonSuffix(text1=text1.substring(commonlength),text2=text2.substring(commonlength));var commonsuffix=text1.substring(text1.length-commonlength),diffs=function(text1,text2){var diffs;if(!text1)return[[1,text2]];if(!text2)return[[-1,text1]];var longtext=text1.length>text2.length?text1:text2,shorttext=text1.length>text2.length?text2:text1,i=longtext.indexOf(shorttext);if(-1!=i)return diffs=[[1,longtext.substring(0,i)],[0,shorttext],[1,longtext.substring(i+shorttext.length)]],text1.length>text2.length&&(diffs[0][0]=diffs[2][0]=-1),diffs;if(1==shorttext.length)return[[-1,text1],[1,text2]];var hm=function(text1,text2){var longtext=text1.length>text2.length?text1:text2,shorttext=text1.length>text2.length?text2:text1;if(longtext.length<4||2*shorttext.length<longtext.length)return null;function diff_halfMatchI_(longtext,shorttext,i){for(var best_longtext_a,best_longtext_b,best_shorttext_a,best_shorttext_b,seed=longtext.substring(i,i+Math.floor(longtext.length/4)),j=-1,best_common="";-1!=(j=shorttext.indexOf(seed,j+1));){var prefixLength=diff_commonPrefix(longtext.substring(i),shorttext.substring(j)),suffixLength=diff_commonSuffix(longtext.substring(0,i),shorttext.substring(0,j));best_common.length<suffixLength+prefixLength&&(best_common=shorttext.substring(j-suffixLength,j)+shorttext.substring(j,j+prefixLength),best_longtext_a=longtext.substring(0,i-suffixLength),best_longtext_b=longtext.substring(i+prefixLength),best_shorttext_a=shorttext.substring(0,j-suffixLength),best_shorttext_b=shorttext.substring(j+prefixLength))}return 2*best_common.length>=longtext.length?[best_longtext_a,best_longtext_b,best_shorttext_a,best_shorttext_b,best_common]:null}var hm,text1_a,text1_b,text2_a,text2_b,hm1=diff_halfMatchI_(longtext,shorttext,Math.ceil(longtext.length/4)),hm2=diff_halfMatchI_(longtext,shorttext,Math.ceil(longtext.length/2));if(!hm1&&!hm2)return null;hm=hm2?hm1&&hm1[4].length>hm2[4].length?hm1:hm2:hm1,text1.length>text2.length?(text1_a=hm[0],text1_b=hm[1],text2_a=hm[2],text2_b=hm[3]):(text2_a=hm[0],text2_b=hm[1],text1_a=hm[2],text1_b=hm[3]);var mid_common=hm[4];return[text1_a,text1_b,text2_a,text2_b,mid_common]}(text1,text2);if(hm){var text1_a=hm[0],text1_b=hm[1],text2_a=hm[2],text2_b=hm[3],mid_common=hm[4],diffs_a=diff_main(text1_a,text2_a),diffs_b=diff_main(text1_b,text2_b);return diffs_a.concat([[0,mid_common]],diffs_b)}return function(text1,text2){for(var text1_length=text1.length,text2_length=text2.length,max_d=Math.ceil((text1_length+text2_length)/2),v_offset=max_d,v_length=2*max_d,v1=new Array(v_length),v2=new Array(v_length),x=0;x<v_length;x++)v1[x]=-1,v2[x]=-1;v1[v_offset+1]=0,v2[v_offset+1]=0;for(var delta=text1_length-text2_length,front=delta%2!=0,k1start=0,k1end=0,k2start=0,k2end=0,d=0;d<max_d;d++){for(var k1=-d+k1start;k1<=d-k1end;k1+=2){for(var k1_offset=v_offset+k1,y1=(x1=k1==-d||k1!=d&&v1[k1_offset-1]<v1[k1_offset+1]?v1[k1_offset+1]:v1[k1_offset-1]+1)-k1;x1<text1_length&&y1<text2_length&&text1.charAt(x1)==text2.charAt(y1);)x1++,y1++;if(v1[k1_offset]=x1,x1>text1_length)k1end+=2;else if(y1>text2_length)k1start+=2;else if(front&&(k2_offset=v_offset+delta-k1)>=0&&k2_offset<v_length&&-1!=v2[k2_offset]&&x1>=(x2=text1_length-v2[k2_offset]))return diff_bisectSplit_(text1,text2,x1,y1)}for(var k2=-d+k2start;k2<=d-k2end;k2+=2){for(var x2,k2_offset=v_offset+k2,y2=(x2=k2==-d||k2!=d&&v2[k2_offset-1]<v2[k2_offset+1]?v2[k2_offset+1]:v2[k2_offset-1]+1)-k2;x2<text1_length&&y2<text2_length&&text1.charAt(text1_length-x2-1)==text2.charAt(text2_length-y2-1);)x2++,y2++;if(v2[k2_offset]=x2,x2>text1_length)k2end+=2;else if(y2>text2_length)k2start+=2;else if(!front){var x1;if((k1_offset=v_offset+delta-k2)>=0&&k1_offset<v_length&&-1!=v1[k1_offset])if(y1=v_offset+(x1=v1[k1_offset])-k1_offset,x1>=(x2=text1_length-x2))return diff_bisectSplit_(text1,text2,x1,y1)}}}return[[-1,text1],[1,text2]]}(text1,text2)}(text1=text1.substring(0,text1.length-commonlength),text2=text2.substring(0,text2.length-commonlength));return commonprefix&&diffs.unshift([0,commonprefix]),commonsuffix&&diffs.push([0,commonsuffix]),diff_cleanupMerge(diffs),null!=cursor_pos&&(diffs=function(diffs,cursor_pos){var norm=function(diffs,cursor_pos){if(0===cursor_pos)return[0,diffs];for(var current_pos=0,i=0;i<diffs.length;i++){var d=diffs[i];if(-1===d[0]||0===d[0]){var next_pos=current_pos+d[1].length;if(cursor_pos===next_pos)return[i+1,diffs];if(cursor_pos<next_pos){diffs=diffs.slice();var split_pos=cursor_pos-current_pos,d_left=[d[0],d[1].slice(0,split_pos)],d_right=[d[0],d[1].slice(split_pos)];return diffs.splice(i,1,d_left,d_right),[i+1,diffs]}current_pos=next_pos}}throw new Error("cursor_pos is out of bounds!")}(diffs,cursor_pos),ndiffs=norm[1],cursor_pointer=norm[0],d=ndiffs[cursor_pointer],d_next=ndiffs[cursor_pointer+1
2];if(null==d)return diffs;if(0!==d[0])return diffs;if(null!=d_next&&d[1]+d_next[1]===d_next[1]+d[1])return ndiffs.splice(cursor_pointer,2,d_next,d),merge_tuples(ndiffs,cursor_pointer,2);if(null!=d_next&&0===d_next[1].indexOf(d[1])){ndiffs.splice(cursor_pointer,2,[d_next[0],d[1]],[0,d[1]]);var suffix=d_next[1].slice(d[1].length);return suffix.length>0&&ndiffs.splice(cursor_pointer+2,0,[d_next[0],suffix]),merge_tuples(ndiffs,cursor_pointer,3)}return diffs}(diffs,cursor_pos)),diffs=function(diffs){for(var compact=!1,starts_with_pair_end=function(str){return str.charCodeAt(0)>=56320&&str.charCodeAt(0)<=57343},ends_with_pair_start=function(str){return str.charCodeAt(str.length-1)>=55296&&str.charCodeAt(str.length-1)<=56319},i=2;i<diffs.length;i+=1)0===diffs[i-2][0]&&ends_with_pair_start(diffs[i-2][1])&&-1===diffs[i-1][0]&&starts_with_pair_end(diffs[i-1][1])&&1===diffs[i][0]&&starts_with_pair_end(diffs[i][1])&&(compact=!0,diffs[i-1][1]=diffs[i-2][1].slice(-1)+diffs[i-1][1],diffs[i][1]=diffs[i-2][1].slice(-1)+diffs[i][1],diffs[i-2][1]=diffs[i-2][1].slice(0,-1));if(!compact)return diffs;var fixed_diffs=[];for(i=0;i<diffs.length;i+=1)diffs[i][1].length>0&&fixed_diffs.push(diffs[i]);return fixed_diffs}(diffs)}function diff_bisectSplit_(text1,text2,x,y){var text1a=text1.substring(0,x),text2a=text2.substring(0,y),text1b=text1.substring(x),text2b=text2.substring(y),diffs=diff_main(text1a,text2a),diffsb=diff_main(text1b,text2b);return diffs.concat(diffsb)}function diff_commonPrefix(text1,text2){if(!text1||!text2||text1.charAt(0)!=text2.charAt(0))return 0;for(var pointermin=0,pointermax=Math.min(text1.length,text2.length),pointermid=pointermax,pointerstart=0;pointermin<pointermid;)text1.substring(pointerstart,pointermid)==text2.substring(pointerstart,pointermid)?pointerstart=pointermin=pointermid:pointermax=pointermid,pointermid=Math.floor((pointermax-pointermin)/2+pointermin);return pointermid}function diff_commonSuffix(text1,text2){if(!text1||!text2||text1.charAt(text1.length-1)!=text2.charAt(text2.length-1))return 0;for(var pointermin=0,pointermax=Math.min(text1.length,text2.length),pointermid=pointermax,pointerend=0;pointermin<pointermid;)text1.substring(text1.length-pointermid,text1.length-pointerend)==text2.substring(text2.length-pointermid,text2.length-pointerend)?pointerend=pointermin=pointermid:pointermax=pointermid,pointermid=Math.floor((pointermax-pointermin)/2+pointermin);return pointermid}function diff_cleanupMerge(diffs){diffs.push([0,""]);for(var commonlength,pointer=0,count_delete=0,count_insert=0,text_delete="",text_insert="";pointer<diffs.length;)switch(diffs[pointer][0]){case 1:count_insert++,text_insert+=diffs[pointer][1],pointer++;break;case-1:count_delete++,text_delete+=diffs[pointer][1],pointer++;break;case 0:count_delete+count_insert>1?(0!==count_delete&&0!==count_insert&&(0!==(commonlength=diff_commonPrefix(text_insert,text_delete))&&(pointer-count_delete-count_insert>0&&0==diffs[pointer-count_delete-count_insert-1][0]?diffs[pointer-count_delete-count_insert-1][1]+=text_insert.substring(0,commonlength):(diffs.splice(0,0,[0,text_insert.substring(0,commonlength)]),pointer++),text_insert=text_insert.substring(commonlength),text_delete=text_delete.substring(commonlength)),0!==(commonlength=diff_commonSuffix(text_insert,text_delete))&&(diffs[pointer][1]=text_insert.substring(text_insert.length-commonlength)+diffs[pointer][1],text_insert=text_insert.substring(0,text_insert.length-commonlength),text_delete=text_delete.substring(0,text_delete.length-commonlength))),0===count_delete?diffs.splice(pointer-count_insert,count_delete+count_insert,[1,text_insert]):0===count_insert?diffs.splice(pointer-count_delete,count_delete+count_insert,[-1,text_delete]):diffs.splice(pointer-count_delete-count_insert,count_delete+count_insert,[-1,text_delete],[1,text_insert]),pointer=pointer-count_delete-count_insert+(count_delete?1:0)+(count_insert?1:0)+1):0!==pointer&&0==diffs[pointer-1][0]?(diffs[pointer-1][1]+=diffs[pointer][1],diffs.splice(pointer,1)):pointer++,count_insert=0,count_delete=0,text_delete="",text_insert=""}""===diffs[diffs.length-1][1]&&diffs.pop();var changes=!1;for(pointer=1;pointer<diffs.length-1;
2)0==diffs[pointer-1][0]&&0==diffs[pointer+1][0]&&(diffs[pointer][1].substring(diffs[pointer][1].length-diffs[pointer-1][1].length)==diffs[pointer-1][1]?(diffs[pointer][1]=diffs[pointer-1][1]+diffs[pointer][1].substring(0,diffs[pointer][1].length-diffs[pointer-1][1].length),diffs[pointer+1][1]=diffs[pointer-1][1]+diffs[pointer+1][1],diffs.splice(pointer-1,1),changes=!0):diffs[pointer][1].substring(0,diffs[pointer+1][1].length)==diffs[pointer+1][1]&&(diffs[pointer-1][1]+=diffs[pointer+1][1],diffs[pointer][1]=diffs[pointer][1].substring(diffs[pointer+1][1].length)+diffs[pointer+1][1],diffs.splice(pointer+1,1),changes=!0)),pointer++;changes&&diff_cleanupMerge(diffs)}var diff=diff_main;function merge_tuples(diffs,start,length){for(var i=start+length-1;i>=0&&i>=start-1;i--)if(i+1<diffs.length){var left_d=diffs[i],right_d=diffs[i+1];left_d[0]===right_d[1]&&diffs.splice(i,2,[left_d[0],left_d[1]+right_d[1]])}return diffs}diff.INSERT=1,diff.DELETE=-1,diff.EQUAL=0,module.exports=diff},function(module,exports){function shim(obj){var keys=[];for(var key in obj)keys.push(key);return keys}(module.exports="function"==typeof Object.keys?Object.keys:shim).shim=shim},function(module,exports){var supportsArgumentsClass="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function supported(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function unsupported(object){return object&&"object"==typeof object&&"number"==typeof object.length&&Object.prototype.hasOwnProperty.call(object,"callee")&&!Object.prototype.propertyIsEnumerable.call(object,"callee")||!1}(exports=module.exports=supportsArgumentsClass?supported:unsupported).supported=supported,exports.unsupported=unsupported},function(module,exports){"use strict";var has=Object.prototype.hasOwnProperty,prefix="~";function Events(){}function EE(fn,context,once){this.fn=fn,this.context=context,this.once=once||!1}function EventEmitter(){this._events=new Events,this._eventsCount=0}Object.create&&(Events.prototype=Object.create(null),(new Events).__proto__||(prefix=!1)),EventEmitter.prototype.eventNames=function(){var events,name,names=[];if(0===this._eventsCount)return names;for(name in events=this._events)has.call(events,name)&&names.push(prefix?name.slice(1):name);return Object.getOwnPropertySymbols?names.concat(Object.getOwnPropertySymbols(events)):names},EventEmitter.prototype.listeners=function(event,exists){var evt=prefix?prefix+event:event,available=this._events[evt];if(exists)return!!available;if(!available)return[];if(available.fn)return[available.fn];for(var i=0,l=available.length,ee=new Array(l);i<l;i++)ee[i]=available[i].fn;return ee},EventEmitter.prototype.emit=function(event,a1,a2,a3,a4,a5){var evt=prefix?prefix+event:event;if(!this._events[evt])return!1;var args,i,listeners=this._events[evt],len=arguments.length;if(listeners.fn){switch(listeners.once&&this.removeListener(event,listeners.fn,void 0,!0),len){case 1:return listeners.fn.call(listeners.context),!0;case 2:return listeners.fn.call(listeners.context,a1),!0;case 3:return listeners.fn.call(listeners.context,a1,a2),!0;case 4:return listeners.fn.call(listeners.context,a1,a2,a3),!0;case 5:return listeners.fn.call(listeners.context,a1,a2,a3,a4),!0;case 6:return listeners.fn.call(listeners.context,a1,a2,a3,a4,a5),!0}for(i=1,args=new Array(len-1);i<len;i++)args[i-1]=arguments[i];listeners.fn.apply(listeners.context,args)}else{var j,length=listeners.length;for(i=0;i<length;i++)switch(listeners[i].once&&this.removeListener(event,listeners[i].fn,void 0,!0),len){case 1:listeners[i].fn.call(listeners[i].context);break;case 2:listeners[i].fn.call(listeners[i].context,a1);break;case 3:listeners[i].fn.call(listeners[i].context,a1,a2);break;case 4:listeners[i].fn.call(listeners[i].context,a1,a2,a3);break;default:if(!args)for(j=1,args=new Array(len-1);j<len;j++)args[j-1]=arguments[j];listeners[i].fn.apply(listeners[i].context,args)}}return!0},EventEmitter.prototype.on=function(event,fn,context){var listener=new EE(fn,context||this),evt=prefix?prefix+event:event;return this._events[evt]?this._events[evt].fn?this._events[evt]=[this._events[evt],listener]:this._events[evt].push(listener):(this._events[evt]=listener,this._eventsCount++),this},EventEmitter.prototype.once=function(event,fn,context){var listener=new EE(fn,context||this,!0),evt=prefix?prefix+event:event;return this._events[evt]?this._events[evt].fn?this._events[evt]=[this._events[evt],listener]:this._events[evt].push(listener):(this._events[evt]=listener,this._eventsCount++),this},EventEmitter.prototype.removeListener=function(event,fn,context,once){var evt=prefix?prefix+event:event;if(!this._events[evt])return this;if(!fn)return 0==--this._eventsCount?this._events=new Events:delete this._events[evt],this;var listeners=this._events[evt];if(listeners.fn)listeners.fn!==fn||once&&!listeners.once||context&&listeners.context!==context||(0==--this._eventsCount?this._events=new Events:delete this._events[evt]);else{for(var i=0,events=[],length=listeners.length;i<length;i++)(listeners[i].fn!==fn||once&&!listeners[i].once||context&&listeners[i].context!==context)&&events.push(listeners[i]);events.length?this._events[evt]=1===events.length?events[0]:events:0==--this._eventsCount?this._events=new Events:delete this._events[evt]}return this},EventEmitter.prototype.removeAllListeners=function(event){var evt;return event?(evt=prefix?prefix+event:event,this._events[evt]&&(0==--this._eventsCount?this._events=new Events:delete this._events[evt])):(this._events=new Events,this._eventsCount=0),this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.addListener=EventEmitter.prototype.on,EventEmitter.prototype.setMaxListeners=function(){return this},EventEmitter.prefixed=prefix,EventEmitter.EventEmitter=EventEmitter,void 0!==module&&(module.exports=EventEmitter)},function(module,exports,__nested_webpack_require_316416__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.matchText=exports.matchSpacing=exports.matchNewline=exports.matchBlot=ex
2ports.matchAttributor=exports.default=void 0;var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_extend3=_interopRequireDefault(__nested_webpack_require_316416__(3)),_quillDelta2=_interopRequireDefault(__nested_webpack_require_316416__(2)),_parchment2=_interopRequireDefault(__nested_webpack_require_316416__(0)),_quill2=_interopRequireDefault(__nested_webpack_require_316416__(5)),_logger2=_interopRequireDefault(__nested_webpack_require_316416__(10)),_module2=_interopRequireDefault(__nested_webpack_require_316416__(9)),_align=__nested_webpack_require_316416__(36),_background=__nested_webpack_require_316416__(37),_code2=_interopRequireDefault(__nested_webpack_require_316416__(13)),_color=__nested_webpack_require_316416__(26),_direction=__nested_webpack_require_316416__(38),_font=__nested_webpack_require_316416__(39),_size=__nested_webpack_require_316416__(40);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var debug=(0,_logger2.default)("quill:clipboard"),DOM_KEY="__ql-matcher",CLIPBOARD_CONFIG=[[Node.TEXT_NODE,matchText],[Node.TEXT_NODE,matchNewline],["br",function(node,delta){return deltaEndsWith(delta,"\n")||delta.insert("\n"),delta}],[Node.ELEMENT_NODE,matchNewline],[Node.ELEMENT_NODE,matchBlot],[Node.ELEMENT_NODE,matchSpacing],[Node.ELEMENT_NODE,matchAttributor],[Node.ELEMENT_NODE,function(node,delta){var formats={},style=node.style||{};return style.fontStyle&&"italic"===computeStyle(node).fontStyle&&(formats.italic=!0),style.fontWeight&&(computeStyle(node).fontWeight.startsWith("bold")||parseInt(computeStyle(node).fontWeight)>=700)&&(formats.bold=!0),Object.keys(formats).length>0&&(delta=applyFormat(delta,formats)),parseFloat(style.textIndent||0)>0&&(delta=(new _quillDelta2.default).insert("\t").concat(delta)),delta}],["li",function(node,delta){var match=_parchment2.default.query(node);if(null==match||"list-item"!==match.blotName||!deltaEndsWith(delta,"\n"))return delta;for(var indent=-1,parent=node.parentNode;!parent.classList.contains("ql-clipboard");)"list"===(_parchment2.default.query(parent)||{}).blotName&&(indent+=1),parent=parent.parentNode;return indent<=0?delta:delta.compose((new _quillDelta2.default).retain(delta.length()-1).retain(1,{indent}))}],["b",matchAlias.bind(matchAlias,"bold")],["i",matchAlias.bind(matchAlias,"italic")],["style",function(){return new _quillDelta2.default}]],ATTRIBUTE_ATTRIBUTORS=[_align.AlignAttribute,_direction.DirectionAttribute].reduce((function(memo,attr){return memo[attr.keyName]=attr,memo}),{}),STYLE_ATTRIBUTORS=[_align.AlignStyle,_background.BackgroundStyle,_color.ColorStyle,_direction.DirectionStyle,_font.FontStyle,_size.SizeStyle].reduce((function(memo,attr){return memo[attr.keyName]=attr,memo}),{}),Clipboard=function(_Module){function Clipboard(quill,options){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Clipboard);var _this=function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Clipboard.__proto__||Object.getPrototypeOf(Clipboard)).call(this,quill,options));return _this.quill.root.addEventListener("paste",_this.onPaste.bind(_this)),_this.container=_this.quill.addContainer("ql-clipboard"),_this.container.setAttribute("contenteditable",!0),_this.container.setAttribute("tabindex",-1),_this.matchers=[],CLIPBOARD_CONFIG.concat(_this.options.matchers).forEac
2h((function(_ref){var _ref2=_slicedToArray(_ref,2),selector=_ref2[0],matcher=_ref2[1];(options.matchVisual||matcher!==matchSpacing)&&_this.addMatcher(selector,matcher)})),_this}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Clipboard,_Module),_createClass(Clipboard,[{key:"addMatcher",value:function(selector,matcher){this.matchers.push([selector,matcher])}},{key:"convert",value:function(html){if("string"==typeof html)return this.container.innerHTML=html.replace(/\>\r?\n +\</g,"><"),this.convert();var formats=this.quill.getFormat(this.quill.selection.savedRange.index);if(formats[_code2.default.blotName]){var text=this.container.innerText;return this.container.innerHTML="",(new _quillDelta2.default).insert(text,_defineProperty({},_code2.default.blotName,formats[_code2.default.blotName]))}var _prepareMatching=this.prepareMatching(),_prepareMatching2=_slicedToArray(_prepareMatching,2),elementMatchers=_prepareMatching2[0],textMatchers=_prepareMatching2[1],delta=traverse(this.container,elementMatchers,textMatchers);return deltaEndsWith(delta,"\n")&&null==delta.ops[delta.ops.length-1].attributes&&(delta=delta.compose((new _quillDelta2.default).retain(delta.length()-1).delete(1))),debug.log("convert",this.container.innerHTML,delta),this.container.innerHTML="",delta}},{key:"dangerouslyPasteHTML",value:function(index,html){var source=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_quill2.default.sources.API;if("string"==typeof index)this.quill.setContents(this.convert(index),html),this.quill.setSelection(0,_quill2.default.sources.SILENT);else{var paste=this.convert(html);this.quill.updateContents((new _quillDelta2.default).retain(index).concat(paste),source),this.quill.setSelection(index+paste.length(),_quill2.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var _this2=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var range=this.quill.getSelection(),delta=(new _quillDelta2.default).retain(range.index),scrollTop=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(_quill2.default.sources.SILENT),setTimeout((function(){delta=delta.concat(_this2.convert()).delete(range.length),_this2.quill.updateContents(delta,_quill2.default.sources.USER),_this2.quill.setSelection(delta.length()-range.length,_quill2.default.sources.SILENT),_this2.quill.scrollingContainer.scrollTop=scrollTop,_this2.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var _this3=this,elementMatchers=[],textMatchers=[];return this.matchers.forEach((function(pair){var _pair=_slicedToArray(pair,2),selector=_pair[0],matcher=_pair[1];switch(selector){case Node.TEXT_NODE:textMatchers.push(matcher);break;case Node.ELEMENT_NODE:elementMatchers.push(matcher);break;default:[].forEach.call(_this3.container.querySelectorAll(selector),(function(node){node[DOM_KEY]=node[DOM_KEY]||[],node[DOM_KEY].push(matcher)}))}})),[elementMatchers,textMatchers]}}]),Clipboard}(_module2.default);function applyFormat(delta,format,value){return"object"===(void 0===format?"undefined":_typeof(format))?Object.keys(format).reduce((function(delta,key){return applyFormat(delta,key,format[key])}),delta):delta.reduce((function(delta,op){return op.attributes&&op.attributes[format]?delta.push(op):delta.insert(op.insert,(0,_extend3.default)({},_defineProperty({},format,value),op.attributes))}),new _quillDelta2.default)}function computeStyle(node){return node.nodeType!==Node.ELEMENT_NODE?{}:node["__ql-computed-style"]||(node["__ql-computed-style"]=window.getComputedStyle(node))}function deltaEndsWith(delta,text){for(var endText="",i=delta.ops.length-1;i>=0&&endText.length<text.length;--i){var op=delta.ops[i];if("string"!=typeof op.insert)break;endText=op.insert+endText}return endText.slice(-1*text.length)===text}function isLine(node){if(0===node.childNodes.length)return!1;var style=computeStyle(node);return["block","list-item"].indexOf(style.display)>-1}function traverse(node,elementMatchers,textMatchers){return node.nodeType===node.TEXT_NODE?textMatchers.reduce((function(delta,matcher){return matcher(node,delta)}),new _quillDelta2.default):node.nodeType===node.ELEMENT_NODE?[].reduce.call(node.childNodes||[],(function(delta,childNode){var childrenDelta=traverse(childNode,elementMatchers,textMatchers);return childNode.nodeType===node.ELEMENT_NODE&&(childrenDelta=elementMatchers.reduce((function(childrenDelta,matcher){return matcher(childNode,childrenDelta)}),childrenDelta),childrenDelta=(childNode[DOM_KEY]||[]).reduce((function(childrenDelta,matcher){return matcher(childNode,childrenDelta)}
2),childrenDelta)),delta.concat(childrenDelta)}),new _quillDelta2.default):new _quillDelta2.default}function matchAlias(format,node,delta){return applyFormat(delta,format,!0)}function matchAttributor(node,delta){var attributes=_parchment2.default.Attributor.Attribute.keys(node),classes=_parchment2.default.Attributor.Class.keys(node),styles=_parchment2.default.Attributor.Style.keys(node),formats={};return attributes.concat(classes).concat(styles).forEach((function(name){var attr=_parchment2.default.query(name,_parchment2.default.Scope.ATTRIBUTE);null!=attr&&(formats[attr.attrName]=attr.value(node),formats[attr.attrName])||(null==(attr=ATTRIBUTE_ATTRIBUTORS[name])||attr.attrName!==name&&attr.keyName!==name||(formats[attr.attrName]=attr.value(node)||void 0),null==(attr=STYLE_ATTRIBUTORS[name])||attr.attrName!==name&&attr.keyName!==name||(attr=STYLE_ATTRIBUTORS[name],formats[attr.attrName]=attr.value(node)||void 0))})),Object.keys(formats).length>0&&(delta=applyFormat(delta,formats)),delta}function matchBlot(node,delta){var match=_parchment2.default.query(node);if(null==match)return delta;if(match.prototype instanceof _parchment2.default.Embed){var embed={},value=match.value(node);null!=value&&(embed[match.blotName]=value,delta=(new _quillDelta2.default).insert(embed,match.formats(node)))}else"function"==typeof match.formats&&(delta=applyFormat(delta,match.blotName,match.formats(node)));return delta}function matchNewline(node,delta){return deltaEndsWith(delta,"\n")||(isLine(node)||delta.length()>0&&node.nextSibling&&isLine(node.nextSibling))&&delta.insert("\n"),delta}function matchSpacing(node,delta){if(isLine(node)&&null!=node.nextElementSibling&&!deltaEndsWith(delta,"\n\n")){var nodeHeight=node.offsetHeight+parseFloat(computeStyle(node).marginTop)+parseFloat(computeStyle(node).marginBottom);node.nextElementSibling.offsetTop>node.offsetTop+1.5*nodeHeight&&delta.insert("\n")}return delta}function matchText(node,delta){var text=node.data;if("O:P"===node.parentNode.tagName)return delta.insert(text.trim());if(0===text.trim().length&&node.parentNode.classList.contains("ql-clipboard"))return delta;if(!computeStyle(node.parentNode).whiteSpace.startsWith("pre")){var replacer=function(collapse,match){return(match=match.replace(/[^\u
200a0]/g,"")).length<1&&collapse?" ":match};text=(text=text.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,replacer.bind(replacer,!0)),(null==node.previousSibling&&isLine(node.parentNode)||null!=node.previousSibling&&isLine(node.previousSibling))&&(text=text.replace(/^\s+/,replacer.bind(replacer,!1))),(null==node.nextSibling&&isLine(node.parentNode)||null!=node.nextSibling&&isLine(node.nextSibling))&&(text=text.replace(/\s+$/,replacer.bind(replacer,!1)))}return delta.insert(text)}Clipboard.DEFAULTS={matchers:[],matchVisual:!0},exports.default=Clipboard,exports.matchAttributor=matchAttributor,exports.matchBlot=matchBlot,exports.matchNewline=matchNewline,exports.matchSpacing=matchSpacing,exports.matchText=matchText},function(module,exports,__nested_webpack_require_333274__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_inline=__nested_webpack_require_333274__(6),Bold=function(_Inline){function Bold(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Bold),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Bold.__proto__||Object.getPrototypeOf(Bold)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Bold,_Inline),_createClass(Bold,[{key:"optimize",value:function(context){_get(Bold.prototype.__proto__||Object.getPrototypeOf(Bold.prototype),"optimize",this).call(this,context),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return _get(Bold.__proto__||Object.getPrototypeOf(Bold),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),Bold}(((obj=_inline)&&obj.__esModule?obj:{default:obj}).default);Bold.blotName="bold",Bold.tagName=["STRONG","B"],exports.default=Bold},function(module,exports,__nested_webpack_require_336502__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addControls=exports.default=void 0;var _slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_quillDelta2=_interopRequireDefault(__nested_webpack_require_336502__(2)),_parchment2=_interopRequireDefault(__nested_webpack_require_336502__(0)),_quill2=_interopRequireDefault(__nested_webpack_require_336502__(5)),_logger2=_interopRequireDefault(__nested_webpack_require_336502__(10)),_module2=_interopRequireDefault(__nested_webpack_require_336502__(9));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}var debug=(0,_logger2.default)("quill:toolbar"),Toolbar=function(_Module){function Toolbar(quill,options){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Toolbar);var _ret,_this=_possibleConstructorReturn(this,(Toolbar.__proto__||Object.getPrototypeOf(Toolbar)).call(this,quill,options));if(Array.isArray(_this.options.container)){var container=document.createElement("div");
2addControls(container,_this.options.container),quill.container.parentNode.insertBefore(container,quill.container),_this.container=container}else"string"==typeof _this.options.container?_this.container=document.querySelector(_this.options.container):_this.container=_this.options.container;return _this.container instanceof HTMLElement?(_this.container.classList.add("ql-toolbar"),_this.controls=[],_this.handlers={},Object.keys(_this.options.handlers).forEach((function(format){_this.addHandler(format,_this.options.handlers[format])})),[].forEach.call(_this.container.querySelectorAll("button, select"),(function(input){_this.attach(input)})),_this.quill.on(_quill2.default.events.EDITOR_CHANGE,(function(type,range){type===_quill2.default.events.SELECTION_CHANGE&&_this.update(range)})),_this.quill.on(_quill2.default.events.SCROLL_OPTIMIZE,(function(){var _this$quill$selection=_this.quill.selection.getRange(),range=_slicedToArray(_this$quill$selection,1)[0];_this.update(range)})),_this):(_ret=debug.error("Container required for toolbar",_this.options),_possibleConstructorReturn(_this,_ret))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Toolbar,_Module),_createClass(Toolbar,[{key:"addHandler",value:function(format,handler){this.handlers[format]=handler}},{key:"attach",value:function(input){var _this2=this,format=[].find.call(input.classList,(function(className){return 0===className.indexOf("ql-")}));if(format){if(format=format.slice(3),"BUTTON"===input.tagName&&input.setAttribute("type","button"),null==this.handlers[format]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[format])return void debug.warn("ignoring attaching to disabled format",format,input);if(null==_parchment2.default.query(format))return void debug.warn("ignoring attaching to nonexistent format",format,input)}var eventName="SELECT"===input.tagName?"change":"click";input.addEventListener(eventName,(function(e){var value=void 0;if("SELECT"===input.tagName){if(input.selectedIndex<0)return;var selected=input.options[input.selectedIndex];value=!selected.hasAttribute("selected")&&(selected.value||!1)}else value=!input.classList.contains("ql-active")&&(input.value||!input.hasAttribute("value")),e.preventDefault();_this2.quill.focus();var _quill$selection$getR=_this2.quill.selection.getRange(),range=_slicedToArray(_quill$selection$getR,1)[0];if(null!=_this2.handlers[format])_this2.handlers[format].call(_this2,value);else if(_parchment2.default.query(format).prototype instanceof _parchment2.default.Embed){if(!(value=prompt("Enter "+format)))return;_this2.quill.updateContents((new _quillDelta2.default).retain(range.index).delete(range.length).insert(function(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},format,value)),_quill2.default.sources.USER)}else _this2.quill.format(format,value,_quill2.default.sources.USER);_this2.update(range)})),this.controls.push([format,input])}}},{key:"update",value:function(range){var formats=null==range?{}:this.quill.getFormat(range);this.controls.forEach((function(pair){var _pair=_slicedToArray(pair,2),format=_pair[0],input=_pair[1];if("SELECT"===input.tagName){var option=void 0;if(null==range)option=null;else if(null==formats[format])option=input.querySelector("option[selected]");else if(!Array.isArray(formats[format])){var value=formats[format];"string"==typeof value&&(value=value.replace(/\"/g,'\\"')),option=input.querySelector('option[value="'+value+'"]')}null==option?(input.value="",input.selectedIndex=-1):option.selected=!0}else if(null==range)input.classList.remove("ql-active");else if(input.hasAttribute("value")){var isActive=formats[format]===input.getAttribute("value")||null!=formats[format]&&formats[format].toString()===input.getAttribute("value")||null==formats[format]&&!input.getAttribute("value");input.classList.toggle("ql-active",isActive)}else input.classList.toggle("ql-active",null!=formats[format])}))}}]),Toolbar}(_module2.default);function addButton(container,format,value){var input=document.createElement("button");input.setAttribute("type","button"),input.classList.add("ql-"+format),null!=value&&(input.value=value),container.appendChild(input)}
2function addControls(container,groups){Array.isArray(groups[0])||(groups=[groups]),groups.forEach((function(controls){var group=document.createElement("span");group.classList.add("ql-formats"),controls.forEach((function(control){if("string"==typeof control)addButton(group,control);else{var format=Object.keys(control)[0],value=control[format];Array.isArray(value)?function(container,format,values){var input=document.createElement("select");input.classList.add("ql-"+format),values.forEach((function(value){var option=document.createElement("option");!1!==value?option.setAttribute("value",value):option.setAttribute("selected","selected"),input.appendChild(option)})),container.appendChild(input)}(group,format,value):addButton(group,format,value)}})),container.appendChild(group)}))}Toolbar.DEFAULTS={},Toolbar.DEFAULTS={container:null,handlers:{clean:function(){var _this3=this,range=this.quill.getSelection();if(null!=range)if(0==range.length){var formats=this.quill.getFormat();Object.keys(formats).forEach((function(name){null!=_parchment2.default.query(name,_parchment2.default.Scope.INLINE)&&_this3.quill.format(name,!1)}))}else this.quill.removeFormat(range,_quill2.default.sources.USER)},direction:function(value){var align=this.quill.getFormat().align;"rtl"===value&&null==align?this.quill.format("align","right",_quill2.default.sources.USER):value||"right"!==align||this.quill.format("align",!1,_quill2.default.sources.USER),this.quill.format("direction",value,_quill2.default.sources.USER)},indent:function(value){var range=this.quill.getSelection(),formats=this.quill.getFormat(range),indent=parseInt(formats.indent||0);if("+1"===value||"-1"===value){var modifier="+1"===value?1:-1;"rtl"===formats.direction&&(modifier*=-1),this.quill.format("indent",indent+modifier,_quill2.default.sources.USER)}},link:function(value){!0===value&&(value=prompt("Enter link URL:")),this.quill.format("link",value,_quill2.default.sources.USER)},list:function(value){var range=this.quill.getSelection(),formats=this.quill.getFormat(range);"check"===value?"checked"===formats.list||"unchecked"===formats.list?this.quill.format("list",!1,_quill2.default.sources.USER):this.quill.format("list","unchecked",_quill2.default.sources.USER):this.quill.format("list",value,_quill2.default.sources.USER)}}},exports.default=Toolbar,exports.addControls=addControls},function(module,exports){module.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(module,exports,__nested_webpack_require_349781__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_picker=__nested_webpack_require_349781__(28),ColorPicker=function(_Picker){function ColorPicker(select,label){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}
2(this,ColorPicker);var _this=function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(ColorPicker.__proto__||Object.getPrototypeOf(ColorPicker)).call(this,select));return _this.label.innerHTML=label,_this.container.classList.add("ql-color-picker"),[].slice.call(_this.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(item){item.classList.add("ql-primary")})),_this}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(ColorPicker,_Picker),_createClass(ColorPicker,[{key:"buildItem",value:function(option){var item=_get(ColorPicker.prototype.__proto__||Object.getPrototypeOf(ColorPicker.prototype),"buildItem",this).call(this,option);return item.style.backgroundColor=option.getAttribute("value")||"",item}},{key:"selectItem",value:function(item,trigger){_get(ColorPicker.prototype.__proto__||Object.getPrototypeOf(ColorPicker.prototype),"selectItem",this).call(this,item,trigger);var colorLabel=this.label.querySelector(".ql-color-label"),value=item&&item.getAttribute("data-value")||"";colorLabel&&("line"===colorLabel.tagName?colorLabel.style.stroke=value:colorLabel.style.fill=value)}}]),ColorPicker}(((obj=_picker)&&obj.__esModule?obj:{default:obj}).default);exports.default=ColorPicker},function(module,exports,__nested_webpack_require_353592__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_picker=__nested_webpack_require_353592__(28),IconPicker=function(_Picker){function IconPicker(select,icons){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,IconPicker);var _this=function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(IconPicker.__proto__||Object.getPrototypeOf(IconPicker)).call(this,select));return _this.container.classList.add("ql-icon-picker"),[].forEach.call(_this.container.querySelectorAll(".ql-picker-item"),(function(item){item.innerHTML=icons[item.getAttribute("data-value")||""]})),_this.defaultItem=_this.container.querySelector(".ql-selected"),_this.selectItem(_this.defaultItem),_this}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(IconPicker,_Picker),_createClass(IconPicker,[{key:"selectItem",value:function(item,trigger){_get(IconPicker.prototype.__proto__||Object.getPrototypeOf(IconPicker.prototype),"selectItem",this).call(this,item,trigger),item=item||this.defaultItem,this.label.innerHTML=item.innerHTML}}]),IconPicker}(((obj=_picker)&&obj.__esModule?obj:{default:obj}).default);exports.default=IconPicker},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),Tooltip=function(){function Tooltip(quill,boundsContainer){var _this=this;!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Tooltip),this.quill=quill,this.boundsContainer=boundsContainer||document.body,this.root=quill.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){_this.root.style.marginTop=-1*_this.quill.root.scrollTop+"px"})),this.hide()}return _createClass(Tooltip,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(reference){var left=reference.left+reference.width/2-this.root.offsetWidth/2,top=reference.bottom+this.quill.root.scrollTop;this.root.style.left=left+"px",this.root.style.top=top+"px",this.root.classList.remove("ql-flip");var containerBounds=this.boundsContainer.getBoundingClientRect(),rootBounds=this.root.getBoundingClientRect(),shift=0;if(rootBounds.right>containerBounds.right&&(shift=containerBounds.right-rootBounds.right,this.root.style.left=left+shift+"px"),rootBounds.left<containerBounds.left&&(shift=containerBounds.left-rootBounds.left,this.root.style.left=left+shift+"px"),rootBounds.bottom>containerBounds.bottom){var height=rootBounds.bottom-rootBounds.top,verticalShift=reference.bottom-reference.top+height;this.root.style.top=top-verticalShift+"px",this.root.classList.add("ql-flip")}return shift}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),Tooltip}();exports.default=Tooltip},function(module,exports,__nested_webpack_require_359932__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);
2throw new TypeError("Invalid attempt to destructure non-iterable instance")},_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_extend2=_interopRequireDefault(__nested_webpack_require_359932__(3)),_emitter2=_interopRequireDefault(__nested_webpack_require_359932__(8)),_base=__nested_webpack_require_359932__(43),_base2=_interopRequireDefault(_base),_link2=_interopRequireDefault(__nested_webpack_require_359932__(27)),_selection=__nested_webpack_require_359932__(15),_icons2=_interopRequireDefault(__nested_webpack_require_359932__(41));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var TOOLBAR_CONFIG=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],SnowTheme=function(_BaseTheme){function SnowTheme(quill,options){_classCallCheck(this,SnowTheme),null!=options.modules.toolbar&&null==options.modules.toolbar.container&&(options.modules.toolbar.container=TOOLBAR_CONFIG);var _this=_possibleConstructorReturn(this,(SnowTheme.__proto__||Object.getPrototypeOf(SnowTheme)).call(this,quill,options));return _this.quill.container.classList.add("ql-snow"),_this}return _inherits(SnowTheme,_BaseTheme),_createClass(SnowTheme,[{key:"extendToolbar",value:function(toolbar){toolbar.container.classList.add("ql-snow"),this.buildButtons([].slice.call(toolbar.container.querySelectorAll("button")),_icons2.default),this.buildPickers([].slice.call(toolbar.container.querySelectorAll("select")),_icons2.default),this.tooltip=new SnowTooltip(this.quill,this.options.bounds),toolbar.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(range,context){toolbar.handlers.link.call(toolbar,!context.format.link)}))}}]),SnowTheme}(_base2.default);SnowTheme.DEFAULTS=(0,_extend2.default)(!0,{},_base2.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(value){if(value){var range=this.quill.getSelection();if(null==range||0==range.length)return;var preview=this.quill.getText(range);/^\S+@\S+\.\S+$/.test(preview)&&0!==preview.indexOf("mailto:")&&(preview="mailto:"+preview),this.quill.theme.tooltip.edit("link",preview)}else this.quill.format("link",!1)}}}}});var SnowTooltip=function(_BaseTooltip){function SnowTooltip(quill,bounds){_classCallCheck(this,SnowTooltip);var _this2=_possibleConstructorReturn(this,(SnowTooltip.__proto__||Object.getPrototypeOf(SnowTooltip)).call(this,quill,bounds));return _this2.preview=_this2.root.querySelector("a.ql-preview"),_this2}return _inherits(SnowTooltip,_BaseTooltip),_createClass(SnowTooltip,[{key:"listen",value:function(){var _this3=this;_get(SnowTooltip.prototype.__proto__||Object.getPrototypeOf(SnowTooltip.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(event){_this3.root.classList.contains("ql-editing")?_this3.save():_this3.edit("link",_this3.preview.textContent),event.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(event){if(null!=_this3.linkRange){var range=_this3.linkRange;_this3.restoreFocus(),_this3.quill.formatText(range,"link",!1,_emitter2.default.sources.USER),delete _this3.linkRange}event.preventDefault(),_this3.hide()})),this.quill.on(_emitter2.default.events.SELECTION_CHANGE,(function(range,oldRange,source){if(null!=range){if(0===range.length&&source===_emitter2.default.sources.USER){var _quill$scroll$desce
2nd=_this3.quill.scroll.descendant(_link2.default,range.index),_quill$scroll$descend2=_slicedToArray(_quill$scroll$descend,2),link=_quill$scroll$descend2[0],offset=_quill$scroll$descend2[1];if(null!=link){_this3.linkRange=new _selection.Range(range.index-offset,link.length());var preview=_link2.default.formats(link.domNode);return _this3.preview.textContent=preview,_this3.preview.setAttribute("href",preview),_this3.show(),void _this3.position(_this3.quill.getBounds(_this3.linkRange))}}else delete _this3.linkRange;_this3.hide()}}))}},{key:"show",value:function(){_get(SnowTooltip.prototype.__proto__||Object.getPrototypeOf(SnowTooltip.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),SnowTooltip}(_base.BaseTooltip);SnowTooltip.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(""),exports.default=SnowTheme},function(module,exports,__nested_webpack_require_368316__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _core2=_interopRequireDefault(__nested_webpack_require_368316__(29)),_align=__nested_webpack_require_368316__(36),_direction=__nested_webpack_require_368316__(38),_indent=__nested_webpack_require_368316__(64),_blockquote2=_interopRequireDefault(__nested_webpack_require_368316__(65)),_header2=_interopRequireDefault(__nested_webpack_require_368316__(66)),_list=__nested_webpack_require_368316__(67),_list2=_interopRequireDefault(_list),_background=__nested_webpack_require_368316__(37),_color=__nested_webpack_require_368316__(26),_font=__nested_webpack_require_368316__(39),_size=__nested_webpack_require_368316__(40),_bold2=_interopRequireDefault(__nested_webpack_require_368316__(56)),_italic2=_interopRequireDefault(__nested_webpack_require_368316__(68)),_link2=_interopRequireDefault(__nested_webpack_require_368316__(27)),_script2=_interopRequireDefault(__nested_webpack_require_368316__(69)),_strike2=_interopRequireDefault(__nested_webpack_require_368316__(70)),_underline2=_interopRequireDefault(__nested_webpack_require_368316__(71)),_image2=_interopRequireDefault(__nested_webpack_require_368316__(72)),_video2=_interopRequireDefault(__nested_webpack_require_368316__(73)),_code=__nested_webpack_require_368316__(13),_code2=_interopRequireDefault(_code),_formula2=_interopRequireDefault(__nested_webpack_require_368316__(74)),_syntax2=_interopRequireDefault(__nested_webpack_require_368316__(75)),_toolbar2=_interopRequireDefault(__nested_webpack_require_368316__(57)),_icons2=_interopRequireDefault(__nested_webpack_require_368316__(41)),_picker2=_interopRequireDefault(__nested_webpack_require_368316__(28)),_colorPicker2=_interopRequireDefault(__nested_webpack_require_368316__(59)),_iconPicker2=_interopRequireDefault(__nested_webpack_require_368316__(60)),_tooltip2=_interopRequireDefault(__nested_webpack_require_368316__(61)),_bubble2=_interopRequireDefault(__nested_webpack_require_368316__(108)),_snow2=_interopRequireDefault(__nested_webpack_require_368316__(62));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}_core2.default.register({"attributors/attribute/direction":_direction.DirectionAttribute,"attributors/class/align":_align.AlignClass,"attributors/class/background":_background.BackgroundClass,"attributors/class/color":_color.ColorClass,"attributors/class/direction":_direction.DirectionClass,"attributors/class/font":_font.FontClass,"attributors/class/size":_size.SizeClass,"attributors/style/align":_align.AlignStyle,"attributors/style/background":_background.BackgroundStyle,"attributors/style/color":_color.ColorStyle,"attributors/style/direction":_direction.DirectionStyle,"attributors/style/font":_font.FontStyle,"attributors/style/size":_size.SizeStyle},!0),_core2.default.register({"formats/align":_align.AlignClass,"formats/direction":_direction.DirectionClass,"formats/indent":_indent.IndentClass,"formats/background":_background.Backgroun
2dStyle,"formats/color":_color.ColorStyle,"formats/font":_font.FontClass,"formats/size":_size.SizeClass,"formats/blockquote":_blockquote2.default,"formats/code-block":_code2.default,"formats/header":_header2.default,"formats/list":_list2.default,"formats/bold":_bold2.default,"formats/code":_code.Code,"formats/italic":_italic2.default,"formats/link":_link2.default,"formats/script":_script2.default,"formats/strike":_strike2.default,"formats/underline":_underline2.default,"formats/image":_image2.default,"formats/video":_video2.default,"formats/list/item":_list.ListItem,"modules/formula":_formula2.default,"modules/syntax":_syntax2.default,"modules/toolbar":_toolbar2.default,"themes/bubble":_bubble2.default,"themes/snow":_snow2.default,"ui/icons":_icons2.default,"ui/picker":_picker2.default,"ui/icon-picker":_iconPicker2.default,"ui/color-picker":_colorPicker2.default,"ui/tooltip":_tooltip2.default},!0),exports.default=_core2.default},function(module,exports,__nested_webpack_require_372903__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IndentClass=void 0;var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_parchment=__nested_webpack_require_372903__(0),_parchment2=(obj=_parchment)&&obj.__esModule?obj:{default:obj},IdentAttributor=function(_Parchment$Attributor){function IdentAttributor(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,IdentAttributor),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(IdentAttributor.__proto__||Object.getPrototypeOf(IdentAttributor)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(IdentAttributor,_Parchment$Attributor),_createClass(IdentAttributor,[{key:"add",value:function(node,value){if("+1"===value||"-1"===value){var indent=this.value(node)||0;value="+1"===value?indent+1:indent-1}return 0===value?(this.remove(node),!0):_get(IdentAttributor.prototype.__proto__||Object.getPrototypeOf(IdentAttributor.prototype),"add",this).call(this,node,value)}},{key:"canAdd",value:function(node,value){return _get(IdentAttributor.prototype.__proto__||Object.getPrototypeOf(IdentAttributor.prototype),"canAdd",this).call(this,node,value)||_get(IdentAttributor.prototype.__proto__||Object.getPrototypeOf(IdentAttributor.prototype),"canAdd",this).call(this,node,parseInt(value))}},{key:"value",value:function(node){return parseInt(_get(IdentAttributor.prototype.__proto__||Object.getPrototypeOf(IdentAttributor.prototype),"value",this).call(this,node))||void 0}}]),IdentAttributor}(_parchment2.default.Attributor.Class),IndentClass=new IdentAttributor("indent","ql-indent",{scope:_parchment2.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});exports.IndentClass=IndentClass},function(module,exports,__nested_webpack_require_376943__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_block=__nested_webpack_require_376943__(4),Blockquote=function(_Block){function Blockquote(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Blockquote),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Blockquote.__proto__||Object.getPrototypeOf(Blockquote)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Blockquote,_Block),Blockquote}(((obj=_block)&&obj.__esModule?obj:{default:obj}).default);Blockquote.blotName="blockquote",Blockquote.tagName="blockquote",exports.default=Blockquote},function(module,exports,__nested_webpack_require_378592__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_block=__nested_webpack_require_378592__(4),Header=function(_Block){function Header(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Header),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Header.__proto__||Object.getPrototypeOf(Header)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Header,_Block),_createClass(Header,null,[{key:"formats",value:function(domNode){return this.tagName.indexOf(domNode.tagName)+1}}]),Header}(((obj=_block)&&obj.__esModule?obj:{default:obj}).default);Header.blotName="header",Header.tagName=["H1","H2","H3","H4","H5","H6"],exports.default=Header},function(module,exports,__nested_webpack_require_380948__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.ListItem=void 0;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_parchment2=_interopRequireDefault(__nested_webpack_require_380948__(0)),_block2=_interopRequireDefault(__nested_webpack_require_380948__(4)),_container2=_interopRequireDefault(__nested_webpack_require_380948__(25));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var ListItem=function(_Block){function ListItem(){return _classCallCheck(this,ListItem),_possibleConstructorReturn(this,(ListItem.__proto__||Object.getPrototypeOf(ListItem)).apply(this,arguments))}return _inherits(ListItem,_Block),_createClass(ListItem,[{key:"format",value:function(name,value){name!==List.blotName||value?_get(ListItem.prototype.__proto__||Object.getPrototypeOf(ListItem.prototype),"format",this).call(this,name,value):this.replaceWith(_parchment2.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():_get(ListItem.prototype.__proto__||Object.getPrototypeOf(ListItem.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(name,value){return this.parent.isolate(this.offset(this.parent),this.length()),name===this.parent.statics.blotName?(this.parent.replaceWith(name,value),this):(this.parent.unwrap(),_get(ListItem.prototype.__proto__||Object.getPrototypeOf(ListItem.prototype),"replaceWith",this).call(this,name,value))}}],[{key:"formats",value:function(domNode){return domNode.tagName===this.tagName?void 0:_get(ListItem.__proto__||Object.getPrototypeOf(ListItem),"formats",this).call(this,domNode)}}]),ListItem}(_block2.default);ListItem.blotName="list-item",ListItem.tagName="LI";var List=function(_Container){function List(domNode){_classCallCheck(this,List);var _this2=_possibleConstructorReturn(this,(List.__proto__||Object.getPrototypeOf(List)).call(this,domNode)),listEventHandler=function(e){if(e.target.parentNode===domNode){var format=_this2.statics.formats(domNode),blot=_parchment2.default.find(e.target);"checked"===format?blot.format("list","unchecked"):"unchecked"===format&&blot.format("list","checked")}};return domNode.addEventListener("touchstart",listEventHandler),domNode.addEventListener("mousedown",listEventHandler),_this2}return _inherits(List,_Container),_createClass(List,null,[{key:"create",value:function(value){var tagName="ordered"===value?"OL":"UL",node=_get(List.__proto__||Object.getPrototypeOf(List),"create",this).call(this,tagName);return"checked"!==value&&"unchecked"!==value||node.setAttribute("data-checked","checked"===value),node}},{key:"formats",value:function(domNode){return"OL"===domNode.tagName?"ordered":"UL"===domNode.tagName?domNo
2de.hasAttribute("data-checked")?"true"===domNode.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),_createClass(List,[{key:"format",value:function(name,value){this.children.length>0&&this.children.tail.format(name,value)}},{key:"formats",value:function(){return obj={},key=this.statics.blotName,value=this.statics.formats(this.domNode),key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj;var obj,key,value}},{key:"insertBefore",value:function(blot,ref){if(blot instanceof ListItem)_get(List.prototype.__proto__||Object.getPrototypeOf(List.prototype),"insertBefore",this).call(this,blot,ref);else{var index=null==ref?this.length():ref.offset(this),after=this.split(index);after.parent.insertBefore(blot,after)}}},{key:"optimize",value:function(context){_get(List.prototype.__proto__||Object.getPrototypeOf(List.prototype),"optimize",this).call(this,context);var next=this.next;null!=next&&next.prev===this&&next.statics.blotName===this.statics.blotName&&next.domNode.tagName===this.domNode.tagName&&next.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(next.moveChildren(this),next.remove())}},{key:"replace",value:function(target){if(target.statics.blotName!==this.statics.blotName){var item=_parchment2.default.create(this.statics.defaultChild);target.moveChildren(item),this.appendChild(item)}_get(List.prototype.__proto__||Object.getPrototypeOf(List.prototype),"replace",this).call(this,target)}}]),List}(_container2.default);List.blotName="list",List.scope=_parchment2.default.Scope.BLOCK_BLOT,List.tagName=["OL","UL"],List.defaultChild="list-item",List.allowedChildren=[ListItem],exports.ListItem=ListItem,exports.default=List},function(module,exports,__nested_webpack_require_389000__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_bold=__nested_webpack_require_389000__(56),Italic=function(_Bold){function Italic(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Italic),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Italic.__proto__||Object.getPrototypeOf(Italic)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Italic,_Bold),Italic}(((obj=_bold)&&obj.__esModule?obj:{default:obj}).default);Italic.blotName="italic",Italic.tagName=["EM","I"],exports.default=Italic},function(module,exports,__nested_webpack_require_390599__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_inline=__nested_webpack_require_390599__(6),Script=function(_Inline){function Script(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Script),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Script.__proto__||Object.getPrototypeOf(Script)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Script,_Inline),_createClass(Script,null,[{key:"create",value:function(value){return"super"===value?document.createElement("sup"):"sub"===value?document.createElement("sub"):_get(Script.__proto__||Object.getPrototypeOf(Script),"create",this).call(this,value)}},{key:"formats",value:function(domNode){return"SUB"===domNode.tagName?"sub":"SUP"===domNode.tagName?"super":void 0}}]),Script}(((obj=_inline)&&obj.__esModule?obj:{default:obj}).default);Script.blotName="script",Script.tagName=["SUB","SUP"],exports.default=Script},function(module,exports,__nested_webpack_require_393860__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_inline=__nested_webpack_require_393860__(6),Strike=function(_Inline){function Strike(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Strike),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Strike.__proto__||Object.getPrototypeOf(Strike)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Strike,_Inline),Strike}(((obj=_inline)&&obj.__esModule?obj:{default:obj}).default);Strike.blotName="strike",Strike.tagName="S",exports.default=Strike},function(module,exports,__nested_webpack_require_395462__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_inline=__nested_webpack_require_395462__(6),Underline=function(_Inline){function Underline(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Underline),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Underline.__proto__||Object.getPrototypeOf(Underline)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Underline,_Inline),Underline}(((obj=_inline)&&obj.__esModule?obj:{default:obj}).default);Underline.blotName="underline",Underline.tagName="U",exports.default=Underline},function(module,exports,__nested_webpack_require_397097__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_parchment=__nested_webpack_require_397097__(0),_parchment2=(obj=_parchment)&&obj.__esModule?obj:{default:obj},_link=__nested_webpack_require_397097__(27),ATTRIBUTES=["alt","height","width"],Image=function(_Parchment$Embed){function Image(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Image),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Image.__proto__||Object.getPrototypeOf(Image)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Image,_Parchment$Embed),_createClass(Image,[{key:"format",value:function(name,value){ATTRIBUTES.indexOf(name)>-1?value?this.domNode.setAttribute(name,value):this.domNode.removeAttribute(name):_get(Image.prototype.__proto__||Object.getPrototypeOf(Image.prototype),"format",this).call(this,name,value)}}],[{key:"create",value:function(value){var node=_get(Image.__proto__||Object.getPrototypeOf(Image),"create",this).call(this,value);return"string"==typeof value&&node.setAttribute("src",this.sanitize(value)),node}},{key:"formats",value:function(domNode){return ATTRIBUTES.reduce((function(formats,attribute){return domNode.hasAttribute(attribute)&&(formats[attribute]=domNode.getAttribute(attribute)),formats}),{})}},{key:"match",value:function(url){return/\.(jpe?g|gif|png)$/.test(url)||/^data:image\/.+;base64/.test(url)}
2},{key:"sanitize",value:function(url){return(0,_link.sanitize)(url,["http","https","data"])?url:"//:0"}},{key:"value",value:function(domNode){return domNode.getAttribute("src")}}]),Image}(_parchment2.default.Embed);Image.blotName="image",Image.tagName="IMG",exports.default=Image},function(module,exports,__nested_webpack_require_401311__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var obj,_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_block=__nested_webpack_require_401311__(4),_link=__nested_webpack_require_401311__(27),_link2=(obj=_link)&&obj.__esModule?obj:{default:obj},ATTRIBUTES=["height","width"],Video=function(_BlockEmbed){function Video(){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Video),function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}(this,(Video.__proto__||Object.getPrototypeOf(Video)).apply(this,arguments))}return function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Video,_BlockEmbed),_createClass(Video,[{key:"format",value:function(name,value){ATTRIBUTES.indexOf(name)>-1?value?this.domNode.setAttribute(name,value):this.domNode.removeAttribute(name):_get(Video.prototype.__proto__||Object.getPrototypeOf(Video.prototype),"format",this).call(this,name,value)}}],[{key:"create",value:function(value){var node=_get(Video.__proto__||Object.getPrototypeOf(Video),"create",this).call(this,value);return node.setAttribute("frameborder","0"),node.setAttribute("allowfullscreen",!0),node.setAttribute("src",this.sanitize(value)),node}},{key:"formats",value:function(domNode){return ATTRIBUTES.reduce((function(formats,attribute){return domNode.hasAttribute(attribute)&&(formats[attribute]=domNode.getAttribute(attribute)),formats}),{})}},{key:"sanitize",value:function(url){return _link2.default.sanitize(url)}},{key:"value",value:function(domNode){return domNode.getAttribute("src")}}]),Video}(_block.BlockEmbed);Video.blotName="video",Video.className="ql-video",Video.tagName="IFRAME",exports.default=Video},function(module,exports,__nested_webpack_require_405371__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.FormulaBlot=void 0;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_embed2=_interopRequireDefault(__nested_webpack_require_405371__(35)),_quill2=_interopRequireDefault(__nested_webpack_require_405371__(5)),_module2=_interopRequireDefault(__nested_webpack_require_405371__(9));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var FormulaBlot=function(_Embed){function FormulaBlot(){return _classCallCheck(this,FormulaBlot),_possibleConstructorReturn(this,(FormulaBlot.__proto__||Object.getPrototypeOf(FormulaBlot)).apply(this,arguments))}return _inherits(FormulaBlot,_Embed),_createClass(FormulaBlot,null,[{key:"create",value:function(value){var node=_get(FormulaBlot.__proto__||Object.getPrototypeOf(FormulaBlot),"create",this).call(this,value);return"string"==typeof value&&(window.katex.render(value,node,{throwOnError:!1,errorColor:"#f00"}),node.setAttribute("data-value",value)),node}},{key:"value",value:function(domNode){return domNode.getAttribute("data-value")}}]),FormulaBlot}(_embed2.default);FormulaBlot.blotName="formula",FormulaBlot.className="ql-formula",FormulaBlot.tagName="SPAN";var Formula=function(_Module){function Formula(){_classCallCheck(this,Formula);var _this2=_possibleConstructorReturn(this,(Formula.__proto__||Object.getPrototypeOf(Formula)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return _this2}return _inherits(Formula,_Module),_createClass(Formula,null,[{key:"register",value:function(){_quill2.default.register(FormulaBlot,!0)}}]),Formula}(_module2.default);exports.FormulaBlot=FormulaBlot,exports.default=Formula},function(module,exports,__nested_webpack_require_409500__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.CodeToken=exports.CodeBlock=void 0;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_parchment2=_interopRequireDefault(__nested_webpack_require_409500__(0)),_quill2=_interopRequireDefault(__nested_webpack_require_409500__(5)),_module2=_interopRequireDefault(__nested_webpack_require_409500__(9));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var SyntaxCodeBlock=function(_CodeBlock){function SyntaxCodeBlock(){return _classCallCheck(this,SyntaxCodeBlock),_possibleConstructorReturn(this,(SyntaxCodeBlock.__proto__||Object.getPrototypeOf(SyntaxCodeBlock)).apply(this,arguments))}
2return _inherits(SyntaxCodeBlock,_CodeBlock),_createClass(SyntaxCodeBlock,[{key:"replaceWith",value:function(block){this.domNode.textContent=this.domNode.textContent,this.attach(),_get(SyntaxCodeBlock.prototype.__proto__||Object.getPrototypeOf(SyntaxCodeBlock.prototype),"replaceWith",this).call(this,block)}},{key:"highlight",value:function(_highlight){var text=this.domNode.textContent;this.cachedText!==text&&((text.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=_highlight(text),this.domNode.normalize(),this.attach()),this.cachedText=text)}}]),SyntaxCodeBlock}(_interopRequireDefault(__nested_webpack_require_409500__(13)).default);SyntaxCodeBlock.className="ql-syntax";var CodeToken=new _parchment2.default.Attributor.Class("token","hljs",{scope:_parchment2.default.Scope.INLINE}),Syntax=function(_Module){function Syntax(quill,options){_classCallCheck(this,Syntax);var _this2=_possibleConstructorReturn(this,(Syntax.__proto__||Object.getPrototypeOf(Syntax)).call(this,quill,options));if("function"!=typeof _this2.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var timer=null;return _this2.quill.on(_quill2.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(timer),timer=setTimeout((function(){_this2.highlight(),timer=null}),_this2.options.interval)})),_this2.highlight(),_this2}return _inherits(Syntax,_Module),_createClass(Syntax,null,[{key:"register",value:function(){_quill2.default.register(CodeToken,!0),_quill2.default.register(SyntaxCodeBlock,!0)}}]),_createClass(Syntax,[{key:"highlight",value:function(){var _this3=this;if(!this.quill.selection.composing){this.quill.update(_quill2.default.sources.USER);var range=this.quill.getSelection();this.quill.scroll.descendants(SyntaxCodeBlock).forEach((function(code){code.highlight(_this3.options.highlight)})),this.quill.update(_quill2.default.sources.SILENT),null!=range&&this.quill.setSelection(range,_quill2.default.sources.SILENT)}}}]),Syntax}(_module2.default);Syntax.DEFAULTS={highlight:null==window.hljs?null:function(text){return window.hljs.highlightAuto(text).value},interval:1e3},exports.CodeBlock=SyntaxCodeBlock,exports.CodeToken=CodeToken,exports.default=Syntax},function(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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>
2 <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(module,exports){module.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(module,exports){module.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(module,exports){module.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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.
2177-.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.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(module,exports){module.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(module,exports,__nested_webpack_require_432266__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.BubbleTooltip=void 0;var _get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0!==getter?getter.call(receiver):void 0},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_extend2=_interopRequireDefault(__nested_webpack_require_432266__(3)),_emitter2=_interopRequireDefault(__nested_webpack_require_432266__(8)),_base=__nested_webpack_require_432266__(43),_base2=_interopRequireDefault(_base),_selection=__nested_webpack_require_432266__(15),_icons2=_interopRequireDefault(__nested_webpack_require_432266__(41));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var TOOLBAR_CONFIG=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],BubbleTheme=function(_BaseTheme){function BubbleTheme(quill,options){_classCallCheck(this,BubbleTheme),null!=options.modules.toolbar&&null==options.modules.toolbar.container&&(options.modules.toolbar.container=TOOLBAR_CONFIG);var _this=_possibleConstructorReturn(this,(BubbleTheme.__proto__||Object.getPrototypeOf(BubbleTheme)).call(this,quill,options));return _this.quill.container.classList.add("ql-bubble"),_this}return _inherits(BubbleTheme,_BaseTheme),_createClass(BubbleTheme,[{key:"extendToolbar",value:function(toolbar){this.tooltip=new BubbleTooltip(this.quill,this.options.bounds),this.tooltip.root.appendChild(toolbar.container),this.buildButtons([].slice.call(toolbar.container.querySelectorAll("button")),_icons2.default),this.buildPickers([].slice.call(toolbar.container.querySelectorAll("select")),_icons2.default)}}]),BubbleTheme}(_base2.default);BubbleTheme.DEFAULTS=(0,_extend2.default)(!0,{},_base2.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(value){value?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var BubbleTooltip=function(_BaseTooltip){function BubbleTooltip(quill,bounds){_classCallCheck(this,BubbleTooltip);var _this2=_possibleConstructorReturn(this,(BubbleTooltip.__proto__||Object.getPrototypeOf(BubbleTooltip)).call(this,quill,bounds));return _this2.quill.on(_emitter2.default.events.EDITOR_CHANGE,(function(type,range,oldRange,source){if(type===_emitter2.default.events.SELECTION_CHANGE)if(null!=range&&range.length>0&&source===_emitter2.default.sources.USER){_this2.show(),_this2.root.style.left="0px",_this2.root.style.width="",_this2.root.style.width=_this2.root.offsetWidth+"px";var lines=_this2.quill.getLines(range.index,range.length);if(1===lines.length)_this2.position(_this2.quill.getBounds(range));else{var lastLine=lines[lines.length-1],index=_this2.quill.getIndex(lastLine),length=Math.min(lastLine.length()-1,range.index+range.length-index),_bounds=_this2.quill.getBounds(new _selection.Range(index,length));_this2.position(_bounds)}}else document.activeElement!==_this2.textbox&&_this2.quill.hasFocus()&&_this2.hide()})),_this2}return _inherits(BubbleTooltip,_BaseTooltip),_createClass(BubbleTooltip,[{key:"listen",value:function(){var _this3=this;_get(BubbleTooltip.prototype.__proto__||Object.getPrototypeOf(BubbleTooltip.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){_this3.root.classList.remove("ql-editing")})),this.quill.on(_emitter2.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!_this3.root.classList.contains("ql-hidden")){var range=_this3.quill.getSelection();null!=range&&_this3.position(_this3.quill.getBounds(range))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(reference){var shift=_get(BubbleTooltip.prototype.__proto__||Object.getPrototypeOf(BubbleTooltip.prototype),"position",this).call(this,reference),arrow=this.root.querySelector(".ql-tooltip-arrow");if(arrow.style.marginLeft="",0===shift)return shift;arrow.style.marginLeft=-1*shift-arrow.offsetWidth/2+"px"}}]),BubbleTooltip}(_base.BaseTooltip);BubbleTooltip.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(""),exports.BubbleTooltip=BubbleTooltip,exports.default=BubbleTheme},function(module,exports,__nested_webpack_require_439588__){module.exports=__nested_webpack_require_439588__(63)}]).default},module.exports=factory()},99633:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var Quill=__webpack_require__(91574),QuillMixin={createEditor:function($el,config){var editor=new Quill($el,config);return void 0!==config.tabIndex&&this.setEditorTabIndex(editor,config.tabIndex),this.hookEditor(editor),editor},hookEditor:function(editor){var unprivilegedEditor=this.makeUnprivilegedEditor(editor);this.handleTextChange=function(delta,oldDelta,source){this.onEditorChangeText&&(this.onEditorChangeText(editor.root.innerHTML,delta,source,unprivilegedEditor),this.onEditorChangeSelection(editor.getSelection(),source,unprivilegedEditor))}.bind(this),this.handleSelectionChange=function(range,oldRange,source){this.onEditorChangeSelection&&this.onEditorChangeSelection(range,source,unprivilegedEditor)}.bind(this),editor.on("editor-change",function(eventType,rangeOrDelta,oldRangeOrOldDelta,source){eventType===Quill.events.SELECTION_CHANGE&&this.handleSelectionChange(rangeOrDelta,oldRangeOrOldDelta,source),eventType===Quill.events.TEXT_CHANGE&&this.handleTextChange(rangeOrDelta,oldRangeOrOldDelta,source)}.bind(this))},unhookEditor:function(editor){editor.off("selection-change"),editor.off("text-change")},setEditorReadOnly:function(editor,value){value?editor.disable():editor.enable()},setEditorContents:function(editor,value){var sel=editor.getSelection();"string"==typeof value?editor.setContents(editor.clipboard.convert(value)):editor.setContents(value),sel&&editor.hasFocus()&&this.setEditorSelection(editor,sel)},setEditorSelection:function(editor,range){if(range){var length=editor.getLength();range.index=Math.max(0,Math.min(range.index,length-1)),range.length=Math.max(0,Math.min(range.length,length-1-range.index))}editor.setSelection(range)},setEditorTabIndex:function(editor,tabIndex){editor.editor&&editor.editor.scroll&&editor.editor.s
2croll.domNode&&(editor.editor.scroll.domNode.tabIndex=tabIndex)},makeUnprivilegedEditor:function(editor){var e=editor;return{getLength:function(){return e.getLength.apply(e,arguments)},getText:function(){return e.getText.apply(e,arguments)},getHTML:function(){return e.root.innerHTML},getContents:function(){return e.getContents.apply(e,arguments)},getSelection:function(){return e.getSelection.apply(e,arguments)},getBounds:function(){return e.getBounds.apply(e,arguments)}}}};module.exports=QuillMixin}}]);
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.