window._bd_share_main?window._bd_share_is_recently_loaded=!0:(window._bd_share_is_recently_loaded=!1,window._bd_share_main={version:"2.0",jscfg:{domain:{staticUrl:"http://bdimg.share.baidu.com/"}}});!window._bd_share_is_recently_loaded&&(window._bd_share_main.F=window._bd_share_main.F||function(n,t){function r(n,t){var r,i;if(n instanceof Array){for(i=0,r=n.length;i1?(this.svnMod=r[0],this.name=r[1]):this.name=t}this.svnMod||(this.svnMod=this.path.split("/js/")[0].substr(1));this.type="js";this.getKey=function(){return this.svnMod+":"+this.name};this._info={}}function h(n,t){var i=t=="css";return document.createElement(i?"link":"script")}function c(t,i,r){function f(){f.isCalled||(f.isCalled=!0,clearTimeout(o),r&&r())}var u=h(t,i),o,e;u.nodeName==="SCRIPT"?l(u,f):a(u,f);o=setTimeout(function(){throw new Error("load "+i+" timeout : "+t);},n._loadScriptTimeout||1e4);e=document.getElementsByTagName("head")[0];i=="css"?(u.rel="stylesheet",u.href=t,e.appendChild(u)):(u.type="text/javascript",u.src=t,e.insertBefore(u,e.firstChild))}function l(n,t){n.onload=n.onerror=n.onreadystatechange=function(){if(/loaded|complete|undefined/.test(n.readyState)){if(n.onload=n.onerror=n.onreadystatechange=null,n.parentNode){n.parentNode.removeChild(n);try{if(n.clearAttributes)n.clearAttributes();else for(var i in n)delete n[i]}catch(r){}}n=undefined;t&&t()}}}function a(n,t){n.attachEvent?n.attachEvent("onload",t):setTimeout(function(){s(n,t)},0)}function s(n,t){if(!t||!t.isCalled){var i,r=navigator.userAgent,f=~r.indexOf("AppleWebKit"),e=~r.indexOf("Opera");if(f||e)n.sheet&&(i=!0);else if(n.sheet)try{n.sheet.cssRules&&(i=!0)}catch(u){(u.name==="SecurityError"||u.name==="NS_ERROR_DOM_SECURITY_ERR")&&(i=!0)}setTimeout(function(){i?t&&t():s(n,t)},1)}}var f="api",e,o,u;return n.each=r,i.currentPath="",i.loadedPaths={},i.loadingPaths={},i.cache={},i.paths={},i.handlers=[],i.moduleFileMap={},i.requiredPaths={},i.lazyLoadPaths={},i.services={},i.isPathsLoaded=function(n){var t=!0;return r(n,function(n){if(!(n in i.loadedPaths))return t=!1}),t},i.require=function(n,t){var r,o,e;if(n.search(":")<0&&(t||(t=f,i.currentPath&&(t=i.currentPath.split("/js/")[0].substr(1))),n=t+":"+n),r=i.get(n,i.currentPath),r.type!="css"){if(r)return r._inited||(r._inited=!0,e=r.svnMod,(o=r.fn.call(null,function(n){return i.require(n,e)},r.exports,new u(r.name,e)))&&(r.exports=o)),r.exports;throw new Error('Module "'+n+'" not found!');}},i.baseUrl=t?t[t.length-1]=="/"?t:t+"/":"/",i.getBasePath=function(n){var t,r;return(r=n.indexOf("/"))!==-1&&(t=n.slice(0,r)),t&&t in i.paths?i.paths[t]:i.baseUrl},i.getJsPath=function(t,r){var e,u,o,s,c,l,a,h,v,t,y;if(t.charAt(0)==="."){for(r=r.replace(/\/[^\/]+\/[^\/]+$/,""),t.search("./")===0&&(t=t.substr(2)),e=0,t=t.replace(/^(\.\.\/)+/g,function(n){return e=n.length/3,""});e>0;)r=r.substr(0,r.lastIndexOf("/")),e--;return r+"/"+t+"/"+t.substr(t.lastIndexOf("/")+1)+".js"}return t.search(":")>=0?(h=t.split(":"),u=h[0],t=h[1]):r&&(u=r.split("/")[1]),u=u||f,v=/\.css(?:\?|$)/i.test(t),v&&n._useConfig&&i.moduleFileMap[u][t]&&(t=i.moduleFileMap[u][t]),t=l=t,y=i.getBasePath(t),(s=t.indexOf("/"))!==-1&&(o=t.slice(0,s),c=t.lastIndexOf("/"),l=t.slice(c+1)),o&&o in i.paths&&(t=t.slice(s+1)),a=y+u+"/js/"+t+".js",a},i.get=function(n,t){var r=i.getJsPath(n,t);return i.cache[r]?i.cache[r]:new i(r,n)},i.prototype={load:function(){var s,h;i.loadingPaths[this.path]=!0;var r=this.svnMod||f,u=window._bd_share_main.jscfg.domain.staticUrl+"static/"+r+"/",t=this,o=/\.css(?:\?|$)/i.test(this.name);this.type=o?"css":"js";s="/"+this.type+"/"+i.moduleFileMap[r][this.name];u+=n._useConfig&&i.moduleFileMap[r][this.name]?this.type+"/"+i.moduleFileMap[r][this.name]:this.type+"/"+this.name+(o?"":".js");n._firstScreenCSS.indexOf(this.name)>0||n._useConfig&&s==n._firstScreenJS?(t._loaded=!0,t.ready()):(h=(new Date).getTime(),e.create({src:u,type:this.type,loaded:function(){t._info.loadedTime=(new Date).getTime()-h;t.type=="css"&&(t._loaded=!0,t.ready())}}))},lazyLoad:function(){var n=this.name;if(i.lazyLoadPaths[this.getKey()])this.define(),delete i.lazyLoadPaths[this.getKey()];else{if(this.exist())return;i.requiredPaths[this.getKey()]=!0;this.load()}},ready:function(n,t){var o=t?this._requiredStack:this._readyStack,e,f;n?this._loaded?n():o.push(n):(i.loadedPaths[this.path]=!0,delete i.loadingPaths[this.path],this._loaded=!0,i.currentPath=this.path,this._readyStack&&this._readyStack.length>0&&(this._inited=!0,f=this.svnMod,this.fn&&(e=this.fn.call(null,function(n){return i.require(n,f)},this.exports,new u(this.name,f)))&&(this.exports=e),r(this._readyStack,function(n){n()}),delete this._readyStack),this._requiredStack&&this._requiredStack.length>0&&(r(this._requiredStack,function(n){n()}),delete this._requiredStack))},define:function(){var t=this,n=this.deps,f=this.path,u=[];n||(n=this.getDependents());n.length?(r(n,function(n){u.push(i.getJsPath(n,t.path))}),r(n,function(n){var r=i.get(n,t.path);r.ready(function(){i.isPathsLoaded(u)&&t.ready()},!0);r.lazyLoad()})):this.ready()},exist:function(){var n=this.path;return n in i.loadedPaths||n in i.loadingPaths},getDependents:function(){var e=this,n=this.fn.toString(),t=n.match(/function\s*\(([^,]*),/i),f=new RegExp("[^.]\\b"+t[1]+"\\(\\s*('|\")([^()\"']*)('|\")\\s*\\)","g"),i=n.match(f),u=[];return i&&r(i,function(n,i){u[i]=n.substr(t[1].length+3).slice(0,-2)}),u}},e={create:function(n){var t=n.src;t in this._paths||(this._paths[t]=!0,r(this._rules,function(n){t=n.call(null,t)}),c(t,n.type,n.loaded))},_paths:{},_rules:[],addPathRule:function(n){this._rules.push(n)}},n.version="1.0",n.use=function(n,t){typeof n=="string"&&(n=[n]);var f=[],u=[];r(n,function(n,t){u[t]=!1});r(n,function(n,e){var o=i.get(n),s=o._loaded;o.ready(function(){var n=o.exports||{},i;n._INFO=o._info;n._INFO&&(n._INFO.isNew=!s);f[e]=n;u[e]=!0;i=!0;r(u,function(n){if(n===!1)return i=!1});t&&i&&t.apply(null,f)});o.lazyLoad()})},n.module=function(n,t,r){var u=i.get(n);u.fn=t;u.deps=r;i.requiredPaths[u.getKey()]?u.define():i.lazyLoadPaths[u.getKey()]=!0},n.pathRule=function(n){e.addPathRule(n)},n._addPath=function(n,t){if(t.slice(-1)!=="/"&&(t+="/"),n in i.paths)throw new Error(n+" has already in Module.paths");i.paths[n]=t},o=f,n._setMod=function(n){o=n||f},n._fileMap=function(t,u){var e,f;typeof t=="object"?r(t,function(t,i){n._fileMap(i,t)}):(e=o,typeof u=="string"&&(u=[u]),t=t.indexOf("js/")==1?t.substr(4):t,t=t.indexOf("css/")==1?t.substr(5):t,f=i.moduleFileMap[e],f||(f={}),r(u,function(n){f[n]||(f[n]=t)}),i.moduleFileMap[e]=f)},n._eventMap={},n.call=function(t,i){for(var u=[],r=2,f=arguments.length;r=0;r--)t[r]=this.svnMod+":"+t[r];n.use(t,i)}},n._Context=u,n.addLog=function(t,i){n.use("lib/log",function(n){n.defaultLog(t,i)})},n.fire=function(t,i,r){n.use("lib/mod_evt",function(n){n.fire(t,i,r)})},n._defService=function(n,t){if(n){var u=i.services[n];u=u||{};r(t,function(n,t){u[t]=n});i.services[n]=u}},n.getService=function(t,r,u){var e=i.services[t],f;if(!e)throw new Error(t+" mod didn't define any services");if(f=e[r],!f)throw new Error(t+" mod didn't provide service "+r);n.use(t+":"+f,u)},n}({}));!window._bd_share_is_recently_loaded&&window._bd_share_main.F.module("base/min_tangram",function(n,t){var i={},r;i.each=function(n,t,i){var u,f,r,e=n.length;if("function"==typeof t)for(r=0;r0?t.each(n[e],function(f,o){n[e][f]=t.extend({},r[e],i,o,u[e])}):n[e]=t.extend({},r[e],i,n[e],u[e]))}),n}var t=n.T;_bd_share_main.init=function(n){if(n=n||window._bd_share_config||{share:{}},n){var t=u(n);t.like&&i(["share/like_api","view/like_view"],t.like);t.share&&i(["share/share_api","view/share_view"],t.share);t.slide&&i(["share/slide_api","view/slide_view"],t.slide);t.selectShare&&i(["share/select_api","view/select_view"],t.selectShare);t.image&&i(["share/image_api","view/image_view"],t.image)}};window._bd_share_main._LogPoolV2=[];window._bd_share_main.n1=(new Date).getTime();t.domready(function(){window._bd_share_main.n2=(new Date).getTime()+1e3;_bd_share_main.init();setTimeout(function(){window._bd_share_main.F.use("trans/logger",function(n){n.nsClick();n.back();n.duration()})},3e3)})});!window._bd_share_is_recently_loaded&&window._bd_share_main.F.module("component/comm_tools",function(n,t){var i=function(){var n=window.locations||document.locations||{};return n.href||""},r=function(n,t){for(var u,f=n.length,i="",r=1;r<=t;r++)u=Math.floor(f*Math.random()),i+=n.charAt(u);return i},u=function(){var n=(+new Date).toString(36),t=r("0123456789abcdefghijklmnopqrstuvwxyz",3);return n+t};t.getLinkId=u;t.getPageUrl=i});!window._bd_share_is_recently_loaded&&window._bd_share_main.F.module("trans/trans",function(n,t){var i=n("component/comm_tools"),r=n("conf/const").URLS,u=function(){window._bd_share_main.F.use("base/tangram",function(n){var t=n.T;t.cookie.get("bdshare_firstime")==null&&t.cookie.set("bdshare_firstime",new Date*1,{path:"/",expires:(new Date).setFullYear(2022)-new Date})})},f=function(n){var t=n.bdUrl||i.getPageUrl();return t=t.replace(/\'/g,"%27").replace(/\"/g,"%22"),t},e=function(n){var r=(new Date).getTime()+3e3,t={click:1,url:f(n),uid:n.bdUid||"0",to:n.__cmd,type:"text",pic:n.bdPic||"",title:(n.bdText||document.title).substr(0,300),key:(n.bdSnsKey||{})[n.__cmd]||"",desc:n.bdDesc||"",comment:n.bdComment||"",relateUid:n.bdWbuid||"",searchPic:n.bdSearchPic||0,sign:n.bdSign||"on",l:window._bd_share_main.n1.toString(32)+window._bd_share_main.n2.toString(32)+r.toString(32),linkid:i.getLinkId(),firstime:s("bdshare_firstime")||""};switch(n.__cmd){case"copy":c(t);break;case"print":l();break;case"bdxc":a();break;case"bdysc":v(t);break;case"weixin":y(t);break;default:o(n,t)}window._bd_share_main.F.use("trans/logger",function(i){i.commit(n,t)})},o=function(n,t){var i=r.jumpUrl,u;n.__cmd=="mshare"?i=r.mshareUrl:n.__cmd=="mail"&&(i=r.emailUrl);u=i+"?"+h(t);window.open(u)},s=function(n){if(n){var i=new RegExp("(^| )"+n+"=([^;]*)(;|$)"),t=i.exec(document.cookie);if(t)return decodeURIComponent(t[2]||null)}},h=function(n){var t=[];for(var i in n)t.push(encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return t.join("&").replace(/%20/g,"+")},c=function(n){window._bd_share_main.F.use("base/tangram",function(t){var r=t.T;r.browser.ie?(window.clipboardData.setData("text",document.title+" "+(n.bdUrl||i.getPageUrl())),alert("标题和链接复制成功,您可以推荐给QQ/MSN上的好友了!")):window.prompt("您使用的是非IE核心浏览器,请按下 Ctrl+C 复制代码到剪贴板",document.title+" "+(n.bdUrl||i.getPageUrl()))})},l=function(){window.print()},a=function(){window._bd_share_main.F.use("trans/trans_bdxc",function(n){n&&n.run()})},v=function(n){window._bd_share_main.F.use("trans/trans_bdysc",function(t){t&&t.run(n)})},y=function(n){window._bd_share_main.F.use("trans/trans_weixin",function(t){t&&t.run(n)})},p=function(n){e(n)};t.run=p;u()})