(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{111:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){returnC}));n(14),n(73);varo=n(77),r=n.n(o),i=n(78),a=n.n(i),s=n(79),l=n.n(s),c=n(80),u=n.n(c),f=n(81),d=n.n(f),p=n(82),h=n.n(p),v=n(83),g=n.n(v),b=n(84),y=n.n(b),m=n(85),k=n.n(m),x=n(86),w=n.n(x),S=n(87),E=n.n(S);functionT(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}function_(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}varC=function(){functiont(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void0!==arguments[1]?arguments[1]:{};T(this,t);varo={tools:{header:{class:a.a,inlineToolbar:["marker","inlineCode"],config:{placeholder:n.headerPlaceholder||""}},image:{class:l.a,inlineToolbar:!0,config:{types:"image/*, video/mp4",endpoints:{byFile:"/api/transport/image",byUrl:"/api/transport/fetch"},additionalRequestData:{map:JSON.stringify({path:"file:url",size:"file:size",mimetype:"file:mime"})}}},code:{class:u.a,shortcut:"CMD+SHIFT+D"},list:{class:d.a,inlineToolbar:!0},delimiter:h.a,table:{class:g.a,inlineToolbar:!0},warning:{class:y.a,inlineToolbar:!0},checklist:{class:k.a,inlineToolbar:!0},inlineCode:{class:w.a,shortcut:"CMD+SHIFT+C"},marker:{class:E.a,shortcut:"CMD+SHIFT+M"}},data:{blocks:[{type:"header",data:{text:"",level:2}}]}};this.editor=newr.a(Object.assign(o,e))}vare,n,o;returne=t,(n=[{key:"save",value:function(){returnthis.editor.saver.save()}}])&&_(e.prototype,n),o&&_(e,o),t}()},62:function(t,e,n){varo=n(17);t.exports=function(t){returnObject(o(t))}},63:function(t,e,n){varo=n(64),r=n(17);t.exports=function(t){returno(r(t))}},64:function(t,e,n){varo=n(12);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},65:function(t,e,n){varo=n(21)("keys"),r=n(20);t.exports=function(t){returno[t]||(o[t]=r(t))}},66:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},67:function(t,e,n){varo=n(68),r=n(66);t.exports=Object.keys||function(t){returno(t,r)}},68:function(t,e,n){varo=n(18),r=n(63),i=n(69)(!1),a=n(65)("IE_PROTO");t.exports=function(t,e){varn,s=r(t),l=0,c=[];for(nins)n!=a&&o(s,n)&&c.push(n);for(;e.length>l;)o(s,n=e[l++])&&(~i(c,n)||c.push(n));returnc}},69:function(t,e,n){varo=n(63),r=n(16),i=n(70);t.exports=function(t){returnfunction(e,n,a){vars,l=o(e),c=r(l.length),u=i(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}elsefor(;c>u;u++)if((t||uinl)&&l[u]===n)returnt||u||0;return!t&&-1}}},70:function(t,e,n){varo=n(19),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=o(t))<0?r(t+e,0):i(t,e)}},73:function(t,e,n){varo=n(11);o(o.S+o.F,"Object",{assign:n(74)})},74:function(t,e,n){"use strict";varo=n(4),r=n(67),i=n(75),a=n(76),s=n(62),l=n(64),c=Object.assign;t.exports=!c||n(13)((function(){vart={},e={},n=Symbol(),o="abcdefghijklmnopqrst";returnt[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=o}))?function(t,e){for(varn=s(t),c=arguments.length,u=1,f=i.f,d=a.f;c>u;)for(varp,h=l(arguments[u++]),v=f?r(h).concat(f(h)):r(h),g=v.length,b=0;g>b;)p=v[b++],o&&!d.call(h,p)||(n[p]=h[p]);returnn}:c},75:function(t,e){e.f=Object.getOwnPropertySymbols},76:function(t,e){e.f={}.propertyIsEnumerable},77:function(t,e,n){
/*! For license information please see editor.js.LICENSE */
window,t.exports=function(t){vare={};functionn(o){if(e[o])returne[o].exports;varr=e[o]={i:o,l:!1,exports:{}};returnt[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}returnn.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)returnt;if(4&e&&"object"==typeoft&&t&&t.__esModule)returnt;varo=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeoft)for(varrint)n.d(o,r,function(e){returnt[e]}.bind(null,r));returno},n.n=function(t){vare=t&&t.__esModule?function(){returnt.default}:function(){returnt};returnn.d(e,"a",e),e},n.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=171)}([function(t,e,n){varo=n(8),r=n(17),i=n(24),a=n(21),s=n(29),l=function(t,e,n){varc,u,f,d,p=t&l.F,h=t&l.G,v=t&l.S,g=t&l.P,b=t&l.B,y=h?o:v?o[e]||(o[e]={}):(o[e]||{}).prototype,m=h?r:r[e]||(r[e]={}),k=m.prototype||(m.prototype={});for(cinh&&(n=e),n)f=((u=!p&&y&&void0!==y[c])?y:n)[c],d=b&&u?s(f,o):g&&"function"==typeoff?s(Function.call,f):f,y&&a(y,c,f,t&l.U),m[c]!=f&&i(m,c,d),g&&k[c]!=f&&(k[c]=f)};o.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){t.exports=function(t){returnt&&t.__esModule?t:{default:t}}},function(t,e){t.exports=function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}},function(t,e){functionn(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}t.exports=function(t,e,o){returne&&n(t.prototype,e),o&&n(t,o),t}},function(t,e,n){varo=n(51),r=n(357);t.exports=function(t,e){return!e||"object"!==o(e)&&"function"!=typeofe?r(t):e}},function(t,e){functionn(e){returnt.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){returnt.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){varo=n(358);t.exports=function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}},function(t,e,n){varo,r,i;"undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself&&self,r=[e,n(2),n(3)],void0===(i="function"==typeof(o=function(o,r,i){"use strict";vara=n(1);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void0,r=a(r),i=a(i);vars=function(){functiont(e){varn=e.config;if((0,r.default)(this,t),(thisinstanceoft?this.constructor:void0)===t)thrownewTypeError("Constructors for abstract class Module are not allowed.");this.config=n}return(0,i.default)(t,[{key:"state",set:function(t){this.Editor=t}}]),t}();o.default=s,s.displayName="Module",t.exports=e.default})?o.apply(e,r):o)||(t.exports=i)},function(t,e){varn=t.exports="undefined"!=typeofwindow&&window.Math==Math?window:"undefined"!=typeofself&&self.Math==Math?self:Function("return this")();"number"==typeof__g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){varo=n(11);t.exports=function(t){if(!o(t))throwTypeError(t+" is not an object!");returnt}},function(t,e){t.exports=function(t){return"object"==typeoft?null!==t:"function"==typeoft}},function(t,e,n){varo=n(64)("wks"),r=n(41),i=n(8).Symbol,a="function"==typeofi;(t.exports=function(t){returno[t]||(o[t]=a&&i[t]||(a?i:r)("Symbol."+t))}).store=o},function(t,e,n){varo,r,i;"undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself&&self,r=[e,n(51),n(103),n(2),n(3)],void0===(i="function"==typeof(o=function(o,r,i,a,s){"use strict";varl=n(1);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void0,r=l(r),i=l(i),a=l(a),s=l(s);varc=function(){functiont(){(0,a.default)(this,t)}return(0,s.default)(t,null,[{key:"isSingleTag",value:function(t){ret
vari=function(){functiont(e){varn=e.data,o=e.config,r=e.api;!function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}(this,t),this.api=r,this._CSS={block:this.api.styles.block,settingsButton:this.api.styles.settingsButton,settingsButtonActive:this.api.styles.settingsButtonActive,wrapper:"ce-header"},this._settings=o,this._data=this.normalizeData(n),this.settingsButtons=[],this._element=this.getTag()}vare,i,a;returne=t,a=[{key:"conversionConfig",get:function(){return{export:"text",import:"text"}}},{key:"sanitize",get:function(){return{level:{}}}},{key:"pasteConfig",get:function(){return{tags:["H1","H2","H3","H4","H5","H6"]}}},{key:"toolbox",get:function(){return{icon:n(6).default,title:"Heading"}}}],(i=[{key:"normalizeData",value:function(t){vare={};return"object"!==o(t)&&(t={}),e.text=t.text||"",e.level=parseInt(t.level)||this.defaultLevel.number,e}},{key:"render",value:function(){returnthis._element}},{key:"renderSettings",value:function(){vart=this,e=document.createElement("DIV");returnthis.levels.length<=1||this.levels.forEach((function(n){varo=document.createElement("SPAN");o.classList.add(t._CSS.settingsButton),t.currentLevel.number===n.number&&o.classList.add(t._CSS.settingsButtonActive),o.innerHTML=n.svg,o.dataset.level=n.number,o.addEventListener("click",(function(){t.setLevel(n.number)})),e.appendChild(o),t.settingsButtons.push(o)})),e}},{key:"setLevel",value:function(t){vare=this;this.data={level:t,text:this.data.text},this.settingsButtons.forEach((function(n){n.classList.toggle(e._CSS.settingsButtonActive,parseInt(n.dataset.level)===t)}))}},{key:"merge",value:function(t){vare={text:this.data.text+t.text,level:this.data.level};this.data=e}},{key:"validate",value:function(t){return""!==t.text.trim()}},{key:"save",value:function(t){return{text:t.innerHTML,level:this.currentLevel.number}}},{key:"getTag",value:function(){vart=document.createElement(this.currentLevel.tag);returnt.innerHTML=this._data.text||"",t.classList.add(this._CSS.wrapper),t.contentEditable="true",t.dataset.placeholder=this._settings.placeholder||"",t}},{key:"onPaste",value:function(t){vare=t.detail.data,n=this.defaultLevel.number;switch(e.tagName){case"H1":n=1;break;case"H2":n=2;break;case"H3":n=3;break;case"H4":n=4;break;case"H5":n=5;break;case"H6":n=6}this._settings.levels&&(n=this._settings.levels.reduce((function(t,e){returnMath.abs(e-n)<Math.abs(t-n)?e:t}))),this.data={level:n,text:e.innerHTML}}},{key:"data",get:function(){returnthis._data.text=this._element.innerHTML,this._data.level=this.currentLevel.number,this._data},set:function(t){if(this._data=this.normalizeData(t),void0!==t.level&&this._element.parentNode){vare=this.getTag();e.innerHTML=this._element.innerHTML,this._element.parentNode.replaceChild(e,this._element),this._element=e}void0!==t.text&&(this._element.innerHTML=this._data.text||"")}},{key:"currentLevel",get:function(){vart=this,e=this.levels.find((function(e){returne.number===t._data.level}));returne||(e=this.defaultLevel),e}},{key:"defaultLevel",get:function(){vart=this;if(this._settings.defaultLevel){vare=this.levels.find((function(e){returne.number===t._settings.defaultLevel}));if(e)returne;console.warn("(ง'̀-'́)ง Heading Tool: the default level specified was not found in available levels")}returnthis.levels[1]}},{key:"levels",get:function(){vart=this,e=[{number:1,tag:"H1",svg:'<svgwidth="16"height="14"xmlns="http://www.w3.org/2000/svg"><pathd="M2.141.494V4.98h4.62V1.494c0-.498.098-.871.293-1.12A.927.9270017.820c.3220.583.123.782.37.2.246.3.62.31.124v9.588c0.503-.101.88-.3031.128a.957.957001-.779.374.921.921001-.77-.378c-.193-.251-.29-.626-.29-1.124V6.989H2.14v4.093c0.503-.1.88-.3021.128a.957.957001-.778.374.921.921001-.772-.378C.09611.955011.58011.082V1.494C0.996.095.623.285.374A.922.9220011.060c.3210.582.123.782.37.199.246.299.62.2991.124zm11.6539.985V5.27c-1.279.887-2.141.33-2.5831.33a.802.802001-.563-.228.703.703001-.245-.529c0-.232.08-.402.241-.511.161-.11.446-.25.854-.424.61-.2591.096-.5321