");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=n.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null}function n(e){var t=document.location.search||document.location.hash;if(t){if("?"===t[0]&&(t=t.slice(1)),null===e)return decodeURIComponent(t);for(var n=t.split("&"),o=0,c=n.length;o=1-(Number(t)||.1)&&((new Image).src="https://support.weixin.qq.com/cgi-bin/mmsupportmeshnodelogicsvr-bin/cube?biz=3512&label=connect.qrconnect&action="+e)}function c(e,t,n){var o="";if(n){var c=new Date;c.setTime(c.getTime()+24*n*60*60*1e3),o="; expires="+c.toUTCString()}document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+o+"; path=/; SameSite=None; Secure"}function r(e){for(var t=encodeURIComponent(e)+"=",n=document.cookie.split(";"),o=0;o-1?"&":"?")+"code="+wx_code+"&state=1";var a=t("self_redirect");if(d)if("true"!==a&&"false"!==a)try{document.domain="qq.com";var l=window.top.location.host.toLowerCase();l&&(window.location=A)}catch(e){window.top.location=A}else if("true"===a)try{window.location=A}catch(e){window.top.location=A}else window.top.location=A;else window.location=A;break;case 404:o("connect_qrconnect_longpull_success_404",.01),jQuery(".js_status").hide(),jQuery(".js_qr_img").hide(),jQuery(".js_wx_after_scan").show(),setTimeout(i,100,s);break;case 403:o("connect_qrconnect_longpull_success_403",.01),jQuery(".js_status").hide(),jQuery(".js_qr_img").hide(),jQuery(".js_wx_after_cancel").show(),setTimeout(i,2e3,s);break;case 402:o("connect_qrconnect_longpull_success_402",.01),c("reloadTriggered",!0,100),setTimeout(function(){window.location.reload()},200);break;case 500:o("connect_qrconnect_longpull_success_500",.01),setTimeout(function(){window.location.reload()},200);break;case 408:o("connect_qrconnect_longpull_success_408",.01),setTimeout(i,2e3);break;default:o("connect_qrconnect_longpull_success_others",.01)}},error:function(e,t,n){o("connect_qrconnect_longpull_error",.01);var c=window.wx_errcode;408==c?(o("connect_qrconnect_longpull_error_408",.01),setTimeout(i,5e3)):(o("connect_qrconnect_longpull_error_others",.01),setTimeout(i,5e3,c))}})}function l(){var e=jQuery.Deferred();return setTimeout(function(){e.resolve()},1e3),jQuery(window).load(function(){e.resolve()}),e.promise()}jQuery("#js_web_qrcode_reload").click(function(){location.reload()});var d=window.top!=window,p=n("self_redirect")||n("style")||n("href")||n("oldstyle"),u=parseInt(e("styletype"),10),m=NaN;1!==u&&0!==u&&1===m&&(u=0);var g="";if(1!==u&&0!==u&&g){o("connect_qrconnect_css_href");var w=document.createElement("link");w.rel="stylesheet",w.href=g.replace(new RegExp("javascript:","gi"),""),document.getElementsByTagName("head")[0].appendChild(w)}if(d){o("connect_qrconnect_iframe"),document.body.className+=" web_qrcode_type_iframe";var f="";"white"!=f&&(document.body.style.color="#373737"),jQuery("#tpl_for_iframe").show()}else{o("connect_qrconnect_page"),document.getElementsByClassName||(document.getElementsByClassName=function(e){for(var t=[],n=new RegExp("(^| )"+e+"( |$)"),o=document.getElementsByTagName("*"),c=0,r=o.length;c