var BdVirtualNum=function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=9)}([function(e,n,t){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/-/g,"").replace(/\+/g,"").replace(/\s/,"")}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return 11===(e=a(e)).length&&0===e.indexOf("1")}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return 0===(e=a(e)).indexOf("400")&&10===e.length}function a(e){return 0===e.indexOf("86")?e.substring(2):0===e.indexOf("+86")?e.substring(3):e}Object.defineProperty(n,"__esModule",{value:!0}),n.isSamePhoneNum=function(e,n){if(e=a(r(e)),n=a(r(n)),e===n)return!0;var t=e.indexOf(n),i=n.indexOf(e);if((3===t||4===t)&&0===e.indexOf("0"))return!0;if((3===i||4===i)&&0===n.indexOf("0"))return!0;return!1},n.removeSymbol=r,n.isMobileNum=i,n.is400=o,n.getNumReplaceText=function(e){if(o(e=a(e=r(e)))){var n=[e.substring(0,3),e.substring(3,6),e.substring(6,10)],t=[e.substring(0,4),e.substring(4,7),e.substring(7,10)];return[e,n.join(" "),n.join("-"),t.join(" "),t.join("-")]}if(i(e))return["+86"+e,"86"+e,e];var u=["+86"+e,"86"+e,e];if(0===e.indexOf("0")){var c=[],l=e.length;10===l?c.push(3):12===l?c.push(4):11===l&&(c=[3,4]),c.forEach((function(n){var t=[e.substring(0,n),e.substring(n)];u=[].concat(function(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1];if(!n)return;var t=a(n);if(t){t.phone=Array.isArray(e)?e:[e];for(var r=0;r1e3*(t-(r?o:i)))return!0;return!1},n.isClickMode=function(){return o};var r=t(0),i={},o=!1;function a(e){return i[e]}function u(e,n){var t=[];if(i[e]){var o=i[e]||{};t=o.phone||[];Array.isArray(t)||(t=[t]);for(var a=0;a0?e.timeoutHandle=setTimeout((function(){l.forEach((function(e){e()}))}),d):l.forEach((function(e){e()}))}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e&&u[e]&&(t.logtype=e,f(n,t))}function s(e,n){n.timestamp=+new Date;var t=e.from||"lp";n.tag=o[t];var r=(e.phone||[]).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.dynamicPhone,t=void 0===n?"":n,r=e.virtualPhone,i=void 0===r?"":r,o=e.realPhone,a=void 0===o?"":o;return t+"_"+i+"_"+a}));n.phones=r.join("|"),e.bdVid&&(n.bdVid=e.bdVid),e.pvt&&(n.duration=+new Date-e.pvt),"native-smart-app"===e.client&&(n.appName=e.appName,n.appKey=e.appKey),e.sourceType&&(n.lpFrom=e.sourceType)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i){var t={};["uid","siteid","baiduid","pageid","kDomain","fid","spid","xst","ch","status","channel","dpopen","url","referrer","lpType","sdkType","sdkVersion","query","client","expired","solutionId"].forEach((function(n){t[n]=e[n]})),r(t,n),s(e,t),function(e){var n=e.logtype,t=u[n]||[];"string"==typeof t&&(t=[t]),t.forEach((function(t){c[n]&&(e.logtype=c[n]),i(a[t],e)}))}(t)}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createId=function(){return"p"+(new Date).getTime().toString(16)+parseInt(1e6*Math.random(),10).toString(16)},n.ch2channel=function(e){var n={3:"3",4:"1"};if(void 0!==n[e])return n[e];return null},n.sdkHost=function(e,n){if(n&&/^https?:\/\/[^\/]+\.baidu\.com:\d+$/.test(n))return e.replace("https://ada.baidu.com",n);return e}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.init=n.LPTYPE=void 0;var r=t(5),i=n.LPTYPE={SMARTLP:1,AIPAGE:2,NA:3,JIMUYU:4,THIRD:5,PREVIEW:6,OTHER:0};function o(e){return-1!==e.indexOf("slp.baidu.com")||-1!==e.indexOf("sp0.baidu.com/5bgWsjip0QIZ8tyhnq")}function a(e){return-1!==e.indexOf("aipage.cn")}function u(e){return-1!==e.indexOf("fix=1")&&navigator&&navigator.userAgent&&navigator.userAgent.match(/baiduboxapp\/([\d+.]+)/)}function c(e){for(var n=["isite.baidu.com","sjh.baidu.com","wejianzhan.com","sitei.baidu.com","shj.baidu.com","wjz.baidu.com","wzj.baidu.com","jzw.baidu.com"],t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=i.OTHER;void 0!==e.type&&(n=e.type);var t=location.href;o(t)?n=i.SMARTLP:a(t)?n=i.AIPAGE:u(t)?n=i.NA:c(t)?n=i.JIMUYU:d(t)?n=i.THIRD:l(t)&&(n=i.PREVIEW);var s={lpType:n,url:location.href,referrer:document.referrer};(0,r.getQuery)("sdkhost","search")&&(s.sdkhost=(0,r.getQuery)("sdkhost","search"));try{if(l(t)||c(t)){var f=window.location.pathname.split("/").pop(),h=(0,r.getCookie)(f);s.expInfo=h}}catch(e){console.log(e)}return n===i.PREVIEW&&(s.previewChannel=(0,r.getQuery)("channel","search")),s}},function(e,n,t){"use strict";function r(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"search",t=new RegExp("(^|&|\\?)"+e+"=([^&]*)(&|$)"),r=window.location[n].substr(1).match(t);return null!=r?unescape(r[2]):null}Object.defineProperty(n,"__esModule",{value:!0}),n.getQuery=r,n.getReferrerQuery=function(e){var n=document.referrer,t=new RegExp("(\\?|&)"+e+"=[^&]*");if(t.test(n))return n.match(t)[0].split("=")[1]},n.getParam=function(e){return r(e,"search")||r(e,"hash")},n.getCookie=function(e){var n=new RegExp("(^| )"+e+"=([^;]*)(;|$)"),t=document.cookie.match(n);if(t)return unescape(t[2]);return null}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isFromAd=o,n.isChargeUrl=a,n.initAdParams=function(e){var n={uid:e.uid||window.bdDataLayer.uid||(0,r.getReferrerQuery)("cegduid")||(0,r.getReferrerQuery)("cegduid","search")||(0,r.getReferrerQuery)("cegduid","hash")||(0,r.getReferrerQuery)("BD_FC_UID"),sid:window.bdDataLayer.sid,baiduid:(0,r.getCookie)("BAIDUID"),dpopen:e.dpopen||window.bdDataLayer.dpopen||(0,r.getReferrerQuery)("dpopen")||1,bdRank:e.bdRank||(0,r.getReferrerQuery)("bdrank"),kDomain:e.kDomain||u(),channel:e.channel,query:e.query};e.solutionId&&!e.solutionIds&&(n.solutionIds=e.solutionId,delete e.solutionId);e.realPhone&&!e.realPhones&&(n.realPhones=e.realPhone);if("lp"===e.from){n.siteid=n.sid;for(var t=["fid","ch","spid","xst"],o=0;o0&&void 0!==arguments[0]&&arguments[0];return a(document.referrer)}function a(){return-1!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").indexOf("baidu.php")}function u(){if(!o())return"";var e=document.referrer,n=/url=([^\.]+\.)([^\.]+\.)([^&]+)/,t=/sc\.([^\.]+\.)([^\.]+\.)([^&]+)/;return n.test(e)?n.exec(e)[3]:t.test(e)?t.exec(e)[3]:void 0}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.version=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:null,t={};"object"===(void 0===e?"undefined":r(e))?(t=e).key=t.key||t.uid||t.sid:(t.realPhone=e,n||(n=(0,c.getLastUser)()),t.key=n);var o=(0,c.isClickMode)()||"click"===t.mode,a=y(t.realPhone,t.key);t.callback&&(a.type="show",t.callback(a));if(o&&t.callback)var u=m(i({from:t.from||"lp",mode:"click",requestUtil:p.default,logUtil:h.log,sdkType:t.sdkType||"api",client:t.client||"h5",pageInitFunc:s.init,adInitFunc:f.initAdParams},t,{callback:function(){var e=y(t.realPhone,u.key);0!==e.status&&1!==e.status||(e.type="click",t.callback(e))}}));return a},n.getShowCallNumber=y,n.delayTime=function(e,n,t){var r=(0,c.getData)(e),o=(0,c.getPhone)(e,t);if(o.dynamicPhone&&(0,d.isSamePhoneNum)(n,o.dynamicPhone)){var a={onResult:function(n){(0,c.setExpiredTime)(e,t,n.expiredTime,n.hasHeart),o.hasHeart=n.hasHeart,g(e,o)},onError:function(e){}};(0,u.delayPhoneTime)(i({},r,a,{phone:o}),t)}},n.checkHeart=g;var o,a=t(3),u=t(10),c=t(1),l=t(2),d=t(0),s=t(4),f=t(6),h=t(8),p=(o=h)&&o.__esModule?o:{default:o};var v=n.version="3.0.10";function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.pageInitFunc?e.pageInitFunc(e):{},t=e.adInitFunc?e.adInitFunc(i({},e,n)):{},r=(0,a.createId)(),o=i({},e,n,t,{pageid:r});if(o.key=(0,c.generateKeyForStore)(o),o.sdkVersion=v,(0,u.init)(o),(0,l.init)(o),o.fromAd&&o.key){var d=(0,c.getData)(o.key);return d&&d.status?(setTimeout((function(){e.callback&&e.callback()}),10),o):((0,c.init)(o),(0,l.pv)(o),function(e,n){var t=e.key,r=(0,c.getData)(t),o={onResult:function(n){if((0,c.setPhone)(n,t),e.replaceFunc)e.replaceFunc(e);else{var i=!1;Array.isArray(n)&&n[0]&&(n[0].virtualPhone||n[0].dynamicPhone)?i=!0:(n.virtualPhone||n.dynamicPhone)&&(i=!0),i&&(g(t),(0,l.show)(r),e.callback&&e.callback())}},onError:function(e){}};(0,u.loadPhoneNumber)(i({},r,o,{mode:n}))}(o,e.mode||"show"),o)}}function y(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,c.getPhone)(n,e)||{},r=(n.indexOf("click"),{});if(t||(r={status:4,virtualPhone:e,realPhone:null,key:t.datakey}),n&&(t.dynamicPhone||t.virtualPhone))if("ad"===t.datafrom||(0,d.isSamePhoneNum)(e,t.realPhone))if(t.dynamicPhone){new Date;(0,c.checkExpired)(t)&&t.virtualPhone?((0,c.setValue)(n,"expired",1),r={status:0,virtualPhone:(0,d.remove86)(t.virtualPhone),realPhone:e,key:t.datakey}):r={status:1,virtualPhone:(0,d.remove86)(t.dynamicPhone),realPhone:e,time:t.time,expiredTime:t.expiredTime,backPhone:t.virtualPhone?(0,d.remove86)(t.virtualPhone):e,key:t.datakey}}else t.virtualPhone&&(r={status:0,virtualPhone:(0,d.remove86)(t.virtualPhone),realPhone:e,key:t.datakey});else r={status:3,virtualPhone:e,realPhone:null,key:t.datakey};else r={status:2,virtualPhone:e,realPhone:null,key:t.datakey};return r.pageid=t.datapageid,t.datapvt&&(r.duration=+new Date-t.datapvt),0!==r.status&&1!==r.status||(r.success=!0),!r.virtualPhone&&e&&(r.virtualPhone=e),r}function g(e,n){var t=(0,c.getData)(e);(n?[n]:t.phone||[]).forEach((function(n){var r=n.dynamicPhone,o=n.hasHeart,a=n.heartHandle,l=n.time,d=n.expiredTime,s=n.heartLeftTime,f=void 0===s?10:s,h=n.heartClickLeftTime,p=void 0===h?5:h,v=n.needHeart;if(r&&o&&!1!==v){a&&(clearTimeout(a),n.heartHandle=null);var m=+new Date-l;if(1e3*(d-p)>m){var y=1e3*(d-f)-m;n.heartHandle=setTimeout((function(){n.heartHandle=null;var r={onResult:function(t){(0,c.setExpiredTime)(e,n.realPhone,t.expiredTime,t.hasHeart),g(e,n)},onError:function(e){}};document&&document.visibilityState&&"visible"!==document.visibilityState||(0,u.startHeart)(i({},t,{phone:n},r))}),y>0?y:0)}}else a&&(clearTimeout(a),t.heartHandle=null)}))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var i=function(e){document.getElementsByTagName("head")[0].removeChild(f),delete window[o],r.onEnd&&r.onEnd(n)};if(!e||!n)return;t=t||function(){};var o="bcpDynamic",a=1e7;o+=(new Date).getTime()%a,o+=(Math.random()*a).toFixed(0),window[o]=t,n.callback=o;var u=[],c=Object.prototype.toString;for(var l in n){var d="",s=void 0;if("number"==typeof n[l]&&(d=0),"[object Object]"===c.call(n[l])){try{s=JSON.stringify(n[l])}catch(e){s="{}"}u.push(l+"="+encodeURIComponent(s))}else u.push(l+"="+encodeURIComponent(n[l]||d))}delete n.callback,u=u.join("&"),-1!==e.indexOf("?")?e+="&"+u:e+="?"+u;var f=document.createElement("script");f.setAttribute("async","true"),f.addEventListener("load",i,!1),f.addEventListener("error",(function(e){document.getElementsByTagName("head")[0].removeChild(f),delete window[o],r.onError&&r.onError(n)}),!1),document.getElementsByTagName("head")[0].appendChild(f),f.src=e}catch(e){console.error(e)}},n.log=function(e,n){var t=[];for(var r in n)n.hasOwnProperty(r)&&t.push(r+"="+encodeURIComponent(void 0===n[r]?"":n[r]));t.push("rand="+(new Date).getTime()),e+="?"+t.join("&");var i=new Image,o=0;i.onload=i.onerror=i.onabort=function(n){if("error"===n.type&&o<2)return o++,void(i.src=e+"&retryCount="+o);i.onload=i.onerror=i.onabort=null,i=null},i.src=e}},function(e,n,t){"use strict";var r,i=t(4),o=t(6),a=t(7),u=t(11),c=t(8),l=(r=c)&&r.__esModule?r:{default:r},d=t(2),s=t(0),f=t(1);window.bdDataLayer=window.bdDataLayer||{},window.bdDataLayer.inserted||function(){var e=(0,u.getADoms)();if(e&&e.length){for(var n=[],t=0;t0&&((0,d.show)(n),(0,a.checkHeart)(n.key))},requestUtil:l.default,logUtil:c.log,sdkType:"aTag",client:"h5",pageInitFunc:i.init,adInitFunc:o.initAdParams,realPhones:n.join("|"),mode:"show"};(0,a.init)(v)}}(),window.bdDataLayer.inserted=1},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{};(0,i.setStatus)("end",e.key);var t=n.channel,r=n.baiduid;void 0!==t&&(0,i.setValue)(e.key,"channel",t),r&&(0,i.setValue)(e.key,"baiduid",r),o(n)},onError:function(n){(0,i.setStatus)("end",e.key),u(n)}};if(!c)return;t.mode=e.mode,t.expInfo=e.expInfo;var f=e.realPhones||"",h=f.split("|").map((function(e){return(0,a.removeSymbol)((0,a.remove86)(e))}));f=h.join("|"),c(l+"getNumber",r({},t,{realPhones:f}),s.onResult,s),(0,i.setLastUser)(e.key),(0,i.setStatus)("loading",e.key)},n.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.requestUtil&&(c=e.requestUtil);l=(0,o.sdkHost)(l,e.sdkhost)},n.delayPhoneTime=function(e,n){var t=d(e)||{},i=t.params,o=t.onResult,a=t.onError;i.dynamicPhone=e.phone.dynamicPhone,i.reqMd5=e.phone.reqMd5,i.clicklog=1,i.ch=e.ch,i.status=e.status,i.referrer=e.referrer,i.lpType=e.lpType,i.sdkType=e.sdkType,i.expired=e.expired,(0,u.addComputeParams)(r({},e,{phone:[e.phone]}),i),i.rand=i.timestamp,"ad"===e.from&&(i.phoneNum=i.dynamicPhone);"lp"===e.from&&(i.virtualPhone=i.dynamicPhone,i.realPhone=n);c(l+"delayPhoneTime",i,o,{onResult:o,onError:a})},n.startHeart=function(e){var n=d(e)||{},t=n.params,r=n.onResult,i=n.onError;t.dynamicPhone=e.phone.dynamicPhone,t.reqMd5=e.phone.reqMd5,c(l+"startHeart",t,r,{onResult:r,onError:i})};var i=t(1),o=t(3),a=t(0),u=t(2),c=null,l="https://ada.baidu.com/phone-tracker/";function d(e){var n=e.uid,t=e.sid,r=e.baiduid,i=e.channel,o=e.dpopen,a=e.kDomain,u=e.fid,c=e.spid,l=e.query,d=(e.from,e.lpType,e.xst),s=e.sdkVersion,f=e.client;return{params:{useridInBase64:n,siteid:t,baiduid:r,channel:i,dpopen:o,query:l,kDomain:a,fid:u,spid:c,xst:d,sdkVersion:s,url:e.url,client:f,pageid:e.pageid,sourceType:e.sourceType,solutionIds:e.solutionIds},onResult:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.errors,r=n.status,i=n.data;200===r?e.onResult(i):e.onError&&e.onError(t)},onError:function(n){e.onError&&e.onError(n)}}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getADoms=function(){for(var e=[],n=document.getElementsByTagName("A"),t=n.length,r=0;r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],t=c(e);if(t===n)return!0;e.phoneNum&&t!==e.virtualNum&&(e.phoneNum=null,e.virtualNum=null);var u=e.phoneNum||t;return e.setAttribute("href","tel:"+n),e.phoneNum=u,e.virtualNum=n,function(e,n,t){if(!/^\+?[0-9,-, ]+$/.test(e))return;for(var r=(0,i.getNumReplaceText)(e),o=r.length,a=0;a0){var l=t.innerHTML.charAt(u-1);/^\d$/.test(l)||(c=!0)}if(c){d(t,r[a],n);break}}}(t,n,e),function(e){var n=function(n){var t=c(e);if(e.bdPhoneTrackerKey&&e.phoneNum){var u=(0,o.getPhone)(e.bdPhoneTrackerKey,e.phoneNum);(0,i.isSamePhoneNum)(t,u.dynamicPhone)?((0,r.delayTime)(e.bdPhoneTrackerKey,e.virtualNum,e.phoneNum),(0,a.clickDynamic)((0,o.getData)(e.bdPhoneTrackerKey),e.virtualNum,e.phoneNum)):(0,a.clickStatic)((0,o.getData)(e.bdPhoneTrackerKey),e.virtualNum,e.phoneNum)}};e.eventFn&&e.removeEventListener("click",e.eventFn);e.addEventListener("click",n,!1),e.eventFn=n}(e),!0}function d(e,n,t){if(3===e.nodeType)e.data.length>0&&(e.data=e.data.replace(n,t));else if(1===e.nodeType&&e.childNodes.length>0)for(var r=e.childNodes.length,i=0;i