// ce-29.605-develop-mac e52c6dc0ba647867a15a164bb6c88b7aeb276fc7
// Copyright 2013-2015 Evernote Corp. All rights reserved.
// http://www.evernote.com

window.enLoadState = 'willLoad';
window['CE_VERSION_INFO'] = {
    'lastCommitDate': '2016-03-01 15:17:12 -0800',
    'major': 29,
    'build': 605,
    'channel': 'develop',
};

try {(function(){ 'use strict';var aa=this;
function ba(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var b=Object.prototype.toString.call(a);if("[object Window]"==b)return"object";if("[object Array]"==b||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==b||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==
c&&"undefined"==typeof a.call)return"object";return c}function da(a){return"array"==ba(a)}function w(a){return"string"==typeof a}function ea(a){return"function"==ba(a)}function fa(a){var c=typeof a;return"object"==c&&null!=a||"function"==c}function ga(a,c){var b=a.split("."),e=aa;b[0]in e||!e.execScript||e.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)b.length||void 0===c?e[d]?e=e[d]:e=e[d]={}:e[d]=c}
function ha(a,c){function b(){}b.prototype=c.prototype;a.Mc=c.prototype;a.prototype=new b;a.prototype.constructor=a;a.qg=function(a,b,f){for(var g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return c.prototype[b].apply(a,g)}};window.CE_VERSION_INFO=window.CE_VERSION_INFO||{lastCommitDate:"",major:0,build:0,channel:"local",platform:"mac"};function ia(){var a=window.CE_VERSION_INFO;return["ce",a.major+"."+a.build,a.channel,a.platform].join("-")}function ja(){return window.CE_VERSION_INFO.lastCommitDate};var ka="style bgcolor title lang dir text".split(" "),ma="address article aside body blockquote caption center col colgroup dd details dir div dl dt fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hgroup hr li listing menu nav ol p plaintext pre section summary table tbody td tfoot th thead tr ul xmp".split(" "),na="a abbr b bdi bdo cite code dfn em h1 h2 h3 h4 h5 h6 i kbd mark p pre q rp rt ruby s samp small span strong sub sup u var acronym listing strike xmp big blink font marquee nobr tt".split(" "),
oa="hr area base br col colgroup embed img input link meta param wbr en-todo en-media".split(" "),pa="margin-left margin-right font-family font-size font-weight text-align color direction background-color font-style text-decoration vertical-alignment line-height".split(" "),qa=["0","0px","none","initial"],ra="colgroup table tbody tfoot thead tr".split(" "),sa=["script","style","plaintext","xmp"],ta=["embed","object","img"],ua=ma.join(","),wa=["*","~","!","_","`"],xa="backcolor bold capitalize content copy createlink cut delete deleteline deletetable deletetablecol deletetablerow deleteword enml focus fontname fontsize forecolor forwarddelete forwarddeleteline forwarddeleteword highlight indent inserthorizontalrule inserthtml insertimage insertlinebreak insertorderedlist insertparagraph inserttable inserttablecol inserttablerow inserttext inserttodo inserttodolist insertunorderedlist italic justifycenter justifyfull justifyleft justifyright lowercase outdent paste pasteplain pasteraw pastesimple plaintext redo removeformat selectall simpletext strikethrough tab tablealign tablebordercolor tableborderwidth tablecellcolor tt underline undo unlink uppercase".split(" ");var za=[];function Aa(a){da(a)||(a=[a.toString()]);this.L=a}Aa.prototype.log=function(a,c,b){if(800<=a)for(var e=0;e<za.length;e++)za[e](this.L,a,Array.prototype.slice.call(c),b)};Aa.prototype.A=function(){};Aa.prototype.info=function(a){this.log(800,arguments)};Aa.prototype.warn=function(a){this.log(900,arguments)};Aa.prototype.error=function(a){this.log(1E3,arguments)};Aa.prototype.I=function(a){this.log(1200,arguments)};function Ba(){}Ba.prototype.A=function(){};Ba.prototype.info=function(){};
Ba.prototype.warn=function(){};Ba.prototype.error=function(){};var Ca=new Aa("default"),Da=Ca.info.bind(Ca),Ea=Ca.warn.bind(Ca),Fa=Ca.error.bind(Ca);Ca.I.bind(Ca);window.evernoteClient&&za.push(function(a,c,b){a=a.map(function(a){return"["+a+"]"}).join("");b.unshift(a);window.evernoteClient.log(b.join(" "))});za.push(function(a,c,b){a=a.map(function(a){return"["+a+"]"}).join("");b.unshift(a);a=b.map(Ga).join(" ");1E3<=c?console.error(a):900<=c?console.warn(a):800<=c?console.info(a):console.log(a)});var x={};function Ha(){return!1}function z(){return!0}function Ia(){}x.ld=function(a,c){null==Ja[a]?(x.error("Unrecognized log level: <"+a+">. Logging as error."),x.error.apply(x.error,arguments)):Ja[a].apply(x,Array.prototype.slice.call(arguments,1))};x.log=function(){};x.info=Da;x.warn=Ea;x.error=Fa;x.time=Ia;x.timeEnd=Ia;x.trace=Ia;x.dump=function(a){var c=Array.prototype.slice.call(arguments).map(Ga);x.log.apply(x,c)};var Ja={info:x.info,warn:x.warn,error:x.error};
x.group=function(a){window.console&&window.console.groupCollapsed&&window.console.groupCollapsed(Array.prototype.slice.call(arguments).map(Ga).join(" "))};x.groupEnd=function(){window.console&&window.console.groupCollapsed&&window.console.groupEnd&&window.console.groupEnd()};var Ka={};x.Ne=function(a,c){var b={t:window.performance&&window.performance.now?window.performance.now():(new Date).getTime(),$b:Array.prototype.slice.call(arguments,1).join(" ")||""};Ka[a]?Ka[a].push(b):Ka[a]=[b]};
x.yg=function(a,c){Ka[a]=[];x.Ne.apply(this,arguments)};function La(a){a=a.toString();var c=a.indexOf(".");return 0>c?a:a.substring(0,c+4)}x.xg=function(a,c){x.Ne.apply(this,arguments);for(var b=Ka[a],e=b[b.length-1].t-b[0].t,d=1;d<b.length;d++){var f=b[d].t-b[d-1].t;x.log("\u25fc "+a+"."+d+": "+La(f)+"ms ("+Math.round(100*f/e)+"% of "+La(e)+"ms full time)",b[d].$b?"<-":"",b[d].$b)}Ka[a]=[]};function Ma(a){var c=Na(arguments);c.unshift("DEPRECATION WARNING:");x.warn.apply(null,c)}
function B(a,c){if(!a){var b="Assertion failed! "+Array.prototype.slice.call(arguments,1).join(" ");x.error(b);throw b;}}function Oa(a){try{if(w(a))return Pa(a);var c=JSON.stringify(a,null,"  ")}catch(b){return a.toString()}return c}
function Qa(a){var c;return a instanceof Text?"<TextNode:"+Oa(a.textContent)+">":a instanceof Element?"<Element:"+a.outerHTML.replace(/^<(.*?)>[\s\S]*$/gi,"$1")+(a.id?"#"+a.id:"")+">":a instanceof DocumentFragment?(c=document.createElement("div"),c.appendChild(a.cloneNode(!0)),"<DocumentFragment:"+c.innerHTML.replace(/^<(.*?)>[\s\S]*$/gi,"$1")+">"):a instanceof Range?(c=document.createElement("div"),c.appendChild(a.cloneContents()),"<Range:"+Qa(a.startContainer)+":"+a.startOffset+","+Qa(a.endContainer)+
":"+a.endOffset+" collapsed="+(a.collapsed?"true":"false")+" html="+Oa(c.innerHTML)+">"):"<"+typeof a+":"+Oa(a)+">"}function Ga(a){return w(a)?a:Qa(a)}var Ra=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;function Sa(a){return a instanceof RegExp?a.source:a.replace(Ra,"\\$&")}var Ta=/[^\x20-\x26\x28-\x5B\x5D-\x7E]/g,Ua={"\n":"\\n","'":"\\'",'"':'\\"',"\t":"\\t","\r":"\\r"};
function Pa(a){return"'"+a.replace(Ta,function(a){if(Ua[a])return Ua[a];a=a.charCodeAt(0).toString(16);var b=a.length;return 1===b?"\\x0"+a:2===b?"\\x"+a:3===b?"\\u0"+a:"\\u"+a})+"'"}var Va=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g;function Wa(a){Va.lastIndex=0;return Va.test(a)}var Xa=/[\u0000\u0001-\u0008\u000E-\u001F\u007F-\u009F\uFDD0-\uFDEF\u000B\uFFFE\uFFFF]|[\x01-\x10][\uFFFE-\uFFFF]/g;function Ya(a){return a.replace(Xa,"")}
var Za={"&apos;":/&apos;/gi,"&quot;":/&quot;/gi,"&gt;":/&gt;/gi,"&lt;":/&lt;/gi,"&amp;":/&amp;/gi,"&":/&/g,"<":/</g,">":/>/g,'"':/"/g,"'":/'/g};function $a(a){return a.replace(Za["&apos;"],"'").replace(Za["&quot;"],'"').replace(Za["&gt;"],">").replace(Za["&lt;"],"<").replace(Za["&amp;"],"&")}
function ab(a){var c;B(!!a&&bb(a),"obj has to be dict",a);var b={};null==c&&(c=!1);Object.keys(a).forEach(function(c){b[a[c]]=c});c||Object.keys(a).length===Object.keys(b).length||Ea("inverting resulted in a different number of keys","original:",a,"inverted:",b);return b}function cb(a,c){var b;if(a&&c)if(null!=a.length){b=0;for(var e=a.length;b<e&&c.call(a,a[b],b)!==db;b++);}else"object"===typeof a&&Object.keys(a).every(function(b){return c.call(a,b,a[b])===db?!1:!0})}var db={};
function eb(a,c,b){if(c)for(var e in c)if(!b||void 0===a[e]){var d=c[e];void 0!==d&&(a[e]=d)}return a}function D(a,c,b){null==b&&(b=!0);if(null==a||""===a)a={};w(a)&&(a=JSON.parse(a)||{});B(bb(a),"Options of wrong type");if(c){B(bb(c),"Defaults of wrong type");var e,d=Object.keys(c);for(e in a)if(a.hasOwnProperty(e)&&!(0<=d.indexOf(e))&&b){var f=["Key",Oa(e),"not supported! Seen in:",(a||{}).name||"",a];x.warn.apply(null,f)}for(e in c)"undefined"===typeof a[e]&&(a[e]=c[e])}return a||{}}
function fb(){var a=navigator.language||navigator.userLanguage||"en",a=a.split("-")[0];window.Evernote&&window.Evernote.getLanguage&&(a=window.Evernote.getLanguage());return a}function Na(a,c){if(!c)return Array.prototype.slice.call(a,0);var b=a.length,e=[],d;if(c)for(d=b-1;0<=d;d--)e.push(a[d]);else for(d=0;d<b;d++)e.push(a[d]);return e}var hb=/^[\x00-\x20\s]*$/g;function ib(a){return w(a)?(hb.lastIndex=0,0===a.length||hb.test(a)):!1}
function jb(a){return!a||ib(a)||da(a)&&0===a.length||fa(a)&&0===Object.keys(a).length}var kb=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?((?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))))(?::\d{2,5})?(?:\/\S*)?(?:\?\S*)?$/gi;
function lb(a){kb.lastIndex=0;return w(a)&&kb.test(a)}function bb(a){return!!a&&"object"===ba(a)}function mb(a){var c=a.indexOf(">"),b=a.lastIndexOf("<");return 0>c||0>b?a:a.substring(c+1,b)}function nb(a){var c;if(w(a))c=document.createElement("div"),c.textContent=a;else if(a instanceof Node)c=a.ownerDocument.createElement("div"),c.appendChild(a.cloneNode(!0));else throw"Illegal argument type for en.toHTML";return mb(c.outerHTML)}function ob(){return window.ENUniqueCounter++}
function pb(a){var c=1+(window.ENUniqueCounterObject[a]||0);window.ENUniqueCounterObject[a]=c;return a+"-"+c}window.ENUniqueCounter=1;window.ENUniqueCounterObject={};function qb(a){x.error("Exception: "+a.toString())}function rb(){this.ka=[];this.bb=[]}rb.prototype.has=function(a){return-1!==this.ka.indexOf(a)};rb.prototype.get=function(a){a=this.ka.indexOf(a);return-1!==a?this.bb[a]:null};rb.prototype.set=function(a,c){var b=this.ka.indexOf(a);-1!==b?this.bb[b]=c:(this.ka.push(a),this.bb.push(c))};
rb.prototype.remove=function(a){a=this.ka.indexOf(a);-1!==a&&(this.ka.splice(a,1),this.bb.splice(a,1))};function sb(){this.A=Object.create(null)}sb.prototype.add=function(a){this.A[a]=!0};sb.prototype.remove=function(a){delete this.A[a]};sb.prototype.has=function(a){return!!this.A[a]};var tb=window.onerror;window.onerror=function(a,c,b){var e=!1;tb&&(e=tb(a,c,b));x.error("Uncaught error in JS:",a.toString(),c,b);return e};var E={"smiling face with open mouth":{icon:"\ud83d\ude03",keystrokes:[":)",":=)",":-)"],color:"yellow"},pensive:{icon:"\ud83d\ude14",keystrokes:[":(",":=(",":-("]},"grinning face":{icon:"\ud83d\ude00",keystrokes:[":D",":=D",":-D"]},"smiling face with sunglasses":{icon:"\ud83d\ude0e",keystrokes:["8=)","8-)","B=)","B-)"]},"winking face":{icon:"\ud83d\ude09",keystrokes:[";)",";=)",";-)"]},"face with open mouth":{icon:"\ud83d\ude2e",keystrokes:":o :=o :-o :O :=O :-O".split(" ")},"crying face":{icon:"\ud83d\ude22",
keystrokes:[";(",";=(",";-("]},"smiling face with open mouth and cold sweat":{icon:"\ud83d\ude05",keystrokes:["(:|",":sweat:"]},"neutral face":{icon:"\ud83d\ude10",keystrokes:[":|",":=|",":-|",":neutral:"]},"kissing face with closed eyes":{icon:"\ud83d\ude1a",keystrokes:[":*",":=*",":-*",":kiss:"]},"face with stuck-out tongue":{icon:"\ud83d\ude1b",keystrokes:":P :=P :-P :p :=p :-p".split(" ")},"smiling face with smiling eyes":{icon:"\ud83d\ude0a",keystrokes:[":$",":-$",":=$",":simple_smile:"]},"angry face":{icon:"\ud83d\ude21",
keystrokes:":@ :-@ :=@ x( x-( x=( X( (X=( :angry:".split(" ")},"smiling face with halo":{icon:"\ud83d\ude07",keystrokes:"O:) O:=) O:-) o:) o:=) o:-) :innocent: :angel:".split(" ")},"heavy black heart":{icon:"\u2764\ufe0f",keystrokes:["<3",":heart:"]},"sleepy face":{icon:"\ud83d\ude2a",keystrokes:["|-)","I-)","I=)",":snooze:"]},"smiling face with heart-shaped eyes":{icon:"\ud83d\ude0d",keystrokes:[":inlove:",":in_love:"]},"smiling face with horns":{icon:"\ud83d\ude08",keystrokes:[":devil:"]},ghost:{icon:"\ud83d\udc7b",
keystrokes:[":ghost:"]},"extraterrestrial alien":{icon:"\ud83d\udc7d",keystrokes:[":alien:"]},skull:{icon:"\ud83d\udc80",keystrokes:[":skull:"]},"face screaming in fear":{icon:"\ud83d\ude31",keystrokes:[":scream:"]},"slice of pizza":{icon:"\ud83c\udf55",keystrokes:[":pizza:"]},"purple heart":{icon:"\ud83d\udc9c",keystrokes:[":purple_heart:",":purpleheart:"]},"green heart":{icon:"\ud83d\udc9a",keystrokes:[":green_heart:",":greenheart:"]},"blue heart":{icon:"\ud83d\udc99",keystrokes:[":blue_heart:",
":blueheart:"]},"yellow heart":{icon:"\ud83d\udc9b",keystrokes:[":yellow_heart:",":yellowheart:"]},droplet:{icon:"\ud83d\udca7",keystrokes:[":droplet:"]}},ub={":(=|-)?\\)":E["smiling face with open mouth"],":(=|-)?\\(":E.pensive,":(=|-)?D":E["grinning face"],"(8|B)(=|-)\\)":E["smiling face with sunglasses"],";(=|-)?\\)":E["winking face"],":(=|-)?(o|O)":E["face with open mouth"],";(=|-)?\\(":E["crying face"],"\\(:\\|":E["smiling face with open mouth and cold sweat"],":sweat:":E["smiling face with open mouth and cold sweat"],
":(=|-)?\\|":E["neutral face"],":neutral:":E["neutral face"],":(=|-)?\\*":E["kissing face with closed eyes"],":kiss:":E["kissing face with closed eyes"],":(=|-)?(P|p)":E["face with stuck-out tongue"],":(-|=)?\\$":E["smiling face with smiling eyes"],":simple_smile:":E["smiling face with smiling eyes"],"\\(?(:|x|X)(=|-)?(@|\\()":E["angry face"],":angry:":E["angry face"],"(O|o):(=|-)?\\)":E["smiling face with halo"],":innocent:":E["smiling face with halo"],":angel:":E["smiling face with halo"],"<3":E["heavy black heart"],
":heart:":E["heavy black heart"],"(\\||I)(-|=)\\)":E["sleepy face"],":snooze:":E["sleepy face"],":in_?love:":E["smiling face with heart-shaped eyes"],":devil:":E["smiling face with horns"],":ghost:":E.ghost,":alien:":E["extraterrestrial alien"],":skull:":E.skull,":scream:":E["face screaming in fear"],":pizza:":E["slice of pizza"],":purple_?heart:":E["purple heart"],":green_?heart:":E["green heart"],":blue_?heart:":E["blue heart"],":yellow_?heart:":E["yellow heart"],":droplet:":E.droplet},vb=new rb;
Object.keys(ub).forEach(function(a){vb.set(a,ub[a])});function wb(){function a(a,b,c){a.G=D(b,{title:null,id:null,queryGroupName:c.Ef})}function c(a){B(w(a)&&a===a.toLowerCase(),"Command name has to be lower case only.");var c=a.lastIndexOf("."),f=[],g=null,k=a;-1===c?(c=b[a])&&(f=c.filter(function(a){return!0!==a.Mb})):(g=a.substring(0,c),k=a.substring(c+1),(c=b[k])&&(f=c.filter(function(a){return a.zb&&-1!==a.zb.indexOf(g)})));return{la:f,ug:k,Ef:g,zg:a}}var b={};this.ag=function(a){B(bb(a),"We require command to be an object:",a);var c=a.name;B(w(c)&&
1<c.length&&!!c.match(/[a-z]+/gi),"Invalid name for command:",Oa(c));a.action&&B(!!a.enabled,'We require command to have "enabled" state:',a.name);B(!!(a.action||a.value||a.state),'We require command to have one of "action", "value" or "state":',a.name);B(!a.zb||da(a.zb),"We require command groups to be an Array:",a.name);var f=b[c];f||(f=[],b[c]=f);B(da(f),"Expected list for commands");f.push(a)};this.Ue=function(a){if(a&&b)for(var c=Object.keys(b||{}),f=0;f<c.length;f++){var g=c[f],k=b[g];if(k)for(var n=
k.length-1;0<=n;n--){var h=k[n];h&&a(h)&&(k.splice(n,1),0>=k.length?delete b[g]:b[g]=k)}}else b={}};this.action=function(b,d,f){var g=null;try{var k=c(b),n=k.la;if(0!=n.length)for(b=0;b<n.length;b++){var h=n[b];a(h,f,k);if(h.action&&h&&h.enabled&&h.enabled.call(h,d)){var l={name:h.name,value:d,command:h};xb("beforeExecCommand",l);var m=h.action.call(h,d),g=!(null===g&&!1===m);l.result=m;xb("execCommand",l)}}else x.warn("execCommand of unknown command:",b,"with value:",d)}catch(r){x.ld("complete"!==
document.readyState?"warn":"error","Exception in execCommand <$>:",r.toString()),qb(r)}return g};this.enabled=function(b,d,f){var g=null;try{var k=c(b),n=k.la;if(n)for(b=0;b<n.length;b++){var h=n[b];if(h.enabled){a(h,f,k);var l=h.enabled.call(h,d);if(!0===l){g=!0;break}null===g&&!1===l&&(g=!1)}}else x.warn("queryCommandEnabled of unknown command:",b,d)}catch(m){x.ld("complete"!==document.readyState?"warn":"error","Exception in queryCommandEnabled <$>:",m.toString())}return g};this.state=function(b,
d,f){var g=null;try{var k=c(b),n=k.la;if(n)for(b=0;b<n.length;b++){var h=n[b];if(h.state){a(h,f,k);if(!0===h.state.call(h,d)){g=!0;break}g=!1}}else x.warn("queryCommandState of unknown command:",b,d)}catch(l){x.ld("complete"!==document.readyState?"warn":"error","Exception in queryCommandState <$>:",l.toString()),qb(l)}return g};this.value=function(b,d,f){var g=null;try{var k=c(b),n=k.la;if(n)for(b=0;b<n.length;b++){var h=n[b];if(h.value){a(h,f,k);var l=h.value.call(h,d);if(null!=l){if(!w(l))try{g=
JSON.stringify(l);break}catch(m){}g=l.toString();break}g=""}}else x.warn("queryCommandValue of unknown command:",b,d)}catch(m){x.ld("complete"!==document.readyState?"warn":"error","Exception in queryCommandValue <$>:",m.toString()),qb(m)}return g}}function yb(a){return!(!1===a||0===a||"0"===a||"false"===a.toString().toLocaleLowerCase())}
function zb(a){if(bb(a))return a;if(w(a)&&0<a.length){if(0===a.indexOf("{"))try{return JSON.parse(a)||{}}catch(c){}else Ma('Please use a JSON formatted string in the form { "value": "'+a.substring(0,100)+'"}');return{value:a}}return{}}function Ab(a){var c="";try{var b=a;w(b)&&(b=JSON.parse(b)||{});if(da(b))return b;if(bb(b))return[b]}catch(e){c=e}x.warn("Problems parsing value",a,c.toString());return null};var Bb=new function(){var a=this;a.name="message";var c;a.F=function(){c={}};a.D=function(a,e){var d=c[a];if(null!=d)for(var f=0;f<d.length;f++)(0,d[f][1])(e,a)};a.N=function(b,e){if(null!=c[b]){var d=e(b);a.D(b,d)}};a.subscribe=function(a,e,d,f){var g=c[a];null==g&&(g=[],c[a]=g);f&&(e=e.bind(f));a=d||0;for(d=0;d<g.length;d++)if(a<g[d][0]){g.splice(d,0,[a,e]);return}g.push([a,e])};a.ha=function(b,c,d,f){function g(d){c.apply(f,arguments);a.unsubscribe(b,g)}a.subscribe(b,g,d)};a.J=function(){return null!=
c.beforeDelete};a.Y=function(a){a=c[a];return null!=a?a.length:0};a.unsubscribe=function(a,e){var d=c[a];if(null!=d){for(var f=d.length-1;0<=f;f--)d[f][1]===e&&d.splice(f,1);0===d.length&&delete c[a]}};a.U=function(){c={}}};Bb.F({});var Cb={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function Db(a){a.preventDefault()}function Eb(a){a.state=this.state;a.preventDefault=function(){a.srcEvent.preventDefault()};a.stopPropagation=function(){a.srcEvent.stopPropagation()};this.I(a);this.listener.call(this.target,a)}
function Fb(a,c){var b=Array.prototype.slice.call(a.targetTouches),e={};if(c&3&&1===b.length)return[b,b];var d=Array.prototype.slice.call(a.changedTouches);b.forEach(function(a){e[a.identifier]=!0});d.forEach(function(a){e[a.identifier]||(e[a.identifier]=!0,b.push(a))});return[b,d]}function Gb(a){var c=[];a.touches.forEach(function(a){c.push({clientX:Math.round(a.clientX),clientY:Math.round(a.clientY)})});return{timeStamp:Date.now(),touches:c,center:Hb(c),deltaX:a.deltaX,deltaY:a.deltaY}}
function Hb(a){var c=0,b=0,e=a.length;a.forEach(function(a){c+=a.clientX;b+=a.clientY});return{x:Math.round(c/e),y:Math.round(b/e)}}function Ib(a,c){var b=null==a.x?["clientX","clientY"]:["x","y"];return 180*Math.atan2(c[b[1]]-a[b[1]],c[b[0]]-a[b[0]])/Math.PI}function Jb(a,c){var b=null==a.x?["clientX","clientY"]:["x","y"],e=c[b[0]]-a[b[0]],b=c[b[1]]-a[b[1]];return Math.sqrt(e*e+b*b)}function Kb(a,c){return a===c?1:Math.abs(a)>=Math.abs(c)?0<a?2:4:0<c?8:16}
function Lb(a,c,b){B(!!a,"Missing target to work with");B("function"==typeof c,"Listener must be a function");this.listener=c;this.target=a;this.Za={};this.state=1;this.L=!1;this.options=D(b||{},this.A,!1)}var Mb=0;Lb.prototype.A={};Lb.prototype.ec=function(){return 1};Lb.prototype.I=function(){};function Nb(a,c){B(!!c,"Payload is missing, check proper flow when tryEmit is being used.");a.options.Yd&&a.state&6&&!(a.state&8)?Ob(a,!0):a.options.Yd&&Ob(a,!1);a.state&30&&Eb.call(a,c)}
function Ob(a,c){a.L&&!c&&0>=--Mb?document.body.removeEventListener("touchmove",Db):!a.L&&c&&0<++Mb&&document.body.addEventListener("touchmove",Db);a.L=c}function Pb(a,c,b){Lb.call(this,a,c,b);this.P=this.M=0}ha(Pb,Lb);Pb.prototype.A={type:"pan",hb:1,threshold:10,Yd:!0,direction:30};
Pb.prototype.ec=function(a){var c=this.state&6,b;if((b=a.touches.length===this.options.hb)&&!(b=this.state&2)&&(b=!(this.state&2))){b=a.direction;var e=a.distance;a.direction&this.options.direction||(this.options.direction&6?(e=a.deltaX,b=0===e?1:0>e?2:4):(e=a.deltaY,b=0===e?1:0>e?8:16),e=Math.abs(e));b=!!(e>this.options.threshold&&b&this.options.direction)}if(c&&(a.inputType&8||!b))return this.state|16;if(c||b)return a.inputType&4?this.state|8:this.state&2?this.state|4:(this.M=a.deltaX,this.P=a.deltaY,
2);this.P=this.M=0;return 32};Pb.prototype.I=function(a){a.deltaX-=this.M;a.deltaY-=this.P;2===this.state&&(a.isInitial=!0)};function Qb(a,c,b){Lb.call(this,a,c,b)}ha(Qb,Lb);Qb.prototype.A={type:"pinch",hb:2,threshold:0,Yd:!0};Qb.prototype.ec=function(a){var c=this.state&6,b=a.touches.length===this.options.hb&&(Math.abs(a.scale-1)>this.options.threshold||this.state&2);return c&&(a.inputType&8||!b)?this.state|16:c||b?a.inputType&4?this.state|8:this.state&2?this.state|4:2:32};
Qb.prototype.I=function(a){this.state&8&&(a.isFinal=!0)};function Rb(a,c,b){Lb.call(this,a,c,b)}ha(Rb,Qb);Rb.prototype.A={type:"rotate",hb:2,threshold:0};function Sb(a,c,b){Lb.call(this,a,c,b)}ha(Sb,Lb);Sb.prototype.A={type:"swipe",threshold:10,pg:.65,direction:30,hb:1};
Sb.prototype.ec=function(a){var c=this.options.direction,b=0;c&30?b=a.velocity:c&6?b=a.velocityX:c&24&&(b=a.velocityY);var e=this.state&6,c=a.touches.length===this.options.hb&&a.inputType&4&&a.distance>this.options.threshold&&c&a.direction&&Math.abs(b)>this.options.pg;return e&&(a.inputType&8||!c)?this.state|16:e||c?a.inputType&4?this.state|8:this.state&2?this.state|4:2:32};function Tb(a,c,b){Lb.call(this,a,c,b);this.Kb=null;this.Ea=void 0;this.Lb=0}ha(Tb,Lb);
Tb.prototype.A={type:"tap",hb:1,be:1,interval:300,time:250,threshold:5,offset:10,Ie:!1};
Tb.prototype.ec=function(a){var c=a.touches.length===this.options.hb&&a.distance<this.options.threshold&&a.deltaTime<this.options.time;clearTimeout(this.Kb);if(c){var b=this;if(4!=a.inputType)return b.Kb=setTimeout(function(){b.state=32;b.Ea=void 0;b.Lb=0},b.options.interval),32;var c=!this.Ea||a.timeStamp-this.Ea.timeStamp<this.options.interval,e=!this.Ea||Jb(this.Ea.center,a.center)<this.options.offset;this.Ea=a;this.Lb=c&&e?this.Lb+1:1;if(this.Lb===this.options.be&&this.options.Ie)return 8;this.Lb===
this.options.be&&(this.Kb=setTimeout(function(){b.state=8;Nb(b,b.Ea)},this.options.interval))}return 32};Tb.prototype.I=function(a){a.count=this.Lb;this.Lb=0;this.Ea=void 0};function Ub(a,c,b){Lb.call(this,a,c,b);this.Kb=null;this.Ea=void 0}ha(Ub,Lb);Ub.prototype.A={type:"press",hb:1,time:450,threshold:5};
Ub.prototype.ec=function(a){var c=a.touches.length===this.options.hb&&a.distance<this.options.threshold;if(c&&a.inputType&1){var b=this;clearTimeout(this.Kb);this.Ea=a;this.Kb=setTimeout(function(){b.state=8;Nb(b,b.Ea)},this.options.time)}else c&&a.inputType&2?this.Ea=a:(clearTimeout(this.Kb),this.Ea=void 0);return 32};function F(a,c){return a&&a.classList?a.classList.contains(c):!!(a&&a.className&&(new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)","gi")).test(a.className))}function G(a,c){a&&(a.classList?a.classList.add(c):F(a,c)||(a.className=((a.className||" ")+" "+c).trim()))}function Vb(a,c){a&&(a.classList?a.classList.remove(c):F(a,c)&&(a.className=a.className.replace(new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)","gi")," ").trim()||""),0===a.className.length&&a.removeAttribute("class"))}
function Wb(a,c,b){a&&(null!=b?b?G(a,c):Vb(a,c):a.classList?(a.classList.toggle(c),0===a.className.length&&a.removeAttribute("class")):F(a,c)?Vb(a,c):G(a,c))}function H(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}function Xb(a){return I(a)?Na(a.childNodes):[]}function Yb(a,c){var b=Zb(a);if(b.parentNode!==c){for(;b.parentNode!==c;)b=b.parentNode;return Zb(b)===Zb(a)}return 0===J(b)}function Zb(a){return I(a)&&a.firstChild?Zb(a.firstChild):a}
function $b(a){return I(a)&&a.lastChild?$b(a.lastChild):a}function ac(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function bc(a,c){var b=a.parentNode;b&&b.replaceChild(c,a);return c}function cc(a){if(a){for(;a.firstChild;)a.parentNode.insertBefore(a.removeChild(a.firstChild),a);H(a)}}function dc(a,c){for(;a.firstChild;)c.appendChild(a.firstChild)}var ec;function fc(a){ec?ec.lastIndex=0:ec=new RegExp("<(("+oa.join("|")+")[^\\s/>]*?)>(?![^]*?<\\/\\1>)","gi");return a.replace(ec,"<$1/>")}
function gc(a,c){var b=null;try{if(a&&0<a.length){var e=hc(c||document,"div");a=Ya(a).replace(/&nbsp;/gi,"\u00a0");ic(e)&&(x.log("Before XHTML",a),a=fc(a),x.log("Processed XHTML",a));jc(e,a);var d=e.ownerDocument.createRange();d.selectNodeContents(e);b=d.extractContents()}}catch(f){}return b}function kc(a,c){for(var b=c.ownerDocument.createDocumentFragment();a.firstChild;)b.appendChild(a.firstChild);c.appendChild(b)}function lc(a,c){ac(c);kc(a,c)}
function mc(a,c){dc(a,c);a.appendChild(c);return c}function nc(a,c){B(I(a),"<$>");c=c.toLowerCase();if(K(a)===c||!a.parentNode)return a;for(var b=a.ownerDocument.createElement(c),e=0;e<a.attributes.length;e++)b.setAttributeNS(a.attributes[e].namespaceURI,a.attributes[e].name,a.attributes[e].value);B(I(a),"<$>");B(I(b),"<$>");B(!b.hasChildNodes(),"new node has to be empty <$>");a.parentNode.insertBefore(b,a);dc(a,b);H(a);return b}
function hc(a,c,b,e){a instanceof Document||(a=a.ownerDocument);c=a.createElement(c?c.toString().toLowerCase():"div");if(null!=b)for(var d in b)if(w(d)){var f=b[d];w(f)?c.setAttribute(d,f):x.warn("Provide a string as attribute value",d,f)}if(null!=e)if(w(e))c.innerHTML=e;else if(da(e))for(b=0;b<e.length;b++)(d=e[b])&&(w(d)?c.appendChild(a.createTextNode(d)):c.appendChild(d));else if(e instanceof Node)c.appendChild(e);else throw"Unsupported type for opt_inner";return c}
function jc(a,c){a&&(B(I(a),"Expected a HTML element"),a.insertAdjacentHTML?(a.hasChildNodes()&&ac(a),a.insertAdjacentHTML("afterbegin",c)):a.innerHTML=c)}function oc(a){return null!=a&&null!=a.nodeType?a.innerText:""}function M(a,c,b){return hc(document,a,c,b)}function pc(){return M("div",{},[M("br")])}
function qc(a,c){var b;if(a){if(a===c)return null;if(a.previousSibling)a=a.previousSibling;else return(b=a.parentNode)&&b!==c&&1==b.nodeType?b:null}else a=c||document.ownerDocument.documentElement;for(;b=a.lastChild;)a=b;return a}function rc(a,c){if(!a){if(!c)return null;a=c}var b=a.firstChild;if(b)return b;for(;a&&a!==c;){if(b=a.nextSibling)return b;a=a.parentNode}return null}
function ic(a){return(a=(a?a.ownerDocument||a:document).documentElement)&&a.nodeName?a.nodeName!==a.nodeName.toUpperCase():!1}function sc(a){return!(!a||3!==a.nodeType)}function I(a){return!(!a||!a.nodeType||1!==a.nodeType)}function tc(a,c){return c&&a?!!(a.compareDocumentPosition(c)&8):!1}function uc(a,c){return c&&a?!!(a.compareDocumentPosition(c)&16):!1}function vc(a){return!(!a||!a.isEqualNode(document.documentElement)&&!tc(a,document.documentElement))}
function wc(a){try{if(a&&(I(a)||(a=a.parentNode),a))return window.getComputedStyle(a)}catch(c){}return null}function xc(a,c,b){if(null==a)return null;null==c&&(c=!1);null==b&&(b=1);var e;c||null!=e?c=e=0:(e=document.body.scrollLeft,c=document.body.scrollTop);return{left:a.left*b+e,right:a.right*b+e,top:a.top*b+c,bottom:a.bottom*b+c,width:a.width*b,height:a.height*b}}
function N(a){var c;if(null==a)return null;null==c&&(c=!1);if(null==a.nodeType||!vc(a)||!a.getClientRects)return null;var b=a.getClientRects();0===b.length&&(b=a.ownerDocument.createRange(),b.selectNode(a),b=b.getClientRects());return 1<=b.length?xc(b[0],c,yc(a)):null}function zc(a){return(a=wc(a))&&a.display?"block"===a.display.toLowerCase():!1}function Ac(a){return!(!a||(-1===ma.indexOf(K(a))||F(a,"en-container"))&&9!==a.nodeType&&11!==a.nodeType)}
function Bc(a,c){var b=a;this.A=function(){a:{var a,d;if(b){if(b.firstChild){b=b.firstChild;break a}if(b!=c){if(a=b.nextSibling){b=a;break a}for(d=b.parentNode;d&&d!=c;d=d.parentNode)if(a=d.nextSibling){b=a;break a}}}b=void 0}return b}}function Cc(a){return!(!a||Ac(a))}function Dc(a,c){return null!=a&&null!=c&&!!(a.compareDocumentPosition(c)&4)}function K(a){return a&&a.tagName?a.tagName.toLowerCase()||void 0||"":""}function Ec(a,c){return a&&a.getAttribute?a.getAttribute(c)||void 0||"":""}
function J(a){for(var c=0;a=a.previousSibling;)c++;return c}function O(a){if(!a)return 0;switch(a.nodeType){case 7:case 10:return 0;case 3:case 8:return a.length;default:return a.childNodes.length}}function P(a,c,b){b||(b=document.body);return a===b?null:Q(a,c)?a:(a=a&&a.parentNode)?P(a,c,b):null}function Fc(a,c){return P(a.parentNode,Ac,c)}function Q(a,c){return a&&c?c instanceof Function?c(a):I(a)&&w(c)?a.webkitMatchesSelector(c):!1:!1}function R(a,c){return c?K(a)===c:I(a)}
function S(a){return"br"===K(a)}function Gc(a,c){return!0===c?!!P(a,Gc):I(a)?"true"===a.contentEditable:!1}function Hc(a,c,b){I(a)&&(!0===b?a.contentEditable=c?"true":"false":(a.contentEditable=c?"true":"inherit",c||a.removeAttribute("contenteditable")))}var Ic={};function Jc(a){var c=Ic[a];c?c.lastIndex=0:(c=new RegExp("(^|;)\\s*("+Sa(a)+")\\s*\\:\\s*(.*?)($|;)+","gi"),Jc[a]=c);return c}function Kc(a){return a&&a.getAttribute?a.A?a.I:a.getAttribute("style"):""}
function Lc(a){a&&a.getAttribute&&!a.A&&(a.A=!0,a.I=a.getAttribute?a.getAttribute("style"):"")}function Mc(a){if(a&&a.A){var c=a.I;"undefined"!==typeof c&&a.getAttribute("style")!==c&&(null===c||0===c.trim().length?a.removeAttribute("style"):a.setAttribute("style",c));delete a.I;delete a.A}}function Nc(a){a&&a.hasAttribute&&a.hasAttribute("style")&&(a.getAttribute("style").trim().length||a.removeAttribute("style"))}
function Oc(a,c){var b=Kc(a);if(null==b)return null;b=Jc(c).exec(b);return null===b?null:b[3].trim()}function Pc(a,c){var b=Kc(a);if(null==b)return"";b=b.replace(Jc(c),"$1").trim();if(a.A)return a.I=b;0<b.length?a.setAttribute("style",b):a.removeAttribute("style");return b||""}function T(a,c,b){var e=Pc(a,c);null!=b&&(e=e.trim(),e.length&&";"!==e[e.length-1]&&(e+=";"),e=e+c+":"+b+";",a.A?a.I=e:a.setAttribute("style",e))}
function Qc(a,c){var b=a&&a.getAttribute?a.getAttribute("en-app-data"):"";if(null==b)return null;b=Jc(c).exec(b);return null===b?null:b[3].trim()}function Rc(a,c){var b=a&&a.getAttribute?a.getAttribute("en-app-data"):"";if(null==b)return"";b=b.replace(Jc(c),"$1").trim();0<b.length?a.setAttribute("en-app-data",b):a.removeAttribute("en-app-data");return b||""}function Sc(a,c,b){var e=Rc(a,c);null!=b&&(e=e.trim(),e.length&&";"!==e[e.length-1]&&(e+=";"),a.setAttribute("en-app-data",e+c+":"+b+";"))}
function Tc(a,c){I(a)&&a.style?(a.style.display=c?"":"none",Nc(a)):x.warn("Failed to set visibility on non HTML element",a)}function Uc(){var a;a="span";B(w("-evernote-sentoj-emoticon")||!0);return a+'[style*="-evernote-sentoj-emoticon"]'}function Vc(a){a=V(Uc(),a,!0);return a=a.filter(function(a){return"true"===Oc(a,"-evernote-sentoj-emoticon")})}function Wc(a){for(var c=[];a&&a.parentNode;)c.unshift(a.parentNode),a=a.parentNode;return c}
function V(a,c,b){c||(c=document);try{return Na(c.querySelectorAll(a),b)}catch(e){throw 0===e.toString().indexOf("Uncaught error in JS: SyntaxError: DOM Exception 12")&&x.error("Wrong syntax in selector:",a),e;}}function W(a,c){return V(a,c,!0)}function Xc(a,c,b){for(;a&&(a=rc(a,b));)if(Q(a,c))return a;return null}function Yc(a,c,b){for(;a&&(a=qc(a,b));)if(Q(a,c))return a;return null}var Zc=/^[\t\n\r ]+$/;function $c(a){Zc.lastIndex=0;return sc(a)&&(""===a.data||Zc.test(a.data))}
function ad(a,c){var b=M("div",{style:"position: absolute; width: 1px; height: 1px; top: -9999px; left: -9999px;"});b.appendChild(a);document.body.appendChild(b);c(a);H(a);H(b)}function bd(a,c,b){b=b||document.body;var e;if(!tc(a,b)){do if(I(a)&&a.hasAttribute("style")&&(e=a.style[c],null!=e))break;while((a=a.parentNode)&&b===a)}return e||""}
function cd(a,c){var b;b=b||document.body;c=c||0;a=a||0;if(0===c)b.scrollTop=a;else{var e=b.scrollTop,d=a-e,f=0,g=function(){f+=20;var a;a=f;a/=c/2;1>a?a=d/2*a*a+e:(a--,a=-d/2*(a*(a-2)-1)+e);b.scrollTop=a;f<c&&window.setTimeout(g,20)};g()}}function dd(a,c){if(!I(a))return!1;var b=a.getBoundingClientRect();return ed(b.top,b.bottom,c)}function ed(a,c,b){var e=window.scrollY,d=e+window.innerHeight;null==b&&(b=55);a+=e;c+=e;return Math.max(0,Math.round((Math.min(d,c)-Math.max(e,a))/(c-a)*100))>=b}
var gd=new rb;function hd(a,c){var b=gd.get(a);b||(b={},gd.set(a,b));c&&!b.id&&(b.id=ob().toString());return b}function id(a,c){var b=a.id||hd(a,!0).id;return c+"@"+b}function jd(a){return null==a?a:0<a.children.length?a.children[a.children.length-1]:null}function kd(){var a=document.querySelector("#en-tools");a||(a=M("div",{"class":"en-tools",id:"en-tools"}),document.body.appendChild(a));return a}
function yc(a){var c=1;if(a){var b=document.querySelector("#en-note");if(b){for(var e=!1;a;){if(a===b){e=!0;break}a=a.parentNode}e&&void 0!==b.style&&void 0!==b.style.zoom&&""!==b.style.zoom&&(c=parseFloat(b.style.zoom),null!=c&&isFinite(c)||(c=1))}}return c};function ld(a,c,b,e){try{var d=document.createRange();null!=a&&(d.setStart(a||null,c||0),null!=b?d.setEnd(b||null,e||0):d.setEnd(a||null,c||0));return d}catch(f){}return null}function md(a,c){if(null!=a&&(!c||nd(a,c))){var b=window.getSelection();null!=b&&(b.setBaseAndExtent?b.setBaseAndExtent(a.startContainer,a.startOffset,a.endContainer,a.endOffset||0):(b.removeAllRanges(),b.addRange(a)))}}
function X(a){var c=window.getSelection();if(1>c.rangeCount)return null;c=c.getRangeAt(0);return a&&c&&!nd(c,a)?null:c?c.cloneRange():null}function od(a){var c=document.createRange();c.selectNode(a);md(c)}function pd(){window.getSelection().removeAllRanges()}function nd(a,c){return a&&c?(a.startContainer===c||tc(a.startContainer,c))&&(a.endContainer===c||tc(a.endContainer,c)):!1}function qd(a,c,b){if(!a)return null;var e;return(e=P(rd(a),c,b))?e:a.collapsed?null:P(sd(a),c,b)}
function rd(a){return a?sc(a.startContainer)?a.startContainer:a.startContainer.childNodes[a.startOffset]||a.startContainer:null}function sd(a){return a?sc(a.endContainer)?a.endContainer:a.endContainer.childNodes[a.endOffset]||a.endContainer.lastChild||a.endContainer:null}function td(a,c){return null==a||null==c?!1:a.startContainer===c.startContainer&&a.startOffset===c.startOffset&&a.endContainer===c.endContainer&&a.endOffset===c.endOffset?!0:!1}
function ud(a){return a?{startContainer:a.startContainer,startOffset:a.startOffset,endContainer:a.endContainer,endOffset:a.endOffset,collapsed:a.collapsed}:null}function vd(a){if(!a)return null;try{var c=ld(a.startContainer,a.startOffset,a.endContainer,a.endOffset)}catch(b){c=null}return c}function wd(a,c){if(!a||a.collapsed)return[];for(var b=[],e=a.commonAncestorContainer,d=a.startContainer;d&&a.intersectsNode(d);d=rc(d,e))c&&!Q(d,c)||b.push(d);return b}
function xd(a){a=a.getClientRects();return 0<a.length?a[0]:null}
function yd(a){if(null==a)return null;var c=xd(a);if(null==c||a.collapsed){if(!vc(a.startContainer))return null;var b=a.cloneRange();sc(b.startContainer)&&(0<b.startOffset&&b.setStart(b.startContainer,b.startOffset-1),c=xd(b),!c&&b.startOffset<O(b.startContainer)-1&&(b=a.cloneRange(),b.setEnd(b.startContainer,b.startOffset+1),c=xd(b)));if(!c)for(a=rd(a);a&&a!==document.body;){if(a.getClientRects&&(b=a.getClientRects(),0<b.length)){c=b[0];break}a=a.parentNode}if(!c)return null}return xc(c)}
function zd(a){if(null!=a){var c=document.body.scrollTop,b=window.innerHeight,e;e=c+b;var d;if(d=(d=Ad.env)&&null!=d.editorInset?d.editorInset:{top:0,bottom:0,left:0,right:0})0!==d.top&&(c+=d.top),0!==d.bottom&&(e-=d.bottom);a=null==a.nodeType?yd(a):N(a);if(null!=a){var f=Math.min(24,b/12),g=f/2,k=null;a.bottom+g>e?k=Math.max(0,a.bottom-b+f):a.top-g<c&&(k=Math.max(0,a.top-f));null!=k&&(k!==d.top||0===d.top&&0===k)&&(document.body.scrollTop=k)}}}
function Bd(a,c,b){if(c&&(c=P(a,c,b),null!==c))return c;for(;sc(a);)a=a.parentNode;return a}function Cd(a,c,b){var e=rd(a);a=sd(a);e=Bd(e,c,b);a=Bd(a,c,b);if(e===a)return[e,a];c=Wc(e);b=Wc(a);if(c[0]!==b[0])return[e,a];for(var d=0;d<c.length&&d<b.length&&c[d]===b[d];d++);e=[e,a];d<c.length&&(e[0]=c[d]);d<b.length&&(e[1]=b[d]);return e}
Range.prototype.intersectsNode||(x.warn("Range.intersectsNode has been added by polyfill!"),Range.prototype.intersectsNode=function(a){var c=a.ownerDocument.createRange();try{c.selectNode(a)}catch(b){c.selectNodeContents(a)}return-1===this.compareBoundaryPoints(Range.END_TO_START,c)&&1===this.compareBoundaryPoints(Range.START_TO_END,c)});function Dd(a,c,b){b||(b=a);b=new Bc(a,b);do if(!c(a))return!1;while(a=b.A());return!0}function Ed(a){return!(!a||!a.nodeType||3===a.nodeType||-1==="img embed object input param hr".split(" ").indexOf(K(a))&&!F(a,"en-media")&&!F(a,"en-module"))}function Fd(a){var c=0;return Dd(a,function(a){return!(sc(a)&&!$c(a)||S(a)&&1<++c||Ed(a))})}
function Gd(a){var c=0;return Dd(a,function(a){var e=!(a&&a.nodeType&&3!==a.nodeType&&"li"===K(a)),d=!Ed(a);S(a)&&(c+=1);var f=!(1<c);a=/^[ \t\n\r]*$/g.test(a.textContent||"");return e&&d&&f&&a})}function Hd(a){return Dd(a.firstChild,function(a){return!(a&&!ib(a.textContent))&&!Ed(a)},a)};function Id(a){a.preventDefault();a.stopPropagation();return!1}var Jd={};function Kd(){var a;a="onmouseenter";if(null!=Jd[a])return Jd[a];var c=M({select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"}[a]||"div"),b=a in c;b||(c.setAttribute(a,"return;"),b="function"===typeof c[a]);return Jd[a]=b};var Ld={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};
function Md(a){var c={};a=String(a);var b="#"==a.charAt(0)?a:"#"+a;if(Nd(b))return c.Yb=Od(b),c.type="hex",c;a:{var e=a.match(Pd);if(e){var b=Number(e[1]),d=Number(e[2]),e=Number(e[3]);if(0<=b&&255>=b&&0<=d&&255>=d&&0<=e&&255>=e){b=[b,d,e];break a}}b=[]}if(b.length){a=b[0];d=b[1];b=b[2];a=Number(a);d=Number(d);b=Number(b);if(isNaN(a)||0>a||255<a||isNaN(d)||0>d||255<d||isNaN(b)||0>b||255<b)throw Error('"('+a+","+d+","+b+'") is not a valid RGB color');c.Yb="#"+Qd(a.toString(16))+Qd(d.toString(16))+
Qd(b.toString(16));c.type="rgb";return c}if(Ld&&(b=Ld[a.toLowerCase()]))return c.Yb=b,c.type="named",c;throw Error(a+" is not a valid color string");}var Rd=/#(.)(.)(.)/;function Od(a){if(!Nd(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Rd,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Sd=/^#(?:[0-9a-f]{3}){1,2}$/i;function Nd(a){Sd.lastIndex=0;return Sd.test(a)}var Pd=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;
function Qd(a){return 1==a.length?"0"+a:a}function Td(a){if("currentcolor"===a.toLowerCase())return null;try{var c=Md(a),b;if(c.Yb){var e=c.Yb,e=Od(e);b="rgb("+[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)].join(", ")+")"}else b=null;return b}catch(d){return null}}function Ud(a){try{var c=Md(a);if(c.Yb)return c.Yb}catch(b){}return null};function Vd(a,c,b){if("undefined"===typeof b||0===+b)return Math[a](c);c=+c;b=+b;if(isNaN(c)||"number"!==typeof b||0!==b%1)return NaN;c=c.toString().split("e");c=Math[a](+(c[0]+"e"+(c[1]?+c[1]-b:-b)));c=c.toString().split("e");return+(c[0]+"e"+(c[1]?+c[1]+b:b))}Math.Ya||(Math.Ya=function(a,c){return Vd("round",a,c||0)});Math.Af||(Math.Af=function(a,c){return Vd("floor",a,c||0)});Math.tf||(Math.tf=function(a,c){return Vd("ceil",a,c||0)});var Wd=/^(\-?\d*\.?\d*)(px|em|\%|pt)?$/,Xd=0,Yd=0;
function Zd(a){var c=null;if("number"===typeof a)c={Pb:"px",value:a,Eb:a.toString(),md:a||null};else{Wd.lastIndex=0;var b=Wd.exec(a);b&&(c={Pb:b[2]||"px",value:parseFloat(b[1]),Eb:b[1],md:a||null})}return c}
function $d(a){a=a||document.body;a=wc(a);Xd=Zd(a.fontSize).value;B(!!Xd,"Did not find base font size",Xd,a.fontSize);a=M("div",{style:"height: 100pt; left: -100%; position: absolute; top: -100%; width: 100pt; "});document.body.appendChild(a);Yd=a.offsetHeight/100;B(!!Yd,"Did not find pt ratio",Yd);H(a)}
function ae(a,c,b){var e=a||null;if(w(a)){var d=Zd(a);d?(a=d.value,b=d.Pb):a=null}c||(c="px");if(!a)return{Pb:c,value:0,Eb:"0",md:e,Ac:b};b||(b="px");if(b===c)return a=Math.Ya(a),{Pb:c,value:a,Eb:a+c,md:e,Ac:b};"px"===b&&"px"===c||B(0<Xd,"en.unit.init needs to get called first!");"px"===b?"em"===c?a=Math.Ya(a/Xd):"%"===c?a=Math.Ya(100*a/Xd):"pt"===c&&(a=Math.Ya(a/Yd)):"pt"===b?"em"===c?a=Math.Ya(a*Yd/Xd):"%"===c?a=Math.Ya(100*a*Yd/Xd):"px"===c&&(a=Math.Ya(a*Yd)):"%"===b?"em"===c?a=Math.Ya(a/100):
"pt"===c?a=Math.Ya(a*Xd/(100*Yd)):"px"===c&&(a=Math.Ya(a*Xd/100)):B(!1,"Not implemented yet",b,"=>",c);return{Pb:c,value:a,Eb:a+c,md:e,Ac:b}}function be(a){return ae(a).value||0};function ce(a,c){null==a&&(a=document.body);for(var b=a,e=c.length-1;0<=e&&null!=b;e--){var d=c[e];d>O(b)&&(d=O(b)-1);b=b.childNodes[d]}return b||null}function de(a,c){var b=[];null==c&&(c=document.body);for(;a&&a.parentNode&&a!==c;){for(var e=0,d=a.parentNode.childNodes,f=0;f<d.length;f++)if(d[f]===a){e=f;break}b.push(e);a=a.parentNode}return b}
function ee(a,c,b){for(var e=[];1==c.nodeType;){var d=c.childNodes[b];if(!d&&!c.lastChild)break;d?(c=d,b=0):(c=c.lastChild,b=O(c))}c=b={node:c,offset:b};if(3==c.node.nodeType)for(b=c.node.previousSibling;b&&3==b.nodeType;b=b.previousSibling)c.offset+=O(b);else b=c.node.previousSibling;d=c.node.parentNode;c.node=b?b.nextSibling:d.firstChild;b=c;for(c=b.node;c&&c.parentNode&&c!==a;){for(var f=d=0,g=c.parentNode.childNodes,k=0;k<g.length;k++){var n=g[k];3!==n.nodeType&&0<f&&(++d,f=0);if(n===c)break;
3===n.nodeType?f+=O(n):++d}e.push(d);c=c.parentNode}return{path:e,offset:b.offset}}function fe(a,c,b){null==a&&(a=document.body);var e="";c&&(b?(b=ee(a,c.startContainer,c.startOffset),a=ee(a,c.endContainer,c.endOffset),e={startPath:b.path,startOffset:b.offset,endPath:a.path,endOffset:a.offset,collapsed:c.collapsed}):e={startPath:de(c.startContainer,a),startOffset:c.startOffset,endPath:de(c.endContainer,a),endOffset:c.endOffset,collapsed:c.collapsed});return JSON.stringify(e)}
function ge(a,c){null==a&&(a=document.body);if(!c)return null;var b=JSON.parse(c),e;if(b&&b instanceof Object)a:{var d=a;null==d&&(d=document.body);if(void 0===d||!b)throw"All arguments required";try{var f=ce(d,b.startPath),g=ce(d,b.endPath);if(!f||!g){e=null;break a}var k=ld(f,b.startOffset,g,b.endOffset);b.collapsed&&k.collapse(!0);e=k;break a}catch(n){x.error("Exception <$>",n.toString())}e=null}else e=null;return e}
function he(a,c){null==a&&(a=document.body);var b=X(a);return b?fe(a,b,c):null}function ie(a,c){null==a&&(a=document.body);he(a);if(c){var b=ge(a,c);b&&md(b)}};function je(){var a=this;a.name="observer";var c=null,b={};a.Ud=function(a,c,f){var g=ob().toString();b[g]={name:g,Zd:a,F:c,S:f||Ha,Qb:new rb}};a.D=function(){var a,d,f,g=Object.keys(b);for(a=0;a<g.length;a++){var k=b[g[a]],n=V(k.Zd,c);for(d=0;d<n.length;d++){var h=n[d];k.Qb.has(h)||(f=k.F(h),k.Qb.set(h,f))}h=k.Qb;for(d=h.ka.length-1;0<=d;d--){var l=h.ka[d];-1===n.indexOf(l)&&(f=h.bb[d],k.S(l,f),f=h,l=d,f.ka.splice(l,1),f.bb.splice(l,1))}}};a.F=function(b){c=D(b,{root:null}).root||a.H("context").root;
a.B.I("execCommand",a.D.bind(a));a.B.listener(document,"input",a.D.bind(a));a.B.ba(c,"contentReady",a.D.bind(a),-1)};a.S=function(){c=null}};function ke(a){function c(a,b,c){this.We=a;this.xf=b;this.title=c||null}B(this instanceof ke,"Use `new` to instantiate this class");var b=[],e=[],d=a&&a.maxLength||0;this.Ma=function(a,g,k){if(a)if(g){if(a=new c(a,g,k),e=[],a.We(),b.push(a),1<d)for(;b.length>d;)b.shift()}else throw"UndoRedo.do missing required parameter 'down'.";else throw"UndoRedo.do missing required parameter 'up'.";};this.register=function(a,g,k){if(a)if(g){if(a=new c(a,g,k),e=[],b.push(a),1<d)for(;b.length>d;)b.shift()}else throw"UndoRedo.do missing required parameter 'down'.";
else throw"UndoRedo.do missing required parameter 'up'.";};this.N=function(){return 0<b.length};this.J=function(){return 0<e.length};this.M=function(){return b&&0!==b.length?b[b.length-1].title:null};this.I=function(){return e&&0!==e.length?e[e.length-1].title:null};this.L=function(){var a=b.pop();return a?(a.xf(),e.push(a),!0):!1};this.A=function(){var a=e.pop();return a?(a.We(),b.push(a),!0):!1};this.clear=function(){b=[];e=[]}};function le(){function a(a,b,c){c=c||M("div");c.setAttribute("data-en-overlay-id",a);c.setAttribute("data-en-layout-algorithm",b);Oc(c,"z-index")||T(c,"z-index","900");T(c,"position","absolute");k.appendChild(c);return c}function c(a,b){e.Ka(b).forEach(function(a){e.detach(a)});null!=g[b]&&delete g[b];gd.remove(a)}function b(){for(var a,b,m=Object.keys(f),e=0;e<m.length;e++){var k=f[m[e]],n=V(k.Zd,d);for(a=0;a<n.length;a++){var g=n[a];k.Qb.has(g)||(b={id:hd(g,!0).id},k.Qb.set(g,b),k.F(g,b))}var g=
[],q=k.Qb;for(a=q.ka.length-1;0<=a;a--){var A=q.ka[a];if(-1===n.indexOf(A)){b=q.bb[a];k.S(A,b);var y=q,u=a;y.ka.splice(u,1);y.bb.splice(u,1);g.push([A,b.id])}}for(a=g.length-1;0<=a;a--)c.apply(this,g[a])}}var e=this;e.name="layer";var d=null,f={},g={},k=null,n=!1;e.D={};e.D.cover=function(a,b){var c=N(a);b.style.top=c.top+"px";b.style.left=c.left+"px";b.style.width=c.width+"px";b.style.height=c.height+"px"};e.D.anchor=function(a,b){var c=N(a);b.style.top=c.top+"px";b.style.left=c.left+"px"};e.D.bottomRightCorner=
function(a,b){var c=N(a),f=document.documentElement.clientWidth-c.right;b.style.bottom=document.documentElement.clientHeight-c.bottom+"px";b.style.right=f+"px"};e.D.bottomLeftCorner=function(a,b){var c=N(a);b.style.bottom=document.documentElement.clientHeight-c.bottom+"px";b.style.left=c.left+"px"};e.D.bottomRightResizeHandle=function(a,b){var c=N(a),f=document.documentElement.clientWidth-c.right-4;b.style.bottom=document.documentElement.clientHeight-c.bottom-4+"px";b.style.right=f+"px"};e.D.bottomLeftResizeHandle=
function(a,b){var c=N(a),f=c.left-4;b.style.bottom=document.documentElement.clientHeight-c.bottom-4+"px";b.style.left=f+"px"};e.D.rightEdge=function(a,b){var c=Math.floor(N(b).width/2),f=N(a),c=document.documentElement.clientWidth-f.right-c,d=document.documentElement.clientHeight-f.bottom;b.style.top=f.top+"px";b.style.right=c+"px";b.style.bottom=d+"px"};e.D.leftEdge=function(a,b){var c=Math.floor(N(b).width/2),f=N(a),c=f.left-c,d=document.documentElement.clientHeight-f.bottom;b.style.top=f.top+"px";
b.style.left=c+"px";b.style.bottom=d+"px"};e.D.tableColumnEdge=function(a,b){e.D.rightEdge(a,b);var c=P(a,"table"),c=document.documentElement.clientHeight-N(c).bottom;b.style.bottom=c+"px"};e.Ud=function(a,b,c){var d=ob().toString();f[d]={name:d,Zd:a,F:b,S:c||Ha,Qb:new rb}};e.$e=function(){return k};e.J=function(a){return a.getAttribute("data-en-layout-algorithm")};e.Ka=function(a){var b="";if(null==a)b="[data-en-overlay-id]";else if("string"===typeof a)b='[data-en-overlay-id="'+a+'"]';else if(a instanceof
Element){a=hd(a).id;if(null==a)return[];b='[data-en-overlay-id="'+a+'"]'}else return[];return V(b,k)};e.getParent=function(a){return(a=g[a])&&a.node||null};e.Xe=function(a){if(a){var b=a.getAttribute("data-en-overlay-id");if(null!=b){var m=e.getParent(b);if(null==m)e.detach(a);else if(vc(m)){if(b=e.J(a),null!=b&&"undefined"!==typeof e.D[b])e.D[b](m,a)}else c(m,b)}}};e.Na=function(a){!0===a&&(n=!0);n&&b();a=e.Ka();for(var c=0;c<a.length;c++)e.Xe(a[c])};e.Fb=function(b,c){var m;c=c||"cover";B("undefined"!==
typeof e.D[c],"Invalid layout algorithm:",c);B(I(b),"Expected a node!");var f=hd(b,!0).id;B(!!f&&w(f),"Expected an ID");f in g?++g[f].od:g[f]={node:b,od:1};m=a(f,c,m);e.D[c](b,m);return m};e.U=function(b,c,f){f=f||"cover";B("undefined"!==typeof e.D[f],"Invalid layout algorithm:",f);B(I(b),"Expected a node!");var d=hd(b,!0).id;B(!!d&&w(d),"Expected an ID");d in g?++g[d].od:g[d]={node:b,od:1};for(var k=0;k<c.length;k++)c[k]=a(d,f,c[k]),e.D[f](b,c[k]);return c};e.N=function(a){k.appendChild(a);return a};
e.detach=function(a){var b=a.getAttribute("data-en-overlay-id"),c=g[b];c&&0>=--c.od&&delete g[b];H(a);return b};e.dd=function(a,b,c,f,d){var k=!0;null==k&&(k=!1);var n=!1,g,A,y,u,C=M("div",{style:"position: fixed;top: 0px;left: 0px;right: 0px;bottom: 0px;z-index: 999;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;-o-user-select: none;user-select: none;"+(null==d?"":d)});e.B.listener(a,"mousedown",function(a){n=!0;g=a.pageX;A=a.pageY;y=a.pageX;u=a.pageY;!0===k&&e.$e().appendChild(C);
null!=b&&b()});e.B.listener(window,"mousemove",function(a){if(!1!==n){y=a.pageX;u=a.pageY;a=y-g;var b=u-A;null!=c&&c(a,b)}});e.B.listener(window,"mouseup",function(a){if(!1!==n){n=!1;y=a.pageX;u=a.pageY;a=y-g;var b=u-A;!0===k&&H(C);null!=f&&f(a,b)}})};e.F=function(a){d=D(a,{root:null}).root||e.H("context").root;k=kd();B(I(d));B(I(k));e.B.I("windowResize",e.Na.bind(e,!1),-2E3);e.B.I("execCommand",e.Na.bind(e,!0),-2E3);e.B.listener(document,"input",e.Na.bind(e,!0));e.Na(!0)};e.S=function(){e.Ka().forEach(function(a){e.detach(a)});
d=null}};function me(a){return Q(a,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")?!0:!1};function ne(){function a(a){c(a.target)}function c(a){cb(h.Ka(a),function(a){F(a,"img-resizer-handle")&&h.detach(a)})}function b(a){e(a.target)}function e(a){if(me(a))if(1!==t.length)V(".img-resizer-handle",h.$e()).forEach(function(a){a=h.getParent(a);c(a)});else{var b=!1;cb(h.Ka(a),function(a){if(F(a,"img-resizer-handle"))return b=!0,db});if(!0!==b){var f=l.Ze(a),e=f===a.naturalWidth;if(!(142>=f)){var k=d(a),n="right"===d(a)?"bottomLeftResizeHandle":"bottomRightResizeHandle",g=h.Fb(a,n);T(g,"z-index",
"901");G(g,"img-resizer-handle");G(g,n);var r;"bottomRightResizeHandle"===n?r="cursor: nwse-resize;":"bottomLeftResizeHandle"===n&&(r="cursor: nesw-resize;");var va=function(){T(a,"height","auto");var b=N(a),c=yc(a);Pc(a,"width");a.setAttribute("width",b.width/c)},ca=N(a);h.dd(g,function(){null!=v&&x.warn("Multiple images being resized at once! <$>");v=a;va()},function(b){var c,d=N(m).width;"right"===k?c=ca.width-b:c="center"===k?ca.width+2*b:ca.width+b;b=c/yc(a);142>=b?a.setAttribute("width","142"):
c>=d||b>=f?(a.removeAttribute("width"),!1===e&&(l.he(a),va())):a.setAttribute("width",""+b);h.Na()},function(){v=null;ca=N(a);Y(m,"setDirty",{Ec:!0});od(a)},r)}}}}function d(a){a=(a=wc(a))?a.textAlign:null;return"center"===a?"center":"right"===a?"right":"justify"===a?"full":"left"}function f(a){Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")&&(r=!1,od(a.target))}function g(a){Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")&&
od(a.target)}function k(a){!1!==!!a.getAttribute("data-en-img-selected")&&(a.removeAttribute("data-en-img-selected"),cb(h.Ka(a),function(a){F(a,"img-selected-overlay")&&h.detach(a)}))}var n=this,h=null,l=null,m=null,r=!0;n.name="ui-img-resize";var v,t=[];n.F=function(){m=n.H("context").root;G(m,"en-ui-img-on");h=n.H("layer");l=n.H("img-dpi");n.B.ba(m,"imageSelected",b);n.B.ba(m,"imageUnselected",a);n.B.listener(m,"click",g);n.B.listener(m,"contextmenu",f);n.B.ba(m,"selectionChanged",function(){if(0!==
m.getElementsByTagName("img").length){var a=V("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)",m);t=[];if(0!==a.length){var b=window.getSelection();b.isCollapsed||cb(a,function(a){b.containsNode(a,!1)&&-1===t.indexOf(a)&&t.push(a)});!1===r?r=!0:cb(a,function(a){if(!b.isCollapsed&&b.containsNode(a,!1)){if(!a.getAttribute("data-en-img-selected")&&me(a)){a.setAttribute("data-en-img-selected","true");var c=h.Fb(a);G(c,"img-selected-overlay");var l=M("div",{"class":"img-selected-overlay-top-left-corner"}),
f=M("div",{"class":"img-selected-overlay-top-right-corner"}),d=M("div",{"class":"img-selected-overlay-bottom-left-corner"}),e=M("div",{"class":"img-selected-overlay-bottom-right-corner"}),n=M("div",{"class":"img-selected-overlay-right-edge"}),g=M("div",{"class":"img-selected-overlay-left-edge"});c.appendChild(l);c.appendChild(f);c.appendChild(d);c.appendChild(e);c.appendChild(n);c.appendChild(g)}Y(m,"imageSelected",{target:a})}else v!==a&&(k(a),Y(m,"imageUnselected",{target:a}))})}}})};n.S=function(){Vb(m,
"en-ui-img-on");V("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)",m).forEach(function(a){k(a);c(a)});l=h=m=null}};function oe(a,c){var b=a.tagName?a.tagName:"x"+a.nodeType;c[b]||(c[b]=0);c[b]++;return b+c[b]}
function pe(a,c,b,e,d,f){for(var g=[],k=[],n={},h={},l=0,m=c.length;l<m;l++){var r=c[d?c.length-l-1:l],v=e.childNodes[+(d?e.childNodes.length-b[l]-1:b[l])],t=r.id?r.id:oe(r,h);if(!n[t]){var p=a[t];p?(p!==v&&(v=d?e.childNodes.length-p.uc-1:p.uc,g.push({action:"moveChildElement",element:p,baseIndex:f+">"+v,sourceIndex:f+">"+l}),b.splice(l,0,b.splice(v,1)[0])),r.isEqualNode(p)||k.push([r,p])):(r=r.cloneNode(!0),v=d?c.length-l-1:l,g.push({action:"insertChildElement",element:r,baseIndex:f+">"+v,sourceIndex:f+
">"+v}));n[t]=!0}}l=0;for(m=e.childNodes.length;l<m;l++)a=e.childNodes[l],n[a.we]||g.push({action:"removeChildElement",element:a,baseIndex:f+">"+a.uc,sourceIndex:null});return{compare:k,diff:g}}function qe(a,c){return 0===a.baseIndex.indexOf(c.baseIndex)&&a.baseIndex!==c.baseIndex}
function re(a,c){if(!c||!a.childNodes||0===a.childNodes.length)return null;for(var b={},e=c.split(">"),d=!0,f="",g=1,k=e.length;g<k;g++){var n=parseInt(e[g],10);if(a.childNodes&&a.childNodes.length>n)a=a.childNodes[n];else{f=e.slice(0,g-1).join(">");d=!1;break}}b.lastParent=d?a.parentNode:a;b.lastParentIndex=d?c.slice(0,c.lastIndexOf(">")):f;b.node=d?a:null;b.found=d;return b}
function se(a,c,b){var e=[];if(a.isEqualNode(c))return e;null==b&&(b="0");if(3===a.nodeType&&3===c.nodeType)return c.nodeValue!==a.nodeValue&&e.push({action:"replaceText",element:c,baseIndex:b,sourceIndex:b,_deleted:c.nodeValue,_inserted:a.nodeValue}),e;if(a.attributes&&c.attributes){for(var d=a.attributes,f,g,k=0,n=d.length;k<n;k++){f=d[k].nodeValue;g=d[k].nodeName;var h=c.getAttribute(g);h!==f&&(null===h?e.push({action:"setAttribute",name:g,element:c,baseIndex:b,sourceIndex:b,_inserted:f}):e.push({action:"setAttribute",
name:g,element:c,baseIndex:b,sourceIndex:b,_deleted:h,_inserted:f}))}d=c.attributes;k=0;for(n=d.length;k<n;k++)g=d[k].nodeName,null===a.getAttribute(g)&&e.push({action:"removeAttribute",name:g,baseIndex:b,sourceIndex:b,_deleted:c.getAttribute(g)})}d=[];if(a.childNodes&&c.childNodes){k=c.childNodes;n={};d={};g=[];for(var h=0,l=k.length;h<l;h++){f=k[h];var m=f.id?f.id:oe(f,d);n[m]=f;f.uc=h;f.we=m;g.push(h)}n={map:n,indices:g};a=a.childNodes;k=n.map;d=n.indices;n=pe(k,a,d.slice(0),c,!1,b);1<n.diff.length&&
(c=pe(k,a,d.slice(0),c,!0,b),c.diff.length<n.diff.length&&(n=c));e=e.concat(n.diff);d=n.compare}if(0<d.length)for(k=0,n=d.length;k<n;k++)c=d[k][1],a=se(d[k][0],c,b+">"+c.uc),0<a.length&&(e=e.concat(a)),delete c.uc,delete c.we;return e}
function te(a,c){if(a.sourceIndex===c.sourceIndex)return 0;if(!a.sourceIndex&&c.sourceIndex)return-1;if(a.sourceIndex&&!c.sourceIndex)return 1;for(var b=a.sourceIndex.split(">"),e=c.sourceIndex.split(">"),d=0;d<b.length&&d<e.length;){var f=parseInt(b[d],10),g=parseInt(e[d],10);if(f===g)d++;else return isNaN(f)||isNaN(g)?isNaN(f)?1:-1:f>g?1:-1}return 0}
function ue(a,c,b){for(var e=[],d=[],f=[],g=[],k=0,n=a.length;k<n;k++){var h=a[k],l=h.action,m=h.baseIndex,r=h.sourceIndex,v=h._baseReference,t=h._sourceReference;if(h._conflict)h._baseReference=re(c,m),r&&m!==r&&(h._sourceReference=re(c,r)),g.push(h);else{var p=v;if(null==p&&(p=re(c,m),null==p)){e.push(h);continue}v=p.node;p.found?null!==v&&("moveChildElement"===l||"insertChildElement"===l?(p=v,r!==m&&(m=t,null==m&&(m=re(c,r)),p=null!==m?m.node:null),"moveChildElement"===l?d.push([v.parentNode,v,
p,h]):b?(r=document.createElement("ins"),r.appendChild(h.element),d.push([v.parentNode,r,p,h])):d.push([v.parentNode,h.element,p,h])):"removeChildElement"===l?(b&&(l=document.createElement("del"),l.appendChild(v.cloneNode(!0)),d.push([v.parentNode,l,null,h,!0])),f.push([v.parentNode,v])):"replaceText"===l?b?(m=v.parentNode,l=document.createElement("del"),l.appendChild(document.createTextNode(h._deleted)),r=document.createElement("ins"),r.appendChild(document.createTextNode(h._inserted)),d.push([m,
r,v,h]),d.push([m,l,v,h]),v.nodeValue=""):v.nodeValue=h._inserted:"setAttribute"===l?v.setAttribute(h.name,h._inserted):"removeAttribute"===l&&v.removeAttribute(h.name)):"insertChildElement"===l?(v=p.lastParent,b?(r=document.createElement("ins"),r.appendChild(h.element),d.push([v,r,null,h])):d.push([v,h.element,null,h])):e.push(h)}}d.sort(function(a,b){return te(a[3],b[3])});a=0;for(c=d.length;a<c;a++)r=d[a],b=r[0],k=r[1],n=r[2],h=r[3],r=r[4],null===n&&!r&&(r=h.sourceIndex)&&(h=parseInt(r.substr(r.lastIndexOf(">")+
1,r.length),10),b.childNodes&&b.childNodes.length>h&&(n=b.childNodes[h])),b.insertBefore(k,n);for(a=0;a<f.length;a++)h=f[a],h[0].removeChild(h[1]);for(f=[];0<g.length;)h=g.pop(),d={},d[h._owner]=h,h._conflictedWith&&(r=h._conflictedWith)&&(a=g.indexOf(r),-1<a&&(g.splice(a,1),d[r._owner]=r),delete h._conflictedWith,delete r._conflictedWith),f.push(d);return{unapplied:e,conflicts:f}};function ve(){var a=this;a.name="debug-overlay";var c=a.element=null;a.D=function(b,e){a.element.textContent=b;T(a.element,"background-color",e);c=a.B.timeout(function(){a.element.textContent="D";Pc(a.element,"background-color")},1E3,c)};a.F=function(){};a.S=function(){H(a.element)}};function we(a,c){c=c||{};c.version="1.0";window.evernoteClient&&window.evernoteClient.postNotification&&window.evernoteClient.postNotification(a,JSON.stringify(c))}function xe(a){we("setupDone",{module:a||"document"})}function ye(a,c){c=c||{};c.module=a||"";we("contentChanged",c)}function ze(a,c){c=c||{};c.module=a||"";we("focusChanged",c)}function Ae(){we("contentLoaded",{module:"content"})}function Be(a){we("titleBlur",{module:a||"title"})}
function Ce(a,c,b){b=b||{};b.href=a;b.module=c||"";we("openLink",b)}function De(){we("contextVisible",{module:"context"})}function Ee(a){we("contextExpanded",{module:"context",expanded:!!a})};function Fe(){function a(a){we(a.target.dataset.name,{src:l.src,module:f.name});a.stopPropagation()}function c(){n&&(f.B.remove(m),m=null,f.B.remove(r),r=null,g.detach(n),n.removeChild(h),l=n=null)}function b(a){var b=l;!0===t&&(v=!0,c(),null==a||"click"===a?b.click():b.dispatchEvent(new Event(a)))}function e(a){n&&(p=f.B.timeout(function(){var b;!(b=a.target!==l)&&(b=a.target===l)&&(b=l.getBoundingClientRect(),b=!(a.x>b.left&&a.x<b.right&&a.y>b.top&&a.y<b.bottom));b&&(v=!1,c())},100,p))}function d(a){Q(a.target,
"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")&&a.target!==l&&!a.target.getAttribute("data-en-img-selected")&&!v&&me(a.target)&&(n&&c(),l=a=a.target,n=g.Fb(a,"anchor"),T(n,"display","inline"),n.appendChild(h),r=f.B.listener(n,"click",b))}var f=this;f.name="ui-img-buttons";var g=null,k=null,n=null,h=null,l=null,m=null,r=null,v=!1,t=!0,p;f.F=function(b){function c(h,l){var m=b[h];null!=m&&m&&(m=M("div",{"class":"en-imagebar-"+h+" en-imagebar-button","data-name":h}),
f.B.listener(m,"click",a),l.appendChild(m))}k=f.H("context").root;g=f.H("layer");f.B.listener(k,"mouseover",d);f.B.listener(k,"mousemove",e);h=M("div",{"class":"en-imagebar"});c("annotate",h);c("preview",h);c("rotate",h);t=b.bubbleImageClicks};f.S=function(){c();h=g=k=null}};function Ge(){B(this instanceof Ge,"Use new to instantiate");var a=this;a.name="analytics";var c={bold:"bold",bulleted_list:"insertunorderedlist",change_font_size:"fontsize",underline:"underline",highlighter:"highlight",checkbox:"inserttodo",italic:"italic",change_font_color:"forecolor",horizontal_rule:"inserthorizontalrule",change_font_family:"fontname",numbered_list:"insertorderedlist",strikethrough:"strikethrough",table:"inserttable",center_align:"justifycenter",left_align:"justifyleft",subscript:"subscript",
justified_align:"justifyfull",right_align:"justifyright",superscript:"superscript"},b=ab(c);a.D=null;a.F=function(e){e=D(e,{labels:Object.keys(c)});a.D=new sb;e.labels.forEach(function(b){c[b]&&a.D.add(c[b])});a.B.I("execCommand",function(c){a.D.has(c.name)&&(c={category:"note",action:"note_editor_action",label:b[c.name]},console.log(JSON.stringify(c)),we("analytics",c))})}};var Ad={},He=null,Ie=null,Je=[];function Ke(a){Lc(a);-1===Je.indexOf(a)&&Je.push(a)}function Le(){for(var a=0;a<Je.length;a++)Mc(Je[a]);Je=[]}function Me(a){B(bb(a),"Expected to get an non empty object");Ad=a}function Ne(){var a=Ad.env;return a&&null!=a.selectionColor?a.selectionColor:"rgb(167, 203, 245)"}function xb(a,c){ea(c)?Bb.N(a,c):Bb.D(a,c)}function Y(a,c,b){xb(id(a,c),null!=b?b:{target:a})};var Oe={tap:Tb,press:Ub,pan:Pb,swipe:Sb,rotate:Rb,pinch:Qb},Pe=["touchstart","touchmove","touchend","touchcancel"],Qe=1;
function Re(){function a(){++l;for(var a=n.bb,b=a.length-1;0<=b;b--){var c=a[b];l===c.wf&&(c.jb(),c.Xf&&e.remove(c.Ha))}}function c(a,b){try{1===a?He.Ue(function(a){return a.Ha===b}):2===a?b[0].removeEventListener(b[1],b[2],b[3]):4===a?window.clearTimeout(b):10===a?(n.remove(b[0]),h&&0===n.ka.length&&(window.clearInterval(h),h=null)):5===a?window.clearInterval(b):7===a?b():8===a?(Ob(b[4],!1),Pe.forEach(function(a){b[0].removeEventListener(a,b[2],b[3])})):9===a?Bb.unsubscribe(b[0],b[1]):x.error("Unhandled binding cleanup step!",
a,b)}catch(c){qb(c)}}function b(a,b){var c={Oe:++Qe,type:a,value:b};return g[c.Oe]=c}var e=this;B(this instanceof Re,"Use `new` to instantiate this class");var d=!1,f=null,g={};e.V=function(){B(!1,"Not public!");return Object.keys(g)};e.remove=function(a){null!=a&&(c(a.type,a.value),delete g[a.Oe])};e.F=function(a){a=D(a,{name:null});f=a.name;n=new rb;B(0===Object.keys(g).length,"Binding are in an undefined state before setup",f);B(!1===d,"You need to call cleanup first!",f);d=!0};e.S=function(){B(d,
"You need to call setup first!");d=!1;for(var a=Object.keys(g).sort(function(a,b){a=+a;b=+b;return a>b?1:a<b?-1:0}),b=a.length-1;0<=b;b--){var l=g[a[b]];c(l.type,l.value)}h&&(window.clearInterval(h),h=null);n=null;g={};f=k=null};var k=null;e.Ic=function(a){k=a};e.A=function(a){B(d,"You need to call setup first!");a.Ha=ob().toString();k&&(a=eb(a,k,!0));He.ag(a);return b(1,a.Ha)};e.listener=function(a,c,h,l){B(null!=a,"target is required!");B(d,"You need to call setup first!");B(!l||bb(l),"option must be dictionary when used");
var f=!!l&&!0===l.sg,e=[a,c,h,f];if(Oe[c.toLocaleLowerCase()]){c=c.toLocaleLowerCase();var k=new Oe[c](a,h,l);e[2]=function(a){var b=Cb[a.type],c=Fb.call(k,a,b);if(c){a={inputType:b,srcEvent:a,touches:c[0],changedTouches:c[1],target:a.target,type:k.options.type};var c=a.touches.length,h=a.changedTouches.length;a.isInitial=!!(b&1&&0===c-h);a.isFinal=!!(b&12&&0===c-h);a.isInitial&&(k.Za={});k.Za.De||(k.Za.De=Gb(a));1<a.touches.length&&!k.Za.Ad?k.Za.Ad=Gb(a):1===a.touches.length&&(k.Za.Ad=void 0);var c=
k.Za.De,h=(b=k.Za.Ad)?b.center:c.center,l=a.center=Hb(a.touches);a.timeStamp=Date.now();a.deltaTime=a.timeStamp-c.timeStamp;a.angle=Ib(h,l);a.distance=Jb(h,l);var c=k.Za,h=a.center,l=c.Wf||{},f=c.Yf||{},m=c.Zf||{};if(1===a.inputType||4===m.inputType)f=c.Yf={x:m.deltaX||0,y:m.deltaY||0},l=c.Wf={x:h.x,y:h.y};a.deltaX=f.x+(h.x-l.x);a.deltaY=f.y+(h.y-l.y);a.offsetDirection=Kb(a.deltaX,a.deltaY);b?(c=b.touches,h=a.touches,c=Jb(h[0],h[1])/Jb(c[0],c[1])):c=1;a.scale=c;b?(b=b.touches,c=a.touches,b=Ib(c[1],
c[0])-Ib(b[1],b[0])):b=0;a.rotation=b;b=k.Za;m=b.Nf||a;c=a.timeStamp-m.timeStamp;8!=a.inputType&&(25<c||null==m.velocity)?(l=m.deltaX-a.deltaX,m=m.deltaY-a.deltaY,f={x:l/c||0,y:m/c||0},c=f.x,h=f.y,f=Math.abs(f.x)>Math.abs(f.y)?f.x:f.y,l=Kb(l,m),b.Nf=a):(f=m.velocity,c=m.velocityX,h=m.velocityY,l=m.direction);a.velocity=f;a.velocityX=c;a.velocityY=h;a.direction=l;k.state&56&&(k.state=1);k.state=k.ec(a);Nb(k,a);k.Za.Zf=a}};e.push(k);l=b(8,e);Pe.forEach(function(b){a.addEventListener(b,e[2],f)})}else l=
b(2,e),a.addEventListener(c,h,f);return l};e.selection=function(a,b){function c(a,h){b.stopPropagation&&a.stopPropagation();!h&&0<a.touches.length||(e.remove(n),function(a){n=e.timeout(function(){l(!1);a&&b.yd()},10,n)}(!h&&f&&b.yd),f=!1,k=null)}function h(a){for(var b=0,c=0,l=a.length,f=0;f<l;f++)var m=a[f],b=b+m.clientX,c=c+m.clientY;return{x:Math.round(b/l),y:Math.round(c/l)}}function l(c){c?(G(a,"en-mobile-selected"),b.ud&&G(a,b.ud)):(Vb(a,"en-mobile-selected"),b.ud&&Vb(a,b.ud))}B(null==b||bb(b),
"en.bindingSelectionOpt is not the right object or undefined");var f=!1,d=!1,k=null,n;e.listener(a,"touchstart",function(a){d=b.enabled&&!b.enabled();d||(b.stopPropagation&&a.stopPropagation(),k=h(a.touches),f||(n=e.timeout(function(){f=!0;l(!0)},100,n)))});e.listener(a,"touchmove",function(a){if(!d){b.stopPropagation&&a.stopPropagation();var l;if(l=k){var f=h(a.touches);l=f.x-k.x;f=f.y-k.y;l=5<Math.sqrt(l*l+f*f)}l&&c(a,!0)}});e.listener(a,"touchend",c);e.listener(a,"touchcancel",c);e.listener(a,
"tap",function(a){d||(b.stopPropagation&&a.stopPropagation(),f||e.timeout(function(){l(!0);n=e.timeout(function(){l(!1);b.yd&&b.yd()},50,n)},0,n))},{Ie:!0})};e.I=function(a,c,h){Bb.subscribe(a,c,h);return b(9,[a,c])};e.ba=function(a,b,c,h){e.I(id(a,b),c,h)};e.timeout=function(a,c,h){B(d,"You need to call setup first!");h&&e.remove(h);var l=0,l=window.setTimeout(function(){a();for(var b=l,c=g.length-1;0<=c;c--)if(g[c][0]===b){g.splice(c,1);break}},c||0);return b(4,l)};var n=null,h=null,l=0;e.M=function(){l=
0};e.P=function(c,l){B(d,"You need to call setup first!");B(0<l,"Delay needs to be a number >0");var f=ob().toString(),k=b(10,f);n.set(f,{jb:c,Xf:!1,wf:l,Ha:k,id:f});h||(e.M(),h=window.setInterval(a,1E3))};e.L=function(a){b(7,a)}};function Se(a){var c=this;c.context=a||{};c.I=null;var b=[],e={};c.load=function(a){try{if(!a)return!1;a.fa=!1;B(!(0<=b.indexOf(a)),"Plugin has already been loaded:",a.name);B(!e[a.name],"There is another plugin with the same name!",a.name);b.push(a);a.name&&0<a.name.length&&(e[a.name]=a);a.B=new Re;return!0}catch(c){x.error("Exception in PluginManager.load <$>",c.toString()),qb(c)}};c.X=function(a){return e[a]||null};c.L=function(){return b.filter(function(a){return a.fa})};c.Xb=function(a){if(w(a))return e[a]||
null;for(var c=b.length-1;0<=c;c--){var g=b[c];if(a(g))return g}return null};c.A=function(a){B(null!=e[a],"The plugin",a,"is required here!");return e[a]};c.V=function(a){c.M=a};c.F=function(a,f){try{return B(!!a,"Expected a plugin"),B(!a.fa,"Plugin is already set up:",a.name),0<=b.indexOf(a)||c.load(a),a.B.F({name:a.name||"?"+ob()}),a.Bb=c,a.ja=function(){a.Oa||(a.Oa=new Se(c.context),a.Oa.I=a);return a.Oa},a.Ta=c.Xb.bind(c),a.H=c.A.bind(c),c.M&&c.M(a),a.F&&a.F(f||{},c.context),a.fa=!0,a}catch(e){x.error("Exception in PluginManager.setup <$>",
e.toString()),qb(e)}};c.D=function(a){for(var f=0;f<b.length;f++)c.F(b[f],a)};c.W=function(a){for(var b=c.I;null!=b;){if(w(a)){if(b.name===a)return b}else if(a(b))return b;b=b.Bb.I}return null};c.S=function(a){try{B(!!a,"Expected a plugin"),B(a.fa,"Plugin is not yet set up:",a.name),B(0<=b.indexOf(a),"Plugin has not been loaded before:",a.name),a.fa=!1,a.Oa&&(a.Oa.I=null,a.Oa.P(),a.Oa=null),a.B.S(),a.S&&a.S(),delete a.ja,delete a.Ta,delete a.H,a.Bb=null}catch(c){x.error("Exception in PluginManager.cleanup <$>",
c.toString()),qb(c)}};c.P=function(){for(var a=b.length-1;0<=a;a--){var f=b[a];!0===f.fa&&(c.S(f),c.B=null)}b=[];e={}}};function Te(){var a=this;a.name="mutation-observer";a.F=function(c){function b(a){if(a)for(var b=0;b<a.length;b++){var c=a[b],c={type:c.type,target:c.target,addedNodes:Na(c.addedNodes),removedNodes:Na(c.removedNodes),oldValue:c.oldValue,nextSibling:c.nextSibling,attributeName:c.attributeName,value:"characterData"===c.type?c.target.data:c.target.getAttribute(c.attributeName)};c.target===e&&"class"===c.attributeName||d.push(c)}}var e=D(c,{element:null}).element;B(I(e),"Element!");var d,f=null;a.B.L(function(){f&&
a.D()});a.Y=function(){B(null==f,"Observer already running");d=[];var a=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(a){var c=new (window.MutationObserverInit||window.WebKitMutationObserverInit||window.MozMutationObserverInit||Object);c.subtree=!0;c.childList=!0;c.attributes=!0;c.characterData=!0;c.attributeOldValue=!0;c.characterDataOldValue=!0;f=new a(b);null==f.takeRecords?f=null:f.observe(e,c)}};a.N=function(){return!!f};a.J=function(){B(null!=f,"Observer not running");
var a=f.takeRecords();b(a);return d};a.D=function(){a.J();f.disconnect();f=null;return d};a.ha=function(a){if(a)for(var b=0;b<a.length;b++){var c=a[b];if("childList"===c.type){if(c.addedNodes.length)for(var h=0;h<c.addedNodes.length;h++)x.log("  ",b,"add node",K(c.addedNodes[h])||Oa(c.addedNodes[h].textContent),c.addedNodes[h].outerHTML);if(c.removedNodes.length)for(h=0;h<c.removedNodes.length;h++)x.log("  ",b,"remove node",K(c.removedNodes[h])||Oa(c.removedNodes[h].textContent),c.removedNodes[h].outerHTML)}else"attributes"===
c.type?null===c.oldValue?x.log("  ",b,"remove attribute",K(c.target),c.attributeName,c.target.outerHTML):x.log("  ",b,"set attribute",K(c.target),c.attributeName,c.target.outerHTML):"characterData"===c.type?x.log("  ",b,"change text",Oa(c.oldValue),"to",Oa(c.value)):x.error("!!! unknown mutation",c.type)}};a.U=function(a){for(var b=a.length-1;0<=b;b--){var c=a[b];if("childList"===c.type){if(c.addedNodes.length)for(var h=0;h<c.addedNodes.length;h++)c.target.removeChild(c.addedNodes[h]);if(c.removedNodes.length)for(h=
0;h<c.removedNodes.length;h++)c.target.insertBefore(c.removedNodes[h],c.nextSibling)}else"attributes"===c.type?null===c.oldValue?c.target.removeAttribute(c.attributeName):c.target.setAttribute(c.attributeName,c.oldValue):"characterData"===c.type?c.target.data=c.oldValue:x.error("!!! unknown mutation",c.type)}}}};function Ue(){B(this instanceof Ue,"Use `new` to instantiate this class");var a=this;a.name="undo";var c=/\s*(id|data\-en\-[a-z0-9\-]+)=".*?"/gi;a.F=function(b){function e(a){return function(){lc(a.node.cloneNode(!0),k);try{ie(k,a.selection)}catch(b){}g.fc&&g.fc(a.vc);h=a}}function d(a){!0!==a&&h||(h=f())}function f(){var b={node:k.cloneNode(!0),selection:he(k)};if(a.Ta){var c=a.Ta("crypt");c&&c.se(b.node)}g.cb&&(b.vc=g.cb());return b}var g=D(b,{element:null,yc:"Typing",cb:null,fc:null},!0),k=g.element;
B(!!k&&I(k),'"element" option must be an HTMLElement');var n=new ke,h=null;a.D=function(){if(!h||!k)return!1;h.node.className=k.className;h.node.id=k.id;if(!k.isEqualNode(h.node)){var a=h.Dd;null==a&&(a=h.node.innerHTML.replace(c,""),h.Dd=a);var b=k.innerHTML,b=b.replace(c,"");if(a!==b)return!0}return g.cb?g.cb()!==h.vc:!1};a.flush=function(b){if(a.D()){Y(k,"beforeGetContent");var c=f();n.register(e(c),e(h),b||g.yc);return h=c}d(!0);return h};var l=!1;a.B.listener(k,"mousedown",function(){l=!0});
this.B.ba(k,"selectionChanged",function(b){b.ma&&(!0===l&&a.flush(),d());l=!1});a.Ma=function(b,c){Y(k,"beforeGetContent");var l=a.flush()||f();b();var m=f();n.register(e(m),e(l),c);h=m};a.clear=function(){n.clear();h=null;window.TEST&&d()};var m=a.Bb.I;a.N=function(){return n.N()||a.D()};a.J=function(){return n.J()&&!a.D()};a.B.A({name:"undo",action:function(){a.flush();a.N()&&n.L()&&Y(k,"setDirty");return!0},state:function(){return a.N()},value:function(){return a.D()?g.yc:n.M()},enabled:function(){return!(!(this.G&&
this.G.queryGroupName||m.hasFocus())||!a.N())}});a.B.A({name:"redo",action:function(){a.J()&&n.A()&&Y(k,"setDirty");return!0},state:function(){return a.J()},value:function(){return n.I()},enabled:function(){return!(!(this.G&&this.G.queryGroupName||m.hasFocus())||!a.J())}})}};function Ve(){B(this instanceof Ve,"Use `new` to instantiate this class");var a=this;a.name="undo";var c=[],b=[];a.F=function(e){function d(a){return function(){l.U(a.Dc);try{ie(n,a.selection)}catch(b){}k.fc&&k.fc(a.vc)}}function f(a){return!0!==a&&h?!1:(h=g(),l.Y(),!0)}function g(){var a={Dc:[],selection:he(n)};k.cb&&(a.vc=k.cb());return a}var k=D(e,{element:null,yc:"Typing",cb:null,fc:null},!0),n=k.element;B(!!n&&I(n),'"element" option must be an HTMLElement');var h=null,l=new Te;a.ja().F(l,{element:n});
a.D=function(){return h&&n?0<l.J().length?!0:k.cb?k.cb()!==h.vc:!1:!1};a.flush=function(m){if(a.D()&&h){Y(n,"beforeGetContent");h.Dc=l.D();var e=d(h);m=m||k.yc;b=[];c.push({jb:e,title:m});h=null}f()||(h=g());return h};var m=!1;a.B.listener(n,"mousedown",function(){m=!0});this.B.ba(n,"selectionChanged",function(b){b.ma&&(1==m&&a.flush(),f());m=!1});a.Ma=function(m,e){a.flush();h=g();m();h.Dc=l.D();var k=d(h);b=[];c.push({jb:k,title:e});f(!0)};a.clear=function(){l.N()&&(l.D(),h=null);c=[];b=[];window.TEST&&
f()};var r=a.Bb.I;a.N=function(){return 0<c.length||a.D()};a.J=function(){return 0<b.length&&!a.D()};a.B.A({name:"undo",action:function(){a.flush();var m=c.pop();return m?(h=g(),m.jb(),h.Dc=l.D(),b.push({jb:d(h),title:m.title}),f(!0),Y(n,"setDirty"),!0):!1},state:function(){return a.N()},value:function(){return a.D()?k.yc:c&&0!==c.length?c[c.length-1].title:null},enabled:function(){return!(!(this.G&&this.G.queryGroupName||r.hasFocus())||!a.N())}});a.B.A({name:"redo",action:function(){var m=b.pop();
return m?(a.flush(),h=g(),m.jb(),h.Dc=l.D(),c.push({jb:d(h),title:m.title}),f(!0),Y(n,"setDirty"),!0):!1},state:function(){return a.J()},value:function(){return b&&0!==b.length?b[b.length-1].title:null},enabled:function(){return!(!(this.G&&this.G.queryGroupName||r.hasFocus())||!a.J())}})}};function We(){var a=this;a.name="textinput";var c=null;a.F=function(b){function e(b){f.A(b.type);var h={event:b,element:c,ma:X(c),Cb:n};Y(c,"anyInput",h);n&&(m=null,k=!1,h.Cb={xa:h.Cb.xa,offset:h.Cb.offset},g=!0,a.B.timeout(function(){h.ma=X(c);h.ma&&(h.ma.collapsed||h.ma.collapse(!1),Y(c,"input",h));g=!1}),n=null)}function d(a){f.A(a.type,"*beforeInput*",h,k);if(!1===h&&!1===k){var b=X(c);n={xa:b.startContainer,offset:b.startOffset};Y(c,"beforeInput",{event:a,ma:b,Cb:n,element:c});k=!0}return!0}
c=D(b,{element:null}).element;var f=new Ba,g=!1,k=!1,n=null,h=!1,l=null,m=null,r=null;a.af=function(){return h};a.Ye=function(){return h&&l?vd(l):null};a.Lf=function(a){h&&(l=ud(a))};a.B.listener(c,"compositionstart",function(a){f.A(a.type,a);m=a.data;var b=d(a);Y(c,"compositionStart",{event:a,element:c,data:m});h=!0;return b});a.B.listener(c,"compositionupdate",function(a){r=a.data;var b=X(c);l=b?ud(b):null;sc(l.startContainer)&&(l.endOffset=l.startOffset+r.length);Y(c,"compositionUpdate",function(){f.A(a.type,
a,b,r);return{event:a,element:c,data:r,uf:m,ma:b}})});a.B.listener(c,"compositionend",function(a){f.A(a.type,h,k);Y(c,"compositionEnd",function(){return{event:a,element:c,data:a.data,uf:m}});h=!1;l=null});a.B.listener(c,"webkitBeforeTextInserted",d);a.B.listener(c,"beforeInput",d);a.B.listener(c,"textInput",function(a){d(a)});a.B.listener(c,"textinput",d);a.B.listener(c,"input",function(a){e(a)});a.B.ba(c,"selectionChanged",function(){f.A("selectionChanged",h);!1===h&&!0===g&&(n=null,k=!1)},1E3)}}
;function Xe(){function a(a){a=zb(a);var d=!1,h=a.visible;null!=h&&(Tc(e,!!h),d=!0);h=a.active;null!=h&&(G(e,h?"en-shared-on":"en-shared-off"),Vb(e,h?"en-shared-off":"en-shared-on"),d=!0);h=a.business;null!=h&&(Tc(f,!!h),d=!0);var l=a.value;w(l)&&(g?(c(l),g=!1):b.B.timeout(function(){c(l)},1E3),d=!0);return d}function c(a){d.innerHTML=a;W("a",d).forEach(function(a){var c=a.getAttribute("href");a.removeAttribute("href");G(a,"en-shared-link");a=nc(a,"span");b.B.listener(a,"click",function(){var l=N(a);
Ce(c,b.name,{left:l.left,top:l.top,width:l.width,height:l.height});return!1})})}var b=this;this.name="shared";B(this instanceof Xe,"Use `new` to instantiate this class");var e=null,d=null,f=null,g=!0;this.F=function(b){var c=document.querySelector(".en-note-container");d=M("div",{"class":"en-shared-message"});f=M("div",{"class":"en-shared-business",style:"display:none;"});e=M("div",{"class":"en-shared en-shared-off",id:"en-shared",style:"display:none;"},[f,d]);c.insertBefore(e,c.firstChild);a(b);
this.B.A({name:"shared",action:a,enabled:z})};this.S=function(){f=d=null;H(e);e=null}};function Ye(){function a(a){if(!(null==a||w(a)&&""===a||fa(a)&&0===Object.keys(a).length)){var l=zb(a);a=l.visible;var v=l.expanded,p=l.hideIndicatorLabelWhenExpanded,t=l.hideIndicatorLabelWhenCollapsed,U=l.chatButtonLabel||"Chat",q=l.shareButtonLabel||"Share",ca=l.items,la=l.contextSectionLabel,ya=l.firstLaunchInfo;null!=a&&Tc(r,!!a);if(ca&&!(0>=ca.length)){ac(r);var gb=M("div",{"class":"en-context-label"});gb.textContent=la||"Context";r.appendChild(gb);la=M("div",{"class":v?"en-context-hide-label":
"en-context-show-label"});r.appendChild(la);c(ya);ya=M("div",{"class":"en-context-card-holder"});r.appendChild(ya);for(gb=0;gb<ca.length;gb++)ya.appendChild(n(ca[gb],q,U));T(r,"max-height",139*m.maxRows+32+"px");v?f(la,p):g(la,t);d(la,p,t);b();h.B.timeout(b,250);k(!0);!0===a&&!0===v&&0<ca.length&&h.B.timeout(function(){e(l)},1500)}}}function c(a){if(null!=a&&null!=a.headline&&null!=a.subHeadline&&null!=a.learnMoreLinkLabel&&null!=a.dismissButtonLabel){Ma("The FLE functionality has been merged into the context-info command. Please switch to that API.");
var b=a.headline,c=a.subHeadline,l=a.learnMoreLinkLabel;a=a.dismissButtonLabel;var f=M("div",{"class":"en-context-fle-container"});r.appendChild(f);var m=M("div",{"class":"en-context-fle-header"});m.textContent=b;f.appendChild(m);b=M("div",{"class":"en-context-fle-body"});f.appendChild(b);m=M("span",{"class":"en-context-fle-subheader"});m.textContent=c+" ";b.appendChild(m);c=M("span",{"class":"en-context-fle-learn-more"});c.textContent=l;b.appendChild(c);h.B.listener(c,"click",function(a){Ce("learnMore",
h.name,{kind:"firstLaunch",sharing:!1});Id(a)});l=M("div",{"class":"en-context-fle-dismiss-button"});l.textContent=a;f.appendChild(l);h.B.listener(l,"click",function(a){Ce("dismiss",h.name,{kind:"firstLaunch",sharing:!1});H(f);a.stopPropagation()})}}function b(){var a;var b=document.querySelector(".en-context-card-holder");a=document.querySelectorAll(".en-context-item").length||0;var c=document.querySelector(".en-context-item");if(null==b||null==c)a=null;else{var b=Math.round(N(b).width),h=wc(c),
l=Math.round(c.offsetWidth+(parseInt(h["margin-left"],10)+parseInt(h["margin-right"],10)));a={wc:b,Uf:a,qf:l,tg:Math.round(c.offsetHeight+(parseInt(h["margin-top"],10)+parseInt(h["margin-bottom"],10))),rf:Math.floor(b/l)}}c=document.querySelector(".en-context-card-holder");null!=a&&null!=c&&(b=Math.min(a.Uf,a.rf),0>=b?T(c,"left","0px"):T(c,"left",(a.wc-a.qf*b)/2+"px"))}function e(a){if(!0!==p&&!1!==m.showPopup&&null==v&&null!=r&&null!=a&&null!=a.items&&0!==a.items.length){var b=a.items,c=a.toastNotificationHeaderLabel||
"FIX HEADER";a=a.toastNotificationFooterLabel||"FIX FOOTER";var l=$a(b[0].title||"Untitled"),f=M("div",{"class":"en-context-popup-header"});f.textContent=c;c="en-context-popup-body";null!=b[0].kind&&(c+=" "+b[0].kind);b=M("div",{"class":c});b.textContent=l;l=M("div",{"class":"en-context-popup-footer"});l.textContent=a;l.appendChild(M("div",{"class":"en-context-popup-down-arrow"}));v=M("div",{"class":"en-context-popup"},[M("div",{"class":"en-context-popup-wrapper"},[f,b,l])]);r.parentNode.insertBefore(v,
r.nextSibling);h.B.timeout(function(){G(v,"en-context-popup-visible")},1);h.B.listener(v,"mousedown",function(){h.B.remove(t)});h.B.listener(v,"mouseup",function(){var a=N(r);cd(a.top-15,240);Vb(v,"en-context-popup-visible");T(v,"pointer-events","none")});t=h.B.timeout(function(){Vb(v,"en-context-popup-visible");T(v,"pointer-events","none");h.B.timeout(function(){Tc(v,!1)},250)},5500,t)}}function d(a,b,c){h.B.listener(a,"click",function(){a.textContent===b?(g(a,c),Ee(!1)):a.textContent===c&&(f(a,
b),Ee(!0));k(!0)})}function f(a,b){var c=V(".en-context-card-holder",r),h=V(".en-context-fle-container",r);1!==c.length?x.error("Couldnt find card holder?!"):(c=c[0],a.textContent=b,Vb(a,"en-context-show-label"),G(a,"en-context-hide-label"),Tc(c,!0),null!=h&&1===h.length&&Tc(h[0],!0))}function g(a,b){var c=V(".en-context-card-holder",r),h=V(".en-context-fle-container",r);1!==c.length?x.error("Couldnt find card holder?!"):(c=c[0],a.textContent=b,Vb(a,"en-context-hide-label"),G(a,"en-context-show-label"),
Tc(c,!1),null!=h&&1===h.length&&Tc(h[0],!1))}function k(a){function b(){var a=r.querySelector(".en-context-item");null!=a&&dd(a,100)&&!1===p&&(p=!0,De())}null==a&&(a=!1);a?b():q=h.B.timeout(b,100,q)}function n(a,b,c){var f=a.link||"#",m=a.kind||"undefined",e=document.createTextNode($a(a.text||"")),k=a.thumbnail||"",d=""!==k,n=$a(a.title||"Untitled"),g=a.sourceName||"",r=a.sourceId||"",v=a.date||"",p=a.author||"";a=a.canShare;var t=M("div",{"class":d?"en-context-item-title":"en-context-item-title en-context-wide",
href:f,name:m});t.textContent=n;n=M("span",{"class":"en-context-author"});""!==p&&(n.textContent=p);var q=M("span",{"class":"en-context-separator"});q.textContent="|";var fd=M("span",{"class":"note"===m?"en-context-note-date":"en-context-news-date"});""!==v&&(fd.textContent=v);f=[];"news"===m?""!==v?(f.push(fd),""!==p&&(f.push(q),f.push(n))):""!==p&&f.push(n):(""!==v&&f.push(fd),f.push(e));e="en-context-item-body";d||(e+=" en-context-wide");"news"===m?e+=" en-context-item-body-one":"note"===m&&"evernote.business"===
r?e+=" en-context-item-body-two":"people"===m&&(e+=" en-context-body-italics");v=M("div",{"class":e},f);e=M("div",{"class":"en-context-graphic-clipper"});f="en-context-graphic";a&&(f+=" en-context-graphic-blur");k=M("img",{"class":f,alt:"graphic",src:k});f="en-context-graphic-hover";d||(f+=" en-context-graphic-hover-solid");b=M("div",{"class":f},[M("div",{"class":"en-context-workchat"}),M("div",{"class":"en-context-share-text"},["people"===m?c:b])]);d&&e.appendChild(k);a&&(e.appendChild(b),h.B.listener(e,
"click",function(a){Ce(t.getAttribute("href"),h.name,{kind:t.getAttribute("name"),sharing:!0});a.stopPropagation()}));d=r;"dowjones.wsj"===d&&(d="wsj");"profile.linkedin"===d&&(d="linkedin");if("profile.evernote.business"===d||"evernote.business"===d)d="evernote-business";"profile.factiva"===d&&(d="factiva");"nikkei.bp.business"===d&&(d="nikkeibp");"nikkei.bp.itpro"===d&&(d="itpro");"nikkei.bp.kenplatz"===d&&(d="kenplatz");"nikkei.bp.tech"===d&&(d="techon");c="";if("profile.evernote.business"===r||
"evernote.business"===r)c="en-context-source-text-blue";b=M("div",{"class":"en-context-source-img "+d});c=M("div",{"class":"en-context-source-text "+c});c.textContent="dowjones.wsj"===r?"":"evernote.business"===r?p:g;g=M("div",{"class":"en-context-source"});-1!==l.indexOf(d)&&g.appendChild(b);g.appendChild(c);p=[t,v];p.push(e);("news"===m||"people"===m||"company"===m||"note"===m&&"evernote.business"===r)&&p.push(g);m=M("div",{"class":"en-context-item"},p);h.B.listener(m,"click",function(a){Ce(t.getAttribute("href"),
h.name,{kind:t.getAttribute("name"),sharing:!1});a.preventDefault()});return m}var h=this;this.name="context";B(this instanceof Ye,"Use new for this");var l="factiva fastcompany inc lifehacker linkedin pandodaily techcrunch theverge evernote-business wsj forbes nikkei nikkeibp techon itpro kenplatz".split(" "),m,r=null,v=null,t,p=!1,q;this.F=function(c){var l=document.querySelector(".en-note-container");r=M("div",{"class":"en-context",id:"en-context",style:"display:none;"});null!=l?(l.parentNode.insertBefore(r,
l.nextSibling),h.B.listener(window,"scroll",k),h.B.listener(window,"resize",k),k(!0),h.B.listener(window,"resize",b),m=D(c,{showPopup:!0,maxRows:9999},!1),this.B.A({name:"context",action:a,enabled:z})):x.error("Couldnt find note container! Bailing.")};this.S=function(){H(r);H(v);t=0;r=null;p=!1}};function Ze(){function a(a){if(!(null==a||w(a)&&""===a||fa(a)&&0===Object.keys(a).length)){Ma("The FLE functionality has been merged into the context-info command. Please switch to that API.");var h=zb(a),n=h.expanded;null==n&&(n=!1);var v=h.headline||"Get more Context with Premium",t=h.subHeadline||"Go Premium to view notes, articles, and people related to what you're working on.";a=h.goPremiumLabel||"Go Premium";var p=h.hideIndicatorLabelWhenExpanded||"Hide",h=h.hideIndicatorLabelWhenCollapsed||
"Show";ac(g);Tc(g,!0);k=M("div",{"class":"en-context-upsell-body"});g.appendChild(k);var q=M("div",{"class":n?"en-context-upsell-hide-label":"en-context-upsell-show-label"});g.appendChild(q);n?b(q,p):e(q,h);c(q,p,h);n=M("div",{"class":"en-context-upsell-headline"});n.textContent=v;k.appendChild(n);v=M("div",{"class":"en-context-upsell-subheadline"});v.textContent=t;k.appendChild(v);t=M("div",{"class":"en-context-upsell-go-premium"});t.textContent=a;k.appendChild(t);f.B.listener(t,"click",function(a){Ce("http://evernote.com",
"context",{kind:"upsell",sharing:!0});Id(a)});d(!0)}}function c(a,c,h){f.B.listener(a,"click",function(){a.textContent===c?(e(a,h),Ee(!1)):a.textContent===h&&(b(a,c),Ee(!0));d(!0)})}function b(a,b){null!=k&&(a.textContent=b,Vb(a,"en-context-upsell-show-label"),G(a,"en-context-upsell-hide-label"),Tc(k,!0))}function e(a,b){null!=k&&(a.textContent=b,Vb(a,"en-context-upsell-hide-label"),G(a,"en-context-upsell-show-label"),Tc(k,!1))}function d(a){function b(){dd(g,75)&&!1===n&&(n=!0,De())}null==a&&(a=
!1);a?b():h=f.B.timeout(b,100,h)}var f=this;this.name="context-upsell";B(this instanceof Ze,'Use "new" to create the Context Upsell Plugin');var g=null,k=null,n=!1,h;this.F=function(b){var c=document.querySelector(".en-note-container");g=M("div",{"class":"en-context-upsell",id:"en-context-upsell",style:"display:none;"});null!=c?(c.parentNode.insertBefore(g,c.nextSibling),f.B.listener(window,"scroll",d),f.B.listener(window,"resize",d),d(!0),a(b),this.B.A({name:"context-upsell",action:a,enabled:z})):
x.error("Couldnt find note container! Bailing.")};this.S=function(){H(g);k=g=null;n=!1}};function $e(){function a(a){if(!(null==a||w(a)&&""===a||fa(a)&&0===Object.keys(a).length)){var l=zb(a),m=l.showLogo||!1,k=l.headline||"HEADLINE",d=l.infoSections||[];a=l.buttonLabel||"BUTTONLABEL";var n=l.hideOnButtonClick||!1;ac(f);Tc(f,!0);l=M("div",{"class":"en-context-info-logo"});m&&f.appendChild(l);m=M("div",{"class":"en-context-info-headline"});m.textContent=k;f.appendChild(m);g=M("div",{id:"en-context-info-body"});f.appendChild(g);if(3===d.length){for(k=0;k<d.length;k++)g.appendChild(c(d[k])),
g.appendChild(document.createTextNode(" "));d=M("div",{"class":"en-context-info-stretcher"});g.appendChild(d)}d=M("div",{"class":"en-context-info-button"});d.textContent=a;f.appendChild(d);e.B.listener(d,"click",function(a){Ce("http://evernote.com","context",{kind:"info",sharing:!0});n&&Tc(f,!1);Id(a)});b(!0)}}function c(a){null!=a&&w(a.type)&&w(a.title)&&w(a.text)||x.error("Incomplete section info for context-info!");for(var b=!1,c=0;c<d.length;c++)a.type===d[c]&&(b=!0);!1===b&&x.error("Invalid type given for context-info: ",
a.type);b=M("div",{"class":"en-context-info-section"});c=M("div",{"class":"en-context-info-section-image "+a.type});b.appendChild(c);c=M("div",{"class":"en-context-info-section-title"});c.textContent=a.title;b.appendChild(c);c=M("div",{"class":"en-context-info-section-text"});c.textContent=a.text;b.appendChild(c);return b}function b(a){function b(){dd(f,75)&&!1===k&&(k=!0,De())}null==a&&(a=!1);a?b():n=e.B.timeout(b,100,n)}var e=this;this.name="context-info";B(this instanceof $e,'Use "new" to create the Context Info Plugin');
var d=["note","article","person"],f=null,g=null,k=!1,n;this.F=function(c){var l=document.querySelector(".en-note-container");f=M("div",{"class":"en-context-info",style:"display:none;"});null!=l?(l.parentNode.insertBefore(f,l.nextSibling),e.B.listener(window,"scroll",b),e.B.listener(window,"resize",b),b(!0),a(c),this.B.A({name:"context-info",action:a,enabled:z})):x.error("Couldnt find note container! Bailing.")};this.S=function(){H(f);g=f=null;k=!1}};function af(){function a(a,b){var h=a.start,l=a.end;if(0>h||h>=l)return null;var f=c(b,h);if(!f||!f.zc)return null;var m=f;return h<l-1&&(m=c(b,l-1),!m||!m.zc)?null:ld(f.xa,f.offset,m.xa,m.offset+1)}function c(a,b){if(a.nodeType==Node.TEXT_NODE)return{xa:a,offset:b,length:a.nodeValue.length,zc:b<a.nodeValue.length};if(a.nodeType==Node.ELEMENT_NODE){for(var h=b,l=0,f=a.firstChild;null!=f;f=f.nextSibling){var m=c(f,b);if(!m||m.zc)return m;if(0<m.length&&(b-=m.length,l+=m.length,0>b))return null}if(Ac(a)||
R(a,"img")||S(a))if(--b,l+=1,0>b)return null;return{xa:a,offset:h,length:l,zc:!1}}return{xa:a,offset:b,length:0,zc:!1}}function b(a){if(a.nodeType==Node.TEXT_NODE)return a.nodeValue;if(a.nodeType==Node.ELEMENT_NODE){for(var c="",h=a.firstChild;null!=h;h=h.nextSibling)c+=b(h);if(Ac(a)||R(a,"img")||S(a))c+="\n";return c}return""}function e(){ya&&(H(ya),ya=null)}function d(){e();if(ca&&t&&0<t.length){ya=M("div");for(var a=0,b=t.length;a<b;a++)for(var c=t[a],h=0,l=c.length;h<l;h++){var f=c[h],f=hc(ya,
"div",{"class":"en-find-result",style:"position:absolute;top:"+f.top+"px;left:"+f.left+"px;width:"+f.width+"px;height:"+f.height+"px"});q===a&&G(f,"en-find-result-active");ya.appendChild(f)}kd().appendChild(ya)}}function f(){null!=y&&y.length&&(y.forEach(r.B.remove),y=[])}function g(a){f();y=[r.B.I("beforeWindowResize",function(){e()}),r.B.I("windowResize",function(){a();d()}),r.B.I("selectionChange",function(){var a=X();a&&V(C).some(function(b){return a?nd(a,b):!1})&&(ca=!1,f(),e())})];d()}function k(a){var b=
D(zb(a),{highlight:U,excludeMatches:L,limit:u,resourceMatches:null,noteSearchMatching:va,value:null});a=p;b.value&&(a=h(b.value,b.resourceMatches,b.noteSearchMatching,+b.limit),ca="all"===b.highlight,f(),ca&&g(function(){h(b.value,b.resourceMatches,b.noteSearchMatching,+b.limit)}));if(b.excludeMatches){var c={},l;for(l in a)"items"!==l&&(c[l]=a[l]);a=c}return JSON.stringify(a)}function n(a){a=zb(a).value;if("next"===a)l(q+1);else if("prev"===a)l(q-1);else if("first"===a)l(0);else if("last"===a)l(-1);
else if("clear"===a)xb("findClear"),p=t=v=null,q=-1,A=null;else{a=parseInt(a,10);if(isNaN(a))return!1;l(a)}return!0}function h(c,h,l,f){q=-1;var e=f=f||u,k=!1,d=m(h);f-=d.length;if(w(c)&&0<(c=c.trim()).length&&0<f){var n=-1,g=-1,ya=null,y=null;h=null;h=l?r.J(c):r.D(c);null!=h&&(ya=h.Pe,y=h.Ge,V(C).forEach(function(c){for(var h=b(c),l,m=!1;(l=ya.exec(h))&&0<l.length;){var e=y(l,ya),r={string:h.slice(e.start,e.end),length:e.end-e.start,from:e.start,to:e.end};ya.lastIndex=e.end;var v=a(e,c);if(v)if(e=
v.getClientRects(),null==e||0===e.length)e=null;else{for(var v=yc(v.startContainer),p=null,t=[],U=0;U<e.length;U++){var q={},u=e[U];if(!(1>=u.width||1>=u.height||p&&u.left>=p.left&&u.top>=p.top&&u.right<=p.right&&u.bottom<=p.bottom))if(p=u,u=xc(u,!1,v),q.top=u.top,q.bottom=u.bottom,q.left=u.left,q.right=u.right,q.width=u.right-u.left,q.height=u.bottom-u.top,u=t.length-1,-1<u&&t[u].left<=q.right&&q.left<=t[u].right&&t[u].top<=q.bottom&&q.top<=t[u].bottom){var la={};la.top=Math.max(t[u].top,q.top);
la.bottom=Math.min(t[u].bottom,q.bottom);la.left=t[u].left;la.right=q.right;la.width=la.right-la.left;la.height=la.bottom-la.top;t[u]=la}else t.push(q)}e=t}else e=null;if(e){for(v=0;v<e.length;v++)p=e[v],p.top&&(p.string=r.string,p.length=r.length,p.from=r.from,p.to=r.to);if(0>=f--){k=!0;break}r=e[0];A&&ca&&A.from===r.from&&(0===r.string.indexOf(A.string)||0===A.string.indexOf(r.string))&&(g=d.length);m||(v=document.body.scrollTop,ed(r.top-v,r.bottom-v)&&(m=!0,n=d.length));d.push(e)}}}));t=d;ca&&
c===v||(v=c,q=0,-1<n&&(q=n),-1<g&&(q=g),A=0<d.length?d[q]:null)}return p=c={limit:e,hasMore:k,count:d.length,items:d,index:q}}function l(a){t&&0<t.length&&(a>=t.length?a-=t.length:0>a&&(a+=t.length),q=a=Math.max(0,Math.min(t.length-1,a)),A=t[a],p.index=q,d())}function m(a){if(null==a||0===a.length)return[];var b=[],c={};r.H("rte").Oa.A("resource").Td().forEach(function(a){c[a.info.hash]=a});a.forEach(function(a){var h=a.hash,l=c[h],f=a.reco,m=a.outline;if(l)if(!0!==l.kd||!0===m)m=N(l.lb()),b.push([m]);
else if(!0===l.kd&&f){var e=+f.width,k=+f.height,m=f.items||[];if(0===m.length||isNaN(k)||isNaN(e))x.error('Invalid "find" resourceMatch',a,"reco data",f,'for "'+h+'" resource.');else{a=[];l=N(l.lb());e=l.width/e;k=l.height/k;for(h=0;h<m.length;h++){var f=m[h],d={};d.top=Math.round(+f.y*k-3+l.top);d.left=Math.round(+f.x*e-3+l.left);d.width=Math.round(+f.w*e+6);d.height=Math.round(+f.h*k+6);a.push(d)}b.push(a)}}});return b}B(this instanceof af,"Use `new` to instantiate this class");var r=this;r.name=
"find";var v,t,p,q,A,y,u,C,L,U,va,ca,la={a:"a\u24d0\uff41\u1e9a\u00e0\u00e1\u00e2\u1ea7\u1ea5\u1eab\u1ea9\u00e3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\u00e4\u01df\u1ea3\u00e5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250",b:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253",c:"c\u24d2\uff43\u0107\u0109\u010b\u010d\u00e7\u1e09\u0188\u023c\ua73f\u2184",d:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a",e:"e\u24d4\uff45\u00e8\u00e9\u00ea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\u00eb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd",
f:"f\u24d5\uff46\u1e1f\u0192\ua77c",g:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f",h:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265",i:"i\u24d8\uff49\u00ec\u00ed\u00ee\u0129\u012b\u012d\u00ef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131",j:"j\u24d9\uff4a\u0135\u01f0\u0249",k:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3",l:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747",
m:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f",n:"n\u24dd\uff4e\u01f9\u0144\u00f1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5",o:"o\u24de\uff4f\u00f2\u00f3\u00f4\u1ed3\u1ed1\u1ed7\u1ed5\u00f5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\u00f6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\u00f8\u01ff\u0254\ua74b\ua74d\u0275",p:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755",q:"q\u24e0\uff51\u024b\ua757\ua759",
r:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783",s:"s\u24e2\uff53\u00df\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b",t:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787",u:"u\u24e4\uff55\u00f9\u00fa\u00fb\u0169\u1e79\u016b\u1e7b\u016d\u00fc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289",
v:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c",w:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73",x:"x\u24e7\uff58\u1e8b\u1e8d",y:"y\u24e8\uff59\u1ef3\u00fd\u0177\u1ef9\u0233\u1e8f\u00ff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff",z:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"};r.F=function(a){a=D(a,{limit:100,excludeMatches:!1,highlight:"none",selector:"#en-note",noteSearchMatching:!1});u=0<+a.limit?+a.limit:100;C=w(a.selector)?a.selector:"#en-note";
L=a.excludeMatches;U=a.highlight;va=a.noteSearchMatching;a={};for(var b in la){var c=la[b];a[b]="["+b+c+"]";for(var h=0;h<c.length;h++){var l=c[h];a[l]||(a[l]=a[b])}}la=a;p=t=v=null;q=-1;A=null;y=[];r.B.A({name:"find",action:n,value:k,enabled:z})};var ya,gb=/(?=[A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19])[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc]/,
wf=/^(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc])/,
xf=/(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc])$/,
yf=/[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]/,
zf=/^(a|an|and|are|as|at|be|but|by|for|if|in|into|is|it|no|not|of|on|or|such|that|the|their|then|there|these|they|this|to|was|will|with)$/i;r.D=function(a){a=[a].map(Sa).join("|");return{Pe:new RegExp(a,"gi"),Ge:function(a,b){return{start:a.index,end:b.lastIndex}}}};r.J=function(a){a=a.trim();var b=/\*$/.test(a);b&&(a=a.substring(0,a.length-1));if(0>=a.length||zf.test(a))return null;for(var c=a,h=1,l=[],f=!1,m=!1,e=0;e<c.length;e++){var k=c[e];gb.test(k)?(m&&l.push("[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]*"),
l.push(k),f=!1,m=!0):(yf.test(k)?(f||l.push("[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]+"),
f=!0):(m&&l.push("[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19_\uff3f]*"),
(f=la[k.toLowerCase()])?l.push(f):l.push(k),f=!1),m=!1)}c=l.join("");c=c.replace(/\s/g,"\\s");c="("+c+")";wf.test(a)||(c="(^|(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc]))"+
c,h++);b||xf.test(a)||(c+="(?:(?:[^A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]|[\u1100-\u11ff\u2e80-\u312f\u3130-\u31bf\u31f0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff61-\uffdc])|$)");
return{Pe:new RegExp(c,"gi"),Ge:function(a){for(var b=a.index,c=b,l=1;l<=h;l++)b=c,c=b+a[l].length;return{start:b,end:c}}}}};function bf(){function a(a,b){B(!0===a.ib,"Only commands supported due to optimizations");a.ib=a.ib||!0;a.shiftKey=!!a.shiftKey;a.which=a.charCode||a.key.charCodeAt(0);a.jb=b;h.push(a)}function c(a){var b=l[a.keyCode];if(!b)return!0;xb("editingKeyEventOccurred",a);return b(a)?Id(a):!0}function b(a){a=g(a);return 2===a?Z.execCommand("deleteword"):4===a?Z.execCommand("deleteline"):Z.execCommand("delete")}function e(a){a=g(a);return 2===a?Z.execCommand("forwarddeleteword"):4===a?Z.execCommand("forwarddeleteline"):
Z.execCommand("forwarddelete")}function d(a){var b=!1;a=g(a);0===a?b=Z.execCommand("insertparagraph"):1===a?b=Z.execCommand("insertlinebreak"):2===a?b=Z.execCommand("inserttodo","toggle"):4!==a&&6!==a&&(b=!0);return b}function f(a){var b=!1;a=g(a);0===a?b=Z.execCommand("tab",""):1===a&&(b=Z.execCommand("tab","true"));return b}function g(a){return(a.shiftKey?1:0)+(a.altKey?2:0)+(a.metaKey?4:0)+(a.ctrlKey?8:0)}function k(a){if(a.ctrlKey||a.metaKey)for(var b=h.length-1;0<=b;b--){var c=h[b];if((null==
a.which?a.keyCode:a.which)===c.which&&a.shiftKey===c.shiftKey)return c.jb.call(null),Id(a)}return!0}var n=this;B(this instanceof bf,"Use `new` to instantiate this class");n.name="keyboard";var h=[],l={};n.F=function(m){m=D(m,{shortcuts:!0,editing:!0,custom:null,root:null});var g=m.root||document.body;m.shortcuts&&(a({key:"z",ib:!0},Z.execCommand.bind(Z,"undo")),a({key:"z",ib:!0,shiftKey:!0},Z.execCommand.bind(Z,"redo")),a({key:"y",ib:!0},Z.execCommand.bind(Z,"redo")),a({key:"b",ib:!0},Z.execCommand.bind(Z,
"bold")),a({key:"i",ib:!0},Z.execCommand.bind(Z,"italic")),a({key:"u",ib:!0},Z.execCommand.bind(Z,"underline")));m.editing&&(l[9]=f,l[13]=d,l[46]=e,l[8]=b,n.B.listener(g,"keydown",c));if(m.custom){var v=m.custom;B(da(m.custom),"Expected an Array for custom keyboard definitions");for(m=0;m<v.length;m++){var t=v[m],p=t.key,t=t.fn;B(w(p)&&ea(t),'Expected "key" and "fn"');a({key:p,ib:!0,shiftKey:p.toUpperCase()===p},t)}}0<h.length&&n.B.listener(g,"keypress",k)};n.S=function(){h=[]}};function cf(){var a=this;a.name="context";a.F=function(c){function b(){n=!1;var b=a.C();h&&b&&td(b,h)||(g={},k={},h=b&&b.cloneRange?b.cloneRange():null)}var e=c.root;B(I(e),"We expect a valid root element",e);a.root=e;a.G=c.G||{};var d=c.ma||X(a.root)||null,f=!1;a.la={};a.R=function(b){return a.la[b]||{}};var g={},k={},n=!1,h=null;a.Vf=function(){var b;null==b&&(b=a.C());h=b};a.N=function(){return n};a.Uc=function(a){b();return g[a]};a.qe=function(a,c){b();g[a]=c;n=!0};a.te=function(a){b();delete g[a];
n=!(!Object.keys(g).length&&!Object.keys(k).length)};a.Vc=function(a){b();return k[a]};a.re=function(a,c){b();k[a]=c;n=!0};a.Tf=function(a){b();delete k[a];n=!0};a.ef=function(){a.hc("getActiveRangeStartContainerComputedStyle",function(){var b=a.C();return b&&b.startContainer?wc(b.startContainer):null})};var l={};a.C=function(){return d};a.Pa=function(b){td(d,b)||(d=b||null,f=!0,a.D())};a.sc=function(b,c){d.setStart(b,c);f=!0;a.D()};a.rc=function(b,c){d.setEnd(b,c);f=!0;a.D()};a.Ba=function(){a.Pa(X(e)||
null);f=!1};a.yf=function(){a.ta()};a.Cf=function(){function b(a,c){for(var h=c,l=a,f=!0;f;)if(f=l.previousSibling&&sc(l.previousSibling))h+=O(l.previousSibling),l=l.previousSibling;return h}var c=a.C(),h=b(c.startContainer,c.startOffset),l=b(c.endContainer,c.endOffset);c.startContainer.parentNode.normalize();c.startContainer!==c.endContainer&&c.endContainer.parentNode.normalize();a.sc(c.startContainer,h);a.rc(c.endContainer,l)};a.zf=function(b){if(sc(b)){for(var c=O(b),h=b,l=!0;l;)if(l=h.previousSibling&&
sc(h.previousSibling))c+=O(h.previousSibling),h=h.previousSibling;b.parentNode.normalize();a.A(h,c);a.ta()}else a.A(b.parentNode,J(b)+1)};a.ta=function(b,c){if(f||b){if(!0===c){var h=d,l=window.getSelection();null!=l&&(l.removeAllRanges(),null!=h&&l.addRange(h))}else md(d,e);a.Ba();a.D()}};a.gd=function(b){d||(d=e.ownerDocument.createRange());d.selectNode(b);f=!0;a.D()};a.A=function(b,c,h,l){d||(d=e.ownerDocument.createRange());d.setStart(b,c);h?d.setEnd(h,l||0):d.setEnd(b,c);f=!0;a.D()};a.M=function(b,
c,h){c&&-1===h&&(h=c.childNodes.length);var l=b.parentNode,f=J(b);B(!!d,"Global range expected");for(var e=[[d.startContainer,d.startOffset],[d.endContainer,d.endOffset]],m=e.length,k=0;k<m;k++){var n=e[k];n[0]===c&&n[1]>h&&n[1]++;n[0]!==l||n[1]!==f&&n[1]!==f+1||(c?(n[0]=c,n[1]+=h-f):n[1]>f&&0<n[1]&&--n[1]);n[0]===l&&n[1]>f+1&&n[1]--;!c&&tc(n[0],b)&&(n[0]=b.parentNode,n[1]=J(b))}c?c.childNodes.length===h?c.appendChild(b):c.insertBefore(b,c.childNodes[+h]):H(b);a.A(e[0][0],e[0][1],e[1][0],e[1][1]);
a.D()};a.ne=function(b,c,h){B(b!==c,"Do not move into itself");for(var l;l=b.firstChild;)a.M(l,c,0>h?-1:h++)};a.insertBefore=function(b,c,h){a.M(b,c,h?J(h):-1)};a.Db=function(b,c){a.M(b,c,-1)};a.removeNode=function(b){a.M(b)};a.pe=function(b){for(;b.firstChild;)a.removeNode(b.firstChild);a.D()};a.oa=function(b,c){if(b&&b.tagName.toLowerCase()===c.toLocaleLowerCase())return b;var h=b.parentNode;if(!h)return b;for(var l=M(c),f=0;f<b.attributes.length;f++)l.setAttributeNS(b.attributes[f].namespaceURI,
b.attributes[f].name,b.attributes[f].value);a.M(l,h,J(b));a.ne(b,l,0);a.removeNode(b);return l};a.hasFocus=function(){var a=X(e);if(a){if(qd(a,"div.en-module",e))return!1;if((a=rd(a))&&!0===!(!P(a,Gc)&&!Gc(document.body)))return!0}return!1};var m=!1;a.Qe=function(a){m=!0===a;xb("noteReadOnlyStateChanged",{readOnly:m})};a.Va=function(){return m};var r=!1;a.gc=function(b){var c=r;r=!0===b;Hc(a.root,r);return c};a.K=function(){return r};a.D=function(){l={}};a.U=function(a,b){l[a]=b};a.J=function(a){return l[a]};
a.hc=function(a,b){var c=l[a];null==c&&(c=b(a),l[a]=c);return c};a.dump=function(){var b;if(b=a.C()){var c=fe(e,b);b=e.cloneNode(!0);if(c=ge(b,c)){if(c.startContainer.nodeType==Node.TEXT_NODE||c.startContainer.nodeType==Node.COMMENT_NODE)c.collapsed?c.startContainer.insertData(c.startOffset,"[]"):c.startContainer.insertData(c.startOffset,"[");else{var h=c.collapsed?"{}":"{";c.startOffset!=c.startContainer.childNodes.length&&c.startContainer.childNodes[c.startOffset].nodeType==Node.TEXT_NODE?c.startContainer.childNodes[c.startOffset].insertData(0,
h):0!=c.startOffset&&c.startContainer.childNodes[c.startOffset-1].nodeType==Node.TEXT_NODE?c.startContainer.childNodes[c.startOffset-1].appendData(h):c.startContainer.insertBefore(document.createTextNode(h),c.startContainer.childNodes.length==c.startOffset?null:c.startContainer.childNodes[c.startOffset])}c.collapsed||(c.endContainer.nodeType==Node.TEXT_NODE||c.endContainer.nodeType==Node.COMMENT_NODE?c.endContainer.insertData(c.endOffset,"]"):c.endOffset!=c.endContainer.childNodes.length&&c.endContainer.childNodes[c.endOffset].nodeType==
Node.TEXT_NODE?c.endContainer.childNodes[c.endOffset].insertData(0,"}"):0!=c.endOffset&&c.endContainer.childNodes[c.endOffset-1].nodeType==Node.TEXT_NODE?c.endContainer.childNodes[c.endOffset-1].appendData("}"):c.endContainer.insertBefore(document.createTextNode("}"),c.endContainer.childNodes.length==c.endOffset?null:c.endContainer.childNodes[c.endOffset]))}b=b.innerHTML}else b=e.innerHTML;return b}};a.S=function(){a.root=null}};function df(){var a=this,c=this;c.name="block";c.F=function(){var b=c.H("context"),e=c.H("query"),d=c.H("format"),f=b.root;a.Wa=function(a){if((a=e.ea(a))&&(e.K(a)||e.Da(a)))if(e.mc(a)){var c=a.getElementsByTagName("object");if(0<c.length){var h=!1,c=c[c.length-1];Xc(c.lastChild||c,function(a){return h=S(a)||e.Z(a)},a);h||b.Db(M("br"),a)}}else b.pe(a),e.rb(a)?b.Db(pc(),a):b.Db(M("br"),a)};a.ia=function(c){if(e.K(c))if(e.Xa(c).every(function(a){return!e.W(c,a)||!e.X(c,a)})){var f=K(c);"dd"===f||"dt"===
f?d.Ga([c],function(a){return R(a,"dl")&&!a.attributes.length},function(){return M("dl")}):e.X("p",e.eb(c))&&e.Tb(c)&&("div"!==f&&(c=b.oa(c,"div"),a.ia(c)),Na(c.childNodes).filter(e.Tb).forEach(function(b){var c=d.da([b]);a.ca([b]);d.aa(c)}))}else if(!e.X(c,c.parentNode)){for(f=d.da([c]);!e.X(c,c.parentNode);)a.ca([c]);d.aa(f)}};a.fb=function(a){if(R(a,"li")&&e.K(a)&&e.K(a.parentNode)){for(var c=function(a){return Q(a,"ol,ul")},h=!1,l=null;Na(a.childNodes).some(c);){var f=a.lastChild;c(f)||!l&&$c(f)?
(l=null,b.M(f,a.parentNode,1+J(a)),h=!0):e.$(f)?b.removeNode(f):(l||(l=M("li"),a.parentNode.insertBefore(l,a.nextSibling)),b.M(f,l,0),h=!0)}h&&e.qa(a,0)&&b.removeNode(a)}};a.J=function(){if(!b.C()||0===f.getElementsByTagName("li").length)return null;var a=e.na(b.C()),a=e.va(a,function(a){return e.K(a)&&!e.ub(a)&&(Q(a,"ol,ul")||Q(a.parentNode,"ol,ul")||e.X(a,"li"))});return a.length?a:null};a.wa=function(){var b=a.J();if(!b)return"none";for(var c=[],h=!0,l=!1,f=[],d=b.length;d--;){var g=b[d],t=!1,
p=!1;if(I(g)){var q=e.Ib(g);null!==q&&(0>c.indexOf(q)&&c.push(q),t=!0);var A=e.jf(g);A&&0<A.length&&(p=!0,null!==q&&(-1<A.indexOf(q)&&A.splice(A.indexOf(q),1),0<A.length&&(t=!1)))}g=g.parentNode;0>f.indexOf(g)&&(f.push(g),q=e.Ib(g),null!==q&&(0>c.indexOf(q)&&c.push(q),t=!0),R(g.parentNode,"li")&&(g=e.Ib(g.parentNode),null!==g&&(0>c.indexOf(g)&&c.push(g),t=!0)));h=h&&t;l=l||t||p;if(!h&&l)return"mixed"}return 0===c.length?"none":!h||1!==c.length&&1!==b.length?"mixed":c[0]};a.Sc=function(a){Ac(a)||(a=
Fc(a,f));if(!a||1!==a.nodeType)return"left";var b=wc(a).textAlign.replace(/^-(moz|webkit)-/,"").replace(/^auto$/,"start");return"start"===b?"ltr"===e.Gd(a)?"left":"right":"end"===b?"ltr"===e.Gd(a)?"right":"left":-1!==["center","justify","left","right"].indexOf(b)?b:"left"};a.df=function(c){null==c&&(c={});var f="blockMerging"in c?Boolean(c.rg):!0,h="stripWrappers"in c?Boolean(c.Lc):!0,l="direction"in c?c.direction:"forward";if(b.C()){a.Gb(b.C().startContainer,b.C().startOffset,!1);a.Gb(b.C().endContainer,
b.C().endOffset,!1);c=e.Cc(b.C().startContainer,b.C().startOffset);var m=c[0],g=c[1];c=e.Bc(b.C().endContainer,b.C().endOffset);var v=c[0],t=c[1];if("after"!==e.Jb(v,t,m,g))b.C().collapse("forward"===l);else{3===m.nodeType&&0==g&&(g=J(m),m=m.parentNode);3===v.nodeType&&t==O(v)&&(t=1+J(v),v=v.parentNode);b.A(m,g,v,t);for(var p=b.C().startContainer;e.W(p,p.parentNode)&&e.T(p);)p=p.parentNode;if(!e.I(p)&&!e.Da(p)||!e.X("span",p)||Q(p,"td,th"))p=null;for(var q=b.C().endContainer;e.W(q,q.parentNode)&&
e.T(q);)q=q.parentNode;if(!e.I(q)&&!e.Da(q)||!e.X("span",q)||Q(q,"td,th"))q=null;c=d.Vd();if(m==v&&e.K(m)&&3===m.nodeType)m.deleteData(g,t-g),a.Gb(m,g,!1),b.C().collapse("forward"===l);else{e.K(m)&&3===m.nodeType&&m.deleteData(g,O(m)-g);for(var A=e.va(b.C(),function(a){return e.K(a)&&!Q(a,"thead,tbody,tfoot,tr,th,td")}),y=0;y<A.length;y++){var u=A[y];if(g=u.parentNode)if(g.removeChild(u),a.Wa(g),h||!tc(m,g)&&g!=m)for(;e.K(g)&&e.T(g)&&0==O(g);)u=g.parentNode,u.removeChild(g),g=u}e.K(v)&&3===v.nodeType&&
v.deleteData(0,t);a.Gb(b.C().startContainer,b.C().startOffset,!1);a.Gb(b.C().endContainer,b.C().endOffset,!1);if(f&&p&&q&&e.W(p,q)&&p!=q){1===p.children.length&&e.Kd(p.firstChild)&&p.removeChild(p.firstChild);if(tc(q,p)){for(f=q;f.parentNode!=p;)f=f.parentNode;b.A(p,J(f));if(!q.hasChildNodes()){for(;e.K(q)&&1==q.parentNode.childNodes.length&&q.parentNode!=p;)g=q,g.removeChild(q),q=g;e.K(q)&&!e.T(q)&&e.T(q.previousSibling)&&e.T(q.nextSibling)&&q.parentNode.insertBefore(M("br"),q.nextSibling);e.K(q)&&
q.parentNode.removeChild(q);d.sb(c);return}if(!e.T(q.firstChild)){d.sb(c);return}h=[];for(h.push(q.firstChild);!S(h[h.length-1])&&e.T(h[h.length-1].nextSibling);)h.push(h[h.length-1].nextSibling);for(f=d.da(h);tc(p,h[0])&&h[0].parentNode!=p;)a.ca(h);e.K(h[0].previousSibling)&&S(h[0].previousSibling)&&h[0].parentNode.removeChild(h[0].previousSibling)}else if(tc(p,q)){b.A(p,O(p));for(f=p;f.parentNode!=q;)f=f.parentNode;e.T(f.nextSibling)&&S(p.lastChild)&&p.removeChild(p.lastChild);h=[];f.nextSibling&&
!e.I(f.nextSibling)&&h.push(f.nextSibling);h.length&&!S(h[h.length-1])&&h[h.length-1].nextSibling&&!e.I(h[h.length-1].nextSibling)&&h.push(h[h.length-1].nextSibling);f=d.da(h);h.forEach(function(a){b.M(a,p,-1)})}else{b.A(p,O(p));e.T(q.firstChild)&&S(p.lastChild)&&p.removeChild(p.lastChild);for(f=d.da(Na(q.childNodes));q.hasChildNodes();)b.M(q.firstChild,p,-1);for(;!(q.hasChildNodes()||0<=["td"].indexOf(q.tagName.toLowerCase()));)g=q.parentNode,g.removeChild(q),q=g}for(var C=p;e.gf(C).some(function(a){return e.W(C,
a)&&(R(a,"ol")&&R(a.nextSibling,"ol")||R(a,"ul")&&R(a.nextSibling,"ul"))&&e.W(C,a.nextSibling)});){for(;!(R(C,"ol")&&R(C.nextSibling,"ol")&&e.W(C,C.nextSibling)||R(C,"ul")&&R(C.nextSibling,"ul")&&e.W(C,C.nextSibling));)C=C.parentNode;for(;C.nextSibling.hasChildNodes();)b.M(C.nextSibling.firstChild,C,-1);C.parentNode.removeChild(C.nextSibling)}d.aa(f);a.Wa(p);d.Xd(p)}else b.C().collapse("forward"===l)}d.sb(c)}}};a.ca=function(a){var c=a[0].parentNode;if(e.K(c)&&c.parentNode){-1!==a.indexOf(c.firstChild)&&
d.ce(c);var h=-1!==a.indexOf(c.firstChild)&&e.jc(c),l=-1!==a.indexOf(c.lastChild)&&e.Ub(c);if(-1===a.indexOf(c.firstChild)&&-1!==a.indexOf(c.lastChild)){for(var f=a.length-1;0<=f;f--)b.M(a[f],c.parentNode,1+J(c));l&&!e.Ub(a[a.length-1])&&a[a.length-1].parentNode.insertBefore(M("br"),a[a.length-1].nextSibling);d.Xd(c)}else{if(-1===a.indexOf(c.firstChild))for(f=c.cloneNode(!1),c.removeAttribute("id"),c.parentNode.insertBefore(f,c);a[0].previousSibling;)b.M(c.firstChild,f,f.childNodes.length);for(f=
0;f<a.length;f++)b.M(a[f],c.parentNode,J(c));h&&!e.jc(a[0])&&a[0].parentNode.insertBefore(M("br"),a[0]);e.T(a[a.length-1])&&!S(a[a.length-1])&&S(c.firstChild)&&!e.T(c)&&c.removeChild(c.firstChild);e.qa(c,0)?(a=a[a.length-1],H(c),l&&!e.Ub(a)&&a.parentNode.insertBefore(M("br"),a.nextSibling)):d.ce(c)}}};a.qc=function(c){e.mc(c)?a.ca(Na(c.childNodes)):b.removeNode(c)};a.D=function(a,b,c){if(0==a)return"";if(1==a&&!b&&!c)return" ";if(1==a)return"\u00a0";var l="",f;for(f=b?"\u00a0 ":" \u00a0";3<a;)l+=
f,a-=2;return 3==a?l+(b||c?b&&!c?"\u00a0\u00a0 ":!b&&c?" \u00a0\u00a0":b&&c?"\u00a0 \u00a0":"impossible":" \u00a0 "):l+(b||c?b&&!c?"\u00a0 ":!b&&c?" \u00a0":b&&c?"\u00a0\u00a0":"impossible":"\u00a0 ")};a.Gb=function(b,c,h){null==h&&(h=!0);if(e.K(b)||e.Da(b)){for(;;)if(0<=c-1&&e.W(b,b.childNodes[c-1]))b=b.childNodes[c-1],c=O(b);else if(0==c&&!e.jc(b)&&e.W(b,b.parentNode))c=J(b),b=b.parentNode;else if(3===b.nodeType&&-1==["pre","pre-f.wrap"].indexOf(wc(b.parentNode).whiteSpace)&&0!=c&&/[ \xa0]/.test(b.data[c-
1]))c--;else break;for(var l=b,f=c,d=0,g=0==c&&e.jc(b);;)if(f<l.childNodes.length&&e.W(l,l.childNodes[f]))l=l.childNodes[f],f=0;else if(f==O(l)&&!e.Ub(l)&&e.W(l,l.parentNode))f=1+J(l),l=l.parentNode;else if(3===l.nodeType&&-1==["pre","pre-f.wrap"].indexOf(wc(l.parentNode).whiteSpace)&&f!=O(l)&&/[ \xa0]/.test(l.data[f]))h&&g&&" "==l.data[f]?l.deleteData(f,1):(g=" "==l.data[f],f++,d++);else break;h&&b===l&&sc(b)&&c===f&&(g=(g=b.textContent.match(/^\s+/))?g[0]:"",g=g.length,g>=c&&(b.deleteData(0,g),
c=f=0));if(h)for(;"before"==e.Jb(b,c,l,f);)if(0<=f-1&&f-1<l.childNodes.length&&e.W(l,l.childNodes[f-1]))l=l.childNodes[f-1],f=O(l);else if(0==f&&e.W(l,l.parentNode))f=J(l),l=l.parentNode;else if(3===l.nodeType&&-1==["pre","pre-f.wrap"].indexOf(wc(l.parentNode).whiteSpace)&&f==O(l)&&" "==l.data[l.data.length-1]&&e.Ub(l))f--,d--,l.deleteData(f,1);else break;for(h=a.D(d,0==c&&e.jc(b),f==O(l)&&e.Ub(l));"before"==e.Jb(b,c,l,f);)c<b.childNodes.length?(b=b.childNodes[c],c=0):3!=b.nodeType||c==O(b)?(c=1+
J(b),b=b.parentNode):(d=h[0],h=h.slice(1),d!=b.data[c]&&(b.insertData(c,d),b.deleteData(c+1,1)),c++)}};a.Hd=function(a){T(a,"margin-left",e.lc(a)+40+"px")};a.nc=function(){return b.hc("isSelectionAtList",function(){return!(!b.C()||!P(b.C().startContainer,"ul,ol",d.Hb()))})};a.le=function(){return b.hc("isSelectionAtTable",function(){return!(!b.C()||!P(b.C().startContainer,"table",d.Hb()))})};a.Zc=function(){return a.le()||a.nc()};var g=".en-crypt-revealed",g=g+",.en-crypto-revealed";a.Fa=function(){return b.hc("isSelectionAtCryptUnveiled",
function(){var a=b.C();return!!(qd(a,g,f)||0<wd(a,g).length)})};a.N=function(){return b.hc("isSelectionAtModule",function(){return!!qd(b.C(),"div.en-module",f)})}}};function ef(){var a=this,c=this;c.name="query";c.F=function(){var b=c.H("context").root;a.nextNode=function(b){return b.hasChildNodes()?b.firstChild:a.sa(b)};a.previousNode=function(a){if(a.previousSibling){for(a=a.previousSibling;a.hasChildNodes();)a=a.lastChild;return a}return a.parentNode&&1===a.parentNode.nodeType?a.parentNode:null};a.sa=function(a){for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null};a.Xa=function(a){for(var b=[];a.parentNode;)b.unshift(a.parentNode),a=a.parentNode;
return b};a.gf=function(b){return a.Xa(b).concat(b)};a.kc=function(b){for(var c=[],e=a.sa(b);(b=a.nextNode(b))&&b!=e;)c.push(b);return c};a.Gd=function(b){return"ltr"==b.dir?"ltr":"rtl"==b.dir?"rtl":R(b.parentNode)?a.Gd(b.parentNode):"ltr"};a.Jb=function(b,c,e,d){if(b==e){if(c==d)return"equal";if(c<d)return"before";if(c>d)return"after"}if(e.compareDocumentPosition(b)&4){d=a.Jb(e,d,b,c);if("before"==d)return"after";if("after"==d)return"before"}if(e.compareDocumentPosition(b)&8){for(;e.parentNode!=
b;)e=e.parentNode;if(J(e)<c)return"after"}return"before"};a.N=function(a){for(;null!=a.parentNode;)a=a.parentNode;return a};a.Xc=function(b,c){var e=a.Jb(b,0,c.startContainer,c.startOffset),d=a.Jb(b,O(b),c.endContainer,c.endOffset);return a.N(b)==a.N(c.startContainer)&&"after"==e&&"before"==d};a.va=function(b,c){"undefined"==typeof c&&(c=function(){return!0});var e=b.startContainer;e.hasChildNodes()&&b.startOffset<e.childNodes.length?e=e.childNodes[b.startOffset]:e=b.startOffset==O(e)?a.sa(e):a.nextNode(e);
var d=b.endContainer;d.hasChildNodes()&&b.endOffset<d.childNodes.length?d=d.childNodes[b.endOffset]:d=a.sa(d);for(var h=[];Dc(e,d);)a.Xc(e,b)&&c(e)?(h.push(e),e=a.sa(e)):e=a.nextNode(e);return h};a.ob=function(b,c){"undefined"==typeof c&&(c=function(){return!0});var e=b.startContainer;e.hasChildNodes()&&b.startOffset<e.childNodes.length?e=e.childNodes[b.startOffset]:e=b.startOffset==O(e)?a.sa(e):a.nextNode(e);var d=b.endContainer;d.hasChildNodes()&&b.endOffset<d.childNodes.length?d=d.childNodes[b.endOffset]:
d=a.sa(d);for(var h=[];Dc(e,d);)a.Xc(e,b)&&c(e)&&h.push(e),e=a.nextNode(e);return h};a.Tb=function(a){return Q(a,ua)};a.I=function(a){return!(!a||a!==b&&(!Ac(a)||F(a,"en-container")))};a.T=function(b){return!(!b||a.I(b))};a.qa=function(b,c){var e=0;null==c&&(c=1);var d=a.kc(b);0===d.length&&(d=[b]);for(var h=d.length-1;0<=h;h--){var l=d[h];if(sc(l)&&!$c(l)||S(l)&&++e>=c+1||Ed(l))return!1}return!0};a.K=function(b){return!(!b||!a.wb(b)||1!==b.nodeType&&1!==b.parentNode.nodeType)};a.ie=function(b){for(var c=
0;c<b.childNodes.length;c++)if(a.K(b.childNodes[c])||a.ie(b.childNodes[c]))return!0;return!1};a.Rb=function(b){if(!S(b))return!1;var c=a.eb(b),e=a.ea(b),d=!1,h=!1;Xc(b,function(b){if(a.I(b)||e!==a.ea(b))return!0;if(S(b))return h=!0;d=d||a.J(b);return!1},c);return!d&&!h};a.J=function(a){return 3===a.nodeType&&!$c(a)||Ed(a)};a.tb=function(b){if(!S(b))return!1;for(var c=b,e=a.eb(b);(c=c.parentNode)&&!(1<c.childNodes.length||c===e);){if("li"===K(c))return!1;if(a.I(c))break}var c=b,d=a.ea(b),h=!1,l=!1;
Yc(c,function(b){if(a.I(b)||d!==a.ea(b))return!0;if(S(b))return l=!0;h=h||a.J(b);return!1},e);var m=!1,r=!1;Xc(c,function(b){if(a.I(b)||d!==a.ea(b))return!0;if(S(b))return r=!0;m=m||a.J(b);return!1},e);return r||m||l||h?r||m?!1:h&&!m?!0:l?!1:!0:"li"===K(d)};a.Md=function(b){if(!$c(b))return!1;if(""===b.data)return!0;var c=b.parentNode;if(!c)return!0;for(;!a.I(c)&&c.parentNode;)c=c.parentNode;for(var e=b;e!=c;){e=a.previousNode(e);if(a.I(e)||S(e))return!0;if(3==e.nodeType&&!$c(e)||Ed(e))break}e=b;
for(b=a.sa(c);e!=b;){e=a.nextNode(e);if(a.I(e)||S(e))return!0;if(e&&3==e.nodeType&&!$c(e)||Ed(e))break}return!1};a.me=function(b){if(!b)return!1;if(a.I(b)||3===b.nodeType&&!a.Md(b)||Ed(b))return!0;for(var c=0;c<b.childNodes.length;c++)if(a.me(b.childNodes[c]))return!0;return!1};a.Z=function(b){if(!b)return!1;if(a.I(b)||Ed(b)||3===b.nodeType&&!a.Md(b)||S(b)&&!a.tb(b))return!0;for(var c=0;c<b.childNodes.length;c++)if(a.Z(b.childNodes[c]))return!0;return!1};a.mc=function(b){return Xb(b).some(function(b){return a.Z(b)})};
a.$=function(b){return!!b&&!a.Z(b)};a.Kd=function(b){if(a.Rb(b)&&!a.tb(b))return!0;if(!a.T(b)||1!=b.nodeType)return!1;for(var c=!1,e=0;e<b.childNodes.length;e++){if(!a.$(b.childNodes[e])&&!a.Kd(b.childNodes[e]))return!1;a.Kd(b.childNodes[e])&&(c=!0)}return c};a.ab=function(a){return-1!==na.indexOf(K(a))};var e="body caption col colgroup frame frameset head html tbody td tfoot th thead tr".split(" "),d=[[["a"],["a"]],[["dd","dt"],["dd","dt"]],["h1 h2 h3 h4 h5 h6".split(" "),"h1 h2 h3 h4 h5 h6".split(" ")],
[["li"],["li"]],[["nobr"],["nobr"]],[na,ma],[["td","th"],"caption col colgroup tbody td tfoot th thead tr".split(" ")]];a.X=function(b,c){if((-1!==ra.indexOf(c)||-1!==ra.indexOf(K(c)))&&"object"===typeof b&&3===b.nodeType&&!/^[ \t\n\f\r]*$/.test(b.data)||!(-1===sa.indexOf(c)&&-1===sa.indexOf(K(c))||"object"===typeof b&&3===b.nodeType)||"object"===typeof b&&(9===b.nodeType||11===b.nodeType||10===b.nodeType))return!1;R(b)&&(b=K(b));if(!w(b))return!0;if(R(c)){for(var k=c;k;){if("a"===b&&R(k,"a")||-1!==
ma.indexOf(b)&&a.ab(k)||/^h[1-6]$/.test(b)&&R(k)&&/^h[1-6]$/.test(K(k)))return!1;k=k.parentNode}c=K(c)}if("object"===typeof c&&(1===c.nodeType||11===c.nodeType))return!0;if(!w(c))return!1;switch(c){case "colgroup":return"col"===b;case "table":return-1!=="caption col colgroup tbody td tfoot th thead tr".split(" ").indexOf(b);case "tbody":case "thead":case "tfoot":return-1!==["td","th","tr"].indexOf(b);case "tr":return-1!==["td","th"].indexOf(b);case "dl":return-1!==["dt","dd"].indexOf(b);case "dir":case "ol":case "ul":return-1!==
["dir","li","ol","ul"].indexOf(b);case "hgroup":return/^h[1-6]$/.test(b)}if(-1!==e.indexOf(b)||-1!==["dd","dt"].indexOf(b)&&"dl"!==c||"li"===b&&"ol"!==c&&"ul"!==c)return!1;for(k=0;k<d.length;k++)if(-1!==d[k][0].indexOf(c)&&-1!==d[k][1].indexOf(b))return!1;return!0};a.ra=function(b){return a.K(b)&&a.Z(b)&&(3===b.nodeType||Ed(b)||S(b))};a.ub=function(a){if(!R(a))return!1;var b=K(a);return"blockquote"===b?!0:"div"!==b?!1:"0px"!==wc(a)["margin-left"]?!0:!1};a.oc=function(b){if(!a.ub(b))return!1;for(var c=
0;c<b.attributes.length;c++)if(-1===["style","dir"].indexOf(b.attributes[c].name))return!1;for(c=0;c<b.style.length;c++)if(!/^(-[a-z]+-)?(margin|border|padding)/.test(b.style[c]))return!1;return!0};a.Vb=function(a){return Q(a,"address,div,h1,h2,h3,h4,h5,h6,listing,p,pre,xmp")};a.Nd=function(b){return a.Vb(b)||Q(b,"li,dt,dd")};a.ea=function(b){for(;b&&!a.I(b);)b=b.parentNode;return b};a.Y=function(b,c){var e=!1;b?0===c?e=a.I(b)||a.La(b)||!b.parentNode:0<=c-1&&c-1<b.childNodes.length&&(e=a.Z(b.childNodes[c-
1])&&a.I(b.childNodes[c-1])||S(b.childNodes[c-1])):e=!0;return e};a.U=function(b,c){var e=!1;b?c===O(b)?e=!b.parentNode||a.I(b)||a.La(b):c<b.childNodes.length&&(e=a.Z(b.childNodes[c])&&a.I(b.childNodes[c])):e=!0;return e};a.D=function(b,c){return a.Y(b,c)||a.U(b,c)};a.na=function(b){var c=b.startContainer,e=b.startOffset,d=b.endContainer;b=b.endOffset;var h=a.Xa(c).concat(c).filter(function(a){return R(a,"li")}).slice(-1);h.length&&(e=J(h[0]),c=h[0].parentNode);if(!a.Y(c,e)){do 0<=e-1&&(Ed(c.childNodes[e-
1])||a.La(c.childNodes[e-1]))?e--:0<=e-1&&I(c.childNodes[e-1])&&c.childNodes[e-1].hasChildNodes()?(c=c.childNodes[e-1],e=O(c)):0==e?(e=J(c),c=c.parentNode):e--,sc(c)&&(e=J(c),c=c.parentNode);while(!a.D(c,e))}for(;0==e&&c.parentNode&&a.K(c)&&!a.La(c);)e=J(c),c=c.parentNode;h=a.Xa(d).concat(d).filter(function(a){return R(a,"li")}).slice(-1);h.length&&(b=1+J(h[0]),d=h[0].parentNode);if(!a.U(d,b)){do{if(b<O(d)&&(Ed(d.childNodes[b])||a.La(d.childNodes[b])))b++;else if(b<O(d)&&I(d)&&d.hasChildNodes())d=
d.childNodes[b],b=0;else if(b>=O(d)){if(a.La(d))break;b=1+J(d);d=d.parentNode}else b++;sc(d)&&(b=1+J(d),d=d.parentNode)}while(!a.D(d,b))}for(;b==O(d)&&d.parentNode&&a.K(d)&&!a.La(d);)b=1+J(d),d=d.parentNode;return ld(c,e,d,b)};a.jc=function(b){for(var c=0;!a.D(b,c);){if(0<=c-1&&c-1<b.childNodes.length&&a.Z(b.childNodes[c-1]))return!1;0!=c&&b.hasChildNodes()?(b=b.childNodes[c-1],c=O(b)):(c=J(b),b=b.parentNode)}return!0};a.Ub=function(b){for(var c=O(b);!a.D(b,c);){if(c<b.childNodes.length&&a.Z(b.childNodes[c]))return!1;
c!=O(b)&&b.hasChildNodes()?(b=b.childNodes[c],c=0):(c=1+J(b),b=b.parentNode)}return!0};a.lc=function(a){return a&&a.style?be(a.style.marginLeft):0};a.$c=function(b,c){if(!b||a.Da(b)||!I(b)||R(b,"table"))return!0;var e=b.style;if(e)for(var d=0;d<e.length;d++){var h=null,l=null,h=e[d],l=e.getPropertyValue(h);if(-1===qa.indexOf(l)&&l&&-1===pa.indexOf(h))return!1}return c?a.$c(b.parentNode):!0};a.of=function(b){return!!P(b,"li,ol,ul,dl,dd,dt",a.eb(b))};a.Ib=function(a){var b=K(a);return"ul"===b&&F(a,
"en-todo-list")?"tl":"ol"===b||"ul"===b?b:null};a.jf=function(b){var c=[];b=b.querySelectorAll("ol,ul");for(var e=b.length;e--;){var d=a.Ib(b[e]);null!==d&&0>c.indexOf(d)&&c.push(d)}return c};a.ke=function(b,c){return a.Ib(b)===c};a.ha=function(b,c){return 0===O(b)?null:c===O(b)&&b.parentNode&&a.T(b)?[b.parentNode,1+J(b)]:0<=c&&c<b.childNodes.length&&0!==O(b.childNodes[c])&&a.T(b.childNodes[c])?[b.childNodes[c],0]:null};a.Ja=function(b,c){return 0==O(b)?null:0==c&&b.parentNode&&a.T(b)?[b.parentNode,
J(b)]:0<=c-1&&c-1<b.childNodes.length&&0!=O(b.childNodes[c-1])&&a.T(b.childNodes[c-1])?[b.childNodes[c-1],O(b.childNodes[c-1])]:null};a.Bc=function(b,c){for(var e;e=a.Ja(b,c);)b=e[0],c=e[1];return[b,c]};a.Cc=function(b,c){for(var e;e=a.ha(b,c);)b=e[0],c=e[1];return[b,c]};a.La=function(b){return!!(b&&I(b)&&(F(b,"en-container")||R(b,"td")||a.I(b)&&!a.$c(b,!1)))};a.rb=function(c){return b===c?!0:!!(c&&tc(c,b)&&a.La(c))};a.Da=function(a){return b===a};a.eb=function(c){return tc(c,b)||a.Da(c)?b:null};
a.wb=function(a){return tc(a,b)};a.W=function(b,c){return!(!a.eb(b)||a.eb(b)!=a.eb(c))}}};function ff(a){var c=V("*[id]:not(.en-module):not(.en-container):not(.en-todo):not(.en-media):not(.en-object-placeholder),*[class]:not(.en-module):not(.en-container):not(.en-todo):not(.en-media):not(.en-object-placeholder)",a);a=V(".en-resource *",a);for(var b=a.length;b--;)c.splice(c.indexOf(a[b]),1);for(b=c.length-1;0<=b;b--){var e=c[b];-1===ta.indexOf(K(e))&&"en-editor-last-insertion-point"!==e.id&&e.removeAttribute("id");e.removeAttribute("class");e.attributes&&0<e.attributes.length&&Na(e.attributes).forEach(function(a){0===
a.name.indexOf("data-")&&e.removeAttribute(a.name)})}}function gf(a){W("span",a).forEach(function(a){a.hasAttributes()||cc(a)})}
function hf(a){var c=a.ownerDocument.createNodeIterator(a,136,null,!1),b;for(a=[];b=c.nextNode();)a.push(b);for(c=a.length-1;0<=c;c--)if(b=a[c],8===b.nodeType)if(0==b.data.indexOf("[CDATA[")){var e=b.nextSibling;b=bc(b,document.createTextNode(b.data.substr(7)));b.data.lastIndexOf("]]")!=b.data.length-2&&e&&3==e.nodeType?(e.data=e.data.replace(/^(.*?)\]\]\>(.*?)$/gi,"$1$2"),b.data+=">"):b.data=b.data.replace(/^(.*?)\]\](.*?)$/gi,"$1$2")}else b.parentNode.removeChild(b);else bc(b,document.createTextNode(b.data))}
function jf(a){a=a.querySelectorAll("*[style*='line-height']");for(var c=a.length-1;0<=c;c--){var b=a[c];b.style.lineHeight&&Pc(b,"line-height")}}var kf=["javascript"];function lf(a){var c=a;try{c=decodeURIComponent(c)||c}catch(b){x.warn("Could't decode invalid URI:",a),c="#"}c=c.replace(/[\x00-\x20]+/,"");c=c.replace(/<\!\-\-.*?\-\-\>/g,"");return(c=c.match(/^([a-zA-Z]+)\:/))?0<=kf.indexOf(c[1].toLowerCase())?"#":a.trim()||"#":a||"#"}
function mf(a){W("span[style*='-evernote-last-insertion-point']",a).forEach(function(a){cc(a)})}function nf(){return M("span",{style:"-evernote-last-insertion-point:true;",id:"en-editor-last-insertion-point"})}
function of(a){for(var c=ka.concat("id","contenteditable"),b=Na(a.attributes||[]).map(function(a){return a.name.toLowerCase()}),e=0;e<b.length;e++){var d=b[e];-1===c.indexOf(d)&&a.removeAttribute(d)}Lc(a);Pc(a,"height");Pc(a,"width");Pc(a,"max-height");Pc(a,"max-width");Pc(a,"min-height");Pc(a,"min-width");Mc(a)}
function pf(a,c){for(var b='<div id="en-note"',e=0;e<ka.length;e++){var d=ka[e].toLowerCase();if(a.hasAttribute(d)){var f=a.getAttribute(d);if("lang"!==d||""!==f)b+=" "+d+'="'+f.replace(Za["&"],"&amp;").replace(Za["<"],"&lt;").replace(Za[">"],"&gt;").replace(Za['"'],"&quot;").replace(Za["'"],"&apos;")+'"'}}return b+">"+c+"</div>"};function qf(){var a=this,c=this;c.name="format";c.F=function(){var b=c.H("context"),e=c.H("query"),d=b.root,f={};f.createlink=f.unlink=function(a){for(;a&&(!R(a)||"a"!==K(a)||!a.hasAttribute("href"));)a=a.parentNode;return a?a.getAttribute("href"):null};f.backcolor=function(a){for(;a&&a!==d&&e.T(a);){if(a.style){var b=a.style.backgroundColor;if(b&&"rgba(0, 0, 0, 0)"!==b&&""!==b&&"transparent"!==b)return wc(a).backgroundColor}a=a.parentNode}return null};f.highlight=function(a){for(;a&&a!==d&&e.T(a);){if(a.style&&
("rgb(255, 250, 165)"===a.style.backgroundColor||"true"===Oc(a,"-evernote-highlight")||"true"===Oc(a,"-evernote-highlighted")))return"rgb(255, 250, 165)";a=a.parentNode}return null};f.subscript=f.superscript=function(a){for(var b=!1,c=!1;e.T(a);)R(a,"sub")?b=!0:R(a,"sup")&&(c=!0),a=a.parentNode;return b&&c?"mixed":b?"subscript":c?"superscript":null};f.strikethrough=function(a){return P(a,function(a){var b=K(a);return"s"===b||"strike"===b||"del"===b?!0:a.style&&(a=a.style.textDecoration)?-1!==a.indexOf("line-through"):
!1},b.root)?"line-through":null};f.underline=function(a){return P(a,function(a){return"u"===K(a)?!0:a.style&&(a=a.style.textDecoration)?-1!==a.indexOf("underline"):!1},b.root)?"underline":null};f.tt=function(a){return P(a,"tt",b.root)?"tt":null};a.ce=function(a){var b=a.previousSibling;if(b){for(;b.hasChildNodes();)b=b.lastChild;for(;e.$(b)&&!e.tb(b)&&b!==a.parentNode;)b=e.previousNode(b);e.K(b)&&e.tb(b)&&b.parentNode.removeChild(b)}};a.Xd=function(a){for(var b=a;b.hasChildNodes();)b=b.lastChild;
for(;e.$(b)&&!e.tb(b)&&b!==a;)b=e.previousNode(b);if(e.K(b)&&e.tb(b)){for(;e.K(b.parentNode)&&e.$(b.parentNode);)b=b.parentNode;b.parentNode.removeChild(b)}};a.wb=function(b){a.ce(b);a.Xd(b)};a.Ga=function(c,l,d){"undefined"===typeof l&&(l=function(){return!1});"undefined"===typeof d&&(d=function(){return null});if(c.every(e.$)&&!c.some(function(a){return S(a)})||!c[0].parentNode)return null;for(e.T(c[c.length-1])&&!S(c[c.length-1])&&S(c[c.length-1].nextSibling)&&c.push(c[c.length-1].nextSibling);e.$(c[0].previousSibling);)c.unshift(c[0].previousSibling);
for(;e.$(c[c.length-1].nextSibling);)c.push(c[c.length-1].nextSibling);d=e.K(c[0].previousSibling)&&l(c[0].previousSibling)?c[0].previousSibling:e.K(c[c.length-1].nextSibling)&&l(c[c.length-1].nextSibling)?c[c.length-1].nextSibling:d();if(!d)return null;if(!d.parentNode){c[0].parentNode.insertBefore(d,c[0]);var f=b.C();f.startContainer===d.parentNode&&f.startOffset===J(d)&&b.sc(f.startContainer,f.startOffset+1);f.endContainer===d.parentNode&&f.endOffset===J(d)&&b.rc(f.endContainer,f.endOffset+1)}f=
c[0].parentNode;if(Dc(d,c[0])){!e.T(d)&&e.T([].filter.call(d.childNodes,e.Z).slice(-1)[0])&&e.T(c.filter(e.Z)[0])&&!S(d.lastChild)&&d.appendChild(M("br"));for(var k=0;k<c.length;k++)b.M(c[k],d,-1)}else for(!e.T(d)&&e.T([].filter.call(d.childNodes,e.Z)[0])&&e.T(c.filter(e.Z).slice(-1)[0])&&!S(c[c.length-1])&&d.insertBefore(M("br"),d.firstChild),k=c.length-1;0<=k;k--)b.M(c[k],d,0);e.K(f)&&!f.hasChildNodes()&&f.parentNode.removeChild(f);if(e.K(d.nextSibling)&&l(d.nextSibling)){for(!e.T(d)&&e.T(d.lastChild)&&
e.T(d.nextSibling.firstChild)&&!S(d.lastChild)&&d.appendChild(M("br"));d.nextSibling.hasChildNodes();)b.M(d.nextSibling.firstChild,d,-1);b.removeNode(d.nextSibling)}a.wb(d);return d};a.U=function(b,c){return null==c||c.collapsed?!1:e.Xc(b,c)||b===c.startContainer&&3===b.nodeType&&O(b)!==c.startOffset||b===c.endContainer&&3===b.nodeType&&0!==c.endOffset||!(!b.hasChildNodes()||![].every.call(b.childNodes,function(b){return a.U(b,c)})||tc(c.startContainer,b)&&3===c.startContainer.nodeType&&0!==c.startOffset||
tc(c.endContainer,b)&&3===c.endContainer.nodeType&&c.endOffset!==O(c.endContainer))?!0:!1};a.qb=function(b,c){"undefined"===typeof c&&(c=function(){return!0});if(null==b||b.collapsed)return null;for(var d=b.startContainer;a.U(d.parentNode,b);)d=d.parentNode;for(var f=e.sa(b.endContainer);!f&&d||f&&Dc(d,f);){if(a.U(d,b)&&c(d))return d;d=e.nextNode(d)}return null};a.pa=function(b,c){"undefined"===typeof c&&(c=function(){return!0});if(null==b||b.collapsed)return[];for(var d=b.startContainer;a.U(d.parentNode,
b);)d=d.parentNode;for(var f=e.sa(b.endContainer),k=[];!f&&d||f&&Dc(d,f);)a.U(d,b)&&c(d)&&k.push(d),d=e.nextNode(d);return k};a.ha=function(a){if(!R(a))return!1;var b=a.tagName.toUpperCase();if(-1!=="B EM I S SPAN STRIKE STRONG SUB SUP U".split(" ").indexOf(b)&&(0===a.attributes.length||1===a.attributes.length&&a.hasAttribute("style")))return!0;if("FONT"===b||"A"===b){var c=a.attributes.length;a.hasAttribute("style")&&c--;"FONT"===b&&(a.hasAttribute("color")&&c--,a.hasAttribute("face")&&c--,a.hasAttribute("size")&&
c--);"A"===b&&a.hasAttribute("href")&&c--;if(0===c)return!0}return!1};a.Y=function(a){if(!R(a))return!1;var b=a.tagName.toUpperCase();return-1==="A B EM FONT I S SPAN STRIKE STRONG SUB SUP U".split(" ").indexOf(b)?!1:0===a.attributes.length?!0:1<a.attributes.length?!1:a.hasAttribute("style")&&0===a.style.length||"A"===b&&a.hasAttribute("href")||"FONT"===b&&(a.hasAttribute("color")||a.hasAttribute("face")||a.hasAttribute("size"))||("B"===b||"STRONG"===b)&&a.hasAttribute("style")&&1===a.style.length&&
""!==a.style.fontWeight||("I"===b||"EM"===b)&&a.hasAttribute("style")&&1===a.style.length&&""!==a.style.fontStyle||("A"===b||"FONT"===b||"SPAN"===b)&&a.hasAttribute("style")&&1===a.style.length&&""===a.style.textDecoration||-1!=="A FONT S SPAN STRIKE U".split(" ").indexOf(b)&&a.hasAttribute("style")&&(1===a.style.length||4===a.style.length&&"MozTextBlink"in a.style&&"MozTextDecorationColor"in a.style&&"MozTextDecorationLine"in a.style&&"MozTextDecorationStyle"in a.style)&&("line-through"===a.style.textDecoration||
"underline"===a.style.textDecoration||"overline"===a.style.textDecoration||"none"===a.style.textDecoration)?!0:!1};a.D=function(a,c,e){if(null===c&&null===e)return!0;if(w(c)&&w(e)){if("fontsize"===a)return(a=c===e)||(c=Math.round(be(c)),e=Math.round(be(e)),a=!(null==c||null==e||c!==e)),a;if(c===e&&!b.R(a).yb||b.R(a).yb&&b.R(a).yb(c,e))return!0}return!1};a.P=function(c,e){if(1!==c.nodeType&&(!c.parentNode||1!==c.parentNode.nodeType))return null;if(1!==c.nodeType)return a.P(c.parentNode,e);var m=f[e];
if(m)return m(c);B(!!b.R(e).Aa,"Bug: no relevantCssProperty for "+e+" in f.getEffectiveCommandValue");m=b.R(e).Aa;if(!m)return"";if(!vc(c))return x.warn("We are not on rendered DOM for fontSize retrieval",c),bd(c,m,d);if(c.style&&null!==c.style[m]&&""!==c.style[m])return c.style[m];m=wc(c)[m];"fontname"===e&&"-webkit-standard"===m&&(m=(m=Ad.env)&&null!=m.defaultNoteFont?m.defaultNoteFont:"Default");return m};a.J=function(a,c){if(("backcolor"===c||"highlight"===c)&&Ac(a))return null;var e=K(a);if("createlink"===
c||"unlink"===c)return"a"===e&&a.hasAttribute("href")?a.getAttribute("href"):null;if("subscript"===c||"superscript"===c)return"sup"===e?"superscript":"sub"===e?"subscript":null;if("strikethrough"===c&&""!==a.style.textDecoration)return-1!==a.style.textDecoration.indexOf("line-through")?"line-through":null;if("strikethrough"===c&&("s"===e||"strike"===e||"del"===e))return"line-through";if("underline"===c&&""!==a.style.textDecoration)return-1!==a.style.textDecoration.indexOf("underline")?"underline":
null;if("underline"===c&&"u"===e)return"underline";if("highlight"===c&&"mark"===e)return"rgb(255, 250, 165)";if("tt"===e)return"tt";var f=b.R(c),k=f.Aa;if(null===k)return null;var g=a.style[k];if(""!==g)return(e=f.ya)&&e.length?("highlight"===c&&(g=Td(g)),-1!==e.indexOf(g)?g:null):g;if("font"===e){if("color"===k&&a.hasAttribute("color"))return a.color;if("fontFamily"===k&&a.hasAttribute("face"))return a.face;if("fontSize"===k&&a.hasAttribute("size"))return vc(a)?wc(a).fontSize.toString():(x.warn("We are not on rendered DOM for fontSize retieval",
a),bd(a,"fontSize",d))}return"fontWeight"!==k||"b"!==e&&"strong"!==e?"fontStyle"!==k||"i"!==e&&"em"!==e?null:"italic":"bold"};a.ab=function(c,e,d){for(var f=c;a.ha(f)&&1===f.childNodes.length&&a.ha(f.firstChild)&&(!a.Y(f)||!a.D(e,a.J(f,e),d));)f=f.firstChild;if(f!==c&&a.Y(f)&&a.D(e,a.J(f,e),d)&&a.D(e,a.P(f,e),d)){for(;f.hasChildNodes();)b.M(f.firstChild,f.parentNode,J(f));c.parentNode.insertBefore(f,c.nextSibling);b.M(c,f,-1)}};a.da=function(b){var c=[];b.forEach(function(b){"subscript forecolor highlight backcolor fontname fontsize bold italic strikethrough underline tt".split(" ").forEach(function(e){var d=
b;1!==d.nodeType&&(d=d.parentNode);for(;d&&1===d.nodeType&&null===a.J(d,e);)d=d.parentNode;d&&1===d.nodeType?c.push([b,e,a.J(d,e)]):c.push([b,e,null])})});return c};a.aa=function(b){b.forEach(function(b){var c=b[0],e=b[1];b=b[2];var d=c;d&&1===d.nodeType||(d=d.parentNode);for(;d&&1===d.nodeType&&null===a.J(d,e);)d=d.parentNode;null===b&&d&&1===d.nodeType?a.Ja(c,e,null):(d&&1===d.nodeType&&!a.D(e,a.J(d,e),b)||(!d||1!==d.nodeType)&&null!==b)&&a.N(c,e,b)})};a.Ed=function(c,d){if(e.K(c)&&null!==a.J(c,
d))if(a.Y(c)){for(var f=Array.prototype.slice.call(c.childNodes),k=0;k<f.length;k++)b.M(f[k],c.parentNode,J(c));c.parentNode.removeChild(c)}else"strikethrough"===d&&-1!==c.style.textDecoration.indexOf("line-through")&&("line-through"===c.style.textDecoration?c.style.textDecoration="":c.style.textDecoration=c.style.textDecoration.replace("line-through","")),"underline"===d&&-1!==c.style.textDecoration.indexOf("underline")&&("underline"===c.style.textDecoration?c.style.textDecoration="":c.style.textDecoration=
c.style.textDecoration.replace("underline","")),null!==b.R(d).Aa&&(c.style[b.R(d).Aa]=""),R(c,"font")&&("forecolor"===d&&c.removeAttribute("color"),"fontname"===d&&c.removeAttribute("face"),"fontsize"===d&&c.removeAttribute("size")),!R(c,"a")||"createlink"!==d&&"unlink"!==d||c.removeAttribute("href"),""===c.getAttribute("style")&&c.removeAttribute("style"),null===a.J(c,d)||b.oa(c,"span")};a.Ja=function(b,c,d){if(b.parentNode&&1===b.parentNode.nodeType&&!a.D(c,a.P(b,c),d)){for(var f=b.parentNode,k=
[];e.K(f)&&1===f.nodeType&&!a.D(c,a.P(f,c),d);)k.push(f),f=f.parentNode;if(k.length){var g=a.J(k[k.length-1],c);if(null!==g||g===d)if(null===d||a.D(c,a.P(k[k.length-1].parentNode,c),d))for(;k.length;)for(f=k.pop(),null!==a.J(f,c)&&(g=a.J(f,c)),d=Array.prototype.slice.call(f.childNodes),null!==a.J(f,c)&&a.Ed(f,c),f=0;f<d.length;f++){var n=d[f];n!==b&&(1!==n.nodeType||null===a.J(n,c)||a.D(c,g,a.J(n,c)))&&n!==k[k.length-1]&&a.N(n,c,g)}}}};a.N=function(c,d,f){if(c.parentNode&&null!==f&&(e.X(c,"span")&&
(a.ab(c.previousSibling,d,f),a.ab(c.nextSibling,d,f),a.Ga([c],function(b){return a.Y(b)&&a.D(d,a.J(b,d),f)&&a.D(d,a.P(b,d),f)},function(){return null})),!e.$(c)&&!a.D(d,a.P(c,d),f)&&c.parentNode))if(!e.X(c,"span")){for(var k=[],g=0;g<c.childNodes.length;g++){if(1===c.childNodes[g].nodeType){var n=a.J(c.childNodes[g],d);if(null!==n&&!a.D(d,f,n))continue}k.push(c.childNodes[g])}for(g=0;g<k.length;g++)a.N(k[g],d,f)}else if(!a.D(d,a.P(c,d),f)){k=null;if("bold"!==d||"bold"!==f&&"700"!==f)if("italic"===
d&&"italic"===f)k=M("i");else if("strikethrough"===d&&"line-through"===f)k=M("s");else if("underline"===d&&"underline"===f)k=M("u");else if("tt"===d&&"tt"===f)k=M("tt");else if("createlink"===d||"unlink"===d)for(k=M("a"),k.setAttribute("href",f),g=c.parentNode;g;)R(g,"a")&&(g=b.oa(g,"span")),g=g.parentNode;else"subscript"!==d&&"superscript"!==d||"subscript"!==f?"subscript"!==d&&"superscript"!==d||"superscript"!==f||(k=M("sup")):k=M("sub");else k=M("b");k||(k=M("span"));c.parentNode.insertBefore(k,
c);g=b.R(d).Aa;null===g||k.style[g]===f||a.D(d,a.P(k,d),f)||(k.style[g]=f,"highlight"===d&&T(k,"-evernote-highlight","true"));"forecolor"===d&&Ud(f)&&k.style.color!==f&&(k.style.color=f);"fontname"===d&&null!=f&&k.style.fontFamily!==f&&(k.style.fontFamily=f);"fontsize"===d&&null!=f&&k.style.fontSize!==f&&(k.style.fontSize=f);"strikethrough"===d&&"line-through"===f&&"line-through"!==a.P(k,"strikethrough")&&(k.style.textDecoration="line-through");"underline"===d&&"underline"===f&&"underline"!==a.P(k,
"underline")&&(k.style.textDecoration="underline");b.M(c,k,k.childNodes.length);if(1===c.nodeType&&!a.D(d,a.P(c,d),f)){b.M(c,k.parentNode,J(k));k.parentNode.removeChild(k);k=[];for(g=0;g<c.childNodes.length;g++){if(1===c.childNodes[g].nodeType&&(n=a.J(c.childNodes[g],d),null!==n&&!a.D(d,f,n)))continue;k.push(c.childNodes[g])}for(g=0;g<k.length;g++)a.N(k[g],d,f)}}};a.pd=function(c,d,f){var k=!1,g=!1,n=a.H("textinput");null==f&&((f=n.Ye())?g=!0:(f=b.C(),k=!0));if(null===a.qb(f,e.ra))b.Vf(),b.R(c).ya&&
b.qe(c,-1!==b.R(c).ya.indexOf(d)),"subscript"===c&&b.te("superscript"),"superscript"===c&&b.te("subscript"),null===d?b.Tf(c):("createlink"===c||b.R(c).value)&&b.re(c,d);else{if(e.K(f.startContainer)&&3===f.startContainer.nodeType&&0!==f.startOffset&&f.startOffset!==O(f.startContainer)){var p;if(f.startContainer===f.endContainer){var q=f.endOffset-f.startOffset;p=f.startContainer.splitText(f.startOffset);f.setEnd(p,q)}else p=f.startContainer.splitText(f.startOffset);f.setStart(p,0)}e.K(f.endContainer)&&
3===f.endContainer.nodeType&&0!==f.endOffset&&f.endOffset!==O(f.endContainer)&&(p=[f.startContainer,f.startOffset],q=[f.endContainer,f.endOffset],f.endContainer.splitText(f.endOffset),f.setStart(p[0],p[1]),f.setEnd(q[0],q[1]));k?b.Pa(f):g&&n.Lf(f);a.pa(f,function(a){return e.K(a)&&1===a.nodeType}).forEach(function(b){a.Ed(b,c)});a.pa(f,e.K).forEach(function(b){a.Ja(b,c,d);e.X(b,"span")&&a.N(b,c,d)})}};var g="bold italic strikethrough subscript superscript underline highlight tt".split(" "),k=["fontname",
"fontsize","forecolor"],n=["object"];a.fd=function(){var a=[];void 0!==b.Vc("createlink")&&a.push(["createlink",b.Vc("createlink")]);g.forEach(function(c){void 0!==b.Uc(c)&&a.push([c,b.Uc(c)])});k.forEach(function(c){void 0!==b.Vc(c)&&a.push([c,b.Vc(c)])});return a};a.Vd=function(c){var d=[],f=a.qb(b.C(),e.ra);!f&&c&&(c=b.C())&&(f=rd(c));if(!f)return d;d.push(["createlink",a.P(f,"createlink")]);g.forEach(function(c){var e=a.P(f,c);-1!==b.R(c).ya.indexOf(e)?d.push([c,!0]):d.push([c,!1])});if(-1!==
n.indexOf(K(f)))return d;k.forEach(function(c){"fontsize"===c?d.push([c,a.P(f,"fontsize")]):d.push([c,b.R(c).value()])});return d};a.sb=function(c){var d,f,k,g=a.qb(b.C(),e.ra);if(null!==g)for(d=0;d<c.length;d++)f=c[d][0],k=c[d][1],"boolean"===typeof k&&b.R(f).state()!==k?b.R(f).action(k):w(k)&&!a.D(f,a.P(g,f),k)&&b.R(f).action(k),g=a.qb(b.C(),e.ra)||g;else for(d=0;d<c.length;d++)f=c[d][0],k=c[d][1],"boolean"===typeof k&&b.qe(f,k),w(k)&&b.re(f,k)};a.sf=function(c){var d=a.Vd(!0);c();b.ta();a.sb(d)};
a.Hb=function(){return e.eb(rd(b.C()))}}};function rf(){var a=this;a.name="normalize";var c=/\n\r|\r\n|\r|\n/gi,b=/\s/gi;a.F=function(){function e(a,b,c){if(0>a||0>b){var d=c.style.marginLeft?c.style.marginLeft:"0",e=c.style.marginTop?c.style.marginTop:"0";a=c.style.left?c.style.left:"0";b=c.style.top?c.style.top:"0";if(0===d.indexOf("-")||0===e.indexOf("-"))(e=Zd(e))&&0>c.offsetTop&&0>e.value&&(Ke(c),T(c,"margin-top",e.value-c.offsetTop+"px")),(d=Zd(d))&&0>c.offsetLeft&&0>d.value&&(Ke(c),T(c,"margin-left",d.value-c.offsetLeft+"px"));if(0===
b.indexOf("-")||0===a.indexOf("-"))b=Zd(b).value,a=Zd(a).value,0>c.offsetTop&&0>b&&(Ke(c),T(c,"top",b-c.offsetTop+"px")),0>c.offsetLeft&&0>a&&(Ke(c),T(c,"left",a-c.offsetLeft+"px"))}}function d(a){var b=wc(a)||{},b={fontWeight:b.fontWeight,Bf:b.fontFamily,fontSize:be(b.fontSize),marginTop:be(b.marginTop),marginBottom:be(b.marginBottom)},c=wc(a.parentNode)||{};a=y.oa(a,"div");b.fontWeight&&"normal"!==b.fontWeight&&400!=b.fontWeight&&(a.style.fontWeight=b.fontWeight);b.fontFamily&&b.Bf!==c.fontName&&
(a.style.fontFamily=b.fontFamily);b.fontSize&&b.fontSize!==be(c.fontSize)&&(a.style.fontSize=b.fontSize.toString()+"px");0<=1*b.marginTop-be(c.fontSize)&&(u.of(a)?(a.appendChild(M("br")),a.appendChild(M("br"))):(b=pc(),y.M(b,a.parentNode,J(a)),Lc(b),h(b),Mc(b)));return a}function f(a){if(!a)return a;Ac(a)&&(a=y.oa(a,"div"));Ke(a);Pc(a,"white-space");Pc(a,"word-wrap");Pc(a,"word-break");for(var d=Xb(a),e,h,l=y.C(),k=0;k<d.length;k++){var m=d[k];if(sc(m)){for(var n=m.textContent.split(c),A=M("div"),
r=0;r<n.length;r++){var p=n[r].replace(b,"\u00a0").replace(va,"\u00a0 ");p&&A.appendChild(document.createTextNode(p));r<n.length-1&&A.appendChild(M("br"))}if(l.startContainer===m||tc(m,l.startContainer))e=g(A,l.startOffset);if(l.endContainer===m||tc(m,l.endContainer))h=g(A,l.endOffset);bc(m,A);cc(A)}else f(m)}e&&null!==e[0]&&y.sc(e[0],e[1]);h&&null!==h[0]&&y.rc(h[0],h[1]);return a}function g(a,b){for(var c=0,d=null,e=0,f=0;f<a.childNodes.length;f++){var h=a.childNodes[f],l=h.length||1;if(c<b)c+=l,
e=l-(c-b),d=h;else{c==b&&(e=0,d=h);break}}return[d,e]}function k(){if(!p(U,!0)&&u.qa(U)){ac(U);var a=pc();U.appendChild(a);y.A(a,0)}}function n(a){if(I(a)&&(a=a.getElementsByTagName("*")))for(var b=a.length-1;0<=b;b--){var c=a[b];c.hasChildNodes()||Ac(c)||Ed(c)||S(c)||y.removeNode(c)}}function h(a){(a=v(a))&&A(a,"div>div,div>table,div>ol,div>ul").forEach(function(a){var b=a.parentNode;if(b&&!u.rb(b)&&!u.rb(a)){if(R(a,"div")){["text-align"].forEach(function(c){if(!a.style[c]){var d=b.style[c];d&&(a.style[c]=
d)}});var c=u.lc(b)+u.lc(a);0<c?T(a,"margin-left",c+"px"):Pc(a,"margin-left")}var c=[a],d=C.da(c);L.ca(c);C.aa(d);l(u.ea(a))}})}function l(a){var b=a&&a.nextSibling;b&&!p(b)&&y.removeNode(b);(a=a&&a.previousSibling)&&!p(a)&&y.removeNode(a)}function m(a){if(Q(a,"ul,ol")&&u.K(a)&&u.$c(a,!0))for(var b=null,c=a.childNodes.length-1;0<=c;c--){var d=a.childNodes[c];Q(d,"li,ol,ul")?b=null:Ac(d)?y.oa(d,"li"):$c(d)?y.removeNode(d):(b||(b=M("li"),y.insertBefore(b,d.parentNode,d.nextSibling)),y.M(d,b,0))}}function r(a){B(!!a,
"expected node");if("hr"===K(a)){var b=M("div");b.appendChild(a);return b}b=ld(a,0);b=u.na(b);if(b.collapsed)return null;for(;u.I(a=b.startContainer.childNodes[b.startOffset]);)b.setStart(a,0);a=u.va(b);if(0>=a.length)return sd(b);for(var b=a[0].parentNode,c=(u.I(b)||u.La(b))&&a[0]===b.firstChild&&a[a.length-1]===b.lastChild;a.length&&$c(a[0]);)y.removeNode(a.shift());var d=u.rb(b);if(c){if(!d)return b;if(0>=a.length||!Xb(b).some(function(a){return p(a)}))return L.Wa(b),b}a.length&&(c=C.da(a),b=C.Ga(a,
function(){return!1},function(){return M("div")}),C.aa(c),L.ia(b));return b}function v(a){for(var b;a&&!Q(a,"div.en-module,object")&&(b=a.firstChild);)a=b;return a}function t(a){var b=P(a,"div.en-module,object",U);return b&&b!==a?!0:!1}function p(a,b){if(!a)return!1;if(3===a.nodeType&&!u.Md(a)||Ed(a)||Q(a,"table,tr,td,th,li")||S(a)&&(b?!u.Rb(a):!u.tb(a)))return!0;for(var c=0;c<a.childNodes.length;c++)if(p(a.childNodes[c],b))return!0;return!1}function q(a,b){for(var c=[];a&&a!==U;)-1!==b.indexOf(K(a))&&
c.unshift(a),a=a.parentNode;return c}function A(a,b){for(var c=[];a&&a!==U;)Q(a,b)&&c.unshift(a),a=a.parentNode;return c}var y=a.H("context"),u=a.H("query"),C=a.H("format"),L=a.H("block"),U=y.root,va=/\u00a0\u00a0/gi,ca={dl:function(a){if(a){for(var b=a.getElementsByTagName("dt"),c=b.length;c--;)d(b[c]);b=a.getElementsByTagName("dd");for(c=b.length;c--;)L.Hd(d(b[c]));return d(a)}return a}};ca.h1=ca.h2=ca.h3=ca.h4=ca.h5=ca.h6=ca.p=d;ca.center=function(a){a=d(a);T(a,"text-align","center")};ca.blockquote=
function(a){a=d(a);a.style.marginLeft="";L.Hd(a);Xb(a).forEach(h);return a};ca.th=function(a){a=y.oa(a,"td");var b=document.createRange();b.selectNodeContents(a);C.pd("bold","bold",b);return a};ca.ol=ca.ul=function(a,b){b||(W("li div",a).forEach(function(a){u.rb(a)||L.qc(a)}),W("li",a).forEach(L.fb),W('li[style*="list-style:"]',a).forEach(function(a){if("none"===Oc(a,"list-style")){for(;$c(a.previousSibling);)y.removeNode(a.previousSibling);Q(a.previousSibling,"li")?(y.ne(a,a.previousSibling,-1),
y.removeNode(a)):a.removeAttribute("style")}}));m(a);return a};ca.pre=function(a){return f(a)};var la=Object.keys(ca);a.D=function(a){if(!a||t(a))return null;a=v(a);var b=!1,c=!1;q(a,la).forEach(function(a){var d=K(a),e=ca[d];e&&(e(a,b,c),"pre"===d?c=!0:-1!==["ul","ol"].indexOf(d)&&(b=!0))});A(a,"*[style]").forEach(function(a){var b=Oc(a,"white-space");if("pre"===b||"pre-wrap"===b)a=f(a),c=!0;for(var b=["line-height","max-width","min-width"],d=b.length;d--;){var h=b[d];Oc(a,h)&&(Ke(a),Pc(a,h))}if(0>
a.offsetTop||0>a.offsetLeft||a.style&&a.style.position)if(b=Oc(a,"position"),"fixed"!==b||a.offsetParent&&a.offsetParent!==U||(Ke(a),T(a,"position","relative")),"absolute"===b&&a.offsetParent===U&&(a.offsetParent.offsetHeight<a.offsetTop+a.offsetHeight&&a.style.top&&(Ke(a),T(a,"position","relative"),Pc(a,"top")),a.offsetParent.offsetWidth<a.offsetLeft+a.offsetWidth&&a.style.left&&(Ke(a),T(a,"position","relative"),Pc(a,"left"))),0>a.offsetTop||0>a.offsetLeft){b=a.offsetParent;d=a.offsetTop;for(h=a.offsetLeft;null!==
b&&b!==U;){b.offsetLeft&&(h+=b.offsetLeft);b.offsetTop&&(d+=b.offsetTop);var l=Oc(b,"position");"absolute"!==l&&"fixed"!==l||b.offsetParent!==U||(Ke(b),0>b.offsetLeft||0>b.offsetTop?e(b.offsetTop,b.offsetLeft,b):T(b,"position","relative"));b=b.offsetParent}e(d,h,a)}});b||c||(a=v(a),a=r(a));a=v(a);Ke(a);h(a);if(a=u.ea(a))n(a),l(a);Le();return a};a.vb=function(){a.D(rd(y.C()));k()};a.oe=function(){a.D(sd(y.C()));k()};a.Qd=function(){y.C().collapsed||a.oe();a.vb()};a.Jf=function(){for(var b=rd(y.C()),
c,d=2;b&&0<d;)$c(b)?c=qc(b,U):u.T(b)?(--d,c=a.D(b),c=Yc(c,function(a){return u.T(a)&&u.ea(c)!==u.ea(a)},U)):c=qc(b,U),b=c;k()};a.bc=function(b,c){y.C()||y.A(U,0);var d=0;c||(c=z);var e=C.Hb();W("td:empty,th:empty",e).forEach(function(a){y.Db(pc(),a)});W("li:empty",e).forEach(function(a){y.Db(M("br"),a)});W("hr",e).forEach(function(a){a.parentNode!==e&&L.ca([a])});for(var f=b||e.firstChild,h=[],l;f&&c(f)&&1111>d++;)if(f=v(f),-1!==h.indexOf(f))f=rc(f,e);else{h.push(f);if($c(f)&&1<O(f.parentNode))l=
rc(f,e),y.removeNode(f);else if(u.T(f)||Q(f,"td,li,div")){var m=f.nextSibling;(l=a.D(f))||(l=m);l=Xc(l,function(a){return u.T(a)&&!t(a)&&u.ea(l)!==u.ea(a)},e)}else l=rc(f,e);f=l}k();0>=d&&x.error("Normalization reached safety limit, this probably indicates that the current document failed to get normalized and may behave unexpectedly.")};a.Ob=function(){y.C().collapsed?a.vb():a.bc(rd(y.C()),function(a){var b=y.C(),c;if(c=b)b=sd(b),c=!(null!=a&&null!=b&&a.compareDocumentPosition(b)&2);return c})}}}
;function sf(){var a=this;a.name="editor";a.F=function(){function c(a,c){var d=!1,e;0==g&&null!=a?b.Pa(a):0==g&&(b.Ba(),d=!0);g++;try{e=c()}catch(f){qb(f)}g--;d&&b.ta();return e}var b=a.H("context"),e=a.H("query"),d=a.H("format");a.H("block");var f=b.la;$d(b.root);var g=0;a.execCommand=function(b,d,e,l){if(1===arguments.length||4<=arguments.length&&null==d)d=!1;if(2>=arguments.length||4<=arguments.length&&null==e)e="";return c(l,function(b,c,d){return function(){if(!(b in f&&a.queryCommandEnabled(b,
d)))return!1;var c=f[b],e=c.action(""===d?null:d);c.kb&&a.H("spellcheck").kb(b);if(!0!==e&&!1!==e)throw"execCommand() didn't return true or false: "+e;return!1!==e}}(b,d,e))};a.queryCommandEnabled=function(a,d,e){return c(e,function(a,c){return function(){return a in f?b.R(a).enabled?b.R(a).enabled(c):b.hasFocus():!1}}(a,d))};a.queryCommandIndeterm=function(a,d){return c(d,function(a){return function(){return b.R(a).Ua?f[a].Ua():!1}}(a))};a.queryCommandState=function(a,d){return c(d,function(a){return function(){var c=
b.R(a);return c.state?null!=b.Uc(a)?b.Uc(a):c.state():!1}}(a))};a.queryCommandSupported=function(a){return a in f};a.queryCommandValue=function(a,d,e){return c(e,function(){return b.R(a).value?f[a].value(d):""})};b.tc=function(){Object.keys(f).forEach(function(a){b.R(a).Aa||(f[a].Aa=null);b.R(a).ya&&!b.R(a).Ua&&(f[a].Ua=function(){if(!b.C())return!1;var c=d.pa(b.C(),e.ra).map(function(b){return d.P(b,a)}),h=c.filter(function(b){return-1!=f[a].ya.indexOf(b)});return 1<=h.length&&1<=c.length-h.length});
b.R(a).ya&&(f[a].state=function(){var c=b.C();if(!c)return!1;b.ef();return-1!==f[a].ya.indexOf(d.P(c.startContainer,a))});b.R(a).Se&&(f[a].Ua=function(){if(!b.C())return!1;for(var c=d.pa(b.C(),e.ra).map(function(b){return d.P(b,a)}),f=1;f<c.length;f++)if(c[f]!==c[f-1])return!0;return!1},f[a].value=function(){if(!b.C())return"";var c=d.qb(b.C(),e.ra);null==c&&(c=b.C().startContainer);c=d.P(c,a);return null===c?"":c});var c=b.R(a).ga,h=f[a].action;f[a].action=function(a){if(c)var e=d.fd();a=h(a);c&&
(b.ta(),b.C().collapsed&&d.sb(e));return a}})};a.Df=function(){return f}}};function tf(){function a(){p.B.timeout(function(){var a=-C;C=k(u);a+=C;0!==a&&cb(u.querySelectorAll("table"),function(a){r(a)})})}function c(a){v(a.target);r(a.target);e(a)}function b(a){e(a)}function e(a){t(a.target);f(a.target)}function d(a,b){var c=[],d=-1,e=P(a,"table"),f=P(a,"tr");null==b&&(b=0);if(null==e||null==f)return x.warn("Couldn't find tr or table for a td! <$>"),[];for(var f=f.querySelectorAll("td"),h=0;h<f.length;h++)f[h]===a&&(d=h);if(-1===d)return x.warn("Couldn't find td within its tr! <%>"),
[];d+=b;if(0>d||d>f.length-1)return[];cb(e.querySelectorAll("tr"),function(a){a=a.querySelectorAll("td");null!=a[d]&&c.push(a[d])});return c}function f(a){if(!1!==n(a)&&!1!==g(a)){var b=A.Rc(a);"right"===b?m(a):("center"===b&&m(a),l(a));h(a)}}function g(a){function b(a){r(a);H(a.querySelector("colgroup"));var c=a.querySelector("tbody");kc(c,a);H(c)}function c(a){r(a);H(a.querySelector("col"))}var d=!1,e=!1;(function(){var b=a.querySelector("col");null!=b&&null!=b.parentElement&&"table"===K(b.parentElement)&&
(d=!0)})();(function(){var b=a.querySelector("tbody");null!=b&&null!=b.parentElement&&"table"===K(b.parentElement)&&(e=!0)})();if(d&&!e)c(a);else if(e)b(a);else{var f=Na(a.querySelectorAll("colgroup")),h=f[0]||null,l;if(0===f.length)return!0;l=W("col",h);for(var k=0;k<f.length;k++)if(null!=l[k].getAttribute("style"))return!1;for(k=0;k<l.length;k++)if(null!=l[k].getAttribute("style"))return!1;r(a);H(h)}return!0}function k(a){if(null==a)return null;a=wc(a);if(null==a)return null;a=a.getPropertyValue("width");
return null!=a?parseInt(a,10):null}function n(a){if(P(a.parentElement,"table")||null!=a.querySelector("table"))return!1;var b=!1;cb(q.Ka(a),function(a){F(a,"table-edge")&&(b=!0)});return b?!1:!0}function h(a){var b=a.querySelector("tr").querySelectorAll("td");cb(b,function(c){if(c!==b[b.length-1]){var e=q.Fb(c,"tableColumnEdge");G(e,"table-edge");var f=M("div",{"class":"line"});e.appendChild(f);var h,l,k,m,g,n,A=d(c),p=d(c,1),t=N(e).width;q.dd(e,function(){v(a);var b=N(A[0]),c=N(p[0]);h=b.width;l=
c.width;k=window.innerWidth-b.left-35;m=window.innerWidth-c.right+35;g=N(a).width;n=parseInt(Oc(e,"right"),10);G(e,"no-hide-element")},function(a){a=n-a;a>k-t&&(a=k-t);a<m&&(a=m);e.style.right=a+"px"},function(b){b<-h+35&&(b=-h+35);b>l-35&&(b=l-35);var c=(h+b)/g*100,d=(l-b)/g*100;y.Ma(function(){A[0].style.width=c+"%";p[0].style.width=d+"%";Vb(e,"no-hide-element");q.Xe(e);r(a)});Y(u,"setDirty",{Ec:!0});q.Na()},"cursor: col-resize;")}})}function l(a){var b,c,d,e=35*a.querySelector("tr").querySelectorAll("td").length,
f=A.Rc(a),h=q.Fb(a,"rightEdge");G(h,"table-edge");h.appendChild(M("div",{"class":"line"}));var l=N(h).width,k;q.dd(h,function(){v(a);var e=N(a);b=e.width;c=window.innerWidth-e.left;k=parseInt(Oc(h,"right"),10);d=N(a.parentNode).width;G(h,"no-hide-element")},function(a){if("center"===f){a=k-a;var d=c-(l+e+b)/2;a>d&&(a=d)}else a=k-a,a>c-l-e&&(a=c-l-e);0>a&&(a=0);h.style.right=a+"px"},function(c){var l;b="center"===f?b+2*c:b+c;b<e&&(b=e);l=b/d*100;100<l&&(l=100);Vb(h,"no-hide-element");y.Ma(function(){a.style.width=
l+"%";r(a)});Y(u,"setDirty",{Ec:!0});q.Na()},"cursor: col-resize;")}function m(a){var b,c,d,e=35*a.querySelector("tr").querySelectorAll("td").length,f=A.Rc(a),h=q.Fb(a,"leftEdge");G(h,"table-edge");h.appendChild(M("div",{"class":"line"}));var l=N(h).width,k;q.dd(h,function(){v(a);var e=N(a);b=e.width;c=e.right;k=parseInt(Oc(h,"left"),10);d=N(a.parentNode).width;G(h,"no-hide-element")},function(a){if("center"===f){a=k+a;var d=c-(b+e+l)/2;a>d&&(a=d)}else a=k+a,a>c-l-e&&(a=c-l-e);0>a&&(a=0);h.style.left=
a+"px"},function(c){var l;b="center"===f?b-2*c:b-c;b<e&&(b=e);l=b/d*100;100<l&&(l=100);Vb(h,"no-hide-element");y.Ma(function(){a.style.width=l+"%";r(a)});Y(u,"setDirty",{Ec:!0});q.Na()},"cursor: col-resize;")}function r(a){var b=N(a).width,c=35/b*100,d=[],e=0,f=0,h=a.querySelector("tr");if(null!=h&&(h=h.querySelectorAll("td"),0!==h.length)){b<35*h.length&&(b=35*h.length);var l=k(a.parentNode),l=Math.max(0,Math.min(100,b/l*100)),m=Oc(a,"width"),g=null;null!=m&&(g=Zd(m||""));g&&g.Pb&&"%"===g.Pb?T(a,
"width",l+"%"):T(a,"width",b+"px");var n=[];cb(h,function(a){a=N(a).width;n.push(a/b*100+"%")});cb(h,function(a){var b=N(a).width,h=n.shift();null==h&&(x.error("Length of first row magically changed <$>"),h="0%");T(a,"width",h);35>=b?(T(a,"width",c+"%"),f++):d.push(a);e+=parseInt(Oc(a,"width"),10)});if(0!==d.length&&0!==f){a=f*c;var A=e-a,r=100-a;cb(d,function(a){var b=parseInt(Oc(a,"width"),10),b=b/A*r;T(a,"width",b+"%")})}}}function v(a){T(a,"table-layout","fixed")}function t(a){cb(q.Ka(a),function(a){F(a,
"table-edge")&&q.detach(a)});cb(a.querySelectorAll("td"),function(a){cb(q.Ka(a),function(a){F(a,"table-edge")&&q.detach(a)})})}var p=this,q=null,A=null,y=null,u=null;p.name="ui-table";var C=null;p.F=function(){u=p.H("context").root;G(u,"en-ui-table-on");q=p.H("layer");A=p.H("table");y=p.H("undo");q.Ud("table",function(a,b){function c(b){f(a);b.stopPropagation();return!1}Kd()?b.Ha=p.B.listener(a,"mouseenter",c):b.Ha=p.B.listener(a,"mouseover",c)},function(a,b){b.Ha&&p.B.remove(b.Ha)});p.B.ba(u,"TABLE_ALIGN",
e);p.B.ba(u,"TABLE_INSERT_ROW",b);p.B.ba(u,"TABLE_DELETE_ROW",e);p.B.ba(u,"TABLE_INSERT_COLUMN",b);p.B.ba(u,"TABLE_DELETE_COLUMN",c);C=k(u);p.B.I("windowResize",a)};p.S=function(){Vb(u,"en-ui-table-on");cb(u.querySelectorAll("table"),function(a){t(a)});u=null}};function uf(){var a=this;a.name="copy";a.F=function(){function c(){var a=X(m);return!(!a||a.collapsed)}function b(){Y(m,"beforeGetContent");x.warn("The copy/cut action will only work if a ClipboardEvent is passed. Limited to WEB right now and highly experimental!")}function e(a){a=D(a,{fullhtml:!1,html:!0,fullraw:!1,raw:!0,resources:!0,plain:!0});Y(m,"beforeGetContent");var b=X(m);return(a=d(m,b,a))?a:null}function d(b,c,d){d=D(d,{plain:!0,html:!1,fullhtml:!1,fullraw:!1,raw:!1,resources:!1});if(!c||
c.collapsed)return null;var e=Ie.Xb("rte").ja(),l=e.Xb("query"),k=e.Xb("table"),m=l.Bc(c.startContainer,c.startOffset),u=P(c.startContainer,"td.en-selected",b),C=0;null!==u&&(m=l.Bc(u,0),u=k.Hc(u),0<u.column&&(C=u.column));c.setStart(m[0],m[1]);u=P(c.endContainer,"td.en-selected",b);m=0;if(null!==u){var L=l.Cc(u,O(u));c.setEnd(L[0],L[1]);u=k.Hc(u);(k=k.Cd(u.table))&&k.columns>u.column&&(m=k.columns-u.column-1)}u=c.cloneContents();k=document.createElement("body");k.appendChild(u);(u=a.Ta("crypt"))&&
u.se(k);for(u=c.commonAncestorContainer;u&&l.K(u)&&l.T(u);)I(u)&&mc(k,u.cloneNode(!1)),u=u.parentNode;if(Xb(k).some(function(a){return Q(a,"li,tr,td")})&&(b=P(c.startContainer,"table,ul,ol",b)))for(b=b.cloneNode(!1),k.insertBefore(b,k.firstChild);;)if((l=k.children[1])&&Q(l,"li,ol,ul,tr,td"))b.appendChild(l);else break;if(0<C||0<m){L=V("tr",k);if(0<C&&0<L.length){var U=L[0];for(b=0;b<C;b++)l=U.firstChild.cloneNode(!1),u=M("div",{},[M("br")]),l.appendChild(u),U.insertBefore(l,U.firstChild)}if(0<m&&
0<L.length)for(C=L[L.length-1],b=0;b<m;b++)l=C.lastChild.cloneNode(!1),u=M("div",{},[M("br")]),l.appendChild(u),C.appendChild(l)}var va={};d.plain&&ad(k.cloneNode(!0),function(b){var c=a.Ta("simpletext");c?(b=c.ic(b))&&ad(b,function(a){va.plain=f(Ya(oc(a)))}):va.plain=f(Ya(oc(b)))});d.resources&&(e=e.Xb("resource"),va.resources=e?e.Td(k):g(k)||[]);if(d.raw||d.fullraw)e=k.cloneNode(!0),ff(e),e=Ya(mb(e.outerHTML)),d.raw&&(va.raw=e),d.fullraw&&(va.fullraw=ic(k)?'<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body>'+
e+"</body></html>":'<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title></head><body>'+e+"</body></html>");if(d.html||d.fullhtml)a.H("transform").Qc(k,3),e=wc(c.startContainer),c=c.startContainer===c.endContainer?e:wc(c.endContainer),n(k),ff(k),h(k,e,c),c=Ya(mb(k.outerHTML)),d.html&&(va.html=c),d.fullhtml&&(va.fullhtml=ic(k)?'<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body>'+
c+"</body></html>":'<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title></head><body>'+c+"</body></html>");return va}function f(a){return a?a.replace(/\u00A0/g," "):""}function g(a){if(!a)return null;try{var b=[],c=a.querySelectorAll("embed[id],img[id]");for(a=0;a<c.length;a++){var d=c[a],e=(d.getAttribute("id")||"").split(":");if(3<=e.length&&"en-media"===e[0]){var f=e[2];f&&(d.setAttribute("src","?hash="+f),-1===b.indexOf(f)&&b.push(f))}}return b}catch(h){x.error("Exception in collectResourcesAction <$>",
h.toString())}return null}function k(a){a=(a||"").split(":");return 3<=a.length&&"en-media"===a[0]?a[2]:null}function n(a){W("embed[src][id]",a).forEach(function(b){var c=k(b.id);c&&(c=hc(a,"object",{type:"application/x-apple-msg-attachment",data:"cid:"+c}),bc(b,c))});W("img[src]",a).forEach(function(a){var b=k(a.id);b&&(a.setAttribute("src","cid:"+b),a.removeAttribute("class"),a.removeAttribute("id"),a.removeAttribute("data-en-resource-reference"))})}function h(a,b,c){var d={},e={},f={},h={},l=["font-family",
"font-size"];a instanceof Element&&(d=wc(a));d&&d["font-family"]||(d=wc(document.body));if(d)for(var k=0;k<l.length;k++){var m=l[k];e[m]=d[m]}if(b)for(k=0;k<l.length;k++)m=l[k],f[m]=b[m];if(c)for(k=0;k<l.length;k++)m=l[k],h[m]=c[m];b=Xb(a);for(c=b.length-1;0<=c;c--){d=b[c];if(3===d.nodeType){if(0===d.textContent.length)continue;l=M("span");a.insertBefore(l,d);l.appendChild(d);d=l}for(k in e)l=e[k],m=Oc(d,k),0===c&&f[k]?l=f[k]:c===b.length-1&&h[k]&&(l=h[k]),null===m&&void 0!==l&&T(d,k,l)}}var l=a.H("context"),
m=l.root;a.ff=d;a.B.A({name:"copy",action:function(){b();return!0},value:function(a){if(c())return a=zb(a),e(a)},enabled:function(){return c()}});a.B.A({name:"cut",action:function(){a.H("undo").Ma(function(){b();a.H("edit").V()});return!0},value:function(){var b=null;c()&&a.H("undo").Ma(function(){b=e();null!=b&&a.H("edit").V()});return b},enabled:function(){return l.hasFocus()&&c()}})}};function vf(){var a=this;a.name="paste";a.F=function(){function c(a){[].filter.call(a.childNodes,function(a){return d.K(a)&&!d.me(a)&&(!S(a)||d.Rb(a))&&J(a)>=e.C().startOffset}).forEach(function(a){a.parentNode.removeChild(a)})}function b(a){var b=e.C();b||(b=ld(),b.selectNodeContents(n),b.collapse(!1),e.Pa(b),e.ta());a||k.V();return e.C()}var e=a.H("context"),d=a.H("query"),f=a.H("block"),g=a.H("normalize"),k=a.H("edit"),n=e.root,h=e.la;a.Wc=function(a){function b(a){[].filter.call(a.childNodes,
function(a){return d.K(a)&&d.Rb(a)&&J(a)>=e.C().startOffset}).forEach(function(a){a.parentNode.removeChild(a)})}if(!k.V({Lc:!1}))return!1;if(!e.C())return x.warn("insertPlainText did fail due to missing content"),!1;var c;w(a)&&(c=a);var f;a instanceof DocumentFragment?f=a:a instanceof Node&&(f=document.createDocumentFragment(),f.appendChild(a));f&&ad(document.createElement("body"),function(a){a.appendChild(f);c=oc(a).replace(/\u00A0/g," ")});d.I(e.C().startContainer)?b(e.C().startContainer):d.I(e.C().startContainer.parentNode)&&
b(e.C().startContainer.parentNode);a=c.split(/\n/gi);for(var h=e.R("insertparagraph").action,g=0;g<a.length;g++){var n=a[g];0<g&&h&&h();if(n&&n.length){var A=e.C(),y=A.startContainer,A=A.startOffset;0<=A-1&&A-1<y.childNodes.length&&3===y.childNodes[A-1].nodeType&&(y=y.childNodes[A-1],A=O(y));0<=A&&A<y.childNodes.length&&3===y.childNodes[A].nodeType&&(y=y.childNodes[A],A=0);d.I(y)&&d.qa(y)&&(A=d.Cc(y,A),y=A[0],A=A[1]);e.A(y,A);n.trim()&&(0===n.indexOf(" ")&&(n=n.replace(/^\s/gi,"\u00a0")),3===y.nodeType?
(y.insertData(A,n),e.A(y,A+n.length)):(1===y.childNodes.length&&d.Rb(y.firstChild)&&y.removeChild(y.firstChild),y=document.createTextNode(n),e.C().insertNode(y),e.A(y,n.length)))}}e.C().collapse(!1);return!0};a.insertNode=function(h,k,r,v){if(!h)return x.warn("insertNode failed due to missing content"),!1;var t=b(),p;k&&(p=document.createTextNode("\u00a0"),t.insertNode(p),t.selectNode(p),e.R("removeformat").action(),e.A(p,1));var q;w(h)?q=gc(h,n):h instanceof DocumentFragment?q=h:h instanceof Node&&
(q=document.createDocumentFragment(),q.appendChild(h));r&&(a.H("transform").nb(q,3,v?{info:{source:v}}:void 0),g.vb());if(0<wd(t,"table").length||P(t.startContainer,"table")||P(t.endContainer,"table"))if(r=V("table",q),0<r.length)for(v=a.H("simpletext"),h=0;h<r.length;h++){var A=r[h],y=A.nextSibling,u=A.parentNode,C=v.ic(A);tc(A,u)&&u.removeChild(A);y?u.insertBefore(y,C):u.appendChild(C)}t.collapse(!1);e.Pa(t);e.ta();if(null==q.childNodes||0===q.childNodes.length)return x.warn("insertNode failed to empty content argument"),
!1;d.I(e.C().startContainer)?c(e.C().startContainer):k&&d.I(e.C().startContainer.parentNode)&&c(e.C().startContainer.parentNode);k=q;t=e.C();h=t.startContainer;q={};if(P(h,"li")&&Q(k.firstChild,"ol,ul,li")){t={xd:[],lastChild:null};q=P(e.C().startContainer,"li");d.qa(q)&&ac(q);q=W("ol,ul",k);for(h=0;h<q.length;h++)if(r=q[h],null!=r){v=!0;for(A=r.parentNode;A;){if(-1!==["ol","ul"].indexOf(K(A))){v=!1;break}A=A.parentNode}v&&cc(r)}q=!1;1<O(k)&&Q(k.lastChild.previousSibling,"li")&&d.qa(k.lastChild)&&
Q(k.lastChild,"li")&&(q=!0);h=k.querySelector("li");Q(h.parentNode,"ol,ul")||cc(h);t.lastChild=k.lastChild;t.ng=q;t.xd=d.kc(k);e.C().insertNode(k);q=t}else(h=P(h,"a"))&&k.querySelector(".en-todo")&&(t.selectNode(h),t.collapse(0===t.startOffset)),q.lastChild=k.lastChild,q.xd=d.kc(k),t.insertNode(k);t=q;q=t.xd;k=t.lastChild;e.A(k.parentNode,J(k)+1);f.Wa(e.C().startContainer);f.Wa(k);for(h=0;h<q.length;h++)f.ia(q[h]);p&&1===p.length&&e.removeNode(p);e.ta();g.vb();t.ng&&k&&k.previousSibling&&(p=k.previousSibling,
H(k),k=p);k&&k.parentNode&&e.zf(k);return!0};h.inserthtml={O:!0,ga:!0,action:function(c){if(null!=c){var d=null;w(c)?(b(),d=gc(c,n)):d=c;null!=d&&(a.H("transform").nb(d,3),g.vb(),a.insertNode(d,!1,!1))}return!0},value:function(){var a=e.C();if(!a||a.collapsed)return"";var b=d.Bc(a.startContainer,a.startOffset);a.setStart(b[0],b[1]);a=a.cloneContents();return nb(a)}};h.inserttext={O:!0,action:function(b){return a.Wc(b)}};a.pc=function(f,h){h=D(h,{value:"",selection:"",source:"",resources:[]},!1);h=
D(zb(f),h,!0);var g=h.mode,v=h.type,t=Ya(h.value),p=h.selection,q=h.source,A=h.resources||[];A&&0<A.length&&a.H("resource").jd(A);p&&(ie(e.root,p),e.Ba());if(w(t)){if("raw"!==g&&lb(t.trim()))return g=M("a",{href:t.trim()}),"html"===v?g.innerHTML=t:g.innerText=t,a.insertNode(g,!0,!1,q);if("pre"===g)for(var p=/\u00a0\u00a0/gi,t=t.replace(/\t/gi,"    "),A=/ {2,}/gi,y;y=A.exec(t);)var u=y[0].replace(/\s/gi,"\u00a0").replace(p,"\u00a0 "),t=t.substring(0,y.index)+u+t.substring(y.index+y[0].length);if("plain"===
v)return a.Wc(t);b(!0);p=gc(t,n);if(!p)return!0;if("raw"===g)return a.insertNode(t,!0,!1,q);if("html"===v&&"rich"===g&&(t=e.C(),null!=t&&k.vf(t.startContainer)))return v=a.H("simpletext"),v=v.ic(p),t.startContainer.parentNode.insertBefore(v,t.startContainer),t.deleteContents(),d.I(t.startContainer)&&c(t.startContainer),t=v.ownerDocument.createRange(),t.selectNodeContents(v),t.collapse(!1),e.Pa(t),e.ta(),!0;if("html"===v&&("plain"===g||"pre"===g||"simple"===g)){v=a.H("simpletext");if(v="simple"===
g?v.cf(p):v.ic(p))t=v.ownerDocument.createRange(),t.selectNodeContents(v),p=t.cloneContents();if("plain"===g||"pre"===g)return a.Wc(p)}return a.insertNode(p,!0,"rich"===g||"simple"===g,q)}return!0};h.paste={O:!0,action:function(b){return a.pc(b,{type:"html",mode:"rich"})}};h.pasteraw={O:!0,action:function(b){Ma('Please use execCommand("paste", { type: "html", mode: "raw", "value": ... })');return a.pc(b,{type:"html",mode:"raw"})}};h.pasteplain={O:!0,action:function(b){Ma('Please use execCommand("paste", { type: "plain", mode: "pre", "value": ... })');
return a.pc(b,{type:"plain",mode:"pre"})}};h.pastesimple={O:!0,action:function(b){Ma('Please use execCommand("paste", { type: "html", mode: "simple", "value": ... })');return a.pc(b,{type:"html",mode:"simple"})}}};a.S=function(){a.D=null}};function Af(){function a(a,b){var c=a.toString();(null!=b?b:1)&&(c=c.trim());return d.Y()?c:c.substr(0,d.G.maxLength)}function c(a){try{document.execCommand("inserttext",!1,a.toString())}catch(b){x.error("InsertText did fail with",a),X(f).insertNode(document.createTextNode(a))}}function b(a){B(null!=a&&w(a),"textfield: provide a non-null string to attempt insert into textfield");a=a.replace(/\s+/gi," ");if(d.Y())return d.D.Ma(function(){c(a)}),!0;var b=d.wc(!0);b<a.length&&e();var f=a.substr(0,Math.max(0,
b));return 0<f.length?(d.D.Ma(function(){c(f)}),!0):!1}function e(){!0===d.G.ge&&we("warning",{module:d.G.name})}B(this instanceof Af,"Use `new` to instantiate this class");var d=this,f=null,g=!1;d.name="textfield-"+ob();d.G=null;d.D=null;d.wb=null;d.F=function(k){d.G=D(k,{element:null,Le:!1,maxLength:0,placeholder:null,Rd:!1,Te:!0,Be:!0,active:!0,ye:["textfield"],Wb:null,ed:null,Ce:null,name:null,fontsize:null,ge:!1});f=d.G.element;B(!!f&&I(f),'"element" option must be an HTMLElement');!0===d.G.ge&&
B(null!=d.G.name,'"name" is required for warnings to be enabled');d.B.Ic({zb:d.G.ye});d.ab(d.G.placeholder);d.td(d.G.fontsize);d.setActive(d.G.active);B(!(d.G.Le&&d.G.maxLength),"Max length not supported for multi line fields");d.B.listener(f,"input",function(){if(!(d.Y()||0<=d.wc())){f.normalize();f.focus();var b=f.firstChild;if(null!=b){b.textContent=a(f.textContent,!1);var c=X(b);null!=c&&md(ld(b,Math.min(0!==c.endOffset?c.endOffset:d.G.maxLength,d.G.maxLength)))}}d.G.Wb&&d.U(!0)});d.B.listener(f,
"textInput",function(a){return d.Y()||0!==d.wc(!0)?!0:(e(),Id(a))});d.G.ed&&d.G.name&&(d.B.listener(f,"blur",function(){ze(d.G.name,{focus:d.hasFocus()})}),d.B.listener(f,"focus",function(){d.focus()}));d.G.Wb&&d.B.listener(f,"blur",function(){d.Sb()&&xb(d.G.Wb,{target:f,value:d.J(!1),blur:!0})});d.G.Ce&&d.B.listener(f,"paste",function(a){if(a&&a.clipboardData){var c=a.clipboardData.getData("text/plain");b(c);return Id(a)}});if(d.G.Be){var g=function(a,c){c=D(zb(a),c,!0);var d=c.value;"html"===c.type&&
(d=gc(d,f).textContent);return b(d)};d.B.A({name:"paste",action:function(a){if(d.hasFocus())return g(a,{type:"html",mode:"plain",value:""})},enabled:function(){return d.hasFocus()}});d.B.A({name:"pasteplain",action:function(a){if(d.hasFocus())return Ma('Please use execCommand("textfield.paste", { type: "plain", mode: "plain", "value": ... })'),g(a,{type:"plain",mode:"plain",value:""})},enabled:function(){return d.hasFocus()}});var h=function(){var a=X(f);return!(!a||a.collapsed)};d.B.A({name:"copy",
value:function(){if(!h())return null;var a=X(f);return{plain:Ya(a.toString())}},enabled:h});d.B.A({name:"inserttext",action:function(a){if(d.hasFocus())return d.D.Ma(function(){c(a)}),!0},enabled:function(){return d.hasFocus()}});d.B.A({name:"delete",action:function(a){return"selection"===a?(document.execCommand("delete"),!0):!1},enabled:function(a){return"selection"===a?d.hasFocus():!1}});d.B.A({name:"placeholder",action:function(a){d.ab(a||null)},enabled:function(){return!(!this.G||!this.G.queryGroupName)}})}d.G.Te&&
(d.D=new Ue,d.ja().F(d.D,{element:f}));d.B.A({name:"content",action:function(b){!d.G.Rd||b&&a(b)!==d.N()||(b="");d.Ja(b);return!0},value:function(a){k=D(zb(a),{resetChangesState:!0});k.resetChangesState&&d.U(!1);return d.J()||(d.G.Rd?d.N():"")},enabled:z,Mb:!0});d.B.A({name:"active",action:function(a){d.setActive(yb(a))},state:function(){return d.ha()},enabled:z,Mb:!0});d.B.A({name:"focus",action:function(a){D(zb(a),{clear:!1}).clear?pd():d.focus();return!0},state:function(){return d.hasFocus()},
enabled:z,Mb:!0});d.B.A({name:"changes",action:function(a){a=yb(a);d.U(a);return!0},state:function(){return d.Sb()},enabled:z,Mb:!0});d.B.A({name:"selectall",action:function(){d.Vb();return!0},enabled:function(){return d.hasFocus()}})};d.S=function(){d.setActive(!1);d.wb=null;d.G=null;f.removeAttribute("data-en-placeholder");f=null};d.J=function(b){b&&d.U(!1);if(d.G.multiline)return oc(f);f.normalize();b=f.firstChild;return null!=b?a(b.textContent):""};d.Ja=function(b){f.textContent=a(b);d.U(!1)};
d.hasFocus=function(){if(!d.ha())return!1;var a=X(f);return a&&(a=rd(a))?!!P(a,Gc):!1};d.focus=function(){f.focus();md(ld(f,O(f)));d.G.ed&&d.G.name&&ze(d.G.name,{focus:d.hasFocus()})};d.Vb=function(){f.focus();window.getSelection().selectAllChildren(f);d.G.ed&&d.G.name&&ze(d.G.name,{focus:d.hasFocus()})};d.N=function(){return f.getAttribute("data-en-placeholder")||""};d.ab=function(b){null!=b?f.setAttribute("data-en-placeholder",a(b)):f.removeAttribute("data-en-placeholder")};d.setActive=function(a){a!==
d.ha()&&(null==X(f)&&pd(),Hc(f,a))};d.ha=function(){return Gc(f)};d.U=function(a){g=!!a;!1===g&&d.D.flush();!0===d.Sb()&&d.G.Wb&&xb(d.G.Wb,{target:f,value:d.J(!1)});Wb(f,"en-note-is-empty",Fd(f))};d.Sb=function(){return g&&d.ha()};d.td=function(a){(a=ae(a,"px","px"))&&0<a.value&&T(f,"font-size",a.Eb)};d.Y=function(){return 0>=d.G.maxLength};d.wc=function(a){var b=d.G.maxLength-f.textContent.length,c=X(f),c=null!=c?c.endOffset-c.startOffset:0;a&&(b+=c);return Math.max(0,b)}};function Bf(){function a(){Ma("Please use title.focus");return g.hasFocus()}function c(a){if("placeholder"===a)return g.N();if("focus"===a)return Ma("Please use title.focus"),g.hasFocus();Ma("Please use title.content");return g.J()||g.N()}function b(a){a=zb(a);var b=!1,c=a.active;null!=c&&(Ma("Please use title.active"),g.setActive(c),b=!0);c=a.value;null!=c&&(Ma("Please use title.content"),e(c),b=!0);!0===a.focus&&(Ma("Please use title.focus"),g.focus(),b=!0);return b}function e(a){a&&a!==g.N()?g.J()!==
a&&g.Ja(a):g.Ja("");k=g.J()||g.N();g.U(!1)}B(this instanceof Bf,"Use `new` to instantiate this class");var d=this;this.name="title";var f=document.querySelector("#en-title");B(I(f),"Node for title required");var g=null,k=null;d.F=function(n){n=D(n,{active:!0,value:"",placeholder:"Untitled",placeholderAsDefaultValue:!0,fontsize:null});d.B.Ic({zb:["title"]});g=new Af;d.ja().F(g,{element:f,Le:!1,maxLength:255,placeholder:n.placeholder,Rd:n.placeholderAsDefaultValue,Te:!0,Be:!0,active:n.active,Wb:"titlechanged",
ye:["title"],ed:!0,Ce:n.pasteEvent,name:d.name,fontsize:n.fontsize,ge:!0});d.B.L(function(){g=null});k=n.value;e(k);d.B.listener(f,"keydown",function(a){var b=!1,c=(a.shiftKey?1:0)+(a.altKey?2:0)+(a.metaKey?4:0)+(a.ctrlKey?8:0);9===a.keyCode?0===c?(Z.execCommand("content.focus",{pos:"top",force:!0}),b=!0):1===c&&(Be(d.name),b=!0):13===a.keyCode&&(0===c?(Z.execCommand("content.focus",{pos:"top",force:!0}),b=!0):1===c?(Be(d.name),b=!0):4!==c&&6!==c&&(b=!0));return b?Id(a):!0});d.B.A({name:"title",action:b,
value:c,state:a,enabled:z})}};function Cf(){var a=this;a.name="crypt";a.F=function(){function c(a){if(a){var b=a.id;a=a.rev;if(b&&a)return k(b,a)}return(b=f())?g(b):null}function b(){var b=X(v);if(!b||b.collapsed)return x.error("No selection"),!1;b=a.H("copy").ff(v,b,{html:!0});if(!b&&!b.html)return x.error("Failed to extract content",b),!1;b=b.html;if(0< !b.length)return x.error("Extracted content is empty",b),!1;var c=k();c.plainText=b;c.length="128";c.cipher="AES";c.hint="";var e=d(c);if(!a.H("edit").V())return!1;b=l.C();b.insertNode(e);
b=ld();b.selectNode(e);b.collapse(!1);md(b);x.log("pre post");a.B.timeout(function(){x.log("in post");we("encrypt",c);x.log("post post")},0);return!0}function e(b,c,d){var e=b.plainText;if(null!=e){var f=document.getElementById(b.id);if(f&&!F(f,"en-crypt-revealed")&&(l.gd(f),l.C())){for(;f&&!m.I(f.parentNode)&&!m.rb(f.parentNode);)r.ca([f]);!0===c?a.H("paste").pc({value:e,type:"html",mode:"rich"}):(c={"class":"en-crypt en-crypt-revealed en-container",id:b.id},c["data-en-crypt-rev"]=b.rev,b=M("div",
c),jc(b,e),!0===d&&Hc(b,!1,!0),a.H("transform").nb(b,3),a.H("edit").je(b),l.A(b,O(b)))}}}function d(a){var b={src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","class":"en-crypt en-crypt-placeholder en-object-placeholder",id:a.id};b["data-en-crypt-rev"]=a.rev;return M("img",b)}function f(){var a=X(v);if(!a)return null;var b=qd(a,".en-crypt",v);return b?b:(a=wd(a,".en-crypt"))&&a.length?a[0]:null}function g(a){var b=a.id;a=a.getAttribute("data-en-crypt-rev");return b&&
a?k(b,a):null}function k(b,c){b=b||pb(a.name);var d=q[b];null==d&&(d={},q[b]=d);c=c||pb(b);var e=d[c];null==e&&(e={id:b,rev:c},d[c]=e);return e}var n=!1!==Ad.rte.cryptLegacy,h=!0===Ad.rte.cryptReadOnly,l=a.H("context"),m=a.H("query"),r=a.H("block"),v=l.root,t=l.la;a.B.listener(v,"click",function(a){a=a.target;F(a,"en-crypt-placeholder")&&(a=k(a.id,a.getAttribute("data-en-crypt-rev")),we("decrypt",a))});if(n){var p=function(){var a=l.C();if(!a||a.collapsed)return"";var b=m.Bc(a.startContainer,a.startOffset);
a.setStart(b[0],b[1]);a=a.cloneContents();return nb(a)};t.insertcrypto={ga:!0,action:function(b){if(!l.C())return x.error("insertCryptoAction: No range",b),!1;a.H("edit").V()&&a.H("paste").insertNode(b,!1,!0);return!0},value:p};t.revealcrypto={ga:!0,Ab:!0,action:function(b){var c=l.C();if(!c)return!1;c=m.ob(c,I);if(!c&&0>=c.length)return!1;for(c=c[0];c&&!m.I(c.parentNode)&&!m.rb(c.parentNode);)r.ca([c]);b=gc(b);if(!b)return!1;b=b.firstChild;a.H("transform").nb(b,3);a.H("edit").je(b);l.root.focus();
l.A(b,O(b));return!0},value:p}}var q={};a.hf=function(){if(h)return[];var a=[],b,c;for(b in q)if(q.hasOwnProperty(b))for(c in q[b])if(q[b].hasOwnProperty(c)){var d=q[b][c];null!=d.plainText&&null==d.cipherText&&a.push(d)}return a};a.ue=function(a){k(a.id,a.rev).cipherText=a.cipherText};a.B.ba(v,"beforeGetContent",function(){if(!h)for(var a=Na(v.getElementsByClassName("en-crypt-revealed")),b=a.length-1;0<=b;b--){var c=a[b],d=g(c);if(d){var e=c.innerHTML;if(d.plainText!==e){var f=k(d.id);c.setAttribute("data-en-crypt-rev",
f.rev);eb(f,d,!0);f.plainText=e;delete f.cipherText;delete d.plainText}}}});a.B.A({name:"crypt",action:function(f){var g,m;l.Ba();if(jb(f))return b();g=zb(f);if(f=g.encrypt)a.ue(f);else if(f=g.decrypt)g=f.id,m=f.rev,g=k(g,m),g.plainText=f.plainText,e(g,g.revert,h);else if(f=g.revert){g=c(f);if(!g)return!1;f.plainText&&(g.plainText=f.plainText);null!=g.plainText?e(g,!0):(g.revert=!0,we("decrypt",g))}else if(f=g.open){g=c(f);if(!g)return!1;f.plainText&&(g.plainText=f.plainText);null!=g.plainText?e(g,
!1,h):we("decrypt",g)}else if(f=g.close){g=c(f);if(!g)return!1;a.H("undo").flush();(f=document.getElementById(g.id))&&!F(f,"en-crypt-placeholder")&&(g=d(g),bc(f,g),l.gd(g),l.C().collapse(!1))}else return x.error("Invalid crypt value",g),!1;l.ta();return!0},state:function(a){var b=f();return b?"open"===a?F(b,"en-crypt-revealed"):"closed"===a?F(b,"en-crypt-placeholder")||!F(b,"en-crypt-revealed"):!0:!1},value:function(a){if("selected"===a){if(a=f()){var b=g(a);b.open=F(a,"en-crypt-revealed");return b}return""}return{count:{},
items:{}}},enabled:function(a){if(!jb(a))return!0;a=X(v);return!(!a||a.collapsed||qd(a,".en-crypt",v)||!(0>=wd(a,".en-crypt").length))}});a.se=function(a){n||W(".en-crypt-revealed",a).forEach(function(a){var b=g(a);null!=b&&(b=d(b),bc(a,b))})};a.Ca=function(a,b){1===b?W("en-crypt",a).forEach(function(a){var b;n?(b="en-crypt:"+a.textContent.trim()+":"+a.getAttribute("cipher")+":"+a.getAttribute("length")+":"+a.getAttribute("hint"),b=M("embed",{type:"evernote/x-crypto",align:"absmiddle",id:b})):(b=
k(),b.cipherText=a.textContent,b.length=a.getAttribute("length"),b.cipher=a.getAttribute("cipher"),b.hint=a.getAttribute("hint"),b=d(b));bc(a,b)}):2===b&&(n||W('embed[type="evernote/x-crypto"]',a).forEach(function(a){var b=a.getAttribute("id").split(":"),c=k();c.cipherText=b[1];c.cipher=b[2];c.length=b[3];c.hint=b.slice(4).join(":");b=d(c);bc(a,b)}))};a.Ia=function(a,b,c){if(1===b)if(n){var d=c.crypto||{};B(d,"Expected a crypto info on Mac here",d);V("div.en-crypt-revealed,div.en-crypto-revealed",
a).forEach(function(b){var c=b.getAttribute("id");d[c]?(c=d[c].split(":"),c=hc(a,"en-crypt",{cipher:c[2],length:c[3],hint:c.slice(4).join(":")},[c[1]]),bc(b,c)):x.error("Found revealed crypto but not replacement. Key:",c)});W('embed[type="evernote/x-crypto"]',a).forEach(function(b){var c=b.getAttribute("id").split(":"),c=hc(a,"en-crypt",{cipher:c[2],length:c[3],hint:c.slice(4).join(":")},[c[1]]);bc(b,c)})}else W(".en-crypt",a).forEach(function(b){var c=g(b);c&&null!=c.cipherText?(c=hc(a,"en-crypt",
{cipher:c.cipher,length:c.length,hint:c.hint},[c.cipherText]),bc(b,c)):H(b)});else 2===b?n||W(".en-crypt",a).forEach(function(b){var c=g(b);c&&null!=c.cipherText?(c=hc(a,"embed",{type:"evernote/x-crypto",id:"en-crypt:"+c.cipherText+":"+c.cipher+":"+c.length+":"+c.hint}),bc(b,c)):H(b)}):3!==b&&x.error("Other transformers EN-CRYPT!!!")}}};function Df(){var a=this;a.name="debug";a.F=function(){function c(a,b,c){var g;c=eb(c||{},{keyCode:13,charCode:0},!0);if(a.fireEvent){g=document.createEventObject();eb(g,c);try{return!!a.fireEvent("on"+b,g,!1)}catch(k){}return!1}if(document.createEvent)try{g=document.createEvent("KeyEvents"),g.initKeyEvent(b,!0,!0,window,!1,!1,!1,!1,c.keyCode,c.charCode)}catch(k){g=document.createEvent("Events"),g.initEvent(b,!0,!0),g.keyCode=c.keyCode,g.charCode=c.charCode}else g=document.createEvent("UIEvents"),
g.initUIEvent&&g.initUIEvent(b,!0,!0,window,1),g.keyCode=c.keyCode,g.charCode=c.charCode;return!!a.dispatchEvent(g)}var b=a.H("context").root;a.B.A({name:"type",action:function(e){for(var d=0;d<e.length;d++){var f=e.charCodeAt(d);if(c(b,"keydown",{keyCode:f})&&c(b,"keypress",{keyCode:f})&&c(b,"textInput",{keyCode:f})){try{document.execCommand("inserttext",!1,e[d])}catch(g){x.log("Using fallback for native inserttext command"),a.H("paste").Wc(e[d]),c(b,"input",{})}c(b,"keyup",{keyCode:f})}}return!0},
enabled:z});a.B.A({name:"event",action:function(a){var c=zb(a);a=new document.defaultView.CustomEvent(c.type,c);a.data=c.data;if(null!=c.html&&(b.innerHTML=c.html,null!=c.selection)){var f=X(b),c=ge(b,c.selection);f&&c&&!td(f,c)&&md(c)}b.dispatchEvent(a);return!0},enabled:z});a.B.A({name:"selection",action:function(a){ie(b,a);return!0},enabled:z})}};function Ef(){var a=this;a.name="edit";a.F=function(){function c(a){function b(a){return Q(a,"ol,ul")}for(var c=null;Na(a.childNodes).some(b);){var d=a.lastChild;b(d)||!c&&$c(d)?(c=null,a.parentNode.insertBefore(d,a.nextSibling)):(c||(c=M("li"),a.parentNode.insertBefore(c,a.nextSibling)),c.appendChild(d))}}function b(b){if(null!=b){var c=M("div",{style:'-en-codeblock: true; box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;'}),
d=!1;if(b.collapsed)c.appendChild(pc()),d=!0;else{var e=a.H("simpletext");b=b.cloneContents();e=e.ic(b);c.appendChild(e)}p.R("insertparagraph").action();e=q.ea(p.C().startContainer);e.parentNode.insertBefore(c,e);y.ia(c);d&&p.A(c,0)}}function e(){function a(b){for(;b;){if(0<=d.indexOf(b))return!0;b=b.parentNode}return!1}var c=A.H("textinput").Ye();c||(c=p.C());var d=Na(document.querySelectorAll('div[style*="-en-codeblock:"]')),e=null;d&&0<d.length&&(c.collapsed?e=a(c.startContainer)?[c.startContainer]:
null:e=A.pa(c,a));e&&0<e.length?e.forEach(function(a){for(;a;){var b=d.indexOf(a);if(0<=b){d[b].removeAttribute("style");break}a=a.parentNode}}):b(c)}function d(b){if(!b||!a.V({Lc:!1}))return!1;var c=p.C();if(!q.K(p.C().startContainer)&&!q.Da(p.C().startContainer))return!0;q.I(c.startContainer)&&1==c.startContainer.childNodes.length&&S(c.startContainer.firstChild)&&0==c.startOffset&&c.startContainer.removeChild(c.startContainer.firstChild);c.insertNode(b);p.A(b.parentNode,1+J(b));return!0}function f(a){if(h())return!1;
window.getSelection().isCollapsed&&(window.getSelection().modify("extend",a?"backward":"forward","lineboundary"),p.Ba());return p.R(a?"delete":"forwarddelete").action()}function g(a){if(h())return!1;if(!window.getSelection().isCollapsed)return p.R("delete").action();var b=P(p.C().startContainer,"li");y.nc()&&null!=b&&q.qa(b)||(window.getSelection().modify("extend",a?"backward":"forward","word"),p.Ba());return p.R(a?"delete":"forwarddelete").action()}function k(){var b=p.C();if(b.collapsed){u.Jf();
var c=A.Hb();if(1!==O(c)||!R(c.firstChild,"div")||1!==O(c.firstChild)||!R(c.firstChild.firstChild,"br")){y.Gb(b.startContainer,b.startOffset);var d=b.startContainer,c=b.startOffset;if(!n(b)){for(;;)if(0===c&&q.K(d.previousSibling)&&q.$(d.previousSibling))d.parentNode.removeChild(d.previousSibling);else if(0<=c-1&&c-1<d.childNodes.length&&q.K(d.childNodes[c-1])&&q.$(d.childNodes[c-1]))d.removeChild(d.childNodes[c-1]),c--;else if(0===c&&q.T(d)||q.$(d))c=J(d),d=d.parentNode;else{if(0<=c-1&&c-1<d.childNodes.length&&
q.K(d.childNodes[c-1])&&R(d.childNodes[c-1],"a")){y.qc(d.childNodes[c-1]);return}if(0<=c-1&&c-1<d.childNodes.length&&!q.I(d.childNodes[c-1])&&!S(d.childNodes[c-1])&&!Ed(d.childNodes[c-1]))d=d.childNodes[c-1],c=O(d);else break}if(0<c&&3===d.nodeType)b=1,1<c&&Wa(d.textContent.substring(c-2,c))&&(b=2),p.A(d,c-b,d,c),a.V();else if(q.K(d)&&0<=c-1&&c-1<d.childNodes.length&&(Q(d.childNodes[c-1],"br,hr")||Ed(d.childNodes[c-1])))p.A(d,c-1,d,c),a.V();else if(!q.T(d)){if(Q(d,"li,dt,dd")&&0===c){if(C){if(d.parentNode.firstChild!==
d&&"true"!==d.getAttribute("data-en-list-collapse")){d.setAttribute("data-en-list-collapse","true");return}d.getAttribute("data-en-list-collapse")&&d.removeAttribute("data-en-list-collapse")}if(d.parentNode.firstChild===d){c=[];for(b=d.parentNode;b;b=b.parentNode)R(b,"li")&&c.unshift(b);for(b=0;b<c.length;b++)y.fb(c[b]);c=A.da([d]);y.ca([d]);A.aa(c);Q(d,"dd,dt")&&q.Xa(d).every(function(a){return!q.W(d,a)||!q.X(d,a)})&&(d=p.oa(d,"div"));y.ia(d);return}}for(var b=d,e=c;;)if(0==e)e=J(b),b=b.parentNode;
else if(0<=e-1&&e-1<b.childNodes.length&&q.K(b.childNodes[e-1])&&q.$(b.childNodes[e-1]))b.removeChild(b.childNodes[e-1]),e--;else break;if(0===c&&q.$c(d,!0)&&q.Xa(d).concat(d).filter(function(a){return q.K(a)&&q.W(a,d)&&q.ub(a)}).length)if(c=ld(d,0),c=q.na(c),c=q.va(c,function(a){return q.K(a)&&!q.ie(a)}),c.filter(function(a){return 3!==a.nodeType}).length)for(b=0;b<c.length;b++)v(c[b]);else v(d);else if(!Q(d,"table,img,div.en_module,div.en_crypt"))if(0<=e-1&&e-1<b.childNodes.length&&Q(b.childNodes[e-
1],"table,img,div.en_module,div.en_crypt"))p.A(b,e-1,b,e);else if(0===c&&(R(b.childNodes[e-1],"hr")||S(b.childNodes[e-1])&&(S(b.childNodes[e-1].previousSibling)||!q.T(b.childNodes[e-1].previousSibling))))p.A(b,e-1,b,e),a.V()&&p.A(d,c);else if(Q(b.childNodes[e],"li,dt,dd")&&Q(b.childNodes[e].previousSibling,"li,dt,dd"))b=b.childNodes[e-1],e=O(b),d=b.nextSibling,p.A(b,e,d,0),a.V();else{for(;0<=e-1&&e-1<b.childNodes.length;){var f=b.childNodes[e-1];q.K(f)&&q.$(f)?(b.removeChild(f),e--):Q(f,"hr, div.en-container")?
e--:(b=f,e=O(b))}p.A(b,e,d,c);a.V({direction:"backward"})}}}}}else a.V()}function n(a){var b=a.startContainer,c=a.startOffset,d=P(b,"td");return a.collapsed&&d&&!P(b,"li")&&Fd(d)&&(a=Xb(d)[0],(b===a||uc(a,b))&&0===c)?!0:!1}function h(){return!!a.H("textinput").af()}function l(a){u.Ob();for(var b=q.na(p.C()),b=q.ob(b,function(a){return 1===a.nodeType&&q.K(a)&&(a.hasAttribute("align")||""!=a.style.textAlign)}),c=0;c<b.length;c++){var d=b[c];d.removeAttribute("align");Pc(d,"text-align")}if("left"!=a)for(b=
q.na(p.C()),b=q.va(b,function(a){return q.K(a)&&R(a,"div")});b.length;)b.shift().setAttribute("style","text-align: "+a)}function m(a){var b=a.toLowerCase(),c="tl"===b,d=c?"ul":b,e=p.C();if(e){u.Ob();var f=y.wa()===b?"disable":"enable",h=function(a){return q.ke(a,b)},l=function(a){return!h(a)&&Q(a,"ol,ul")},k=[];(function(){for(var a=e.endContainer;a!==e.commonAncestorContainer;a=a.parentNode)R(a,"li")&&k.unshift(a);for(a=e.startContainer;a;a=a.parentNode)R(a,"li")&&k.unshift(a)})();k.forEach(y.fb);
a=q.na(e);"enable"===f&&q.ob(a,function(a){return q.K(a)&&l(a)}).forEach(function(a){if(q.K(a.previousSibling)&&h(a.previousSibling)||q.K(a.nextSibling)&&h(a.nextSibling)){a=[].slice.call(a.childNodes);var b=A.da(a);y.ca(a);A.Ga(a,function(a){return h(a)});A.aa(b)}else p.oa(a,d),Wb(a,"en-todo-list",c),T(a,"-evernote-list-type",c?"todo":null)});a=q.va(a,function(a){return q.K(a)&&(Q(a,"ol,ul")||Q(a.parentNode,"ol,ul")||q.X(a,"li"))});"enable"==f&&(a=a.filter(function(a){return!Q(a,"ol,ul")||Q(a.parentNode,
"ol,ul")}));if("disable"==f)for(;a.length;){var g=[];g.push(a.shift());if(h(g[0]))v(g[0]);else{for(;a.length&&a[0]==g[g.length-1].nextSibling&&!h(a[0]);)g.push(a.shift());f=A.da(g);y.ca(g);for(var m=0;m<g.length;m++)y.ia(g[m]);A.aa(f);for(m=0;m<g.length;m++)Q(g[m].parentNode,"ol,ul")&&a.push(g.shift())}}else for(;a.length;){for(g=[];!g.length||a.length&&a[0]==g[g.length-1].nextSibling;)if(Q(a[0],"p,div"))a[0].style.margin="",a[0].style.textAlign="",a[0].removeAttribute("align"),Nc(a[0]),g.push(p.oa(a[0],
"li")),a.shift();else if(Q(a[0],"li,ol,ul"))g.push(a.shift());else{for(f=[];!f.length||a.length&&a[0]==f[f.length-1].nextSibling&&q.T(a[0])&&q.T(f[f.length-1])&&!S(f[f.length-1]);)f.push(a.shift());for(;f.length&&$c(f[f.length-1]);)f.pop();f.length&&g.push(A.Ga(f,void 0,function(){return M("li")}))}if(!h(g[0].parentNode)&&!g.every(function(a){return Q(a,"ol,ul")}))if(l(g[0].parentNode)){var g=Na(g[0].parentNode.childNodes),n=g[0].parentNode.getAttribute("type"),f=A.da(g);y.ca(g);A.Ga(g,function(a){return h(a)},
function(){return r(b,n)});A.aa(f)}else f=A.Ga(g,function(a){return h(a)},function(){if(!(q.K(g[0].parentNode)&&q.oc(g[0].parentNode)&&q.K(g[0].parentNode.previousSibling)&&h(g[0].parentNode.previousSibling))){var a=g[0].parentNode.getAttribute("type");return r(b,a)}var c=g[0].parentNode.previousSibling;y.fb(c.lastChild);q.K(c.lastChild)&&h(c.lastChild)||(a=c.getAttribute("type"),c.appendChild(r(b,a)));return c.lastChild}),y.ia(f)}}}function r(a,b){B(0<=["ul","ol","tl"].indexOf(a.toLowerCase()));
if("tl"===a)return M("ul",{"class":"en-todo-list",style:"-evernote-list-type:todo"});var c=M(a);b&&c.setAttribute("type",b);return c}function v(a){if(q.K(a))if(R(a,"div")){var b=q.lc(a)-40;0<b?T(a,"margin-left",b+"px"):y.qc(a)}else if(q.oc(a))y.qc(a);else if(q.ub(a))a.removeAttribute("dir"),a.style.margin="",a.style.padding="",a.style.border="",""!=a.getAttribute("style")&&"border-width: initial; border-color: initial; "!=a.getAttribute("style")||a.removeAttribute("style"),p.oa(a,"div");else{for(var b=
a.parentNode,c=[];q.K(b)&&1==b.nodeType&&!q.oc(b)&&!Q(b,"ol,ul");)c.push(b),b=b.parentNode;if(!q.K(b)||!q.oc(b))for(b=a.parentNode,c=[];q.K(b)&&1==b.nodeType&&!q.ub(b)&&!Q(b,"ol,ul");)c.push(b),b=b.parentNode;if(Q(a,"ol,ul")&&(!q.K(b)||!q.ub(b))){a.removeAttribute("reversed");a.removeAttribute("start");a.removeAttribute("type");b=[].slice.call(a.childNodes);if(Q(a.parentNode,"ol,ul")||Na(a.parentNode.childNodes).every(function(){return Q(a,"ol,ul")||$c(a)}))c=A.da([].slice.call(a.childNodes)),y.qc(a),
A.aa(c);for(c=0;c<b.length;c++)y.ia(b[c])}else if(q.K(b)&&q.ub(b)){c.push(b);for(var d=b;c.length;){var b=c.pop(),e=a.parentNode==b?a:c[c.length-1];q.T(e)&&!S(e)&&S(e.nextSibling)&&e.parentNode.removeChild(e.nextSibling);var f=[].slice.call(b.childNodes,1+J(e));t([].slice.call(b.childNodes,0,J(e)));t(f)}v(d)}}}function t(a){if(a.length){var b=a[0];if(Q(b.parentNode,"ol,ul")){var c=q.Ib(b.parentNode),d=b.parentNode.getAttribute("type");A.Ga(a,function(a){return q.ke(a,c)},function(){return r(c,d)})}else{for(var b=
!0,e=0;e<a.length;e++)F(a[e],"en-code")||P(a[e],".en-code")||(b=!1);for(;a.length;)e=a.shift(),R(e,"div")?b&&F(e,"en-code")?e.insertBefore(document.createTextNode("\u00a0\u00a0\u00a0\u00a0\u00a0"),e.firstChild):y.Hd(e):(e=A.Ga([e],function(a){return q.oc(a)?!0:!1},function(){return M("div",{style:"margin-left:40px;"})}),y.ia(e))}}}var p=a.H("context"),q=a.H("query"),A=a.H("format"),y=a.H("block"),u=a.H("normalize"),C=!0===p.G.smartList,L=p.la;a.V=function(b){if(!p.C())return!0;u.Qd();var c=0<wd(p.C(),
"td").length;if(Bb.J()){var d={stop:!1,element:p.root,ma:p.C()};xb("beforeDelete",d);if(!0===d.stop)return!1}y.df(b);c&&a.D();u.vb();vc(p.C().startContainer)||p.Ba();return!0};a.D=function(){for(var a=V("td",p.root),b=0;b<a.length;b++)if(0===O(a[b])){var c=M("div",{},[M("br")]);a[b].appendChild(c)}};L.deleteword={O:!0,kb:!0,ga:!0,action:function(){return g(!0)}};L.forwarddeleteword={O:!0,kb:!0,ga:!0,action:function(){return g(!1)}};L.deleteline={O:!0,kb:!0,ga:!0,action:function(){return f(!0)}};L.forwarddeleteline=
{O:!0,kb:!0,ga:!0,action:function(){return f(!1)}};L["delete"]={O:!1,kb:!0,ga:!1,action:function(b){if(h())return!1;A.sf(function(){if("selection"===b)a.V();else if("word"===b)g(!0);else if("line"===b)f(!0);else if("number"==typeof b)for(var c=0;c<b;c++)k();else k()});return!0}};L.forwarddelete={O:!1,kb:!0,ga:!1,action:function(b){if(h())return!1;"selection"===b?a.V():"word"===b?g(!1):"line"===b?f(!1):p.C().collapsed?(b=p.C(),n(b)||(window.getSelection().modify("extend","forward","character"),window.getSelection().collapseToEnd(),
p.Ba(),td(b,p.C())||p.R("delete").action())):a.V();p.ta();return!0}};L.indent={O:!0,ga:!0,action:function(){u.Ob();for(var a=[],b=p.C().endContainer;b!=p.C().commonAncestorContainer;b=b.parentNode)R(b,"li")&&a.unshift(b);for(b=p.C().startContainer;b!=p.C().commonAncestorContainer;b=b.parentNode)R(b,"li")&&a.unshift(b);for(b=p.C().commonAncestorContainer;b;b=b.parentNode)R(b,"li")&&a.unshift(b);for(b=0;b<a.length;b++)y.fb(a[b]);a=q.na(p.C());a=q.va(a,function(a){return q.K(a)&&Q(a,"div,li")});b=a.filter(q.Z)[0];
if(R(b,"li")&&Q(b.parentNode,"ol,ul")){for(b=b.previousSibling;q.$(b);)b=b.previousSibling;R(b,"li")&&y.fb(b)}for(;a.length;){b=[];for(b.push(a.shift());a.length&&a[0]==b[b.length-1].nextSibling;)b.push(a.shift());t(b)}return!0},enabled:function(){return p.hasFocus()&&!y.Fa()}};L.outdent={O:!0,ga:!0,action:function(){u.Ob();var a=A.Hb(),b=[];(function(){for(var a=p.C().endContainer;a!=p.C().commonAncestorContainer;a=a.parentNode)R(a,"li")&&b.unshift(a);for(a=p.C().startContainer;a;a=a.parentNode)R(a,
"li")&&b.unshift(a)})();b.forEach(y.fb);for(var c=q.na(p.C()),c=q.va(c,function(a){return q.K(a)&&(!q.kc(a).some(q.K)||Q(a,"ol,ul")||R(a,"li")&&Q(a.parentNode,"ol,ul"))}),d=!0,e=0;e<c.length;e++)F(c[e],"en-code")||P(c[e],".en-code")||(d=!1);for(e=[];c.length;){for(;c.length&&R(Fc(c[0],a),"div");){var f=Fc(c.shift(),a);if(-1===e.indexOf(f))if(e.push(f),d&&F(f,"en-code"))f=Zb(f),sc(f)&&(f.textContent=f.textContent.replace(/\s{0,5}/,""));else{var h=q.lc(f)-40;0<h?T(f,"margin-left",h+"px"):(Pc(f,"margin-left"),
Pc(f,"margin"))}}for(;c.length&&(Q(c[0],"ol,ul")||!Q(c[0].parentNode,"ol,ul"));)v(c.shift());if(!c.length)break;f=[];for(f.push(c.shift());c.length&&c[0]==f[f.length-1].nextSibling&&!Q(c[0],"ol,ul");)f.push(c.shift());h=A.da(f);y.ca(f);f.forEach(y.ia);A.aa(h)}return!0},enabled:function(){return p.hasFocus()&&!y.Fa()}};L.inserthorizontalrule={O:!0,ga:!0,action:function(){if(y.Zc())return!1;p.R("insertparagraph").action();var a=M("div",{},[M("hr")]),b=q.ea(p.C().startContainer);p.M(a,b.parentNode,J(b));
return!0},enabled:function(){return p.hasFocus()&&!y.Zc()&&!y.Fa()}};a.je=d;L.insertimage={O:!0,ga:!0,action:function(a){if(""===a)return!1;a=M("img",{src:lf(a)});d(a);a.removeAttribute("width");a.removeAttribute("height");return!0}};L.insertlinebreak={ga:!0,action:function(){if(h())return!1;if(!y.nc())return p.R("insertparagraph").action();if(!a.V({Lc:!1}))return!1;if(!q.K(p.C().startContainer)&&!q.Da(p.C().startContainer)||1==p.C().startContainer.nodeType&&!q.X("br",p.C().startContainer)||1!=p.C().startContainer.nodeType&&
!q.X("br",p.C().startContainer.parentNode))return!0;if(3==p.C().startContainer.nodeType&&0==p.C().startOffset){var b=p.C().startContainer.parentNode,c=J(p.C().startContainer);p.A(b,c)}3==p.C().startContainer.nodeType&&p.C().startOffset==O(p.C().startContainer)&&(b=p.C().startContainer.parentNode,c=1+J(p.C().startContainer),p.A(b,c));b=M("br");p.C().insertNode(b);p.A(b.parentNode,1+J(b));q.Rb(b)&&(p.C().insertNode(M("br")),p.A(b.parentNode,1+J(b)));return!0}};L.insertparagraph={O:"before",ga:!0,action:function(){if(h())return!1;
var b=a.Ta("todo");if(!a.V())return!1;var c=p.C().startContainer,d=p.C().startOffset;if(!q.K(c)&&!q.Da(c))return!0;3===c.nodeType&&0!==d&&d!==O(c)&&c.splitText(d);3===c.nodeType&&d===O(c)&&(d=1+J(c),c=c.parentNode);3===c.nodeType&&(d=J(c),c=c.parentNode);p.A(c,d);for(var e=c;!q.Nd(e)&&q.K(e.parentNode)&&q.W(c,e.parentNode);)e=e.parentNode;if(q.K(e)&&q.Nd(e)&&q.W(c,e.parentNode)&&Q(e,"p,div")){for(var f=e;!Q(f,"dd,dt,li")&&q.K(f.parentNode);)f=f.parentNode;Q(f,"dd,dt,li")&&(e=f)}if(!q.K(e)||!q.W(e,
c)||!q.Nd(e)){f=q.na(p.C());f=q.va(f,function(a){return q.X(a,"p")}).slice(0,1);if(!f.length){if(!q.X("div",p.C().startContainer))return!0;e=pc();p.C().insertNode(e);p.A(e,0);return!0}for(;f[f.length-1].nextSibling&&q.X(f[f.length-1].nextSibling,"p");)f.push(f[f.length-1].nextSibling);e=A.Ga(f,Ha,function(){return M("div")})}var f=!1,l=b?b.fe(e):null;if(b&&null!=l){if(b.lf(e))return ac(e),e.appendChild(M("br")),p.A(e,0),!0;f=!0}if(Q(e,"address,listing,pre"))return b=M("br"),p.C().insertNode(b),p.A(c,
d+1),tc(q.nextNode(b),e)||(p.C().insertNode(M("br")),p.A(c,d+1)),!0;Q(e,"li,dt,dd")&&y.fb(e);if(Q(e,"li,dt,dd")&&q.qa(e))return y.ca([e]),q.mc(e)||(p.pe(e),e.appendChild(M("br"))),Q(e,"dd,dt")&&q.Xa(e).every(function(a){return!q.W(e,a)||!q.X(e,a)})&&(e=p.oa(e,"div")),y.ia(e),!0;for(d=ld(p.C().startContainer,p.C().startOffset,e,O(e));0===d.startOffset&&!q.Tb(d.startContainer);)d.setStart(d.startContainer.parentNode,J(d.startContainer));for(;d.startOffset===O(d.startContainer)&&!q.Tb(d.startContainer);)d.setStart(d.startContainer.parentNode,
1+J(d.startContainer));var c=q.va(d),l=!c.length||1===c.length&&S(c[0]),c=rd(p.C()),c=P(c,function(a){return 0>["a","tt"].indexOf(K(a))},A.Hb())||c,c=A.da([c]),k;Q(e,"h1,h2,h3,h4,h5,h6,tt")&&l?k="div":R(e,"dt")&&l?k="dd":R(e,"dd")&&l?k="dt":k=e.tagName.toLowerCase();var g=M(k);for(k=0;k<e.attributes.length;k++)g.setAttributeNS(e.attributes[k].namespaceURI,e.attributes[k].name,e.attributes[k].value);g.removeAttribute("id");g.removeAttribute("class");C&&Ec(e,"data-en-list-collapse")&&g.removeAttribute("data-en-list-collapse");
F(e,"en-code")&&G(g,"en-code");e.parentNode.insertBefore(g,e.nextSibling);var l=q.ob(d),d=d.extractContents(),m=q.kc(d);for(k=0;k<m.length;k++)1===m[k].nodeType&&-1===l.indexOf(m[k])&&m[k].removeAttribute("id");for(k=d.childNodes.length-1;0<=k;k--)l=d.childNodes[k],sc(l)?$c(l)&&H(l):!S(l)&&q.qa(l)&&H(l);Q(e,"li")&&1<d.childNodes.length&&!q.qa(d)&&S(d.childNodes[0])&&H(d.childNodes[0]);for(g.appendChild(d);q.Tb(e.lastChild);)e=e.lastChild;for(;q.Tb(g.lastChild);)g=g.lastChild;q.mc(e)||(e.appendChild(M("br")),
A.aa(c.map(function(a){a[0]=e;return a})));if(q.mc(g))g.children&&1===g.children.length&&S(g.children[0])&&A.aa(c.map(function(a){a[0]=g;return a}));else{if(f)return ac(g),b=b.Id(g),p.A(b.parentNode,O(b)+1),A.aa(c.map(function(a){a[0]=g;return a})),!0;g.appendChild(M("br"));A.aa(c.map(function(a){a[0]=g;return a}))}k=0;f&&!b.fe(g)&&(B(3!==g.nodeType,"newContainer for checkbox insertion cannot be text"),b.Id(g),k++);b=q.Cc(g,k);g=b[0];k=b[1];p.A(g,k);return!0}};L.insertorderedlist={O:!0,ga:!0,action:function(){m("ol");
return!0},Ua:function(){return"mixed"===y.wa()},value:function(){return y.wa()},state:function(){return"ol"===y.wa()},enabled:function(){return p.hasFocus()&&!y.Fa()}};L.insertunorderedlist={O:!0,ga:!0,action:function(){m("ul");return!0},Ua:function(){return"mixed"===y.wa()},value:function(){return y.wa()},state:function(){return"ul"===y.wa()},enabled:function(){return p.hasFocus()&&!y.Fa()}};L.inserttodolist={O:!0,ga:!0,action:function(){m("tl");return!0},Ua:function(){return"mixed"===y.wa()},value:function(){return y.wa()},
state:function(){return"tl"===y.wa()},enabled:function(){return p.hasFocus()&&!y.Fa()}};[{name:"justifyfull",mode:"justify"},{name:"justifyleft",mode:"left"},{name:"justifycenter",mode:"center"},{name:"justifyright",mode:"right"}].forEach(function(a){L[a.name]={O:!0,ga:!0,action:function(){l(a.mode);return!0},Ua:function(){if(!p.C())return!1;var b=q.ob(q.na(p.C()),function(a){return q.K(a)&&q.Z(a)&&!a.hasChildNodes()});return b.some(function(b){return y.Sc(b)==a.mode})&&b.some(function(b){return y.Sc(b)!=
a.mode})},state:function(){if(!p.C())return!1;var b=q.ob(q.na(p.C()),function(a){return q.K(a)&&q.Z(a)&&!a.hasChildNodes()});return b.length&&b.every(function(b){return y.Sc(b)==a.mode})},value:function(){if(!p.C())return"";var a=q.ob(q.na(p.C()),function(a){return q.K(a)&&q.Z(a)&&!a.hasChildNodes()});return a.length?y.Sc(a[0]):"left"},enabled:function(){return p.hasFocus()&&!y.nc()&&!y.Fa()}}});L.selectall={action:function(){window.getSelection().selectAllChildren(p.root);return!0},enabled:z,Ab:!0};
L.tab={O:!0,ga:!0,action:function(b){if(h())return!1;var c="true"===b||1===+b;if(y.nc()||!p.C().collapsed)return p.R(c?"outdent":"indent").action();if(y.le()){var d=a.Ta("table");d&&(b=d.L(),d=d.Tc(),c?(b=Yc(d,"td",b))&&p.A(b,0):(c=Xc(d,"td",b),c||(p.R("inserttablerow").action("after"),c=Xc(d,"td",b)),p.A(c,0)))}else c||(p.R("inserthtml").action("\u00a0\u00a0\u00a0\u00a0\u00a0"),(b=X(p.root))&&b.endContainer&&b.endContainer.parentNode&&p.Cf());return!0},enabled:function(){return p.hasFocus()&&!y.Fa()}};
a.vf=function(a){for(;a;){if(I(a)&&"true"===Oc(a,"-en-codeblock"))return!0;a=a.parentNode}return!1};L.codeblock={O:!0,za:!0,action:function(){e();return!0}};a.Ca=function(a){function b(a,c,d){for(var e=a.getElementsByTagName("o:p"),f=e.length;f--;)H(e[f]);f=a.parentNode;a.removeAttribute("style");a=nc(a,"div");e=null;a.previousElementSibling&&(1===c&&Q(a.previousElementSibling,d)||1<c&&Q(a.previousElementSibling,"ul,ol"))?e=a.previousElementSibling:(e=hc(a,d),f.insertBefore(e,a));f=hc(e,"li");for(f.appendChild(a);1<
c;){a=jd(e);if(Q(a,"ol,ul"))e=a;else if(Q(a,"li")&&Q(jd(a),"ol,ul"))e=jd(a);else{var h=hc(e,d);a?a.appendChild(h):e.appendChild(h);e=h}c--}e.appendChild(f)}V("p",a).forEach(function(a){1===O(a)&&"o:p"===K(a.firstChild)&&(H(a.firstChild),a.appendChild(hc(a,"br")),nc(a,"div"))});V('div[style*="mso-line-break-override"]',a).forEach(function(a){var c=V('span[style*="mso-special-format"]',a);if(0<c.length){var d="ul";"bullet"!==Oc(c[0],"mso-special-format").toLowerCase()&&(d="ol");1===O(c[0].parentNode)?
H(c[0].parentNode):H(c[0]);b(a,1,d)}});V('div[style*="mso-list"],p[style*="mso-list"]',a).forEach(function(a){var c=Oc(a,"mso-list").toLowerCase();if(0<=c.indexOf("level")&&(c=parseInt(c.substr(c.indexOf("level")+5,1),10),!isNaN(c))){var d="ul",e=V('span[style*="mso-list:"]',a);if(0<e.length)for(var f=0;f<e.length;f++){var h=e[0];"ignore"===Oc(h,"mso-list").toLowerCase()&&(oc(h).match(/[0-9]+.*/g)&&(d="ol"),Q(h.parentNode,"span")&&1===O(h.parentNode)?H(h.parentNode):H(h))}b(a,c,d)}});W('div[style~="margin-left:"]>ul,div[style~="margin-left:"]>ol',
a).forEach(function(b){var c=b.parentElement;if(Q(c,"div")){for(var d=Oc(c,"margin-left"),d=+d.replace(/(\d+)em/gi,"$1"),e=null;0<d;){var f=hc(a,b.tagName);e?e.appendChild(f):c.parentNode.insertBefore(f,c.nextSibling);e=f;d-=2}e&&(dc(c,e),H(c))}});W('li[style*="list-style:"]',a).forEach(function(a){"none"===Oc(a,"list-style")&&cc(a)});W("li",a).forEach(c);W("ol,ul",a).forEach(function(b){var c=null;Na(b.childNodes).forEach(function(b){-1!==["li","ol","ul"].indexOf(K(b))?c=null:$c(b)?H(b):Ac(b)?nc(b,
"li"):(c||(c=hc(a,"li"),b.parentNode.insertBefore(c,b.nextSibling)),c.appendChild(b))})});W('ul[style*="-evernote-list-type"]',a).forEach(function(a){G(a,"en-todo-list");Xb(a).forEach(function(a){if(R(a,"li")){var b=!1,c=V(".en-todo",a).shift();c&&(b=F(c,"en-todo-checked"),H(c));Vb(a,"en-todo-over");Wb(a,"en-todo-checked",b)}})})};a.Ia=function(a){W("ul.en-todo-list",a).forEach(function(b){Xb(b).forEach(function(b){if(R(b,"li")){var c=hc(a,"img",{"class":"en-todo"});Wb(c,"en-todo-checked",F(b,"en-todo-checked"));
b.insertBefore(c,b.firstChild)}})});W("ol>ul,ul>ol,ul>ul,ol>ol",a).forEach(function(b){var c=b.previousSibling;R(c,"li")?c.appendChild(b):(c=hc(a,"li",{style:"display:inline;list-style:none;"}),b.parentNode.insertBefore(c,b),c.appendChild(b))})}}};function Ff(){this.name="typebehind-email-"+ob();this.Sa=function(){return"email"};this.D=function(){return[/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/gi]};this.J=function(a,c,b){c=M("a");a.insertNode(c);B(null!=c,"new node is null");w(b)&&(c.setAttribute("href","mailto:"+b),c.textContent=b);return{node:c,$a:!1}};this.F=function(a){B(!0===a,"typebehind.email only accepts true as opt")}};function Gf(){function a(a){var b=null;vb.bb.some(function(c){if(-1!==a.indexOf(c.icon)&&a.length===c.icon.length)return b=c,!0});return null==b?null:c(b)}function c(a){return M("object",{"class":"en-emoticon "+(b.color||b["default"]),contenteditable:"false"},[a.icon])}this.name="typebehind-emoticon-"+ob();var b={"default":"en-emoticon-yellow",yellow:"en-emoticon-yellow",orange:"en-emoticon-orange",pink:"en-emoticon-pink",purple:"en-emoticon-purple","dark-blue":"en-emoticon-dark-blue","light-blue":"en-emoticon-light-blue",
green:"en-emoticon-green",slate:"en-emoticon-slate",brown:"en-emoticon-brown",black:"en-emoticon-black"};this.Sa=function(){return"emoticon"};this.D=function(){return vb.ka.map(function(a){return new RegExp(a,"g")})};this.J=function(a,b){var f;f=vb.get(b.source);f=null==f?null:c(f);B(null!=f,"typebehind: emoji node failed to be created");a.insertNode(f);return{node:f,$a:!1}};this.Ca=function(b){Vc(b).forEach(function(b){var c=a(b.textContent);null!=c&&bc(b,c)})};this.Ia=function(a){W("object.en-emoticon",
a).forEach(function(a){bc(a,M("span",{style:"-evernote-sentoj-emoticon:true"},a.textContent))})};this.F=function(a){B(!0===a,"typebehind.emoticon only accepts true as opt")}};function Hf(){this.name="typebehind-url-"+ob();this.Sa=function(){return"url"};this.D=function(){return[/(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?((?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))))(?::\d{2,5})?(?:\/\S*)?/gi]};
this.J=function(a,c,b){c=M("a");a.insertNode(c);B(null!=c,"new node is null");w(b)&&(c.setAttribute("href",b),c.textContent=b);return{node:c,$a:!1}};this.F=function(a){B(!0===a,"typebehind.url only accepts true as opt")}};function If(a){var c=this;c.name="typebehind-list-"+ob();c.Sa=function(){return"list"};c.D=function(){return[/^\s*\*/gi,/^\s*[0-9]+\./gi]};c.Nb=function(){return!0};c.N=function(a){return null!=P(a.startContainer,"li")?!1:!0};c.Y=function(a){var b,c,g=0;b=0;for(c=a.length-1;b<a.length;b+=1,--c)g+=Math.pow(26,c)*("ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(a[b])+1);return g};var b=[["M",1E3],["CM",900],["D",500],["CD",400],["C",100],["XC",90],["L",50],["XL",40],["X",10],["IX",9],["V",5],["IV",4],["I",1]];
c.ha=function(a){for(var c=0,f=0;f<b.length;++f)for(var g=b[f],k=g[1],g=RegExp("^"+g[0]);a.match(g);)c+=k,a=a.replace(g,"");return c};c.J=function(b,d,f){b=c.D();d==b[0].toString()?a.R("insertunorderedlist").action():d==b[1].toString()&&(a.R("insertorderedlist").action(),d=X(),d=P(d.startContainer,"ol"),f=f.substr(0,f.length-1),1<f?d.setAttribute("start",f):d.removeAttribute("start"));return{node:null,$a:!0}};c.F=function(a){B(!0===a,"typebehind.list only accepts true as opt")}};function Jf(a,c){this.name="typebehind-inline-"+ob();var b=/(?:\s+|\xa0+|^)\`(\S(?:.*\S)?)(?:[\xa0\\t ]*$)/gi,e=[{rx:/\*\*(\S(?:.*\S)?)\*/gi,cmd:"bold",len:2,value:"bold"},{rx:/\*(?!\*)(\S(?:.*\S)?)\*/gi,cmd:"italic",len:1,value:"italic"},{rx:/(?:\s+|\xa0+|^)__(\S(?:.*\S)?)__(?:[\xa0\\t ]*$)/gi,cmd:"underline",len:2,value:"underline"},{rx:/~~(\S(?:.*\S)?)~~/gi,cmd:"strikethrough",len:2,value:"line-through"},{rx:/(?:\s+|\xa0+|^)\!{2}(\S(?:.*\S)?)\!{2}(?:[\xa0\\t ]*$)/gi,cmd:"highlight",len:2,value:"rgb(255, 250, 165)"},
{rx:/(?:\s+|\xa0+|^)\`(?!\`)(\S(?:.*\S)?)\`(?:[\xa0\\t ]*$)/gi,cmd:"tt",len:1,value:"tt"}];this.Sa=function(){return"inline"};this.D=function(){return[/(?!(\*{1,2}|_{1,2}|~{2}|\!{2}|\`)\s+\1)(\*{1,2}|_{1,2}|~{2}|\!{2}|\`)(\S(?:.*\S)?)\2/gi]};this.U=function(){return!0};this.J=function(d,f,g){var k=null,n=-1;f=null;for(var h=1,l=null,m=0;m<e.length;m++){f=e[m].cmd;var h=e[m].len,l=e[m].value,r=g.match(e[m].rx),k=null,n=-1;if(r&&0<r.length){k=r[0].trim();n=g.lastIndexOf(k);r=k[0];1<e[m].len&&(r+=r);
if(k.substr(k.length-r.length)!==r)return{node:null,$a:!1};if("tt"!==f&&g.match(b))m=e.length-2;else{m=Sa(r);if(k.match(new RegExp("^"+m+"\\s*"+m+"$")))return{node:null,$a:!1};break}}}if(null!=k){g=d.startContainer;for(m=0;Cc(g);){if(sc(g)){if(m+g.textContent.length>n)break;m+=g.textContent.length}g=rc(g)}g=Zb(g);k=d.endContainer;n-=m;d=d.endOffset-h;g.textContent=g.textContent.slice(0,n)+g.textContent.slice(n+h);g===k&&(d-=h);k.textContent=k.textContent.slice(0,d)+k.textContent.slice(d+h);h=c.Vd(!0);
d=ld(g,n,k,d);c.pd(f,l,d);md(ld(d.endContainer,d.endOffset,d.endContainer,d.endOffset));a.R(f).action();c.sb(h)}return{node:null,$a:!1}};this.F=function(a){B(!0===a,"typebehind.inline only accepts true as opt")}};function Kf(){var a=this;a.name="typebehind-todo-"+ob();a.Sa=function(){return"todo"};a.D=function(){return[/\[[\sxX]?\]/gi]};a.J=function(c,b,e){b=a.Bb.I.H("todo").ac();0<e.toLowerCase().indexOf("x")&&G(b,"en-todo-checked");c.insertNode(b);B(null!=b,"new node is null");w(e)&&(b.textContent=e.replace(/^\[[\sxX]?\]/,""));return{node:b,$a:!0}};a.F=function(a){B(!0===a,"typebehind.list only accepts true as opt")}};function Lf(){this.name="typebehind-horizontalrule-"+ob();this.Sa=function(){return"horizontalrule"};this.D=function(){return[/^\s*[\*\-\=]{3}[\s\*\-\=]*/gi]};this.N=function(a,c){return 13==c};this.Nb=function(){return!0};this.J=function(a){var c=M("hr");a.insertNode(c);return{node:c,$a:!1}};this.F=function(a){B(!0===a,"typebehind.horizontalrule only accepts true as opt")}};function Mf(a,c){this.name="typebehind-code-"+ob();this.Sa=function(){return"code"};this.D=function(){return[/\`{3}/gi]};this.Nb=function(){return!1};this.N=function(a){var c=Na(document.querySelectorAll('div[style*="-en-codeblock:"]'));if(c&&0<c.length)for(a=a.startContainer;a;){if(0<=c.indexOf(a))return!1;a=a.parentNode}return!0};this.J=function(){a.R("insertparagraph").action();var b=M("div",{style:'-en-codeblock: true; box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;'});
b.appendChild(pc());var e=c.ea(a.C().startContainer);e.parentNode.insertBefore(b,e);md(ld(b.firstChild,0));return{node:null,$a:!0}};this.F=function(a){B(!0===a,"typebehind.code only accepts true as opt")}};function Nf(a){var c=this;c.name="typebehind-table-"+ob();c.Sa=function(){return"table"};c.D=function(){return[/^\s*(\[\s*\]){2,}([xX][0-9]+)?/gi]};c.Nb=function(){return!0};c.N=function(a){return null!=P(a.startContainer,"table,li")?!1:!0};c.J=function(b,e,d){c.D();b=d.split("][").length;d=d.match(/[0-9]+$/);e=1;d&&(e=parseInt(d[0],10));a.R("inserttable").action(b+","+e);a.ta();return{node:null,$a:!1}};c.F=function(a){B(!0===a,"typebehind.table only accepts true as opt")}};function Of(){var a=this;a.name="typebehind";a.F=function(c){function b(){var a=X(m);if(a&&a.collapsed){var b=a.endContainer,c=null;if(!(v.get("code")&&(F(a.startContainer,"en-code")||P(a.startContainer,".en-code"))||v.get("inline")&&sc(a.endContainer)&&"tt"===K(a.endContainer.parentNode))){var f=v.ka.slice();0<=f.indexOf("inline")&&f.splice(f.indexOf("inline"),1);if(32===p.currentlyProcessingCode)c=b.textContent.substring(0,a.endOffset);else if(9===p.currentlyProcessingCode)b=Zb(b),sc(b)&&(c=b.textContent,
a=ld(b,c.length,b,c.length));else if(13===p.currentlyProcessingCode)b=qc(b),b===a.endContainer.parentNode&&(b=qc(b)),sc(b)&&(c=b.textContent,a=ld(b,c.length,b,c.length));else{b=a.endContainer;for(f=qc(b);Cc(f)&&"tt"!==K(f)&&null==P(f,"tt",m);)b=f,f=qc(b);a=ld(b,0,a.endContainer,a.endOffset);c=a.toString();f=["inline"]}var h=!1;if(0<t.length)for(var k=0;k<t.length;k++){var g=t[k];if(0<=f.indexOf(g)){h=!0;break}}b=h&&Yb(b,m);if(null!=c)for(k=0;k<f.length;k++){var g=f[k],n=v.get(g);if(!(!n.fa||n.N&&
!n.N(a,p.currentlyProcessingCode)||n.Nb&&n.Nb()&&!b)){var r=n.U&&!0,g=n.D(),q=e(c,g,r);if(q.possible){l.Ma(function(){var b;b=n;var e=a,f=q.rx,h=c,l=r,k=e.endContainer;B(sc(k),"typebehind: node must be text");B(null!=f,"must be given a regex to work");l?b=b.J(e,f,h):(h=d(h,f,l),e=h.matchString,h=h.index,k.replaceData(h,e.length,""),k=ld(k,h,k,h),b=b.J(k,f,e));null!=b.node&&(f=b.node,32===p.currentlyProcessingCode?md(ld(f.nextSibling,1)):9===p.currentlyProcessingCode&&md(ld(f.nextSibling,5)));b.$a&&
(f=X(),f.startContainer&&sc(f.startContainer)&&(f.startContainer.textContent=f.startContainer.textContent.replace(/(\xa0)+$/gi,""),null===b.node||Q(b.node,".en-todo")))&&(b=f.startContainer.parentNode,b.appendChild(M("br")),f=O(b),md(ld(b,f,b,f)))});break}}}}}}function e(a,b,c){if(null==a||!w(a)||null==b)return{possible:!1,rx:null};for(var e=0;e<b.length;e++)if(d(a,b[e],c))return{possible:!0,rx:b[e]};return{possible:!1,rx:null}}function d(a,b,c){if(null==a||null==b)return null;b=b.source;c||(b="(?:\\s+|\u00a0+|^)("+
b+")(?:[\u00a0\\t ]*$)");(c=a.match(new RegExp(b,"gi")))&&1<c.length&&x.warn("Should not be multiple matches here!");if(null==c||0>=c.length)return null;c=c[0].trim();return{matchString:c,index:a.lastIndexOf(c)}}function f(a){q.forEach(function(b){if(a.keyCode===b)return p.shouldProcess=!0,p.currentlyProcessingCode=b,!0})}var g=a.H("context"),k=a.H("query"),n=a.H("format"),h=D(c,{emoticon:!1,url:!1,email:!1,list:!1,inline:!1,todo:!1,horizontalrule:!1,code:!1,table:!1}),l=a.H("undo"),m=g.root,r=a.ja(),
v=new rb;v.set("emoticon",new Gf);v.set("url",new Hf);v.set("email",new Ff);v.set("list",new If(g));v.set("inline",new Jf(g,n));v.set("todo",new Kf);v.set("horizontalrule",new Lf);v.set("code",new Mf(g,k));v.set("table",new Nf(g));var t=[];v.ka.forEach(function(a){var b=v.get(a),c=b.Sa(),d=h[c];null!=d&&!1!==d&&(r.F(b,h[c]),b.Nb&&b.Nb()&&t.push(a))});var p={shouldProcess:!1,currentlyProcessingCode:null},q=[9,13,32];for(c=0;c<wa.length;c++)q.push(wa[c].charCodeAt(0));a.B.listener(m,"keypress",f);a.B.I("editingKeyEventOccurred",
f);a.B.listener(m,"keyup",function(){p.shouldProcess&&(p.shouldProcess=!1,b())});a.Ca=function(a,b){v.ka.forEach(function(c){c=v.get(c);var d=h[c.Sa()];null!=d&&!1!==d&&null!=c.Ca&&c.Ca(a,b)})};a.Ia=function(a,b){v.ka.forEach(function(c){c=v.get(c);var d=h[c.Sa()];null!=d&&!1!==d&&null!=c.Ia&&c.Ia(a,b)})}}};function Pf(){var a=this;a.name="enml";var c=/^<!DOCTYPE[^>]*>\n?/g,b=/ +xmlns="(http:\/\/www.w3.org\/1999\/xhtml)?"/g,e=/<en-todo([^>]*?)><\/en-todo>/g,d=/<en-media([^>]*?)><\/en-media>/g,f=/<en-(todo|media)([^>]*?)\/>/g;a.F=function(g){function k(b,c){var d=c?b.documentElement:b.body&&b.body.firstElementChild;null==d&&(d=b.querySelector("en-note"));if(null==d)return x.error("Was not able to extract corrrect node",b),!1;if("en-note"!==K(d))return x.error("Invalid ENML. Expected en-note root node.",
d),!1;ka.forEach(function(a){d.hasAttribute(a)?n.setAttribute(a,d.getAttribute(a)):n.removeAttribute(a)});var e=n.ownerDocument.importNode(d,!0);a.H("transform").nb(e,1);lc(e,n);Y(n,"setDirty",!1);return!0}var n=D(g,{root:null}).root||a.H("context").root,h=!1;a.Jc=function(a){a=a.replace(f,"<en-$1$2></en-$1>");var b=new DOMParser,c=null;h||(c=b.parseFromString(a,"text/html"));if(h||null==c)h=!0,c=document.implementation.createHTMLDocument(""),a=a.replace(/(\s*<\?xml.*?\?>\s*|\s*<!DOCTYPE[^>]*?>\s*)*/gi,
""),c.body.innerHTML=a;return null==c?(x.error("Was not able to parse",a),!1):k(c,!1)};a.D=function(b,c){var d=new XMLHttpRequest;null!=c&&(a.B.listener(d,"error",c.bind(null,!1,"Error loading "+b)),a.B.listener(d,"abort",c.bind(null,!1,"Cancelled loading "+b)));a.B.listener(d,"load",function(){var a=!1,b=this.responseXML;null!=b&&(a=k(b,!0));null!=c&&c(a)});d.open("GET",b);d.send()};a.hd=function(f){var h=D(f,{crypto:null,contentElement:n}),k=h.contentElement;f=document.implementation.createDocument("http://www.w3.org/1999/xhtml",
"en-note",document.implementation.createDocumentType("en-note","","http://xml.evernote.com/pub/enml2.dtd"));var g=f.documentElement;if(k.hasAttributes())for(var t=0;t<k.attributes.length;t++)-1!==ka.indexOf(k.attributes[t].name.toLowerCase())&&g.setAttribute(k.attributes[t].name.toLowerCase(),k.attributes[t].value);Y(n,"beforeGetContent");t=f.importNode(k,!0);null!=t&&dc(t,g);a.H("transform").Qc(g,1,h);a.Bb.L().forEach(function(a){"transform"!==a.name&&a.Ia&&a.Ia(g,1,h)});k=g.querySelectorAll("*[id],*[class],*[data-en-overlay-id]");
for(t=k.length-1;0<=t;t--){var p=k[t];p.removeAttribute("id");p.removeAttribute("class");p.removeAttribute("data");Na(p.attributes).forEach(function(a){0===a.name.indexOf("data-")&&p.removeAttribute(a.name)})}f=(new XMLSerializer).serializeToString(f);return fc(Ya(f).replace(c,'<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">').replace(b,"").replace(e,"<en-todo$1 />").replace(d,"<en-media$1 />"))};a.B.A({name:"enml",action:function(b){var c=zb(b);if(c.url)a.D(c.url,function(a,b){a?
Ae():x.error("Loading from "+c.url+" did fail: "+b)});else{if(!a.Jc(b))return!1;(b=a.Ta("undo"))&&b.clear()}return!0},value:function(b){return a.hd(zb(b))},enabled:z})}};function Qf(){function a(){c.B.listener(b,"click",function(a){if(Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")){var b=a.target,c={};c.src=b.getAttribute("src")||"";c.name=b.getAttribute("name")||"";b=c||{};b.tagname="img";we("clicked",b);a.preventDefault()}});c.B.listener(b,"dblclick",function(a){if(Q(a.target,"img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)")){var b={};b.src=a.target.getAttribute("src")||"";b.name=
a.target.getAttribute("name")||"";b=b||{};b.tagname="img";we("doubleClicked",b);a.preventDefault()}})}var c=this;c.name="img";var b;c.F=function(e){!0===e.imageClickEvents&&(b=c.H("context").root,a())}};function Rf(){function a(a){null!=a&&a!=={}&&(g=a);V("img:not(.en-module):not(.en-container):not(.en-todo):not(.en-object-placeholder)",f).forEach(function(a){!0===a.complete?c(a):e.B.listener(a,"load",function(){c(a)})})}function c(a){e.he(a);var c=b(a),d=c.width,c=c.height;null==d&&null==c?a.style.height="auto":null!=d&&null!=c&&Math.round(a.naturalHeight/a.naturalWidth*10)===Math.round(c/d*10)&&(a.style.height="auto")}function b(a){var b;null!=a.getAttribute("width")?b=parseInt(a.getAttribute("width"),
10):(b=parseInt(a.style.width,10),isNaN(b)&&(b=null));null!=a.getAttribute("height")?a=parseInt(a.getAttribute("height"),10):(a=parseInt(a.style.height,10),isNaN(a)&&(a=null));return{width:b,height:a}}var e=this;e.name="img-dpi";var d,f,g=null;e.Ze=function(a){if(null==g)return a.naturalWidth;var b;if(null==g["images-dpi"][a.getAttribute("src")])return a.naturalWidth;b=g["images-dpi"][a.getAttribute("src")][0];a=a.naturalWidth;return 144===b?Math.round(a/(b/72)):a};e.D=function(a){if(null==g)return a.naturalHeight;
var b;if(null==g["images-dpi"][a.getAttribute("src")])return a.naturalHeight;b=g["images-dpi"][a.getAttribute("src")][1];a=a.naturalHeight;return 144===b?Math.round(a/(b/72)):a};e.he=function(a){var c=a.naturalWidth,d=e.Ze(a),f=a.naturalHeight,g=e.D(a),r=b(a);null==r.height&&null==r.width&&(c!==d&&T(a,"width",d+"px"),f!==g&&T(a,"height",g+"px"))};e.F=function(b){d=e.H("context");f=d.root;a(b.images);e.B.A({name:"images",action:function(b){null==b||fa(b)&&0===Object.keys(b).length||""===b?b=null:b=
zb(b);a(b);return!0},enabled:z})}};function Sf(){function a(a){if(null==a)return null;b.lastIndex=0;return(a=b.exec(a))&&a[1]?a[1]:null}var c=this;c.name="inline";var b=/^[\'\"]?(.*?)[\'\"]?(,|$)/;c.F=function(){function b(a){var c="";w(a)&&(-1<a.indexOf("+")||-1<a.indexOf("-"))&&(c=a[0],a=a.slice(1));a=ae(a,"px","px");var h=null;if(a&&0<a.value){if(""===c)return h=a.Eb,f("fontsize",h),!0;var l=d(a.Ac);if(""!==l&&("+"===c?h=(parseInt(l,10)+a.value).toString()+a.Ac:"-"===c&&(h=(parseInt(l,10)-a.value).toString()+a.Ac),h))return b(h)}return!1}
function d(a,b){a||(a="px");if(!b){var c=g.C();if(!c)return"";var d=null;c.collapsed||(d=n.qb(c,k.ra));null===d&&(d=c.startContainer);b=n.P(d,"fontsize")}return(c=ae(b,a))&&c.value?c.value.toString():"0"}function f(a,b){n.pd(a,b)}var g=c.H("context"),k=c.H("query"),n=c.H("format"),h=c.H("block"),l=c.H("editor"),m=g.root,r=g.la;c.H("textinput");var v=new Ba,t=null;c.B.ba(m,"beforeInput",function(a){g.Ba();t=n.fd();null!=t&&0===t.length&&(t=null);v.A("before input",t,a)},1E3);c.B.ba(m,"input",function(a){v.A("en.define.MESSAGE.TEXT_INPUT",
t,"info",a);a=ld(a.Cb.xa,a.Cb.offset,a.ma.endContainer,a.ma.endOffset);v.A("Changed range",Qa(a));a:{if(null!=t){var b=t;t=null;if(a&&!1===a.collapsed){g.Pa(a);v.A("Applied pending to range",Qa(b));n.sb(b);a=!0;break a}}a=!1}a&&(a=g.C(),a.collapse(!1),g.Pa(a),g.ta(!1,!1))},-1E3);r.bold={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("bold"):+a;f("bold",a?"bold":"normal");return!0},ya:["bold","600","700","800","900"],Aa:"fontWeight",yb:function(a,b){return a==b||"bold"==a&&"700"==b||
"700"==a&&"bold"==b||"normal"==a&&"400"==b||"400"==a&&"normal"==b}};r.italic={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("italic"):+a;f("italic",a?"italic":"normal");return!0},ya:["italic","oblique"],Aa:"fontStyle"};r.underline={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("underline"):+a;f("underline",a?"underline":null);return!0},ya:["underline"]};r.strikethrough={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("strikethrough"):+a;f("strikethrough",
a?"line-through":null);return!0},ya:["line-through"]};r.tt={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("tt"):+a;f("tt",a?"tt":null);return!0},ya:["tt"]};r.fontname={O:!0,za:!0,action:function(a){f("fontname",a);return!0},value:function(){var b=g.C();if(!b)return"";var c=null;b.collapsed||(c=n.qb(b,k.ra));null===c&&(c=b.startContainer);b=n.P(c,"fontname");return a(b)||""},Aa:"fontFamily",yb:function(b,c){return a(b)===a(c)}};r.fontsize={O:!0,za:!0,action:function(a){return b(a)},
Ua:function(){return 2<=n.pa(g.C(),k.ra).map(function(a){return n.P(a,"fontsize")}).filter(function(a,b,c){return-1==c.slice(0,b).indexOf(a)}).length},value:function(a,b){return d(a,b)},Aa:"fontSize",yb:function(a,b){if(a===b)return!0;var c=a;0<a.indexOf("pt")?c=ae(a,"px").Eb:0>a.indexOf("p")&&(c=a+"px");var d=b;0<b.indexOf("pt")?d=ae(b,"px").Eb:0>b.indexOf("p")&&(d=b+"px");return c===d}};r.forecolor={O:!0,za:!0,action:function(a){/^([0-9a-fA-F]{3}){1,2}$/.test(a)&&(a="#"+a);if(!/^(rgba?|hsla?)\(.*\)$/.test(a)&&
!Ud(a)&&"transparent"!=a.toLowerCase())return!1;f("forecolor",a);xb("foreColorChanged",{color:a});return!0},Se:!0,Aa:"color",yb:function(a,b){return Td(a)===Td(b)}};r.backcolor={O:!0,za:!0,action:function(a){/^([0-9a-fA-F]{3}){1,2}$/.test(a)&&(a="#"+a);if(!/^(rgba?|hsla?)\(.*\)$/.test(a)&&!Ud(a)&&"transparent"!=a.toLowerCase())return!1;f("backcolor",a);return!0},Ua:function(){return 2<=n.pa(g.C(),function(a){return k.K(a)&&3===a.nodeType}).map(function(a){return n.P(a,"backcolor")}).filter(function(a,
b,c){return-1==c.slice(0,b).indexOf(a)}).length},Se:!0,Aa:"backgroundColor",yb:function(a,b){return Td(a)===Td(b)}};r.highlight={O:!0,za:!0,action:function(a){a=null==a?!l.queryCommandState("highlight"):+a;f("highlight",a?"rgb(255, 250, 165)":null);return!0},ya:["rgb(255, 250, 165)","rgb(255, 204, 102)","rgb(246, 238, 150)"],Aa:"backgroundColor",yb:function(a,b){return Td(a)===Td(b)}};var p="abbr acronym b bdi bdo big blink cite code dfn em font i ins kbd mark nobr q s samp small span strike strong sub sup tt u var".split(" ");
r.removeformat={O:!0,za:!0,action:function(){function a(b){return k.K(b)&&-1<p.indexOf(K(b))}n.pa(g.C(),a).forEach(function(a){for(;a.hasChildNodes();)g.M(a.firstChild,a.parentNode,J(a));a.parentNode.removeChild(a)});if(k.K(g.C().startContainer)&&3==g.C().startContainer.nodeType&&0!=g.C().startOffset&&g.C().startOffset!=O(g.C().startContainer))if(g.C().startContainer==g.C().endContainer){var b=g.C().endOffset-g.C().startOffset,c=g.C().startContainer.splitText(g.C().startOffset);g.A(c,0,c,b)}else g.sc(g.C().startContainer.splitText(g.C().startOffset),
0);k.K(g.C().endContainer)&&3==g.C().endContainer.nodeType&&0!=g.C().endOffset&&g.C().endOffset!=O(g.C().endContainer)&&(c=[g.C().startContainer,g.C().startOffset],b=[g.C().endContainer,g.C().endOffset],g.rc(document.documentElement,0),b[0].splitText(b[1]),g.A(c[0],c[1],b[0],b[1]));n.pa(g.C(),k.K).forEach(function(b){for(;a(b.parentNode)&&k.W(b.parentNode,b);)h.ca([b])});"subscript superscript bold tt fontname fontsize forecolor highlight backcolor italic strikethrough underline".split(" ").forEach(function(a){f(a,
null)});return!0}};["superscript","subscript"].forEach(function(a){r[a]={O:!0,za:!0,action:function(b){b=null==b?!l.queryCommandState(a):+b;f(a,null);b&&f(a,a);return!0},Ua:function(){var b=n.pa(g.C(),k.ra);return b.some(function(b){return n.P(b,a)==a})&&b.some(function(b){return n.P(b,a)!=a})||b.some(function(b){return"mixed"==n.P(b,a)})},ya:[a]}});if(!0===Ad.rte.highlightMagic)try{var q=null;c.B.listener(g.root,"mousedown",function(){q=he(g.root)});c.B.listener(document,"mouseup",function(a){var b=
X(g.root);b&&!b.collapsed&&q!==he(g.root)&&(!a.metaKey||a.altKey||a.shiftKey||a.ctrlKey?a.metaKey&&a.altKey&&!a.shiftKey&&!a.ctrlKey&&Z.execCommand("strikethrough"):Z.execCommand("highlight"));q=null})}catch(A){x.error("Exception in <$>:",A.toString)}}};function Tf(){var a=this;a.name="io";a.F=function(){function c(a){a=!1!==a;!1===a&&(k=d.innerHTML);f===a||!0===a&&k===d.innerHTML||(f=a,!1===f&&e.flush())}var b=a.H("context"),e=a.H("undo"),d=b.root,b=!1!==Ad.rte.cryptLegacy,f=!1,g,k=null;a.Sb=function(){return f};a.B.ba(d,"setDirty",function(b){c(!1!==b);g=a.B.timeout(function(){f&&ye("content")},1E3,g)},1);b&&(a.J=function(b){var e=D(b,{html:!1,cleanup:!1,stripNS:!1,trim:!0,titleString:null,withInsertionPoint:!1,hiddenCryptoData:null,wrap:!1,resetChangesState:!1,
value:"",type:""});e.resetChangesState&&c(!1);if("enml"===(e.type||e.value||""))return a.H("enml").hd({crypto:e.hiddenCryptoData});var f=b=null,g=e.withInsertionPoint;Y(d,"beforeGetContent");var k=d,v=he(k);if(e.cleanup||g)k=d.cloneNode(!0);!1!==Ad.rte.cryptLegacy&&V("div.en-crypt-revealed,div.en-crypto-revealed",k).forEach(function(a){var b=a.id;0===b.indexOf("en-revealed-crypto:")?e.hiddenCryptoData&&e.hiddenCryptoData[b]?bc(a,M("embed",{type:"evernote/x-crypto",id:e.hiddenCryptoData[b]})):x.error("Found revealed crypto but not replacement. Key:",
b):x.error("Unsupported revealed crypto element with ID:",b)});e.cleanup&&f&&g&&(f.insertNode(nf()),g=!1);g&&v&&(f=ge(k,v))&&f.insertNode(nf());e.cleanup&&a.H("transform").Qc(k,2);e.stripNS?b=mb(k.outerHTML):b=k.innerHTML;e.trim&&(b=b.trim());b=Ya(b);e.html?b="<html><head><title></title></head><body>"+b+"</body></html>":e.wrap&&(b=pf(k,b));return b});a.D=function(b,c){c&&e.flush();var f=M("div",{},b),f=a.H("transform").nb(f,2,{Fd:!0});lc(f,d);c?e.flush():e.clear();Y(d,"setDirty",!1)};b?a.B.A({name:"content",
action:function(b){b=zb(b);null!=b.value&&(Ma("rte.content called with non-JSON string.","String used as new content."),b.content=b.value,delete b.value);b=D(b,{scrollToTop:!0,content:"",undoable:!1,type:"html",placeholder:null,resources:null});jb(b.resources)||a.H("resource").jd(b.resources);null!=b.placeholder&&d.setAttribute("data-en-placeholder",b.placeholder);"enml"===b.type?a.H("enml").Jc(b.content||""):a.D(b.content||"",!0===b.undoable);!0===b.scrollToTop&&cd(0,0);Ae();return!0},value:function(b){return a.J(zb(b))},
enabled:z}):a.B.A({name:"content",action:function(b){var c=zb(b);if(null==b)return x.error("To set content at least provide {value:}"),!1;c=D(c,{type:"enml",content:null,placeholder:null,scrollToTop:!0,resources:null,undoable:!1});jb(c.resources)||a.H("resource").jd(c.resources);null!=c.placeholder&&d.setAttribute("data-en-placeholder",c.placeholder);"enml"===c.type?a.H("enml").Jc(c.content||""):a.D(c.content||"",!0===c.undoable);!0===c.scrollToTop&&cd(0,0);Ae();return!0},value:function(b){b=zb(b);
b=D(b,{type:"enml",cryptInfo:null,withInsertionPoint:!1,resetChangesState:!1});var e=a.H("crypt"),f=b.cryptInfo;if(f&&f.length)for(var g=0;g<f.length;g++)e.ue(f[g]);Y(d,"beforeGetContent");if((f=e.hf())&&0<f.length)return{success:!1,cryptInfo:f};if("enml"===b.type||"enex"===b.type)return e=a.H("enml").hd({}),"enex"===b.type&&(f=Z.queryCommandValue("title.content"),e='<?xml version="1.0" encoding="UTF-8"?>\r\n<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export3.dtd">\r\n<en-export application="Evernote" version="Common Editor Build '+
window.CE_VERSION_INFO.lastBuildNumber+'">\r\n<note><title>'+f+'</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">'+e+"]]\x3e</note></content>"),b.resetChangesState&&c(!1),{success:null!=e,value:e,type:b.type};f=he(d);g=d.cloneNode(!0);f&&b.withInsertionPoint&&(e=ge(g,f))&&e.insertNode(nf());a.H("transform").Qc(g,2);e="plain"===b.type?oc(g):ic()?mb(g.outerHTML):g.innerHTML;null!=e&&(e=e.trim(),e=Ya(e),"plain"!==
b.type&&(e=pf(g,e)),b.resetChangesState&&c(!1));return{success:null!=e,value:e,selectionPath:f,type:b.type?b.type:"html"}},enabled:z});a.B.A({name:"changes",action:function(a){c(yb(a));return!0},state:function(){return f},enabled:z,Mb:!0})}};function Uf(){var a=this;a.name="link";a.F=function(){function c(b){if(!b||!a.H("edit").V({Lc:!1}))return!1;var c=d.C();if(!f.K(d.C().startContainer)&&!f.Da(d.C().startContainer))return!0;f.I(c.startContainer)&&1==c.startContainer.childNodes.length&&S(c.startContainer.firstChild)&&0==c.startOffset&&c.startContainer.removeChild(c.startContainer.firstChild);c.insertNode(b);d.A(b.parentNode,1+J(b));return!0}function b(){if(!d.C()||!d.C().startContainer)return null;var a=window.getSelection().toString();
return lb(a)?a:null}function e(){if(!d.C()||!d.C().startContainer)return null;var a=P(d.C().startContainer,"a[href]",d.root);return a?a.href:null}var d=a.H("context"),f=a.H("query"),g=a.H("format"),k=d.la;a.Kf=function(){return V("a[href]",d.root)};k.createlink={O:!0,action:function(a){if(!a)return!1;var b={};"{"===a[0]?b=D(a,{url:null,title:null}):(b.url=a,b.title=a);b.url=lf(b.url);if(d.C().collapsed)return a=M("a",{href:lf(b.url)}),a.textContent=b.title,c(a);g.pa(d.C()).forEach(function(a){f.Xa(a).forEach(function(a){f.K(a)&&
R(a,"a")&&a.hasAttribute("href")&&a.setAttribute("href",b.url)})});g.pd("createlink",b.url);return!0},value:function(){return e()||b()||""},state:function(){return!!e()||!!b()}};k.unlink={O:!0,action:function(){var a,b=d.C(),c=[];for(a=b.startContainer;a;a=a.parentNode)R(a,"a")&&a.hasAttribute("href")&&c.unshift(a);for(a=b.startContainer;a!=f.sa(b.endContainer);a=f.nextNode(a))R(a,"a")&&a.hasAttribute("href")&&(f.Xc(a,b)||tc(b.endContainer,a)||a==b.endContainer)&&c.push(a);for(a=0;a<c.length;a++)g.Ed(c[a],
"unlink");return!0},value:function(){return e()||""},state:function(){return!!e()}};a.Ca=function(a){W("*[href]",a).forEach(function(a){var b=a.getAttribute("href"),c=lf(b);b!==c&&(x.info("Sanitized link:",c),a.setAttribute("href",c))});W("*[src]",a).forEach(function(a){var b=a.getAttribute("src"),c=lf(b);b!==c&&a.setAttribute("src",c)})};a.Ia=function(){}}};function Vf(){var a=this;a.name="misc";a.F=function(){var c=a.H("context"),b=a.H("normalize"),e=c.la;e.normalize={Ab:!0,action:function(a){if(!a||"all"===a)return b.bc(),!0;if(!c.C())return x.warn("Command normalize called without selection. Value:",a),!1;if("start"===a)return b.vb(),!0;if("end"===a)return b.oe(),!0;if("selection"===a)return b.Ob(),!0;if("edges"===a)return b.Qd(),!0;x.warn("Command normalize called with unknown value:",a);return!1},enabled:z};e.zoomscale={Ab:!0,action:function(a){var b=
parseFloat(a);if(0<b&&10>b){if(a=document.querySelector("#en-note"))a.style.zoom=b,cb(a.querySelectorAll("embed"),function(a){a.style.zoom=1/b});return!0}x.warn("Command zoomscale called with invalid value:",a);return!1},value:function(){return yc(document.querySelector("#en-note"))},enabled:z}};a.Ca=function(a,b){if(1===b||2==b){var e=a.querySelector('*[title="CommonEditorBuild"]');null!=e&&(e.textContent=ia().toString(),e=a.querySelector('*[title="CommonEditorDate"]'),null!=e&&(e.textContent=ja().toString()))}}}
;function Wf(){function a(a){this.Ha=pb(c.name);this.info={title:"Unknown",mime:"application/octet-stream",hash:"",filename:"",filesize:"",downloaded:"",progress:0,url:null,state:"unloaded",thumbnailURL:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",contextURL:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",defaultActionURL:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"};this.L=!1;this.M(a);this.ca=
function(a){a.preventDefault()}}var c=this;c.name="resource";var b="img.en-media",b=b+",embed";a.prototype.da=function(a){return 1===a?this.V():this.W()};a.prototype.ia=function(){this.A||(this.A=this.X(),this.update());return this.A};a.prototype.W=function(){var a=eb({},this.info.attrs||{}),b;a["data-en-resource-reference"]=this.info.reference;a.src=this.info.url;a.id=this.info.hash;this.kd?(b="img",a["class"]="en-media"):(b="object",a["class"]="en-attachment en-media");return M(b,a)};a.prototype.V=
function(){var a=eb({},this.info.attrs||{}),b={type:this.info.mime,hash:this.info.hash};delete a.src;delete a["class"];delete a.id;delete a["data-en-resource-reference"];eb(b,a,!0);return M("en-media",b)};a.prototype.X=function(){var a=this.info.mime,b=-1!==["image/jpeg","image/png","image/gif","image/tiff","image/svg+xml"].indexOf(a),c="application/pdf"===a,g="application/vnd.evernote.ink"===a,k={src:this.info.url,"class":"en-media"},n=eb({},this.info.attrs||{});delete n.hash;delete n.type;var h=
"en-media:"+this.info.mime+":"+this.info.hash;b?k.id=h+":"+(n.width||"none")+":"+(n.height||"none"):(g?(k.type=a,k.border="1"):k.type=c?"evernote/x-pdf":"evernote/x-attachment",k.id=h);eb(k,n,!0);a=M(this.kd?"img":"embed",k);a.setAttribute("data-en-resource-reference",this.Ha);Pc(a,"height");return a};a.prototype.lb=function(){return this.ia()};a.prototype.M=function(a){a&&(B(bb(a)||bb(this.info),"Info param must be dictionary."),this.info=eb(this.info,a),this.info.url||(this.info.url="?hash="+this.info.hash),
this.info.mime=this.info.mime.toLowerCase(),this.kd=-1!==this.info.mime.indexOf("image/"))};a.prototype.update=function(a){var b=this.info,c=!(!a||["hash","url","mime","width","height"].every(function(c){return!a.hasOwnProperty(c)||b[c]===a[c]}));this.M(a);if(!this.A)return c;this.J&&this.J.setAttribute("src",this.info.thumbnailURL);this.Z&&(this.Z.textContent=this.info.filename);this.aa&&(this.aa.textContent="loading"===this.info.state&&this.info.downloaded?this.info.downloaded+" / "+this.info.filesize:
this.info.filesize);this.$&&(this.$.textContent=this.info.title);this.P&&this.P.setAttribute("src",this.info.contextURL);this.D&&this.D.setAttribute("src",this.info.defaultActionURL);return c};a.prototype.I=function(){return{hash:this.info.hash,url:this.info.url,mime:this.info.mime,rect:N(this.lb()),reference:this.Ha,selected:this.L}};c.F=function(e){function d(a){var b=P(a.target,"a[href]");Ce(this.info.url,"resource",{hash:this.info.hash,mime:this.info.mime,reference:this.Ha,anchorHref:b?b.getAttribute("href"):
void 0,action:"open",eventType:a.type||""});a.preventDefault()}function f(a){var b={},c;for(c in t){var d=t[c],e=b[d.info[a]];e||(b[d.info[a]]=e=[]);e.push(d)}return b}function g(a){q||(q=f("url"));return q[a]||[]}function k(a){p||(p=f("hash"));return p[a]||[]}function n(a){var b=I(a)?a.getAttribute("data-en-resource-reference"):a.reference,c=null;b&&(c=t[b]);c||(c=h(a));return c}function h(b){var c,e,f;if(b instanceof HTMLElement){"en-media"===K(b)?(c=b.getAttribute("hash"),e=b.getAttribute("type")):
(f=b.getAttribute("id"),B(!!f,"ID for non image resources is mandatory!"),f=f.split(":"),e=f[1],c=f[2]);b.getAttribute("x-evernote-mime");f=v[c]||{};f.hash||(f.hash=c);!f.mime&&e&&(f.mime=e);e={};if(b&&(b=b.attributes))for(c=b.length;c--;)e[b[c].name.toLowerCase()]=b[c].value;f.attrs=e}else bb(b)&&(f=b);B(f&&f.hash,"Info data or hash inside is missing to create a resource element.");b=new a(f);t[b.Ha]=b;b.ca=d;return b}var l=c.H("context"),m=l.root,r=l.la,v=e.resources||{},t={},p=null,q=null;c.jd=
function(a){q=p=null;if(da(a)){var b=a;a={};for(var c=0;c<b.length;c++){var d=b[c];a[d.id]=d}}B(bb(a),"Expected dict for resourceInfoDefaults",a);eb(v,a)};c.Td=function(a){var c=window.getSelection();return V(b,a?a:m).map(function(a){var b;b=n(a);b.L=c&&!c.isCollapsed&&c.containsNode(a,!1);var d=b.I();(d.node=a)&&a.previousElementSibling&&(b=n(a.previousElementSibling),d.prevNeighbour=b.I());a&&a.nextElementSibling&&(b=n(a.nextElementSibling),d.nextNeighbour=b.I());return d})};r.resources={O:!0,Ab:!0,
action:function(a){if(a=Ab(a)){var b=!1,d=!1,e=function(a){a&&(a=a.lb(),H(a))};a.forEach(function(a){var f;if("update"===a.action||"delete"===a.action)if(b=!0,a.reference){if(f=n(a))"delete"===a.action?(e(f),d=!0):f.update(a)&&(d=!0)}else a.originalURL?"update"===a.action?W("img:not(.en-media)",m).forEach(function(b){if(b.getAttribute("src")===a.originalURL){var c=h(a);bc(b,c.lb())}}):g(a.originalURL).forEach(function(a){e(a)}):k(a.hash).forEach(function(b){"delete"===a.action?(e(b),d=!0):b.update(a)&&
(d=!0)});else if("insert"===a.action){if(l.Va())return!1;l.hasFocus()||Z.execCommand("content.focus");var p=a.beforeRef||a.afterRef,r=null==a.afterRef?0:1;f=null;p&&(p=t[p])&&(f=p.lb());f?l.A(f.parentNode,J(f)+r):l.Ba();l.yf();r=c.H("paste");f=h(a);f=f.lb();r.insertNode(f);zd(f);b=d=!0}});d&&Y(m,"setDirty");b&&c.B.timeout(function(){c.H("layer").Na()})}return!0},value:c.Td,enabled:z};c.Ca=function(a,b){var c;if(1===b)for(var d=a.getElementsByTagName("en-media"),e=d.length-1;0<=e;e--){var f=d[e];c=
h(f);B(!!c,"Failed to create resource for",f);bc(f,c.lb())}else W('embed[id^="en-media:"],img[id^="en-media:"]',a).forEach(function(a){c=h(a);bc(a,c.lb())})};c.Ia=function(a,c){1===c?W(b,a).forEach(function(a){var b=n(a);if(b&&(b=b.da(c))){bc(a,b);return}H(a)}):W('embed[id^="en-media:"],img[id^="en-media:"],.en-object-placeholder',a).forEach(function(a){a.removeAttribute("class");a.removeAttribute("data-en-resource-reference")})}}};function Xf(){function a(a){r.call(this,a)}function c(a){r.call(this,a)}function b(a){r.call(this,a)}function e(a){r.call(this,a)}function d(a){r.call(this,a)}function f(a){r.call(this,a)}function g(a){r.call(this,a)}function k(a){r.call(this,a)}function n(a){a.Je=!0;r.call(this,a)}function h(a){r.call(this,a)}function l(a){r.call(this,a)}function m(a){r.call(this,a)}function r(a){if(!(this instanceof r))return new r(a);this.A=a;this.F()}function v(a){var b=Oc(a.ze,"-evernote-context-name");b&&(T(a.Me,
"-evernote-context-name",b),a.Me.textContent=a.G.Zb[b+"-label"]||b)}function t(a,b){a.ze=p(a.xa,"context");a.Me=p(a.Pd,"context");var c=a.ze,d=Oc(c,"-evernote-context-name");G(c,"en-editable-context");var e;ac(c);c.appendChild(e=M("span"));e.textContent=a.G.Zb[d+"-label"]||d;for(var f=[],h=0;h<b.length;h++){var l=b[h],g=M("option",{value:l},[a.G.Zb[l+"-label"]||l]);l===d&&g.setAttribute("selected","selected");f.push(g)}var k=M("select",{"class":"en-editable-select-context",tabindex:"-1"},f);c.insertBefore(k,
null);u.B.listener(k,"change",function(){var b=k.value;T(c,"-evernote-context-name",b);e.textContent=a.G.Zb[b+"-label"]||b;if(a.G.Fc instanceof Object)try{var d=a.G.Fc[a.name];d&&d(a)}catch(f){x.error("Exception on onDidChangeActions (2)",f.toString())}a.G.zd=a.name;U=!0});c.parentElement.style.textDecoration="none"}function p(a,b){for(var c=Na(a.querySelectorAll("*[style*='x-evernote:']")),d=0;d<c.length;d++){var e=c[d];if(Oc(e,"x-evernote")===b)return e}return null}function q(a){var b=a.node;G(b,
"en-editable");G(b,"en-editable-"+a.type);G(b,("en-"+a.G.xc+"-"+a.name).toLowerCase());b.setAttribute("title",(a.G.Zb[a.name+"-placeholder-title"]||"...")+"\u00a0\u00a0\u00a0");Hc(b,!0);y(a);a.G.ae&&b.removeAttribute("style");var c=null;u.B.listener(b,"focus",function(){c=a.object.I();u.B.timeout(function(){window.getSelection().selectAllChildren(b)})});u.B.listener(b,"input",function(){U=!0});u.B.listener(b,"blur",function(){pd();y(a);var b=!1;if(a.G.Fc instanceof Object)try{var d=a.G.Fc[a.name];
d&&d(a)&&(b=!0)}catch(e){x.error("Exception on onDidChangeActions (1)",e.toString())}d=a.object.I();if(b||c!==d)a.G.zd=a.name,U=!0});u.B.listener(b,"keydown",function(c){var d=!1;13===c.keyCode?a.Je||(b.blur(),d=!0):8===c.keyCode&&(document.execCommand("delete"),d=!0);return d?Id(c):!1})}function A(a,b){var c=oc(a).trim();ib(c)?c="\u00a0":b?(c=c.split("\n"),c=c.map(function(a){return ib(a)?"<div><br/></div>":"<div>"+nb(a)+"</div>"}),c=c.join("")):c=nb(c.replace(/\n/g," "));return c}function y(a){B(!!a,
"We need field info");B(!!a.node,"We need an element to work on");var b=a.node;b.innerHTML=A(b,a.Je);ib(b.textContent)?G(b,"en-editable-placeholder"):Vb(b,"en-editable-placeholder");a.Dd=b.innerHTML}var u=this,C=null;B(this instanceof Xf,"Use `new` to instantiate this class");u.name="template";var L=!0,U=!1;r.prototype.F=function(){};r.prototype.I=function(){return this.A.node.innerHTML};r.prototype.Oc=function(a){var b=this.I();this.A.Gc.innerHTML=b;a&&this.A.G.zd===this.A.name&&this.A.Gc.insertBefore(nf(),
null)};ha(m,r);ha(l,r);l.prototype.I=function(){return A(this.A.node)};ha(h,r);h.prototype.F=function(){q(this.A)};h.prototype.I=function(){return A(this.A.node)};ha(n,h);n.prototype.I=function(){try{return A(this.A.node,!0)}catch(a){x.error("getHTML 'PlainTextArea.prototype.getHTML' failed ",a)}return null};ha(k,r);k.prototype.F=function(){this.A.node=p(this.A.xa,"value");this.A.Gc=p(this.A.Pd,"value");B(!!this.A.node,"x-evernote:value element missing in phone field");q(this.A);t(this.A,"phone home work mobile main home-fax work-fax other".split(" "))};
k.prototype.I=function(){return A(this.A.node)};k.prototype.Oc=function(a){k.Mc.Oc.call(this,a);v(this.A)};ha(g,r);g.prototype.L=function(a,b){B(b instanceof Object);b.href=a;return M("a",b,[a])};g.prototype.J=function(){var a=this.A.node.textContent;return!a||ib(a)?"":a.trim()};g.prototype.F=function(){function a(){Vb(f,"en-editable-hidden");G(e,"en-editable-hidden");ac(h);var c=b.J();ib(c)?(Vb(e,"en-editable-hidden"),G(f,"en-editable-hidden")):h.appendChild(b.L(c,{tabindex:"-1"}));e.textContent=
c}var b=this;this.A.node=p(this.A.xa,"value");this.A.Gc=p(this.A.Pd,"value");B(!!this.A.node,"x-evernote:value element missing in LinkField");var c=this.A.node,d=this.J();Pc(c,"text-decoration");ac(c);var e;c.appendChild(e=M("div"));e.textContent=d;this.A.node=e;q(this.A);var f,h;c.appendChild(f=M("div",{"class":"en-editable-preview"},[h=M("span")]));a();u.B.listener(f,"click",function(){e.focus()});u.B.listener(e,"focus",function(){Vb(e,"en-editable-hidden");G(f,"en-editable-hidden")});u.B.listener(e,
"blur",function(){a()});G(this.A.xa,"en-editable-container")};g.prototype.I=function(){var a=this.A.node.textContent;return ib(a)?"\u00a0":nb(this.L(a,{}))};ha(f,g);f.prototype.F=function(){f.Mc.F.call(this);t(this.A,["email","home","work","other"])};f.prototype.Oc=function(a){f.Mc.Oc.call(this,a);v(this.A)};f.prototype.L=function(a,b){a=a.trim().replace(/^mailto:/,"");B(b instanceof Object);b.href="mailto:"+a;return M("a",b,[a])};ha(d,g);d.prototype.J=function(){var a=this.A.node.textContent;if(!a)return"";
a=a.trim().replace(/^\@/,"");return ib(a)?"":a};d.prototype.L=function(a,b){B(b instanceof Object);b.href="http://twitter.com/"+encodeURIComponent(a);return M("a",b,["@"+a])};ha(e,g);ha(b,g);ha(c,g);c.prototype.J=function(){var a=this.A.node.textContent;if(!a)return"";a=a.trim().replace(/^\@/,"");return ib(a)?"":a};c.prototype.L=function(a,b){B(b instanceof Object);return document.createTextNode("@"+a)};ha(a,g);a.prototype.L=function(a,b){a=a.trim();B(b instanceof Object);b.href="http://maps.google.com/?q="+
encodeURIComponent(a);return M("a",b,[a])};var va={title:l,field:h,textarea:n,phone:k,email:f,twitter:d,linkedin:e,facebook:b,weibo:c,address:a,"profile-image":m},ca=Object.keys(va);u.Y=function(){C===document.body?(u.pb=document.body.parentNode.cloneNode(!0),Na(u.pb.getElementsByTagName("head")).forEach(function(a){H(a)})):u.pb=C.cloneNode(!0);var a=u.N(C),b=u.N(C===document.body?u.pb.getElementsByTagName("body")[0]:u.pb);u.Ra=[];for(var c=0;c<a.length;c++)try{var d=a[c];d.index=c;d.Gc=b[c].node;
d.G=this.G;d.xa=d.node;d.Pd=d.Gc;d.object=new va[d.type](d);u.Ra.push(d)}catch(e){x.error("A field failed during setup",e.toString())}};u.U=function(a){a=D(a,{ad:null,xc:null,Yc:null,ae:!1,de:null,ee:null,Od:{},Fc:{},Zb:{},zd:null,root:null});u.G=a;C=a.root||document.getElementById("en-note");B(C&&I(C),"Root not valid!");of(C);B(null!==u.G.ad,"Content Class is required");u.G.xc=u.G.xc||u.G.ad.replace(/[^\w]+/gi,"-");G(C,"en-template-style-on");G(C,u.G.xc);u.Y();u.B.ba(C,"setDirty",function(a){var b=
!0;!1===a&&(b=!1);U=!!b});null!==u.G.ee&&u.J(u.G.ee);u.Ja=function(a){u.J(a.value)};u.B.I("titlechanged",u.Ja);if(u.G.Od instanceof Object)for(var b=0;b<u.Ra.length;b++)try{var c=u.Ra[b],d=u.G.Od[c.name];d&&d(c)}catch(e){x.error("Exception on onDidInitActions (3)",e.toString())}b=this.ja();b.F(new cf,{root:C});b.F(new Pf);b.F(new Wf);u.tc();b=a.html;a=a.enml;B(!(null!=b&&null!=a),"You can only provide one content type: html or enml");w(b)?u.D(b):w(a)&&B(!1,"ENML currently not supported for Templates")};
u.S=function(){Vb(C,"en-template-style-on");Vb(C,u.G.xc);u.Ra=[]};u.hasFocus=function(){var a=X(C);return a&&(a=rd(a))?P(a,Gc):!1};u.tc=function(){function a(b,c){c=D(zb(b),c,!0);var d=c.value;"html"===c.type&&(d=gc(d,C).textContent);try{document.execCommand("inserttext",!1,d.replace(/\s+/gi," "))}catch(e){}return!0}u.B.Ic({zb:["content","template"]});u.B.A({name:"focus",action:function(){u.focus();return!0},state:function(){return u.hasFocus()},value:function(){if(u.hasFocus())return u.name},enabled:z});
u.B.A({name:"paste",action:function(b){return a(b,{type:"html",mode:"plain",value:""})},enabled:z});u.B.A({name:"pasteplain",action:function(b){Ma('Please use execCommand("template.paste", { type: "plain", mode: "plain", "value": ... })');return a(b,{type:"plain",mode:"plain",value:""})},enabled:z});u.B.A({name:"copy",enabled:z,value:function(){var a=X(C);if(!a||a.collapsed)return"";var b={},a=a.cloneContents(),c=document.createElement("div");c.appendChild(a);ad(c,function(a){b.plain=oc(a)});return JSON.stringify(b)}});
u.B.A({name:"content",action:function(a){a=zb(a);null!=a.value&&(Ma("rte.content called with non-JSON string.","String used as new content."),a.content=a.value,delete a.value);a=D(a,{scrollToTop:!0,content:"",type:"html",resources:null});jb(a.resources)||u.H("resource").jd(a.resources);var b=a.content||"";"enml"===a.type?u.ja().A("enml").Jc(b):u.D(b);u.Y();!0===a.scrollToTop&&cd(0,0);Ae();return!0},value:function(a){return u.ha(zb(a))},enabled:z});u.B.A({name:"changes",action:function(a){U=!!yb(a);
return!0},state:function(){return U},enabled:z,Mb:!0})};u.focus=function(a){for(a=+a||0;a<this.Ra.length;a++){var b=this.Ra[a];if(!b.Ke){b.node.focus();break}}};u.J=function(a){if(a&&0<a.length&&255>=a.length){for(var b,c=0;c<this.Ra.length;c++)if(!0===this.Ra[c].Ke){b=this.Ra[c];break}b&&b.node.textContent!==a&&(b.node.textContent=a,b.Dd=b.node.innerHTML)}};u.N=function(a){return Na(a.querySelectorAll("*[style*='-evernote-editable:']")).map(function(a){var b=Oc(a,"-evernote-editable");if(0<=ca.indexOf(b)){var c=
Oc(a,"x-evernote"),d=this.G.de&&this.G.de===c;d&&(b="title");return d||null===this.G.Yc||this.G.Yc.some(function(a){return c===a})?{node:a,name:c,type:b,Ke:d}:void 0}x.error("Invalid -evernote-editable field mode!",b)},this).filter(function(a){return a&&a.node})};u.D=function(a){var b=M("div");b.innerHTML=a;lc(b,C)};u.ha=function(a){a=D(a,{html:!1,cleanup:!1,stripNS:!1,trim:!0,withInsertionPoint:!1,titleString:"",hiddenCryptoData:null,resetChangesState:!1,wrap:!1,type:""});x.log("template crypt legacy",
L);a.resetChangesState&&(U=!1);w(a.titleString)&&u.J(a.titleString);for(var b=0;b<this.Ra.length;b++){var c=this.Ra[b];try{c.object.Oc(a.withInsertionPoint)}catch(d){x.error("Unable to extract data from field",d.toString(),c)}}if("enml"===(a.type||a.value||""))return b=u.ja().A("enml").hd({crypto:a.hiddenCryptoData,contentElement:u.pb.cloneNode(!0)}),L?b:{success:null!=b,value:b,type:"enml"};if(L)return b="html"===K(this.pb)||a.stripNS?u.pb.outerHTML:u.pb.innerHTML,a.stripNS&&(b=mb(b)),b=b.trim(),
a.html?b="<html><head><title></title></head><body>"+b+"</body></html>":a.wrap&&(b=pf(C,b)),Ya(b);a=u.pb;b=ic()?mb(a.outerHTML):a.innerHTML;null!=b&&(b=b.trim(),b=Ya(b),b=pf(a,b));return{success:null!=b,value:b,type:"html"}};u.F=function(a){var b=a.contentClass,c=a.title,d=a.localization;L=null==a.cryptLegacy?!0:a.cryptLegacy;if("evernote.food.meal.2"===b)u.U({root:a.root||null,ad:b,Yc:["caption-text","meal-review"],ae:!0,de:"title",ee:c});else if("evernote.contact.1"===b){var e=function(a){return(a=
a.node.textContent)?a.replace(/\s+/g," ").trim():null},f=null,h=c;u.U({root:a.root||null,ad:b,Yc:"contact-title contact-org note-body weibo twitter phone email address display-as".split(" "),ae:!1,Zb:d||{"display-as-placeholder-title":"Add Name...","contact-title-placeholder-title":"Add Title...","contact-org-placeholder-title":"Add Company...","note-body-placeholder-title":"Add Notes...","linkedin-placeholder-title":"Add LinkedIn URL...","facebook-placeholder-title":"Add Facebook URL...","twitter-placeholder-title":"Add Twitter Name...",
"weibo-placeholder-title":"Add Weibo Name...","phone-placeholder-title":"Add Phone...","email-placeholder-title":"Add Email...","address-placeholder-title":"Add Address...","email-label":"Email","home-label":"Home","work-label":"Work","other-label":"Other","phone-label":"Phone","mobile-label":"Mobile","main-label":"Main","home-fax-label":"Home Fax","work-fax-label":"Work Fax","twitter-label":"Twitter","facebook-label":"Facebook","weibo-label":"Weibo","linkedin-label":"LinkedIn","address-label":"Address"},
Od:{"display-as":function(a){f=e(a)}},Fc:{"display-as":function(a){h=He.value("title.content");var b=!1;a=e(a);if(f&&a&&h){var c=new RegExp("\\b"+Sa(f)+"\\b","g");if(c=h.replace(c,a))255<c.length&&(c=h),He.action("title.content",c),He.action("title.changes",!0),b=!0,f=a}return b}}})}}};function Yf(){function a(c,d,e){if(!(this instanceof a))return new a(c,d,e);b.call(this,c,d,e)}function c(a,d,e){if(!(this instanceof c))return new c(a,d,e);b.call(this,a,d,e)}function b(a,b,c){"undefined"===typeof c&&(c={});this.ua=c;B(null!=this.ua.Nc,"You have to provide tablePlugin config!");void 0!==c.cssBlockStyle?this.$=c.cssBlockStyle:this.$=this.Da;this.async=!!c.async;if(!a)a=document.body;else if(a instanceof DocumentFragment||!vc(a))c=M("div"),c.appendChild(a),document.body.appendChild(c),
this.Xa=a=c;this.V=a;this.cc=b;this.na()}function e(a,b,c,d){b=b.getAttribute(c);if(null==b){if(null==d)return;b=d}a.setAttribute(c,b)}function d(a){return a?!!P(a,function(a){return a&&a.style?"rgb(255, 250, 165)"===a.style.backgroundColor:!1}):!1}function f(a){return"td"===a||"th"===a}function g(a){a=K(a);return"ul"===a||"ol"===a}function k(a){a=K(a);return"p"===a||"div"===a}var n=this;this.name="simpletext";b.prototype.ia="div";b.prototype.Da=null;b.prototype.eb=.8;b.prototype.rb=150;b.prototype.Ga=
10;b.prototype.U=2E3;b.prototype.nb="evernote://";b.prototype.fb="rgb(105, 170, 53)";b.prototype.na=function(){var a=this;this.va=this.Wa=this.aa=this.J=this.L=this.block=null;this.D=M("div");this.qa=this.X=null;this.P=!1;this.Z=[];var b=wc(document.body);this.Hb=b&&b.fontSize?+b.fontSize.replace(/px/gi,"")*this.eb:16;if(this.async){this.ca=this.ra=this.Pa=0;this.da=!1;this.Db=this.N=(new Date).getTime();for(var b=document.createNodeIterator(this.V,-1,null,!0),c=0;b.nextNode();)++c;this.Fb=c}this.Ib=
document.createTreeWalker(this.V,-1,{acceptNode:function(b){for(var c=0;c<a.Z.length;c++)if(tc(b,a.Z[c]))return 2;return 1}},!0);this.Oa()};b.prototype.Oa=function(){var a=this;if(this.Jb)this.S();else{var b;try{for(;(b=this.Ib.nextNode())&&!(3===b.nodeType?this.vb(b):1===b.nodeType&&this.Na(b),this.async&&(++this.Pa,(new Date).getTime()-this.N>this.rb)););++this.ra}catch(c){b=null}if(b&&this.async){this.ca=Math.min(1,this.Pa/this.Fb);this.da||(b=((new Date).getTime()-this.Db)/this.ca,b+=(Math.ceil(this.ra/
this.ca)-this.ra)*this.Ga,b>=this.U&&(this.da=!0));if(this.da&&this.ua.onprogress)this.ua.onprogress(this,this.ca);n.B.timeout(function(){a.N=(new Date).getTime();a.Oa()},this.Ga)}else{this.Z=null;this.Ta(this.block);if(this.da&&this.ua.onprogress)this.ua.onprogress(this,1);this.sa()}}};b.prototype.sa=function(){this.cc?lc(this.D,this.cc):this.cc=this.D;this.S();if(this.ua.onready)this.ua.onready(this)};b.prototype.S=function(){this.Xa&&document.body.removeChild(this.Xa)};b.prototype.Gb=function(a){for(var b,
c=document.createNodeIterator(a,4,null,!0);(b=c.nextNode())&&!(b.textContent=b.textContent.replace(/^ /gi,""),0<b.textContent.length);)sc(b)?b.parentNode.appendChild(M("br")):b.appendChild(M("br"));c=document.createNodeIterator(a,4,null,!0);for(a=[];b=c.nextNode();)a.unshift(b);for(c=0;c<a.length&&!(b=a[c],b.textContent=b.textContent.replace(/\s+$/gi,""),0<b.textContent.length);c++)sc(b)?b.parentNode.appendChild(M("br")):b.appendChild(M("br"))};b.prototype.Ta=function(a){a&&(this.Gb(a),a.normalize())};
b.prototype.W=function(a){a=M(a?a:this.ia);this.$&&a.setAttribute("style",this.$);return a};b.prototype.Ka=function(){var a=this.W();a.appendChild(M("br"));this.D.appendChild(a);this.P=!1};b.prototype.M=function(a){var b=this.W();null!=a&&(w(a)?b=this.W(a):I(a)&&(b=a));this.D.hasChildNodes&&this.P&&(a=this.D.lastElementChild)&&a.textContent.length&&k(a)&&k(b)&&this.Ka();this.P=!1;this.D.appendChild(b);return b};b.prototype.A=function(){this.Ta(this.block);this.L=this.block=null};b.prototype.La=function(a){var b=
document.createRange();b.selectNodeContents(a);b=b.getBoundingClientRect();this.qa&&b&&!tc(a,this.L)&&Math.abs(b.top-this.qa.bottom)>=this.Hb&&(this.P=!0);b&&(this.qa=b)};b.prototype.tb=function(a){var b=P(a,"li");if(null==b)this.J=null;else{if(sc(a)){if(-1!==a.textContent.search(/^\s*$/i))return;a.textContent.replace(/\s+/gi," ")}if(this.X&&this.J===b)this.block=this.X,Cc(this.X.lastChild)&&Cc(a)||this.block.appendChild(M("br"));else{var c=0;a=null;for(var d=b;d&&d!==this.V;)g(d)&&(++c,a||(a=K(d))),
d=d.parentNode;var c=Math.max(0,c),e=null;for(this.block&&0<this.block.childNodes.length?d=this.block:d=this.D;;){d=d.lastElementChild;if(!d)break;if(g(d)&&(e=d,--c,1>c))break}if(0<c&&e)d=e.lastElementChild,e=this.M(a||"ol"),d.appendChild(e);else if(!e)null!=this.block?(e=M(a||"ol"),this.block.appendChild(e)):e=this.M(a||"ol"),b&&b.parentNode&&F(b.parentNode,"en-todo-list")&&(e.className="en-todo-list");else if(this.P||a&&a!==K(e))null!=this.block?(e=M(a||"ol"),this.block.appendChild(e)):e=this.M(a||
"ol");if(null===this.block&&0<c)for(--c;c--;)d=this.M(a||"ol"),e.appendChild(d),e=d;this.block=this.W("li");b&&F(b,"en-todo-checked")&&(this.block.className="en-todo-checked");e.appendChild(this.block);this.J=b;this.X=this.block}}};b.prototype.ub=function(a){var b=P(a,"table"),c=this.ua.Nc;if(null!=b&&null!=c&&I(b)&&"table"===K(b)){var d=c.Cd(b);-1!==d.rows&&(this.Wa!==b&&(this.Wa=b,this.va=c.Ae(d),this.M(this.va),this.aa=null),b=c.Hc(a),null!=b.table&&(b=c=this.va.querySelectorAll("tr")[b.row].querySelectorAll("td")[b.column],
null==c?x.warn("Something crazy happened with table simplify: <$>"):(1===c.childNodes.length&&"div"===K(c.childNodes[0])&&(b=c.childNodes[0],1===b.childNodes.length&&"br"===K(b.childNodes[0])&&ac(b)),this.aa&&"td"===K(this.aa.parentNode)&&this.aa.parentNode===c&&"td"!==K(b)&&sc(a)&&!Cc(a)&&!Cc(a.parentNode)&&(a=this.W(),P(b,"td").appendChild(a),b=a),this.block=this.aa=b)))}else x.warn("Couldn't simplify table. Look into this!")};b.prototype.I=function(a,b,c,d){c=!tc(a,this.L);if(d&&c)return null;
b||(b=a.cloneNode(!1));"br"!==K(a)&&this.La(a);c&&(I(this.L)&&(d=K(this.L),f(d)&&(this.P=!0)),this.A());for(c=a;c!==this.V&&(c=c.parentNode);){this.L=c;d=K(c);if("li"===d)break;if(f(d))break;if(zc(c))break}P(a,"table")&&this.ub(a);P(a,"li")&&this.tb(a);a=this.pa(a);this.block||(this.block=this.M());this.block.appendChild(this.wa(b,a));return b};b.prototype.vb=function(a){if(a){var b;if((b=wc(a.parentNode))&&/pre/gi.test(b.whiteSpace)){var c=a.textContent.split(/\n\r|\r\n|\r|\n/gi);if(c&&0<c.length&&
(b=c[0].replace(/\s/gi," ").replace(/\s\s/gi,"\u00a0 "),a=this.I(a,document.createTextNode(b))))for(var d=1;d<c.length;d++){var e=a.parentNode;e.appendChild(M("br"));b=c[d].replace(/\s/gi," ").replace(/\s\s/gi,"\u00a0 ");e.appendChild(document.createTextNode(b))}}else b=a.textContent.replace(/[\ \n\r\t]+/gi," "),c=!1,-1!==b.search(/^[\ \t\n]*$/i)&&(c=!0),this.I(a,document.createTextNode(b),!1,c)}else x.warn("Node missing",a)};b.prototype.Na=function(a){if(a){var b=K(a);if("div"===b&&/^en-revealed-crypto:\d+$/.test(a.id))this.A(),
this.I(a,a.cloneNode(!0),!0),this.A(),this.Z.push(a);else if("embed"===b)b=Ec(a,"type").toLowerCase(),"evernote/x-crypto"!==b&&"evernote/x-todo"!==b&&"evernote/x-attachment"!==b&&"evernote/x-pdf"!==b||this.I(a);else if("script"===b||"style"===b)this.Z.push(a);else if("img"===b&&Q(a,".en-todo"))this.I(a);else if(Q(a,".en-media"))this.I(a);else if("img"===b&&a.src)this.A(),b=M("img"),e(b,a,"src"),e(b,a,"alt",""),e(b,a,"id"),this.I(a,b,!0),this.A();else if("hr"===b)this.A(),b={},"true"===Oc(a,"-evernote-encp-section-break")&&
(b={style:"display:none;-evernote-encp-section-break:true;"}),this.I(a,M("hr",b),!0),this.A();else{if("br"===b)if(this.A(),P(a,"table"))b=this.W(),b.appendChild(M("br")),this.I(a,b,!0);else{this.Ka();return}this.block&&a&&(zc(a)||!uc(this.L,a))&&this.A()}}else x.warn("Node missing",a)};b.prototype.pa=function(a){for(var b={xb:0,$b:0,e:0,xe:0,He:0,qd:0,Wd:0};a||a===this.V;){var c=K(a);"del"===c||"strike"===c||"s"===c?b.Wd=1:"mark"===c?b.$b=1:"a"===c&&(c=a.href+"")&&c.length&&(b.xb=c,b.e=0===c.indexOf(this.nb));
if(c=wc(a)){var e=c.backgroundColor.toLowerCase();if("rgb(255, 204, 102)"===e||"rgb(255, 250, 165)"===e||"rgb(246, 238, 150)"===e||d(a))b.$b=1;var e=c.fontWeight.toLowerCase(),f=c.fontStyle.toLowerCase(),c=c.textDecoration.toLowerCase();if("bold"===e||"bolder"===e||"700"===e)b.xe=1;if("italic"===f||"oblique"===f)b.He=1;!b.xb&&0<=c.indexOf("underline")&&(b.qd=1);0<=c.indexOf("line-through")&&(b.Wd=1)}a=a.parentNode}b.xb&&b.qd&&delete b.qd;return b};b.prototype.wa=function(a,b){var c;b.xb&&(c=M("a"),
c.setAttribute("href",b.xb),b.e&&c.setAttribute("style","color:"+this.fb+";"),c.appendChild(a),a=c);b.xe&&(c=M("b"),c.appendChild(a),a=c);b.He&&(c=M("i"),c.appendChild(a),a=c);b.qd&&(c=M("u"),c.appendChild(a),a=c);b.Wd&&(c=M("s"),c.appendChild(a),a=c);b.$b&&(c=M("span",{style:"-evernote-highlight:true; background-color:rgb(255, 250, 165);"}),c.appendChild(a),a=c);return a};ha(c,b);ha(a,b);a.prototype.ia="div";a.prototype.Da='font-family: Courier, "Courier New", monospace;';a.prototype.Fa=!1;a.prototype.qb=
"\u00a0 \u00a0 ";a.prototype.ob="- ";a.prototype.na=function(){this.oa=[];a.Mc.na.call(this)};a.prototype.sa=function(){this.P=!0;for(var b=0;b<this.oa.length;b++)this.block=this.M(),this.block.appendChild(this.oa[b]);a.Mc.sa.call(this)};a.prototype.W=function(){var a=M(this.ia);this.$&&a.setAttribute("style",this.$);return a};a.prototype.I=function(a,b,c,d){c=!tc(a,this.L);if(d&&c)return null;b||(b=a.cloneNode(!1));this.La(a);c&&(I(this.L)&&(d=K(this.L),f(d)&&(this.P=!0)),this.A());for(c=a;c!==this.V&&
(c=c.parentNode);){this.L=c;d=K(c);if("li"===d)break;if(f(d))break;if(zc(c))break}d=P(a,"li");if(!this.block&&d)if(this.X&&this.J===d)this.block=this.X,this.block.appendChild(M("br"));else{c=0;for(var e=d;e&&e!==this.V;)g(e)&&++c,e=e.parentNode;c=Math.max(0,c);this.block=this.M();e=this.ob;for(P(d,"ul.en-todo-list")&&(e=F(d,"en-todo-checked")?"[x] ":"[ ] ");1<c;)e=this.qb+e,--c;this.block.appendChild(document.createTextNode(e));this.J=d;this.X=this.block}else this.J=null,this.block||(this.block=this.M());
a=this.pa(a);this.block.appendChild(this.wa(b,a));return b};a.prototype.Na=function(a){var b;b=K(a);F(a,"en-todo")?(b=F(a,"en-todo-checked"),this.I(a,document.createTextNode(b?"[x] ":"[ ] "))):"embed"===b?(b=Ec(a,"type").toLowerCase(),"evernote/x-todo"===b?(b="true"===(Ec(a,"todo-checked")+"").toLowerCase(),this.I(a,document.createTextNode(b?"[x] ":"[ ] "))):"evernote/x-attachment"!==b&&"evernote/x-pdf"!==b||this.oa.push(a.cloneNode(!0))):("script"!==b&&"style"!==b||this.Z.push(a),"img"!==b&&("hr"===
b?this.A():"br"===b?this.A():f(b)?(this.A(),this.P=!0):!this.block||!zc(a)&&uc(this.L,a)||this.A()))};a.prototype.pa=function(a){var b={};if(this.Fa)for(;a||a===this.V;)"a"===K(a)&&(b.xb=a.href),a=a.parentNode;return b};a.prototype.wa=function(a,b){if(this.Fa&&b.xb){var c=M("a");c.setAttribute("href",b.xb);c.appendChild(a);a=c}return a};this.F=function(){function b(a,c){var h=d.C(),g,k,v;if(h&&!h.collapsed){e.Qd();k=Cd(h,"td",f);k=k[0]===k[1]&&"td"===K(k[0])?Cd(h,"div",f):Cd(h,"table,ul,ol",f);g=
k[0];var C=k[1];v=C.nextSibling;k=C.parentNode;g===C?d.gd(g):d.A(g,0,C,C.childNodes.length);g=d.C().cloneContents()}if(g){var L=(new a(g,null,c)).cc.childNodes;g=L[0];var C=L[L.length-1],U=h.startContainer,h=h.endContainer;for(v&&sc(v)&&0===v.length&&(v=null);0<L.length;)null!==v?d.insertBefore(L[0],k,v):d.Db(L[0],k);n.H("edit").V({Lc:!0});h!==k&&h!==f&&h!==U&&d.removeNode(h);U!==f&&U!==k&&d.removeNode(U);h=$b(C);d.A(Zb(g),0,h,h.length)}else new a(f,f,c),d.A(f,0),d.ta();return!0}var d=n.H("context");
n.H("query");var e=n.H("normalize"),f=d.root,g=d.la;g.simpletext={O:!0,action:function(a){null!=a&&Ma("simpletext called with an argument!");return b(c,{Nc:n.H("table")})},enabled:z};g.plaintext={O:!0,action:function(c){var e=null,f=null,f="",e=null;c=zb(c);null!=c.value&&(Ma("plaintext called with non-JSON string"),c={});c=D(c,{fontStyle:"fixed width"});"fixed width"===c.fontStyle?(e=M("tt",{style:"position: absolute;"}),document.body.appendChild(e),f=wc(e),f="font-family:"+f.fontFamily+"; font-size:"+
f.fontSize+"; font-weight:"+f.fontWeight,H(e)):"none"===c.fontStyle&&d.R("removeformat").action();e={cssBlockStyle:f,Nc:n.H("table")};return b(a,e)},enabled:z}};this.cf=function(a){return(new c(a,null,{Nc:n.H("table")})).cc};this.ic=function(b){return(new a(b,null,{Nc:n.H("table"),cssBlockStyle:""})).cc}};function Zf(){this.name="spellcheck";this.root=null;this.F=function(){function a(a,b){var c;null!=a&&null!=b&&3===a.nodeType&&a===b.startContainer&&a===b.endContainer&&!0!==b.collapsed&&(c=a.data.substr(b.startOffset,b.endOffset-b.startOffset),a.replaceData(b.startOffset,c.length,c))}var c=this.H("context"),b=this.H("format");this.root=c.root;this.kb=function(){var e=b.fd(),d,f=X(),g=he(c.root);null!=f&&f.startContainer===f.endContainer&&3===f.startContainer.nodeType&&!1!==f.collapsed&&(f=f.startContainer,
d=window.getSelection(),d.modify("move","backward","word"),d.modify("extend","forward","word"),d=X(),a(f,d),ie(c.root,g),d=window.getSelection(),d.modify("move","forward","word"),d.modify("extend","backward","word"),d=X(),a(f,d),ie(c.root,g));c.Ba();b.sb(e)};return this};this.S=function(){this.root=this.kb=null}};function $f(){var a=this;a.name="stats";a.F=function(){var c=a.H("context"),b=a.H("query"),e=c.root;a.getStats=function(c){var f={};c=D(c,{stats:["todo","firstLine","isEmpty","isDirty","link"]});c=c.stats;B(da(c));-1!==c.indexOf("todo")&&(f.todo=a.H("todo").Sd().length);if(-1!==c.indexOf("firstLine"))for(var g;g=rc(g,e);)if(g&&!ib(g.textContent)){f.firstLine=oc(b.ea(g)).substr(0,255).trim();break}-1!==c.indexOf("isEmpty")&&(f.isEmpty=Hd(e));-1!==c.indexOf("isDirty")&&(f.isDirty=a.H("io").Sb());-1!=
c.indexOf("link")&&(f.link=a.H("link").Kf().length);return f};a.B.A({name:"stats",O:!1,value:function(b){return a.getStats(zb(b))},enabled:z,Ab:!0})}};function ag(){this.name="table";this.F=function(){function a(){var a=b.C(),d=P(a.startContainer,"td",f),e=P(a.endContainer,"td",f),g={Ag:null,vg:null},m=c.L();if(null==m||null==d&&null==e)return g;if("div"===K(a.endContainer)&&"td"===K(a.endContainer.parentNode)&&0===a.endOffset){var g=c.Hc(a.startContainer),r=c.Hc(a.endContainer),m=c.Cd(m);if(0<m.rows&&g.row===r.row&&g.column+1===r.column||g.row+1===r.row&&g.column===m.columns-1&&0===r.column)e=d;null==P(a.endContainer,"td")&&(e=d)}else null==e&&
(e=d);return{startNode:d,endNode:e}}var c=this,b=c.H("context"),e=c.H("query"),d=c.H("block"),f=b.root,g=b.la;c.L=function(){var a=b.C();if(!a)return null;var c=P(a.startContainer,"table",f),a=P(a.endContainer,"table",f);return!c||a&&a!==c?null:c};c.D=function(){return c.L()?P(b.C().startContainer,"tr",f):null};c.Tc=function(){return c.L()?P(b.C().startContainer,"td",f):null};c.J=function(){var a;if(null==a&&(a=c.L(),null==a))return[];var b=window.getSelection(),d=[],e=[],f=[];cb(a.querySelectorAll("td"),
function(a){b.containsNode(a,!1)?(e.push(a),f.push(a)):b.containsNode(a,!0)&&(d.push(a),f.push(a))});return f};c.Hc=function(a){var b={table:null,cell:null,row:-1,column:-1},c=P(a,"table"),d=P(a,"tr");a=P(a,"td,th");if(null==c||null==d||null==a)return b;for(var e=-1,f=-1,g=c.querySelectorAll("tr"),t=0;t<g.length;t++)g[t]===d&&(e=t);if(-1===e)return b;d=d.querySelectorAll("td,th");for(t=0;t<d.length;t++)d[t]===a&&(f=t);return-1===f?b:{table:c,cell:a,row:e,column:f}};c.N=function(a){var b=wc(a.querySelector("td")),
c=parseInt(b.borderWidth,10)||1,d=b.borderColor||"black";cb(Na(a.style),function(b){0<=b.indexOf("border")&&Pc(a,b)});a.removeAttribute("border");T(a,"border-style","solid");T(a,"border-width",c+"px");T(a,"border-color",d);T(a,"border-collapse","collapse");cb(a.querySelectorAll("tr"),function(a){cb(Na(a.style),function(b){0<=b.indexOf("border")&&Pc(a,b)})});cb(a.querySelectorAll("td"),function(a){cb(Na(a.style),function(b){0<=b.indexOf("border")&&Pc(a,b)});T(a,"border-style","solid");T(a,"border-width",
c+"px");T(a,"border-color",d)})};c.Rc=function(a){var b=Oc(a,"float"),c=a.getAttribute("align"),d=a.style.marginLeft;a=a.style.marginRight;var e;null!=b?e=b:null!=c?e=c:"auto"===d&&"auto"===a?e="center":"auto"===d?e="right":"auto"===a&&(e="left");null==e&&(e="left");return e};c.Cd=function(a){if(null==a||!I(a)||"table"!==K(a)||null!=a.querySelector("table"))return{rows:-1,columns:-1};a=a.querySelectorAll("tr");return 0>=a.length?{rows:0,columns:0}:{rows:a.length,columns:a[0].querySelectorAll("td,th").length}};
c.Ae=function(a){for(var b=+a.columns||2,c=+a.rows||2,d=a.borderColor||"rgb(211,211,211)",e=+a.borderWidth||1,f=M("table",{style:"-evernote-table:true;border-collapse:collapse;width:100%;table-layout:fixed;"}),g=Math.round(1E4/b)/100,t=0;t<c;t++){var p=M("tr");f.appendChild(p);for(var q=0;q<b;q++){var A=M("td",{style:"border-style:solid;border-width:"+e+"px;border-color:"+d+";padding:10px;margin:0px;width:"+g+"%;"},[pc()]);a.cellColor&&(A.style.backgroundColor=a.cellColor);p.appendChild(A)}}return f};
g.inserttable={O:!0,action:function(a){if(!b.C()||d.Zc())return!1;var g={};"{"===a[0]?g=D(a,{columns:2,rows:2,borderColor:"rgb(211,211,211)",borderWidth:1,cellColor:null,alignment:"left"}):(a=a.split(","),g.columns=+a[0].trim(),g.rows=+a[1].trim());b.R("insertparagraph").action();a=g.align||"left";var g=c.Ae(g),h=e.ea(b.C().startContainer);h.parentNode.insertBefore(g,h);d.ia(g);b.A(g.querySelector("div"),0);b.R("tablealign").action(a);Y(f,"TABLE_ADDED",{target:g});return!0},state:function(){return!!c.L()},
enabled:function(){return b.hasFocus()&&!d.Zc()&&!d.Fa()}};g.inserttablerow={O:!0,action:function(d){var e=c.L();if(null==e)return!1;d="before"===d.toString().toLowerCase().trim();var g=a(),l=P(g.startNode,"td",f),g=P(g.endNode,"td",f);if(!l&&!g)return!1;l=l.compareDocumentPosition(g)&(d?4:2)?l:g;if(!l)return!1;var l=P(l,"tr",f),g=l.cloneNode(!0),m=g.querySelector("td");cb(g.querySelectorAll("td"),function(a){ac(a);a.appendChild(pc())});b.M(g,e,J(l)+(d?0:1));null!=m&&(b.sc(m,0),b.rc(m,0));Y(f,"TABLE_INSERT_ROW",
{target:e});return!0},state:function(){return!!c.L()},enabled:function(){return b.hasFocus()&&!!c.L()}};g.inserttablecol={O:!0,action:function(d){var e=c.L();if(!e)return!1;var g="before"===d.toString().toLowerCase().trim(),l=a();d=l.startNode;var l=l.endNode,m=d.compareDocumentPosition(l)&(g?4:2)?d:l;if(null==m)return!1;var r=m.cellIndex;cb(Na(e.querySelectorAll("td")),function(a){if(a.cellIndex===r&&e===P(m,"table")){var c=a.cloneNode(!0);ac(c);c.appendChild(pc());var d=Oc(a,"width"),d=window.parseFloat(d)||
0;0<d&&(T(c,"width",d/2+"%"),T(a,"width",d/2+"%"));b.M(c,a.parentNode,J(a)+(g?0:1))}});Y(f,"TABLE_INSERT_COLUMN",{target:e});return!0},state:function(){return!!c.L()},enabled:function(){return b.hasFocus()&&!!c.L()}};g.deletetablerow={O:!0,action:function(){var a=c.D();if(!a)return!1;var d=c.L();if(!d)return!1;var e=V("tr",d);if(1===e.length)return b.R("deletetable").action();e.indexOf(a)===e.length-1?(e=V("td",e[e.length-2]).pop(),b.A(e,O(e))):(e=V("td",e[e.indexOf(a)+1]).shift(),b.A(e,0));b.removeNode(a);
Y(f,"TABLE_DELETE_ROW",{target:d});return!0},state:function(){return!!c.D()},enabled:function(){return b.hasFocus()&&!!c.D()}};g.deletetablecol={O:!0,action:function(){var a=c.Tc();if(!a)return!1;var d=a.cellIndex,e=c.L();if(!e)return!1;var g=V("td",e);if(g.every(function(a){return a.cellIndex===d}))return b.R("deletetable").action();var m=g.filter(function(a){return a.cellIndex===d+1});m&&m.length||(m=g.filter(function(a){return a.cellIndex===d-1}));for(var r=V("tr",e),v=0,t=0;t<r.length;t++)for(var p=
V("td",r[t]),q=0;q<p.length;q++)p[q]===a&&(v=t);b.A(m[v],0);for(t=g.length-1;0<=t;t--)a=g[t],a.cellIndex===d&&b.removeNode(a);Y(f,"TABLE_DELETE_COLUMN",{target:e});return!0},state:function(){return!!c.Tc()},enabled:function(){return b.hasFocus()&&!!c.Tc()}};g.deletetable={O:!0,action:function(){var a=c.L();if(!a)return!1;b.A(a.parentNode,J(a),a.parentNode,J(a)+1);c.H("edit").V()&&Y(f,"TABLE_REMOVED",{target:a});return!0},state:function(){return!!c.L()},enabled:function(){return b.hasFocus()&&!!c.L()}};
g.tablebordercolor={O:!0,action:function(a){var b=a||"black";a=c.L();if(null==a)return!1;c.N(a);T(a,"border-color",b);cb(a.querySelectorAll("td"),function(a){T(a,"border-color",b)});return!0},value:function(){var a=c.L();return null==a?"":(a=wc(a.querySelector("td")).borderColor)?""+a:""},state:function(){return!!c.L()},enabled:function(){return b.hasFocus()&&!!c.L()}};g.tableborderwidth={O:!0,action:function(a){var b=parseInt(a,10);if(isNaN(b)||0>b)return x.warn("Invalid value given to tableborderwidth <$>",
Oa(b)),!1;a=c.L();if(null==a)return!1;c.N(a);T(a,"border-width",b+"px");cb(a.querySelectorAll("td"),function(a){T(a,"border-width",b+"px")});Y(f,"TABLE_BORDER_WIDTH",{target:a,value:b});return!0},value:function(){var a=c.L();if(null==a)return"";a=wc(a.querySelector("td"));return(a=parseInt(a.borderWidth,10))?""+a:"0"},state:function(){return!!c.L()},enabled:function(){return b.hasFocus()&&!!c.L()}};g.tablealign={O:!0,action:function(a){if("left"!==a&&"right"!==a&&"center"!==a)return x.warn("Invalid value given to tablealign <$>"),
!1;var b=c.L();if(null==b)return!1;b.removeAttribute("align");Pc(b,"float");Pc(b,"margin");Pc(b,"margin-right");Pc(b,"margin-left");"left"===a?T(b,"margin-left","0px"):"right"===a?(T(b,"margin-left","auto"),T(b,"margin-right","0px")):"center"===a&&(T(b,"margin-left","auto"),T(b,"margin-right","auto"));Y(f,"TABLE_ALIGN",{target:b,value:a});return!0},value:function(){var a=c.L();return null==a?"":c.Rc(a)},state:function(){return!!c.L()},enabled:function(){return b.hasFocus()&&!!c.L()}};g.tablecellcolor=
{O:!0,action:function(a){a=a||"transparent";var b=c.J();if(0===b.length)return!1;cb(b,function(b){Pc(b,"background");Pc(b,"background-image");Pc(b,"background-attachment");Pc(b,"background-position");Pc(b,"background-clip");Pc(b,"background-repeat");T(b,"background-color",a)});return!0},value:function(){var a=c.J();if(0===a.length)return"";a=a[0].style;return a.backgroundColor?(a=Td(a.backgroundColor),null!=a?a:""):""},state:function(){return!!c.L()},enabled:function(){return b.hasFocus()&&!!c.L()}};
c.Ca=function(a,b,c){3===b&&("msexcel"===c.source&&W('table[border="0"]',a).forEach(function(a){a.setAttribute("border","1");Oc(a,"border")||T(a,"border","1px solid rgb(211,211,211)")}),V("table td:empty",a).forEach(function(a){0===O(a)&&(a.appendChild(M("br")),a.getAttribute(a,"style")||"0"===P(a,"table").getAttribute("cellpadding")&&a.previousElementSibling&&Oc(a.previousElementSibling,"padding")&&T(a,"padding",Oc(a.previousElementSibling,"padding")))}))}}};function bg(){var a=this;this.name="tableselection";this.F=function(){function c(a,b){var c=[],d=[],e=wd(a,"td");if(0<e.length)for(var f=0;f<e.length;f++){var g=e[f];b.containsNode(g,!1)?d.push(g):b.containsNode(g,!0)&&c.push(g)}return{vd:d,nd:c}}function b(){for(var a=d.getElementsByClassName("en-selected");0<a.length;)Vb(a[0],"en-selected")}var e=this.H("context"),d=e.root,f=!1,g,k=ld();this.B.ba(d,"selectionChanged",function(){if(X(d)&&!f&&0!==d.getElementsByTagName("table").length){var a=window.getSelection(),
e=X();k=ld(e.startContainer,e.startOffset,e.endContainer,e.endOffset);b();e&&!e.collapsed&&(a=c(e,a),1>=a.nd.length&&0===a.vd.length||(cb(d.querySelectorAll("table"),function(a){G(a,"en-selected")}),cb(a.nd,function(a){G(a,"en-selected")}),cb(a.vd,function(a){G(a,"en-selected")})))}});this.B.listener(document,"contextmenu",function(d){f=!0;g=a.B.timeout(function(){f=!1},1E3,g);d=d.target;var l=window.getSelection(),m=X();b();td(m,k)||(l=c(m,l),2!==l.nd.length&&1!==l.nd.length||0!==l.vd.length||P(m.startContainer,
"td")===P(m.endContainer,"td")||(m=document.createRange(),m.selectNodeContents(d),e.Pa(m),e.ta()));return!0});b();var n=M("style",{type:"text/css"});n.textContent="td.en-selected { background-color: "+Ne()+" !important;}";document.querySelector("head").appendChild(n)}};function cg(){var a=this;this.name="texttransform";this.F=function(){function c(a){null==a&&(a=document.body);b(a);f(a,function(a){var b="";a=a.split(/(\W+)/gi);for(var c=0;c<a.length;c++)var d=a[c],b=0<d.length?b+(d.charAt(0).toLocaleUpperCase()+d.slice(1).toLocaleLowerCase()):b+d;return b})}function b(a){var b=he(a,!0);a.normalize();ie(a,b)}function e(a){null==a&&(a=document.body);f(a,function(a){return a.toLocaleLowerCase()})}function d(a){null==a&&(a=document.body);f(a,function(a){return a.toLocaleUpperCase()})}
function f(a,b){var c;null==a&&(a=document.body);var d=X();if(d&&!(1>d.toString().length)){sc(d.endContainer)&&0<d.endOffset&&d.endOffset<d.endContainer.textContent.length&&(c=d.endContainer.splitText(d.endOffset),d.setEnd(c,0));sc(d.startContainer)&&0<d.startOffset&&(c=d.startContainer.splitText(d.startOffset),d.setStart(c,0));md(d);for(var e=c=null,f=window.getSelection(),d=document.createTreeWalker(a,4,{acceptNode:function(a){return f.containsNode(a,!1)?1:2}},!1);d.nextNode();)sc(d.currentNode)&&
(d.currentNode.textContent=b(d.currentNode.textContent),c||(c=d.currentNode),e=d.currentNode);d=document.createRange();d.setStartBefore(c);d.setEndAfter(e);md(d)}}var g=a.H("context"),k=g.root,g=g.la;g.lowercase={O:!0,action:function(){e(k);return!0}};g.uppercase={O:!0,action:function(){d(k);return!0}};g.capitalize={O:!0,action:function(){c(k);return!0}}}};function dg(){var a=this;a.name="todo";var c;a.F=function(){function b(a,b){for(var c=0;c<a.length;c++){var d=a[c];b?G(d,"en-todo-checked"):Vb(d,"en-todo-checked")}}function e(a,b){Wb(a,"en-todo-checked");Y(c,"setDirty",{Ec:!0===b})}function d(a){var b=a.target;if(!g.Va()){var d=V("li.en-todo-over",c);(a=f(a))&&G(b,"en-todo-over");for(var e=0;e<d.length;e++){var h=d[e];a&&h.isEqualNode(b)||Vb(h,"en-todo-over")}}}function f(a){var b=a.target;return R(b,"li")&&F(b.parentNode,"en-todo-list")&&40>a.clientX-
b.getBoundingClientRect().left}var g=a.H("context"),k=a.H("query"),n=a.H("block"),h=a.H("normalize"),l=a.H("undo");c=g.root;var m=g.la;(function(){var a=V(".en-preload");a&&0<a.length||(a=M("div",{style:"position:absolute; top: 0; left: 0; width: 0; height: 0;","class":"en-preload"}),document.body.appendChild(a))})();a.fe=function(a){var b=null;Xc(a,function(a){return Q(a,".en-todo")?(b=a,!0):$c(a)||k.T(a)?!1:!0},a);return b};a.lf=function(b){if(!Q(b,"div,li"))return!1;var c=a.fe(b);if(!c)return!1;
for(var d=b.childNodes.length-1;0<=d;d--){var e=b.childNodes[d];if(e!==c&&(sc(e)&&!$c(e)||!k.qa(e)))return!1}return!0};a.ac=function(){return M("img",{"class":"en-todo",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"})};a.Id=function(b){var c=a.ac(),d=k.Cc(b,0);g.M(c,I(d[0])?d[0]:d[0].parentNode,0);n.Wa(b);return c};a.Sd=function(){return V(".en-todo",c)};a.D=function(a){if(a&&a.parentNode){var b=a.parentNode,c=a.nextSibling;if(c&&sc(c)){var d=c.textContent,e=
d.trimLeft(d);d!==e&&(0==e.length?g.removeNode(c):c.textContent=e)}g.removeNode(a);n.Wa(b)}};a.B.listener(c,"mousemove",d);a.B.listener(c,"mouseout",d);a.B.listener(c,"blur",d);var r=!1;a.B.ba(c,"selectionChanged",function(a){!0===r&&(nd(a.mb,c)&&md(a.mb),r=!1)});a.B.listener(c,"click",function(a){r=!1;if((Q(a.target,".en-todo")||f(a))&&!g.Va())return l.flush(),e(a.target,!0),r=!0,Id(a)});m.controltodos={O:!0,action:function(d){var e=g.C();if(!e||!g.K())return!1;var f=a.Sd();e.collapsed||(f=wd(e,
".en-todo"),e=rd(e),(e=Yc(e,".en-todo",k.ea(e)||c))&&f.push(e));if(d&&"toggle"!=d)if("on"==d)b(f,!0);else if("off"==d)b(f,!1);else return!1;else for(d=f,f=0;f<d.length;f++)Wb(d[f],"en-todo-checked");return!0}};m.inserttodo={O:!0,action:function(b){var d=g.C();if(!d||!g.K())return!1;if("toggle"===b){b=rd(d);var f=P(b,"ul.en-todo-list > li",c);if(f||(f=Yc(b,".en-todo",k.ea(b)||c)))return e(f,!1),!0}if(d.collapsed)return b=a.ac(),a.H("paste").insertNode(b),n.Wa(b),!0;h.Ob();if((b=a.Sd().filter(function(a){return d.intersectsNode(a)}).reverse())&&
0<b.length)return b.map(function(b){a.D(b)}),!0;(b=V("div,li",c).filter(function(a){return d.intersectsNode(a)}))&&0<b.length&&(b.map(function(b){ib(b.textContent)||a.Id(b)}),d=g.C(),g.A(b[0],0,d.endContainer,d.endOffset));return!0},enabled:function(){return g.hasFocus()&&!n.Fa()}}};a.S=function(){V(".en-preload").forEach(H)};a.Ca=function(b,c){1===c?W("en-todo",b).forEach(function(b){var c=a.ac();Wb(c,"en-todo-checked","true"==b.getAttribute("checked"));bc(b,c)}):(W("input[type=checkbox]",b).forEach(function(b){var c=
a.ac();Wb(c,"en-todo-checked",b.checked);bc(b,c)}),W('span[data-en-input-type="checkbox"]',b).forEach(function(b){var c=a.ac(),e=b.getAttribute("data-en-checked");Wb(c,"en-todo-checked","true"===e);bc(b,c)}),W('embed[type="evernote/x-todo"]',b).forEach(function(a){var c=hc(b,"img",{"class":"en-todo"});"true"===a.getAttribute("todo-checked")&&G(c,"en-todo-checked");bc(a,c)}))};a.Ia=function(a,c){if(1===c)W(".en-todo",a).forEach(function(c){var d=hc(a,"en-todo");F(c,"en-todo-checked")&&d.setAttribute("checked",
"true");bc(c,d)});else{var d;3===c&&(d=function(c){var d=hc(a,"span",{"data-en-input-type":"checkbox"});F(c,"en-todo-checked")?(d.setAttribute("data-en-checked","true"),d.appendChild(document.createTextNode("\u2713"))):d.appendChild(document.createTextNode("\u2610"));bc(c,d)});d&&W(".en-todo",a).forEach(function(a){d(a)})}}};function eg(){var a=this;a.name="transform";a.nb=function(c,b,e){function d(c){var d=[];3===b&&(W("meta",c).forEach(function(a){d.push(a)}),W("title,script,style,link,base,meta",c).forEach(H));var e=f.info||{};0<d.length&&(e.meta=d);mf(c);1!==b&&ff(c);hf(c);jf(c);gf(c);a.Bb.L().forEach(function(d){d!==a&&d.Ca&&d.Ca(c,b,e)});return c}B(0<b,"You need to set mode for export!");var f=D(e,{info:{},Fd:3===b});if(c instanceof DocumentFragment)return f.Fd=!0,d(c);vc(c)?(e=c.ownerDocument.createRange(),e.selectNodeContents(c),
e=e.extractContents(),d(e),c.appendChild(e)):d(c);f.Fd||of(c);return c};a.Qc=function(c,b,e){B(0<b,"You need to set mode for export!");var d=D(e,{info:{}});Pc(c,"zoom");Hc(c,!1);a.Bb.L().forEach(function(e){e!==a&&e.Ia&&e.Ia(c,b,d.info||{})});1===b&&ff(c)}};function fg(){var a=this;a.name="clearly";a.G=null;a.F=function(c){a.G=D(c);G(a.G.root,"en-clearly-style-on")};a.S=function(){Vb(a.G.root,"en-clearly-style-on")}};function gg(){this.name="hello";this.Ca=function(a,c){var b=a.querySelectorAll("span[style='x-evernote:hello-encounter']");if(!(null==b||1!==c&&2!==c||0>=b.length)){b&&1<b.length&&x.warn("Hello note with multiple span style markers?");for(var b=b[0],e=0;e<b.childNodes.length;e++){var d=b.childNodes[e],f=Oc(d,"margin-top");f&&0>parseInt(f,10)&&T(d,"margin-top","0px")}}}};var hg=function(){function a(a,c){this.Qa=a;this.ua=c;this.nf=c.baseURL+"/";this.bd={};this.Kc={}}var c=0;a.prototype.registerStringTable=function(a,c){B(!this.Kc[a],"Table is already defined",this.Qa,a);this.Kc[a]=c};a.prototype.installCSS=function(a){var e="module-css-"+c++;a=M("link",{rel:"stylesheet",type:"text/css",id:e,href:a});document.querySelector("head").appendChild(a);this.bd[e]=a;return e};a.prototype.removeCSS=function(a){B(this.bd[a],"Could not find CSS with ID: "+a)};a.prototype.bg=
function(a,c){B(w(a),"tableName must be a string.");B(fa(c),"stringMap must be a string map object.");B(!this.Kc[a],"This table already exists.");this.Kc[a]=c};a.prototype.localizedStringFromTable=function(a,c){B(a&&a.length&&c&&c.length,"Table and key must be valid strings.");return this.Kc[a][c]};a.prototype.localizedString=function(a,c){return this.localizedStringFromTable("default",a,c)};a.prototype.S=function(){Object.keys(this.bd).forEach(function(a){this.removeCSS(a)},this);this.bd={}};a.prototype.bundleURL=
function(a){return this.nf+a};return a}();var ig=function(){function a(a){this.Qa=a}a.prototype.wd=function(){return"Module '"+this.Qa+"': "};a.prototype.logAs=function(a,b){var e=Array.prototype.slice.call(arguments,1);null==this[a]?(this.error("Unrecognized log level: <"+a+">. Logging as error."),this.error.apply(this,e)):this[a].apply(this,e)};a.prototype.info=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this.wd());x.info.apply(null,a)};a.prototype.warn=function(a){var b=Array.prototype.slice.call(arguments);b.unshift(this.wd());
x.warn.apply(null,b)};a.prototype.error=function(a){var b=Array.prototype.slice.call(arguments);b.unshift(this.wd());x.error.apply(null,b)};return a}();function jg(){this.draggingPasteData=this.draggingElement=this.draggingLocationY=this.draggingLocationX=this.draggingType=this.draggingState=null}
var kg=function(){function a(a,b){this.L=b;this.I=[];this.A=[];this.B=a}a.prototype.bf=3;a.prototype.W=function(a){for(var b=0;b<this.I.length;b++){var e=this.I[b];if(e.element===a)return e}return null};a.prototype.Qf=function(a,b,e,d,f){function g(a,c){var f=new jg;f.draggingType=e;f.draggingLocationX=a;f.draggingLocationY=c;f.draggingElement=b;f.draggingPasteData=d;return f}if(this.W(b))B(!1,"The draggable element ",b," already registered.");else{var k=this,n=!1,h=0,l=null,m=!1,r=0,v=0,t=[],t=this.B.listener(b,
"mousedown",function(d){var e=d.pageX,p=d.pageY;n=!0;r=e;v=p;h=b.style.zIndex;b.style.zIndex=1E3;d=k.P(e,p);var q=k.M(d),e=g(e,p);e.draggingState=0;f(e);e.draggingState=0;q?(m=!q(e),l=d):k.L(a,e)}),p=this.B.listener(b,"mousemove",function(d){if(n){d.preventDefault();var e=d.pageX;d=d.pageY;var h=k.P(e,d),p=k.M(h),q=k.M(l),t=g(e,d);b.style.webkitTransform="translate("+(e-r)+"px, "+(d-v)+"px)";t.draggingState=1;f(t);m&&l?l=h:h?(l==h?(t.draggingState=1,p(t)):(t.draggingState=2,l?q&&q(t):k.L(a,t),t.draggingState=
0,m=!p(t)),l=h):(l?(q&&(t.draggingState=2,q(t)),t.draggingState=0):t.draggingState=1,k.L(a,t),l=null,m=!1)}}),q=this.B.listener(b,"mouseup",function(d){var e=d.pageX,p=d.pageY;n&&(d=k.P(e,p),d=k.M(d),e=g(e,p),p=!1,e.draggingState=3,p=!m&&d?!d(e):!k.L(a,e),e.draggingState=p?3:2,f(e),b.style.webkitTransform="",b.style.zIndex=h,l=null,n=!1)}),t=[t,p,q];this.I.push({element:b,Qa:a,pf:t})}};a.prototype.cg=function(a){for(var b=0;b<this.I.length;b++){var e=this.I[b];if(e.element===a){var d=this;e.pf.forEach(function(a){d.B.remove(a)});
this.I.splice(b,1);break}}};a.prototype.X=function(a,b,e){a=a.getBoundingClientRect();return b<a.left+document.body.scrollLeft||b>a.right+document.body.scrollLeft||e<a.top+document.body.scrollTop||e>a.bottom+document.body.scrollTop?!1:!0};a.prototype.P=function(a,b){for(var e=0;e<this.A.length;e++){var d=this.A[e];if(this.X(d.element,a,b))return d.element}return null};a.prototype.V=function(a){if(!a)return null;for(var b=0;b<this.A.length;b++){var e=this.A[b];if(e.element===a||tc(a,e.element))return e}return null};
a.prototype.M=function(a){return(a=this.V(a))?a.Hf:null};a.prototype.Rf=function(a,b,e){this.V(b)?B(!1,"The drop handler for ",b," already registered."):this.A.push({element:b,Qa:a,Hf:e})};a.prototype.dg=function(a){for(var b=0;b<this.A.length;b++)if(this.A[b].element===a){this.A.splice(b,1);break}};return a}(),lg=function(){function a(a,b){this.Qa=a;this.J=b}a.prototype.DRAGGING_SOURCE_STATE_STARTED=0;a.prototype.DRAGGING_SOURCE_STATE_MOVED=1;a.prototype.DRAGGING_SOURCE_STATE_ENDED=2;a.prototype.DRAGGING_SOURCE_STATE_CANCELED=
3;a.prototype.DRAGGING_DESTINATION_STATE_ENTERED=0;a.prototype.DRAGGING_DESTINATION_STATE_MOVED=1;a.prototype.DRAGGING_DESTINATION_STATE_EXITED=2;a.prototype.DRAGGING_DESTINATION_STATE_RELEASED=3;a.prototype.makeElementDraggable=function(a,b,e,d){this.J.Qf(this.Qa,a,b,e,d)};a.prototype.removeDraggableElement=function(a){this.J.cg(a)};a.prototype.makeElementDropContainer=function(a,b){this.J.Rf(this.Qa,a,b)};a.prototype.removeDropContainer=function(a){this.J.dg(a)};return a}();var mg=function(){function a(a){this.gb=a}a.prototype.getContentClass=function(a){return a.getAttribute("en-content-class")};a.prototype.setContentClass=function(a,b){a.setAttribute("en-content-class",b)};a.prototype.removeContentClass=function(a){a.removeAttribute("en-content-class")};a.prototype.getAppDataValue=function(a,b){return Qc(a,b)};a.prototype.setAppDataValue=function(a,b,e){Sc(a,b,e)};a.prototype.removeAppDataValue=function(a,b){Rc(a,b)};return a}();var ng=function(){function a(a){this.I=a;this.B=new Re}a.prototype.F=function(){this.B.F({name:this.I+"-gesture-recognizer"})};a.prototype.S=function(){this.B.S()};a.prototype.A=function(a,b,e){return this.B.listener(a,"tap",b,e)};a.prototype.tapGestureRecognizer=function(a,b,e){return this.A(a,b,e?{touchCount:e}:e)};a.prototype.pinchGestureRecognizer=function(a,b){return this.B.listener(a,"pinch",b,null)};a.prototype.rotationGestureRecognizer=function(a,b){return this.B.listener(a,"rotate",b,null)};
a.prototype.swipeGestureRecognizer=function(a,b){return this.B.listener(a,"swipe",b,null)};a.prototype.panGestureRecognizer=function(a,b){return this.B.listener(a,"pan",b,null)};a.prototype.longPressGestureRecognizer=function(a,b,e){return this.B.listener(a,"press",b,e?{time:e}:null)};a.prototype.removeGestureRecognizerReference=function(a){this.B.remove(a)};return a}();var og=function(){function a(a){this.gb=a;this.dc=null}a.prototype.F=function(){mc(this.gb,document.createElement("div")).classList.add("en-module-content")};a.prototype.Jd=function(a,b){this.dc&&this.gb.removeChild(this.dc);Vb(this.gb,"en-module-unknown");G(this.gb,a);var e=M("div",{});jc(e,b);this.dc=M("div",{"class":"en-module-overlay"});this.dc.appendChild(e);this.gb.appendChild(this.dc)};a.prototype.$d=function(){this.Jd("en-module-broken","Broken module")};a.prototype.lg=function(){var a=this.gb.getAttribute("data-en-module-title"),
a=a&&a.length?a:"Unknown module";this.Jd("en-module-unknown",a)};a.prototype.Re=function(a){B(w(a),"Module title is required");this.Jd("en-module-loading",'Loading "'+a+'"')};a.Ve=function(a){var b=a.querySelector(".en-module-content");B(b,"Element is not wrapped");Na(a.childNodes).forEach(function(e){e!=b&&a.removeChild(e)});cc(b)};a.Ee=function(a){a.style.cssText="border: 2px solid #CCC; background-color: #EEE; padding: 10px; color: #888;"};a.prototype.S=function(){var c=this.gb;Vb(c,"en-module-loading");
a.Ve(c);this.dc=this.gb=null;return c};return a}();var pg=function(){function a(a,d,f){B(I(d),"Container required",d);this.I=d.cloneNode(!0);this.A=!1;this.module=null;this.element=d;this.elementID=f;this.scriptHandler=a;this.node=new b(this);this.gestureRecognizer=new c(f)}var c=ng,b=mg;a.prototype.F=function(){var a=this.scriptHandler.script;B(a,"ScriptHandler has no script?");B(!this.module,"Already setup?");this.gestureRecognizer.F();var b=null;try{b=a.createModule(this)}catch(c){x.error("Could not create new module.",this.scriptHandler.moduleName,
c),qb(c)}if(!b)return!1;["setupFromStore","setupWithInsertionData","saveENML"].forEach(function(a){B(ea(b[a]),"Expected a module method",a,b.moduleName,b)});this.module=b;return!0};a.prototype.hg=function(){var a=!1;if(!this.F())return a;try{a=this.module.setupFromStore()}catch(b){x.error("Could not setup module",this.scriptHandler.moduleName,b),qb(b)}return a};a.prototype.kg=function(a){var b=!1;if(!this.F())return b;try{b=this.module.setupWithInsertionData(a)}catch(c){x.error("Could not setup module",
this.scriptHandler.moduleName,c),qb(c)}return b};a.prototype.S=function(){this.gestureRecognizer.S();var a=this.module;if(a){if(a.cleanup)try{a.cleanup()}catch(b){x.error("Could not cleanup module.",this.scriptHandler.moduleName,b),qb(b)}var c=this.scriptHandler.script;if(c.removedModule)try{c.removedModule(a)}catch(b){x.error("Could not remove module.",b),qb(b)}this.module=null}};a.prototype.fg=function(){function a(){for(var e=b.I.cloneNode(!0);e.firstChild;)c.appendChild(e.firstChild)}var b=this,
c=document.createElement("div");if(this.A){var g=document.createDocumentFragment();try{b.module.saveENML(g,!0),c.appendChild(g)}catch(k){x.error("Could not serialize module. Using original content.",k),a(),qb(k)}}else a();g=this.node;g.setAppDataValue(c,"en-module-name",this.scriptHandler.moduleName);g.setAppDataValue(c,"en-module-title",this.scriptHandler.Bd());g.setContentClass(c,"evernote.module");return c};a.prototype.removeModule=function(){this.element.parentElement.removeChild(this.element);
this.cd()};a.prototype.cd=function(){this.scriptHandler.eg(this);this.S()};a.prototype.markAsDirty=function(){this.A=!0};a.prototype.purgeContent=function(){for(var a=this.element;a.firstChild;)a.removeChild(a.firstChild)};a.prototype.genericPreview=function(){var a=document.createElement("div");this.node.setContentClass(a,"en-module-generic-preview");a.appendChild(document.createTextNode('Unknown module : "'+this.scriptHandler.Bd()+'"'));a.style.cssText="text-align: center; padding: 20px";return a};
return a}();var qg=function(){function a(a,b){this.Qa=a;this.U=b;this.A={};b.$f(this)}a.prototype.S=function(){this.U.og(this)};a.prototype.sendMessage=function(a,b,e){this.U.sendMessage(this,a,b,e)};a.prototype.registerMessageHandler=function(a,b){this.A[a]=b};a.prototype.Gf=function(a,b,e){var d=this.A[a];if(!d)return x.log("Unexpected message received",a),!1;1==d.length?(d(b),e({})):d(b,e);return!0};return a}();var rg=function(){function a(){this.A={};this.I={};this.L={}}var c=0;a.prototype.$f=function(a){var c=a.Qa.toLowerCase();B(!this.A[c],c,"App channel is already registered");this.A[c]=a};a.prototype.og=function(a){a=a.Qa.toLowerCase();B(!!this.A[a],a,"App channel is not registered");delete this.A[a]};a.prototype.sendMessage=function(a,e,d,f){a=a.Qa.toLowerCase();x.log("Module",a,"sendMessage",e,d);e={type:"message",moduleName:a,messageName:e,data:d?d:{}};f&&(d=""+c++,this.I[a+":"+d]=f?f:null,e.messageID=
d);we("modulePublished",e)};a.prototype.Ff=function(a){x.log("Module receives",a);B(bb(a),"Bad message payload",a);switch(a.type){case "message":this.M(a);break;case "reply":this.P(a)}};a.prototype.M=function(a){var c=this,d=a.moduleName,f=a.messageName,g=a.messageID,k=a.data;B(d&&f&&k,"Bad native message payload",a);if(a=this.A[d.toLowerCase()]){var n=function(){};if(g){var h=d+":"+g;this.L[h]=d;n=function(a){a={type:"reply",moduleName:d,messageName:f,messageID:g,data:a?a:{}};delete c.L[h];we("modulePublished",
a)}}a.Gf(f,k,n)||n({})}else x.log("Module call failed - not loaded",d)};a.prototype.P=function(a){var c=a.moduleName,d=a.messageName,f=a.messageID,g=a.data;B(c&&d&&f&&g,"Bad native response payload",a);c=c+":"+f;(d=this.I[c])?(d(a.data),delete this.I[c]):x.log("Unexpected response received",a)};return a}();var sg=function(){function a(a,g,k,n,h){B(w(h.baseURL),"baseURL is required");B(da(h.urls),"Array of urls is required");B(w(h.title),"Module title is required");this.P=a;this.ua=h;this.A={};this.script=this.L=this.I=null;this.moduleName=g;this.bundle=new b(g,h);this.console=new e(g);this.dragAndDrop=new d(g,n);this.nativeChannel=new c(g,k)}a.ve=0;a.sd=1;a.Pc=2;a.rd=3;var c=qg,b=hg,e=ig,d=lg;a.prototype.Pf=function(){function a(c){e.forEach(function(a){a=M("script",{type:"text/javascript",src:d+"/"+
a});a["data-en-module-name"]=b.moduleName;a.scriptHandler=b;c.appendChild(a)})}var b=this,c=this.ua.mode,d=this.ua.baseURL,e=this.ua.urls;B(da(e),"No script URLs provided");B(!this.I,"Scripts are already loaded?");this.I=e;switch(c){default:case "iframe":var c=M("script",{type:"text/javascript"},["var scriptHandler = frameElement.scriptHandler;"]),l=M("iframe",{style:"position:absolute;width:1px;height:1px;top:-999px;left:-999px;display:none;"});l["data-en-module-name"]=b.moduleName;l.scriptHandler=
b;document.body.appendChild(l);l.contentDocument.head.appendChild(c);a(l.contentDocument.head);break;case "script":a(document.head)}};a.prototype.registerModuleScript=function(b){B(this.state()==a.sd,"Modules can only be registered once!",this.moduleName,b);B(this.moduleName===b.moduleName,"Module names do not match");B(!this.script,"Module is already setup?");["createModule","setup"].forEach(function(a){B(ea(b[a]),'Expected a module method "'+a+'"',b.moduleName,b)});this.script=b;window.TEST&&(B(!!window.testHook_registerModuleScript,
"Test hook provided by TestModuleEnvironment is missing"),window.testHook_registerModuleScript(this,b));try{b.setup(this)}catch(c){x.error("Could not setup script",this.moduleName,c),this.L=c,qb(c)}this.P.mf(this.moduleName)};a.prototype.registerModuleLocalization=function(a,b,c){B(this.moduleName===a,"Module names do not match");window.TEST&&(B(!!window.testHook_registerModuleLocalization,"Test hook provided by TestModuleEnvironment is missing"),window.testHook_registerModuleLocalization(a,b,c));
this.bundle.bg(b,c)};a.prototype.state=function(){return this.L?a.rd:this.script?a.Pc:this.I?a.sd:a.ve};a.prototype.isReady=function(){return this.state()==a.Pc};a.prototype.S=function(){try{this.script.cleanup()}catch(a){x.error("Could not cleanup script",this.moduleName,a),qb(a)}this.bundle.S();this.I=this.script=null};a.prototype.If=function(a){return!!this.A[a]};a.prototype.gg=function(a){var b=this.A[a];return b?b.fg():(x.error("Could not serialize module. (Module could not be loaded?)",this.moduleName,
a),null)};a.prototype.jg=function(a,b){var c=!1,d=new pg(this,a,b);d&&(this.A[b]=d,(c=d.hg())||d.cd());return c};a.prototype.ig=function(a,b,c){var d=!1;if(a=new pg(this,a,b))this.A[b]=a,(d=a.kg(c))||a.cd();return d};a.prototype.M=function(){var a=this;return Na(document.getElementsByClassName("en-module")).filter(function(b){return b.getAttribute("data-en-module-name")==a.moduleName})};a.prototype.Fe=function(){var a=this.ua.localizedTitle;return a&&(B(w(a),"Title must be a string"),a.length)?a:
this.Bd()};a.prototype.Bd=function(){return this.ua.title};a.prototype.allModuleIDs=function(){return this.M().map(function(a){return a.getAttribute("id")})};a.prototype.moduleHandlerWithID=function(a){a=this.A[a];return a?a:(x.warn("Requested module handler doesn't exist. Probably it is not loaded yet."),null)};a.prototype.eg=function(a){delete this.A[a.elementID]};a.prototype.mg=function(a){var b=this.script.supportDropIntoEditorForType;return b?b(a):!1};return a}();function tg(){var a=this;a.name="module";a.F=function(c){function b(b,c,d){var e=pb("en-module"),g=M("div",{id:e,"class":"en-module",contentEditable:"false"});g.setAttribute("data-en-module-name",b);g.classList.add("en-module-newly-inserted");c&&(a.Y[e]=c);d.parentNode.insertBefore(g,d);k.ia(g);f.gd(g)}function e(b){B(b.ownerDocument==window.document,"Trying to setup loader for module of element that is not in DOM");var c=b.id;B(!a.N[c],"Loader is already setup?");b=new og(b);b.F();return a.N[c]=
b}function d(b,c){var d=c.id;B(a.N[d].gb==c,"Bad loader configuration");if(b.state()==sg.rd)a.N[d].$d();else{B(b.state()==sg.Pc,"Unexpected script state");var f=a.N[d];B(f,"This module did not go through the loader phase?");f=f.S();delete a.N[d];if(f.classList.contains("en-module-newly-inserted")){var g=a.Y[d];delete a.Y[d];if(b.ig(f,d,g)){Vb(f,"en-module-newly-inserted");return}}else if(b.jg(f,d))return;e(f).$d()}}var f=a.H("context"),g=a.H("query"),k=a.H("block"),n=f.root;c=D(c,{Ld:null});a.J=new kg(a.B,
function(c,d){var e=a.D[c];if(!e||!e.mg(d.draggingType))return!1;switch(d.draggingState){case a.J.bf:var e=d.draggingElement.style,f=e.display;e.display="none";var h=document.elementFromPoint(d.draggingLocationX,d.draggingLocationY);e.display=f;if(P(h,".en-module"))return!1;e=g.ea(h);f=document.getElementById("en-note");f===e&&(e=pc(),0>=d.draggingLocationY?f.insertBefore(e,f.children[0]):f.appendChild(e));b(c,{type:d.draggingType,data:d.draggingPasteData},e)}return!0});a.U=new rg;a.D={};a.N={};a.Y=
{};if(bb(c.Ld)){var h=c.Ld;Object.keys(h).forEach(function(b){var c=h[b];B(!a.D[b],"Script handler is already registered",b);a.D[b]=new sg(a,b,a.U,a.J,c)})}a.B.I("moduleScript",function(b){var c=b.moduleName;B(w(c)&&0<c.length,'Expected "moduleName" for module!',b);c=a.D[c];B(c,"Unexpected script registration",b);c.registerModuleScript(b)});a.B.I("moduleLocalization",function(b){var c=b.moduleName,d=b.tableName,e=b.stringMap;B(w(c),"moduleName must be a string.");var f=a.D[c];B(f,"Localization for unknown module",
b);f.registerModuleLocalization(c,d,e)});a.B.A({name:"module",action:function(a){a=Ab(a);if(null==a)return!1;for(var c=0;c<a.length;c++){var d=a[c];if("insert"===d.action){var e=d.moduleName;w(e)?(f.R("insertparagraph").action(),d=g.ea(f.C().startContainer),b(e,null,d)):x.error("No name for insert provided",d)}}return!0},value:function(a){var b=[];a&&(b=V("div.en-module",n).filter(function(b){return b.getAttribute("data-en-module-name")===a}).map(function(a){return a.id}));return{result:b}},enabled:z});
a.B.A({name:"module-channel",value:function(b){a.U.Ff(b);return null},enabled:z});a.mf=function(b){var c=a.D[b];B(c,"Unknown module",b);V("div.en-module",n).forEach(function(a){a.getAttribute("data-en-module-name")==b&&d(c,a)})};a.H("observer").Ud("div.en-module",function(b){var c=b.getAttribute("data-en-module-name");if(b.getAttribute("data-en-module-name")){var f=e(b);if(c=a.D[c])switch(c.state()){case sg.rd:f.$d();break;case sg.Pc:d(c,b);break;case sg.sd:f.Re(c.Fe());break;case sg.ve:f.Re(c.Fe()),
c.Pf()}else f.lg()}else x.warn("Found module without a name.")},function(b){var c=b.getAttribute("data-en-module-name"),d=a.D[c];d?(b=d.wg(b.id))?b.cd():x.error("Could not find module handler.",b):x.error("Could not find script handler.",c)});a.Ca=function(a){V('div[en-content-class="evernote.module"]',a).forEach(function(a){var b="en-module-"+ob().toString(),c=Qc(a,"en-module-name"),d=Qc(a,"en-module-title");c?(a.removeAttribute("en-content-class"),a.removeAttribute("en-app-data"),a.removeAttribute("style"),
a.classList.add("en-module"),a.setAttribute("data-en-module-name",c),d?a.setAttribute("data-en-module-title",d):x.warn("Could not read module's title.",c),a.setAttribute("id",b),a.setAttribute("contentEditable","false")):(x.error("Stripped damaged module without a type"),a.parentElement.removeChild(a))})};a.Ia=function(b){V("div.en-module",b).forEach(function(b){var c=b.id,d=b.getAttribute("data-en-module-name"),e=b.getAttribute("data-en-module-title");if(b.classList.contains("en-module-newly-inserted"))b.parentNode.removeChild(b);
else{B(0!=d.length,"Malformed module found");var f=a.D[d];f&&f.If(c)?(c=f.gg(c))?(og.Ee(c),b.parentNode.replaceChild(c,b)):(x.error("Could not serialize module. Discarding module content!",d),b.parentNode.removeChild(b)):(B(a.N[c],"Element must be either handled by application or in unloaded state."),og.Ve(b),b.removeAttribute("class"),b.removeAttribute("data-en-module-name"),b.removeAttribute("id"),b.removeAttribute("contenteditable"),b.setAttribute("en-content-class","evernote.module"),Sc(b,"en-module-name",
d),e&&Sc(b,"en-module-title",e),og.Ee(b))}})}}};function ug(){function a(){b.B.timeout(function(){zd(X())})}function c(){b.B.I("selectionChange",b.Ja.bind(b));if(b.G.smartHeight){var c=document.body,d=function(){var a=window.innerHeight-0-32;c.style.minHeight="";a>c.clientHeight&&(c.style.minHeight=a+"px")};d();b.B.I("windowResize",d,1E3)}b.G.smartScroll&&b.B.I("execCommand",function(b){-1!==xa.indexOf(b.name)&&a()});b.G.smartList&&G(b.root,"en-smart-list");b.G.smartPlaceholder&&(d=function(){Wb(b.root,"en-note-is-empty",Gd(b.root))},d(),b.B.ba(b.root,
"setDirty",d));b.G.smartDelete&&b.B.ba(b.root,"beforeInput",function(a){var c=a.ma;c&&!1===c.collapsed&&(b.D.flush(),Z.execCommand("delete"),a.ma=X(a.element),a.Cb.xa=a.ma.startContainer,a.Cb.offset=a.ma.startOffset)},0);b.B.ba(b.root,"anyInput",function(){Y(b.root,"setDirty",!0)});if(b.G.smartEnd){var d=null,f=b.G.smartEndSelector;null!=f&&(d=document.querySelector(f));null==d&&(d=M("div",{"class":"en-smart-end"}),b.root.parentNode.insertBefore(d,b.root.nextSibling));(function(a){b.B.listener(a,
"click",function(c){if(a===c.target){var d=ld(b.root,O(b.root));md(d);var d=b.ja().A("context"),e=b.ja().A("normalize");d.Ba();e.Ob();d=Fc(sd(d.C()));e=!1;d?Q(d,"img,object,embed,table,hr,.en-crypt,.en-crypto,.en-container,.en-module")||P(d,"img,object,embed,table,hr,.en-crypt,.en-crypto,.en-container,.en-module")?e=!0:Q(d.lastElementChild,"img,object,embed,table,hr,.en-crypt,.en-crypto,.en-container,.en-module")&&(e=!0):e=!0;e&&(b.root.appendChild(pc()),d=ld(b.root,O(b.root)),md(d));return Id(c)}})})(d)}}
var b=this;B(this instanceof ug,"Use `new` to instantiate this class");b.name="rte";b.F=function(a){b.G=D(a,{active:!0,highlightMagic:!1,skipMarkupTransform:!1,placeholder:"",trackStateChanges:null,trackValueChanges:null,trackEnabledChanges:null,tableResizing:!1,imageResizing:!1,tableSelection:!1,typebehind:{emoticon:!1,url:!1,email:!1,list:!1,inline:!1,todo:!1,horizontalrule:!1,code:!1,table:!1},mutationObserver:!1,undoOnIdle:6,cryptLegacy:!0,resources:null,smartScroll:!1,smartHeight:!1,smartDelete:!1,
smartPlaceholder:!0,smartEnd:!1,smartEndSelector:null,smartList:!1,smartMarginThreshold:24,smartEditMode:!1,imageConfig:{},selector:null,html:null,enml:null,modules:null,clearly:null,root:null});b.G.imageConfig=D(b.G.imageConfig,{annotate:!1,imageClickEvents:!1,images:null,preview:!1,resize:!1,rotate:!1});var d=b.G.imageConfig;d.bubbleImageClicks=d.resize;w(b.G.selector)?b.root=document.querySelector(b.G.selector):b.root=b.G.root||document.getElementById("en-note")||document.body;B(b.root&&I(b.root),
"Root not valid!");B(I(b.root),"RTE root node required to be an HTML element! <$>");var f=b.ja();b.B.Ic({zb:["rte","content"]});f.V(function(a){a.B.Ic({zb:["rte","content"]})});b.wb=null;b.Mf=!!(b.G.trackStateChanges||b.G.trackValueChanges||b.G.trackEnabledChanges);var g=new cf;f.F(g,{root:b.root,G:b.G});g.Qe(!b.G.active);f.F(new ef);var k=new qf;f.F(k);f.F(new df);f.F(new rf);b.D=!0===b.G.mutationObserver?new Ve:new Ue;f.F(b.D,{element:b.root,cb:function(){g.Ba();return JSON.stringify(k.fd())},fc:function(a){g.Ba();
k.sb(JSON.parse(a))}});b.J=new sf;f.F(b.J);var n=b.G.tableResizing;b.G.imageResizing&&(d.resize=!0);var h=b.G.tableSelection;f.F(new je);b.ha=new le;f.load(b.ha);f.F(new We,{element:b.root});f.F(new Sf);f.F(new Ef);f.F(new uf);f.F(new vf);f.F(new Df);f.F(new ag);f.F(new dg);f.F(new Cf);f.F(new Vf);f.F(new Uf);f.F(new $f);f.F(new cg);f.F(new Yf);f.F(new Zf);f.F(new gg);null!=b.G.modules&&f.F(new tg,{Ld:a.modules});b.G.emoticons&&(Ma("Use typebehind: { emoticon: true } instead of adding","emoticons: true directly to the rte options."),
b.G.typebehind.emoticon=!0);f.F(new Of,b.G.typebehind);bb(b.G.resources)&&f.F(new Wf,{resources:b.G.resources,smartMarginThreshold:b.G.smartMarginThreshold});a=new eg;f.F(a);var l=new Tf,m=new Pf;f.F(l);f.F(m);var r=b.G.html,v=b.G.enml;B(!(null!=r&&null!=v),"You can only provide one content type: html or enml");w(r)?l.D(r):w(v)?m.Jc(v):(b.G.skipMarkupTransform||a.nb(b.root,2),Y(b.root,"setDirty",!1));d&&d.imageClickEvents&&f.F(new Qf,d);d&&f.F(new Rf,d);d&&d.resize&&(b.U=new ne,g.Va()||f.F(b.U,d));
d&&(d.annotate||d.preview||d.rotate)&&(b.N=new Fe,g.Va()||f.F(b.N,d));h&&f.F(new bg);n&&(b.Y=new tf,g.Va()||f.F(b.Y));b.ha&&f.F(b.ha);null!=b.G.clearly&&f.F(new fg,{root:b.root});if(!0===b.G.smartEditMode){var t=function(){g.Va()||g.gc(!0)||(b.root.focus(),ze(b.G.name,{focus:b.hasFocus()}))};b.B.listener(b.root,"dblclick",function(){return t()});b.B.listener(b.root,"tap",function(){return t()},{be:2})}g.Va()||!0!==b.G.active||!0===b.G.smartEditMode||g.gc(!0);g.tc();b.tc();b.B.ba(b.root,"setDirty",
function(a){b.td(a)});0<b.G.undoOnIdle&&b.B.P(function(){l.Sb()&&b.D.flush()},b.G.undoOnIdle);b.Sf=function(){var a=g.hasFocus();a!==b.ab&&(xb("focusChanged",{focus:a}),ze("content",{focus:a}));if(b.Mf){var c=b.Of(),d=JSON.stringify(c);d!==b.Vb&&(b.Vb=d,xb("styleChanged",c),c=c||{},c.module="content",we("styleChanged",c))}b.ab=a};c();b.G.placeholder&&b.root.setAttribute("data-en-placeholder",b.G.placeholder);b.D.clear();Y(b.root,"contentReady")};b.S=function(){b.Vb=null;pd();b.mb=null;b.ab=null;Hc(b.root,
!1);b.ha=null;b.Y=null;b.G=null;b.root=null;b.J=null};b.Ja=function(){try{var a={mb:b.mb},c=X(b.root);null!=c&&(b.mb=ud(c));a.ma=c;Y(b.root,"selectionChanged",a);b.wb=b.B.timeout(b.Sf,50,b.wb)}catch(f){x.error("Exception in en.rte.didChangeSelection <$>:",f.toString())}};b.td=function(c){c=c||{};b.G.smartScroll&&!c.Ec&&a();b.B.M();b.Ja()};b.Of=function(){function a(b,e,f){if(b&&b.length){for(var h={},l=0;l<b.length;l++){var m=b[l];h[m]=f(m)}h&&(c[e]=h)}}var c={},f=He;a(b.G.trackStateChanges,"state",
f.state);a(b.G.trackValueChanges,"value",f.value);a(b.G.trackEnabledChanges,"enabled",f.enabled);return c};b.selection=function(a){var c=X(b.root);a&&(b.mb&&md(vd(b.mb)),b.root.focus(),c=X(b.root));return c};b.kf=function(a,c){var f=!0;try{!0===a.focus&&b.selection(!0);var g=function(){f=!1!==c();!0!==a.Ab&&Y(b.root,"setDirty")};!0===a.O?b.D.Ma(g,a.G.title):("before"===a.O&&b.D.flush(),g(),"after"===a.O&&b.D.flush(a.G.title))}catch(k){qb(k)}return f||!1};b.hasFocus=function(){return b.ja().A("context").hasFocus()};
b.tc=function(){var a=b.J.Df();Object.keys(a).forEach(function(c){var f=a[c];f.name=c;var g={name:c,O:f.O,Ab:f.Ab,za:f.za,action:function(a){a=b.J.execCommand.bind(b.J,c,!1,a);return b.kf(g,a)},state:function(){return b.J.queryCommandState(c)},value:function(a){return b.J.queryCommandValue(c,a)},enabled:function(a){return!!b.J.queryCommandEnabled(c,a)}};b.B.A(g)});b.B.A({name:"diff",value:function(a){var c=zb(a);a=gc(c.base);var e=gc(c.theirs),k=gc(c.mine),n=b.Oa.Xb("normalize");n&&(n.bc(a),n.bc(e),
n.bc(k));for(var h,c=c.showChanges,l=se(e,a),m=se(k,a),k=[],e=[],l=l.slice(0),m=m.slice(0),r=0,v=l.length;r<v;r++){for(var t=l[r],p=0,q=m.length;p<q;p++){h=m[p];var A=!1;if(t.baseIndex===h.baseIndex){var A=t,y=h;if(A.baseIndex===y.baseIndex&&A.sourceIndex===y.sourceIndex&&A.action===y.action&&A.name===y.name&&A._deleted===y._deleted&&A._inserted===y._inserted&&(null==A.element&&null==y.element||R(A.element)&&R(y.element)&&A.element.isEqualNode(y.element))){e.push(h);break}else A=!0}else A="removeChildElement"===
t.action,y="removeChildElement"===h.action,A=qe(t,h)&&y&&!A||qe(h,t)&&!y&&A;if(A){t._conflict=!0;t._owner="theirs";t._conflictedWith=h;h._conflict=!0;h._owner="mine";h._conflictedWith=t;k.push(t);k.push(h);break}h=null}h?m.splice(p,1):e.push(t)}0<m.length&&(e=e.concat(m));0<k.length&&(e=e.concat(k));e.sort(te);h=ue(e,a,c);n&&n.bc(a);return{conflicts:h.conflicts.length,result:h,html:nb(a)}},enabled:z});b.B.A({name:"focus",action:function(a){a=D(zb(a),{pos:"top",force:!1,scroll:!1,animate:!1,value:null,
clear:!1});var c=b.ja().A("context");if(!c.Va()){!0===b.G.smartEditMode&&c.gc(!0);if(!X(b.root)||a.force)a.clear?pd():(b.root.focus(),b.mb&&!a.force?md(vd(b.mb)):"bottom"===a.pos?(c=document.createRange(),c.selectNodeContents(b.root),c.collapse(!1),md(c)):md(ld(b.root,0)));a.scroll&&0!=O(b.root)&&zd(X());return!0}},state:function(){return b.ja().A("context").hasFocus()},value:function(a){var c=b.ja().A("context").hasFocus();if(c&&a&&"position"===a.type)return a=X(),null==a?a=null:(c=xd(a),a=null==
c?null:xc(c,!1,yc(a.startContainer))),a;if(c)return b.name},Mb:!0,enabled:z});b.B.A({name:"blur",action:function(){b.root.blur();pd();var a=b.ja().A("context");!0===b.G.smartEditMode&&a.gc(!1);return!0},enabled:function(){return!!X(b.root)}});b.B.A({name:"active",action:function(a){a=yb(a);var c=b.ja(),e=c.A("context"),k=!e.Va();k!==a&&window.getSelection().containsNode(b.root,!0)&&pd();e.Qe(!a);k&&!a&&(e.gc(!1),b.N&&b.N.fa&&c.S(b.N),b.U&&b.U.fa&&c.S(b.U),b.Y&&c.S(b.Y));!k&&a&&(pd(),!0!==b.G.smartEditMode&&
(e.gc(!0),b.N&&!b.N.fa&&c.F(b.N,b.G.imageConfig),b.U&&!b.U.fa&&c.F(b.U,b.G.imageConfig),b.Y&&c.F(b.Y)));return!0},state:function(){return!b.ja().A("context").Va()},enabled:z})}};var Z={},vg=null,wg=null;Z.fa=!1;
Z.F=function(a){!0===Z.fa&&Z.S();var c;try{a=D(a);He=new wb;Me(a);Ie=vg=new Se({A:He,G:a,uid:(new Date).getTime()});wg=new Re;wg.F({name:"document"});var b,e;a.template?(b=new Xf,e=a.template):a.rte&&(b=new ug,e=a.rte);b?(vg.F(b,e),wg.A({name:"bounds",enabled:z,value:function(){var a=N(b.root),c={left:a.left,right:a.right,top:a.top,bottom:a.bottom,width:a.width,height:a.height};c.y=document.body.scrollHeight-a.bottom;c.x=a.left;return JSON.stringify(c)}}),vg.F(new ve,{root:b.root})):x.error('Settings for "rte" or "template" are obligatory!');
null!=a.title&&(vg.F(new Bf,a.title),wg.I("titlechanged",function(a){ye("title",{blur:!0===a.blur})}));null!=a.shared&&vg.F(new Xe,a.shared);null!=a.context&&vg.F(new Ye,a.context);null!=a["context-upsell"]&&vg.F(new Ze,a["context-upsell"]);null!=a["context-info"]&&vg.F(new $e,a["context-info"]);null!=a.find&&vg.F(new af,a.find);null!=a.keyboard&&vg.F(new bf,a.keyboard);a.analytics&&vg.F(new Ge,a.analytics);wg.A({name:"note",action:function(a){var b=Ad;a=zb(a);if(!bb(a)||!bb(b))return!1;b.note||(b.note=
{});eb(b.note,a);xb("noteInfoChanged",b.note);return!0},value:function(a){var b=Ad;if(!bb(b))return null;b=b.note;return bb(b)?w(a)?b[a]:b:{}},enabled:z});wg.A({name:"env",action:function(a){var b=Ad;if(!bb(a)||!bb(b))return!1;b.env||(b.env={});eb(b.env,a);return!0},value:function(a){var b=Ad;if(!bb(b))return null;b=b.env;return bb(b)?w(a)?b[a]:b:{}},enabled:z});document.body.setAttribute("data-en-lang",fb());var d;wg.listener(window,"resize",function(a){d||xb("beforeWindowResize",{event:a});d=wg.timeout(function(){d=
null;xb("windowResize",{event:a})},1E3/60*4,d)});wg.listener(document,"selectionchange",function(a){xb("selectionChange",{event:a})});Z.fa=!0;wg.timeout(xe);c=!0}catch(f){c=!1,qb(f)}return c};Z.S=function(){if(!0!==Z.fa)x.error("Someone tried to call cleanup before setup!");else if(window.TEST){try{He.Ue(),vg.P(),vg=null,wg.S(),Ie=He=null,Bb.U(),Ad={}}catch(a){qb(a)}Z.fa=!1}};
Z.execCommand=function(a,c,b){B(Z.fa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=He.action(a,c,b)}catch(d){qb(d)}return e||!1};Z.queryCommandState=function(a,c,b){B(Z.fa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=He.state(a,c,b)}catch(d){qb(d)}return e||!1};
Z.queryCommandValue=function(a,c,b){B(Z.fa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=He.value(a,c,b)}catch(d){qb(d)}return e||""};Z.queryCommandEnabled=function(a,c,b){B(Z.fa,"Calling EN.setup before using commands is required");var e;try{a=a.toLowerCase(),e=He.enabled(a,c,b)}catch(d){qb(d)}return e||!1};ga("EN.setup",Z.F);ga("EN.cleanup",Z.S);ga("EN.execCommand",Z.execCommand);ga("EN.queryCommandState",Z.queryCommandState);ga("EN.queryCommandValue",Z.queryCommandValue);ga("EN.queryCommandEnabled",Z.queryCommandEnabled);ga("EN.registerModuleScript",function(a){xb("moduleScript",a)});ga("EN.registerModuleLocalization",function(a,c,b){xb("moduleLocalization",{moduleName:a,tableName:c,stringMap:b})});ga("EN.getVersion",ia);ga("EN.getLastCommitDate",ja);ga("EN.isCompiled",function(){return!0});var xg,yg;
(function(){function a(){cb(g.querySelectorAll("img.en-todo"),function(a){var b=M("div");G(b,"en-print");G(b,"checkbox");F(a,"en-todo-checked")&&G(b,"checked");bc(a,b)})}function c(a){cb(g.querySelectorAll("embed"),function(b){var c=M("div");G(c,"en-print");switch(b.getAttribute("type")){case "evernote/x-pdf":G(c,"pdf");c.textContent=a.pdf_file;break;case "evernote/x-attachment":var d=b.getAttribute("id");null!=d&&d.match(/.*en-media:audio.*/)?(G(c,"audio"),c.textContent=a.audio_file):(G(c,"generic-attachment"),
c.textContent=a.generic_file);break;default:x.warn("Found <embed> with unknown type! "+b),G(c,"generic-attachment"),c.textContent=a.generic_file}bc(b,c)})}function b(){var a=e();null!=a&&null!=g||x.error("Couldnt find note body or print container!");g.innerHTML=g.innerHTML+a.innerHTML;cb(g.childNodes,function(a){G(a,"en-print")})}function e(){var a=document.querySelector("#en-note");return null==a?(x.warn("Could not find note!"),null):a}function d(){var a=M("br");G(a,"en-print");g.appendChild(a)}
function f(a,b){for(var c=M("table"),d,e,f=0;4>f;f++){d=M("tr");c.appendChild(d);for(var v=0;2>v;v++)e=M("td"),d.appendChild(e)}c.setAttribute("id","header-table");G(c,"en-print");g.appendChild(c);var t=c.querySelectorAll("td");cb([[0,b.author,"author"],[1,b.notebook,"notebook"],[2,b.created,"created"],[3,b.tags,"tags"],[4,b.updated,"updated"],[5,b.url,"url"],[6,b.deleted,"deleted"],[7,b.location,"location"]],function(b){if(null!=a[b[2]]){t[b[0]].innerHTML="";var c=M("span");G(c,"header-table-label");
c.textContent=b[1];var d=M("span");G(d,"header-table-text");d.textContent=" "+a[b[2]];t[b[0]].appendChild(c);t[b[0]].appendChild(d)}})}var g=null;xg=function(e,n){null!=g&&(x.warn("Multiple unnecessary calls to setup print."),yg());for(var h=0;h<document.body.childNodes.length;h++)I(document.body.childNodes[h])&&Tc(document.body.childNodes[h],!1);g=M("div");g.setAttribute("id","print-container");G(g,"en-print");h=document.querySelector("#container");h.parentNode.insertBefore(g,h);var l=D(n,{title:null,
notebook:null,created:null,updated:null,deleted:null,author:null,location:null,tags:null,url:null}),h=D(e,{notebook:"Notebook:",created:"Created:",updated:"Updated:",deleted:"Deleted:",author:"Author:",location:"Location:",tags:"Tags:",url:"Source:",pdf_file:"PDF File",audio_file:"Audio File",generic_file:"Generic File"});null!=n&&""!==n&&(f(l,h),l=M("hr"),g.appendChild(l),d());l=document.querySelector("#en-title");if(null!=l&&null!=l.textContent){var l=l.textContent,m=M("div");m.setAttribute("id",
"header-title");G(m,"en-print");m.textContent=l;g.appendChild(m);d()}b();c(h);a();we("printReady",{module:"print"})};yg=function(){null==g?x.warn("Print module teardown called while it was off!"):(H(g),g=null)}})();ga("EN.enablePrint",xg);ga("EN.disablePrint",yg); }).call(window); window.enLoadState = 'didLoad'; }
catch(ex) { window.enLoadState = "Exception: " + ex.toString() + '\n' + ex.stack + ''; }

