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(h){}}}catch(j){}}
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,h,j){dispatch_message("LP_do_login",{u:a,p:b,rememberemail:c,rememberpassword:d,
donotclearmultifactor:e,showvault:f,lpkey:h,lphash:j})};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,h;for(f=0;f<b.length;++f){h=b.charAt(f);if(typeof d[h]=="undefined"){d[h]=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()}
function Arcfour(){this.j=this.i=0;this.S=[]}function ARC4init(a){var b,c,d;for(b=0;b<256;++b)this.S[b]=b;for(b=c=0;b<256;++b){c=c+this.S[b]+a[b%a.length]&255;d=this.S[b];this.S[b]=this.S[c];this.S[c]=d}this.j=this.i=0}function ARC4next(){var a;this.i=this.i+1&255;this.j=this.j+this.S[this.i]&255;a=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=a;return this.S[a+this.S[this.i]&255]}Arcfour.prototype.init=ARC4init;Arcfour.prototype.next=ARC4next;
function prng_newstate(){return new Arcfour}var rng_psize=256,rng_state,rng_pool,rng_pptr;function rng_seed_int(a){rng_pool[rng_pptr++]^=a&255;rng_pool[rng_pptr++]^=a>>8&255;rng_pool[rng_pptr++]^=a>>16&255;rng_pool[rng_pptr++]^=a>>24&255;if(rng_pptr>=rng_psize)rng_pptr-=rng_psize}function rng_seed_time(){rng_seed_int((new Date).getTime())}
if(rng_pool==null){rng_pool=[];rng_pptr=0;var t;if(typeof navigator!="undefined"&&navigator.appName=="Netscape"&&navigator.appVersion<"5"&&typeof window!="undefined"&&window.crypto){var z=window.crypto.random(32);for(t=0;t<z.length;++t)rng_pool[rng_pptr++]=z.charCodeAt(t)&255}for(;rng_pptr<rng_psize;){t=Math.floor(65536*Math.random());rng_pool[rng_pptr++]=t>>>8;rng_pool[rng_pptr++]=t&255}rng_pptr=0;rng_seed_time()}
function rng_get_byte(){if(rng_state==null){rng_seed_time();rng_state=prng_newstate();rng_state.init(rng_pool);for(rng_pptr=0;rng_pptr<rng_pool.length;++rng_pptr)rng_pool[rng_pptr]=0;rng_pptr=0}return rng_state.next()}function rng_get_bytes(a){var b;for(b=0;b<a.length;++b)a[b]=rng_get_byte()}function SecureRandom(){}SecureRandom.prototype.nextBytes=rng_get_bytes;
function get_random(a,b){var c=b-a+1;rng_seed_time();for(var d=[],e=0;e<4;e++)d[e]=0;rng_get_bytes(d);var f=0;for(e=0;e<4;e++){f*=256;f+=d[e]}f%=c;f+=a;return f}
if(typeof btoa=="undefined")btoa=function(a){if(typeof LP=="object"&&typeof LP.lpGetCurrentWindow=="function"&&typeof ischrome=="undefined"){var b=LP.lpGetCurrentWindow();if(typeof b=="object"&&typeof b.btoa=="function")return b.btoa(a)}if(typeof lptoolband=="object"&&typeof lptoolband.btoa2!="undefined")return lptoolband.btoa2(a,a.length);if(a.length==0)return"";var c,d,e,f;b=0;var h="";do{c=a.charCodeAt(b++);d=a.charCodeAt(b++);e=a.charCodeAt(b++);f=c<<16|d<<8|e;c=f>>18&63;d=f>>12&63;e=f>>6&63;
f&=63;h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)}while(b<a.length);switch(a.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"="}return h};
if(typeof atob=="undefined")atob=function(a){if(typeof LP=="object"&&typeof LP.lpGetCurrentWindow=="function"&&typeof ischrome=="undefined"){var b=LP.lpGetCurrentWindow();if(typeof b=="object"&&typeof b.atob=="function")return b.atob(a)}if(typeof lptoolband=="object"&&typeof lptoolband.atob2!="undefined")return lptoolband.atob2(a,a.length);if(typeof a!="string"||a.length%4!=0||typeof a.charAt=="undefined")return"";var c,d,e,f,h=0,j="";do{c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));
d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h++));e=c<<18|d<<12|b<<6|f;c=e>>16&255;d=e>>8&255;e&=255;j+=b==64?String.fromCharCode(c):f==64?String.fromCharCode(c,d):String.fromCharCode(c,d,e)}while(h<a.length);return j};
var AES=function(){var a=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]],b=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,
251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,
140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],c=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,
3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],d=["0","1","2","3","4","5",
"6","7","8","9","a","b","c","d","e","f"],e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,0,0,0,0,0,0,0,10,11,12,13,14,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,11,12,13,14,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=function(l){for(var n=0;n<4;n++)l[n]=b[l[n]];return l},h=function(l,n,p){var s,A;for(s=0;s<4;s++)for(A=0;A<4;A++)l[s][A]^=p[n*4+A][s];return l},j=function(l){var n,p;for(n=0;n<4;n++)for(p=0;p<4;p++)l[n][p]=b[l[n][p]];return l},o=function(l){var n,p,s=[];for(n=1;n<4;n++){for(p=0;p<4;p++)s[p]=l[n][(p+n)%4];for(p=0;p<4;p++)l[n][p]=s[p]}return l},r=function(l){var n,p;for(n=0;n<4;n++)for(p=0;p<4;p++)l[n][p]=c[l[n][p]];return l},y=function(l){var n,
p,s=[];for(n=1;n<4;n++){for(p=0;p<4;p++)s[p]=l[n][(p+(4-n))%4];for(p=0;p<4;p++)l[n][p]=s[p]}return l},q=function(l){typeof reportError=="function"&&reportError(l,null)};return{KeyExpansion:function(l){var n,p=[],s,A;l instanceof Array&&(l.length==16||l.length==24||l.length==32)||q("KeyExpansion: key must be an array of length 16, 24, or 32 bytes");s=l.length/4;A=s+6;var u=[];for(n=0;n<s;n++)u[n]=[l[4*n],l[4*n+1],l[4*n+2],l[4*n+3]];for(;n<4*(A+1);n++){u[n]=[];for(l=0;l<4;l++)p[l]=u[n-1][l];if(n%s==
0){l=p[0];for(var w=0;w<3;w++)p[w]=p[w+1];p[3]=l;p=f(p);for(l=0;l<4;l++)p[l]^=a[n/s][l]}else if(s>6&&n%s==4)p=f(p);for(l=0;l<4;l++)u[n][l]=u[n-s][l]^p[l]}return u},Cipher:function(l,n){var p,s,A,u=[],w=[];if(!(l instanceof Array&&l.length==16)){q("Cipher: input must be an array of length 16");return null}if(!(n instanceof Array&&(n.length==44||n.length==52||n.length==60))){q("Cipher: roundKeys must be an array of length 44, 52, or 60");return null}A=n.length/4-1;for(p=0;p<4;p++){u[p]=[];for(s=0;s<
4;s++)u[p][s]=l[p+4*s]}u=h(u,0,n);for(p=1;p<A;p++){u=j(u);u=u=o(u);var D=void 0,B=[],C=[],H=[];for(s=0;s<4;s++){for(D=0;D<4;D++){B[D]=u[D][s];C[D]=B[D]<<1;if(C[D]>255)C[D]^=283;H[D]=B[D]^C[D]}u[0][s]=C[0]^H[1]^B[2]^B[3];u[1][s]=B[0]^C[1]^H[2]^B[3];u[2][s]=B[0]^B[1]^C[2]^H[3];u[3][s]=H[0]^B[1]^B[2]^C[3]}u=h(u,p,n)}u=j(u);u=o(u);u=h(u,A,n);for(p=0;p<4;p++)for(s=0;s<4;s++)w[p+4*s]=u[p][s];return w},InvCipher:function(l,n){var p,s,A,u=[],w=[];if(!(l instanceof Array&&l.length==16)){q("Cipher: input must be an array of length 16");
return null}if(!(n instanceof Array&&(n.length==44||n.length==52||n.length==60))){q("Cipher: roundKeys must be an array of length 44, 52, or 60");return null}A=n.length/4-1;for(p=0;p<4;p++){u[p]=[];for(s=0;s<4;s++)u[p][s]=l[p+4*s]}u=h(u,A,n);for(p=A-1;p>0;p--){u=y(u);u=r(u);u=u=h(u,p,n);var D=[],B=[],C=[],H=[],I=[],M=[],J=[],N=[];for(s=0;s<4;s++){for(A=0;A<4;A++){D[A]=u[A][s];B[A]=D[A]<<1;if(B[A]>255)B[A]^=283;C[A]=B[A]<<1;if(C[A]>255)C[A]^=283;H[A]=C[A]<<1;if(H[A]>255)H[A]^=283;I[A]=H[A]^D[A];M[A]=
H[A]^B[A]^D[A];J[A]=H[A]^C[A]^D[A];N[A]=H[A]^C[A]^B[A]}u[0][s]=N[0]^M[1]^J[2]^I[3];u[1][s]=I[0]^N[1]^M[2]^J[3];u[2][s]=J[0]^I[1]^N[2]^M[3];u[3][s]=M[0]^J[1]^I[2]^N[3]}}u=y(u);u=r(u);u=h(u,0,n);for(p=0;p<4;p++)for(s=0;s<4;s++)w[p+4*s]=u[p][s];return w},StringToKeyIv:function(l,n){var p=[],s=[],A=[],u=0,w=16,D;if(n!=128&&n!=192&&n!=256){q("BytesToKey: bits must be 128, 192, or 256");return null}u=n/8;for(D=0;D<l.length;D++)p[D]=l.charCodeAt(D);for(;;){D=0;if(u)for(;u;){s.push(p[D++]);u--;if(D==p.length)break}if(w&&
D<p.length)for(;w;){A.push(p[D++]);w--;if(D==p.length)break}if(!u&&!w||!u&&D>=p.length)break}return{key:s,iv:A}},StringToPaddedData:function(l){var n=[],p;l=AES._utf8_encode(l);for(p=0;p<l.length;p++)n.push(l.charCodeAt(p));l=16-p%16;for(p=0;p<l;p++)n.push(l);return n},PaddedDataToString:function(l,n){var p="",s,A=l[l.length-1];if(A>=0&&A<=16){for(s=l.length-1;s>0;s--)if(l[s]!=A)break;for(A=0;A<=s;A++)p+=String.fromCharCode(l[A])}else n||q("Bogus pad:"+A+(typeof g_to_dec!="undefined"?" length: "+
g_to_dec.length:""));return AES._utf8_decode(p)},_utf8_encode:function(l){for(var n="",p=0;p<l.length;p++){var s=l.charCodeAt(p);if(s<128)n+=String.fromCharCode(s);else{if(s>127&&s<2048)n+=String.fromCharCode(s>>6|192);else{n+=String.fromCharCode(s>>12|224);n+=String.fromCharCode(s>>6&63|128)}n+=String.fromCharCode(s&63|128)}}return n},_utf8_decode:function(l){for(var n="",p=0,s=0,A=0,u=0;p<l.length;){s=l.charCodeAt(p);if(s<128){n+=String.fromCharCode(s);p++}else if(s>191&&s<224){A=l.charCodeAt(p+
1);n+=String.fromCharCode((s&31)<<6|A&63);p+=2}else{A=l.charCodeAt(p+1);u=l.charCodeAt(p+2);n+=String.fromCharCode((s&15)<<12|(A&63)<<6|u&63);p+=3}}return n},db64:function(l){return atob(l)},eb64:function(l){return btoa(l)},BytesToB64:function(l){var n,p="";for(n=0;n<l.length;n++)p+=String.fromCharCode(l[n]);return AES.eb64(p)},B64ToBytes:function(l){l=AES.db64(l);for(var n=[],p=0;p<l.length;p++)n[p]=l.charCodeAt(p);return n},Prepare:function(l){var n,p;n=256;var s={mode:"ecb",b64:false,data:[],key:[],
iv:[]};if(l.mode=="cbc")s.mode=l.mode;if(l.b64==true)s.b64=l.b64;if(typeof l.pass=="string"){if(l.bits==128||l.bits==192)n=l.bits;p=AES.StringToKeyIv(l.pass,n);for(n=0;n<p.key.length;n++)s.key[n]=p.key[n];for(n=0;n<p.iv.length;n++)s.iv[n]=p.iv[n]}else{if(!(l.key instanceof Array)||l.key.length!=16&&l.key.length!=24&&l.key.length!=32){q("obj.key must be a byte array of length 16, 24, or 32");return null}for(n=0;n<l.key.length;n++){if(typeof l.key[n]!="number"){q("obj.key must be a byte array of length 16, 24, or 32");
return null}s.key[n]=l.key[n]}if(s.mode=="cbc"){if(!(l.iv instanceof Array)||l.iv.length!=16){q("obj.iv must be a byte array of length 16");return null}for(n=0;n<l.iv.length;n++){if(typeof l.iv[n]!="number"){q("obj.iv must be a byte array of length 16");return null}s.iv[n]=l.iv[n]}}}if(typeof l.data=="string"){l=AES.StringToPaddedData(l.data);for(n=0;n<l.length;n++)s.data[n]=l[n]}else{if(!(l.data instanceof Array)||l.data.length%16){q("obj.data must be a byte array with a multiple of 16 length ");
return null}for(n=0;n<l.data.length;n++){if(typeof l.data[n]!="number"){q("obj.data must be a byte array with a multiple of 16 length ");return null}s.data[n]=l.data[n]}}s.round=AES.KeyExpansion(s.key);return s},CreateIV:function(l){var n={arr:[],str:""};for(k=0;k<l;++k){n.arr[k]=Math.floor(Math.random()*256);n.str+=String.fromCharCode(n.arr[k])}return n},Encrypt:function(l){var n=[],p=[],s,A,u;u=AES.Prepare(l);if(u==null)return null;if(u.mode=="cbc")s=u.iv;for(A=0;A<u.data.length/16;A++){for(l=0;l<
16;l++){p[l]=u.data[A*16+l];if(u.mode=="cbc")p[l]^=s[l]}s=AES.Cipher(p,u.round);for(l=0;l<16;l++)n[A*16+l]=s[l]}if(u.b64)n=AES.BytesToB64(n);return n},Decrypt:function(l,n){var p=[],s=[],A=[],u,w,D,B;B=AES.Prepare(l);if(B==null)return null;if(B.b64)B.data=AES.B64ToBytes(l.data);if(B.mode=="cbc")for(w=0;w<B.iv.length;w++)A[w]=B.iv[w];for(D=0;D<B.data.length/16;D++){if(D>0&&B.mode=="cbc")for(w=0;w<16;w++)A[w]=s[w];for(w=0;w<16;w++)s[w]=B.data[D*16+w];u=AES.InvCipher(s,B.round);for(w=0;w<16;w++){p[D*
16+w]=u[w];if(B.mode=="cbc")p[D*16+w]^=A[w]}}return AES.PaddedDataToString(p,n)},bin2hex:function(l){if(null==l)return"";for(var n=l.length,p="",s,A=0;0<n--;){s=l.charCodeAt(A++);p+=d[(s&240)>>4];p+=d[s&15]}return p},url2hex:function(l){if(null==l)return"";l=AES._utf8_encode(l);return AES.bin2hex(l)},hex2url:function(l){if(null==l)return"";l=AES._utf8_decode(l);return AES.hex2bin(l)},hex2bin:function(l){if(null==l)return"";for(var n=l.length,p="",s,A,u=0;n>1;){s=l.charAt(u++);s=s.charCodeAt(0);A=
l.charAt(u++);A=A.charCodeAt(0);p+=String.fromCharCode((e[s]<<4)+e[A]);n-=2}return p},ok:function(l){if(0==l.length)return true;if(l.length>=16){if(AES.isb64(l))return true;if((l=l.match(/^!([^|]*)\|(.*)$/))&&AES.isb64(l[1])&&AES.isb64(l[2]))return true}return false},isb64:function(l){if(l.match(/^[A-Za-z0-9+\/=]+$/))return true;return false}}}(),lp_sha2lib=SHA256lib();function SHA256(a,b){return lp_sha2lib.sha256(a,b)}function lp_pbkdf2(a,b,c,d){return lp_sha2lib.pbkdf2(a,b,c,d)}
function SHA256lib(){function a(o,r){var y=(o&65535)+(r&65535);return(o>>16)+(r>>16)+(y>>16)<<16|y&65535}function b(o,r){return o>>>r|o<<32-r}function c(o,r){var y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,
666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],q=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],l=Array(64),n,p,s,A,u,w,D,B,C,H,I,M;o[r>>5]|=128<<24-r%32;o[(r+64>>
9<<4)+15]=r;for(C=0;C<o.length;C+=16){n=q[0];p=q[1];s=q[2];A=q[3];u=q[4];w=q[5];D=q[6];B=q[7];for(H=0;H<64;H++){l[H]=H<16?o[H+C]:a(a(a(b(l[H-2],17)^b(l[H-2],19)^l[H-2]>>>10,l[H-7]),b(l[H-15],7)^b(l[H-15],18)^l[H-15]>>>3),l[H-16]);I=a(a(a(a(B,b(u,6)^b(u,11)^b(u,25)),u&w^~u&D),y[H]),l[H]);M=a(b(n,2)^b(n,13)^b(n,22),n&p^n&s^p&s);B=D;D=w;w=u;u=a(A,I);A=s;s=p;p=n;n=a(I,M)}q[0]=a(n,q[0]);q[1]=a(p,q[1]);q[2]=a(s,q[2]);q[3]=a(A,q[3]);q[4]=a(u,q[4]);q[5]=a(w,q[5]);q[6]=a(D,q[6]);q[7]=a(B,q[7])}return q}function d(o){for(var r=
[],y=(1<<h)-1,q=0;q<o.length*h;q+=h)r[q>>5]="";for(q=0;q<o.length*h;q+=h)r[q>>5]|=(o.charCodeAt(q/h)&y)<<24-q%32;return r}function e(o){for(var r=j?"0123456789ABCDEF":"0123456789abcdef",y="",q=0;q<o.length*4;q++)y+=r.charAt(o[q>>2]>>(3-q%4)*8+4&15)+r.charAt(o[q>>2]>>(3-q%4)*8&15);return y}function f(o,r,y,q){var l=Array(16),n=Array(16);if(r.length>l.length)r=c(r,q*8);for(q=0;q<l.length;q++){l[q]=r[q]^909522486;n[q]=r[q]^1549556828}hash1=c(l.concat(o),(64+y)*8);return c(n.concat(hash1),(64+hash1.length*
4)*8)}var h=8,j=0;return{sha256:function(o,r){var y=o;if(y==null)y="";y=y.replace(/\r\n/g,"\n");for(var q="",l=0;l<y.length;l++){var n=y.charCodeAt(l);if(n<128)q+=String.fromCharCode(n);else{if(n>127&&n<2048)q+=String.fromCharCode(n>>6|192);else{q+=String.fromCharCode(n>>12|224);q+=String.fromCharCode(n>>6&63|128)}q+=String.fromCharCode(n&63|128)}}o=q;y=c(d(o),o.length*h);return typeof r!="undefined"&&true==r?y:e(y)},sha256_hmac:function(o,r){var y=f(d(o),d(r),o.length,r.length);return e(y)},pbkdf2:function(o,
r,y,q){for(var l=d(o),n=Math.ceil(q/32),p="",s=0;s<n;s++){var A=r+String.fromCharCode(s+1>>24&15)+String.fromCharCode(s+1>>16&15)+String.fromCharCode(s+1>>8&15)+String.fromCharCode(s+1&15);A=m_hash=f(d(A),l,A.length,o.length);for(var u=1;u<y;u++){m_hash=f(m_hash,l,32,o.length);for(var w=0;w<A.length;++w)A[w]^=m_hash[w]}p+=e(A)}return p.substr(0,q*2)}}}function es(a){a=a.replace(/\\/g,"\\\\");a=a.replace(/'/g,"\\'");return a.replace(/"/g,'\\"')}
function of(a){var b=document.createElement("div");a=document.createTextNode(a);b.appendChild(a);return b.innerHTML}function strip_tags(a){return a.replace(/<[^>]+>/g,"")}function trim(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var g_one_alert=0,g_aKeys={};
function enccbc(a,b){if(a==null||0==a.length)return"";var c;if(typeof b!="undefined"&&b!=null)c=b;else if(typeof g_local_key!="string"||0==g_local_key.length){if(typeof ischrome=="undefined"||lploggedin){if(!g_one_alert){g_one_alert=1;alert("No encryption key found, forcing logoff!")}window.location.href="https://lastpass.com/logout.php?nk_enc=1"}return""}else c=g_local_key;var d;if(typeof g_aKeys[c]=="undefined"){var e=[],f=c.length;for(d=0;d<f;++d)e[d]=c.charCodeAt(d);g_aKeys[c]=e}e="";f=[];for(d=
0;d<16;++d){f[d]=Math.floor(Math.random()*256);e+=String.fromCharCode(f[d])}return"!"+AES.eb64(e)+"|"+AES.Encrypt({key:g_aKeys[c],iv:f,data:a,b64:true,bits:256,mode:"cbc"})}
function enc(a,b,c){if(typeof lp_iscbc!="undefined"&&lp_iscbc&&!c)return enccbc(a,b);if(a==null||0==a.length)return"";if(!(typeof b!="undefined"&&b!=null))if(typeof g_local_key!="string"||0==g_local_key.length){if(typeof ischrome=="undefined"||lploggedin){if(!g_one_alert){g_one_alert=1;alert("No encryption key found, forcing logoff!")}window.location.href="https://lastpass.com/logout.php?nk_enc=1"}return""}else b=g_local_key;return AES.Encrypt({pass:b,data:a,b64:true,bits:256})}
function dec(a,b,c){if(a==null||0==a.length)return"";if(!(typeof b!="undefined"&&b!=null))if(typeof g_local_key!="string"||0==g_local_key.length){if(typeof ischrome=="undefined"||lploggedin){if(!g_one_alert){g_one_alert=1;alert("No encryption key found, forcing logoff!")}window.location.href="https://lastpass.com/logout.php?nk_dec=1"}return""}else b=g_local_key;g_to_dec=a;var d="",e=true;if(typeof lptoolband=="object"&&typeof c=="undefined"){e=false;try{d=lptoolband.lpdecie(AES.bin2hex(b),a)}catch(f){e=
true}}if(e)if(a[0]!="!")d=AES.Decrypt({pass:b,data:a,b64:true,bits:256});else{a=a.split("|",2);if(a.length!=2)return"";if(typeof g_aKeys[b]=="undefined"){c=[];d=b.length;for(k=0;k<d;++k)c[k]=b.charCodeAt(k);g_aKeys[b]=c}d=AES.Decrypt({key:g_aKeys[b],iv:AES.B64ToBytes(a[0].substring(1)),data:a[1],b64:true,bits:256,mode:"cbc"})}return d}function lpenc(a){return enc(a)}function lpenc(a,b,c){return enc(a,b,c)}function lpdec(a){return dec(a)}function lpdec(a,b){return dec(a,b)}
function lpenc_u(a){return updated_enc?enc(a):a}var lpdec_u_cache=[];function lpdec_u(a){if(updated_enc){if(typeof lpdec_u_cache[a]=="undefined")lpdec_u_cache[a]=dec(a);return lpdec_u_cache[a]}else return a}function lpbin2hex_u(a){return updated_enc?AES.bin2hex(a):a}function lphex2bin_u(a){return updated_enc?AES.hex2bin(a):a}function fix_username(a){return a.toLowerCase().replace(/\s*/g,"")}function make_lp_hash(a,b){return SHA256(SHA256(fix_username(a)+b)+b)}
function make_lp_key(a,b){return AES.hex2bin(SHA256(fix_username(a)+b))}function make_lp_key_iterations(a,b,c){if(c==1)return make_lp_key(a,b);return AES.hex2bin(lp_pbkdf2(b,a,c,32))}function make_lp_hash_iterations(a,b,c){if(c==1)return SHA256(AES.bin2hex(a)+b);return lp_pbkdf2(a,b,1,32)}function check_email(a){return a.match(/^.+@.+\.[A-Za-z]{2,6}$/)}function evalCode(a){window.execScript?window.execScript(a):eval.call(null,a)}
var iebody=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body;function offsetL(){return document.all?iebody.scrollLeft:pageXOffset}function offsetT(){return document.all?iebody.scrollTop:pageYOffset}
var dbgall={state:0,sk:0,js:0,bb:0,az:0,xhr:0,invis:0,retry:0,autofill:0,icons:0,login:1,checkpw:0,tabsel:0,unload:0,regex:0,redo:0,formfill:0,checkpage:0,checkgenpw:0,checkadd:0,autologin:0,autoauto:0,iframe:0,formsubmit:0,notif:0,xulshow:0,save:0,basic_auth:0,genpw:0,cookie:0,yubikey:0,googleauth:0,grid:0,multifactor:0,sesame:0,custom_js:0,rsa:0,namedpipes:1,groupstate:0,websiteevent:1,readfile:0,writefile:0,deletefile:0,renamefile:0,fileexists:0,disableoffline:0,sharing:0,prof:0,ffupload:0,error:1,
info:1,all:0};if(typeof Components!="undefined")var Cc=Components.classes,Ci=Components.interfaces;var lpWRASO="webrootaso",lpWRWEBSITELOGIN="webrootwebsitelogin",lpWRWEBSITELOGIN_ASOREGISTRY="webrootwebsiteloginasoregistry",lpWRNAMEDPIPELOGIN_ASOREGISTRY="webrootnamedpipeloginasoregistry",lpWRPLUGINLOGIN_ASOREGISTRY="webrootpluginloginasoregistry",lpWRSSODIR="/sso/webroot/",lpWRDIR="/webroot/",lpWRASOTESTFILE="",lpWRASOTESTFILE2="",dbgts=(new Date).getTime(),that=this;this.lpgenpwlist=[];
if(typeof Components!="undefined"){this.lpis_mac="Darwin"==Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULRuntime).OS;this.lpis_win="WINNT"==Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULRuntime).OS;this.lpis_linux="Linux"==Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULRuntime).OS;this.lpmainprefs=Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch);this.lpprefs=Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch("extensions.lastpass.")}
this.lphelpstats=null;this.lpbuilt="Unknown";this.lp_basehost="lastpass.com";this.lp_base="https://"+this.lp_basehost+"/";this.last_dialog_close=this.lpcurrcontextmenusite=0;this.lpacctsreq=null;
this.LANGS=[["Default",""],["Afrikaans","af-ZA"],["Arabic","ar-SA"],["Arabic (Egypt)","ar-EG"],["Azerbaijani","az-AZ"],["Bulgarian","bg-BG"],["Catalan","ca-ES"],["Chinese (Simplified)","zh-CN"],["Chinese (Traditional)","zh-TW"],["Croatian","hr-HR"],["Czech","cs-CZ"],["Danish","da-DK"],["Dutch","nl-NL"],["English","en-US"],["English (United Kingdom)","en-GB"],["Esperanto","eo-US"],["Estonian","et-EE"],["Finnish","fi-FI"],["French","fr-FR"],["French (Canada)","fr-CA"],["Galician","gl-ES"],["Georgian",
"ka-GE"],["German","de-DE"],["Greek","el-GR"],["Hebrew","he-IL"],["Hungarian","hu-HU"],["Icelandic","is-IS"],["Indonesian","id-ID"],["Italian","it-IT"],["Japanese","ja-JP"],["Korean","ko-KR"],["Latvian","lv-LV"],["Lithuanian","lt-LT"],["Macedonian","mk-MK"],["Malay","ms-MY"],["Norwegian","nb-NO"],["Norwegian Nynorsk","nn-NO"],["Persian","fa-IR"],["Polish","pl-PL"],["Portuguese","pt-PT"],["Portuguese (Brazilian)","pt-BR"],["Romanian","ro-RO"],["Russian","ru-RU"],["Serbian","sr-RS"],["Slovak","sk-SK"],
["Slovenian","sl-SI"],["Spanish","es-ES"],["Spanish (Mexico)","es-MX"],["Swedish","sv-SE"],["Thai","th-TH"],["Turkish","tr-TR"],["Ukrainian","uk-UA"],["Vietnamese","vi-VN"]];
var lpversion="1.80.4",lploggedin=false,lpisadmin=false,lpiscompanyadmin=false,lploglogins=false,lp_local_key="",lp_local_key_hex="",g_local_key="",g_local_key_hex="",lp_local_key_hash="",lpemail="",lpnotifytimerid=null,lpretryonlinetimerid=null,lpdebug=false,lpnomoreprompts=false,lpaccts=[],lpshares=[],lpsecurenotes=[],lpapplications=[],lpacctsnum=0,lptlds=[],lpgenpws=[],lpbasicauths=[],lpurls=[],lpneversaveurls=[],lpnevergenurls=[],lpneverffurls=[],lpneverautologinurls=[],lponlysaveurls=[],lponlygenurls=
[],lponlyffurls=[],lponlyautologinurls=[],lpmanuallogins=[],lpforminfomap=[],lprejectedaddsites=[],lpforminfomap_multi=[],lpfavaccts=[],lpsavedform=null,lpsavedformfields=[],lpisopener=0,lpdelayedFunction=null,lpFunctionToRunOnShow=null,lpBrowserToRun=null,lpDebug=true,lploginattempts=[],lppopulateaccountsfromlogin=false,lppwdeckey=null,lpdisableoffline=false,lploggedinoffline=false,lpusername="",lpusername_hash="",lphash="",lpuid="",lptoken="",lpgenpassforms=[],lpgenpasscurrentpwfields=[],lp_local_accts_version=
-1,lp_server_accts_version=-1,lploginpostdata="",lpRegisteredForXHREvents=false,lpimportsource="",lpimportdata="",lpfindxpcom=false,lpxpcomobj=null,lpctypeslib=null,lpctypesabi=null,lpctypespath=null,lpctypesfree=null,lpidleobserver=this.lpctypesworker=null,lpidleobservertime=0,sleeptimer=null,last_sleep_check=0,polltimer=null,lastpoll=0,lpffaccounts=[],lplaunches=[],lpshowedautologinoncontentloaded=[],lpshowedgenerateoncontentloaded=[],lpshowedformfilloncontentloaded=[],lponcontentloadeddone=[],
lpformfills=[],lpidentities=[],lpdocfinder=[],lpforcenewtab=false,lpdeccache=[],lpdeccachekey=null,lpcurrentwindow=null,lpbLoginSitePrompt=false,lpbEditSitePrompt=false,lpbEditSecureNotePrompt=false,lpbViewPwPrompt=false,lpbViewFormFillPrompt=false,lpbGeneratedPw=false,lpbImprove=true,lpLoadThreshold=1E3,lpequivdomains=[],lpurlrules=[],lpmobileformat=[],lp_premium_exp=0,lp_enterpriseuser=0,lp_trueapi_trial_exp=0,lpiconsupdated=false,lpbSwitchIdentityPrompt=false,lpbMultifactorReprompt=false,currCompact=
true,lpLastPwPrompt=0,countryfromip="",lpbUpdateAvailable=false,lpbInstallingUpdate=false,lpdialogs=[],lppendingshares=[],lppendingsharests=0,lpprefoverrides=[],lpshareeautopushes=[],lpshareeautopushests=0,lpnewvalues=[],lppublickeys={},logoff_other_ses=false,lp_phpsessid=null,lpoverridelang=null,lpisconnected=false,lppd=0,lpeu=0,lphidecontextmenu=false,lpincludenameinlogoffbtn=true,lpdelayfillhiddenfields=false,WAVTOOLBAR=0,WISCTOOLBAR=0,lpNotificationsAfterClick,lpRepromptTime,lpAutomaticallyFill,
lpShowNotifications,lpShowLoginNotifications,lpShowFormFillNotifications,lpdontfillautocompleteoff,lpwarninsecureforms,lpOfferGeneratePasswd,lpHighlightFields,lpShowSaveSiteNotifications,lpShowFillNotifications,lpShowChangePasswordNotifications,lpShowAcctsInSidebar,lpShowAcctsInGroups,lpautoauto,lpautoautoVal,lpIdleLogoff,lpIdleLogoffVal,lpalwayschooseprofilecc,lpNotificationsBottom,lpUseCompact,lpopenloginstart,lpcapturenewformfill,lphidenotes=false,lphideidentities=false,lphidevault=false,lphidewelcome=
false,lphideexport=false,lphideimport=false,lphidesharing=false,lphideprint=false,lppassusernamehash=false,lphidestatusbaricon=false,lpdohttptest=true,lploginstarted=false,lpdonotoverwritefilledfields=false,lpasoregistry=false,lpbundles=[],startup_time=lp_get_gmt_timestamp(),all_states=null,all_countries=null,all_timezones=null,lp_all_tlds=null,isFennec=false,fennecBrowser=null,lpdonotrefreshwindowsts=null,lplastloggedin=0,lplastrefreshts=null,SpecialSites=[],MAXATTACH=1048576;
function lpfavinfo(){}function lpacctinfo(){}function lpshareeautopushinfo(){}function lplogininfo(){}function lpfieldinfo(){}function lpforminfo(){}function lpautologininfo(){}function lpevent(){}function lpobjrejectedaddsite(){}function lpobjffaccount(){}function lpobjhelpstats(){}function lpformfillinfo(){}function lpcustomfieldinfo(){}function stateinfo(){}function countryinfo(){}function timezoneinfo(){}function lpidentity(){}var lpArrayOffset=-1;AES=typeof AES=="undefined"?null:AES;
var LPISLOC=false,LPISUPEK=false,LPISUPEKCAPABLE=false,lpmaxid=0,rfdefaults=null;DEFAULT_KEY_ITERATIONS=1;this.DISABLE_HKS=this.HIDE_SEARCH_HK=this.HIDE_HOME_HK=0;this.lpdohelptranslate=this.lpdolostpwotp=this.lpdopoll=true;this.NO_LOGIN_NOTIFICATION_UNTIL_LOGIN=0;this.althelpurl="";this.HIDE_SHARE=false;this.islastpass=true;this.LPISLOC=LPISLOC;this.LPISUPEK=LPISUPEK;this.LPISUPEKCAPABLE=LPISUPEKCAPABLE;
var sntemplates={Generic:{"":"textarea"},"Bank Account":{"Bank Name":"text","Account Type":"text","Account Number":"text","Routing Number":"text","SWIFT Code":"text","IBAN Number":"text",Pin:"text","Branch Address":"text","Branch Phone":"text",Notes:"textarea"},"Credit Card":{"Name on Card":"text",Type:"text",Number:"text","Security Code":"text","Start Date":"datemoyr","Expiration Date":"datemoyr",Notes:"textarea"},Database:{Type:"text",Hostname:"text",Port:"text",Database:"text",Username:"text",
Password:"text",SID:"text",Alias:"text",Notes:"textarea"},"Driver's License":{Number:"text","Expiration Date":"date","License Class":"text",Name:"text",Address:"text",State:"text",Country:"text","Date of Birth":"date",Sex:"text",Height:"text",Notes:"textarea"},"Email Account":{Username:"text",Password:"text",Server:"text",Port:"text",Type:"text","SMTP Server":"text","SMTP Port":"text",Notes:"textarea"},"Instant Messenger":{Type:"text",Username:"text",Password:"text",Server:"text",Port:"text",Notes:"textarea"},
Membership:{Organization:"text","Membership Number":"text","Member Name":"text","Start Date":"date","Expiration Date":"date",Website:"text",Telephone:"text",Password:"text",Notes:"textarea"},Passport:{Type:"text",Name:"text",Country:"text",Number:"text",Sex:"text",Nationality:"text","Issuing Authority":"text","Date of Birth":"date","Issued Date":"date","Expiration Date":"date",Notes:"textarea"},Server:{Hostname:"text",Username:"text",Password:"text",Notes:"textarea"},"Social Security":{Name:"text",
Number:"text",Notes:"textarea"},"Software License":{"License Key":"text",Version:"text",Publisher:"text","Support Email":"text",Website:"text",Price:"text","Purchase Date":"date","Order Number":"text","Number of Licenses":"text","Order Total":"text",Notes:"textarea"}},sntemplateicons={"Bank Account":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAZ9JREFUeNrEk80rRFEYxp8z95q5mSHfJiU2StNEmZooFlPWNixINlYiEhsLSVI2KCmFRiILkYX8BRaKlXxslJTyGV3DYq7mfDjnjO8FaRZOnfu85733ffs97+kSIQRSWS6kuFJuQCKRiFA2OOf4rL/l3mJTBYvrC6CM6o5KmWDggssPksreVRbLzQTVxZ1NPTBVQFkCrX0tsLIseHxueNLdMD0GXKYBwbg0SuDEHBhpBuKPDqhDMdQ1/EEgQOAPFKC6ohqVJSEEi4OIPccwGB1ARr4PHfXdyLQyNeHx9QGiy9EkjazVBJxT5JRmo7GmGe1jbfAX+VFVFoKv0IdAYRCndyeYWZpBoLYcEw3TWMlakZZYsoF6UOnRPrdxFbvAZM8UHpwHHF7uw96zsXe7izpvHcb7JpHrzcPO2TbidlwSfBqiGtDl4Q1G70eQiCfgPD1rdXs9MNwurB6tYTN7C1aGBeKShgmRttlXC3Nj86Bq+vzbtGVzRajzr+/1jTCuYxIOh8VP9/xbzlQ40Y1ZffgLgdLepv7UCci//40vAgwAaCyazZH/mHYAAAAASUVORK5CYII=",
"Credit Card":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAStJREFUeNrEUzFOwzAUfW4dqQ0VUceKoQMMZciC0s5hZOYYmXKBnCURR2DhBIz0BkgsjZQgFRCNhCLysZ3aJEArQQa+FP3/bf+n954dRkToEqwrAE+ShOI4RlVVkGD6a/a79sIwBHzfp7+G67rEJZrScnoFDA8AKYk1OEqF7Es9sEG3F4oJNx6czMBt++dBVdC3Ws4aALqeq/xYAG8D4GFdk7H6wLvIXOS50zawBaBj9QqkOVCW9VCvXwPJPhX1ZPR5VkroaQ90TJ2tTMHCFpZYohkJZeNDIC/2Mbg/AooMDmM4x9gcemZncF7uYGGNUq7nQttG0FlQGyBdrrAptG9Zw8cbPBnrMmPj8WLLQEuYXP7+RaprDIIAnuftfXG79qIo6v4v/D/AhwADANLdDGCUdcgBAAAAAElFTkSuQmCC",
Database:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWVJREFUeNqUksFKw0AQhmdLzcGCPTRe+gapB8lFkF4MCHoQvCkI+pA+hS32bJNDBKHQmDZQk01CNmT9J60RpGgdSMjOfP8/s7sRjuPobVFV1dZ8G89kMhF1tFot8RVbv3u9Hgssy9qFRgRBwALXdXehEd1ulwWDwWAXGjGbzTYd/qSxzLLMNE0xHA6J6Hc6z/PRaOQkt2/Hz9zB87yGwLb6/f4P7/l8DvqjTPlYcd7NHnzfv1QPsGk0oMfj8Vl8A3oqw8Oq+t4DvEGjgGUcx8jgjblBr5ScpmGkUnN9cYZhoHBR3IN+Sd7P87sn8xHeJ8EVZGyRLiIlSaWbmz56dQSJVSmnSRiVEsTp4honwUOTduViWSRUpqQkzFkQlxnKGJFt6lmtjtBErgyRX9ZJ0FSgwx4LQOAN73UhUvsYDGiEJUJtaFKJ1gcs4I6C6hQKktqdSPPVMEq6oUllgIVt2//6vT8FGAC3BG3hw3ENjQAAAABJRU5ErkJggg==",
"Driver's License":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWFJREFUeNpi/P//PwMlgJFiA6zd/X4DaRYy9f8BaWTu7+xgEBESIEnng8fPGWqbGplBBjDy8XAxyEgIMBw8fJBBU0ObQVpKFlXxgwcMCgoKKGJPnr0A+wDs9N+/fjHcvH6doa40m8HM3IqhZ9JcBhYWNobGxkaGDx8+gDX09/ejGPD9+3cwDTbgJ9AAGXFRhgR3OwZhWSUGZhZIkNjb2zMICAgwXLhwAcML35AN+P37FwOXgASDmLImw68v3xluPfrIoC4nyODg4ABWZGBgwLBgwQIwDfJOQEAAqgt+/frNMHnuAQatF18YVD89Y5g5ZztDX1MUQ2FhIYqtDx8+ZNDX12cwNDRkyC2pQjbgJ8ONW/cY7IFJQgUYqSxvHoMl4+PjUQwAeQeEQeHy9fs3iCAwHfzfsnPPf1JB18Rp/0F6QS74f/b8Rca/f/6SlA5u370Hov5TnBIZBz4zUWoAQIABAANEuylMPpz5AAAAAElFTkSuQmCC",
"Email Account":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAhRJREFUeNrEU71uE0EYnF2vz3fG55/YsQPGDrEUaJGggIaH4AHgCSgp8hpU1EgU0CGBhKAgEhQoCiCQkFKkCWdh+fA5ic355/Zul+/WJgJaF6w02u9W+83N7swyrTVWGRwrDnbn/kPZ3r4qRjKLcJ5AkSAFjYQKReoSglKLb4NEQ+s5wqCLoy8fY3Fps5PZuXsdUQzYuczf7P/WbDFP5zHCqcTtnTDDE3uDSWJ9/KYHbxCRCo2jQMEbKnRPFHqnCv5YYxBqyAToBhEePO/hlAjq29cYDyOFXJajeb6IVx98nPyUaBQZsiTGyjBYIgVQdhiCUYSn7/oorxVRLedIDgOfzGIjsbNRwMVGES/3fRyPJWoFbhotIirZDMNx2uyjVi2i0yyALc3j4SwxhaCNnQsFrFfyeLLrmYa00SUEVD967aFUyps9jvjDxnC6UEBqEMsYtlBoN8t4seejO5gZPHvvo0VrrpWA69go+32zYkLWpWoisqE/HKPVcGFZWfSGNt4ejExQLrcqaFQdhLMIvcEYtYoLkz/NUgJp/PUDal534dhZpIxb9TzahNQ2tsyGyFsQdRfff4wwLTu0mEAcf/usp7Ob7ErThpvnYDwxf02PxBg7ywA7C4NAq3QOh94Q/cNPmm3duifdzRvCqaxB5AQE3SYn+zLEwjnZJJYEy1Qx0i7nE4z6HvoHX2P23x/TygS/BBgAbjbqksNysxwAAAAASUVORK5CYII=",
"Instant Messenger":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAmZJREFUeNqEUs9LFGEYfmZ/zI6z07pprZvoEmGxbdGKUBcNJbrlyUN2DCQQEf+AiIjoULe6hEFBh6ig/gDD2KxDbEblhkRUWsg2acW2jruzuzPffF/vrB50R/CDF2bgfX687/NKQgg0vsFrH8+nEtGReFRNW4xj/sdyLjP77Z7+eOh+Y29gO/Cp7vbr/alwmxr0wyGB3sPhPk1RDwYGJsFmRreQ+BoJkqTsgptVPyo2h2lxROh7qDfe1p06MLKjg1hESSukbJgctgMwR8CscWiKhMT+jvSOBFULcAhkMyouiAD18pHXapV59uUZYe6LniuYNkKyhJotUKVSQxJWVhlmXs/ndiTIZD9P351aqhoVjorlloMSjXDjYY5VZrPvG/ulzTH2TGSH+47FrpzolJKcPP8yAmAUYzRkIsAtPMquFl4+eHVL6BevenZwdDSTHuhJXB4+2ZZs1QIoWwIpvr6LcrUZcpBjYl+sJb9cmpB8Y28Ev/1sywgtEXX8zPFYajdF9segrdWNSSAOWESyoNcQonQuDHa1InnokmcHXe0t/c1hH34XbQILAlK5KfD1byEkfF0y0d6qIBiLH/EQaJrSKUs+5FcqdVXHjW9jBEbpcQ4Yawyy3w9ZUXd5dmBZTKLEKG8JzoYyI3CNrtEmNHfHcYtEXDKPg8W88XNBN6E1SfV/h7osh9cJ3EOi8ZHYG8SH72VUCsU1D8F0Jj8+Orl4Z+ptAYLUg+SkSQbCdEQy+XT38OTFCm4+zRt4N3d62ztwX8e558vxWJTtichhulxNL5jQ/1qlct74h5JZFJ/O9mzu/y/AAFelNJcRkA54AAAAAElFTkSuQmCC",
Membership:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAw1JREFUeNqMkltIFFEcxr8zl92ZVXdXnW0rNXXTNqXIypJSiYiEAqunbnSBqLC3opQKeohuEBVlmEq9WPiQXYhAHypLDAtUuhiVBUUulpfdNlnH3XXncjpLhFsP0Qf/OcPMOb//d853eKsICPxUcQRwyOydjUkWwM7+O9hY5hEdVSvT9W/BGC3PsyA0YSA7VQSXn8FmJ4jjAHXyF+xHBFCclnUby9y9u9bnffDkKHclK1/yx4LXVxZhXo6MuJPEiqt4lvVkx2Gvpt6qoPRpJaUdm1ltpVtLkp9lpBDMczMHgQkNzTUFSHRimKyzDWVH12QfKi1WhKhp4mzt8+5T51ofD3S+QXPT3mUiTzb9csw2mwgxKHPAvhW6LZsX5Hutgmcu0jdcREFe5iKPJ2PV+Qdv2+jLzzi+xdNksrmcGuWQCCnMkjHdzkGNxoKZWQ5QUYPxqg6VNccE3jRig6p0Br7XWFyUYXk3qslcSBOQCLleXYDiXJmfPSN50JJpA0mWQIzvMPofYuORPeKOpY5Okm5HV89wJFWAnSOERZIA+R7WsH9b/or5BanVIcsngDfAKQo4KQLz6yds2LeWvAiA9vX5Gm08RgQQESxyBmEPosPKGyWabjRUrU7LsxkaaHQEJJgCoikgwz70vhkwT7R8fMTirq+cL0GgdBKEWFkBwTAqZtjJpVzFzHeRMNpv+CjncdMDF7607yhKWhxQOa31/dhpl2TeVJzyiH/ShIBJlR07EDUsS9JS+NqFuYZX4cfQ3ROiFzsm2tvq+vewVL/c4XX0fdVdYQP+IjeHpKgGWRIZQDMQ0caXuFypTeVeh9dpDuPm/SHt8qPxlu5B/SBbPBLP+5lPB9uz3yYA7/wmTKphlpPd2PGoUTLdTq4vz4rNcUb86OweovVP1JauAX0b/hLrjmQGENh17w8wNNjBbS+1nw00FlLzaja9sTMtmunkd0sCPPiH4pB4SQwkjI7pYW00iDtvQ2ZDV+z2NJleGxzDP6XqU06Q4yRyaY54r9DFnf7duXgmh/9RHPJTgAEAkc04zw0/bxUAAAAASUVORK5CYII=",
Passport:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAZBJREFUeNqUk7FO21AUhj9fO44dJyEohCJEpA6tSuEJWBh4gI59xqpDp47MlVi60A5AWyBNUkJiHGwnTuzU7qnaDCStHK5k+epY//f/PkdHZVnG7+exZ64zFusr6rX5ZRHA6zc9nm9Z1NcKrDsGVUthmxqGSCZxxqvmQ8kSwNZiNu0izapGw1FUBGDpfzy7/4iyBPD9EUZq87RsU7PFWcS22E9SmCZpPiDwAr7dlBhMMl5ul3nRMDkdpugKvOkyQC0Wxq6H5wbUxf3wmUVzXbG7oRPEKYPRbAXAD5dBb0i1rPDla19qiQm3QUK3H+X/Qtju4DsmRWeP279DTeV9H0a0v7r5gGh4xfiuzPu3nzg42qdWK3F17XFy0mIarpBg7LeI/Bo3lyWO34X8TGUMukEiDXS7vfweJMF3Ru41TmFGQ9yL6YSdjQomY8L+l/wEYkU47HF/1yYa+VTqT+i0zrg8v5B03XxANoulazGfP35Aydh1y0FTBYmqiKfB8lLMN1HTtEct01xn/G/LVj2/BBgAErims0BRkyAAAAAASUVORK5CYII=",
Server:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAeRJREFUeNqck7tPIlEUxj8GxkgGRXSNRmQ7LLXQ2Pja2KiNJYmlMZFy/4UNDYmJQkIFyVYW2lkZYqO2PkqzCUt8FEYDKqhIYBjm3j13dhYHGC32ZE7OvZNzf+c79+HgnCOTyXDGGITrum54vV5vRKtrmtaIoVDI4QKZSBwaGsbz6ytAQPz9jDE3Am+MRfT5epBO74sZGoDnlxesb/+C6u3GZ+a5u8fW6hhqtdo7QEgSeE1RsDwzAo8s2S4+uCmhmsuDMw5VVd8Boh9DJllVB7597bIFpK9LMLtoViAAzEzKlWu4eHizBVR1BqGNcdYOoGMwfjyqHL9L3Bag6hxuoYDZAGC2cFvWye0VaFTDbShoaUFMJKeEzmIRmrk5dtZBLlExp8vZDuiQXdhcCdKRcsiyjHwuB8XTbWxusfiIwYFBVCoVyu6hfWBtgK3j46M5yy3rJT/0+/1rYp7NZn9SnKd/Bcut3BNrHf+Oz2qxWOw7JSxPTc/Oe70+7O5sV2j+IxqNbrTmNgESiUQ/VckHgyPo7fsCve6ARtUUxY2rywxOT0/K8XjcYwW4mo5JVScCgQCWlhYNmQIuXJIkTIyPolB4UsLh8EIymTywVSAsEomck4rx1ldovsyzVCo1+WEL/2N/BBgAUvhXraPcU94AAAAASUVORK5CYII=",
"Social Security":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAsRJREFUeNqMkV1IFFEUx/93ZnbH3dkdcf1qjY3NyDZaP0pRwxVS+0AKJMwsgswIQ6HyIXoIevOpXnwoQgpCQyqKSqIgk740ssS11ChzFdfSzI9s1N2dnZ2daVfQ0ES63Ptw7zn3xzm/Q1RVxWrrQsna8tICrjaK9/JSQCu/6iIND9pR2dQ+IIXjzGqfq/daCqoPs9e19BwVvrNakdmdheOSrJ8Nh8Nv1GqAlFh/kZaLpohpH6ISz4KwiQBhkGNH2ULOqgC/RwpQiTXgjFuhiYiB0XwEqq0OE5P87/8CtHj39E33NqvEEAeKNYLiE0ALLrT2RzoXcpY4OJmfVJ5qtdQGZZVnaEqON45/bOmJlUt0bzUCw4MhMgZGp3GPndA9OpfMvb/Y4yELUzjm2FiQmWRtDkjBJVXxGSnw6GPhDfjhFUVsK0xF7/ggbr9orKc9atUioPZQehtnWpcTEx8NW5IZXZ19mBr/Ba2egK3MhqgE4FMlSCDYwG3Bmy8f8O5p+9XFFjQQfuQdLEWcdhp6joPFmgBBZ0Xr3UsYU2RIqgJJUSHCD6fQCWHUi8Zkc+Viuc9n058FRjr+ETasi4aGkNChYKC1iKMNCEwQ+P0SIjTKX4kPf+ZE539yycXLhN3stiJ7/TcwTBDhboNyEF/dI0NZw7vqxe19/fMAynHnxP4djvP2M6c1N17fh0+QIM75sSm7FIXyFC5faauntELV3MsK7/JR0w0d5pKdyTF1ZRW5XIePYEi/GVMGO6a4NAyOMbDbePAKnTYz4jSdOpr7eDmAdNdkyJKtjL5FH8Ckbg0gqpB9gOQPCfOFFMkKSgxP4PBdw/rKJrIcQBmN3PhQ3yBGu9xgQ/kUS0DrCCJMFCItgN7jhqu3d17YSouRTLZiveDOG/zsygzO0EVGng0XBihKaMv47nQNOewD9SJj7F8J8EeAAQA3uBp3kqy2LQAAAABJRU5ErkJggg==",
"Software License":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAhVJREFUeNqUk8+LEmEYx78zBeHYjgs5tQqha7aoeBEPbqCICF482bZnPQV78tJRPHj24t2/oLMXQW9K0iGCxE5KhqUUkzmwY4Y5zfPQiGu7h33gnYH3fb+f5+crGIaBXWu320an08FiscB0OoXL5YLD4UA8Hkc6nRawZ4IFGI/HRq1WY1EkEoGiKAgGg5jNZlBVFa1Wi2HFYhEej0e4AiBxpVJBOBxGIBBgsd/vhyAI0DSNAcvlEv1+H71eD+VyeQsR6UOevV4vMpkMnE4nC/cXAXO5HJLJJN+3TKScKexQKMReJEnCZrPBaDRiIXm3IJRONBrlNEnHACpYEi9gt9v58mq1Ysiud7fbva0FrXHhNUhHdpeqfSLL0N/5oNnuQQx/ZNF8PkepVEI2m+Vi0t5xtIQ3+i8onxXuEgMoHOlIwn0TIpiA9z8jODiV0bh4jkajgUKhgIs/X4Cnb6HaPHDaVCj6ktNgALVGv9RxYHo4dNjx5LGM0ztfYTs/Z3EsFsO3szM8vKzjgfHdlJgdMQGkYwANiTb9gZNDCUfPZhzqer3mYuXzeQwGA2ozxOOXEBYCHsmv8PvTBx4ungNzQIx6vY5qtYpEIoHbmkjjSeF0u13eoPbt/6113TkPEo1ns9m80ctkMoHP57v27MpbSKVSWzIJqB7D4fA/Md2x9kRrc/eB0CFdsuC7KdwYwT+hcdsi/hVgAOhOBp0jnqqCAAAAAElFTkSuQmCC"},
lp_last_launch=[],lp_last_trial_nag=0,ffver="0",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(h){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(j){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(y,q,l){if(q)o[f.q.name][q]=l});if(b!=null){o.query=b;if(c!=null)o.anchor=c}if(lpParseUriNumber>500){for(var r in lpParseUriCache){delete lpParseUriCache[r];
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,h){if(b.length==0)return b;for(var j=[],o=[],r=0;r<a.length;r++){if(typeof a[r].tld=="undefined"){a[r].tld=lp_gettld_url(a[r].url);a[r].parts=lpParseUri(a[r].url);a[r].path=typeof a[r].parts.path=="string"?a[r].parts.path:""}if(c==a[r].tld)if(a[r].path!=""&&d.indexOf(a[r].path)!=0)o[o.length]=a[r];else if(e==a[r].parts.host||a[r].exacthost==1&&e.indexOf("."+a[r].parts.host)!=-1||a[r].exacthost==0)j[j.length]=a[r];else o[o.length]=a[r]}if(j.length==0&&o.length==0)return b;
if(j.length>0){a=b;for(r=0;r<j.length;r++){c=applyurlrule(b,j[r],d,e,h);if(c.length<a.length)a=c}return a}else{for(r=0;r<o.length;r++)removeurlrule(b,o[r],f,e,h);return b}}
function applyurlrule(a,b,c,d,e){var f=b.path;if(f!=""&&c.indexOf(f)!=0)return a;for(var h=f.split("/").length,j=[],o=false,r=0;r<a.length;r++){var y=a[r],q=y.pathlevelmatch,l=y.servermatch,n=y.portmatch;if(typeof q=="undefined"){q=c.split("/");y=lpParseUri(y.url);y.path=typeof y.path!="undefined"?y.path:"";l=y.path.split("/");for(n=0;n<q.length&&n<l.length;n++)if(l[n]!=q[n])break;q=n;l=d==y.host;n=e==get_port(y)}if(!(f!=""&&q<h)){o=o||b.exacthost==1||b.exactport==1?true:false;if((l||b.exacthost==
0)&&(n||b.exactport==0)){o=true;j[j.length]=a[r]}}}if(!o)return a;return j}function removeurlrule(a,b,c,d,e){for(var f=b.path,h=0;h<a.length;h++){var j=typeof a[h].id!="undefined"?a[h].id:a[h].aid;if(typeof c[j]!="undefined"){j=lpParseUri(c[j].url);j.path=typeof j.path!="undefined"?j.path:"";if(f!="")if(j.path.indexOf(f)!=0)continue;if((b.exacthost=="0"||d==j.host)&&(b.exactport=="0"||e==get_port(j))){a.splice(h,1);h-=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 h=lpenc(d[f]);if(d[f]!=""&&(h==null||h=="")){lpReportError("lprsa_acceptshareeautopushes : failing aid="+aid+" id="+b.id+" because we failed to reencrypt : "+f);e=false;break}d[f]=
h}}if(!e)return null;for(var j in b.fields){c=b.fields[j];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"+j+"="+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"+j+"="+
c);e=false;break}b.fields[j].value=f}}if(!e)return null;for(j in b.otherfields){c=b.otherfields[j];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"+j+"="+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"+j+"="+c);e=false;break}b.otherfields[j].value=f}}if(!e)return null;e={};for(i in b)if(i=="fields"){e.numf=b.fields.length;for(j in b.fields){e["f"+j+"urid"]=b.fields[j].urid;e["f"+j+"name"]=b.fields[j].name;e["f"+j+"value"]=b.fields[j].value;e["f"+j+"type"]=b.fields[j].type}}else if(i=="otherfields"){e.numof=b.otherfields.length;for(j in b.otherfields){e["of"+j+"urid"]=b.otherfields[j].urid;e["of"+j+"name"]=b.otherfields[j].name;e["of"+j+"value"]=b.otherfields[j].value;
e["of"+j+"type"]=b.otherfields[j].type;e["of"+j+"formname"]=b.otherfields[j].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"),h=a.getElementsByTagName("encofields");if(d.length<=0&&e.length<=0)return false;a=b.aid;var j=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={},
r=f[0].getElementsByTagName("encfield");j+="&numencf="+LP.en(r.length);for(f=0;f<r.length;++f){var y=r[f].getAttribute("afid"),q=r[f].getAttribute("value");o[y]=q}r={};h=h[0].getElementsByTagName("encofield");j+="&numencof="+LP.en(h.length);for(f=0;f<h.length;++f){y=h[f].getAttribute("afid");q=h[f].getAttribute("value");r[y]=q}j+="&numvalueenc="+LP.en(b.length);for(s=0;s<b.length;++s){f=lpenc(b[s]);j+="&valueenc"+s+"="+LP.en(f)}if(e.length>0){h=e[0].getElementsByTagName("sharee");j+="&numsharees="+
LP.en(h.length);for(f=0;f<h.length;++f){var l=h[f].getAttribute("uid");s=h[f].getAttribute("key");q=lpcreaterandomhexstring(64);e=lp_hex2bin(q);q=lprsa_encryptdata(s,q);if(q==false){lpReportError("SHARE : lprsa_encryptdata failed for shareeuid="+l+" using shareepublickeyhex="+s,null);return false}j+="&sharee"+f+"uid="+LP.en(l);j+="&sharee"+f+"sharekeyhexenc="+LP.en(q);q={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 n in q){var p=lpenc(q[n],e);if(q[n]!=""&&(p==null||p=="")){lpReportError("SHARE : error AES encrypting aid="+a+" for shareeuid="+l,null);return false}j+="&sharee"+f+n+"="+LP.en(p)}var s=0;for(y in o){q=lpdec(o[y]);p=lpenc(q,e);if(q!=""&&(p==null||p=="")){lpReportError("SHARE : error AES encrypting field afid="+y+" aid="+a+" for shareeuid="+l,null);return false}j+="&sharee"+
f+"fafid"+s+"="+LP.en(y);j+="&sharee"+f+"fvalue"+s+"="+LP.en(p);++s}s=0;for(y in r){q=lpdec(r[y]);p=lpenc(q,e);if(q!=""&&(p==null||p=="")){lpReportError("SHARE : error AES encrypting otherfield afid="+y+" aid="+a+" for shareeuid="+l,null);return false}j+="&sharee"+f+"ofafid"+s+"="+LP.en(y);j+="&sharee"+f+"ofvalue"+s+"="+LP.en(p);++s}for(s=0;s<b.length;++s){q=b[s];p=lpenc(q,e);if(q!=""&&(p==null||p=="")){lpReportError("SHARE : error AES encrypting newvalues k="+s+" aid="+a+" for shareeuid="+l,null);
return false}j+="&sharee"+f+"valueenc"+s+"="+LP.en(p)}}}if(d.length>0){d=d[0].getElementsByTagName("sharer");j+="&numsharers="+LP.en(d.length);for(f=0;f<d.length;++f){h=d[f].getAttribute("uid");l=d[f].getAttribute("key");q=lpcreaterandomhexstring(64);e=lp_hex2bin(q);q=lprsa_encryptdata(l,q);if(q==false){lpReportError("SHARE : lprsa_encryptdata failed for shareruid="+h+" using sharerpublickeyhex="+l,null);return false}j+="&sharer"+f+"uid="+LP.en(h);j+="&sharer"+f+"sharekeyhexenc="+LP.en(q);q={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(n in q){p=lpenc(q[n],e);if(q[n]!=""&&(p==null||p=="")){lpReportError("SHARE : error AES encrypting aid="+a+" for shareruid="+h,null);return false}j+="&sharer"+f+n+"="+LP.en(p)}s=0;for(y in o){q=lpdec(o[y]);p=lpenc(q,e);if(q!=""&&(p==null||p=="")){lpReportError("SHARE : error AES encrypting field afid="+
y+" aid="+a+" for shareruid="+h,null);return false}j+="&sharer"+f+"fafid"+s+"="+LP.en(y);j+="&sharer"+f+"fvalue"+s+"="+LP.en(p);++s}s=0;for(y in r){q=lpdec(r[y]);p=lpenc(q,e);if(q!=""&&(p==null||p=="")){lpReportError("SHARE : error AES encrypting otherfield afid="+y+" aid="+a+" for shareruid="+h,null);return false}j+="&sharer"+f+"ofafid"+s+"="+LP.en(y);j+="&sharer"+f+"ofvalue"+s+"="+LP.en(p);++s}for(s=0;s<b.length;++s){q=b[s];p=lpenc(q,e);if(q!=""&&(p==null||p=="")){lpReportError("SHARE : error AES encrypting newvalues k="+
s+" aid="+a+" for shareruid="+h,null);return false}j+="&sharer"+f+"valueenc"+s+"="+LP.en(p)}}}return j}
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"],h;for(h in f)if(typeof a[c][f[h]]!="undefined")d[f[h]]=a[c][f[h]];else if(f[h]=="id"||f[h]=="aid"||
f[h]=="sharekeyhexenc"){lpReportError("SHARE: shareeautopushes : error missing required arg="+f[h],null);e=false;break}else d[f[h]]=null;if(e){e=d.numf!=null?d.numf:0;for(h=0;h<e;++h){f={};f.urid=a[c]["f"+h+"urid"];f.name=a[c]["f"+h+"name"];f.value=a[c]["f"+h+"value"];f.type=a[c]["f"+h+"type"];d.fields.push(f)}e=d.numof!=null?d.numof:0;for(h=0;h<e;++h){f={};f.urid=a[c]["of"+h+"urid"];f.name=a[c]["of"+h+"name"];f.value=a[c]["of"+h+"value"];f.type=a[c]["of"+h+"type"];f.formname=a[c]["of"+h+"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,h=0,j=0,o=0,r=a.split(".");for(a=0;a<r.length;a++)if(a==0)d=parseInt(r[a]);else if(a==1)e=parseInt(r[a]);else if(a==2)f=parseInt(r[a]);b=b.split(".");for(a=0;a<b.length;a++)if(a==0)h=parseInt(b[a]);else if(a==1)j=parseInt(b[a]);else if(a==2)o=parseInt(b[a]);if(d!=h)return d>h?1:-1;if(e!=j)return e>j?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}
function lpmakerequesterror(a,b,c){lpisconnected=false;if(c)lpretryinsert(b);else if(a=="invalidresponse"||a=="onerror"||a=="exception"||a=="objectcreation"){a=b.url;a.indexOf("loglogin.php")==-1&&a.indexOf("logformfill.php")==-1&&a.indexOf("error.php")==-1&&a.indexOf("prof.php")==-1&&a.indexOf("getappdata.php")==-1&&a.indexOf("poll_server.php")==-1&&a.indexOf("httptest.php")==-1&&a.indexOf("geticon.php")==-1&&a.indexOf("logout.php")==-1&&lpshowError("ErrorSendingMsg")}}
this.lpMakeRequest=function(a,b,c,d,e,f){if(LPISLOC){var h=true;if(a.indexOf("error.php")!=-1){if(parse_query_string(b).fb=="1")h=false}else if(a.indexOf("upgrade.php")!=-1||a.indexOf("create_account.php")!=-1||a.indexOf("import_local.php")!=-1)h=false;if(h){lpMakeRequestLoc(a,b,c,d,e,f);return}}f||(f=LP.mostRecent());if(lpuid!=null&&lpuid!="")b+=(b!=""?"&":"")+"requid="+LP.en(lpuid);if(lp_phpsessid!=null&&lp_phpsessid!=""&&(a.match(/^https:\/\//i)||lp_url_is_lastpass(a))){b+=(b!=""?"&":"")+"wxsessid="+
LP.en(lp_phpsessid);h=LP.lpprefsHasUserValue("logOffWhenCloseBrowser",true)&&LP.lpprefsGetBoolPref("logOffWhenCloseBrowser",true)==true&&(!LP.lpprefsHasUserValue("logOffWhenCloseBrowserVal",true)||LP.lpprefsGetIntPref("logOffWhenCloseBrowserVal",true)==0);if(lpusername!="")b+="&sessonly="+(h?"1":"0")}if(lppassusernamehash&&lpusername!=""&&lphash!=""&&(a.match(/^https:\/\//i)||lp_url_is_lastpass(a))){b+=(b!=""?"&":"")+"wxusername="+LP.en(lpusername);b+=(b!=""?"&":"")+"wxhash="+LP.en(lphash)}if(a.indexOf("show.php")!=
-1)b+="&token="+LP.en(lptoken);f?f.setTimeout(function(){LP.lpMakeRequestReal(a,b,c,d,e)},0):LP.setTimeout(function(){LP.lpMakeRequestReal(a,b,c,d,e)},0)};function compare_accounts_versions(a,b){return LPISLOC?true:a==b}function parse_query_string(a){var b=[];if(typeof a=="string"&&a!=""){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].split("=");b[d[0]]=d.length>=2?decodeURIComponent(d[1]):""}}return b}function get_new_id(){return++lpmaxid}
function lpMakeRequestLoc(a,b,c,d,e){if(typeof c=="function"){var f=(typeof document!="undefined"?document:LP.getBrowser().contentDocument).implementation.createDocument("","x",null),h,j=null;b=parse_query_string(b);if(a.indexOf("change_pw.php")!=-1){h=f.createElement("ok");h.setAttribute("newpassword",b.password);for(a="";typeof b["id"+a]!="undefined";){var o=b["id"+a];h.setAttribute("id"+a,o);var r;r=typeof g_sites!="undefined"&&typeof g_sites[o]!="undefined"?crypto_btoa(g_sites[o].password):typeof lpaccts!=
"undefined"&&typeof lpaccts[o]!="undefined"?lpaccts[o].password:"";h.setAttribute("oldpassword"+a,r);if(a=="")a=1;else a++}}else if(a.indexOf("deliver_and_add.php")!=-1||a.indexOf("show.php")!=-1&&b["delete"]!="1"){h=null;if(typeof b.url!="undefined")h=b.url;else if(typeof b.ref!="undefined")h=b.ref;var y=r="",q="";if(h)if(h=lp_gettld_url(AES.hex2url(h)))try{rfdefaults||(rfdefaults=JSON.parse(lp_hex2bin(lpReadFile("rfdefaults"))));if(rfdefaults&&typeof rfdefaults[h]!="undefined"){r=rfdefaults[h].submit_id;
y=rfdefaults[h].captcha_id;q=rfdefaults[h].custom_js}}catch(l){}h=f.createElement("result");var n;if(b.replacing==1){n="accountreplaced";o=b.aid}else if(typeof b.aid!="undefined"&&b.aid!="0"){n="accountupdated";o=b.aid}else{n="accountadded";o=get_new_id()}h.setAttribute("msg",n);h.setAttribute("aid",o);b=a.indexOf("deliver_and_add.php")!=-1?get_new_id():typeof g_sites!="undefined"&&typeof g_sites[o]!="undefined"?g_sites[o].urid:typeof lpaccts!="undefined"&&typeof lpaccts[o]!="undefined"?lpaccts[o].urid:
"0";h.setAttribute("urid",b);h.setAttribute("submit_id",r);h.setAttribute("captcha_id",y);h.setAttribute("custom_js",q)}else if(a.indexOf("fields.php")!=-1)h=f.createElement("result");else if(a.indexOf("formfill.php")!=-1&&a.indexOf("logformfill.php")==-1){h=f.createElement("result");if(b.deleteext=="1"){n="ffdeleted";a=b.ffid}else if(b.ffid=="0"){n="ffadded";a=get_new_id()}else{n="ffupdated";a=b.ffid}h.setAttribute("msg",n);h.setAttribute("ffid",a);r=a="";for(y=1;typeof b["customfield"+y+"cfid"]!=
"undefined";y++)if(b["customfield"+y+"cfid"]=="0"){a+=r+get_new_id();r=","}h.setAttribute("cfids",a)}else if(a.indexOf("gm_deliver.php")!=-1){h=f.createElement("ok");h.setAttribute("urid",get_new_id())}else if(a.indexOf("groups.php")!=-1)h=f.createElement("ok");else if(a.indexOf("save_gen_pw.php")!=-1){h=f.createElement("ok");h.setAttribute("url",b.url);h.setAttribute("password",b.password);h.setAttribute("nofill",typeof b.nofill!="undefined"?b.nofill:"0");h.setAttribute("aid",get_new_id())}else if(a.indexOf("show.php")!=
-1&&b["delete"]=="1"){h=f.createElement("result");h.setAttribute("action","delete");h.setAttribute("aid",b.aid)}else if(a.indexOf("api.php")!=-1){h=f.createElement("OK");j="A-OK"}else return;h.setAttribute("accts_version",typeof g_local_accts_version!="undefined"?g_local_accts_version+1:typeof lp_local_accts_version!="undefined"?lp_local_accts_version+1:1);f.documentElement.appendChild(h);var p=[];p.responseXML=f;p.readyState=4;p.status=200;if(j)p.responseText=j;typeof setTimeout=="function"?setTimeout(function(){c(p,
d,e)},0):LP.setTimeout(function(){c(p,d,e)},0)}}function lpgetrequesthash(){var a=lpusername;if((a==""||a==null)&&typeof g_username!="undefined")a=g_username;var b=typeof g_ischrome=="undefined"?"ff":"cr";if(a==""||a==null)return b+"unknown1";a=a.toLowerCase().replace(/\s*/g,"");if(a=="")return b+"unknown2";a=lpenc(a,null,true);if(a=="")return b+"unknown3";return a}
this.lpMakeRequestReal=function(a,b,c,d,e){var f=lpgetlocalts(),h={rid:f+"_"+get_random(1,1E4),ts:f,url:a,params:b};if(!lpisretry(a))if(b.indexOf("?requesthash=")==-1&&b.indexOf("&requesthash=")==-1){b+=(b==""?"":"&")+"requesthash="+encodeURIComponent(lpgetrequesthash());b+=(b==""?"":"&")+"requestsrc="+encodeURIComponent(typeof g_ischrome=="undefined"?"ff":"cr");h.params=b}b=b.replace(/&?sentms=[^\&]+/,"");if(b.substring(0,1)=="?"||b.substring(0,1)=="&")b=b.substring(1);b="sentms="+encodeURIComponent(f)+
(b==""?"":"&"+b);if(b.indexOf("hasplugin=")==-1&&typeof lpversion!="undefined")b+=(b==""?"":"&")+"hasplugin="+encodeURIComponent(lpversion);var j=lpisqueueable(a);f=typeof d=="function"?d:lpmakerequesterror;var o=typeof Components!="undefined"?Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Ci.nsIXMLHttpRequest):new XMLHttpRequest;if(!o){f("objectcreation",h,j);return false}o.onreadystatechange=function(){lpreadystatechange(c,o,d,e,h,j)};try{o.onerror=d&&!j?d:function(y){lpmakerequesterror("onerror",
h,j,y)};o.open("POST",a,true);o.setRequestHeader("Content-Type","application/x-www-form-urlencoded");o.send(b)}catch(r){f("exception",h,j)}};var gPulledInvalidAccts=false;
function lpreadystatechange(a,b,c,d,e,f){if(b.readyState==4&&b.status==200){lpisconnected=true;var h=lpisretry(e.url),j=null;if(h){j=lpgetretryrid(e.url);if(!j)return}if(b.responseXML&&b.responseXML.documentElement){var o=b.responseXML.documentElement.getElementsByTagName("error");if(o&&o.length>0){var r=o[0].getAttribute("cause");if(r&&"oldpassword"==r){if(typeof lpDeleteFile=="function"){lpDeleteFile(lpusername+"_lp.act.xml");lpDeleteFile(lpusername+"_lps.act.xml");lpDeleteFile(lpusername_hash+
"_lp.act.xml");lpDeleteFile(lpusername_hash+"_lps.act.xml");lpDeleteFile(lpusername_hash+"_lps.act.sxml")}lplogoff(false,"ff_oldpassword")}if((r=o[0].getAttribute("notloggedin"))&&r=="1"){h?lpretryrequestdone(j,false):lpmakerequesterror("notloggedin",e,f);a.toString().substring(0,100);lplogoff(false,"ff_servernotloggedin");lpshowError("ErrorSessionMsg",false,true);return}if((o=o[0].getAttribute("oldretry"))&&o=="1"){if(h){lpretryrequestdone(j,true);return}lpReportError("SK:ERROR : received oldretry=1 for non retry request!",
null);return}}}o=false;if(is_valid_xml(b))o=true;else{if(b.responseText&&(b.responseText=="latest"||b.responseText=="nodata"||b.responseText.indexOf("iconsversion")==0))o=true;if(e.url.indexOf("logout.php")>=0)o=true;if(e.url.indexOf("error.php")>=0)o=true;if(e.url.indexOf("prof.php")>=0)o=true;if(e.url.indexOf("getappdata.php")>=0)o=true;if(e.url.indexOf("country_from_ip.php")>=0)o=true;if(e.url.indexOf("loglogin.php")>=0)o=true;if(e.url.indexOf("logformfill.php")>=0)o=true;if(e.url.indexOf("httptest.php")>=
0)o=true;if(e.url.indexOf("set_never_autofill.php")>=0)o=true;if(e.url.indexOf("help.php")>=0)o=true;if(e.url.indexOf("create_account.php")>=0)o=true;if(typeof FROMPARTNER!="undefined")o=true;if(e.url.indexOf("getaccts.php")>=0)if(e.url.indexOf("mobile")>=0)o=true;else{if(typeof LP!="undefined")if(gPulledInvalidAccts==false){LP.lpGetAccounts();gPulledInvalidAccts=true}lpReportError("ERROR: Got invalid xml from getaccts")}}if(h)lpretryrequestdone(j,o);else if(o){if(typeof a=="function"){if(!lploggedin){e=
a.toString().substring(0,100);if(e.indexOf("poll_server_response")!=-1){lplogoff(false,"ff_sessionexp");lpshowError("ErrorSessionMsg",false,true);return}}a(b,c,d)}}else lpmakerequesterror("invalidresponse",e,f)}else b.readyState==4&&typeof c=="function"&&c()}
function is_valid_xml(a){return a.responseXML&&a.responseXML.documentElement?typeof a.responseXML.documentElement.nodeName!="undefined"&&a.responseXML.documentElement.nodeName=="parsererror"&&typeof a.responseXML.documentElement.namespaceURI!=undefined&&a.responseXML.documentElement.namespaceURI=="http://www.mozilla.org/newlayout/xml/parsererror.xml"?false:true:false}function lpisretry(a){return a.indexOf("?rid=")>0||a.indexOf("&rid=")>0}
function lpgetretryrid(a){a=/[?&]rid=([^&]+)/.exec(a);if(!a||a.length!=2){lpReportError("SK:lpgetretryrid - could not find rid in url",null);return null}return a[1]}function lpisqueueable(a){if(lpisretry(a))return false;var b=["add_never.php","change_pw.php","deliver_and_add.php","formfill.php","gm_deliver.php","save_gen_pw.php","set_autologin.php","set_never_autofill.php","show.php","fields.php","addapp.php"],c;for(c in b)if(a.indexOf(b[c])>=0)return true;return false}
function lpretryinsert(a){var b=lpreadretryfile(true),c=a.rid,d=a.ts,e=null,f;for(f in b){if(b[f].rid==c){lpReportError("SK:We tried to append a row with an idential rid value",null);return false}if(e==null){var h=parseInt(b[f].ts);if(d<h)e=f}}if(e==null)b[b.length]=a;else{c=[];for(f in b){if(f==e)c[c.length]=a;c[c.length]=b[f]}b=c}if(!lpwriteretryfile(b)){lpReportError("SK:Could not write to retry file in lpretryinsert",null);return false}return true}
var g_retry={exit:null,error:false,rid:null,status:null,sentms:null,donems:null,retryintervalms:0,initretryintervalms:0,responsewaitms:1E4};
function lpretryrequestdone(a,b){if(b)if(lpremovefromretryfile(a)){g_retry.status="done";g_retry.donems=(new Date).getTime();lpchangeretryinterval(false)}else{lpReportError("SK:lpremovefromretryfile failed for rid="+a,null);lplogretryfile("SK:lpremovefromretryfile failed for rid="+a+". Contents of retry file:");g_retry.exit=true}else{g_retry.status="failed";g_retry.donems=(new Date).getTime();lpchangeretryinterval(true,true,a)}}var aNumretryattempts=[];
function lpchangeretryinterval(a,b,c){if(a){a=b?864E5:6E5;var d=2*g_retry.retryintervalms;if(d==0)d=2E3;else if(d>a)d=a;g_retry.retryintervalms=d;if(b){if(typeof aNumretryattempts[c]=="undefined")aNumretryattempts[c]=0;aNumretryattempts[c]++;if(aNumretryattempts[c]==16){aNumretryattempts[c]=0;lpremovefromretryfile(c)}}}else g_retry.retryintervalms=g_retry.initretryintervalms}
this.lpretryrequests=function(){if(lploggedin&&multifactor_getdata("type")=="omnikey")if(typeof lpusexpcom=="function"&&lpusexpcom()&&typeof lpxpcomobj.omnikey_supported=="function"&&!lpxpcomobj.omnikey_supported())lplogoff(false,"ff_omnikey");else typeof have_nplastpass=="function"&&have_nplastpass()&&typeof g_nplastpass.omnikey_supported=="function"&&!g_nplastpass.omnikey_supported()&&lplogoff(false,"ff_omnikey2");if(!g_retry.exit)if(lploggedin){if(g_retry.status=="started"){if((new Date).getTime()-
g_retry.sentms<=g_retry.responsewaitms){LP.lpGetCurrentWindow().setTimeout("LP.lpretryrequests()",1E4);return}lpchangeretryinterval(true,false);g_retry.donems=(new Date).getTime();g_retry.rid=null;g_retry.sentms=null;g_retry.status=null}if(!(g_retry.donems&&(new Date).getTime()-g_retry.donems<g_retry.retryintervalms)){g_retry.rid=null;g_retry.sentms=null;g_retry.status=null;g_retry.donems=null;var a=lpreadretryfile();if(a.length!=0){var b=a[0];a=b.url;var c=b.rid,d=b.ts;a+=(a.indexOf("?")==-1?"?":
"&")+"rid="+encodeURIComponent(c);a+="&localts="+encodeURIComponent(d);g_retry.rid=c;g_retry.sentms=(new Date).getTime();g_retry.status="started";b=b.params;b=b==null||b==""?"debugcase=noparams":b.substring(0,1)=="?"?"debugcase=startswithquestion&"+b.substring(1):b.substring(0,1)=="&"?"debugcase=startswithampersand&"+b.substring(1):"debugcase=allok&"+b;LP.lpMakeRequest(a,b,null,null,null)}}LP.lpGetCurrentWindow().setTimeout("LP.lpretryrequests()",1E4)}};var g_retrycache=null,lp_old_file_cleanup=true;
function lpremovefromretryfile(a){var b=lpreadretryfile(true);if(b.length==0)return true;var c,d=false,e=[];for(c=0;c<b.length;++c)if(b[c].rid==a)d=true;else e[e.length]=b[c];if(!d){lplogretryfile("SK:lpremovefromretryfile : ERROR could not find rid="+a+". Contents of retry file:");return false}if(!lpwriteretryfile(e))return false;e.length==0&&LP.lpGetAccounts();return true}
function lplogretryfile(a){var b=lpreadretryfile(true),c;for(c in b){a+="\n["+c+"] :";for(var d in b[c])a+=" "+d+"->"+b[c][d]}}
function lpreadretryfile(a){if(g_retrycache==null||a){a=[];var b=lpreadretry();if(b==null)return a;else if(b=="")return g_retrycache=a;b=lpdec(b);if(b==""||b==null){lpReportError("Failed to decrypt retry data",null);lpdeleteretry();return a}b=lpatob(b);if(b==null){lpReportError("Failed to lpatob decrypted retry data (so perhaps decryption failed)",null);lpdeleteretry();return a}var c=b.indexOf(">LastPassRetry");if(b.length<28||b.indexOf("LastPassRetry<")!=0||c!=b.length-14){lpReportError("Retry data format after decryption invalid: end="+
c+" data="+b,null);lpdeleteretry();return a}b=b.substring(14,c);if(b!=""){b=b.split("\n");for(c=0;c<b.length;++c)a[a.length]=lpxml2array(b[c])}g_retrycache=a}return g_retrycache}function lpwriteretryfile(a){var b="",c;for(c=0;c<a.length;++c)b+=(c==0?"":"\n")+lparray2xml("row",a[c]);a=lpbtoa("LastPassRetry<"+b+">LastPassRetry");if(a==null)return false;a=lpenc(a);if(a==""||a==null)return false;g_retrycache=null;a=lpwriteretry(a);lpreadretryfile(true);return a}
function lpxml2array(a){var b=[],c=/<([^ ]+) ?(.*)\/>/;c=c.exec(a);if(!c||c.length!=3)return b;a=c[2];c=/([^=]+)="([^"]*)"/;for(var d=null;(d=c.exec(a))!=null;){if(d.length!=3)break;var e=d[1].toString();d=d[2].toString();a=a.replace(e+'="'+d+'"',"");e=lptrim(e);d=lpxmlunescape(d);if(e=="null")d=null;else if(e=="false")d=false;b[e]=d}return b}
function lparray2xml(a,b){var c="<"+a,d;for(d in b){if(b[d]==null)b[d]="null";if(typeof b[d]=="object")b[d]="null";c+=" "+d+'="'+lpxmlescape(b[d].toString())+'"'}c+="/>";return c}this.lplogincheck=function(a){LP.mostRecent().setTimeout(function(){lp_logincheckhelper(a)},100)};var lplastlogincheck=0;
function lp_logincheckhelper(a,b,c,d){var e=(new Date).getTime();if(!(e-lplastlogincheck<1E3)){lplastlogincheck=e;lpSetupXHRIntercepts();yubikey_cleardata();googleauth_cleardata();sesame_cleardata();grid_cleardata();multifactor_cleardata();loginoffline(true,a);!lploggedin&&!lploggedinoffline&&LP.lp_handle_buttons_all("loggingin");e="version="+LP.en(lpversion)+"&method="+LP.get_method()+"&hp="+(LP.IsHomePage()?"1":"0");e+=b?"&sessionid="+LP.en(b):"";e+=c?"&wxusername="+LP.en(c):"";e+=d?"&wxhash="+
LP.en(d):"";e+="&uuid="+LP.en(LP.getuuid());sesame_setdata("logincheckpostdata",e);if(WAVTOOLBAR){lphash=lpusername_hash=lpusername="";CHANGEKEY("");LP.mostRecent().setTimeout(function(){lpnp_notify("logincheck")},2E3)}else{lastpoll=lp_get_gmt_timestamp();LP.lpMakeRequest(LP.lp_base+"login_check.php",e,lpLoginCheckResponse,function(){lpLoginCheckErrorHandler(a,"makerequest")},a)}}}var lplogincheckerrorhandlercalled=0;
function lpLoginCheckErrorHandler(a,b){var c=(new Date).getTime();if(!(c-lplogincheckerrorhandlercalled<1E3)){lplogincheckerrorhandlercalled=c;!lploggedin&&!lploggedinoffline&&LP.lp_handle_buttons_all("off");if(!lp_login_from_saved(a))if(!lploggedinoffline)if(a=="httptest"&&lpopenloginstart)LP.lpOpenLogin();else if(!(b=="noexistingsession"||b=="nokeyfileA"||b=="nokeyfileB"))if(b=="invalidresponse"||b=="exception")lpshowError("LoginError",false,true);else b=="makerequest"?lpshowError("ErrorLoginMsg"):
lpshowError("LoginError",false,true)}}this.lplogin=function(a,b,c,d){LP.mostRecent().setTimeout(function(){lp_loginhelper(a,b,c,d);b="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"},100)};
function lp_loginhelper_wav_delayedasologincheck(a){lploggedinoffline=lploggedin=false;lphash=lpusername_hash=lpusername="";fix_toolbar_mode();CHANGEKEY("");if(a==lpWRWEBSITELOGIN_ASOREGISTRY){lpdonotrefreshwindowsts=(new Date).getTime();LP.mostRecent().setTimeout(function(){lpnp_notify("logincheck",{data0:"donotignoreself"})},2E3)}else LP.mostRecent().setTimeout(function(){lpnp_notify("logincheck")},2E3)}
function lp_loginhelper_wav_loginuntrusted(){lpuid="";lploggedin=true;lpisadmin=lploggedinoffline=false;lploglogins=0;lpemail="";lp_server_accts_version=lp_local_accts_version=-1;lpLastPwPrompt=0;LP.lp_handle_buttons_all("in");OnAllLogins();lpdonotrefreshwindowsts=null;lprefreshwindows()}
function lp_loginhelper(a,b,c,d){lpSetupXHRIntercepts();if(WISCTOOLBAR||WAVTOOLBAR)if(c==lpWRWEBSITELOGIN_ASOREGISTRY)lpnp_notify("login",{data0:a,data1:lphash,data2:lp_local_key_hex});else if(c==lpWRPLUGINLOGIN_ASOREGISTRY)lpnp_notify("login",{data0:a,data1:lphash,data2:lp_local_key_hex});else c!=lpWRNAMEDPIPELOGIN_ASOREGISTRY&&lpnp_notify("login",{data0:a,data1:b});if(WAVTOOLBAR)c=="namedpipes"||c==lpWRNAMEDPIPELOGIN_ASOREGISTRY?lp_loginhelper_wav_loginuntrusted(c):lp_loginhelper_wav_delayedasologincheck(c);
else{if(typeof lpDeleteFile=="function"){lpDeleteFile(a+"_lp.act.xml");lpDeleteFile(a+"_lps.act.xml")}yubikey_cleardata();googleauth_cleardata();sesame_cleardata();grid_cleardata();d||multifactor_cleardata();if(!(c==lpWRWEBSITELOGIN_ASOREGISTRY||c==lpWRNAMEDPIPELOGIN_ASOREGISTRY||c==lpWRPLUGINLOGIN_ASOREGISTRY)){lpusername=a.toLowerCase().replace(/\s*/g,"");lpusername_hash=lp_sha256(lpusername);fix_toolbar_mode();a=LP.make_lp_key(lpusername,b);lphash=LP.make_lp_hash(lpusername,a,b);CHANGEKEY(a)}lpRenameFile(lpusername_hash+
"_lp.key",lpusername_hash+"_lp.act.key");lpRenameFile(lpusername_hash+"_lp.act.key",lpusername_hash+"_lp.act.lps");lpRenameFile(lpusername_hash+"_lp.act.lps",lpusername_hash+"_lpall.lps");lploggedinoffline||loginoffline(true,c);!lploggedin&&!lploggedinoffline&&LP.lp_handle_buttons_all("loggingin");a="xml=2&username="+LP.en(lpusername)+"&method="+LP.get_method()+"&hash="+lphash+"&version="+LP.en(lpversion);a+="&hp="+(LP.IsHomePage()?"1":"0");a+="&encrypted_username="+LP.en(lpenc(lpusername,null,true));
a+="&uuid="+LP.en(LP.getuuid());if(typeof lpoverridelang!="undefined")a+="&lang="+LP.en(lpoverridelang);a+="&iterations="+LP.en(LP.get_key_iterations(lpusername));if(c==lpWRWEBSITELOGIN_ASOREGISTRY||c==lpWRNAMEDPIPELOGIN_ASOREGISTRY||c==lpWRPLUGINLOGIN_ASOREGISTRY)a+="&wrfrom="+LP.en(c);if(LP.lpdolostpwotp&&(!LP.lpprefsHasUserValue("StoreLostPWOTP")||LP.lpprefsGetBoolPref("StoreLostPWOTP")))a+="&lostpwotphash="+LP.en(LP.GetOTPHash());else LP.DeleteOTP();sesame_cleardata();sesame_setdata("postdata",
a);sesame_setdata("from",c);yubikey_cleardata();yubikey_setdata("postdata",a);yubikey_setdata("from",c);yubikey_setdata("p",b);googleauth_cleardata();googleauth_setdata("postdata",a);googleauth_setdata("from",c);googleauth_setdata("p",b);grid_cleardata();grid_setdata("postdata",a);grid_setdata("from",c);d||multifactor_cleardata();multifactor_setdata("postdata",a);multifactor_setdata("from",c);a+="&otp=";a+="&sesameotp=";a+="&gridresponse=";a+="&multifactorresponse=";lastpoll=lp_get_gmt_timestamp();
LP.lpMakeRequest(LP.lp_base+"login.php",a,lpLoginResponse,function(){lpLoginErrorHandler(c)},c)}}var lploginerrorhandlercalled=0;function lpLoginErrorHandler(a){var b=(new Date).getTime();if(!(b-lploginerrorhandlercalled<1E3)){lploginerrorhandlercalled=b;!lploggedin&&!lploggedinoffline&&LP.lp_handle_buttons_all("off");loginoffline(false,a)}}
function loginoffline(a,b){if(!WAVTOOLBAR){if(lp_local_key==""||lpusername==""||lpusername_hash==""){if(b=="frompipes")return;var c=lp_getlastusercredentials();if(!c){if(LPISLOC)if(b!="httptest")lpshowError("LoginError",false,true);else lpopenloginstart&&LP.setTimeout(function(){LP.lpOpenLogin()},0);return}var d=c.password;lpusername=c.username.toLowerCase().replace(/\s*/g,"");lpusername_hash=lp_sha256(lpusername);var e=LP.make_lp_key(lpusername,d);lphash=LP.make_lp_hash(lpusername,e,d);fix_toolbar_mode();
CHANGEKEY(e);d="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";d="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";c.password="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";c.password="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}if(a){if(!lploggedinoffline){if(lp_local_key==
null||lp_local_key==""){var f=readkeyfile(lpusername);if(!f){LPISLOC&&lpshowError("LoginError",false,true);return}}if(f=load_accounts_file(lpusername_hash,true,false)){f=f.substring(0,200);f.indexOf("type=sesameoffline\ndata=")>=0||f.indexOf("type=trueapioffline\ndata=")>=0||f.indexOf("type=omnikeyoffline\ndata=")>=0||f.indexOf("type=yubikeyoffline\ndata=")>=0||f.indexOf("type=yubikeyofflinemulti\nkeys=")>=0||offlineloginsuccessful(b,true)}else LPISLOC&&lpshowError("LoginError",false,true)}}else if(!lploggedinoffline){LP.lp_handle_buttons_all("off");
if(lp_local_key==null||lp_local_key==""){f=readkeyfile(lpusername);if(!f){lpshowError("LoginError",false,true);return}}if(f=load_accounts_file(lpusername_hash,true,false)){f=f.substring(0,1200);if(f.indexOf("type=sesameoffline\ndata=")>=0){for(c="";;){c=sesame_getotp(null);if(c==""||c.length!=64){if(c.length>64){LP.alert(LP.lpgs("SesameWrongButton"));continue}lplogoff(false,"ff_sesameoffline");lpshowError("LoginError",false,true);return}break}sesame_setdata("password_offline",c)}else if(f.indexOf("type=trueapioffline\ndata=")>=
0||f.indexOf("type=omnikeyoffline\ndata=")>=0){d=f.indexOf("type=trueapioffline\ndata=")>=0?"trueapi":"omnikey";c="";if(multifactor_getdata("type")==d)c=multifactor_getdata("password_offline");if(!c||c.length!=64)c=lp_sha256(lp_sha256(fix_username(lpusername)+d));if(!c||c.length!=64)for(;;){if(d=="trueapi"){if(lpusexpcom()&&LP.lpis_win&&typeof lpxpcomobj.trueapi_get_hash=="function")c=lpxpcomobj.trueapi_get_hash(lpusername)}else if(d=="omnikey")if(lpusexpcom()&&typeof lpxpcomobj.omnikey_get_public_key==
"function")c=lpxpcomobj.omnikey_get_public_key(omnikey_get_pin());if(c==""||c.length!=64){c=get_multifactor_disable_url(lpusername,d);lplogoff(false,"ff_trueapioffline");lpshowError("LoginError",false,true,false,c);return}break}multifactor_setdata("password_offline",c);multifactor_setdata("type",d)}else if(f.indexOf("type=yubikeyoffline\ndata=")>=0){c=yubikey_getotp(null);if(c==""||c.length!=44){lplogoff(false,"ff_yubioffline");lpshowError("LoginError",false,true);return}c=c.substring(0,12);c=lp_sha256(lp_sha256(lp_sha256(fix_username("LastPassIsGreat")+
c)+c));yubikey_setdata("password_offline",c)}else if(f.indexOf("type=yubikeyofflinemulti\nkeys=")>=0){c=yubikey_getotp(null);if(c==""||c.length!=44){lplogoff(false,"ff_no yubi");lpshowError("LoginError",false,true);return}c=c.substring(0,12);c=lp_sha256(lp_sha256(lp_sha256(fix_username("LastPassIsGreat")+c)+c));d=f.indexOf("type=yubikeyofflinemulti\nkeys=");f=f.substring(d);d=false;var h=f.indexOf("\n",30);if(h>0){e=lp_sha256(c);var j=f.substring(30,h);f=f.substring(h+6);f=j.split("&");var o;for(h=
0;h<f.length;++h){o=f[h].split("#");if(o.length==2){var r=o[1];if(e==o[0]){o=lpdec(r,lp_hex2bin(c));if(o!=""){d=true;yubikey_setdata("password_offline",c);yubikey_setdata("password_keysline",j);yubikey_setdata("password_server",o)}}}}}if(!d){lplogoff(false,"ff_otpkeydecrypt");lpshowError("LoginError",false,true);return}}offlineloginsuccessful(b,false)}else lpshowError("LoginError",false,true)}}}
function offlineloginsuccessful(a,b){if(LPISLOC&&a=="pluginlogin"&&(!LP.lpprefsHasUserValue("showHomepageAfterLogin",false)||LP.lpprefsGetBoolPref("showHomepageAfterLogin",false)))launchHomeIf();OnAllLogins();lpuid="";lploggedinoffline=lploggedin=true;lpisadmin=false;lploglogins=LPISLOC?1:0;lpemail="";lp_server_accts_version=lp_local_accts_version=-1;lpLastPwPrompt=0;fix_toolbar_mode();LP.lp_handle_buttons_all("in");lpGetAccountsLocal(true);if(lpnotifytimerid){LP.mostRecent().clearTimeout(lpnotifytimerid);
lpnotifytimerid=null}lpnotifytimerid=LP.mostRecent().setTimeout('LP.notifyoffline("'+a+'");',b?3E4:0);if(!(a==lpWRWEBSITELOGIN_ASOREGISTRY||a==lpWRNAMEDPIPELOGIN_ASOREGISTRY||a==lpWRPLUGINLOGIN_ASOREGISTRY)){if(lpretryonlinetimerid){LP.mostRecent().clearTimeout(lpretryonlinetimerid);lpretryonlinetimerid=null}lpretryonlinetimerid=LP.mostRecent().setTimeout("LP.retryonlinelogin(30000);",3E4)}}
function OnAllLogins(){LP.lpprefsSetBoolPref("ffhasloggedin",true,false);LP.SetupUserPreferences();LP.lpSetupIdleTimer();if(!LP.lpprefsHasUserValue("ffhasloggedinsuccessfully",false)){LP.lpprefsSetBoolPref("ffhasloggedinsuccessfully",true,false);LP.flush_prefs()}}
this.notifyoffline=function(a){if(lploggedin&&lploggedinoffline){lp_showNotification("LoggedInOffline",null,0,"offline");if((a=="pluginlogin"||a=="createaccount"||a==lpWRPLUGINLOGIN_ASOREGISTRY)&&(!LP.lpprefsHasUserValue("showHomepageAfterLogin",false)||LP.lpprefsGetBoolPref("showHomepageAfterLogin",false)))launchHomeIf()}};
this.retryonlinelogin=function(a){if(lploggedin&&lploggedinoffline){LP.lplogincheck("retryonline");a=2*a;if(a>12E5)a=12E5;LP.mostRecent().setTimeout("LP.retryonlinelogin("+a+");",a)}};function readenckeyfromkeyfile(a){a=readkeyfile(a,null,false);if(!a)return null;return a.split("\n")[0]}
function readkeyfile(a,b,c,d){var e=typeof b=="undefined"||b==null?lp_local_key:b,f=typeof c=="undefined"||c?true:false,h=lp_sha256(a),j=lpReadFile(h+"_lpall.slps");if(j)j=lp_unprotect_data(j,true);else if(j=lpReadFile(h+"_lpall.lps")){a=lp_protect_data(j,true);lpWriteFile(h+"_lpall.slps",a);lpDeleteFile(h+"_lpall.lps")}else{j=lpReadFile(a+"_lp.act.lps");if(!j)if(LPISLOC&&LPISUPEK&&!d&&lp_hex2bin(lp_sha256(a+""))!=lp_local_key){lppwdeckey=lp_local_key;lpWriteKeyFile();e={};e.accts_version=0;e.sites=
[];e.securenotes=[];e.prompts=[];if(LPISUPEK){e.prompts.login_site_prompt=true;e.prompts.edit_site_prompt=true;e.prompts.edit_sn_prompt=true;e.prompts.view_pw_prompt=true;e.prompts.view_ff_prompt=true;e.prompts.switch_identity_prompt=true;e.prompts.switch_f_prompt=true;e.prompts.multifactor_reprompt=true}e.formfills=[];e.identities=[];e.equivalentdomains=[];e.neverurls=[];e.premium_exp=0;e.enterpriseuser=0;e.encrypted_username=lpenc(lpusername,null,true);e.pendings=[];e.shareeautopushes=[];e.maxid=
[];e.maxid.maxid=0;e.urlrules=[];save_accounts_file(e,null,"readkeyfile");return readkeyfile(a,b,c,true)}else return null;lpRenameFile(a+"_lp.act.lps",h+"_lpall.lps")}a=j.split("\n");if(a.length!=2)return null;if(f){if(e=="")return null;if(lpdec(a[1],e,true)!="lastpass rocks")return null}return j}
function lpLoginCheckResponse(a,b,c){try{if(!(!a||a.readyState!=4))if(a.status!=200||a.responseXML==null||a.responseXML.documentElement==null)typeof b=="function"&&b();else{var d=a.responseXML.documentElement,e=d.getElementsByTagName("ok");if(!e||e.length==0){var f=d.getElementsByTagName("error");if(f&&f.length>0&&f[0].hasAttribute("invalidsession")){lplogoff(false,"ff_invalidsess2");LP.lpClearCache(true,false,false);lpopen(LP.lp_base+"invalidsession.php",true);lpshowError("LoginError",false,true)}else if(f&&
f.length>0&&f[0].hasAttribute("silent")&&parseInt(f[0].getAttribute("silent"))==1){if(!LP.lpprefsHasUserValue("ffhasloggedin",false)){LP.lpprefsSetBoolPref("ffhasloggedin",true,false);LP.flush_prefs();!lphidewelcome&&!LP.isFennec&&LP.OpenCreateAccount()}lpLoginCheckErrorHandler(c,"noexistingsession")}else{lpReportError("login_check.php returned invalid response text="+a.responseText);lpLoginCheckErrorHandler(c,"invalidresponse")}}else{lppwdeckey=lp_hex2bin(lp_sha256(e[0].getAttribute("pwdeckey")));
lpusername=e[0].getAttribute("lpusername");lpusername_hash=lp_sha256(lpusername);lpuid=e[0].getAttribute("uid");if(e[0].getAttribute("pwresetreqd")=="1")LP.lpbaseopenifnotopen("passwordreset.php?u="+LP.en(lpusername));else{if(!(c=="websitelogin"||c==lpWRWEBSITELOGIN||c==lpWRWEBSITELOGIN_ASOREGISTRY||c=="websiterefresh"||c=="websiterefreshrsa"||c=="frompipes")&&c!="preferences"&&LP.lpprefsHasUserValue("logOffWhenCloseBrowser")&&LP.lpprefsGetBoolPref("logOffWhenCloseBrowser")){var h=LP.lpprefsHasUserValue("lastpollcheck")?
LP.lpprefsGetIntPref("lastpollcheck"):0,j=LP.lpprefsHasUserValue("logOffWhenCloseBrowserVal")?LP.lpprefsGetIntPref("logOffWhenCloseBrowserVal"):0;if(lp_get_gmt_timestamp()-h>=j*60){lplogoff(false,"ff_logOffWhenCloseBrowser");lpopenloginstart&&LP.setTimeout(function(){LP.lpOpenLogin()},0);return}}var o;if(lp_local_key==""){var r=readenckeyfromkeyfile(lpusername);if(!r){lpLoginCheckErrorHandler(c,"nokeyfileA");return}o=lp_hex2bin(lpdec(r,lppwdeckey,true));if(!readkeyfile(lpusername,o)){lpLoginCheckErrorHandler(c,
"nokeyfileB");return}}if(e[0].hasAttribute("iterations")){var y=e[0].getAttribute("iterations");lpWriteFile(lp_sha256(lpusername)+"_key.itr",y)}if(c=="httptest"){var q=e[0].getAttribute("sesamepassword")!=null&&e[0].getAttribute("sesamepassword")!=""?true:false,l=e[0].getAttribute("yubikeyenabled")!=null&&e[0].getAttribute("yubikeyenabled")=="1"?true:false,n=e[0].getAttribute("googleauthenabled")!=null&&e[0].getAttribute("googleauthenabled")=="1"?true:false,p=e[0].getAttribute("multifactorenabled")!=
null&&e[0].getAttribute("multifactorenabled")!=""?true:false,s=e[0].getAttribute("sesameotpok")!=null&&e[0].getAttribute("sesameotpok")!=""?true:false,A=e[0].getAttribute("yubikeyotpok")!=null&&e[0].getAttribute("yubikeyotpok")!=""?true:false,u=e[0].getAttribute("googleauthotpok")!=null&&e[0].getAttribute("googleauthotpok")!=""?true:false,w=e[0].getAttribute("multifactorresponseok")!=null&&e[0].getAttribute("multifactorresponseok")!=""?true:false;if(q)if(!s){var D=sesame_getotp(lpusername);if(D==
""){lplogoff(false,"ff_nosesame");lpshowError("LoginError",false,true);return}var B=sesame_getdata("logincheckpostdata")+"&sesameotp="+encodeURIComponent(D);if(sesame_getdata("label"))B+="&trustlabel="+LP.en(sesame_getdata("label"));LP.lpMakeRequest(LP.lp_base+"login_check.php",B,lpLoginCheckResponse,function(){lpLoginCheckErrorHandler(c,"makerequest")},c);return}if(l)if(!A){D=yubikey_getotp(lpusername);if(D==""){lplogoff(false,"ff_noyubi");lpshowError("LoginError",false,true);return}B=sesame_getdata("logincheckpostdata")+
"&otp="+encodeURIComponent(D);if(yubikey_getdata("label"))B+="&trustlabel="+LP.en(yubikey_getdata("label"));LP.lpMakeRequest(LP.lp_base+"login_check.php",B,lpLoginCheckResponse,function(){lpLoginCheckErrorHandler(c,"makerequest")},c);return}if(n)if(!u){D=googleauth_getotp(lpusername);if(D==""){lplogoff(false,"ff_nogoogle");lpshowError("LoginError",false,true);return}B=sesame_getdata("logincheckpostdata")+"&otp="+encodeURIComponent(D);if(googleauth_getdata("label"))B+="&trustlabel="+LP.en(googleauth_getdata("label"));
LP.lpMakeRequest(LP.lp_base+"login_check.php",B,lpLoginCheckResponse,function(){lpLoginCheckErrorHandler(c,"makerequest")},c);return}if(!checkGridEnabled(e,c))return;if(p)if(w)multifactor_getdata("type")=="omnikey"&&multifactor_setdata("password_offline",e[0].getAttribute("multifactorofflinepassword"));else{var C=e[0].getAttribute("type");a="";if(C=="trueapi"){var H=lp_sha256(lp_sha256(fix_username(lpusername)+C));if(H.length!=64)if(lpusexpcom()&&LP.lpis_win&&typeof lpxpcomobj.trueapi_get_hash=="function")H=
lpxpcomobj.trueapi_get_hash(lpusername);multifactor_setdata("password_offline",H);multifactor_setdata("type",C);a=H!=""?lp_sha256(H+e[0].getAttribute("challenge")):""}else if(C=="omnikey"){multifactor_setdata("type",C);if(lpusexpcom()&&typeof lpxpcomobj.omnikey_decrypt=="function")a=lpxpcomobj.omnikey_decrypt(e[0].getAttribute("challenge"),omnikey_get_pin())}if(a==""){var I=get_multifactor_disable_url(lpusername,C);lplogoff(false,"ff_nomulti");lpshowError("LoginError",false,true,false,I);return}B=
sesame_getdata("logincheckpostdata")+"&multifactorresponse="+encodeURIComponent(a);if(multifactor_getdata("label"))B+="&trustlabel="+LP.en(multifactor_getdata("label"));if(e[0].getAttribute("wxsessid"))B+="&wxsessid="+LP.en(e[0].getAttribute("wxsessid"));LP.lpMakeRequest(LP.lp_base+"login_check.php",B,lpLoginCheckResponse,function(){lpLoginCheckErrorHandler(c,"makerequest")},c);return}}if(lp_local_key==null||lp_local_key=="")CHANGEKEY(o);lpLoginCommon(e,c,true)}}}}catch(M){lpReportError("Failure in lpLoginCheckResponse: "+
M+" ln: "+M.lineNumber);lpLoginCheckErrorHandler(c,"exception")}}
function checkGridEnabled(a,b){if(b!="httptest")return true;var c=a[0].getAttribute("gridenabled")!=null&&a[0].getAttribute("gridenabled")!=""?true:false,d=a[0].getAttribute("gridresponseok")!=null&&a[0].getAttribute("gridresponseok")!=""?true:false;if(c)if(!d){c=grid_getvalues(lpusername,a[0].getAttribute("challenge"));if(c==""){lplogoff(false,"ff_nogrid");lpshowError("LoginError",false,true);return}c=sesame_getdata("logincheckpostdata")+"&gridresponse="+encodeURIComponent(c);if(grid_getdata("label"))c+=
"&trustlabel="+LP.en(grid_getdata("label"));if(a[0].getAttribute("wxsessid"))c+="&wxsessid="+LP.en(a[0].getAttribute("wxsessid"));LP.lpMakeRequest(LP.lp_base+"login_check.php",c,lpLoginCheckResponse,function(){lpLoginCheckErrorHandler(b,"makerequest")},b);return false}return true}
function lpLoginResponse(a,b,c){try{if(!(!a||a.readyState!=4))if(a.status!=200||a.responseXML==null||a.responseXML.documentElement==null){lpReportError("Problem with login response. status="+a.status+" text="+a.responseText,null);typeof b=="function"&&b()}else{var d=a.responseXML.documentElement,e=d.getElementsByTagName("ok");if(!e||e.length==0){var f=d.getElementsByTagName("error");if(f&&f.length>0&&f[0].hasAttribute("iterations")){var h=f[0].getAttribute("iterations");lpWriteFile(lp_sha256(lpusername)+
"_key.itr",h);LP.lplogin(lpusername,yubikey_getdata("p"),yubikey_getdata("from"))}else{f&&f.length>0&&f[0].hasAttribute("openurl")&&LP.lpanyopen(f[0].getAttribute("openurl"));var j=f.length==0?"":a.responseText;if(f&&f.length>0&&f[0].hasAttribute("invalidsession")){lplogoff(false,"ff_invalidsession");LP.lpClearCache(true,false,false);lpopen(LP.lp_base+"invalidsession.php",true);lpshowError("LoginError",false,true)}else if(j&&j.indexOf("blacklist")>0){lplogoff(false,"ff_blacklisted");LP.lpClearCache(true,
false,false);lpshowError("Blacklist",false,true)}else if(j&&j.indexOf("sesameotprequired")>0){LP.lpClearCache(true,false,false);var o=sesame_getotp(lpusername);if(o==""){lplogoff(false,"ff_nosesame");lpshowError("LoginError",false,true)}else{var r=sesame_getdata("postdata")+"&sesameotp="+encodeURIComponent(o),y=sesame_getdata("from");if(sesame_getdata("label"))r+="&trustlabel="+LP.en(sesame_getdata("label"));LP.lpMakeRequest(LP.lp_base+"login.php",r,lpLoginResponse,function(){lpLoginErrorHandler(y)},
y)}}else if(j&&j.indexOf("sesameotpfailed")>0){LP.lpClearCache(true,false,false);lplogoff(false,"ff_sesamefailed");lpshowError("LoginError",false,true)}else if(j&&j.indexOf("otprequired")>0){LP.lpClearCache(true,false,false);o=yubikey_getotp(lpusername);if(o==""){lplogoff(false,"ff_noyubi");lpshowError("LoginError",false,true)}else{r=yubikey_getdata("postdata")+"&otp="+encodeURIComponent(o);y=yubikey_getdata("from");if(yubikey_getdata("label"))r+="&trustlabel="+LP.en(yubikey_getdata("label"));LP.lpMakeRequest(LP.lp_base+
"login.php",r,lpLoginResponse,function(){lpLoginErrorHandler(y)},y)}}else if(j&&j.indexOf("otpfailed")>0){LP.lpClearCache(true,false,false);lplogoff(false,"ff_yubifailed");lpshowError("LoginError",false,true)}else{if(j&&j.indexOf("googleauthfailed")>0){var q=googleauth_getdata("fail_count");if(q==null)q=0;q++;googleauth_setdata("fail_count",q);if(q<5)j=" googleauthrequired";else{googleauth_setdata("fail_count",0);LP.lpClearCache(true,false,false);lplogoff(false,"ff_googauth");lpshowError("LoginError",
false,true);return}}if(j&&j.indexOf("googleauthrequired")>0){LP.lpClearCache(true,false,false);o=googleauth_getotp(lpusername);if(o==""){lplogoff(false,"ff_googauth");lpshowError("LoginError",false,true)}else{r=googleauth_getdata("postdata")+"&otp="+encodeURIComponent(o);y=googleauth_getdata("from");if(googleauth_getdata("label"))r+="&trustlabel="+LP.en(googleauth_getdata("label"));LP.lpMakeRequest(LP.lp_base+"login.php",r,lpLoginResponse,function(){lpLoginErrorHandler(y)},y)}}else if(j&&j.indexOf("gridresponserequired")>
0){LP.lpClearCache(true,false,false);var l=grid_getvalues(lpusername,f[0].getAttribute("challenge"));if(l==""){lplogoff(false,"ff_nogridotp");lpshowError("LoginError",false,true)}else{r=grid_getdata("postdata")+"&gridresponse="+encodeURIComponent(l);y=grid_getdata("from");if(grid_getdata("label"))r+="&trustlabel="+LP.en(grid_getdata("label"));if(f[0].getAttribute("wxsessid"))r+="&wxsessid="+LP.en(f[0].getAttribute("wxsessid"));LP.lpMakeRequest(LP.lp_base+"login.php",r,lpLoginResponse,function(){lpLoginErrorHandler(y)},
y)}}else if(j&&j.indexOf("gridresponsefailed")>0){LP.lpClearCache(true,false,false);lplogoff(false,"ff_gridotp");lpshowError("LoginError",false,true)}else if(j&&j.indexOf("multifactorresponserequired")>0){LP.lpClearCache(true,false,false);var n=f[0].getAttribute("type");l="";if(n=="trueapi"){a="";if(multifactor_getdata("type")=="trueapi")a=multifactor_getdata("password_offline");if(!a||a.length!=64)a=lp_sha256(lp_sha256(fix_username(lpusername)+n));if(!a||a.length!=64)if(lpusexpcom()&&LP.lpis_win&&
typeof lpxpcomobj.trueapi_get_hash=="function")a=lpxpcomobj.trueapi_get_hash(lpusername);multifactor_setdata("password_offline",a);multifactor_setdata("type",n);l=a!=""?lp_sha256(a+f[0].getAttribute("challenge")):""}else if(n=="omnikey"){multifactor_setdata("type",n);if(lpusexpcom()&&typeof lpxpcomobj.omnikey_decrypt=="function")l=lpxpcomobj.omnikey_decrypt(f[0].getAttribute("challenge"),omnikey_get_pin())}if(l==""){var p=get_multifactor_disable_url(lpusername,n);lplogoff(false,"ff_nomultifactor");
lpshowError("LoginError",false,true,false,p)}else{r=multifactor_getdata("postdata")+"&multifactorresponse="+encodeURIComponent(l);y=multifactor_getdata("from");if(multifactor_getdata("label"))r+="&trustlabel="+LP.en(multifactor_getdata("label"));if(f[0].getAttribute("wxsessid"))r+="&wxsessid="+LP.en(f[0].getAttribute("wxsessid"));LP.lpMakeRequest(LP.lp_base+"login.php",r,lpLoginResponse,function(){lpLoginErrorHandler(y)},y)}}else if(j&&j.indexOf("multifactorresponsefailed")>0){p=get_multifactor_disable_url(lpusername,
f[0].getAttribute("type"));LP.lpClearCache(true,false,false);lplogoff(false,"ff_multifactor");lpshowError("LoginError",false,true,false,p)}else if(j&&j.indexOf("unknownemail")>0){lplogoff(false,"ff_unknownusername");lpshowError(f[0].getAttribute("message")?f[0].getAttribute("message"):"LoginError",false,true,true)}else if(j&&j.indexOf("unknownpassword")>0){lplogoff(false,"ff_unknownpw");lpshowError(f[0].getAttribute("message")?f[0].getAttribute("message"):"LoginError",false,true)}else if(j&&j.indexOf("iprestriction")>
0){LP.lpClearCache(true,false,false);lplogoff(false,"ff_iprestriction");lpshowError(f[0].getAttribute("message")?f[0].getAttribute("message"):"LoginError",false,true)}else if(f&&f.length>0&&f[0].hasAttribute("cause")){var s=f[0].getAttribute("cause");lplogoff(false,"ff_cause"+s);lpshowError(f.length>0&&f[0].getAttribute("message")?f[0].getAttribute("message"):"LoginError",false,true)}else{lpReportError("login.php returned invalid response text="+a.responseText);lpLoginErrorHandler(c)}}}}else{lppwdeckey=
lp_hex2bin(lp_sha256(e[0].getAttribute("pwdeckey")));lpusername=e[0].getAttribute("lpusername");lpusername_hash=lp_sha256(lpusername);lpuid=e[0].getAttribute("uid");if(e[0].getAttribute("pwresetreqd")=="1")LP.lpbaseopen("passwordreset.php?u="+LP.en(lpusername));else{lpWriteKeyFile();lpLoginCommon(e,c,false)}}}}catch(A){lpReportError("Failure in lpLoginResponse: "+A+" ln: "+A.lineNumber);lpLoginErrorHandler(c)}}
function lpLoginCommon(a,b,c){if(lp_local_key==null||lp_local_key==""){lpReportError("lpLoginCommon : WTF! We are in lpLoginCommon but our key has not been set -- INVESTIGATE! from="+b+" logincheck="+(typeof c=="undefined"?"undefined":c));lplogoff(false,"ff_nokeylogincommon")}lploggedinoffline=false;if(c==null||typeof c=="undefined")c=true;if(lpnotifytimerid){LP.mostRecent().clearTimeout(lpnotifytimerid);lpnotifytimerid=null}if(lpretryonlinetimerid){LP.mostRecent().clearTimeout(lpretryonlinetimerid);
lpretryonlinetimerid=null}lpRenameFile(lpusername_hash+"_lp.key",lpusername_hash+"_lp.act.key");lpRenameFile(lpusername_hash+"_lp.act.key",lpusername_hash+"_lp.act.lps");sesame_setdata("password_offline",a[0].getAttribute("sesamepassword"));yubikey_setdata("password_offline",a[0].getAttribute("yubikeyhash"));yubikey_setdata("password_keysline",a[0].getAttribute("yubikeykeysline"));yubikey_setdata("password_server",a[0].getAttribute("yubikeyserverpassword"));grid_setdata("password_offline",a[0].getAttribute("gridpassword"));
(lpdisableoffline=a[0].getAttribute("disableoffline")==1?1:0)&&LP.lpClearCache(true,false,false);fix_toolbar_mode();lprsa_setprivatekeyenchash(a);LP.lphelpstats=new lpobjhelpstats;LP.lphelpstats.currentlyopen=false;LP.lphelpstats.wino=null;LP.lphelpstats.highlighthelp=a[0].getAttribute("hih")=="1"?true:false;LP.lphelpstats.genpwhelp=a[0].getAttribute("genh")=="1"?true:false;LP.lphelpstats.addsitehelp=a[0].getAttribute("addh")=="1"?true:false;countryfromip=a[0].getAttribute("country");lpbUpdateAvailable=
a[0].getAttribute("upgrade")=="1"?true:false;logoff_other_ses=a[0].getAttribute("logoff_other_ses")=="1"?true:false;set_secprompts(a[0],"login");LP.lpLoadThreshold=a[0].getAttribute("pageloadthres");var d=LP.getsinglefactortype();if(a[0].getAttribute("multifactor_singlefactor")=="1"){if(d=="")if(multifactor_getdata("type")=="trueapi")lpusexpcom()&&LP.lpis_win&&typeof lpxpcomobj.trueapi_default_login_exists=="function"&&lpxpcomobj.trueapi_default_login_exists(lpusername)&&LP.setsinglefactortype(multifactor_getdata("type"));
else if(a[0].getAttribute("singlefactortype")=="vtapi")lpusexpcom()&&LP.lpis_mac&&typeof lpxpcomobj.lpvt_has_data=="function"&&lpxpcomobj.lpvt_has_data()&&LP.setsinglefactortype(a[0].getAttribute("singlefactortype"));else if(a[0].getAttribute("singlefactortype")=="validity")lpusexpcom()&&LP.lpis_win&&typeof lpxpcomobj.validity_has_data=="function"&&lpxpcomobj.validity_has_data()&&LP.setsinglefactortype(a[0].getAttribute("singlefactortype"));else a[0].getAttribute("singlefactortype")=="winbio"&&lpusexpcom()&&
LP.lpis_win&&typeof lpxpcomobj.winbio_has_data=="function"&&lpxpcomobj.winbio_has_data()&&LP.setsinglefactortype(a[0].getAttribute("singlefactortype"))}else d!=""&&LP.disable_single_factor();lploggedin=true;lpisadmin=parseInt(a[0].getAttribute("isadmin"))==1;lpiscompanyadmin=parseInt(a[0].getAttribute("companyadmin"))==1;lploglogins=parseInt(a[0].getAttribute("loglogins"));lpemail=a[0].getAttribute("email");lp_server_accts_version=parseInt(a[0].getAttribute("accts_version"));lptoken=a[0].getAttribute("token");
if(lp_server_accts_version!=lp_local_accts_version)lp_local_accts_version=-1;LP.lp_handle_buttons_all("in");lprsa_login(b=="websiterefreshrsa"?true:false,a);if(LP.lpdolostpwotp&&a[0].hasAttribute("lostpwotpresult"))if((lpFileExists(lpusername_hash+"_lps.act.sxml")||lpFileExists(lpusername_hash+"_lps.act.xml"))&&!LP.lpprefsHasUserValue("StoreLostPWOTP"))LP.lpprefsSetBoolPref("StoreLostPWOTP",true);else LP.lpprefsHasUserValue("StoreLostPWOTP")||LP.lpprefsSetBoolPref("StoreLostPWOTP",true);if(LP.lpdolostpwotp&&
(!LP.lpprefsHasUserValue("StoreLostPWOTP")||LP.lpprefsGetBoolPref("StoreLostPWOTP")))if(a[0].hasAttribute("lostpwotpresult")&&a[0].getAttribute("lostpwotpresult")!="ok"){LP.DeleteOTP();LP.MakeOTP()}LP.lpCloseNotifications();lp_phpsessid=a[0].getAttribute("sessionid");if((!c||b=="websitelogin")&&!WAVTOOLBAR&&!WISCTOOLBAR){b=="websitelogin"&&lpWriteKeyFile();lpnp_notify("internal_logincheck_ack",{data0:lp_phpsessid,data1:lpusername,data2:LP.GetIdentity()})}try{var e=a[0].getAttribute("ignoreminor")==
"0"?false:true,f=a[0].getAttribute("reqdversion");if(lpversion!=""&&f!=""&&CompareLastPassVersions(lpversion,f,e)<0){LP.alert(LP.lpgs("A required update is available for LastPass. Please press OK to begin download and installation."));LP.lpUpdate()}}catch(h){}OnAllLogins();lppopulateaccountsfromlogin=true;CheckDownloadNewDataFile(a[0].getAttribute("formfillver"),"ff.dat",ffver,"ff","ff.dat");CheckDownloadNewDataFile(a[0].getAttribute("sitesver"),"sites.dat",-1,"sites","sites.dat");LP.numsites()==
0||lp_server_accts_version!=lp_local_accts_version?lpGetAccountsLocal():LP.lpRecheckTabs(true);if(b=="pluginlogin"||b=="createaccount"||b==lpWRPLUGINLOGIN_ASOREGISTRY||b==lpWRNAMEDPIPELOGIN_ASOREGISTRY)lprefreshwindows();c=lp_get_gmt_timestamp();LP.lpprefsSetIntPref("lastpollcheck",c);LP.flush_prefs();lastpoll=c;LP.lpdopoll&&LP.setupPollTimer();if(login_from_welcome){login_from_welcome=false;loginOkAfterCreate()}else if((b=="pluginlogin"||b=="createaccount"||b==lpWRPLUGINLOGIN_ASOREGISTRY)&&(!LP.lpprefsHasUserValue("showHomepageAfterLogin",
false)||LP.lpprefsGetBoolPref("showHomepageAfterLogin",false)==true))launchHomeIf();b=lpgeticonsversion();if(b=="")b="0";parseInt(b)<parseInt(a[0].getAttribute("iconsversion"))&&LP.lpMakeRequest(LP.lp_base+"geticon.php","versionff="+LP.en(b),lpIconsResponse);LP.ShowPremiumMenuItem();LP.ShowMenuItem("entconsole","Enterprise Console",lpiscompanyadmin);LP.lpretryrequests()}
function CheckDownloadNewDataFile(a,b,c,d,e){if(!(a==""||a=="0")){var f=c;c=false;if(lpFileExists(b)){b=lpReadFile(b);f=b.indexOf("\n")==-1?b.length:b.indexOf("\n");f=b.substr(0,f)}else c=true;if(f!=-1&&CompareLastPassVersions(a,f)>0)c=true;c&&LP.lpMakeRequest(LP.lp_base+"getappdata.php","type="+LP.en(d),lpDownloadDataResponse,null,e)}}
function lp_getlastusercredentials(){if(LPISLOC&&LPISUPEK)return null;var a=lp_get_loginusers();if(a.length==0)return null;a=a[0];var b=lp_get_loginpws();if(typeof b[a]=="undefined")return null;return{username:a,password:b[a]}}function lp_login_from_saved(a){var b=lp_getlastusercredentials();if(!b)return false;LP.lplogin(b.username,b.password,a);return true}
function lp_loginusersupdate(a,b){for(var c=lp_get_loginusers(),d=0;d<c.length;d++)if(c[d]==a){c.splice(d,1);break}if(b==null)b=LP.lpprefsHasUserValue("rememberUsername")?LP.lpprefsGetBoolPref("rememberUsername"):false;b&&c.unshift(a);save_loginusers(c)}
function lp_get_loginusers(a){var b="";if(LP.lpprefsHasUserValue("loginusers",false))b=LP.lpprefsGetCharPref("loginusers",false);var c=[],d=encodeURIComponent(a);if(typeof a!="undefined"&&a!=""&&b.indexOf(d)==-1)b=d+"|"+b;if(b!=""){c=b.split("|");for(a=0;a<c.length;a++)try{c[a]=decodeURIComponent(c[a])}catch(e){c[a]=""}}return c}function lp_loginpws_removeifdifferent(a,b){var c=lp_get_loginpws();if(typeof c[a]!="undefined"&&LP.make_lp_key(a,c[a])!=b){c[a]=null;save_loginpws(c)}}
function lp_loginpws_remember(a,b,c){var d=lp_get_loginpws();if(typeof d[a]!="undefined")d[a]=null;if(c)d[a]=b;save_loginpws(d)}
function lp_get_loginpws(){var a="";if(LP.lpprefsHasUserValue("loginpws",false))a=lp_unprotect_data(LP.lpprefsGetCharPref("loginpws",false));var b=[],c=[];if(a!=""){b=a.split("|");for(a=0;a<b.length;a++){var d=b[a].split("=");if(typeof d[1]!="undefined"){var e;try{e=decodeURIComponent(d[0])}catch(f){e=""}var h;try{h=decodeURIComponent(d[1])}catch(j){h=""}d=lp_hex2bin(lp_sha256(e));h=lpdec(h,d);c[e]=h}}}return c}
this.have_loginpw=function(a){var b=lp_get_loginpws();return typeof b[a]!="undefined"&&b[a]};this.delete_loginpw=function(a){var b=lp_get_loginpws();if(typeof b[a]!="undefined")b[a]=null;save_loginpws(b)};function lp_save_passwords_with_lastpass(a,b){lp_lpOpenLoginHelper(a,b)}function lp_lpOpenLoginHelper(a){lploggedin||LP.lpGetCurrentWindow().setTimeout(function(){lploggedin||LP.lpOpenLogin(a.extra)},500)}
this.lpOpenLogin=function(a,b){var c={logincase:1};if(typeof b!="undefined"&&b!=null&&b!="")c.sesameusername=b;if(lploggedin)lplogoff(false,"ff_usermenu");else{lpdelayedFunction=a&&typeof a=="function"?a:null;var d=LP.getsinglefactortype();if(d=="trueapi"&&lpusexpcom()&&LP.lpis_win&&typeof lpxpcomobj.trueapi_default_login_exists=="function"&&lpxpcomobj.trueapi_default_login_exists("")){var e={},f={},h={};if(lpxpcomobj.trueapi_get_default_login(e,f,h)){multifactor_setdata("password_offline",h.value);
multifactor_setdata("type",d);LP.lplogin(e.value,f.value,"pluginlogin",h.value!="");return}}if(LPISUPEK||d=="vtapi"){if(lpusexpcom()&&LP.lpis_mac&&typeof lpxpcomobj.lpvt_verify_user=="function"){e=encodeURIComponent(LP.lpCreatePass(8,1,1,1,0,1,0,1));e=lpxpcomobj.lpvt_verify_user(e,LP.lpgs("Swipe finger"),LP.lpgs("Swipe your finger on the fingerprint sensor"),LP.lpgs("Cancel"),LP.lpgs("Swipe current user's finger"));if(e!=""){e=e.split("|");if(e.length==2){LP.lplogin(decodeURIComponent(e[0]),decodeURIComponent(e[1]),
"pluginlogin");return}}}if(LPISUPEK&&LPISLOC){lpusexpcom()&&LP.lpis_mac&&typeof lpxpcomobj.lpvt_has_data=="function"&&lpxpcomobj.lpvt_has_data()?lpshowError("LoginError",false,true):lpshowError("Before you can use LastPass, you must first connect your fingerprint reader and enroll one or more fingers.",false,true);return}}if(d=="validity")if(lpusexpcom()&&LP.lpis_win&&typeof lpxpcomobj.validity_verify_user=="function"){e=lpxpcomobj.validity_verify_user("",LP.lpgs("Swipe finger"),LP.lpgs("Swipe your finger on the fingerprint sensor"),
LP.lpgs("Cancel"));if(e!=""){e=e.split("|");if(e.length==2){LP.lplogin(decodeURIComponent(e[0]),decodeURIComponent(e[1]),"pluginlogin");return}}}if(d=="winbio")if(lpusexpcom()&&LP.lpis_win&&typeof lpxpcomobj.winbio_verify_user=="function"){e=lpxpcomobj.winbio_verify_user("",LP.lpgs("Swipe finger"),LP.lpgs("Swipe your finger on the fingerprint sensor"),LP.lpgs("Cancel"));if(e!=""){e=e.split("|");if(e.length==2){LP.lplogin(decodeURIComponent(e[0]),decodeURIComponent(e[1]),"pluginlogin");return}}}LP.lpGetCurrentWindow().openDialog(lpchrome_base+
"content/login.xul","_blank","chrome,titlebar,toolbar,centerscreen,modal",c)}};var lplasthttptest=0;this.httptest=function(){if(typeof FROMPARTNER=="undefined")if(!lploggedin){var a=(new Date).getTime();if(!(a-lplasthttptest<1E3)){lplasthttptest=a;typeof lpSetupXHRIntercepts=="function"&&lpSetupXHRIntercepts();loginoffline(true,"httptest");a=LP.lp_base+"httptest.php";a=a.replace(/^https:\/\//,"http://");LP.lpMakeRequest(a,"",httptestresponse,httptesterror)}}};
function httptestresponse(a){try{if(a&&a.readyState==4){if(a.status==200&&a.responseXML!=null&&a.responseXML.documentElement!=null){var b=a.responseXML.documentElement.getElementsByTagName("ok");if(b.length>0)if(b[0].getAttribute("lastpass")=="1"){LP.lplogincheck("httptest");return}}httptesterror()}}catch(c){httptesterror()}}function httptesterror(){LP.setTimeout(function(){LP.httptest()},3E5)}
function get_multifactor_disable_url(a,b){return"multifactordisable.php?cmd=sendemail&username="+encodeURIComponent(a)+"&type="+encodeURIComponent(b)}function ff_or_chrome_gs(a){return typeof LP!="undefined"?LP.lpgs(a):gs(a)}
function init_timezones(){if(typeof all_timezones=="undefined"||all_timezones==null){all_timezones=[];var a;a=new timezoneinfo;a.name="(-12:00) "+ff_or_chrome_gs("International Date Line West");a.value="-12:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-11:00) "+ff_or_chrome_gs("Midway Island, Samoa");a.value="-11:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-10:00) "+ff_or_chrome_gs("Hawaii");a.value="-10:00,0";all_timezones[all_timezones.length]=
a;a=new timezoneinfo;a.name="(-09:00) "+ff_or_chrome_gs("Alaska");a.value="-09:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-08:00) "+ff_or_chrome_gs("Pacific Time (US & Canada)");a.value="-08:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-07:00) "+ff_or_chrome_gs("Arizona");a.value="-07:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-07:00) "+ff_or_chrome_gs("Mountain Time (US & Canada)");a.value="-07:00,1";all_timezones[all_timezones.length]=
a;a=new timezoneinfo;a.name="(-06:00) "+ff_or_chrome_gs("Central America, Saskatchewan");a.value="-06:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-06:00) "+ff_or_chrome_gs("Central Time (US & Canada), Guadalajara, Mexico City");a.value="-06:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-05:00) "+ff_or_chrome_gs("Indiana, Bogota, Lima, Quito, Rio Branco");a.value="-05:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-05:00) "+
ff_or_chrome_gs("Eastern Time (US & Canada)");a.value="-05:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-04:30) "+ff_or_chrome_gs("Caracas");a.value="-04:30,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-04:00) "+ff_or_chrome_gs("Atlantic Time (Canada), Manaus, Santiago");a.value="-04:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-04:00) "+ff_or_chrome_gs("La Paz");a.value="-04:00,0";all_timezones[all_timezones.length]=a;
a=new timezoneinfo;a.name="(-03:30) "+ff_or_chrome_gs("Newfoundland");a.value="-03:30,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-03:00) "+ff_or_chrome_gs("Greenland, Brasilia, Montevideo");a.value="-03:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-03:00) "+ff_or_chrome_gs("Buenos Aires, Georgetown");a.value="-03:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-02:00) "+ff_or_chrome_gs("Mid-Atlantic");a.value="-02:00,1";
all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-01:00) "+ff_or_chrome_gs("Azores");a.value="-01:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(-01:00) "+ff_or_chrome_gs("Cape Verde Is.");a.value="-01:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(00:00) "+ff_or_chrome_gs("Casablanca, Monrovia, Reykjavik");a.value="00:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(00:00) "+ff_or_chrome_gs("GMT Dublin, Edinburgh, Lisbon, London");
a.value="00:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+01:00) "+ff_or_chrome_gs("Amsterdam, Berlin, Rome, Vienna, Prague, Brussels");a.value="+01:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+01:00) "+ff_or_chrome_gs("West Central Africa");a.value="+01:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+02:00) "+ff_or_chrome_gs("Amman, Athens, Istanbul, Beirut, Cairo, Jerusalem");a.value="+02:00,1";all_timezones[all_timezones.length]=
a;a=new timezoneinfo;a.name="(+02:00) "+ff_or_chrome_gs("Harare, Pretoria");a.value="+02:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+03:00) "+ff_or_chrome_gs("Baghdad, Moscow, St. Petersburg, Volgograd");a.value="+03:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+03:00) "+ff_or_chrome_gs("Kuwait, Riyadh, Nairobi, Tbilisi");a.value="+03:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+03:30) "+ff_or_chrome_gs("Tehran");
a.value="+03:30,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+04:00) "+ff_or_chrome_gs("Abu Dhadi, Muscat");a.value="+04:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+04:00) "+ff_or_chrome_gs("Baku, Yerevan");a.value="+04:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+04:30) "+ff_or_chrome_gs("Kabul");a.value="+04:30,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+05:00) "+ff_or_chrome_gs("Ekaterinburg");
a.value="+05:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+05:00) "+ff_or_chrome_gs("Islamabad, Karachi, Tashkent");a.value="+05:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+05:30) "+ff_or_chrome_gs("Chennai, Kolkata, Mumbai, New Delhi, Sri Jayawardenepura");a.value="+05:30,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+05:45) "+ff_or_chrome_gs("Kathmandu");a.value="+05:45,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;
a.name="(+06:00) "+ff_or_chrome_gs("Astana, Dhaka");a.value="+06:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+06:00) "+ff_or_chrome_gs("Almaty, Novosibirsk");a.value="+06:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+06:30) "+ff_or_chrome_gs("Yangon (Rangoon)");a.value="+06:30,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+07:00) "+ff_or_chrome_gs("Krasnoyarsk");a.value="+07:00,1";all_timezones[all_timezones.length]=a;a=
new timezoneinfo;a.name="(+07:00) "+ff_or_chrome_gs("Bangkok, Hanoi, Jakarta");a.value="+07:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+08:00) "+ff_or_chrome_gs("Beijing, Hong Kong, Singapore, Taipei");a.value="+08:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+08:00) "+ff_or_chrome_gs("Irkutsk, Ulaan Bataar, Perth");a.value="+08:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+09:00) "+ff_or_chrome_gs("Yakutsk");a.value=
"+09:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+09:00) "+ff_or_chrome_gs("Seoul, Osaka, Sapporo, Tokyo");a.value="+09:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+09:30) "+ff_or_chrome_gs("Darwin");a.value="+09:30,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+09:30) "+ff_or_chrome_gs("Adelaide");a.value="+09:30,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+10:00) "+ff_or_chrome_gs("Brisbane, Guam, Port Moresby");
a.value="+10:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+10:00) "+ff_or_chrome_gs("Canberra, Melbourne, Sydney, Hobart, Vladivostok");a.value="+10:00,1";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+11:00) "+ff_or_chrome_gs("Magadan, Solomon Is., New Caledonia");a.value="+11:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+12:00) "+ff_or_chrome_gs("Auckland, Wellington");a.value="+12:00,1";all_timezones[all_timezones.length]=
a;a=new timezoneinfo;a.name="(+12:00) "+ff_or_chrome_gs("Fiji, Kamchatka, Marshall Is.");a.value="+12:00,0";all_timezones[all_timezones.length]=a;a=new timezoneinfo;a.name="(+13:00) "+ff_or_chrome_gs("Nuku'alofa");a.value="+13:00,0";all_timezones[all_timezones.length]=a}}var lp_wote=lp_enterpriseuser=lp_premium_exp=0,lp_fete=0;lp_trueapi_trial_exp=0;var lp_iscbc=false,lp_captcha_regexp=null;
function parsemobile(a,b,c,d,e,f,h,j,o,r,y,q,l,n,p,s,A,u,w,D,B,C,H,I,M,J,N){if(q){if(typeof q.neveraccounts=="undefined")q.neveraccounts=[];if(typeof q.nevergenerates=="undefined")q.nevergenerates=[];if(typeof q.neverformfills=="undefined")q.neverformfills=[];if(typeof q.neverautologins=="undefined")q.neverautologins=[];if(typeof q.onlyaccounts=="undefined")q.onlyaccounts=[];if(typeof q.onlygenerates=="undefined")q.onlygenerates=[];if(typeof q.onlyformfills=="undefined")q.onlyformfills=[];if(typeof q.onlyautologins==
"undefined")q.onlyautologins=[]}if(d==0){lp_iscbc=false;lp_fete=lp_wote=lp_trueapi_trial_exp=0}if(I==null||typeof I=="undefined"){I=g_local_key;if(typeof g_local_key_hex=="undefined"||g_local_key_hex==null||g_local_key_hex.length==0)g_local_key_hex=AES.bin2hex(g_local_key);M=g_local_key_hex}var R=0,O=f&&f.length>0?f.length-1:-1,P=o&&o.length>0?o.length-1:0,S=false;if(a.substring(0,4)!="LPAV")d=b;u||(u=[]);for(u.maxid=0;d<b;){var G=a.substring(d,d+4),K=unserialize_num(a.substring(d+4,d+8));if(G=="ACCT"&&
J!="error"){var g=d+8,F=[];g+=mget(a,g,F,"aid");var x=parseInt(F.aid);if(x>u.maxid)u.maxid=x;g+=typeof parsedonotdecryptnames=="undefined"?mget(a,g,F,"name",1,I,M):mget(a,g,F,"name");g+=mget(a,g,F,"group",1,I,M);if(I!=g_local_key)F.group=F.group==""?J.decsharename:J.decsharename+"\\"+F.group;g+=mget(a,g,F,"url");g+=mget(a,g,F,"extra");g+=mget(a,g,F,"fav");g+=mget(a,g,F,"sharedfromaid");g+=mget(a,g,F,"username");g+=mget(a,g,F,"password");g+=mget(a,g,F,"pwprotect");F.pwprotect=F.pwprotect=="1";g+=mget(a,
g,F,"genpw");F.genpw=F.genpw=="1";g+=mget(a,g,F,"sn");F.sn=F.sn=="1";g+=mget(a,g,F,"last_touch");g+=mget(a,g,F,"autologin");F.autologin=F.autologin=="1";g+=mget(a,g,F,"never_autofill");F.never_autofill=F.never_autofill=="1";g+=mget(a,g,F,"realm_data");g+=mget(a,g,F,"fiid");g+=mget(a,g,F,"custom_js");if(g<d+K+8)g+=mget(a,g,F,"submit_id");if(g<d+K+8)g+=mget(a,g,F,"captcha_id");if(g<d+K+8){g+=mget(a,g,F,"urid");G=parseInt(F.urid);if(G>u.maxid)u.maxid=G}if(g<d+K+8)g+=mget(a,g,F,"basic_auth");if(g<d+K+
8)g+=mget(a,g,F,"method");if(g<d+K+8)g+=mget(a,g,F,"action");if(g<d+K+8)g+=mget(a,g,F,"groupid");if(g<d+K+8)g+=mget(a,g,F,"deleted");if(g<d+K+8){g+=mget(a,g,F,"attachid");g+=mget(a,g,F,"attachname")}if(g<d+K+8){g+=mget(a,g,F,"individualshare");F.individualshare=F.individualshare=="1"}else F.individualshare=false;F.fields=[];if(typeof J!="undefined"&&J!=null&&I!=g_local_key){F.sharefolderid=J.id;if(J.give==0)F.sharedfromaid=1}if(F.sn)h&&h.push(F);else if(f){O=f.length;f.push(F)}R++}else if("SPMT"==
G){if(j){g=d+8;g+=mget(a,g,j,"login_site_prompt");j.login_site_prompt=j.login_site_prompt=="1";g+=mget(a,g,j,"edit_site_prompt");j.edit_site_prompt=j.edit_site_prompt=="1";g+=mget(a,g,j,"edit_sn_prompt");j.edit_sn_prompt=j.edit_sn_prompt=="1";g+=mget(a,g,j,"view_pw_prompt");j.view_pw_prompt=j.view_pw_prompt=="1";g+=mget(a,g,j,"view_ff_prompt");j.view_ff_prompt=j.view_ff_prompt=="1";g+=mget(a,g,j,"improve");j.improve=j.improve=="1";g+=mget(a,g,j,"switch_identity_prompt");j.switch_identity_prompt=j.switch_identity_prompt==
"1";g+=mget(a,g,j,"switch_f_prompt");j.switch_f_prompt=j.switch_f_prompt=="1";if(g<d+K+8){g+=mget(a,g,j,"multifactor_reprompt");j.multifactor_reprompt=j.multifactor_reprompt=="1"}else j.multifactor_reprompt=false}}else if("PREF"==G){if(B){g=d+8;g+=mget(a,g,B,"allowmasterpasswordsave");g+=mget(a,g,B,"logoffclosebrowser");g+=mget(a,g,B,"logoffidle");if(g<d+K+8)g+=mget(a,g,B,"noexport")}}else if("LPFF"==G){if(o){g=d+8;var E=[];g+=mget(a,g,E,"ffid");P=parseInt(E.ffid);if(P>u.maxid)u.maxid=P;g+=mget(a,
g,E,"profiletype");g+=mget(a,g,E,"profilename");g+=mget(a,g,E,"profilelanguage");g+=mget(a,g,E,"firstname");g+=mget(a,g,E,"middlename");g+=mget(a,g,E,"lastname");g+=mget(a,g,E,"email");g+=mget(a,g,E,"company");g+=mget(a,g,E,"ssn");g+=mget(a,g,E,"birthday");g+=mget(a,g,E,"address1");g+=mget(a,g,E,"address2");g+=mget(a,g,E,"city");g+=mget(a,g,E,"state");g+=mget(a,g,E,"state_name");g+=mget(a,g,E,"zip");g+=mget(a,g,E,"country");g+=mget(a,g,E,"country_cc3l");g+=mget(a,g,E,"country_name");g+=mget(a,g,E,
"mobilephone");g+=mget(a,g,E,"mobilephone3lcc");g+=mget(a,g,E,"mobileext");g+=mget(a,g,E,"evephone");g+=mget(a,g,E,"evephone3lcc");g+=mget(a,g,E,"eveext");g+=mget(a,g,E,"phone");g+=mget(a,g,E,"phone3lcc");g+=mget(a,g,E,"phoneext");g+=mget(a,g,E,"fax");g+=mget(a,g,E,"fax3lcc");g+=mget(a,g,E,"faxext");g+=mget(a,g,E,"ccnum");g+=mget(a,g,E,"ccexp");g+=mget(a,g,E,"cccsc");g+=mget(a,g,E,"username");g+=mget(a,g,E,"address3");g+=mget(a,g,E,"title");g+=mget(a,g,E,"gender");g+=mget(a,g,E,"driverlicensenum");
g+=mget(a,g,E,"taxid");g+=mget(a,g,E,"pwprotect");E.pwprotect=E.pwprotect=="1";g+=mget(a,g,E,"bankname");g+=mget(a,g,E,"bankacctnum");g+=mget(a,g,E,"bankroutingnum");g+=mget(a,g,E,"timezone");g+=mget(a,g,E,"county");g+=mget(a,g,E,"ccstart");g+=mget(a,g,E,"ccname");g+=mget(a,g,E,"ccissuenum");g+=mget(a,g,E,"notes");if(g<d+K+8)g+=mget(a,g,E,"lastname2");if(g<d+K+8){g+=mget(a,g,E,"mobileemail");g+=mget(a,g,E,"firstname2");g+=mget(a,g,E,"firstname3");g+=mget(a,g,E,"lastname3")}E.creditmon=0;if(g<d+K+
8){g+=mget(a,g,E,"creditmon");E.creditmon=E.creditmon=="1"?1:0}E.custom_fields=[];P=o.length;o.push(E)}}else if("IDNT"==G){if(r){g=d+8;x=[];g+=mget(a,g,x,"iid");g+=mget(a,g,x,"iname");g+=mget(a,g,x,"aids");g+=mget(a,g,x,"ffids");g+=mget(a,g,x,"pw_prompt");x.pw_prompt=x.pw_prompt=="1";if(g<d+K+8)g+=mget(a,g,x,"appaids");else x.appaids="";r.push(x)}}else if("PNDG"==G){if(s){g=d+8;G=[];g+=mget(a,g,G,"id");g+=mget(a,g,G,"fiid");g+=mget(a,g,G,"sharerusername");g+=mget(a,g,G,"sharedfromaid");g+=mget(a,
g,G,"sharemessage");g+=mget(a,g,G,"sharekeyenchex");g+=mget(a,g,G,"sharekeyenchexsig");g+=mget(a,g,G,"sharename");g+=mget(a,g,G,"sharegroup");g+=mget(a,g,G,"username");g+=mget(a,g,G,"password");g+=mget(a,g,G,"extra");g+=mget(a,g,G,"shareautoaccept");G.shareafids={};var T=[];g+=mget(a,g,T,"numafids");for(var U=0;U<T.numafids;U++){x=[];g+=mget(a,g,x,"afid");g+=mget(a,g,x,"value");G.shareafids[x.afid]=x.value}s.push(G)}}else if("SHAP"==G){if(A){g=d+8;G=[];for(g+=mget(a,g,G,"aid");g<d+K+8;){x=[];g+=mget(a,
g,x,"name");g+=mget(a,g,x,"value");G[x.name]=x.value}A.push(G)}}else if("FFCF"==G){if(o){g=d+8;x=[];g+=mget(a,g,x,"cfid");G=parseInt(E.cfid);if(G>u.maxid)u.maxid=G;g+=mget(a,g,x,"text");g+=mget(a,g,x,"value");g+=mget(a,g,x,"alttext");o[P].custom_fields.push(x)}}else if("EQDN"==G){if(y){g=d+8;x=[];g+=mget(a,g,x,"edid");g+=mget(a,g,x,"domain");x.domain=AES.hex2url(x.domain);if(typeof y[x.edid]=="undefined")y[x.edid]=[];y[x.edid][y[x.edid].length]=x.domain;y[x.domain]=x.edid}}else if("URUL"==G){if(w){g=
d+8;x=[];g+=mget(a,g,x,"url");g+=mget(a,g,x,"exacthost");if(g<d+K+8)g+=mget(a,g,x,"exactport");else x.exactport="0";x.url=AES.hex2url(x.url);w.push(x)}}else if("GRPI"!=G)if("NEVR"==G){if(q){g=d+8;x=[];g+=mget(a,g,x,"type");g+=mget(a,g,x,"url");x.url=AES.hex2url(x.url);if(x.type=="0")q.neveraccounts.push(x.url);else if(x.type=="1")q.nevergenerates.push(x.url);else if(x.type=="2")q.neverformfills.push(x.url);else if(x.type=="3")q.neverautologins.push(x.url);else if(x.type=="10000")q.onlyaccounts.push(x.url);
else if(x.type=="10001")q.onlygenerates.push(x.url);else if(x.type=="10002")q.onlyformfills.push(x.url);else x.type=="10003"&&q.onlyautologins.push(x.url)}}else if(("ACFL"==G||"ACOF"==G)&&J!="error"){if(l){g=d+8;x=[];x.otherfield="ACOF"==G;g+=mget(a,g,x,"name");g+=mget(a,g,x,"type");g+=mget(a,g,x,"value");g+=mget(a,g,x,"checked");x.checked=x.checked=="1";g+=mget(a,g,x,"formname");if(g<d+K+8){g+=mget(a,g,x,"urid");G=parseInt(x.urid);if(G>u.maxid)u.maxid=G}if(g<d+K+8)g+=mget(a,g,x,"otherlogin");if(g<
d+K+8)g+=mget(a,g,x,"url");if(O>=0&&O<f.length){if(typeof lp_captcha_regexp!="undefined"&&lp_captcha_regexp&&(typeof f[O].captcha_id=="undefined"||f[O].captcha_id=="")&&x.type=="text"&&lp_captcha_regexp.exec(x.name))f[O].captcha_id=x.name;f[O].save_all=x.otherfield&&f[O].username.length==0&&f[O].password.length==0;f[O].fields.push(x)}}}else if(G=="PREM")lp_premium_exp=a.substring(d+8,d+8+K);else if(G=="TATE")lp_trueapi_trial_exp=a.substring(d+8,d+8+K);else if("WOTE"==G)lp_wote=a.substring(d+8,d+8+
K);else if("FETE"==G)lp_fete=a.substring(d+8,d+8+K);else if("ENCU"==G)p=a.substring(d+8,d+8+K);else if("CBCU"==G)lp_iscbc=a.substring(d+8,d+8+K)=="1";else if("MXID"==G){g=parseInt(a.substring(d+8,d+8+K));if(g>u.maxid)u.maxid=g}else if("SHAR"==G){g=d+8;if(typeof C!="undefined"&&C!=null&&C!=""&&H!=null){x=[];g+=mget(a,g,x,"id");g+=mget(a,g,x,"sharekey");g+=mget(a,g,x,"sharename");g+=mget(a,g,x,"readonly");g+=mget(a,g,x,"give");g=null;try{if(G=typeof localStorage!="undefined"&&typeof SHA256=="function"&&
(typeof g_issafari!="undefined"||typeof g_ischrome!="undefined"))try{var V=localStorage.getItem(SHA256(p+x.sharekey));if(V!=null){g=lpdec(V);if(g=="")g=null}}catch(Z){g=null}if(g==null)if(typeof lpusexpcomencrypt=="function"&&lpusexpcomencrypt()&&typeof lpxpcomobj.xCryptoRSADecrypt=="function")g=AES.hex2bin(lpxpcomobj.xCryptoRSADecrypt(C,x.sharekey));else if(typeof have_nplastpass=="function"&&have_nplastpass()&&typeof g_nplastpass.xCryptoRSADecrypt=="function")g=AES.hex2bin(g_nplastpass.xCryptoRSADecrypt(C,
x.sharekey));else{var W=new RSAKey;if(parse_private_key(W,C))g=W.decrypt(x.sharekey)}G&&g!=null&&g!=""&&localStorage.setItem(SHA256(p+x.sharekey),lpenc(g));if(g!=null&&g!=""){var Q=AES.hex2bin(g),X=lpmdec(x.sharename,0,Q,g);x.key=Q;x.decsharename=X;F=[];F.aid=x.id;F.name="";F.group=X;F.url=AES.url2hex("http://group");F.sharefolderid=x.id;F.fields=[];F.otherfields=[];f.push(F);I=Q;M=g;J=x;H.push(x)}else J="error"}catch(Y){typeof console!="undefined"&&typeof console.error=="function"&&console.error(Y);
J="error"}}else J="error";if(J=="error")O=-1;if((typeof C=="undefined"||C==null||C=="")&&H!=null&&H.length==0){x=[];x.id=0;H.push(x)}}else if("ENDM"==G)S=true;else if(G=="AACT"&&J!="error"){if(N){g=d+8;x=[];g+=mget(a,g,x,"appaid");g+=mget(a,g,x,"appname");g+=mget(a,g,x,"extra");g+=mget(a,g,x,"name",true,I,M);g+=mget(a,g,x,"group",true,I,M);if(I!=g_local_key)x.group=x.group==""?J.decsharename:J.decsharename+"\\"+x.group;g+=mget(a,g,x,"last_touch");g+=mget(a,g,x,"fiid");g+=mget(a,g,x,"pwprotect");x.pwprotect=
x.pwprotect=="1";g+=mget(a,g,x,"fav");g+=mget(a,g,x,"script");g+=mget(a,g,x,"wintitle");g+=mget(a,g,x,"wininfo");g+=mget(a,g,x,"exeversion");g+=mget(a,g,x,"autologin");g+=mget(a,g,x,"warnversion");x.warnversion=x.warnversion=="1";g+=mget(a,g,x,"exehash");x.fields=[];x.logins=[];if(typeof J!="undefined"&&J!=null&&I!=g_local_key){x.sharefolderid=J.id;if(J.give==0)x.sharedfromaid=1}N.push(x)}}else if(G=="AACF"&&J!="error"){if(N&&N.length>0){g=d+8;x=[];g+=mget(a,g,x,"id");g+=mget(a,g,x,"value");g+=mget(a,
g,x,"type");N[N.length-1].fields.push(x)}}else if(G=="ENTU")lp_enterpriseuser=a.substring(d+8,d+8+K);d+=K+8;if(c!=-1&&R>=c){setTimeout(function(){parsemobile(a,b,c,d,e,f,h,j,o,r,y,q,l,n,p,s,A,u,w,D,B,C,H,I,M,J,N)},0);return}}if(e)return e(f,h,j,o,r,y,q,S,a,n,p,s,A,u,w,D,B,H,N)}function mget(a,b,c,d,e,f,h){var j=unserialize_num(a.substring(b,b+4));c[d]=a.substring(b+4,b+4+j);if(e)c[d]=lpmdec(c[d],1,f,h);return 4+j}var mdec_cache=[],mdec_cache_key=null;
function lpmdec(a,b,c,d){if(typeof a=="undefined"||0==a.length)return"";if(typeof c!="undefined"&&c!=g_local_key){if(typeof d=="undefined")d=AES.bin2hex(c);return mdec(a,b,c,d)}if(typeof g_local_key!="undefined"&&mdec_cache_key!=g_local_key){mdec_cache=[];mdec_cache_key=g_local_key}if(typeof mdec_cache[a]=="undefined")mdec_cache[a]=mdec(a,b);return mdec_cache[a]}
function mdec(a,b,c,d){if(0==a.length)return"";if(typeof g_local_key!="string"||0==g_local_key.length){if(typeof ischrome=="undefined"||lploggedin){alert("No encryption key found, forcing logout!");window.location.href="../logout.php?nk_dec=1&mobile=1"}return""}var e=g_local_key;if(typeof g_local_key_hex=="undefined"||g_local_key_hex==null||g_local_key_hex.length==0)g_local_key_hex=AES.bin2hex(g_local_key);var f=g_local_key_hex;if(typeof c!="undefined"&&c!=null&&typeof d!="undefined"&&d!=null){e=
c;f=d}try{var h,j;if(b?a[0]=="!"&&a.length%16==1&&a.length>32:a[0]=="!")if(typeof lpusexpcomencrypt=="function"&&lpusexpcomencrypt()&&typeof lpxpcomobj.decryptcbc=="function"){if(b)a="!"+btoa(a.substring(1,17))+"|"+btoa(a.substring(17));return lpxpcomobj.decryptcbc(f,a)}else if(typeof have_nplastpass=="function"&&have_nplastpass()&&typeof g_nplastpass.decryptcbc=="function"){if(b)a="!"+btoa(a.substring(1,17))+"|"+btoa(a.substring(17));return g_nplastpass.decryptcbc(f,a)}else if(typeof document!="undefined"&&
document.getElementById("lpplugin")&&typeof document.getElementById("lpplugin").decrypt=="function"){if(b)a="!"+btoa(a.substring(1,17))+"|"+btoa(a.substring(17));return document.getElementById("lpplugin").decrypt(f,a)}else{var o=AES.StringToKeyIv(e,256);c=[];for(r=0;r<o.key.length;++r)c[r]=o.key[r];o=[];if(b){for(var r=1;r<17;++r)o[r-1]=a.charCodeAt(r);h=[];for(r=17;r<a.length;r++)h[r-17]=a.charCodeAt(r)}else{var y=a.indexOf("|");if(y!=-1){var q=atob(a.substring(1,y));for(r=0;r<16;++r)o[r]=q.charCodeAt(r);
h=a.substring(y+1)}}return AES.Decrypt({key:c,iv:o,data:h,b64:!b,bits:256,mode:"cbc"})}if(typeof lpusexpcomencrypt=="function"&&lpusexpcomencrypt())return lpxpcomobj.decrypt(f,b?btoa(a):a);else if(typeof have_nplastpass=="function"&&have_nplastpass()&&typeof g_nplastpass.decrypt=="function")return g_nplastpass.decrypt(f,b?btoa(a):a);else if(typeof document!="undefined"&&document.getElementById("lpplugin")&&typeof document.getElementById("lpplugin").decrypt=="function")return document.getElementById("lpplugin").decrypt(f,
b?btoa(a):a);else{if(b){h=[];for(r=0;r<a.length;r++)h[r]=a.charCodeAt(r);j=false}else{h=a;j=true}return AES.Decrypt({pass:e,data:h,b64:j,mode:"ecb",bits:256})}}catch(l){return"ERROR: AES mobile bug 2"}}function unserialize_num(a){for(var b=0,c=0,d=3;d>=0;d--){var e=a.charCodeAt(d);b+=e<<c;c+=8}return b}function get_version(a){var b=-1;if(a&&a.indexOf("LPAV")==0){b=unserialize_num(a.substring(4,8));b=a.substring(8,8+b)}return b}
function lpmenc(a,b,c){if(typeof a=="undefined"||0==a.length)return"";return menc(a,b,c?c:g_local_key)}
function menc(a,b,c){c=c?c:g_local_key;if(0==a.length)return"";if(typeof c!="string"||0==c.length)return"";try{if(lp_iscbc)if(typeof lpusexpcomencrypt=="function"&&lpusexpcomencrypt()&&typeof lpxpcomobj.encryptcbc=="function"){a=lpxpcomobj.encryptcbc(lp_bin2hex(c),a);if(b){var d=a.indexOf("|");if(d!=-1)a="!"+atob(a.substring(1,d))+atob(a.substring(d+1))}return a}else if(typeof have_nplastpass=="function"&&have_nplastpass()&&typeof g_nplastpass.encryptcbc=="function"){a=g_nplastpass.encryptcbc(AES.bin2hex(c),
a);if(b){d=a.indexOf("|");if(d!=-1)a="!"+atob(a.substring(1,d))+atob(a.substring(d+1))}return a}else{var e=AES.StringToKeyIv(c,256),f=[];for(j=0;j<e.key.length;++j)f[j]=e.key[j];var h=AES.CreateIV(16);a=AES.Encrypt({key:f,iv:h.arr,data:a,b64:!b,bits:256,mode:"cbc"});f="!";if(b){f+=h.str;for(var j=0;j<a.length;j++){var o=a[j];if(o<0)o+=256;f+=String.fromCharCode(o)}}else f+=btoa(h.str)+"|"+a;return f}e=a;if(typeof lpusexpcomencrypt=="function"&&lpusexpcomencrypt()){f=lpxpcomobj.encrypt(lp_bin2hex(c),
a);return b?atob(f):f}else if(typeof have_nplastpass=="function"&&have_nplastpass()&&typeof g_nplastpass.encrypt=="function"){f=g_nplastpass.encrypt(AES.bin2hex(c),a);return b?atob(f):f}else{a=!b;f=AES.Encrypt({pass:c,data:e,b64:a,mode:"ecb",bits:256});if(a)return f;else{a="";for(j=0;j<f.length;j++){o=f[j];if(o<0)o+=256;a+=String.fromCharCode(o)}return a}}}catch(r){return"ERROR: AES mobile bug"}}function serialize_num(a){for(var b="",c=1;c<=4;c++){b=String.fromCharCode(a%256)+b;a>>=8}return b}
function serialize_str(a){if(a==null)a="";if(typeof a=="number")a=""+a;return serialize_num(a.length)+a}var g_maxid;
function flattendata(a,b,c,d,e,f,h,j,o,r,y,q,l,n,p,s,A,u){g_maxid=l;if(typeof g_maxid!="number")g_maxid=typeof g_maxid!="undefined"?parseInt(g_maxid):0;l="";l+="LPAV"+serialize_str(a);if(o&&o!=0)l+="PREM"+serialize_str(o);if(lp_trueapi_trial_exp&&lp_trueapi_trial_exp!=0)l+="TATE"+serialize_str(lp_trueapi_trial_exp);if(lp_wote&&lp_wote!=0)l+="WOTE"+serialize_str(lp_wote);if(lp_fete&&lp_fete!=0)l+="FETE"+serialize_str(lp_fete);if(typeof r!="undefined"&&r!="")l+="ENCU"+serialize_str(r);l+="CBCU"+serialize_str(lp_iscbc?
"1":"0");if(u&&u!=0)l+="ENTU"+serialize_str(u);r={};u=0;a=[];o=[];for(var w in b)if(parseInt(w)==w){var D=parseInt(b[w].aid);if(D>g_maxid)g_maxid=D;if(typeof b[w].sharefolderid!="undefined"){var B=b[w].sharefolderid;if(typeof a[B]=="undefined")a[B]=[];a[B].push(b[w])}else{B=typeof b[w].group!="undefined"?b[w].group:"";if(B!=""){if(typeof r[B]=="undefined"){r[B]=u;++u}b[w].groupid=r[B]}l+=flattensite(b[w])}}for(w in c)if(parseInt(w)==w){D=parseInt(c[w].aid);if(D>g_maxid)g_maxid=D;if(typeof c[w].sharefolderid!=
"undefined"){B=c[w].sharefolderid;if(typeof a[B]=="undefined")a[B]=[];a[B].push(c[w])}else{B=typeof c[w].group!="undefined"?c[w].group:"";if(B!=""){if(typeof r[B]=="undefined"){r[B]=u;++u}c[w].groupid=r[B]}l+=flattensite(c[w])}}b="";b+=serialize_str(d.login_site_prompt?"1":"0");b+=serialize_str(d.edit_site_prompt?"1":"0");b+=serialize_str(d.edit_sn_prompt?"1":"0");b+=serialize_str(d.view_pw_prompt?"1":"0");b+=serialize_str(d.view_ff_prompt?"1":"0");b+=serialize_str(d.improve?"1":"0");b+=serialize_str(d.switch_identity_prompt?
"1":"0");b+=serialize_str(d.switch_f_prompt?"1":"0");b+=serialize_str(d.multifactor_reprompt?"1":"0");l+="SPMT"+serialize_str(b);if(p){d=false;for(w in p){d=true;break}if(d){b="";b+=serialize_str(p.allowmasterpasswordsave);b+=serialize_str(p.logoffclosebrowser);b+=serialize_str(p.logoffidle);if(typeof p.noexport=="undefined")p.noexport="0";b+=serialize_str(p.noexport);l+="PREF"+serialize_str(b)}}if(e){p=e.length;for(w=0;w<p;w++){d=e[w];b="";var C=parseInt(d.ffid);if(C>g_maxid)g_maxid=C;b+=serialize_str(d.ffid);
b+=serialize_str(d.profiletype);b+=serialize_str(d.profilename);b+=serialize_str(d.profilelanguage);b+=serialize_str(d.firstname);b+=serialize_str(d.middlename);b+=serialize_str(d.lastname);b+=serialize_str(d.email);b+=serialize_str(d.company);b+=serialize_str(d.ssn);b+=serialize_str(d.birthday);b+=serialize_str(d.address1);b+=serialize_str(d.address2);b+=serialize_str(d.city);b+=serialize_str(d.state);b+=serialize_str(d.state_name);b+=serialize_str(d.zip);b+=serialize_str(d.country);b+=serialize_str(d.country_cc3l);
b+=serialize_str(d.country_name);b+=serialize_str(d.mobilephone);b+=serialize_str(d.mobilephone3lcc);b+=serialize_str(d.mobileext);b+=serialize_str(d.evephone);b+=serialize_str(d.evephone3lcc);b+=serialize_str(d.eveext);b+=serialize_str(d.phone);b+=serialize_str(d.phone3lcc);b+=serialize_str(d.phoneext);b+=serialize_str(d.fax);b+=serialize_str(d.fax3lcc);b+=serialize_str(d.faxext);b+=serialize_str(d.ccnum);b+=serialize_str(d.ccexp);b+=serialize_str(d.cccsc);b+=serialize_str(d.username);b+=serialize_str(d.address3);
b+=serialize_str(d.title);b+=serialize_str(d.gender);b+=serialize_str(d.driverlicensenum);b+=serialize_str(d.taxid);b+=serialize_str(d.pwprotect?"1":"0");b+=serialize_str(d.bankname);b+=serialize_str(d.bankacctnum);b+=serialize_str(d.bankroutingnum);b+=serialize_str(d.timezone);b+=serialize_str(d.county);b+=serialize_str(d.ccstart);b+=serialize_str(d.ccname);b+=serialize_str(d.ccissuenum);b+=serialize_str(d.notes);b+=serialize_str(d.lastname2);b+=serialize_str(d.mobileemail);b+=serialize_str(d.firstname2);
b+=serialize_str(d.firstname3);b+=serialize_str(d.lastname3);b+=serialize_str(d.creditmon?"1":"0");l+="LPFF"+serialize_str(b);c=d.custom_fields.length;for(C=0;C<c;C++){B=d.custom_fields[C];b="";var H=parseInt(d.cfid);if(H>g_maxid)g_maxid=H;b+=serialize_str(B.cfid);b+=serialize_str(B.text);b+=serialize_str(B.value);b+=serialize_str(B.alttext);l+="FFCF"+serialize_str(b)}}}if(h)for(var I in h)if(typeof h[I]!="function")if(!I.match(/^[0-9]+$/)){e=h[I];b="";b+=serialize_str(e);b+=serialize_str(AES.url2hex(I));
l+="EQDN"+serialize_str(b)}if(u>0)for(var M in r){h=lpmenc(M,true);b="";b+=serialize_str(r[M]);b+=serialize_str(h);l+="GRPI"+serialize_str(b)}if(f){p=f.length;for(w=0;w<p;w++){h=f[w];b="";b+=serialize_str(h.iid);b+=serialize_str(h.iname);b+=serialize_str(h.aids);b+=serialize_str(h.ffids);b+=serialize_str((typeof h.pw_prompt!="undefined"?h.pw_prompt:typeof h.pwprotect!="undefined"&&h.pwprotect)?"1":"0");b+=serialize_str(h.appaids);l+="IDNT"+serialize_str(b)}}if(y){f=y.length;for(w=0;w<f;w++){h=y[w];
b="";b+=serialize_str(h.id);b+=serialize_str(h.fiid);b+=serialize_str(h.sharerusername);b+=serialize_str(h.sharedfromaid);b+=serialize_str(h.sharemessage);b+=serialize_str(h.sharekeyenchex);b+=serialize_str(h.sharekeyenchexsig);b+=serialize_str(h.sharename);b+=serialize_str(h.sharegroup);b+=serialize_str(h.username);b+=serialize_str(h.password);b+=serialize_str(h.extra);b+=serialize_str(h.shareautoaccept);I=0;e="";for(C in h.shareafids){I++;e+=serialize_str(C);e+=serialize_str(h.shareafids[C])}b+=
serialize_str(I);b+=e;l+="PNDG"+serialize_str(b)}}try{if(q)for(D in q){var J=q[D][0];b="";b+=serialize_str(D);for(M in J)if(M!="aid"){b+=serialize_str(M);b+=serialize_str(J[M])}l+="SHAP"+serialize_str(b)}}catch(N){}if(j){for(w=0;typeof j.neveraccounts!="undefined"&&w<j.neveraccounts.length;w++){C=serialize_str("0")+serialize_str(AES.url2hex(j.neveraccounts[w]));l+="NEVR"+serialize_str(C)}for(w=0;typeof j.nevergenerates!="undefined"&&w<j.nevergenerates.length;w++){C=serialize_str("1")+serialize_str(AES.url2hex(j.nevergenerates[w]));
l+="NEVR"+serialize_str(C)}for(w=0;typeof j.neverformfills!="undefined"&&w<j.neverformfills.length;w++){C=serialize_str("2")+serialize_str(AES.url2hex(j.neverformfills[w]));l+="NEVR"+serialize_str(C)}for(w=0;typeof j.neverautologins!="undefined"&&w<j.neverautologins.length;w++){C=serialize_str("3")+serialize_str(AES.url2hex(j.neverautologins[w]));l+="NEVR"+serialize_str(C)}for(w=0;typeof j.onlyaccounts!="undefined"&&w<j.onlyaccounts.length;w++){C=serialize_str("10000")+serialize_str(AES.url2hex(j.onlyaccounts[w]));
l+="NEVR"+serialize_str(C)}for(w=0;typeof j.onlygenerates!="undefined"&&w<j.onlygenerates.length;w++){C=serialize_str("10001")+serialize_str(AES.url2hex(j.onlygenerates[w]));l+="NEVR"+serialize_str(C)}for(w=0;typeof j.onlyformfills!="undefined"&&w<j.onlyformfills.length;w++){C=serialize_str("10002")+serialize_str(AES.url2hex(j.onlyformfills[w]));l+="NEVR"+serialize_str(C)}for(w=0;typeof j.onlyautologins!="undefined"&&w<j.onlyautologins.length;w++){C=serialize_str("10003")+serialize_str(AES.url2hex(j.onlyautologins[w]));
l+="NEVR"+serialize_str(C)}}if(n){C=n.length;for(w=0;w<C;w++){j=n[w];b="";b+=serialize_str(AES.url2hex(j.url));b+=serialize_str(j.exacthost);b+=serialize_str(j.exactport);l+="URUL"+serialize_str(b)}}if(A)for(w in A)if(parseInt(w)==w)if(typeof A[w].sharefolderid!="undefined"){B=A[w].sharefolderid;if(typeof o[B]=="undefined")o[B]=[];o[B].push(A[w])}else l+=flattenapplication(A[w]);if(s&&s.length>0){if(typeof lp_rsaprivatekeyenchex=="string"&&lp_rsaprivatekeyenchex.length>0)l+="PRIK"+serialize_str(lp_rsaprivatekeyenchex);
for(w=0;w<s.length;w++){n=s[w];b="";b+=serialize_str(n.id);b+=serialize_str(n.sharekey);b+=serialize_str(n.sharename);b+=serialize_str(n.readonly);b+=serialize_str(n.give);l+="SHAR"+serialize_str(b);A=n.key;B=n.id;for(C=0;typeof a[B]!="undefined"&&C<a[B].length;C++){j=a[B][C].group;a[B][C].group=a[B][C].group.substr(n.decsharename.length+1);l+=flattensite(a[B][C],A);a[B][C].group=j}for(C=0;typeof o[B]!="undefined"&&C<o[B].length;C++){j=o[B][C].group;o[B][C].group=o[B][C].group.substr(n.decsharename.length+
1);l+=flattenapplication(o[B][C],A);o[B][C].group=j}}}l+="MXID"+serialize_str(g_maxid);l+="ENDM"+serialize_str("OK");return l}
function flattensite(a,b){var c="";c+=serialize_str(a.aid);c+=serialize_str(lpmenc(a.name,true,b));c+=serialize_str(lpmenc(a.group,true,b));c+=serialize_str(typeof lp_no_url_bin2hex!="undefined"&&lp_no_url_bin2hex?a.url:AES.url2hex(a.url));c+=serialize_str(a.extra);c+=serialize_str(a.fav);c+=serialize_str(a.sharedfromaid);c+=serialize_str(a.username);c+=serialize_str(a.password);c+=serialize_str(a.pwprotect?"1":"0");c+=serialize_str(a.genpw?"1":"0");c+=serialize_str(a.sn?"1":"0");c+=serialize_str(a.last_touch);
c+=serialize_str(a.autologin?"1":"0");c+=serialize_str(a.never_autofill?"1":"0");c+=serialize_str(a.realm_data);c+=serialize_str(a.fiid);c+=serialize_str(a.custom_js);if(typeof a.submit_id=="undefined")a.submit_id="";c+=serialize_str(a.submit_id);if(typeof a.captcha_id=="undefined")a.captcha_id="";c+=serialize_str(a.captcha_id);if(typeof a.urid=="undefined")a.urid="0";var d=parseInt(a.urid);if(d>g_maxid)g_maxid=d;c+=serialize_str(a.urid);if(typeof a.basic_auth=="undefined")a.basic_auth="0";c+=serialize_str(a.basic_auth);
if(typeof a.method=="undefined")a.method="";c+=serialize_str(a.method);if(typeof a.action=="undefined")a.action="";c+=serialize_str(a.action);if(typeof a.groupid=="undefined")a.groupid="";c+=serialize_str(a.groupid);if(typeof a.deleted=="undefined")a.deleted="";c+=serialize_str(a.deleted);if(typeof a.attachid=="undefined")a.attachid="";c+=serialize_str(a.attachid);if(typeof a.attachname=="undefined")a.attachname="";c+=serialize_str(a.attachname);if(typeof a.individualshare=="undefined")a.individualshare=
false;c+=serialize_str(a.individualshare?"1":"0");c="ACCT"+serialize_str(c);if(typeof a.fields!="undefined")for(var e=0;e<a.fields.length;e++){var f=a.fields[e],h=serialize_str(f.name);h+=serialize_str(f.type);h+=serialize_str(f.value);h+=serialize_str(f.checked?"1":"0");h+=serialize_str(f.formname);if(typeof f.urid=="undefined")f.urid="0";d=parseInt(f.urid);if(d>g_maxid)g_maxid=d;h+=serialize_str(f.urid);if(typeof f.otherlogin=="undefined")f.otherlogin="0";h+=serialize_str(f.otherlogin);if(typeof f.url==
"undefined")f.url="";h+=serialize_str(f.url);c+=(f.otherfield?"ACOF":"ACFL")+serialize_str(h)}return c}
function flattenapplication(a,b){var c="",d="";d+=serialize_str(a.appaid);d+=serialize_str(AES.url2hex(a.appname));d+=serialize_str(a.extra);d+=serialize_str(lpmenc(a.name,true,b));d+=serialize_str(lpmenc(a.group,true,b));d+=serialize_str(a.last_touch);d+=serialize_str(a.fiid);d+=serialize_str(a.pwprotect?"1":"0");d+=serialize_str(a.fav);d+=serialize_str(a.script);d+=serialize_str(a.wintitle);d+=serialize_str(a.wininfo);d+=serialize_str(a.exeversion);d+=serialize_str(a.autologin);d+=serialize_str(a.warnversion?
"1":"0");d+=serialize_str(a.exehash);c+="AACT"+serialize_str(d);for(var e=0;e<a.fields.length;e++){d="";d+=serialize_str(a.fields[e].id);d+=serialize_str(a.fields[e].value);d+=serialize_str(a.fields[e].type);c+="AACF"+serialize_str(d)}return c}var dbits,canary=244837814094590,j_lm=(canary&16777215)==15715070;function BigInteger(a,b,c){if(a!=null)if("number"==typeof a)this.fromNumber(a,b,c);else b==null&&"string"!=typeof a?this.fromString(a,256):this.fromString(a,b)}
function nbi(){return new BigInteger(null)}function am1(a,b,c,d,e,f){for(;--f>=0;){var h=b*this[a++]+c[d]+e;e=Math.floor(h/67108864);c[d++]=h&67108863}return e}function am2(a,b,c,d,e,f){var h=b&32767;for(b>>=15;--f>=0;){var j=this[a]&32767,o=this[a++]>>15,r=b*j+o*h;j=h*j+((r&32767)<<15)+c[d]+(e&1073741823);e=(j>>>30)+(r>>>15)+b*o+(e>>>30);c[d++]=j&1073741823}return e}
function am3(a,b,c,d,e,f){var h=b&16383;for(b>>=14;--f>=0;){var j=this[a]&16383,o=this[a++]>>14,r=b*j+o*h;j=h*j+((r&16383)<<14)+c[d]+e;e=(j>>28)+(r>>14)+b*o;c[d++]=j&268435455}return e}if(j_lm&&typeof navigator!="undefined"&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;dbits=30}else if(j_lm&&typeof navigator!="undefined"&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;dbits=26}else{BigInteger.prototype.am=am3;dbits=28}BigInteger.prototype.DB=dbits;
BigInteger.prototype.DM=(1<<dbits)-1;BigInteger.prototype.DV=1<<dbits;var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP);BigInteger.prototype.F1=BI_FP-dbits;BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz",BI_RC=[],rr,vv;rr="0".charCodeAt(0);for(vv=0;vv<=9;++vv)BI_RC[rr++]=vv;rr="a".charCodeAt(0);for(vv=10;vv<36;++vv)BI_RC[rr++]=vv;rr="A".charCodeAt(0);for(vv=10;vv<36;++vv)BI_RC[rr++]=vv;function int2char(a){return BI_RM.charAt(a)}
function intAt(a,b){var c=BI_RC[a.charCodeAt(b)];return c==null?-1:c}function bnpCopyTo(a){for(var b=this.t-1;b>=0;--b)a[b]=this[b];a.t=this.t;a.s=this.s}function bnpFromInt(a){this.t=1;this.s=a<0?-1:0;if(a>0)this[0]=a;else if(a<-1)this[0]=a+DV;else this.t=0}function nbv(a){var b=nbi();b.fromInt(a);return b}
function bnpFromString(a,b){var c;if(b==16)c=4;else if(b==8)c=3;else if(b==256)c=8;else if(b==2)c=1;else if(b==32)c=5;else if(b==4)c=2;else{this.fromRadix(a,b);return}this.s=this.t=0;for(var d=a.length,e=false,f=0;--d>=0;){var h=c==8?a[d]&255:intAt(a,d);if(h<0){if(a.charAt(d)=="-")e=true}else{e=false;if(f==0)this[this.t++]=h;else if(f+c>this.DB){this[this.t-1]|=(h&(1<<this.DB-f)-1)<<f;this[this.t++]=h>>this.DB-f}else this[this.t-1]|=h<<f;f+=c;if(f>=this.DB)f-=this.DB}}if(c==8&&(a[0]&128)!=0){this.s=
-1;if(f>0)this[this.t-1]|=(1<<this.DB-f)-1<<f}this.clamp();e&&BigInteger.ZERO.subTo(this,this)}function bnpClamp(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t}
function bnToString(a){if(this.s<0)return"-"+this.negate().toString(a);if(a==16)a=4;else if(a==8)a=3;else if(a==2)a=1;else if(a==32)a=5;else if(a==4)a=2;else return this.toRadix(a);var b=(1<<a)-1,c,d=false,e="",f=this.t,h=this.DB-f*this.DB%a;if(f-- >0){if(h<this.DB&&(c=this[f]>>h)>0){d=true;e=int2char(c)}for(;f>=0;){if(h<a){c=(this[f]&(1<<h)-1)<<a-h;c|=this[--f]>>(h+=this.DB-a)}else{c=this[f]>>(h-=a)&b;if(h<=0){h+=this.DB;--f}}if(c>0)d=true;if(d)e+=int2char(c)}}return d?e:"0"}
function bnNegate(){var a=nbi();BigInteger.ZERO.subTo(this,a);return a}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(a){var b=this.s-a.s;if(b!=0)return b;var c=this.t;b=c-a.t;if(b!=0)return b;for(;--c>=0;)if((b=this[c]-a[c])!=0)return b;return 0}function nbits(a){var b=1,c;if((c=a>>>16)!=0){a=c;b+=16}if((c=a>>8)!=0){a=c;b+=8}if((c=a>>4)!=0){a=c;b+=4}if((c=a>>2)!=0){a=c;b+=2}if(a>>1!=0)b+=1;return b}
function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(a,b){var c;for(c=this.t-1;c>=0;--c)b[c+a]=this[c];for(c=a-1;c>=0;--c)b[c]=0;b.t=this.t+a;b.s=this.s}function bnpDRShiftTo(a,b){for(var c=a;c<this.t;++c)b[c-a]=this[c];b.t=Math.max(this.t-a,0);b.s=this.s}
function bnpLShiftTo(a,b){var c=a%this.DB,d=this.DB-c,e=(1<<d)-1,f=Math.floor(a/this.DB),h=this.s<<c&this.DM,j;for(j=this.t-1;j>=0;--j){b[j+f+1]=this[j]>>d|h;h=(this[j]&e)<<c}for(j=f-1;j>=0;--j)b[j]=0;b[f]=h;b.t=this.t+f+1;b.s=this.s;b.clamp()}
function bnpRShiftTo(a,b){b.s=this.s;var c=Math.floor(a/this.DB);if(c>=this.t)b.t=0;else{var d=a%this.DB,e=this.DB-d,f=(1<<d)-1;b[0]=this[c]>>d;for(var h=c+1;h<this.t;++h){b[h-c-1]|=(this[h]&f)<<e;b[h-c]=this[h]>>d}if(d>0)b[this.t-c-1]|=(this.s&f)<<e;b.t=this.t-c;b.clamp()}}
function bnpSubTo(a,b){for(var c=0,d=0,e=Math.min(a.t,this.t);c<e;){d+=this[c]-a[c];b[c++]=d&this.DM;d>>=this.DB}if(a.t<this.t){for(d-=a.s;c<this.t;){d+=this[c];b[c++]=d&this.DM;d>>=this.DB}d+=this.s}else{for(d+=this.s;c<a.t;){d-=a[c];b[c++]=d&this.DM;d>>=this.DB}d-=a.s}b.s=d<0?-1:0;if(d<-1)b[c++]=this.DV+d;else if(d>0)b[c++]=d;b.t=c;b.clamp()}
function bnpMultiplyTo(a,b){var c=this.abs(),d=a.abs(),e=c.t;for(b.t=e+d.t;--e>=0;)b[e]=0;for(e=0;e<d.t;++e)b[e+c.t]=c.am(0,d[e],b,e,0,c.t);b.s=0;b.clamp();this.s!=a.s&&BigInteger.ZERO.subTo(b,b)}function bnpSquareTo(a){for(var b=this.abs(),c=a.t=2*b.t;--c>=0;)a[c]=0;for(c=0;c<b.t-1;++c){var d=b.am(c,b[c],a,2*c,0,1);if((a[c+b.t]+=b.am(c+1,2*b[c],a,2*c+1,d,b.t-c-1))>=b.DV){a[c+b.t]-=b.DV;a[c+b.t+1]=1}}if(a.t>0)a[a.t-1]+=b.am(c,b[c],a,2*c,0,1);a.s=0;a.clamp()}
function bnpDivRemTo(a,b,c){var d=a.abs();if(!(d.t<=0)){var e=this.abs();if(e.t<d.t){b!=null&&b.fromInt(0);c!=null&&this.copyTo(c)}else{if(c==null)c=nbi();var f=nbi(),h=this.s;a=a.s;var j=this.DB-nbits(d[d.t-1]);if(j>0){d.lShiftTo(j,f);e.lShiftTo(j,c)}else{d.copyTo(f);e.copyTo(c)}d=f.t;e=f[d-1];if(e!=0){var o=e*(1<<this.F1)+(d>1?f[d-2]>>this.F2:0),r=this.FV/o;o=(1<<this.F1)/o;var y=1<<this.F2,q=c.t,l=q-d,n=b==null?nbi():b;f.dlShiftTo(l,n);if(c.compareTo(n)>=0){c[c.t++]=1;c.subTo(n,c)}BigInteger.ONE.dlShiftTo(d,
n);for(n.subTo(f,f);f.t<d;)f[f.t++]=0;for(;--l>=0;){var p=c[--q]==e?this.DM:Math.floor(c[q]*r+(c[q-1]+y)*o);if((c[q]+=f.am(0,p,c,l,0,d))<p){f.dlShiftTo(l,n);for(c.subTo(n,c);c[q]<--p;)c.subTo(n,c)}}if(b!=null){c.drShiftTo(d,b);h!=a&&BigInteger.ZERO.subTo(b,b)}c.t=d;c.clamp();j>0&&c.rShiftTo(j,c);h<0&&BigInteger.ZERO.subTo(c,c)}}}}function bnMod(a){var b=nbi();this.abs().divRemTo(a,null,b);this.s<0&&b.compareTo(BigInteger.ZERO)>0&&a.subTo(b,b);return b}function Classic(a){this.m=a}
function cConvert(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a}function cRevert(a){return a}function cReduce(a){a.divRemTo(this.m,null,a)}function cMulTo(a,b,c){a.multiplyTo(b,c);this.reduce(c)}function cSqrTo(a,b){a.squareTo(b);this.reduce(b)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;
function bnpInvDigit(){if(this.t<1)return 0;var a=this[0];if((a&1)==0)return 0;var b=a&3;b=b*(2-(a&15)*b)&15;b=b*(2-(a&255)*b)&255;b=b*(2-((a&65535)*b&65535))&65535;b=b*(2-a*b%this.DV)%this.DV;return b>0?this.DV-b:-b}function Montgomery(a){this.m=a;this.mp=a.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<<a.DB-15)-1;this.mt2=2*a.t}
function montConvert(a){var b=nbi();a.abs().dlShiftTo(this.m.t,b);b.divRemTo(this.m,null,b);a.s<0&&b.compareTo(BigInteger.ZERO)>0&&this.m.subTo(b,b);return b}function montRevert(a){var b=nbi();a.copyTo(b);this.reduce(b);return b}
function montReduce(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var b=0;b<this.m.t;++b){var c=a[b]&32767,d=c*this.mpl+((c*this.mph+(a[b]>>15)*this.mpl&this.um)<<15)&a.DM;c=b+this.m.t;for(a[c]+=this.m.am(0,d,a,b,0,this.m.t);a[c]>=a.DV;){a[c]-=a.DV;a[++c]++}}a.clamp();a.drShiftTo(this.m.t,a);a.compareTo(this.m)>=0&&a.subTo(this.m,a)}function montSqrTo(a,b){a.squareTo(b);this.reduce(b)}function montMulTo(a,b,c){a.multiplyTo(b,c);this.reduce(c)}Montgomery.prototype.convert=montConvert;
Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0}function bnpExp(a,b){if(a>4294967295||a<1)return BigInteger.ONE;var c=nbi(),d=nbi(),e=b.convert(this),f=nbits(a)-1;for(e.copyTo(c);--f>=0;){b.sqrTo(c,d);if((a&1<<f)>0)b.mulTo(d,e,c);else{var h=c;c=d;d=h}}return b.revert(c)}
function bnModPowInt(a,b){var c;c=a<256||b.isEven()?new Classic(b):new Montgomery(b);return this.exp(a,c)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;
BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;
BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnClone(){var a=nbi();this.copyTo(a);return a}function bnIntValue(){if(this.s<0)if(this.t==1)return this[0]-this.DV;else{if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function bnByteValue(){return this.t==0?this.s:this[0]<<24>>24}function bnShortValue(){return this.t==0?this.s:this[0]<<16>>16}
function bnpChunkSize(a){return Math.floor(Math.LN2*this.DB/Math.log(a))}function bnSigNum(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function bnpToRadix(a){if(a==null)a=10;if(this.signum()==0||a<2||a>36)return"0";var b=this.chunkSize(a);b=Math.pow(a,b);var c=nbv(b),d=nbi(),e=nbi(),f="";for(this.divRemTo(c,d,e);d.signum()>0;){f=(b+e.intValue()).toString(a).substr(1)+f;d.divRemTo(c,d,e)}return e.intValue().toString(a)+f}
function bnpFromRadix(a,b){this.fromInt(0);if(b==null)b=10;for(var c=this.chunkSize(b),d=Math.pow(b,c),e=false,f=0,h=0,j=0;j<a.length;++j){var o=intAt(a,j);if(o<0){if(a.charAt(j)=="-"&&this.signum()==0)e=true}else{h=b*h+o;if(++f>=c){this.dMultiply(d);this.dAddOffset(h,0);h=f=0}}}if(f>0){this.dMultiply(Math.pow(b,f));this.dAddOffset(h,0)}e&&BigInteger.ZERO.subTo(this,this)}
function bnpFromNumber(a,b,c){if("number"==typeof b)if(a<2)this.fromInt(1);else{this.fromNumber(a,c);this.testBit(a-1)||this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this);for(this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(b);){this.dAddOffset(2,0);this.bitLength()>a&&this.subTo(BigInteger.ONE.shiftLeft(a-1),this)}}else{c=[];var d=a&7;c.length=(a>>3)+1;b.nextBytes(c);if(d>0)c[0]&=(1<<d)-1;else c[0]=0;this.fromString(c,256)}}
function bnToByteArray(){var a=this.t,b=[];b[0]=this.s;var c=this.DB-a*this.DB%8,d,e=0;if(a-- >0){if(c<this.DB&&(d=this[a]>>c)!=(this.s&this.DM)>>c)b[e++]=d|this.s<<this.DB-c;for(;a>=0;){if(c<8){d=(this[a]&(1<<c)-1)<<8-c;d|=this[--a]>>(c+=this.DB-8)}else{d=this[a]>>(c-=8)&255;if(c<=0){c+=this.DB;--a}}if((d&128)!=0)d|=-256;e==0&&(this.s&128)!=(d&128)&&++e;if(e>0||d!=this.s)b[e++]=d}}return b}function bnEquals(a){return this.compareTo(a)==0}function bnMin(a){return this.compareTo(a)<0?this:a}
function bnMax(a){return this.compareTo(a)>0?this:a}function bnpBitwiseTo(a,b,c){var d,e,f=Math.min(a.t,this.t);for(d=0;d<f;++d)c[d]=b(this[d],a[d]);if(a.t<this.t){e=a.s&this.DM;for(d=f;d<this.t;++d)c[d]=b(this[d],e);c.t=this.t}else{e=this.s&this.DM;for(d=f;d<a.t;++d)c[d]=b(e,a[d]);c.t=a.t}c.s=b(this.s,a.s);c.clamp()}function op_and(a,b){return a&b}function bnAnd(a){var b=nbi();this.bitwiseTo(a,op_and,b);return b}function op_or(a,b){return a|b}
function bnOr(a){var b=nbi();this.bitwiseTo(a,op_or,b);return b}function op_xor(a,b){return a^b}function bnXor(a){var b=nbi();this.bitwiseTo(a,op_xor,b);return b}function op_andnot(a,b){return a&~b}function bnAndNot(a){var b=nbi();this.bitwiseTo(a,op_andnot,b);return b}function bnNot(){for(var a=nbi(),b=0;b<this.t;++b)a[b]=this.DM&~this[b];a.t=this.t;a.s=~this.s;return a}function bnShiftLeft(a){var b=nbi();a<0?this.rShiftTo(-a,b):this.lShiftTo(a,b);return b}
function bnShiftRight(a){var b=nbi();a<0?this.lShiftTo(-a,b):this.rShiftTo(a,b);return b}function lbit(a){if(a==0)return-1;var b=0;if((a&65535)==0){a>>=16;b+=16}if((a&255)==0){a>>=8;b+=8}if((a&15)==0){a>>=4;b+=4}if((a&3)==0){a>>=2;b+=2}(a&1)==0&&++b;return b}function bnGetLowestSetBit(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+lbit(this[a]);if(this.s<0)return this.t*this.DB;return-1}function cbit(a){for(var b=0;a!=0;){a&=a-1;++b}return b}
function bnBitCount(){for(var a=0,b=this.s&this.DM,c=0;c<this.t;++c)a+=cbit(this[c]^b);return a}function bnTestBit(a){var b=Math.floor(a/this.DB);if(b>=this.t)return this.s!=0;return(this[b]&1<<a%this.DB)!=0}function bnpChangeBit(a,b){var c=BigInteger.ONE.shiftLeft(a);this.bitwiseTo(c,b,c);return c}function bnSetBit(a){return this.changeBit(a,op_or)}function bnClearBit(a){return this.changeBit(a,op_andnot)}function bnFlipBit(a){return this.changeBit(a,op_xor)}
function bnpAddTo(a,b){for(var c=0,d=0,e=Math.min(a.t,this.t);c<e;){d+=this[c]+a[c];b[c++]=d&this.DM;d>>=this.DB}if(a.t<this.t){for(d+=a.s;c<this.t;){d+=this[c];b[c++]=d&this.DM;d>>=this.DB}d+=this.s}else{for(d+=this.s;c<a.t;){d+=a[c];b[c++]=d&this.DM;d>>=this.DB}d+=a.s}b.s=d<0?-1:0;if(d>0)b[c++]=d;else if(d<-1)b[c++]=this.DV+d;b.t=c;b.clamp()}function bnAdd(a){var b=nbi();this.addTo(a,b);return b}function bnSubtract(a){var b=nbi();this.subTo(a,b);return b}
function bnMultiply(a){var b=nbi();this.multiplyTo(a,b);return b}function bnDivide(a){var b=nbi();this.divRemTo(a,b,null);return b}function bnRemainder(a){var b=nbi();this.divRemTo(a,null,b);return b}function bnDivideAndRemainder(a){var b=nbi(),c=nbi();this.divRemTo(a,b,c);return[b,c]}function bnpDMultiply(a){this[this.t]=this.am(0,a-1,this,0,0,this.t);++this.t;this.clamp()}
function bnpDAddOffset(a,b){if(a!=0){for(;this.t<=b;)this[this.t++]=0;for(this[b]+=a;this[b]>=this.DV;){this[b]-=this.DV;if(++b>=this.t)this[this.t++]=0;++this[b]}}}function NullExp(){}function nNop(a){return a}function nMulTo(a,b,c){a.multiplyTo(b,c)}function nSqrTo(a,b){a.squareTo(b)}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;function bnPow(a){return this.exp(a,new NullExp)}
function bnpMultiplyLowerTo(a,b,c){var d=Math.min(this.t+a.t,b);c.s=0;for(c.t=d;d>0;)c[--d]=0;var e;for(e=c.t-this.t;d<e;++d)c[d+this.t]=this.am(0,a[d],c,d,0,this.t);for(e=Math.min(a.t,b);d<e;++d)this.am(0,a[d],c,d,0,b-d);c.clamp()}function bnpMultiplyUpperTo(a,b,c){--b;var d=c.t=this.t+a.t-b;for(c.s=0;--d>=0;)c[d]=0;for(d=Math.max(b-this.t,0);d<a.t;++d)c[this.t+d-b]=this.am(b-d,a[d],c,0,0,this.t+d-b);c.clamp();c.drShiftTo(1,c)}
function Barrett(a){this.r2=nbi();this.q3=nbi();BigInteger.ONE.dlShiftTo(2*a.t,this.r2);this.mu=this.r2.divide(a);this.m=a}function barrettConvert(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);else if(a.compareTo(this.m)<0)return a;else{var b=nbi();a.copyTo(b);this.reduce(b);return b}}function barrettRevert(a){return a}
function barrettReduce(a){a.drShiftTo(this.m.t-1,this.r2);if(a.t>this.m.t+1){a.t=this.m.t+1;a.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);for(this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);a.compareTo(this.r2)<0;)a.dAddOffset(1,this.m.t+1);for(a.subTo(this.r2,a);a.compareTo(this.m)>=0;)a.subTo(this.m,a)}function barrettSqrTo(a,b){a.squareTo(b);this.reduce(b)}function barrettMulTo(a,b,c){a.multiplyTo(b,c);this.reduce(c)}Barrett.prototype.convert=barrettConvert;
Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;
function bnModPow(a,b){var c=a.bitLength(),d,e=nbv(1),f;if(c<=0)return e;else d=c<18?1:c<48?3:c<144?4:c<768?5:6;f=c<8?new Classic(b):b.isEven()?new Barrett(b):new Montgomery(b);var h=[],j=3,o=d-1,r=(1<<d)-1;h[1]=f.convert(this);if(d>1){c=nbi();for(f.sqrTo(h[1],c);j<=r;){h[j]=nbi();f.mulTo(c,h[j-2],h[j]);j+=2}}var y=a.t-1,q,l=true,n=nbi();for(c=nbits(a[y])-1;y>=0;){if(c>=o)q=a[y]>>c-o&r;else{q=(a[y]&(1<<c+1)-1)<<o-c;if(y>0)q|=a[y-1]>>this.DB+c-o}for(j=d;(q&1)==0;){q>>=1;--j}if((c-=j)<0){c+=this.DB;
--y}if(l){h[q].copyTo(e);l=false}else{for(;j>1;){f.sqrTo(e,n);f.sqrTo(n,e);j-=2}if(j>0)f.sqrTo(e,n);else{j=e;e=n;n=j}f.mulTo(n,h[q],e)}for(;y>=0&&(a[y]&1<<c)==0;){f.sqrTo(e,n);j=e;e=n;n=j;if(--c<0){c=this.DB-1;--y}}}return f.revert(e)}
function bnGCD(a){var b=this.s<0?this.negate():this.clone();a=a.s<0?a.negate():a.clone();if(b.compareTo(a)<0){var c=b;b=a;a=c}c=b.getLowestSetBit();var d=a.getLowestSetBit();if(d<0)return b;if(c<d)d=c;if(d>0){b.rShiftTo(d,b);a.rShiftTo(d,a)}for(;b.signum()>0;){if((c=b.getLowestSetBit())>0)b.rShiftTo(c,b);if((c=a.getLowestSetBit())>0)a.rShiftTo(c,a);if(b.compareTo(a)>=0){b.subTo(a,b);b.rShiftTo(1,b)}else{a.subTo(b,a);a.rShiftTo(1,a)}}d>0&&a.lShiftTo(d,a);return a}
function bnpModInt(a){if(a<=0)return 0;var b=this.DV%a,c=this.s<0?a-1:0;if(this.t>0)if(b==0)c=this[0]%a;else for(var d=this.t-1;d>=0;--d)c=(b*c+this[d])%a;return c}
function bnModInverse(a){var b=a.isEven();if(this.isEven()&&b||a.signum()==0)return BigInteger.ZERO;for(var c=a.clone(),d=this.clone(),e=nbv(1),f=nbv(0),h=nbv(0),j=nbv(1);c.signum()!=0;){for(;c.isEven();){c.rShiftTo(1,c);if(b){if(!e.isEven()||!f.isEven()){e.addTo(this,e);f.subTo(a,f)}e.rShiftTo(1,e)}else f.isEven()||f.subTo(a,f);f.rShiftTo(1,f)}for(;d.isEven();){d.rShiftTo(1,d);if(b){if(!h.isEven()||!j.isEven()){h.addTo(this,h);j.subTo(a,j)}h.rShiftTo(1,h)}else j.isEven()||j.subTo(a,j);j.rShiftTo(1,
j)}if(c.compareTo(d)>=0){c.subTo(d,c);b&&e.subTo(h,e);f.subTo(j,f)}else{d.subTo(c,d);b&&h.subTo(e,h);j.subTo(f,j)}}if(d.compareTo(BigInteger.ONE)!=0)return BigInteger.ZERO;if(j.compareTo(a)>=0)return j.subtract(a);if(j.signum()<0)j.addTo(a,j);else return j;return j.signum()<0?j.add(a):j}
var lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],lplim=67108864/lowprimes[lowprimes.length-1];
function bnIsProbablePrime(a){var b,c=this.abs();if(c.t==1&&c[0]<=lowprimes[lowprimes.length-1]){for(b=0;b<lowprimes.length;++b)if(c[0]==lowprimes[b])return true;return false}if(c.isEven())return false;for(b=1;b<lowprimes.length;){for(var d=lowprimes[b],e=b+1;e<lowprimes.length&&d<lplim;)d*=lowprimes[e++];for(d=c.modInt(d);b<e;)if(d%lowprimes[b++]==0)return false}return c.millerRabin(a)}
function bnpMillerRabin(a,b){var c=this.subtract(BigInteger.ONE),d=c.getLowestSetBit();if(d<=0)return false;var e=c.shiftRight(d);a=a+1>>1;if(a>lowprimes.length)a=lowprimes.length;for(var f=nbi(),h=typeof b!="undefined"?b+1:a,j=typeof b!="undefined"?b:0;j<h;++j){f.fromInt(lowprimes[j]);var o=f.modPow(e,this);if(o.compareTo(BigInteger.ONE)!=0&&o.compareTo(c)!=0){for(var r=1;r++<d&&o.compareTo(c)!=0;){o=o.modPowInt(2,this);if(o.compareTo(BigInteger.ONE)==0)return false}if(o.compareTo(c)!=0)return false}}return true}
BigInteger.prototype.chunkSize=bnpChunkSize;BigInteger.prototype.toRadix=bnpToRadix;BigInteger.prototype.fromRadix=bnpFromRadix;BigInteger.prototype.fromNumber=bnpFromNumber;BigInteger.prototype.bitwiseTo=bnpBitwiseTo;BigInteger.prototype.changeBit=bnpChangeBit;BigInteger.prototype.addTo=bnpAddTo;BigInteger.prototype.dMultiply=bnpDMultiply;BigInteger.prototype.dAddOffset=bnpDAddOffset;BigInteger.prototype.multiplyLowerTo=bnpMultiplyLowerTo;BigInteger.prototype.multiplyUpperTo=bnpMultiplyUpperTo;
BigInteger.prototype.modInt=bnpModInt;BigInteger.prototype.millerRabin=bnpMillerRabin;BigInteger.prototype.clone=bnClone;BigInteger.prototype.intValue=bnIntValue;BigInteger.prototype.byteValue=bnByteValue;BigInteger.prototype.shortValue=bnShortValue;BigInteger.prototype.signum=bnSigNum;BigInteger.prototype.toByteArray=bnToByteArray;BigInteger.prototype.equals=bnEquals;BigInteger.prototype.min=bnMin;BigInteger.prototype.max=bnMax;BigInteger.prototype.and=bnAnd;BigInteger.prototype.or=bnOr;
BigInteger.prototype.xor=bnXor;BigInteger.prototype.andNot=bnAndNot;BigInteger.prototype.not=bnNot;BigInteger.prototype.shiftLeft=bnShiftLeft;BigInteger.prototype.shiftRight=bnShiftRight;BigInteger.prototype.getLowestSetBit=bnGetLowestSetBit;BigInteger.prototype.bitCount=bnBitCount;BigInteger.prototype.testBit=bnTestBit;BigInteger.prototype.setBit=bnSetBit;BigInteger.prototype.clearBit=bnClearBit;BigInteger.prototype.flipBit=bnFlipBit;BigInteger.prototype.add=bnAdd;BigInteger.prototype.subtract=bnSubtract;
BigInteger.prototype.multiply=bnMultiply;BigInteger.prototype.divide=bnDivide;BigInteger.prototype.remainder=bnRemainder;BigInteger.prototype.divideAndRemainder=bnDivideAndRemainder;BigInteger.prototype.modPow=bnModPow;BigInteger.prototype.modInverse=bnModInverse;BigInteger.prototype.pow=bnPow;BigInteger.prototype.gcd=bnGCD;BigInteger.prototype.isProbablePrime=bnIsProbablePrime;function parseBigInt(a,b){return new BigInteger(a,b)}
function linebrk(a,b){for(var c="",d=0;d+b<a.length;){c+=a.substring(d,d+b)+"\n";d+=b}return c+a.substring(d,a.length)}function byte2Hex(a){return a<16?"0"+a.toString(16):a.toString(16)}
function pkcs1pad2(a,b){if(b<a.length+11){alert("Message too long for RSA");return null}for(var c=[],d=a.length-1;d>=0&&b>0;){var e=a.charCodeAt(d--);if(e<128)c[--b]=e;else if(e>127&&e<2048){c[--b]=e&63|128;c[--b]=e>>6|192}else{c[--b]=e&63|128;c[--b]=e>>6&63|128;c[--b]=e>>12|224}}c[--b]=0;d=new SecureRandom;for(e=[];b>2;){for(e[0]=0;e[0]==0;)d.nextBytes(e);c[--b]=e[0]}c[--b]=2;c[--b]=0;return new BigInteger(c)}
function RSAKey(){this.n=null;this.e=0;this.coeff=this.dmq1=this.dmp1=this.q=this.p=this.d=null}function RSASetPublic(a,b){if(a!=null&&b!=null&&a.length>0&&b.length>0){this.n=parseBigInt(a,16);this.e=parseInt(b,16)}else alert("Invalid RSA public key")}function RSADoPublic(a){return a.modPowInt(this.e,this.n)}function RSAEncrypt(a){a=oaeppad(a);if(a==null)return null;a=this.doPublic(a);if(a==null)return null;a=a.toString(16);return(a.length&1)==0?a:"0"+a}RSAKey.prototype.doPublic=RSADoPublic;
RSAKey.prototype.setPublic=RSASetPublic;RSAKey.prototype.encrypt=RSAEncrypt;function pkcs1unpad2(a,b){for(var c=a.toByteArray(),d=0;d<c.length&&c[d]==0;)++d;if(c.length-d!=b-1||c[d]!=2)return null;for(++d;c[d]!=0;)if(++d>=c.length)return null;for(var e="";++d<c.length;){var f=c[d]&255;if(f<128)e+=String.fromCharCode(f);else if(f>191&&f<224){e+=String.fromCharCode((f&31)<<6|c[d+1]&63);++d}else{e+=String.fromCharCode((f&15)<<12|(c[d+1]&63)<<6|c[d+2]&63);d+=2}}return e}
function RSASetPrivate(a,b,c){if(a!=null&&b!=null&&a.length>0&&b.length>0){this.n=parseBigInt(a,16);this.e=parseInt(b,16);this.d=parseBigInt(c,16)}else alert("Invalid RSA private key")}
function RSASetPrivateEx(a,b,c,d,e,f,h,j){if(a!=null&&b!=null&&a.length>0&&b.length>0){this.n=parseBigInt(a,16);this.e=parseInt(b,16);this.d=parseBigInt(c,16);this.p=parseBigInt(d,16);this.q=parseBigInt(e,16);this.dmp1=parseBigInt(f,16);this.dmq1=parseBigInt(h,16);this.coeff=parseBigInt(j,16)}else alert("Invalid RSA private key")}
function RSAGenerate(a,b){var c=new SecureRandom,d=a>>1;this.e=parseInt(b,16);for(var e=new BigInteger(b,16);;){for(;;){this.p=new BigInteger(a-d,1,c);if(this.p.subtract(BigInteger.ONE).gcd(e).compareTo(BigInteger.ONE)==0&&this.p.isProbablePrime(10))break}for(;;){this.q=new BigInteger(d,1,c);if(this.q.subtract(BigInteger.ONE).gcd(e).compareTo(BigInteger.ONE)==0&&this.q.isProbablePrime(10))break}if(this.p.compareTo(this.q)<=0){var f=this.p;this.p=this.q;this.q=f}f=this.p.subtract(BigInteger.ONE);var h=
this.q.subtract(BigInteger.ONE),j=f.multiply(h);if(j.gcd(e).compareTo(BigInteger.ONE)==0){this.n=this.p.multiply(this.q);this.d=e.modInverse(j);this.dmp1=this.d.mod(f);this.dmq1=this.d.mod(h);this.coeff=this.q.modInverse(this.p);break}}}
function RSADoPrivate(a){if(this.p==null||this.q==null)return a.modPow(this.d,this.n);var b=a.mod(this.p).modPow(this.dmp1,this.p);for(a=a.mod(this.q).modPow(this.dmq1,this.q);b.compareTo(a)<0;)b=b.add(this.p);return b.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)}function RSADecrypt(a){a=this.doPrivate(parseBigInt(a,16));if(a==null)return null;return oaepunpad(a)}RSAKey.prototype.doPrivate=RSADoPrivate;RSAKey.prototype.setPrivate=RSASetPrivate;
RSAKey.prototype.setPrivateEx=RSASetPrivateEx;RSAKey.prototype.generate=RSAGenerate;RSAKey.prototype.decrypt=RSADecrypt;var b64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64pad="=";
function hex2b64(a){var b,c,d="";for(b=0;b+3<=a.length;b+=3){c=parseInt(a.substring(b,b+3),16);d+=b64map.charAt(c>>6)+b64map.charAt(c&63)}if(b+1==a.length){c=parseInt(a.substring(b,b+1),16);d+=b64map.charAt(c<<2)}else if(b+2==a.length){c=parseInt(a.substring(b,b+2),16);d+=b64map.charAt(c>>2)+b64map.charAt((c&3)<<4)}for(;(d.length&3)>0;)d+=b64pad;return d}
function b64tohex(a){var b="",c,d=0,e;for(c=0;c<a.length;++c){if(a.charAt(c)==b64pad)break;v=b64map.indexOf(a.charAt(c));if(!(v<0))if(d==0){b+=int2char(v>>2);e=v&3;d=1}else if(d==1){b+=int2char(e<<2|v>>4);e=v&15;d=2}else if(d==2){b+=int2char(e);b+=int2char(v>>2);e=v&3;d=3}else{b+=int2char(e<<2|v>>4);b+=int2char(v&15);d=0}}if(d==1)b+=int2char(e<<2);return b}function b64toBA(a){a=b64tohex(a);var b,c=[];for(b=0;2*b<a.length;++b)c[b]=parseInt(a.substring(2*b,2*b+2),16);return c}
function Stream(a,b){if(a instanceof Stream){this.enc=a.enc;this.pos=a.pos}else{this.enc=a;this.pos=b}}Stream.prototype.get=function(a){if(a==undefined)a=this.pos++;if(a>=this.enc.length)throw"Requesting byte offset "+a+" on a stream of length "+this.enc.length;return this.enc[a]};Stream.prototype.hexDigits="0123456789ABCDEF";Stream.prototype.hexByte=function(a){return this.hexDigits.charAt(a>>4&15)+this.hexDigits.charAt(a&15)};
Stream.prototype.hexDump=function(a,b){for(var c="",d=a;d<b;++d){c+=this.hexByte(this.get(d));switch(d&15){case 7:c+="  ";break;case 15:c+="\n";break;default:c+=" "}}return c};Stream.prototype.parseStringISO=function(a,b){for(var c="",d=a;d<b;++d)c+=String.fromCharCode(this.get(d));return c};
Stream.prototype.parseStringUTF=function(a,b){for(var c="",d=0,e=a;e<b;){d=this.get(e++);c+=d<128?String.fromCharCode(d):d>191&&d<224?String.fromCharCode((d&31)<<6|this.get(e++)&63):String.fromCharCode((d&15)<<12|(this.get(e++)&63)<<6|this.get(e++)&63)}return c};Stream.prototype.reTime=/^((?:1[89]|2\d)?\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;
Stream.prototype.parseTime=function(a,b){var c=this.parseStringISO(a,b),d=this.reTime.exec(c);if(!d)return"Unrecognized time: "+c;c=d[1]+"-"+d[2]+"-"+d[3]+" "+d[4];if(d[5]){c+=":"+d[5];if(d[6]){c+=":"+d[6];if(d[7])c+="."+d[7]}}if(d[8]){c+=" UTC";if(d[8]!="Z"){c+=d[8];if(d[9])c+=":"+d[9]}}return c};Stream.prototype.parseInteger=function(a,b){var c=b-a;if(c>4){c<<=3;var d=this.get(a);if(d==0)c-=8;else for(;d<128;){d<<=1;--c}return"("+c+" bit)"}c=0;for(d=a;d<b;++d)c=c<<8|this.get(d);return c};
Stream.prototype.parseBitString=function(a,b){var c=this.get(a),d=(b-a-1<<3)-c,e="("+d+" bit)";if(d<=20){var f=c;e+=" ";for(c=b-1;c>a;--c){for(d=this.get(c);f<8;++f)e+=d>>f&1?"1":"0";f=0}}return e};Stream.prototype.parseOctetString=function(a,b){var c=b-a,d="("+c+" byte) ";if(c>20)b=a+20;for(var e=a;e<b;++e)d+=this.hexByte(this.get(e));if(c>20)d+=String.fromCharCode(8230);return d};
Stream.prototype.parseOID=function(a,b){for(var c,d=0,e=0,f=a;f<b;++f){var h=this.get(f);d=d<<7|h&127;e+=7;if(!(h&128)){if(c==undefined)c=parseInt(d/40)+"."+d%40;else c+="."+(e>=31?"bigint":d);d=e=0}c+=String.fromCharCode()}return c};function ASN1(a,b,c,d,e){this.stream=a;this.header=b;this.length=c;this.tag=d;this.sub=e}
ASN1.prototype.typeName=function(){if(this.tag==undefined)return"unknown";var a=this.tag&31;switch(this.tag>>6){case 0:switch(a){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";
case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString";default:return"Universal_"+a.toString(16)}case 1:return"Application_"+a.toString(16);case 2:return"["+a+"]";case 3:return"Private_"+a.toString(16)}};
ASN1.prototype.content=function(){if(this.tag==undefined)return null;if(this.tag>>6!=0)return this.sub==null?null:"("+this.sub.length+")";var a=this.tag&31,b=this.posContent(),c=Math.abs(this.length);switch(a){case 1:return this.stream.get(b)==0?"false":"true";case 2:return this.stream.parseInteger(b,b+c);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(b,b+c);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(b,b+c);case 6:return this.stream.parseOID(b,
b+c);case 16:case 17:return"("+this.sub.length+" elem)";case 12:return this.stream.parseStringUTF(b,b+c);case 18:case 19:case 20:case 21:case 22:case 26:return this.stream.parseStringISO(b,b+c);case 23:case 24:return this.stream.parseTime(b,b+c)}return null};ASN1.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub==null?"null":this.sub.length)+"]"};
ASN1.prototype.print=function(a){if(a==undefined)a="";document.writeln(a+this);if(this.sub!=null){a+="  ";for(var b=0,c=this.sub.length;b<c;++b)this.sub[b].print(a)}};
ASN1.prototype.toPrettyString=function(a){if(a==undefined)a="";var b=a+this.typeName()+" @"+this.stream.pos;b+="+"+this.header;if(this.length>=0)b+="+";b+=this.length;if(this.tag&32)b+=" (constructed)";else if((this.tag==3||this.tag==4)&&this.sub!=null)b+=" (encapsulates)";b+="\n";if(this.sub!=null){a+="  ";for(var c=0,d=this.sub.length;c<d;++c)b+=this.sub[c].toPrettyString(a)}return b};
ASN1.prototype.toDOM=function(){var a=document.createElement("div");a.className="node";a.asn1=this;var b=document.createElement("div");b.className="head";var c=this.typeName().replace(/_/g," ");b.innerHTML=c;var d=this.content();if(d!=null){d=String(d).replace(/</g,"&lt;");c=document.createElement("span");c.className="preview";c.innerHTML=d;b.appendChild(c)}a.appendChild(b);this.node=a;this.head=b;var e=document.createElement("div");e.className="value";c="Offset: "+this.stream.pos+"<br/>";c+="Length: "+
this.header+"+";c+=this.length>=0?this.length:-this.length+" (undefined)";if(this.tag&32)c+="<br/>(constructed)";else if((this.tag==3||this.tag==4)&&this.sub!=null)c+="<br/>(encapsulates)";if(d!=null){c+="<br/>Value:<br/><b>"+d+"</b>";if(typeof oids=="object"&&this.tag==6)if(d=oids[d]){if(d.d)c+="<br/>"+d.d;if(d.c)c+="<br/>"+d.c;if(d.w)c+="<br/>(warning!)"}}e.innerHTML=c;a.appendChild(e);c=document.createElement("div");c.className="sub";if(this.sub!=null){d=0;for(e=this.sub.length;d<e;++d)c.appendChild(this.sub[d].toDOM())}a.appendChild(c);
b.switchNode=a;b.onclick=function(){var f=this.switchNode;f.className=f.className=="node collapsed"?"node":"node collapsed"};return a};ASN1.prototype.posStart=function(){return this.stream.pos};ASN1.prototype.posContent=function(){return this.stream.pos+this.header};ASN1.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)};ASN1.prototype.fakeHover=function(a){this.node.className+=" hover";if(a)this.head.className+=" hover"};
ASN1.prototype.fakeOut=function(a){var b=/ ?hover/;this.node.className=this.node.className.replace(b,"");if(a)this.head.className=this.head.className.replace(b,"")};ASN1.prototype.toHexDOM_sub=function(a,b,c,d,e){if(!(d>=e)){var f=document.createElement("span");f.className=b;f.appendChild(document.createTextNode(c.hexDump(d,e)));a.appendChild(f)}};
ASN1.prototype.toHexDOM=function(a){var b=document.createElement("span");b.className="hex";if(a==undefined)a=b;this.head.hexNode=b;this.head.onmouseover=function(){this.hexNode.className="hexCurrent"};this.head.onmouseout=function(){this.hexNode.className="hex"};b.asn1=this;b.onmouseover=function(){var f=!a.selected;if(f){a.selected=this.asn1;this.className="hexCurrent"}this.asn1.fakeHover(f)};b.onmouseout=function(){var f=a.selected==this.asn1;this.asn1.fakeOut(f);if(f){a.selected=null;this.className=
"hex"}};this.toHexDOM_sub(b,"tag",this.stream,this.posStart(),this.posStart()+1);this.toHexDOM_sub(b,this.length>=0?"dlen":"ulen",this.stream,this.posStart()+1,this.posContent());if(this.sub==null)b.appendChild(document.createTextNode(this.stream.hexDump(this.posContent(),this.posEnd())));else if(this.sub.length>0){var c=this.sub[0],d=this.sub[this.sub.length-1];this.toHexDOM_sub(b,"intro",this.stream,this.posContent(),c.posStart());c=0;for(var e=this.sub.length;c<e;++c)b.appendChild(this.sub[c].toHexDOM(a));
this.toHexDOM_sub(b,"outro",this.stream,d.posEnd(),this.posEnd())}return b};ASN1.decodeLength=function(a){var b=a.get(),c=b&127;if(c==b)return c;if(c>3)throw"Length over 24 bits not supported at position "+(a.pos-1);if(c==0)return-1;for(var d=b=0;d<c;++d)b=b<<8|a.get();return b};ASN1.hasContent=function(a,b,c){if(a&32)return true;if(a<3||a>4)return false;var d=new Stream(c);a==3&&d.get();if(d.get()>>6&1)return false;try{var e=ASN1.decodeLength(d);return d.pos-c.pos+e==b}catch(f){return false}};
ASN1.decode=function(a){a instanceof Stream||(a=new Stream(a,0));var b=new Stream(a),c=a.get(),d=ASN1.decodeLength(a),e=a.pos-b.pos,f=null;if(ASN1.hasContent(c,d,a)){var h=a.pos;c==3&&a.get();f=[];if(d>=0){for(var j=h+d;a.pos<j;)f[f.length]=ASN1.decode(a);if(a.pos!=j)throw"Content size is not correct for container starting at offset "+h;}else try{for(;;){j=ASN1.decode(a);if(j.tag==0)break;f[f.length]=j}d=h-a.pos}catch(o){throw"Exception while decoding undefined length content: "+o;}}else a.pos+=d;
return new ASN1(b,e,d,c,f)};ASN1.test=function(){for(var a=[{value:[39],expected:39},{value:[129,201],expected:201},{value:[131,254,220,186],expected:16702650}],b=0,c=a.length;b<c;++b){var d=new Stream(a[b].value,0);d=ASN1.decodeLength(d);d!=a[b].expected&&document.write("In test["+b+"] expected "+a[b].expected+" got "+d+"\n")}};var Hex={};
Hex.decode=function(a){if(Hex.decoder==undefined){for(var b="0123456789ABCDEF",c=[],d=0;d<16;++d)c[b.charAt(d)]=d;b=b.toLowerCase();for(d=10;d<16;++d)c[b.charAt(d)]=d;for(d=0;d<8;++d)c[" \u000c\n\r\t\u00a0\u2028\u2029".charAt(d)]=-1;Hex.decoder=c}b=[];var e=c=0;for(d=0;d<a.length;++d){var f=a.charAt(d);if(f=="=")break;f=Hex.decoder[f];if(f!=-1){if(f==undefined)throw"Illegal character at offset "+d;c|=f;if(++e>=2){b[b.length]=c;e=c=0}else c<<=4}}if(e)throw"Hex encoding incomplete: 4 bits missing";
return b};
function parse_public_key(a,b){var c=Hex.decode(b);c=ASN1.decode(c).toPrettyString();c=c.indexOf("<br>")!=-1?c.split(/<br>/):c.split(/\n/);for(var d=false,e=0,f=["n","e"],h={},j=0;j<c.length;j++){var o=c[j];if(o.indexOf("STRING")!=-1)d=true;else if(d&&o.indexOf("INTEGER")!=-1){var r=o.indexOf("@");if(r==-1)return false;else{o=o.substring(r+1);o=o.split(/\+/);if(o.length!=3)return false;else{r=o[0]*2;var y=o[1]*2;o=b.substring(r+y,r+y+o[2]*2);h[f[e]]=o}}e++}}if(d&&e==f.length){a.setPublic(h.n,h.e);
return true}else return false}
function parse_private_key(a,b){var c=Hex.decode(b);c=ASN1.decode(c).toPrettyString();c=c.indexOf("<br>")!=-1?c.split(/<br>/):c.split(/\n/);for(var d=false,e=0,f=[null,"n","e","d","p","q","dp","dq","c"],h={},j=0;j<c.length;j++){var o=c[j];if(o.indexOf("STRING")!=-1)d=true;else if(d&&o.indexOf("INTEGER")!=-1){if(e>0){var r=o.indexOf("@");if(r==-1)return false;else{o=o.substring(r+1);o=o.split(/\+/);if(o.length!=3)return false;else{r=o[0]*2;var y=o[1]*2;o=b.substring(r+y,r+y+o[2]*2);h[f[e]]=o}}}e++}}if(d&&
e==f.length){a.setPrivateEx(h.n,h.e,h.d,h.p,h.q,h.dp,h.dq,h.c);return true}else return false}function encode_length(a){var b=a.toString(16);if(b.length%2==1)b="0"+b;return a<=127?b:(128|b.length/2).toString(16)+b}function encode_integer(a){a=a.toUpperCase();if(a.length%2==1)a="0"+a;if("89ABCDEF".indexOf(a.charAt(0))!=-1)a="00"+a;return"02"+encode_length(a.length/2)+a}function encode_sequence(a){return"30"+encode_length(a.length/2)+a}
function encode_octet_string(a){return"04"+encode_length(a.length/2)+a}function encode_bit_string(a){a="00"+a;return"03"+encode_length(a.length/2)+a}function encode_public_key(a){var b="";b+=encode_integer(a.n.toString(16));b+=encode_integer(a.e.toString(16));b=encode_sequence(b);b=encode_bit_string(b);b=encode_sequence("300D06092A864886F70D0101010500"+b);return b.toUpperCase()}
function encode_private_key(a){var b="";b+="020100";b+=encode_integer(a.n.toString(16));b+=encode_integer(a.e.toString(16));b+=encode_integer(a.d.toString(16));b+=encode_integer(a.p.toString(16));b+=encode_integer(a.q.toString(16));b+=encode_integer(a.dmp1.toString(16));b+=encode_integer(a.dmq1.toString(16));b+=encode_integer(a.coeff.toString(16));b=encode_sequence(b);b=encode_octet_string(b);b=encode_sequence("020100300D06092A864886F70D0101010500"+b);return b.toUpperCase()}
function oaeppad(a){for(var b=SHA1(""),c="",d=0;d<256-a.length-40-2;d++)c+=String.fromCharCode(0);b=b+c+String.fromCharCode(1)+a;a="";for(d=0;d<20;d++)a+=String.fromCharCode(get_random(0,255));d=MGF(a,235);d=XOR(b,d);b=MGF(d,20);a=XOR(a,b);d=String.fromCharCode(0)+a+d;return new BigInteger(string_to_array(d))}
function oaepunpad(a){var b=a.toByteArray(),c="";for(a=0;a<b.length;a++){var d=b[a];if(d<0)d+=256;c+=String.fromCharCode(d)}if(c.length==255)c=String.fromCharCode(0)+c;if(c.charCodeAt(0)!=0)return"";a=SHA1("");b=c.length;d=c.substring(1,21);c=c.substring(21);var e=MGF(c,20);d=XOR(d,e);b=MGF(d,b-20-1);c=XOR(c,b);if(c.substring(0,20)!=a)return"";for(a=20;a<c.length;a++)if(c.charCodeAt(a)==1)break;else if(c.charCodeAt(a)!=0)return"";if(a>=c.length)return"";return c.substring(a+1)}
function SHA1(a){function b(u,w){return u<<w|u>>>32-w}function c(u){var w="",D,B;for(D=7;D>=0;D--){B=u>>>D*4&15;w+=B.toString(16)}return w}var d,e,f=Array(80),h=1732584193,j=4023233417,o=2562383102,r=271733878,y=3285377520,q,l,n,p,s;q=a.length;var A=[];for(d=0;d<q-3;d+=4){e=a.charCodeAt(d)<<24|a.charCodeAt(d+1)<<16|a.charCodeAt(d+2)<<8|a.charCodeAt(d+3);A.push(e)}switch(q%4){case 0:d=2147483648;break;case 1:d=a.charCodeAt(q-1)<<24|8388608;break;case 2:d=a.charCodeAt(q-2)<<24|a.charCodeAt(q-1)<<16|
32768;break;case 3:d=a.charCodeAt(q-3)<<24|a.charCodeAt(q-2)<<16|a.charCodeAt(q-1)<<8|128}for(A.push(d);A.length%16!=14;)A.push(0);A.push(q>>>29);A.push(q<<3&4294967295);for(a=0;a<A.length;a+=16){for(d=0;d<16;d++)f[d]=A[a+d];for(d=16;d<=79;d++)f[d]=b(f[d-3]^f[d-8]^f[d-14]^f[d-16],1);e=h;q=j;l=o;n=r;p=y;for(d=0;d<=19;d++){s=b(e,5)+(q&l|~q&n)+p+f[d]+1518500249&4294967295;p=n;n=l;l=b(q,30);q=e;e=s}for(d=20;d<=39;d++){s=b(e,5)+(q^l^n)+p+f[d]+1859775393&4294967295;p=n;n=l;l=b(q,30);q=e;e=s}for(d=40;d<=
59;d++){s=b(e,5)+(q&l|q&n|l&n)+p+f[d]+2400959708&4294967295;p=n;n=l;l=b(q,30);q=e;e=s}for(d=60;d<=79;d++){s=b(e,5)+(q^l^n)+p+f[d]+3395469782&4294967295;p=n;n=l;l=b(q,30);q=e;e=s}h=h+e&4294967295;j=j+q&4294967295;o=o+l&4294967295;r=r+n&4294967295;y=y+p&4294967295}s=c(h)+c(j)+c(o)+c(r)+c(y);f=Hex.decode(s);h="";for(d=0;d<f.length;d++){j=f[d];if(j<0)j+=256;h+=String.fromCharCode(j)}return h}function MGF(a,b){for(var c="",d=Math.ceil(b/20),e=0;e<d;e++){var f=I2OSP(e);c+=SHA1(a+f)}return c}
function I2OSP(a){for(var b="",c=1;c<=4;c++){b=String.fromCharCode(a%256)+b;a>>=8}return b}function XOR(a,b){for(var c="",d=0;d<a.length;d++){var e=a.charCodeAt(d)^b.charCodeAt(d);if(e<0)e+=256;c+=String.fromCharCode(e)}return c}function string_to_array(a){for(var b=[],c=0;c<a.length;c++)b[b.length]=a.charCodeAt(c);return b}var global_rsa,global_var,global_sieve,global_e=nbv(17),global_j,global_p,global_first,global_max,global_callback;
function generate_key(a,b){a.e=17;global_rsa=a;global_var="p";global_callback=b;setTimeout("generate_prime();",1E3)}function finish_generating_key(){var a=global_rsa;if(a.p.compareTo(a.q)<=0){var b=a.p;a.p=a.q;a.q=b}b=a.p.subtract(BigInteger.ONE);var c=a.q.subtract(BigInteger.ONE),d=b.multiply(c);a.n=a.p.multiply(a.q);a.d=nbv(a.e).modInverse(d);a.dmp1=a.d.mod(b);a.dmq1=a.d.mod(c);a.coeff=a.q.modInverse(a.p);global_callback(a)}
function generate_prime(){for(var a=new BigInteger("127804746306617771565130290907657227155653050846679607905329198323075574205473340977159933096399107640015080961471068715210545851266499317553508720220251135299819361731740305938621109247760895038048676161247933788783372750727844704797860102025119363920819503689823071404962495159387923310468886140592221847552",10),b=new BigInteger("179769313486231590772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137215",
10),c=new SecureRandom,d=BigInteger.ZERO;d.compareTo(a)<0;)d=new BigInteger(1024,c);a=d.add(nbv(1024)).min(b);if(d.isEven())d=d.add(BigInteger.ONE);global_sieve=get_sieve(d,a);global_j=0;global_p=global_first=d;global_max=a;first_prime()}
function first_prime(){for(var a=0;global_j<global_sieve.length;global_j++)if(!global_sieve[global_j]){global_p=global_first.add(nbv(global_j*2));if(global_p.subtract(BigInteger.ONE).gcd(global_e).equals(BigInteger.ONE)&&global_p.isProbablePrime(1)){setTimeout("verify_prime(1);",1E3);return}if(++a>1){global_j++;setTimeout("first_prime();",1E3);return}}setTimeout("generate_prime();",1E3)}
function verify_prime(a){if(a>=5){global_rsa[global_var]=global_p;if(global_var=="p"){global_var="q";setTimeout("generate_prime();",1E3)}else global_var=="q"&&setTimeout("finish_generating_key();",1E3)}else if(global_p.millerRabin(10,a))setTimeout("verify_prime("+(a+1)+");",1E3);else{global_j++;setTimeout("first_prime();",1E3)}}
var primes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,
739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,
1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,
2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999,3001,3011,3019,3023,3037,3041,3049,3061,3067,3079,
3083,3089,3109,3119,3121,3137,3163,3167,3169,3181,3187,3191,3203,3209,3217,3221,3229,3251,3253,3257,3259,3271,3299,3301,3307,3313,3319,3323,3329,3331,3343,3347,3359,3361,3371,3373,3389,3391,3407,3413,3433,3449,3457,3461,3463,3467,3469,3491,3499,3511,3517,3527,3529,3533,3539,3541,3547,3557,3559,3571,3581,3583,3593,3607,3613,3617,3623,3631,3637,3643,3659,3671,3673,3677,3691,3697,3701,3709,3719,3727,3733,3739,3761,3767,3769,3779,3793,3797,3803,3821,3823,3833,3847,3851,3853,3863,3877,3881,3889,3907,3911,
3917,3919,3923,3929,3931,3943,3947,3967,3989,4001,4003,4007,4013,4019,4021,4027,4049,4051,4057,4073,4079,4091,4093,4099,4111,4127,4129,4133,4139,4153,4157,4159,4177,4201,4211,4217,4219,4229,4231,4241,4243,4253,4259,4261,4271,4273,4283,4289,4297,4327,4337,4339,4349,4357,4363,4373,4391,4397,4409,4421,4423,4441,4447,4451,4457,4463,4481,4483,4493,4507,4513,4517,4519,4523,4547,4549,4561,4567,4583,4591,4597,4603,4621,4637,4639,4643,4649,4651,4657,4663,4673,4679,4691,4703,4721,4723,4729,4733,4751,4759,4783,
4787,4789,4793,4799,4801,4813,4817,4831,4861,4871,4877,4889,4903,4909,4919,4931,4933,4937,4943,4951,4957,4967,4969,4973,4987,4993,4999,5003,5009,5011,5021,5023,5039,5051,5059,5077,5081,5087,5099,5101,5107,5113,5119,5147,5153,5167,5171,5179,5189,5197,5209,5227,5231,5233,5237,5261,5273,5279,5281,5297,5303,5309,5323,5333,5347,5351,5381,5387,5393,5399,5407,5413,5417,5419,5431,5437,5441,5443,5449,5471,5477,5479,5483,5501,5503,5507,5519,5521,5527,5531,5557,5563,5569,5573,5581,5591,5623,5639,5641,5647,5651,
5653,5657,5659,5669,5683,5689,5693,5701,5711,5717,5737,5741,5743,5749,5779,5783,5791,5801,5807,5813,5821,5827,5839,5843,5849,5851,5857,5861,5867,5869,5879,5881,5897,5903,5923,5927,5939,5953,5981,5987,6007,6011,6029,6037,6043,6047,6053,6067,6073,6079,6089,6091,6101,6113,6121,6131,6133,6143,6151,6163,6173,6197,6199,6203,6211,6217,6221,6229,6247,6257,6263,6269,6271,6277,6287,6299,6301,6311,6317,6323,6329,6337,6343,6353,6359,6361,6367,6373,6379,6389,6397,6421,6427,6449,6451,6469,6473,6481,6491,6521,6529,
6547,6551,6553,6563,6569,6571,6577,6581,6599,6607,6619,6637,6653,6659,6661,6673,6679,6689,6691,6701,6703,6709,6719,6733,6737,6761,6763,6779,6781,6791,6793,6803,6823,6827,6829,6833,6841,6857,6863,6869,6871,6883,6899,6907,6911,6917,6947,6949,6959,6961,6967,6971,6977,6983,6991,6997,7001,7013,7019,7027,7039,7043,7057,7069,7079,7103,7109,7121,7127,7129,7151,7159,7177,7187,7193,7207,7211,7213,7219,7229,7237,7243,7247,7253,7283,7297,7307,7309,7321,7331,7333,7349,7351,7369,7393,7411,7417,7433,7451,7457,7459,
7477,7481,7487,7489,7499,7507,7517,7523,7529,7537,7541,7547,7549,7559,7561,7573,7577,7583,7589,7591,7603,7607,7621,7639,7643,7649,7669,7673,7681,7687,7691,7699,7703,7717,7723,7727,7741,7753,7757,7759,7789,7793,7817,7823,7829,7841,7853,7867,7873,7877,7879,7883,7901,7907,7919,7927,7933,7937,7949,7951,7963,7993,8009,8011,8017,8039,8053,8059,8069,8081,8087,8089,8093,8101,8111,8117,8123,8147,8161,8167,8171,8179,8191,8209,8219,8221,8231,8233,8237,8243,8263,8269,8273,8287,8291,8293,8297,8311,8317,8329,8353,
8363,8369,8377,8387,8389,8419,8423,8429,8431,8443,8447,8461,8467,8501,8513,8521,8527,8537,8539,8543,8563,8573,8581,8597,8599,8609,8623,8627,8629,8641,8647,8663,8669,8677,8681,8689,8693,8699,8707,8713,8719,8731,8737,8741,8747,8753,8761,8779,8783,8803,8807,8819,8821,8831,8837,8839,8849,8861,8863,8867,8887,8893,8923,8929,8933,8941,8951,8963,8969,8971,8999,9001,9007,9011,9013,9029,9041,9043,9049,9059,9067,9091,9103,9109,9127,9133,9137,9151,9157,9161,9173,9181,9187,9199,9203,9209,9221,9227,9239,9241,9257,
9277,9281,9283,9293,9311,9319,9323,9337,9341,9343,9349,9371,9377,9391,9397,9403,9413,9419,9421,9431,9433,9437,9439,9461,9463,9467,9473,9479,9491,9497,9511,9521,9533,9539,9547,9551,9587,9601,9613,9619,9623,9629,9631,9643,9649,9661,9677,9679,9689,9697,9719,9721,9733,9739,9743,9749,9767,9769,9781,9787,9791,9803,9811,9817,9829,9833,9839,9851,9857,9859,9871,9883,9887,9901,9907,9923,9929,9931,9941,9949,9967,9973,10007,10009,10037,10039,10061,10067,10069,10079,10091,10093,10099,10103,10111,10133,10139,10141,
10151,10159,10163,10169,10177,10181,10193,10211,10223,10243,10247,10253,10259,10267,10271,10273,10289,10301,10303,10313,10321,10331,10333,10337,10343,10357,10369,10391,10399,10427,10429,10433,10453,10457,10459,10463,10477,10487,10499,10501,10513,10529,10531,10559,10567,10589,10597,10601,10607,10613,10627,10631,10639,10651,10657,10663,10667,10687,10691,10709,10711,10723,10729,10733,10739,10753,10771,10781,10789,10799,10831,10837,10847,10853,10859,10861,10867,10883,10889,10891,10903,10909,10937,10939,
10949,10957,10973,10979,10987,10993,11003,11027,11047,11057,11059,11069,11071,11083,11087,11093,11113,11117,11119,11131,11149,11159,11161,11171,11173,11177,11197,11213,11239,11243,11251,11257,11261,11273,11279,11287,11299,11311,11317,11321,11329,11351,11353,11369,11383,11393,11399,11411,11423,11437,11443,11447,11467,11471,11483,11489,11491,11497,11503,11519,11527,11549,11551,11579,11587,11593,11597,11617,11621,11633,11657,11677,11681,11689,11699,11701,11717,11719,11731,11743,11777,11779,11783,11789,
11801,11807,11813,11821,11827,11831,11833,11839,11863,11867,11887,11897,11903,11909,11923,11927,11933,11939,11941,11953,11959,11969,11971,11981,11987,12007,12011,12037,12041,12043,12049,12071,12073,12097,12101,12107,12109,12113,12119,12143,12149,12157,12161,12163,12197,12203,12211,12227,12239,12241,12251,12253,12263,12269,12277,12281,12289,12301,12323,12329,12343,12347,12373,12377,12379,12391,12401,12409,12413,12421,12433,12437,12451,12457,12473,12479,12487,12491,12497,12503,12511,12517,12527,12539,
12541,12547,12553,12569,12577,12583,12589,12601,12611,12613,12619,12637,12641,12647,12653,12659,12671,12689,12697,12703,12713,12721,12739,12743,12757,12763,12781,12791,12799,12809,12821,12823,12829,12841,12853,12889,12893,12899,12907,12911,12917,12919,12923,12941,12953,12959,12967,12973,12979,12983,13001,13003,13007,13009,13033,13037,13043,13049,13063,13093,13099,13103,13109,13121,13127,13147,13151,13159,13163,13171,13177,13183,13187,13217,13219,13229,13241,13249,13259,13267,13291,13297,13309,13313,
13327,13331,13337,13339,13367,13381,13397,13399,13411,13417,13421,13441,13451,13457,13463,13469,13477,13487,13499,13513,13523,13537,13553,13567,13577,13591,13597,13613,13619,13627,13633,13649,13669,13679,13681,13687,13691,13693,13697,13709,13711,13721,13723,13729,13751,13757,13759,13763,13781,13789,13799,13807,13829,13831,13841,13859,13873,13877,13879,13883,13901,13903,13907,13913,13921,13931,13933,13963,13967,13997,13999,14009,14011,14029,14033,14051,14057,14071,14081,14083,14087,14107,14143,14149,
14153,14159,14173,14177,14197,14207,14221,14243,14249,14251,14281,14293,14303,14321,14323,14327,14341,14347,14369,14387,14389,14401,14407,14411,14419,14423,14431,14437,14447,14449,14461,14479,14489,14503,14519,14533,14537,14543,14549,14551,14557,14561,14563,14591,14593,14621,14627,14629,14633,14639,14653,14657,14669,14683,14699,14713,14717,14723,14731,14737,14741,14747,14753,14759,14767,14771,14779,14783,14797,14813,14821,14827,14831,14843,14851,14867,14869,14879,14887,14891,14897,14923,14929,14939,
14947,14951,14957,14969,14983,15013,15017,15031,15053,15061,15073,15077,15083,15091,15101,15107,15121,15131,15137,15139,15149,15161,15173,15187,15193,15199,15217,15227,15233,15241,15259,15263,15269,15271,15277,15287,15289,15299,15307,15313,15319,15329,15331,15349,15359,15361,15373,15377,15383,15391,15401,15413,15427,15439,15443,15451,15461,15467,15473,15493,15497,15511,15527,15541,15551,15559,15569,15581,15583,15601,15607,15619,15629,15641,15643,15647,15649,15661,15667,15671,15679,15683,15727,15731,
15733,15737,15739,15749,15761,15767,15773,15787,15791,15797,15803,15809,15817,15823,15859,15877,15881,15887,15889,15901,15907,15913,15919,15923,15937,15959,15971,15973,15991,16001,16007,16033,16057,16061,16063,16067,16069,16073,16087,16091,16097,16103,16111,16127,16139,16141,16183,16187,16189,16193,16217,16223,16229,16231,16249,16253,16267,16273,16301,16319,16333,16339,16349,16361,16363,16369,16381,16411,16417,16421,16427,16433,16447,16451,16453,16477,16481,16487,16493,16519,16529,16547,16553,16561,
16567,16573,16603,16607,16619,16631,16633,16649,16651,16657,16661,16673,16691,16693,16699,16703,16729,16741,16747,16759,16763,16787,16811,16823,16829,16831,16843,16871,16879,16883,16889,16901,16903,16921,16927,16931,16937,16943,16963,16979,16981,16987,16993,17011,17021,17027,17029,17033,17041,17047,17053,17077,17093,17099,17107,17117,17123,17137,17159,17167,17183,17189,17191,17203,17207,17209,17231,17239,17257,17291,17293,17299,17317,17321,17327,17333,17341,17351,17359,17377,17383,17387,17389,17393,
17401,17417,17419,17431,17443,17449,17467,17471,17477,17483,17489,17491,17497,17509,17519,17539,17551,17569,17573,17579,17581,17597,17599,17609,17623,17627,17657,17659,17669,17681,17683,17707,17713,17729,17737,17747,17749,17761,17783,17789,17791,17807,17827,17837,17839,17851,17863,17881,17891,17903,17909,17911,17921,17923,17929,17939,17957,17959,17971,17977,17981,17987,17989,18013,18041,18043,18047,18049,18059,18061,18077,18089,18097,18119,18121,18127,18131,18133,18143,18149,18169,18181,18191,18199,
18211,18217,18223,18229,18233,18251,18253,18257,18269,18287,18289,18301,18307,18311,18313,18329,18341,18353,18367,18371,18379,18397,18401,18413,18427,18433,18439,18443,18451,18457,18461,18481,18493,18503,18517,18521,18523,18539,18541,18553,18583,18587,18593,18617,18637,18661,18671,18679,18691,18701,18713,18719,18731,18743,18749,18757,18773,18787,18793,18797,18803,18839,18859,18869,18899,18911,18913,18917,18919,18947,18959,18973,18979,19001,19009,19013,19031,19037,19051,19069,19073,19079,19081,19087,
19121,19139,19141,19157,19163,19181,19183,19207,19211,19213,19219,19231,19237,19249,19259,19267,19273,19289,19301,19309,19319,19333,19373,19379,19381,19387,19391,19403,19417,19421,19423,19427,19429,19433,19441,19447,19457,19463,19469,19471,19477,19483,19489,19501,19507,19531,19541,19543,19553,19559,19571,19577,19583,19597,19603,19609,19661,19681,19687,19697,19699,19709,19717,19727,19739,19751,19753,19759,19763,19777,19793,19801,19813,19819,19841,19843,19853,19861,19867,19889,19891,19913,19919,19927,
19937,19949,19961,19963,19973,19979,19991,19993,19997,20011,20021,20023,20029,20047,20051,20063,20071,20089,20101,20107,20113,20117,20123,20129,20143,20147,20149,20161,20173,20177,20183,20201,20219,20231,20233,20249,20261,20269,20287,20297,20323,20327,20333,20341,20347,20353,20357,20359,20369,20389,20393,20399,20407,20411,20431,20441,20443,20477,20479,20483,20507,20509,20521,20533,20543,20549,20551,20563,20593,20599,20611,20627,20639,20641,20663,20681,20693,20707,20717,20719,20731,20743,20747,20749,
20753,20759,20771,20773,20789,20807,20809,20849,20857,20873,20879,20887,20897,20899,20903,20921,20929,20939,20947,20959,20963,20981,20983,21001,21011,21013,21017,21019,21023,21031,21059,21061,21067,21089,21101,21107,21121,21139,21143,21149,21157,21163,21169,21179,21187,21191,21193,21211,21221,21227,21247,21269,21277,21283,21313,21317,21319,21323,21341,21347,21377,21379,21383,21391,21397,21401,21407,21419,21433,21467,21481,21487,21491,21493,21499,21503,21517,21521,21523,21529,21557,21559,21563,21569,
21577,21587,21589,21599,21601,21611,21613,21617,21647,21649,21661,21673,21683,21701,21713,21727,21737,21739,21751,21757,21767,21773,21787,21799,21803,21817,21821,21839,21841,21851,21859,21863,21871,21881,21893,21911,21929,21937,21943,21961,21977,21991,21997,22003,22013,22027,22031,22037,22039,22051,22063,22067,22073,22079,22091,22093,22109,22111,22123,22129,22133,22147,22153,22157,22159,22171,22189,22193,22229,22247,22259,22271,22273,22277,22279,22283,22291,22303,22307,22343,22349,22367,22369,22381,
22391,22397,22409,22433,22441,22447,22453,22469,22481,22483,22501,22511,22531,22541,22543,22549,22567,22571,22573,22613,22619,22621,22637,22639,22643,22651,22669,22679,22691,22697,22699,22709,22717,22721,22727,22739,22741,22751,22769,22777,22783,22787,22807,22811,22817,22853,22859,22861,22871,22877,22901,22907,22921,22937,22943,22961,22963,22973,22993,23003,23011,23017,23021,23027,23029,23039,23041,23053,23057,23059,23063,23071,23081,23087,23099,23117,23131,23143,23159,23167,23173,23189,23197,23201,
23203,23209,23227,23251,23269,23279,23291,23293,23297,23311,23321,23327,23333,23339,23357,23369,23371,23399,23417,23431,23447,23459,23473,23497,23509,23531,23537,23539,23549,23557,23561,23563,23567,23581,23593,23599,23603,23609,23623,23627,23629,23633,23663,23669,23671,23677,23687,23689,23719,23741,23743,23747,23753,23761,23767,23773,23789,23801,23813,23819,23827,23831,23833,23857,23869,23873,23879,23887,23893,23899,23909,23911,23917,23929,23957,23971,23977,23981,23993,24001,24007,24019,24023,24029,
24043,24049,24061,24071,24077,24083,24091,24097,24103,24107,24109,24113,24121,24133,24137,24151,24169,24179,24181,24197,24203,24223,24229,24239,24247,24251,24281,24317,24329,24337,24359,24371,24373,24379,24391,24407,24413,24419,24421,24439,24443,24469,24473,24481,24499,24509,24517,24527,24533,24547,24551,24571,24593,24611,24623,24631,24659,24671,24677,24683,24691,24697,24709,24733,24749,24763,24767,24781,24793,24799,24809,24821,24841,24847,24851,24859,24877,24889,24907,24917,24919,24923,24943,24953,
24967,24971,24977,24979,24989,25013,25031,25033,25037,25057,25073,25087,25097,25111,25117,25121,25127,25147,25153,25163,25169,25171,25183,25189,25219,25229,25237,25243,25247,25253,25261,25301,25303,25307,25309,25321,25339,25343,25349,25357,25367,25373,25391,25409,25411,25423,25439,25447,25453,25457,25463,25469,25471,25523,25537,25541,25561,25577,25579,25583,25589,25601,25603,25609,25621,25633,25639,25643,25657,25667,25673,25679,25693,25703,25717,25733,25741,25747,25759,25763,25771,25793,25799,25801,
25819,25841,25847,25849,25867,25873,25889,25903,25913,25919,25931,25933,25939,25943,25951,25969,25981,25997,25999,26003,26017,26021,26029,26041,26053,26083,26099,26107,26111,26113,26119,26141,26153,26161,26171,26177,26183,26189,26203,26209,26227,26237,26249,26251,26261,26263,26267,26293,26297,26309,26317,26321,26339,26347,26357,26371,26387,26393,26399,26407,26417,26423,26431,26437,26449,26459,26479,26489,26497,26501,26513,26539,26557,26561,26573,26591,26597,26627,26633,26641,26647,26669,26681,26683,
26687,26693,26699,26701,26711,26713,26717,26723,26729,26731,26737,26759,26777,26783,26801,26813,26821,26833,26839,26849,26861,26863,26879,26881,26891,26893,26903,26921,26927,26947,26951,26953,26959,26981,26987,26993,27011,27017,27031,27043,27059,27061,27067,27073,27077,27091,27103,27107,27109,27127,27143,27179,27191,27197,27211,27239,27241,27253,27259,27271,27277,27281,27283,27299,27329,27337,27361,27367,27397,27407,27409,27427,27431,27437,27449,27457,27479,27481,27487,27509,27527,27529,27539,27541,
27551,27581,27583,27611,27617,27631,27647,27653,27673,27689,27691,27697,27701,27733,27737,27739,27743,27749,27751,27763,27767,27773,27779,27791,27793,27799,27803,27809,27817,27823,27827,27847,27851,27883,27893,27901,27917,27919,27941,27943,27947,27953,27961,27967,27983,27997,28001,28019,28027,28031,28051,28057,28069,28081,28087,28097,28099,28109,28111,28123,28151,28163,28181,28183,28201,28211,28219,28229,28277,28279,28283,28289,28297,28307,28309,28319,28349,28351,28387,28393,28403,28409,28411,28429,
28433,28439,28447,28463,28477,28493,28499,28513,28517,28537,28541,28547,28549,28559,28571,28573,28579,28591,28597,28603,28607,28619,28621,28627,28631,28643,28649,28657,28661,28663,28669,28687,28697,28703,28711,28723,28729,28751,28753,28759,28771,28789,28793,28807,28813,28817,28837,28843,28859,28867,28871,28879,28901,28909,28921,28927,28933,28949,28961,28979,29009,29017,29021,29023,29027,29033,29059,29063,29077,29101,29123,29129,29131,29137,29147,29153,29167,29173,29179,29191,29201,29207,29209,29221,
29231,29243,29251,29269,29287,29297,29303,29311,29327,29333,29339,29347,29363,29383,29387,29389,29399,29401,29411,29423,29429,29437,29443,29453,29473,29483,29501,29527,29531,29537,29567,29569,29573,29581,29587,29599,29611,29629,29633,29641,29663,29669,29671,29683,29717,29723,29741,29753,29759,29761,29789,29803,29819,29833,29837,29851,29863,29867,29873,29879,29881,29917,29921,29927,29947,29959,29983,29989,30011,30013,30029,30047,30059,30071,30089,30091,30097,30103,30109,30113,30119,30133,30137,30139,
30161,30169,30181,30187,30197,30203,30211,30223,30241,30253,30259,30269,30271,30293,30307,30313,30319,30323,30341,30347,30367,30389,30391,30403,30427,30431,30449,30467,30469,30491,30493,30497,30509,30517,30529,30539,30553,30557,30559,30577,30593,30631,30637,30643,30649,30661,30671,30677,30689,30697,30703,30707,30713,30727,30757,30763,30773,30781,30803,30809,30817,30829,30839,30841,30851,30853,30859,30869,30871,30881,30893,30911,30931,30937,30941,30949,30971,30977,30983,31013,31019,31033,31039,31051,
31063,31069,31079,31081,31091,31121,31123,31139,31147,31151,31153,31159,31177,31181,31183,31189,31193,31219,31223,31231,31237,31247,31249,31253,31259,31267,31271,31277,31307,31319,31321,31327,31333,31337,31357,31379,31387,31391,31393,31397,31469,31477,31481,31489,31511,31513,31517,31531,31541,31543,31547,31567,31573,31583,31601,31607,31627,31643,31649,31657,31663,31667,31687,31699,31721,31723,31727,31729,31741,31751,31769,31771,31793,31799,31817,31847,31849,31859,31873,31883,31891,31907,31957,31963,
31973,31981,31991,32003,32009,32027,32029,32051,32057,32059,32063,32069,32077,32083,32089,32099,32117,32119,32141,32143,32159,32173,32183,32189,32191,32203,32213,32233,32237,32251,32257,32261,32297,32299,32303,32309,32321,32323,32327,32341,32353,32359,32363,32369,32371,32377,32381,32401,32411,32413,32423,32429,32441,32443,32467,32479,32491,32497,32503,32507,32531,32533,32537,32561,32563,32569,32573,32579,32587,32603,32609,32611,32621,32633,32647,32653,32687,32693,32707,32713,32717,32719];
function get_sieve(a,b){for(var c=nbv(2),d=b.subtract(a).divide(c).add(BigInteger.ONE),e=[],f=0;f<d;f++)e[f]=false;for(f=0;f<primes.length;f++){var h=nbv(primes[f]),j=c.modInverse(h);if(!j.equals(BigInteger.ZERO))for(j=h.subtract(a.mod(h)).multiply(j).mod(h);j.compareTo(d)<0;j=j.add(h))e[parseInt(j.toString(10))]=true}return e}
function calculate_time_zone(a){var b=new Date,c=new Date(b.getFullYear(),0,1,0,0,0,0);b=new Date(b.getFullYear(),6,1,0,0,0,0);var d=c.toGMTString(),e=new Date(d.substring(0,d.lastIndexOf(" ")-1));d=b.toGMTString();d=new Date(d.substring(0,d.lastIndexOf(" ")-1));c=(c-e)/36E5;b=(b-d)/36E5;if(c==b)b="0";else{if(c-b>=0)c=b;b="1"}if(a==null)for(a=0;a<document.getElementById("timezone").options.length;a++)if(document.getElementById("timezone").options[a].value==convert(c)+","+b){document.getElementById("timezone").selectedIndex=
a;break}return convert(c)+","+b}function convert(a){var b=parseInt(a);a-=parseInt(a);a*=60;var c=parseInt(a);a-=parseInt(a);a*=60;parseInt(a);a=b;a=b<0&&b>-10?"-0"+Math.abs(b):b==0?"0"+b:b<10&&b>0?"+0"+b:"+"+b;return a+":"+(c<10?"0"+c:c)}this.LPJSON={};if(typeof ischrome=="undefined"){this.JSON=this.LPJSON;if(typeof JSON=="undefined")var JSON=this.JSON,LPJSON=this.LPJSON}
(function(){function a(r){return r<10?"0"+r:r}function b(r){e.lastIndex=0;return e.test(r)?'"'+r.replace(e,function(y){var q=j[y];return typeof q==="string"?q:"\\u"+("0000"+y.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'}function c(r,y){var q,l,n,p,s=f,A,u=y[r];if(u&&typeof u==="object"&&typeof u.toJSON==="function")u=u.toJSON(r);if(typeof o==="function")u=o.call(y,r,u);switch(typeof u){case "string":return b(u);case "number":return isFinite(u)?String(u):"null";case "boolean":case "null":return String(u);
case "object":if(!u)return"null";f+=h;A=[];if(o&&typeof o==="object"){p=o.length;for(q=0;q<p;q+=1){l=o[q];if(typeof l==="string")if(n=c(l,u))A.push(b(l)+(f?": ":":")+n)}}else for(l in u)if(Object.hasOwnProperty.call(u,l))if(n=c(l,u))A.push(b(l)+(f?": ":":")+n);n=A.length===0?"{}":f?"{\n"+f+A.join(",\n"+f)+"\n"+s+"}":"{"+A.join(",")+"}";f=s;return n}}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,h,j={"\u0008":"\\b",
"\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},o;if(typeof LPJSON.stringify!=="function")LPJSON.stringify=function(r,y,q){var l;h=f="";if(typeof q==="number")for(l=0;l<q;l+=1)h+=" ";else if(typeof q==="string")h=q;if((o=y)&&typeof y!=="function"&&(typeof y!=="object"||typeof y.length!=="number"))throw Error("JSON.stringify");return c("",{"":r})};if(typeof LPJSON.parse!=="function")LPJSON.parse=function(r,y){function q(n,p){var s,A,u=n[p];if(u&&typeof u==="object")for(s in u)if(Object.hasOwnProperty.call(u,
s)){A=q(u,s);if(A!==undefined)u[s]=A;else delete u[s]}return y.call(n,p,u)}var l;d.lastIndex=0;if(d.test(r))r=r.replace(d,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(r.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){l=eval("("+r+")");return typeof y==="function"?q({"":l},""):l}throw new SyntaxError("JSON.parse");}})();
var g_ischrome=true,g_issafari=false,g_isopera=false,base_url="https://lastpass.com/",build_date="Wed Dec 28 14:26:35 EST 2011";
