12345678910111213141516171819202122 |
- webpackJsonp([0],{57:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(){}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(22),a=r(i),l=n(2),u=r(l),s=n(5),c=r(s),f=n(4),d=r(f),h=n(3),p=r(h),v=n(23),y=r(v),m=n(1),g=r(m),b=n(1523),_=r(b),w=n(27),O=n(29),k=r(O),x=n(178),N=r(x);n(1225),n(457);var E=function(){return(0,y.default)(w.Icon,{type:"picture",style:{fontSize:17}})},S=(0,y.default)("select",{className:"ql-header"},void 0,(0,y.default)("option",{value:"1"},void 0,"h1"),(0,y.default)("option",{value:"2"},void 0,"h2"),(0,y.default)("option",{value:"3"},void 0,"h3"),(0,y.default)("option",{value:"4"},void 0,"h4"),(0,y.default)("option",{value:"5"},void 0,"h5"),(0,y.default)("option",{value:"6"},void 0,"h6"),(0,y.default)("option",{selected:!0})),j=(0,y.default)("span",{className:"ql-formats"},void 0,(0,y.default)("select",{className:"ql-font"},void 0,(0,y.default)("option",{className:"selected"},void 0,"默认字体"),(0,y.default)("option",{value:"center"}),(0,y.default)("option",{value:"serif"}),(0,y.default)("option",{value:"monospace"}))),A=(0,y.default)("span",{className:"ql-formats"},void 0,(0,y.default)("button",{className:"ql-bold"}),(0,y.default)("button",{className:"ql-italic"}),(0,y.default)("button",{className:"ql-underline"}),(0,y.default)("button",{className:"ql-strike"})),C=(0,y.default)("span",{className:"ql-formats"},void 0,(0,y.default)("button",{className:"ql-blockquote"}),(0,y.default)("button",{className:"ql-code-block"})),T=(0,y.default)("span",{className:"ql-formats"},void 0,(0,y.default)("button",{className:"ql-list",value:"ordered"}),(0,y.default)("button",{className:"ql-list",value:"bullet"}),(0,y.default)("button",{className:"ql-indent",value:"-1"}),(0,y.default)("button",{className:"ql-indent",value:"+1"})),q=(0,y.default)("span",{className:"ql-formats"},void 0,(0,y.default)("select",{className:"ql-align"},void 0,(0,y.default)("option",{className:"selected"}),(0,y.default)("option",{value:"center"}),(0,y.default)("option",{value:"right"}),(0,y.default)("option",{value:"justify"}))),P=(0,y.default)("button",{className:"ql-insertStar"},void 0,(0,y.default)(E,{})),L=(0,y.default)("span",{className:"ql-formats"},void 0,(0,y.default)("select",{className:"ql-color"},void 0,(0,y.default)("option",{value:"red"}),(0,y.default)("option",{value:"green"}),(0,y.default)("option",{value:"blue"}),(0,y.default)("option",{value:"orange"}),(0,y.default)("option",{value:"violet"}),(0,y.default)("option",{value:"#d0d1d2"}),(0,y.default)("option",{selected:!0})),(0,y.default)("select",{className:"ql-background"},void 0,(0,y.default)("option",{selected:!0}),(0,y.default)("option",{value:"red"}),(0,y.default)("option",{value:"green"}),(0,y.default)("option",{value:"blue"}),(0,y.default)("option",{value:"orange"}),(0,y.default)("option",{value:"violet"}),(0,y.default)("option",{value:"#d0d1d2"}))),I=function(){return(0,y.default)("div",{id:"toolbar"},void 0,S,j,A,C,T,q,(0,y.default)("span",{className:"ql-formats"},void 0,P),L)},M=(0,y.default)(I,{}),R=function(t){function e(t){(0,u.default)(this,e);var n=(0,d.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.uploadImg=function(){var t=n.state.uploadImage,e=n.state.editorHtml+("<p><img src="+t+' alt="" style="width:100%;"/></p>');n.props.changeHtml(e),n.setState({imageVisible:!1,loading:!1,uploadImage:null})},n.uploadImage=function(){(0,N.default)("image").then(function(t){N.default.toBase64(window.URL.createObjectURL(t)).then(function(t){n.setState({loading:!0}),k.default.callJson("upload_img/",{img_data:t}).then(function(t){n.setState({uploadImage:t.img_url,loading:!1})}).catch(function(t){w.message.error("图片读取出错,请上传正确格式图片")})})})},n.displayName="Editor",n.state={mountedEditor:!1,imageVisible:!1,loading:!1},n.quillRef=null,n.reactQuillRef=null,n.handleChange=n.handleChange.bind(n),n.attachQuillRefs=n.attachQuillRefs.bind(n),n}return(0,p.default)(e,t),(0,c.default)(e,[{key:"componentDidMount",value:function(){var t=this;t.attachQuillRefs();var e=document.querySelector(".ql-insertStar");e.addEventListener("click",function(e){t.setState({imageVisible:!0})})}},{key:"componentDidUpdate",value:function(){this.attachQuillRefs()}},{key:"attachQuillRefs",value:function(){if("function"==typeof this.reactQuillRef.getEditor&&null==this.quillRef){var t=this.reactQuillRef.getEditor();null!=t&&(this.quillRef=t)}}},{key:"handleChange",value:function(t){this.props.changeHtml(t)}},{key:"componentWillUnmount",value:function(){var t=document.querySelector(".ql-insertStar");t.removeEventListener("click",function(){})}},{key:"render",value:function(){var t=this,n=this.state,r=n.imageVisible,o=n.uploadImage,i=n.loading;return(0,y.default)("div",{},void 0,M,g.default.createElement(_.default,{ref:function(e){t.reactQuillRef=e},value:this.props.editorHtml,theme:"snow",onChange:this.handleChange,modules:e.modules,style:{height:500,marginBottom:"30"},formats:e.formats}),(0,y.default)(w.Modal,{title:"上传图片",visible:r,onOk:this.uploadImg,onCancel:function(){return t.setState({imageVisible:!1,loading:!1,uploadImage:null})},okText:"保存",cancelText:"取消"},void 0,(0,y.default)(w.Form,{},void 0,(0,y.default)("div",{className:"ad-modal-addon"},void 0,(0,y.default)("div",{className:"ad-uploadBtn"},void 0,(0,y.default)(w.Button,{onClick:this.uploadImage,loading:i},void 0,i?"正在上传":"上传图片")),o?(0,y.default)("div",{className:"preview"},void 0,(0,y.default)("img",{src:o,style:{maxWidth:300},className:"upload-img"})):null))))}}]),e}(g.default.Component);e.default=R,R.modules={toolbar:{container:"#toolbar",handlers:{insertStar:o}}},R.formats=["header","font","background","color","code","size","bold","italic","underline","strike","blockquote","list","bullet","indent","script","align","direction","link","image","code-block","formula","video"]},178:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(){var t=document.createElement("input");return t.type="file",t.style.display="none",t.addEventListener("change",function(t){s(t)}),t}var i=n(35),a=r(i),l=n(240),u=r(l),s=function(t){},c=o(),f=function(t,e){return new u.default(function(n,r){/image/.test(t)?c.accept="image/jpeg,image/jpg,image/png,image/gif":/video/.test(t)?c.accept="video/mp4,video/avi,video/rmvb,video/flv":/txt/.test(t)&&(c.accept=".srt"),e&&(c.multiple="multiple"),s=function(t){n(e?t.target.files:t.target.files.item(0)),c=o()},c.click()})};f.toBase64=function(t,e){return new u.default(function(n,r){var o=new Image;o.src=t,o.crossOrigin="*",o.onload=function(){var t=document.createElement("canvas");"function"==typeof e?(e=e(o.width,o.height),t.width=e.w,t.height=e.h):"object"==("undefined"==typeof e?"undefined":(0,a.default)(e))?(t.width=e.w,t.height=e.h):(t.width=o.width,t.height=o.height);var r=t.getContext("2d");r.drawImage(o,0,0,t.width,t.height),n(t.toDataURL())},o.onerror=function(){r()}})},t.exports=f},303:function(t,e,n){function r(t,e,n,a,l){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:o(t,e,n,a,r,l))}var o=n(1290),i=n(121);t.exports=r},304:function(t,e,n){function r(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?l(t)?i(t[0],t[1]):o(t):u(t)}var o=n(1295),i=n(1296),a=n(1357),l=n(82),u=n(1361);t.exports=r},352:function(t,e,n){t.exports=n.p+"img/logo-770ff6.png"},456:1223,457:1223,475:function(t,e,n){function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(210),i=n(1347),a=n(1348),l=n(1349),u=n(1350),s=n(1351);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=l,r.prototype.has=u,r.prototype.set=s,t.exports=r},477:function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}t.exports=n},479:function(t,e,n){function r(t,e,n,r,s,c){var f=n&l,d=t.length,h=e.length;if(d!=h&&!(f&&h>d))return!1;var p=c.get(t);if(p&&c.get(e))return p==e;var v=-1,y=!0,m=n&u?new o:void 0;for(c.set(t,e),c.set(e,t);++v<d;){var g=t[v],b=e[v];if(r)var _=f?r(b,g,v,e,t,c):r(g,b,v,t,e,c);if(void 0!==_){if(_)continue;y=!1;break}if(m){if(!i(e,function(t,e){if(!a(m,e)&&(g===t||s(g,t,n,r,c)))return m.push(e)})){y=!1;break}}else if(g!==b&&!s(g,b,n,r,c)){y=!1;break}}return c.delete(t),c.delete(e),y}var o=n(1273),i=n(477),a=n(1305),l=1,u=2;t.exports=r},483:function(t,e,n){function r(t){return t===t&&!o(t)}var o=n(138);t.exports=r},485:function(t,e){function n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}t.exports=n},489:function(t,e,n){var r=n(1310),o=n(1355),i=r(o);t.exports=i},492:function(t,e,n){function r(t,e){return o(t,e)}var o=n(303);t.exports=r},613:function(t,e,n){(function(e){/*!
- * Quill Editor v1.3.4
- * https://quilljs.com/
- * Copyright (c) 2014, Jason Chen
- * Copyright (c) 2013, salesforce.com
- */
- !function(e,n){t.exports=n()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),l=n(46),u=n(47),s=n(48),c=n(49),f=n(12),d=n(32),h=n(33),p=n(31),v=n(1),y={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:s.default,Scroll:a.default,Block:u.default,Inline:l.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:h.default,Store:p.default}};e.default=y},function(t,e,n){"use strict";function r(t,e){var n=i(t);if(null==n)throw new u("Unable to create "+t+" blot");var r=n,o=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(o,e)}function o(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?o(t.parentNode,n):null}function i(t,e){void 0===e&&(e=h.ANY);var n;if("string"==typeof t)n=d[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=d.text;else if("number"==typeof t)t&h.LEVEL&h.BLOCK?n=d.block:t&h.LEVEL&h.INLINE&&(n=d.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||f[t.tagName]}return null==n?null:e&h.LEVEL&n.scope&&e&h.TYPE&n.scope?n:null}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map(function(t){return a(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new u("Invalid definition");if("abstract"===n.blotName)throw new u("Cannot register abstract class");if(d[n.blotName||n.attrName]=n,"string"==typeof n.keyName)s[n.keyName]=n;else if(null!=n.className&&(c[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(t){return t.toUpperCase()}):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach(function(t){null!=f[t]&&null!=n.className||(f[t]=n)})}return n}var l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return l(e,t),e}(Error);e.ParchmentError=u;var s={},c={},f={},d={};e.DATA_KEY="__blot";var h;!function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(h=e.Scope||(e.Scope={})),e.create=r,e.find=o,e.query=i,e.register=a},function(t,e,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),u=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};u.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},u.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},u.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},u.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,n=this.ops[e-1],"object"!=typeof n))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},u.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},u.prototype.filter=function(t){return this.ops.filter(t)},u.prototype.forEach=function(t){this.ops.forEach(t)},u.prototype.map=function(t){return this.ops.map(t)},u.prototype.partition=function(t){var e=[],n=[];return this.forEach(function(r){var o=t(r)?e:n;o.push(r)}),[e,n]},u.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},u.prototype.changeLength=function(){return this.reduce(function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t},0)},u.prototype.length=function(){return this.reduce(function(t,e){return t+a.length(e)},0)},u.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=a.iterator(this.ops),o=0;o<e&&r.hasNext();){var i;o<t?i=r.next(t-o):(i=r.next(e-o),n.push(i)),o+=a.length(i)}return new u(n)},u.prototype.compose=function(t){for(var e=a.iterator(this.ops),n=a.iterator(t.ops),r=new u;e.hasNext()||n.hasNext();)if("insert"===n.peekType())r.push(n.next());else if("delete"===e.peekType())r.push(e.next());else{var o=Math.min(e.peekLength(),n.peekLength()),i=e.next(o),l=n.next(o);if("number"==typeof l.retain){var s={};"number"==typeof i.retain?s.retain=o:s.insert=i.insert;var c=a.attributes.compose(i.attributes,l.attributes,"number"==typeof i.retain);c&&(s.attributes=c),r.push(s)}else"number"==typeof l.delete&&"number"==typeof i.retain&&r.push(l)}return r.chop()},u.prototype.concat=function(t){var e=new u(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},u.prototype.diff=function(t,e){if(this.ops===t.ops)return new u;var n=[this,t].map(function(e){return e.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")}).join("")}),i=new u,s=r(n[0],n[1],e),c=a.iterator(this.ops),f=a.iterator(t.ops);return s.forEach(function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var l=c.next(n),u=f.next(n);o(l.insert,u.insert)?i.retain(n,a.attributes.diff(l.attributes,u.attributes)):i.push(u).delete(n)}e-=n}}),i.chop()},u.prototype.eachLine=function(t,e){e=e||"\n";for(var n=a.iterator(this.ops),r=new u,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),s="string"==typeof i.insert?i.insert.indexOf(e,l)-l:-1;if(s<0)r.push(n.next());else if(s>0)r.push(n.next(s));else{if(t(r,n.next(1).attributes||{},o)===!1)return;o+=1,r=new u}}r.length()>0&&t(r,{},o)},u.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=a.iterator(this.ops),r=a.iterator(t.ops),o=new u;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),l=n.next(i),s=r.next(i);if(l.delete)continue;s.delete?o.push(s):o.retain(i,a.attributes.transform(l.attributes,s.attributes,e))}else o.retain(a.length(n.next()));return o.chop()},u.prototype.transformPosition=function(t,e){e=!!e;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<t||!e)&&(t+=o),r+=o):t-=Math.min(o,t-r)}return t},t.exports=u},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},i=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!o)return!1;var i;for(i in t);return"undefined"==typeof i||n.call(t,i)};t.exports=function t(){var e,n,r,a,l,u,s=arguments[0],c=1,f=arguments.length,d=!1;for("boolean"==typeof s&&(d=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<f;++c)if(e=arguments[c],null!=e)for(n in e)r=s[n],a=e[n],s!==a&&(d&&a&&(i(a)||(l=o(a)))?(l?(l=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},s[n]=t(d,u,a)):"undefined"!=typeof a&&(s[n]=a));return s}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,f.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:l(t.parent,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},c=n(3),f=r(c),d=n(2),h=r(d),p=n(0),v=r(p),y=n(16),m=r(y),g=n(6),b=r(g),_=n(7),w=r(_),O=1,k=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"attach",value:function(){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new v.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new h.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=v.default.query(t,v.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var o=v.default.create(x.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(v.default.Embed);k.scope=v.default.Scope.BLOCK_BLOT;var x=function(t){function e(t){o(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return a(e,t),u(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(v.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),l(e))},new h.default).insert("\n",l(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,o){n<=0||(v.default.query(r,v.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,o):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,o),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var o=n.split("\n"),i=o.shift();i.length>0&&(t<this.length()-1||null==this.children.tail?s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var a=this;o.reduce(function(t,e){return a=a.split(t,!0),a.insertAt(0,e),e.length},t+i.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof m.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+O),this.cache.length}},{key:"moveChildren",value:function(t,n){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-O)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(v.default.Block);x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[b.default,v.default.Embed,w.default],e.bubbleFormats=l,e.BlockEmbed=k,e.default=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(e=(0,E.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==q.DEFAULTS.theme){if(e.theme=q.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=C.default;var n=(0,E.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach(function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach(function(e){t.modules[e]===!0&&(t.modules[e]={})})});var r=Object.keys(n.modules).concat(Object.keys(e.modules)),o=r.reduce(function(t,e){var n=q.import("modules/"+e);return null==n?T.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t},{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,E.default)(!0,{},q.DEFAULTS,{modules:o},n,e),["bounds","container","scrollingContainer"].forEach(function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),e.modules=Object.keys(e.modules).reduce(function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t},{}),e}function l(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===g.default.sources.USER)return new p.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=t();if(null!=o&&(n===!0&&(n=o.index),null==r?o=s(o,a,e):0!==r&&(o=s(o,n,r,e)),this.setSelection(o,g.default.sources.SILENT)),a.length()>0){var l,u=[g.default.events.TEXT_CHANGE,a,i,e];if((l=this.emitter).emit.apply(l,[g.default.events.EDITOR_CHANGE].concat(u)),e!==g.default.sources.SILENT){var c;(c=this.emitter).emit.apply(c,u)}}return a}function u(t,e,n,r,o){var i={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=r,r=n,n=e,e=0),"object"===("undefined"==typeof n?"undefined":c(n))?(i=n,o=r):"string"==typeof n&&(null!=r?i[n]=r:o=n),o=o||g.default.sources.API,[t,e,i,o]}function s(t,e,n,r){if(null==t)return null;var o=void 0,i=void 0;if(e instanceof p.default){var a=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,r!==g.default.sources.USER)}),l=f(a,2);o=l[0],i=l[1]}else{var u=[t.index,t.index+t.length].map(function(t){return t<e||t===e&&r===g.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)}),s=f(u,2);o=s[0],i=s[1]}return new k.Range(o,i-o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var h=n(2),p=r(h),v=n(14),y=r(v),m=n(8),g=r(m),b=n(9),_=r(b),w=n(0),O=r(w),k=n(15),x=r(k),N=n(3),E=r(N),S=n(10),j=r(S),A=n(34),C=r(A),T=(0,j.default)("quill"),q=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,t),this.options=a(e,r),this.container=this.options.container,null==this.container)return T.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=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 g.default,this.scroll=O.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new y.default(this.scroll),this.selection=new x.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(g.default.events.EDITOR_CHANGE,function(t){t===g.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;l.call(n,function(){return n.editor.update(null,e,o)},t)});var u=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(u),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return d(t,null,[{key:"debug",value:function(t){t===!0&&(t="log"),j.default.level(t)}},{key:"find",value:function(t){return t.__quill||O.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&T.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var o=t.attrName||t.blotName;"string"==typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach(function(r){n.register(r,t[r],e)})}else null==this.imports[t]||r||T.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?O.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),d(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=u(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],l.call(this,function(){return r.editor.deleteText(t,e)},n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.default.sources.API;return l.call(this,function(){var r=n.getSelection(!0),i=new p.default;if(null==r)return i;if(O.default.query(t,O.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,o({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,o({},t,e))}return n.setSelection(r,g.default.sources.SILENT),i},r)}},{key:"formatLine",value:function(t,e,n,r,o){var i=this,a=void 0,s=u(t,e,n,r,o),c=f(s,4);return t=c[0],e=c[1],a=c[2],o=c[3],l.call(this,function(){return i.editor.formatLine(t,e,a)},o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var i=this,a=void 0,s=u(t,e,n,r,o),c=f(s,4);return t=c[0],e=c[1],a=c[2],o=c[3],l.call(this,function(){return i.editor.formatText(t,e,a)},o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=u(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=u(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return l.call(this,function(){return o.editor.insertEmbed(e,n,r)},i,e)}},{key:"insertText",value:function(t,e,n,r,o){var i=this,a=void 0,s=u(t,0,n,r,o),c=f(s,4);return t=c[0],a=c[2],o=c[3],l.call(this,function(){return i.editor.insertText(t,e,a)},o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=u(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],l.call(this,function(){return r.editor.removeFormat(t,e)},n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return l.call(this,function(){t=new p.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1));var a=r.compose(o);return a},n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=u(e,n,r),i=f(o,4);e=i[0],n=i[1],r=i[3],this.selection.setRange(new k.Range(e,n),r),r!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API,n=(new p.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return l.call(this,function(){return t=new p.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();q.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},q.events=g.default.events,q.sources=g.default.sources,q.version="1.3.4",q.imports={delta:p.default,parchment:O.default,"core/module":_.default,"core/theme":C.default},e.expandConfig=a,e.overload=u,e.default=q},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(7),c=r(s),f=n(0),d=r(f),h=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"formatAt",value:function(t,n,r,o){if(e.compare(this.statics.blotName,r)<0&&d.default.query(r,d.default.Scope.BLOT)){var i=this.isolate(t,n);o&&i.wrap(r,o)}else u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o)}},{key:"optimize",value:function(t){if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t<n?-1:1}}]),e}(d.default.Inline);h.allowedChildren=[h,d.default.Embed,c.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(0),u=r(l),s=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(u.default.Text);e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(54),c=r(s),f=n(10),d=r(f),h=(0,d.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(t){if(t.__quill&&t.__quill.emitter){var n;(n=t.__quill.emitter).handleDOM.apply(n,e)}})})});var v=function(t){function e(){o(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",h.error),
- t}return a(e,t),l(e,[{key:"emit",value:function(){h.log.apply(h,arguments),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach(function(e){var r=e.node,o=e.handler;(t.target===r||r.contains(t.target))&&o.apply(void 0,[t].concat(n))})}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(c.default);v.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"},v.sources={API:"api",SILENT:"silent",USER:"user"},e.default=v},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";function r(t){if(i.indexOf(t)<=i.indexOf(a)){for(var e,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e=console)[t].apply(e,r)}}function o(t){return i.reduce(function(e,n){return e[n]=r.bind(console,n,t),e},{})}Object.defineProperty(e,"__esModule",{value:!0});var i=["error","warn","log","info"],a="warn";r.level=o.level=function(t){a=t},e.default=o},function(t,e,n){function r(t){return null===t||void 0===t}function o(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,n){var i,c;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(u(t))return!!u(e)&&(t=a.call(t),e=a.call(e),s(t,e,n));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}try{var f=l(t),d=l(e)}catch(t){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),i=f.length-1;i>=0;i--)if(f[i]!=d[i])return!1;for(i=f.length-1;i>=0;i--)if(c=f[i],!s(t[c],e[c],n))return!1;return typeof t==typeof e}var a=Array.prototype.slice,l=n(52),u=n(53),s=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:i(t,e,n))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,function(t){return t.name})},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var n=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||this.whitelist.indexOf(e)>-1)},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)?e:""},t}();e.default=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var l=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},c=n(2),f=r(c),d=n(0),h=r(d),p=n(4),v=r(p),y=n(6),m=r(y),g=n(7),b=r(g),_=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(m.default);_.blotName="code",_.tagName="CODE";var w=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce(function(e,n){return e.insert(n).insert("\n",t.formats())},new f.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var r=this.descendant(b.default,this.length()-1),o=l(r,1),i=o[0];null!=i&&i.deleteAt(i.length()-1,1),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,o){if(0!==n&&null!=h.default.query(r,h.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(t);if(!(i<0||i>=t+n)){var a=this.newlineIndex(t,!0)+1,l=i-a+1,u=this.isolate(a,l),s=u.next;u.format(r,o),s instanceof e&&s.formatAt(0,t-a+n-l,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(b.default,t),o=l(r,2),i=o[0],a=o[1];i.insertAt(a,e)}}},{key:"length",value:function t(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(h.default.create("text","\n")),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(t){var e=h.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof h.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(v.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",e.Code=_,e.default=w},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return Object.keys(e).reduce(function(n,r){return null==t[r]?n:(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]],n)},{})}function l(t){return t.reduce(function(t,e){if(1===e.insert){var n=(0,E.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||e.attributes.list!==!0&&e.attributes.bullet!==!0||(e=(0,E.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)},new d.default)}Object.defineProperty(e,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n(2),d=r(f),h=n(20),p=r(h),v=n(0),y=r(v),m=n(13),g=r(m),b=n(23),_=r(b),w=n(4),O=r(w),k=n(16),x=r(k),N=n(21),E=r(N),S=n(11),j=r(S),A=n(3),C=r(A),T=/^[ -~]*$/,q=function(){function t(e){i(this,t),this.scroll=e,this.delta=this.getDelta()}return c(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),t=l(t),t.reduce(function(t,o){var i=o.retain||o.delete||o.insert.length||1,a=o.attributes||{};if(null!=o.insert){if("string"==typeof o.insert){var l=o.insert;l.endsWith("\n")&&n&&(n=!1,l=l.slice(0,-1)),t>=r&&!l.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,l);var c=e.scroll.line(t),f=s(c,2),d=f[0],h=f[1],v=(0,C.default)({},(0,w.bubbleFormats)(d));if(d instanceof O.default){var m=d.descendant(y.default.Leaf,h),g=s(m,1),b=g[0];v=(0,C.default)(v,(0,w.bubbleFormats)(b))}a=p.default.attributes.diff(v,a)||{}}else if("object"===u(o.insert)){var _=Object.keys(o.insert)[0];if(null==_)return t;e.scroll.insertAt(t,_,o.insert[_])}r+=i}return Object.keys(a).forEach(function(n){e.scroll.formatAt(t,i,n,a[n])}),t+i},0),t.reduce(function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new d.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),a=e;i.forEach(function(e){var i=e.length();if(e instanceof g.default){var l=t-e.offset(n.scroll),u=e.newlineIndex(l+a)-l+1;e.formatAt(l,u,o,r[o])}else e.format(o,r[o]);a-=i})}}),this.scroll.optimize(),this.update((new d.default).retain(t).retain(e,(0,E.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e,o,r[o])}),this.update((new d.default).retain(t).retain(e,(0,E.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(t,e){return t.concat(e.delta())},new d.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach(function(t){var e=s(t,1),o=e[0];o instanceof O.default?n.push(o):o instanceof y.default.Leaf&&r.push(o)}):(n=this.scroll.lines(t,e),r=this.scroll.descendants(y.default.Leaf,t,e));var o=[n,r].map(function(t){if(0===t.length)return{};for(var e=(0,w.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=a((0,w.bubbleFormats)(n),e)}return e});return C.default.apply(C.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter(function(t){return"string"==typeof t.insert}).map(function(t){return t.insert}).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new d.default).retain(t).insert(o({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e.length,o,r[o])}),this.update((new d.default).retain(t).insert(e,(0,E.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===O.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof x.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=s(r,2),i=o[0],a=o[1],l=0,u=new d.default;null!=i&&(l=i instanceof g.default?i.newlineIndex(a)-a+1:i.length()-a,u=i.delta().slice(a,a+l-1).insert("\n"));var c=this.getContents(t,e+l),f=c.diff((new d.default).insert(n).concat(u)),h=(new d.default).retain(t).concat(f);return this.applyDelta(h)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(T)&&y.default.find(e[0].target)){var o=y.default.find(e[0].target),i=(0,w.bubbleFormats)(o),a=o.offset(this.scroll),l=e[0].oldValue.replace(_.default.CONTENTS,""),u=(new d.default).insert(l),s=(new d.default).insert(o.value()),c=(new d.default).retain(a).concat(u.diff(s,n));t=c.reduce(function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)},new d.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,j.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();e.default=q},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var l=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(0),c=r(s),f=n(21),d=r(f),h=n(11),p=r(h),v=n(8),y=r(v),m=n(10),g=r(m),b=(0,g.default)("quill:selection"),_=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,t),this.index=e,this.length=n},w=function(){function t(e,n){var r=this;i(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,y.default.sources.USER),1)}),this.emitter.on(y.default.events.EDITOR_CHANGE,function(t,e){t===y.default.events.TEXT_CHANGE&&e.length()>0&&r.update(y.default.sources.SILENT)}),this.emitter.on(y.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(y.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}}),this.emitter.on(y.default.events.SCROLL_OPTIMIZE,function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l)}}),this.update(y.default.sources.SILENT)}return u(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",function(){t.composing=!0}),this.root.addEventListener("compositionend",function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout(function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,function(){t.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){t.mouseDown=!1,t.update(y.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!c.default.query(t,c.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=c.default.find(n.start.node,!1);if(null==r)return;if(r instanceof c.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,o=this.scroll.leaf(t),i=l(o,2),a=i[0],u=i[1];if(null==a)return null;var s=a.position(u,!0),c=l(s,2);r=c[0],u=c[1];var f=document.createRange();if(e>0){f.setStart(r,u);var d=this.scroll.leaf(t+e),h=l(d,2);if(a=h[0],u=h[1],null==a)return null;var p=a.position(u,!0),v=l(p,2);return r=v[0],u=v[1],f.setEnd(r,u),f.getBoundingClientRect()}var y="left",m=void 0;return r instanceof Text?(u<r.data.length?(f.setStart(r,u),f.setEnd(r,u+1)):(f.setStart(r,u-1),f.setEnd(r,u),y="right"),m=f.getBoundingClientRect()):(m=a.domNode.getBoundingClientRect(),u>0&&(y="right")),{bottom:m.top+m.height,height:m.height,left:m[y],right:m[y],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return b.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map(function(t){var n=l(t,2),r=n[0],o=n[1],i=c.default.find(r,!0),a=i.offset(e.scroll);return 0===o?a:i instanceof c.default.Container?a+i.length():a+i.index(r,o)}),i=Math.min(Math.max.apply(Math,o(r)),this.scroll.length()-1),a=Math.min.apply(Math,[i].concat(o(r)));return new _(a,i-a)}},{key:"normalizeNative",value:function(t){if(!a(this.root,t.startContainer)||!t.collapsed&&!a(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n}),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],o=this.scroll.length();return n.forEach(function(t,n){t=Math.min(o-1,t);var i=void 0,a=e.scroll.leaf(t),u=l(a,2),s=u[0],c=u[1],f=s.position(c,0!==n),d=l(f,2);i=d[0],c=d[1],r.push(i,c)}),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,r)),i=l(o,1),a=i[0],u=a;if(e.length>0){var s=this.scroll.line(Math.min(e.index+e.length,r)),c=l(s,1);u=c[0]}if(null!=a&&null!=u){var f=t.getBoundingClientRect();n.top<f.top?t.scrollTop-=f.top-n.top:n.bottom>f.bottom&&(t.scrollTop+=n.bottom-f.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(b.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(t,e),l.setEnd(n,r),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y.default.sources.API;if("string"==typeof e&&(n=e,e=!1),b.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,o(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.default.sources.USER,e=this.lastRange,n=this.getRange(),r=l(n,2),o=r[0],i=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,p.default)(e,this.lastRange)){var a;!this.composing&&null!=i&&i.native.collapsed&&i.start.node!==this.cursor.textNode&&this.cursor.restore();var u=[y.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(e),t];if((a=this.emitter).emit.apply(a,[y.default.events.EDITOR_CHANGE].concat(u)),t!==y.default.sources.SILENT){var s;(s=this.emitter).emit.apply(s,u)}}}}]),t}();e.Range=_,e.default=w},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(0),c=r(s),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"insertInto",value:function(t,n){0===t.children.length?u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(c.default.Embed);f.blotName="break",f.tagName="BR",e.default=f},function(t,e,n){"use strict";function r(t){var e=l.find(t);if(null==e)try{e=l.create(t)}catch(n){e=l.create(l.Scope.INLINE),[].slice.call(t.childNodes).forEach(function(t){e.domNode.appendChild(t)}),t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(44),a=n(30),l=n(1),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){var e=this;t.prototype.attach.call(this),this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var n=r(t);e.insertBefore(n,e.children.head)}catch(t){if(t instanceof l.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){return 0===t&&e===this.length()?this.remove():void this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],i=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=a}),o},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,o){t.formatAt(e,o,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],i=r[1];if(o)o.insertAt(i,e,n);else{var a=null==n?l.create("text",e):l.create(e,n);this.appendChild(a)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new l.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},e.prototype.moveChildren=function(t,e){this.children.forEach(function(n){t.insertBefore(n,e)})},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],i=r[1],a=[[this,t]];return o instanceof e?a.concat(o.path(i,n)):(null!=o&&a.push([o,i]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),function(t,r,o){t=t.split(r,e),n.appendChild(t)}),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,o=[],i=[];t.forEach(function(t){t.target===n.domNode&&"childList"===t.type&&(o.push.apply(o,t.addedNodes),i.push.apply(i,t.removedNodes))}),i.forEach(function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=l.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}}),o.filter(function(t){return t.parentNode==n.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null;null!=t.nextSibling&&(e=l.find(t.nextSibling));var o=r(t);o.next==e&&null!=o.next||(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,e))})},e}(a.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),i=n(31),a=n(17),l=n(1),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.attach=function(){t.prototype.attach.call(this),this.attributes=new i.default(this.domNode)},e.prototype.format=function(t,e){var n=l.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some(function(t){return t.target===r.domNode&&"attributes"===t.type})&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(a.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(30),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t;var t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){function r(t){this.ops=t,this.index=0,this.offset=0}var o=n(11),i=n(3),a={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);n||(r=Object.keys(r).reduce(function(t,e){
- return null!=r[e]&&(t[e]=r[e]),t},{}));for(var o in t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce(function(n,r){return o(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce(function(n,r){return void 0===t[r]&&(n[r]=e[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new r(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=a.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"==typeof e.retain?o.retain=t:"string"==typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},r.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"},t.exports=a},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function n(r,o,i,a,f){function d(r,i){if(null===r)return null;if(0===i)return r;var y,m;if("object"!=typeof r)return r;if(t(r,u))y=new u;else if(t(r,s))y=new s;else if(t(r,c))y=new c(function(t,e){r.then(function(e){t(d(e,i-1))},function(t){e(d(t,i-1))})});else if(n.__isArray(r))y=[];else if(n.__isRegExp(r))y=new RegExp(r.source,l(r)),r.lastIndex&&(y.lastIndex=r.lastIndex);else if(n.__isDate(r))y=new Date(r.getTime());else{if(v&&e.isBuffer(r))return y=new e(r.length),r.copy(y),y;t(r,Error)?y=Object.create(r):"undefined"==typeof a?(m=Object.getPrototypeOf(r),y=Object.create(m)):(y=Object.create(a),m=a)}if(o){var g=h.indexOf(r);if(g!=-1)return p[g];h.push(r),p.push(y)}t(r,u)&&r.forEach(function(t,e){var n=d(e,i-1),r=d(t,i-1);y.set(n,r)}),t(r,s)&&r.forEach(function(t){var e=d(t,i-1);y.add(e)});for(var b in r){var _;m&&(_=Object.getOwnPropertyDescriptor(m,b)),_&&null==_.set||(y[b]=d(r[b],i-1))}if(Object.getOwnPropertySymbols)for(var w=Object.getOwnPropertySymbols(r),b=0;b<w.length;b++){var O=w[b],k=Object.getOwnPropertyDescriptor(r,O);(!k||k.enumerable||f)&&(y[O]=d(r[O],i-1),k.enumerable||Object.defineProperty(y,O,{enumerable:!1}))}if(f)for(var x=Object.getOwnPropertyNames(r),b=0;b<x.length;b++){var N=x[b],k=Object.getOwnPropertyDescriptor(r,N);k&&k.enumerable||(y[N]=d(r[N],i-1),Object.defineProperty(y,N,{enumerable:!1}))}return y}"object"==typeof o&&(i=o.depth,a=o.prototype,f=o.includeNonEnumerable,o=o.circular);var h=[],p=[],v="undefined"!=typeof e;return"undefined"==typeof o&&(o=!0),"undefined"==typeof i&&(i=1/0),d(r,i)}function r(t){return Object.prototype.toString.call(t)}function o(t){return"object"==typeof t&&"[object Date]"===r(t)}function i(t){return"object"==typeof t&&"[object Array]"===r(t)}function a(t){return"object"==typeof t&&"[object RegExp]"===r(t)}function l(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}var u;try{u=Map}catch(t){u=function(){}}var s;try{s=Set}catch(t){s=function(){}}var c;try{c=Promise}catch(t){c=function(){}}return n.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},n.__objToStr=r,n.__isDate=o,n.__isArray=i,n.__isRegExp=a,n.__getRegExpFlags=l,n}();"object"==typeof t&&t.exports&&(t.exports=r)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t){return t instanceof y.default||t instanceof v.BlockEmbed}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},f=n(0),d=r(f),h=n(8),p=r(h),v=n(4),y=r(v),m=n(16),g=r(m),b=n(13),_=r(b),w=n(24),O=r(w),k=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(t,e){return t[e]=!0,t},{})),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),r}return a(e,t),s(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var r=this.line(t),o=u(r,2),i=o[0],a=o[1],l=this.line(t+n),s=u(l,1),f=s[0];if(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&i!==f&&a>0){if(i instanceof v.BlockEmbed||f instanceof v.BlockEmbed)return void this.optimize();if(i instanceof _.default){var d=i.newlineIndex(i.length(),!0);if(d>-1&&(i=i.split(d+1),i===f))return void this.optimize()}else if(f instanceof _.default){var h=f.newlineIndex(0);h>-1&&f.split(h+1)}var p=f.children.head instanceof g.default?null:f.children.head;i.moveChildren(f,p),i.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==d.default.query(n,d.default.Scope.BLOCK)){var o=d.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var i=d.default.create(n,r);this.appendChild(i)}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===d.default.Scope.INLINE_BLOT){var r=d.default.create(this.statics.defaultChild);r.appendChild(t),t=r}c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(l,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,function(e,n,r){l(e)?o.push(e):e instanceof d.default.Container&&(o=o.concat(t(e,n,i))),i-=r}),o};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch!==!0&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(p.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(this.batch!==!0){var n=p.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(p.default.events.SCROLL_BEFORE_UPDATE,n,t),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(p.default.events.SCROLL_UPDATE,n,t)}}}]),e}(d.default.Scroll);k.blotName="scroll",k.className="ql-editor",k.tagName="DIV",k.defaultChild="block",k.allowedChildren=[y.default,v.BlockEmbed,O.default],e.default=k},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),f=r(c),d=n(7),h=r(d),p=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return a(e,t),s(e,null,[{key:"value",value:function(){}}]),s(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,o=0;null!=r&&r.statics.scope!==f.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(o,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),r=void 0,o=void 0,i=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var a=[t,n.start.offset,n.end.offset];r=a[0],o=a[1],i=a[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var u=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof h.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=e.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var s=[o,i].map(function(t){return Math.max(0,Math.min(r.data.length,t-1))}),c=l(s,2);return o=c[0],i=c[1],{startNode:r,startOffset:o,endNode:r,endOffset:i}}}}},{key:"update",value:function(t,e){var n=this;if(t.some(function(t){return"characterData"===t.type&&t.target===n.textNode})){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(f.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(0),u=r(l),s=n(4),c=r(s),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(u.default.Container);f.allowedChildren=[c.default,s.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(0),c=r(s),f=n(7),d=r(f),h="\ufeff",p=function(t){function e(t){o(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(t){n.contentNode.appendChild(t)}),n.leftGuard=document.createTextNode(h),n.rightGuard=document.createTextNode(h),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return a(e,t),l(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(h).join("");if(t===this.leftGuard)if(this.prev instanceof d.default){var o=this.prev.length();this.prev.insertAt(o,r),e={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(c.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(c.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=h,e}},{key:"update",value:function(t,e){var n=this;t.forEach(function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}})}}]),e}(c.default.Embed);e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(0),c=r(s),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"value",value:function t(n){var t=u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,n);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+t.split(",").map(function(t){return("00"+parseInt(t).toString(16)).slice(-2)}).join("")):t}}]),e}(c.default.Attributor.Style),d=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),h=new f("color","color",{scope:c.default.Scope.INLINE});e.ColorAttributor=f,e.ColorClass=d,e.ColorStyle=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},c=n(6),f=r(c),d=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"format",value:function(t,n){return t===this.statics.blotName&&n?(n=this.constructor.sanitize(n),void this.domNode.setAttribute("href",n)):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return l(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(f.default);d.blotName="link",d.tagName="A",d.SANITIZED_URL="about:blank",d.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=d,e.sanitize=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(107),u=r(l),s=function(){function t(e){var n=this;o(this,t),this.select=e,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(){n.container.classList.toggle("ql-expanded")}),this.select.addEventListener("change",this.update.bind(this))}return a(t,[{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",function(){e.selectItem(n,!0)}),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=u.default,this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),[].slice.call(this.select.options).forEach(function(n){var r=t.buildItem(n);e.appendChild(r),n.selected===!0&&t.selectItem(r)}),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach(function(e){t.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"close",value:function(){this.container.classList.remove("ql-expanded")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":i(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),a=n(5),l=r(a),u=n(4),s=r(u),c=n(16),f=r(c),d=n(24),h=r(d),p=n(23),v=r(p),y=n(25),m=r(y),g=n(6),b=r(g),_=n(22),w=r(_),O=n(7),k=r(O),x=n(55),N=r(x),E=n(42),S=r(E),j=n(35),A=r(j);l.default.register({"blots/block":s.default,"blots/block/embed":u.BlockEmbed,"blots/break":f.default,"blots/container":h.default,"blots/cursor":v.default,"blots/embed":m.default,"blots/inline":b.default,"blots/scroll":w.default,"blots/text":k.default,"modules/clipboard":N.default,"modules/history":S.default,"modules/keyboard":A.default}),i.default.register(s.default,f.default,v.default,b.default,w.default,k.default),e.default=l.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.attach()}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){this.domNode[r.DATA_KEY]={blot:this}},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){var n=this.isolate(t,e);n.remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){if(null!=this.parent&&this.parent.children.remove(this),t.children.insertBefore(this,e),null!=e)var n=e.domNode;null!=this.next&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,"undefined"!=typeof n?n:null),this.parent=t,this.scroll=t.scroll},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),l=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),l=i.default.keys(this.domNode);e.concat(n).concat(l).forEach(function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)})},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach(function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)})},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce(function(e,n){return e[n]=t.attributes[n].value(t.domNode),e},{})},t}();e.default=l},function(t,e,n){"use strict";function r(t,e){var n=t.getAttribute("class")||"";return n.split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=r(t,this.keyName);e.forEach(function(e){t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=r(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(i.default);e.default=a},function(t,e,n){"use strict";function r(t){var e=t.split("-"),n=e.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return e[0]+n}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map(function(t){var e=t.split(":");return e[0].trim()})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[r(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[r(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[r(this.keyName)];return this.canAdd(t,e)?e:""},e}(i.default);e.default=a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,
- r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){r(this,t),this.quill=e,this.options=n,this.modules={}}return o(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach(function(e){null==t.modules[e]&&t.addModule(e)})}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){var n,r=t===H.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e},o(n,r,/^$/),o(n,"handler",function(n){var r=n.index;t===H.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r),i=m(o,1),a=i[0];return!(a instanceof q.default)||(t===H.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,L.default.sources.USER):this.quill.setSelection(n.index-1,L.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,L.default.sources.USER):this.quill.setSelection(n.index+n.length+1,L.default.sources.USER),!1)}),n}function s(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=m(n,1),o=r[0],i={};if(0===e.offset){var a=this.quill.getLine(t.index-1),l=m(a,1),u=l[0];if(null!=u&&u.length()>1){var s=o.formats(),c=this.quill.getFormat(t.index-1,1);i=j.default.attributes.diff(s,c)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,L.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index-f,f,i,L.default.sources.USER),this.quill.focus()}}function c(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,i=this.quill.getLine(t.index),a=m(i,1),l=a[0];if(e.offset>=l.length()-1){var u=this.quill.getLine(t.index+1),s=m(u,1),c=s[0];if(c){var f=l.formats(),d=this.quill.getFormat(t.index,1);r=j.default.attributes.diff(f,d)||{},o=c.length()}}this.quill.deleteText(t.index,n,L.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,L.default.sources.USER)}}function f(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=j.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,L.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,L.default.sources.USER),this.quill.setSelection(t.index,L.default.sources.SILENT),this.quill.focus()}function d(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce(function(t,n){return C.default.query(n,C.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t},{});this.quill.insertText(t.index,"\n",r,L.default.sources.USER),this.quill.setSelection(t.index+1,L.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],L.default.sources.USER))})}function h(t){return{key:H.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=C.default.query("code-block"),r=e.index,o=e.length,i=this.quill.scroll.descendant(n,r),a=m(i,2),l=a[0],u=a[1];if(null!=l){var s=this.quill.getIndex(l),c=l.newlineIndex(u,!0)+1,f=l.newlineIndex(s+u+o),d=l.domNode.textContent.slice(c,f).split("\n");u=0,d.forEach(function(e,i){t?(l.insertAt(c+u,n.TAB),u+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(l.deleteAt(c+u,n.TAB.length),u-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),u+=e.length+1}),this.quill.update(L.default.sources.USER),this.quill.setSelection(r,o,L.default.sources.SILENT)}}}}function p(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],L.default.sources.USER)}}}function v(t){if("string"==typeof t||"number"==typeof t)return v({key:t});if("object"===("undefined"==typeof t?"undefined":y(t))&&(t=(0,_.default)(t,!1)),"string"==typeof t.key)if(null!=H.keys[t.key.toUpperCase()])t.key=H.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[U]=t.shortKey,delete t.shortKey),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=n(21),_=r(b),w=n(11),O=r(w),k=n(3),x=r(k),N=n(2),E=r(N),S=n(20),j=r(S),A=n(0),C=r(A),T=n(25),q=r(T),P=n(5),L=r(P),I=n(10),M=r(I),R=n(9),B=r(R),D=(0,M.default)("quill:keyboard"),U=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=function(t){function e(t,n){i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])}),r.addBinding({key:e.keys.ENTER,shiftKey:null},d),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},s),r.addBinding({key:e.keys.DELETE},{collapsed:!0},c)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},s),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},c)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},f),r.addBinding({key:e.keys.DELETE},{collapsed:!1},f),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},s),r.listen(),r}return l(e,t),g(e,null,[{key:"match",value:function(t,e){return e=v(e),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!e[n]!==t[n]&&null!==e[n]})&&e.key===(t.which||t.keyCode)}}]),g(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=v(t);return null==r||null==r.key?D.warn("Attempted to add invalid keyboard binding",r):("function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,x.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],void this.bindings[r.key].push(r))}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,o=(t.bindings[r]||[]).filter(function(t){return e.match(n,t)});if(0!==o.length){var i=t.quill.getSelection();if(null!=i&&t.quill.hasFocus()){var a=t.quill.getLine(i.index),l=m(a,2),u=l[0],s=l[1],c=t.quill.getLeaf(i.index),f=m(c,2),d=f[0],h=f[1],p=0===i.length?[d,h]:t.quill.getLeaf(i.index+i.length),v=m(p,2),g=v[0],b=v[1],_=d instanceof C.default.Text?d.value().slice(0,h):"",w=g instanceof C.default.Text?g.value().slice(b):"",k={collapsed:0===i.length,empty:0===i.length&&u.length()<=1,format:t.quill.getFormat(i),offset:s,prefix:_,suffix:w},x=o.some(function(e){if(null!=e.collapsed&&e.collapsed!==k.collapsed)return!1;if(null!=e.empty&&e.empty!==k.empty)return!1;if(null!=e.offset&&e.offset!==k.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==k.format[t]}))return!1}else if("object"===y(e.format)&&!Object.keys(e.format).every(function(t){return e.format[t]===!0?null!=k.format[t]:e.format[t]===!1?null==k.format[t]:(0,O.default)(e.format[t],k.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(k.prefix))&&(!(null!=e.suffix&&!e.suffix.test(k.suffix))&&e.handler.call(t,i,k)!==!0)});x&&n.preventDefault()}}}})}}]),e}(B.default);H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:p("bold"),italic:p("italic"),underline:p("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){return!(!e.collapsed||0===e.offset)||void this.quill.format("indent","+1",L.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){return!(!e.collapsed||0===e.offset)||void this.quill.format("indent","-1",L.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",L.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,L.default.sources.USER)}},"indent code-block":h(!0),"outdent code-block":h(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,L.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new E.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,L.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,L.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,L.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,L.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=m(e,2),r=n[0],o=n[1],i=(new E.default).retain(t.index).insert("\n",{list:"checked"}).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,L.default.sources.USER),this.quill.setSelection(t.index+1,L.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=m(n,2),o=r[0],i=r[1],a=(new E.default).retain(t.index).insert("\n",e.format).retain(o.length()-i-1).retain(1,{header:null});this.quill.updateContents(a,L.default.sources.USER),this.quill.setSelection(t.index+1,L.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=m(r,2),i=o[0],a=o[1];if(a>n)return!0;var l=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",L.default.sources.USER),this.quill.history.cutoff();var u=(new E.default).retain(t.index-a).delete(n+1).retain(i.length()-2-a).retain(1,{list:l});this.quill.updateContents(u,L.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,L.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=m(e,2),r=n[0],o=n[1],i=(new E.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(i,L.default.sources.USER)}},"embed left":u(H.keys.LEFT,!1),"embed left shift":u(H.keys.LEFT,!0),"embed right":u(H.keys.RIGHT,!1),"embed right shift":u(H.keys.RIGHT,!0)}},e.default=H,e.SHORTKEY=U},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var o=n(0),i=r(o),a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new i.default.Attributor.Attribute("align","align",a),u=new i.default.Attributor.Class("align","ql-align",a),s=new i.default.Attributor.Style("align","text-align",a);e.AlignAttribute=l,e.AlignClass=u,e.AlignStyle=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var o=n(0),i=r(o),a=n(26),l=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),u=new a.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});e.BackgroundClass=l,e.BackgroundStyle=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var o=n(0),i=r(o),a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},l=new i.default.Attributor.Attribute("direction","dir",a),u=new i.default.Attributor.Class("direction","ql-direction",a),s=new i.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=l,e.DirectionClass=u,e.DirectionStyle=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(0),c=r(s),f={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new c.default.Attributor.Class("font","ql-font",f),h=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"value",value:function(t){return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(c.default.Attributor.Style),p=new h("font","font-family",f);e.FontStyle=p,e.FontClass=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var o=n(0),i=r(o),a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=l},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some(function(t){return null!=f.default.query(t,f.default.Scope.BLOCK)}))}function u(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),n=t.length()-e;return l(t)&&(n-=1),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),f=r(c),d=n(5),h=r(d),p=n(9),v=r(p),y=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(h.default.events.EDITOR_CHANGE,function(t,e,n,o){t!==h.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==h.default.sources.USER?r.transform(e):r.record(e,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return a(e,t),s(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],h.default.sources.USER),this.ignoreChange=!1;var r=u(n[t]);this.quill.setSelection(r),this.stack[e].push(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}),this.stack.redo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(v.default);y.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=y,e.getLastChangeIndex=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},f=n(3),d=r(f),h=n(2),p=r(h),v=n(8),y=r(v),m=n(35),g=r(m),b=n(34),_=r(b),w=n(59),O=r(w),k=n(60),x=r(k),N=n(28),E=r(N),S=n(61),j=r(S),A=[!1,"center","right","justify"],C=["#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"],T=[!1,"serif","monospace"],q=["1","2","3",!1],P=["small",!1,"large","huge"],L=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),a=function e(n){return document.body.contains(t.root)?(null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),void(null!=r.pickers&&r.pickers.forEach(function(t){t.container.contains(n.target)||t.close()}))):document.body.removeEventListener("click",e)};return t.emitter.listenDOM("click",document.body,a),r}return a(e,t),s(e,[{key:"addModule",value:function(t){var n=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach(function(t){var n=t.getAttribute("class")||"";n.split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}})})}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map(function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&u(t,A),new x.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&u(t,C,"background"===n?"#ffffff":"#000000"),new O.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?u(t,T):t.classList.contains("ql-header")?u(t,q):t.classList.contains("ql-size")&&u(t,P)),new E.default(t)});var r=function(){n.pickers.forEach(function(t){t.update()})};this.quill.on(y.default.events.EDITOR_CHANGE,r)}}]),e}(_.default);L.DEFAULTS=(0,d.default)(!0,{},_.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new p.default).retain(r.index).delete(r.length).insert({image:n.target.result}),y.default.sources.USER),t.quill.setSelection(r.index+1,y.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}}),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return a(e,t),s(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",function(e){g.default.match(e,"enter")?(t.save(),e.preventDefault()):g.default.match(e,"escape")&&(t.cancel(),e.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,y.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,y.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=l(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,y.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",y.default.sources.USER),this.quill.setSelection(r+2,y.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(j.default);e.BaseTooltip=I,e.default=L},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=void 0,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],void 0),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=void 0,this.head=this.tail=t),this.length+=1},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(t<o||e&&t===o&&(null==n.next||0!==n.next.length()))return[n,t];t-=o}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,o=this.find(t),i=o[0],a=o[1],l=t-a,u=this.iterator(i);(r=u())&&l<t+e;){var s=r.length();t>l?n(r,t-l,Math.min(e,l+s-t)):n(r,0,Math.min(s,t+e-l)),l+=s}},t.prototype.map=function(t){return this.reduce(function(e,n){return e.push(t(n)),e},[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),i=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=100,u=function(t){function e(e){var n=t.call(this,e)||this;return n.parent=null,n.observer=new MutationObserver(function(t){n.update(t)}),n.observer.observe(n.domNode,a),n.scroll=n,n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach(function(t){t.remove()}):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var u=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&u(t.parent))},s=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(s),t.optimize(n))},c=e,f=0;c.length>0;f+=1){if(f>=l)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(u(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=i.find(t,!1);u(e,!1),e instanceof o.default&&e.children.forEach(function(t){u(t,!1)})})):"attributes"===t.type&&u(e.prev)),u(e))}),this.children.forEach(s),c=[].slice.call(this.observer.takeRecords()),a=c.slice();a.length>0;)e.push(a.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map(function(t){var e=i.find(t.target,!0);if(null!=e)return null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==r&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],n)}),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=u},function(t,e,n){"use strict";function r(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);
- };return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach(function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)}),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){if(null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)){var i=this.isolate(e,n);i.format(r,o)}else t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&r(o,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=a.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=i.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),a=i.create(n,r);o.parent.insertBefore(a,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.attach():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=i.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some(function(t){return"characterData"===t.type&&t.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return r!==-1&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function t(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,e){function n(t,e,n){if(t==e)return t?[[y,t]]:[];(n<0||t.length<n)&&(n=null);var o=a(t,e),i=t.substring(0,o);t=t.substring(o),e=e.substring(o),o=l(t,e);var u=t.substring(t.length-o);t=t.substring(0,t.length-o),e=e.substring(0,e.length-o);var c=r(t,e);return i&&c.unshift([y,i]),u&&c.push([y,u]),s(c),null!=n&&(c=f(c,n)),c=d(c)}function r(t,e){var r;if(!t)return[[v,e]];if(!e)return[[p,t]];var i=t.length>e.length?t:e,a=t.length>e.length?e:t,l=i.indexOf(a);if(l!=-1)return r=[[v,i.substring(0,l)],[y,a],[v,i.substring(l+a.length)]],t.length>e.length&&(r[0][0]=r[2][0]=p),r;if(1==a.length)return[[p,t],[v,e]];var s=u(t,e);if(s){var c=s[0],f=s[1],d=s[2],h=s[3],m=s[4],g=n(c,d),b=n(f,h);return g.concat([[y,m]],b)}return o(t,e)}function o(t,e){for(var n=t.length,r=e.length,o=Math.ceil((n+r)/2),a=o,l=2*o,u=new Array(l),s=new Array(l),c=0;c<l;c++)u[c]=-1,s[c]=-1;u[a+1]=0,s[a+1]=0;for(var f=n-r,d=f%2!=0,h=0,y=0,m=0,g=0,b=0;b<o;b++){for(var _=-b+h;_<=b-y;_+=2){var w,O=a+_;w=_==-b||_!=b&&u[O-1]<u[O+1]?u[O+1]:u[O-1]+1;for(var k=w-_;w<n&&k<r&&t.charAt(w)==e.charAt(k);)w++,k++;if(u[O]=w,w>n)y+=2;else if(k>r)h+=2;else if(d){var x=a+f-_;if(x>=0&&x<l&&s[x]!=-1){var N=n-s[x];if(w>=N)return i(t,e,w,k)}}}for(var E=-b+m;E<=b-g;E+=2){var N,x=a+E;N=E==-b||E!=b&&s[x-1]<s[x+1]?s[x+1]:s[x-1]+1;for(var S=N-E;N<n&&S<r&&t.charAt(n-N-1)==e.charAt(r-S-1);)N++,S++;if(s[x]=N,N>n)g+=2;else if(S>r)m+=2;else if(!d){var O=a+f-E;if(O>=0&&O<l&&u[O]!=-1){var w=u[O],k=a+w-O;if(N=n-N,w>=N)return i(t,e,w,k)}}}}return[[p,t],[v,e]]}function i(t,e,r,o){var i=t.substring(0,r),a=e.substring(0,o),l=t.substring(r),u=e.substring(o),s=n(i,a),c=n(l,u);return s.concat(c)}function a(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(i,o)==e.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function l(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function u(t,e){function n(t,e,n){for(var r,o,i,u,s=t.substring(n,n+Math.floor(t.length/4)),c=-1,f="";(c=e.indexOf(s,c+1))!=-1;){var d=a(t.substring(n),e.substring(c)),h=l(t.substring(0,n),e.substring(0,c));f.length<h+d&&(f=e.substring(c-h,c)+e.substring(c,c+d),r=t.substring(0,n-h),o=t.substring(n+d),i=e.substring(0,c-h),u=e.substring(c+d))}return 2*f.length>=t.length?[r,o,i,u,f]:null}var r=t.length>e.length?t:e,o=t.length>e.length?e:t;if(r.length<4||2*o.length<r.length)return null;var i,u=n(r,o,Math.ceil(r.length/4)),s=n(r,o,Math.ceil(r.length/2));if(!u&&!s)return null;i=s?u&&u[4].length>s[4].length?u:s:u;var c,f,d,h;t.length>e.length?(c=i[0],f=i[1],d=i[2],h=i[3]):(d=i[0],h=i[1],c=i[2],f=i[3]);var p=i[4];return[c,f,d,h,p]}function s(t){t.push([y,""]);for(var e,n=0,r=0,o=0,i="",u="";n<t.length;)switch(t[n][0]){case v:o++,u+=t[n][1],n++;break;case p:r++,i+=t[n][1],n++;break;case y:r+o>1?(0!==r&&0!==o&&(e=a(u,i),0!==e&&(n-r-o>0&&t[n-r-o-1][0]==y?t[n-r-o-1][1]+=u.substring(0,e):(t.splice(0,0,[y,u.substring(0,e)]),n++),u=u.substring(e),i=i.substring(e)),e=l(u,i),0!==e&&(t[n][1]=u.substring(u.length-e)+t[n][1],u=u.substring(0,u.length-e),i=i.substring(0,i.length-e))),0===r?t.splice(n-o,r+o,[v,u]):0===o?t.splice(n-r,r+o,[p,i]):t.splice(n-r-o,r+o,[p,i],[v,u]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&t[n-1][0]==y?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,o=0,r=0,i="",u=""}""===t[t.length-1][1]&&t.pop();var c=!1;for(n=1;n<t.length-1;)t[n-1][0]==y&&t[n+1][0]==y&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),c=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),c=!0)),n++;c&&s(t)}function c(t,e){if(0===e)return[y,t];for(var n=0,r=0;r<t.length;r++){var o=t[r];if(o[0]===p||o[0]===y){var i=n+o[1].length;if(e===i)return[r+1,t];if(e<i){t=t.slice();var a=e-n,l=[o[0],o[1].slice(0,a)],u=[o[0],o[1].slice(a)];return t.splice(r,1,l,u),[r+1,t]}n=i}}throw new Error("cursor_pos is out of bounds!")}function f(t,e){var n=c(t,e),r=n[1],o=n[0],i=r[o],a=r[o+1];if(null==i)return t;if(i[0]!==y)return t;if(null!=a&&i[1]+a[1]===a[1]+i[1])return r.splice(o,2,a,i),h(r,o,2);if(null!=a&&0===a[1].indexOf(i[1])){r.splice(o,2,[a[0],i[1]],[0,i[1]]);var l=a[1].slice(i[1].length);return l.length>0&&r.splice(o+2,0,[a[0],l]),h(r,o,3)}return t}function d(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},o=2;o<t.length;o+=1)t[o-2][0]===y&&r(t[o-2][1])&&t[o-1][0]===p&&n(t[o-1][1])&&t[o][0]===v&&n(t[o][1])&&(e=!0,t[o-1][1]=t[o-2][1].slice(-1)+t[o-1][1],t[o][1]=t[o-2][1].slice(-1)+t[o][1],t[o-2][1]=t[o-2][1].slice(0,-1));if(!e)return t;for(var i=[],o=0;o<t.length;o+=1)t[o][1].length>0&&i.push(t[o]);return i}function h(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var o=t[r],i=t[r+1];o[0]===i[1]&&t.splice(r,2,[o[0],o[1]+i[1]])}return t}var p=-1,v=1,y=0,m=n;m.INSERT=v,m.DELETE=p,m.EQUAL=y,t.exports=m},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=o?n:r,e.supported=n,e.unsupported=r},function(t,e){"use strict";function n(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(){this._events=new n,this._eventsCount=0}var i=Object.prototype.hasOwnProperty,a="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(a=!1)),o.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)i.call(t,e)&&n.push(a?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t,e){var n=a?a+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,l=new Array(i);o<i;o++)l[o]=r[o].fn;return l},o.prototype.emit=function(t,e,n,r,o,i){var l=a?a+t:t;if(!this._events[l])return!1;var u,s,c=this._events[l],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,r),!0;case 5:return c.fn.call(c.context,e,n,r,o),!0;case 6:return c.fn.call(c.context,e,n,r,o,i),!0}for(s=1,u=new Array(f-1);s<f;s++)u[s-1]=arguments[s];c.fn.apply(c.context,u)}else{var d,h=c.length;for(s=0;s<h;s++)switch(c[s].once&&this.removeListener(t,c[s].fn,void 0,!0),f){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,e);break;case 3:c[s].fn.call(c[s].context,e,n);break;case 4:c[s].fn.call(c[s].context,e,n,r);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[s].fn.apply(c[s].context,u)}}return!0},o.prototype.on=function(t,e,n){var o=new r(e,n||this),i=a?a+t:t;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},o.prototype.once=function(t,e,n){var o=new r(e,n||this,!0),i=a?a+t:t;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},o.prototype.removeListener=function(t,e,r,o){var i=a?a+t:t;if(!this._events[i])return this;if(!e)return 0===--this._eventsCount?this._events=new n:delete this._events[i],this;var l=this._events[i];if(l.fn)l.fn!==e||o&&!l.once||r&&l.context!==r||(0===--this._eventsCount?this._events=new n:delete this._events[i]);else{for(var u=0,s=[],c=l.length;u<c;u++)(l[u].fn!==e||o&&!l[u].once||r&&l[u].context!==r)&&s.push(l[u]);s.length?this._events[i]=1===s.length?s[0]:s:0===--this._eventsCount?this._events=new n:delete this._events[i]}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=a?a+t:t,this._events[e]&&(0===--this._eventsCount?this._events=new n:delete this._events[e])):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=a,o.EventEmitter=o,"undefined"!=typeof t&&(t.exports=o)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e,n){return"object"===("undefined"==typeof e?"undefined":k(e))?Object.keys(e).reduce(function(t,n){return u(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,S.default)({},o({},e,n),r.attributes))},new A.default)}function s(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function c(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var o=t.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*e.length)===e}function f(t){if(0===t.childNodes.length)return!1;var e=s(t);return["block","list-item"].indexOf(e.display)>-1}function d(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce(function(e,n){return n(t,e)},new A.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(r,o){var i=d(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce(function(t,e){return e(o,t)},i),i=(o[Z]||[]).reduce(function(t,e){return e(o,t)},i)),r.concat(i)},new A.default):new A.default}function h(t,e,n){return u(n,t,!0)}function p(t,e){var n=T.default.Attributor.Attribute.keys(t),r=T.default.Attributor.Class.keys(t),o=T.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach(function(e){var n=T.default.query(e,T.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(n=G[e],null!=n&&n.attrName===e&&(i[n.attrName]=n.value(t)||void 0),n=J[e],null!=n&&n.attrName===e&&(n=J[e],i[n.attrName]=n.value(t)||void 0))}),Object.keys(i).length>0&&(e=u(e,i)),e}function v(t,e){var n=T.default.query(t);if(null==n)return e;if(n.prototype instanceof T.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new A.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=u(e,n.blotName,n.formats(t)));return e}function y(t,e){return c(e,"\n")||e.insert("\n"),e}function m(){return new A.default}function g(t,e){var n=T.default.query(t);if(null==n||"list-item"!==n.blotName||!c(e,"\n"))return e;for(var r=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(T.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new A.default).retain(e.length()-1).retain(1,{indent:r}))}function b(t,e){return c(e,"\n")||(f(t)||e.length()>0&&t.nextSibling&&f(t.nextSibling))&&e.insert("\n"),e}function _(t,e){if(f(t)&&null!=t.nextElementSibling&&!c(e,"\n\n")){var n=t.offsetHeight+parseFloat(s(t).marginTop)+parseFloat(s(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function w(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===s(t).fontStyle&&(n.italic=!0),r.fontWeight&&(s(t).fontWeight.startsWith("bold")||parseInt(s(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=u(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new A.default).insert("\t").concat(e)),e}function O(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!s(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&f(t.parentNode)||null!=t.previousSibling&&f(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&f(t.parentNode)||null!=t.nextSibling&&f(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),N=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),E=n(3),S=r(E),j=n(2),A=r(j),C=n(0),T=r(C),q=n(5),P=r(q),L=n(10),I=r(L),M=n(9),R=r(M),B=n(36),D=n(37),U=n(13),H=r(U),F=n(26),z=n(38),K=n(39),Y=n(40),V=(0,I.default)("quill:clipboard"),Z="__ql-matcher",W=[[Node.TEXT_NODE,O],[Node.TEXT_NODE,b],["br",y],[Node.ELEMENT_NODE,b],[Node.ELEMENT_NODE,v],[Node.ELEMENT_NODE,_],[Node.ELEMENT_NODE,p],[Node.ELEMENT_NODE,w],["li",g],["b",h.bind(h,"bold")],["i",h.bind(h,"italic")],["style",m]],G=[B.AlignAttribute,z.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),J=[B.AlignStyle,D.BackgroundStyle,F.ColorStyle,z.DirectionStyle,K.FontStyle,Y.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{}),Q=function(t){function e(t,n){i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],W.concat(r.options.matchers).forEach(function(t){var e=x(t,2),o=e[0],i=e[1];(n.matchVisual||i!==_)&&r.addMatcher(o,i)}),r}return l(e,t),N(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[H.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new A.default).insert(n,o({},H.default.blotName,e[H.default.blotName]))}var r=this.prepareMatching(),i=x(r,2),a=i[0],l=i[1],u=d(this.container,a,l);return c(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new A.default).retain(u.length()-1).delete(1))),V.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.default.sources.API;if("string"==typeof t)return this.quill.setContents(this.convert(t),e);var r=this.convert(e);return this.quill.updateContents((new A.default).retain(t).concat(r),n)}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new A.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(P.default.sources.SILENT),setTimeout(function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,P.default.sources.USER),e.quill.setSelection(r.length()-n.length,P.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach(function(r){var o=x(r,2),i=o[0],a=o[1];switch(i){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:e.push(a);break;default:[].forEach.call(t.container.querySelectorAll(i),function(t){t[Z]=t[Z]||[],t[Z].push(a)})}}),[e,n]}}]),e}(R.default);Q.DEFAULTS={matchers:[],matchVisual:!0},e.default=Q,e.matchAttributor=p,e.matchBlot=v,e.matchNewline=b,e.matchSpacing=_,e.matchText=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(6),c=r(s),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"optimize",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(c.default);f.blotName="bold",f.tagName=["STRONG","B"],e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function s(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach(function(t){if("string"==typeof t)u(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?c(n,e,r):u(n,e,r)}}),t.appendChild(n)})}function c(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach(function(t){var e=document.createElement("option");t!==!1?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)}),t.appendChild(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=n(2),p=r(h),v=n(0),y=r(v),m=n(5),g=r(m),b=n(10),_=r(b),w=n(9),O=r(w),k=(0,_.default)("quill:toolbar"),x=function(t){function e(t,n){i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(r.options.container)){var o=document.createElement("div");s(o,r.options.container),t.container.parentNode.insertBefore(o,t.container),r.container=o}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;if(!(r.container instanceof HTMLElement)){var l;return l=k.error("Container required for toolbar",r.options),a(r,l)}return r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach(function(t){r.addHandler(t,r.options.handlers[t])}),[].forEach.call(r.container.querySelectorAll("button, select"),function(t){r.attach(t)}),r.quill.on(g.default.events.EDITOR_CHANGE,function(t,e){t===g.default.events.SELECTION_CHANGE&&r.update(e)}),r.quill.on(g.default.events.SCROLL_OPTIMIZE,function(){var t=r.quill.selection.getRange(),e=f(t,1),n=e[0];r.update(n)}),r}return l(e,t),d(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,function(t){return 0===t.indexOf("ql-")});if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void k.warn("ignoring attaching to disabled format",n,t);if(null==y.default.query(n))return void k.warn("ignoring attaching to nonexistent format",n,t)}var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,function(r){var i=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var a=t.options[t.selectedIndex];i=!a.hasAttribute("selected")&&(a.value||!1)}else i=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();e.quill.focus();var l=e.quill.selection.getRange(),u=f(l,1),s=u[0];if(null!=e.handlers[n])e.handlers[n].call(e,i);else if(y.default.query(n).prototype instanceof y.default.Embed){if(i=prompt("Enter "+n),!i)return;e.quill.updateContents((new p.default).retain(s.index).delete(s.length).insert(o({},n,i)),g.default.sources.USER)}else e.quill.format(n,i,g.default.sources.USER);e.update(s)}),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(function(n){var r=f(n,2),o=r[0],i=r[1];if("SELECT"===i.tagName){var a=void 0;if(null==t)a=null;else if(null==e[o])a=i.querySelector("option[selected]");else if(!Array.isArray(e[o])){var l=e[o];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),a=i.querySelector('option[value="'+l+'"]')}null==a?(i.value="",i.selectedIndex=-1):a.selected=!0}else if(null==t)i.classList.remove("ql-active");else if(i.hasAttribute("value")){var u=e[o]===i.getAttribute("value")||null!=e[o]&&e[o].toString()===i.getAttribute("value")||null==e[o]&&!i.getAttribute("value");i.classList.toggle("ql-active",u)}else i.classList.toggle("ql-active",null!=e[o])})}}]),e}(O.default);x.DEFAULTS={},x.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(e){null!=y.default.query(e,y.default.Scope.INLINE)&&t.quill.format(e,!1)})}else this.quill.removeFormat(e,g.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",g.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,g.default.sources.USER),this.quill.format("direction",t,g.default.sources.USER)},indent:function t(e){var n=this.quill.getSelection(),r=this.quill.getFormat(n),t=parseInt(r.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===r.direction&&(o*=-1),this.quill.format("indent",t+o,g.default.sources.USER)}},link:function(t){t===!0&&(t=prompt("Enter link URL:")),this.quill.format("link",t,g.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,g.default.sources.USER):this.quill.format("list","unchecked",g.default.sources.USER):this.quill.format("list",t,g.default.sources.USER)}}},e.default=x,e.addControls=s},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>';
- },function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(28),c=r(s),f=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(t){t.classList.add("ql-primary")}),r}return a(e,t),l(e,[{key:"buildItem",value:function(t){var n=u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),o=t?t.getAttribute("data-value")||"":"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),e}(c.default);e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(28),c=r(s),f=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),function(t){t.innerHTML=n[t.getAttribute("data-value")||""]}),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return a(e,t),l(e,[{key:"selectItem",value:function(t,n){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(c.default);e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){var o=this;r(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return o(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=e+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,l=t.bottom-t.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(3),f=r(c),d=n(8),h=r(d),p=n(43),v=r(p),y=n(27),m=r(y),g=n(15),b=n(41),_=r(b),w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(t){function e(t,n){o(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=w);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return a(e,t),s(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),_.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),_.default),this.tooltip=new k(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(e,n){t.handlers.link.call(t,!n.format.link)})}}]),e}(v.default);O.DEFAULTS=(0,f.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var r=this.quill.theme.tooltip;r.edit("link",n)}else this.quill.format("link",!1)}}}}});var k=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return a(e,t),s(e,[{key:"listen",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,h.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(e,n,r){if(null!=e){if(0===e.length&&r===h.default.sources.USER){var o=t.quill.scroll.descendant(m.default,e.index),i=l(o,2),a=i[0],u=i[1];if(null!=a){t.linkRange=new g.Range(e.index-u,a.length());var s=m.default.formats(a.domNode);return t.preview.textContent=s,t.preview.setAttribute("href",s),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}})}},{key:"show",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(p.BaseTooltip);k.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(29),i=r(o),a=n(36),l=n(38),u=n(64),s=n(65),c=r(s),f=n(66),d=r(f),h=n(67),p=r(h),v=n(37),y=n(26),m=n(39),g=n(40),b=n(56),_=r(b),w=n(68),O=r(w),k=n(27),x=r(k),N=n(69),E=r(N),S=n(70),j=r(S),A=n(71),C=r(A),T=n(72),q=r(T),P=n(73),L=r(P),I=n(13),M=r(I),R=n(74),B=r(R),D=n(75),U=r(D),H=n(57),F=r(H),z=n(41),K=r(z),Y=n(28),V=r(Y),Z=n(59),W=r(Z),G=n(60),J=r(G),Q=n(61),$=r(Q),X=n(108),tt=r(X),et=n(62),nt=r(et);i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":v.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":g.SizeStyle},!0),i.default.register({"formats/align":a.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":u.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":m.FontClass,"formats/size":g.SizeClass,"formats/blockquote":c.default,"formats/code-block":M.default,"formats/header":d.default,"formats/list":p.default,"formats/bold":_.default,"formats/code":I.Code,"formats/italic":O.default,"formats/link":x.default,"formats/script":E.default,"formats/strike":j.default,"formats/underline":C.default,"formats/image":q.default,"formats/video":L.default,"formats/list/item":h.ListItem,"modules/formula":B.default,"modules/syntax":U.default,"modules/toolbar":F.default,"themes/bubble":tt.default,"themes/snow":nt.default,"ui/icons":K.default,"ui/picker":V.default,"ui/icon-picker":J.default,"ui/color-picker":W.default,"ui/tooltip":$.default},!0),e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(0),c=r(s),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(c.default.Attributor.Class),d=new f("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(4),u=r(l),s=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(u.default);s.blotName="blockquote",s.tagName="blockquote",e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(4),s=r(u),c=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(s.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],e.default=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},c=n(0),f=r(c),d=n(4),h=r(d),p=n(24),v=r(p),y=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),u(e,[{key:"format",value:function(t,n){t!==m.blotName||n?s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:s(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(h.default);y.blotName="list-item",y.tagName="LI";var m=function(t){function e(t){i(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),o=f.default.find(e.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return l(e,t),u(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),u(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return o({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof y)s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=f.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(v.default);m.blotName="list",m.scope=f.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[y],e.ListItem=y,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(56),u=r(l),s=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(u.default);s.blotName="italic",s.tagName=["EM","I"],e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(6),c=r(s),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(c.default);f.blotName="script",f.tagName=["SUB","SUP"],e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(6),u=r(l),s=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(u.default);s.blotName="strike",s.tagName="S",e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(6),u=r(l),s=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(u.default);s.blotName="underline",s.tagName="U",e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(0),c=r(s),f=n(27),d=["alt","height","width"],h=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"format",value:function(t,n){d.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return d.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,f.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(c.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(4),c=n(27),f=r(c),d=["height","width"],h=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"format",value:function(t,n){d.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return d.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"sanitize",value:function(t){return f.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(25),c=r(s),f=n(5),d=r(f),h=n(9),p=r(h),v=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,null,[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(c.default);v.blotName="formula",v.className="ql-formula",v.tagName="SPAN";var y=function(t){function e(){o(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return a(e,t),l(e,null,[{key:"register",value:function(){d.default.register(v,!0)}}]),e}(p.default);e.FormulaBlot=v,e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);
- t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},s=n(0),c=r(s),f=n(5),d=r(f),h=n(9),p=r(h),v=n(13),y=r(v),m=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(y.default);m.className="ql-syntax";var g=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),b=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var a=null;return r.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(a),a=setTimeout(function(){r.highlight(),a=null},r.options.interval)}),r.highlight(),r}return a(e,t),l(e,null,[{key:"register",value:function(){d.default.register(g,!0),d.default.register(m,!0)}}]),l(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(m).forEach(function(e){e.highlight(t.options.highlight)}),this.quill.update(d.default.sources.SILENT),null!=e&&this.quill.setSelection(e,d.default.sources.SILENT)}}}]),e}(p.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=m,e.CodeToken=g,e.default=b},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var l=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(3),c=r(s),f=n(8),d=r(f),h=n(43),p=r(h),v=n(15),y=n(41),m=r(y),g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(t){function e(t,n){o(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return a(e,t),u(e,[{key:"extendToolbar",value:function(t){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),m.default)}}]),e}(p.default);b.DEFAULTS=(0,c.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(d.default.events.EDITOR_CHANGE,function(t,e,n,o){if(t===d.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===d.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var a=i[i.length-1],l=r.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-l),s=r.quill.getBounds(new v.Range(l,u));r.position(s)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return a(e,t),u(e,[{key:"listen",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){t.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",0===n?n:void(r.style.marginLeft=-1*n-r.offsetWidth/2+"px")}}]),e}(h.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=_,e.default=b},function(t,e,n){t.exports=n(63)}]).default})}).call(e,n(885).Buffer)},660:function(t,e,n){"use strict";!function(e){t.exports=e(n(1))}(function(t){function e(e){var n=t.createElement.bind(null,e);return n.type=e,n}var n={a:e("a"),abbr:e("abbr"),address:e("address"),area:e("area"),article:e("article"),aside:e("aside"),audio:e("audio"),b:e("b"),base:e("base"),bdi:e("bdi"),bdo:e("bdo"),big:e("big"),blockquote:e("blockquote"),body:e("body"),br:e("br"),button:e("button"),canvas:e("canvas"),caption:e("caption"),cite:e("cite"),code:e("code"),col:e("col"),colgroup:e("colgroup"),data:e("data"),datalist:e("datalist"),dd:e("dd"),del:e("del"),details:e("details"),dfn:e("dfn"),dialog:e("dialog"),div:e("div"),dl:e("dl"),dt:e("dt"),em:e("em"),embed:e("embed"),fieldset:e("fieldset"),figcaption:e("figcaption"),figure:e("figure"),footer:e("footer"),form:e("form"),h1:e("h1"),h2:e("h2"),h3:e("h3"),h4:e("h4"),h5:e("h5"),h6:e("h6"),head:e("head"),header:e("header"),hgroup:e("hgroup"),hr:e("hr"),html:e("html"),i:e("i"),iframe:e("iframe"),img:e("img"),input:e("input"),ins:e("ins"),kbd:e("kbd"),keygen:e("keygen"),label:e("label"),legend:e("legend"),li:e("li"),link:e("link"),main:e("main"),map:e("map"),mark:e("mark"),menu:e("menu"),menuitem:e("menuitem"),meta:e("meta"),meter:e("meter"),nav:e("nav"),noscript:e("noscript"),object:e("object"),ol:e("ol"),optgroup:e("optgroup"),option:e("option"),output:e("output"),p:e("p"),param:e("param"),picture:e("picture"),pre:e("pre"),progress:e("progress"),q:e("q"),rp:e("rp"),rt:e("rt"),ruby:e("ruby"),s:e("s"),samp:e("samp"),script:e("script"),section:e("section"),select:e("select"),small:e("small"),source:e("source"),span:e("span"),strong:e("strong"),style:e("style"),sub:e("sub"),summary:e("summary"),sup:e("sup"),table:e("table"),tbody:e("tbody"),td:e("td"),textarea:e("textarea"),tfoot:e("tfoot"),th:e("th"),thead:e("thead"),time:e("time"),title:e("title"),tr:e("tr"),track:e("track"),u:e("u"),ul:e("ul"),var:e("var"),video:e("video"),wbr:e("wbr"),circle:e("circle"),clipPath:e("clipPath"),defs:e("defs"),ellipse:e("ellipse"),g:e("g"),image:e("image"),line:e("line"),linearGradient:e("linearGradient"),mask:e("mask"),path:e("path"),pattern:e("pattern"),polygon:e("polygon"),polyline:e("polyline"),radialGradient:e("radialGradient"),rect:e("rect"),stop:e("stop"),svg:e("svg"),text:e("text"),tspan:e("tspan")};return n})},661:function(t,e,n){"use strict";var r=n(613),o={createEditor:function(t,e){var n=new r(t,e);return this.hookEditor(n),n},hookEditor:function(t){var e=this.makeUnprivilegedEditor(t);this.handleTextChange=function(n,r,o){this.onEditorChangeText&&(this.onEditorChangeText(t.root.innerHTML,n,o,e),this.onEditorChangeSelection(t.getSelection(),o,e))}.bind(this),this.handleSelectionChange=function(t,n,r){this.onEditorChangeSelection&&this.onEditorChangeSelection(t,r,e)}.bind(this),t.on("text-change",this.handleTextChange),t.on("selection-change",this.handleSelectionChange)},unhookEditor:function(t){t.off("selection-change"),t.off("text-change")},setEditorReadOnly:function(t,e){e?t.disable():t.enable()},setEditorContents:function(t,e){var n=t.getSelection();"string"==typeof e?t.clipboard.dangerouslyPasteHTML(e):t.setContents(e),n&&this.setEditorSelection(t,n)},setEditorSelection:function(t,e){if(e){var n=t.getLength();e.index=Math.max(0,Math.min(e.index,n-1)),e.length=Math.max(0,Math.min(e.length,n-1-e.index))}t.setSelection(e)},makeUnprivilegedEditor:function(t){var e=t;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)}}}};t.exports=o},848:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){this.setState((0,a.default)({},t.target.name,t.target.value.trim()))}Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),a=r(i);e.default=o},849:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(11),l=r(a),u=n(22),s=r(u),c=n(2),f=r(c),d=n(5),h=r(d),p=n(4),v=r(p),y=n(3),m=r(y),g=n(1),b=r(g),_=n(13),w=(r(_),n(29)),O=r(w),k=n(27),x=n(57),N=r(x),E=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(k.Breadcrumb,{separator:">"},void 0,(0,i.default)(k.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"指南帮助")),(0,i.default)(k.Breadcrumb.Item,{},void 0,"选题指南"))),S=(0,i.default)("div",{className:"left-title"},void 0,"标题:"),j=(0,i.default)("div",{className:"left-title"},void 0,"文章内容:"),A=(0,i.default)("div",{className:"left-title"}),C=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.displayName="Introduction",n.state={html:""},n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleParames",value:function(t,e){this.setState((0,l.default)({},t,e.target.value))}},{key:"getContent",value:function(){O.default.callJson("content_edit-4/",{content:this.state.html,title:this.state.title}).then(function(t){k.message.success("编辑成功",.5)}).catch(function(t){k.message.warning("编辑失败",.5)})}},{key:"componentDidMount",value:function(){var t=this;O.default.getJson("content_show-4/").then(function(e){t.setState({html:e.content_data.content,title:e.content_data.title})}).catch(function(t){console.log(t)})}},{key:"changeHtml",value:function(t){this.setState({html:t})}},{key:"render",value:function(){var t=this.state.title;return(0,i.default)("div",{className:"xdcj-body"},void 0,E,(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,S,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Input,{onChange:this.handleParames.bind(this,"title"),value:t}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,j,(0,i.default)("div",{className:"right-content1 ql-editor"},void 0,b.default.createElement(N.default,{id:"t-w-editor",ref:"editor",editorHtml:this.state.html,changeHtml:this.changeHtml.bind(this)}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,A,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Button,{type:"primary",onClick:this.getContent.bind(this)},void 0,"发布"))))}}]),e}(b.default.Component);e.default=C},850:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(22),l=r(a),u=n(2),s=r(u),c=n(5),f=r(c),d=n(4),h=r(d),p=n(3),v=r(p),y=n(1),m=r(y),g=n(29),b=r(g),_=n(27),w=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(_.Breadcrumb,{separator:">"},void 0,(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"指南帮助")),(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,i.default)("a",{},void 0,"年度选题")))),O=(0,i.default)("div",{className:"xdcj-title"},void 0,"投稿指南"),k=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,l.default)(e)).call(this,t));return n.displayName="Index",n.state={html:"<p>112314</p>"},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"componentDidMount",value:function(){var t=this;b.default.getJson("content_show-4/").then(function(e){t.setState({html:e.content_data.content})}).catch(function(t){console.log(t)})}},{key:"render",value:function(){return(0,i.default)("div",{className:"xdcj-body"},void 0,w,(0,i.default)("div",{className:"xdcj-top-box"},void 0,O,(0,i.default)("div",{className:"xdcj-edit-button"},void 0,(0,i.default)(_.Button,{type:"primary",onClick:function(){return location.href="#/SelectGuide/edit"}},void 0,"编辑"))),(0,i.default)("div",{className:"tederen-editor-form-item xdcj-html ql-editor"},void 0,(0,i.default)("div",{dangerouslySetInnerHTML:{__html:this.state.html}})))}}]),e}(m.default.Component);e.default=k},851:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(11),l=r(a),u=n(22),s=r(u),c=n(2),f=r(c),d=n(5),h=r(d),p=n(4),v=r(p),y=n(3),m=r(y),g=n(1),b=r(g),_=n(13),w=(r(_),n(29)),O=r(w),k=n(27),x=n(57),N=r(x),E=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(k.Breadcrumb,{separator:">"},void 0,(0,i.default)(k.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"指南帮助")),(0,i.default)(k.Breadcrumb.Item,{},void 0,"投稿指南"))),S=(0,i.default)("div",{className:"left-title"},void 0,"标题:"),j=(0,i.default)("div",{className:"left-title"},void 0,"文章内容:"),A=(0,i.default)("div",{className:"left-title"}),C=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.displayName="Introduction",n.state={html:""},n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleParames",value:function(t,e){this.setState((0,l.default)({},t,e.target.value))}},{key:"getContent",value:function(){O.default.callJson("content_edit-3/",{content:this.state.html,title:this.state.title}).then(function(t){console.log(t),k.message.success("编辑成功",.5)}).catch(function(t){k.message.warning("编辑失败",.5)})}},{key:"componentDidMount",value:function(){var t=this;O.default.getJson("content_show-3/").then(function(e){t.setState({html:e.content_data.content,title:e.content_data.title})}).catch(function(t){console.log(t)})}},{key:"changeHtml",value:function(t){this.setState({html:t})}},{key:"render",value:function(){var t=this.state.title;return(0,i.default)("div",{className:"xdcj-body"},void 0,E,(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,S,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Input,{onChange:this.handleParames.bind(this,"title"),value:t}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,j,(0,i.default)("div",{className:"right-content1 ql-editor"},void 0,b.default.createElement(N.default,{id:"t-w-editor",ref:"editor",editorHtml:this.state.html,changeHtml:this.changeHtml.bind(this)
- }))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,A,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Button,{type:"primary",onClick:this.getContent.bind(this)},void 0,"发布"))))}}]),e}(b.default.Component);e.default=C},852:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(22),l=r(a),u=n(2),s=r(u),c=n(5),f=r(c),d=n(4),h=r(d),p=n(3),v=r(p),y=n(1),m=r(y),g=n(29),b=r(g),_=n(27),w=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(_.Breadcrumb,{separator:">"},void 0,(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"指南帮助")),(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,i.default)("a",{},void 0,"投稿指南")))),O=(0,i.default)("div",{className:"xdcj-title"},void 0,"投稿指南"),k=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,l.default)(e)).call(this,t));return n.displayName="Index",n.state={html:"<p>112314</p>"},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"componentDidMount",value:function(){var t=this;b.default.getJson("content_show-3/").then(function(e){t.setState({html:e.content_data.content})}).catch(function(t){console.log(t)})}},{key:"render",value:function(){return(0,i.default)("div",{className:"xdcj-body"},void 0,w,(0,i.default)("div",{className:"xdcj-top-box"},void 0,O,(0,i.default)("div",{className:"xdcj-edit-button"},void 0,(0,i.default)(_.Button,{type:"primary",onClick:function(){return location.href="#/SubmissionGuide/edit"}},void 0,"编辑"))),(0,i.default)("div",{className:"tederen-editor-form-item xdcj-html ql-editor"},void 0,(0,i.default)("div",{dangerouslySetInnerHTML:{__html:this.state.html}})))}}]),e}(m.default.Component);e.default=k},853:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(11),i=r(o),a=n(23),l=r(a),u=n(22),s=r(u),c=n(2),f=r(c),d=n(5),h=r(d),p=n(4),v=r(p),y=n(3),m=r(y),g=n(1),b=r(g),_=n(13);r(_);n(1227);var w=n(29),O=r(w),k=n(27),x=n(57),N=(r(x),k.Input.TextArea),E=k.Input.Search,S=(0,l.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,l.default)(k.Breadcrumb,{separator:">"},void 0,(0,l.default)(k.Breadcrumb.Item,{},void 0,(0,l.default)("a",{className:"tederen-breadcrumb-title"},void 0,"指南帮助")),(0,l.default)(k.Breadcrumb.Item,{},void 0,(0,l.default)("a",{},void 0,"读者提问")))),j=(0,l.default)(k.Button,{type:"primary"},void 0,"搜索"),A=(0,l.default)("label",{},void 0,"时间:"),C=(0,l.default)("label",{},void 0,"问题:"),T=(0,l.default)("label",{},void 0,"回复:"),q=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.displayName="FeedBack",n.state={EidtVisible:!1,dataList:[],loading:!0,columns:[{title:"用户昵称",dataIndex:"readername",key:"readername"},{title:"提问时间",dataIndex:"create_time",key:"create_time"},{title:"提问",dataIndex:"question",key:"question"},{title:"操作",dataIndex:"handle",key:"handle",render:function(t,e){return(0,l.default)("a",{href:"javascript:;",onClick:n.feedBack.bind(n,e)},void 0,"回复")}}]},n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"fetchData",value:function(){var t=this;O.default.getJson("reader_fb/").then(function(e){t.setState({dataList:e.reader_data,loading:!1})}).catch(function(e){t.setState({loading:!0})})}},{key:"feedBack",value:function(t){this.setState({EidtVisible:!0,selectItme:t})}},{key:"handleEidtOk",value:function(){var t=this;O.default.callJson("fb_question/",{rid:this.state.selectItme.rid,fb_content:this.state.fb_content}).then(function(e){k.message.success("回复成功",.5),t.setState({EidtVisible:!1})})}},{key:"handleChange",value:function(t,e){this.setState((0,i.default)({},t,e.target.value))}},{key:"handleSearch",value:function(){var t=this;this.setState({loading:!0}),O.default.callJson("reader_fb/",{search_question:this.state.search_question}).then(function(e){t.setState({dataList:e.reader_data,loading:!1})}).catch(function(e){t.setState({loading:!1,dataList:[]})})}},{key:"handleContent",value:function(t){this.setState({fb_content:t})}},{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var t=this,e=this.state,n=e.EidtVisible,r=e.loading,o=e.dataList,i=e.selectItme;return(0,l.default)("div",{className:"xdcj-body"},void 0,S,(0,l.default)("div",{className:"tederen-editor-form-item"},void 0,(0,l.default)("div",{className:"right-content1"},void 0,(0,l.default)(E,{placeholder:"输入问题",style:{width:200,marginRight:10},onChange:this.handleChange.bind(this,"search_question"),onSearch:this.handleSearch.bind(this)}),j)),(0,l.default)("div",{className:"tederen-editor-form-item"},void 0,(0,l.default)(k.Table,{dataSource:o,columns:this.state.columns,loading:r})),(0,l.default)(k.Modal,{title:i?"回复:"+i.readername:"---",visible:n,onOk:this.handleEidtOk.bind(this),onCancel:function(){return t.setState({EidtVisible:!1})}},void 0,(0,l.default)("div",{className:"form-input"},void 0,A,(0,l.default)("span",{},void 0,i?""+i.create_time:"---")),(0,l.default)("div",{className:"form-input"},void 0,C,(0,l.default)("span",{},void 0,i?""+i.question:"---")),(0,l.default)("div",{className:"form-input"},void 0,T,(0,l.default)(N,{rows:6,style:{width:400},onChange:this.handleContent.bind(this)}))))}}]),e}(b.default.Component);e.default=q},854:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(11),l=r(a),u=n(22),s=r(u),c=n(2),f=r(c),d=n(5),h=r(d),p=n(4),v=r(p),y=n(3),m=r(y),g=n(1),b=r(g),_=n(13),w=(r(_),n(29)),O=r(w),k=n(27),x=n(57),N=r(x),E=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(k.Breadcrumb,{separator:">"},void 0,(0,i.default)(k.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"指南帮助")),(0,i.default)(k.Breadcrumb.Item,{},void 0,"年度选题"))),S=(0,i.default)("div",{className:"left-title"},void 0,"标题:"),j=(0,i.default)("div",{className:"left-title"},void 0,"文章内容:"),A=(0,i.default)("div",{className:"left-title"}),C=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.displayName="Introduction",n.state={html:""},n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleParames",value:function(t,e){this.setState((0,l.default)({},t,e.target.value))}},{key:"getContent",value:function(){O.default.callJson("content_edit-5/",{content:this.state.html,title:this.state.title}).then(function(t){console.log(t),k.message.success("编辑成功",.5)}).catch(function(t){k.message.warning("编辑失败",.5)})}},{key:"componentDidMount",value:function(){var t=this;O.default.getJson("content_show-5/").then(function(e){t.setState({html:e.content_data.content,title:e.content_data.title})}).catch(function(t){console.log(t)})}},{key:"changeHtml",value:function(t){this.setState({html:t})}},{key:"render",value:function(){var t=this.state.title;return(0,i.default)("div",{className:"xdcj-body"},void 0,E,(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,S,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Input,{onChange:this.handleParames.bind(this,"title"),value:t}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,j,(0,i.default)("div",{className:"right-content1 ql-editor"},void 0,b.default.createElement(N.default,{id:"t-w-editor",ref:"editor",editorHtml:this.state.html,changeHtml:this.changeHtml.bind(this)}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,A,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Button,{type:"primary",onClick:this.getContent.bind(this)},void 0,"发布"))))}}]),e}(b.default.Component);e.default=C},855:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(22),l=r(a),u=n(2),s=r(u),c=n(5),f=r(c),d=n(4),h=r(d),p=n(3),v=r(p),y=n(1),m=r(y),g=n(29),b=r(g),_=n(27),w=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(_.Breadcrumb,{separator:">"},void 0,(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"指南帮助")),(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,i.default)("a",{},void 0,"年度选题")))),O=(0,i.default)("div",{className:"xdcj-title"},void 0,"投稿指南"),k=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,l.default)(e)).call(this,t));return n.displayName="Index",n.state={html:"<p>112314</p>"},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"componentDidMount",value:function(){var t=this;b.default.getJson("content_show-5/").then(function(e){t.setState({html:e.content_data.content})}).catch(function(t){console.log(t)})}},{key:"render",value:function(){return(0,i.default)("div",{className:"xdcj-body"},void 0,w,(0,i.default)("div",{className:"xdcj-top-box"},void 0,O,(0,i.default)("div",{className:"xdcj-edit-button"},void 0,(0,i.default)(_.Button,{type:"primary",onClick:function(){return location.href="#/yearGuide/edit"}},void 0,"编辑"))),(0,i.default)("div",{className:"tederen-editor-form-item xdcj-html ql-editor"},void 0,(0,i.default)("div",{dangerouslySetInnerHTML:{__html:this.state.html}})))}}]),e}(m.default.Component);e.default=k},856:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(6),l=r(a),u=n(11),s=r(u),c=n(22),f=r(c),d=n(2),h=r(d),p=n(5),v=r(p),y=n(4),m=r(y),g=n(3),b=r(g),_=n(1),w=r(_),O=n(13),k=(r(O),n(178)),x=r(k),N=n(29),E=r(N),S=n(27),j=n(57),A=r(j),C=S.Select.Option,T=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(S.Breadcrumb,{separator:">"},void 0,(0,i.default)(S.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"横幅展示")))),q=(0,i.default)("div",{className:"left-title"},void 0,"展示图片:"),P=(0,i.default)(C,{value:"1"},void 0,"横幅1"),L=(0,i.default)(C,{value:"2"},void 0,"横幅2"),I=(0,i.default)(C,{value:"3"},void 0,"横幅3"),M=(0,i.default)(C,{value:"4"},void 0,"横幅4"),R=(0,i.default)("div",{className:"left-title"},void 0,"展示图片:"),B=(0,i.default)("div",{className:"left-title"}),D=(0,i.default)("div",{className:"left-title"},void 0,"展示标题:"),U=(0,i.default)("div",{className:"left-title"},void 0,"文章链接:"),H=(0,i.default)("div",{className:"left-title"},void 0,"文章标题:"),F=(0,i.default)("div",{className:"left-title"},void 0,"作者:"),z=(0,i.default)("div",{className:"left-title"},void 0,"文章内容:"),K=(0,i.default)("div",{className:"left-title"}),Y=function(t){function e(t){(0,h.default)(this,e);var n=(0,m.default)(this,(e.__proto__||(0,f.default)(e)).call(this,t));return n.displayName="Introduction",n.state={position:"1",content:""},n}return(0,b.default)(e,t),(0,v.default)(e,[{key:"handleChange",value:function(t){this.setState({position:t})}},{key:"handleParames",value:function(t,e){this.setState((0,s.default)({},t,e.target.value))}},{key:"uploadImg",value:function(t){var e=this;(0,x.default)("image").then(function(n){x.default.toBase64(window.URL.createObjectURL(n)).then(function(n){"show"==t?E.default.callJson("upload_img/",{img_data:n}).then(function(t){e.setState({img_url:t.img_url})}).catch(function(t){console.log(t)}):e.setState({articleImg:n})})})}},{key:"public",value:function(){0==this.props.params.id?E.default.callJson("banner_edit/",(0,l.default)({},this.state,{content:this.state.content})).then(function(t){S.message.success("编辑成功")}).catch(function(t){S.message.warning(t.msg)}):E.default.callJson("banner_add/",(0,l.default)({},this.state,{content:this.state.content})).then(function(t){S.message.success("添加成功")}).catch(function(t){S.message.warning(t.msg)})}},{key:"componentDidMount",value:function(){0==this.props.params.id&&(console.log(JSON.parse(localStorage.getItem("drawItem"))),this.setState((0,l.default)({},JSON.parse(localStorage.getItem("drawItem")))))}},{key:"changeHtml",value:function(t){this.setState({content:t})}},{key:"render",value:function(){return(0,i.default)("div",{className:"xdcj-body"},void 0,T,(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,q,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(S.Select,{onChange:this.handleChange.bind(this),value:this.state.position,style:{width:200}},void 0,P,L,I,M))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,R,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(S.Button,{onClick:this.uploadImg.bind(this,"show")},void 0,"点击上传图片"))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,B,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)("img",{src:this.state.img_url,alt:"图片展示",className:"tederen-upload-img"}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,D,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(S.Input,{onChange:this.handleParames.bind(this,"display_title"),value:this.state.display_title}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,U,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(S.Input,{onChange:this.handleParames.bind(this,"article_url"),value:this.state.article_url}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,H,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(S.Input,{onChange:this.handleParames.bind(this,"article_title"),value:this.state.article_title}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,F,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(S.Input,{onChange:this.handleParames.bind(this,"author"),value:this.state.author}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,z,(0,i.default)("div",{className:"right-content1 ql-editor"},void 0,w.default.createElement(A.default,{id:"t-w-editor",ref:"editor",editorHtml:this.state.content,changeHtml:this.changeHtml.bind(this)}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,K,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(S.Button,{type:"primary",onClick:this.public.bind(this)},void 0,"发布"))))}}]),e}(w.default.Component);e.default=Y},857:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(179),i=r(o),a=n(11),l=r(a),u=n(23),s=r(u),c=n(22),f=r(c),d=n(2),h=r(d),p=n(5),v=r(p),y=n(4),m=r(y),g=n(3),b=r(g),_=n(1),w=r(_),O=n(13),k=(r(O),n(27)),x=n(57),N=(r(x),n(29)),E=r(N),S=(0,s.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,s.default)(k.Breadcrumb,{separator:">"},void 0,(0,s.default)(k.Breadcrumb.Item,{},void 0,(0,s.default)("a",{className:"tederen-breadcrumb-title"},void 0,"横幅展示")),(0,s.default)(k.Breadcrumb.Item,{},void 0,(0,s.default)("a",{},void 0,"投稿指南")))),j=(0,s.default)("div",{className:"xdcj-title"},void 0,"横幅展示"),A=function(t){function e(t){(0,h.default)(this,e);var n=(0,m.default)(this,(e.__proto__||(0,f.default)(e)).call(this,t));return n.displayName="UserManage",n.state={columns:[{title:"展示标题",dataIndex:"display_title",key:"display_title"},{title:"发布时间",dataIndex:"create_time",key:"create_time"},{title:"展示位置",dataIndex:"position",key:"position"},{title:"操作",dataIndex:"handle",key:"handle",width:200,render:function(t,e){return(0,s.default)("span",{},void 0,(0,s.default)("a",{href:"javascript:;",style:{marginRight:10},onClick:n.edit.bind(n,e)},void 0,"编辑"),(0,s.default)("a",{href:"javascript:;",onClick:n.delete.bind(n,e)},void 0,"删除"))}}]},n}return(0,b.default)(e,t),(0,v.default)(e,[{key:"fetchData",value:function(){var t=this;E.default.getJson("banner_show/").then(function(e){t.setState({dataList:e.content_data})}).catch(function(t){console.log(t)})}},{key:"addUser",value:function(){this.setState({visible:!0})}},{key:"handleOk",value:function(){this.setState({visible:!1})}},{key:"handleChange",value:function(t,e){this.setState((0,l.default)({},t,e.target.value))}},{key:"edit",value:function(t){localStorage.setItem("drawItem",(0,i.default)(t)),location.href="#/banner/edit/0"}},{key:"delete",value:function(t){var e=this;this.setState({loading:!0}),E.default.callJson("banner_delete/",{bid:t.bid}).then(function(t){k.message.success("操作成功"),e.setState({loading:!1}),e.fetchData()}).catch(function(t){e.setState({loading:!1}),k.message.warning("操作失败")})}},{key:"handleEidtOk",value:function(){this.setState({EidtVisible:!1})}},{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){return(0,s.default)("div",{className:"xdcj-body"},void 0,S,(0,s.default)("div",{className:"xdcj-top-box"},void 0,j,(0,s.default)("div",{className:"xdcj-edit-button"},void 0,(0,s.default)(k.Button,{type:"primary",onClick:function(){return location.href="#/banner/edit/1"}},void 0,"新增展示"))),(0,s.default)("div",{className:"tederen-editor-form-item"},void 0,(0,s.default)(k.Table,{dataSource:this.state.dataList,columns:this.state.columns,loading:this.state.loading})))}}]),e}(w.default.Component);e.default=A},859:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i,a=n(23),l=r(a),u=n(22),s=r(u),c=n(2),f=r(c),d=n(5),h=r(d),p=n(4),v=r(p),y=n(3),m=r(y),g=n(1),b=(r(g),n(167)),_=n(848),w=r(_);n(1228);var O=(0,l.default)("div",{},void 0,"欢迎使用现代财经综合平台"),k=(o=(0,b.connect)(function(t){var e=t.userData;return{userData:e}},n(239).default),o(i=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={},n.handleChange=w.default.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){return(0,l.default)("div",{className:"tederen-index"},void 0,(0,l.default)("img",{src:n(352)}),O)}}]),e}(g.Component))||i);e.default=k},860:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(22),l=r(a),u=n(2),s=r(u),c=n(5),f=r(c),d=n(4),h=r(d),p=n(3),v=r(p),y=n(1),m=r(y),g=n(29),b=r(g),_=n(27);n(457);var w=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(_.Breadcrumb,{separator:">"},void 0,(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"期刊简介")),(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,i.default)("a",{},void 0,"简介")))),O=(0,i.default)("div",{className:"xdcj-title"},void 0,"期刊简介"),k=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,l.default)(e)).call(this,t));return n.displayName="Index",n.state={html:""},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"componentDidMount",value:function(){var t=this;b.default.getJson("content_show-0/").then(function(e){t.setState({html:e.content_data.content})}).catch(function(t){console.log(t)})}},{key:"render",value:function(){return(0,i.default)("div",{className:"xdcj-body"},void 0,w,(0,i.default)("div",{className:"xdcj-top-box"},void 0,O,(0,i.default)("div",{className:"xdcj-edit-button"},void 0,(0,i.default)(_.Button,{type:"primary",onClick:function(){return location.href="#/introduction/edit"}},void 0,"编辑"))),(0,i.default)("div",{className:"tederen-editor-form-item xdcj-html ql-editor"},void 0,(0,i.default)("div",{dangerouslySetInnerHTML:{__html:this.state.html}})))}}]),e}(m.default.Component);e.default=k},861:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(22),l=r(a),u=n(2),s=r(u),c=n(5),f=r(c),d=n(4),h=r(d),p=n(3),v=r(p),y=n(1),m=r(y),g=n(13);r(g);n(456);var b=n(29),_=r(b),w=n(178),O=r(w),k=n(27),x=n(57),N=r(x),E=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(k.Breadcrumb,{separator:">"},void 0,(0,i.default)(k.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"期刊简介")),(0,i.default)(k.Breadcrumb.Item,{},void 0,(0,i.default)("a",{},void 0,"简介")))),S=(0,i.default)("div",{className:"left-title"},void 0,"内容:"),j=(0,i.default)("div",{className:"left-title"}),A=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,l.default)(e)).call(this,t));return n.displayName="Introduction",n.state={html:""},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"uploadImg",value:function(){var t=this;(0,O.default)("image").then(function(e){O.default.toBase64(window.URL.createObjectURL(e)).then(function(e){t.setState({uploadUrl:e})})})}},{key:"getContent",value:function(){_.default.callJson("content_edit-0/",{content:this.state.html}).then(function(t){k.message.success("编辑成功",.5)}).catch(function(t){k.message.warning("编辑失败",.5)})}},{key:"componentDidMount",value:function(){var t=this;_.default.getJson("content_show-0/").then(function(e){t.setState({html:e.content_data.content})}).catch(function(t){console.log(t)})}},{key:"changeHtml",value:function(t){this.setState({html:t})}},{key:"render",value:function(){return(0,i.default)("div",{className:"xdcj-body"},void 0,E,(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,S,(0,i.default)("div",{className:"right-content1 ql-editor"},void 0,m.default.createElement(N.default,{id:"t-w-editor",ref:"editor",editorHtml:this.state.html,changeHtml:this.changeHtml.bind(this)}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,j,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Button,{type:"primary",onClick:this.getContent.bind(this)},void 0,"发布"))))}}]),e}(m.default.Component);e.default=A},862:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(22),l=r(a),u=n(2),s=r(u),c=n(5),f=r(c),d=n(4),h=r(d),p=n(3),v=r(p),y=n(1),m=r(y),g=n(13);r(g);n(456);var b=n(29),_=r(b),w=n(27),O=n(57),k=r(O),x=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(w.Breadcrumb,{separator:">"},void 0,(0,i.default)(w.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"期刊简介")),(0,i.default)(w.Breadcrumb.Item,{},void 0,(0,i.default)("a",{},void 0,"主编致辞")))),N=(0,i.default)("div",{className:"left-title"},void 0,"内容:"),E=(0,i.default)("div",{className:"left-title"}),S=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,l.default)(e)).call(this,t));return n.displayName="Speech",n.state={html:""},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"getContent",value:function(){_.default.callJson("content_edit-1/",{content:this.state.html}).then(function(t){w.message.success("编辑成功",.5)}).catch(function(t){w.message.warning("编辑失败",.5)})}},{key:"componentDidMount",value:function(){var t=this;_.default.getJson("content_show-1/").then(function(e){t.setState({html:e.content_data.content})}).catch(function(t){console.log(t)})}},{key:"changeHtml",value:function(t){this.setState({html:t})}},{key:"render",value:function(){return(0,i.default)("div",{className:"xdcj-body"},void 0,x,(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,N,(0,i.default)("div",{className:"right-content1 ql-editor"},void 0,m.default.createElement(k.default,{id:"t-w-editor",ref:"editor",editorHtml:this.state.html,changeHtml:this.changeHtml.bind(this)}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,E,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(w.Button,{type:"primary",onClick:this.getContent.bind(this)},void 0,"发布"))))}}]),e}(m.default.Component);e.default=S},863:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(22),l=r(a),u=n(2),s=r(u),c=n(5),f=r(c),d=n(4),h=r(d),p=n(3),v=r(p),y=n(1),m=r(y),g=n(29),b=r(g),_=n(27),w=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(_.Breadcrumb,{separator:">"},void 0,(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"期刊简介")),(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,i.default)("a",{},void 0,"主编致辞")))),O=(0,i.default)("div",{className:"xdcj-title"},void 0,"主编致辞"),k=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,l.default)(e)).call(this,t));return n.displayName="Index",n.state={html:""},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"componentDidMount",value:function(){var t=this;b.default.getJson("content_show-1/").then(function(e){t.setState({html:e.content_data.content})}).catch(function(t){console.log(t)})}},{key:"render",value:function(){return(0,i.default)("div",{className:"xdcj-body"},void 0,w,(0,i.default)("div",{className:"xdcj-top-box"},void 0,O,(0,i.default)("div",{className:"xdcj-edit-button"},void 0,(0,i.default)(_.Button,{type:"primary",onClick:function(){return location.href="#/introduction/speech/edit"}},void 0,"编辑"))),(0,i.default)("div",{className:"tederen-editor-form-item xdcj-html ql-editor"},void 0,(0,i.default)("div",{dangerouslySetInnerHTML:{__html:this.state.html}})))}}]),e}(m.default.Component);e.default=k},864:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(23),i=r(o),a=n(22),l=r(a),u=n(2),s=r(u),c=n(5),f=r(c),d=n(4),h=r(d),p=n(3),v=r(p),y=n(1),m=(r(y),n(167)),g=n(27);n(1229);var b=g.Form.Item,_=(0,i.default)(g.Button,{type:"primary",htmlType:"submit",className:"login-form-button"},void 0,"登录"),w=(0,i.default)("div",{id:"particles-js"}),O=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,l.default)(e)).call(this,t));return n.handleSubmit=function(t){t.preventDefault();var e=null,r=n.state.account;return r?(n.props.form.validateFields(function(t,n){t||(e=n,e.userName=r)}),void(e&&n.props.login(e))):(g.message.warning("请输入账号",.5),!1)},n.displayName="Login",n.state={app:!1},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"handleChange",value:function(t){var e=t.target.value;return e.length>16?(g.message.warning("账户不能大于16个字符",.5),!1):void this.setState({account:e})}},{key:"componentDidMount",value:function(){this.setState({app:!0})}},{key:"componentWillUnmount",value:function(){this.setState({app:!1})}},{key:"render",value:function(){var t=this.props.form.getFieldDecorator,e=this.state,r=e.app,o=e.account;return r?(0,i.default)("div",{className:"tederen-login"},void 0,(0,i.default)("div",{className:"login-main"},void 0,(0,i.default)("div",{className:"logo-container"},void 0,(0,i.default)("img",{src:n(352)})),(0,i.default)(g.Form,{onSubmit:this.handleSubmit,className:"login-form"},void 0,(0,i.default)(b,{},void 0,(0,i.default)(g.Input,{prefix:(0,i.default)(g.Icon,{type:"user",style:{fontSize:13}}),placeholder:"请输入用户名",onChange:this.handleChange.bind(this),value:o})),(0,i.default)(b,{},void 0,t("password",{rules:[{required:!0,message:"请输入密码!"}]})((0,i.default)(g.Input,{prefix:(0,i.default)(g.Icon,{type:"lock",style:{fontSize:13}}),type:"password",placeholder:"请输入密码"}))),(0,i.default)(b,{},void 0,_))),w,(0,i.default)("script",{src:n(1641)})):null}}]),e}(y.Component),k=function(t){var e=t.userData;return{userData:e}},x=n(239).default;e.default=(0,m.connect)(k,x)(g.Form.create()(O))},865:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(22),l=r(a),u=n(2),s=r(u),c=n(5),f=r(c),d=n(4),h=r(d),p=n(3),v=r(p),y=n(1),m=r(y),g=n(29),b=r(g),_=n(27),w=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(_.Breadcrumb,{separator:">"},void 0,(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"编委成员")))),O=(0,i.default)("div",{className:"xdcj-title"},void 0,"编委成员"),k=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,l.default)(e)).call(this,t));return n.displayName="Index",n.state={html:""},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"componentDidMount",value:function(){var t=this;b.default.getJson("content_show-2/").then(function(e){t.setState({html:e.content_data.content})}).catch(function(t){console.log(t)})}},{key:"render",value:function(){return(0,i.default)("div",{className:"xdcj-body"},void 0,w,(0,i.default)("div",{className:"xdcj-top-box"},void 0,O,(0,i.default)("div",{className:"xdcj-edit-button"},void 0,(0,i.default)(_.Button,{type:"primary",onClick:function(){return location.href="#/memberEditor/edit/:id"}},void 0,"编辑"))),(0,i.default)("div",{className:"tederen-editor-form-item xdcj-html ql-editor"},void 0,(0,i.default)("div",{dangerouslySetInnerHTML:{__html:this.state.html}})))}}]),e}(m.default.Component);e.default=k},866:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(11),l=r(a),u=n(22),s=r(u),c=n(2),f=r(c),d=n(5),h=r(d),p=n(4),v=r(p),y=n(3),m=r(y),g=n(1),b=r(g),_=n(13),w=(r(_),n(29)),O=r(w),k=n(27),x=n(57),N=r(x),E=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(k.Breadcrumb,{separator:">"},void 0,(0,i.default)(k.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"编委成员")))),S=(0,i.default)("div",{className:"left-title"},void 0,"标题:"),j=(0,i.default)("div",{className:"left-title"},void 0,"文章内容:"),A=(0,i.default)("div",{className:"left-title"}),C=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.displayName="Introduction",n.state={html:""},n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleParames",value:function(t,e){this.setState((0,l.default)({},t,e.target.value))}},{key:"getContent",value:function(){O.default.callJson("content_edit-2/",{content:this.state.html,title:this.state.title}).then(function(t){console.log(t),k.message.success("编辑成功",.5)}).catch(function(t){k.message.warning("编辑失败",.5)})}},{key:"componentDidMount",value:function(){var t=this;O.default.getJson("content_show-2/").then(function(e){t.setState({html:e.content_data.content,title:e.content_data.title})}).catch(function(t){console.log(t)})}},{key:"changeHtml",value:function(t){this.setState({html:t})}},{key:"render",value:function(){var t=this.state.title;return(0,i.default)("div",{className:"xdcj-body"},void 0,E,(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,S,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Input,{onChange:this.handleParames.bind(this,"title"),value:t}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,j,(0,i.default)("div",{className:"right-content1 ql-editor"},void 0,b.default.createElement(N.default,{id:"t-w-editor",ref:"editor",editorHtml:this.state.html,changeHtml:this.changeHtml.bind(this)}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,A,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Button,{type:"primary",onClick:this.getContent.bind(this)},void 0,"发布"))))}}]),e}(b.default.Component);e.default=C},867:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(22),l=r(a),u=n(2),s=r(u),c=n(5),f=r(c),d=n(4),h=r(d),p=n(3),v=r(p),y=n(1),m=r(y),g=n(29),b=r(g),_=n(27),w=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(_.Breadcrumb,{separator:">"},void 0,(0,i.default)(_.Breadcrumb.Item,{},void 0,(0,
- i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"最新动态")))),O=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,l.default)(e)).call(this,t));return n.displayName="Detail",n.state={html:""},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"componentDidMount",value:function(){var t=this;b.default.callJson("news_look/",{nid:this.props.params.id}).then(function(e){t.setState({html:e.look_data.content})}).catch(function(t){console.log(t)})}},{key:"render",value:function(){return(0,i.default)("div",{className:"xdcj-body"},void 0,w,(0,i.default)("div",{className:"tederen-editor-form-item xdcj-html ql-editor"},void 0,(0,i.default)("div",{dangerouslySetInnerHTML:{__html:this.state.html}})))}}]),e}(m.default.Component);e.default=O},868:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(23),i=r(o),a=n(11),l=r(a),u=n(22),s=r(u),c=n(2),f=r(c),d=n(5),h=r(d),p=n(4),v=r(p),y=n(3),m=r(y),g=n(1),b=r(g),_=n(13),w=(r(_),n(178)),O=r(w),k=n(27),x=n(57),N=r(x),E=n(29),S=r(E),j=(0,i.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,i.default)(k.Breadcrumb,{separator:">"},void 0,(0,i.default)(k.Breadcrumb.Item,{},void 0,(0,i.default)("a",{className:"tederen-breadcrumb-title"},void 0,"最新动态")))),A=(0,i.default)("div",{className:"left-title"},void 0,"文章标题:"),C=(0,i.default)("div",{className:"left-title"},void 0,"作者:"),T=(0,i.default)("div",{className:"left-title"},void 0,"文章内容:"),q=(0,i.default)("div",{className:"left-title"}),P=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.displayName="Introduction",n.state={content:""},n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleParames",value:function(t,e){this.setState((0,l.default)({},t,e.target.value))}},{key:"uploadImg",value:function(){var t=this;(0,O.default)("image").then(function(e){O.default.toBase64(window.URL.createObjectURL(e)).then(function(e){t.setState({uploadUrl:e})})})}},{key:"public",value:function(){S.default.callJson("news_add/",{title:this.state.title,author:this.state.author,content:this.state.content,img_url:this.state.img_url}).then(function(t){k.message.success("添加成功")}).catch(function(t){k.message.success("添加失败")})}},{key:"changeHtml",value:function(t){this.setState({content:t})}},{key:"render",value:function(){return(0,i.default)("div",{className:"xdcj-body"},void 0,j,(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,A,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Input,{onChange:this.handleParames.bind(this,"title"),value:this.state.title}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,C,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Input,{onChange:this.handleParames.bind(this,"author"),value:this.state.author}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,T,(0,i.default)("div",{className:"right-content1 ql-editor"},void 0,b.default.createElement(N.default,{id:"t-w-editor",ref:"editor",editorHtml:this.state.content,changeHtml:this.changeHtml.bind(this)}))),(0,i.default)("div",{className:"tederen-editor-form-item"},void 0,q,(0,i.default)("div",{className:"right-content1"},void 0,(0,i.default)(k.Button,{type:"primary",onClick:this.public.bind(this)},void 0,"发布"))))}}]),e}(b.default.Component);e.default=P},869:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(11),i=r(o),a=n(23),l=r(a),u=n(22),s=r(u),c=n(2),f=r(c),d=n(5),h=r(d),p=n(4),v=r(p),y=n(3),m=r(y),g=n(1),b=r(g),_=n(13),w=(r(_),n(27)),O=n(57),k=(r(O),n(29)),x=r(k),N=(0,l.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,l.default)(w.Breadcrumb,{separator:">"},void 0,(0,l.default)(w.Breadcrumb.Item,{},void 0,(0,l.default)("a",{className:"tederen-breadcrumb-title"},void 0,"最新动态")))),E=(0,l.default)("div",{className:"xdcj-title"},void 0,"最新动态"),S=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.displayName="UserManage",n.state={columns:[{title:"展示标题",dataIndex:"title",key:"title"},{title:"发布时间",dataIndex:"create_time",key:"create_time"},{title:"作者",dataIndex:"author",key:"author"},{title:"操作",dataIndex:"handle",key:"handle",width:200,render:function(t,e){return(0,l.default)("span",{},void 0,(0,l.default)("a",{href:"javascript:;",style:{marginRight:10},onClick:n.watch.bind(n,e)},void 0,"查看"),(0,l.default)("a",{href:"javascript:;",onClick:n.delete.bind(n,e)},void 0,"删除"))}}]},n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"fetchData",value:function(){var t=this;x.default.getJson("news_show/").then(function(e){console.log(e),t.setState({dataList:e.content_data})}).catch(function(t){console.log(t)})}},{key:"watch",value:function(t){location.href="#/news/detail/"+t.nid}},{key:"delete",value:function(t){var e=this;this.setState({loading:!0}),x.default.callJson("news_delete/",{nid:t.nid}).then(function(t){e.fetchData(),e.setState({loading:!1}),w.message.success("操作成功",.5)}).catch(function(t){e.setState({loading:!1}),w.message.warning("操作失败",.5)})}},{key:"addUser",value:function(){this.setState({visible:!0})}},{key:"handleOk",value:function(){this.setState({visible:!1})}},{key:"handleChange",value:function(t,e){this.setState((0,i.default)({},t,e.target.value))}},{key:"handleEidtOk",value:function(){this.setState({EidtVisible:!1})}},{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){return(0,l.default)("div",{className:"xdcj-body"},void 0,N,(0,l.default)("div",{className:"xdcj-top-box"},void 0,E,(0,l.default)("div",{className:"xdcj-edit-button"},void 0,(0,l.default)(w.Button,{type:"primary",onClick:function(){return location.href="#/news/edit/:id"}},void 0,"新增动态"))),(0,l.default)("div",{className:"tederen-editor-form-item"},void 0,(0,l.default)(w.Table,{dataSource:this.state.dataList,columns:this.state.columns,loading:this.state.loading})))}}]),e}(b.default.Component);e.default=S},870:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(6),i=r(o),a=n(23),l=r(a),u=n(22),s=r(u),c=n(2),f=r(c),d=n(5),h=r(d),p=n(4),v=r(p),y=n(3),m=r(y),g=n(1),b=r(g),_=n(27),w=n(29),O=r(w);n(1230);var k=_.Form.Item,x=(0,l.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,l.default)(_.Breadcrumb,{separator:">"},void 0,(0,l.default)(_.Breadcrumb.Item,{},void 0,(0,l.default)("a",{className:"tederen-breadcrumb-title"},void 0,"修改密码")))),N=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.handlePost=function(t){t.preventDefault();var e=n.state,r=e.password,o=e.newpassword,i=e.repassword,a=JSON.parse(localStorage["reduxPersist:userData"]).id;return void 0==r||""==r?(_.message.warning("请输入密码"),!1):void 0==o||""==o?(_.message.warning("请输入新密码"),!1):void 0==i||""==i?(_.message.warning("请重复输入新密码"),!1):o!==i?(_.message.warning("重新输入新密码"),n.setState({repassword:""}),!1):void O.default.callJson("/admin/putpwd?id="+a+"&"+encodeURIComponent("oldPassword")+"="+encodeURIComponent(r)+"&"+encodeURIComponent("newPassword")+"="+encodeURIComponent(o))().then(function(t){_.message.success("修改密码成功"),n.setState({password:"",newpassword:"",repassword:""})}).catch(function(t){_.message.warning("修改密码失败"),console.log(t)})},n.displayName="ChangePWD",n.state={},n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this,e=this.state,n=e.password,r=e.newpassword,o=e.repassword,a="horizontal",u="horizontal"===a?{labelCol:{span:4},wrapperCol:{span:14}}:null,s="horizontal"===a?{wrapperCol:{span:14,offset:4}}:null;return(0,l.default)("div",{className:"tederen-changepwd"},void 0,x,(0,l.default)("div",{},void 0,(0,l.default)(_.Form,{layout:a},void 0,b.default.createElement(k,(0,i.default)({label:"旧密码"},u),(0,l.default)(_.Input,{placeholder:"",type:"password",value:n,onChange:function(e){t.setState((0,i.default)({},t.state,{password:e.target.value}))}})),b.default.createElement(k,(0,i.default)({label:"新密码"},u),(0,l.default)(_.Input,{placeholder:"",type:"password",value:r,onChange:function(e){t.setState((0,i.default)({},t.state,{newpassword:e.target.value}))}})),b.default.createElement(k,(0,i.default)({label:"重复新密码"},u),(0,l.default)(_.Input,{placeholder:"",type:"password",value:o,onChange:function(e){t.setState((0,i.default)({},t.state,{repassword:e.target.value}))}})),b.default.createElement(k,s,(0,l.default)(_.Button,{type:"primary",size:"large",onClick:this.handlePost.bind(this)},void 0,"提交")))))}}]),e}(g.Component);e.default=N},871:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(23),i=r(o),a=n(179),l=r(a),u=n(22),s=r(u),c=n(2),f=r(c),d=n(5),h=r(d),p=n(4),v=r(p),y=n(3),m=r(y),g=n(1);r(g);n(1231);var b=n(29),_=r(b),w=n(27),O=w.Form.Item,k=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.handleSubmit=function(t){t.preventDefault(),n.props.form.validateFields(function(t,e){t||_.default.callJson1("/admin/valcode")({code:e.code,phone:e.phone,type:6}).then(function(t){w.message.success("验证成功"),n.setState({passwordStatus:!0,telephone:e.phone})}).catch(function(t){w.message.warning(t)})})},n.modifyPass=function(t){t.preventDefault();var e=n.state,r=e.password,o=e.repassword,i=e.telephone;return r!=o?(w.message.warning("请保证重复密码与新密码一致"),!1):void n.props.form.validateFields(function(t,e){t||_.default.callJson1("/admin/forget-pwd?password="+r+"&phone="+i)().then(function(t){w.message.success("密码修改成功"),n.setState({password:"",repassword:""}),location.href="#/"}).catch(function(t){w.message.warning(t)})})},n.getCode=function(t){t.preventDefault();var e=n.state.phone;return e?void _.default.callJson1("/admin/sendcode?phone="+e+"&valType=6")().then(function(t){w.message.success("验证码获取成功"),localStorage["reduxPersist:userData"]=(0,l.default)(t),n.setState({codeStatus:!0})}).catch(function(t){w.message.warning(t)}):(w.message.warning("请输入手机号"),!1)},n.displayName="Forget",n.state={codeStatus:!1,passwordStatus:!1},n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this,e=this.state,r=e.codeStatus,o=e.passwordStatus,a=this.props.form.getFieldDecorator;return(0,i.default)("div",{className:"tederen-forget"},void 0,(0,i.default)("div",{className:"tederen-forget-box"},void 0,(0,i.default)("div",{className:"logo-container"},void 0,(0,i.default)("img",{src:n(352)})),o?(0,i.default)(w.Form,{},void 0,(0,i.default)(O,{},void 0,a("password",{rules:[{required:!0,message:"请输入新密码!"}]})((0,i.default)(w.Input,{size:"large",placeholder:"请输入新密码",onChange:function(e){t.setState({phone:e.target.value})}}))),(0,i.default)(O,{},void 0,a("repassword",{rules:[{required:!0,message:"请再次输入密码!"}]})((0,i.default)(w.Input,{size:"large",placeholder:"请再次输入密码",onChange:function(e){t.setState({phone:e.target.value})}}))),(0,i.default)(O,{},void 0,(0,i.default)(w.Button,{type:"primary",htmlType:"submit",className:"login-form-button",onClick:this.modifyPass},void 0,"确定"))):(0,i.default)(w.Form,{},void 0,(0,i.default)(O,{},void 0,a("phone",{rules:[{required:!0,message:"请输入手机号!"}]})((0,i.default)(w.Input,{size:"large",placeholder:"请输入手机号",onChange:function(e){t.setState({phone:e.target.value})}}))),(0,i.default)(O,{},void 0,(0,i.default)(w.Row,{gutter:8},void 0,(0,i.default)(w.Col,{span:12},void 0,a("code",{rules:[{required:!0,message:"请输入验证码!"}]})((0,i.default)(w.Input,{size:"large",placeholder:"请输入验证码",onChange:function(e){t.setState({code:e.target.value})}}))),(0,i.default)(w.Col,{span:12},void 0,(0,i.default)(w.Button,{size:"large",onClick:this.getCode,disabled:r},void 0,"获取验证码")))),(0,i.default)(O,{},void 0,(0,i.default)(w.Button,{type:"primary",htmlType:"submit",className:"login-form-button",onClick:this.handleSubmit},void 0,"确定")))))}}]),e}(g.Component);e.default=w.Form.create()(k)},872:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e=["超级管理员","管理员","普通用户"];return e[t]}function i(t){var e=["离职","在职"];return e[t]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(6),l=r(a),u=n(11),s=r(u),c=n(23),f=r(c),d=n(22),h=r(d),p=n(2),v=r(p),y=n(5),m=r(y),g=n(4),b=r(g),_=n(3),w=r(_),O=n(1),k=r(O),x=n(13);r(x);n(1232);var N=n(29),E=r(N),S=n(27),j=n(57),A=(r(j),S.Select.Option),C=S.Input.Search,T=S.Modal.confirm,q=(0,f.default)("div",{className:"tederen-breadcrumb-container"},void 0,(0,f.default)(S.Breadcrumb,{separator:">"},void 0,(0,f.default)(S.Breadcrumb.Item,{},void 0,(0,f.default)("a",{className:"tederen-breadcrumb-title"},void 0,"指南帮助")),(0,f.default)(S.Breadcrumb.Item,{},void 0,(0,f.default)("a",{},void 0,"投稿指南")))),P=(0,f.default)("label",{},void 0,"用户名:"),L=(0,f.default)("label",{},void 0,"密码:"),I=(0,f.default)("label",{},void 0,"确认密码:"),M=(0,f.default)("label",{},void 0,"状态:"),R=(0,f.default)(A,{value:"1"},void 0,"在职"),B=(0,f.default)(A,{value:"0"},void 0,"离职"),D=(0,f.default)("label",{},void 0,"权限:"),U=(0,f.default)(A,{value:"0"},void 0,"超级管理员"),H=(0,f.default)(A,{value:"1"},void 0,"管理员"),F=(0,f.default)(A,{value:"2"},void 0,"普通用户"),z=(0,f.default)("label",{},void 0,"状态:"),K=(0,f.default)(A,{value:"1"},void 0,"在职"),Y=(0,f.default)(A,{value:"0"},void 0,"离职"),V=(0,f.default)("label",{},void 0,"权限:"),Z=(0,f.default)(A,{value:"0"},void 0,"超级管理员"),W=(0,f.default)(A,{value:"1"},void 0,"管理员"),G=(0,f.default)(A,{value:"2"},void 0,"普通用户"),J=function(t){function e(t){(0,v.default)(this,e);var n=(0,b.default)(this,(e.__proto__||(0,h.default)(e)).call(this,t));return n.displayName="UserManage",n.state={visible:!1,EidtVisible:!1,loading:!0,userList:[],columns:[{title:"用户名",dataIndex:"username",key:"username"},{title:"姓名",dataIndex:"realname",key:"realname"},{title:"状态",dataIndex:"status",key:"status",render:function(t){return(0,f.default)("span",{},void 0,i(t))}},{title:"权限",dataIndex:"permission",key:"permission",render:function(t){return(0,f.default)("span",{},void 0,o(t))}},{title:"操作",dataIndex:"handle",key:"handle",width:200,render:function(t,e){return(0,f.default)("span",{},void 0,(0,f.default)("a",{href:"javascript:;",style:{marginRight:10},onClick:n.edit.bind(n,e)},void 0,"编辑"),(0,f.default)("a",{href:"javascript:;",onClick:n.deleteUsers.bind(n,e)},void 0,"删除"))}}]},n}return(0,w.default)(e,t),(0,m.default)(e,[{key:"fetchData",value:function(t){var e=this;E.default.getJson("usermanage/").then(function(t){e.setState({userList:t.user_data,loading:!1})}).catch(function(t){e.setState({loading:!1})})}},{key:"addUser",value:function(){this.setState({visible:!0})}},{key:"deleteUsers",value:function(t){var e=this;T({title:"删除",content:"你确定要删除此用户?",okText:"确定",cancelText:"取消",onOk:function(){E.default.callJson("deleteuser/",{uid:t.uid}).then(function(t){S.message.success(t.msg),e.fetchData()}).catch(function(t){S.message.warning("操作失败")})},onCancel:function(){}})}},{key:"handleOk",value:function(){var t=this,e=this.state,n=e.username,r=e.password,o=e.selectItem,i=e.repassword;return n?r?r!=i?(S.message.warning("第一次和第二次密码输入不匹配"),!1):o?void E.default.callJson("adduser/",{username:n,password:r,status:o.status,permission:o.permission,real_name:this.state.real_name}).then(function(e){S.message.success(e.msg),t.setState({visible:!1,selectItem:null,username:"",password:"",repassword:""}),t.fetchData()}).catch(function(t){S.message.warning(t.msg,.5)}):(S.message.warning("请选择状态和权限"),!1):(S.message.warning("请输入密码"),!1):(S.message.warning("请输入用户名"),!1)}},{key:"handleCancle",value:function(){this.setState({visible:!1,EidtVisible:!1,selectItem:null,username:"",password:"",repassword:""})}},{key:"handleChange",value:function(t,e){this.setState((0,s.default)({},t,e.target.value))}},{key:"handleSelect",value:function(t,e){this.setState({selectItem:(0,l.default)({},this.state.selectItem,(0,s.default)({},t,e))})}},{key:"edit",value:function(t){this.setState({EidtVisible:!0,selectItem:t})}},{key:"handleEidtOk",value:function(){var t=this,e=this.state.selectItem;E.default.callJson("updateuser/",{uid:e.uid,status:e.status,permission:e.permission}).then(function(e){S.message.success("编辑成功"),t.setState({EidtVisible:!1}),t.fetchData()}).catch(function(t){S.message.warning("编辑失败")})}},{key:"handleSearch",value:function(){var t=this;this.setState({loading:!0}),E.default.callJson("usermanage/",{search_name:this.state.search_name}).then(function(e){S.message.success("获取成功",.5),t.setState({userList:e.user_data,loading:!1})}).catch(function(e){S.message.warning("未获取到数据",.5),t.setState({loading:!1,userList:[]})})}},{key:"componentDidMount",value:function(){this.fetchData()}},{key:"render",value:function(){var t=this.state,e=t.visible,n=t.EidtVisible,r=t.userList,a=t.columns,l=t.loading,u=t.selectItem;return(0,f.default)("div",{className:"xdcj-body"},void 0,q,(0,f.default)("div",{className:"tederen-editor-form-item"},void 0,(0,f.default)("div",{className:"right-content1"},void 0,(0,f.default)(C,{placeholder:"输入用户名",style:{width:200,marginRight:10},onChange:this.handleChange.bind(this,"search_name"),onSearch:this.handleSearch.bind(this)}),(0,f.default)(S.Button,{type:"primary",onClick:this.handleSearch.bind(this)},void 0,"搜索"),(0,f.default)(S.Button,{type:"primary",style:{float:"right"},onClick:this.addUser.bind(this)},void 0,"新增用户"))),(0,f.default)("div",{className:"tederen-editor-form-item"},void 0,(0,f.default)(S.Table,{dataSource:r,columns:a,loading:l})),(0,f.default)(S.Modal,{title:"新增用户",visible:e,onOk:this.handleOk.bind(this),onCancel:this.handleCancle.bind(this)},void 0,(0,f.default)("div",{className:"form-input"},void 0,P,(0,f.default)(S.Input,{style:{width:300},onChange:this.handleChange.bind(this,"username")})),(0,f.default)("div",{className:"form-input"},void 0,L,(0,f.default)(S.Input,{style:{width:300},onChange:this.handleChange.bind(this,"password")})),(0,f.default)("div",{className:"form-input"},void 0,I,(0,f.default)(S.Input,{style:{width:300},onChange:this.handleChange.bind(this,"repassword")})),(0,f.default)("div",{className:"form-input"},void 0,M,(0,f.default)(S.Select,{style:{width:200},onChange:this.handleSelect.bind(this,"status"),value:u?i(u.status):""},void 0,R,B)),(0,f.default)("div",{className:"form-input"},void 0,D,(0,f.default)(S.Select,{style:{width:200},onChange:this.handleSelect.bind(this,"permission"),value:u?o(u.permission):""},void 0,U,H,F))),(0,f.default)(S.Modal,{title:"编辑用户",visible:n,onOk:this.handleEidtOk.bind(this),onCancel:this.handleCancle.bind(this)},void 0,(0,f.default)("div",{className:"form-input"},void 0,z,(0,f.default)(S.Select,{style:{width:200},onChange:this.handleSelect.bind(this,"status"),value:u?i(u.status):""},void 0,K,Y)),(0,f.default)("div",{className:"form-input"},void 0,V,(0,f.default)(S.Select,{style:{width:200},onChange:this.handleSelect.bind(this,"permission"),value:u?o(u.permission):""},void 0,Z,W,G))))}}]),e}(k.default.Component);e.default=J},884:function(t,e){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function r(t){return 3*t.length/4-n(t)}function o(t){var e,r,o,i,a,l=t.length;i=n(t),a=new c(3*l/4-i),r=i>0?l-4:l;var u=0;for(e=0;e<r;e+=4)o=s[t.charCodeAt(e)]<<18|s[t.charCodeAt(e+1)]<<12|s[t.charCodeAt(e+2)]<<6|s[t.charCodeAt(e+3)],a[u++]=o>>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=s[t.charCodeAt(e)]<<2|s[t.charCodeAt(e+1)]>>4,a[u++]=255&o):1===i&&(o=s[t.charCodeAt(e)]<<10|s[t.charCodeAt(e+1)]<<4|s[t.charCodeAt(e+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}function i(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function a(t,e,n){for(var r,o=[],a=e;a<n;a+=3)r=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(i(r));return o.join("")}function l(t){for(var e,n=t.length,r=n%3,o="",i=[],l=16383,s=0,c=n-r;s<c;s+=l)i.push(a(t,s,s+l>c?c:s+l));return 1===r?(e=t[n-1],o+=u[e>>2],o+=u[e<<4&63],o+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],o+=u[e>>10],o+=u[e>>4&63],o+=u[e<<2&63],o+="="),i.push(o),i.join("")}e.byteLength=r,e.toByteArray=o,e.fromByteArray=l;for(var u=[],s=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,h=f.length;d<h;++d)u[d]=f[d],s[f.charCodeAt(d)]=d;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},885:function(t,e,n){(function(t){/*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
- * @license MIT
- */
- "use strict";function r(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function o(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=a.prototype):(null===t&&(t=new a(e)),t.length=e),t}function a(t,e,n){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,n,r):"string"==typeof e?f(t,e,n):p(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function s(t,e,n,r){return u(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function c(t,e){if(u(e),t=i(t,e<0?0:0|v(e)),!a.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!a.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|m(e,n);t=i(t,r);var o=t.write(e,n);return o!==r&&(t=t.slice(0,o)),t}function d(t,e){var n=e.length<0?0:0|v(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),a.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=a.prototype):t=d(t,e),t}function p(t,e){if(a.isBuffer(e)){var n=0|v(e.length);return t=i(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||J(e.length)?i(t,0):d(t,e);if("Buffer"===e.type&&X(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),a.alloc(+t)}function m(t,e){if(a.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(r)return Y(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return q(this,e,n);case"base64":return j(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function _(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=a.from(e,r)),a.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,o);if("number"==typeof e)return e&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,o){function i(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,l=t.length,u=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,l/=2,u/=2,n/=2}var s;if(o){var c=-1;for(s=n;s<l;s++)if(i(t,s)===i(e,c===-1?0:s-c)){if(c===-1&&(c=s),s-c+1===u)return c*a}else c!==-1&&(s-=s-c),c=-1}else for(n+u>l&&(n=l-u),s=n;s>=0;s--){for(var f=!0,d=0;d<u;d++)if(i(t,s+d)!==i(e,d)){f=!1;break}if(f)return s}return-1}function O(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var l=parseInt(e.substr(2*a,2),16);if(isNaN(l))return a;t[n+a]=l}return a}function k(t,e,n,r){return G(Y(e,t.length-n),t,n,r)}function x(t,e,n,r){return G(V(e),t,n,r)}function N(t,e,n,r){return x(t,e,n,r)}function E(t,e,n,r){return G(W(e),t,n,r)}function S(t,e,n,r){return G(Z(e,t.length-n),t,n,r)}function j(t,e,n){return 0===e&&n===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i=t[o],a=null,l=i>239?4:i>223?3:i>191?2:1;if(o+l<=n){var u,s,c,f;switch(l){case 1:i<128&&(a=i);break;case 2:u=t[o+1],128===(192&u)&&(f=(31&i)<<6|63&u,f>127&&(a=f));break;case 3:u=t[o+1],s=t[o+2],128===(192&u)&&128===(192&s)&&(f=(15&i)<<12|(63&u)<<6|63&s,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:u=t[o+1],s=t[o+2],c=t[o+3],128===(192&u)&&128===(192&s)&&128===(192&c)&&(f=(15&i)<<18|(63&u)<<12|(63&s)<<6|63&c,f>65535&&f<1114112&&(a=f))}}null===a?(a=65533,l=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=l}return C(r)}function C(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=tt));return n}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function q(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function P(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=K(t[i]);return o}function L(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function I(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,n,r,o,i){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function R(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function B(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function D(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(t,e,n,r,o){return o||D(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(t,e,n,r,23,4),n+4}function H(t,e,n,r,o){return o||D(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(t,e,n,r,52,8),n+8}function F(t){if(t=z(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function K(t){return t<16?"0"+t.toString(16):t.toString(16)}function Y(t,e){e=e||1/0;for(var n,r=t.length,o=null,i=[],a=0;a<r;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Z(t,e){for(var n,r,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}function W(t){return Q.toByteArray(F(t))}function G(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function J(t){return t!==t}var Q=n(884),$=n(1259),X=n(1260);e.Buffer=a,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),e.kMaxLength=o(),a.poolSize=8192,a._augment=function(t){return t.__proto__=a.prototype,t},a.from=function(t,e,n){return l(null,t,e,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(t,e,n){return s(null,t,e,n)},a.allocUnsafe=function(t){return c(null,t)},a.allocUnsafeSlow=function(t){return c(null,t)},a.isBuffer=function(t){return!(null==t||!t._isBuffer)},a.compare=function(t,e){if(!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!X(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=a.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var i=t[n];if(!a.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},a.byteLength=m,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},a.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):g.apply(this,arguments)},a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},a.prototype.compare=function(t,e,n,r,o){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,o>>>=0,this===t)return 0;for(var i=o-r,l=n-e,u=Math.min(i,l),s=this.slice(r,o),c=t.slice(e,n),f=0;f<u;++f)if(s[f]!==c[f]){i=s[f],l=c[f];break}return i<l?-1:l<i?1:0},a.prototype.includes=function(t,e,n){return this.indexOf(t,e,n)!==-1},a.prototype.indexOf=function(t,e,n){return _(this,t,e,n,!0)},a.prototype.lastIndexOf=function(t,e,n){return _(this,t,e,n,!1)},a.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return O(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return N(this,t,e,n);case"base64":return E(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;a.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t);var r;if(a.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=a.prototype;else{var o=e-t;r=new a(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},a.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},a.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},a.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},a.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},a.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},a.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),$.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),$.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),$.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),$.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;M(this,t,e,n,o,0)}var i=1,a=0;for(this[e]=255&t;++a<n&&(i*=256);)this[e+a]=t/i&255;return e+n},a.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;M(this,t,e,n,o,0)}var i=n-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+n},a.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,255,0),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},a.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},a.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},a.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},a.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);M(this,t,e,n,o-1,-o)}var i=0,a=1,l=0;for(this[e]=255&t;++i<n&&(a*=256);)t<0&&0===l&&0!==this[e+i-1]&&(l=1),this[e+i]=(t/a>>0)-l&255;return e+n},a.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);M(this,t,e,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===l&&0!==this[e+i+1]&&(l=1),this[e+i]=(t/a>>0)-l&255;return e+n},a.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,127,-128),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},a.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},a.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},a.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},a.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},a.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},a.prototype.writeDoubleLE=function(t,e,n){return H(this,t,e,!0,n)},a.prototype.writeDoubleBE=function(t,e,n){return H(this,t,e,!1,n)},a.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,i=r-n;if(this===t&&n<e&&e<r)for(o=i-1;o>=0;--o)t[o+e]=this[o+n];else if(i<1e3||!a.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},a.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var i;if("number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var l=a.isBuffer(t)?t:Y(new a(t,r).toString()),u=l.length;for(i=0;i<n-e;++i)this[i+e]=l[i%u]}return this};var et=/[^+\/0-9A-Za-z-_]/g}).call(e,function(){return this}())},1225:1223,1227:1223,1228:1223,1229:1223,1230:1223,1231:1223,1232:1223,1259:function(t,e){e.read=function(t,e,n,r,o){var i,a,l=8*o-r-1,u=(1<<l)-1,s=u>>1,c=-7,f=n?o-1:0,d=n?-1:1,h=t[e+f];for(f+=d,i=h&(1<<-c)-1,h>>=-c,c+=l;c>0;i=256*i+t[e+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+t[e+f],f+=d,c-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),i-=s}return(h?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,l,u,s=8*i-o-1,c=(1<<s)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+f>=1?d/u:d*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=c?(l=0,a=c):a+f>=1?(l=(e*u-1)*Math.pow(2,o),a+=f):(l=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+h]=255&l,h+=p,l/=256,o-=8);for(a=a<<o|l,s+=o;s>0;t[n+h]=255&a,h+=p,a/=256,s-=8);t[n+h-p]|=128*v}},1260:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},1273:function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new o;++e<n;)this.add(t[e])}var o=n(302),i=n(1345),a=n(1346);r.prototype.add=r.prototype.push=i,r.prototype.has=a,t.exports=r},1274:function(t,e,n){var r=n(86),o=r.Uint8Array;t.exports=o},1276:function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}t.exports=n},1278:function(t,e){function n(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}t.exports=n},1282:function(t,e,n){var r=n(1285),o=n(1308),i=o(r);t.exports=i},1283:function(t,e){function n(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}t.exports=n},1284:function(t,e,n){var r=n(1309),o=r();t.exports=o},1285:function(t,e,n){function r(t,e){return t&&o(t,e,i)}var o=n(1284),i=n(165);t.exports=r},1286:function(t,e,n){function r(t,e,n){var r=e(t);return i(t)?r:o(r,n(t))}var o=n(1278),i=n(82);t.exports=r},1288:function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},1290:function(t,e,n){function r(t,e,n,r,y,g){var b=s(t),_=s(e),w=b?p:u(t),O=_?p:u(e);w=w==h?v:w,O=O==h?v:O;var k=w==v,x=O==v,N=w==O;if(N&&c(t)){if(!c(e))return!1;b=!0,k=!1}if(N&&!k)return g||(g=new o),b||f(t)?i(t,e,n,r,y,g):a(t,e,w,n,r,y,g);if(!(n&d)){var E=k&&m.call(t,"__wrapped__"),S=x&&m.call(e,"__wrapped__");if(E||S){var j=E?t.value():t,A=S?e.value():e;return g||(g=new o),y(j,A,n,r,g)}}return!!N&&(g||(g=new o),l(t,e,n,r,y,g))}var o=n(475),i=n(479),a=n(1312),l=n(1313),u=n(481),s=n(82),c=n(491),f=n(494),d=1,h="[object Arguments]",p="[object Array]",v="[object Object]",y=Object.prototype,m=y.hasOwnProperty;t.exports=r},1291:function(t,e,n){function r(t,e,n,r){var u=n.length,s=u,c=!r;if(null==t)return!s;for(t=Object(t);u--;){var f=n[u];if(c&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++u<s;){f=n[u];var d=f[0],h=t[d],p=f[1];if(c&&f[2]){if(void 0===h&&!(d in t))return!1}else{var v=new o;if(r)var y=r(h,p,d,t,e,v);if(!(void 0===y?i(p,h,a|l,r,v):y))return!1}}return!0}var o=n(475),i=n(303),a=1,l=2;t.exports=r},1295:function(t,e,n){function r(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||o(n,t,e)}}var o=n(1291),i=n(1315),a=n(485);t.exports=r},1296:function(t,e,n){function r(t,e){return l(t)&&u(e)?s(c(t),e):function(n){var r=i(n,t);return void 0===r&&r===e?a(n,t):o(e,r,f|d)}}var o=n(303),i=n(307),a=n(1356),l=n(306),u=n(483),s=n(485),c=n(163),f=1,d=2;t.exports=r},1297:function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},1298:function(t,e,n){function r(t){return function(e){return o(e,t)}}var o=n(478);t.exports=r},1300:function(t,e,n){function r(t,e){var n;return o(t,function(t,r,o){return n=e(t,r,o),!n}),!!n}var o=n(1282);t.exports=r},1305:function(t,e){function n(t,e){return t.has(e)}t.exports=n},1308:function(t,e,n){function r(t,e){return function(n,r){if(null==n)return n;if(!o(n))return t(n,r);for(var i=n.length,a=e?i:-1,l=Object(n);(e?a--:++a<i)&&r(l[a],a,l)!==!1;);return n}}var o=n(164);t.exports=r},1309:function(t,e){function n(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),l=a.length;l--;){var u=a[t?l:++o];if(n(i[u],u,i)===!1)break}return e}}t.exports=n},1310:function(t,e,n){function r(t){return function(e,n,r){var l=Object(e);if(!i(e)){var u=o(n,3);e=a(e),n=function(t){return u(l[t],t,l)}}var s=t(e,n,r);return s>-1?l[u?e[s]:s]:void 0}}var o=n(304),i=n(164),a=n(165);t.exports=r},1312:function(t,e,n){function r(t,e,n,r,o,k,N){switch(n){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!k(new i(t),new i(e)));case d:case h:case y:return a(+t,+e);case p:return t.name==e.name&&t.message==e.message;case m:case b:return t==e+"";case v:var E=u;case g:var S=r&c;if(E||(E=s),t.size!=e.size&&!S)return!1;var j=N.get(t);if(j)return j==e;r|=f,N.set(t,e);var A=l(E(t),E(e),r,o,k,N);return N.delete(t),A;case _:if(x)return x.call(t)==x.call(e)}return!1}var o=n(162),i=n(1274),a=n(215),l=n(479),u=n(484),s=n(487),c=1,f=2,d="[object Boolean]",h="[object Date]",p="[object Error]",v="[object Map]",y="[object Number]",m="[object RegExp]",g="[object Set]",b="[object String]",_="[object Symbol]",w="[object ArrayBuffer]",O="[object DataView]",k=o?o.prototype:void 0,x=k?k.valueOf:void 0;t.exports=r},1313:function(t,e,n){function r(t,e,n,r,a,u){var s=n&i,c=o(t),f=c.length,d=o(e),h=d.length;if(f!=h&&!s)return!1;for(var p=f;p--;){var v=c[p];if(!(s?v in e:l.call(e,v)))return!1}var y=u.get(t);if(y&&u.get(e))return y==e;var m=!0;u.set(t,e),u.set(e,t);for(var g=s;++p<f;){v=c[p];var b=t[v],_=e[v];if(r)var w=s?r(_,b,v,e,t,u):r(b,_,v,t,e,u);if(!(void 0===w?b===_||a(b,_,n,r,u):w)){m=!1;break}g||(g="constructor"==v)}if(m&&!g){var O=t.constructor,k=e.constructor;O!=k&&"constructor"in t&&"constructor"in e&&!("function"==typeof O&&O instanceof O&&"function"==typeof k&&k instanceof k)&&(m=!1)}return u.delete(t),u.delete(e),m}var o=n(1314),i=1,a=Object.prototype,l=a.hasOwnProperty;t.exports=r},1314:function(t,e,n){function r(t){return o(t,a,i)}var o=n(1286),i=n(1318),a=n(165);t.exports=r},1315:function(t,e,n){function r(t){for(var e=i(t),n=e.length;n--;){var r=e[n],a=t[r];e[n]=[r,a,o(a)]}return e}var o=n(483),i=n(165);t.exports=r},1318:function(t,e,n){var r=n(1276),o=n(1363),i=Object.prototype,a=i.propertyIsEnumerable,l=Object.getOwnPropertySymbols,u=l?function(t){return null==t?[]:(t=Object(t),r(l(t),function(e){return a.call(t,e)}))}:o;t.exports=u},1326:function(t,e,n){function r(t,e,n){if(!l(n))return!1;var r=typeof e;return!!("number"==r?i(n)&&a(e,n.length):"string"==r&&e in n)&&o(n[e],t)}var o=n(215),i=n(164),a=n(213),l=n(138);t.exports=r},1345:function(t,e){function n(t){return this.__data__.set(t,r),this}var r="__lodash_hash_undefined__";t.exports=n},1346:function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},1347:function(t,e,n){function r(){this.__data__=new o,this.size=0}var o=n(210);t.exports=r},1348:function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},1349:function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},1350:function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},1351:function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length<l-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(t,e),this.size=n.size,this}var o=n(210),i=n(301),a=n(302),l=200;t.exports=r},1355:function(t,e,n){function r(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var u=null==n?0:a(n);return u<0&&(u=l(r+u,0)),o(t,i(e,3),u)}var o=n(1283),i=n(304),a=n(1367),l=Math.max;t.exports=r},1356:function(t,e,n){function r(t,e){return null!=t&&i(t,e,o)}var o=n(1288),i=n(482);t.exports=r},1357:function(t,e){function n(t){return t}t.exports=n},1361:function(t,e,n){function r(t){return a(t)?o(l(t)):i(t)}var o=n(1297),i=n(1298),a=n(306),l=n(163);t.exports=r},1362:function(t,e,n){function r(t,e,n){var r=l(t)?o:a;return n&&u(t,e,n)&&(e=void 0),r(t,i(e,3))}var o=n(477),i=n(304),a=n(1300),l=n(82),u=n(1326);t.exports=r},1363:function(t,e){function n(){return[]}t.exports=n},1366:function(t,e,n){function r(t){if(!t)return 0===t?t:0;if(t=o(t),t===i||t===-i){var e=t<0?-1:1;return e*a}return t===t?t:0}var o=n(1368),i=1/0,a=1.7976931348623157e308;t.exports=r},1367:function(t,e,n){function r(t){var e=o(t),n=e%1;return e===e?n?e-n:e:0}var o=n(1366);t.exports=r},1368:function(t,e,n){function r(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var n=s.test(t);return n||c.test(t)?f(t.slice(2),n?2:8):u.test(t)?a:+t}var o=n(138),i=n(217),a=NaN,l=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;t.exports=r},1517:function(t,e,n){"use strict";t.exports=n(1583)},1522:function(t,e,n){"use strict";var r=n(1),o=n(13),i=n(16),a=n(661),l=(n(489),n(1362)),u=n(492),s=n(7),c=n(660),f=i({displayName:"Quill",mixins:[a],propTypes:{id:s.string,className:s.string,theme:s.string,style:s.object,readOnly:s.bool,value:s.oneOfType([s.string,s.shape({ops:s.array})]),defaultValue:s.oneOfType([s.string,s.shape({ops:s.array})]),placeholder:s.string,tabIndex:s.number,bounds:s.oneOfType([s.string,s.element]),onChange:s.func,onChangeSelection:s.func,onFocus:s.func,onBlur:s.func,onKeyPress:s.func,onKeyDown:s.func,onKeyUp:s.func,modules:function(t){var e=s.object.apply(this,arguments);return e?e:t.modules&&t.modules.toolbar&&t.modules.toolbar[0]&&t.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(t){if("toolbar"in t)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(t){var e=s.arrayOf(s.string).apply(this,arguments);if(e)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(t){if("styles"in t)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(t){if("pollInterval"in t)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(t){var e=s.element.apply(this,arguments);if(e)return new Error("The Quill editing area can only be composed of a single React element.");if(r.Children.count(t.children)){var n=r.Children.only(t.children);if("textarea"===n.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(t,e){var n=this.editor;if(n){if("value"in t){var r=this.getEditorContents(),o=t.value;if(o===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(o,r)||this.setEditorContents(n,o)}return"readOnly"in t&&t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(n,t.readOnly),
- this.shouldComponentRegenerate(t,e)?this.regenerate():void 0}},componentDidMount:function(){return this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig()),this.quillDelta?(this.editor.setContents(this.quillDelta),this.editor.setSelection(this.quillSelection),this.editor.focus(),void(this.quillDelta=this.quillSelection=null)):this.state.value?void this.setEditorContents(this.editor,this.state.value):void 0},componentWillUnmount:function(){var t;(t=this.getEditor())&&(this.unhookEditor(t),this.editor=null)},shouldComponentUpdate:function(t,e){var n=this;return this.state.generation!==e.generation||l(this.cleanProps,function(e){return!u(t[e],n.props[e])})},shouldComponentRegenerate:function(t,e){var n=this;return l(this.dirtyProps,function(e){return!u(t[e],n.props[e])})},componentWillUpdate:function(t,e){this.state.generation!==e.generation&&this.componentWillUnmount()},componentDidUpdate:function(t,e){this.state.generation!==e.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,theme:this.props.theme}},getEditor:function(){return this.editor},getEditingArea:function(){return o.findDOMNode(this.editingArea)},getEditorContents:function(){return this.state.value},getEditorSelection:function(){return this.state.selection},isDelta:function(t){return t&&t.ops},isEqualValue:function(t,e){return this.isDelta(t)&&this.isDelta(e)?u(t.ops,e.ops):u(t,e)},regenerate:function(){this.quillDelta=this.editor.getContents(),this.quillSelection=this.editor.getSelection(),this.setState({generation:this.state.generation+1})},renderEditingArea:function(){var t=this,e=this.props.children,n={key:this.state.generation,tabIndex:this.props.tabIndex,ref:function(e){t.editingArea=e}},o=r.Children.count(e)?r.Children.only(e):null,i=o?r.cloneElement(o,n):c.div(n);return i},render:function(){return c.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(t,e,n,r){var o=this.getEditorContents(),i=this.isDelta(o)?r.getContents():r.getHTML();this.isEqualValue(i,o)||(this.lastDeltaChangeSet=e,this.setState({value:i}),this.props.onChange&&this.props.onChange(t,e,n,r))},onEditorChangeSelection:function(t,e,n){var r=this.getEditorSelection(),o=!r&&t,i=r&&!t;u(t,r)||(this.setState({selection:t}),this.props.onChangeSelection&&this.props.onChangeSelection(t,e,n),o&&this.props.onFocus?this.props.onFocus(t,e,n):i&&this.props.onBlur&&this.props.onBlur(r,e,n))},focus:function(){this.editor.focus()},blur:function(){this.setEditorSelection(this.editor,null)}});t.exports=f},1523:function(t,e,n){var r=n(613);t.exports=n(1522),t.exports.Quill=r,t.exports.Mixin=n(661),t.exports.Toolbar=n(1524)},1524:function(t,e,n){"use strict";var r=n(1),o=n(1517),i=n(16),a=n(489),l=n(492),u=n(7),s=n(660),c=["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(t){return{value:t}}),f=[{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:c},{type:"background",label:"Background color",items:c},{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"}]}],d=i({displayName:"Quill Toolbar",propTypes:{id:u.string,className:u.string,style:u.object,items:u.array},getDefaultProps:function(){return{items:f}},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(t,e){return!l(t,this.props)},renderGroup:function(t,e){return r.DOM.span({key:t.label||e,className:"ql-formats"},t.items.map(this.renderItem))},renderChoiceItem:function(t,e){return r.DOM.option({key:t.label||t.value||e,value:t.value},t.label)},renderChoices:function(t,e){var n=t.items.map(this.renderChoiceItem),o=a(t.items,function(t){return t.selected}),i={key:t.label||e,title:t.label,className:"ql-"+t.type,value:o.value};return r.DOM.select(i,n)},renderButton:function(t,e){return r.DOM.button({type:"button",key:t.label||t.value||e,value:t.value,className:"ql-"+t.type,title:t.label},t.children)},renderAction:function(t,e){return r.DOM.button({key:t.label||t.value||e,className:"ql-"+t.type,title:t.label},t.children)},renderItem:function(t,e){switch(t.type){case"group":return this.renderGroup(t,e);case"font":case"header":case"align":case"size":case"color":case"background":return this.renderChoices(t,e);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(t,e);default:return this.renderAction(t,e)}},getClassName:function(){return"quill-toolbar "+(this.props.className||"")},render:function(){var t=this.props.items.map(this.renderItem),e=t.map(o.renderToStaticMarkup).join("");return s.div({id:this.props.id,className:this.getClassName(),style:this.props.style,dangerouslySetInnerHTML:{__html:e}})}});t.exports=d,d.defaultItems=f,d.defaultColors=c},1583:function(t,e,n){"use strict";var r=n(686),o=n(1596),i=n(341);r.inject();var a={renderToString:o.renderToString,renderToStaticMarkup:o.renderToStaticMarkup,version:i};t.exports=a},1595:function(t,e){"use strict";var n={isBatchingUpdates:!1,batchedUpdates:function(t){}};t.exports=n},1596:function(t,e,n){"use strict";function r(t,e){var n;try{return p.injection.injectBatchingStrategy(d),n=h.getPooled(e),m++,n.perform(function(){var r=y(t,!0),o=f.mountComponent(r,n,null,l(),v,0);return e||(o=c.addChecksumToMarkup(o)),o},null)}finally{m--,h.release(n),m||p.injection.injectBatchingStrategy(u)}}function o(t){return s.isValidElement(t)?void 0:a("46"),r(t,!1)}function i(t){return s.isValidElement(t)?void 0:a("47"),r(t,!0)}var a=n(17),l=n(683),u=n(685),s=n(71),c=(n(63),n(691)),f=n(124),d=n(1595),h=n(696),p=n(72),v=n(115),y=n(346),m=(n(12),0);t.exports={renderToString:o,renderToStaticMarkup:i}},1641:function(t,e){}});
|