!function(b,d){function g(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function l(e){return!!e&&"[object Function]"===Object.prototype.toString.call(e)}function e(e,t){for(var i=0,n=t.length;i=0}function j(e,t){return t=t||"px",e&&/^\d+$/.test(e)?e+t:e}function o(e){var t;return e&&(t=/(\d+)/.exec(e))?parseInt(t[1],10):0}function s(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function t(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")}function p(e){var t=e.split("-"),e="";return h(t,function(t,i){e+=t>0?i.charAt(0).toUpperCase()+i.substr(1):i}),e}function q(e){function t(e){return e=parseInt(e,10).toString(16).toUpperCase(),e.length>1?e:"0"+e}return e.replace(/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/gi,function(e,i,n,a){return"#"+t(i)+t(n)+t(a)})}function z(e,t){var i,t=t===d?",":t,n={},a=g(e)?e:e.split(t);return h(a,function(e,t){if(i=/^(\d+)\.\.(\d+)$/.exec(t))for(var a=parseInt(i[1],10);a<=parseInt(i[2],10);a++)n[a.toString()]=!0;else n[t]=!0}),n}function D(e,t){return Array.prototype.slice.call(e,t||0)}function r(e,t){return e===d?t:e}function A(e,t,i){i||(i=t,t=null);var n;if(t){var a=function(){};a.prototype=t.prototype,n=new a,h(i,function(e,t){n[e]=t})}else n=i;n.constructor=e,e.prototype=n,e.parent=t?t.prototype:null}function w(a){var c;if((c=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(a))&&(a=c[0]),c=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c.lastIndex=0,c.test(a)&&(a=a.replace(c,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+a+")");throw"JSON parse error"}function H(e,t,i){e.addEventListener?e.addEventListener(t,i,db):e.attachEvent&&e.attachEvent("on"+t,i)}function v(e,t,i){e.removeEventListener?e.removeEventListener(t,i,db):e.detachEvent&&e.detachEvent("on"+t,i)}function E(e,t){this.init(e,t)}function U(e){try{delete e[la]}catch(t){e.removeAttribute&&e.removeAttribute(la)}}function F(t,i,n){if(i.indexOf(",")>=0)h(i.split(","),function(){F(t,this,n)});else{var a=t[la]||null;a||(t[la]=++eb,a=eb),L[a]===d&&(L[a]={});var o=L[a][i];o&&o.length>0?v(t,i,o[0]):(L[a][i]=[],L[a].el=t),o=L[a][i],0===o.length&&(o[0]=function(e){var i=e?new E(t,e):d;h(o,function(e,n){e>0&&n&&n.call(t,i)})}),e(n,o)<0&&o.push(n),H(t,i,o[0])}}function N(e,t,i){if(t&&t.indexOf(",")>=0)h(t.split(","),function(){N(e,this,i)});else{var n=e[la]||null;if(n)if(t===d)n in L&&(h(L[n],function(t,i){"el"!=t&&i.length>0&&v(e,t,i[0])}),delete L[n],U(e));else if(L[n]){var a=L[n][t];if(a&&a.length>0){i===d?(v(e,t,a[0]),delete L[n][t]):(h(a,function(e,t){e>0&&t===i&&a.splice(e,1)}),1==a.length&&(v(e,t,a[0]),delete L[n][t]));var o=0;h(L[n],function(){o++}),o<2&&(delete L[n],U(e))}}}}function ea(e,t){if(t.indexOf(",")>=0)h(t.split(","),function(){ea(e,this)});else{var i=e[la]||null;if(i){var n=L[i][t];L[i]&&n&&n.length>0&&n[0]()}}}function V(e,t,i){t=/^\d{2,}$/.test(t)?t:t.toUpperCase().charCodeAt(0),F(e,"keydown",function(n){n.ctrlKey&&n.which==t&&!n.shiftKey&&!n.altKey&&(i.call(e),n.stop())})}function Q(e){for(var t,i={},n=/\s*([\w\-]+)\s*:([^;]*)(;|$)/g;t=n.exec(e);){var a=m(t[1].toLowerCase());t=m(q(t[2])),i[a]=t}return i}function G(e){for(var t,i={},n=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([^\s"'<>]+))|(?:([\w\-:"]+)="([^"]*)")|(?:([\w\-:"]+)='([^']*)'))(?=(?:\s|\/|>)+)/g;t=n.exec(e);){var a=(t[1]||t[2]||t[4]||t[6]).toLowerCase();i[a]=(t[2]?t[3]:t[4]?t[5]:t[7])||""}return i}function S(e,t){return e=/\s+class\s*=/.test(e)?e.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,function(e,i,n,a){return(" "+n+" ").indexOf(" "+t+" ")<0?""===n?i+t+a:i+n+" "+t+a:e}):e.substr(0,e.length-1)+' class="'+t+'">'}function Y(e){var t="";return h(Q(e),function(e,i){t+=e+":"+i+";"}),t}function M(t,i,n,a){function o(e){for(var e=e.split("/"),t=[],i=0,n=e.length;i0&&t.pop():""!==a&&"."!=a&&t.push(a)}return"/"+t.join("/")}function l(e,i){if(t.substr(0,e.length)===e){for(var n=[],o=0;o0&&(o+="/"+n.join("/")),"/"==a&&(o+="/"),o+t.substr(e.length)}if(c=/^(.*)\//.exec(e))return l(c[1],++i)}if(i=r(i,"").toLowerCase(),"data:"!=t.substr(0,5)&&(t=t.replace(/([^:])\/\//g,"$1/")),e(i,["absolute","relative","domain"])<0)return t;if(n=n||location.protocol+"//"+location.host,a===d)var s=location.pathname.match(/^(\/.*)\//),a=s?s[1]:"";var c;if(c=/^(\w+:\/\/[^\/]*)/.exec(t)){if(c[1]!==n)return t}else if(/^\w+:/.test(t))return t;return/^\//.test(t)?t=n+o(t.substr(1)):/^\w+:\/\//.test(t)||(t=n+o(a+"/"+t)),"relative"===i?t=l(n+a,0).substr(2):"absolute"===i&&t.substr(0,n.length)===n&&(t=t.substr(n.length)),t}function J(t,i,n,a,o){var n=n||"",a=r(a,!1),o=r(o,"\t"),l="xx-small,x-small,small,medium,large,x-large,xx-large".split(","),t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,function(e,t,i,n){return t+i.replace(/<(?:br|br\s[^>]*)>/gi,"\n")+n}),t=t.replace(/<(?:br|br\s[^>]*)\s*\/?>\s*<\/p>/gi,"
"),t=t.replace(/(<(?:p|p\s[^>]*)>)\s*(<\/p>)/gi,"$1
$2"),t=t.replace(/\u200B/g,""),t=t.replace(/\u00A9/g,"©"),s={};i&&(h(i,function(e,t){for(var i=e.split(","),n=0,a=i.length;n]*)>)([\s\S]*?)(<\/script>)/gi,"")),s.style||(t=t.replace(/(<(?:style|style\s[^>]*)>)([\s\S]*?)(<\/style>)/gi,"")));var d=[],t=t.replace(/([ \t\n\r]*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"'<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+='[^']*'))*)(\/)?>([ \t\n\r]*)/g,function(t,r,c,u,p,f,m){var r=r||"",c=c||"",g=u.toLowerCase(),v=p||"",u=f?" "+f:"",m=m||"";if(i&&!s[g])return"";if(""===u&&fb[g]&&(u=" /"),gb[g]&&(r&&(r=" "),m&&(m=" ")),Ja[g]&&(c?m="\n":r="\n"),a&&"br"==g&&(m="\n"),hb[g]&&!Ja[g])if(a){for(c&&d.length>0&&d[d.length-1]===g?d.pop():d.push(g),m=r="\n",p=0,f=c?d.length:d.length-1;p=0&&(b[t]=M(a,n)),(i&&"style"!==t&&!s[g]["*"]&&!s[g][t]||"body"===g&&"contenteditable"===t||/^kindeditor_\d+$/.test(t))&&delete b[t],"style"===t&&""!==a){var o=Q(a);h(o,function(e){i&&!s[g].style&&!s[g]["."+e]&&delete o[e]});var l="";h(o,function(e,t){l+=e+":"+t+";"}),b.style=l}}),v="",h(b,function(e,t){"style"===e&&""===t||(t=t.replace(/"/g,"""),v+=" "+e+'="'+t+'"')})}return"font"===g&&(g="span"),r+"<"+c+g+v+u+">"+m}),t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,function(e,t,i,n){return t+i.replace(/\n/g,'\n')+n}),t=t.replace(/\n\s*\n/g,"\n"),t=t.replace(/\n/g,"\n");return m(t)}function W(e,t){return e=e.replace(//gi,"").replace(//gi,"").replace(/"];return g(i)||(i=[i]),h(i,function(e,t){t&&a.push('')}),n&&a.push(""),a.push("