var ischrome=true,g_tsstart=(new Date).getTime(),g_bg=null,g_getdata_page="",g_getdata_handler=null,g_user_prefs_to_write=[],g_global_prefs_to_write=[],g_delete_group_callback=null,g_delete_aid_callback=null,g_security_prompt_handler=null,g_language=null,g_included_language=false,g_language_data="",DEFAULT_KEY_ITERATIONS=1,g_langs={"":"Default",ar:"Arabic",bg:"Bulgarian",ca:"Catalan",zh_CN:"Chinese (Simplified)",zh_TW:"Chinese (Traditional)",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en_US:"English",
en_GB:"English (United Kingdom)",et:"Estonian",fi:"Finnish",fr:"French",de:"German",el:"Greek",he:"Hebrew",hu:"Hungarian",id:"Indonesian",it:"Italian",ja:"Japanese",ko:"Korean",lv:"Latvian",lt:"Lithuanian",nb:"Norwegian",pl:"Polish",pt_PT:"Portuguese",pt_BR:"Portuguese (Brazilian)",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",es_419:"Spanish (Mexico)",sv:"Swedish",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese"},g_webkit_selectable=g_isopera?"":"-webkit-user-select:none;",
g_opera_selectable=g_isopera?'unselectable="on"':"";
function include_language(a){try{if(!g_included_language){g_included_language=true;if(a==""){a=navigator.language;a=a.replace("-","_");if(a=="es_MX")a="es_419";if(typeof g_langs[a]=="undefined")a=a.substring(0,2);if(typeof g_langs[a]=="undefined")for(var b in g_langs)if(b.substring(0,2)==a){a=b;break}if(typeof g_langs[a]=="undefined")a="en_US"}var c=[];a!="en_US"&&c.push("en_US");c.push(a);for(b=0;b<c.length;b++)try{a=c[b];var d=new XMLHttpRequest,e="_locales/"+a+"/messages.js";if(typeof safari!=
"undefined"&&typeof safari.extension!="undefined"&&typeof safari.extension.baseURI!="undefined")e=safari.extension.baseURI+e;d.open("GET",e,false);d.send(null);g_language_data=d.responseText;if(a=="en_US"){lptranslations=JSON.parse(g_language_data);g_language_data="lptranslations="+g_language_data}else{lptranslationsother=JSON.parse(g_language_data);g_language_data="lptranslationsother="+g_language_data}if(b>0)for(var f in lptranslationsother)lptranslations[f]=lptranslationsother[f]}catch(k){}}}catch(n){}}
var matches=document.location.href.match(/[?&]lplanguage=([^&]*)/);if(matches){g_language=matches[1];include_language(g_language)}var lpgslocales=[],lpgscache=[];
function gs(a,b){var c=a.replace(/[^a-zA-Z0-9_]/g,"_"),d="";if(typeof b!="undefined"&&b&&typeof translations!="undefined"&&typeof translations[b]!="undefined"&&typeof translations[b][a]!="undefined")d=translations[b][a];else if(typeof chrome!="undefined"&&typeof chrome.i18n!="undefined"&&typeof chrome.i18n.getMessage=="function")d=chrome.i18n.getMessage(c);else if(typeof lptranslations!="undefined")if(typeof lptranslations[c]!="undefined"&&typeof lptranslations[c].message!="undefined")d=lptranslations[c].message;
if(typeof d=="undefined"||d==null)d="";if(d=="")d=a;if(g_issafari){d=d.replace(/Google Chrome/g,"Safari");d=d.replace(/Chrome/g,"Safari")}else if(g_isopera){d=d.replace(/Google Chrome/g,"Opera");d=d.replace(/Chrome/g,"Opera")}return d}function CheckStringForObfuscation(a,b,c){if(a.indexOf("ff_")!=0||c==null||typeof c=="undefined"||c.indexOf("__")!=0)return lpgscache[b]=c;c=c.substr(2);a="";for(var d=0;d<8;d++)a+="arti";c=lpdec(c,a);return lpgscache[b]=c}
function ApplyOverrides(a){origlocale=a;a=a==""?"en-US":a;var b=typeof g_ff=="undefined"?"":g_ff;if(b!=null&&b!=""){b=b.split("\n");for(var c=false,d=0;d<b.length;d++){if(c&&b[d].indexOf("lang=")==0)return;if(!c&&b[d]=="lang="+a)c=true;else if(c){var e=b[d].indexOf("=");if(e!=-1){var f=b[d].substr(0,e);e=b[d].substr(e+1);CheckStringForObfuscation(f,origlocale+f,e)}}}lpgslocales[origlocale]=1}}function ApplyAllOverrides(){lpgscache=[];lpgslocales=[]}
function sr(a,b,c,d){(a=a.getElementById(b))&&a.setAttribute(c,gs(d))}function L(a){console_log((new Date).getTime()-g_tsstart+" : "+a)}function probe(a,b){var c=a;for(i in b){var d=typeof b[i];if(d=="string"||d=="number")d=b[i];c+="\n"+i+" : "+d}L(c)}
function getchromeurl(a,b){if(g_ischrome)return chrome.extension.getURL(a);else if(g_issafari||g_isopera){var c="";if(typeof g_language!="undefined"&&g_language)c=g_language;else if(typeof lpGetPref=="function")c=lpGetPref("language","");b||(a+=(a.indexOf("?")!=-1?"&":"?")+"lplanguage="+encodeURIComponent(c));return(g_issafari?safari.extension.baseURI:"")+a}}
function getdata_message_handler(a){if(g_isopera){a.message=a.data;a.name=a.data.messagetype}if(a.name=="gotdata"){for(var b in a.message)getBG()[b]=a.message[b];lp_iscbc=a.message.lp_iscbc;getBG().g_userprefs=LPJSON.parse(getBG().g_userprefsstr);g_userprefs=getBG().g_userprefs;getBG().g_gblprefs=LPJSON.parse(getBG().g_gblprefsstr);g_gblprefs=getBG().g_gblprefs;getBG().g_prompts=LPJSON.parse(getBG().g_promptsstr);g_prompts=getBG().g_prompts;if(g_getdata_page=="login"){if(getBG().g_reprompt_callback)getBG().g_reprompt_callback=
function(){dispatch_message("reprompt_callback",{g_user_prefs_to_write:LPJSON.stringify(g_user_prefs_to_write)})};if(getBG().g_reprompt_error_callback)getBG().g_reprompt_error_callback=function(){dispatch_message("reprompt_error_callback",{})}}else if(g_getdata_page=="omnikey"){if(getBG().g_omnikey_callback)getBG().g_omnikey_callback=function(c){dispatch_message("omnikey_callback",{pin:c,g_user_prefs_to_write:LPJSON.stringify(g_user_prefs_to_write)})}}else if(g_getdata_page=="vault"){if(typeof a.message.g_sites!=
"undefined")getBG().g_pendings=LPJSON.parse(getBG().g_pendings)}else if(g_getdata_page=="formfill")getBG().g_formfill_data=LPJSON.parse(getBG().g_formfill_data);else if(g_getdata_page=="site")getBG().g_site_data=fix_fields(LPJSON.parse(getBG().g_site_data));if(typeof a.message.g_icons!="undefined")g_icons=getBG().g_icons=LPJSON.parse(getBG().g_icons);if(typeof a.message.g_sites!="undefined"){getBG().g_sites=LPJSON.parse(getBG().g_sites);if(typeof a.message.g_shares!="undefined")getBG().g_shares=LPJSON.parse(getBG().g_shares);
if(typeof a.message.g_sites_tld!="undefined")getBG().g_sites_tld=LPJSON.parse(getBG().g_sites_tld);else getBG().g_sites_tld=getBG().g_sites}if(typeof a.message.g_securenotes!="undefined")getBG().g_securenotes=LPJSON.parse(getBG().g_securenotes);if(typeof a.message.g_applications!="undefined")getBG().g_applications=LPJSON.parse(getBG().g_applications);if(typeof a.message.g_formfills!="undefined")getBG().g_formfills=LPJSON.parse(getBG().g_formfills);if(typeof a.message.g_identities!="undefined")getBG().g_identities=
LPJSON.parse(getBG().g_identities);if(typeof a.message.g_nevers!="undefined")getBG().g_nevers=LPJSON.parse(getBG().g_nevers);if(typeof a.message.g_prefoverrides!="undefined")getBG().g_prefoverrides=LPJSON.parse(getBG().g_prefoverrides);if(typeof a.message.g_create_account_data!="undefined")getBG().g_create_account_data=LPJSON.parse(getBG().g_create_account_data);if(typeof getBG().g_local_key!="undefined"&&getBG().g_local_key!=null){g_local_key=getBG().g_local_key;g_local_key_hex=AES.bin2hex(g_local_key);
g_local_key_hash=SHA256(g_local_key)}if(typeof getBG().ischrome!="undefined")ischrome=getBG().ischrome;g_getdata_handler()}else if(a.name=="delete_group_callback")typeof g_delete_group_callback=="function"&&g_delete_group_callback();else if(a.name=="delete_aid_callback")typeof g_delete_aid_callback=="function"&&g_delete_aid_callback();else if(a.name=="security_prompt_callback")typeof g_security_prompt_handler=="function"&&g_security_prompt_handler();else if(a.name=="generatepasswordfound")typeof getBG().g_checkgeneratepasswordcallback==
"function"&&getBG().g_checkgeneratepasswordcallback();else if(a.name=="unprotect_data_callback"){for(b in passwords)if(passwords[b]==a.message.protected_data){passwords[b]=a.message.unprotected_data;break}if(document.getElementById("p").value==a.message.protected_data)document.getElementById("p").value=a.message.unprotected_data}else a.name=="change_master_password_callback"&&g_change_master_password_callback(a.message.newdata)}
function get_data(a,b){if(g_ischrome)b();else if(g_issafari){safari.self.addEventListener("message",getdata_message_handler,false);g_getdata_page=a;g_getdata_handler=b;dispatch_message("getdata",{page:a})}else if(g_isopera){opera.extension.onmessage=getdata_message_handler;g_getdata_page=a;g_getdata_handler=b;dispatch_message("getdata",{page:a})}}LPobj=this;
function fakebg(){this.lpGetPref=function(a,b){if(typeof lpGetPref!="undefined")return lpGetPref(a,b);else{if(typeof g_userprefs[a]!="undefined")return g_userprefs[a];if(typeof g_gblprefs[a]!="undefined")return g_gblprefs[a];return b}};this.lpPutUserPref=function(a,b){g_user_prefs_to_write[a]=b};this.lpPutGblPref=function(a,b){g_global_prefs_to_write[a]=b};this.lpWriteAllPrefs=function(){};this.LP_do_login=function(a,b,c,d,e,f,k,n){dispatch_message("LP_do_login",{u:a,p:b,rememberemail:c,rememberpassword:d,
donotclearmultifactor:e,showvault:f,lpkey:k,lphash:n})};this.openURL=function(a,b,c){a={url:a};if(c)a.g_site_data=LPJSON.stringify(c);dispatch_message("openURL",a)};this.unlock_plug2web=function(){dispatch_message("unlock_plug2web",{})};this.set_last_reprompt_time=function(){};this.have_nplastpass=function(){return typeof this.g_have_nplastpass!="undefined"&&this.g_have_nplastpass};this.can_copy_to_clipboard=function(){return typeof this.g_can_copy_to_clipboard!="undefined"&&this.g_can_copy_to_clipboard};
this.can_clear_clipboard=function(){return typeof this.g_can_clear_clipboard!="undefined"&&this.g_can_clear_clipboard};this.copytoclipboard=function(a){dispatch_message("copytoclipboard",{g_data:a})};this.is_chrome_portable=function(){return false};this.update_prefs=function(a){var b={page:a,g_user_prefs_to_write:LPJSON.stringify(g_user_prefs_to_write),g_global_prefs_to_write:LPJSON.stringify(g_global_prefs_to_write)};if(a=="generate")b.g_genpws=this.g_genpws;dispatch_message("update_prefs",b)};this.update_prompts=
function(){var a={g_prompts:LPJSON.stringify(g_prompts)};dispatch_message("update_prompts",a)};this.check_ident_aid=function(){return true};this.check_ident_appaid=function(){return true};this.check_ident_ffid=function(){return true};this.DeleteOTP=function(){};this.deletesavedpw=function(){};this.start_idle_checker=function(){};this.setprefs=function(){};this.get_searchNotesPref=function(){return this.searchinnotes};this.IsIconsUpdated=function(a){if(this.lpclearrecent){this.lpclearrecent=false;
return true}return this.g_icons_length!=a};this.getClearRecentTime=function(){return this.clearRecentTime};this.getRecentCount=function(){return this.recentCount};this.hex2bin=function(a){return AES.hex2bin(a)};this.bin2hex=function(a){return AES.bin2hex(a)};this.lp_sort_case_insensitive_name=function(a,b){a=a.name.toLowerCase();b=b.name.toLowerCase();return a<b?-1:1};this.geticonhtml=function(a,b){return geticonhtml(a,b)};this.geticonhtmlfromrecord=function(a){return geticonhtmlfromrecord(a)};this.geticonurl=
function(a,b){return geticonurl(a,b)};this.geticonurlfromrecord=function(a){return geticonurlfromrecord(a)};this.db_prepend=function(a){return a};this.dec=function(a,b,c){return dec(a,b,c)};this.enc=function(a,b){return enc(a,b)};this.lpmdec=function(a,b,c){var d=null;if(c)d=AES.bin2hex(c);return lpmdec(a,b,c,d)};this.lpmdec_acct=lpmdec_acct;this.lpmenc=function(a,b,c){return lpmenc(a,b,c)};this.lpenc=function(a,b){return lpenc(a,b)};this.lpdec=function(a,b){return lpdec(a,b)};this.openall=function(a){dispatch_message("openall",
{group:a})};this.deleteGroup=function(a,b,c){if(!(g_isopera&&!confirm(gs("Are you sure you would like to delete?")))){g_delete_group_callback=c;dispatch_message("deleteGroup",{group:a})}};this.copyusername=function(a){dispatch_message("copyusername",{aid:a})};this.copypassword=function(a){dispatch_message("copypassword",{aid:a})};this.copynote=function(a){dispatch_message("copynote",{aid:a})};this.deleteAid=function(a,b,c,d,e){if(!(g_isopera&&!confirm(gs("Are you sure you would like to delete?")))){g_delete_aid_callback=
e;dispatch_message("deleteAid",{aid:a})}};this.editAid=function(a){dispatch_message("editAid",{aid:a})};this.gotourl=function(a){dispatch_message("gotourl",{aid:a})};this.launch=function(a){dispatch_message("launch",{aid:a})};this.open_login=function(a){dispatch_message("open_login",{forcetab:a})};this.addprofile=function(){dispatch_message("addprofile",{})};this.update_create_account_data=function(){dispatch_message("update_create_account_data",{create_account_data:LPJSON.stringify(getBG().g_create_account_data)})};
this.lpMakeRequest=function(a,b,c,d,e,f){LP=LPobj;lpMakeRequest(a,b,c,d,e,f)};this.addcreditcard=function(){dispatch_message("addcreditcard",{})};this.editprofile=function(a){dispatch_message("editprofile",{ffid:a})};this.openprefs=function(a){dispatch_message("openprefs",{tab:a})};this.openbaseurl=function(a){dispatch_message("openbaseurl",{suffix:a})};this.changemasterpassword=function(){dispatch_message("changemasterpassword",{})};this.openaddsecurenote=function(){dispatch_message("openaddsecurenote",
{})};this.loggedOut=function(a,b){dispatch_message("loggedOut",{skiprequest:a,from:b})};this.switch_identity=function(a){dispatch_message("switch_identity",{iid:a})};this.renameGroup=function(a,b){dispatch_message("renameGroup",{origgrp:a,newgrp:b})};this.addEmptyGroup=function(a){dispatch_message("addEmptyGroup",{newgrp:a})};this.moveSelectedToGroup=function(a,b){dispatch_message("moveSelectedToGroup",{group:a,aids:b})};this.en=function(a){return encodeURIComponent(a)};this.update_state=function(a){g_getdata_page=
"vault";if(a=="vault")g_getdata_handler=function(){checkLoggedInHome(true)};else if(a=="search")g_getdata_handler=function(){checkVersion(true)};dispatch_message("getdata",{page:"vault",g_username:this.g_username,g_local_accts_version:this.g_local_accts_version,lploggedin:this.lploggedin,g_identity:this.g_identity,g_isadmin:this.g_isadmin})};this.security_prompt=function(a){g_security_prompt_handler=a;dispatch_message("security_prompt",{})};this.savePassword=function(a,b,c,d){dispatch_message("savePassword",
{pass:a,url:b,tabid:c,nofill:d})};this.checkgeneratepassword=function(a){dispatch_message("checkgeneratepassword",{tabid:a})};this.fillform=function(a,b,c,d){dispatch_message("fillform",{ffid:a,origtabid:c,ccffid:d})};this.getsites=function(){return this.g_sites_tld};this.changePassword=function(a,b){dispatch_message("changePassword",{password:a,aids:b})};this.getusernamefromacct=function(a){return getusernamefromacct(a)};this.getpasswordfromacct=function(a){return getpasswordfromacct(a)};this.receiveTS=
function(a,b){dispatch_message("receiveTS",b)};this.deleteformfill=function(a){dispatch_message("deleteformfill",{ffid:a})};this.addeditformfill=function(a,b){dispatch_message("addeditformfill",{ffdata:LPJSON.stringify(a),site:LPJSON.stringify(b)})};this.getname_url=function(a){return getname_url(a)};this.createNewAcct=function(){return createNewAcct()};this.fix_tlds=function(a,b,c){dispatch_message("fix_tlds",{oldtld:a,newtld:b,aid:c})};this.moveIntoSharedFolder=function(a,b,c,d){d||(d=false);dispatch_message("moveIntoSharedFolder",
{shareinfo:LPJSON.stringify(a),aidsThatChangedGroups:LPJSON.stringify(b),aidsnewgrps:LPJSON.stringify(c),copy:d})};this.increment_local_accts_version=function(){dispatch_message("increment_local_accts_version",{})};this.rewritelocalfile=function(){dispatch_message("rewritelocalfile",{})};this.saveSite=function(a,b){dispatch_message("saveSite",{postdata:a,acct:LPJSON.stringify(b)})};this.openLinkedSites=function(a,b){dispatch_message("openLinkedSites",{password:a,tld:b})};this.saveAllSite=function(a,
b){dispatch_message("saveAllSite",{postdata:a,acct:LPJSON.stringify(b)})};this.saveSiteFromSubmit=function(a,b){dispatch_message("saveSiteFromSubmit",{postdata:a,acct:LPJSON.stringify(b)})};this.saveFields=function(a,b,c){dispatch_message("saveFields",{getdata:a,postdata:b,aData:LPJSON.stringify(c)})};this.update_site=function(a){(a=get_record(a))&&dispatch_message("update_site",{site:LPJSON.stringify(a)})};this.update_fields=function(a,b){dispatch_message("update_fields",{aid:a,fields:LPJSON.stringify(b)})};
this.set_editfieldsopener=function(){dispatch_message("set_editfieldsopener",{})};this.close_editfieldsopener=function(){dispatch_message("close_editfieldsopener",{})};this.unprotect_data=function(a){dispatch_message("unprotect_data",{data:a});return a};this.select_selectedtabid=function(){dispatch_message("select_selectedtabid",{})};this.closecurrenttab=function(a){g_isopera?window.close():dispatch_message("closecurrenttab",{page:a})};this.add_identity=function(){dispatch_message("add_identity",
{})};this.checkforupdates=function(){dispatch_message("checkforupdates",{})};this.clearforms=function(){dispatch_message("clearforms",{})};this.clearrecent=function(){dispatch_message("clearrecent",{})};this.openabout=function(){dispatch_message("openabout",{})};this.openaddsite=function(){dispatch_message("openaddsite",{})};this.openchooseprofilecc=function(){dispatch_message("openchooseprofilecc",{})};this.openexport=function(){dispatch_message("openexport",{})};this.openfavorites=function(){dispatch_message("openfavorites",
{})};this.openfeedback=function(){dispatch_message("openfeedback",{})};this.opengenpw=function(){dispatch_message("opengenpw",{})};this.openhelp=function(){dispatch_message("openhelp",{})};this.openimport=function(){dispatch_message("openimport",{})};this.doimport=function(a,b){dispatch_message("doimport",{source:a,filename:b})};this.openimportchrome=function(){dispatch_message("openimportchrome",{})};this.openlastpassexport=function(){dispatch_message("openlastpassexport",{})};this.openpremium=function(){dispatch_message("openpremium",
{})};this.openentconsole=function(){dispatch_message("openentconsole",{})};this.opensearch=function(){dispatch_message("opensearch",{})};this.openseccheck=function(){dispatch_message("openseccheck",{})};this.opensessions=function(){dispatch_message("opensessions",{})};this.openvault=function(){dispatch_message("openvault",{})};this.recheckpage=function(){dispatch_message("recheckpage",{})};this.refreshsites=function(){dispatch_message("refreshsites",{})};this.saveall=function(){dispatch_message("saveall",
{})};this.upgradetoserver=function(){dispatch_message("upgradetoserver",{})};this.clearCache=function(a){dispatch_message("clearCache",{noprompt:a})};this.loglogin=function(a){dispatch_message("loglogin",{aid:a})};this.deleteNever=function(a){dispatch_message("deleteNever",{n:LPJSON.stringify(a)})};this.fillaid=function(a){dispatch_message("fillaid",{aid:a})};this.openprint=function(a){dispatch_message("openprint",{notes:a})};this.getmatchingsites=function(){var a=this.g_sites_tld,b,c,d=[];for(b in a){c=
a[b].aid;if(typeof this.g_sites[c]!="undefined"){c=this.g_sites[c];d.push({aid:c.aid,name:c.name,username:getusernamefromacct(c),fiid:c.fiid})}}return d};this.getnevers=function(){return this.g_nevers};this.getmenuheight=function(){return g_menuheight};this.isadmin=function(){if(typeof this.g_isadmin!="undefined")return this.g_isadmin;return false};this.getbaseurl=function(){if(typeof this.base_url!="undefined")return this.base_url;return"https://lastpass.com/"};this.change_master_password=function(a,
b,c,d){g_change_master_password_callback=d;dispatch_message("change_master_password",{newusername:a,newpassword:b,toserver:c})};this.lpvt_store_data_and_setsinglefactortype=function(a){dispatch_message("lpvt_store_data_and_setsinglefactortype",{data:a})};this.delete_file=function(a){dispatch_message("delete_file",{f:a})}}
function getBG(){if(g_bg!=null)return g_bg;try{if(g_ischrome){if(typeof chrome.extension.getBackgroundPage=="function"){g_bg=chrome.extension.getBackgroundPage();if(g_bg!=null)return g_bg}var a=chrome.extension.getViews(),b;for(b in a)if(typeof a[b].receiveTS=="function")return g_bg=a[b]}else if(g_issafari||g_isopera){if(g_issafari){if(typeof safari.extension.globalPage!="undefined")return g_bg=safari.extension.globalPage.contentWindow}else if(g_isopera)if(typeof g_opera_button!="undefined")return this;
return g_bg=new fakebg}L("TS : getBG FAILED");return null}catch(c){L("TS : getBG FAILED error="+c)}return null}function array_length(a){var b=0,c;for(c in a)b++;return b}Clipboard={};Clipboard.utilities={};Clipboard.utilities.createTextArea=function(a){var b=document.createElement("textarea");b.style.position="absolute";b.style.left="-100%";if(a!=null)b.value=a;document.body.appendChild(b);return b};
Clipboard.copy=function(a){if(a!=null){if(a=="")a=" ";a=Clipboard.utilities.createTextArea(a);a.select();document.execCommand("Copy");document.body.removeChild(a)}};Clipboard.paste=function(){var a=Clipboard.utilities.createTextArea();a.focus();document.execCommand("Paste");var b=a.value;document.body.removeChild(a);return b};function es(a){a=a.replace(/\\/g,"\\\\");a=a.replace(/'/g,"\\'");return a=a.replace(/"/g,'\\"')}
function show_password_meter(a){document.writeln('<div id="page_passwordmeterback" style="text-align:left;height:10px;border:1px solid #B5B8C8;width:'+a+'px;background-image:url(images/passwordmeter_back.gif);margin-top:3px;">');document.writeln('<div id="page_passwordmeterfront" style="background-image:url(images/passwordmeter_front.gif);height:10px;width:50px;line-height:1px;font-size:1px;">');document.writeln("</div>");document.writeln("</div>")}
function update_password_meter(a,b){var c=getpasswordstrength(a,b);update_password_meter_manual(c)}function update_password_meter_manual(a){var b=parseInt(document.getElementById("page_passwordmeterback").style.width);a=Math.round(a*b/100)+"px";document.getElementById("page_passwordmeterfront").style.width=a}
function getpasswordstrength(a,b){var c=0;if(a==""&&b=="")return 0;if(b==a)return 1;if(a!=""&&a.indexOf(b)!=-1)c-=15;if(a!=""&&b.indexOf(a)!=-1)c-=a.length;c+=b.length;if(b.length>0&&b.length<=4)c+=b.length;else if(b.length>=5&&b.length<=7)c+=6;else if(b.length>=8&&b.length<=15)c+=12;else if(b.length>=16)c+=18;if(b.match(/[a-z]/))c+=1;if(b.match(/[A-Z]/))c+=5;if(b.match(/\d/))c+=5;if(b.match(/.*\d.*\d.*\d/))c+=5;if(b.match(/[!,@,#,$,%,^,&,*,?,_,~]/))c+=5;if(b.match(/.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~]/))c+=
5;if(b.match(/(?=.*[a-z])(?=.*[A-Z])/))c+=2;if(b.match(/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])/))c+=2;if(b.match(/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!,@,#,$,%,^,&,*,?,_,~])/))c+=2;var d=[],e=0,f,k;for(f=0;f<b.length;++f){k=b.charAt(f);if(typeof d[k]=="undefined"){d[k]=1;++e}}if(e==1)return 2;c*=2;if(c<0)c=0;else if(c>100)c=100;return c}function geticonhtml(a,b){return"<image src='"+geticonurl(a,b)+"'/>"}
function geticonhtmlfromrecord(a){return is_application(a)?geticonhtml("a"+a.fiid):geticonhtml(typeof a.fiid!="undefined"&&a.fiid!=""?a.fiid:a.aid,a.url=="http://sn")}function getNoteValue(a,b,c){a+=":";if(!b)return null;b="\n"+b;var d=b.indexOf("\n"+a);if(a=="NoteType:"){if(d!=0)return null}else if(d==-1)return null;d++;c=c?"-1":b.indexOf("\n",d);if(c==-1)c=b.length;return b.substring(d+a.length,c).replace(/^\s*/,"").replace(/\s*$/,"")}
function geticonurlfromrecord(a){return is_application(a)?geticonurl("a"+a.fiid):geticonurl(typeof a.fiid!="undefined"&&a.fiid!=""?a.fiid:a.aid,a.url=="http://sn")}
function geticonurl(a,b){var c="data:image/gif;base64,R0lGODlhEAAQAIcAAAAAAExnf1BpgWR0iHZ6hHeBkX+GkYiOmpeaopucoaSlqqWmqrm9w7q+xL+/wry/xcXGyc3Oz9HS1NPU1tnZ2d/h4+Di5OLj5uPl5+Tk5OXm6O7u7+7v8O/w8e/w8vDw8fHx8vLy8/Pz8/Pz9PT09fX19fX29vb29vf39/f3+Pj4+Pj4+fn5+vr6+/v7/Pz8/P39/f7+/v///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAAALAAAAAAQABAAAAiQAAEIHEiw4MAFCBEmQCjBIIAFMiLK8CBjA4QIBiFu2Fgh4oYJDgpq5Chxw4KCCiqSlKigIAKVGyowYNDgAYGCB2BWsHABgwYDBQvA/CCiBAoVBQoOUNlBhAkVLV4MKCigIgenK1zAiCGgYICKIEhAhRExgFcZHEKcYEG27NkOI1K0aCvDLMEAePPqteuwr8CAADs=";if(a==
"sn")return"data:image/gif;base64,R0lGODlhEAAQAPfBAFdCGCpgtyxity1kuS5kuS5luS9lujBlujBmujFmuzFnuzNpvIdhK4JmLjZvvzhxvzt2wTt2xKZoJjx4wT98xUB8xEKAxUKAxkWCxUWCxkeExkmFxEmIxkqIxkuIxWCFrUuJxUuJxkyJxr56Gk2LyE+Lx0+MyE+MyU+NyKqJQ8mFQWWU27yJTMKMSMeMSMWYSWWo0siZZLOfcNqYSduZS9CdRk+y99iaVFGy99mbUVW0+NOfZuChUdejY32y4tilWGG8+2K8/GK9/GO9+2C+/Ge9/GS+/GW++2i//W7C/duxhb+2ptW2etG3kNa5dprJ4+e+d+fAi8zGsMzGs+TJVcLLtpPU/8nNr5TV/+3KbefLd5XW//nHlPnJke3QeM3S2tDUvrjW9O7TebrW9fDTecjV4u7UffHUe9XWve7Vgc3W4fLWeu/SrPDStMHb+PbTrvXcXvXcX8Lc+MTd+fXfW/bdbPffY8Xf+ffhWsfg+sjg+ffiW8jg+8ng+/jiXcjh+8nh+8rh+sni+8vi+83j+83j/Onf0s7j+8/j/M/k/NDk+9Hk/PHjr9Xl/tPm/Nfm8tTm/NTm/fzgxPnjstPn/dXn/dbn/dbn/tfn/tbo/tfo/tjo/tzq9t7q9t7r9t/r9d/s9+Pt9+bw9+jx+Orx+Ory+uvy+Ozy9+zy+Ovz+uzz+e3z+O30+O30+e70+O/0+f/y4PD0+f32wv32xPH1+f/z5f33x/L2+vL3+/P3/PT3+/T4/PX5/Pf6/fj7/fj7//3+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH5BAEKAP8ALAAAAAAQABAAAAj+AP/9I2GioAkUJ0qAiCCw4YZTrlitmojq1CMfKxr+83ArDyBBfO64CfOryg8lNQSKoFXoEKFBeuSMYQSlTS02Lv6FoIVIUaJCgeZcSTMpyhtJO3TGcgSJ0iJCYMzMqpOlRwyBHV5hslQpEhoxtuLsWcPjg0AOrTZt0iRFiy04eM7QMJRBoAZVmTRNcSLLjh8yM8qUuiAQg6lLS5g0oULHSw41gHBREGhhVKMUsG6MeNHiS58/vSAIrCBKRwMuXVRIgIHDhg1eDgROCJUEAAMWMp5swWLliC4FAh98QlLkiBEjQoYAIRLE1wCBC0iB8tSJE6dUqUrl2gUsQMMDCRAMiD9goEABAgQECAwIADs=";
if(a!=null)if(typeof g_icons[a+".gif"]!="undefined")c="data:image/gif;base64,"+g_icons[a+".gif"];else if(typeof g_icons[a+".ico"]!="undefined")c="data:image/ico;base64,"+g_icons[a+".ico"];else if(b||typeof getBG().g_securenotes[a]!="undefined"){c=geticonsntemplate(a);if(c==null)c="data:image/gif;base64,R0lGODlhEAAQAPfBAFdCGCpgtyxity1kuS5kuS5luS9lujBlujBmujFmuzFnuzNpvIdhK4JmLjZvvzhxvzt2wTt2xKZoJjx4wT98xUB8xEKAxUKAxkWCxUWCxkeExkmFxEmIxkqIxkuIxWCFrUuJxUuJxkyJxr56Gk2LyE+Lx0+MyE+MyU+NyKqJQ8mFQWWU27yJTMKMSMeMSMWYSWWo0siZZLOfcNqYSduZS9CdRk+y99iaVFGy99mbUVW0+NOfZuChUdejY32y4tilWGG8+2K8/GK9/GO9+2C+/Ge9/GS+/GW++2i//W7C/duxhb+2ptW2etG3kNa5dprJ4+e+d+fAi8zGsMzGs+TJVcLLtpPU/8nNr5TV/+3KbefLd5XW//nHlPnJke3QeM3S2tDUvrjW9O7TebrW9fDTecjV4u7UffHUe9XWve7Vgc3W4fLWeu/SrPDStMHb+PbTrvXcXvXcX8Lc+MTd+fXfW/bdbPffY8Xf+ffhWsfg+sjg+ffiW8jg+8ng+/jiXcjh+8nh+8rh+sni+8vi+83j+83j/Onf0s7j+8/j/M/k/NDk+9Hk/PHjr9Xl/tPm/Nfm8tTm/NTm/fzgxPnjstPn/dXn/dbn/dbn/tfn/tbo/tfo/tjo/tzq9t7q9t7r9t/r9d/s9+Pt9+bw9+jx+Orx+Ory+uvy+Ozy9+zy+Ovz+uzz+e3z+O30+O30+e70+O/0+f/y4PD0+f32wv32xPH1+f/z5f33x/L2+vL3+/P3/PT3+/T4/PX5/Pf6/fj7/fj7//3+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH5BAEKAP8ALAAAAAAQABAAAAj+AP/9I2GioAkUJ0qAiCCw4YZTrlitmojq1CMfKxr+83ArDyBBfO64CfOryg8lNQSKoFXoEKFBeuSMYQSlTS02Lv6FoIVIUaJCgeZcSTMpyhtJO3TGcgSJ0iJCYMzMqpOlRwyBHV5hslQpEhoxtuLsWcPjg0AOrTZt0iRFiy04eM7QMJRBoAZVmTRNcSLLjh8yM8qUuiAQg6lLS5g0oULHSw41gHBREGhhVKMUsG6MeNHiS58/vSAIrCBKRwMuXVRIgIHDhg1eDgROCJUEAAMWMp5swWLliC4FAh98QlLkiBEjQoYAIRLE1wCBC0iB8tSJE6dUqUrl2gUsQMMDCRAMiD9goEABAgQECAwIADs="}return c}
function geticonsntemplate(a){if(typeof getBG().g_securenotes[a]!="undefined")if(getBG().g_securenotes[a].extra.length<512)if((a=getNoteValue("NoteType",lpmdec_acct(getBG().g_securenotes[a].extra,true,getBG().g_securenotes[a],getBG().g_shares)))&&typeof sntemplateicons[a]!="undefined")return sntemplateicons[a];return null}function getcount(a){var b=0,c;for(c in a)b++;return b}
function getusernamefromacct(a){if(is_application(a)){for(var b in a.fields){var c=a.fields[b];if(c.type==""&&c.value!="")return getBG().lpmdec_acct(c.value,true,a,getBG().g_shares)}return""}if(a.save_all){for(c in a.fields)if(("text"==a.fields[c].type||"email"==a.fields[c].type)&&a.fields[c].value!="")return getBG().lpmdec_acct(a.fields[c].value,true,a,getBG().g_shares);return""}else{if(typeof a.url!="undefined"&&a.url=="http://sn"){b=getBG().lpmdec_acct(a.extra,true,a,getBG().g_shares);c=getNoteValue("NoteType",
b);if(c=="Server"||c=="Email Account"||c=="Database")return getNoteValue("Username",b)}return typeof a.unencryptedUsername!="undefined"?a.unencryptedUsername:""}}
function getpasswordfromacct(a){if(is_application(a)){for(var b in a.fields){var c=a.fields[b];if(c.type=="password"&&c.value!="")return getBG().lpmdec_acct(c.value,true,a,getBG().g_shares)}return""}if(a.save_all){for(c in a.fields)if(a.fields[c].type=="password"&&a.fields[c].value!="")return getBG().lpmdec_acct(a.fields[c].value,true,a,getBG().g_shares);return""}else{if(typeof a.url!="undefined"&&a.url=="http://sn"){b=getBG().lpmdec_acct(a.extra,true,a,getBG().g_shares);c=getNoteValue("NoteType",
b);if(c=="Server"||c=="Email Account"||c=="Database")return getNoteValue("Password",b)}return typeof a.password!="undefined"?getBG().lpmdec_acct(a.password,true,a,getBG().g_shares):""}}
function createNewAcct(){var a=[];a.aid="";a.name="";a.group="";a.url="";a.tld="";a.extra="";a.fav="0";a.sharedfromuid="";a.username="";a.unencryptedUsername="";a.password="";a.pwprotect=0;a.genpw=0;a.sn=0;a.last_touch="";a.autologin=0;a.never_autofill=0;a.realm_data="";a.fiid="";a.custom_js="";a.submit_id="";a.captcha_id="";a.urid="0";a.basic_auth="0";a.method="";a.action="";a.individualshare=false;a.fields=[];return a}
function fix_fields(a){if(typeof a.fields!="undefined"&&typeof a.fields.length=="undefined"){var b=[],c;for(c in a.fields)b[b.length]=a.fields[c];a.fields=b}return a}var g_console_log="";function truncatelog(){if(g_console_log.length>2E4)g_console_log=g_console_log.substring(g_console_log.length-2E4)}function console_log(a){if(g_isopera)window.opera.postError(a);else{console.log(a);if(g_issafari){truncatelog();g_console_log+=a+"\n"}}}
function console_warn(a){g_isopera?window.opera.postError(a):console.warn(a)}function console_error(a){if(g_isopera)window.opera.postError(a);else{console.error(a);if(g_issafari){truncatelog();g_console_log+=a+"\n"}}}function dispatch_message(a,b){if(g_issafari)safari.self.tab.dispatchMessage(a,b);else if(g_isopera){b.messagetype=a;opera.extension.postMessage(b)}}
function get_key_iterations(a){a=SHA256(a)+"_key_iter";if(typeof localStorage!="undefined"&&localStorage.getItem(a)!=null)return localStorage.getItem(a);return DEFAULT_KEY_ITERATIONS}function ofa(a){a=a.toString();var b=a.length,c="",d=0,e;for(e=0;e<b;++e){d=a.charCodeAt(e);if(d<48||d>57&&d<65||d>90&&d<97||d>122&&d<256){d=d.toString(16);if(d.length!=2)d="0"+d;c+="&#x"+d+";"}else c+=a.charAt(e)}return c}
function is_application(a){return typeof a=="string"?a.indexOf("app")==0:a&&typeof a.appaid!="undefined"}function get_appaid(a){return a.indexOf("app")==0?a.substring(3):a}function get_record_id(a){return is_application(a)?"app"+a.appaid:a.aid}
function get_record(a){return is_application(a)?get_application(a):typeof g_sites!="undefined"&&typeof g_sites[a]!="undefined"?g_sites[a]:typeof g_securenotes!="undefined"&&typeof g_securenotes[a]!="undefined"?g_securenotes[a]:typeof getBG().g_sites[a]!="undefined"?getBG().g_sites[a]:typeof getBG().g_securenotes[a]!="undefined"?getBG().g_securenotes[a]:null}
function get_application(a){if(is_application(a))a=get_appaid(a);return typeof g_applications!="undefined"&&typeof g_applications[a]!="undefined"?g_applications[a]:getBG().g_applications[a]}
function search_results(a,b){var c=[],d;for(d in getBG().g_sites)if(getBG().check_ident_aid(d)){var e=getBG().g_sites[d];if(e.url!="http://group")if(e.url.toLowerCase().indexOf(a)!=-1||e.name.toLowerCase().indexOf(a)!=-1||e.group.toLowerCase().indexOf(a)!=-1||e.unencryptedUsername.toLowerCase().indexOf(a)!=-1)c[c.length]=e;else if(b&&e.extra.length>0&&e.url!="http://group"){var f=getBG().lpmdec_acct(e.extra,true,e,getBG().g_shares);if(f.toLowerCase().indexOf(a)!=-1)c[c.length]=e}}for(d in getBG().g_securenotes)if(getBG().check_ident_aid(d)){e=
getBG().g_securenotes[d];if(e.name.toLowerCase().indexOf(a)!=-1||e.group.toLowerCase().indexOf(a)!=-1)c[c.length]=e;else if(b&&e.extra.length>0&&e.url!="http://group"){f=getBG().lpmdec_acct(e.extra,true,e,getBG().g_shares);if(f.toLowerCase().indexOf(a)!=-1)c[c.length]=e}}for(d in getBG().g_applications)if(getBG().check_ident_appaid(d)){e=getBG().g_applications[d];if(e.appname.toLowerCase().indexOf(a)!=-1||e.name.toLowerCase().indexOf(a)!=-1||e.group.toLowerCase().indexOf(a)!=-1||getusernamefromacct(e).toLowerCase().indexOf(a)!=
-1)c[c.length]=e;else if(b&&e.extra.length>0&&(typeof e.url=="undefined"||e.url!="http://group")){f=getBG().lpmdec_acct(e.extra,true,e,getBG().g_shares);if(f.toLowerCase().indexOf(a)!=-1)c[c.length]=e}}return c}function mostRecent(){return window}function currentWindow(){return window}function en(a){return encodeURIComponent(a)}function lpprefsHasUserValue(a,b){return b}function lpprefsGetBoolPref(a,b){return b}function lpprefsGetIntPref(a,b){return b}function lpGetAccounts(){get_accts()}
var g_port=null,g_foundmanual=false,LP_last_form=null,g_docnum=null,lpsavedform=null,lpsavedformfields=[],lpsharedpasswordfills=[],g_fillaid=null,g_setup_hotkey_handler=false,curr_notification_type="",lpgenpassforms=[],lpgenpasscurrentpwfields=[],g_sites=[],g_formfills=[],g_ischrome=typeof chrome!="undefined"&&typeof chrome.extension!="undefined",g_issafari=typeof safari!="undefined"&&typeof safari.self!="undefined",g_isopera=typeof opera!="undefined"&&typeof opera.extension!="undefined",g_menuopen=
false,experimentaloverlay=g_ischrome||g_issafari,urlprefix=null,disable_check_form_fill=!experimentaloverlay,g_initiallysetupff=false,g_notificationmax=200,g_notificationmin=27,g_iframerand="",g_last_launch=[];function message_handler(a){if(g_issafari)a.name=="message"&&receiveBG(a.message);else g_isopera&&a.data.messagetype=="message"&&receiveBG(a.data)}
function send_focus(){if(g_issafari)safari.self.tab.dispatchMessage("focus",{url:document.location.href});else g_isopera&&opera.extension.postMessage({messagetype:"focus",url:document.location.href})}
function onLoad(){if(g_ischrome){g_port=chrome.extension.connect({name:document.location.href});g_port.onMessage.addListener(receiveBG);g_port.onDisconnect.addListener(function(a){receiveBG(null,a,1)})}else if(g_issafari){safari.self.addEventListener("message",message_handler,false);g_docnum=Math.floor(Math.random()*1E8);safari.self.tab.dispatchMessage("connect",{name:document.location.href,docnum:g_docnum});if(window==lpgettop()){send_focus();window.addEventListener("focus",function(){send_focus()},
false)}}else if(g_isopera){opera.extension.onmessage=message_handler;g_docnum=Math.floor(Math.random()*1E8);opera.extension.postMessage({messagetype:"connect",name:document.location.href,docnum:g_docnum,topurl:lpgettopurl()})}}var g_lp_hotkeys=["generateHk","recheckHk","searchHk","nextHk","prevHk","homeHk","submitHk","saveallHk","logoffHk","defaultffidHk","openpopoverHk"],g_hotkey_data=[];
function handle_hotkey(a){var b=a.keyCode!=0?a.keyCode:a.charCode;if(!(b<32)){var c="";c+=a.ctrlKey?"control":"";c+=a.metaKey?(c!=""?" ":"")+"meta":"";c+=a.altKey?(c!=""?" ":"")+"alt":"";c+=a.shiftKey?(c!=""?" ":"")+"shift":"";if(!(c==""||c=="shift"))for(a=0;a<g_lp_hotkeys.length;a++){var d=g_lp_hotkeys[a];if(g_hotkey_data[d+"KeyCode"]==b&&g_hotkey_data[d+"Mods"]==c){sendBG({cmd:"runhotkey",hotkey:d});break}}}}function disconnectBG(){if(g_port){g_port.disconnect();g_port=null}}
function sendBG(a){a.docnum=g_docnum;if(g_ischrome)g_port?g_port.postMessage(a):L("CS -> BG : FAILED "+a.cmd);else if(g_issafari)safari.self.tab.dispatchMessage("message",a);else if(g_isopera){a.messagetype="message";a.topurl=lpgettopurl();opera.extension.postMessage(a)}}var g_form=null,g_fillreqdocs=[];
function receiveBG(a,b,c){if(!((g_issafari||g_isopera)&&typeof a.docnum!="undefined"&&a.docnum!=g_docnum))if(c){L("BG -> CS : DISCONNECT");g_port=null}else if(typeof a.cmd=="undefined")L("BG -> CS : INVALIDMSG");else{urlprefix=a.urlprefix;switch(a.cmd){case "setdocnum":g_docnum=a.docnum;if(typeof a.ff!="undefined"){setupffoverrides(a);g_initiallysetupff=true}sendBG({cmd:"rebuildcontextonload",url:document.location.href});sendBG({cmd:"getprefs",url:document.location.href,username_val:get_username_val(document)});
evalScriptsInFrame(window,document);break;case "rsadecrypt":g_form.eventtype.value=a.rc;g_form.eventdata4.value=a.sharekeyhex;break;case "plug2web":g_form.eventdata1.value=a.username;g_form.eventdata2.value=a.key;g_form.eventdata3.value=a.version;g_form.eventdata4.value=a.identity;setTimeout(function(){evaluntilfindmanual()},500);break;case "fillfield":fillfield(a);break;case "fillbest":fillbest(a);break;case "run_custom_js":if(a.custom_js!=""){b=a.docid?g_fillreqdocs[a.docid]:document;run_custom_js(b,
lpPrepareCustomJS(a.custom_js,a.username,a.password,a.loc+"",a.onlyfill,b))}break;case "submit":submit(a);break;case "fillform":fillform(a);break;case "clearforms":lpClearForms(null,document,1,window);break;case "saveall":saveall();break;case "setprefs":lpdisableHighlightField=a.highlightFields==0;lpwarninsecureforms=a.warninsecureforms;lpdontfillautocompleteoff=a.dontfillautocompleteoff;lpdonotoverwritefilledfields=a.donotoverwritefilledfields;lpOfferGeneratePasswd=a.showGenerateNotifications;lpShowFormFillNotifications=
a.showFormFillNotifications;lpNotificationsAfterClick=g_initiallysetupff?a.showNotificationsAfterClick:0;alwayschooseprofilecc=a.alwayschooseprofilecc;b=false;for(c=0;c<g_lp_hotkeys.length;c++){var d=g_lp_hotkeys[c];if(a[d+"KeyCode"]!=0)b=true;g_hotkey_data[d+"KeyCode"]=a[d+"KeyCode"];g_hotkey_data[d+"Mods"]=a[d+"Mods"]}if(b&&!g_setup_hotkey_handler){g_setup_hotkey_handler=true;window.addEventListener("keydown",function(e){handle_hotkey(e)},false)}break;case "setuuid":g_form.eventdata1.value=a.uuid;
break;case "recover":g_form.eventdata2.value=a.otp;break;case "recheck":evalScriptsInFrame(window,document,true);break;case "loadurl":document.location.href=a.url;break;case "setupmultifactor":g_form.eventdata3.value=a.result;break;case "setupsinglefactor":g_form.eventdata4.value=a.result;break;case "checkmultifactorsupport":g_form.eventdata4.value=a.type;g_form.eventdata3.value=a.result;break;case "verifymultifactor":g_form.eventdata3.value=a.eventdata3;g_form.eventdata2.value=a.eventdata2;break;
case "multifactorauth":g_form.eventdata5.value=a.multifactorresponse;g_form.eventdata3.value=a.result;break;case "multifactorreprompt":g_form.eventdata3.value=a.result;break;case "showfillnotification":lpshownotification("fill",a);break;case "showaddnotification":lpshownotification("add",a);break;case "showchangenotification":lpshownotification("change",a);break;case "showerrornotification":lpshownotification("error",a);break;case "showbasicauthnotification":lpshownotification("basicauth",a);break;
case "closenotification":lpclosenotification(a.includeerror);break;case "checkgenpwfillforms":checkgenpwfillforms(a);break;case "fillcurrent":fillcurrent(a);break;case "showoverlay":showoverlay(a);break;case "slidedownoverlay":slidedownoverlay(a);break;case "slideupoverlay":slideupoverlay(a);break;case "hideoverlay":hideoverlay(a);break;case "checkgeneratepassword":lpCheckGeneratePassword(null,document,true,window)&&sendBG({cmd:"generatepasswordfound"});break;case "populategeneratedpassword":a.url==
document.location.href&&populategeneratedpassword(a.url,a.password,a.nofill);break;case "gotnotificationdata":if(document.location.href.indexOf("overlay.html")>0){document.body.innerHTML=a.html;run_custom_js(document,showMenuScript())}break;case "gotimportdata":document.getElementById("source").value=a.source;document.getElementById("t").value=a.data;document.getElementById("b64").value="1";document.getElementById("utf8").value="1";document.getElementById("encryptandstore").click();break;default:L("BG -> CS : INVALIDMSG")}}}
document.addEventListener("click",function(){g_menuopen&&slideupoverlay()},false);var g_scrollthread=null,g_scrolloffset=0,g_animatethread=null;
function smoothScroll(){document.getElementById("lpiframeoverlay"+g_iframerand).style.visibility="hidden";g_scrolloffset=30;if(g_scrollthread){clearTimeout(g_scrollthread);clearTimeout(g_animatethread)}g_scrollthread=setTimeout(function(){if(g_scrolloffset!=30)smoothScroll();else{document.getElementById("lpiframeoverlay"+g_iframerand).style.visibility="visible";g_animatethread=setInterval(function(){document.getElementById("lpiframeoverlay"+g_iframerand).style.top=document.body.scrollTop-g_scrolloffset+
"px";g_scrolloffset--;g_scrolloffset<=0&&clearTimeout(g_animatethread)},1)}},400)}if(g_ischrome){document.addEventListener("scroll",function(){document.getElementById("lpiframeoverlay"+g_iframerand)&&smoothScroll()},false);window.addEventListener("focus",function(){sendBG({cmd:"rebuildcontext",url:document.location.href})})}
function overlayresize(){if(document.getElementById("lpiframeoverlay"+g_iframerand)){var a=window.innerWidth;document.getElementById("lpiframeoverlay"+g_iframerand).style.width=a+"px";document.getElementById("lpiframe"+g_iframerand).style.width=a+"px"}}
function showoverlay(a,b){var c=document.body;if(c){var d="",e=h=t=l=0;d=g_iframerand=Math.floor(Math.random()*1E8);e=window.innerWidth;h=g_notificationmin;l=0;t=document.body.scrollTop;var f=document.createElement("div");f.id="lptopspacer"+g_iframerand;f.style.height=g_notificationmin+"px";c.insertBefore(f,c.firstChild);window.addEventListener("resize",overlayresize,false);f=document.createElement("div");f.id="lpiframeoverlay"+d;f.style.top=t+"px";f.style.left=l+"px";f.style.height="1px";f.style.width=
e+"px";f.style.position="absolute";f.style.backgroundColor="black";f.style.zIndex="1000000099";c.appendChild(f);c=document.createElement("iframe");c.id="lpiframe"+d;c.src=urlprefix+"overlay.html?"+b;c.style.height=h+"px";c.style.width=e+"px";c.style.border="0px";f.appendChild(c)}}
function slidedownoverlay(a){var b=document.getElementById("lpiframe"+g_iframerand);if(b){var c=parseInt(b.style.height);g_menuopen=true;if(c<g_notificationmax){b.style.height=c+(g_notificationmax-c>10?10:g_notificationmax-c)+"px";setTimeout(function(){slidedownoverlay(a)},5)}}}
function slideupoverlay(a){var b=document.getElementById("lpiframe"+g_iframerand);if(b){var c=parseInt(b.style.height);g_menuopen=false;if(c>g_notificationmin){b.style.height=c-(c-g_notificationmin>10?10:c-g_notificationmin)+"px";setTimeout(function(){slideupoverlay(a)},5)}}}
function hideoverlay(){if(document.getElementById("lpiframeoverlay"+g_iframerand)){document.body.removeChild(document.getElementById("lpiframeoverlay"+g_iframerand));document.body.removeChild(document.getElementById("lptopspacer"+g_iframerand));window.removeEventListener("resize",overlayresize,false)}}
function fillcurrent(a){if(typeof lpgenpasscurrentpwfields[document.location.href]!="undefined"&&lpgenpasscurrentpwfields[document.location.href])lpgenpasscurrentpwfields[document.location.href].value=a.password}
function setupffoverrides(a){if(typeof g_ff=="undefined"||g_ff==null){g_ff=a.ff;if(g_issafari||g_isopera)eval(a.language_data);if(!(typeof g_ff=="undefined"||g_ff==null)){a=LPJSON.parse(g_ff);for(var b in a)if(a.hasOwnProperty(b))for(var c in a[b])if(a[b].hasOwnProperty(c)&&c.indexOf("ff_")==0)lpgscache[b+c]=a[b][c]}}}
function checkgenpwfillforms(a){setupffoverrides(a);var b=null;if(g_sites.length==0)g_sites=LPJSON.parse(a.sites);if(g_formfills.length==0)g_formfills=LPJSON.parse(a.formfills);a.nevergenerate||(b=lpCheckGeneratePassword(null,document,false,window));experimentaloverlay&&!b&&!a.neverformfill&&lpCheckFormFill(null,document,false,false,null,1,window)}
function evalScriptsInFrame(a,b,c){try{for(var d=0;b.frames&&d<b.frames.length;d++)evalScriptsInFrame(b.frames[d],b.frames[d].document,c)}catch(e){}d=b.readyState;if(c||d=="loaded"||d=="complete"){if(b.body&&typeof b.body._lpcrdone=="undefined"){b.body._lpcrdone=1;hookAllFormSubmits(b)}else if(!c)return;c=c?1:0;sendBG({cmd:"fill",url:b.location.href,docid:g_fillreqdocs.length,force:c});g_fillreqdocs[g_fillreqdocs.length]=b;d!="complete"&&window.addEventListener("load",function(){sendBG({cmd:"fill",
url:b.location.href,docid:g_fillreqdocs.length-1,force:c})},false)}else setTimeout(function(){evalScriptsInFrame(a,b,0)},100)}
function hookAllFormSubmits(a){try{if(lp_gettld_url(a.location.href)!="acidtests.org"&&a.getElementById("hiddenlpsubmitdiv")==null&&a.forms.length>0){var b=a.createElement("div");b.style.display="none";b.id="hiddenlpsubmitdiv";a.body&&a.body.appendChild(b);run_custom_js(a,'for(var lastpass_iter=0; lastpass_iter < document.forms.length; lastpass_iter++){ var lastpass_f = document.forms[lastpass_iter]; if(typeof(lastpass_f.lpsubmitorig2)=="undefined"){ lastpass_f.lpsubmitorig2 = lastpass_f.submit; lastpass_f.submit = function(){ var form=this; var customEvent = document.createEvent("Event"); customEvent.initEvent("lpCustomEvent", true, true); var d = document.getElementById("hiddenlpsubmitdiv"); for(var i = 0; i < document.forms.length; i++){ if(document.forms[i]==form){ d.innerText=i; } } d.dispatchEvent(customEvent); form.lpsubmitorig2(); } } }');b.addEventListener("lpCustomEvent",
function(){handle_form_submit(a,a.forms[parseInt(b.innerText)])})}for(var c=0;c<a.forms.length;c++){var d=a.forms[c];if(typeof d.lpsubmitorig=="undefined"){if(d.name=="lpmanualform")g_foundmanual=true;d.lpsubmitorig=true;d.addEventListener("submit",function(n){handle_form_submit(a,n.target)},false);if(typeof d.elements!="function")for(var e=0;e<d.elements.length;e++){var f=d.elements[e];if("text"==f.type||"email"==f.type||"password"==f.type){f.addEventListener("change",lpfieldchange,false);g_initiallysetupff||
f.addEventListener("focus",lpfieldfocus,false)}}}}}catch(k){}}function handle_form_submit(a,b){try{if(b.name=="lpwebsiteeventform")lpwebsiteevent(a,b);else if(b.name=="lpmanualform")lpmanuallogin(a,b);else{var c=LP_get_form_save(b);if(c==null)return false;if(typeof a.LPlpsaveforminfo!="undefined"&&typeof SAVEALLFORMSUBMITS=="undefined")lpupdatefields(a,c);else typeof a.LPlpsaveforminfoaddurid!="undefined"?lpaddurid(a,c):lpformsubmit(a,c)}}catch(d){}}
function lpupdatefields(a,b){sendBG({cmd:"updatefields",url:a.location.href,formdata:b,aid:a.LPlpsaveforminfo})}function lpaddurid(a,b){sendBG({cmd:"addurid",url:a.location.href,formdata:b,aid:a.LPlpsaveforminfoaddurid})}function lpformsubmit(a,b){sendBG({cmd:"save",url:a.location.href,formdata:b})}function lpmanuallogin(a,b){sendBG({cmd:"launchautologin",url:a.location.href,aid:b.aid.value})}
function lpwebsiteevent(a,b){sendBG({cmd:"log",msg:"Event: "+b.eventtype.value});if(b.eventtype.value=="keyplug2web"){g_form=b;sendBG({cmd:"plug2web",url:a.location.href,username:b.eventdata1.value})}else if(b.eventtype.value=="keyweb2plug")sendBG({cmd:"web2plug",url:a.location.href,key:b.eventdata1.value,username:b.eventdata2.value,rsa:b.eventdata3.value});else if(b.eventtype.value=="logoff")sendBG({cmd:"logoff",url:a.location.href});else if(b.eventtype.value=="login")sendBG({cmd:"login",url:a.location.href,
wxusername:b.eventdata1.value,keyhex:b.eventdata2.value,wxhash:b.eventdata3.value,wxsessid:b.eventdata5.value});else if(b.eventtype.value=="rsadecrypt"){g_form=b;sendBG({cmd:"rsadecrypt",url:a.location.href,sharerpublickeyhex:b.eventdata1.value,sharekeyenchexsig:b.eventdata2.value,sharekeyenchex:b.eventdata3.value})}else if(b.eventtype.value=="clearcache")sendBG({cmd:"clearcache",url:a.location.href});else if(b.eventtype.value=="getimportdata")sendBG({cmd:"getimportdata",url:a.location.href});else if(b.eventtype.value==
"recover"){g_form=b;sendBG({cmd:"recover",url:a.location.href,username:b.eventdata1.value})}else if(b.eventtype.value=="refresh")sendBG({cmd:"refresh",url:a.location.href,from:b.eventdata1.value,type:b.eventdata2.value});else if(b.eventtype.value=="switchidentity")sendBG({cmd:"switchidentity",url:a.location.href,iid:b.eventdata1.value});else if(b.eventtype.value=="getuuid"){g_form=b;sendBG({cmd:"getuuid"})}else if(b.eventtype.value=="setupmultifactor"){b.eventdata3.value="working";g_form=b;sendBG({cmd:"setupmultifactor",
type:b.eventdata1.value,username:b.eventdata2.value})}else if(b.eventtype.value=="setupsinglefactor"){if(b.eventdata5.value!="1")b.eventdata4.value="working";g_form=b;sendBG({cmd:"setupsinglefactor",type:b.eventdata1.value,username:b.eventdata2.value,password:b.eventdata3.value,silent:b.eventdata5.value})}else if(b.eventtype.value=="checkmultifactorsupport"){g_form=b;sendBG({cmd:"checkmultifactorsupport",type:b.eventdata1.value})}else if(b.eventtype.value=="verifymultifactor"){b.eventdata2.value=
"working";g_form=b;sendBG({cmd:"verifymultifactor",eventdata1:b.eventdata1.value})}else if(b.eventtype.value=="multifactorauth"){b.eventdata3.value="working";g_form=b;sendBG({cmd:"multifactorauth",type:b.eventdata1.value,username:b.eventdata2.value,challenge:b.eventdata4.value})}else if(b.eventtype.value=="multifactorreprompt"){b.eventdata3.value="working";g_form=b;sendBG({cmd:"multifactorreprompt",type:b.eventdata1.value,username:b.eventdata2.value,challenge:b.eventdata4.value})}else if(b.eventtype.value==
"gohome")sendBG({cmd:"gohome",email:b.eventdata1.value,sesameotp:b.eventdata2.value});else b.eventtype.value=="lpgologin"&&sendBG({cmd:"lpgologin",url:a.location.href,data:b.eventdata1.value,session_key:b.eventdata2.value})}function checkdomain(a,b){for(var c=lp_gettld_url(a.location.href),d=b.split(","),e=0;e<d.length;e++)if(d[e]==c)return true;return false}var firstfill=true;
function fillfield(a){var b=a.docid?g_fillreqdocs[a.docid]:document,c=typeof a.doconfirm!="undefined"?a.doconfirm:false,d=typeof a.allowforce!="undefined"?a.allowforce:0,e=typeof a.aid!="undefined"?a.aid:0,f=typeof a.tabid!="undefined"?a.tabid:0,k=typeof a.custom_js!="undefined"?a.custom_js:"",n=typeof a.manualfill!="undefined"?a.manualfill:false,o=typeof a.username!="undefined"?a.username:"",g=typeof a.password!="undefined"?a.password:"",r=typeof a.onlyfill!="undefined"?a.onlyfill:false,p=typeof a.automaticallyFill!=
"undefined"?parseInt(a.automaticallyFill):1;if(a.is_launch)g_last_launch[e]=(new Date).getTime();if(checkdomain(b,a.domains)){if(firstfill)if(k!=""){run_custom_js(b,lpPrepareCustomJS(k,o,g,"1",r,b));run_custom_js(b,lpPrepareCustomJS(k,o,g,"2",r,b))}if(a.highlight==0)lpdisableHighlightField=1;if(k=LP_setval(b,a.name,a.value,a.checked,a.aid,a.formname,a.type,a.sharedsite,a.otherfield,p))g_fillaid=e;if(firstfill)firstfill=false;c&&sendBG({cmd:"fillfieldconfirm",manualfill:n,url:b.location.href,result:k,
aid:e,docid:a.docid,tabid:f,allowforce:d,automaticallyFill:p})}else console_error("Not filling because tld mismatch between "+b.location.href+" and "+a.domains)}
function fillbest(a){var b=a.docid?g_fillreqdocs[a.docid]:document,c=typeof a.automaticallyFill!="undefined"?parseInt(a.automaticallyFill):1;if(a.is_launch)g_last_launch[a.aid]=(new Date).getTime();if(checkdomain(b,a.domains)){if(a.highlight==0)lpdisableHighlightField=1;run_custom_js(b,typeof a.custom_js!="undefined"?a.custom_js:"");LP_setval_bestmatch(b,a.username,a.password,a.aid,a.updatefields,a.sharedsite,a.addurid,c)}else console_error("Not filling because tld mismatch between "+b.location.href+
" and "+a.domains)}function submit(a){var b=a.docid?g_fillreqdocs[a.docid]:document;if(LP_last_form!=null){LP_doSubmit(b,LP_last_form,a.submit_id);if(b.body&&typeof a.submit_html!="undefined"&&a.submit_html!="")b.body.innerHTML+=a.submit_html;typeof a.submit_js!="undefined"&&a.submit_js!=""&&window.eval(a.submit_js)}}function fillform(a){LP_to_formfill=LPJSON.parse(a.toformfill);translations=LPJSON.parse(a.translations);LP_form_fill()}
function saveall(){var a="";if(typeof document.location!="undefined")a=document.location.href;sendBG({cmd:"saveall",addsite:1,url:a,formdata:LP_get_form_save_all()})}function LP_truncate_text_if(a){if(typeof a=="string"&&a.length>45E3)a=a.substring(0,45E3);return a}function LP_en(a){return encodeURIComponent(a)}
function LP_getname(a,b){if(b&&typeof a.id!="undefined"&&a.id!="")return a.id;if(typeof a!="undefined"&&a!=null)if(typeof a.name=="string"&&a.name!="")return a.name;else if(typeof a.id!="undefined")return a.id;return""}function LP_getform_for_input(a,b){for(var c=a.getElementsByTagName("form"),d=0;d<c.length;d++)for(var e=c[d].elements,f=0;f<e.length;f++){var k=e[f];if(b==k){if(LP_last_form!=c[d]&&(!LP_last_form||lpIsVisible(k)))LP_last_form=c[d];return c[d]}}}
function LP_setval(a,b,c,d,e,f,k,n,o,g){for(var r=a.getElementsByTagName(k=="select-one"?"select":k=="textarea"?"textarea":"input"),p=false,x=false,j=1;j<=2;j++){var u=0,w=r.length-1;if(j==2){w=-1;if(o&&!p){var z=b.match(/^(input|select|textarea)(\d+)$/);if(z){z=parseInt(z[2]);if(r.length>z)u=w=z}}}for(u=u;u<=w;u++){z=r[u];if(j==2||LP_getname(z)==b)if(!(j==1&&f!=""&&(typeof z.form=="undefined"||!z.form||LP_getname(z.form)!=f))){p=true;if("password"==z.type||"text"==z.type||"email"==z.type||"textarea"==
z.type||"select-one"==z.type){if(z.form&&!lpCheckWarnInsecure(z.form,z.form.ownerDocument,false))return false;if(k=="password"&&z.type!="password")return false;if(n&&k=="password")lpsharedpasswordfills[lpsharedpasswordfills.length]=z;if(g){typeof e!="undefined"&&e&&typeof g_last_launch!="undefined"&&typeof g_last_launch[e]!="undefined"&&(new Date).getTime()-g_last_launch[e]<=25E3&&z.focus();x=z.value!=c;z.value=c;x&&fire_onchange(z)}lphighlightField(z);LP_getform_for_input(a,z);x=true}else if("radio"==
z.type){if(g)if(z.value==c){x=z.checked!=d;z.checked=d;x&&fire_onchange(z);x=true}}else if("checkbox"==z.type)if(g){x=z.checked!=d;z.checked=d;x&&fire_onchange(z);x=true}}}}return x}
function LP_setvaloffset(a,b,c,d,e,f,k,n){b=b.elements[c];if("password"==b.type||"text"==b.type||"email"==b.type||"textarea"==b.type||"select-one"==b.type){if(b.form&&!lpCheckWarnInsecure(b.form,b.form.ownerDocument,false))return false;if(e=="password"&&b.type!="password")return false;if(k&&e=="password")lpsharedpasswordfills[lpsharedpasswordfills.length]=b;if(f){typeof n!="undefined"&&n&&typeof g_last_launch!="undefined"&&typeof g_last_launch[n]!="undefined"&&(new Date).getTime()-g_last_launch[n]<=
25E3&&b.focus();e=b.value!=d;b.value=d;e&&fire_onchange(b)}lphighlightField(b);LP_getform_for_input(a,b)}}
function LP_force(a,b,c){for(var d=document.getElementsByTagName("form"),e=0;e<d.length;e++)for(var f=d[e].elements,k=0;k<f.length;k++){var n=f[k];if("password"==n.type&&"password"==a||"text"==n.type&&"text"==a||"email"==n.type&&"email"==a){typeof c!="undefined"&&c&&typeof g_last_launch!="undefined"&&typeof g_last_launch[c]!="undefined"&&(new Date).getTime()-g_last_launch[c]<=25E3&&n.focus();a=n.value!=b;n.value=b;a&&fire_onchange(n);LP_last_form=d[e];return d[e]}}}
function LP_setval_bestmatch(a,b,c,d,e,f,k,n){var o=null,g=0,r=0,p=null,x=null,j=a.getElementsByTagName("form");if(j.length==0){for(var u=document.getElementsByTagName("input"),w=0;w<u.length;w++){var z=u[w].type;if((z=="text"||z=="email")&&x==null)p=LP_getname(u[w]);if(z=="password"&&x==null)x=LP_getname(u[w])}if(x!=null)o=""}for(w=0;w<j.length;w++){u=j[w].elements;for(var s=z=0,D=0,M=0,P=null,O=null,y=0;y<u.length;y++){var H=u[y];if("text"==H.type||"email"==H.type){if(z==0){P=LP_getname(H);D=y}z++}if(H.type==
"password"){if(s==0){O=LP_getname(H);M=y}s++}}if(s==1)if(!o||z==1&&g!=1){g=z;o=j[w];p=P;x=O;besttextoffset=D;r=M}}if(o!=null){if(b!="")p!=""?LP_setval(a,p,b,0,d,o==""?"":LP_getname(o),"",f,null,n):LP_setvaloffset(a,o,besttextoffset,b,"text",n,f,d);x!=""?LP_setval(a,x,c,0,d,o==""?"":LP_getname(o),"",f,null,n):LP_setvaloffset(a,o,r,c,"password",n,f,d);if(e)a.LPlpsaveforminfo=d;else if(k)a.LPlpsaveforminfoaddurid=d}}
function lpCheckWarnInsecure(a,b,c){if(a){if(!c&&typeof lpdontfillautocompleteoff!="undefined"&&lpdontfillautocompleteoff)if(a.getAttribute("autocomplete")=="off")return null;if(typeof lpwarninsecureforms!="undefined"&&lpwarninsecureforms)if(a.method&&typeof a.method=="string"&&a.method.toUpperCase()=="GET"||typeof a.action=="string"&&a.action.indexOf("mailto:")==0){if(typeof g_warnedUserThisPageLogin=="undefined")g_warnedUserThisPageLogin=1;else return;if(!confirm(gs("LastPass detected a login form that is insecure.\n\nWould you like to continue?")))return null}}return a}
function lphighlightField(a,b){if(!(typeof lpdisableHighlightField!="undefined"&&lpdisableHighlightField))if(!(a.type!="text"&&a.type!="password"&&a.type!="email")){var c=false;if(typeof b=="undefined")c=b=true;var d=a.style.width.replace(/px/,"");if(d=="")try{var e=a.ownerDocument.defaultView.getComputedStyle(a,"");d=e.width.replace(/px/,"")}catch(f){}if(!(d>0&&d<30)){d=a.style.backgroundImage;if(d=="")try{e=a.ownerDocument.defaultView.getComputedStyle(a,"");d=e.backgroundImage}catch(k){}if(d=="none")d=
"";if(d=="")a.style.backgroundImage=b?"url(data:image/gif;base64,R0lGODlhEAAQAMQAAHgAFq9RZp8BJfT09JkCJKUuSO/q6/n//vHh5YYBGvf6+tOyucB0hsuLmpUiOpIAHIgJJtzFy7pneuvT2fP49/Dw8L5/juS+x8Scpn4BHaMDJ3cAHHQAG6YDKHEAGv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjEgNjQuMTQwOTQ5LCAyMDEwLzEyLzA3LTEwOjU3OjAxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOkZCN0YxMTc0MDcyMDY4MTFCRURDRjg2RUEzOUI0MjBEIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjUyQjY0RUJGQTQ2QzExRTA5MkM2OTcwNjIwMUM1QjhFIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjUyQjY0RUJFQTQ2QzExRTA5MkM2OTcwNjIwMUM1QjhFIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RkE3RjExNzQwNzIwNjgxMTkyQjA4Nzg0MUEyMjBGMUUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RkI3RjExNzQwNzIwNjgxMUJFRENGODZFQTM5QjQyMEQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4B//79/Pv6+fj39vX08/Lx8O/u7ezr6uno5+bl5OPi4eDf3t3c29rZ2NfW1dTT0tHQz87NzMvKycjHxsXEw8LBwL++vby7urm4t7a1tLOysbCvrq2sq6qpqKempaSjoqGgn56dnJuamZiXlpWUk5KRkI+OjYyLiomIh4aFhIOCgYB/fn18e3p5eHd2dXRzcnFwb25tbGtqaWhnZmVkY2JhYF9eXVxbWllYV1ZVVFNSUVBPTk1MS0pJSEdGRURDQkFAPz49PDs6OTg3NjU0MzIxMC8uLSwrKikoJyYlJCMiISAfHh0cGxoZGBcWFRQTEhEQDw4NDAsKCQgHBgUEAwIBAAAh+QQAAAAAACwAAAAAEAAQAAAFmGAnjmTZaSgqCCqbautKdMVaOEQsEDkRTAjN44IIyHi8R+DzYRSYjAcy+Ug0PojJZ/HoUh2BgGRwOCga4UK3uiwP3mSmJVFNBBQVQwWuVzASgAkQDmAVFIcShBCAGY0ZAAsHEZEREACOjgABBxQBDhUHFpeNG6UcDhgLHgCpBQClsKUeHBAeGxkctrAcvL2zub2+HsPExcYhADs=)":
"";else c=false;e=a.offsetWidth;if(d==""){a.style.paddingRight=b?"18px":"0px";a.style.backgroundRepeat="no-repeat";a.style.backgroundAttachment="scroll";a.style.backgroundPosition="center right"}a.style.border="1px solid #c01f2f";if(e>0){a.style.width=e+"px";a.style.width=2*e-a.offsetWidth+"px"}if(c&&e>0&&e<54){a.addEventListener("focus",function(){lphighlightField(a,false)},false);a.addEventListener("blur",function(){lphighlightField(a,true)},false)}}}}
function LP_fireEvent(a,b,c){c||(c="HTMLEvents");if(document.createEventObject){c=document.createEventObject();return a.fireEvent("on"+b,c)}else{c=document.createEvent(c);c.initEvent(b,true,true);return!a.dispatchEvent(c)}}
function LP_doSubmit(a,b,c){var d=0;if(c!=""){var e=a.getElementById(c);if(!e){var f=a.getElementsByName(c);if(f&&f.length>0)e=f[0]}if(!e)if(f=a.getElementsByTagName("INPUT"))for(var k=0;k<f.length;k++)if(f[k].value==c)e=f[k];if(!e)if(f=a.getElementsByTagName("A"))for(k=0;k<f.length;k++)if(f[k].href==c)e=f[k];if(e){LP_fireEvent(e,"click","MouseEvents");d=1}}d||(d=LP_InputClickToSubmit(a,b,"submit"));d||(d=LP_InputClickToSubmit(a,b,"image"));d||(d=LP_InputClickToSubmit(a,b,"button"));if(!d){if(lp_gettld_url(a.location.href)!=
"bankofamerica.com"){try{LP_fireEvent(b,"submit")}catch(n){}try{b.submit()}catch(o){return o.toString()}}b=null;if(f=a.getElementsByTagName("INPUT"))for(k=0;k<f.length;k++)if(f[k].type=="password")b=f[k];if(b){b.focus();a.createEvent("KeyboardEvent").initKeyboardEvent("keypress",true,true,lpgettop(),"Enter",0,false,false,false,false)}}}
function LP_get_form_save_all(){for(var a="",b=document.getElementsByTagName("form"),c=[""],d=0;d<b.length;d++)a+=LP_get_form_save(b[d],true,c);b="";for(var e=["input","select","textarea"],f=0;f<e.length;f++){var k=document.getElementsByTagName(e[f]);for(d=0;d<k.length;d++)if(k[d].form==null||lp_in_array(LP_getname(k[d]),c)){var n=lp_in_array(LP_getname(k[d]),c)?e[f]+d:null;b+=LP_get_field_text("",k[d],{},{},false,n)}}if(b!=""){b+="0\taction\t\taction\n";b+="0\tmethod\t\tmethod\n";a+=b}return a}
function LP_get_form_save(a,b,c){var d="",e={};e.value=0;var f=a.elements,k={};k.value=false;var n=[],o=[],g=[],r=[];if(b)for(var p=0;p<f.length;p++){if(typeof n[f[p].name]!="undefined")g[f[p].name]=true;n[f[p].name]=true;if(typeof o[f[p].id]!="undefined")r[f[p].id]=true;o[f[p].id]=true}for(p=0;p<f.length;p++){if(b){n=LP_getname(f[p]);if(n==""||typeof g[n]!="undefined"&&typeof r[n]!="undefined"){c[c.length]=n;continue}}d+=LP_get_field_text(LP_getname(a),f[p],e,k,b)}if(k.value&&!lpCheckWarnInsecure(a,
a.ownerDocument,true))return null;d+="0\taction\t"+LP_en(a.action)+"\taction\n";d+="0\tmethod\t"+LP_en(a.method)+"\tmethod\n";if(e.value)return d;return""}
function LP_get_field_text(a,b,c,d,e,f){var k="";f=f?f:LP_getname(b);var n=b.type,o=LP_truncate_text_if(b.value);if(e&&o==""&&b.name&&b.name!="")for(var g=document.getElementsByName(b.name),r=0;r<g.length;r++)if(LP_getname(g[r].form)==a&&LP_getname(g[r])==f&&g[r].type==n&&g[r].value!="")return"";if(n=="password")d.value=true;if("password"==n||"text"==n||"email"==n||"textarea"==n||"hidden"==n){if("hidden"!=n)c.value=1;if(!e&&lpsavedform==b.form)for(c=0;c<lpsavedformfields.length;c++)if(lpsavedformfields[c].name==
LP_getname(b)){if(lpsavedformfields[c].value!=o)if(o==""||o.match(/^\*+$/))o=lpsavedformfields[c].value;else if(o.length==lpsavedformfields[c].value.length){d=true;for(r=0;r<o.length;r++)if(o.charAt(r)!=lpsavedformfields[c].value.charAt(r)&&o.charAt(r)!="*"){d=false;break}if(d)o=lpsavedformfields[c].value}break}if(n=="password")for(c=0;c<lpsharedpasswordfills.length;c++)if(lpsharedpasswordfills[c]==b){o="";break}k+=a+"\t"+LP_en(f)+"\t"+LP_en(o)+"\t"+LP_en(n)+"\n"}else if("checkbox"==n||"radio"==n){o+=
b.checked?"-1":"-0";k+=a+"\t"+LP_en(f)+"\t"+LP_en(o)+"\t"+LP_en(n)+"\n"}else if("select-one"==n||"dropdown"==n||"select-multiple"==n){if(n=="select-multiple"){r=o="";for(c=0;c<b.options.length;c++)if(b.options[c].selected){o+=r+LP_en(b.options[c].value);r="|"}}else o=b.selectedIndex<0||b.selectedIndex>=b.options.length||typeof b.options[b.selectedIndex]=="undefined"?"":b.options[b.selectedIndex].value;k+=a+"\t"+LP_en(f)+"\t"+LP_en(o)+"\t"+LP_en(n)+"\n"}else if("image"==n){o=b.src;k+=a+"\t"+LP_en(f)+
"\t"+LP_en(o)+"\t"+LP_en(n)+"\n"}return k}function evaluntilfindmanual(){if(!g_foundmanual){var a=lpgettop().document;hookAllFormSubmits(a);try{for(var b=0;a.frames&&b<a.frames.length;b++)hookAllFormSubmits(a.frames[b].document)}catch(c){}lpgettop().setTimeout(function(){evaluntilfindmanual()},500)}}function lpfieldfocus(a){a=a?a.target:this;if(a.form&&a.form.getAttribute("_lpchecked")==null){a.form.setAttribute("_lpchecked","1");sendBG({cmd:"checkgenpwfillforms",url:document.location.href})}}
function lpfieldchange(a){a=a?a.target:this;if(a.form){lpsavedform=a.form;if(LP_getname(a)!=""&&("text"==a.type||"email"==a.type||"password"==a.type)){for(var b=false,c=0;c<lpsavedformfields.length;c++)if(lpsavedformfields[c].formname==LP_getname(lpsavedform)&&lpsavedformfields[c].name==LP_getname(a)){lpsavedformfields[c].value=a.value;b=true;break}if(!b){b={};b.name=LP_getname(a);b.type=a.type;b.value=a.value;b.formname=LP_getname(lpsavedform);lpsavedformfields[lpsavedformfields.length]=b}}}}
function lpshownotification(a,b){if(typeof NONOTIFICATIONS=="undefined")try{if(!(document.getElementById("lastpass-notification")||document.getElementById("lpiframeoverlay"+g_iframerand)))if(window==lpgettop()){var c=document.body;if(c)if(!(typeof b.docnum!="undefined"&&g_docnum!=b.docnum)){var d=true;if(a=="fill"){if(checkForLoginForm(document)){var e=getAutoFillArray(LPJSON.parse(b.sites));if(getcount(e)==1)for(var f in e){d=typeof e[f].fields=="undefined"||getcount(e[f].fields)==0||!canFindForm(e[f].fields)||
!g_fillaid;break}}else d=false;if(g_fillaid==null)b.text=gs("Simplify your life: Use LastPass to autofill in this site's login info!")}if(d){experimentaloverlay||addStyle();run_custom_js(document,showMenuScript());d=null;if(!experimentaloverlay){d=document.createElement("div");d.id="lastpass-notification";d.style.background=get_notification_bg();d.style.backgroundRepeat="repeat-x";if(g_isopera)d.unselectable="on";var k=window.getComputedStyle(c,null);d.style.marginLeft=-1*(parseInt(k.getPropertyValue("margin-left"))+
parseInt(k.getPropertyValue("padding-left"))+parseInt(k.getPropertyValue("border-left-width")))+"px";d.style.marginRight=-1*(parseInt(k.getPropertyValue("margin-right"))+parseInt(k.getPropertyValue("padding-right"))+parseInt(k.getPropertyValue("border-right-width")))+"px";d.style.marginTop=-1*(parseInt(k.getPropertyValue("margin-top"))+parseInt(k.getPropertyValue("padding-top"))+parseInt(k.getPropertyValue("border-top-width")))+"px"}k="";e=1;f=g_isopera?"float:left;":"";k='<img width="16" height="16" style="width:16px;height:16px;display:inline;'+
f+'" src="data:image/gif;base64,R0lGODdhEAAQAPQfAHEAGq9RZp8BJfT09JkCJKUuSO/q6/n//vHh5YYBGvf6+tOyucB0hsuLmpUiOpIAHIgJJtzFy7pneuvT2fP49/Dw8L5/juS+x8Scpn4BHaMDJ3cAHHQAG6YDKP///3gAFiH/C1hNUCBEYXRhWE1QRj94cDI2NkQzRERDQjk3IiB4bXBNTTpJbnN0YW5jZUlEPVJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4ALAAAAAAQABAAAAWYYCeOZNlpKCoIKptq60p0xVo4RCwQORFMCM3jggjIeLxHwONhFJiMBzL5SDQ8iIln8ehSHYGAZHA4KBrhQre6LA/eZKYlUU0EFBVDBa5XMBKACRAOYBUUhxKEEIAZjRkfCwcRkREQH46OHwEHFAEOFQcWl40bpRwOGAsAH6kFH6WwpQAcEAAbGRy2sBy8vbO5vb4Aw8TFxiEAOw=="/>';
if(typeof b.icon!="undefined")k='<img style="display:inline;'+f+'" src="'+b.icon+'"/>';k+='<div id="lastpass-content" style="color:white;'+g_webkit_selectable+'" '+g_opera_selectable+">"+b.text+"</div>";k+=experimentaloverlay?'<img width="16" height="16" lptype="close" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABYklEQVR42qXTvWrCUBQHcKe+QqfundPFxT0OnTJ0MtChmw/g4NgH6FtkEwoBv8BEA8EYFGswBIIEhFCrU4V26cfp+Qe5RLlKwcAPknty/7mHe1NoNBoy9+yZJWzBcN3J3j0cuGJJt9ul0WhEYRjSfD4nz/Oo0+kQ10J2eSygyL4xcb1eyyAUIV/sWhawHY/HtFqtTvJ9HyGbw4B6r9ejNE3/ZdfOQz4gnkwmtFwuM7VajRRFIcMwyLIs3GNM1HetePmA9yAIKEkSoVqtUrlcBtzv1abTKQJe9wIwGMexgGd8GQ5rvFoEvOUDFtiqKIoEXddJVdWMpml7Ndd1EfCSD3jC3mPPoVKpUKlUItM0AavAmKi3220E1PMBF+zTcRyazWYn9ft9Qsuyc3DLfm3bRs8y2BFM/mFFWQDcsE2r1SKsZjgcZgaDATWbTUxOxSmUBwiPLGEfOzGrH/uZzlIgorP8ASYfyJK1fcokAAAAAElFTkSuQmCC" onmouseover="this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABX0lEQVR42qXTsWrCUBTGcaFroZNTwQfo1KnQN3CQblLIkD2CFIqbaEBQsGAIJBAaCIoQI4JKoeADFDpVmuCsUyE4FJyznJ4vSEjkKgWFH4R7cv/RS8zNZjORO/bMXDZkT+xWdO/hwtV+E02n0wxeg1d2eSxQYD+TyYRc1xXiGSIblhcFPnGT4zgnjUYjRBaHgaLneWSa5r+Mx2NE7tOBvmVZ1O12Y8vlkqIoovl8ToPBANdYS+a2bSPwkg58YNBsNhNBENB2uwVcZ2a9Xg+Bt0yg1WpRrVZLNBoNPBlwnZm1220E3tOBIQKKoiRWqxWFYRhbr9eZWafTQcBIBx4NwyBZlmO+79Nut8OTAd8Ca8kc54WDTwcu2He9XqdyuXySqqqEnyx6D27YLyKlUkkEB4jNISuIAnDNFpqmUaVSIUmSYtVqlXRdx2Z88uJXOeuBuexrr8+Kx/5MZ8kR0Vn+AGczfuZVuZDxAAAAAElFTkSuQmCC\'" onmouseout="this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABYklEQVR42qXTvWrCUBQHcKe+QqfundPFxT0OnTJ0MtChmw/g4NgH6FtkEwoBv8BEA8EYFGswBIIEhFCrU4V26cfp+Qe5RLlKwcAPknty/7mHe1NoNBoy9+yZJWzBcN3J3j0cuGJJt9ul0WhEYRjSfD4nz/Oo0+kQ10J2eSygyL4xcb1eyyAUIV/sWhawHY/HtFqtTvJ9HyGbw4B6r9ejNE3/ZdfOQz4gnkwmtFwuM7VajRRFIcMwyLIs3GNM1HetePmA9yAIKEkSoVqtUrlcBtzv1abTKQJe9wIwGMexgGd8GQ5rvFoEvOUDFtiqKIoEXddJVdWMpml7Ndd1EfCSD3jC3mPPoVKpUKlUItM0AavAmKi3220E1PMBF+zTcRyazWYn9ft9Qsuyc3DLfm3bRs8y2BFM/mFFWQDcsE2r1SKsZjgcZgaDATWbTUxOxSmUBwiPLGEfOzGrH/uZzlIgorP8ASYfyJK1fcokAAAAAElFTkSuQmCC\'" style="width:16px;height:16px;float: right; margin-right: 10px; margin-bottom: -10px;" onclick="hideoverlay()"/> ':
'<img width="16" height="16" lptype="close" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABYklEQVR42qXTvWrCUBQHcKe+QqfundPFxT0OnTJ0MtChmw/g4NgH6FtkEwoBv8BEA8EYFGswBIIEhFCrU4V26cfp+Qe5RLlKwcAPknty/7mHe1NoNBoy9+yZJWzBcN3J3j0cuGJJt9ul0WhEYRjSfD4nz/Oo0+kQ10J2eSygyL4xcb1eyyAUIV/sWhawHY/HtFqtTvJ9HyGbw4B6r9ejNE3/ZdfOQz4gnkwmtFwuM7VajRRFIcMwyLIs3GNM1HetePmA9yAIKEkSoVqtUrlcBtzv1abTKQJe9wIwGMexgGd8GQ5rvFoEvOUDFtiqKIoEXddJVdWMpml7Ndd1EfCSD3jC3mPPoVKpUKlUItM0AavAmKi3220E1PMBF+zTcRyazWYn9ft9Qsuyc3DLfm3bRs8y2BFM/mFFWQDcsE2r1SKsZjgcZgaDATWbTUxOxSmUBwiPLGEfOzGrH/uZzlIgorP8ASYfyJK1fcokAAAAAElFTkSuQmCC" onmouseover="this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABX0lEQVR42qXTsWrCUBTGcaFroZNTwQfo1KnQN3CQblLIkD2CFIqbaEBQsGAIJBAaCIoQI4JKoeADFDpVmuCsUyE4FJyznJ4vSEjkKgWFH4R7cv/RS8zNZjORO/bMXDZkT+xWdO/hwtV+E02n0wxeg1d2eSxQYD+TyYRc1xXiGSIblhcFPnGT4zgnjUYjRBaHgaLneWSa5r+Mx2NE7tOBvmVZ1O12Y8vlkqIoovl8ToPBANdYS+a2bSPwkg58YNBsNhNBENB2uwVcZ2a9Xg+Bt0yg1WpRrVZLNBoNPBlwnZm1220E3tOBIQKKoiRWqxWFYRhbr9eZWafTQcBIBx4NwyBZlmO+79Nut8OTAd8Ca8kc54WDTwcu2He9XqdyuXySqqqEnyx6D27YLyKlUkkEB4jNISuIAnDNFpqmUaVSIUmSYtVqlXRdx2Z88uJXOeuBuexrr8+Kx/5MZ8kR0Vn+AGczfuZVuZDxAAAAAElFTkSuQmCC\'" onmouseout="this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABYklEQVR42qXTvWrCUBQHcKe+QqfundPFxT0OnTJ0MtChmw/g4NgH6FtkEwoBv8BEA8EYFGswBIIEhFCrU4V26cfp+Qe5RLlKwcAPknty/7mHe1NoNBoy9+yZJWzBcN3J3j0cuGJJt9ul0WhEYRjSfD4nz/Oo0+kQ10J2eSygyL4xcb1eyyAUIV/sWhawHY/HtFqtTvJ9HyGbw4B6r9ejNE3/ZdfOQz4gnkwmtFwuM7VajRRFIcMwyLIs3GNM1HetePmA9yAIKEkSoVqtUrlcBtzv1abTKQJe9wIwGMexgGd8GQ5rvFoEvOUDFtiqKIoEXddJVdWMpml7Ndd1EfCSD3jC3mPPoVKpUKlUItM0AavAmKi3220E1PMBF+zTcRyazWYn9ft9Qsuyc3DLfm3bRs8y2BFM/mFFWQDcsE2r1SKsZjgcZgaDATWbTUxOxSmUBwiPLGEfOzGrH/uZzlIgorP8ASYfyJK1fcokAAAAAElFTkSuQmCC\'" style="width:16px;height:16px;float: right; margin-right: 10px; margin-bottom: -10px;" onclick="this.dispatchEvent(lpcustomEvent); document.getElementById(\'lastpass-notification\').style.display=\'none\'"/> ';
if(a=="fill")k+=createFillMenus(b);else if(a=="add"){k+=createAddButtons(b);if(d)d.style.background=get_notification_add_bg()}else if(a=="generate")k+=createGenerateButtons(b);else if(a=="formfill")k+=createFormFillButtons(b);else if(a=="change")k+=createChangeButtons(b);else if(a=="error"){k+=createErrorButtons(b);if(typeof b.yellow=="undefined"||!b.yellow){if(d)d.style.background="#ff0000"}else e=2}else if(a=="basicauth")k+=createBasicAuthButtons(b);if(d)d.innerHTML=k+"</div>";run_custom_js(document,
"document.addEventListener('mouseup', function(e){ if(typeof(closelpmenus)=='function'){closelpmenus();}}, false)");d&&c.insertBefore(d,c.firstChild);curr_notification_type=a;if(experimentaloverlay){sendBG({cmd:"savenotificationhtml",text:k});showoverlay(b,"&"+a+"="+e)}}else sendBG({cmd:"checkgenpwfillforms",url:document.location.href})}}}catch(n){console_log(n)}}
function lpclosenotification(a){if((document.getElementById("lastpass-notification")||document.getElementById("lpiframeoverlay"+g_iframerand))&&(a||curr_notification_type!="error")){document.getElementById("lastpass-notification")?document.body.removeChild(document.getElementById("lastpass-notification")):document.body.removeChild(document.getElementById("lpiframeoverlay"+g_iframerand));curr_notification_type=""}}
function sitesMatchTLD(a){var b=lp_gettld_url(document.location.href),c;for(c in a)if(b==lp_gettld_url(a[c].url))return true;return false}
function createFillMenus(a){var b="";a=getAutoFillArray(LPJSON.parse(a.sites));var c=getcount(a),d=getAutoLoginArray(a),e=getcount(d);b+=experimentaloverlay?"<button type='button' id='lpnever' class='lpbutton' value='"+gs("Never...")+"' onclick='showmenu(\"never\");return false;'>"+gs("Never...")+"</button>":"<button type='button' id='lpnever' class='lpbutton' value='"+gs("Never...")+"' onclick='lpshowmenudiv(\"never\");return false;'>"+gs("Never...")+"</button>";if(c==1)for(var f in a)b+=experimentaloverlay?
"<button lptype='autofillsingle' aid=\""+a[f].aid+"\" type='button' id='lpautofill' class='lpbutton' value='"+gs("AutoFill")+"' onclick='autofill("+a[f].aid+");'>"+gs("AutoFill")+"</button>":"<button lptype='autofillsingle' aid=\""+a[f].aid+"\" type='button' id='lpautofill' class='lpbutton' value='"+gs("AutoFill")+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("AutoFill")+"</button>";else b+=experimentaloverlay?"<button id='lpautofill' class='lpbutton' value='"+gs("AutoFill")+" ("+c+")' onclick='showmenu(\"autofill\")'>"+
gs("AutoFill")+" ("+c+")</button>":"<button id='lpautofill' class='lpbutton' value='"+gs("AutoFill")+" ("+c+")' onclick='lpshowmenudiv(\"autofill\")'>"+gs("AutoFill")+" ("+c+")</button>";if(1==e)for(f in d)b+=experimentaloverlay?"<button lptype='autologinsingle' aid=\""+d[f].aid+"\" type='button' id='lpautologin' class='lpbutton' value='"+gs("AutoLogin")+"' onclick='autologin("+d[f].aid+");'>"+gs("AutoLogin")+"</button>":"<button lptype='autologinsingle' aid=\""+d[f].aid+"\" type='button' id='lpautologin' class='lpbutton' value='"+
gs("AutoLogin")+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("AutoLogin")+"</button>";else if(e>0)b+=experimentaloverlay?"<button id='lpautologin' class='lpbutton' value='"+gs("AutoLogin")+" ("+e+")' onclick='showmenu(\"autologin\")'>"+gs("AutoLogin")+" ("+e+")</button>":"<button id='lpautologin' class='lpbutton' value='"+gs("AutoLogin")+" ("+e+")' onclick='lpshowmenudiv(\"autologin\")'>"+gs("AutoLogin")+" ("+e+")</button>";if(e>0)b+=createMenu("autologin",d,e);b+=createMenu("autofill",a,
c);b+=createNeverMenu(g_fillaid!=null);experimentaloverlay||document.addEventListener("lpCustomEventMenu",function(k){var n=k.srcElement.getAttribute("lptype");if(n=="autologin"){sendBG({cmd:"autologinaid",aid:k.srcElement.getAttribute("aid")});document.getElementById("lppopupautologin").style.display="none"}else if(n=="autologinsingle"){sendBG({cmd:"autologinaid",aid:k.srcElement.getAttribute("aid")});document.getElementById("lastpass-notification").style.display="none"}else if(n=="autofill"){sendBG({cmd:"autofillaid",
aid:k.srcElement.getAttribute("aid")});document.getElementById("lppopupautofill").style.display="none"}else if(n=="autofillsingle"){sendBG({cmd:"autofillaid",aid:k.srcElement.getAttribute("aid")});document.getElementById("lastpass-notification").style.display="none"}else if(n=="neverautofill"||n=="neverpage"||n=="neverdomain"){sendBG({cmd:n,url:document.location.href,aid:g_fillaid});document.getElementById("lppopupnever").style.display="none";document.getElementById("lastpass-notification").style.display=
"none"}},false);return b}
function createAddButtons(a){var b="";b+=experimentaloverlay?"<button type='button' lptype='notnow' id='lpnotnow' class='lpbutton' value='"+gs("Not Now")+"' onclick='notnow(\""+btoa(a.notificationdata)+'", "'+btoa(lp_gettld_url(document.location.href))+"\")'>"+gs("Not Now")+"</button>":"<button type='button' lptype='notnow' id='lpnotnow' class='lpbutton' value='"+gs("Not Now")+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("Not Now")+"</button>";b+=experimentaloverlay?"<button type='button' id='lpnever' class='lpbutton' value='"+
gs("Never...")+"' onclick='showmenu(\"never\");'>"+gs("Never...")+"</button>":"<button type='button' id='lpnever' class='lpbutton' value='"+gs("Never...")+"' onclick='lpshowmenudiv(\"never\");'>"+gs("Never...")+"</button>";b+=experimentaloverlay?"<button type='button' lptype='addsite' id='lpaddsite' class='lpbutton' value='"+gs("Save Site")+"' onclick='savethesite(\""+btoa(a.notificationdata)+"\")'>"+gs("Save Site")+"</button>":"<button type='button' lptype='addsite' id='lpaddsite' class='lpbutton' value='"+
gs("Save Site")+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("Save Site")+"</button>";b+=createNeverMenu(0,1);experimentaloverlay||document.addEventListener("lpCustomEventMenu",function(c){c=c.srcElement.getAttribute("lptype");if(c=="addsite"){sendBG({cmd:"savethesite",notificationdata:a.notificationdata});document.getElementById("lastpass-notification").style.display="none"}else if(c=="notnow"){sendBG({cmd:"notnow",notificationdata:a.notificationdata,tld:lp_gettld_url(document.location.href)});
document.getElementById("lastpass-notification").style.display="none"}else if(c=="close")sendBG({cmd:"clearnotification"});else if(c=="neverpage"||c=="neverdomain"){var d=LPJSON.parse(a.notificationdata).url;sendBG({cmd:c,url:d,fromsave:"1",notificationdata:a.notificationdata,tld:lp_gettld_url(document.location.href)});document.getElementById("lppopupnever").style.display="none";document.getElementById("lastpass-notification").style.display="none"}},false);return b}
function createChangeButtons(a){var b="";b+=experimentaloverlay?"<button type='button' lptype='savenewsite' id='lpsavenewsite' class='lpbutton' value='"+gs("Save New Site")+"' onclick='savethesite(\""+btoa(LPJSON.stringify(a.notificationdata))+"\")'>"+gs("Save New Site")+"</button>":"<button type='button' lptype='savenewsite' id='lpsavenewsite' class='lpbutton' value='"+gs("Save New Site")+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("Save New Site")+"</button>";b+=experimentaloverlay?"<button type='button' lptype='confirm' id='lpconfirm' class='lpbutton' value='"+
gs("Confirm")+"' onclick='changepw(\""+btoa(LPJSON.stringify(a.notificationdata))+"\")'>"+gs("Confirm")+"</button>":"<button type='button' lptype='confirm' id='lpconfirm' class='lpbutton' value='"+gs("Confirm")+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("Confirm")+"</button>";experimentaloverlay||document.addEventListener("lpCustomEventMenu",function(c){c=c.srcElement.getAttribute("lptype");if(c=="savenewsite"){sendBG({cmd:"savethesite",notificationdata:a.notificationdata});document.getElementById("lastpass-notification").style.display=
"none"}else if(c=="confirm"){sendBG({cmd:"changepw",notificationdata:a.notificationdata});document.getElementById("lastpass-notification").style.display="none"}else c=="close"&&sendBG({cmd:"clearnotification"})},false);return b}
function createErrorButtons(a){var b="";if(a.notificationdata.multifactor_disable_url)b+=experimentaloverlay?"<button type='button' lptype='disablebtn' id='lpdisablebtn' class='lpbutton' value='"+gs("Disable Multifactor Authentication")+'\' onclick=\'genericaction("disablebtn", "'+btoa(LPJSON.stringify(a.notificationdata))+"\");'>"+gs("Disable Multifactor Authentication")+"</button>":"<button type='button' lptype='disablebtn' id='lpdisablebtn' class='lpbutton' value='"+gs("Disable Multifactor Authentication")+
"' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("Disable Multifactor Authentication")+"</button>";if(a.notificationdata.showCreateAccount)b+=experimentaloverlay?"<button type='button' lptype='createaccountbtn' id='lpcreateaccountbtn' class='lpbutton' value='"+gs("Create Account")+'\' onclick=\'genericaction("createaccountbtn", "'+btoa(LPJSON.stringify(a.notificationdata))+"\");'>"+gs("Create Account")+"</button>":"<button type='button' lptype='createaccountbtn' id='lpcreateaccountbtn' class='lpbutton' value='"+
gs("Create Account")+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("Create Account")+"</button>";if(a.notificationdata.showLogin)b+=experimentaloverlay?"<button type='button' lptype='tryagainbtn' id='lptryagainbtn' class='lpbutton' value='"+gs("Try Again")+'\' onclick=\'genericaction("tryagainbtn", "'+btoa(LPJSON.stringify(a.notificationdata))+"\");'>"+gs("Try Again")+"</button>":"<button type='button' lptype='tryagainbtn' id='lptryagainbtn' class='lpbutton' value='"+gs("Try Again")+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+
gs("Try Again")+"</button>";if(a.notificationdata.showFeedback)b+=experimentaloverlay?"<button type='button' lptype='feedbackbtn' id='lpfeedbackbtn' class='lpbutton' value='"+gs("Feedback")+'\' onclick=\'genericaction("feedbackbtn", "'+btoa(LPJSON.stringify(a.notificationdata))+"\");'>"+gs("Feedback")+"</button>":"<button type='button' lptype='feedbackbtn' id='lpfeedbackbtn' class='lpbutton' value='"+gs("Feedback")+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("Feedback")+"</button>";experimentaloverlay||
document.addEventListener("lpCustomEventMenu",function(c){c=c.srcElement.getAttribute("lptype");sendBG({cmd:c,notificationdata:a.notificationdata});document.getElementById("lastpass-notification").style.display="none"},false);return b}
function createBasicAuthButtons(a){var b="";b+=experimentaloverlay?"<button type='button' lptype='basicauthneverbtn' id='lpbasicauthneverbtn' class='lpbutton' value='"+gs("Never Show Again")+'\' onclick=\'genericaction("basicauthneverbtn", "'+btoa(LPJSON.stringify(a.notificationdata))+"\");'>"+gs("Never Show Again")+"</button>":"<button type='button' lptype='basicauthneverbtn' id='lpbasicauthneverbtn' class='lpbutton' value='"+gs("Never Show Again")+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+
gs("Never Show Again")+"</button>";var c=a.needbinary==1?gs("Install"):gs("More Information");b+=experimentaloverlay?"<button type='button' lptype='basicauthmoreinfobtn' id='lpbasicauthmoreinfobtn' class='lpbutton' value='"+c+'\' onclick=\'genericaction("basicauthmoreinfobtn", "'+btoa(LPJSON.stringify(a.notificationdata))+"\");'>"+c+"</button>":"<button type='button' lptype='basicauthmoreinfobtn' id='lpbasicauthmoreinfobtn' class='lpbutton' value='"+c+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+
c+"</button>";experimentaloverlay||document.addEventListener("lpCustomEventMenu",function(d){d=d.srcElement.getAttribute("lptype");sendBG({cmd:d,notificationdata:a.notificationdata});document.getElementById("lastpass-notification").style.display="none"},false);return b}
function createGenerateButtons(a){var b="";b+=experimentaloverlay?"<button type='button' id='lpnever' class='lpbutton' value='"+gs("Never...")+"' onclick='showmenu(\"never\");'>"+gs("Never...")+"</button>":"<button type='button' id='lpnever' class='lpbutton' value='"+gs("Never...")+"' onclick='lpshowmenudiv(\"never\");'>"+gs("Never...")+"</button>";b+=createNeverMenu(0,2);b+=experimentaloverlay?"<button type='button' lptype='generate' id='lpgenerate' class='lpbutton' value='"+gs("Generate")+"' onclick='generate();'>"+
gs("Generate")+"</button>":"<button type='button' lptype='generate' id='lpgenerate' class='lpbutton' value='"+gs("Generate")+"' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("Generate")+"</button>";if(experimentaloverlay){if(a.extra3){var c=getcount(g_sites);if(c>0){b+=experimentaloverlay?"<button type='button' id='lpfillcurrent' class='lpbutton' value='"+gs("Fill Current")+" ("+c+")' onclick='showmenu(\"fillcurrent\");'>"+gs("Fill Current")+" ("+c+")</button>":"<button type='button' id='lpfillcurrent' class='lpbutton' value='"+
gs("Fill Current")+" ("+c+")' onclick='lpshowmenudiv(\"fillcurrent\");'>"+gs("Fill Current")+" ("+c+")</button>";b+=createMenu("fillcurrent",g_sites,c)}}if(a.extra2){c=getcount(g_formfills);if(c>0)if(alwayschooseprofilecc)b+=experimentaloverlay?"<button type='button' lptype='chooseprofilecc' id='lpchooseprofilecc' class='lpbutton' value='"+gs("Fill Form")+" ("+c+")' onclick='chooseprofilecc();'>"+gs("Fill Form")+" ("+c+")</button>":"<button type='button' lptype='chooseprofilecc' id='lpchooseprofilecc' class='lpbutton' value='"+
gs("Fill Form")+" ("+c+")' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("Fill Form")+" ("+c+")</button>";else{b+=experimentaloverlay?"<button type='button' id='lpfillform' class='lpbutton' value='"+gs("Fill Form")+" ("+c+")' onclick='showmenu(\"fillform\");'>"+gs("Fill Form")+" ("+c+")</button>":"<button type='button' id='lpfillform' class='lpbutton' value='"+gs("Fill Form")+" ("+c+")' onclick='lpshowmenudiv(\"fillform\");'>"+gs("Fill Form")+" ("+c+")</button>";b+=createMenu("fillform",g_formfills,
getcount(g_formfills))}}}createGenerateFormFillListener();return b}
function createFormFillButtons(){var a="";a="";a+=experimentaloverlay?"<button type='button' id='lpnever' class='lpbutton' value='"+gs("Never...")+"' onclick='showmenu(\"never\");'>"+gs("Never...")+"</button>":"<button type='button' id='lpnever' class='lpbutton' value='"+gs("Never...")+"' onclick='lpshowmenudiv(\"never\");'>"+gs("Never...")+"</button>";a+=createNeverMenu(0,3);if(alwayschooseprofilecc)a+=experimentaloverlay?"<button type='button' lptype='chooseprofilecc' id='lpchooseprofilecc' class='lpbutton' value='"+gs("Fill Form")+
" ("+getcount(g_formfills)+")' onclick='chooseprofilecc();'>"+gs("Fill Form")+" ("+getcount(g_formfills)+")</button>":"<button type='button' lptype='chooseprofilecc' id='lpchooseprofilecc' class='lpbutton' value='"+gs("Fill Form")+" ("+getcount(g_formfills)+")' onclick='this.dispatchEvent(lpcustomEvent);'>"+gs("Fill Form")+" ("+getcount(g_formfills)+")</button>";else{a+=experimentaloverlay?"<button type='button' id='lpfillform' class='lpbutton' value='"+gs("Fill Form")+" ("+getcount(g_formfills)+
")' onclick='showmenu(\"fillform\");'>"+gs("Fill Form")+" ("+getcount(g_formfills)+")</button>":"<button type='button' id='lpfillform' class='lpbutton' value='"+gs("Fill Form")+" ("+getcount(g_formfills)+")' onclick='lpshowmenudiv(\"fillform\");'>"+gs("Fill Form")+" ("+getcount(g_formfills)+")</button>";a+=createMenu("fillform",g_formfills,getcount(g_formfills))}createGenerateFormFillListener();return a}
function createGenerateFormFillListener(){experimentaloverlay||document.addEventListener("lpCustomEventMenu",function(a){a=a.srcElement.getAttribute("lptype");if(a!="fillform")if(a!="addprofile")if(a=="addcreditcard"){sendBG({cmd:"addcreditcard"});document.getElementById("lppopupfillform").style.display="none"}else if(a=="clearforms"){sendBG({cmd:"clearforms"});document.getElementById("lppopupfillform").style.display="none"}else if(a!="chooseprofilecc")if(a!="fillcurrent")if(a=="generate"){sendBG({cmd:"generate"});
if(!document.getElementById("lppopupfillform")&&!document.getElementById("lppopupfillcurrent"))document.getElementById("lastpass-notification").style.display="none"}else if(a=="neverpage"||a=="neverdomain"){a={cmd:a,url:document.location.href};if(document.getElementById("lpgenerate"))a.fromgenerate=1;else a.fromformfill=1;sendBG(a);document.getElementById("lppopupnever").style.display="none";document.getElementById("lastpass-notification").style.display="none"}},false)}
function getAutoFillArray(a){var b=[];lpcanonizeUrl(document.location.href);for(var c in a)a[c].genpw||(b[c]=a[c]);return b}function getAutoLoginArray(a){var b=[],c;for(c in a)typeof a[c].fields=="undefined"||getcount(a[c].fields)==0||!canFindForm(a[c].fields)||(b[c]=a[c]);return b}
function canFindForm(a){for(var b=document.getElementsByTagName("form"),c=0;c<b.length;c++){var d=[],e;for(e in a)if("text"==a[e].type||"password"==a[e].type||"email"==a[e].type)d[a[e].type+a[e].name]=0;var f=false,k=b[c].elements,n=[];for(e=0;e<k.length;e++){var o=k[e];if("text"==o.type||"email"==o.type||"password"==o.type){if(typeof d[o.type+o.name]!="undefined")d[o.type+o.name]=1;if(o.type=="password")f=true;n[o.type+o.name]=0}}for(e in a)if("text"==a[e].type||"password"==a[e].type||"email"==a[e].type)if(typeof n[a[e].type+
a[e].name]!="undefined")n[a[e].type+a[e].name]=1;if(f){f=true;for(e in d)if(d[e]==0){f=false;break}d=true;for(e in n)if(n[e]==0){d=false;break}if(f||d)return true}}return false}
function createMenu(a,b,c){var d="",e="",f=false,k=false,n=c;if(a=="fillform"){c>0&&n++;n+=3;for(var o in g_formfills){if(g_formfills[o].profiletype==0)f=true;if(g_formfills[o].ccnum!="")k=true}f&&k&&n++}if(experimentaloverlay)e=n<7?" style='height:"+n*24+"px'":" style='height: 170px; overflow:auto;'";else if(n<12)e=" style='height:"+n*24+"px'";d+="<div "+g_opera_selectable+"id='lppopup"+a+"' class='lppopup' "+e+"><table width='100%'>";for(o in b){e="";if(a!="fillform"&&b[o].useusername!="")e=" ("+
ofa(b[o].useusername)+")";n=a=="fillform"?"ffid":"aid";d+=experimentaloverlay?"<tr onclick='"+a+"("+b[o][n]+")'><td "+g_opera_selectable+">&nbsp;"+ofa(b[o][a=="fillform"?"decprofilename":"name"])+e+"</td></tr>":"<tr lptype='"+a+"' "+n+'="'+b[o][n]+"\" onclick='this.dispatchEvent(lpcustomEvent);'><td "+g_opera_selectable+">&nbsp;"+ofa(b[o][a=="fillform"?"decprofilename":"name"])+e+"</td></tr>"}if(a=="fillform"){if(c>0)d+="<tr style='background-color: #fff;'><td><hr></td></tr>";d+=experimentaloverlay?
"<tr lptype='addprofile' onclick='addprofile();'><td "+g_opera_selectable+">&nbsp;"+gs("Add Profile")+"</td></tr>":"<tr lptype='addprofile' onclick='this.dispatchEvent(lpcustomEvent)'><td "+g_opera_selectable+">&nbsp;"+gs("Add Profile")+"</td></tr>";d+=experimentaloverlay?"<tr lptype='addcreditcard' onclick='addcc();'><td "+g_opera_selectable+">&nbsp;"+gs("Add Credit Card")+"</td></tr>":"<tr lptype='addcreditcard' onclick='this.dispatchEvent(lpcustomEvent)'><td "+g_opera_selectable+">&nbsp;"+gs("Add Credit Card")+
"</td></tr>";d+=experimentaloverlay?"<tr lptype='clearforms' onclick='clearforms();'><td "+g_opera_selectable+">&nbsp;"+gs("Clear Forms")+"</td></tr>":"<tr lptype='clearforms' onclick='this.dispatchEvent(lpcustomEvent)'><td "+g_opera_selectable+">&nbsp;"+gs("Clear Forms")+"</td></tr>";if(f&&k)d+=experimentaloverlay?"<tr lptype='chooseprofilecc' onclick='chooseprofilecc();'><td "+g_opera_selectable+">&nbsp;"+gs("Choose Profile and Credit Card")+"</td></tr>":"<tr lptype='chooseprofilecc' onclick='this.dispatchEvent(lpcustomEvent);'><td "+
g_opera_selectable+">&nbsp;"+gs("Choose Profile and Credit Card")+"</td></tr>"}d+="</table></div>";addMenuIdToPage(a);return d}
function createNeverMenu(a,b){var c="";b=b?b:0;c+="<div id='lppopupnever' class='lppopup' "+(" style='height:"+(a?"72":"48")+"px'")+"><table width='100%'>";if(a)c+=experimentaloverlay?"<tr lptype='neverautofill' onclick='never(\"neverautofill\", \""+btoa(document.location.href)+'", '+g_fillaid+", "+b+");'><td>&nbsp;"+gs("Never AutoFill")+"</td></tr>":"<tr lptype='neverautofill' onclick='this.dispatchEvent(lpcustomEvent);'><td>&nbsp;"+gs("Never AutoFill")+"</td></tr>";c+=experimentaloverlay?"<tr lptype='neverpage' onclick='never(\"neverpage\", \""+
btoa(document.location.href)+'", '+g_fillaid+", "+b+");'><td>&nbsp;"+gs("Never For This Page")+"</td></tr>":"<tr lptype='neverpage' onclick='this.dispatchEvent(lpcustomEvent);'><td>&nbsp;"+gs("Never For This Page")+"</td></tr>";c+=experimentaloverlay?"<tr lptype='neverdomain' onclick='never(\"neverdomain\", \""+btoa(document.location.href)+'", '+g_fillaid+", "+b+");'><td>&nbsp;"+gs("Never For This Domain")+"</td></tr>":"<tr lptype='neverdomain' onclick='this.dispatchEvent(lpcustomEvent);'><td>&nbsp;"+
gs("Never For This Domain")+"</td></tr>";c+="</table></div>";addMenuIdToPage("never");return c}function addMenuIdToPage(a){run_custom_js(document,"if(typeof(lpgblmenus)=='undefined'){ lpgblmenus = new Array(); }   lpgblmenus[lpgblmenus.length] = 'lppopup"+a+"';   ")}
function checkForLoginForm(a){a=a.getElementsByTagName("form");for(var b=0;b<a.length;b++){for(var c=0,d=a[b].elements,e=0;e<d.length;e++)if(d[e].type=="password")if(g_fillaid)return true;else if(++c>=2)return false;if(c==1)return true}return false}function lp_notification_exists(a,b){return b==curr_notification_type||b=="autologin"&&curr_notification_type=="fill"}function never_gen(){return false}function never_ff(){return false}
function lp_showNotification(a,b,c,d,e,f,k,n){lpshownotification(d,{text:gs(a),aid:c,extra:e,extra2:k,extra3:n})}if(typeof g_is_formfill=="undefined")if(g_isopera)window.addEventListener("DOMContentLoaded",function(){onLoad()},false);else g_ischrome?window.addEventListener("DOMContentLoaded",function(){onLoad()},false):onLoad();function lpgettop(){return g_isopera?window.top:top}function lpgettopurl(){try{return lpgettop().document.location.href}catch(a){return document.location.href}}
var lpParseUriCache=[],lpParseUriNumber=0;
function lpParseUri(a){if(typeof a!="string")return"";if(lpParseUriCache[a]!=null)return lpParseUriCache[a];var b=null,c=null,d=a;if(a.indexOf("#")!=-1){c=a.substring(a.indexOf("#")+1);a=a.substring(0,a.indexOf("#"))}if(a.indexOf("?")!=-1){b=a.substring(a.indexOf("?")+1);a=a.substring(0,a.indexOf("?"))}var e=a.match(/^(.*:\/\/[^\/]+\/.*)@/);if(e)a=a.substring(0,e[1].length)+a.substring(e[1].length).replace(/@/g,"%40");if(a.length>2047)return"";var f=lpParseUri.options;e=null;try{e=f.parser[f.strictMode?
"strict":"loose"].exec(a)}catch(k){try{e=a.length>500?f.parser[f.strictMode?"strict":"loose"].exec(a.substr(0,500)):f.parser[f.strictMode?"strict":"loose"].exec(a.substr(0,floor(a.length/2)))}catch(n){lpReportError("parseuri : failing "+a);e=f.parser[f.strictMode?"strict":"loose"].exec("http://")}}a=e;var o={};for(e=14;e--;)o[f.key[e]]=a[e]||"";o[f.q.name]={};o[f.key[12]].replace(f.q.parser,function(r,p,x){if(p)o[f.q.name][p]=x});if(b!=null){o.query=b;if(c!=null)o.anchor=c}if(lpParseUriNumber>500){for(var g in lpParseUriCache){delete lpParseUriCache[g];
break}lpParseUriNumber=0}lpParseUriCache[d]=o;lpParseUriNumber++;return o}lpParseUri.options={strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};
var lpCanUrlCache=[],lpCanUrlExNumber=0;
function lpcanonizeUrl(a,b){if("about:blank"==a)return"";if(lpCanUrlCache[a]!=null)return lpCanUrlCache[a];if(b==null)b=lpParseUri(a);var c="";if(b.port!="")if(b.port!=get_default_port(b.protocol))c=":"+b.port;if(b.host)c=b.host.toLowerCase()+c+b.path;else{if(!a)return"";c=a}if(c.indexOf(";")!=-1)c=c.substring(0,c.indexOf(";"));if(lpCanUrlExNumber>500){for(var d in lpCanUrlCache){delete lpCanUrlCache[d];break}lpCanUrlExNumber=0}lpCanUrlCache[a]=c;lpCanUrlExNumber++;return c}
function lp_gettld(a,b){if(typeof lp_all_tlds=="undefined"||lp_all_tlds==null)lp_init_tlds();if(typeof a!="string")return"";if(a==""&&typeof b=="string"&&b.indexOf("file://")==0)return"file:";a=a.toLowerCase();a=a.replace(/\.$/,"");var c=a.split("."),d;if(a.match(/^\d+\.\d+\.\d+\.\d+$/))d=4;else{d=2;if(c.length>=2){var e=c[c.length-1];if(typeof lp_all_tlds[e]!="undefined")if(lp_in_array(c[c.length-2],lp_all_tlds[e]))d=3}}for(;c.length>d;)c.shift();return c.join(".")}
function lp_gettld_url(a){var b=lpParseUri(a);return lp_gettld(b.host,a)}function getname_url(a){a=lpParseUri(a);return(typeof a.host=="string"?a.host:"").replace(/^www\./,"")}function lptrim(a){if(typeof a!="string")return a;return a.replace(/^\s+|\s+$/g,"")}function lp_regexp_quote(a){return(a+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!<>\|\:])/g,"\\$1")}
function getname(a,b){if(b&&typeof a.id!="undefined"&&a.id!="")return a.id;if(typeof a!="undefined"&&a!=null)if(typeof a.name!="undefined"&&a.name!="")return a.name;else if(typeof a.id!="undefined")return a.id;return""}
function lpIsVisible(a,b){for(;a&&a.tagName!="BODY";a=a.parentNode){if(typeof a.style!="undefined"&&(a.style.visibility=="hidden"||a.style.display=="none"))return false;try{var c=a.ownerDocument.defaultView.getComputedStyle(a,"");if(c.visibility=="hidden"||c.display=="none")return false}catch(d){}if(b)break}return true}function lp_in_array(a,b){for(var c=b.length,d=0;d<=c;d++)if(typeof b[d]!="undefined"&&b[d]==a){lpArrayOffset=d;return true}return false}
function strip(a){if(!a.length)return a;a=a.replace(/\s+/g," ");a=a.replace(/^\s+|\s+$/g,"");a=a.replace(/[\|]+$/g,"");var b=a.match(/\|([^\|]+)$/);if(b){a=b[1];a=a.replace(/^\s+|\s+$/g,"")}return a}function lpxmlescape(a){if(typeof a=="number")a=""+a;a=a.replace(/&/g,"&amp;");a=a.replace(/</g,"&lt;");a=a.replace(/>/g,"&gt;");return a.replace(/"/g,"&quot;")}
function lpxmlunescape(a){if(typeof a=="number")a=""+a;a=a.replace(/&lt;/g,"<");a=a.replace(/&gt;/g,">");a=a.replace(/&quot;/g,'"');return a.replace(/&amp;/g,"&")}var lpRegExCache=[],lpRegExNumber=0;
function regexp_match_c(a,b){var c=a.toString()+"_"+b;if(c.length>80)if(typeof fasthash=="function")c=fasthash(c);else if(typeof SHA256=="function")c=SHA256(c);if(lpRegExCache[c]!=null)return lpRegExCache[c]=="1";var d=a.exec(b);if(lpRegExNumber>2500){for(var e in lpRegExCache){delete lpRegExCache[e];break}lpRegExNumber=0}lpRegExCache[c]=d?"1":"0";lpRegExNumber++;return d}
function fire_onchange(a,b){try{if(a){if(a.ownerDocument&&typeof a.ownerDocument.createEvent=="function"){var c=a.ownerDocument.createEvent("Events");c.initEvent("change",true,true);a.dispatchEvent(c)}else typeof a.fireEvent!="undefined"&&a.fireEvent("onchange");if(typeof b=="undefined"||b==null||b)typeof sendKey=="function"&&sendKey("SHIFT",a);if(typeof lpGetBrowserForDocument=="function"){var d=lpGetBrowserForDocument(a.ownerDocument);if(d)d.lpfieldchanged=true}}}catch(e){}}
function get_default_port(a){switch(a){case "http":return 80;case "https":return 443;case "ftp":return 21;default:return 0}}function get_port(a){var b=0;if(typeof a.port!="undefined"&&a.port)b=a.port;else if(typeof a.protocol!="undefined"&&a.protocol)b=get_default_port(a.protocol);return b}function compare_ports(a,b){var c=a.port!=""?a.port:get_default_port(a.protocol),d=b.port!=""?b.port:get_default_port(b.protocol);return c==d}
function array_size(a){var b=a.length?--a.length:-1,c;for(c in a)b++;return b}function lpgetlocalts(){return(new Date).getTime()}function lp_get_gmt_timestamp(){var a=(new Date).getTime();return parseInt(a/1E3)}function lp_get_local_timestamp(){return lp_get_gmt_timestamp()}
function lp_init_tlds(){if(typeof lp_all_tlds=="undefined"||lp_all_tlds==null){lp_all_tlds=[];lp_all_tlds.hu=["2000","agrar","bolt","casino","city","co","com","erotica","erotika","film","forum","games","hotel","info","ingatlan","jogasz","konyvelo","lakas","media","news","nui","org","priv","reklam","sex","shop","sport","suli","szex","tm","tozsde","utazas","video"];lp_all_tlds.nl=["752"];lp_all_tlds.ca=["ab","bc","gc","mb","nb","nf","nl","ns","nt","nu","on","pe","qc","sk","yk"];lp_all_tlds.pa=["abo",
"ac","com","edu","gob","ing","med","net","nom","org","sld"];lp_all_tlds.se=["ab","ac","bd","brand","com","c","d","e","fh","fhsk","fhv","f","g","h","i","komforb","kommunalforbund","komvux","k","lanarb","lanbib","mil","m","naturbruksgymn","net","n","org","o","parti","pp","press","s","sshn","tm","t","u","w","x","y","z"];lp_all_tlds.ac=["ac","co","com","edu","gov","gv","mil","net","or","org"];lp_all_tlds.ae=["ac","com","gov","mil","name","net","org","pro","sch"];lp_all_tlds.at=["ac","co","gv","or","priv"];
lp_all_tlds.be=["ac","ap","co","com","fgov","to","xa"];lp_all_tlds.cn=["ac","ah","bj","com","cq","edu","fj","gd","gov","gs","gx","gz","ha","hb","he","hi","hk","hl","hn","jl","js","jx","ln","mo","net","nm","nx","org","qh","sc","sd","sh","sn","sx","tj","tw","xj","xz","yn","zj"];lp_all_tlds.cr=["ac","co","ed","fi","go","or","sa"];lp_all_tlds.cy=["ac","biz","com","ekloges","gov","info","ltd","name","net","org","parliament","press","pro","tm"];lp_all_tlds.fj=["ac","biz","com","gov","id","info","mil","name",
"net","org","pro","school"];lp_all_tlds.fk=["ac","co","gov","net","nom","org"];lp_all_tlds.gg=["ac","alderney","co","gov","guernsey","ind","ltd","net","org","sark","sch"];lp_all_tlds.gn=["ac","com","gov","net","org"];lp_all_tlds.gt=["com","edu","gob","ind","mil","net","org"];lp_all_tlds.id=["ac","co","go","mil","net","or","sch","web"];lp_all_tlds.il=["ac","co","gov","idf","k12","muni","net","org"];lp_all_tlds.im=["ac","co","gov","net","nic","org"];lp_all_tlds["in"]=["ac","co","edu","ernet","firm",
"gen","gov","ind","mil","net","nic","org","res"];lp_all_tlds.ir=["ac","co","gov","net","org","sch"];lp_all_tlds.is=["ac","org"];lp_all_tlds.je=["ac","co","gov","ind","jersey","ltd","net","org","sch"];lp_all_tlds.jp=["ac","ad","aichi","akita","aomori","chiba","co","ed","ehime","fukui","fukuoka","fukushima","gifu","go","gov","gr","gunma","hiroshima","hokkaido","hyogo","ibaraki","ishikawa","iwate","kagawa","kagoshima","kanagawa","kawasaki","kitakyushu","kobe","kochi","kumamoto","kyoto","lg","mie","miyagi",
"miyazaki","nagano","nagasaki","nagoya","nara","ne","net","niigata","oita","okayama","okinawa","org","or","osaka","saga","saitama","sapporo","sendai","shiga","shimane","shizuoka","tochigi","tokushima","tokyo","tottori","toyama","wakayama","yamagata","yamaguchi","yamanashi","yokohama"];lp_all_tlds.kr=["ac","co","go","ne","nm","or","re"];lp_all_tlds.mw=["ac","com","co","coop","edu","gov","int","museum","net","org"];lp_all_tlds.nz=["ac","co","cri","geek","gen","govt","iwi","maori","mil","net","org",
"school"];lp_all_tlds.ru=["ac","com","int","msk","net","org","pp"];lp_all_tlds.rw=["ac","com","co","edu","gouv","gov","int","mil","net"];lp_all_tlds.au=["act","asn","com","conf","csiro","edu","gov","id","info","net","nsw","nt","org","oz","qld","sa","tas","telememo","vic","wa"];lp_all_tlds.th=["ac","co","go","in","mi","net","or"];lp_all_tlds.tj=["ac","biz","com","co","edu","go","gov","int","mil","name","net","org","web"];lp_all_tlds.tz=["ac","co","go","ne","or"];lp_all_tlds.ug=["ac","co","go","ne",
"or","sc"];lp_all_tlds.uk=["ac","bl","british-library","com","co","gov","icnet","jet","ltd","me","mil","mod","national-library-scotland","nel","net","nhs","nic","nls","org","parliament","plc","police","sch"];lp_all_tlds.vn=["ac","biz","com","edu","gov","health","info","int","name","net","org","pro"];lp_all_tlds.yu=["ac","co","edu","org"];lp_all_tlds.za=["ac","alt","city","com","co","edu","gov","law","mil","net","ngo","nom","org","school","tm","web"];lp_all_tlds.zm=["ac","co","gov","org","sch"];lp_all_tlds.zw=
["ac","co","gov","org"];lp_all_tlds.br=["adm","adv","agr","am","arq","art","ato","bio","bmd","cim","cng","cnt","com","coop","dpn","ecn","edu","eng","esp","etc","eti","far","fm","fnd","fot","fst","g12","ggf","gov","imb","ind","inf","jor","lel","mat","med","mil","mus","net","nom","not","ntr","odo","org","ppg","pro","psc","psi","qsl","rec","slg","srv","tmp","trd","tur","tv","vet","zlg"];lp_all_tlds.ht=["adult","art","asso","com","coop","edu","firm","gouv","info","med","net","org","perso","pol","pro",
"rel","shop"];lp_all_tlds.mv=["aero","biz","com","coop","edu","gov","info","int","mil","museum","name","net","org","pro"];lp_all_tlds.pl=["agro","aid","art","atm","auto","bialystok","biz","com","edu","gdansk","gda","gmina","gov","gsm","info","krakow","lodz","lublin","mail","media","miasta","mil","net","ngo","nom","olsztyn","org","pc","poznan","priv","realestate","rel","shop","sklep","slupsk","sos","szczecin","targi","tm","torun","tourism","travel","turystyka","warszawa","waw","wroclaw","wroc"];lp_all_tlds.us=
["ak","al","ar","az","ca","com","co","ct","dc","de","dni","fed","fl","ga","hi","ia","id","il","in","isa","kids","ks","ky","la","ma","md","me","mi","mn","mo","ms","mt","nc","nd","ne","nh","nj","nm","nsn","nv","ny","oh","ok","or","pa","ri","sc","sd","tn","tx","ut","va","vt","wa","wi","wv","wy"];lp_all_tlds.fi=["aland"];lp_all_tlds.mil=["army","navy"];lp_all_tlds["do"]=["art","com","edu","gob","gov","mil","net","org","sld","web"];lp_all_tlds.dz=["art","asso","com","edu","gov","net","org","pol"];lp_all_tlds.co=
["arts","com","edu","firm","gov","info","int","mil","net","nom","org","rec","store","uk","web"];lp_all_tlds.ro=["arts","com","firm","info","nom","nt","org","rec","store","tm","www"];lp_all_tlds.ve=["arts","bib","com","co","edu","firm","gov","info","int","mil","net","nom","org","rec","store","tec","web"];lp_all_tlds.lv=["asn","com","conf","edu","eu","gov","id","mil","net","org"];lp_all_tlds.lk=["assn","com","edu","gov","grp","hotel","int","ltd","net","ngo","org","sch","soc","web"];lp_all_tlds.fr=["asso",
"com","gouv","nom","prd","presse","tm"];lp_all_tlds.gp=["asso","com","edu","net","org"];lp_all_tlds.mc=["asso","tm"];lp_all_tlds.tr=["av","bbs","bel","biz","com","dr","edu","gen","gov","info","k12","mil","name","net","org","pol","tel","web"];lp_all_tlds.az=["biz","com","edu","gov","info","int","mil","name","net","org","pp"];lp_all_tlds.et=["biz","com","edu","gov","info","name","net","org"];lp_all_tlds.nr=["biz","com","co","edu","gov","info","net","org"];lp_all_tlds.om=["biz","com","co","edu","gov",
"med","mil","museum","net","org","pro","sch"];lp_all_tlds.pk=["biz","com","edu","fam","gob","gok","gon","gop","gos","gov","net","org","web"];lp_all_tlds.pr=["biz","com","edu","gov","info","isla","name","net","org","pro"];lp_all_tlds.tt=["biz","com","co","edu","gov","info","name","net","org","pro","us"];lp_all_tlds.ua=["cherkassy","chernigov","chernovtsy","ck","cn","com","crimea","cv","dnepropetrovsk","dn","donetsk","dp","edu","gov","if","ivano-frankivsk","kharkov","kherson","khmelnitskiy","kh","kiev",
"kirovograd","km","kr","ks","kv","lg","lugansk","lutsk","lviv","mk","net","nikolaev","odessa","od","org","pl","poltava","rovno","rv","sebastopol","sumy","ternopil","te","uzhgorod","vinnica","vn","zaporizhzhe","zhitomir","zp","zt"];lp_all_tlds.tw=["club","com","ebiz","edu","game","gove","gov","idv","mil","net","org"];lp_all_tlds.ag=["co","com","net","nom","org"];lp_all_tlds.ao=["co","ed","gv","it","og","pb"];lp_all_tlds.bw=["co","org"];lp_all_tlds.ck=["co"];lp_all_tlds.ls=["co","org"];lp_all_tlds.ma=
["co","gov","net","org"];lp_all_tlds.af=["com","edu","gov","net"];lp_all_tlds.ai=["com","net","off","org"];lp_all_tlds.al=["com","edu","gov","inima","net","org","soros","tirana","uniti","upt"];lp_all_tlds.an=["com","edu","net","org"];lp_all_tlds.ar=["com","gov","int","mil","net","org"];lp_all_tlds.aw=["com"];lp_all_tlds.bb=["com","edu","gov","net","org"];lp_all_tlds.bd=["com","edu","gov","mil","net","org"];lp_all_tlds.bm=["com","edu","gov","net","org"];lp_all_tlds.bn=["com","edu","net","org"];lp_all_tlds.bo=
["com","edu","gob","gov","int","mil","net","org","tv"];lp_all_tlds.bs=["com","net","org"];lp_all_tlds.bt=["com","edu","gov","net","org"];lp_all_tlds.cd=["com","net","org"];lp_all_tlds.ch=["com","gov","net","org"];lp_all_tlds.cu=["com","edu","gov","inf","net","org"];lp_all_tlds.dm=["com","edu","gov","net","org"];lp_all_tlds.ec=["com","edu","fin","gov","info","k12","med","mil","net","org","pro"];lp_all_tlds.ee=["com","fie","org","pri"];lp_all_tlds.eg=["com","edu","eun","gov","mil","net","org","sci"];
lp_all_tlds.es=["com","edu","gob","nom","org"];lp_all_tlds.eu=["com"];lp_all_tlds.gb=["com","net"];lp_all_tlds.ge=["com","edu","gov","mil","net","org","pvt"];lp_all_tlds.gh=["com","edu","gov","mil","org"];lp_all_tlds.gi=["com","edu","gov","ltd","mod","org"];lp_all_tlds.gr=["com","edu","gov","net","org"];lp_all_tlds.gu=["com","edu","gov","mil","net","org"];lp_all_tlds.hk=["com","edu","gov","idv","net","org"];lp_all_tlds.hn=["com","edu","gob","mil","net","org"];lp_all_tlds.hr=["com","from","iz","name"];
lp_all_tlds.jm=["com","edu","gov","net","org"];lp_all_tlds.jo=["com","edu","gov","mil","net","org"];lp_all_tlds.kh=["com","edu","gov","mil","net","org","per"];lp_all_tlds.kw=["com","edu","gov","mil","net","org"];lp_all_tlds.ky=["com","edu","gov","net","org"];lp_all_tlds.kz=["com","edu","gov","mil","net","org"];lp_all_tlds.la=["com","net","org"];lp_all_tlds.lb=["com","edu","gov","mil","net","org"];lp_all_tlds.lc=["com","edu","gov","net","org"];lp_all_tlds.li=["com","gov","net","org"];lp_all_tlds.lr=
["com","edu","gov","net","org"];lp_all_tlds.ly=["com","edu","gov","id","med","net","org","plc","sch"];lp_all_tlds.mg=["com","edu","gov","mil","nom","org","prd","tm"];lp_all_tlds.mk=["com","org"];lp_all_tlds.mm=["com","edu","gov","net","org"];lp_all_tlds.mo=["com","edu","gov","net","org"];lp_all_tlds.mt=["com","edu","gov","net","org"];lp_all_tlds.mu=["com","co"];lp_all_tlds.mx=["com","edu","gob","gov","net","org"];lp_all_tlds.my=["com","edu","gov","mil","name","net","org"];lp_all_tlds.na=["com","net",
"org"];lp_all_tlds.nc=["com","net","org"];lp_all_tlds.ng=["com","edu","gov","net","org"];lp_all_tlds.ni=["com","edu","gob","net","nom","org"];lp_all_tlds.no=["com","fhs","folkebibl","fylkesbibl","herad","idrett","kommune","mil","museum","priv","stat","vgs"];lp_all_tlds.np=["com","edu","gov","mil","net","org","ort"];lp_all_tlds.pe=["com","edu","gob","mil","net","nom","org"];lp_all_tlds.pf=["com","edu","org"];lp_all_tlds.pg=["com","net"];lp_all_tlds.ph=["com","gov","mil","net","ngo","org"];lp_all_tlds.ps=
["com","edu","gov","net","org","plo","sec"];lp_all_tlds.pt=["com","edu","gov","int","net","nome","org","publ"];lp_all_tlds.py=["com","edu","gov","net","org"];lp_all_tlds.qc=["com"];lp_all_tlds.sa=["com","edu","gov","med","net","org","pub","sch"];lp_all_tlds.sb=["com","edu","gov","net"];lp_all_tlds.sc=["com","edu","gov","net","org"];lp_all_tlds.sd=["com","edu","gov","info","med","net","org","tv"];lp_all_tlds.sg=["com","edu","gov","idn","net","org","per"];lp_all_tlds.sh=["com","edu","gov","mil","net",
"org"];lp_all_tlds.sv=["com","co","edu","gob","org","red"];lp_all_tlds.sy=["com","gov","net","org"];lp_all_tlds.tn=["com","edunet","ens","fin","gov","ind","info","intl","nat","net","org","rnrt","rns","rnu","tourism"];lp_all_tlds.uy=["com","edu","gub","mil","net","org"];lp_all_tlds.vi=["com","co","edu","gov","net","org"];lp_all_tlds.ye=["com","net"];lp_all_tlds.pro=["cpa","law","med"];lp_all_tlds.arpa=["e164","in-addr","ip6","iris","uri","urn"];lp_all_tlds["int"]=["eu"];lp_all_tlds.bf=["gov"];lp_all_tlds.by=
["gov","mil"];lp_all_tlds.cx=["gov"];lp_all_tlds.ie=["gov"];lp_all_tlds.it=["gov","pisa"];lp_all_tlds.lt=["gov","mil"];lp_all_tlds.lu=["gov","mil","net","org"];lp_all_tlds.to=["gov"];lp_all_tlds.tp=["gov"];lp_all_tlds.tv=["gov"];lp_all_tlds.mobi=["music","weather"];lp_all_tlds.mh=["net"];lp_all_tlds.ad=["nom"];lp_all_tlds.sr=["rs"];lp_all_tlds.va=["vatican"]}}
function checkurlrules(a,b,c,d,e,f,k){if(b.length==0)return b;for(var n=[],o=[],g=0;g<a.length;g++){if(typeof a[g].tld=="undefined"){a[g].tld=lp_gettld_url(a[g].url);a[g].parts=lpParseUri(a[g].url);a[g].path=typeof a[g].parts.path=="string"?a[g].parts.path:""}if(c==a[g].tld)if(a[g].path!=""&&d.indexOf(a[g].path)!=0)o[o.length]=a[g];else if(e==a[g].parts.host||a[g].exacthost==1&&e.indexOf("."+a[g].parts.host)!=-1||a[g].exacthost==0)n[n.length]=a[g];else o[o.length]=a[g]}if(n.length==0&&o.length==0)return b;
if(n.length>0){a=b;for(g=0;g<n.length;g++){c=applyurlrule(b,n[g],d,e,k);if(c.length<a.length)a=c}return a}else{for(g=0;g<o.length;g++)removeurlrule(b,o[g],f,e,k);return b}}
function applyurlrule(a,b,c,d,e){var f=b.path;if(f!=""&&c.indexOf(f)!=0)return a;for(var k=f.split("/").length,n=[],o=false,g=0;g<a.length;g++){var r=a[g],p=r.pathlevelmatch,x=r.servermatch,j=r.portmatch;if(typeof p=="undefined"){p=c.split("/");r=lpParseUri(r.url);r.path=typeof r.path!="undefined"?r.path:"";x=r.path.split("/");for(j=0;j<p.length&&j<x.length;j++)if(x[j]!=p[j])break;p=j;x=d==r.host;j=e==get_port(r)}if(!(f!=""&&p<k)){o=o||b.exacthost==1||b.exactport==1?true:false;if((x||b.exacthost==
0)&&(j||b.exactport==0)){o=true;n[n.length]=a[g]}}}if(!o)return a;return n}function removeurlrule(a,b,c,d,e){for(var f=b.path,k=0;k<a.length;k++){var n=typeof a[k].id!="undefined"?a[k].id:a[k].aid;if(typeof c[n]!="undefined"){n=lpParseUri(c[n].url);n.path=typeof n.path!="undefined"?n.path:"";if(f!="")if(n.path.indexOf(f)!=0)continue;if((b.exacthost=="0"||d==n.host)&&(b.exactport=="0"||e==get_port(n))){a.splice(k,1);k-=1}}}}
function lpsubstring(a,b,c){var d="",e=c-b;for(c=0;c<e;++c)d+=a[c+b];return d}function lpcreaterandomhexstring(a){for(var b="",c=0;c<a;c++){var d=get_random(0,15);b+="0123456789ABCDEF".substring(d,d+1)}return b}
function reencryptShareeAutoPushes(a,b){var c=["name","group","username","password","extra"],d={},e=true;for(m in c){var f=c[m];if(b[f]!=null){d[f]=lpdec(b[f],a);if(b[f]!=""&&(d[f]==null||d[f]=="")){lpReportError("lprsa_acceptshareeautopushes : failing id="+b.id+" because we failed to decrypt : "+f+"="+b[f]);e=false;break}var k=lpenc(d[f]);if(d[f]!=""&&(k==null||k=="")){lpReportError("lprsa_acceptshareeautopushes : failing aid="+aid+" id="+b.id+" because we failed to reencrypt : "+f);e=false;break}d[f]=
k}}if(!e)return null;for(var n in b.fields){c=b.fields[n];if("email"==c.type||c.type=="text"||c.type=="password"||c.type=="textarea"||c.type=="hidden"){f=c.value;c=lpdec(f,a);if(f!=""&&(c==null||c=="")){lpReportError("lprsa_acceptshareeautopushes : failing aid="+aid+" id="+b.id+" because we failed to decrypt field"+n+"="+f);e=false;break}f=lpenc(c);if(c!=""&&(f==null||f=="")){lpReportError("lprsa_acceptshareeautopushes : failing aid="+aid+" id="+b.id+" because we failed to reencrypt field"+n+"="+
c);e=false;break}b.fields[n].value=f}}if(!e)return null;for(n in b.otherfields){c=b.otherfields[n];if("email"==c.type||c.type=="text"||c.type=="password"||c.type=="textarea"||c.type=="hidden"){f=c.value;c=lpdec(f,a);if(f!=""&&(c==null||c=="")){lpReportError("lprsa_acceptshareeautopushes : failing aid="+aid+" id="+b.id+" because we failed to decrypt otherfield"+n+"="+f);e=false;break}f=lpenc(c);if(c!=""&&(f==null||f=="")){lpReportError("lprsa_acceptshareeautopushes : failing aid="+aid+" id="+b.id+
" because we failed to reencrypt otherfield"+n+"="+c);e=false;break}b.otherfields[n].value=f}}if(!e)return null;e={};for(i in b)if(i=="fields"){e.numf=b.fields.length;for(n in b.fields){e["f"+n+"urid"]=b.fields[n].urid;e["f"+n+"name"]=b.fields[n].name;e["f"+n+"value"]=b.fields[n].value;e["f"+n+"type"]=b.fields[n].type}}else if(i=="otherfields"){e.numof=b.otherfields.length;for(n in b.otherfields){e["of"+n+"urid"]=b.otherfields[n].urid;e["of"+n+"name"]=b.otherfields[n].name;e["of"+n+"value"]=b.otherfields[n].value;
e["of"+n+"type"]=b.otherfields[n].type;e["of"+n+"formname"]=b.otherfields[n].formname}}else if(i!="sharekeyhexenc"&&b[i]!=null)e[i]=typeof d[i]!="undefined"?d[i]:b[i];return e}
function createShareeAutoPushesResponse(a,b,c){a=a.responseXML.documentElement;var d=a.getElementsByTagName("sharerpublickeys"),e=a.getElementsByTagName("shareepublickeys"),f=a.getElementsByTagName("encfields"),k=a.getElementsByTagName("encofields");if(d.length<=0&&e.length<=0)return false;a=b.aid;var n=b.postdata;b=typeof b.newvalues=="undefined"?[]:b.newvalues;if(typeof c=="undefined"||c==null){lpReportError("SHARE : createShareeAutoPushesResponse failed for aid="+a,null);return false}var o={},
g=f[0].getElementsByTagName("encfield");n+="&numencf="+LP.en(g.length);for(f=0;f<g.length;++f){var r=g[f].getAttribute("afid"),p=g[f].getAttribute("value");o[r]=p}g={};k=k[0].getElementsByTagName("encofield");n+="&numencof="+LP.en(k.length);for(f=0;f<k.length;++f){r=k[f].getAttribute("afid");p=k[f].getAttribute("value");g[r]=p}n+="&numvalueenc="+LP.en(b.length);for(w=0;w<b.length;++w){f=lpenc(b[w]);n+="&valueenc"+w+"="+LP.en(f)}if(e.length>0){k=e[0].getElementsByTagName("sharee");n+="&numsharees="+
LP.en(k.length);for(f=0;f<k.length;++f){var x=k[f].getAttribute("uid");w=k[f].getAttribute("key");p=lpcreaterandomhexstring(64);e=lp_hex2bin(p);p=lprsa_encryptdata(w,p);if(p==false){lpReportError("SHARE : lprsa_encryptdata failed for shareeuid="+x+" using shareepublickeyhex="+w,null);return false}n+="&sharee"+f+"uid="+LP.en(x);n+="&sharee"+f+"sharekeyhexenc="+LP.en(p);p={name:c.name,grouping:c.group,username:typeof g_sites!="undefined"?lpmdec(c.username,true):lpdec(c.username),password:typeof g_sites!=
"undefined"?lpmdec(c.password,true):lpdec(c.password),extra:typeof g_sites!="undefined"?lpmdec(c.extra,true):lpdec(c.extra)};for(var j in p){var u=lpenc(p[j],e);if(p[j]!=""&&(u==null||u=="")){lpReportError("SHARE : error AES encrypting aid="+a+" for shareeuid="+x,null);return false}n+="&sharee"+f+j+"="+LP.en(u)}var w=0;for(r in o){p=lpdec(o[r]);u=lpenc(p,e);if(p!=""&&(u==null||u=="")){lpReportError("SHARE : error AES encrypting field afid="+r+" aid="+a+" for shareeuid="+x,null);return false}n+="&sharee"+
f+"fafid"+w+"="+LP.en(r);n+="&sharee"+f+"fvalue"+w+"="+LP.en(u);++w}w=0;for(r in g){p=lpdec(g[r]);u=lpenc(p,e);if(p!=""&&(u==null||u=="")){lpReportError("SHARE : error AES encrypting otherfield afid="+r+" aid="+a+" for shareeuid="+x,null);return false}n+="&sharee"+f+"ofafid"+w+"="+LP.en(r);n+="&sharee"+f+"ofvalue"+w+"="+LP.en(u);++w}for(w=0;w<b.length;++w){p=b[w];u=lpenc(p,e);if(p!=""&&(u==null||u=="")){lpReportError("SHARE : error AES encrypting newvalues k="+w+" aid="+a+" for shareeuid="+x,null);
return false}n+="&sharee"+f+"valueenc"+w+"="+LP.en(u)}}}if(d.length>0){d=d[0].getElementsByTagName("sharer");n+="&numsharers="+LP.en(d.length);for(f=0;f<d.length;++f){k=d[f].getAttribute("uid");x=d[f].getAttribute("key");p=lpcreaterandomhexstring(64);e=lp_hex2bin(p);p=lprsa_encryptdata(x,p);if(p==false){lpReportError("SHARE : lprsa_encryptdata failed for shareruid="+k+" using sharerpublickeyhex="+x,null);return false}n+="&sharer"+f+"uid="+LP.en(k);n+="&sharer"+f+"sharekeyhexenc="+LP.en(p);p={name:c.name,
grouping:c.group,username:typeof g_sites!="undefined"?lpmdec(c.username,true):lpdec(c.username),password:typeof g_sites!="undefined"?lpmdec(c.password,true):lpdec(c.password),extra:typeof g_sites!="undefined"?lpmdec(c.extra,true):lpdec(c.extra)};for(j in p){u=lpenc(p[j],e);if(p[j]!=""&&(u==null||u=="")){lpReportError("SHARE : error AES encrypting aid="+a+" for shareruid="+k,null);return false}n+="&sharer"+f+j+"="+LP.en(u)}w=0;for(r in o){p=lpdec(o[r]);u=lpenc(p,e);if(p!=""&&(u==null||u=="")){lpReportError("SHARE : error AES encrypting field afid="+
r+" aid="+a+" for shareruid="+k,null);return false}n+="&sharer"+f+"fafid"+w+"="+LP.en(r);n+="&sharer"+f+"fvalue"+w+"="+LP.en(u);++w}w=0;for(r in g){p=lpdec(g[r]);u=lpenc(p,e);if(p!=""&&(u==null||u=="")){lpReportError("SHARE : error AES encrypting otherfield afid="+r+" aid="+a+" for shareruid="+k,null);return false}n+="&sharer"+f+"ofafid"+w+"="+LP.en(r);n+="&sharer"+f+"ofvalue"+w+"="+LP.en(u);++w}for(w=0;w<b.length;++w){p=b[w];u=lpenc(p,e);if(p!=""&&(u==null||u=="")){lpReportError("SHARE : error AES encrypting newvalues k="+
w+" aid="+a+" for shareruid="+k,null);return false}n+="&sharer"+f+"valueenc"+w+"="+LP.en(u)}}}return n}
function parseAutoPushMobile(a,b){for(var c=0;a!=null&&c<a.length;c++){var d=new lpshareeautopushinfo;d.fields=[];d.otherfields=[];var e=true,f=["id","aid","sharekeyhexenc","name","group","username","password","extra","url","rurl","fav","never_autofill","pwprotect","basic_auth","autologin","last_touch","last_modified","urid","last_pw_change","numf","numof","favico","nexturid","method","is_http","manual"],k;for(k in f)if(typeof a[c][f[k]]!="undefined")d[f[k]]=a[c][f[k]];else if(f[k]=="id"||f[k]=="aid"||
f[k]=="sharekeyhexenc"){lpReportError("SHARE: shareeautopushes : error missing required arg="+f[k],null);e=false;break}else d[f[k]]=null;if(e){e=d.numf!=null?d.numf:0;for(k=0;k<e;++k){f={};f.urid=a[c]["f"+k+"urid"];f.name=a[c]["f"+k+"name"];f.value=a[c]["f"+k+"value"];f.type=a[c]["f"+k+"type"];d.fields.push(f)}e=d.numof!=null?d.numof:0;for(k=0;k<e;++k){f={};f.urid=a[c]["of"+k+"urid"];f.name=a[c]["of"+k+"name"];f.value=a[c]["of"+k+"value"];f.type=a[c]["of"+k+"type"];f.formname=a[c]["of"+k+"formname"];
d.otherfields.push(f)}if(typeof b[d.aid]=="undefined")b[d.aid]=[];b[d.aid].push(d)}}}
function iso2to3(a){return{AD:"AND",AE:"ARE",AF:"AFG",AF:"AFG",AG:"ATG",AL:"ALB",AM:"ARM",AO:"AGO",AQ:"ATA",AR:"ARG",AT:"AUT",AU:"AUS",AW:"ABW",AZ:"AZE",BA:"BIH",BB:"BRB",BD:"BGD",BE:"BEL",BF:"BFA",BG:"BGR",BH:"BHR",BI:"BDI",BJ:"BEN",BM:"BMU",BN:"BRN",BO:"BOL",BR:"BRA",BS:"BHS",BT:"BTN",BW:"BWA",BY:"BLR",BZ:"BLZ",CA:"CAN",CD:"COD",CF:"CAF",CG:"COG",CH:"CHE",CI:"CIV",CL:"CHL",CM:"CMR",CN:"CHN",CO:"COL",CR:"CRI",CU:"CUB",CV:"CPV",CY:"CYP",CZ:"CZE",DE:"DEU",DJ:"DJI",DK:"DNK",DM:"DMA",DO:"DOM",DZ:"DZA",
EC:"ECU",EE:"EST",EG:"EGY",EH:"ESH",ER:"ERI",ES:"ESP",ET:"ETH",FI:"FIN",FJ:"FJI",FM:"FSM",FO:"FRO",FR:"FRA",GA:"GAB",GB:"GBR",GD:"GRD",GE:"GEO",GF:"GUF",GH:"GHA",GM:"GMB",GN:"GIN",GP:"GLP",GQ:"GNQ",GR:"GRC",GT:"GTM",GW:"GNB",GY:"GUY",HN:"HND",HR:"HRV",HT:"HTI",HU:"HUN",ID:"IDN",IE:"IRL",IL:"ISR",IN:"IND",IO:"IOT",IQ:"IRQ",IR:"IRN",IS:"ISL",IT:"ITA",JE:"JEY",JM:"JAM",JO:"JOR",JP:"JPN",KE:"KEN",KG:"KGZ",KH:"KHM",KI:"KIR",KM:"COM",KN:"KNA",KP:"PRK",KR:"KOR",KW:"KWT",KZ:"KAZ",LA:"LAO",LB:"LBN",LC:"LCA",
LI:"LIE",LK:"LKA",LR:"LBR",LS:"LSO",LT:"LTU",LU:"LUX",LV:"LVA",LY:"LBY",MA:"MAR",MC:"MCO",MD:"MDA",ME:"MNE",MG:"MDG",MK:"MKD",ML:"MLI",MM:"MMR",MN:"MNG",MO:"MAC",MQ:"MTQ",MR:"MRT",MS:"MSR",MU:"MUS",MV:"MDV",MW:"MWI",MX:"MEX",MY:"MYS",MZ:"MOZ",NA:"NAM",NE:"NER",NG:"NGA",NI:"NIC",NL:"NLD",NO:"NOR",NP:"NPL",NZ:"NZL",OM:"OMN",PA:"PAN",PE:"PER",PG:"PNG",PH:"PHL",PK:"PAK",PL:"POL",PS:"PSE",PT:"PRT",PW:"PLW",PY:"PRY",QA:"QAT",RE:"REU",RO:"ROU",RS:"SRB",RU:"RUS",RW:"RWA",SA:"SAU",SB:"SLB",SC:"SYC",SD:"SDN",
SE:"SWE",SH:"SHN",SI:"SVN",SK:"SVK",SL:"SLE",SM:"SMR",SN:"SEN",SO:"SOM",SR:"SUR",ST:"STP",SV:"SLV",SY:"SYR",SZ:"SWZ",TD:"TCD",TF:"ATF",TG:"TGO",TH:"THA",TJ:"TJK",TL:"TLS",TM:"TKM",TN:"TUN",TR:"TUR",TT:"TTO",TW:"TWN",TZ:"TZA",UA:"UKR",UG:"UGA",US:"USA",UY:"URY",UZ:"UZB",VC:"VCT",VE:"VEN",VN:"VNM",VU:"VUT",YE:"YEM",ZA:"ZAF",ZM:"ZMB",ZW:"ZWE"}[a]}
function crypto_atob(a){if(a&&a.length>=17&&a.charAt(0)=="!"){var b=a.indexOf("|");if(b!=-1)return"!"+atob(a.substring(1,b))+atob(a.substring(b+1))}return atob(a)}function crypto_btoa(a){return a&&a.length>=33&&a.length%16==1&&a.charAt(0)=="!"?"!"+btoa(a.substring(1,17))+"|"+btoa(a.substring(17)):btoa(a)}
function CompareLastPassVersions(a,b,c){var d=0,e=0,f=0,k=0,n=0,o=0,g=a.split(".");for(a=0;a<g.length;a++)if(a==0)d=parseInt(g[a]);else if(a==1)e=parseInt(g[a]);else if(a==2)f=parseInt(g[a]);b=b.split(".");for(a=0;a<b.length;a++)if(a==0)k=parseInt(b[a]);else if(a==1)n=parseInt(b[a]);else if(a==2)o=parseInt(b[a]);if(d!=k)return d>k?1:-1;if(e!=n)return e>n?1:-1;if(c)return 0;if(f!=o)return f>o?1:-1;return 0}
function lpalert(a,b){typeof LP!="undefined"&&typeof LP.lpgs=="function"?LP.alert(LP.lpgs(a),b):alert(gs(a))}function issharedfolder(a,b){if(!a||a.length==0||typeof b=="undefined"||b==null)return false;var c=b;if(c.indexOf("\\")>0)c=c.substr(0,c.indexOf("\\"));for(var d in a){var e=a[d];if(!(typeof e!="object"||typeof e.decsharename=="undefined"))if(e.decsharename==c)return{id:e.id,sharekey:e.key,decsharename:e.decsharename,readonly:e.readonly}}return false}
function getsharekey(a,b){for(var c=0;typeof a!="undefined"&&a!=null&&c<a.length;c++){var d=a[c];if(d.id==b)return d.key}return null}function lpmenc_acct(a,b,c,d){if(typeof c.sharefolderid=="undefined")return lpmenc(a,b);if(c=issharedfolder(d,c.group))return lpmenc(a,b,c.sharekey);return lpmenc(a,b)}function lpmdec_acct(a,b,c,d){if(typeof c.sharefolderid=="undefined")return lpmdec(a,b);if(c=issharedfolder(d,c.group))return lpmdec(a,b,c.sharekey);return lpmdec(a,b)}
function lpdec_acct(a,b,c){if(typeof b.sharefolderid=="undefined")return lpdec(a);if(b=issharedfolder(c,b.group))return lpdec(a,b.sharekey);return lpdec(a)}function lpenc_acct(a,b,c){if(typeof b.sharefolderid=="undefined")return lpenc(a);if(b=issharedfolder(c,b.group))return lpenc(a,b.sharekey);return lpenc(a)}
function checkmove(a,b,c){if(a!=false||b!=false)if(a==false){lpalert("ERROR. You are not allowed to move sites out of shared folders. Delete is the only supported operation.",c);return false}else if(b!=false&&a.id!=b.id){lpalert("ERROR. Moving sites between shared folders is currently not supported.",c);return false}return true}function checkreadonly(a,b,c){if(a&&a.readonly=="1"){b||lpalert("Sorry, this shared folder is read-only.",c);return false}return true}
var lpffregexpnames=["combineddummy","phoneext","gender","ssn1","ssn2","ssn3","ssn","birthyear","birthmonth","birthday","birthdate","city","county","state","zip1","zip2","zip","country","email","mobileemail","housenumbername","housenumber","housename","address1","ccphone","address2","address3","mobilephone1","mobilephone2","mobilephone3","mobilephone","evephone1","evephone2","evephone3","evephone","phone1","phone2","phone3","phone","fax1","fax2","fax3","fax","title","ccname","ccnum1","ccnum2","ccnum3",
"ccnum4","cccsc","ccnum","ccstartmonth","ccstartyear","ccstart","ccexpmonth","ccexpyear","ccexp","cctype","ccissuenum","firstname3","firstname2","firstname","middlename","middleinitial","lastname3","lastname2","lastname","fulllastname","address","company","username","bankname","addrbookname","name","age","timezone","bankacctnum","bankroutingnum"],lpffdummyregexpnames=["securityanswer","promocode","maiden","comments","invoice","addrbookname","emailalert","combineddummy"],lpffregexpparents=[];
lpffregexpparents.ssn1=lpffregexpparents.ssn2=lpffregexpparents.ssn3="ssn";lpffregexpparents.birthyear=lpffregexpparents.birthmonth=lpffregexpparents.birthday="birthdate";lpffregexpparents.address1=lpffregexpparents.address2=lpffregexpparents.address3="address";lpffregexpparents.phone1=lpffregexpparents.phone2=lpffregexpparents.phone3=lpffregexpparents.phone23="phone";lpffregexpparents.evephone1=lpffregexpparents.evephone2=lpffregexpparents.evephone3=lpffregexpparents.evephone23="evephone";
lpffregexpparents.mobilephone1=lpffregexpparents.mobilephone2=lpffregexpparents.mobilephone3=lpffregexpparents.mobilephone23="mobilephone";lpffregexpparents.fax1=lpffregexpparents.fax2=lpffregexpparents.fax3=lpffregexpparents.fax23="fax";lpffregexpparents.ccnum1=lpffregexpparents.ccnum2=lpffregexpparents.ccnum3=lpffregexpparents.ccnum4="ccnum";lpffregexpparents.ccexpmonth=lpffregexpparents.ccexpyear="ccexp";lpffregexpparents.ccstartmonth=lpffregexpparents.ccstartyear="ccstart";
lpffregexpparents.firstname=lpffregexpparents.middlename=lpffregexpparents.middleinitial=lpffregexpparents.lastname=lpffregexpparents.lastname2="name";lpffregexpparents.zip1=lpffregexpparents.zip2="zip";lpffregexpparents.lastname=lpffregexpparents.lastname2="fulllastname";var lpffregexps=[],lpfftextregexps=[],lastname2_index=-1,lastname3_index=-1;function lptofillinfo(){}
function lpCheckFormFill(a,b,c,d,e,f,k,n,o){var g=typeof o=="string"?true:false;o=typeof o=="string"?o:"";if(typeof f=="undefined"||f==null)f=1;if(f>10)return false;if(!a&&!k)return false;var r=null;if(typeof LP=="object"&&!LP.isFennec&&LP.getBrowser().selectedTab==null)return false;var p=null;if(typeof LP=="object")p=LP.isFennec?a:LP.getBrowser().selectedTab.linkedBrowser;var x=p&&p.contentDocument?p.contentDocument:null;try{if(typeof k=="undefined"||k==null)k=a.contentWindow;r=a?LP.lpgetcurrenturl(a):
k.location.href;if(typeof lpformfills!="undefined"&&lpformfills.length==0&&!g){if(p){var j=p.contentDocument;if(j)j.m_abortedFormFillChecking=true}return false}var u=b.getElementsByTagName("form");if(x&&!c)if(typeof x.m_checkfillformresult!="undefined"&&x.m_checkfillformnumforms==u.length)return x.m_checkfillformresult;if(!c&&(typeof lpShowFormFillNotifications!="undefined"&&!lpShowFormFillNotifications||u.length==0)){if(p)if(j=p.contentDocument)j.m_abortedFormFillChecking=true;if(x){x.m_checkfillformresult=
false;x.m_checkfillformnumforms=u.length}return false}if(!c&&!d&&typeof lp_notification_exists!="undefined"&&(lp_notification_exists(a,"autologin")||lp_notification_exists(a,"generate")||lp_notification_exists(a,"formfill"))){if(p)if(j=p.contentDocument)j.m_abortedFormFillChecking=true;if(x){x.m_checkfillformresult=false;x.m_checkfillformnumforms=u.length}return false}j=null;if(e)for(var w=0;w<lpformfills.length;w++){if(lpformfills[w].ffid==e){j=lpformfills[w];break}}else if(typeof lpformfills!="undefined"&&
!g)j=lpformfills[0];var z,s;z=k.location.href.indexOf("https://")==0?s=true:s=false;if(!c){var D=lpParseUri(r),M=lpcanonizeUrl(r,D),P=lp_gettld(D.host,r);if(typeof never_ff!="undefined"&&never_ff(M,P)){if(x){x.m_checkfillformresult=false;x.m_checkfillformnumforms=u.length}return false}}lpFormFillInitRegexps("en-US");D=null;var O=lpffregexps["en-US"],y=lpfftextregexps["en-US"];M=lpffregexpnames;if(e)for(w=0;w<lpformfills.length;w++){if(lpformfills[w].ffid==e){j=lpformfills[w];var H=lpdec(j.profilelanguage);
if(H.length==5)D=H;D!="en-US"&&lpFormFillInitRegexps(D);O=lpffregexps[D];y=lpfftextregexps[D];if(typeof j.customfields!="undefined"&&j.customfields.length>0){O=[];y=[];M=[];for(var A=0;A<lpffregexps[D].length;A++){O[A]=lpffregexps[D][A];y[A]=lpfftextregexps[D][A];M[A]=lpffregexpnames[A]}for(A=0;A<j.customfields.length;A++){var J=lpdec(j.customfields[A].text),B=lpdec(j.customfields[A].alttext).split(/\r\n|\r|\n/g);B.unshift(J);P=H="";for(var T=0;T<B.length;T++){J=lptrim(B[T]);if(J!=""){H+=P+lp_regexp_quote(J);
P="|"}}if(H!=""){O.unshift(RegExp(H,"i"));y.unshift(RegExp(H,"i"));M.unshift("customfield"+A)}}}break}}else if(g){j=new lpformfillinfo;j.ffid="0";j.profiletype="";j.profilename="translation";j.profilelanguage=lpenc(o);j.firstname=lpenc("firstname");j.firstname2=lpenc("firstname2");j.firstname3=lpenc("firstname3");j.middlename=lpenc("middlename");j.lastname=lpenc("lastname");j.lastname2=lpenc("lastname2");j.lastname3=lpenc("lastname3");j.email=lpenc("email");j.mobileemail=lpenc("mobileemail");j.company=
lpenc("company");j.ssn=lpenc("ssn");j.birthday=lpenc("birthday");j.address1=lpenc("address1");j.address2=lpenc("address2");j.address3=lpenc("address3");j.city=lpenc("city");j.county=lpenc("county");j.state=lpenc("state");j.state_name=lpenc("state_name");j.zip=lpenc("zip");j.country=lpenc("country");j.country_cc3l=lpenc("country_cc3l");j.country_name=lpenc("country_name");j.countryphone="countryphone";j.countryevephone="countryevephone";j.countryfaxphone="countryfaxphone";j.countrymobphone="countrymobphone";
j.phoneext=lpenc("phoneext");j.evephoneext=lpenc("evephoneext");j.faxphoneext=lpenc("faxphoneext");j.mobilephoneext=lpenc("mobilephoneext");j.phone=lpenc("phone");j.evephone=lpenc("evephone");j.fax=lpenc("fax");j.mobilephone=lpenc("mobilephone");j.ccname=lpenc("ccname");j.ccnum=lpenc("ccnum");j.ccstart=lpenc("ccstart");j.ccexp=lpenc("ccexp");j.cccsc=lpenc("cccsc");j.ccissuenum=lpenc("ccissuenum");j.username=lpenc("username");j.gender=lpenc("gender");j.title=lpenc("title");j.pwprotect="0";j.creditmon=
"0";j.customfields=[];j.timezone=lpenc("timezone");j.bankname=lpenc("bankname");j.bankacctnum=lpenc("bankacctnum");j.bankroutingnum=lpenc("bankroutingnum");j.notes=lpenc("notes");if(typeof LP_to_formfill=="undefined")LP_to_formfill=[];LP_to_formfill.promocode="promocode";H=o;if(H.length==5)D=H;D!="en-US"&&lpFormFillInitRegexps(D);O=lpffregexps[D];y=lpfftextregexps[D]}H=B=J=null;try{if(c)if(k.getSelection){J=k.getSelection();if(J.toString()=="")J=B=H=null;else{if(J.getRangeAt)B=J.getRangeAt(0);if(b.createRange)H=
b.createRange()}}else if(b.selection){J=b.selection.createRange();H=b.body.createTextRange();if(J.text=="")J=B=H=null}}catch(V){J=B=H=null}P={};P.value=0;p={};p.value=0;var R={},W={},E={},Y={};R.value=false;W.value=false;E.value=false;Y.value=false;for(w=0;w<u.length+1;w++){var C=w<u.length?u[w]:null,S;if(C!=null)S=C.elements;else{S=[];var $=["input","select","textarea"];for(A=0;A<$.length;A++){var U=b.getElementsByTagName($[A]);for(T=0;T<U.length;T++)if(typeof U[T].form=="unknown"||U[T].form==null)S[S.length]=
U[T]}}if(typeof S!="undefined"){var q={};q.value=0;$=[];for(T=0;T<O.length;T++)$[M[T]]=0;var F=[],G={};G.value=false;var ea=populateToFillForFormFill(S,a,q,$,F,G,c,J,B,H,p,O,M,y,P,d,R,W,E,Y,k,D);if(ea==0){if(x){x.m_checkfillformresult=false;x.m_checkfillformnumforms=u.length}return false}else if(ea==1){if(x){x.m_checkfillformresult=true;x.m_checkfillformnumforms=u.length}return true}if(c){G="birthday";var v="birthmonth";if(j&&lpdec(j.country)=="US"){G="birthmonth";v="birthday"}q=[];if(D!="es-ES"&&
D!="es-MX"&&D!="ca-ES"&&D!="ja-JP"){q[q.length]=["name","name","name","firstname","middlename","lastname"];q[q.length]=["firstname","firstname","lastname","firstname","middlename","lastname"];q[q.length]=["firstname","lastname","lastname","firstname","middlename","lastname"];q[q.length]=["name","name","firstname","lastname"];q[q.length]=["name","lastname","firstname","lastname"];q[q.length]=["lastname","lastname","lastname","firstname","middlename","lastname"];q[q.length]=["lastname","lastname","firstname",
"lastname"];q[q.length]=["firstname","firstname","firstname","lastname"];q[q.length]=["firstname","lastname","firstname","firstname","middlename","lastname"];q[q.length]=["firstname","name","firstname","lastname"]}else{q[q.length]=["name","lastname","lastname","firstname","lastname","lastname2"];q[q.length]=["name","lastname","lastname2","firstname","lastname","lastname2"];q[q.length]=["name","lastname","firstname","fulllastname"];q[q.length]=["firstname","lastname","lastname","firstname","lastname",
"lastname2"];q[q.length]=["fulllastname","fulllastname","lastname","lastname2"];q[q.length]=["name","name","firstname","lastname"]}q[q.length]=["address","address","address","address1","address2","address3"];q[q.length]=["address2","address2","address","address1","address2","address3"];q[q.length]=["address1","address3","address2","address1","address2","address3"];q[q.length]=["address","address","address1","address2"];q[q.length]=["address","address2","address1","address2"];q[q.length]=["address1",
"address1","address1","address2"];q[q.length]=["address","address1","address1","address2"];q[q.length]=["address2","address2","address1","address2"];q[q.length]=["address1","address3","address1","address2"];q[q.length]=["address","address3","address1","address2"];q[q.length]=["ssn","ssn","ssn","ssn1","ssn2","ssn3"];q[q.length]=["zip","zip","zip1","zip2"];q[q.length]=["birthmonth","birthdate","birthyear",G,v,"birthyear"];q[q.length]=["birthday","birthday","birthday",G,v,"birthyear"];q[q.length]=["birthdate",
"birthdate","birthdate",G,v,"birthyear"];q[q.length]=["birthdate","birthdate","birthyear",G,v,"birthyear"];q[q.length]=["birthday","birthday",G,v];q[q.length]=["birthdate","birthdate",G,v];for(G=1;G<=4;G++){v="evephone";if(2==G)v="phone";if(3==G)v="fax";if(4==G)v="mobilephone";q[q.length]=[v,v,v,v+"1",v+"2",v+"3"];q[q.length]=[v+"1",v+"2",v,v+"1",v+"2",v+"3"];q[q.length]=[v+"1",v+"1",v+"2",v+"1",v+"2",v+"3"];q[q.length]=[v+"1",v+"1",v+"1",v+"1",v+"2",v+"3"];q[q.length]=[v+"1",v,v,v+"1",v+"2",v+"3"];
q[q.length]=[v,v,v+"2",v+"1",v+"2",v+"3"];q[q.length]=[v,v+"2",v+"3",v+"1",v+"2",v+"3"];q[q.length]=[v,v+"2",v,v+"1",v+"2",v+"3"];q[q.length]=[v,v+"3",v,v+"1",v+"2",v+"3"];q[q.length]=[v,v,v+"1",v+"23"]}q[q.length]=["ccnum","ccnum","ccnum","ccnum","ccnum1","ccnum2","ccnum3","ccnum4"];q[q.length]=["ccnum","ccnum","ccnum","ccnum1","amexccnum2","amexccnum3"];q[q.length]=["ccexp","ccexp","ccexpmonth","ccexpyear"];q[q.length]=["ccexp","ccexpyear","ccexpmonth","ccexpyear"];q[q.length]=["ccexpyear","ccexpyear",
"ccexpmonth","ccexpyear"];q[q.length]=["ccstart","ccstart","ccstartmonth","ccstartyear"];q[q.length]=["ccstart","ccstartyear","ccstartmonth","ccstartyear"];q[q.length]=["cctype","cctype","cctype","firstname","middlename","lastname"];if(W.value||R.value||Y.value||E.value){G=true;for(A=0;A<F.length;A++){if(F[A].namematch=="country"&&F[A].textmatch=="country")G=false;if(F[A].namematch=="state"&&F[A].textmatch=="state")G=false}if(G){G=[];v=[];for(A=0;A<F.length;A++){var X=F[A].namematch,aa=F[A].textmatch;
if(""!=X)v[X]=1;if(""!=aa)G[aa]=1}var I=array_size(v),ba=array_size(G);if(I>ba)for(A=0;A<F.length;A++)if(F[A].namematch)F[A].regexpname=F[A].namematch}}CheckForLoners(F);for(A=0;A<F.length;A++){var fa=F[A],K=fa.elt;if(lpIsVisible(K)){var N=fa.regexpname;G=false;for(T=0;T<q.length;T++){var Z=q[T];if(Z.length%2==0)if(N==Z[0]){var da=Z.length/2;if(!(A>=F.length-(da-1)))if(!(Z[0]=="cctype"&&Z[3]=="firstname"&&(K.type=="select-one"||K.type=="radio"))){for(v=0;v<da;v++){if(!check_size_or_maxlen(F[A+v].elt,
Z[da+v]))break;if(v>=1)if(F[A+v].regexpname!=Z[v]||!F[A+v].last_field_filled)break}if(!(v<da)){N=Z[da];for(v=1;v<da;v++)F[A+v].regexpname=Z[da+v];G=true;break}}}}if(!G&&N=="cctype"&&K.type!="select-one"&&K.type!="radio"){for(var ca=false,Q=0;Q<F.length;Q++)if(F[Q].regexpname.indexOf("ccnum")==0){ca=true;break}ca||(N="ccnum")}else if(!G&&N=="bankacctnum"){v=G=ca=false;for(Q=0;Q<F.length;Q++)if(F[Q].regexpname.indexOf("ccnum")==0){ca=true;break}else if(F[Q].regexpname.indexOf("cc")==0)G=true;else if(F[Q].regexpname.indexOf("bank")==
0&&F[Q].regexpname!="bankacctnum"){v=true;break}if(!ca&&G&&!v)N="ccnum"}else if(!G&&N=="cccsc"){ca=false;for(Q=0;Q<F.length;Q++)if(F[Q].regexpname.indexOf("ccnum")==0){ca=true;break}if(!ca)continue}else if(!G&&N.indexOf("ccnum")==0&&K.type=="select-one")N="cctype";else if(N=="address3"&&j.address3==""&&j.city!=""){G=false;for(Q=0;Q<F.length;Q++)if(F[Q].regexpname=="city"){G=true;break}G||(N="city")}else if(N=="address"&&K.type=="textarea"){G=false;for(Q=0;Q<F.length;Q++)if(F[Q].regexpname=="city"||
F[Q].regexpname=="county"||F[Q].regexpname=="state"){G=true;break}G||(N="fulladdress")}if(typeof lpdonotoverwritefilledfields!="undefined"&&lpdonotoverwritefilledfields)if(("email"==K.type||"text"==K.type||"password"==K.type||"textarea"==K.type)&&K.value!="")continue;else if(K.type=="select-one"&&K.selectedIndex!=0)continue;else if((K.type=="checkbox"||K.type=="radio")&&K.checked)continue;if(N.indexOf("cc")==0)if(z&&!s)continue;else if(!z||!s){G=N;if(typeof lpffregexpparents[N]!="undefined")G=lpffregexpparents[N];
else if(N=="cctype")G="ccnum";if(j&&typeof j[G]!="undefined"&&j[G]!=""){if(!z){s=lpConfirmYesNo(lpgs("InsecureSite",D))?true:false;z=true}if(!s)continue}}var ja=K.value;lpFillFormField(x,K,N,e,n,D,g,j,o);if(K.value!=ja){if(typeof $[N]=="undefined")$[N]=0;$[N]++}}}}}}if(k&&k.frames&&(!c||J==null))for(w=0;w<k.frames.length;w++)try{if(k.frames[w].document){var ga=lpCheckFormFill(a,k.frames[w].document,c,d,e,f+1,k.frames[w].window,n);if(ga&&!c){if(x){x.m_checkfillformresult=ga;x.m_checkfillformnumforms=
u.length}return ga}}}catch(ka){}c&&typeof lploglogins!="undefined"&&lploglogins&&f==1&&lplogformfill(e)}catch(ha){lpReportError("Failure with checking formfill: "+ha+" ln: "+ha.lineNumber,r)}if(!c){if(x){x.m_checkfillformresult=false;x.m_checkfillformnumforms=u.length}return false}}function DoFillReplace(a,b){for(var c=a[0],d=0;d<a.length;d++)for(var e=0;e<b.length;e++)if(b[e].regexpname==a[d]){b[e].regexpname=c;if(b[e].namematch==a[d])b[e].namematch=c;if(b[e].textmatch==a[d])b[e].textmatch=c}}
function CheckForLoners(a){var b=[];b[b.length]=["birthdate","birthday","birthmonth"];for(var c="",d=0;d<a.length;d++)c+=","+a[d].regexpname;for(d=0;d<b.length;d++){for(var e=0,f=1;f<b[d].length;f++)e+=c.indexOf(","+b[d][f])==-1?0:1;e==1&&DoFillReplace(b[d],a)}}
function populateToFillForFormFill(a,b,c,d,e,f,k,n,o,g,r,p,x,j,u,w,z,s,D,M,P,O){for(var y=a.length,H=0,A=0;A<y;A++){var J=false,B=a[A];if("email"==B.type||B.type=="text"||B.type=="password"||B.type=="select-one"||B.type=="textarea"||B.type=="radio")if(!(B.type=="select-one"&&B.disabled==true)){if(++H>100)break;var T=getname(B),V=false;if(T!=""){try{if(k&&n!=null)if(P.navigator.userAgent.indexOf("Opera")!=-1){g.setStart(B,0);g.setEnd(B,0);var R=o.compareBoundaryPoints(Range.START_TO_START,g),W=o.compareBoundaryPoints(Range.END_TO_END,
g);if(R>0||W<0)continue}else if(typeof n.containsNode=="function"){if(!n.containsNode(B,true))continue}else if(g!=null&&typeof g.moveToElementText!="undefined"){var E=B;if(E.type=="select-one"){for(var Y=E.previousSibling,C=false;Y;){if(Y.nodeType==1&&Y.tagName!="SELECT"){E=Y;C=true;break}Y=Y.previousSibling}if(!C)E=E.parentNode}g.moveToElementText(E);R=n.compareEndPoints("StartToStart",g);W=n.compareEndPoints("EndToEnd",g);if(R>0||W<0)continue}}catch(S){}var $=0,U=0;if(typeof B.size!="undefined")$=
parseInt(B.size);if(typeof B.maxLength!="undefined")U=parseInt(B.maxLength);if($<=0&&U<=0&&B.style){E=B.style.width;if(E.match(/^\d+px$/)){E=parseInt(E.substring(0,E.length-2));if(E%10==0)$=E/10}}C=false;E=[];var q=[],F=false,G=true,ea="";if(k||++r.value<=5)if(k)ea=lpGetTextBeforeFormField(B);if(!k&&r.value>20)return false;var v=2,X=1;k||(v=X=ea!=""?2:1);if(typeof p!="undefined"&&typeof p.length!="undefined")for(var aa=0;aa<p.length&&G&&!C;aa++)if(p[aa]!=null){var I=x[aa];if(!(B.type=="radio"&&I!=
"gender"&&I!="cctype"&&I.indexOf("customfield")!=0))if(!(B.type=="select-one"&&I!="state"&&I!="country"&&I!="cctype"&&I!="timezone"&&I!="city"&&I.indexOf("birth")!=0&&I!="title"&&I.indexOf("ccexp")!=0&&I.indexOf("ccstart")!=0&&I!="gender"&&I!="age"&&I.indexOf("customfield")!=0))if(!(B.type=="password"&&I.indexOf("ccnum")!=0&&I!="cccsc"&&I!="ccissuenum"&&I!="cctype"&&I!="bankacctnum"&&I.indexOf("customfield")!=0))if(!((B.type=="text"||B.type=="textarea"||"email"==B.type)&&(I=="cctype"||I=="timezone"||
I=="gender")))if(check_size_or_maxlen(B,I,true,$,U))if(!(I.indexOf("address")==0&&U>0&&U<15)){for(var ba=false,fa=false,K=v;K>=X;K--){if(K==1&&!ba&&q.length>0&&B.type!="select-one")break;var N;if(K==1)N=T;else if(K==2){N=ea;if(N=="")continue}var Z=1==K?p[aa]:j[aa];if((typeof d[I]=="undefined"||d[I]<2)&&regexp_match_c(Z,N)){if(K==2&&(I=="evephone"||I=="mobilephone"))F=true;if(K==2&&I=="phone"&&F)break;if(!k&&!V){if(!lpIsVisible(B)){G=false;J=f.value;break}V=true}if(lp_in_array(I,lpffdummyregexpnames)){if(typeof LP_to_formfill!=
"undefined"&&typeof LP_to_formfill.promocode!="undefined")if(RegExp(lpgs("ff_promocode_regexp",O),"i").exec(N)){u.value++;c.value++;I="promocode"}}else{u.value++;c.value++}if(k)if(K==1){E[E.length]=I;fa=true}else{q[q.length]=I;ba=true}else{if(typeof d[I]=="undefined")d[I]=0;d[I]++;if(u.value>=3){if(!w&&(typeof lp_notification_exists=="undefined"||!lp_notification_exists(b,"addconfirm")))lp_showNotification("FillableFormDetected",b,0,"formfill");if(b)b.contentDocument.ffidindex=-1;else document.ffidindex=
-1;return true}C=true;break}}}if(ba&&fa)break}}if(k&&G){V=[];for(C=0;C<q.length;C++)if(lp_in_array(q[C],E))V[V.length]=q[C];else if(typeof lpffregexpparents[q[C]]!="undefined"&&lp_in_array(lpffregexpparents[q[C]],E))V[V.length]=q[C];C=null;if(V.length>0)C=V[0];else if(q.length>0)C=q[0];else if(E.length>0){if(E[0].indexOf("ccnum")==0&&B.type=="select-one")for(C=1;C<E.length;C++)if(E[C].indexOf("ccexp")==0){E.shift();break}C=E[0]}if(C!=null){if(C=="name"&&lp_in_array("name",V)&&lp_in_array("company",
q))C="company";if(C=="ccexp"&&B.type=="select-one"&&lp_in_array("ccexp",q)&&lp_in_array("cctype",E))if(B.options.length!=12&&B.options.length!=13){for(J=0;J<B.options.length;J++)if(B.options[J].value.match(/^(?:\d{1,2}|\d{4}|\d{2}\/?(?:\d{2}|\d{4}))$/)||B.options[J].text.match(/^(?:\d{1,2}|\d{4}|\d{2}\/?(?:\d{2}|\d{4}))$/))break;if(J==B.options.length)C="cctype"}if(C=="ccexp"&&B.type=="text"&&lp_in_array("ccexp",q)&&lp_in_array("cccsc",E)&&typeof B.maxLength!="undefined"&&B.maxLength>=3&&B.maxLength<=
4)C="cccsc";J=new lptofillinfo;J.elt=B;J.regexpname=C;J.last_field_filled=f.value;C=V="";if(q.length>0)C=q[0];if(E.length>0){if("state"==E[0]&&C!="state"&&"select-one"==B.type)s.value=true;if("country"==E[0]&&C!="country"&&"select-one"==B.type)z.value=true;if("ccexpmonth"==E[0]&&C!="ccexpmonth"&&C!="ccexp"&&"select-one"==B.type)D.value=true;if("ccexpyear"==E[0]&&C!="ccexpyear"&&C!="ccexp"&&"select-one"==B.type)M.value=true;V=E[0]}J.namematch=V;J.textmatch=C;e[e.length]=J;J=true}}}f.value=J}}return 2}
function lpClearForms(a,b,c,d){if(typeof c=="undefined"||c==null)c=1;if(c>10)return false;if(!a&&!d||!b)return false;for(var e=["input","select"],f=0;f<e.length;f++)for(var k=b.getElementsByTagName(e[f]),n=0;n<k.length;n++){var o=k[n];if(!o.readOnly&&!o.disabled)if("email"==o.type||o.type=="text"||o.type=="password"){if(o.value!=""){o.value="";fire_onchange(o)}}else if(o.type=="select-one"){if(o.selectedIndex!=0){o.selectedIndex=0;fire_onchange(o)}}else if(o.type=="radio"||o.type=="checkbox")if(o.checked){o.checked=
false;fire_onchange(o)}}if(typeof d=="undefined"||d==null)d=a.contentWindow;if(d&&d.frames)for(f=0;f<d.frames.length;f++)d.frames[f].document&&lpClearForms(a,d.frames[f].document,c+1,d.frames[f].window)}var g_lastmodifiedlocalefile={},g_overrideregexps={};
function lpFormFillInitRegexps(a){var b=false;if(typeof lpLastModifiedFile=="function"){var c=lpLastModifiedFile(a+".properties");if(c)if(typeof g_lastmodifiedlocalefile[a]=="undefined"||g_lastmodifiedlocalefile[a]<c){b=true;g_lastmodifiedlocalefile[a]=c;g_overrideregexps[a]={};if(c=lpReadFile(a+".properties",null,1)){c=c.replace("\r","");var d=c.split("\n"),e=d.length;for(c=0;c<e;++c){var f=d[c];if(f.indexOf("ff_")==0){var k=f.indexOf("=");if(k!=-1){var n=f.substring(0,k);f=f.substring(k+1);g_overrideregexps[a][n]=
f}}}}}}if(b||typeof lpffregexps[a]=="undefined"){lpffregexps[a]=[];lpfftextregexps[a]=[]}if(!(lpffregexps[a].length>0)){b=false;for(c=0;c<lpffregexpnames.length;c++){d="ff_"+lpffregexpnames[c]+"_regexp";e=lpgs(d,a,true);if(e!=d)b=true;if(typeof g_overrideregexps[a]!="undefined"&&typeof g_overrideregexps[a][d]!="undefined")e=g_overrideregexps[a][d];lpffregexps[a][c]=e.length?RegExp(e,"i"):null;if(lpffregexpnames[c]=="lastname2")lastname2_index=c;if(lpffregexpnames[c]=="lastname3")lastname3_index=c;
d="ff_text_"+lpffregexpnames[c]+"_regexp";e=lpgs(d,a,true);if(typeof g_overrideregexps[a]!="undefined"&&typeof g_overrideregexps[a][d]!="undefined")e=g_overrideregexps[a][d];lpfftextregexps[a][c]=e.length&&e!=d?RegExp(e,"i"):lpffregexps[a][c]}b||delete lpffregexps[a]}}
function lpGetTextBeforeFormField(a){var b="";try{if(a.id!=""&&typeof a.ownerDocument!="undefined"&&a.ownerDocument!=null)for(var c=a.ownerDocument.getElementsByTagName("label"),d=0;d<c.length;d++)if(c[d].htmlFor==a.id){var e=strip(lpGetText(c[d],a,false,true));if(e.length>=2)return e;break}var f=a.parentNode;if(f&&(f.tagName=="DIV"||f.tagName=="SPAN"))f=f.parentNode;if(f&&"TD"==f.tagName){var k=strip(lpGetText(f,a,false,true));if(k.length>=2)return k;var n=f.parentNode,o=strip(lpGetText(n,a,false,
true));if(o.length>=2)return o;k=c=-1;var g=f.offsetParent;if(g)for(o=0;o<g.rows.length;o++)if(n==g.rows[o]){c=o;break}for(o=0;o<n.cells.length;o++)if(typeof n.cells[o]!="undefined"&&f==n.cells[o]){k=o;break}f=0;if(c>0&&k!=-1){for(d=o=n=0;d<=k;d++){var r=g.rows[c].cells[d],p=1;if(r&&typeof r.colSpan=="number")p=r.colSpan;if(d<k)n+=p;else o=n+p-1}var x=0;for(d=0;d<=o;d++){r=g.rows[c-1].cells[d];p=1;if(r&&typeof r.colSpan=="number")p=r.colSpan;var j=1;if(r&&typeof r.rowSpan=="number")j=r.rowSpan;if(j>
1){n+=j-1;o+=j-1}j=x;var u=x+p-1;if(n>=j&&n<=u||o>=j&&o<=u)if(r){e=strip(lpGetText(r,a,false,true));if(e.length>=2){b=e;f=1;break}}x+=p}}if(!f&&c!=-1&&k!=-1)if(r=g.rows[c].cells[0]){e=strip(lpGetText(r,a,false,true));if(e.length>=2)b=e}}}catch(w){}if(b=="")b=lpGetTextBeforeFormField_orig(a);return b}
function innerHTMLParse(a,b){var c="",d=a.innerHTML,e=RegExp("<(input|select|textarea)[^>]+name=[\"']?"+lp_regexp_quote(lpxmlescape(getname(b)))+"[\"']?[^>]*>","i");e=e.exec(d);if(!e){e=RegExp("<(input|select|textarea)[^>]+id=[\"']?"+lp_regexp_quote(lpxmlescape(getname(b)))+"[\"']?[^>]*>","i");e=e.exec(d);if(!e)return""}var f=d.indexOf(e[0]);e=0;var k=f>1001?f-1001:0;for(f-=1;f>=k;f--){var n=d.charAt(f);if(n==">"){if(e<=0){c=c.replace(/&nbsp;/," ");c=strip(c);if(c.length>2)return c;c=""}e++}else if(n==
"<")e>0&&e--;else if(e<=0)c=n+c}c=c.replace(/&nbsp;/," ");c=strip(c);if(c.length>2)return c;return""}function lpGetTextBeforeFormField_orig(a){if(getname(a)=="")return"";for(var b=a,c="",d=0;d<10;d++){if(!b.parentNode)break;b=b.parentNode;c=strip(lpGetText(b,a));if(c.length>200)return innerHTMLParse(b,a);if(c.length>=2)break}return c}
function check_size_or_maxlen(a,b,c,d,e){if(b=="ssn1"||b=="ssn2"||b=="ssn3"||b=="ccnum1"||b=="ccnum2"||b=="ccnum3"||b=="ccnum4"||b=="phone1"||b=="phone2"||b=="phone3"||b=="phone23"||b=="evephone1"||b=="evephone2"||b=="evephone3"||b=="evephone23"||b=="mobilephone1"||b=="mobilephone2"||b=="mobilephone3"||b=="mobilephone23"||b=="fax1"||b=="fax2"||b=="fax3"||b=="fax23"||b=="zip1"||b=="zip2"||b=="amexccnum2"||b=="amexccnum3"){if(typeof d=="undefined"||typeof e=="undefined"){e=d=0;if(typeof a.size!="undefined")d=
parseInt(a.size);if(typeof a.maxLength!="undefined")e=parseInt(a.maxLength);if(d<=0&&e<=0&&a.style){a=a.style.width;if(a.match(/^\d+px$/)){a=parseInt(a.substring(0,a.length-2));if(a%10==0)d=a/10}}}if(b=="ssn2")b=a=2;else if(b=="ssn1"||b=="phone1"||b=="phone2"||b=="fax1"||b=="fax2"||b=="evephone1"||b=="evephone2"||b=="mobilephone1"||b=="mobilephone2")b=a=3;else if(b=="zip1"){b=5;a=2}else if(b=="phone23"||b=="fax23"||b=="evephone23"||b=="mobilephone23"){b=8;a=7}else if(b=="ccnum4"||b=="zip2"){b=4;a=
3}else if(b=="amexccnum2")b=a=6;else if(b=="amexccnum3")b=a=5;else if(b=="phone3"||b=="fax3"||b=="mobilephone3"||b=="evephone3"){b=5;a=4}else b=a=4;if((d<=0||d>b)&&(e<=0||e>b))return false;if(c&&e>0&&e<a)return false}return true}var g_allowtruncate=true;
function lpFillFormField(a,b,c,d,e,f,k,n,o){if(k=typeof k!="undefined"?k:false)g_allowtruncate=false;try{if(e&&c.indexOf("cc")==0)d=e;e=null;if(d)for(var g=0;g<lpformfills.length;g++){if(lpformfills[g].ffid==d){e=lpformfills[g];break}}else if(k){if(k)e=n}else e=lpformfills[0];if(e)if(!(b.readOnly||b.disabled)){if(a)a.formfillffid=d;d=n=0;if(typeof b.size!="undefined")n=parseInt(b.size);if(typeof b.maxLength!="undefined")d=parseInt(b.maxLength);check_size_or_maxlen(b,c)||(c=c.replace(/\d+$/,""));var r=
b.value;if(c.indexOf("customfield")==0){var p=parseInt(c.substring(11));e.customfields.length>p&&lpSetValue(a,b,lpdec(e.customfields[p].value))}var x=b.type=="select-one"&&(b.options[0].value.match(/^\d{4}$/)||b.options.length>1&&b.options[1].value.match(/^\d{4}$/));if(c=="birthmonth"&&b.type=="select-one"&&b.options.length>=28)c=x?"birthyear":"birthday";else if(c=="birthday"&&b.type=="select-one"&&b.options.length<28)c="birthmonth";else if(c=="birthday"&&b.type=="select-one"&&x)c="birthyear";else if(c==
"birthyear"&&b.type=="select-one"&&b.options.length>0&&b.options[0].value.match(/^\d$/)&&b.options[0].value!=0)c="birthday";else if(c=="birthyear"&&b.type=="select-one"&&b.options.length<35)c=b.options.length>12?"birthday":"birthmonth";if(c=="ccexpmonth"&&b.type=="select-one"&&b.options.length>0&&(b.options[b.options.length-1].value.match(/^\d{4}$/)||b.options[b.options.length-1].text.match(/^\d{4}$/)))c="ccexpyear";if(c=="cctype"&&b.type=="select-one"&&b.options.length>=100)for(g=0;g<b.options.length;g++)if(b.options[g].value==
"US"||b.options[g].value=="USA"){c="country";break}if(k){g={title:1,name:1,firstname:1,middlename:1,middleinitial:1,lastname:1,username:1,maiden:1,birthdate:1,birthday:1,birthmonth:1,birthyear:1,age:1,ssn:1,ssn1:1,ssn2:1,ssn3:1,company:1,addrbookname:1,address:1,address1:1,address2:1,address3:1,city:1,housenumbername:1,housenumber:1,housename:1,county:1,state:1,zip:1,zip1:1,zip2:1,country:1,phone:1,phone1:1,phone2:1,phone3:1,phone23:1,phoneext:1,fax:1,fax1:1,fax2:1,fax3:1,fax23:1,evephone:1,evephone1:1,
evephone2:1,evephone3:1,evephone23:1,mobilephone:1,mobilephone1:1,mobilephone2:1,mobilephone3:1,mobilephone23:1,ccname:1,ccnum:1,ccnum1:1,ccnum2:1,ccnum3:1,ccnum4:1,ccstart:1,ccstartmonth:1,ccstartyear:1,ccexp:1,ccexpmonth:1,ccexpyear:1,cccsc:1,ccissuenum:1,cctype:1,ccphone:1,bankname:1,bankacctnum:1,bankroutingnum:1,email:1,emailalert:1,search:1,securityanswer:1,captcha:1,combineddummy:1,comments:1,promocode:1,invoice:1,currpass:1,gender:1,timezone:1};switch(o){case "es-ES":case "es-MX":g.lastname2=
1;break;case "ja-JP":g.mobileemail=1;g.firstname="namestdfirst";g.firstname2="namefurfirst";g.firstname3="nameromfirst";g.lastname="namestdlast";g.lastname2="namefurlast";g.lastname3="nameromlast"}var j=typeof g[c]!="undefined"?g[c]==1?c:g[c]:"UNKNOWN:"+c;lpSetValue(a,b,j)}else switch(c){case "firstname":lpSetValue(a,b,lpdec(e.firstname));break;case "firstname2":lpSetValue(a,b,lpdec(e.firstname2));break;case "firstname3":lpSetValue(a,b,lpdec(e.firstname3));break;case "lastname":lpSetValue(a,b,lpdec(e.lastname));
break;case "lastname2":lpSetValue(a,b,lpdec(e.lastname2));break;case "lastname3":lpSetValue(a,b,lpdec(e.lastname3));break;case "email":lpSetValue(a,b,lpdec(e.email));break;case "mobileemail":lpSetValue(a,b,lpdec(e.mobileemail));break;case "company":lpSetValue(a,b,lpdec(e.company));break;case "address1":lpSetValue(a,b,lpdec(e.address1));break;case "address2":lpSetValue(a,b,lpdec(e.address2),false,false,e.address1!=""?true:false);break;case "address3":lpSetValue(a,b,lpdec(e.address3),false,false,e.address1!=
""?true:false);break;case "username":lpSetValue(a,b,lpdec(e.username),true);break;case "phoneext":lpSetValue(a,b,lpdec(e.phoneext),false,false,e.phone!="");break;case "bankname":lpSetValue(a,b,lpdec(e.bankname));break;case "bankacctnum":lpSetValue(a,b,lpdec(e.bankacctnum));break;case "bankroutingnum":lpSetValue(a,b,lpdec(e.bankroutingnum));break;case "county":lpSetValue(a,b,lpdec(e.county));break;case "ccname":lpSetValue(a,b,lpdec(e.ccname));break;case "ccissuenum":lpSetValue(a,b,lpdec(e.ccissuenum),
true);break;case "securityanswer":lpSetValue(a,b,"");break;case "promocode":lpSetValue(a,b,typeof LP_to_formfill!="undefined"&&typeof LP_to_formfill.promocode!="undefined"?LP_to_formfill.promocode:"");break;case "maiden":lpSetValue(a,b,"");break;case "ccphone":lpSetValue(a,b,"");break;case "comments":lpSetValue(a,b,"");break;case "invoice":lpSetValue(a,b,"");break;case "addrbookname":lpSetValue(a,b,"");break;case "emailalert":lpSetValue(a,b,"");break;case "combineddummy":lpSetValue(a,b,"");break;
case "timezone":j=lpdec(e.timezone);if(b.type=="select-one"){if(j=="")break;var u=j.match(/^([-+]?\d{2}):(\d{2}),(\d)$/);if(u){var w=parseInt(u[1]),z=parseInt(u[2]);parseInt(u[3]);var s=w+z/60,D="GMT\\s*"+(w<0?"-":"\\+")+"\\s*"+(Math.abs(w)<10?"0?":"")+Math.abs(w);if(z!=0)D+=":"+z;var M=RegExp(D);for(g=0;g<b.options.length;g++)if(b.options[g].value==j||b.options[g].text==j||b.options[g].value==s||b.options[g].text==s||M.exec(b.options[g].value)||M.exec(b.options[g].text)){b.selectedIndex=g;break}}}else lpSetValue(a,
b,j);break;case "ccnum":g=false;if(4==d||3==d)g=true;if(!g){var P=lpdec(e.ccnum);lpSetValue(a,b,P);break}case "cccsc":lpSetValue(a,b,lpdec(e.cccsc),true);break;case "zip":j=lpdec(e.zip);if(j.match(/^\d{5}-?(?:\d{4})?$/)){if(d>0&&d<j.length)j=d==9&&j.length==10?j.substring(0,5)+j.substring(6,10):d==4?j.length>=9?j.substring(j.length-4):"":j.substring(0,5)}else if(d>0&&d<j.length)j=j.replace(/[^A-Za-z0-9]/g,"");lpSetValue(a,b,j);break;case "city":j=lpdec(e.city);if(b.type=="select-one"){if(j=="")break;
j=j.toLowerCase();for(g=0;g<b.options.length;g++)if(b.options[g].value.toLowerCase()==j||b.options[g].text.toLowerCase()==j){b.selectedIndex=g;break}}else lpSetValue(a,b,j);break;case "ssn":var O=lpdec(e.ssn);if(4==d){var y=O.replace(/\D/g,"");if(y.length==9)O=y.substring(5,9);else break}else if(d>0&&d<11)O=O.replace(/-/g,"");lpSetValue(a,b,O);break;case "name":j=lpdec(e.firstname)+(e.firstname!=""&&e.lastname!=""?" ":"")+lpdec(e.lastname);lpSetValue(a,b,j);break;case "fulllastname":j=lpdec(e.lastname)+
(e.lastname!=""&&e.lastname2!=""?" ":"")+lpdec(e.lastname2);lpSetValue(a,b,j);break;case "ssn1":O=lpdec(e.ssn);y=O.replace(/\D/g,"");if(y.length==9){j=y.substring(0,3);lpSetValue(a,b,j)}break;case "ssn2":O=lpdec(e.ssn);y=O.replace(/\D/g,"");if(y.length==9){j=y.substring(3,5);lpSetValue(a,b,j)}break;case "ssn3":O=lpdec(e.ssn);y=O.replace(/\D/g,"");if(y.length==9){j=y.substring(5,9);lpSetValue(a,b,j)}break;case "birthmonth":if(e.birthday=="")break;j=lpdec(e.birthday).substring(5,7);if(b.type=="select-one"){s=
j;if(s.charAt(0)=="0")s=s.substring(1);D=lpgs("month"+s,f).toLowerCase();var H=lpgs("mon"+s,f).toLowerCase();for(g=0;g<b.options.length;g++)if(b.options[g].value.toLowerCase().indexOf(D)!=-1||b.options[g].value.toLowerCase().indexOf(H)!=-1||b.options[g].text.toLowerCase().indexOf(D)!=-1||b.options[g].text.toLowerCase().indexOf(H)!=-1){b.selectedIndex=g;break}if(g==b.options.length)for(g=0;g<b.options.length;g++)if(b.options[g].value==j||b.options[g].value==s||b.options[g].text==j||b.options[g].text==
s){b.selectedIndex=g;break}}else lpSetValue(a,b,j);break;case "birthday":if(e.birthday=="")break;j=lpdec(e.birthday).substring(8,10);if(b.type=="select-one"){s=j;if(s.charAt(0)=="0")s=s.substring(1);for(g=0;g<b.options.length;g++)if(b.options[g].value==j||b.options[g].value==s||b.options[g].text==j||b.options[g].text==s){b.selectedIndex=g;break}}else lpSetValue(a,b,j);break;case "birthyear":if(e.birthday=="")break;var A=lpdec(e.birthday);j=A.substring(0,4);s=A.substring(2,4);if(b.type=="select-one")for(g=
0;g<b.options.length;g++){if(b.options[g].value==j||b.options[g].value==s||b.options[g].text==j||b.options[g].text==s){b.selectedIndex=g;break}}else{if(2==d)j=s;lpSetValue(a,b,j)}break;case "birthdate":A=lpdec(e.birthday);e&&lpdec(e.country);if(A.length>=4){A=4==d?A.substring(0,4):2==d?A.substring(2,4):lpdec(e.country)=="US"?A.substring(5,7)+"/"+A.substring(8,10)+"/"+A.substring(0,4):A.substring(8,10)+"/"+A.substring(5,7)+"/"+A.substring(0,4);lpSetValue(a,b,A)}break;case "address":case "fulladdress":var J=
b.type=="textarea"?"\n":" ",B=[e.address1,e.address2,e.address3];if(c=="fulladdress"){B[B.length]=e.city;B[B.length]=e.county;B[B.length]=e.state}j="";for(g=0;g<B.length;g++)if(B[g]!="")j+=(j!=""?J:"")+lpdec(B[g]);lpSetValue(a,b,j);break;case "title":j=lpdec(e.title);if(b.type=="select-one"){if(j=="")break;u=a="";for(g=0;g<b.options.length;g++)if(b.options[g].value.toLowerCase()==j||b.options[g].value.toLowerCase().indexOf(j)!=-1||b.options[g].text.toLowerCase()==j||b.options[g].text.toLowerCase().indexOf(j)!=
-1){if(!(""==a&&""==u))if(b.options[g].value.length<=a.length&&b.options[g].text.length<=u.length){if(!(b.options[g].value.length<a.length||b.options[g].text.length<u.length))continue}else continue;a=b.options[g].value;u=b.options[g].text;b.selectedIndex=g}}else{j=j.substring(0,1).toUpperCase()+j.substring(1);lpSetValue(a,b,j)}break;case "state":j=lpdec(e.state);if(b.type=="select-one"){j=j.toLowerCase();s=lpdec(e.state_name).toLowerCase();if(j==""&&s=="")break;for(g=0;g<b.options.length;g++)if(b.options[g].value.toLowerCase()==
j||b.options[g].value.toLowerCase()==s||b.options[g].text.toLowerCase()==j||b.options[g].text.toLowerCase()==s){b.selectedIndex=g;break}if(g==b.options.length){for(g=0;g<b.options.length;g++)if(b.options[g].value.toLowerCase().indexOf(s)!=-1||b.options[g].text.toLowerCase().indexOf(s)!=-1){b.selectedIndex=g;break}if(g==b.options.length){for(g=0;g<b.options.length;g++)if(b.options[g].value.toLowerCase().indexOf(j)!=-1||b.options[g].text.toLowerCase().indexOf(j)!=-1){b.selectedIndex=g;break}if(g==b.options.length&&
j.length==2){D=j.charAt(0)+"."+j.charAt(1)+".";for(g=0;g<b.options.length;g++)if(b.options[g].value.toLowerCase().indexOf(D)!=-1||b.options[g].text.toLowerCase().indexOf(D)!=-1){b.selectedIndex=g;break}}}}}else lpSetValue(a,b,j);break;case "country":j=lpdec(e.country_name);if(b.type=="select-one"){j=j.toLowerCase();s=lpdec(e.country).toLowerCase();D=lpdec(e.country_cc3l).toLowerCase();H=D=="usa"?"United States of America":"";if(j==""&&s==""&&D=="")break;for(g=0;g<b.options.length;g++)if(b.options[g].value!=
"")if(b.options[g].value.toLowerCase()==j||b.options[g].value.toLowerCase()==s||b.options[g].value.toLowerCase()==D||b.options[g].value.toLowerCase()==H||b.options[g].text.toLowerCase()==j||b.options[g].text.toLowerCase()==s||b.options[g].text.toLowerCase()==D||b.options[g].text.toLowerCase()==H){b.selectedIndex=g;break}}else if(d==3)lpSetValue(a,b,lpdec(e.country_cc3l));else d==2?lpSetValue(a,b,lpdec(e.country)):lpSetValue(a,b,j);break;case "cctype":j=lpGetCCType(lpdec(e.ccnum));if(j!="UNK")if(b.type==
"select-one"){a=-1;for(g=0;g<b.options.length;g++){var T=b.options[g].value.toUpperCase(),V=b.options[g].text.toUpperCase();if(T==j||V==j){b.selectedIndex=g;break}if(CCTypeMatch(j,T)||CCTypeMatch(j,V))a=g}if(g==b.options.length&&a!=-1)b.selectedIndex=a}else if(b.type=="radio"){T=b.value.toUpperCase();V=b.id.toUpperCase();a=false;if(CCTypeMatch(j,T)||CCTypeMatch(j,V))a=true;if(!a){var R=b.parentNode;if(R&&R.childNodes){for(g=0;g<R.childNodes.length;g++)if(R.childNodes[g]==b)break;if(g<R.childNodes.length-
1){var W=R.childNodes[g+1];if(W.nodeType==3&&CCTypeMatch(j,W.nodeValue))a=true;else if(W.nodeType==3&&g<R.childNodes.length-2||W.nodeType==1){var E=W.nodeType==1?R.childNodes[g+1]:R.childNodes[g+2];if(E.nodeType==1&&E.tagName=="LABEL"&&E.htmlFor==b.id){var Y=lpGetText(E,b);if(CCTypeMatch(j,Y))a=true}else if(E.nodeType==1&&E.tagName=="IMG"&&typeof E.alt=="string"){Y=E.alt;if(CCTypeMatch(j,Y))a=true}}}}}if(a){b.checked=true;b.click()}}else lpSetValue(a,b,j);break;case "ccexpmonth":if(e.ccexp=="")break;
j=lpdec(e.ccexp).substring(5,7);if(b.type=="select-one"){s=j;if(s.charAt(0)=="0")s=s.substring(1);D=lpgs("month"+s,f).toLowerCase();H=lpgs("mon"+s,f).toLowerCase();for(g=0;g<b.options.length;g++)if(b.options[g].value.toLowerCase().indexOf(D)!=-1||b.options[g].value.toLowerCase().indexOf(H)!=-1||b.options[g].text.toLowerCase().indexOf(D)!=-1||b.options[g].text.toLowerCase().indexOf(H)!=-1){b.selectedIndex=g;break}if(g==b.options.length)for(g=0;g<b.options.length;g++)if(b.options[g].value==j||b.options[g].value==
s||b.options[g].text==j||b.options[g].text==s){b.selectedIndex=g;break}}else lpSetValue(a,b,j);break;case "ccexpyear":if(e.ccexp=="")break;var C=lpdec(e.ccexp);j=C.substring(0,4);if(b.type=="select-one"){s=C.substring(2,4);for(g=0;g<b.options.length;g++)if(b.options[g].value==j||b.options[g].value==s||b.options[g].text==j||b.options[g].text==s){b.selectedIndex=g;break}}else lpSetValue(a,b,j,false,true);break;case "ccexp":C=lpdec(e.ccexp);j=C.length==10?C.substring(5,7)+"/"+C.substring(2,4):"";if(b.type==
"select-one"){if(j=="")break;s=C.length==10?C.substring(5,7)+"/"+C.substring(0,4):"";D=C.length==10?C.substring(5,7)+C.substring(2,4):"";H=C.length==10?C.substring(5,7)+C.substring(0,4):"";for(g=0;g<b.options.length;g++)if(b.options[g].value==j||b.options[g].value==s||b.options[g].value==D||b.options[g].value==H||b.options[g].text==j||b.options[g].text==s||b.options[g].text==D||b.options[g].text==H){b.selectedIndex=g;break}}else{if(C.length==10)if(4==d)j=C.substring(5,7)+C.substring(2,4);lpSetValue(a,
b,j)}break;case "ccstartmonth":if(e.ccstart=="")break;j=lpdec(e.ccstart).substring(5,7);if(b.type=="select-one"){s=j;if(s.charAt(0)=="0")s=s.substring(1);D=lpgs("month"+s,f).toLowerCase();H=lpgs("mon"+s,f).toLowerCase();for(g=0;g<b.options.length;g++)if(b.options[g].value.toLowerCase().indexOf(D)!=-1||b.options[g].value.toLowerCase().indexOf(H)!=-1||b.options[g].text.toLowerCase().indexOf(D)!=-1||b.options[g].text.toLowerCase().indexOf(H)!=-1){b.selectedIndex=g;break}if(g==b.options.length)for(g=
0;g<b.options.length;g++)if(b.options[g].value==j||b.options[g].value==s||b.options[g].text==j||b.options[g].text==s){b.selectedIndex=g;break}}else lpSetValue(a,b,j);break;case "ccstartyear":if(e.ccstart=="")break;var S=lpdec(e.ccstart);j=S.substring(0,4);if(b.type=="select-one"){s=S.substring(2,4);for(g=0;g<b.options.length;g++)if(b.options[g].value==j||b.options[g].value==s||b.options[g].text==j||b.options[g].text==s){b.selectedIndex=g;break}}else lpSetValue(a,b,j,false,true);break;case "ccstart":S=
lpdec(e.ccstart);j=S.length==10?S.substring(5,7)+"/"+S.substring(2,4):"";if(b.type=="select-one"){if(j=="")break;s=S.length==10?S.substring(5,7)+"/"+S.substring(0,4):"";D=S.length==10?S.substring(5,7)+S.substring(2,4):"";H=S.length==10?S.substring(5,7)+S.substring(0,4):"";for(g=0;g<b.options.length;g++)if(b.options[g].value==j||b.options[g].value==s||b.options[g].value==D||b.options[g].value==H||b.options[g].text==j||b.options[g].text==s||b.options[g].text==D||b.options[g].text==H){b.selectedIndex=
g;break}}else{if(S.length==10)if(4==d)j=S.substring(5,7)+S.substring(2,4);lpSetValue(a,b,j)}break;case "ccnum1":j=lpdec(e.ccnum).substring(0,4);lpSetValue(a,b,j);break;case "ccnum2":j=lpdec(e.ccnum).substring(4,8);lpSetValue(a,b,j);break;case "ccnum3":j=lpdec(e.ccnum).substring(8,12);lpSetValue(a,b,j);break;case "ccnum4":j=lpdec(e.ccnum).substring(12);lpSetValue(a,b,j);break;case "amexccnum2":j=lpdec(e.ccnum).substring(4,10);lpSetValue(a,b,j);break;case "amexccnum3":j=lpdec(e.ccnum).substring(10,
15);lpSetValue(a,b,j);break;case "middlename":j=lpdec(e.middlename);var $=j.substring(0,1);1==d||2==d?lpSetValue(a,b,$):lpSetValue(a,b,j);break;case "middleinitial":j=lpdec(e.middlename).substring(0,1);lpSetValue(a,b,j);break;case "mobilephone1":case "mobilephone2":case "mobilephone3":case "evephone1":case "evephone2":case "evephone3":case "phone1":case "phone2":case "phone3":case "fax1":case "fax2":case "fax3":var U=c.substring(0,c.length-1),q=c.substring(c.length-1),F=e.phone;if("evephone"==U)F=
e.evephone;if("mobilephone"==U)F=e.mobilephone;if("fax"==U)F=e.fax;j=lpdec(F);if(j.length<=3)j="";y=j.replace(/\D/g,"");if(y.length==10&&y.charAt(0)>="2"&&y.charAt(3)>="2")y="1"+y;if(y.length==11&&y.charAt(0)=="1"&&y.charAt(1)>="2"&&y.charAt(4)>="2")switch(q){case "1":lpSetValue(a,b,y.substring(1,4));break;case "2":lpSetValue(a,b,y.substring(4,7));break;case "3":lpSetValue(a,b,y.substring(7,11))}else lpSetValue(a,b,j,true);break;case "mobilephone23":case "evephone23":case "phone23":case "fax23":U=
c.substring(0,c.length-2);F=e.phone;if("evephone"==U)F=e.evephone;if("fax"==U)F=e.fax;if("mobilephone"==U)F=e.mobilephone;j=lpdec(F);if(j.length<=3)j="";y=j.replace(/\D/g,"");if(y.length==10&&y.charAt(0)>="2"&&y.charAt(3)>="2")y="1"+y;if(y.length==11&&y.charAt(0)=="1"&&y.charAt(1)>="2"&&y.charAt(4)>="2"){g=(n<=0||n>=8)&&(d<=0||d>=8)?true:false;lpSetValue(a,b,y.substring(4,7)+(g?"-":"")+y.substring(7,11))}else lpSetValue(a,b,j,true);break;case "mobilephone":case "evephone":case "phone":case "fax":U=
c;F=e.phone;var G=e.countryphone;if("evephone"==U){F=e.evephone;G=e.countryevephone}if("fax"==U){F=e.fax;G=e.countryfaxphone}if("mobilephone"==U){F=e.mobilephone;G=e.countrymobphone}j=lpdec(F);if(j.length<=3)j="";if(j.length==11&&j.match(/^\d+$/)&&j.charAt(0)=="1"&&j.charAt(1)>="2"&&j.charAt(4)>="2"){j=j.substring(1);if(d<=0||d>=12)j=j.substring(0,3)+"-"+j.substring(3,6)+"-"+j.substring(6,10)}else if(j.length>=2){var ea=lpdec(G),v=get_phone_code(ea);if(v&&j.indexOf(v)==0&&j.charAt(v.length)=="0")j=
j.substring(v.length)}lpSetValue(a,b,j,true);break;case "zip1":j=lpdec(e.zip);y=j.replace(/\D/g,"");if(y.length==5||y.length==9)j=y.substring(0,5);else if(f=="ja-JP"&&y.length==7)j=y.substring(0,3);else{var X=j.replace(/[^A-Za-z0-9]/g,"");if(X.match(/^(?:[A-Za-z]\d){3}$/))j=X.substring(0,3);else if(X.match(/^[A-Za-z]{1,2}\d[A-Za-z0-9]?\d[A-Za-z]{2}$/))j=X.substring(0,X.length-3);else if(X.length<j.length){var aa=j.split(/[^A-Za-z0-9]+/);j=aa[0]}}lpSetValue(a,b,j);break;case "zip2":j=lpdec(e.zip);
y=j.replace(/\D/g,"");g=false;if(y.length==5){j="";g=true}else if(y.length==9)j=y.substring(5,9);else if(f=="ja-JP"&&y.length==7)j=y.substring(3,7);else{X=j.replace(/[^A-Za-z0-9]/g,"");if(X.match(/^(?:[A-Za-z]\d){3}$/))j=X.substring(3,6);else if(X.match(/^[A-Za-z]{1,2}\d[A-Za-z0-9]?\d[A-Za-z]{2}$/))j=X.substring(X.length-3);else if(X.length<j.length){aa=j.split(/[^A-Za-z0-9]+/);j=aa[1]}}lpSetValue(a,b,j,false,false,g);break;case "gender":j=lpdec(e.gender).toUpperCase();if(j!=""){s=j;if(j=="M")s=lpgs("Male",
f);if(j=="F")s=lpgs("Female",f);s=s.toUpperCase();if(b.type=="select-one")for(g=0;g<b.options.length;g++){var I=lptrim(b.options[g].text).toUpperCase(),ba=lptrim(b.options[g].value).toUpperCase();if(ba.indexOf(j)==0||I.indexOf(j)==0||ba.indexOf(s)==0||I.indexOf(s)==0){b.selectedIndex=g;break}}else if(b.type=="radio"){ba=lptrim(b.value).toUpperCase();if(ba.indexOf(j)==0||ba.indexOf(s)==0)b.checked=true;else if((R=b.parentNode)&&R.childNodes){for(g=0;g<R.childNodes.length;g++)if(R.childNodes[g]==b)break;
if(g<R.childNodes.length-1){W=R.childNodes[g+1];var fa=lptrim(W.nodeValue).toUpperCase();if(W.nodeType==3&&(fa.indexOf(j)==0||fa.indexOf(s)==0))b.checked=true;else if(W.nodeType==3&&g<R.childNodes.length-2||W.nodeType==1){E=W.nodeType==1?R.childNodes[g+1]:R.childNodes[g+2];if(E.nodeType==1&&E.tagName=="LABEL"&&E.htmlFor==b.id){Y=lpGetText(E,b);var K=lptrim(Y).toUpperCase();if(K.indexOf(j)==0||K.indexOf(s)==0)b.checked=true}else if(E.nodeType==1&&E.tagName=="IMG"&&typeof E.alt=="string"){Y=E.alt;var N=
lptrim(Y).toUpperCase();if(N.indexOf(j)==0||N.indexOf(s)==0)b.checked=true}}}}}else lpSetValue(a,b,j)}break;case "age":var Z=lpdec(e.birthday);if(Z!=""){var da=parseInt(Z.substring(0,4)),ca=parseInt(Z.substring(5,7));A=parseInt(Z.substring(8,10));var Q=new Date,ja=Q.getFullYear(),ga=Q.getMonth()+1,ka=Q.getDate();j=ja-da;if(ga<ca||ga==ca&&ka<A)j--;if(b.type=="select-one")for(g=0;g<b.options.length;g++){var ha=b.options[g].text;y=a=-1;if(u=ha.match(/(\d+)\D+(\d+)/)){a=parseInt(u[1]);y=parseInt(u[2])}else if(u=
ha.match(/^\d+/)){var ia=parseInt(u[0]);if(g<b.options.length/2){a=0;y=ia}else{a=ia;y=99999}}else if(u=ha.match(/\d+$/)){ia=parseInt(u[0]);if(g<b.options.length/2){a=0;y=ia-1}else{a=ia+1;y=99999}}if(a!=-1&&y!=-1&&j>=a&&j<=y){b.selectedIndex=g;break}}else lpSetValue(a,b,j)}break;case "housenumber":case "housenumbername":j=lpdec(e.address1);u=j.match(/^\d+/);if(!u){j=lpdec(e.address2);u=j.match(/^\d+/)}if(!u){j=lpdec(e.address3);u=j.match(/^\d+/)}if(u){lpSetValue(a,b,u[0]);break}else if(c=="housenumber")break;
case "housename":j=lpdec(e.address1);j=j.replace(/^\d+\s*/,"");lpSetValue(a,b,j)}b.value!=r&&fire_onchange(b)}}catch(la){lpReportError("Failure with filling form field: "+la+" ln: "+la.lineNumber)}}
function lpGetCCType(a){var b="UNK";if((a.substring(0,2)=="34"||a.substring(0,2)=="37")&&a.length==15)b="AMEX";else if((a.substring(0,4)=="6011"||a.substring(0,2)=="65")&&a.length==16)b="DISC";else if((a.substring(0,2)=="51"||a.substring(0,2)=="52"||a.substring(0,2)=="53"||a.substring(0,2)=="54"||a.substring(0,2)=="55")&&a.length==16)b="MC";else if((a.substring(0,6)=="417500"||a.substring(0,4)=="4917"||a.substring(0,4)=="4913"||a.substring(0,4)=="4508"||a.substring(0,4)=="4844")&&a.length==16)b="ELECTRON";
else if(a.substring(0,1)=="4"&&a.length==16)b="VISA";else if((a.substring(0,4)=="5018"||a.substring(0,4)=="5020"||a.substring(0,4)=="5038"||a.substring(0,4)=="6304"||a.substring(0,4)=="6759"||a.substring(0,4)=="6761")&&a.length>=12&&a.length<=19)b="MAESTRO";else if((a.substring(0,4)=="6334"||a.substring(0,4)=="6767")&&(a.length==16||a.length==18||a.length==19))b="SOLO";return b}
function CCTypeMatch(a,b){a=a.toUpperCase();b=b.toUpperCase();if(a=="AMEX"&&b.indexOf("BANAMEX")!=-1)return false;if(b.indexOf(a)!=-1)return true;else switch(a){case "AMEX":return b.indexOf("AMERICAN")!=-1||b.indexOf("AMX")!=-1;case "DISC":return b.indexOf("DIS")!=-1;case "MC":return b.indexOf("MASTER")!=-1;case "VISA":return b.indexOf("VSA")!=-1;default:return false}}
function lpSetValue(a,b,c,d,e,f){if(c!=""||f){if(typeof b.maxLength!="undefined"&&g_allowtruncate){f=parseInt(b.maxLength);if(f>0&&c.length>f){if(d)return;c=e?c.substring(c.length-f):c.substring(0,f)}}if(a){if(typeof a.formfillfields=="undefined")a.formfillfields=[];a.formfillfields[getname(b)]=c}b.value=c}}var lpgettext_abort=false;
function lpGetText(a,b,c,d){c||(lpgettext_abort=false);if(a==b){lpgettext_abort=true;return""}if(a.nodeType==3)return strip(a.nodeValue).length>2?a.nodeValue:"";c=[];var e=0,f=typeof a.tagName=="string"?a.tagName:"";if(a.lp_too_many)return"";var k=a&&a.style&&!lpIsVisible(a,true);d=false;if(f=="LABEL")d=true;e=0;if(f!="OPTION"&&f!="SCRIPT"&&f!="TEXTAREA"&&!k)for(;typeof a.childNodes[e]!="undefined";){c[c.length]=lpGetText(a.childNodes[e],b,true,d);if(lpgettext_abort)break;if(e++>50){a.lp_too_many=
1;return""}}a="|";if(typeof d!="undefined"&&d)a="";return c.join(a)}
function get_phone_code(a){var b=[];b.AND=376;b.ARE=971;b.AFG=93;b.ATG=1;b.AIA=1;b.ALB=355;b.ARM=374;b.ANT=599;b.AGO=244;b.ATA=672;b.ARG=54;b.ASM=1;b.AUT=43;b.AUS=61;b.ABW=297;b.ALA=358;b.AZE=994;b.BIH=387;b.BRB=1;b.BGD=880;b.BEL=32;b.BFA=226;b.BGR=359;b.BHR=973;b.BDI=257;b.BEN=229;b.BLM=590;b.BMU=1;b.BRN=673;b.BOL=591;b.BRA=55;b.BHS=1;b.BTN=975;b.BVT=47;b.BWA=267;b.BLR=375;b.BLZ=501;b.CAN=1;b.CCK=61;b.COD=243;b.CAF=236;b.COG=242;b.CHE=41;b.CIV=225;b.COK=682;b.CHL=56;b.CMR=237;b.CHN=86;b.COL=57;b.CRI=
506;b.CUB=53;b.CPV=238;b.CXR=61;b.CYP=357;b.CZE=420;b.DEU=49;b.DJI=253;b.DNK=45;b.DMA=1;b.DOM=1;b.DZA=213;b.ECU=593;b.EST=372;b.EGY=20;b.ESH=212;b.ERI=291;b.ESP=34;b.ETH=251;b.FIN=358;b.FJI=679;b.FLK=500;b.FSM=691;b.FRO=298;b.FRA=33;b.GAB=241;b.GBR=44;b.GRD=1;b.GEO=995;b.GUF=594;b.GGY=44;b.GHA=233;b.GIB=350;b.GRL=299;b.GMB=220;b.GIN=224;b.GLP=590;b.GNQ=240;b.GRC=30;b.SGS=995;b.GTM=502;b.GUM=1;b.GNB=245;b.GUY=592;b.HKG=852;b.HMD=672;b.HND=504;b.HRV=385;b.HTI=509;b.HUN=36;b.IDN=62;b.IRL=353;b.ISR=972;
b.IMM=44;b.IND=91;b.IOT=246;b.IRQ=964;b.IRN=98;b.ISL=354;b.ITA=39;b.JEY=44;b.JAM=1;b.JOR=962;b.JPN=81;b.KEN=254;b.KGZ=996;b.KHM=855;b.KIR=686;b.COM=269;b.KNA=1;b.PRK=850;b.KOR=82;b.KWT=965;b.CYM=1;b.KAZ=7;b.LAO=856;b.LBN=961;b.LCA=1;b.LIE=423;b.LKA=94;b.LBR=231;b.LSO=266;b.LTU=370;b.LUX=352;b.LVA=371;b.LBY=218;b.MAR=212;b.MCO=377;b.MDA=373;b.MNE=382;b.MAF=590;b.MDG=261;b.MHL=692;b.MKD=389;b.MLI=223;b.MMR=95;b.MNG=976;b.MAC=853;b.MNP=1;b.MTQ=596;b.MRT=222;b.MSR=1;b.MLT=356;b.MUS=230;b.MDV=960;b.MWI=
265;b.MEX=52;b.MYS=60;b.MOZ=258;b.NAM=264;b.NCL=687;b.NER=227;b.NFK=672;b.NGA=234;b.NIC=505;b.NLD=31;b.NOR=47;b.NPL=977;b.NRU=674;b.NIU=683;b.NZL=64;b.OMN=968;b.PAN=507;b.PER=51;b.PYF=689;b.PNG=675;b.PHL=63;b.PAK=92;b.POL=48;b.SPM=508;b.PCN=872;b.PRI=1;b.PSE=970;b.PRT=351;b.PLW=680;b.PRY=595;b.QAT=974;b.REU=262;b.ROU=40;b.SRB=381;b.RUS=7;b.RWA=250;b.SAU=966;b.SLB=677;b.SYC=248;b.SDN=249;b.SWE=46;b.SGP=65;b.SHN=290;b.SVN=386;b.SJM=47;b.SVK=421;b.SLE=232;b.SMR=378;b.SEN=221;b.SOM=252;b.SUR=597;b.STP=
239;b.SLV=503;b.SYR=963;b.SWZ=268;b.TCA=1;b.TCD=235;b.ATF=596;b.TGO=228;b.THA=66;b.TJK=992;b.TKL=690;b.TLS=670;b.TKM=993;b.TUN=216;b.TON=676;b.TUR=90;b.TTO=1;b.TUV=688;b.TWN=886;b.TZA=255;b.UKR=380;b.UGA=256;b.UMI=1;b.USA=1;b.URY=598;b.UZB=998;b.VAT=379;b.VCT=1;b.VEN=58;b.VGB=1;b.VIR=1;b.VNM=84;b.VUT=678;b.WLF=681;b.WSM=685;b.YEM=967;b.MYT=262;b.YUG=381;b.ZAF=27;b.ZMB=260;b.ZWE=263;return typeof b[a]!="undefined"?""+b[a]:null}function lpReportError(a){console_log(a)}
function lpgs(a,b){var c=typeof b=="undefined"||b==null?"":b;if(typeof lpgscache[c+a]!="undefined")return lpgscache[c+a];if(typeof lpgslocales[c]=="undefined"&&a.indexOf("ff_")==0){ApplyOverrides(c);if(typeof lpgscache[c+a]!="undefined")return lpgscache[c+a]}if(typeof translations!="undefined"){if(typeof b!="undefined"&&b&&typeof translations[b]!="undefined"&&typeof translations[b][a]!="undefined")return translations[b][a];if(typeof translations["en-US"]!="undefined"&&typeof translations["en-US"][a]!=
"undefined")return translations["en-US"][a]}return a}function lpdbg(){}function lpConfirmYesNo(a){return confirm(a)}function lpdec(a){return a}function LP_form_fill(){LP_to_formfill.customfields=[];for(var a=0;typeof LP_to_formfill["custom_field"+a]!="undefined";a++)LP_to_formfill.customfields[a]=LP_to_formfill["custom_field"+a];lpformfills=Array(LP_to_formfill);lpCheckFormFill(null,document,true,false,LP_to_formfill.ffid,1,window)}if(typeof lpgenpassforms=="undefined")lpgenpassforms=[];
if(typeof lpgenpasscurrentpwfields=="undefined")lpgenpasscurrentpwfields=[];function get_username_val(a){a=a.getElementById("Email");return a!=null&&a.type=="hidden"&&a.name=="Email"?a.value:""}
function lpCheckGeneratePassword(a,b,c,d,e){if(typeof e=="undefined")e=1;if(e>10)return null;lpdbg("checkgenpw","START checkonly="+c);var f=typeof LP!="undefined"&&typeof LP.getBrowser().getBrowserForDocument=="function"?LP.getBrowser().getBrowserForDocument(b):null;if(f)a=f;if(typeof LP!="undefined"&&!a)return null;f=null;try{if(!c&&typeof lp_notification_exists!="undefined"&&(lp_notification_exists(a,"autologin")||lp_notification_exists(a,"generate"))){lpdbg("checkgenpw","aborting since notification already shown");
return null}f=b.location.href;var k=lpParseUri(f),n=lpcanonizeUrl(f,k),o=lp_gettld(k.host,f);lpdbg("checkgenpw","currenturl="+f);if((typeof lploggedin=="undefined"||lploggedin)&&(c||(typeof lpOfferGeneratePasswd=="undefined"||lpOfferGeneratePasswd)&&(typeof never_gen=="undefined"||!never_gen(n,o))))for(var g=b.getElementsByTagName("form"),r=0;r<g.length;r++)if(!(typeof r.offsetLeft!="undefined"&&r.offsetLeft<0||typeof r.offsetTop!="undefined"&&r.offsetTop<0)){var p=lpCountInputFields(g[r]);lpdbg("checkgenpw",
"checking form#"+r+" numpasswords="+p.password+" numpasswordsvisible="+p.passwordvisible+" passwordscontigious="+p.passwordsContiguous);if(2<=p.password&&p.password<=4&&2<=p.passwordvisible&&p.passwordvisible<=4&&p.passwordsContiguous==true){if(!c){var x=typeof LP!="undefined"?LP.lpgetcurrenturl(a):document.location.href;lpdbg("genpw","Adding url to lpgenpassforms: "+x);lpgenpassforms[x]=g[r];p=false;if(typeof disable_check_form_fill=="undefined"||!disable_check_form_fill)p=lpCheckFormFill(a,b,false,
true,null,1,d);var j=false,u=lpCheckCurrentPWField(g[r]),w=[];if(u){var z=get_username_val(b);j=true;lpgenpasscurrentpwfields[x]=u;var s=typeof k.path=="string"?k.path.split("/"):[],D=typeof lptlds!="undefined"&&typeof lptlds[o]!="undefined"?lptlds[o]:[],M;for(M in D)if(!(typeof lpaccts[M]=="undefined"||lpaccts[M].genpw||lpaccts[M].isbookmark))if(LPAHasValue(lpaccts[M],1)){var P=new lpautologininfo;P.realmmatch=false;P.id=lpaccts[M].id;var O=lpParseUri(lpaccts[M].url);P.usernamematch=lpaccts[M].unencryptedUsername!=
""&&lpaccts[M].unencryptedUsername==z;P.urlmatch=lpcanonizeUrl(lpaccts[M].url,O)==n?true:false;P.servermatch=O.host==k.host?true:false;P.portmatch=compare_ports(O,k);P.serverportmatch=P.servermatch&&P.portmatch;var y=typeof O.path=="string"?O.path.split("/"):[],H;for(H=0;H<s.length&&H<y.length;H++)if(y[H]!=s[H])break;P.pathlevelmatch=H;P.url=f;P.fieldmatchcount=0;w[w.length]=P}if(typeof lp_aids_sort_func!="undefined"){w.sort(lp_aids_sort_func);w=checkurlrules(lpurlrules,w,o,typeof k.path=="string"?
k.path:"",k.host,lpaccts,get_port(k))}}typeof LP!="undefined"&&LP.lpshowHelpDlg("genpw");lpdbg("checkgenpw",p?"showing generatepassword AND fillforms":"showing generatepassword");lp_showNotification("GeneratePassword",a,w,"generate",g[r],null,p,j);if(p)if(a)a.contentDocument.ffidindex=-1;else document.ffidindex=-1}return g[r]}}}catch(A){lpReportError("Failure with checking generate password: "+A+" ln: "+A.lineNumber,f)}if(typeof d=="undefined"||d==null)d=a.contentWindow;if(d&&d.frames)for(M=0;M<d.frames.length;M++)try{if(d.frames[M].document)return lpCheckGeneratePassword(a,
d.frames[M].document,c,d.frames[M].window,e+1)}catch(J){}return null}function lpCheckCurrentPWField(a){for(var b=RegExp(lpgs("ff_currpass_regexp"),"i"),c=0;c<a.elements.length;c++){var d=a.elements[c];if(d.type=="password")if(lpIsVisible(d))if(b.exec(getname(d)))return d;else{var e=lpGetTextBeforeFormField(d);if(e!=""&&b.exec(e))return d}}return null}
function lpCountInputFields(a,b){var c=[];c.text=c.password=c["select-one"]=c.textarea=c.passwordValues=c.passwordvisible=c.uniquepasswords=0;c.uname=c.pname=c.oname="";for(var d=a.elements,e=false,f=false,k=[],n=typeof d!="undefined"?d.length:0,o=0;o<n;o++){var g=d[o].type,r=getname(d[o]),p=d[o].value;if(g=="password"||g=="text"||g=="select-one"||g=="textarea"||"email"==g)c[g]++;if(g=="password"){b||lpIsVisible(d[o])&&++c.passwordvisible;p!=""&&c.passwordValues++;if(e)f=true;e=true;lp_in_array(p,
k)||(k[k.length]=p)}else if(g!="hidden")e=false;if(("text"==g||"email"==g)&&r!="openid_url"&&(c.uname==""||c.pname==""))c.uname=r;if(g=="password")c.pname=r;if(("text"==g||"email"==g)&&r=="openid_url")c.oname=r}c.passwordsContiguous=f;c.uniquepasswords=k.length;return c}
function setupFocusEvent(a,b,c,d){if(typeof d=="undefined")d=1;if(d>10)return null;var e=typeof LP!="undefined"?!LP.isFennec?LP.getBrowser().selectedTab.linkedBrowser.contentDocument:LP.getBrowser().contentDocument:document;if(!(a==e&&typeof e.LPlpm_setupFocusHandler!="undefined"&&e.LPlpm_setupFocusHandler==true)){if(a==e)e.LPlpm_setupFocusHandler=true;e=["input","select"];for(var f=0;f<e.length;f++)for(var k=a.getElementsByTagName(e[f]),n=0,o=0;o<k.length;o++)if(!(b&&k[o].type!="password"))if(k[o].type==
"text"||"email"==k[o].type||k[o].type=="password"||k[o].type=="select-one"||k[o].type=="textarea"||k[o].type=="radio"){if("text"==k[o].type||"email"==k[o].type){var g=RegExp(lpgs("ff_search_regexp"),"i");if(k[o].name!=""&&g.exec(k[o].name))continue}if(n>20)break;else n++;k[o].addEventListener("focus",function(p){typeof LP!="undefined"?LP.FieldFocus(p):FieldFocus(p)},false)}if(typeof c=="undefined"||c==null)c=typeof LP!="undefined"?!LP.isFennec?LP.getBrowser().selectedTab.linkedBrowser.contentWindow:
LP.getBrowser().contentWindow:window;if(c&&c.frames)for(f=0;f<c.frames.length;f++)try{c.frames[f].document&&setupFocusEvent(c.frames[f].document,b,c.frames[f].window,d+1)}catch(r){}}}
this.FieldFocus=function(a){var b=typeof LP!="undefined"?LP.getBrowser().selectedTab.linkedBrowser:null;if(typeof LP=="undefined"||b){var c=b?b.contentDocument:document;if(!(!c||typeof c.FieldFocusDone!="undefined"&&c.FieldFocusDone==true))if(typeof c.LPlpUseLastPassLogin!="undefined"&&c.LPlpUseLastPassLogin==true)if(lploggedin){c.LPlpUseLastPassLogin=false;LP.FieldFocus(a)}else{lp_showNotification("UseLastPassLogin",b,0,"login",null);c.LPlpUseLastPassLogin=false;c.LPlpm_setupFocusHandler=false;c.FieldFocusDone=
false}else{if(lpNotificationsAfterClick)lpCheckGenPwAndFF(b,c,false);else if(typeof c.LPlpgenerateandfill=="undefined"&&typeof c.LPlpfillforms!="undefined")lp_showNotification("FillableFormDetected",b,0,"formfill");else if(typeof c.LPlpgenerateandfill!="undefined")lp_showNotification("GeneratePassword",b,c.LPlpgenerateAids,"generate",c.LPlpgenerateForm,null,c.LPlpgenerateandfill,c.LPlpfillcurrent);else return;c.FieldFocusDone=true}}};
function populategeneratedpassword(a,b,c){if(!lpgenpassforms[a]){var d,e,f;if(typeof LP!="undefined"){d=LP.getBrowser().selectedTab.linkedBrowser;e=d.contentDocument;f=null}else{d=null;e=document;f=window}lpgenpassforms[a]=lpCheckGeneratePassword(d,e,true,f)}if(lpgenpassforms[a]){form=lpgenpassforms[a];d=null;d=lpgenpasscurrentpwfields[a]?lpgenpasscurrentpwfields[a]:lpCheckCurrentPWField(form);e=false;c=a=null;for(f=1;f<=2;f++){e=false;a=c=null;var k=-1;if(f==1){if(d)for(var n=0;n<form.elements.length;n++)if(form.elements[n]==
d){k=n+1;break}}else k=0;if(k!=-1){for(n=k;n<form.elements.length;n++){k=form.elements[n];if(k.type=="password"){if(!(!e&&a&&c)){c=a;a=k;if(e&&a&&c)break}e=true}else e=false}if(a&&c)break}}if(a&&c){if((c.value!=""||c==d)&&a.value==""&&n<form.elements.length-1)for(n=n+1;n<form.elements.length;n++){k=form.elements[n];if(k.type=="password"&&k.value==""){c=a;a=k;break}else if(k.type!="hidden")break}a.value=c.value=b;fire_onchange(a);fire_onchange(c);if(typeof LP!="undefined"){b={};b.target=a;LP.lpfieldchange(b);
b.target=c;LP.lpfieldchange(b)}}else lpReportError("Couldn't find password fields after generating. form:"+form,null)}else if(c=="0"){lpReportError("Could not find lpgenpassforms when generating pw",null);lpdbg("error","url "+a+" is not in lpgenpassforms[]")}}
function LP_InputClickToSubmit(a,b,c){for(var d=a.getElementsByTagName("input"),e=0,f=0;f<d.length;f++)if(d[f].form==b)if("password"==d[f].type&&d[f].value!="")e=1;else if(c==d[f].type)if(e&&c!="button"){d[f].click();return 1}if("button"==c){c=null;d=a.getElementsByTagName("button");for(f=0;f<d.length;f++)if(d[f].form==b)if("button"==d[f].type||"submit"==d[f].type||"image"==d[f].type)if(e)if(c){if("submit"==d[f].type)c=d[f]}else c=d[f];if(c){c.click();return 1}}return 0}this.LPJSON={};
if(typeof ischrome=="undefined"){this.JSON=this.LPJSON;if(typeof JSON=="undefined")var JSON=this.JSON,LPJSON=this.LPJSON}
(function(){function a(g){return g<10?"0"+g:g}function b(g){e.lastIndex=0;return e.test(g)?'"'+g.replace(e,function(r){var p=n[r];return typeof p==="string"?p:"\\u"+("0000"+r.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+g+'"'}function c(g,r){var p,x,j,u,w=f,z,s=r[g];if(s&&typeof s==="object"&&typeof s.toJSON==="function")s=s.toJSON(g);if(typeof o==="function")s=o.call(r,g,s);switch(typeof s){case "string":return b(s);case "number":return isFinite(s)?String(s):"null";case "boolean":case "null":return String(s);
case "object":if(!s)return"null";f+=k;z=[];if(o&&typeof o==="object"){u=o.length;for(p=0;p<u;p+=1){x=o[p];if(typeof x==="string")if(j=c(x,s))z.push(b(x)+(f?": ":":")+j)}}else for(x in s)if(Object.hasOwnProperty.call(s,x))if(j=c(x,s))z.push(b(x)+(f?": ":":")+j);j=z.length===0?"{}":f?"{\n"+f+z.join(",\n"+f)+"\n"+w+"}":"{"+z.join(",")+"}";f=w;return j}}if(typeof ischrome!="undefined"&&typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+
"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,k,n={"\u0008":"\\b",
"\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},o;if(typeof LPJSON.stringify!=="function")LPJSON.stringify=function(g,r,p){var x;k=f="";if(typeof p==="number")for(x=0;x<p;x+=1)k+=" ";else if(typeof p==="string")k=p;if((o=r)&&typeof r!=="function"&&(typeof r!=="object"||typeof r.length!=="number"))throw Error("JSON.stringify");return c("",{"":g})};if(typeof LPJSON.parse!=="function")LPJSON.parse=function(g,r){function p(j,u){var w,z,s=j[u];if(s&&typeof s==="object")for(w in s)if(Object.hasOwnProperty.call(s,
w)){z=p(s,w);if(z!==undefined)s[w]=z;else delete s[w]}return r.call(j,u,s)}var x;d.lastIndex=0;if(d.test(g))g=g.replace(d,function(j){return"\\u"+("0000"+j.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(g.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){x=eval("("+g+")");return typeof r==="function"?p({"":x},""):x}throw new SyntaxError("JSON.parse");}})();
function addStyle(){var a=document.createElement("style");a.type="text/css";var b=document.createTextNode(" #lastpass-notification { height: 13px;padding: 7px 10px !important;text-align: left;position: relative;font-weight:bold;font-family:Helvetica Neue,Helvetica,Arial,Sans-serif;font-size: 11px;z-index: 1000000099;color: black;vertical-align: top; float: none;} #lastpass-content {display: inline;  padding-left: 5px;vertical-align: top;text-align: left; "+(g_isopera?"float: left; min-width: 0px;":
"float: none; width: 100%;"+g_webkit_selectable)+" font-family: Helvetica Neue,Helvetica,Arial,sans-serif;font-size: 11px;} .lppopup {position: absolute;-webkit-border-radius: 0px 0px 5px 5px;border-radius: 0px 0px 5px 5px;-webkit-box-shadow: 2px 3px 10px 2px #a6a6a6;box-shadow: 2px 3px 10px 2px #a6a6a6;z-index: 99999;background: #fff;overflow: auto;x: 0px;y: 0px;width: 300px;height: 200px;display: none;} .lppopup table {float:none; display:table; margin: 0px; padding: 0px; border-spacing: 1px;} .lppopup tr:hover {background: -webkit-linear-gradient(top, rgba(214,249,255,1) 0%,rgba(158,232,250,1) 100%);background: -o-linear-gradient(top, rgba(214,249,255,1) 0%,rgba(158,232,250,1) 100%);} .lppopup tr {"+
g_webkit_selectable+"background-color: #fff; height: 22px;} .lppopup td {"+g_webkit_selectable+'font-size: 11px;font-family: Helvetica Neue,Helvetica,Arial,sans-serif;color: black;cursor: hand;} .lpbutton,#lastpass-notification button[type="button"] {background-color: #eeeeee;background-image: -webkit-gradient(linear, left top, left bottom, from(#eeeeee), to(#cccccc));background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);background-image: -o-linear-gradient(top, #eeeeee, #cccccc);background-image: linear-gradient(top, #eeeeee, #cccccc);border: 1px solid #ccc;border-bottom: 1px solid #bbb;-webkit-border-radius: 3px;border-radius: 3px;color: #333;line-height: 1;font-weight:bold;text-align: center;text-shadow: 0 1px 0 #eee;width: auto;float: right; margin: -2px 5px 2px 2px; height:17px;padding:1px 6px !important;} .lpbutton:hover,#lastpass-notification button[type="button"]:hover {background-color: #dddddd; background-image: -webkit-gradient(linear, left top, left bottom, from(#dddddd), to(#bbbbbb)); background-image: -webkit-linear-gradient(top, #dddddd, #bbbbbb);-o-linear-gradient(top, #dddddd, #bbbbbb); border: 1px solid #bbb; border-bottom: 1px solid #999; cursor: pointer; text-shadow: 0 1px 0 #ddd;} #lastpass-notification img {margin: 0px 0px 0px 0px;padding: 0px 0px 3px 0px;} ');
a.appendChild(b);document.head?document.head.appendChild(a):document.body.appendChild(a)}function get_notification_bg(){return"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAJYCAYAAABIPDecAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIpJREFUWEftzcEKwjAQhOEIfUHfzJNHX07wYKuHkiDYbGJJMhZS8Ozh39PHzLI7nM6X2a0zeB9cwfR8VIzj/VAQQqtijDUxMyGqsgrTTtyqqGrpkj3Wy987XZJ00FJqSVKlJOfcwbXZMN2uRyUmLMJL8MIshN3OWyjvfz0FAAAAAAAAAAAAAAD8DT79ZmFeaJNdcgAAAABJRU5ErkJggg==')"}
function get_notification_add_bg(){return"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAJYCAYAAABIPDecAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALJJREFUWIXtzrttQ0EMRNG7AKt1G2pBLbgF9+BG7ECBoAcYFrxLjoIVIzXgYBgdEPxMnD++JSCO3wSJuB4TBsTlmIwxiPs9gUFUgihiVe2OBCAiMwGIaqgmEkStv32n1uyt1cNzI9fzKdV3tHaeXJMBBEokEVW5n6pqD6PuZCIgGDAkgh2REOwYn+9vp70Fs/HTuDUuja+Xzu1la99R/+JZhmEYhmEYhmEYhmEYhmH8QzwALjFuWzeeKlAAAAAASUVORK5CYII=')"}
function get_notification_error_bg(){return"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAJYCAYAAABIPDecAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAINJREFUWMPtz0EKAjEMheEIBW/h+byKF/QSLtSKzCBOok58HWTo3sWf1cdLSpNy3O7c3lXGCJtxsylxdU9UJQ/LKpPFZobHkiRcM75OwlYz7bn3Wg0R0W31kwbTPoeo+2+Sh30wCnfhIpyEs1CFQXj+bmjLpwAAAAAAAAAAAAAAgH/DC5OFQV7fXlzwAAAAAElFTkSuQmCC')"}
function showMenuScript(){return"function lpshowmenudiv(id){   closelpmenus(id);   var div = document.getElementById('lppopup'+id);   var btn = document.getElementById('lp'+id);   if(btn && div){     var btnstyle = window.getComputedStyle(btn, null);     var divstyle = window.getComputedStyle(div, null);     var posx = btn.offsetLeft;     posx -= 80;     var divwidth = parseInt(divstyle.getPropertyValue('width'));     if(posx + divwidth > window.innerWidth - 25){       posx -= ((posx + divwidth) - window.innerWidth + 25);     }     div.style.left = posx + \"px\";     div.style.top = (btn.offsetTop + btnstyle.getPropertyValue('height')) + \"px\";         if(div.style.display=='block'){div.style.display = 'none'; if(typeof(slideup)=='function'){slideup();} }    else div.style.display = 'block';       } }function closelpmenus(id){   if(typeof(lpgblmenus)!='undefined'){     for(var i=0; i < lpgblmenus.length; i++){       if((id==null || lpgblmenus[i]!='lppopup'+id) && document.getElementById(lpgblmenus[i]))         document.getElementById(lpgblmenus[i]).style.display = 'none';     }   }} var lpcustomEvent = document.createEvent('Event'); lpcustomEvent.initEvent('lpCustomEventMenu', true, true); "}
function run_custom_js(a,b){try{if(b!="")if(!(lp_gettld_url(a.location.href)=="facebook.com"&&a.getElementsByTagName("form").length==0)){b=b.replace(/lpcurrpage./g,"");b="try{"+b+"}catch(e){}";var c=a.createElement("script"),d=a.createTextNode(b);c.appendChild(d);a.body&&a.body.appendChild(c)}}catch(e){}}
function lpPrepareCustomJS(a,b,c,d,e,f){if(d=="3"){if(a.indexOf("lpcurruser")!=-1){if(!f.getElementById("lpcurruserelt"))if(f.body){var k=f.createElement("input");k.setAttribute("style","display: none;");k.setAttribute("type","text");k.setAttribute("id","lpcurruserelt");k.setAttribute("value","");f.body.appendChild(k)}if(f.getElementById("lpcurruserelt"))f.getElementById("lpcurruserelt").value=b}if(a.indexOf("lpcurrpass")!=-1){if(!f.getElementById("lpcurrpasselt"))if(f.body){b=f.createElement("input");
b.setAttribute("style","display: none;");b.setAttribute("type","password");b.setAttribute("id","lpcurrpasselt");b.setAttribute("value","");f.body.appendChild(b)}if(f.getElementById("lpcurrpasselt"))f.getElementById("lpcurrpasselt").value=c}}a="if (typeof(lpcurruser) == 'undefined') lpcurruser = ''; if (document.getElementById('lpcurruserelt') && document.getElementById('lpcurruserelt').value != '') { lpcurruser = document.getElementById('lpcurruserelt').value; document.getElementById('lpcurruserelt').value = ''; } if (typeof(lpcurrpass) == 'undefined') lpcurrpass=''; if (document.getElementById('lpcurrpasselt') && document.getElementById('lpcurrpasselt').value != '') { lpcurrpass = document.getElementById('lpcurrpasselt').value; document.getElementById('lpcurrpasselt').value = ''; } var lploc="+
es(d)+";"+(e==1?"var lponlyfill=1;":"var lponlyfill=null;")+a+"lpcurruser = ''; lpcurrpass = '';";a=a.replace(/lpcurrpage\./g,"");a=a.replace(/lpframe1\./g,"");a=a.replace(/lpframe2\./g,"");return a=a.replace(/lpframe3\./g,"")};
