/**
 * Minified by jsDelivr using UglifyJS v3.1.10.
 * Original file: /npm/summernote-cleaner@1.0.0/summernote-cleaner.js
 * 
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(window.jQuery)}(function(e){e.extend(!0,e.summernote.lang,{"en-US":{cleaner:{tooltip:"Cleaner",not:"Text has been Cleaned!!!"}}}),e.extend(e.summernote.options,{cleaner:{notTime:2400,action:"both",newline:"<br>",notStyle:"position:absolute;bottom:0;left:2px",icon:'<i class="note-icon"><svg xmlns="http://www.w3.org/2000/svg" id="libre-paintbrush" viewBox="0 0 14 14"><path d="m 11.821425,1 q 0.46875,0 0.82031,0.311384 0.35157,0.311384 0.35157,0.780134 0,0.421875 -0.30134,1.01116 -2.22322,4.212054 -3.11384,5.035715 -0.64956,0.609375 -1.45982,0.609375 -0.84375,0 -1.44978,-0.61942 -0.60603,-0.61942 -0.60603,-1.469866 0,-0.857143 0.61608,-1.419643 l 4.27232,-3.877232 Q 11.345985,1 11.821425,1 z m -6.08705,6.924107 q 0.26116,0.508928 0.71317,0.870536 0.45201,0.361607 1.00781,0.508928 l 0.007,0.475447 q 0.0268,1.426339 -0.86719,2.32366 Q 5.700895,13 4.261155,13 q -0.82366,0 -1.45982,-0.311384 -0.63616,-0.311384 -1.0212,-0.853795 -0.38505,-0.54241 -0.57924,-1.225446 -0.1942,-0.683036 -0.1942,-1.473214 0.0469,0.03348 0.27455,0.200893 0.22768,0.16741 0.41518,0.29799 0.1875,0.130581 0.39509,0.24442 0.20759,0.113839 0.30804,0.113839 0.27455,0 0.3683,-0.247767 0.16741,-0.441965 0.38505,-0.753349 0.21763,-0.311383 0.4654,-0.508928 0.24776,-0.197545 0.58928,-0.31808 0.34152,-0.120536 0.68974,-0.170759 0.34821,-0.05022 0.83705,-0.07031 z"/></svg></i>'}}),e.extend(e.summernote.plugins,{cleaner:function(n){var t=e.summernote.ui,r=n.layoutInfo.note,o=n.layoutInfo.editor,a=n.options,i=a.langInfo,l=function(e,n){var t=e.replace(/(\r| class=(")?Mso[a-zA-Z]+(")?)/g," ");t=t.replace(/(\n)+/g,n);var r=new RegExp("\x3c!--(.*?)--\x3e","gi");t=t.replace(r,"");var o=new RegExp("<(/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>","gi");t=t.replace(o,"");for(var a=["style","script","applet","embed","noframes","noscript"],i=0;i<a.length;i++)o=new RegExp("<"+a[i]+".*?"+a[i]+"(.*?)>","gi"),t=t.replace(o,"");for(var l=["style","start"],s=0;s<l.length;s++){var c=new RegExp(" "+l[i]+'="(.*?)"',"gi");t=t.replace(c,"")}return t};"both"!=a.cleaner.action&&"button"!=a.cleaner.action||n.memo("button.cleaner",function(){return t.button({contents:a.cleaner.icon,tooltip:i.cleaner.tooltip,click:function(){if(r.summernote("createRange").toString()){e=l(r.summernote("createRange").toString(),a.cleaner.newline);r.summernote("pasteHTML",e)}else{var e=l(r.summernote().text(),a.cleaner.newline);r.summernote("code")}o.find(".note-resizebar").append('<div class="summernote-cleanerAlert alert alert-success" style="'+a.cleaner.notStyle+'">'+i.cleaner.not+"</div>"),setTimeout(function(){o.find(".summernote-cleanerAlert").remove()},a.cleaner.notTime)}}).render()}),this.events={"summernote.paste":function(e,n){if("both"==a.cleaner.action||"paste"==a.cleaner.action){n.preventDefault();if(window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))t=window.clipboardData.getData("Text");else t=n.originalEvent.clipboardData.getData("text/plain");var t=l(t,a.cleaner.newline);if(r.summernote("createRange").toString())r.summernote("pasteHTML",t);else{var s=r.summernote("code");r.summernote("pasteHTML",s+t)}o.find(".note-resizebar").append('<div class="summernote-cleanerAlert alert alert-success" style="'+a.cleaner.notStyle+'">'+i.cleaner.not+"</div>"),setTimeout(function(){o.find(".summernote-cleanerAlert").remove()},a.cleaner.notTime)}}}}})});
//# sourceMappingURL=/sm/25281154a9585d2dcb699a29237bb36b442a548b88ccaecc2a8eed66cf033db8.map