/*! Summernote v0.8.3 | (c) 2013-2015 Alan Hong and other contributors | MIT license */
!function(a){"function"==typeofdefine&&define.amd?define(["jquery"],a):"object"==typeofmodule&&module.exports?module.exports=a(require("jquery")):a(window.jQuery)}(function($){"use strict";varfunc=function(){vara=function(a){returnfunction(b){returna===b}},b=function(a,b){returna===b},c=function(a){returnfunction(b,c){returnb[a]===c[a]}},d=function(){return!0},e=function(){return!1},f=function(a){returnfunction(){return!a.apply(a,arguments)}},g=function(a,b){returnfunction(c){returna(c)&&b(c)}},h=0;return{eq:a,eq2:b,peq2:c,ok:d,fail:e,self:function(a){returna},not:f,and:g,invoke:function(a,b){returnfunction(){returna[b].apply(a,arguments)}},uniqueId:function(a){varb=++h+"";returna?a+b:b},rect2bnd:function(a){varb=$(document);return{top:a.top+b.scrollTop(),left:a.left+b.scrollLeft(),width:a.right-a.left,height:a.bottom-a.top}},invertObject:function(a){varb={};for(varcina)a.hasOwnProperty(c)&&(b[a[c]]=c);returnb},namespaceToCamel:function(a,b){return(b=b||"")+a.split(".").map(function(a){returna.substring(0,1).toUpperCase()+a.substring(1)}).join("")},debounce:function(a,b,c){vard;returnfunction(){vare=this,f=arguments,g=function(){d=null,c||a.apply(e,f)},h=c&&!d;clearTimeout(d),d=setTimeout(g,b),h&&a.apply(e,f)}}}}(),list=function(){vara=function(a){returna[0]},b=function(a){returna[a.length-1]},c=function(a){returna.slice(0,a.length-1)},d=function(a){returna.slice(1)},e=function(a,b){for(varc=0,d=a.length;c<d;c++){vare=a[c];if(b(e))returne}},f=function(a,b){for(varc=0,d=a.length;c<d;c++)if(!b(a[c]))return!1;return!0},g=function(a,b){return$.inArray(b,a)},h=function(a,b){returng(a,b)!==-1},i=function(a,b){returnb=b||func.self,a.reduce(function(a,c){returna+b(c)},0)},j=function(a){for(varb=[],c=-1,d=a.length;++c<d;)b[c]=a[c];returnb},k=function(a){return!a||!a.length},l=function(c,e){returnc.length?d(c).reduce(function(a,c){vard=b(a);returne(b(d),c)?d[d.length]=c:a[a.length]=[c],a},[[a(c)]]):[]},m=function(a){for(varb=[],c=0,d=a.length;c<d;c++)a[c]&&b.push(a[c]);returnb},n=function(a){for(varb=[],c=0,d=a.length;c<d;c++)h(b,a[c])||b.push(a[c]);returnb},o=function(a,b){varc=g(a,b);returnc===-1?null:a[c+1]};return{head:a,last:b,initial:c,tail:d,prev:function(a,b){varc=g(a,b);returnc===-1?null:a[c-1]},next:o,find:e,contains:h,all:f,sum:i,from:j,isEmpty:k,clusterBy:l,compact:m,unique:n}}(),isSupportAmd="function"==typeofdefine&&define.amd,isFontInstalled=function(a){varb="Comic Sans MS"===a?"Courier New":"Comic Sans MS",c=$("<div>").css({position:"absolute",left:"-9999px",top:"-9999px",fontSize:"200px"}).text("mmmmmmmmmwwwwwww").appendTo(document.body),d=c.css("fontFamily",b).width(),e=c.css("fontFamily",a+","+b).width();returnc.remove(),d!==e},userAgent=navigator.userAgent,isMSIE=/MSIE|Trident/i.test(userAgent),browserVersion;if(isMSIE){varmatches=/MSIE (\d+[.]\d+)/.exec(userAgent);matches&&(browserVersion=parseFloat(matches[1])),matches=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(userAgent),matches&&(browserVersion=parseFloat(matches[1]))}varisEdge=/Edge\/\d+/.test(userAgent),hasCodeMirror=!!window.CodeMirror;if(!hasCodeMirror&&isSupportAmd&&"undefined"!=typeofrequire)if(void0!==require.resolve)try{require.resolve("codemirror"),hasCodeMirror=!0}catch(a){}elsevoid0!==eval("require").specified&&(hasCodeMirror=eval("require").specified("codemirror"));varagent={isMac:navigator.appVersion.indexOf("Mac")>-1,isMSIE:isMSIE,isEdge:isEdge,isFF:!isEdge&&/firefox/i.test(userAgent),isPhantom:/PhantomJS/i.test(userAgent),isWebkit:!isEdge&&/webkit/i.test(userAgent),isChrome:!isEdge&&/chrome/i.test(userAgent),isSafari:!isEdge&&/safari/i.test(userAgent),browserVersion:browserVersion,jqueryVersion:parseFloat($.fn.jquery),isSupportAmd:isSupportAmd,hasCodeMirror:hasCodeMirror,isFontInstalled:isFontInstalled,isW3CRangeSupport:!!document.createRange},NBSP_CHAR=String.fromCharCode(160),ZERO_WIDTH_NBSP_CHAR="\ufeff",dom=function(){vara=function(a){returna&&$(a).hasClass("note-editable")},b=function(a){returna&&$(a).hasClass("note-control-sizing")},c=function(a){returna=a.toUpperCase(