/g,">").replace(/\s/g," "),i=decodeURIComponent(n.appIcon),s="",r=n.shortcutTip,o=n.host;if(0!=i.indexOf("http://")&&0!=i.indexOf("https://"))return alert("appIcon not fit");var l=i.split("/"),d=l.length;l[d]="share_"+l[d-1],l[d-1]="shareApplet",s=l.join("/"),r||(o&&"applet"!=o?r=UP.W.Lang.getString("addDesktop"):(r=UP.W.Lang.getString("add"),UP.W.Lang.getString("toDesktop")));var p="";for(var c in n)"appName"!=c&&"appIcon"!=c&&"host"!=c&&"dest"!=c&&(p+=c+"="+n[c]+"&");var m=e.UPChannel&&"INTL"===e.UPChannel?"upintl://":"upwallet://";if(o){var g=n.dest||"",u=n.encryptAppId;if("applet"==o&&!u)return alert("you are 'applet' but not match 'encryptAppId' param");if(g&&(g="/"+g),p){p=p.slice(0,p.length-1);var v="?";-1!=g.indexOf("?")&&(v="&"),"applet"==o&&(p+="&scenarioId=1007"),m+=o+g+v+p}else m+=o+g}else{var u=n.encryptAppId;if(!u)return alert("you are 'applet' but not match 'encryptAppId' param");m+="applet?"+(p+="scenarioId=1007")}var h=function(){if(/iP(hone|od|ad)/.test(navigator.platform)){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)]}}(),y=document.createElement("img");if(h&&h[0]<14){function f(e){var t=location.protocol+"//"+location.host,n="